From Craig Silverstein: Implement --debug=files to track file opens,
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
ab509236 3# Generated by GNU Autoconf 2.59.
252b5132 4#
ab509236 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
13b2be9c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
ab509236 22DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
23
24# Support unset when possible.
ab509236 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
ab509236 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
ab509236 221 test -d ./-p && rmdir ./-p
13b2be9c
DJ
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
ab509236 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
229
230# Sed expression to map a string onto a valid variable name.
ab509236 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
13b2be9c
DJ
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
13b2be9c
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
13b2be9c
DJ
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="as.h"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
d7040cdb 461ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
13b2be9c 462ac_subst_files=''
252b5132
RH
463
464# Initialize some variables set by options.
13b2be9c
DJ
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
13b2be9c 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
13b2be9c
DJ
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
13b2be9c 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
13b2be9c 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
13b2be9c 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 526 build_alias=$ac_optarg ;;
252b5132
RH
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
13b2be9c 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
13b2be9c 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
13b2be9c
DJ
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
13b2be9c 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
13b2be9c
DJ
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
13b2be9c 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
13b2be9c 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
13b2be9c
DJ
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
13b2be9c 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 589 host_alias=$ac_optarg ;;
252b5132
RH
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 606 libdir=$ac_optarg ;;
252b5132
RH
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
13b2be9c 613 libexecdir=$ac_optarg ;;
252b5132
RH
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
13b2be9c 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 627 mandir=$ac_optarg ;;
252b5132
RH
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 634 | --no-cr | --no-c | -n)
252b5132
RH
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 653 prefix=$ac_optarg ;;
252b5132
RH
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 660 program_prefix=$ac_optarg ;;
252b5132
RH
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 667 program_suffix=$ac_optarg ;;
252b5132
RH
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 684 program_transform_name=$ac_optarg ;;
252b5132
RH
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
13b2be9c 694 sbindir=$ac_optarg ;;
252b5132
RH
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
13b2be9c 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
13b2be9c 710 site=$ac_optarg ;;
76bff705 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 715 srcdir=$ac_optarg ;;
252b5132
RH
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
13b2be9c
DJ
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
13b2be9c 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
13b2be9c
DJ
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
13b2be9c
DJ
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
13b2be9c 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
13b2be9c 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
13b2be9c
DJ
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 766 x_includes=$ac_optarg ;;
252b5132
RH
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 773 x_libraries=$ac_optarg ;;
252b5132 774
13b2be9c
DJ
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
13b2be9c
DJ
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
252b5132 790 *)
13b2be9c
DJ
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
13b2be9c
DJ
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
c8615825 805fi
c8615825 806
13b2be9c
DJ
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
252b5132 817
13b2be9c
DJ
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ab509236 820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
13b2be9c
DJ
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
252b5132
RH
827 esac
828done
829
13b2be9c
DJ
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
9b2b7d69 847
13b2be9c
DJ
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
13b2be9c
DJ
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132
RH
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
13b2be9c
DJ
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
13b2be9c
DJ
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
13b2be9c
DJ
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
d6d788bd 922
13b2be9c
DJ
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
9b2b7d69 931
13b2be9c 932Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 933
13b2be9c
DJ
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 936
13b2be9c 937Defaults for the options are specified in brackets.
9b2b7d69 938
13b2be9c
DJ
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
ab509236 955 [$ac_default_prefix]
13b2be9c 956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ab509236 957 [PREFIX]
9b2b7d69 958
13b2be9c
DJ
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
9b2b7d69 963
13b2be9c 964For better control, use the options below.
9b2b7d69 965
13b2be9c
DJ
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
9b2b7d69 980
13b2be9c 981 cat <<\_ACEOF
9b2b7d69 982
13b2be9c
DJ
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 987
13b2be9c
DJ
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
9b2b7d69 993fi
9b2b7d69 994
13b2be9c 995if test -n "$ac_init_help"; then
9b2b7d69 996
13b2be9c 997 cat <<\_ACEOF
9b2b7d69 998
13b2be9c
DJ
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
13b2be9c 1010 --disable-libtool-lock avoid locking (might break parallel builds)
241a6c40 1011 --enable-targets alternative target configurations besides the primary
13b2be9c 1012 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
c43a438d 1013 --enable-checking enable run-time checks
241a6c40
AM
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1016 --disable-nls do not use Native Language Support
ab509236
L
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
9b2b7d69 1019
13b2be9c
DJ
1020Optional Packages:
1021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1023 --with-pic try to use only PIC/non-PIC objects [default=use
1024 both]
1025 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9b2b7d69 1026
13b2be9c
DJ
1027Some influential environment variables:
1028 CC C compiler command
1029 CFLAGS C compiler flags
1030 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1031 nonstandard directory <lib dir>
1032 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033 headers in a nonstandard directory <include dir>
1034 CPP C preprocessor
1035
1036Use these variables to override the choices made by `configure' or to help
1037it to find libraries and programs with nonstandard names/locations.
1038
1039_ACEOF
9b2b7d69 1040fi
9b2b7d69 1041
13b2be9c
DJ
1042if test "$ac_init_help" = "recursive"; then
1043 # If there are subdirs, report their specific --help.
1044 ac_popdir=`pwd`
1045 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1046 test -d $ac_dir || continue
1047 ac_builddir=.
1048
1049if test "$ac_dir" != .; then
1050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1051 # A "../" for each directory in $ac_dir_suffix.
1052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1053else
1054 ac_dir_suffix= ac_top_builddir=
1055fi
9b2b7d69 1056
13b2be9c
DJ
1057case $srcdir in
1058 .) # No --srcdir option. We are building in place.
1059 ac_srcdir=.
1060 if test -z "$ac_top_builddir"; then
1061 ac_top_srcdir=.
1062 else
1063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
c8615825 1064 fi ;;
13b2be9c
DJ
1065 [\\/]* | ?:[\\/]* ) # Absolute path.
1066 ac_srcdir=$srcdir$ac_dir_suffix;
1067 ac_top_srcdir=$srcdir ;;
1068 *) # Relative path.
1069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
c8615825 1071esac
ab509236
L
1072
1073# Do not use `cd foo && pwd` to compute absolute paths, because
1074# the directories may not exist.
1075case `pwd` in
1076.) ac_abs_builddir="$ac_dir";;
1077*)
1078 case "$ac_dir" in
1079 .) ac_abs_builddir=`pwd`;;
1080 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1081 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1082 esac;;
1083esac
1084case $ac_abs_builddir in
1085.) ac_abs_top_builddir=${ac_top_builddir}.;;
1086*)
1087 case ${ac_top_builddir}. in
1088 .) ac_abs_top_builddir=$ac_abs_builddir;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1090 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1091 esac;;
1092esac
1093case $ac_abs_builddir in
1094.) ac_abs_srcdir=$ac_srcdir;;
1095*)
1096 case $ac_srcdir in
1097 .) ac_abs_srcdir=$ac_abs_builddir;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1099 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1100 esac;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_top_srcdir=$ac_top_srcdir;;
1104*)
1105 case $ac_top_srcdir in
1106 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1108 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1109 esac;;
1110esac
13b2be9c
DJ
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 ||
ab509236 1121 test -f $ac_srcdir/configure.in; then
13b2be9c
DJ
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1ad12f97 1127 cd $ac_popdir
13b2be9c
DJ
1128 done
1129fi
6840198f 1130
13b2be9c
DJ
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
c8615825 1134
ab509236 1135Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
1136This configure script is free software; the Free Software Foundation
1137gives unlimited permission to copy, distribute and modify it.
1138_ACEOF
1139 exit 0
1140fi
1141exec 5>config.log
1142cat >&5 <<_ACEOF
1143This file contains any messages produced by compilers while
1144running configure, to aid debugging if configure makes a mistake.
c8615825 1145
13b2be9c 1146It was created by $as_me, which was
ab509236 1147generated by GNU Autoconf 2.59. Invocation command line was
c8615825 1148
13b2be9c 1149 $ $0 $@
c8615825 1150
13b2be9c
DJ
1151_ACEOF
1152{
1153cat <<_ASUNAME
1154## --------- ##
1155## Platform. ##
1156## --------- ##
1157
1158hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1159uname -m = `(uname -m) 2>/dev/null || echo unknown`
1160uname -r = `(uname -r) 2>/dev/null || echo unknown`
1161uname -s = `(uname -s) 2>/dev/null || echo unknown`
1162uname -v = `(uname -v) 2>/dev/null || echo unknown`
1163
1164/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1165/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1166
1167/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1168/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1169/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1170hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1171/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1172/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1173/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1174
1175_ASUNAME
1176
1177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1178for as_dir in $PATH
1179do
1180 IFS=$as_save_IFS
1181 test -z "$as_dir" && as_dir=.
1182 echo "PATH: $as_dir"
1183done
9b2b7d69 1184
13b2be9c 1185} >&5
6840198f 1186
13b2be9c 1187cat >&5 <<_ACEOF
c8615825 1188
9b2b7d69 1189
13b2be9c
DJ
1190## ----------- ##
1191## Core tests. ##
1192## ----------- ##
87ccc1b0 1193
13b2be9c 1194_ACEOF
9b2b7d69 1195
13b2be9c
DJ
1196
1197# Keep a trace of the command line.
1198# Strip out --no-create and --no-recursion so they do not pile up.
1199# Strip out --silent because we don't want to record it for future runs.
1200# Also quote any args containing shell meta-characters.
1201# Make two passes to allow for proper duplicate-argument suppression.
1202ac_configure_args=
1203ac_configure_args0=
1204ac_configure_args1=
1205ac_sep=
1206ac_must_keep_next=false
1207for ac_pass in 1 2
1208do
1209 for ac_arg
1210 do
1211 case $ac_arg in
1212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 continue ;;
1216 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1217 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1218 esac
1219 case $ac_pass in
1220 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1221 2)
1222 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1223 if test $ac_must_keep_next = true; then
ab509236 1224 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1225 else
ab509236
L
1226 case $ac_arg in
1227 *=* | --config-cache | -C | -disable-* | --disable-* \
1228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1230 | -with-* | --with-* | -without-* | --without-* | --x)
1231 case "$ac_configure_args0 " in
1232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1233 esac
1234 ;;
1235 -* ) ac_must_keep_next=true ;;
1236 esac
13b2be9c
DJ
1237 fi
1238 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1239 # Get rid of the leading space.
1240 ac_sep=" "
c8615825
AM
1241 ;;
1242 esac
1243 done
13b2be9c
DJ
1244done
1245$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1246$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1247
1248# When interrupted or exit'd, cleanup temporary files, and complete
1249# config.log. We remove comments because anyway the quotes in there
1250# would cause problems or look ugly.
1251# WARNING: Be sure not to use single quotes in there, as some shells,
1252# such as our DU 5.0 friend, will then `close' the trap.
1253trap 'exit_status=$?
1254 # Save into config.log some information that might help in debugging.
1255 {
1256 echo
1257
1258 cat <<\_ASBOX
1259## ---------------- ##
1260## Cache variables. ##
1261## ---------------- ##
1262_ASBOX
1263 echo
1264 # The following way of writing the cache mishandles newlines in values,
1265{
1266 (set) 2>&1 |
1267 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1268 *ac_space=\ *)
1269 sed -n \
ab509236
L
1270 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13b2be9c
DJ
1272 ;;
1273 *)
1274 sed -n \
ab509236 1275 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
1276 ;;
1277 esac;
1278}
1279 echo
1280
1281 cat <<\_ASBOX
1282## ----------------- ##
1283## Output variables. ##
1284## ----------------- ##
1285_ASBOX
1286 echo
1287 for ac_var in $ac_subst_vars
1288 do
1289 eval ac_val=$`echo $ac_var`
1290 echo "$ac_var='"'"'$ac_val'"'"'"
1291 done | sort
1292 echo
1293
1294 if test -n "$ac_subst_files"; then
1295 cat <<\_ASBOX
1296## ------------- ##
1297## Output files. ##
1298## ------------- ##
1299_ASBOX
1300 echo
1301 for ac_var in $ac_subst_files
1302 do
1303 eval ac_val=$`echo $ac_var`
ab509236 1304 echo "$ac_var='"'"'$ac_val'"'"'"
13b2be9c
DJ
1305 done | sort
1306 echo
1307 fi
1308
1309 if test -s confdefs.h; then
1310 cat <<\_ASBOX
1311## ----------- ##
1312## confdefs.h. ##
1313## ----------- ##
1314_ASBOX
1315 echo
1316 sed "/^$/d" confdefs.h | sort
1317 echo
1318 fi
1319 test "$ac_signal" != 0 &&
1320 echo "$as_me: caught signal $ac_signal"
1321 echo "$as_me: exit $exit_status"
1322 } >&5
ab509236 1323 rm -f core *.core &&
13b2be9c
DJ
1324 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1325 exit $exit_status
1326 ' 0
1327for ac_signal in 1 2 13 15; do
1328 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1329done
1330ac_signal=0
1331
1332# confdefs.h avoids OS command line length limits that DEFS can exceed.
1333rm -rf conftest* confdefs.h
1334# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1335echo >confdefs.h
1336
1337# Predefined preprocessor variables.
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_NAME "$PACKAGE_NAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_VERSION "$PACKAGE_VERSION"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_STRING "$PACKAGE_STRING"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1361_ACEOF
1362
1363
1364# Let the site file select an alternate cache file if it wants to.
1365# Prefer explicitly selected file to automatically selected ones.
1366if test -z "$CONFIG_SITE"; then
1367 if test "x$prefix" != xNONE; then
1368 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1369 else
1370 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1371 fi
1372fi
1373for ac_site_file in $CONFIG_SITE; do
1374 if test -r "$ac_site_file"; then
1375 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1376echo "$as_me: loading site script $ac_site_file" >&6;}
1377 sed 's/^/| /' "$ac_site_file" >&5
1378 . "$ac_site_file"
1379 fi
1380done
1381
1382if test -r "$cache_file"; then
1383 # Some versions of bash will fail to source /dev/null (special
1384 # files actually), so we avoid doing that.
1385 if test -f "$cache_file"; then
1386 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1387echo "$as_me: loading cache $cache_file" >&6;}
1388 case $cache_file in
1389 [\\/]* | ?:[\\/]* ) . $cache_file;;
1390 *) . ./$cache_file;;
1391 esac
1392 fi
1393else
1394 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1395echo "$as_me: creating cache $cache_file" >&6;}
1396 >$cache_file
1397fi
1398
1399# Check that the precious variables saved in the cache have kept the same
1400# value.
1401ac_cache_corrupted=false
1402for ac_var in `(set) 2>&1 |
ab509236 1403 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13b2be9c
DJ
1404 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1405 eval ac_new_set=\$ac_env_${ac_var}_set
1406 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1407 eval ac_new_val="\$ac_env_${ac_var}_value"
1408 case $ac_old_set,$ac_new_set in
1409 set,)
1410 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1411echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1412 ac_cache_corrupted=: ;;
1413 ,set)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,);;
1418 *)
1419 if test "x$ac_old_val" != "x$ac_new_val"; then
ab509236 1420 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1421echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ab509236 1422 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
13b2be9c 1423echo "$as_me: former value: $ac_old_val" >&2;}
ab509236 1424 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
13b2be9c 1425echo "$as_me: current value: $ac_new_val" >&2;}
ab509236 1426 ac_cache_corrupted=:
13b2be9c
DJ
1427 fi;;
1428 esac
1429 # Pass precious variables to config.status.
1430 if test "$ac_new_set" = set; then
1431 case $ac_new_val in
1432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1433 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1434 *) ac_arg=$ac_var=$ac_new_val ;;
1435 esac
1436 case " $ac_configure_args " in
1437 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1438 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1439 esac
1440 fi
1441done
1442if $ac_cache_corrupted; then
1443 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1444echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1445 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1446echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1447 { (exit 1); exit 1; }; }
1448fi
1449
1450ac_ext=c
1451ac_cpp='$CPP $CPPFLAGS'
1452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1454ac_compiler_gnu=$ac_cv_c_compiler_gnu
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475ac_aux_dir=
1476for ac_dir in .. $srcdir/..; do
1477 if test -f $ac_dir/install-sh; then
1478 ac_aux_dir=$ac_dir
1479 ac_install_sh="$ac_aux_dir/install-sh -c"
1480 break
1481 elif test -f $ac_dir/install.sh; then
1482 ac_aux_dir=$ac_dir
1483 ac_install_sh="$ac_aux_dir/install.sh -c"
1484 break
1485 elif test -f $ac_dir/shtool; then
1486 ac_aux_dir=$ac_dir
1487 ac_install_sh="$ac_aux_dir/shtool install -c"
1488 break
1489 fi
1490done
1491if test -z "$ac_aux_dir"; then
1492 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1493echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1494 { (exit 1); exit 1; }; }
1495fi
1496ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1497ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1498ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1499
1500# Make sure we can run config.sub.
1501$ac_config_sub sun4 >/dev/null 2>&1 ||
1502 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1503echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1504 { (exit 1); exit 1; }; }
1505
1506echo "$as_me:$LINENO: checking build system type" >&5
1507echo $ECHO_N "checking build system type... $ECHO_C" >&6
1508if test "${ac_cv_build+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 ac_cv_build_alias=$build_alias
1512test -z "$ac_cv_build_alias" &&
1513 ac_cv_build_alias=`$ac_config_guess`
1514test -z "$ac_cv_build_alias" &&
1515 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1516echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1517 { (exit 1); exit 1; }; }
1518ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1519 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1520echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1521 { (exit 1); exit 1; }; }
1522
1523fi
1524echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1525echo "${ECHO_T}$ac_cv_build" >&6
1526build=$ac_cv_build
1527build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1528build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1529build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1530
1531
1532echo "$as_me:$LINENO: checking host system type" >&5
1533echo $ECHO_N "checking host system type... $ECHO_C" >&6
1534if test "${ac_cv_host+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537 ac_cv_host_alias=$host_alias
1538test -z "$ac_cv_host_alias" &&
1539 ac_cv_host_alias=$ac_cv_build_alias
1540ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1541 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1542echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1543 { (exit 1); exit 1; }; }
1544
1545fi
1546echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1547echo "${ECHO_T}$ac_cv_host" >&6
1548host=$ac_cv_host
1549host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1550host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1551host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552
1553
1554echo "$as_me:$LINENO: checking target system type" >&5
1555echo $ECHO_N "checking target system type... $ECHO_C" >&6
1556if test "${ac_cv_target+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558else
1559 ac_cv_target_alias=$target_alias
1560test "x$ac_cv_target_alias" = "x" &&
1561 ac_cv_target_alias=$ac_cv_host_alias
1562ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1564echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1566
1567fi
1568echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1569echo "${ECHO_T}$ac_cv_target" >&6
1570target=$ac_cv_target
1571target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574
1575
1576# The aliases save the names the user supplied, while $host etc.
1577# will get canonicalized.
1578test -n "$target_alias" &&
1579 test "$program_prefix$program_suffix$program_transform_name" = \
1580 NONENONEs,x,x, &&
1581 program_prefix=${target_alias}-
1582ac_ext=c
1583ac_cpp='$CPP $CPPFLAGS'
1584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1586ac_compiler_gnu=$ac_cv_c_compiler_gnu
1587if test -n "$ac_tool_prefix"; then
1588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1589set dummy ${ac_tool_prefix}gcc; ac_word=$2
1590echo "$as_me:$LINENO: checking for $ac_word" >&5
1591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592if test "${ac_cv_prog_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 if test -n "$CC"; then
1596 ac_cv_prog_CC="$CC" # Let the user override the test.
1597else
1598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1608 fi
1609done
1610done
1611
1612fi
1613fi
1614CC=$ac_cv_prog_CC
1615if test -n "$CC"; then
1616 echo "$as_me:$LINENO: result: $CC" >&5
1617echo "${ECHO_T}$CC" >&6
1618else
1619 echo "$as_me:$LINENO: result: no" >&5
1620echo "${ECHO_T}no" >&6
1621fi
1622
1623fi
1624if test -z "$ac_cv_prog_CC"; then
1625 ac_ct_CC=$CC
1626 # Extract the first word of "gcc", so it can be a program name with args.
1627set dummy gcc; ac_word=$2
1628echo "$as_me:$LINENO: checking for $ac_word" >&5
1629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 if test -n "$ac_ct_CC"; then
1634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1635else
1636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637for as_dir in $PATH
1638do
1639 IFS=$as_save_IFS
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643 ac_cv_prog_ac_ct_CC="gcc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 break 2
1646 fi
1647done
1648done
1649
1650fi
1651fi
1652ac_ct_CC=$ac_cv_prog_ac_ct_CC
1653if test -n "$ac_ct_CC"; then
1654 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1655echo "${ECHO_T}$ac_ct_CC" >&6
1656else
1657 echo "$as_me:$LINENO: result: no" >&5
1658echo "${ECHO_T}no" >&6
1659fi
1660
1661 CC=$ac_ct_CC
1662else
1663 CC="$ac_cv_prog_CC"
1664fi
1665
1666if test -z "$CC"; then
1667 if test -n "$ac_tool_prefix"; then
1668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1669set dummy ${ac_tool_prefix}cc; ac_word=$2
1670echo "$as_me:$LINENO: checking for $ac_word" >&5
1671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672if test "${ac_cv_prog_CC+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 if test -n "$CC"; then
1676 ac_cv_prog_CC="$CC" # Let the user override the test.
1677else
1678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679for as_dir in $PATH
1680do
1681 IFS=$as_save_IFS
1682 test -z "$as_dir" && as_dir=.
1683 for ac_exec_ext in '' $ac_executable_extensions; do
1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685 ac_cv_prog_CC="${ac_tool_prefix}cc"
1686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 break 2
1688 fi
1689done
1690done
1691
1692fi
1693fi
1694CC=$ac_cv_prog_CC
1695if test -n "$CC"; then
1696 echo "$as_me:$LINENO: result: $CC" >&5
1697echo "${ECHO_T}$CC" >&6
1698else
1699 echo "$as_me:$LINENO: result: no" >&5
1700echo "${ECHO_T}no" >&6
1701fi
1702
1703fi
1704if test -z "$ac_cv_prog_CC"; then
1705 ac_ct_CC=$CC
1706 # Extract the first word of "cc", so it can be a program name with args.
1707set dummy cc; ac_word=$2
1708echo "$as_me:$LINENO: checking for $ac_word" >&5
1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713 if test -n "$ac_ct_CC"; then
1714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715else
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_ac_ct_CC="cc"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1726 fi
1727done
1728done
1729
1730fi
1731fi
1732ac_ct_CC=$ac_cv_prog_ac_ct_CC
1733if test -n "$ac_ct_CC"; then
1734 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735echo "${ECHO_T}$ac_ct_CC" >&6
1736else
1737 echo "$as_me:$LINENO: result: no" >&5
1738echo "${ECHO_T}no" >&6
1739fi
1740
1741 CC=$ac_ct_CC
1742else
1743 CC="$ac_cv_prog_CC"
1744fi
1745
1746fi
1747if test -z "$CC"; then
1748 # Extract the first word of "cc", so it can be a program name with args.
1749set dummy cc; ac_word=$2
1750echo "$as_me:$LINENO: checking for $ac_word" >&5
1751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
1757else
1758 ac_prog_rejected=no
1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760for as_dir in $PATH
1761do
1762 IFS=$as_save_IFS
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1767 ac_prog_rejected=yes
1768 continue
1769 fi
1770 ac_cv_prog_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 break 2
1773 fi
1774done
1775done
1776
1777if test $ac_prog_rejected = yes; then
1778 # We found a bogon in the path, so make sure we never use it.
1779 set dummy $ac_cv_prog_CC
1780 shift
1781 if test $# != 0; then
1782 # We chose a different compiler from the bogus one.
1783 # However, it has the same basename, so the bogon will be chosen
1784 # first if we set CC to just the basename; use the full file name.
1785 shift
1786 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1787 fi
1788fi
1789fi
1790fi
1791CC=$ac_cv_prog_CC
1792if test -n "$CC"; then
1793 echo "$as_me:$LINENO: result: $CC" >&5
1794echo "${ECHO_T}$CC" >&6
1795else
1796 echo "$as_me:$LINENO: result: no" >&5
1797echo "${ECHO_T}no" >&6
1798fi
1799
1800fi
1801if test -z "$CC"; then
1802 if test -n "$ac_tool_prefix"; then
1803 for ac_prog in cl
1804 do
1805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1806set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818 IFS=$as_save_IFS
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 break 2
1825 fi
1826done
1827done
1828
1829fi
1830fi
1831CC=$ac_cv_prog_CC
1832if test -n "$CC"; then
1833 echo "$as_me:$LINENO: result: $CC" >&5
1834echo "${ECHO_T}$CC" >&6
1835else
1836 echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840 test -n "$CC" && break
1841 done
1842fi
1843if test -z "$CC"; then
1844 ac_ct_CC=$CC
1845 for ac_prog in cl
1846do
1847 # Extract the first word of "$ac_prog", so it can be a program name with args.
1848set dummy $ac_prog; ac_word=$2
1849echo "$as_me:$LINENO: checking for $ac_word" >&5
1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853else
1854 if test -n "$ac_ct_CC"; then
1855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1856else
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_ac_ct_CC="$ac_prog"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1867 fi
1868done
1869done
1870
1871fi
1872fi
1873ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874if test -n "$ac_ct_CC"; then
1875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876echo "${ECHO_T}$ac_ct_CC" >&6
1877else
1878 echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
1880fi
1881
1882 test -n "$ac_ct_CC" && break
1883done
1884
1885 CC=$ac_ct_CC
1886fi
1887
1888fi
1889
1890
1891test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1892See \`config.log' for more details." >&5
1893echo "$as_me: error: no acceptable C compiler found in \$PATH
1894See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
1896
1897# Provide some information about the compiler.
1898echo "$as_me:$LINENO:" \
1899 "checking for C compiler version" >&5
1900ac_compiler=`set X $ac_compile; echo $2`
1901{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1902 (eval $ac_compiler --version </dev/null >&5) 2>&5
1903 ac_status=$?
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }
1906{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1907 (eval $ac_compiler -v </dev/null >&5) 2>&5
1908 ac_status=$?
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); }
1911{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1912 (eval $ac_compiler -V </dev/null >&5) 2>&5
1913 ac_status=$?
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }
1916
1917cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1918/* confdefs.h. */
1919_ACEOF
1920cat confdefs.h >>conftest.$ac_ext
1921cat >>conftest.$ac_ext <<_ACEOF
1922/* end confdefs.h. */
1923
1924int
1925main ()
1926{
1927
1928 ;
1929 return 0;
1930}
1931_ACEOF
1932ac_clean_files_save=$ac_clean_files
1933ac_clean_files="$ac_clean_files a.out a.exe b.out"
1934# Try to create an executable without -o first, disregard a.out.
1935# It will help us diagnose broken compilers, and finding out an intuition
1936# of exeext.
ab509236
L
1937echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1938echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
13b2be9c
DJ
1939ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1940if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1941 (eval $ac_link_default) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 # Find the output, starting from the most likely. This scheme is
1946# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1947# resort.
1948
1949# Be careful to initialize this variable, since it used to be cached.
1950# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1951ac_cv_exeext=
1952# b.out is created by i960 compilers.
1953for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1954do
1955 test -f "$ac_file" || continue
1956 case $ac_file in
1957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ab509236 1958 ;;
13b2be9c 1959 conftest.$ac_ext )
ab509236
L
1960 # This is the source file.
1961 ;;
13b2be9c 1962 [ab].out )
ab509236
L
1963 # We found the default executable, but exeext='' is most
1964 # certainly right.
1965 break;;
13b2be9c 1966 *.* )
ab509236
L
1967 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1968 # FIXME: I believe we export ac_cv_exeext for Libtool,
1969 # but it would be cool to find out if it's true. Does anybody
1970 # maintain Libtool? --akim.
1971 export ac_cv_exeext
1972 break;;
13b2be9c 1973 * )
ab509236 1974 break;;
13b2be9c
DJ
1975 esac
1976done
1977else
1978 echo "$as_me: failed program was:" >&5
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1982See \`config.log' for more details." >&5
1983echo "$as_me: error: C compiler cannot create executables
1984See \`config.log' for more details." >&2;}
1985 { (exit 77); exit 77; }; }
1986fi
1987
1988ac_exeext=$ac_cv_exeext
1989echo "$as_me:$LINENO: result: $ac_file" >&5
1990echo "${ECHO_T}$ac_file" >&6
1991
1992# Check the compiler produces executables we can run. If not, either
1993# the compiler is broken, or we cross compile.
1994echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1995echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1996# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1997# If not cross compiling, check that we can run a simple program.
1998if test "$cross_compiling" != yes; then
1999 if { ac_try='./$ac_file'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 cross_compiling=no
2006 else
2007 if test "$cross_compiling" = maybe; then
2008 cross_compiling=yes
2009 else
2010 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2011If you meant to cross compile, use \`--host'.
2012See \`config.log' for more details." >&5
2013echo "$as_me: error: cannot run C compiled programs.
2014If you meant to cross compile, use \`--host'.
2015See \`config.log' for more details." >&2;}
2016 { (exit 1); exit 1; }; }
2017 fi
2018 fi
2019fi
2020echo "$as_me:$LINENO: result: yes" >&5
2021echo "${ECHO_T}yes" >&6
2022
2023rm -f a.out a.exe conftest$ac_cv_exeext b.out
2024ac_clean_files=$ac_clean_files_save
2025# Check the compiler produces executables we can run. If not, either
2026# the compiler is broken, or we cross compile.
2027echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2028echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2029echo "$as_me:$LINENO: result: $cross_compiling" >&5
2030echo "${ECHO_T}$cross_compiling" >&6
2031
2032echo "$as_me:$LINENO: checking for suffix of executables" >&5
2033echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2035 (eval $ac_link) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; then
2039 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2040# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2041# work properly (i.e., refer to `conftest.exe'), while it won't with
2042# `rm'.
2043for ac_file in conftest.exe conftest conftest.*; do
2044 test -f "$ac_file" || continue
2045 case $ac_file in
2046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2047 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236
L
2048 export ac_cv_exeext
2049 break;;
13b2be9c
DJ
2050 * ) break;;
2051 esac
2052done
2053else
2054 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2055See \`config.log' for more details." >&5
2056echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2057See \`config.log' for more details." >&2;}
2058 { (exit 1); exit 1; }; }
2059fi
2060
2061rm -f conftest$ac_cv_exeext
2062echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2063echo "${ECHO_T}$ac_cv_exeext" >&6
2064
2065rm -f conftest.$ac_ext
2066EXEEXT=$ac_cv_exeext
2067ac_exeext=$EXEEXT
2068echo "$as_me:$LINENO: checking for suffix of object files" >&5
2069echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2070if test "${ac_cv_objext+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2074/* confdefs.h. */
2075_ACEOF
2076cat confdefs.h >>conftest.$ac_ext
2077cat >>conftest.$ac_ext <<_ACEOF
2078/* end confdefs.h. */
2079
2080int
2081main ()
2082{
2083
2084 ;
2085 return 0;
2086}
2087_ACEOF
2088rm -f conftest.o conftest.obj
2089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090 (eval $ac_compile) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; then
2094 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2095 case $ac_file in
2096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2098 break;;
2099 esac
2100done
2101else
2102 echo "$as_me: failed program was:" >&5
2103sed 's/^/| /' conftest.$ac_ext >&5
2104
2105{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2106See \`config.log' for more details." >&5
2107echo "$as_me: error: cannot compute suffix of object files: cannot compile
2108See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2110fi
2111
2112rm -f conftest.$ac_cv_objext conftest.$ac_ext
2113fi
2114echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2115echo "${ECHO_T}$ac_cv_objext" >&6
2116OBJEXT=$ac_cv_objext
2117ac_objext=$OBJEXT
2118echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2119echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2120if test "${ac_cv_c_compiler_gnu+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2124/* confdefs.h. */
2125_ACEOF
2126cat confdefs.h >>conftest.$ac_ext
2127cat >>conftest.$ac_ext <<_ACEOF
2128/* end confdefs.h. */
2129
2130int
2131main ()
2132{
2133#ifndef __GNUC__
2134 choke me
2135#endif
2136
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141rm -f conftest.$ac_objext
2142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2143 (eval $ac_compile) 2>conftest.er1
13b2be9c 2144 ac_status=$?
ab509236
L
2145 grep -v '^ *+' conftest.er1 >conftest.err
2146 rm -f conftest.er1
2147 cat conftest.err >&5
13b2be9c
DJ
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
1ad12f97
NC
2150 { ac_try='test -z "$ac_c_werror_flag"
2151 || test ! -s conftest.err'
ab509236
L
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2163 ac_compiler_gnu=yes
2164else
2165 echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168ac_compiler_gnu=no
2169fi
ab509236 2170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2171ac_cv_c_compiler_gnu=$ac_compiler_gnu
2172
2173fi
2174echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2175echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2176GCC=`test $ac_compiler_gnu = yes && echo yes`
2177ac_test_CFLAGS=${CFLAGS+set}
2178ac_save_CFLAGS=$CFLAGS
2179CFLAGS="-g"
2180echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2181echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2182if test "${ac_cv_prog_cc_g+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2186/* confdefs.h. */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
2190/* end confdefs.h. */
2191
2192int
2193main ()
2194{
2195
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2202 (eval $ac_compile) 2>conftest.er1
13b2be9c 2203 ac_status=$?
ab509236
L
2204 grep -v '^ *+' conftest.er1 >conftest.err
2205 rm -f conftest.er1
2206 cat conftest.err >&5
13b2be9c
DJ
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
1ad12f97
NC
2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
ab509236
L
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; } &&
2216 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 ac_cv_prog_cc_g=yes
2223else
2224 echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_cv_prog_cc_g=no
2228fi
ab509236 2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2230fi
2231echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2232echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2233if test "$ac_test_CFLAGS" = set; then
2234 CFLAGS=$ac_save_CFLAGS
2235elif test $ac_cv_prog_cc_g = yes; then
2236 if test "$GCC" = yes; then
2237 CFLAGS="-g -O2"
2238 else
2239 CFLAGS="-g"
2240 fi
2241else
2242 if test "$GCC" = yes; then
2243 CFLAGS="-O2"
2244 else
2245 CFLAGS=
2246 fi
2247fi
2248echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2249echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2250if test "${ac_cv_prog_cc_stdc+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253 ac_cv_prog_cc_stdc=no
2254ac_save_CC=$CC
2255cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2256/* confdefs.h. */
2257_ACEOF
2258cat confdefs.h >>conftest.$ac_ext
2259cat >>conftest.$ac_ext <<_ACEOF
2260/* end confdefs.h. */
2261#include <stdarg.h>
2262#include <stdio.h>
2263#include <sys/types.h>
2264#include <sys/stat.h>
2265/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2266struct buf { int x; };
2267FILE * (*rcsopen) (struct buf *, struct stat *, int);
2268static char *e (p, i)
2269 char **p;
2270 int i;
2271{
2272 return p[i];
2273}
2274static char *f (char * (*g) (char **, int), char **p, ...)
2275{
2276 char *s;
2277 va_list v;
2278 va_start (v,p);
2279 s = g (p, va_arg (v,int));
2280 va_end (v);
2281 return s;
2282}
ab509236
L
2283
2284/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2285 function prototypes and stuff, but not '\xHH' hex character constants.
2286 These don't provoke an error unfortunately, instead are silently treated
2287 as 'x'. The following induces an error, until -std1 is added to get
2288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2289 array size at least. It's necessary to write '\x00'==0 to get something
2290 that's true only with -std1. */
2291int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2292
13b2be9c
DJ
2293int test (int i, double x);
2294struct s1 {int (*f) (int a);};
2295struct s2 {int (*f) (double a);};
2296int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2297int argc;
2298char **argv;
2299int
2300main ()
2301{
2302return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307# Don't try gcc -ansi; that turns off useful extensions and
2308# breaks some systems' header files.
2309# AIX -qlanglvl=ansi
2310# Ultrix and OSF/1 -std1
2311# HP-UX 10.20 and later -Ae
2312# HP-UX older versions -Aa -D_HPUX_SOURCE
2313# SVR4 -Xc -D__EXTENSIONS__
2314for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2315do
2316 CC="$ac_save_CC $ac_arg"
2317 rm -f conftest.$ac_objext
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2319 (eval $ac_compile) 2>conftest.er1
13b2be9c 2320 ac_status=$?
ab509236
L
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
13b2be9c
DJ
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
1ad12f97
NC
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
ab509236
L
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 ac_cv_prog_cc_stdc=$ac_arg
2340break
2341else
2342 echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345fi
ab509236 2346rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2347done
2348rm -f conftest.$ac_ext conftest.$ac_objext
2349CC=$ac_save_CC
2350
2351fi
2352
2353case "x$ac_cv_prog_cc_stdc" in
2354 x|xno)
2355 echo "$as_me:$LINENO: result: none needed" >&5
2356echo "${ECHO_T}none needed" >&6 ;;
2357 *)
2358 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2359echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2360 CC="$CC $ac_cv_prog_cc_stdc" ;;
2361esac
2362
2363# Some people use a C++ compiler to compile C. Since we use `exit',
2364# in C++ we need to declare it. In case someone uses the same compiler
2365# for both compiling C and C++ we need to have the C++ compiler decide
2366# the declaration of exit, since it's the most demanding environment.
2367cat >conftest.$ac_ext <<_ACEOF
2368#ifndef __cplusplus
2369 choke me
2370#endif
2371_ACEOF
2372rm -f conftest.$ac_objext
2373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2374 (eval $ac_compile) 2>conftest.er1
13b2be9c 2375 ac_status=$?
ab509236
L
2376 grep -v '^ *+' conftest.er1 >conftest.err
2377 rm -f conftest.er1
2378 cat conftest.err >&5
13b2be9c
DJ
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
1ad12f97
NC
2381 { ac_try='test -z "$ac_c_werror_flag"
2382 || test ! -s conftest.err'
ab509236
L
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; } &&
2388 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; }; then
2394 for ac_declaration in \
ab509236 2395 '' \
13b2be9c
DJ
2396 'extern "C" void std::exit (int) throw (); using std::exit;' \
2397 'extern "C" void std::exit (int); using std::exit;' \
2398 'extern "C" void exit (int) throw ();' \
2399 'extern "C" void exit (int);' \
2400 'void exit (int);'
2401do
2402 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2403/* confdefs.h. */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h. */
13dfd2d0 2408$ac_declaration
ab509236 2409#include <stdlib.h>
13b2be9c
DJ
2410int
2411main ()
2412{
2413exit (42);
2414 ;
2415 return 0;
2416}
2417_ACEOF
2418rm -f conftest.$ac_objext
2419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2420 (eval $ac_compile) 2>conftest.er1
13b2be9c 2421 ac_status=$?
ab509236
L
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
13b2be9c
DJ
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
1ad12f97
NC
2427 { ac_try='test -z "$ac_c_werror_flag"
2428 || test ! -s conftest.err'
ab509236
L
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 :
2441else
2442 echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445continue
2446fi
ab509236 2447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2448 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2449/* confdefs.h. */
2450_ACEOF
2451cat confdefs.h >>conftest.$ac_ext
2452cat >>conftest.$ac_ext <<_ACEOF
2453/* end confdefs.h. */
2454$ac_declaration
2455int
2456main ()
2457{
2458exit (42);
2459 ;
2460 return 0;
2461}
2462_ACEOF
2463rm -f conftest.$ac_objext
2464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2465 (eval $ac_compile) 2>conftest.er1
13b2be9c 2466 ac_status=$?
ab509236
L
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
13b2be9c
DJ
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
1ad12f97
NC
2472 { ac_try='test -z "$ac_c_werror_flag"
2473 || test ! -s conftest.err'
ab509236
L
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; } &&
2479 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 (eval $ac_try) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2485 break
2486else
2487 echo "$as_me: failed program was:" >&5
2488sed 's/^/| /' conftest.$ac_ext >&5
2489
2490fi
ab509236 2491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2492done
2493rm -f conftest*
2494if test -n "$ac_declaration"; then
2495 echo '#ifdef __cplusplus' >>confdefs.h
2496 echo $ac_declaration >>confdefs.h
2497 echo '#endif' >>confdefs.h
2498fi
2499
2500else
2501 echo "$as_me: failed program was:" >&5
2502sed 's/^/| /' conftest.$ac_ext >&5
2503
2504fi
ab509236 2505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2506ac_ext=c
2507ac_cpp='$CPP $CPPFLAGS'
2508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511
2512
ab509236
L
2513echo "$as_me:$LINENO: checking for library containing strerror" >&5
2514echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2515if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
ab509236
L
2518 ac_func_search_save_LIBS=$LIBS
2519ac_cv_search_strerror=no
13b2be9c 2520cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2521/* confdefs.h. */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h. */
2526
2527/* Override any gcc2 internal prototype to avoid an error. */
2528#ifdef __cplusplus
2529extern "C"
2530#endif
2531/* We use char because int might match the return type of a gcc2
2532 builtin and then its argument prototype would still apply. */
2533char strerror ();
2534int
2535main ()
2536{
2537strerror ();
2538 ;
2539 return 0;
2540}
2541_ACEOF
2542rm -f conftest.$ac_objext conftest$ac_exeext
2543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2544 (eval $ac_link) 2>conftest.er1
13b2be9c 2545 ac_status=$?
ab509236
L
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
13b2be9c
DJ
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
1ad12f97
NC
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
ab509236
L
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
ab509236 2564 ac_cv_search_strerror="none required"
13b2be9c
DJ
2565else
2566 echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
13b2be9c 2569fi
ab509236
L
2570rm -f conftest.err conftest.$ac_objext \
2571 conftest$ac_exeext conftest.$ac_ext
2572if test "$ac_cv_search_strerror" = no; then
2573 for ac_lib in cposix; do
2574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2575 cat >conftest.$ac_ext <<_ACEOF
2576/* confdefs.h. */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h. */
2581
2582/* Override any gcc2 internal prototype to avoid an error. */
2583#ifdef __cplusplus
2584extern "C"
2585#endif
2586/* We use char because int might match the return type of a gcc2
2587 builtin and then its argument prototype would still apply. */
2588char strerror ();
2589int
2590main ()
2591{
2592strerror ();
2593 ;
2594 return 0;
2595}
2596_ACEOF
2597rm -f conftest.$ac_objext conftest$ac_exeext
2598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599 (eval $ac_link) 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
1ad12f97
NC
2606 { ac_try='test -z "$ac_c_werror_flag"
2607 || test ! -s conftest.err'
ab509236
L
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest$ac_exeext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 ac_cv_search_strerror="-l$ac_lib"
2620break
2621else
2622 echo "$as_me: failed program was:" >&5
2623sed 's/^/| /' conftest.$ac_ext >&5
2624
13b2be9c 2625fi
ab509236
L
2626rm -f conftest.err conftest.$ac_objext \
2627 conftest$ac_exeext conftest.$ac_ext
2628 done
13b2be9c 2629fi
ab509236
L
2630LIBS=$ac_func_search_save_LIBS
2631fi
2632echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2633echo "${ECHO_T}$ac_cv_search_strerror" >&6
2634if test "$ac_cv_search_strerror" != no; then
2635 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2636
ab509236 2637fi
13b2be9c
DJ
2638
2639
2640BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2641am__api_version="1.9"
13b2be9c
DJ
2642# Find a good install program. We prefer a C program (faster),
2643# so one script is as good as another. But avoid the broken or
2644# incompatible versions:
2645# SysV /etc/install, /usr/sbin/install
2646# SunOS /usr/etc/install
2647# IRIX /sbin/install
2648# AIX /bin/install
2649# AmigaOS /C/install, which installs bootblocks on floppy discs
2650# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2651# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2652# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2653# OS/2's system install, which has a completely different semantic
13b2be9c
DJ
2654# ./install, which can be erroneously created by make from ./install.sh.
2655echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2656echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2657if test -z "$INSTALL"; then
2658if test "${ac_cv_path_install+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 # Account for people who put trailing slashes in PATH elements.
2667case $as_dir/ in
2668 ./ | .// | /cC/* | \
2669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2670 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2671 /usr/ucb/* ) ;;
2672 *)
2673 # OSF1 and SCO ODT 3.0 have their own names for install.
2674 # Don't use installbsd from OSF since it installs stuff as root
2675 # by default.
2676 for ac_prog in ginstall scoinst install; do
2677 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2678 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2679 if test $ac_prog = install &&
2680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2681 # AIX install. It has an incompatible calling convention.
2682 :
2683 elif test $ac_prog = install &&
2684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685 # program-specific install script used by HP pwplus--don't use.
2686 :
2687 else
2688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2689 break 3
2690 fi
2691 fi
13b2be9c
DJ
2692 done
2693 done
2694 ;;
2695esac
2696done
2697
252b5132
RH
2698
2699fi
2700 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2701 INSTALL=$ac_cv_path_install
252b5132
RH
2702 else
2703 # As a last resort, use the slow shell script. We don't cache a
2704 # path for INSTALL within a source directory, because that will
2705 # break other packages using the cache if that directory is
2706 # removed, or if the path is relative.
13b2be9c 2707 INSTALL=$ac_install_sh
252b5132
RH
2708 fi
2709fi
13b2be9c
DJ
2710echo "$as_me:$LINENO: result: $INSTALL" >&5
2711echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2712
2713# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2714# It thinks the first close brace ends the variable substitution.
2715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2716
13b2be9c 2717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2718
2719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2720
13b2be9c
DJ
2721echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2722echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2723# Just in case
2724sleep 1
13b2be9c 2725echo timestamp > conftest.file
252b5132
RH
2726# Do `set' in a subshell so we don't clobber the current shell's
2727# arguments. Must try -L first in case configure is actually a
2728# symlink; some systems play weird games with the mod time of symlinks
2729# (eg FreeBSD returns the mod time of the symlink's containing
2730# directory).
2731if (
13b2be9c 2732 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2733 if test "$*" = "X"; then
2734 # -L didn't work.
13b2be9c 2735 set X `ls -t $srcdir/configure conftest.file`
252b5132 2736 fi
13b2be9c
DJ
2737 rm -f conftest.file
2738 if test "$*" != "X $srcdir/configure conftest.file" \
2739 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2740
2741 # If neither matched, then we have a broken ls. This can happen
2742 # if, for instance, CONFIG_SHELL is bash and it inherits a
2743 # broken ls alias from the environment. This has actually
2744 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2745 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2746alias in your environment" >&5
2747echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2748alias in your environment" >&2;}
2749 { (exit 1); exit 1; }; }
252b5132
RH
2750 fi
2751
13b2be9c
DJ
2752 test "$2" = conftest.file
2753 )
2754then
2755 # Ok.
2756 :
2757else
2758 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2759Check your system clock" >&5
2760echo "$as_me: error: newly created file is older than distributed files!
2761Check your system clock" >&2;}
2762 { (exit 1); exit 1; }; }
2763fi
2764echo "$as_me:$LINENO: result: yes" >&5
2765echo "${ECHO_T}yes" >&6
2766test "$program_prefix" != NONE &&
2767 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2768# Use a double $ so make ignores it.
2769test "$program_suffix" != NONE &&
2770 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2771# Double any \ or $. echo might interpret backslashes.
2772# By default was `s,x,x', remove it if useless.
2773cat <<\_ACEOF >conftest.sed
2774s/[\\$]/&&/g;s/;s,x,x,$//
2775_ACEOF
2776program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2777rm conftest.sed
2778
13b2be9c
DJ
2779# expand $ac_aux_dir to an absolute path
2780am_aux_dir=`cd $ac_aux_dir && pwd`
2781
2782test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2783# Use eval to expand $SHELL
2784if eval "$MISSING --run true"; then
2785 am_missing_run="$MISSING --run "
2786else
2787 am_missing_run=
2788 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2789echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2790fi
2791
4b363073 2792if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2793 # We used to keeping the `.' as first argument, in order to
2794 # allow $(mkdir_p) to be used without argument. As in
ab509236 2795 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2796 # where $(somedir) is conditionally defined. However this is wrong
2797 # for two reasons:
2798 # 1. if the package is installed by a user who cannot write `.'
2799 # make install will fail,
2800 # 2. the above comment should most certainly read
2801 # $(mkdir_p) $(DESTDIR)$(somedir)
2802 # so it does not work when $(somedir) is undefined and
2803 # $(DESTDIR) is not.
2804 # To support the latter case, we have to write
2805 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2806 # so the `.' trick is pointless.
2807 mkdir_p='mkdir -p --'
ab509236
L
2808else
2809 # On NextStep and OpenStep, the `mkdir' command does not
2810 # recognize any option. It will interpret all options as
2811 # directories to create, and then abort because `.' already
2812 # exists.
4b363073 2813 for d in ./-p ./--version;
ab509236
L
2814 do
2815 test -d $d && rmdir $d
2816 done
2817 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2818 if test -f "$ac_aux_dir/mkinstalldirs"; then
2819 mkdir_p='$(mkinstalldirs)'
2820 else
2821 mkdir_p='$(install_sh) -d'
2822 fi
2823fi
2824
13b2be9c
DJ
2825for ac_prog in gawk mawk nawk awk
2826do
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828set dummy $ac_prog; ac_word=$2
2829echo "$as_me:$LINENO: checking for $ac_word" >&5
2830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831if test "${ac_cv_prog_AWK+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833else
2834 if test -n "$AWK"; then
2835 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_AWK="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848done
2849done
2850
2851fi
2852fi
2853AWK=$ac_cv_prog_AWK
2854if test -n "$AWK"; then
2855 echo "$as_me:$LINENO: result: $AWK" >&5
2856echo "${ECHO_T}$AWK" >&6
2857else
2858 echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6
2860fi
2861
2862 test -n "$AWK" && break
2863done
2864
2865echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2866echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2867set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2868if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870else
2871 cat >conftest.make <<\_ACEOF
2872all:
2873 @echo 'ac_maketemp="$(MAKE)"'
2874_ACEOF
2875# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2876eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2877if test -n "$ac_maketemp"; then
2878 eval ac_cv_prog_make_${ac_make}_set=yes
2879else
2880 eval ac_cv_prog_make_${ac_make}_set=no
2881fi
2882rm -f conftest.make
2883fi
2884if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2885 echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
2887 SET_MAKE=
2888else
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891 SET_MAKE="MAKE=${MAKE-make}"
2892fi
2893
2894rm -rf .tst 2>/dev/null
2895mkdir .tst 2>/dev/null
2896if test -d .tst; then
2897 am__leading_dot=.
2898else
2899 am__leading_dot=_
2900fi
2901rmdir .tst 2>/dev/null
2902
2903DEPDIR="${am__leading_dot}deps"
2904
2905 ac_config_commands="$ac_config_commands depfiles"
2906
2907
2908am_make=${MAKE-make}
2909cat > confinc << 'END'
2910am__doit:
2911 @echo done
2912.PHONY: am__doit
2913END
2914# If we don't find an include directive, just comment out the code.
2915echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2916echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2917am__include="#"
2918am__quote=
2919_am_result=none
2920# First try GNU make style include.
2921echo "include confinc" > confmf
2922# We grep out `Entering directory' and `Leaving directory'
2923# messages which can occur if `w' ends up in MAKEFLAGS.
2924# In particular we don't look at `^make:' because GNU make might
2925# be invoked under some other name (usually "gmake"), in which
2926# case it prints its new name instead of `make'.
2927if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2928 am__include=include
2929 am__quote=
2930 _am_result=GNU
2931fi
2932# Now try BSD make style include.
2933if test "$am__include" = "#"; then
2934 echo '.include "confinc"' > confmf
2935 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2936 am__include=.include
2937 am__quote="\""
2938 _am_result=BSD
2939 fi
2940fi
2941
2942
2943echo "$as_me:$LINENO: result: $_am_result" >&5
2944echo "${ECHO_T}$_am_result" >&6
2945rm -f confinc confmf
2946
2947# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2948if test "${enable_dependency_tracking+set}" = set; then
2949 enableval="$enable_dependency_tracking"
2950
2951fi;
2952if test "x$enable_dependency_tracking" != xno; then
2953 am_depcomp="$ac_aux_dir/depcomp"
2954 AMDEPBACKSLASH='\'
2955fi
2956
2957
2958if test "x$enable_dependency_tracking" != xno; then
2959 AMDEP_TRUE=
2960 AMDEP_FALSE='#'
2961else
2962 AMDEP_TRUE='#'
2963 AMDEP_FALSE=
2964fi
2965
2966
2967
ab509236 2968# test to see if srcdir already configured
13b2be9c
DJ
2969if test "`cd $srcdir && pwd`" != "`pwd`" &&
2970 test -f $srcdir/config.status; then
2971 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2972echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2973 { (exit 1); exit 1; }; }
2974fi
2975
2976# test whether we have cygpath
2977if test -z "$CYGPATH_W"; then
2978 if (cygpath --version) >/dev/null 2>/dev/null; then
2979 CYGPATH_W='cygpath -w'
2980 else
2981 CYGPATH_W=echo
2982 fi
2983fi
2984
2985
2986# Define the identity of the package.
2987 PACKAGE=gas
2988 VERSION=${BFD_VERSION}
2989
2990
2991cat >>confdefs.h <<_ACEOF
2992#define PACKAGE "$PACKAGE"
2993_ACEOF
2994
2995
2996cat >>confdefs.h <<_ACEOF
2997#define VERSION "$VERSION"
2998_ACEOF
2999
3000# Some tools Automake needs.
3001
3002ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3003
3004
3005AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3006
3007
3008AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3009
3010
3011AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3012
3013
3014MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3015
13b2be9c
DJ
3016install_sh=${install_sh-"$am_aux_dir/install-sh"}
3017
3018# Installed binaries are usually stripped using `strip' when the user
3019# run `make install-strip'. However `strip' might not be the right
3020# tool to use in cross-compilation environments, therefore Automake
3021# will honor the `STRIP' environment variable to overrule this program.
3022if test "$cross_compiling" != no; then
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3025set dummy ${ac_tool_prefix}strip; ac_word=$2
3026echo "$as_me:$LINENO: checking for $ac_word" >&5
3027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028if test "${ac_cv_prog_STRIP+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031 if test -n "$STRIP"; then
3032 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3033else
13b2be9c
DJ
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3044 fi
3045done
3046done
3047
252b5132 3048fi
13b2be9c
DJ
3049fi
3050STRIP=$ac_cv_prog_STRIP
3051if test -n "$STRIP"; then
3052 echo "$as_me:$LINENO: result: $STRIP" >&5
3053echo "${ECHO_T}$STRIP" >&6
c8615825 3054else
13b2be9c
DJ
3055 echo "$as_me:$LINENO: result: no" >&5
3056echo "${ECHO_T}no" >&6
c8615825 3057fi
c8615825 3058
13b2be9c
DJ
3059fi
3060if test -z "$ac_cv_prog_STRIP"; then
3061 ac_ct_STRIP=$STRIP
3062 # Extract the first word of "strip", so it can be a program name with args.
3063set dummy strip; ac_word=$2
3064echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 3068else
13b2be9c
DJ
3069 if test -n "$ac_ct_STRIP"; then
3070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3071else
13b2be9c
DJ
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_ac_ct_STRIP="strip"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083done
3084done
3085
3086 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3087fi
252b5132 3088fi
13b2be9c
DJ
3089ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3090if test -n "$ac_ct_STRIP"; then
3091 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3092echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3093else
13b2be9c
DJ
3094 echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6
252b5132
RH
3096fi
3097
13b2be9c
DJ
3098 STRIP=$ac_ct_STRIP
3099else
3100 STRIP="$ac_cv_prog_STRIP"
3101fi
d6d788bd 3102
252b5132 3103fi
13b2be9c 3104INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3105
13b2be9c
DJ
3106# We need awk for the "check" target. The system "awk" is bad on
3107# some platforms.
8ea2b00f
AM
3108# Always define AMTAR for backward compatibility.
3109
3110AMTAR=${AMTAR-"${am_missing_run}tar"}
3111
3112am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3113
3114
252b5132 3115
d6d788bd 3116
13b2be9c 3117depcc="$CC" am_compiler_list=
d6d788bd 3118
13b2be9c
DJ
3119echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3120echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3121if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3123else
13b2be9c
DJ
3124 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3125 # We make a subdir and do the tests there. Otherwise we can end up
3126 # making bogus files that we don't know about and never remove. For
3127 # instance it was reported that on HP-UX the gcc test will end up
3128 # making a dummy file named `D' -- because `-MD' means `put the output
3129 # in D'.
3130 mkdir conftest.dir
3131 # Copy depcomp to subdir because otherwise we won't find it if we're
3132 # using a relative directory.
3133 cp "$am_depcomp" conftest.dir
3134 cd conftest.dir
3135 # We will build objects and dependencies in a subdirectory because
3136 # it helps to detect inapplicable dependency modes. For instance
3137 # both Tru64's cc and ICC support -MD to output dependencies as a
3138 # side effect of compilation, but ICC will put the dependencies in
3139 # the current directory while Tru64 will put them in the object
3140 # directory.
3141 mkdir sub
252b5132 3142
13b2be9c
DJ
3143 am_cv_CC_dependencies_compiler_type=none
3144 if test "$am_compiler_list" = ""; then
3145 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3146 fi
3147 for depmode in $am_compiler_list; do
3148 # Setup a source with many dependencies, because some compilers
3149 # like to wrap large dependency lists on column 80 (with \), and
3150 # we should not choose a depcomp mode which is confused by this.
3151 #
3152 # We need to recreate these files for each test, as the compiler may
3153 # overwrite some of them when testing with obscure command lines.
3154 # This happens at least with the AIX C compiler.
3155 : > sub/conftest.c
3156 for i in 1 2 3 4 5 6; do
3157 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3158 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3159 # Solaris 8's {/usr,}/bin/sh.
3160 touch sub/conftst$i.h
13b2be9c
DJ
3161 done
3162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3163
3164 case $depmode in
3165 nosideeffect)
3166 # after this tag, mechanisms are not by side-effect, so they'll
3167 # only be used when explicitly requested
3168 if test "x$enable_dependency_tracking" = xyes; then
3169 continue
3170 else
3171 break
3172 fi
3173 ;;
3174 none) break ;;
3175 esac
3176 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3177 # mode. It turns out that the SunPro C++ compiler does not properly
3178 # handle `-M -o', and we need to detect this.
3179 if depmode=$depmode \
3180 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3182 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3183 >/dev/null 2>conftest.err &&
3184 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3185 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3186 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3187 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3188 # or remarks (even with -Werror). So we grep stderr for any message
3189 # that says an option was ignored or not supported.
3190 # When given -MP, icc 7.0 and 7.1 complain thusly:
3191 # icc: Command line warning: ignoring option '-M'; no argument required
3192 # The diagnosis changed in icc 8.0:
3193 # icc: Command line remark: option '-MP' not supported
3194 if (grep 'ignoring option' conftest.err ||
3195 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3196 am_cv_CC_dependencies_compiler_type=$depmode
3197 break
3198 fi
3199 fi
3200 done
252b5132 3201
13b2be9c
DJ
3202 cd ..
3203 rm -rf conftest.dir
252b5132 3204else
13b2be9c 3205 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3206fi
3207
252b5132 3208fi
13b2be9c
DJ
3209echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3210echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3211CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3212
13b2be9c
DJ
3213
3214
3215if
3216 test "x$enable_dependency_tracking" != xno \
3217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3218 am__fastdepCC_TRUE=
3219 am__fastdepCC_FALSE='#'
252b5132 3220else
13b2be9c
DJ
3221 am__fastdepCC_TRUE='#'
3222 am__fastdepCC_FALSE=
252b5132
RH
3223fi
3224
d6d788bd
L
3225
3226
13b2be9c 3227
ce2cded5
L
3228ac_ext=c
3229ac_cpp='$CPP $CPPFLAGS'
3230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3235set dummy ${ac_tool_prefix}gcc; ac_word=$2
3236echo "$as_me:$LINENO: checking for $ac_word" >&5
3237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238if test "${ac_cv_prog_CC+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3240else
ce2cded5
L
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3243else
ce2cded5
L
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 break 2
3254 fi
3255done
3256done
d7040cdb 3257
ce2cded5
L
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
3262 echo "$as_me:$LINENO: result: $CC" >&5
3263echo "${ECHO_T}$CC" >&6
bedf545c 3264else
ce2cded5
L
3265 echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
3267fi
d7040cdb 3268
ce2cded5
L
3269fi
3270if test -z "$ac_cv_prog_CC"; then
3271 ac_ct_CC=$CC
3272 # Extract the first word of "gcc", so it can be a program name with args.
3273set dummy gcc; ac_word=$2
3274echo "$as_me:$LINENO: checking for $ac_word" >&5
3275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278else
ce2cded5
L
3279 if test -n "$ac_ct_CC"; then
3280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3281else
d7040cdb
SE
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
ce2cded5
L
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_ac_ct_CC="gcc"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
d7040cdb 3292 fi
ce2cded5 3293done
d7040cdb
SE
3294done
3295
ce2cded5
L
3296fi
3297fi
3298ac_ct_CC=$ac_cv_prog_ac_ct_CC
3299if test -n "$ac_ct_CC"; then
3300 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3301echo "${ECHO_T}$ac_ct_CC" >&6
3302else
3303 echo "$as_me:$LINENO: result: no" >&5
3304echo "${ECHO_T}no" >&6
d7040cdb
SE
3305fi
3306
ce2cded5
L
3307 CC=$ac_ct_CC
3308else
3309 CC="$ac_cv_prog_CC"
3310fi
d7040cdb 3311
ce2cded5
L
3312if test -z "$CC"; then
3313 if test -n "$ac_tool_prefix"; then
3314 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3315set dummy ${ac_tool_prefix}cc; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
ce2cded5
L
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3323else
ce2cded5
L
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_CC="${ac_tool_prefix}cc"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336done
d7040cdb 3337
252b5132
RH
3338fi
3339fi
ce2cded5
L
3340CC=$ac_cv_prog_CC
3341if test -n "$CC"; then
3342 echo "$as_me:$LINENO: result: $CC" >&5
3343echo "${ECHO_T}$CC" >&6
252b5132 3344else
13b2be9c
DJ
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
252b5132 3347fi
d7040cdb 3348
252b5132 3349fi
ce2cded5
L
3350if test -z "$ac_cv_prog_CC"; then
3351 ac_ct_CC=$CC
3352 # Extract the first word of "cc", so it can be a program name with args.
3353set dummy cc; ac_word=$2
d7040cdb
SE
3354echo "$as_me:$LINENO: checking for $ac_word" >&5
3355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3356if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13b2be9c 3357 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3358else
ce2cded5
L
3359 if test -n "$ac_ct_CC"; then
3360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3369 ac_cv_prog_ac_ct_CC="cc"
d7040cdb
SE
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373done
3374done
ac48eca1 3375
d7040cdb
SE
3376fi
3377fi
ce2cded5
L
3378ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379if test -n "$ac_ct_CC"; then
3380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3381echo "${ECHO_T}$ac_ct_CC" >&6
3382else
3383 echo "$as_me:$LINENO: result: no" >&5
d7040cdb
SE
3384echo "${ECHO_T}no" >&6
3385fi
f9c19112 3386
ce2cded5
L
3387 CC=$ac_ct_CC
3388else
3389 CC="$ac_cv_prog_CC"
3390fi
3391
3392fi
3393if test -z "$CC"; then
3394 # Extract the first word of "cc", so it can be a program name with args.
3395set dummy cc; ac_word=$2
3396echo "$as_me:$LINENO: checking for $ac_word" >&5
3397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398if test "${ac_cv_prog_CC+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401 if test -n "$CC"; then
3402 ac_cv_prog_CC="$CC" # Let the user override the test.
3403else
3404 ac_prog_rejected=no
3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3413 ac_prog_rejected=yes
3414 continue
3415 fi
3416 ac_cv_prog_CC="cc"
3417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3419 fi
3420done
3421done
3422
3423if test $ac_prog_rejected = yes; then
3424 # We found a bogon in the path, so make sure we never use it.
3425 set dummy $ac_cv_prog_CC
3426 shift
3427 if test $# != 0; then
3428 # We chose a different compiler from the bogus one.
3429 # However, it has the same basename, so the bogon will be chosen
3430 # first if we set CC to just the basename; use the full file name.
3431 shift
3432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3433 fi
3434fi
3435fi
3436fi
3437CC=$ac_cv_prog_CC
3438if test -n "$CC"; then
3439 echo "$as_me:$LINENO: result: $CC" >&5
3440echo "${ECHO_T}$CC" >&6
3441else
3442 echo "$as_me:$LINENO: result: no" >&5
3443echo "${ECHO_T}no" >&6
3444fi
3445
3446fi
3447if test -z "$CC"; then
3448 if test -n "$ac_tool_prefix"; then
3449 for ac_prog in cl
3450 do
3451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3453echo "$as_me:$LINENO: checking for $ac_word" >&5
3454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3455if test "${ac_cv_prog_CC+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457else
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3460else
3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462for as_dir in $PATH
3463do
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472done
3473done
3474
3475fi
3476fi
3477CC=$ac_cv_prog_CC
3478if test -n "$CC"; then
3479 echo "$as_me:$LINENO: result: $CC" >&5
3480echo "${ECHO_T}$CC" >&6
3481else
3482 echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
3484fi
3485
3486 test -n "$CC" && break
d7040cdb
SE
3487 done
3488fi
ce2cded5
L
3489if test -z "$CC"; then
3490 ac_ct_CC=$CC
3491 for ac_prog in cl
d7040cdb
SE
3492do
3493 # Extract the first word of "$ac_prog", so it can be a program name with args.
3494set dummy $ac_prog; ac_word=$2
3495echo "$as_me:$LINENO: checking for $ac_word" >&5
3496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
ce2cded5
L
3500 if test -n "$ac_ct_CC"; then
3501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3502else
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3510 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
ac48eca1 3513 fi
d7040cdb
SE
3514done
3515done
ac48eca1 3516
d7040cdb
SE
3517fi
3518fi
ce2cded5
L
3519ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520if test -n "$ac_ct_CC"; then
3521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3522echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3523else
3524 echo "$as_me:$LINENO: result: no" >&5
3525echo "${ECHO_T}no" >&6
3526fi
ac48eca1 3527
ce2cded5 3528 test -n "$ac_ct_CC" && break
d7040cdb 3529done
ac48eca1 3530
ce2cded5 3531 CC=$ac_ct_CC
d7040cdb 3532fi
ac48eca1 3533
d7040cdb 3534fi
ac48eca1 3535
ac48eca1 3536
ce2cded5
L
3537test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3538See \`config.log' for more details." >&5
3539echo "$as_me: error: no acceptable C compiler found in \$PATH
3540See \`config.log' for more details." >&2;}
3541 { (exit 1); exit 1; }; }
6be7c12c 3542
ce2cded5
L
3543# Provide some information about the compiler.
3544echo "$as_me:$LINENO:" \
3545 "checking for C compiler version" >&5
3546ac_compiler=`set X $ac_compile; echo $2`
3547{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3548 (eval $ac_compiler --version </dev/null >&5) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }
3552{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3553 (eval $ac_compiler -v </dev/null >&5) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }
3557{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3558 (eval $ac_compiler -V </dev/null >&5) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }
ac48eca1 3562
ce2cded5
L
3563echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3564echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3565if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567else
ce2cded5
L
3568 cat >conftest.$ac_ext <<_ACEOF
3569/* confdefs.h. */
3570_ACEOF
3571cat confdefs.h >>conftest.$ac_ext
3572cat >>conftest.$ac_ext <<_ACEOF
3573/* end confdefs.h. */
c8615825 3574
ce2cded5
L
3575int
3576main ()
3577{
3578#ifndef __GNUC__
3579 choke me
3580#endif
3581
3582 ;
3583 return 0;
3584}
3585_ACEOF
3586rm -f conftest.$ac_objext
3587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try='test -z "$ac_c_werror_flag"
3596 || test ! -s conftest.err'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 (eval $ac_try) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; } &&
3602 { ac_try='test -s conftest.$ac_objext'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; }; then
3608 ac_compiler_gnu=yes
d7040cdb 3609else
ce2cded5
L
3610 echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613ac_compiler_gnu=no
d7040cdb 3614fi
ce2cded5
L
3615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3616ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3617
ce2cded5
L
3618fi
3619echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3620echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3621GCC=`test $ac_compiler_gnu = yes && echo yes`
3622ac_test_CFLAGS=${CFLAGS+set}
3623ac_save_CFLAGS=$CFLAGS
3624CFLAGS="-g"
3625echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3626echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3627if test "${ac_cv_prog_cc_g+set}" = set; then
d70c5fc7
NC
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
ce2cded5
L
3630 cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
d7040cdb 3636
ce2cded5
L
3637int
3638main ()
3639{
d7040cdb 3640
ce2cded5
L
3641 ;
3642 return 0;
3643}
3644_ACEOF
3645rm -f conftest.$ac_objext
3646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -z "$ac_c_werror_flag"
3655 || test ! -s conftest.err'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try='test -s conftest.$ac_objext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 ac_cv_prog_cc_g=yes
3668else
3669 echo "$as_me: failed program was:" >&5
3670sed 's/^/| /' conftest.$ac_ext >&5
d70c5fc7 3671
ce2cded5 3672ac_cv_prog_cc_g=no
d70c5fc7 3673fi
ce2cded5 3674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 3675fi
ce2cded5
L
3676echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3677echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3678if test "$ac_test_CFLAGS" = set; then
3679 CFLAGS=$ac_save_CFLAGS
3680elif test $ac_cv_prog_cc_g = yes; then
3681 if test "$GCC" = yes; then
3682 CFLAGS="-g -O2"
3683 else
3684 CFLAGS="-g"
3685 fi
ac48eca1 3686else
ce2cded5
L
3687 if test "$GCC" = yes; then
3688 CFLAGS="-O2"
3689 else
3690 CFLAGS=
3691 fi
ac48eca1 3692fi
ce2cded5
L
3693echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3694echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3695if test "${ac_cv_prog_cc_stdc+set}" = set; then
13b2be9c 3696 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3697else
ce2cded5
L
3698 ac_cv_prog_cc_stdc=no
3699ac_save_CC=$CC
3700cat >conftest.$ac_ext <<_ACEOF
3701/* confdefs.h. */
3702_ACEOF
3703cat confdefs.h >>conftest.$ac_ext
3704cat >>conftest.$ac_ext <<_ACEOF
3705/* end confdefs.h. */
3706#include <stdarg.h>
3707#include <stdio.h>
3708#include <sys/types.h>
3709#include <sys/stat.h>
3710/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3711struct buf { int x; };
3712FILE * (*rcsopen) (struct buf *, struct stat *, int);
3713static char *e (p, i)
3714 char **p;
3715 int i;
3716{
3717 return p[i];
3718}
3719static char *f (char * (*g) (char **, int), char **p, ...)
3720{
3721 char *s;
3722 va_list v;
3723 va_start (v,p);
3724 s = g (p, va_arg (v,int));
3725 va_end (v);
3726 return s;
3727}
3728
3729/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3730 function prototypes and stuff, but not '\xHH' hex character constants.
3731 These don't provoke an error unfortunately, instead are silently treated
3732 as 'x'. The following induces an error, until -std1 is added to get
3733 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3734 array size at least. It's necessary to write '\x00'==0 to get something
3735 that's true only with -std1. */
3736int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3737
3738int test (int i, double x);
3739struct s1 {int (*f) (int a);};
3740struct s2 {int (*f) (double a);};
3741int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3742int argc;
3743char **argv;
3744int
3745main ()
3746{
3747return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3748 ;
3749 return 0;
3750}
3751_ACEOF
3752# Don't try gcc -ansi; that turns off useful extensions and
3753# breaks some systems' header files.
3754# AIX -qlanglvl=ansi
3755# Ultrix and OSF/1 -std1
3756# HP-UX 10.20 and later -Ae
3757# HP-UX older versions -Aa -D_HPUX_SOURCE
3758# SVR4 -Xc -D__EXTENSIONS__
3759for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3760do
3761 CC="$ac_save_CC $ac_arg"
3762 rm -f conftest.$ac_objext
3763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -z "$ac_c_werror_flag"
3772 || test ! -s conftest.err'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
3778 { ac_try='test -s conftest.$ac_objext'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_prog_cc_stdc=$ac_arg
3785break
3786else
3787 echo "$as_me: failed program was:" >&5
3788sed 's/^/| /' conftest.$ac_ext >&5
3789
3790fi
3791rm -f conftest.err conftest.$ac_objext
3792done
3793rm -f conftest.$ac_ext conftest.$ac_objext
3794CC=$ac_save_CC
3795
3796fi
3797
3798case "x$ac_cv_prog_cc_stdc" in
3799 x|xno)
3800 echo "$as_me:$LINENO: result: none needed" >&5
3801echo "${ECHO_T}none needed" >&6 ;;
3802 *)
3803 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3804echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3805 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
3806esac
3807
ce2cded5
L
3808# Some people use a C++ compiler to compile C. Since we use `exit',
3809# in C++ we need to declare it. In case someone uses the same compiler
3810# for both compiling C and C++ we need to have the C++ compiler decide
3811# the declaration of exit, since it's the most demanding environment.
3812cat >conftest.$ac_ext <<_ACEOF
3813#ifndef __cplusplus
3814 choke me
3815#endif
3816_ACEOF
3817rm -f conftest.$ac_objext
3818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3819 (eval $ac_compile) 2>conftest.er1
3820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
3826 { ac_try='test -z "$ac_c_werror_flag"
3827 || test ! -s conftest.err'
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 (eval $ac_try) 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; } &&
3833 { ac_try='test -s conftest.$ac_objext'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 for ac_declaration in \
3840 '' \
3841 'extern "C" void std::exit (int) throw (); using std::exit;' \
3842 'extern "C" void std::exit (int); using std::exit;' \
3843 'extern "C" void exit (int) throw ();' \
3844 'extern "C" void exit (int);' \
3845 'void exit (int);'
3846do
3847 cat >conftest.$ac_ext <<_ACEOF
3848/* confdefs.h. */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
3852/* end confdefs.h. */
3853$ac_declaration
3854#include <stdlib.h>
3855int
3856main ()
3857{
3858exit (42);
3859 ;
3860 return 0;
3861}
3862_ACEOF
3863rm -f conftest.$ac_objext
3864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865 (eval $ac_compile) 2>conftest.er1
3866 ac_status=$?
3867 grep -v '^ *+' conftest.er1 >conftest.err
3868 rm -f conftest.er1
3869 cat conftest.err >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
3872 { ac_try='test -z "$ac_c_werror_flag"
3873 || test ! -s conftest.err'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; } &&
3879 { ac_try='test -s conftest.$ac_objext'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 (eval $ac_try) 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 :
3886else
3887 echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3889
ce2cded5
L
3890continue
3891fi
3892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3893 cat >conftest.$ac_ext <<_ACEOF
3894/* confdefs.h. */
3895_ACEOF
3896cat confdefs.h >>conftest.$ac_ext
3897cat >>conftest.$ac_ext <<_ACEOF
3898/* end confdefs.h. */
3899$ac_declaration
3900int
3901main ()
3902{
3903exit (42);
3904 ;
3905 return 0;
3906}
3907_ACEOF
3908rm -f conftest.$ac_objext
3909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>conftest.er1
3911 ac_status=$?
3912 grep -v '^ *+' conftest.er1 >conftest.err
3913 rm -f conftest.er1
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -z "$ac_c_werror_flag"
3918 || test ! -s conftest.err'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try='test -s conftest.$ac_objext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 break
3931else
3932 echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3934
ce2cded5
L
3935fi
3936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937done
3938rm -f conftest*
3939if test -n "$ac_declaration"; then
3940 echo '#ifdef __cplusplus' >>confdefs.h
3941 echo $ac_declaration >>confdefs.h
3942 echo '#endif' >>confdefs.h
3943fi
d7040cdb 3944
ce2cded5
L
3945else
3946 echo "$as_me: failed program was:" >&5
3947sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3948
ce2cded5
L
3949fi
3950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3951ac_ext=c
3952ac_cpp='$CPP $CPPFLAGS'
3953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
3956
3957
ce2cded5
L
3958cat >>confdefs.h <<\_ACEOF
3959#define _GNU_SOURCE 1
3960_ACEOF
d7040cdb
SE
3961
3962
3963
d7040cdb 3964
d7040cdb 3965
ce2cded5
L
3966macro_version='2.1a'
3967macro_revision='1.2435'
d7040cdb 3968
d7040cdb 3969
d7040cdb 3970
d7040cdb 3971
d7040cdb 3972
d7040cdb 3973
d7040cdb 3974
ac48eca1 3975
ac48eca1 3976
ac48eca1 3977
ac48eca1 3978
d7040cdb 3979
ce2cded5 3980ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 3981
ce2cded5 3982# Set options
ac48eca1 3983
ce2cded5 3984enable_dlopen=no
d7040cdb 3985
d7040cdb 3986
ce2cded5 3987enable_win32_dll=no
d7040cdb 3988
d7040cdb 3989
ce2cded5
L
3990# Check whether --enable-shared or --disable-shared was given.
3991if test "${enable_shared+set}" = set; then
3992 enableval="$enable_shared"
3993 p=${PACKAGE-default}
3994 case $enableval in
3995 yes) enable_shared=yes ;;
3996 no) enable_shared=no ;;
3997 *)
3998 enable_shared=no
3999 # Look at the argument we got. We use all the common list separators.
4000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4001 for pkg in $enableval; do
4002 IFS="$lt_save_ifs"
4003 if test "X$pkg" = "X$p"; then
4004 enable_shared=yes
4005 fi
4006 done
4007 IFS="$lt_save_ifs"
4008 ;;
4009 esac
4010else
4011 enable_shared=yes
4012fi;
d7040cdb 4013
d7040cdb 4014
ac48eca1 4015
d7040cdb
SE
4016
4017
4018
4019
4020
ce2cded5
L
4021# Check whether --enable-static or --disable-static was given.
4022if test "${enable_static+set}" = set; then
4023 enableval="$enable_static"
4024 p=${PACKAGE-default}
4025 case $enableval in
4026 yes) enable_static=yes ;;
4027 no) enable_static=no ;;
4028 *)
4029 enable_static=no
4030 # Look at the argument we got. We use all the common list separators.
4031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4032 for pkg in $enableval; do
4033 IFS="$lt_save_ifs"
4034 if test "X$pkg" = "X$p"; then
4035 enable_static=yes
4036 fi
4037 done
4038 IFS="$lt_save_ifs"
4039 ;;
4040 esac
4041else
4042 enable_static=yes
4043fi;
d7040cdb
SE
4044
4045
4046
4047
4048
4049
4050
ce2cded5
L
4051
4052
4053# Check whether --with-pic or --without-pic was given.
4054if test "${with_pic+set}" = set; then
4055 withval="$with_pic"
4056 pic_mode="$withval"
ac48eca1 4057else
ce2cded5
L
4058 pic_mode=default
4059fi;
13b2be9c 4060
ce2cded5
L
4061test -z "$pic_mode" && pic_mode=default
4062
4063
4064
4065
4066
4067
4068
4069# Check whether --enable-fast-install or --disable-fast-install was given.
4070if test "${enable_fast_install+set}" = set; then
4071 enableval="$enable_fast_install"
4072 p=${PACKAGE-default}
4073 case $enableval in
4074 yes) enable_fast_install=yes ;;
4075 no) enable_fast_install=no ;;
4076 *)
4077 enable_fast_install=no
4078 # Look at the argument we got. We use all the common list separators.
4079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4080 for pkg in $enableval; do
4081 IFS="$lt_save_ifs"
4082 if test "X$pkg" = "X$p"; then
4083 enable_fast_install=yes
4084 fi
4085 done
4086 IFS="$lt_save_ifs"
4087 ;;
4088 esac
ac48eca1 4089else
ce2cded5
L
4090 enable_fast_install=yes
4091fi;
ac48eca1 4092
ce2cded5
L
4093
4094
4095
4096
4097
4098
4099
4100echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4101echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4102if test "${lt_cv_path_SED+set}" = set; then
13b2be9c 4103 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 4104else
ce2cded5
L
4105 # Loop through the user's path and test for sed and gsed.
4106# Then use that list of sed's as ones to test for truncation.
13b2be9c
DJ
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
ce2cded5
L
4112 for lt_ac_prog in sed gsed; do
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4115 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4116 fi
4117 done
4118 done
13b2be9c 4119done
ce2cded5
L
4120IFS=$as_save_IFS
4121lt_ac_max=0
4122lt_ac_count=0
4123# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4124# along with /bin/sed that truncates output.
4125for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4126 test ! -f $lt_ac_sed && continue
4127 cat /dev/null > conftest.in
4128 lt_ac_count=0
4129 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4130 # Check for GNU sed and select it if it is found.
4131 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4132 lt_cv_path_SED=$lt_ac_sed
4133 break
4134 fi
4135 while true; do
4136 cat conftest.in conftest.in >conftest.tmp
4137 mv conftest.tmp conftest.in
4138 cp conftest.in conftest.nl
4139 echo >>conftest.nl
4140 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4141 cmp -s conftest.out conftest.nl || break
4142 # 10000 chars as input seems more than enough
4143 test $lt_ac_count -gt 10 && break
4144 lt_ac_count=`expr $lt_ac_count + 1`
4145 if test $lt_ac_count -gt $lt_ac_max; then
4146 lt_ac_max=$lt_ac_count
4147 lt_cv_path_SED=$lt_ac_sed
4148 fi
4149 done
13b2be9c
DJ
4150done
4151
ac48eca1
AO
4152fi
4153
ce2cded5 4154SED=$lt_cv_path_SED
ac48eca1 4155
ce2cded5
L
4156echo "$as_me:$LINENO: result: $SED" >&5
4157echo "${ECHO_T}$SED" >&6
d7040cdb 4158
ce2cded5
L
4159test -z "$SED" && SED=sed
4160Xsed="$SED -e 1s/^X//"
d7040cdb
SE
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
13b2be9c 4171
ce2cded5
L
4172echo "$as_me:$LINENO: checking for egrep" >&5
4173echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4174if test "${ac_cv_prog_egrep+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4176else
ce2cded5
L
4177 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4178 then ac_cv_prog_egrep='grep -E'
4179 else ac_cv_prog_egrep='egrep'
4180 fi
ac48eca1 4181fi
ce2cded5
L
4182echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4183echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4184 EGREP=$ac_cv_prog_egrep
ac48eca1 4185
13b2be9c 4186
ce2cded5
L
4187echo "$as_me:$LINENO: checking for fgrep" >&5
4188echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4189if test "${ac_cv_prog_fgrep+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 4191else
ce2cded5
L
4192 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4193 then ac_cv_prog_fgrep='grep -F'
4194 else ac_cv_prog_fgrep='fgrep'
4195 fi
d6d788bd 4196fi
ce2cded5
L
4197echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4198echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4199 FGREP=$ac_cv_prog_fgrep
d6d788bd 4200
d6d788bd 4201
ce2cded5 4202test -z "$GREP" && GREP=grep
252b5132 4203
252b5132 4204
d6d788bd 4205
a74801ba 4206
a74801ba 4207
13b2be9c 4208
252b5132 4209
4867be41 4210
ce2cded5
L
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222# Check whether --with-gnu-ld or --without-gnu-ld was given.
4223if test "${with_gnu_ld+set}" = set; then
4224 withval="$with_gnu_ld"
4225 test "$withval" = no || with_gnu_ld=yes
4226else
4227 with_gnu_ld=no
4228fi;
4229ac_prog=ld
4230if test "$GCC" = yes; then
4231 # Check if gcc -print-prog-name=ld gives a path.
4232 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4233echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4234 case $host in
4235 *-*-mingw*)
4236 # gcc leaves a trailing carriage return which upsets mingw
4237 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4238 *)
4239 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4240 esac
4241 case $ac_prog in
4242 # Accept absolute paths.
4243 [\\/]* | ?:[\\/]*)
4244 re_direlt='/[^/][^/]*/\.\./'
4245 # Canonicalize the pathname of ld
4246 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4247 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4248 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4249 done
4250 test -z "$LD" && LD="$ac_prog"
4251 ;;
4252 "")
4253 # If it fails, then pretend we aren't using GCC.
4254 ac_prog=ld
4255 ;;
4256 *)
4257 # If it is relative, then search for the first ld in PATH.
4258 with_gnu_ld=unknown
4259 ;;
4260 esac
4261elif test "$with_gnu_ld" = yes; then
4262 echo "$as_me:$LINENO: checking for GNU ld" >&5
4263echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4264else
4265 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4266echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4267fi
4268if test "${lt_cv_path_LD+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270else
4271 if test -z "$LD"; then
4272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4273 for ac_dir in $PATH; do
4274 IFS="$lt_save_ifs"
4275 test -z "$ac_dir" && ac_dir=.
4276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4277 lt_cv_path_LD="$ac_dir/$ac_prog"
4278 # Check to see if the program is GNU ld. I'd rather use --version,
4279 # but apparently some variants of GNU ld only accept -v.
4280 # Break only if it was the GNU/non-GNU ld that we prefer.
4281 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4282 *GNU* | *'with BFD'*)
4283 test "$with_gnu_ld" != no && break
4284 ;;
4285 *)
4286 test "$with_gnu_ld" != yes && break
4287 ;;
4288 esac
4289 fi
4290 done
4291 IFS="$lt_save_ifs"
4292else
4293 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4294fi
4295fi
4296
4297LD="$lt_cv_path_LD"
4298if test -n "$LD"; then
4299 echo "$as_me:$LINENO: result: $LD" >&5
4300echo "${ECHO_T}$LD" >&6
4301else
4302 echo "$as_me:$LINENO: result: no" >&5
4303echo "${ECHO_T}no" >&6
4304fi
4305test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4306echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4307 { (exit 1); exit 1; }; }
4308echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4309echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4310if test "${lt_cv_prog_gnu_ld+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312else
4313 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4314case `$LD -v 2>&1 </dev/null` in
4315*GNU* | *'with BFD'*)
4316 lt_cv_prog_gnu_ld=yes
4317 ;;
4318*)
4319 lt_cv_prog_gnu_ld=no
4320 ;;
4321esac
4322fi
4323echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4324echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4325with_gnu_ld=$lt_cv_prog_gnu_ld
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4337echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4338if test "${lt_cv_path_NM+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341 if test -n "$NM"; then
4342 # Let the user override the test.
4343 lt_cv_path_NM="$NM"
4344else
4345 lt_nm_to_check="${ac_tool_prefix}nm"
4346 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4347 lt_nm_to_check="$lt_nm_to_check nm"
4348 fi
4349 for lt_tmp_nm in $lt_nm_to_check; do
4350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4351 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4352 IFS="$lt_save_ifs"
4353 test -z "$ac_dir" && ac_dir=.
4354 tmp_nm="$ac_dir/$lt_tmp_nm"
4355 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4356 # Check to see if the nm accepts a BSD-compat flag.
4357 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4358 # nm: unknown option "B" ignored
4359 # Tru64's nm complains that /dev/null is an invalid object file
4360 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4361 */dev/null* | *'Invalid file or object type'*)
4362 lt_cv_path_NM="$tmp_nm -B"
4363 break
4364 ;;
4365 *)
4366 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4367 */dev/null*)
4368 lt_cv_path_NM="$tmp_nm -p"
4369 break
4370 ;;
4371 *)
4372 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4373 continue # so that we can try to find one that supports BSD flags
4374 ;;
4375 esac
4376 ;;
4377 esac
4378 fi
4379 done
4380 IFS="$lt_save_ifs"
4381 done
4382 : ${lt_cv_path_NM=no}
4383fi
4384fi
4385echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4386echo "${ECHO_T}$lt_cv_path_NM" >&6
4387if test "$lt_cv_path_NM" != "no"; then
4388 NM="$lt_cv_path_NM"
4389else
4390 # Didn't find any BSD compatible name lister, look for dumpbin.
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4393 do
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d7040cdb
SE
4396echo "$as_me:$LINENO: checking for $ac_word" >&5
4397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 4398if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d7040cdb
SE
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400else
ce2cded5
L
4401 if test -n "$DUMPBIN"; then
4402 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
4403else
4404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405for as_dir in $PATH
4406do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4411 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
d7040cdb
SE
4412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
d70c5fc7 4414 fi
d7040cdb
SE
4415done
4416done
d70c5fc7 4417
d7040cdb
SE
4418fi
4419fi
ce2cded5
L
4420DUMPBIN=$ac_cv_prog_DUMPBIN
4421if test -n "$DUMPBIN"; then
4422 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4423echo "${ECHO_T}$DUMPBIN" >&6
bedf545c 4424else
d7040cdb
SE
4425 echo "$as_me:$LINENO: result: no" >&5
4426echo "${ECHO_T}no" >&6
4427fi
13b2be9c 4428
ce2cded5
L
4429 test -n "$DUMPBIN" && break
4430 done
4431fi
4432if test -z "$DUMPBIN"; then
4433 ac_ct_DUMPBIN=$DUMPBIN
4434 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4435do
4436 # Extract the first word of "$ac_prog", so it can be a program name with args.
4437set dummy $ac_prog; ac_word=$2
4438echo "$as_me:$LINENO: checking for $ac_word" >&5
4439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 4442else
ce2cded5
L
4443 if test -n "$ac_ct_DUMPBIN"; then
4444 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4445else
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457done
4458done
4459
4460fi
4461fi
4462ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4463if test -n "$ac_ct_DUMPBIN"; then
4464 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4465echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4466else
4467 echo "$as_me:$LINENO: result: no" >&5
4468echo "${ECHO_T}no" >&6
d7040cdb
SE
4469fi
4470
ce2cded5
L
4471 test -n "$ac_ct_DUMPBIN" && break
4472done
4473test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
13b2be9c 4474
ce2cded5
L
4475 DUMPBIN=$ac_ct_DUMPBIN
4476fi
13b2be9c 4477
bedf545c 4478
ce2cded5
L
4479 if test "$DUMPBIN" != ":"; then
4480 NM="$DUMPBIN"
4481 fi
4482fi
4483test -z "$NM" && NM=nm
6840198f 4484
13b2be9c 4485
ac48eca1 4486
d7040cdb 4487
ce2cded5
L
4488
4489
4490echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4491echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4492if test "${lt_cv_nm_interface+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495 lt_cv_nm_interface="BSD nm"
4496 echo "int some_variable = 0;" > conftest.$ac_ext
4497 (eval echo "\"\$as_me:4497: $ac_compile\"" >&5)
4498 (eval "$ac_compile" 2>conftest.err)
4499 cat conftest.err >&5
4500 (eval echo "\"\$as_me:4500: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4501 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4502 cat conftest.err >&5
4503 (eval echo "\"\$as_me:4503: output\"" >&5)
4504 cat conftest.out >&5
4505 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4506 lt_cv_nm_interface="MS dumpbin"
4507 fi
4508 rm -f conftest*
4509fi
4510echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4511echo "${ECHO_T}$lt_cv_nm_interface" >&6
4512
4513echo "$as_me:$LINENO: checking whether ln -s works" >&5
4514echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4515LN_S=$as_ln_s
4516if test "$LN_S" = "ln -s"; then
4517 echo "$as_me:$LINENO: result: yes" >&5
4518echo "${ECHO_T}yes" >&6
4519else
4520 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4521echo "${ECHO_T}no, using $LN_S" >&6
4522fi
4523
4524# find the maximum length of command line arguments
4525echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4526echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4527if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530 i=0
4531 teststring="ABCD"
4532
4533 case $build_os in
4534 msdosdjgpp*)
4535 # On DJGPP, this test can blow up pretty badly due to problems in libc
4536 # (any single argument exceeding 2000 bytes causes a buffer overrun
4537 # during glob expansion). Even if it were fixed, the result of this
4538 # check would be larger than it should be.
4539 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4540 ;;
4541
4542 gnu*)
4543 # Under GNU Hurd, this test is not required because there is
4544 # no limit to the length of command line arguments.
4545 # Libtool will interpret -1 as no limit whatsoever
4546 lt_cv_sys_max_cmd_len=-1;
4547 ;;
4548
4549 cygwin* | mingw*)
4550 # On Win9x/ME, this test blows up -- it succeeds, but takes
4551 # about 5 minutes as the teststring grows exponentially.
4552 # Worse, since 9x/ME are not pre-emptively multitasking,
4553 # you end up with a "frozen" computer, even though with patience
4554 # the test eventually succeeds (with a max line length of 256k).
4555 # Instead, let's just punt: use the minimum linelength reported by
4556 # all of the supported platforms: 8192 (on NT/2K/XP).
4557 lt_cv_sys_max_cmd_len=8192;
4558 ;;
4559
4560 amigaos*)
4561 # On AmigaOS with pdksh, this test takes hours, literally.
4562 # So we just punt and use a minimum line length of 8192.
4563 lt_cv_sys_max_cmd_len=8192;
4564 ;;
4565
4566 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4567 # This has been around since 386BSD, at least. Likely further.
4568 if test -x /sbin/sysctl; then
4569 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4570 elif test -x /usr/sbin/sysctl; then
4571 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4572 else
4573 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4574 fi
4575 # And add a safety zone
4576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4578 ;;
4579
4580 interix*)
4581 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4582 lt_cv_sys_max_cmd_len=196608
4583 ;;
4584
4585 osf*)
4586 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4587 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4588 # nice to cause kernel panics so lets avoid the loop below.
4589 # First set a reasonable default.
4590 lt_cv_sys_max_cmd_len=16384
4591 #
4592 if test -x /sbin/sysconfig; then
4593 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4594 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4595 esac
4596 fi
4597 ;;
4598 sco3.2v5*)
4599 lt_cv_sys_max_cmd_len=102400
4600 ;;
4601 sysv5* | sco5v6* | sysv4.2uw2*)
4602 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4603 if test -n "$kargmax"; then
4604 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4605 else
4606 lt_cv_sys_max_cmd_len=32768
4607 fi
d7040cdb
SE
4608 ;;
4609 *)
ce2cded5
L
4610 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4611 if test -n $lt_cv_sys_max_cmd_len; then
4612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4614 else
4615 # Make teststring a little bigger before we do anything with it.
4616 # a 1K string should be a reasonable start.
4617 for i in 1 2 3 4 5 6 7 8 ; do
4618 teststring=$teststring$teststring
4619 done
4620 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4621 # If test is not a shell built-in, we'll probably end up computing a
4622 # maximum length that is only half of the actual maximum length, but
4623 # we can't tell.
4624 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4625 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4626 test $i != 17 # 1/2 MB should be enough
4627 do
4628 i=`expr $i + 1`
4629 teststring=$teststring$teststring
4630 done
4631 # Only check the string length outside the loop.
4632 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4633 teststring=
4634 # Add a significant safety factor because C++ compilers can tack on
4635 # massive amounts of additional arguments before passing them to the
4636 # linker. It appears as though 1/2 is a usable value.
4637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4638 fi
d7040cdb
SE
4639 ;;
4640 esac
252b5132 4641
ce2cded5 4642fi
d6d788bd 4643
ce2cded5
L
4644if test -n $lt_cv_sys_max_cmd_len ; then
4645 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4646echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4647else
4648 echo "$as_me:$LINENO: result: none" >&5
4649echo "${ECHO_T}none" >&6
4650fi
4651max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4652
d6d788bd 4653
13b2be9c 4654
13b2be9c 4655
bedf545c 4656
252b5132 4657
bedf545c 4658
ce2cded5
L
4659: ${CP="cp -f"}
4660: ${MV="mv -f"}
4661: ${RM="rm -f"}
d6d788bd 4662
ce2cded5
L
4663echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4664echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4665# Try some XSI features
4666xsi_shell=no
4667( _lt_dummy="a/b/c"
4668 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4669 = c,a/b,, ) >/dev/null 2>&1 \
4670 && xsi_shell=yes
4671echo "$as_me:$LINENO: result: $xsi_shell" >&5
4672echo "${ECHO_T}$xsi_shell" >&6
bedf545c 4673
bedf545c 4674
ce2cded5
L
4675echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4676echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4677lt_shell_append=no
4678( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4679 >/dev/null 2>&1 \
4680 && lt_shell_append=yes
4681echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4682echo "${ECHO_T}$lt_shell_append" >&6
252b5132 4683
d6d788bd 4684
ce2cded5
L
4685if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4686 lt_unset=unset
4687else
4688 lt_unset=false
4689fi
13b2be9c
DJ
4690
4691
4692
4693
d6d788bd 4694
ce2cded5
L
4695# test EBCDIC or ASCII
4696case `echo X|tr X '\101'` in
4697 A) # ASCII based system
4698 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4699 lt_SP2NL='tr \040 \012'
4700 lt_NL2SP='tr \015\012 \040\040'
4701 ;;
4702 *) # EBCDIC based system
4703 lt_SP2NL='tr \100 \n'
4704 lt_NL2SP='tr \r\n \100\100'
4705 ;;
4706esac
c43a438d 4707
c43a438d 4708
c43a438d 4709
252b5132 4710
ad22bfe8 4711
1ad12f97 4712
1ad12f97 4713
9e9b66a9 4714
1ad12f97 4715
ce2cded5
L
4716echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4717echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4718if test "${lt_cv_ld_reload_flag+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721 lt_cv_ld_reload_flag='-r'
4722fi
4723echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4724echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4725reload_flag=$lt_cv_ld_reload_flag
4726case $reload_flag in
4727"" | " "*) ;;
4728*) reload_flag=" $reload_flag" ;;
4729esac
4730reload_cmds='$LD$reload_flag -o $output$reload_objs'
4731case $host_os in
4732 darwin*)
4733 if test "$GCC" = yes; then
4734 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4735 else
4736 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4737 fi
4738 ;;
4739esac
a541e3ce 4740
9e9b66a9 4741
a2d91340 4742
d6d788bd 4743
9e9b66a9
AM
4744
4745
4746
d6d788bd 4747
252b5132 4748
13b2be9c 4749
ce2cded5
L
4750echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4751echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4752if test "${lt_cv_deplibs_check_method+set}" = set; then
d7040cdb
SE
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754else
ce2cded5
L
4755 lt_cv_file_magic_cmd='$MAGIC_CMD'
4756lt_cv_file_magic_test_file=
4757lt_cv_deplibs_check_method='unknown'
4758# Need to set the preceding variable on all platforms that support
4759# interlibrary dependencies.
4760# 'none' -- dependencies not supported.
4761# `unknown' -- same as none, but documents that we really don't know.
4762# 'pass_all' -- all dependencies passed with no checks.
4763# 'test_compile' -- check by making test program.
4764# 'file_magic [[regex]]' -- check by looking for files in library path
4765# which responds to the $file_magic_cmd with a given extended regex.
4766# If you have `file' or equivalent on your system and you're not sure
4767# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 4768
ce2cded5
L
4769case $host_os in
4770aix4* | aix5*)
4771 lt_cv_deplibs_check_method=pass_all
4772 ;;
d7040cdb 4773
ce2cded5
L
4774beos*)
4775 lt_cv_deplibs_check_method=pass_all
4776 ;;
d7040cdb 4777
ce2cded5
L
4778bsdi[45]*)
4779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4780 lt_cv_file_magic_cmd='/usr/bin/file -L'
4781 lt_cv_file_magic_test_file=/shlib/libc.so
4782 ;;
d7040cdb 4783
ce2cded5
L
4784cygwin*)
4785 # func_win32_libid is a shell function defined in ltmain.sh
4786 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4787 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 4788 ;;
ce2cded5
L
4789
4790mingw* | pw32*)
4791 # Base MSYS/MinGW do not provide the 'file' command needed by
4792 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4793 # unless we find 'file', for example because we are cross-compiling.
4794 if ( file / ) >/dev/null 2>&1; then
4795 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4796 lt_cv_file_magic_cmd='func_win32_libid'
4797 else
4798 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4799 lt_cv_file_magic_cmd='$OBJDUMP -f'
4800 fi
d7040cdb 4801 ;;
ce2cded5
L
4802
4803darwin* | rhapsody*)
4804 lt_cv_deplibs_check_method=pass_all
4805 ;;
4806
4807freebsd* | dragonfly*)
4808 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4809 case $host_cpu in
4810 i*86 )
4811 # Not sure whether the presence of OpenBSD here was a mistake.
4812 # Let's accept both of them until this is cleared up.
4813 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4814 lt_cv_file_magic_cmd=/usr/bin/file
4815 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4816 ;;
4817 esac
4818 else
4819 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
4820 fi
4821 ;;
ce2cded5
L
4822
4823gnu*)
4824 lt_cv_deplibs_check_method=pass_all
d7040cdb 4825 ;;
ce2cded5
L
4826
4827hpux10.20* | hpux11*)
4828 lt_cv_file_magic_cmd=/usr/bin/file
4829 case $host_cpu in
4830 ia64*)
4831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4832 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4833 ;;
4834 hppa*64*)
4835 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]'
4836 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4837 ;;
4838 *)
4839 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4840 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4841 ;;
4842 esac
d7040cdb 4843 ;;
ce2cded5
L
4844
4845interix[3-9]*)
4846 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 4848 ;;
ce2cded5
L
4849
4850irix5* | irix6* | nonstopux*)
4851 case $LD in
4852 *-32|*"-32 ") libmagic=32-bit;;
4853 *-n32|*"-n32 ") libmagic=N32;;
4854 *-64|*"-64 ") libmagic=64-bit;;
4855 *) libmagic=never-match;;
4856 esac
4857 lt_cv_deplibs_check_method=pass_all
d7040cdb 4858 ;;
ce2cded5
L
4859
4860# This must be Linux ELF.
4861linux* | k*bsd*-gnu)
4862 lt_cv_deplibs_check_method=pass_all
d7040cdb 4863 ;;
ce2cded5
L
4864
4865netbsd*)
4866 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4868 else
4869 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4870 fi
d7040cdb 4871 ;;
ce2cded5
L
4872
4873newos6*)
4874 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4875 lt_cv_file_magic_cmd=/usr/bin/file
4876 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 4877 ;;
76a27922 4878
ce2cded5
L
4879*nto* | *qnx*)
4880 lt_cv_deplibs_check_method=pass_all
4881 ;;
d6d788bd 4882
ce2cded5
L
4883openbsd*)
4884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4886 else
4887 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4888 fi
4889 ;;
44f2f9d2 4890
ce2cded5
L
4891osf3* | osf4* | osf5*)
4892 lt_cv_deplibs_check_method=pass_all
4893 ;;
44f2f9d2 4894
ce2cded5
L
4895rdos*)
4896 lt_cv_deplibs_check_method=pass_all
4897 ;;
4898
4899solaris*)
4900 lt_cv_deplibs_check_method=pass_all
4901 ;;
4902
4903sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4904 lt_cv_deplibs_check_method=pass_all
4905 ;;
4906
4907sysv4 | sysv4.3*)
4908 case $host_vendor in
4909 motorola)
4910 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]'
4911 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4912 ;;
4913 ncr)
4914 lt_cv_deplibs_check_method=pass_all
4915 ;;
4916 sequent)
4917 lt_cv_file_magic_cmd='/bin/file'
4918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4919 ;;
4920 sni)
4921 lt_cv_file_magic_cmd='/bin/file'
4922 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4923 lt_cv_file_magic_test_file=/lib/libc.so
4924 ;;
4925 siemens)
4926 lt_cv_deplibs_check_method=pass_all
4927 ;;
4928 pc)
4929 lt_cv_deplibs_check_method=pass_all
4930 ;;
4931 esac
4932 ;;
4933
4934tpf*)
4935 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
4936 ;;
4937esac
4938
ce2cded5
L
4939fi
4940echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4941echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4942file_magic_cmd=$lt_cv_file_magic_cmd
4943deplibs_check_method=$lt_cv_deplibs_check_method
4944test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 4945
d7040cdb 4946
d7040cdb 4947
d7040cdb 4948
d7040cdb 4949
44f2f9d2 4950
d7040cdb 4951
d7040cdb 4952
d7040cdb 4953
d7040cdb 4954
44f2f9d2 4955
d7040cdb 4956
ce2cded5
L
4957if test -n "$ac_tool_prefix"; then
4958 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4959set dummy ${ac_tool_prefix}ar; ac_word=$2
4960echo "$as_me:$LINENO: checking for $ac_word" >&5
4961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4962if test "${ac_cv_prog_AR+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964else
4965 if test -n "$AR"; then
4966 ac_cv_prog_AR="$AR" # Let the user override the test.
4967else
4968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969for as_dir in $PATH
4970do
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4975 ac_cv_prog_AR="${ac_tool_prefix}ar"
4976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
d7040cdb
SE
4978 fi
4979done
ce2cded5 4980done
44f2f9d2 4981
ce2cded5
L
4982fi
4983fi
4984AR=$ac_cv_prog_AR
4985if test -n "$AR"; then
4986 echo "$as_me:$LINENO: result: $AR" >&5
4987echo "${ECHO_T}$AR" >&6
4988else
4989 echo "$as_me:$LINENO: result: no" >&5
4990echo "${ECHO_T}no" >&6
44f2f9d2 4991fi
d7040cdb 4992
d7040cdb 4993fi
ce2cded5
L
4994if test -z "$ac_cv_prog_AR"; then
4995 ac_ct_AR=$AR
4996 # Extract the first word of "ar", so it can be a program name with args.
4997set dummy ar; ac_word=$2
4998echo "$as_me:$LINENO: checking for $ac_word" >&5
4999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5000if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5002else
ce2cded5
L
5003 if test -n "$ac_ct_AR"; then
5004 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5005else
5006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH
5008do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_ac_ct_AR="ar"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5016 fi
5017done
5018done
5019
5020 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5021fi
5022fi
5023ac_ct_AR=$ac_cv_prog_ac_ct_AR
5024if test -n "$ac_ct_AR"; then
5025 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5026echo "${ECHO_T}$ac_ct_AR" >&6
5027else
5028 echo "$as_me:$LINENO: result: no" >&5
5029echo "${ECHO_T}no" >&6
d7040cdb 5030fi
44f2f9d2 5031
ce2cded5
L
5032 AR=$ac_ct_AR
5033else
5034 AR="$ac_cv_prog_AR"
5035fi
d7040cdb 5036
ce2cded5
L
5037test -z "$AR" && AR=ar
5038test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
ce2cded5
L
5050if test -n "$ac_tool_prefix"; then
5051 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5052set dummy ${ac_tool_prefix}strip; ac_word=$2
5053echo "$as_me:$LINENO: checking for $ac_word" >&5
5054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5055if test "${ac_cv_prog_STRIP+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057else
5058 if test -n "$STRIP"; then
5059 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5060else
5061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5071 fi
5072done
5073done
d7040cdb 5074
ce2cded5
L
5075fi
5076fi
5077STRIP=$ac_cv_prog_STRIP
5078if test -n "$STRIP"; then
5079 echo "$as_me:$LINENO: result: $STRIP" >&5
5080echo "${ECHO_T}$STRIP" >&6
5081else
5082 echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084fi
d7040cdb 5085
ce2cded5
L
5086fi
5087if test -z "$ac_cv_prog_STRIP"; then
5088 ac_ct_STRIP=$STRIP
5089 # Extract the first word of "strip", so it can be a program name with args.
5090set dummy strip; ac_word=$2
5091echo "$as_me:$LINENO: checking for $ac_word" >&5
5092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096 if test -n "$ac_ct_STRIP"; then
5097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5098else
5099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100for as_dir in $PATH
5101do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_ac_ct_STRIP="strip"
5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110done
5111done
d7040cdb 5112
ce2cded5
L
5113 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5114fi
5115fi
5116ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5117if test -n "$ac_ct_STRIP"; then
5118 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5119echo "${ECHO_T}$ac_ct_STRIP" >&6
5120else
5121 echo "$as_me:$LINENO: result: no" >&5
5122echo "${ECHO_T}no" >&6
5123fi
d7040cdb 5124
ce2cded5
L
5125 STRIP=$ac_ct_STRIP
5126else
5127 STRIP="$ac_cv_prog_STRIP"
5128fi
d7040cdb 5129
ce2cded5 5130test -z "$STRIP" && STRIP=:
d7040cdb 5131
d7040cdb 5132
d7040cdb 5133
d7040cdb 5134
d7040cdb 5135
d7040cdb 5136
ce2cded5
L
5137if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5139set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5140echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142if test "${ac_cv_prog_RANLIB+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5144else
ce2cded5
L
5145 if test -n "$RANLIB"; then
5146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159done
5160done
44f2f9d2 5161
d7040cdb 5162fi
44f2f9d2 5163fi
ce2cded5
L
5164RANLIB=$ac_cv_prog_RANLIB
5165if test -n "$RANLIB"; then
5166 echo "$as_me:$LINENO: result: $RANLIB" >&5
5167echo "${ECHO_T}$RANLIB" >&6
5168else
5169 echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
5171fi
d7040cdb 5172
d7040cdb 5173fi
ce2cded5
L
5174if test -z "$ac_cv_prog_RANLIB"; then
5175 ac_ct_RANLIB=$RANLIB
5176 # Extract the first word of "ranlib", so it can be a program name with args.
5177set dummy ranlib; ac_word=$2
5178echo "$as_me:$LINENO: checking for $ac_word" >&5
5179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
d7040cdb 5181 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5182else
ce2cded5
L
5183 if test -n "$ac_ct_RANLIB"; then
5184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5185else
5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH
d7040cdb 5188do
ce2cded5
L
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_prog_ac_ct_RANLIB="ranlib"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
d7040cdb 5196 fi
ce2cded5
L
5197done
5198done
5199
5200 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
d7040cdb 5201fi
ce2cded5
L
5202fi
5203ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5204if test -n "$ac_ct_RANLIB"; then
5205 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5206echo "${ECHO_T}$ac_ct_RANLIB" >&6
d7040cdb 5207else
ce2cded5
L
5208 echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
44f2f9d2 5210fi
44f2f9d2 5211
ce2cded5 5212 RANLIB=$ac_ct_RANLIB
d7040cdb 5213else
ce2cded5 5214 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5215fi
252b5132 5216
ce2cded5 5217test -z "$RANLIB" && RANLIB=:
252b5132 5218
252b5132 5219
ae57792d 5220
252b5132 5221
13b2be9c 5222
14ee9f48 5223
ce2cded5
L
5224# Determine commands to create old-style static archives.
5225old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5226old_postinstall_cmds='chmod 644 $oldlib'
5227old_postuninstall_cmds=
14ee9f48 5228
ce2cded5
L
5229if test -n "$RANLIB"; then
5230 case $host_os in
5231 openbsd*)
5232 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5233 ;;
5234 *)
5235 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5236 ;;
5237 esac
5238 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 5239fi
14ee9f48 5240
f8fc3443 5241
f8fc3443 5242
252b5132 5243
85fbca6a 5244
85fbca6a 5245
13b2be9c 5246
13b2be9c 5247
d7040cdb 5248
d7040cdb
SE
5249
5250
5251
252b5132 5252
93fbbb04 5253
93fbbb04 5254
d70c5fc7 5255
e0001a05 5256
252b5132 5257
252b5132 5258
252b5132 5259
252b5132 5260
252b5132 5261
3bcbcc3d 5262
252b5132 5263
252b5132 5264
252b5132 5265
15886821 5266
252b5132 5267
252b5132 5268
13b2be9c
DJ
5269
5270
252b5132 5271
252b5132 5272
d6d788bd 5273
ce2cded5
L
5274# If no C compiler was specified, use CC.
5275LTCC=${LTCC-"$CC"}
252b5132 5276
ce2cded5
L
5277# If no C compiler flags were specified, use CFLAGS.
5278LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 5279
ce2cded5
L
5280# Allow CC to be a program name with arguments.
5281compiler=$CC
252b5132 5282
252b5132 5283
ce2cded5
L
5284# Check for command to grab the raw symbol name followed by C symbol from nm.
5285echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5286echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5287if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
252b5132 5290
ce2cded5
L
5291# These are sane defaults that work on at least a few old systems.
5292# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 5293
ce2cded5
L
5294# Character class describing NM global symbol codes.
5295symcode='[BCDEGRST]'
252b5132 5296
ce2cded5
L
5297# Regexp to match symbols that can be accessed directly from C.
5298sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 5299
ce2cded5
L
5300# Define system-specific variables.
5301case $host_os in
5302aix*)
5303 symcode='[BCDT]'
5304 ;;
5305cygwin* | mingw* | pw32*)
5306 symcode='[ABCDGISTW]'
5307 ;;
5308hpux*)
5309 if test "$host_cpu" = ia64; then
5310 symcode='[ABCDEGRST]'
5311 fi
5312 ;;
5313irix* | nonstopux*)
5314 symcode='[BCDEGRST]'
5315 ;;
5316osf*)
5317 symcode='[BCDEGQRST]'
5318 ;;
5319solaris*)
5320 symcode='[BDRT]'
5321 ;;
5322sco3.2v5*)
5323 symcode='[DT]'
5324 ;;
5325sysv4.2uw2*)
5326 symcode='[DT]'
5327 ;;
5328sysv5* | sco5v6* | unixware* | OpenUNIX*)
5329 symcode='[ABDT]'
5330 ;;
5331sysv4)
5332 symcode='[DFNSTU]'
5333 ;;
5334esac
5335
5336# If we're using GNU nm, then use its standard symbol codes.
5337case `$NM -V 2>&1` in
5338*GNU* | *'with BFD'*)
5339 symcode='[ABCDGIRSTW]' ;;
5340esac
252b5132 5341
ce2cded5
L
5342# Transform an extracted symbol line into a proper C declaration.
5343# Some systems (esp. on ia64) link data and code symbols differently,
5344# so use this general approach.
5345lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 5346
ce2cded5
L
5347# Transform an extracted symbol line into symbol name and symbol address
5348lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13b2be9c 5349
ce2cded5
L
5350# Handle CRLF in mingw tool chain
5351opt_cr=
5352case $build_os in
5353mingw*)
5354 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5355 ;;
5356esac
252b5132 5357
ce2cded5
L
5358# Try without a prefix underscore, then with it.
5359for ac_symprfx in "" "_"; do
252b5132 5360
ce2cded5
L
5361 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5362 symxfrm="\\1 $ac_symprfx\\2 \\2"
d6d788bd 5363
ce2cded5
L
5364 # Write the raw and C identifiers.
5365 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5366 # Fake it for dumpbin and say T for any non-static function
5367 # and D for any global variable.
5368 # Also find C++ and __fastcall symbols from MSVC++,
5369 # which start with @ or ?.
5370 lt_cv_sys_global_symbol_pipe="$AWK '"\
5371" {last_section=section; section=\$ 3};"\
5372" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5373" \$ 0!~/External *\|/{next};"\
5374" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5375" {if(hide[section]) next};"\
5376" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5377" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5378" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5379" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5380" ' prfx=^$ac_symprfx"
5381 else
5382 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5383 fi
252b5132 5384
ce2cded5
L
5385 # Check to see that the pipe works correctly.
5386 pipe_works=no
252b5132 5387
ce2cded5
L
5388 rm -f conftest*
5389 cat > conftest.$ac_ext <<_LT_EOF
5390#ifdef __cplusplus
5391extern "C" {
5392#endif
5393char nm_test_var;
5394void nm_test_func(void);
5395void nm_test_func(void){}
5396#ifdef __cplusplus
5397}
5398#endif
5399int main(){nm_test_var='a';nm_test_func();return(0);}
5400_LT_EOF
d6d788bd 5401
ce2cded5
L
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; then
5407 # Now try to grab the symbols.
5408 nlist=conftest.nm
5409 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5410 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && test -s "$nlist"; then
5414 # Try sorting and uniquifying the output.
5415 if sort "$nlist" | uniq > "$nlist"T; then
5416 mv -f "$nlist"T "$nlist"
5417 else
5418 rm -f "$nlist"T
5419 fi
d6d788bd 5420
ce2cded5
L
5421 # Make sure that we snagged all the symbols we need.
5422 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5423 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5424 cat <<_LT_EOF > conftest.$ac_ext
5425#ifdef __cplusplus
5426extern "C" {
5427#endif
d6d788bd 5428
ce2cded5
L
5429_LT_EOF
5430 # Now generate the symbol file.
5431 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d6d788bd 5432
ce2cded5 5433 cat <<_LT_EOF >> conftest.$ac_ext
d6d788bd 5434
ce2cded5
L
5435/* The mapping between symbol names and symbols. */
5436const struct {
5437 const char *name;
5438 void *address;
5439}
5440lt__PROGRAM__LTX_preloaded_symbols[] =
5441{
5442 { "@PROGRAM@", (void *) 0 },
5443_LT_EOF
5444 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5445 cat <<\_LT_EOF >> conftest.$ac_ext
5446 {0, (void *) 0}
5447};
d6d788bd 5448
ce2cded5
L
5449/* This works around a problem in FreeBSD linker */
5450#ifdef FREEBSD_WORKAROUND
5451static const void *lt_preloaded_setup() {
5452 return lt__PROGRAM__LTX_preloaded_symbols;
5453}
5454#endif
252b5132 5455
ce2cded5
L
5456#ifdef __cplusplus
5457}
5458#endif
5459_LT_EOF
5460 # Now try linking the two files.
5461 mv conftest.$ac_objext conftstm.$ac_objext
5462 lt_save_LIBS="$LIBS"
5463 lt_save_CFLAGS="$CFLAGS"
5464 LIBS="conftstm.$ac_objext"
5465 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5467 (eval $ac_link) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5471 pipe_works=yes
5472 fi
5473 LIBS="$lt_save_LIBS"
5474 CFLAGS="$lt_save_CFLAGS"
5475 else
5476 echo "cannot find nm_test_func in $nlist" >&5
5477 fi
5478 else
5479 echo "cannot find nm_test_var in $nlist" >&5
5480 fi
5481 else
5482 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5483 fi
5484 else
5485 echo "$progname: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5487 fi
5488 rm -f conftest* conftst*
d6d788bd 5489
ce2cded5
L
5490 # Do not use the global_symbol_pipe unless it works.
5491 if test "$pipe_works" = yes; then
5492 break
5493 else
5494 lt_cv_sys_global_symbol_pipe=
5495 fi
5496done
4001ad8c 5497
d7040cdb
SE
5498fi
5499
ce2cded5
L
5500if test -z "$lt_cv_sys_global_symbol_pipe"; then
5501 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 5502fi
ce2cded5
L
5503if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5504 echo "$as_me:$LINENO: result: failed" >&5
5505echo "${ECHO_T}failed" >&6
5506else
5507 echo "$as_me:$LINENO: result: ok" >&5
5508echo "${ECHO_T}ok" >&6
d7040cdb 5509fi
13b2be9c 5510
9b2b7d69 5511
13b2be9c 5512
9b2b7d69 5513
13b2be9c 5514
13b2be9c 5515
13b2be9c
DJ
5516
5517
d7040cdb
SE
5518
5519
5520
5521
5522
5523
5524
5525
5526
ce2cded5
L
5527# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5528if test "${enable_libtool_lock+set}" = set; then
5529 enableval="$enable_libtool_lock"
d7040cdb 5530
ce2cded5
L
5531fi;
5532test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d7040cdb 5533
ce2cded5
L
5534# Some flags need to be propagated to the compiler or linker for good
5535# libtool support.
5536case $host in
5537ia64-*-hpux*)
5538 # Find out which ABI we are using.
5539 echo 'int i;' > conftest.$ac_ext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541 (eval $ac_compile) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; then
5545 case `/usr/bin/file conftest.$ac_objext` in
5546 *ELF-32*)
5547 HPUX_IA64_MODE="32"
5548 ;;
5549 *ELF-64*)
5550 HPUX_IA64_MODE="64"
5551 ;;
5552 esac
13b2be9c 5553 fi
ce2cded5 5554 rm -rf conftest*
d7040cdb 5555 ;;
ce2cded5
L
5556*-*-irix6*)
5557 # Find out which ABI we are using.
5558 echo '#line 5558 "configure"' > conftest.$ac_ext
5559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560 (eval $ac_compile) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; then
5564 if test "$lt_cv_prog_gnu_ld" = yes; then
5565 case `/usr/bin/file conftest.$ac_objext` in
5566 *32-bit*)
5567 LD="${LD-ld} -melf32bsmip"
5568 ;;
5569 *N32*)
5570 LD="${LD-ld} -melf32bmipn32"
5571 ;;
5572 *64-bit*)
5573 LD="${LD-ld} -melf64bmip"
5574 ;;
5575 esac
5576 else
5577 case `/usr/bin/file conftest.$ac_objext` in
5578 *32-bit*)
5579 LD="${LD-ld} -32"
5580 ;;
5581 *N32*)
5582 LD="${LD-ld} -n32"
5583 ;;
5584 *64-bit*)
5585 LD="${LD-ld} -64"
5586 ;;
5587 esac
5588 fi
5589 fi
5590 rm -rf conftest*
d7040cdb 5591 ;;
d7040cdb 5592
ce2cded5
L
5593x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5594s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5595 # Find out which ABI we are using.
5596 echo 'int i;' > conftest.$ac_ext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598 (eval $ac_compile) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; then
5602 case `/usr/bin/file conftest.o` in
5603 *32-bit*)
5604 case $host in
5605 x86_64-*kfreebsd*-gnu)
5606 LD="${LD-ld} -m elf_i386_fbsd"
5607 ;;
5608 x86_64-*linux*)
5609 LD="${LD-ld} -m elf_i386"
5610 ;;
5611 ppc64-*linux*|powerpc64-*linux*)
5612 LD="${LD-ld} -m elf32ppclinux"
5613 ;;
5614 s390x-*linux*)
5615 LD="${LD-ld} -m elf_s390"
5616 ;;
5617 sparc64-*linux*)
5618 LD="${LD-ld} -m elf32_sparc"
5619 ;;
d7040cdb 5620 esac
ce2cded5
L
5621 ;;
5622 *64-bit*)
5623 case $host in
5624 x86_64-*kfreebsd*-gnu)
5625 LD="${LD-ld} -m elf_x86_64_fbsd"
5626 ;;
5627 x86_64-*linux*)
5628 LD="${LD-ld} -m elf_x86_64"
5629 ;;
5630 ppc*-*linux*|powerpc*-*linux*)
5631 LD="${LD-ld} -m elf64ppc"
5632 ;;
5633 s390*-*linux*|s390*-*tpf*)
5634 LD="${LD-ld} -m elf64_s390"
5635 ;;
5636 sparc*-*linux*)
5637 LD="${LD-ld} -m elf64_sparc"
5638 ;;
5639 esac
5640 ;;
5641 esac
5642 fi
5643 rm -rf conftest*
d7040cdb 5644 ;;
d7040cdb 5645
ce2cded5
L
5646*-*-sco3.2v5*)
5647 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5648 SAVE_CFLAGS="$CFLAGS"
5649 CFLAGS="$CFLAGS -belf"
5650 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5651echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5652if test "${lt_cv_cc_needs_belf+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 5654else
ce2cded5
L
5655 ac_ext=c
5656ac_cpp='$CPP $CPPFLAGS'
5657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5659ac_compiler_gnu=$ac_cv_c_compiler_gnu
13b2be9c 5660
ce2cded5
L
5661 cat >conftest.$ac_ext <<_ACEOF
5662/* confdefs.h. */
5663_ACEOF
5664cat confdefs.h >>conftest.$ac_ext
5665cat >>conftest.$ac_ext <<_ACEOF
5666/* end confdefs.h. */
13b2be9c 5667
ce2cded5
L
5668int
5669main ()
5670{
d7040cdb 5671
ce2cded5
L
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext conftest$ac_exeext
5677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678 (eval $ac_link) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest$ac_exeext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 lt_cv_cc_needs_belf=yes
5699else
5700 echo "$as_me: failed program was:" >&5
5701sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5702
ce2cded5
L
5703lt_cv_cc_needs_belf=no
5704fi
5705rm -f conftest.err conftest.$ac_objext \
5706 conftest$ac_exeext conftest.$ac_ext
5707 ac_ext=c
5708ac_cpp='$CPP $CPPFLAGS'
5709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5711ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5712
13b2be9c 5713fi
ce2cded5
L
5714echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5715echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5716 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5717 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5718 CFLAGS="$SAVE_CFLAGS"
d7040cdb 5719 fi
ce2cded5
L
5720 ;;
5721sparc*-*solaris*)
5722 # Find out which ABI we are using.
5723 echo 'int i;' > conftest.$ac_ext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; then
5729 case `/usr/bin/file conftest.o` in
5730 *64-bit*)
5731 case $lt_cv_prog_gnu_ld in
5732 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5733 *) LD="${LD-ld} -64" ;;
5734 esac
5735 ;;
5736 esac
252b5132 5737 fi
ce2cded5 5738 rm -rf conftest*
d7040cdb
SE
5739 ;;
5740esac
252b5132 5741
ce2cded5 5742need_locks="$enable_libtool_lock"
13b2be9c 5743
d7040cdb
SE
5744ac_ext=c
5745ac_cpp='$CPP $CPPFLAGS'
5746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5748ac_compiler_gnu=$ac_cv_c_compiler_gnu
ce2cded5
L
5749echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5750echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5751# On Suns, sometimes $CPP names a directory.
5752if test -n "$CPP" && test -d "$CPP"; then
5753 CPP=
5754fi
5755if test -z "$CPP"; then
5756 if test "${ac_cv_prog_CPP+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759 # Double quotes because CPP needs to be expanded
5760 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5761 do
5762 ac_preproc_ok=false
5763for ac_c_preproc_warn_flag in '' yes
5764do
5765 # Use a header file that comes with gcc, so configuring glibc
5766 # with a fresh cross-compiler works.
5767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5768 # <limits.h> exists even on freestanding compilers.
5769 # On the NeXT, cc -E runs the code through the compiler's parser,
5770 # not just through cpp. "Syntax error" is here to catch this case.
5771 cat >conftest.$ac_ext <<_ACEOF
5772/* confdefs.h. */
5773_ACEOF
5774cat confdefs.h >>conftest.$ac_ext
5775cat >>conftest.$ac_ext <<_ACEOF
5776/* end confdefs.h. */
5777#ifdef __STDC__
5778# include <limits.h>
5779#else
5780# include <assert.h>
5781#endif
5782 Syntax error
5783_ACEOF
5784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } >/dev/null; then
5792 if test -s conftest.err; then
5793 ac_cpp_err=$ac_c_preproc_warn_flag
5794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5795 else
5796 ac_cpp_err=
5797 fi
5798else
5799 ac_cpp_err=yes
5800fi
5801if test -z "$ac_cpp_err"; then
5802 :
5803else
5804 echo "$as_me: failed program was:" >&5
5805sed 's/^/| /' conftest.$ac_ext >&5
6840198f 5806
ce2cded5
L
5807 # Broken: fails on valid input.
5808continue
5809fi
5810rm -f conftest.err conftest.$ac_ext
13b2be9c 5811
ce2cded5
L
5812 # OK, works on sane cases. Now check whether non-existent headers
5813 # can be detected and how.
5814 cat >conftest.$ac_ext <<_ACEOF
5815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
5820#include <ac_nonexistent.h>
5821_ACEOF
5822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } >/dev/null; then
5830 if test -s conftest.err; then
5831 ac_cpp_err=$ac_c_preproc_warn_flag
5832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5833 else
5834 ac_cpp_err=
5835 fi
5836else
5837 ac_cpp_err=yes
5838fi
5839if test -z "$ac_cpp_err"; then
5840 # Broken: success on invalid input.
5841continue
5842else
5843 echo "$as_me: failed program was:" >&5
5844sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 5845
ce2cded5
L
5846 # Passes both tests.
5847ac_preproc_ok=:
5848break
5849fi
5850rm -f conftest.err conftest.$ac_ext
13b2be9c 5851
ce2cded5
L
5852done
5853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5854rm -f conftest.err conftest.$ac_ext
5855if $ac_preproc_ok; then
5856 break
5857fi
13b2be9c 5858
ce2cded5
L
5859 done
5860 ac_cv_prog_CPP=$CPP
d7040cdb 5861
ce2cded5
L
5862fi
5863 CPP=$ac_cv_prog_CPP
5864else
5865 ac_cv_prog_CPP=$CPP
5866fi
5867echo "$as_me:$LINENO: result: $CPP" >&5
5868echo "${ECHO_T}$CPP" >&6
5869ac_preproc_ok=false
5870for ac_c_preproc_warn_flag in '' yes
5871do
5872 # Use a header file that comes with gcc, so configuring glibc
5873 # with a fresh cross-compiler works.
5874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5875 # <limits.h> exists even on freestanding compilers.
5876 # On the NeXT, cc -E runs the code through the compiler's parser,
5877 # not just through cpp. "Syntax error" is here to catch this case.
5878 cat >conftest.$ac_ext <<_ACEOF
5879/* confdefs.h. */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h. */
5884#ifdef __STDC__
5885# include <limits.h>
5886#else
5887# include <assert.h>
5888#endif
5889 Syntax error
5890_ACEOF
5891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5893 ac_status=$?
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } >/dev/null; then
5899 if test -s conftest.err; then
5900 ac_cpp_err=$ac_c_preproc_warn_flag
5901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5902 else
5903 ac_cpp_err=
5904 fi
5905else
5906 ac_cpp_err=yes
5907fi
5908if test -z "$ac_cpp_err"; then
5909 :
5910else
5911 echo "$as_me: failed program was:" >&5
5912sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5913
ce2cded5
L
5914 # Broken: fails on valid input.
5915continue
5916fi
5917rm -f conftest.err conftest.$ac_ext
d7040cdb 5918
ce2cded5
L
5919 # OK, works on sane cases. Now check whether non-existent headers
5920 # can be detected and how.
5921 cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h. */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h. */
5927#include <ac_nonexistent.h>
5928_ACEOF
5929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } >/dev/null; then
5937 if test -s conftest.err; then
5938 ac_cpp_err=$ac_c_preproc_warn_flag
5939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5940 else
5941 ac_cpp_err=
5942 fi
5943else
5944 ac_cpp_err=yes
5945fi
5946if test -z "$ac_cpp_err"; then
5947 # Broken: success on invalid input.
5948continue
5949else
5950 echo "$as_me: failed program was:" >&5
5951sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5952
ce2cded5
L
5953 # Passes both tests.
5954ac_preproc_ok=:
5955break
5956fi
5957rm -f conftest.err conftest.$ac_ext
d7040cdb 5958
ce2cded5
L
5959done
5960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5961rm -f conftest.err conftest.$ac_ext
5962if $ac_preproc_ok; then
5963 :
5964else
5965 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5966See \`config.log' for more details." >&5
5967echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5968See \`config.log' for more details." >&2;}
5969 { (exit 1); exit 1; }; }
5970fi
d7040cdb 5971
ce2cded5
L
5972ac_ext=c
5973ac_cpp='$CPP $CPPFLAGS'
5974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5977
d7040cdb 5978
ce2cded5
L
5979echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5980echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5981if test "${ac_cv_header_stdc+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984 cat >conftest.$ac_ext <<_ACEOF
5985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
5990#include <stdlib.h>
5991#include <stdarg.h>
5992#include <string.h>
5993#include <float.h>
d7040cdb 5994
ce2cded5
L
5995int
5996main ()
5997{
d7040cdb 5998
ce2cded5
L
5999 ;
6000 return 0;
6001}
6002_ACEOF
6003rm -f conftest.$ac_objext
6004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6005 (eval $ac_compile) 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_c_werror_flag"
6013 || test ! -s conftest.err'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; } &&
6019 { ac_try='test -s conftest.$ac_objext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_header_stdc=yes
13b2be9c 6026else
ce2cded5
L
6027 echo "$as_me: failed program was:" >&5
6028sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 6029
ce2cded5 6030ac_cv_header_stdc=no
d7040cdb 6031fi
ce2cded5 6032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 6033
ce2cded5
L
6034if test $ac_cv_header_stdc = yes; then
6035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6036 cat >conftest.$ac_ext <<_ACEOF
6037/* confdefs.h. */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h. */
6042#include <string.h>
6043
6044_ACEOF
6045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6046 $EGREP "memchr" >/dev/null 2>&1; then
6047 :
13b2be9c 6048else
ce2cded5 6049 ac_cv_header_stdc=no
13b2be9c 6050fi
ce2cded5 6051rm -f conftest*
13b2be9c
DJ
6052
6053fi
13b2be9c 6054
ce2cded5
L
6055if test $ac_cv_header_stdc = yes; then
6056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6057 cat >conftest.$ac_ext <<_ACEOF
6058/* confdefs.h. */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h. */
6063#include <stdlib.h>
13b2be9c 6064
ce2cded5
L
6065_ACEOF
6066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "free" >/dev/null 2>&1; then
6068 :
6069else
6070 ac_cv_header_stdc=no
6071fi
6072rm -f conftest*
c8615825 6073
ce2cded5 6074fi
d7040cdb 6075
ce2cded5
L
6076if test $ac_cv_header_stdc = yes; then
6077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6078 if test "$cross_compiling" = yes; then
6079 :
6080else
6081 cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h. */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h. */
6087#include <ctype.h>
6088#if ((' ' & 0x0FF) == 0x020)
6089# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6090# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6091#else
6092# define ISLOWER(c) \
6093 (('a' <= (c) && (c) <= 'i') \
6094 || ('j' <= (c) && (c) <= 'r') \
6095 || ('s' <= (c) && (c) <= 'z'))
6096# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6097#endif
d7040cdb 6098
ce2cded5
L
6099#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6100int
6101main ()
6102{
6103 int i;
6104 for (i = 0; i < 256; i++)
6105 if (XOR (islower (i), ISLOWER (i))
6106 || toupper (i) != TOUPPER (i))
6107 exit(2);
6108 exit (0);
6109}
6110_ACEOF
6111rm -f conftest$ac_exeext
6112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6113 (eval $ac_link) 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 (eval $ac_try) 2>&5
6119 ac_status=$?
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 :
6123else
6124 echo "$as_me: program exited with status $ac_status" >&5
6125echo "$as_me: failed program was:" >&5
6126sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6127
ce2cded5
L
6128( exit $ac_status )
6129ac_cv_header_stdc=no
6130fi
6131rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6132fi
6133fi
6134fi
6135echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6136echo "${ECHO_T}$ac_cv_header_stdc" >&6
6137if test $ac_cv_header_stdc = yes; then
d7040cdb 6138
ce2cded5
L
6139cat >>confdefs.h <<\_ACEOF
6140#define STDC_HEADERS 1
6141_ACEOF
d7040cdb 6142
ce2cded5 6143fi
d7040cdb 6144
ce2cded5 6145# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6146
d7040cdb 6147
d7040cdb 6148
d7040cdb 6149
d7040cdb 6150
d7040cdb 6151
d7040cdb 6152
d7040cdb 6153
d7040cdb 6154
ce2cded5
L
6155for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6156 inttypes.h stdint.h unistd.h
6157do
6158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6159echo "$as_me:$LINENO: checking for $ac_header" >&5
6160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6161if eval "test \"\${$as_ac_Header+set}\" = set"; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164 cat >conftest.$ac_ext <<_ACEOF
6165/* confdefs.h. */
6166_ACEOF
6167cat confdefs.h >>conftest.$ac_ext
6168cat >>conftest.$ac_ext <<_ACEOF
6169/* end confdefs.h. */
6170$ac_includes_default
d7040cdb 6171
ce2cded5
L
6172#include <$ac_header>
6173_ACEOF
6174rm -f conftest.$ac_objext
6175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>conftest.er1
6177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -z "$ac_c_werror_flag"
6184 || test ! -s conftest.err'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 eval "$as_ac_Header=yes"
6197else
6198 echo "$as_me: failed program was:" >&5
6199sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6200
ce2cded5
L
6201eval "$as_ac_Header=no"
6202fi
6203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6204fi
6205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6207if test `eval echo '${'$as_ac_Header'}'` = yes; then
6208 cat >>confdefs.h <<_ACEOF
6209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6210_ACEOF
d7040cdb 6211
ce2cded5 6212fi
d7040cdb 6213
ce2cded5 6214done
d7040cdb 6215
d7040cdb 6216
d7040cdb 6217
ce2cded5
L
6218for ac_header in dlfcn.h
6219do
6220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221echo "$as_me:$LINENO: checking for $ac_header" >&5
6222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6223if eval "test \"\${$as_ac_Header+set}\" = set"; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226 cat >conftest.$ac_ext <<_ACEOF
6227/* confdefs.h. */
6228_ACEOF
6229cat confdefs.h >>conftest.$ac_ext
6230cat >>conftest.$ac_ext <<_ACEOF
6231/* end confdefs.h. */
6232$ac_includes_default
d7040cdb 6233
ce2cded5
L
6234#include <$ac_header>
6235_ACEOF
6236rm -f conftest.$ac_objext
6237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238 (eval $ac_compile) 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -z "$ac_c_werror_flag"
6246 || test ! -s conftest.err'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
6252 { ac_try='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 eval "$as_ac_Header=yes"
6259else
6260 echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6262
ce2cded5
L
6263eval "$as_ac_Header=no"
6264fi
6265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6266fi
6267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6269if test `eval echo '${'$as_ac_Header'}'` = yes; then
6270 cat >>confdefs.h <<_ACEOF
6271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6272_ACEOF
d7040cdb 6273
ce2cded5 6274fi
d7040cdb 6275
ce2cded5 6276done
d7040cdb 6277
d7040cdb 6278
d7040cdb 6279
ce2cded5
L
6280# This can be used to rebuild libtool when needed
6281LIBTOOL_DEPS="$ltmain"
d7040cdb 6282
ce2cded5
L
6283# Always use our own libtool.
6284LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6285
d7040cdb 6286
d7040cdb 6287
d7040cdb
SE
6288
6289
6290
6291
6292
6293
d7040cdb 6294
d7040cdb 6295
ab509236 6296
ab509236 6297
d7040cdb
SE
6298
6299
6300
6301
6302
13b2be9c 6303
13b2be9c 6304
13b2be9c 6305
13b2be9c 6306
d7040cdb
SE
6307
6308
6309
ce2cded5 6310test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6311
6312
d7040cdb 6313
d7040cdb 6314
d7040cdb
SE
6315
6316
6317
6318
6319
6320
ce2cded5
L
6321
6322
6323
6324
6325if test -n "${ZSH_VERSION+set}" ; then
6326 setopt NO_GLOB_SUBST
6327fi
6328
6329echo "$as_me:$LINENO: checking for objdir" >&5
6330echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6331if test "${lt_cv_objdir+set}" = set; then
d7040cdb
SE
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333else
ce2cded5
L
6334 rm -f .libs 2>/dev/null
6335mkdir .libs 2>/dev/null
6336if test -d .libs; then
6337 lt_cv_objdir=.libs
6338else
6339 # MS-DOS does not allow filenames that begin with a dot.
6340 lt_cv_objdir=_libs
d7040cdb 6341fi
ce2cded5
L
6342rmdir .libs 2>/dev/null
6343fi
6344echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6345echo "${ECHO_T}$lt_cv_objdir" >&6
6346objdir=$lt_cv_objdir
d7040cdb
SE
6347
6348
6349
6350
d7040cdb 6351
ce2cded5
L
6352cat >>confdefs.h <<_ACEOF
6353#define LT_OBJDIR "$lt_cv_objdir/"
6354_ACEOF
d7040cdb
SE
6355
6356
6357
6358
6359
d7040cdb 6360
d7040cdb 6361
d7040cdb 6362
d7040cdb 6363
d7040cdb 6364
d7040cdb 6365
d7040cdb 6366
d7040cdb 6367
d7040cdb 6368
d7040cdb 6369
d7040cdb 6370
d7040cdb 6371
ce2cded5
L
6372case $host_os in
6373aix3*)
6374 # AIX sometimes has problems with the GCC collect2 program. For some
6375 # reason, if we set the COLLECT_NAMES environment variable, the problems
6376 # vanish in a puff of smoke.
6377 if test "X${COLLECT_NAMES+set}" != Xset; then
6378 COLLECT_NAMES=
6379 export COLLECT_NAMES
6380 fi
6381 ;;
6382esac
d7040cdb 6383
ce2cded5
L
6384# Sed substitution that helps us do robust quoting. It backslashifies
6385# metacharacters that are still active within double-quoted strings.
6386sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6387
ce2cded5
L
6388# Same as above, but do not quote variable references.
6389double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6390
ce2cded5
L
6391# Sed substitution to delay expansion of an escaped shell variable in a
6392# double_quote_subst'ed string.
6393delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6394
ce2cded5
L
6395# Sed substitution to delay expansion of an escaped single quote.
6396delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6397
ce2cded5
L
6398# Sed substitution to avoid accidental globbing in evaled expressions
6399no_glob_subst='s/\*/\\\*/g'
d7040cdb 6400
ce2cded5
L
6401# Global variables:
6402ofile=libtool
6403can_build_shared=yes
d7040cdb 6404
ce2cded5
L
6405# All known linkers require a `.a' archive for static linking (except MSVC,
6406# which needs '.lib').
6407libext=a
d7040cdb 6408
ce2cded5 6409with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6410
ce2cded5
L
6411old_CC="$CC"
6412old_CFLAGS="$CFLAGS"
d7040cdb 6413
ce2cded5
L
6414# Set sane defaults for various variables
6415test -z "$CC" && CC=cc
6416test -z "$LTCC" && LTCC=$CC
6417test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6418test -z "$LD" && LD=ld
6419test -z "$ac_objext" && ac_objext=o
6420
6421for cc_temp in $compiler""; do
6422 case $cc_temp in
6423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6425 \-*) ;;
6426 *) break;;
6427 esac
6428done
6429cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6430
6431
6432# Only perform the check for file, if the check method requires it
6433test -z "$MAGIC_CMD" && MAGIC_CMD=file
6434case $deplibs_check_method in
6435file_magic*)
6436 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6437 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6438echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6439if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441else
6442 case $MAGIC_CMD in
6443[\\/*] | ?:[\\/]*)
6444 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6445 ;;
6446*)
6447 lt_save_MAGIC_CMD="$MAGIC_CMD"
6448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6449 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6450 for ac_dir in $ac_dummy; do
6451 IFS="$lt_save_ifs"
6452 test -z "$ac_dir" && ac_dir=.
6453 if test -f $ac_dir/${ac_tool_prefix}file; then
6454 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6455 if test -n "$file_magic_test_file"; then
6456 case $deplibs_check_method in
6457 "file_magic "*)
6458 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6460 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6461 $EGREP "$file_magic_regex" > /dev/null; then
6462 :
d7040cdb 6463 else
ce2cded5 6464 cat <<_LT_EOF 1>&2
d7040cdb 6465
ce2cded5
L
6466*** Warning: the command libtool uses to detect shared libraries,
6467*** $file_magic_cmd, produces output that libtool cannot recognize.
6468*** The result is that libtool may fail to recognize shared libraries
6469*** as such. This will affect the creation of libtool libraries that
6470*** depend on shared libraries, but programs linked with such libtool
6471*** libraries will work regardless of this problem. Nevertheless, you
6472*** may want to report the problem to your system manager and/or to
6473*** bug-libtool@gnu.org
d7040cdb 6474
ce2cded5
L
6475_LT_EOF
6476 fi ;;
6477 esac
d7040cdb 6478 fi
ce2cded5 6479 break
d7040cdb 6480 fi
ce2cded5
L
6481 done
6482 IFS="$lt_save_ifs"
6483 MAGIC_CMD="$lt_save_MAGIC_CMD"
6484 ;;
6485esac
6486fi
d7040cdb 6487
ce2cded5
L
6488MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6489if test -n "$MAGIC_CMD"; then
6490 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6491echo "${ECHO_T}$MAGIC_CMD" >&6
6492else
6493 echo "$as_me:$LINENO: result: no" >&5
6494echo "${ECHO_T}no" >&6
6495fi
d7040cdb 6496
d7040cdb 6497
d7040cdb 6498
d7040cdb 6499
d7040cdb 6500
ce2cded5
L
6501if test -z "$lt_cv_path_MAGIC_CMD"; then
6502 if test -n "$ac_tool_prefix"; then
6503 echo "$as_me:$LINENO: checking for file" >&5
6504echo $ECHO_N "checking for file... $ECHO_C" >&6
6505if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508 case $MAGIC_CMD in
6509[\\/*] | ?:[\\/]*)
6510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6511 ;;
6512*)
6513 lt_save_MAGIC_CMD="$MAGIC_CMD"
6514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6516 for ac_dir in $ac_dummy; do
6517 IFS="$lt_save_ifs"
6518 test -z "$ac_dir" && ac_dir=.
6519 if test -f $ac_dir/file; then
6520 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6521 if test -n "$file_magic_test_file"; then
6522 case $deplibs_check_method in
6523 "file_magic "*)
6524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6527 $EGREP "$file_magic_regex" > /dev/null; then
6528 :
d7040cdb 6529 else
ce2cded5
L
6530 cat <<_LT_EOF 1>&2
6531
6532*** Warning: the command libtool uses to detect shared libraries,
6533*** $file_magic_cmd, produces output that libtool cannot recognize.
6534*** The result is that libtool may fail to recognize shared libraries
6535*** as such. This will affect the creation of libtool libraries that
6536*** depend on shared libraries, but programs linked with such libtool
6537*** libraries will work regardless of this problem. Nevertheless, you
6538*** may want to report the problem to your system manager and/or to
6539*** bug-libtool@gnu.org
6540
6541_LT_EOF
6542 fi ;;
d7040cdb 6543 esac
d7040cdb 6544 fi
ce2cded5
L
6545 break
6546 fi
6547 done
6548 IFS="$lt_save_ifs"
6549 MAGIC_CMD="$lt_save_MAGIC_CMD"
6550 ;;
6551esac
6552fi
d7040cdb 6553
ce2cded5
L
6554MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6555if test -n "$MAGIC_CMD"; then
6556 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6557echo "${ECHO_T}$MAGIC_CMD" >&6
6558else
6559 echo "$as_me:$LINENO: result: no" >&5
6560echo "${ECHO_T}no" >&6
6561fi
d7040cdb 6562
d7040cdb 6563
ce2cded5
L
6564 else
6565 MAGIC_CMD=:
6566 fi
d7040cdb 6567fi
d7040cdb 6568
ce2cded5
L
6569 fi
6570 ;;
6571esac
d7040cdb 6572
ce2cded5 6573# Use C for the default configuration in the libtool script
d7040cdb 6574
ce2cded5
L
6575lt_save_CC="$CC"
6576ac_ext=c
6577ac_cpp='$CPP $CPPFLAGS'
6578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6580ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6581
d7040cdb 6582
ce2cded5
L
6583# Source file extension for C test sources.
6584ac_ext=c
d7040cdb 6585
ce2cded5
L
6586# Object file extension for compiled C test sources.
6587objext=o
6588objext=$objext
d7040cdb 6589
ce2cded5
L
6590# Code to be used in simple compile tests
6591lt_simple_compile_test_code="int some_variable = 0;"
6592
6593# Code to be used in simple link tests
6594lt_simple_link_test_code='int main(){return(0);}'
6595
6596
6597
6598
6599
6600
6601
6602# If no C compiler was specified, use CC.
6603LTCC=${LTCC-"$CC"}
6604
6605# If no C compiler flags were specified, use CFLAGS.
6606LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6607
6608# Allow CC to be a program name with arguments.
6609compiler=$CC
6610
6611# Save the default compiler, since it gets overwritten when the other
6612# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6613compiler_DEFAULT=$CC
6614
6615# save warnings/boilerplate of simple test code
6616ac_outfile=conftest.$ac_objext
6617echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6618eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6619_lt_compiler_boilerplate=`cat conftest.err`
6620$RM conftest*
6621
6622ac_outfile=conftest.$ac_objext
6623echo "$lt_simple_link_test_code" >conftest.$ac_ext
6624eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6625_lt_linker_boilerplate=`cat conftest.err`
6626$RM conftest*
6627
6628
6629## CAVEAT EMPTOR:
6630## There is no encapsulation within the following macros, do not change
6631## the running order or otherwise move them around unless you know exactly
6632## what you are doing...
6633if test -n "$compiler"; then
6634
6635lt_prog_compiler_no_builtin_flag=
6636
6637if test "$GCC" = yes; then
6638 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6639
6640 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6641echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6642if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6644else
6645 lt_cv_prog_compiler_rtti_exceptions=no
6646 ac_outfile=conftest.$ac_objext
6647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6648 lt_compiler_flag="-fno-rtti -fno-exceptions"
6649 # Insert the option either (1) after the last *FLAGS variable, or
6650 # (2) before a word containing "conftest.", or (3) at the end.
6651 # Note that $ac_compile itself does not contain backslashes and begins
6652 # with a dollar sign (not a hyphen), so the echo should work correctly.
6653 # The option is referenced via a variable to avoid confusing sed.
6654 lt_compile=`echo "$ac_compile" | $SED \
6655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6657 -e 's:$: $lt_compiler_flag:'`
6658 (eval echo "\"\$as_me:6658: $lt_compile\"" >&5)
6659 (eval "$lt_compile" 2>conftest.err)
6660 ac_status=$?
6661 cat conftest.err >&5
6662 echo "$as_me:6662: \$? = $ac_status" >&5
6663 if (exit $ac_status) && test -s "$ac_outfile"; then
6664 # The compiler can only warn and ignore the option if not recognized
6665 # So say no if there are warnings other than the usual output.
6666 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6669 lt_cv_prog_compiler_rtti_exceptions=yes
6670 fi
6671 fi
6672 $RM conftest*
6673
6674fi
6675echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6676echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6677
6678if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6679 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6680else
6681 :
6682fi
6683
6684fi
6685
6686
6687
6688
6689
6690
6691 lt_prog_compiler_wl=
6692lt_prog_compiler_pic=
6693lt_prog_compiler_static=
6694
6695echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6696echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6697
6698 if test "$GCC" = yes; then
6699 lt_prog_compiler_wl='-Wl,'
6700 lt_prog_compiler_static='-static'
6701
6702 case $host_os in
6703 aix*)
6704 # All AIX code is PIC.
6705 if test "$host_cpu" = ia64; then
6706 # AIX 5 now supports IA64 processor
6707 lt_prog_compiler_static='-Bstatic'
6708 fi
6709 ;;
d7040cdb
SE
6710
6711 amigaos*)
6712 if test "$host_cpu" = m68k; then
ce2cded5
L
6713 # FIXME: we need at least 68020 code to build shared libraries, but
6714 # adding the `-m68020' flag to GCC prevents building anything better,
6715 # like `-m68040'.
6716 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
d7040cdb 6717 fi
d7040cdb
SE
6718 ;;
6719
ce2cded5
L
6720 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6721 # PIC is the default for these OSes.
d7040cdb
SE
6722 ;;
6723
ce2cded5
L
6724 mingw* | cygwin* | pw32* | os2*)
6725 # This hack is so that the source file can tell whether it is being
6726 # built for inclusion in a dll (and should export symbols for example).
6727 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6728 # (--disable-auto-import) libraries
6729 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
6730 ;;
6731
6732 darwin* | rhapsody*)
ce2cded5
L
6733 # PIC is the default on this platform
6734 # Common symbols not allowed in MH_DYLIB files
6735 lt_prog_compiler_pic='-fno-common'
6736 ;;
6737
6738 hpux*)
6739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6740 # not for PA HP-UX.
6741 case $host_cpu in
6742 hppa*64*|ia64*)
6743 # +Z the default
d7040cdb 6744 ;;
ce2cded5
L
6745 *)
6746 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
6747 ;;
6748 esac
ce2cded5 6749 ;;
d7040cdb 6750
ce2cded5
L
6751 interix[3-9]*)
6752 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6753 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
6754 ;;
6755
ce2cded5
L
6756 msdosdjgpp*)
6757 # Just because we use GCC doesn't mean we suddenly get shared libraries
6758 # on systems that don't support them.
6759 lt_prog_compiler_can_build_shared=no
6760 enable_shared=no
d7040cdb
SE
6761 ;;
6762
ce2cded5
L
6763 *nto* | *qnx*)
6764 # QNX uses GNU C++, but need to define -shared option too, otherwise
6765 # it will coredump.
6766 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
6767 ;;
6768
ce2cded5
L
6769 sysv4*MP*)
6770 if test -d /usr/nec; then
6771 lt_prog_compiler_pic=-Kconform_pic
6772 fi
d7040cdb
SE
6773 ;;
6774
ce2cded5
L
6775 *)
6776 lt_prog_compiler_pic='-fPIC'
d7040cdb 6777 ;;
ce2cded5
L
6778 esac
6779 else
6780 # PORTME Check for flag to pass linker flags through the system compiler.
6781 case $host_os in
6782 aix*)
6783 lt_prog_compiler_wl='-Wl,'
6784 if test "$host_cpu" = ia64; then
6785 # AIX 5 now supports IA64 processor
6786 lt_prog_compiler_static='-Bstatic'
d7040cdb 6787 else
ce2cded5 6788 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 6789 fi
ce2cded5
L
6790 ;;
6791 darwin*)
6792 # PIC is the default on this platform
6793 # Common symbols not allowed in MH_DYLIB files
6794 case $cc_basename in
6795 xlc*)
6796 lt_prog_compiler_pic='-qnocommon'
6797 lt_prog_compiler_wl='-Wl,'
6798 ;;
6799 esac
6800 ;;
d7040cdb 6801
ce2cded5
L
6802 mingw* | cygwin* | pw32* | os2*)
6803 # This hack is so that the source file can tell whether it is being
6804 # built for inclusion in a dll (and should export symbols for example).
6805 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
6806 ;;
6807
ce2cded5
L
6808 hpux9* | hpux10* | hpux11*)
6809 lt_prog_compiler_wl='-Wl,'
6810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6811 # not for PA HP-UX.
6812 case $host_cpu in
6813 hppa*64*|ia64*)
6814 # +Z the default
6815 ;;
6816 *)
6817 lt_prog_compiler_pic='+Z'
6818 ;;
6819 esac
6820 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6821 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
6822 ;;
6823
ce2cded5
L
6824 irix5* | irix6* | nonstopux*)
6825 lt_prog_compiler_wl='-Wl,'
6826 # PIC (with -KPIC) is the default.
6827 lt_prog_compiler_static='-non_shared'
6828 ;;
d7040cdb 6829
ce2cded5
L
6830 linux* | k*bsd*-gnu)
6831 case $cc_basename in
6832 icc* | ecc*)
6833 lt_prog_compiler_wl='-Wl,'
6834 lt_prog_compiler_pic='-KPIC'
6835 lt_prog_compiler_static='-static'
6836 ;;
6837 pgcc* | pgf77* | pgf90* | pgf95*)
6838 # Portland Group compilers (*not* the Pentium gcc compiler,
6839 # which looks to be a dead project)
6840 lt_prog_compiler_wl='-Wl,'
6841 lt_prog_compiler_pic='-fpic'
6842 lt_prog_compiler_static='-Bstatic'
6843 ;;
6844 ccc*)
6845 lt_prog_compiler_wl='-Wl,'
6846 # All Alpha code is PIC.
6847 lt_prog_compiler_static='-non_shared'
6848 ;;
6849 *)
6850 case `$CC -V 2>&1 | sed 5q` in
6851 *Sun\ C*)
6852 # Sun C 5.9
6853 lt_prog_compiler_pic='-KPIC'
6854 lt_prog_compiler_static='-Bstatic'
6855 lt_prog_compiler_wl='-Wl,'
d7040cdb 6856 ;;
ce2cded5
L
6857 *Sun\ F*)
6858 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6859 lt_prog_compiler_pic='-KPIC'
6860 lt_prog_compiler_static='-Bstatic'
6861 lt_prog_compiler_wl=''
d7040cdb
SE
6862 ;;
6863 esac
ce2cded5
L
6864 ;;
6865 esac
d7040cdb
SE
6866 ;;
6867
ce2cded5
L
6868 newsos6)
6869 lt_prog_compiler_pic='-KPIC'
6870 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6871 ;;
6872
ce2cded5
L
6873 *nto* | *qnx*)
6874 # QNX uses GNU C++, but need to define -shared option too, otherwise
6875 # it will coredump.
6876 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
6877 ;;
6878
ce2cded5
L
6879 osf3* | osf4* | osf5*)
6880 lt_prog_compiler_wl='-Wl,'
6881 # All OSF/1 code is PIC.
6882 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
6883 ;;
6884
ce2cded5
L
6885 rdos*)
6886 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
6887 ;;
6888
6889 solaris*)
ce2cded5
L
6890 lt_prog_compiler_pic='-KPIC'
6891 lt_prog_compiler_static='-Bstatic'
6892 case $cc_basename in
6893 f77* | f90* | f95*)
6894 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 6895 *)
ce2cded5 6896 lt_prog_compiler_wl='-Wl,';;
d7040cdb 6897 esac
d7040cdb
SE
6898 ;;
6899
6900 sunos4*)
ce2cded5
L
6901 lt_prog_compiler_wl='-Qoption ld '
6902 lt_prog_compiler_pic='-PIC'
6903 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6904 ;;
6905
ce2cded5
L
6906 sysv4 | sysv4.2uw2* | sysv4.3*)
6907 lt_prog_compiler_wl='-Wl,'
6908 lt_prog_compiler_pic='-KPIC'
6909 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6910 ;;
6911
6912 sysv4*MP*)
ce2cded5
L
6913 if test -d /usr/nec ;then
6914 lt_prog_compiler_pic='-Kconform_pic'
6915 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6916 fi
6917 ;;
6918
ce2cded5
L
6919 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6920 lt_prog_compiler_wl='-Wl,'
6921 lt_prog_compiler_pic='-KPIC'
6922 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6923 ;;
6924
ce2cded5
L
6925 unicos*)
6926 lt_prog_compiler_wl='-Wl,'
6927 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
6928 ;;
6929
6930 uts4*)
ce2cded5
L
6931 lt_prog_compiler_pic='-pic'
6932 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6933 ;;
6934
6935 *)
ce2cded5 6936 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
6937 ;;
6938 esac
d7040cdb
SE
6939 fi
6940
ce2cded5
L
6941case $host_os in
6942 # For platforms which do not support PIC, -DPIC is meaningless:
6943 *djgpp*)
6944 lt_prog_compiler_pic=
6945 ;;
6946 *)
6947 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6948 ;;
6949esac
6950echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6951echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
6952
6953
6954
6955
6956
6957
6958#
ce2cded5 6959# Check to make sure the PIC flag actually works.
d7040cdb 6960#
ce2cded5
L
6961if test -n "$lt_prog_compiler_pic"; then
6962 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6963echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6964if test "${lt_prog_compiler_pic_works+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967 lt_prog_compiler_pic_works=no
6968 ac_outfile=conftest.$ac_objext
6969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6970 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6971 # Insert the option either (1) after the last *FLAGS variable, or
6972 # (2) before a word containing "conftest.", or (3) at the end.
6973 # Note that $ac_compile itself does not contain backslashes and begins
6974 # with a dollar sign (not a hyphen), so the echo should work correctly.
6975 # The option is referenced via a variable to avoid confusing sed.
6976 lt_compile=`echo "$ac_compile" | $SED \
6977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6979 -e 's:$: $lt_compiler_flag:'`
6980 (eval echo "\"\$as_me:6980: $lt_compile\"" >&5)
6981 (eval "$lt_compile" 2>conftest.err)
6982 ac_status=$?
6983 cat conftest.err >&5
6984 echo "$as_me:6984: \$? = $ac_status" >&5
6985 if (exit $ac_status) && test -s "$ac_outfile"; then
6986 # The compiler can only warn and ignore the option if not recognized
6987 # So say no if there are warnings other than the usual output.
6988 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6991 lt_prog_compiler_pic_works=yes
6992 fi
6993 fi
6994 $RM conftest*
d7040cdb 6995
ce2cded5
L
6996fi
6997echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6998echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
d7040cdb 6999
ce2cded5
L
7000if test x"$lt_prog_compiler_pic_works" = xyes; then
7001 case $lt_prog_compiler_pic in
7002 "" | " "*) ;;
7003 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7004 esac
7005else
7006 lt_prog_compiler_pic=
7007 lt_prog_compiler_can_build_shared=no
7008fi
d7040cdb 7009
ce2cded5 7010fi
d7040cdb
SE
7011
7012
7013
7014
7015
7016
ce2cded5
L
7017#
7018# Check to make sure the static flag actually works.
7019#
7020wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7021echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7022echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7023if test "${lt_prog_compiler_static_works+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026 lt_prog_compiler_static_works=no
7027 save_LDFLAGS="$LDFLAGS"
7028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7031 # The linker can only warn and ignore the option if not recognized
7032 # So say no if there are warnings
7033 if test -s conftest.err; then
7034 # Append any errors to the config.log.
7035 cat conftest.err 1>&5
7036 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7038 if diff conftest.exp conftest.er2 >/dev/null; then
7039 lt_prog_compiler_static_works=yes
7040 fi
7041 else
7042 lt_prog_compiler_static_works=yes
7043 fi
7044 fi
7045 $RM conftest*
7046 LDFLAGS="$save_LDFLAGS"
d7040cdb 7047
ce2cded5
L
7048fi
7049echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7050echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7051
ce2cded5
L
7052if test x"$lt_prog_compiler_static_works" = xyes; then
7053 :
7054else
7055 lt_prog_compiler_static=
7056fi
d7040cdb
SE
7057
7058
7059
7060
7061
7062
7063
ce2cded5
L
7064 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7065echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7066if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069 lt_cv_prog_compiler_c_o=no
7070 $RM -r conftest 2>/dev/null
7071 mkdir conftest
7072 cd conftest
7073 mkdir out
7074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7075
ce2cded5
L
7076 lt_compiler_flag="-o out/conftest2.$ac_objext"
7077 # Insert the option either (1) after the last *FLAGS variable, or
7078 # (2) before a word containing "conftest.", or (3) at the end.
7079 # Note that $ac_compile itself does not contain backslashes and begins
7080 # with a dollar sign (not a hyphen), so the echo should work correctly.
7081 lt_compile=`echo "$ac_compile" | $SED \
7082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7084 -e 's:$: $lt_compiler_flag:'`
7085 (eval echo "\"\$as_me:7085: $lt_compile\"" >&5)
7086 (eval "$lt_compile" 2>out/conftest.err)
7087 ac_status=$?
7088 cat out/conftest.err >&5
7089 echo "$as_me:7089: \$? = $ac_status" >&5
7090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7091 then
7092 # The compiler can only warn and ignore the option if not recognized
7093 # So say no if there are warnings
7094 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7097 lt_cv_prog_compiler_c_o=yes
7098 fi
7099 fi
7100 chmod u+w . 2>&5
7101 $RM conftest*
7102 # SGI C++ compiler will create directory out/ii_files/ for
7103 # template instantiation
7104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7105 $RM out/* && rmdir out
7106 cd ..
7107 $RM -r conftest
7108 $RM conftest*
d7040cdb 7109
ce2cded5
L
7110fi
7111echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7112echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7113
7114
7115
7116
7117
7118
ce2cded5
L
7119 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7120echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7121if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124 lt_cv_prog_compiler_c_o=no
7125 $RM -r conftest 2>/dev/null
7126 mkdir conftest
7127 cd conftest
7128 mkdir out
7129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7130
ce2cded5
L
7131 lt_compiler_flag="-o out/conftest2.$ac_objext"
7132 # Insert the option either (1) after the last *FLAGS variable, or
7133 # (2) before a word containing "conftest.", or (3) at the end.
7134 # Note that $ac_compile itself does not contain backslashes and begins
7135 # with a dollar sign (not a hyphen), so the echo should work correctly.
7136 lt_compile=`echo "$ac_compile" | $SED \
7137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7139 -e 's:$: $lt_compiler_flag:'`
7140 (eval echo "\"\$as_me:7140: $lt_compile\"" >&5)
7141 (eval "$lt_compile" 2>out/conftest.err)
7142 ac_status=$?
7143 cat out/conftest.err >&5
7144 echo "$as_me:7144: \$? = $ac_status" >&5
7145 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7146 then
7147 # The compiler can only warn and ignore the option if not recognized
7148 # So say no if there are warnings
7149 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7150 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7151 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7152 lt_cv_prog_compiler_c_o=yes
7153 fi
7154 fi
7155 chmod u+w . 2>&5
7156 $RM conftest*
7157 # SGI C++ compiler will create directory out/ii_files/ for
7158 # template instantiation
7159 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7160 $RM out/* && rmdir out
7161 cd ..
7162 $RM -r conftest
7163 $RM conftest*
d7040cdb 7164
ce2cded5
L
7165fi
7166echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7167echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7168
7169
7170
7171
ce2cded5
L
7172hard_links="nottested"
7173if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7174 # do not overwrite the value of need_locks provided by the user
7175 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7176echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7177 hard_links=yes
7178 $RM conftest*
7179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7180 touch conftest.a
7181 ln conftest.a conftest.b 2>&5 || hard_links=no
7182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7183 echo "$as_me:$LINENO: result: $hard_links" >&5
7184echo "${ECHO_T}$hard_links" >&6
7185 if test "$hard_links" = no; then
7186 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7187echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7188 need_locks=warn
7189 fi
7190else
7191 need_locks=no
7192fi
d7040cdb
SE
7193
7194
7195
7196
7197
7198
ce2cded5
L
7199 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7200echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7201
ce2cded5
L
7202 runpath_var=
7203 allow_undefined_flag=
7204 always_export_symbols=no
7205 archive_cmds=
7206 archive_expsym_cmds=
7207 compiler_needs_object=no
7208 enable_shared_with_static_runtimes=no
7209 export_dynamic_flag_spec=
7210 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7211 hardcode_automatic=no
7212 hardcode_direct=no
7213 hardcode_direct_absolute=no
7214 hardcode_libdir_flag_spec=
7215 hardcode_libdir_flag_spec_ld=
7216 hardcode_libdir_separator=
7217 hardcode_minus_L=no
7218 hardcode_shlibpath_var=unsupported
7219 inherit_rpath=no
7220 link_all_deplibs=unknown
7221 module_cmds=
7222 module_expsym_cmds=
7223 old_archive_from_new_cmds=
7224 old_archive_from_expsyms_cmds=
7225 thread_safe_flag_spec=
7226 whole_archive_flag_spec=
7227 # include_expsyms should be a list of space-separated symbols to be *always*
7228 # included in the symbol list
7229 include_expsyms=
7230 # exclude_expsyms can be an extended regexp of symbols to exclude
7231 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7232 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7233 # as well as any symbol that contains `d'.
7234 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7235 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7236 # platforms (ab)use it in PIC code, but their linkers get confused if
7237 # the symbol is explicitly referenced. Since portable code cannot
7238 # rely on this symbol name, it's probably fine to never include it in
7239 # preloaded symbol tables.
7240 extract_expsyms_cmds=
d7040cdb 7241
ce2cded5
L
7242 case $host_os in
7243 cygwin* | mingw* | pw32*)
7244 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7245 # When not using gcc, we currently assume that we are using
7246 # Microsoft Visual C++.
7247 if test "$GCC" != yes; then
7248 with_gnu_ld=no
7249 fi
7250 ;;
7251 interix*)
7252 # we just hope/assume this is gcc and not c89 (= MSVC++)
7253 with_gnu_ld=yes
7254 ;;
7255 openbsd*)
7256 with_gnu_ld=no
7257 ;;
7258 esac
d7040cdb 7259
ce2cded5
L
7260 ld_shlibs=yes
7261 if test "$with_gnu_ld" = yes; then
7262 # If archive_cmds runs LD, not CC, wlarc should be empty
7263 wlarc='${wl}'
d7040cdb 7264
ce2cded5
L
7265 # Set some defaults for GNU ld with shared library support. These
7266 # are reset later if shared libraries are not supported. Putting them
7267 # here allows them to be overridden if necessary.
7268 runpath_var=LD_RUN_PATH
7269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7270 export_dynamic_flag_spec='${wl}--export-dynamic'
7271 # ancient GNU ld didn't support --whole-archive et. al.
7272 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7273 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7274 else
7275 whole_archive_flag_spec=
7276 fi
7277 supports_anon_versioning=no
7278 case `$LD -v 2>&1` in
7279 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7280 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7281 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7282 *\ 2.11.*) ;; # other 2.11 versions
7283 *) supports_anon_versioning=yes ;;
7284 esac
d7040cdb 7285
ce2cded5
L
7286 # See if GNU ld supports shared libraries.
7287 case $host_os in
7288 aix3* | aix4* | aix5*)
7289 # On AIX/PPC, the GNU linker is very broken
7290 if test "$host_cpu" != ia64; then
7291 ld_shlibs=no
7292 cat <<_LT_EOF 1>&2
d7040cdb 7293
ce2cded5
L
7294*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7295*** to be unable to reliably create shared libraries on AIX.
7296*** Therefore, libtool is disabling shared libraries support. If you
7297*** really care for shared libraries, you may want to modify your PATH
7298*** so that a non-GNU linker is found, and then restart.
d7040cdb 7299
ce2cded5
L
7300_LT_EOF
7301 fi
7302 ;;
d7040cdb 7303
ce2cded5
L
7304 amigaos*)
7305 if test "$host_cpu" = m68k; then
7306 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)'
7307 hardcode_libdir_flag_spec='-L$libdir'
7308 hardcode_minus_L=yes
7309 fi
d7040cdb 7310
ce2cded5
L
7311 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7312 # that the semantics of dynamic libraries on AmigaOS, at least up
7313 # to version 4, is to share data among multiple programs linked
7314 # with the same dynamic library. Since this doesn't match the
7315 # behavior of shared libraries on other platforms, we can't use
7316 # them.
7317 ld_shlibs=no
7318 ;;
d7040cdb 7319
ce2cded5
L
7320 beos*)
7321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7322 allow_undefined_flag=unsupported
7323 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7324 # support --undefined. This deserves some investigation. FIXME
7325 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7326 else
7327 ld_shlibs=no
7328 fi
7329 ;;
d7040cdb 7330
ce2cded5
L
7331 cygwin* | mingw* | pw32*)
7332 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7333 # as there is no search path for DLLs.
7334 hardcode_libdir_flag_spec='-L$libdir'
7335 allow_undefined_flag=unsupported
7336 always_export_symbols=no
7337 enable_shared_with_static_runtimes=yes
7338 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 7339
ce2cded5
L
7340 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7342 # If the export-symbols file already is a .def file (1st line
7343 # is EXPORTS), use it as is; otherwise, prepend...
7344 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7345 cp $export_symbols $output_objdir/$soname.def;
7346 else
7347 echo EXPORTS > $output_objdir/$soname.def;
7348 cat $export_symbols >> $output_objdir/$soname.def;
7349 fi~
7350 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7351 else
7352 ld_shlibs=no
7353 fi
7354 ;;
d7040cdb 7355
ce2cded5
L
7356 interix[3-9]*)
7357 hardcode_direct=no
7358 hardcode_shlibpath_var=no
7359 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7360 export_dynamic_flag_spec='${wl}-E'
7361 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7362 # Instead, shared libraries are loaded at an image base (0x10000000 by
7363 # default) and relocated if they conflict, which is a slow very memory
7364 # consuming and fragmenting process. To avoid this, we pick a random,
7365 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7366 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7367 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7368 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7369 ;;
d7040cdb 7370
ce2cded5
L
7371 gnu* | linux* | tpf* | k*bsd*-gnu)
7372 tmp_diet=no
7373 if test "$host_os" = linux-dietlibc; then
7374 case $cc_basename in
7375 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7376 esac
7377 fi
7378 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7379 && test "$tmp_diet" = no
7380 then
7381 tmp_addflag=
7382 case $cc_basename,$host_cpu in
7383 pgcc*) # Portland Group C compiler
7384 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7385 tmp_addflag=' $pic_flag'
7386 ;;
7387 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7388 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7389 tmp_addflag=' $pic_flag -Mnomain' ;;
7390 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7391 tmp_addflag=' -i_dynamic' ;;
7392 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7393 tmp_addflag=' -i_dynamic -nofor_main' ;;
7394 ifc* | ifort*) # Intel Fortran compiler
7395 tmp_addflag=' -nofor_main' ;;
7396 esac
7397 case `$CC -V 2>&1 | sed 5q` in
7398 *Sun\ C*) # Sun C 5.9
7399 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7400 compiler_needs_object=yes
7401 tmp_sharedflag='-G' ;;
7402 *Sun\ F*) # Sun Fortran 8.3
7403 tmp_sharedflag='-G' ;;
7404 *)
7405 tmp_sharedflag='-shared' ;;
7406 esac
7407 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7408
ce2cded5
L
7409 if test "x$supports_anon_versioning" = xyes; then
7410 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7412 echo "local: *; };" >> $output_objdir/$libname.ver~
7413 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7414 fi
7415 else
7416 ld_shlibs=no
7417 fi
7418 ;;
d7040cdb 7419
ce2cded5
L
7420 netbsd*)
7421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7422 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7423 wlarc=
7424 else
7425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7427 fi
7428 ;;
d7040cdb 7429
ce2cded5
L
7430 solaris*)
7431 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7432 ld_shlibs=no
7433 cat <<_LT_EOF 1>&2
d7040cdb 7434
ce2cded5
L
7435*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7436*** create shared libraries on Solaris systems. Therefore, libtool
7437*** is disabling shared libraries support. We urge you to upgrade GNU
7438*** binutils to release 2.9.1 or newer. Another option is to modify
7439*** your PATH or compiler configuration so that the native linker is
7440*** used, and then restart.
d7040cdb 7441
ce2cded5
L
7442_LT_EOF
7443 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7445 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7446 else
7447 ld_shlibs=no
7448 fi
7449 ;;
d7040cdb 7450
ce2cded5
L
7451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7452 case `$LD -v 2>&1` in
7453 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7454 ld_shlibs=no
7455 cat <<_LT_EOF 1>&2
d7040cdb 7456
ce2cded5
L
7457*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7458*** reliably create shared libraries on SCO systems. Therefore, libtool
7459*** is disabling shared libraries support. We urge you to upgrade GNU
7460*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7461*** your PATH or compiler configuration so that the native linker is
7462*** used, and then restart.
d7040cdb 7463
ce2cded5
L
7464_LT_EOF
7465 ;;
7466 *)
7467 # For security reasons, it is highly recommended that you always
7468 # use absolute paths for naming shared libraries, and exclude the
7469 # DT_RUNPATH tag from executables and libraries. But doing so
7470 # requires that you compile everything twice, which is a pain.
7471 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7474 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7475 else
7476 ld_shlibs=no
7477 fi
7478 ;;
7479 esac
7480 ;;
d7040cdb 7481
ce2cded5
L
7482 sunos4*)
7483 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7484 wlarc=
7485 hardcode_direct=yes
7486 hardcode_shlibpath_var=no
7487 ;;
d7040cdb 7488
ce2cded5
L
7489 *)
7490 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7492 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7493 else
7494 ld_shlibs=no
7495 fi
7496 ;;
7497 esac
d7040cdb 7498
ce2cded5
L
7499 if test "$ld_shlibs" = no; then
7500 runpath_var=
7501 hardcode_libdir_flag_spec=
7502 export_dynamic_flag_spec=
7503 whole_archive_flag_spec=
7504 fi
7505 else
7506 # PORTME fill in a description of your system's linker (not GNU ld)
7507 case $host_os in
7508 aix3*)
7509 allow_undefined_flag=unsupported
7510 always_export_symbols=yes
7511 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'
7512 # Note: this linker hardcodes the directories in LIBPATH if there
7513 # are no directories specified by -L.
7514 hardcode_minus_L=yes
7515 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7516 # Neither direct hardcoding nor static linking is supported with a
7517 # broken collect2.
7518 hardcode_direct=unsupported
7519 fi
7520 ;;
d7040cdb 7521
ce2cded5
L
7522 aix4* | aix5*)
7523 if test "$host_cpu" = ia64; then
7524 # On IA64, the linker does run time linking by default, so we don't
7525 # have to do anything special.
7526 aix_use_runtimelinking=no
7527 exp_sym_flag='-Bexport'
7528 no_entry_flag=""
7529 else
7530 # If we're using GNU nm, then we don't want the "-C" option.
7531 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7532 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7533 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'
7534 else
7535 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'
7536 fi
7537 aix_use_runtimelinking=no
d7040cdb 7538
ce2cded5
L
7539 # Test if we are trying to use run time linking or normal
7540 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7541 # need to do runtime linking.
7542 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7543 for ld_flag in $LDFLAGS; do
7544 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7545 aix_use_runtimelinking=yes
7546 break
7547 fi
7548 done
7549 ;;
7550 esac
d7040cdb 7551
ce2cded5
L
7552 exp_sym_flag='-bexport'
7553 no_entry_flag='-bnoentry'
7554 fi
d7040cdb 7555
ce2cded5
L
7556 # When large executables or shared objects are built, AIX ld can
7557 # have problems creating the table of contents. If linking a library
7558 # or program results in "error TOC overflow" add -mminimal-toc to
7559 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7560 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 7561
ce2cded5
L
7562 archive_cmds=''
7563 hardcode_direct=yes
7564 hardcode_direct_absolute=yes
7565 hardcode_libdir_separator=':'
7566 link_all_deplibs=yes
7567 file_list_spec='${wl}-f,'
d7040cdb 7568
ce2cded5
L
7569 if test "$GCC" = yes; then
7570 case $host_os in aix4.[012]|aix4.[012].*)
7571 # We only want to do this on AIX 4.2 and lower, the check
7572 # below for broken collect2 doesn't work under 4.3+
7573 collect2name=`${CC} -print-prog-name=collect2`
7574 if test -f "$collect2name" &&
7575 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7576 then
7577 # We have reworked collect2
7578 :
7579 else
7580 # We have old collect2
7581 hardcode_direct=unsupported
7582 # It fails to find uninstalled libraries when the uninstalled
7583 # path is not listed in the libpath. Setting hardcode_minus_L
7584 # to unsupported forces relinking
7585 hardcode_minus_L=yes
7586 hardcode_libdir_flag_spec='-L$libdir'
7587 hardcode_libdir_separator=
7588 fi
7589 ;;
7590 esac
7591 shared_flag='-shared'
7592 if test "$aix_use_runtimelinking" = yes; then
7593 shared_flag="$shared_flag "'${wl}-G'
7594 fi
7595 else
7596 # not using gcc
7597 if test "$host_cpu" = ia64; then
7598 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7599 # chokes on -Wl,-G. The following line is correct:
7600 shared_flag='-G'
7601 else
7602 if test "$aix_use_runtimelinking" = yes; then
7603 shared_flag='${wl}-G'
7604 else
7605 shared_flag='${wl}-bM:SRE'
7606 fi
7607 fi
7608 fi
d7040cdb 7609
ce2cded5
L
7610 # It seems that -bexpall does not export symbols beginning with
7611 # underscore (_), so it is better to generate a list of symbols to export.
7612 always_export_symbols=yes
7613 if test "$aix_use_runtimelinking" = yes; then
7614 # Warning - without using the other runtime loading flags (-brtl),
7615 # -berok will link without error, but may produce a broken library.
7616 allow_undefined_flag='-berok'
7617 # Determine the default libpath from the value encoded in an
7618 # empty executable.
7619 cat >conftest.$ac_ext <<_ACEOF
7620/* confdefs.h. */
7621_ACEOF
7622cat confdefs.h >>conftest.$ac_ext
7623cat >>conftest.$ac_ext <<_ACEOF
7624/* end confdefs.h. */
d7040cdb 7625
ce2cded5
L
7626int
7627main ()
7628{
d7040cdb 7629
ce2cded5
L
7630 ;
7631 return 0;
7632}
7633_ACEOF
7634rm -f conftest.$ac_objext conftest$ac_exeext
7635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7636 (eval $ac_link) 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -z "$ac_c_werror_flag"
7644 || test ! -s conftest.err'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 (eval $ac_try) 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; } &&
7650 { ac_try='test -s conftest$ac_exeext'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 (eval $ac_try) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; }; then
d7040cdb 7656
ce2cded5
L
7657lt_aix_libpath_sed='
7658 /Import File Strings/,/^$/ {
7659 /^0/ {
7660 s/^0 *\(.*\)$/\1/
7661 p
7662 }
7663 }'
7664aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7665# Check for a 64-bit object if we didn't find anything.
7666if test -z "$aix_libpath"; then
7667 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7668fi
7669else
7670 echo "$as_me: failed program was:" >&5
7671sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7672
ce2cded5
L
7673fi
7674rm -f conftest.err conftest.$ac_objext \
7675 conftest$ac_exeext conftest.$ac_ext
7676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7677
ce2cded5
L
7678 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7679 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7680 else
7681 if test "$host_cpu" = ia64; then
7682 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7683 allow_undefined_flag="-z nodefs"
7684 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7685 else
7686 # Determine the default libpath from the value encoded in an
7687 # empty executable.
7688 cat >conftest.$ac_ext <<_ACEOF
7689/* confdefs.h. */
7690_ACEOF
7691cat confdefs.h >>conftest.$ac_ext
7692cat >>conftest.$ac_ext <<_ACEOF
7693/* end confdefs.h. */
d7040cdb 7694
ce2cded5
L
7695int
7696main ()
7697{
d7040cdb 7698
ce2cded5
L
7699 ;
7700 return 0;
7701}
7702_ACEOF
7703rm -f conftest.$ac_objext conftest$ac_exeext
7704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705 (eval $ac_link) 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -z "$ac_c_werror_flag"
7713 || test ! -s conftest.err'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; } &&
7719 { ac_try='test -s conftest$ac_exeext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 (eval $ac_try) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
d7040cdb 7725
ce2cded5
L
7726lt_aix_libpath_sed='
7727 /Import File Strings/,/^$/ {
7728 /^0/ {
7729 s/^0 *\(.*\)$/\1/
7730 p
7731 }
7732 }'
7733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7734# Check for a 64-bit object if we didn't find anything.
7735if test -z "$aix_libpath"; then
7736 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7737fi
7738else
7739 echo "$as_me: failed program was:" >&5
7740sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7741
ce2cded5
L
7742fi
7743rm -f conftest.err conftest.$ac_objext \
7744 conftest$ac_exeext conftest.$ac_ext
7745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7746
ce2cded5
L
7747 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7748 # Warning - without using the other run time loading flags,
7749 # -berok will link without error, but may produce a broken library.
7750 no_undefined_flag=' ${wl}-bernotok'
7751 allow_undefined_flag=' ${wl}-berok'
7752 # Exported symbols can be pulled into shared objects from archives
7753 whole_archive_flag_spec='$convenience'
7754 archive_cmds_need_lc=yes
7755 # This is similar to how AIX traditionally builds its shared libraries.
7756 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7757 fi
7758 fi
7759 ;;
d7040cdb 7760
ce2cded5
L
7761 amigaos*)
7762 if test "$host_cpu" = m68k; then
7763 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)'
7764 hardcode_libdir_flag_spec='-L$libdir'
7765 hardcode_minus_L=yes
7766 fi
7767 # see comment about different semantics on the GNU ld section
7768 ld_shlibs=no
7769 ;;
d7040cdb 7770
ce2cded5
L
7771 bsdi[45]*)
7772 export_dynamic_flag_spec=-rdynamic
7773 ;;
d7040cdb 7774
ce2cded5
L
7775 cygwin* | mingw* | pw32*)
7776 # When not using gcc, we currently assume that we are using
7777 # Microsoft Visual C++.
7778 # hardcode_libdir_flag_spec is actually meaningless, as there is
7779 # no search path for DLLs.
7780 hardcode_libdir_flag_spec=' '
7781 allow_undefined_flag=unsupported
7782 # Tell ltmain to make .lib files, not .a files.
7783 libext=lib
7784 # Tell ltmain to make .dll files, not .so files.
7785 shrext_cmds=".dll"
7786 # FIXME: Setting linknames here is a bad hack.
7787 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7788 # The linker will automatically build a .lib file if we build a DLL.
7789 old_archive_from_new_cmds='true'
7790 # FIXME: Should let the user specify the lib program.
7791 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7792 fix_srcfile_path='`cygpath -w "$srcfile"`'
7793 enable_shared_with_static_runtimes=yes
7794 ;;
d7040cdb 7795
ce2cded5
L
7796 darwin* | rhapsody*)
7797 case $host_os in
7798 rhapsody* | darwin1.[012])
7799 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7800 ;;
7801 *) # Darwin 1.3 on
7802 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7803 10.[012])
7804 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7805 ;;
7806 10.*)
7807 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7808 ;;
7809 esac
7810 ;;
7811 esac
7812 archive_cmds_need_lc=no
7813 hardcode_direct=no
7814 hardcode_automatic=yes
7815 hardcode_shlibpath_var=unsupported
7816 whole_archive_flag_spec=''
7817 link_all_deplibs=yes
7818 if test "$GCC" = yes ; then
7819 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821else
7822 lt_cv_apple_cc_single_mod=no
7823 if test -z "${LT_MULTI_MODULE}"; then
7824 # By default we will add the -single_module flag. You can override
7825 # by either setting the environment variable LT_MULTI_MODULE
7826 # non-empty at configure time, or by adding -multi-module to the
7827 # link flags.
7828 echo "int foo(void){return 1;}" > conftest.c
7829 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7830 -dynamiclib ${wl}-single_module conftest.c
7831 if test -f libconftest.dylib; then
7832 lt_cv_apple_cc_single_mod=yes
7833 rm libconftest.dylib
7834 fi
7835 rm conftest.$ac_ext
7836 fi
7837fi
d7040cdb 7838
ce2cded5
L
7839 output_verbose_link_cmd=echo
7840 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7841 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7842 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7843 else
7844 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7845 archive_expsym_cmds='sed "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}'
7846 fi
7847 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7848 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7849 else
7850 case $cc_basename in
7851 xlc*)
7852 output_verbose_link_cmd=echo
7853 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7854 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7855 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7856 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7857 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7858 ;;
7859 *)
7860 ld_shlibs=no
7861 ;;
7862 esac
7863 fi
7864 ;;
d7040cdb 7865
ce2cded5
L
7866 dgux*)
7867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7868 hardcode_libdir_flag_spec='-L$libdir'
7869 hardcode_shlibpath_var=no
7870 ;;
d7040cdb 7871
ce2cded5
L
7872 freebsd1*)
7873 ld_shlibs=no
7874 ;;
d7040cdb 7875
ce2cded5
L
7876 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7877 # support. Future versions do this automatically, but an explicit c++rt0.o
7878 # does not break anything, and helps significantly (at the cost of a little
7879 # extra space).
7880 freebsd2.2*)
7881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7882 hardcode_libdir_flag_spec='-R$libdir'
7883 hardcode_direct=yes
7884 hardcode_shlibpath_var=no
7885 ;;
d7040cdb 7886
ce2cded5
L
7887 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7888 freebsd2*)
7889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7890 hardcode_direct=yes
7891 hardcode_minus_L=yes
7892 hardcode_shlibpath_var=no
7893 ;;
d7040cdb 7894
ce2cded5
L
7895 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7896 freebsd* | dragonfly*)
7897 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7898 hardcode_libdir_flag_spec='-R$libdir'
7899 hardcode_direct=yes
7900 hardcode_shlibpath_var=no
7901 ;;
d7040cdb 7902
ce2cded5
L
7903 hpux9*)
7904 if test "$GCC" = yes; then
7905 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'
7906 else
7907 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'
7908 fi
7909 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7910 hardcode_libdir_separator=:
7911 hardcode_direct=yes
d7040cdb 7912
ce2cded5
L
7913 # hardcode_minus_L: Not really in the search PATH,
7914 # but as the default location of the library.
7915 hardcode_minus_L=yes
7916 export_dynamic_flag_spec='${wl}-E'
7917 ;;
d7040cdb 7918
ce2cded5
L
7919 hpux10*)
7920 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7921 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7922 else
7923 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7924 fi
7925 if test "$with_gnu_ld" = no; then
7926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7927 hardcode_libdir_flag_spec_ld='+b $libdir'
7928 hardcode_libdir_separator=:
7929 hardcode_direct=yes
7930 hardcode_direct_absolute=yes
7931 export_dynamic_flag_spec='${wl}-E'
7932 # hardcode_minus_L: Not really in the search PATH,
7933 # but as the default location of the library.
7934 hardcode_minus_L=yes
7935 fi
7936 ;;
d7040cdb 7937
ce2cded5
L
7938 hpux11*)
7939 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7940 case $host_cpu in
7941 hppa*64*)
7942 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7943 ;;
7944 ia64*)
7945 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7946 ;;
7947 *)
7948 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7949 ;;
7950 esac
7951 else
7952 case $host_cpu in
7953 hppa*64*)
7954 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7955 ;;
7956 ia64*)
7957 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7958 ;;
7959 *)
7960 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7961 ;;
7962 esac
7963 fi
7964 if test "$with_gnu_ld" = no; then
7965 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7966 hardcode_libdir_separator=:
d7040cdb 7967
ce2cded5
L
7968 case $host_cpu in
7969 hppa*64*|ia64*)
7970 hardcode_direct=no
7971 hardcode_shlibpath_var=no
7972 ;;
7973 *)
7974 hardcode_direct=yes
7975 hardcode_direct_absolute=yes
7976 export_dynamic_flag_spec='${wl}-E'
d7040cdb 7977
ce2cded5
L
7978 # hardcode_minus_L: Not really in the search PATH,
7979 # but as the default location of the library.
7980 hardcode_minus_L=yes
7981 ;;
7982 esac
7983 fi
7984 ;;
7985
7986 irix5* | irix6* | nonstopux*)
7987 if test "$GCC" = yes; then
7988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7989 # Try to use the -exported_symbol ld option, if it does not
7990 # work, assume that -exports_file does not work either and
7991 # implicitly export all symbols.
7992 save_LDFLAGS="$LDFLAGS"
7993 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7994 cat >conftest.$ac_ext <<_ACEOF
7995int foo(void) {}
7996_ACEOF
7997rm -f conftest.$ac_objext conftest$ac_exeext
7998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999 (eval $ac_link) 2>conftest.er1
8000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag"
8007 || test ! -s conftest.err'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 (eval $ac_try) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; } &&
8013 { ac_try='test -s conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7040cdb 8020
d7040cdb 8021else
ce2cded5
L
8022 echo "$as_me: failed program was:" >&5
8023sed 's/^/| /' conftest.$ac_ext >&5
8024
d7040cdb 8025fi
ce2cded5
L
8026rm -f conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028 LDFLAGS="$save_LDFLAGS"
8029 else
8030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8032 fi
8033 archive_cmds_need_lc='no'
8034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8035 hardcode_libdir_separator=:
8036 inherit_rpath=yes
8037 link_all_deplibs=yes
8038 ;;
d7040cdb 8039
ce2cded5
L
8040 netbsd*)
8041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8043 else
8044 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8045 fi
8046 hardcode_libdir_flag_spec='-R$libdir'
8047 hardcode_direct=yes
8048 hardcode_shlibpath_var=no
8049 ;;
d7040cdb 8050
ce2cded5
L
8051 newsos6)
8052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8053 hardcode_direct=yes
8054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8055 hardcode_libdir_separator=:
8056 hardcode_shlibpath_var=no
8057 ;;
d7040cdb 8058
ce2cded5
L
8059 *nto* | *qnx*)
8060 ;;
d7040cdb 8061
ce2cded5
L
8062 openbsd*)
8063 hardcode_direct=yes
8064 hardcode_shlibpath_var=no
8065 hardcode_direct_absolute=yes
8066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8068 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8069 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8070 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8071 else
ce2cded5
L
8072 case $host_os in
8073 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8075 hardcode_libdir_flag_spec='-R$libdir'
8076 ;;
8077 *)
8078 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8079 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8080 ;;
8081 esac
d7040cdb
SE
8082 fi
8083 ;;
d7040cdb 8084
ce2cded5
L
8085 os2*)
8086 hardcode_libdir_flag_spec='-L$libdir'
8087 hardcode_minus_L=yes
8088 allow_undefined_flag=unsupported
8089 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'
8090 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8091 ;;
d7040cdb 8092
ce2cded5
L
8093 osf3*)
8094 if test "$GCC" = yes; then
8095 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8096 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8097 else
8098 allow_undefined_flag=' -expect_unresolved \*'
8099 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8100 fi
8101 archive_cmds_need_lc='no'
8102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8103 hardcode_libdir_separator=:
8104 ;;
d7040cdb 8105
ce2cded5
L
8106 osf4* | osf5*) # as osf3* with the addition of -msym flag
8107 if test "$GCC" = yes; then
8108 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8109 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8111 else
8112 allow_undefined_flag=' -expect_unresolved \*'
8113 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8114 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8115 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 8116
ce2cded5
L
8117 # Both c and cxx compiler support -rpath directly
8118 hardcode_libdir_flag_spec='-rpath $libdir'
8119 fi
8120 archive_cmds_need_lc='no'
8121 hardcode_libdir_separator=:
8122 ;;
d7040cdb 8123
ce2cded5
L
8124 solaris*)
8125 no_undefined_flag=' -z defs'
8126 if test "$GCC" = yes; then
8127 wlarc='${wl}'
8128 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8129 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8130 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8131 else
8132 case `$CC -V 2>&1` in
8133 *"Compilers 5.0"*)
8134 wlarc=''
8135 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8136 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8137 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8138 ;;
8139 *)
8140 wlarc='${wl}'
8141 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8142 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8143 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8144 ;;
8145 esac
8146 fi
8147 hardcode_libdir_flag_spec='-R$libdir'
8148 hardcode_shlibpath_var=no
8149 case $host_os in
8150 solaris2.[0-5] | solaris2.[0-5].*) ;;
8151 *)
8152 # The compiler driver will combine and reorder linker options,
8153 # but understands `-z linker_flag'. GCC discards it without `$wl',
8154 # but is careful enough not to reorder.
8155 # Supported since Solaris 2.6 (maybe 2.5.1?)
8156 if test "$GCC" = yes; then
8157 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8158 else
8159 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8160 fi
8161 ;;
8162 esac
8163 link_all_deplibs=yes
d7040cdb 8164 ;;
ce2cded5
L
8165
8166 sunos4*)
8167 if test "x$host_vendor" = xsequent; then
8168 # Use $CC to link under sequent, because it throws in some extra .o
8169 # files that make .init and .fini sections work.
8170 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 8171 else
ce2cded5 8172 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 8173 fi
ce2cded5
L
8174 hardcode_libdir_flag_spec='-L$libdir'
8175 hardcode_direct=yes
8176 hardcode_minus_L=yes
8177 hardcode_shlibpath_var=no
d7040cdb 8178 ;;
ce2cded5
L
8179
8180 sysv4)
8181 case $host_vendor in
8182 sni)
8183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8184 hardcode_direct=yes # is this really true???
8185 ;;
8186 siemens)
8187 ## LD is ld it makes a PLAMLIB
8188 ## CC just makes a GrossModule.
8189 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8190 reload_cmds='$CC -r -o $output$reload_objs'
8191 hardcode_direct=no
8192 ;;
8193 motorola)
8194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8195 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8196 ;;
8197 esac
8198 runpath_var='LD_RUN_PATH'
8199 hardcode_shlibpath_var=no
d7040cdb 8200 ;;
d7040cdb 8201
ce2cded5
L
8202 sysv4.3*)
8203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8204 hardcode_shlibpath_var=no
8205 export_dynamic_flag_spec='-Bexport'
8206 ;;
d7040cdb 8207
ce2cded5
L
8208 sysv4*MP*)
8209 if test -d /usr/nec; then
8210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8211 hardcode_shlibpath_var=no
8212 runpath_var=LD_RUN_PATH
8213 hardcode_runpath_var=yes
8214 ld_shlibs=yes
8215 fi
8216 ;;
d7040cdb 8217
ce2cded5
L
8218 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8219 no_undefined_flag='${wl}-z,text'
8220 archive_cmds_need_lc=no
8221 hardcode_shlibpath_var=no
8222 runpath_var='LD_RUN_PATH'
d7040cdb 8223
ce2cded5
L
8224 if test "$GCC" = yes; then
8225 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8226 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8227 else
8228 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8229 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8230 fi
8231 ;;
d7040cdb 8232
ce2cded5
L
8233 sysv5* | sco3.2v5* | sco5v6*)
8234 # Note: We can NOT use -z defs as we might desire, because we do not
8235 # link with -lc, and that would cause any symbols used from libc to
8236 # always be unresolved, which means just about no library would
8237 # ever link correctly. If we're not using GNU ld we use -z text
8238 # though, which does catch some bad symbols but isn't as heavy-handed
8239 # as -z defs.
8240 no_undefined_flag='${wl}-z,text'
8241 allow_undefined_flag='${wl}-z,nodefs'
8242 archive_cmds_need_lc=no
8243 hardcode_shlibpath_var=no
8244 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8245 hardcode_libdir_separator=':'
8246 link_all_deplibs=yes
8247 export_dynamic_flag_spec='${wl}-Bexport'
8248 runpath_var='LD_RUN_PATH'
d7040cdb 8249
ce2cded5
L
8250 if test "$GCC" = yes; then
8251 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8252 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8253 else
8254 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8255 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8256 fi
d7040cdb 8257 ;;
d7040cdb 8258
ce2cded5
L
8259 uts4*)
8260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8261 hardcode_libdir_flag_spec='-L$libdir'
8262 hardcode_shlibpath_var=no
8263 ;;
d7040cdb 8264
ce2cded5
L
8265 *)
8266 ld_shlibs=no
8267 ;;
8268 esac
8269
8270 if test x$host_vendor = xsni; then
8271 case $host in
8272 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8273 export_dynamic_flag_spec='${wl}-Blargedynsym'
8274 ;;
8275 esac
d7040cdb 8276 fi
ce2cded5 8277 fi
d7040cdb 8278
ce2cded5
L
8279echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8280echo "${ECHO_T}$ld_shlibs" >&6
8281test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8282
ce2cded5 8283with_gnu_ld=$with_gnu_ld
d7040cdb 8284
d7040cdb 8285
d7040cdb 8286
d7040cdb 8287
d7040cdb 8288
d7040cdb 8289
d7040cdb 8290
d7040cdb 8291
d7040cdb 8292
d7040cdb 8293
d7040cdb 8294
d7040cdb 8295
d7040cdb 8296
d7040cdb 8297
d7040cdb 8298
ce2cded5
L
8299#
8300# Do we need to explicitly link libc?
8301#
8302case "x$archive_cmds_need_lc" in
8303x|xyes)
8304 # Assume -lc should be added
8305 archive_cmds_need_lc=yes
d7040cdb 8306
ce2cded5
L
8307 if test "$enable_shared" = yes && test "$GCC" = yes; then
8308 case $archive_cmds in
8309 *'~'*)
8310 # FIXME: we may have to deal with multi-command sequences.
8311 ;;
8312 '$CC '*)
8313 # Test whether the compiler implicitly links with -lc since on some
8314 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8315 # to ld, don't add -lc before -lgcc.
8316 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8317echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8318 $RM conftest*
8319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8320
ce2cded5
L
8321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8322 (eval $ac_compile) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } 2>conftest.err; then
8326 soname=conftest
8327 lib=conftest
8328 libobjs=conftest.$ac_objext
8329 deplibs=
8330 wl=$lt_prog_compiler_wl
8331 pic_flag=$lt_prog_compiler_pic
8332 compiler_flags=-v
8333 linker_flags=-v
8334 verstring=
8335 output_objdir=.
8336 libname=conftest
8337 lt_save_allow_undefined_flag=$allow_undefined_flag
8338 allow_undefined_flag=
8339 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8340 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }
8344 then
8345 archive_cmds_need_lc=no
8346 else
8347 archive_cmds_need_lc=yes
8348 fi
8349 allow_undefined_flag=$lt_save_allow_undefined_flag
8350 else
8351 cat conftest.err 1>&5
8352 fi
8353 $RM conftest*
8354 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8355echo "${ECHO_T}$archive_cmds_need_lc" >&6
8356 ;;
8357 esac
d7040cdb 8358 fi
d7040cdb 8359 ;;
ce2cded5 8360esac
d7040cdb 8361
d7040cdb 8362
d7040cdb 8363
d7040cdb 8364
d7040cdb 8365
d7040cdb 8366
d7040cdb 8367
d7040cdb
SE
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
d7040cdb 8455
d7040cdb 8456
d7040cdb
SE
8457
8458
8459
8460
8461
8462
d7040cdb 8463
d7040cdb 8464
d7040cdb 8465
d7040cdb 8466
d7040cdb 8467
d7040cdb 8468
d7040cdb 8469
d7040cdb 8470
d7040cdb 8471
d7040cdb 8472
d7040cdb 8473
d7040cdb 8474
d7040cdb 8475
d7040cdb 8476
d7040cdb 8477
d7040cdb 8478
d7040cdb 8479
d7040cdb 8480
d7040cdb 8481
d7040cdb 8482
d7040cdb 8483
d7040cdb 8484
d7040cdb 8485
ce2cded5
L
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8519echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8520withGCC=$GCC
8521if test "$withGCC" = yes; then
8522 case $host_os in
8523 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8524 *) lt_awk_arg="/^libraries:/" ;;
8525 esac
8526 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8527 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8528 # if the path contains ";" then we assume it to be the separator
8529 # otherwise default to the standard path separator (i.e. ":") - it is
8530 # assumed that no part of a normal pathname contains ";" but that should
8531 # okay in the real world where ";" in dirpaths is itself problematic.
8532 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8533 else
8534 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8535 fi
8536 # Ok, now we have the path, separated by spaces, we can step through it
8537 # and add multilib dir if necessary.
8538 lt_tmp_lt_search_path_spec=
8539 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8540 for lt_sys_path in $lt_search_path_spec; do
8541 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8542 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8543 else
8544 test -d "$lt_sys_path" && \
8545 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8546 fi
8547 done
8548 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8549BEGIN {RS=" "; FS="/|\n";} {
8550 lt_foo="";
8551 lt_count=0;
8552 for (lt_i = NF; lt_i > 0; lt_i--) {
8553 if ($lt_i != "" && $lt_i != ".") {
8554 if ($lt_i == "..") {
8555 lt_count++;
8556 } else {
8557 if (lt_count == 0) {
8558 lt_foo="/" $lt_i lt_foo;
8559 } else {
8560 lt_count--;
8561 }
8562 }
8563 }
8564 }
8565 if (lt_foo != "") { lt_freq[lt_foo]++; }
8566 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8567}'`
8568 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8569else
ce2cded5
L
8570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8571fi
8572library_names_spec=
8573libname_spec='lib$name'
8574soname_spec=
8575shrext_cmds=".so"
8576postinstall_cmds=
8577postuninstall_cmds=
8578finish_cmds=
8579finish_eval=
8580shlibpath_var=
8581shlibpath_overrides_runpath=unknown
8582version_type=none
8583dynamic_linker="$host_os ld.so"
8584sys_lib_dlsearch_path_spec="/lib /usr/lib"
8585need_lib_prefix=unknown
8586hardcode_into_libs=no
8587
8588# when you set need_version to no, make sure it does not cause -set_version
8589# flags to be left without arguments
8590need_version=unknown
8591
8592case $host_os in
8593aix3*)
8594 version_type=linux
8595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8596 shlibpath_var=LIBPATH
8597
8598 # AIX 3 has no versioning support, so we append a major version to the name.
8599 soname_spec='${libname}${release}${shared_ext}$major'
8600 ;;
8601
8602aix4* | aix5*)
8603 version_type=linux
8604 need_lib_prefix=no
8605 need_version=no
8606 hardcode_into_libs=yes
8607 if test "$host_cpu" = ia64; then
8608 # AIX 5 supports IA64
8609 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8610 shlibpath_var=LD_LIBRARY_PATH
8611 else
8612 # With GCC up to 2.95.x, collect2 would create an import file
8613 # for dependence libraries. The import file would start with
8614 # the line `#! .'. This would cause the generated library to
8615 # depend on `.', always an invalid library. This was fixed in
8616 # development snapshots of GCC prior to 3.0.
8617 case $host_os in
8618 aix4 | aix4.[01] | aix4.[01].*)
8619 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8620 echo ' yes '
8621 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8622 :
8623 else
8624 can_build_shared=no
8625 fi
8626 ;;
8627 esac
8628 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8629 # soname into executable. Probably we can add versioning support to
8630 # collect2, so additional links can be useful in future.
8631 if test "$aix_use_runtimelinking" = yes; then
8632 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8633 # instead of lib<name>.a to let people know that these are not
8634 # typical AIX shared libraries.
8635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8636 else
8637 # We preserve .a as extension for shared libraries through AIX4.2
8638 # and later when we are not doing run time linking.
8639 library_names_spec='${libname}${release}.a $libname.a'
8640 soname_spec='${libname}${release}${shared_ext}$major'
8641 fi
8642 shlibpath_var=LIBPATH
8643 fi
8644 ;;
8645
8646amigaos*)
8647 if test "$host_cpu" = m68k; then
8648 library_names_spec='$libname.ixlibrary $libname.a'
8649 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8650 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'
8651 else
8652 dynamic_linker=no
8653 fi
8654 ;;
8655
8656beos*)
8657 library_names_spec='${libname}${shared_ext}'
8658 dynamic_linker="$host_os ld.so"
8659 shlibpath_var=LIBRARY_PATH
8660 ;;
8661
8662bsdi[45]*)
8663 version_type=linux
8664 need_version=no
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666 soname_spec='${libname}${release}${shared_ext}$major'
8667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8668 shlibpath_var=LD_LIBRARY_PATH
8669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8671 # the default ld.so.conf also contains /usr/contrib/lib and
8672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8673 # libtool to hard-code these into programs
8674 ;;
8675
8676cygwin* | mingw* | pw32*)
8677 version_type=windows
8678 shrext_cmds=".dll"
8679 need_version=no
8680 need_lib_prefix=no
8681
8682 case $withGCC,$host_os in
8683 yes,cygwin* | yes,mingw* | yes,pw32*)
8684 library_names_spec='$libname.dll.a'
8685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8686 postinstall_cmds='base_file=`basename \${file}`~
8687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8688 dldir=$destdir/`dirname \$dlpath`~
8689 test -d \$dldir || mkdir -p \$dldir~
8690 $install_prog $dir/$dlname \$dldir/$dlname~
8691 chmod a+x \$dldir/$dlname~
8692 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8693 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8694 fi'
8695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8696 dlpath=$dir/\$dldll~
8697 $RM \$dlpath'
8698 shlibpath_overrides_runpath=yes
8699
8700 case $host_os in
8701 cygwin*)
8702 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8703 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8705 ;;
8706 mingw*)
8707 # MinGW DLLs use traditional 'lib' prefix
8708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8709 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8710 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8711 # It is most probably a Windows format PATH printed by
8712 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8713 # path with ; separators, and with drive letters. We can handle the
8714 # drive letters (cygwin fileutils understands them), so leave them,
8715 # especially as we might pass files found there to a mingw objdump,
8716 # which wouldn't understand a cygwinified path. Ahh.
8717 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8718 else
8719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8720 fi
8721 ;;
8722 pw32*)
8723 # pw32 DLLs use 'pw' prefix rather than 'lib'
8724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8725 ;;
8726 esac
8727 ;;
8728
8729 *)
8730 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8731 ;;
8732 esac
8733 dynamic_linker='Win32 ld.exe'
8734 # FIXME: first we should search . and the directory the executable is in
8735 shlibpath_var=PATH
8736 ;;
8737
8738darwin* | rhapsody*)
8739 dynamic_linker="$host_os dyld"
8740 version_type=darwin
8741 need_lib_prefix=no
8742 need_version=no
8743 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8744 soname_spec='${libname}${release}${major}$shared_ext'
8745 shlibpath_overrides_runpath=yes
8746 shlibpath_var=DYLD_LIBRARY_PATH
8747 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8748
8749 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8751 ;;
8752
8753dgux*)
8754 version_type=linux
8755 need_lib_prefix=no
8756 need_version=no
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8758 soname_spec='${libname}${release}${shared_ext}$major'
8759 shlibpath_var=LD_LIBRARY_PATH
8760 ;;
8761
8762freebsd1*)
8763 dynamic_linker=no
8764 ;;
8765
8766freebsd* | dragonfly*)
8767 # DragonFly does not have aout. When/if they implement a new
8768 # versioning mechanism, adjust this.
8769 if test -x /usr/bin/objformat; then
8770 objformat=`/usr/bin/objformat`
8771 else
8772 case $host_os in
8773 freebsd[123]*) objformat=aout ;;
8774 *) objformat=elf ;;
8775 esac
8776 fi
8777 version_type=freebsd-$objformat
8778 case $version_type in
8779 freebsd-elf*)
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8781 need_version=no
8782 need_lib_prefix=no
8783 ;;
8784 freebsd-*)
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8786 need_version=yes
8787 ;;
8788 esac
8789 shlibpath_var=LD_LIBRARY_PATH
8790 case $host_os in
8791 freebsd2*)
8792 shlibpath_overrides_runpath=yes
8793 ;;
8794 freebsd3.[01]* | freebsdelf3.[01]*)
8795 shlibpath_overrides_runpath=yes
8796 hardcode_into_libs=yes
8797 ;;
8798 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8799 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8800 shlibpath_overrides_runpath=no
8801 hardcode_into_libs=yes
8802 ;;
8803 *) # from 4.6 on, and DragonFly
8804 shlibpath_overrides_runpath=yes
8805 hardcode_into_libs=yes
8806 ;;
8807 esac
8808 ;;
8809
8810gnu*)
8811 version_type=linux
8812 need_lib_prefix=no
8813 need_version=no
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 shlibpath_var=LD_LIBRARY_PATH
8817 hardcode_into_libs=yes
8818 ;;
8819
8820hpux9* | hpux10* | hpux11*)
8821 # Give a soname corresponding to the major version so that dld.sl refuses to
8822 # link against other versions.
8823 version_type=sunos
8824 need_lib_prefix=no
8825 need_version=no
8826 case $host_cpu in
8827 ia64*)
8828 shrext_cmds='.so'
8829 hardcode_into_libs=yes
8830 dynamic_linker="$host_os dld.so"
8831 shlibpath_var=LD_LIBRARY_PATH
8832 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834 soname_spec='${libname}${release}${shared_ext}$major'
8835 if test "X$HPUX_IA64_MODE" = X32; then
8836 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8837 else
8838 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8839 fi
8840 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8841 ;;
8842 hppa*64*)
8843 shrext_cmds='.sl'
8844 hardcode_into_libs=yes
8845 dynamic_linker="$host_os dld.sl"
8846 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8850 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8852 ;;
8853 *)
8854 shrext_cmds='.sl'
8855 dynamic_linker="$host_os dld.sl"
8856 shlibpath_var=SHLIB_PATH
8857 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 ;;
8861 esac
8862 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8863 postinstall_cmds='chmod 555 $lib'
8864 ;;
8865
8866interix[3-9]*)
8867 version_type=linux
8868 need_lib_prefix=no
8869 need_version=no
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8873 shlibpath_var=LD_LIBRARY_PATH
8874 shlibpath_overrides_runpath=no
8875 hardcode_into_libs=yes
8876 ;;
8877
8878irix5* | irix6* | nonstopux*)
8879 case $host_os in
8880 nonstopux*) version_type=nonstopux ;;
8881 *)
8882 if test "$lt_cv_prog_gnu_ld" = yes; then
8883 version_type=linux
8884 else
8885 version_type=irix
8886 fi ;;
8887 esac
8888 need_lib_prefix=no
8889 need_version=no
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8892 case $host_os in
8893 irix5* | nonstopux*)
8894 libsuff= shlibsuff=
8895 ;;
8896 *)
8897 case $LD in # libtool.m4 will add one of these switches to LD
8898 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8899 libsuff= shlibsuff= libmagic=32-bit;;
8900 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8901 libsuff=32 shlibsuff=N32 libmagic=N32;;
8902 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8903 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8904 *) libsuff= shlibsuff= libmagic=never-match;;
8905 esac
8906 ;;
8907 esac
8908 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8909 shlibpath_overrides_runpath=no
8910 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8911 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8912 hardcode_into_libs=yes
8913 ;;
d7040cdb 8914
ce2cded5
L
8915# No shared lib support for Linux oldld, aout, or coff.
8916linux*oldld* | linux*aout* | linux*coff*)
8917 dynamic_linker=no
8918 ;;
8919
8920# This must be Linux ELF.
8921linux* | k*bsd*-gnu)
8922 version_type=linux
8923 need_lib_prefix=no
8924 need_version=no
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8928 shlibpath_var=LD_LIBRARY_PATH
8929 shlibpath_overrides_runpath=no
8930 # Some binutils ld are patched to set DT_RUNPATH
8931 save_LDFLAGS=$LDFLAGS
8932 save_libdir=$libdir
8933 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8934 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8935 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
8936/* confdefs.h. */
8937_ACEOF
8938cat confdefs.h >>conftest.$ac_ext
8939cat >>conftest.$ac_ext <<_ACEOF
8940/* end confdefs.h. */
8941
d7040cdb
SE
8942int
8943main ()
8944{
ce2cded5 8945
d7040cdb
SE
8946 ;
8947 return 0;
8948}
8949_ACEOF
8950rm -f conftest.$ac_objext conftest$ac_exeext
8951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try='test -z "$ac_c_werror_flag"
8960 || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
ce2cded5
L
8972 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8973 shlibpath_overrides_runpath=yes
8974fi
8975
d7040cdb
SE
8976else
8977 echo "$as_me: failed program was:" >&5
8978sed 's/^/| /' conftest.$ac_ext >&5
8979
ce2cded5
L
8980fi
8981rm -f conftest.err conftest.$ac_objext \
8982 conftest$ac_exeext conftest.$ac_ext
8983 LDFLAGS=$save_LDFLAGS
8984 libdir=$save_libdir
8985
8986 # This implies no fast_install, which is unacceptable.
8987 # Some rework will be needed to allow for fast_install
8988 # before this can be enabled.
8989 hardcode_into_libs=yes
8990
8991 # Append ld.so.conf contents to the search path
8992 if test -f /etc/ld.so.conf; then
8993 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8994 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8995 fi
8996
8997 # We used to test for /lib/ld.so.1 and disable shared libraries on
8998 # powerpc, because MkLinux only supported shared libraries with the
8999 # GNU dynamic linker. Since this was broken with cross compilers,
9000 # most powerpc-linux boxes support dynamic linking these days and
9001 # people can always --disable-shared, the test was removed, and we
9002 # assume the GNU/Linux dynamic linker is in use.
9003 dynamic_linker='GNU/Linux ld.so'
9004 ;;
9005
9006netbsd*)
9007 version_type=sunos
9008 need_lib_prefix=no
9009 need_version=no
9010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9013 dynamic_linker='NetBSD (a.out) ld.so'
9014 else
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9016 soname_spec='${libname}${release}${shared_ext}$major'
9017 dynamic_linker='NetBSD ld.elf_so'
9018 fi
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=yes
9021 hardcode_into_libs=yes
9022 ;;
9023
9024newsos6)
9025 version_type=linux
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes
9029 ;;
9030
9031*nto* | *qnx*)
9032 version_type=qnx
9033 need_lib_prefix=no
9034 need_version=no
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=no
9039 hardcode_into_libs=yes
9040 dynamic_linker='ldqnx.so'
9041 ;;
9042
9043openbsd*)
9044 version_type=sunos
9045 sys_lib_dlsearch_path_spec="/usr/lib"
9046 need_lib_prefix=no
9047 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9048 case $host_os in
9049 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9050 *) need_version=no ;;
9051 esac
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9056 case $host_os in
9057 openbsd2.[89] | openbsd2.[89].*)
9058 shlibpath_overrides_runpath=no
9059 ;;
9060 *)
9061 shlibpath_overrides_runpath=yes
9062 ;;
9063 esac
9064 else
9065 shlibpath_overrides_runpath=yes
9066 fi
9067 ;;
9068
9069os2*)
9070 libname_spec='$name'
9071 shrext_cmds=".dll"
9072 need_lib_prefix=no
9073 library_names_spec='$libname${shared_ext} $libname.a'
9074 dynamic_linker='OS/2 ld.exe'
9075 shlibpath_var=LIBPATH
9076 ;;
9077
9078osf3* | osf4* | osf5*)
9079 version_type=osf
9080 need_lib_prefix=no
9081 need_version=no
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9086 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9087 ;;
9088
9089rdos*)
9090 dynamic_linker=no
9091 ;;
9092
9093solaris*)
9094 version_type=linux
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=yes
9101 hardcode_into_libs=yes
9102 # ldd complains unless libraries are executable
9103 postinstall_cmds='chmod +x $lib'
9104 ;;
9105
9106sunos4*)
9107 version_type=sunos
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9109 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 shlibpath_overrides_runpath=yes
9112 if test "$with_gnu_ld" = yes; then
9113 need_lib_prefix=no
9114 fi
9115 need_version=yes
9116 ;;
9117
9118sysv4 | sysv4.3*)
9119 version_type=linux
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 case $host_vendor in
9124 sni)
9125 shlibpath_overrides_runpath=no
9126 need_lib_prefix=no
9127 runpath_var=LD_RUN_PATH
9128 ;;
9129 siemens)
9130 need_lib_prefix=no
9131 ;;
9132 motorola)
9133 need_lib_prefix=no
9134 need_version=no
9135 shlibpath_overrides_runpath=no
9136 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9137 ;;
9138 esac
9139 ;;
9140
9141sysv4*MP*)
9142 if test -d /usr/nec ;then
9143 version_type=linux
9144 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9145 soname_spec='$libname${shared_ext}.$major'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 fi
9148 ;;
9149
9150sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9151 version_type=freebsd-elf
9152 need_lib_prefix=no
9153 need_version=no
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=yes
9158 hardcode_into_libs=yes
9159 if test "$with_gnu_ld" = yes; then
9160 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9161 else
9162 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9163 case $host_os in
9164 sco3.2v5*)
9165 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9166 ;;
9167 esac
9168 fi
9169 sys_lib_dlsearch_path_spec='/usr/lib'
9170 ;;
9171
9172tpf*)
9173 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9174 version_type=linux
9175 need_lib_prefix=no
9176 need_version=no
9177 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=no
9180 hardcode_into_libs=yes
9181 ;;
d7040cdb 9182
ce2cded5
L
9183uts4*)
9184 version_type=linux
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 soname_spec='${libname}${release}${shared_ext}$major'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 ;;
d7040cdb 9189
ce2cded5
L
9190*)
9191 dynamic_linker=no
9192 ;;
9193esac
9194echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9195echo "${ECHO_T}$dynamic_linker" >&6
9196test "$dynamic_linker" = no && can_build_shared=no
9197
9198variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9199if test "$GCC" = yes; then
9200 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 9201fi
d7040cdb 9202
d7040cdb 9203
d7040cdb
SE
9204
9205
d7040cdb
SE
9206
9207
d7040cdb
SE
9208
9209
d7040cdb
SE
9210
9211
d7040cdb
SE
9212
9213
d7040cdb 9214
d7040cdb 9215
d7040cdb 9216
d7040cdb 9217
d7040cdb 9218
d7040cdb 9219
d7040cdb 9220
d7040cdb 9221
d7040cdb 9222
d7040cdb 9223
d7040cdb 9224
d7040cdb 9225
d7040cdb 9226
d7040cdb 9227
d7040cdb
SE
9228
9229
d7040cdb 9230
d7040cdb 9231
d7040cdb 9232
d7040cdb 9233
d7040cdb 9234
d7040cdb 9235
d7040cdb 9236
d7040cdb 9237
d7040cdb 9238
d7040cdb
SE
9239
9240
d7040cdb 9241
d7040cdb 9242
d7040cdb 9243
d7040cdb
SE
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
d7040cdb
SE
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
d7040cdb 9273
d7040cdb 9274
d7040cdb 9275
d7040cdb 9276
d7040cdb
SE
9277
9278
9279
9280
ce2cded5
L
9281
9282
9283
9284
9285
9286
9287
9288
9289 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9290echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9291hardcode_action=
9292if test -n "$hardcode_libdir_flag_spec" ||
9293 test -n "$runpath_var" ||
9294 test "X$hardcode_automatic" = "Xyes" ; then
9295
9296 # We can hardcode non-existent directories.
9297 if test "$hardcode_direct" != no &&
9298 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9299 # have to relink, otherwise we might link with an installed library
9300 # when we should be linking with a yet-to-be-installed one
9301 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9302 test "$hardcode_minus_L" != no; then
9303 # Linking always hardcodes the temporary library directory.
9304 hardcode_action=relink
9305 else
9306 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9307 hardcode_action=immediate
9308 fi
9309else
9310 # We cannot hardcode anything, or else we can only hardcode existing
9311 # directories.
9312 hardcode_action=unsupported
9313fi
9314echo "$as_me:$LINENO: result: $hardcode_action" >&5
9315echo "${ECHO_T}$hardcode_action" >&6
9316
9317if test "$hardcode_action" = relink ||
9318 test "$inherit_rpath" = yes; then
9319 # Fast installation is not supported
9320 enable_fast_install=no
9321elif test "$shlibpath_overrides_runpath" = yes ||
9322 test "$enable_shared" = no; then
9323 # Fast installation is not necessary
9324 enable_fast_install=needless
d7040cdb 9325fi
d7040cdb 9326
d7040cdb
SE
9327
9328
9329
9330
9331
ce2cded5
L
9332 if test "x$enable_dlopen" != xyes; then
9333 enable_dlopen=unknown
9334 enable_dlopen_self=unknown
9335 enable_dlopen_self_static=unknown
9336else
9337 lt_cv_dlopen=no
9338 lt_cv_dlopen_libs=
9339
9340 case $host_os in
9341 beos*)
9342 lt_cv_dlopen="load_add_on"
9343 lt_cv_dlopen_libs=
9344 lt_cv_dlopen_self=yes
9345 ;;
d7040cdb 9346
ce2cded5
L
9347 mingw* | pw32*)
9348 lt_cv_dlopen="LoadLibrary"
9349 lt_cv_dlopen_libs=
9350 ;;
d7040cdb 9351
ce2cded5
L
9352 cygwin*)
9353 lt_cv_dlopen="dlopen"
9354 lt_cv_dlopen_libs=
9355 ;;
d7040cdb 9356
ce2cded5
L
9357 darwin*)
9358 # if libdl is installed we need to link against it
9359 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9360echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9361if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9363else
9364 ac_check_lib_save_LIBS=$LIBS
9365LIBS="-ldl $LIBS"
9366cat >conftest.$ac_ext <<_ACEOF
9367/* confdefs.h. */
9368_ACEOF
9369cat confdefs.h >>conftest.$ac_ext
9370cat >>conftest.$ac_ext <<_ACEOF
9371/* end confdefs.h. */
d7040cdb 9372
ce2cded5
L
9373/* Override any gcc2 internal prototype to avoid an error. */
9374#ifdef __cplusplus
9375extern "C"
9376#endif
9377/* We use char because int might match the return type of a gcc2
9378 builtin and then its argument prototype would still apply. */
9379char dlopen ();
9380int
9381main ()
9382{
9383dlopen ();
9384 ;
9385 return 0;
9386}
9387_ACEOF
9388rm -f conftest.$ac_objext conftest$ac_exeext
9389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390 (eval $ac_link) 2>conftest.er1
9391 ac_status=$?
9392 grep -v '^ *+' conftest.er1 >conftest.err
9393 rm -f conftest.er1
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -z "$ac_c_werror_flag"
9398 || test ! -s conftest.err'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 (eval $ac_try) 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; } &&
9404 { ac_try='test -s conftest$ac_exeext'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 ac_cv_lib_dl_dlopen=yes
9411else
9412 echo "$as_me: failed program was:" >&5
9413sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9414
ce2cded5
L
9415ac_cv_lib_dl_dlopen=no
9416fi
9417rm -f conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419LIBS=$ac_check_lib_save_LIBS
9420fi
9421echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9422echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9423if test $ac_cv_lib_dl_dlopen = yes; then
9424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9425else
d7040cdb 9426
ce2cded5
L
9427 lt_cv_dlopen="dyld"
9428 lt_cv_dlopen_libs=
9429 lt_cv_dlopen_self=yes
d7040cdb 9430
ce2cded5 9431fi
d7040cdb 9432
ce2cded5 9433 ;;
d7040cdb 9434
ce2cded5
L
9435 *)
9436 echo "$as_me:$LINENO: checking for shl_load" >&5
9437echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9438if test "${ac_cv_func_shl_load+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440else
9441 cat >conftest.$ac_ext <<_ACEOF
9442/* confdefs.h. */
9443_ACEOF
9444cat confdefs.h >>conftest.$ac_ext
9445cat >>conftest.$ac_ext <<_ACEOF
9446/* end confdefs.h. */
9447/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9449#define shl_load innocuous_shl_load
d7040cdb 9450
ce2cded5
L
9451/* System header to define __stub macros and hopefully few prototypes,
9452 which can conflict with char shl_load (); below.
9453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9454 <limits.h> exists even on freestanding compilers. */
d7040cdb 9455
ce2cded5
L
9456#ifdef __STDC__
9457# include <limits.h>
9458#else
9459# include <assert.h>
9460#endif
d7040cdb 9461
ce2cded5 9462#undef shl_load
d7040cdb 9463
ce2cded5
L
9464/* Override any gcc2 internal prototype to avoid an error. */
9465#ifdef __cplusplus
9466extern "C"
9467{
9468#endif
9469/* We use char because int might match the return type of a gcc2
9470 builtin and then its argument prototype would still apply. */
9471char shl_load ();
9472/* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
9475#if defined (__stub_shl_load) || defined (__stub___shl_load)
9476choke me
9477#else
9478char (*f) () = shl_load;
9479#endif
9480#ifdef __cplusplus
9481}
9482#endif
d7040cdb 9483
ce2cded5
L
9484int
9485main ()
9486{
9487return f != shl_load;
9488 ;
9489 return 0;
9490}
9491_ACEOF
9492rm -f conftest.$ac_objext conftest$ac_exeext
9493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494 (eval $ac_link) 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag"
9502 || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 ac_cv_func_shl_load=yes
9515else
9516 echo "$as_me: failed program was:" >&5
9517sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9518
ce2cded5 9519ac_cv_func_shl_load=no
d7040cdb 9520fi
ce2cded5
L
9521rm -f conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523fi
9524echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9525echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9526if test $ac_cv_func_shl_load = yes; then
9527 lt_cv_dlopen="shl_load"
9528else
9529 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9530echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9531if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533else
9534 ac_check_lib_save_LIBS=$LIBS
9535LIBS="-ldld $LIBS"
9536cat >conftest.$ac_ext <<_ACEOF
9537/* confdefs.h. */
9538_ACEOF
9539cat confdefs.h >>conftest.$ac_ext
9540cat >>conftest.$ac_ext <<_ACEOF
9541/* end confdefs.h. */
d7040cdb 9542
ce2cded5
L
9543/* Override any gcc2 internal prototype to avoid an error. */
9544#ifdef __cplusplus
9545extern "C"
9546#endif
9547/* We use char because int might match the return type of a gcc2
9548 builtin and then its argument prototype would still apply. */
9549char shl_load ();
9550int
9551main ()
9552{
9553shl_load ();
9554 ;
9555 return 0;
9556}
d7040cdb 9557_ACEOF
ce2cded5
L
9558rm -f conftest.$ac_objext conftest$ac_exeext
9559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9560 (eval $ac_link) 2>conftest.er1
9561 ac_status=$?
9562 grep -v '^ *+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } &&
9567 { ac_try='test -z "$ac_c_werror_flag"
9568 || test ! -s conftest.err'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 (eval $ac_try) 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; } &&
9574 { ac_try='test -s conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 ac_cv_lib_dld_shl_load=yes
9581else
9582 echo "$as_me: failed program was:" >&5
9583sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9584
ce2cded5 9585ac_cv_lib_dld_shl_load=no
d7040cdb 9586fi
ce2cded5
L
9587rm -f conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589LIBS=$ac_check_lib_save_LIBS
9590fi
9591echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9592echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9593if test $ac_cv_lib_dld_shl_load = yes; then
9594 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9595else
9596 echo "$as_me:$LINENO: checking for dlopen" >&5
9597echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9598if test "${ac_cv_func_dlopen+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9600else
9601 cat >conftest.$ac_ext <<_ACEOF
9602/* confdefs.h. */
9603_ACEOF
9604cat confdefs.h >>conftest.$ac_ext
9605cat >>conftest.$ac_ext <<_ACEOF
9606/* end confdefs.h. */
9607/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9609#define dlopen innocuous_dlopen
d7040cdb 9610
ce2cded5
L
9611/* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char dlopen (); below.
9613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614 <limits.h> exists even on freestanding compilers. */
d7040cdb 9615
ce2cded5
L
9616#ifdef __STDC__
9617# include <limits.h>
9618#else
9619# include <assert.h>
9620#endif
d7040cdb 9621
ce2cded5 9622#undef dlopen
d7040cdb 9623
ce2cded5
L
9624/* Override any gcc2 internal prototype to avoid an error. */
9625#ifdef __cplusplus
9626extern "C"
9627{
9628#endif
9629/* We use char because int might match the return type of a gcc2
9630 builtin and then its argument prototype would still apply. */
9631char dlopen ();
9632/* The GNU C library defines this for functions which it implements
9633 to always fail with ENOSYS. Some functions are actually named
9634 something starting with __ and the normal name is an alias. */
9635#if defined (__stub_dlopen) || defined (__stub___dlopen)
9636choke me
9637#else
9638char (*f) () = dlopen;
9639#endif
9640#ifdef __cplusplus
9641}
9642#endif
d7040cdb 9643
ce2cded5
L
9644int
9645main ()
9646{
9647return f != dlopen;
9648 ;
9649 return 0;
9650}
9651_ACEOF
9652rm -f conftest.$ac_objext conftest$ac_exeext
9653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -z "$ac_c_werror_flag"
9662 || test ! -s conftest.err'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_cv_func_dlopen=yes
9675else
9676 echo "$as_me: failed program was:" >&5
9677sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9678
ce2cded5 9679ac_cv_func_dlopen=no
d7040cdb 9680fi
ce2cded5
L
9681rm -f conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9683fi
ce2cded5
L
9684echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9685echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9686if test $ac_cv_func_dlopen = yes; then
9687 lt_cv_dlopen="dlopen"
9688else
9689 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9690echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9691if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693else
ce2cded5
L
9694 ac_check_lib_save_LIBS=$LIBS
9695LIBS="-ldl $LIBS"
d7040cdb
SE
9696cat >conftest.$ac_ext <<_ACEOF
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
d7040cdb 9702
ce2cded5
L
9703/* Override any gcc2 internal prototype to avoid an error. */
9704#ifdef __cplusplus
9705extern "C"
9706#endif
9707/* We use char because int might match the return type of a gcc2
9708 builtin and then its argument prototype would still apply. */
9709char dlopen ();
d7040cdb
SE
9710int
9711main ()
9712{
ce2cded5 9713dlopen ();
d7040cdb
SE
9714 ;
9715 return 0;
9716}
9717_ACEOF
ce2cded5
L
9718rm -f conftest.$ac_objext conftest$ac_exeext
9719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
ce2cded5 9734 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
ce2cded5
L
9740 ac_cv_lib_dl_dlopen=yes
9741else
9742 echo "$as_me: failed program was:" >&5
9743sed 's/^/| /' conftest.$ac_ext >&5
9744
9745ac_cv_lib_dl_dlopen=no
9746fi
9747rm -f conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9749LIBS=$ac_check_lib_save_LIBS
9750fi
9751echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9752echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9753if test $ac_cv_lib_dl_dlopen = yes; then
9754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9755else
9756 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9757echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9758if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760else
9761 ac_check_lib_save_LIBS=$LIBS
9762LIBS="-lsvld $LIBS"
d7040cdb
SE
9763cat >conftest.$ac_ext <<_ACEOF
9764/* confdefs.h. */
9765_ACEOF
9766cat confdefs.h >>conftest.$ac_ext
9767cat >>conftest.$ac_ext <<_ACEOF
9768/* end confdefs.h. */
d7040cdb 9769
ce2cded5
L
9770/* Override any gcc2 internal prototype to avoid an error. */
9771#ifdef __cplusplus
9772extern "C"
9773#endif
9774/* We use char because int might match the return type of a gcc2
9775 builtin and then its argument prototype would still apply. */
9776char dlopen ();
d7040cdb
SE
9777int
9778main ()
9779{
ce2cded5 9780dlopen ();
d7040cdb
SE
9781 ;
9782 return 0;
9783}
9784_ACEOF
ce2cded5
L
9785rm -f conftest.$ac_objext conftest$ac_exeext
9786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag"
9795 || test ! -s conftest.err'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
ce2cded5 9801 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 (eval $ac_try) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
ce2cded5 9807 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
9808else
9809 echo "$as_me: failed program was:" >&5
9810sed 's/^/| /' conftest.$ac_ext >&5
9811
ce2cded5 9812ac_cv_lib_svld_dlopen=no
d7040cdb 9813fi
ce2cded5
L
9814rm -f conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9816LIBS=$ac_check_lib_save_LIBS
9817fi
9818echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9819echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9820if test $ac_cv_lib_svld_dlopen = yes; then
9821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9822else
9823 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9824echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9825if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 9827else
ce2cded5
L
9828 ac_check_lib_save_LIBS=$LIBS
9829LIBS="-ldld $LIBS"
9830cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9831/* confdefs.h. */
9832_ACEOF
9833cat confdefs.h >>conftest.$ac_ext
9834cat >>conftest.$ac_ext <<_ACEOF
9835/* end confdefs.h. */
ce2cded5
L
9836
9837/* Override any gcc2 internal prototype to avoid an error. */
9838#ifdef __cplusplus
9839extern "C"
9840#endif
9841/* We use char because int might match the return type of a gcc2
9842 builtin and then its argument prototype would still apply. */
9843char dld_link ();
d7040cdb
SE
9844int
9845main ()
9846{
ce2cded5 9847dld_link ();
d7040cdb
SE
9848 ;
9849 return 0;
9850}
9851_ACEOF
ce2cded5
L
9852rm -f conftest.$ac_objext conftest$ac_exeext
9853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9854 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -z "$ac_c_werror_flag"
9862 || test ! -s conftest.err'
9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 (eval $ac_try) 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
ce2cded5 9868 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; }; then
ce2cded5
L
9874 ac_cv_lib_dld_dld_link=yes
9875else
9876 echo "$as_me: failed program was:" >&5
9877sed 's/^/| /' conftest.$ac_ext >&5
9878
9879ac_cv_lib_dld_dld_link=no
d7040cdb 9880fi
ce2cded5
L
9881rm -f conftest.err conftest.$ac_objext \
9882 conftest$ac_exeext conftest.$ac_ext
9883LIBS=$ac_check_lib_save_LIBS
9884fi
9885echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9886echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9887if test $ac_cv_lib_dld_dld_link = yes; then
9888 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9889fi
9890
9891
9892fi
9893
9894
9895fi
9896
9897
9898fi
9899
9900
9901fi
9902
9903
9904fi
9905
9906 ;;
9907 esac
9908
9909 if test "x$lt_cv_dlopen" != xno; then
9910 enable_dlopen=yes
d7040cdb 9911 else
ce2cded5 9912 enable_dlopen=no
d7040cdb 9913 fi
ce2cded5
L
9914
9915 case $lt_cv_dlopen in
9916 dlopen)
9917 save_CPPFLAGS="$CPPFLAGS"
9918 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9919
9920 save_LDFLAGS="$LDFLAGS"
9921 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9922
9923 save_LIBS="$LIBS"
9924 LIBS="$lt_cv_dlopen_libs $LIBS"
9925
9926 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9927echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9928if test "${lt_cv_dlopen_self+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 9930else
ce2cded5
L
9931 if test "$cross_compiling" = yes; then :
9932 lt_cv_dlopen_self=cross
9933else
9934 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9935 lt_status=$lt_dlunknown
9936 cat > conftest.$ac_ext <<_LT_EOF
9937#line 9937 "configure"
9938#include "confdefs.h"
9939
9940#if HAVE_DLFCN_H
9941#include <dlfcn.h>
9942#endif
9943
9944#include <stdio.h>
9945
9946#ifdef RTLD_GLOBAL
9947# define LT_DLGLOBAL RTLD_GLOBAL
9948#else
9949# ifdef DL_GLOBAL
9950# define LT_DLGLOBAL DL_GLOBAL
9951# else
9952# define LT_DLGLOBAL 0
9953# endif
9954#endif
9955
9956/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9957 find out it does not work in some platform. */
9958#ifndef LT_DLLAZY_OR_NOW
9959# ifdef RTLD_LAZY
9960# define LT_DLLAZY_OR_NOW RTLD_LAZY
9961# else
9962# ifdef DL_LAZY
9963# define LT_DLLAZY_OR_NOW DL_LAZY
9964# else
9965# ifdef RTLD_NOW
9966# define LT_DLLAZY_OR_NOW RTLD_NOW
9967# else
9968# ifdef DL_NOW
9969# define LT_DLLAZY_OR_NOW DL_NOW
9970# else
9971# define LT_DLLAZY_OR_NOW 0
9972# endif
9973# endif
9974# endif
9975# endif
9976#endif
9977
9978#ifdef __cplusplus
9979extern "C" void exit (int);
9980#endif
9981
9982void fnord() { int i=42;}
9983int main ()
9984{
9985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9986 int status = $lt_dlunknown;
9987
9988 if (self)
9989 {
9990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9991 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9992 /* dlclose (self); */
9993 }
9994 else
9995 puts (dlerror ());
9996
9997 exit (status);
9998}
9999_LT_EOF
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001 (eval $ac_link) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10005 (./conftest; exit; ) >&5 2>/dev/null
10006 lt_status=$?
10007 case x$lt_status in
10008 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10009 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10010 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10011 esac
10012 else :
10013 # compilation failed
10014 lt_cv_dlopen_self=no
10015 fi
10016fi
10017rm -fr conftest*
10018
d7040cdb
SE
10019
10020fi
ce2cded5
L
10021echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10022echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10023
10024 if test "x$lt_cv_dlopen_self" = xyes; then
10025 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10026 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10027echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10028if test "${lt_cv_dlopen_self_static+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 10030else
ce2cded5
L
10031 if test "$cross_compiling" = yes; then :
10032 lt_cv_dlopen_self_static=cross
10033else
10034 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10035 lt_status=$lt_dlunknown
10036 cat > conftest.$ac_ext <<_LT_EOF
10037#line 10037 "configure"
10038#include "confdefs.h"
10039
10040#if HAVE_DLFCN_H
10041#include <dlfcn.h>
10042#endif
10043
10044#include <stdio.h>
10045
10046#ifdef RTLD_GLOBAL
10047# define LT_DLGLOBAL RTLD_GLOBAL
10048#else
10049# ifdef DL_GLOBAL
10050# define LT_DLGLOBAL DL_GLOBAL
10051# else
10052# define LT_DLGLOBAL 0
10053# endif
10054#endif
10055
10056/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10057 find out it does not work in some platform. */
10058#ifndef LT_DLLAZY_OR_NOW
10059# ifdef RTLD_LAZY
10060# define LT_DLLAZY_OR_NOW RTLD_LAZY
10061# else
10062# ifdef DL_LAZY
10063# define LT_DLLAZY_OR_NOW DL_LAZY
10064# else
10065# ifdef RTLD_NOW
10066# define LT_DLLAZY_OR_NOW RTLD_NOW
10067# else
10068# ifdef DL_NOW
10069# define LT_DLLAZY_OR_NOW DL_NOW
10070# else
10071# define LT_DLLAZY_OR_NOW 0
10072# endif
10073# endif
10074# endif
10075# endif
10076#endif
10077
10078#ifdef __cplusplus
10079extern "C" void exit (int);
10080#endif
10081
10082void fnord() { int i=42;}
10083int main ()
d7040cdb 10084{
ce2cded5
L
10085 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10086 int status = $lt_dlunknown;
10087
10088 if (self)
10089 {
10090 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10091 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10092 /* dlclose (self); */
10093 }
10094 else
10095 puts (dlerror ());
10096
10097 exit (status);
d7040cdb 10098}
ce2cded5
L
10099_LT_EOF
10100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
10101 (eval $ac_link) 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10104 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10105 (./conftest; exit; ) >&5 2>/dev/null
10106 lt_status=$?
10107 case x$lt_status in
10108 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10109 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10110 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10111 esac
10112 else :
10113 # compilation failed
10114 lt_cv_dlopen_self_static=no
10115 fi
d7040cdb 10116fi
ce2cded5
L
10117rm -fr conftest*
10118
10119
d7040cdb 10120fi
ce2cded5
L
10121echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10122echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10123 fi
10124
10125 CPPFLAGS="$save_CPPFLAGS"
10126 LDFLAGS="$save_LDFLAGS"
10127 LIBS="$save_LIBS"
10128 ;;
10129 esac
10130
10131 case $lt_cv_dlopen_self in
10132 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10133 *) enable_dlopen_self=unknown ;;
10134 esac
10135
10136 case $lt_cv_dlopen_self_static in
10137 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10138 *) enable_dlopen_self_static=unknown ;;
10139 esac
d7040cdb 10140fi
d7040cdb 10141
d7040cdb
SE
10142
10143
d7040cdb 10144
d7040cdb 10145
ce2cded5
L
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158striplib=
10159old_striplib=
10160echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10161echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10162if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10163 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10164 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10165 echo "$as_me:$LINENO: result: yes" >&5
10166echo "${ECHO_T}yes" >&6
10167else
10168# FIXME - insert some real tests, host_os isn't really good enough
10169 case $host_os in
10170 darwin*)
10171 if test -n "$STRIP" ; then
10172 striplib="$STRIP -x"
10173 old_striplib="$STRIP -S"
10174 echo "$as_me:$LINENO: result: yes" >&5
10175echo "${ECHO_T}yes" >&6
10176 else
10177 echo "$as_me:$LINENO: result: no" >&5
10178echo "${ECHO_T}no" >&6
d7040cdb 10179 fi
ce2cded5
L
10180 ;;
10181 *)
10182 echo "$as_me:$LINENO: result: no" >&5
10183echo "${ECHO_T}no" >&6
10184 ;;
d7040cdb 10185 esac
d7040cdb
SE
10186fi
10187
d7040cdb 10188
d7040cdb 10189
d7040cdb 10190
d7040cdb 10191
d7040cdb 10192
d7040cdb 10193
d7040cdb 10194
d7040cdb 10195
d7040cdb 10196
d7040cdb 10197
d7040cdb 10198
ce2cded5
L
10199 # Report which library types will actually be built
10200 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10201echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10202 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10203echo "${ECHO_T}$can_build_shared" >&6
d7040cdb 10204
ce2cded5
L
10205 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10206echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10207 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 10208
ce2cded5
L
10209 # On AIX, shared libraries and static libraries use the same namespace, and
10210 # are all built from PIC.
10211 case $host_os in
10212 aix3*)
10213 test "$enable_shared" = yes && enable_static=no
10214 if test -n "$RANLIB"; then
10215 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10216 postinstall_cmds='$RANLIB $lib'
10217 fi
10218 ;;
d7040cdb 10219
ce2cded5
L
10220 aix4* | aix5*)
10221 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10222 test "$enable_shared" = yes && enable_static=no
10223 fi
10224 ;;
10225 esac
10226 echo "$as_me:$LINENO: result: $enable_shared" >&5
10227echo "${ECHO_T}$enable_shared" >&6
10228
10229 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10230echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10231 # Make sure either enable_shared or enable_static is yes.
10232 test "$enable_shared" = yes || enable_static=yes
10233 echo "$as_me:$LINENO: result: $enable_static" >&5
10234echo "${ECHO_T}$enable_static" >&6
d7040cdb 10235
d7040cdb 10236
d7040cdb 10237
d7040cdb 10238
ce2cded5
L
10239fi
10240ac_ext=c
10241ac_cpp='$CPP $CPPFLAGS'
10242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10244ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 10245
ce2cded5 10246CC="$lt_save_CC"
d7040cdb 10247
d7040cdb 10248
d7040cdb 10249
d7040cdb 10250
d7040cdb 10251
d7040cdb 10252
d7040cdb 10253
d7040cdb 10254
d7040cdb 10255
d7040cdb
SE
10256
10257
d7040cdb
SE
10258
10259
ce2cded5 10260 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
10261
10262
d7040cdb 10263
d7040cdb 10264
ce2cded5 10265# Only expand once:
d7040cdb 10266
d7040cdb 10267
d7040cdb 10268
ce2cded5
L
10269# Check whether --enable-targets or --disable-targets was given.
10270if test "${enable_targets+set}" = set; then
10271 enableval="$enable_targets"
10272 case "${enableval}" in
10273 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10274echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10275 { (exit 1); exit 1; }; }
10276 ;;
10277 no) enable_targets= ;;
10278 *) enable_targets=$enableval ;;
10279esac
10280fi;
10281# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10282if test "${enable_commonbfdlib+set}" = set; then
10283 enableval="$enable_commonbfdlib"
10284 case "${enableval}" in
10285 yes) commonbfdlib=true ;;
10286 no) commonbfdlib=false ;;
10287 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10288echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10289 { (exit 1); exit 1; }; } ;;
10290esac
10291fi;
10292ac_checking=yes
10293if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10294 ac_checking=
10295fi
10296# Check whether --enable-checking or --disable-checking was given.
10297if test "${enable_checking+set}" = set; then
10298 enableval="$enable_checking"
10299 case "${enableval}" in
10300 no|none) ac_checking= ;;
10301 *) ac_checking=yes ;;
10302esac
10303fi; if test x$ac_checking != x ; then
d7040cdb 10304
ce2cded5
L
10305cat >>confdefs.h <<\_ACEOF
10306#define ENABLE_CHECKING 1
10307_ACEOF
d7040cdb 10308
ce2cded5 10309fi
d7040cdb 10310
ce2cded5 10311using_cgen=no
d7040cdb 10312
d7040cdb 10313
ce2cded5 10314GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 10315
ce2cded5
L
10316# Check whether --enable-werror or --disable-werror was given.
10317if test "${enable_werror+set}" = set; then
10318 enableval="$enable_werror"
10319 case "${enableval}" in
10320 yes | y) ERROR_ON_WARNING="yes" ;;
10321 no | n) ERROR_ON_WARNING="no" ;;
10322 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10323echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10324 { (exit 1); exit 1; }; } ;;
10325 esac
10326fi;
d7040cdb 10327
bb8541b9
L
10328# Enable -Wno-format by default when using gcc on mingw
10329case "${host}" in
10330 *-*-mingw32*)
10331 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10332 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10333 fi
10334 ;;
10335 *) ;;
10336esac
10337
ce2cded5
L
10338# Enable -Werror by default when using gcc
10339if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10340 ERROR_ON_WARNING=yes
10341fi
10342
10343NO_WERROR=
10344if test "${ERROR_ON_WARNING}" = yes ; then
10345 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10346 NO_WERROR="-Wno-error"
10347fi
10348
10349if test "${GCC}" = yes ; then
10350 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10351fi
10352
10353# Check whether --enable-build-warnings or --disable-build-warnings was given.
10354if test "${enable_build_warnings+set}" = set; then
10355 enableval="$enable_build_warnings"
10356 case "${enableval}" in
10357 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10358 no) if test "${GCC}" = yes ; then
10359 WARN_CFLAGS="-w"
10360 fi;;
10361 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10362 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10363 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10364 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10365 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10366esac
10367fi;
d7040cdb 10368
ce2cded5
L
10369if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10370 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10371fi
d7040cdb 10372
d7040cdb 10373
d7040cdb 10374
d7040cdb 10375
d7040cdb 10376
ce2cded5
L
10377# Generate a header file
10378 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 10379
d7040cdb 10380
ce2cded5
L
10381# If we are on a DOS filesystem, we must use gdb.ini rather than
10382# .gdbinit.
10383case "${host}" in
10384 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10385 GDBINIT="gdb.ini"
10386 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 10387
ce2cded5
L
10388 ;;
10389 *)
10390 GDBINIT=".gdbinit"
10391 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 10392
ce2cded5
L
10393 ;;
10394esac
d7040cdb 10395
d7040cdb 10396
ce2cded5
L
10397#We need this for the host. BOUT header is in host order.
10398echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10399echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10400if test "${ac_cv_c_bigendian+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402else
10403 # See if sys/param.h defines the BYTE_ORDER macro.
10404cat >conftest.$ac_ext <<_ACEOF
10405/* confdefs.h. */
10406_ACEOF
10407cat confdefs.h >>conftest.$ac_ext
10408cat >>conftest.$ac_ext <<_ACEOF
10409/* end confdefs.h. */
10410#include <sys/types.h>
10411#include <sys/param.h>
d7040cdb 10412
ce2cded5
L
10413int
10414main ()
10415{
10416#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10417 bogus endian macros
10418#endif
d7040cdb 10419
ce2cded5
L
10420 ;
10421 return 0;
10422}
10423_ACEOF
10424rm -f conftest.$ac_objext
10425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426 (eval $ac_compile) 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_c_werror_flag"
10434 || test ! -s conftest.err'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; } &&
10440 { ac_try='test -s conftest.$ac_objext'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; }; then
10446 # It does; now see whether it defined to BIG_ENDIAN or not.
10447cat >conftest.$ac_ext <<_ACEOF
10448/* confdefs.h. */
10449_ACEOF
10450cat confdefs.h >>conftest.$ac_ext
10451cat >>conftest.$ac_ext <<_ACEOF
10452/* end confdefs.h. */
10453#include <sys/types.h>
10454#include <sys/param.h>
d7040cdb 10455
ce2cded5
L
10456int
10457main ()
10458{
10459#if BYTE_ORDER != BIG_ENDIAN
10460 not big endian
10461#endif
d7040cdb 10462
ce2cded5
L
10463 ;
10464 return 0;
10465}
10466_ACEOF
10467rm -f conftest.$ac_objext
10468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10469 (eval $ac_compile) 2>conftest.er1
10470 ac_status=$?
10471 grep -v '^ *+' conftest.er1 >conftest.err
10472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } &&
10476 { ac_try='test -z "$ac_c_werror_flag"
10477 || test ! -s conftest.err'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; } &&
10483 { ac_try='test -s conftest.$ac_objext'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10489 ac_cv_c_bigendian=yes
10490else
10491 echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10493
ce2cded5
L
10494ac_cv_c_bigendian=no
10495fi
10496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10497else
10498 echo "$as_me: failed program was:" >&5
10499sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10500
ce2cded5
L
10501# It does not; compile a test program.
10502if test "$cross_compiling" = yes; then
10503 # try to guess the endianness by grepping values into an object file
10504 ac_cv_c_bigendian=unknown
10505 cat >conftest.$ac_ext <<_ACEOF
10506/* confdefs.h. */
10507_ACEOF
10508cat confdefs.h >>conftest.$ac_ext
10509cat >>conftest.$ac_ext <<_ACEOF
10510/* end confdefs.h. */
10511short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10512short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10513void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10514short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10515short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10516void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10517int
10518main ()
10519{
10520 _ascii (); _ebcdic ();
10521 ;
10522 return 0;
10523}
10524_ACEOF
10525rm -f conftest.$ac_objext
10526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10527 (eval $ac_compile) 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -z "$ac_c_werror_flag"
10535 || test ! -s conftest.err'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest.$ac_objext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10548 ac_cv_c_bigendian=yes
d7040cdb 10549fi
ce2cded5
L
10550if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10551 if test "$ac_cv_c_bigendian" = unknown; then
10552 ac_cv_c_bigendian=no
10553 else
10554 # finding both strings is unlikely to happen, but who knows?
10555 ac_cv_c_bigendian=unknown
10556 fi
10557fi
10558else
10559 echo "$as_me: failed program was:" >&5
10560sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10561
ce2cded5
L
10562fi
10563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10564else
10565 cat >conftest.$ac_ext <<_ACEOF
10566/* confdefs.h. */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h. */
10571int
10572main ()
10573{
10574 /* Are we little or big endian? From Harbison&Steele. */
10575 union
10576 {
10577 long l;
10578 char c[sizeof (long)];
10579 } u;
10580 u.l = 1;
10581 exit (u.c[sizeof (long) - 1] == 1);
10582}
d7040cdb 10583_ACEOF
ce2cded5
L
10584rm -f conftest$ac_exeext
10585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10586 (eval $ac_link) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10592 ac_status=$?
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }; then
10595 ac_cv_c_bigendian=no
10596else
10597 echo "$as_me: program exited with status $ac_status" >&5
10598echo "$as_me: failed program was:" >&5
10599sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10600
ce2cded5
L
10601( exit $ac_status )
10602ac_cv_c_bigendian=yes
d7040cdb 10603fi
ce2cded5 10604rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7040cdb 10605fi
d7040cdb 10606fi
ce2cded5
L
10607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10608fi
10609echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10610echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10611case $ac_cv_c_bigendian in
10612 yes)
d7040cdb 10613
d7040cdb 10614cat >>confdefs.h <<\_ACEOF
ce2cded5 10615#define WORDS_BIGENDIAN 1
d7040cdb
SE
10616_ACEOF
10617 ;;
ce2cded5
L
10618 no)
10619 ;;
10620 *)
10621 { { echo "$as_me:$LINENO: error: unknown endianness
10622presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10623echo "$as_me: error: unknown endianness
10624presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10625 { (exit 1); exit 1; }; } ;;
d7040cdb
SE
10626esac
10627
d7040cdb 10628
ce2cded5 10629te_file=generic
d7040cdb 10630
ce2cded5
L
10631# Makefile target for installing gas in $(tooldir)/bin.
10632install_tooldir=install-exec-tooldir
d7040cdb 10633
ce2cded5
L
10634canon_targets=""
10635all_targets=no
10636if test -n "$enable_targets" ; then
10637 for t in `echo $enable_targets | sed 's/,/ /g'`; do
10638 if test $t = "all"; then
10639 all_targets=yes
10640 continue
10641 fi
10642 result=`$ac_config_sub $t 2>/dev/null`
10643 if test -n "$result" ; then
10644 canon_targets="$canon_targets $result"
10645# else
10646# # Permit "all", etc. We don't support it yet though.
10647# canon_targets="$canon_targets $t"
10648 fi
10649 done
10650 _gas_uniq_list="$canon_targets"
d7040cdb
SE
10651_gas_uniq_newlist=""
10652for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10653 case $_gas_uniq_i in
10654 _gas_uniq_dummy) ;;
10655 *) case " $_gas_uniq_newlist " in
10656 *" $_gas_uniq_i "*) ;;
10657 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10658 esac ;;
10659 esac
10660done
ce2cded5 10661canon_targets=$_gas_uniq_newlist
d7040cdb 10662
ce2cded5
L
10663fi
10664
10665emulations=""
10666
10667for this_target in $target $canon_targets ; do
10668
10669 targ=${this_target}
10670 . ${srcdir}/configure.tgt
10671
10672 case ${target_cpu} in
10673 crisv32)
10674
10675cat >>confdefs.h <<_ACEOF
10676#define DEFAULT_CRIS_ARCH $arch
d7040cdb 10677_ACEOF
ce2cded5
L
10678
10679 ;;
10680 esac
10681
10682 if test ${this_target} = $target ; then
10683 target_cpu_type=${cpu_type}
10684 elif test ${target_cpu_type} != ${cpu_type} ; then
10685 continue
10686 fi
10687
10688 generic_target=${cpu_type}-${target_vendor}-${target_os}
10689 case ${generic_target} in
10690 i386-*-sco3.2v5*)
10691 if test ${this_target} = $target; then
10692
d7040cdb 10693cat >>confdefs.h <<\_ACEOF
ce2cded5 10694#define SCO_ELF 1
d7040cdb 10695_ACEOF
ce2cded5
L
10696
10697 fi
10698 ;;
10699
10700 i386-*-msdosdjgpp* \
10701 | i386-*-go32* \
10702 | i386-go32-rtems*)
10703
d7040cdb 10704cat >>confdefs.h <<\_ACEOF
ce2cded5 10705#define STRICTCOFF 1
d7040cdb 10706_ACEOF
ce2cded5
L
10707
10708 ;;
10709
10710 i860-*-*)
10711 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10712echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
10713 ;;
10714
10715 mips-sony-bsd*)
10716 ;;
10717 mips-*-bsd*)
10718 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
10719echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
10720 { (exit 1); exit 1; }; }
10721 ;;
10722
10723 ppc-*-aix5.*)
10724
d7040cdb 10725cat >>confdefs.h <<\_ACEOF
ce2cded5 10726#define AIX_WEAK_SUPPORT 1
d7040cdb 10727_ACEOF
ce2cded5
L
10728
10729 ;;
10730 ppc-*-linux-*)
10731 case "$endian" in
10732 big) ;;
10733 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
10734echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
10735 { (exit 1); exit 1; }; } ;;
10736 esac
10737 ;;
10738 ppc-*-solaris*)
10739 if test ${this_target} = $target; then
10740
d7040cdb 10741cat >>confdefs.h <<\_ACEOF
ce2cded5 10742#define TARGET_SOLARIS_COMMENT 1
d7040cdb 10743_ACEOF
ce2cded5
L
10744
10745 fi
10746 if test x${endian} = xbig; then
10747 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
10748echo "$as_me: error: Solaris must be configured little endian" >&2;}
10749 { (exit 1); exit 1; }; }
10750 fi
10751 ;;
10752
10753 sh*-*-symbianelf*)
10754
d7040cdb 10755cat >>confdefs.h <<\_ACEOF
ce2cded5 10756#define TARGET_SYMBIAN 1
d7040cdb 10757_ACEOF
ce2cded5
L
10758
10759 ;;
d7040cdb 10760 esac
d7040cdb 10761
ce2cded5
L
10762 if test ${this_target} = $target ; then
10763 endian_def=
10764 if test x${endian} = xbig; then
10765 endian_def=1
10766 elif test x${endian} = xlittle; then
10767 endian_def=0
10768 fi
10769 if test x${endian_def} != x; then
10770
10771cat >>confdefs.h <<_ACEOF
10772#define TARGET_BYTES_BIG_ENDIAN $endian_def
10773_ACEOF
10774
10775 fi
10776 fi
10777
10778# Other random stuff.
10779
10780 case ${cpu_type} in
10781 mips)
10782 # Set mips_cpu to the name of the default CPU.
10783 case ${target_cpu} in
10784 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
10785 mips_cpu=from-abi
10786 ;;
10787 mipsisa32 | mipsisa32el)
10788 mips_cpu=mips32
10789 ;;
10790 mipsisa32r2 | mipsisa32r2el)
10791 mips_cpu=mips32r2
10792 ;;
10793 mipsisa64 | mipsisa64el)
10794 mips_cpu=mips64
10795 ;;
10796 mipsisa64r2 | mipsisa64r2el)
10797 mips_cpu=mips64r2
10798 ;;
10799 mipstx39 | mipstx39el)
10800 mips_cpu=r3900
10801 ;;
10802 mips64vr | mips64vrel)
10803 mips_cpu=vr4100
10804 ;;
10805 mipsisa32r2* | mipsisa64r2*)
10806 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
10807 ;;
10808 mips64* | mipsisa64* | mipsisa32*)
10809 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
10810 ;;
10811 *)
10812 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
10813echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
10814 { (exit 1); exit 1; }; }
10815 ;;
10816 esac
10817 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
10818 # binaries. It's a GNU extension that some OSes don't understand.
10819 # The value only matters on ELF targets.
10820 case ${target} in
10821 *-*-irix*)
10822 use_e_mips_abi_o32=0
10823 ;;
10824 *)
10825 use_e_mips_abi_o32=1
10826 ;;
10827 esac
10828 # Decide whether to generate 32-bit or 64-bit code by default.
10829 # Used to resolve -march=from-abi when an embedded ABI is selected.
10830 case ${target} in
10831 mips64*-*-* | mipsisa64*-*-*)
10832 mips_default_64bit=1
10833 ;;
10834 *)
10835 mips_default_64bit=0
10836 ;;
10837 esac
10838 # Decide which ABI to target by default.
10839 case ${target} in
10840 mips64*-linux* | mips-sgi-irix6*)
10841 mips_default_abi=N32_ABI
10842 ;;
10843 mips*-linux*)
10844 mips_default_abi=O32_ABI
10845 ;;
10846 mips64*-openbsd*)
10847 mips_default_abi=N64_ABI
10848 ;;
10849 *)
10850 mips_default_abi=NO_ABI
10851 ;;
10852 esac
10853
10854cat >>confdefs.h <<_ACEOF
10855#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 10856_ACEOF
d7040cdb
SE
10857
10858
10859cat >>confdefs.h <<_ACEOF
ce2cded5 10860#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
10861_ACEOF
10862
10863
10864cat >>confdefs.h <<_ACEOF
ce2cded5 10865#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
10866_ACEOF
10867
10868
ce2cded5
L
10869cat >>confdefs.h <<_ACEOF
10870#define MIPS_DEFAULT_ABI $mips_default_abi
10871_ACEOF
d7040cdb 10872
ce2cded5
L
10873 ;;
10874 esac
d7040cdb 10875
ce2cded5
L
10876 # Do we need the opcodes library?
10877 case ${cpu_type} in
10878 vax | tic30)
10879 ;;
d7040cdb 10880
ce2cded5
L
10881 *)
10882 need_opcodes=yes
d7040cdb 10883
ce2cded5
L
10884 case "${enable_shared}" in
10885 yes) shared_opcodes=true ;;
10886 *opcodes*) shared_opcodes=true ;;
10887 *) shared_opcodes=false ;;
10888 esac
10889 ;;
10890 esac
d7040cdb 10891
ce2cded5
L
10892 # Any other special object files needed ?
10893 case ${cpu_type} in
d7040cdb 10894
ce2cded5
L
10895 bfin)
10896 echo ${extra_objects} | grep -s "bfin-parse.o"
10897 if test $? -ne 0 ; then
10898 extra_objects="$extra_objects bfin-parse.o"
10899 fi
d7040cdb 10900
ce2cded5
L
10901 echo ${extra_objects} | grep -s "bfin-lex.o"
10902 if test $? -ne 0 ; then
10903 extra_objects="$extra_objects bfin-lex.o"
10904 fi
10905 ;;
d7040cdb 10906
ce2cded5
L
10907 fr30 | ip2k | iq2000 | m32r | openrisc)
10908 using_cgen=yes
10909 ;;
d7040cdb 10910
ce2cded5
L
10911 m32c)
10912 using_cgen=yes
10913 ;;
10914 frv)
10915 using_cgen=yes
10916 ;;
10917 m68k)
10918 case ${extra_objects} in
10919 *m68k-parse.o*) ;;
10920 *) extra_objects="$extra_objects m68k-parse.o" ;;
10921 esac
10922 ;;
d7040cdb 10923
ce2cded5
L
10924 mep)
10925 using_cgen=yes
10926 ;;
d7040cdb 10927
ce2cded5
L
10928 mips)
10929 echo ${extra_objects} | grep -s "itbl-parse.o"
10930 if test $? -ne 0 ; then
10931 extra_objects="$extra_objects itbl-parse.o"
10932 fi
d7040cdb 10933
ce2cded5
L
10934 echo ${extra_objects} | grep -s "itbl-lex.o"
10935 if test $? -ne 0 ; then
10936 extra_objects="$extra_objects itbl-lex.o"
10937 fi
d7040cdb 10938
ce2cded5
L
10939 echo ${extra_objects} | grep -s "itbl-ops.o"
10940 if test $? -ne 0 ; then
10941 extra_objects="$extra_objects itbl-ops.o"
10942 fi
10943 ;;
d7040cdb 10944
ce2cded5
L
10945 mt)
10946 using_cgen=yes
10947 ;;
d7040cdb 10948
ce2cded5
L
10949 i386 | s390 | sparc)
10950 if test $this_target = $target ; then
d7040cdb
SE
10951
10952cat >>confdefs.h <<_ACEOF
ce2cded5 10953#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
10954_ACEOF
10955
ce2cded5
L
10956 fi
10957 ;;
d7040cdb 10958
ce2cded5
L
10959 xstormy16)
10960 using_cgen=yes
10961 ;;
d7040cdb 10962
ce2cded5
L
10963 xc16x)
10964 using_cgen=yes
10965 ;;
d7040cdb 10966
ce2cded5
L
10967 xtensa)
10968 echo ${extra_objects} | grep -s "xtensa-relax.o"
10969 if test $? -ne 0 ; then
10970 extra_objects="$extra_objects xtensa-relax.o"
10971 fi
10972 ;;
d7040cdb 10973
ce2cded5
L
10974 *)
10975 ;;
10976 esac
d7040cdb 10977
ce2cded5
L
10978 if test $using_cgen = yes ; then
10979 case "x${extra_objects}" in
10980 *cgen.o*) ;;
10981 *) extra_objects="$extra_objects cgen.o" ;;
10982 esac
10983 fi
d7040cdb 10984
ce2cded5 10985# See if we really can support this configuration with the emulation code.
d7040cdb 10986
ce2cded5
L
10987 if test $this_target = $target ; then
10988 obj_format=$fmt
10989 te_file=$em
10990 fi
d7040cdb 10991
ce2cded5 10992# From target name and format, produce a list of supported emulations.
d7040cdb 10993
ce2cded5
L
10994 case ${generic_target}-${fmt} in
10995 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
10996 mips*-*-linux*-*) case "$endian" in
10997 big) emulation="mipsbelf mipslelf mipself" ;;
10998 *) emulation="mipslelf mipsbelf mipself" ;;
10999 esac ;;
11000 mips-*-lnews*-ecoff) ;;
11001 mips-*-*-ecoff) case "$endian" in
11002 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
11003 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
11004 esac ;;
11005 mips-*-*-elf) case "$endian" in
11006 big) emulation="mipsbelf mipslelf mipself" ;;
11007 *) emulation="mipslelf mipsbelf mipself" ;;
11008 esac ;;
11009 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11010 # i386-pc-pe-coff != i386-pc-coff.
11011 i386-*-pe-coff) ;;
11012 # Uncommenting the next line will turn on support for i386 AOUT
11013 # for the default linux configuration
11014 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11015 #
11016 i386-*-aout) emulation="i386aout" ;;
11017 i386-*-coff) emulation="i386coff" ;;
11018 i386-*-elf) emulation="i386elf" ;;
d7040cdb 11019
ce2cded5
L
11020 # Always all formats. The first stated emulation becomes the default.
11021 cris-*-*aout*) emulation="crisaout criself" ;;
11022 cris-*-*) emulation="criself crisaout" ;;
11023 esac
13b2be9c 11024
ce2cded5 11025 emulations="$emulations $emulation"
13b2be9c 11026
13b2be9c 11027done
13b2be9c 11028
ce2cded5
L
11029# Turn on all targets if possible
11030if test ${all_targets} = "yes"; then
11031 case ${target_cpu_type} in
11032 i386)
11033 case ${obj_format} in
11034 aout)
11035 emulations="$emulations i386coff i386elf"
11036 ;;
11037 coff)
11038 emulations="$emulations i386aout i386elf"
11039 ;;
11040 elf)
11041 emulations="$emulations i386aout i386coff"
11042 ;;
11043 esac
11044 ;;
11045 x86_64)
11046 case ${obj_format} in
11047 aout)
11048 emulations="$emulations i386coff i386elf"
11049 ;;
11050 coff)
11051 emulations="$emulations i386aout i386elf"
11052 ;;
11053 elf)
11054 emulations="$emulations i386aout i386coff"
11055 ;;
11056 esac
11057 ;;
11058 esac
13b2be9c 11059fi
c8615825 11060
ce2cded5
L
11061# Assign floating point type. Most processors with FP support
11062# IEEE FP. On those that don't support FP at all, usually IEEE
11063# is emulated.
11064case ${target_cpu} in
11065 vax | pdp11 ) atof=vax ;;
11066 *) atof=ieee ;;
11067esac
c8615825 11068
ce2cded5
L
11069case "${obj_format}" in
11070 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11071echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11072 { (exit 1); exit 1; }; } ;;
11073esac
13b2be9c 11074
ce2cded5
L
11075# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11076cgen_cpu_prefix=""
11077if test $using_cgen = yes ; then
11078 case ${target_cpu} in
11079 *) cgen_cpu_prefix=${target_cpu} ;;
11080 esac
c8615825 11081
c8615825 11082
ce2cded5
L
11083cat >>confdefs.h <<\_ACEOF
11084#define USING_CGEN 1
11085_ACEOF
d7040cdb 11086
d7040cdb 11087fi
13b2be9c 11088
ce2cded5
L
11089
11090if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11091 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11092echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11093 { (exit 1); exit 1; }; }
13b2be9c 11094fi
ce2cded5
L
11095
11096if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11097 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11098echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11099 { (exit 1); exit 1; }; }
13b2be9c
DJ
11100fi
11101
ce2cded5
L
11102# Some COFF configurations want these random other flags set.
11103case ${obj_format} in
11104 coff)
11105 case ${target_cpu_type} in
11106 i386)
11107cat >>confdefs.h <<\_ACEOF
11108#define I386COFF 1
11109_ACEOF
11110 ;;
11111 m68k)
11112cat >>confdefs.h <<\_ACEOF
11113#define M68KCOFF 1
11114_ACEOF
11115 ;;
11116 m88k)
11117cat >>confdefs.h <<\_ACEOF
11118#define M88KCOFF 1
11119_ACEOF
11120 ;;
11121 x86_64)
11122cat >>confdefs.h <<\_ACEOF
11123#define I386COFF 1
11124_ACEOF
11125 ;;
11126 esac
11127 ;;
11128esac
11129
11130# Getting this done right is going to be a bitch. Each configuration specified
11131# with --enable-targets=... should be checked for environment, format, cpu
11132# setting.
11133#
11134# For each configuration, the necessary object file support code must be linked
11135# in. This might be only one, it might be up to four. The necessary emulation
11136# code needs to be provided, too.
11137#
11138# And then there's "--enable-targets=all"....
11139#
11140# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
11141
11142formats="${obj_format}"
11143emfiles=""
11144EMULATIONS=""
11145_gas_uniq_list="$emulations"
11146_gas_uniq_newlist=""
11147for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11148 case $_gas_uniq_i in
11149 _gas_uniq_dummy) ;;
11150 *) case " $_gas_uniq_newlist " in
11151 *" $_gas_uniq_i "*) ;;
11152 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11153 esac ;;
11154 esac
11155done
11156emulations=$_gas_uniq_newlist
11157
11158for em in . $emulations ; do
11159 case $em in
11160 .) continue ;;
11161 mipsbelf | mipslelf | mipself)
11162 fmt=elf file=mipself ;;
11163 mipsbecoff | mipslecoff | mipsecoff)
11164 fmt=ecoff file=mipsecoff ;;
11165 *coff)
11166 fmt=coff file=$em ;;
11167 *aout)
11168 fmt=aout file=$em ;;
11169 *elf)
11170 fmt=elf file=$em ;;
11171 esac
11172 formats="$formats $fmt"
11173 emfiles="$emfiles e-$file.o"
11174 EMULATIONS="$EMULATIONS &$em,"
11175done
11176_gas_uniq_list="$formats"
11177_gas_uniq_newlist=""
11178for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11179 case $_gas_uniq_i in
11180 _gas_uniq_dummy) ;;
11181 *) case " $_gas_uniq_newlist " in
11182 *" $_gas_uniq_i "*) ;;
11183 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11184 esac ;;
11185 esac
13b2be9c 11186done
ce2cded5 11187formats=$_gas_uniq_newlist
13b2be9c 11188
ce2cded5
L
11189_gas_uniq_list="$emfiles"
11190_gas_uniq_newlist=""
11191for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11192 case $_gas_uniq_i in
11193 _gas_uniq_dummy) ;;
11194 *) case " $_gas_uniq_newlist " in
11195 *" $_gas_uniq_i "*) ;;
11196 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11197 esac ;;
11198 esac
11199done
11200emfiles=$_gas_uniq_newlist
d7040cdb 11201
ce2cded5
L
11202if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11203 for fmt in $formats ; do
11204 case $fmt in
11205 aout)
11206cat >>confdefs.h <<\_ACEOF
11207#define OBJ_MAYBE_AOUT 1
13b2be9c 11208_ACEOF
ce2cded5
L
11209 ;;
11210 bout)
11211cat >>confdefs.h <<\_ACEOF
11212#define OBJ_MAYBE_BOUT 1
13b2be9c 11213_ACEOF
ce2cded5
L
11214 ;;
11215 coff)
11216cat >>confdefs.h <<\_ACEOF
11217#define OBJ_MAYBE_COFF 1
11218_ACEOF
11219 ;;
11220 ecoff)
11221cat >>confdefs.h <<\_ACEOF
11222#define OBJ_MAYBE_ECOFF 1
11223_ACEOF
11224 ;;
11225 elf)
11226cat >>confdefs.h <<\_ACEOF
11227#define OBJ_MAYBE_ELF 1
11228_ACEOF
11229 ;;
11230 generic)
11231cat >>confdefs.h <<\_ACEOF
11232#define OBJ_MAYBE_GENERIC 1
11233_ACEOF
11234 ;;
11235 som)
11236cat >>confdefs.h <<\_ACEOF
11237#define OBJ_MAYBE_SOM 1
11238_ACEOF
11239 ;;
11240 esac
11241 extra_objects="$extra_objects obj-$fmt.o"
11242 done
11243 obj_format=multi
13b2be9c 11244fi
ce2cded5
L
11245if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11246 DEFAULT_EMULATION=`set . $emulations ; echo $2`
11247 # e-mips* has more than one emulation per file, e-i386* has just one at the
11248 # moment. If only one emulation is specified, then don't define
11249 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11250 case "${obj_format}${emfiles}" in
11251 multi* | *mips*)
11252 extra_objects="$extra_objects $emfiles"
d7040cdb 11253
ce2cded5
L
11254cat >>confdefs.h <<\_ACEOF
11255#define USE_EMULATIONS 1
13b2be9c 11256_ACEOF
ce2cded5
L
11257 ;;
11258 esac
11259fi
d7040cdb 11260
13b2be9c 11261
ce2cded5
L
11262cat >>confdefs.h <<_ACEOF
11263#define EMULATIONS $EMULATIONS
13b2be9c 11264_ACEOF
d7040cdb 11265
d7040cdb 11266
ce2cded5
L
11267cat >>confdefs.h <<_ACEOF
11268#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 11269_ACEOF
d7040cdb 11270
d7040cdb 11271
ce2cded5 11272reject_dev_configs=yes
252b5132 11273
ce2cded5
L
11274case ${reject_dev_configs}-${dev} in
11275 yes-yes) # Oops.
11276 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11277echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11278 { (exit 1); exit 1; }; }
11279 ;;
d7040cdb
SE
11280esac
11281
13b2be9c 11282
ce2cded5
L
11283
11284
11285
11286
11287
11288# do we need the opcodes library?
11289case "${need_opcodes}" in
11290yes)
11291 OPCODES_LIB=../opcodes/libopcodes.la
11292 ;;
11293esac
11294
11295
11296
11297
11298cat >>confdefs.h <<_ACEOF
11299#define TARGET_ALIAS "${target_alias}"
d7040cdb 11300_ACEOF
20e95c23 11301
20e95c23 11302
ce2cded5
L
11303cat >>confdefs.h <<_ACEOF
11304#define TARGET_CANONICAL "${target}"
11305_ACEOF
20e95c23 11306
d6d788bd 11307
ce2cded5
L
11308cat >>confdefs.h <<_ACEOF
11309#define TARGET_CPU "${target_cpu}"
11310_ACEOF
20e95c23 11311
ce2cded5
L
11312
11313cat >>confdefs.h <<_ACEOF
11314#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
11315_ACEOF
11316
11317
ce2cded5
L
11318cat >>confdefs.h <<_ACEOF
11319#define TARGET_OS "${target_os}"
11320_ACEOF
11321
0efedc4c 11322
d7040cdb
SE
11323for ac_prog in 'bison -y' byacc
11324do
11325 # Extract the first word of "$ac_prog", so it can be a program name with args.
11326set dummy $ac_prog; ac_word=$2
20e95c23
DJ
11327echo "$as_me:$LINENO: checking for $ac_word" >&5
11328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 11329if test "${ac_cv_prog_YACC+set}" = set; then
20e95c23
DJ
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331else
d7040cdb
SE
11332 if test -n "$YACC"; then
11333 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 11334else
d7040cdb
SE
11335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336for as_dir in $PATH
11337do
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
11340 for ac_exec_ext in '' $ac_executable_extensions; do
11341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11342 ac_cv_prog_YACC="$ac_prog"
11343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 break 2
20e95c23 11345 fi
d7040cdb
SE
11346done
11347done
20e95c23 11348
d7040cdb
SE
11349fi
11350fi
11351YACC=$ac_cv_prog_YACC
11352if test -n "$YACC"; then
11353 echo "$as_me:$LINENO: result: $YACC" >&5
11354echo "${ECHO_T}$YACC" >&6
11355else
11356 echo "$as_me:$LINENO: result: no" >&5
11357echo "${ECHO_T}no" >&6
11358fi
20e95c23 11359
d7040cdb
SE
11360 test -n "$YACC" && break
11361done
11362test -n "$YACC" || YACC="yacc"
20e95c23 11363
d7040cdb
SE
11364for ac_prog in flex lex
11365do
11366 # Extract the first word of "$ac_prog", so it can be a program name with args.
11367set dummy $ac_prog; ac_word=$2
11368echo "$as_me:$LINENO: checking for $ac_word" >&5
11369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11370if test "${ac_cv_prog_LEX+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 11372else
d7040cdb
SE
11373 if test -n "$LEX"; then
11374 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11375else
11376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377for as_dir in $PATH
11378do
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383 ac_cv_prog_LEX="$ac_prog"
11384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 break 2
11386 fi
11387done
11388done
20e95c23 11389
d7040cdb
SE
11390fi
11391fi
11392LEX=$ac_cv_prog_LEX
11393if test -n "$LEX"; then
11394 echo "$as_me:$LINENO: result: $LEX" >&5
11395echo "${ECHO_T}$LEX" >&6
20e95c23 11396else
d7040cdb
SE
11397 echo "$as_me:$LINENO: result: no" >&5
11398echo "${ECHO_T}no" >&6
13b2be9c
DJ
11399fi
11400
d7040cdb
SE
11401 test -n "$LEX" && break
11402done
11403test -n "$LEX" || LEX=":"
20e95c23 11404
d7040cdb
SE
11405if test -z "$LEXLIB"
11406then
11407 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11408echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11409if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
d5fbea21 11411else
d7040cdb
SE
11412 ac_check_lib_save_LIBS=$LIBS
11413LIBS="-lfl $LIBS"
11414cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
d5fbea21 11420
d7040cdb
SE
11421/* Override any gcc2 internal prototype to avoid an error. */
11422#ifdef __cplusplus
11423extern "C"
11424#endif
11425/* We use char because int might match the return type of a gcc2
11426 builtin and then its argument prototype would still apply. */
11427char yywrap ();
11428int
11429main ()
11430{
11431yywrap ();
11432 ;
11433 return 0;
11434}
11435_ACEOF
11436rm -f conftest.$ac_objext conftest$ac_exeext
11437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11438 (eval $ac_link) 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
11445 { ac_try='test -z "$ac_c_werror_flag"
11446 || test ! -s conftest.err'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; } &&
11452 { ac_try='test -s conftest$ac_exeext'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_cv_lib_fl_yywrap=yes
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
d5fbea21 11462
d7040cdb 11463ac_cv_lib_fl_yywrap=no
d6d788bd 11464fi
d7040cdb
SE
11465rm -f conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
11467LIBS=$ac_check_lib_save_LIBS
11468fi
11469echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11470echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11471if test $ac_cv_lib_fl_yywrap = yes; then
11472 LEXLIB="-lfl"
11473else
11474 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11475echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11476if test "${ac_cv_lib_l_yywrap+set}" = set; then
13b2be9c
DJ
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11478else
d7040cdb
SE
11479 ac_check_lib_save_LIBS=$LIBS
11480LIBS="-ll $LIBS"
11481cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
d7040cdb
SE
11487
11488/* Override any gcc2 internal prototype to avoid an error. */
11489#ifdef __cplusplus
11490extern "C"
13b2be9c 11491#endif
d7040cdb
SE
11492/* We use char because int might match the return type of a gcc2
11493 builtin and then its argument prototype would still apply. */
11494char yywrap ();
11495int
11496main ()
11497{
11498yywrap ();
11499 ;
11500 return 0;
11501}
11502_ACEOF
11503rm -f conftest.$ac_objext conftest$ac_exeext
11504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11505 (eval $ac_link) 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -z "$ac_c_werror_flag"
11513 || test ! -s conftest.err'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11516 ac_status=$?
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; } &&
11519 { ac_try='test -s conftest$ac_exeext'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11525 ac_cv_lib_l_yywrap=yes
11526else
11527 echo "$as_me: failed program was:" >&5
11528sed 's/^/| /' conftest.$ac_ext >&5
11529
11530ac_cv_lib_l_yywrap=no
11531fi
11532rm -f conftest.err conftest.$ac_objext \
11533 conftest$ac_exeext conftest.$ac_ext
11534LIBS=$ac_check_lib_save_LIBS
11535fi
11536echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11537echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11538if test $ac_cv_lib_l_yywrap = yes; then
11539 LEXLIB="-ll"
11540fi
11541
11542fi
11543
11544fi
11545
11546if test "x$LEX" != "x:"; then
11547 echo "$as_me:$LINENO: checking lex output file root" >&5
11548echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11549if test "${ac_cv_prog_lex_root+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552 # The minimal lex program is just a single line: %%. But some broken lexes
11553# (Solaris, I think it was) want two %% lines, so accommodate them.
11554cat >conftest.l <<_ACEOF
11555%%
11556%%
13b2be9c 11557_ACEOF
d7040cdb
SE
11558{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11559 (eval $LEX conftest.l) 2>&5
13b2be9c 11560 ac_status=$?
13b2be9c 11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11562 (exit $ac_status); }
11563if test -f lex.yy.c; then
11564 ac_cv_prog_lex_root=lex.yy
11565elif test -f lexyy.c; then
11566 ac_cv_prog_lex_root=lexyy
13b2be9c 11567else
d7040cdb
SE
11568 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11569echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11570 { (exit 1); exit 1; }; }
d6d788bd 11571fi
13b2be9c 11572fi
d7040cdb
SE
11573echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11574echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11575rm -f conftest.l
11576LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13b2be9c 11577
d7040cdb
SE
11578echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11579echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11580if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11582else
11583 # POSIX says lex can declare yytext either as a pointer or an array; the
11584# default is implementation-dependent. Figure out which it is, since
11585# not all implementations provide the %pointer and %array declarations.
11586ac_cv_prog_lex_yytext_pointer=no
11587echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11588ac_save_LIBS=$LIBS
11589LIBS="$LIBS $LEXLIB"
11590cat >conftest.$ac_ext <<_ACEOF
11591`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 11592_ACEOF
d7040cdb
SE
11593rm -f conftest.$ac_objext conftest$ac_exeext
11594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595 (eval $ac_link) 2>conftest.er1
13b2be9c
DJ
11596 ac_status=$?
11597 grep -v '^ *+' conftest.er1 >conftest.err
11598 rm -f conftest.er1
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11601 (exit $ac_status); } &&
11602 { ac_try='test -z "$ac_c_werror_flag"
11603 || test ! -s conftest.err'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; } &&
11609 { ac_try='test -s conftest$ac_exeext'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11615 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c
DJ
11616else
11617 echo "$as_me: failed program was:" >&5
11618sed 's/^/| /' conftest.$ac_ext >&5
6840198f 11619
13b2be9c 11620fi
d7040cdb
SE
11621rm -f conftest.err conftest.$ac_objext \
11622 conftest$ac_exeext conftest.$ac_ext
11623LIBS=$ac_save_LIBS
11624rm -f "${LEX_OUTPUT_ROOT}.c"
252b5132 11625
9b2b7d69 11626fi
d7040cdb
SE
11627echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11628echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11629if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 11630
d7040cdb
SE
11631cat >>confdefs.h <<\_ACEOF
11632#define YYTEXT_POINTER 1
11633_ACEOF
9b2b7d69 11634
d6d788bd 11635fi
d7040cdb 11636
c8615825 11637fi
d7040cdb
SE
11638if test "$LEX" = :; then
11639 LEX=${am_missing_run}flex
11640fi
11641
11642ALL_LINGUAS="fr tr es rw"
11643# If we haven't got the data from the intl directory,
11644# assume NLS is disabled.
11645USE_NLS=no
11646LIBINTL=
11647LIBINTL_DEP=
11648INCINTL=
11649XGETTEXT=
11650GMSGFMT=
11651POSUB=
11652
11653if test -f ../intl/config.intl; then
11654 . ../intl/config.intl
11655fi
11656echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11657echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11658if test x"$USE_NLS" != xyes; then
11659 echo "$as_me:$LINENO: result: no" >&5
11660echo "${ECHO_T}no" >&6
11661else
11662 echo "$as_me:$LINENO: result: yes" >&5
11663echo "${ECHO_T}yes" >&6
11664
11665cat >>confdefs.h <<\_ACEOF
11666#define ENABLE_NLS 1
13b2be9c 11667_ACEOF
d7040cdb
SE
11668
11669
11670 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11671echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11672 # Look for .po and .gmo files in the source directory.
11673 CATALOGS=
11674 XLINGUAS=
11675 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11676 # If there aren't any .gmo files the shell will give us the
11677 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11678 # weeded out.
11679 case "$cat" in *\**)
11680 continue;;
11681 esac
11682 # The quadruple backslash is collapsed to a double backslash
11683 # by the backticks, then collapsed again by the double quotes,
11684 # leaving us with one backslash in the sed expression (right
11685 # before the dot that mustn't act as a wildcard).
11686 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11687 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11688 # The user is allowed to set LINGUAS to a list of languages to
11689 # install catalogs for. If it's empty that means "all of them."
11690 if test "x$LINGUAS" = x; then
11691 CATALOGS="$CATALOGS $cat"
11692 XLINGUAS="$XLINGUAS $lang"
11693 else
11694 case "$LINGUAS" in *$lang*)
11695 CATALOGS="$CATALOGS $cat"
11696 XLINGUAS="$XLINGUAS $lang"
11697 ;;
11698 esac
11699 fi
11700 done
11701 LINGUAS="$XLINGUAS"
11702 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11703echo "${ECHO_T}$LINGUAS" >&6
11704
11705
11706 DATADIRNAME=share
11707
11708 INSTOBJEXT=.mo
11709
11710 GENCAT=gencat
11711
11712 CATOBJEXT=.gmo
11713
11714fi
11715
11716 MKINSTALLDIRS=
11717 if test -n "$ac_aux_dir"; then
11718 case "$ac_aux_dir" in
11719 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11720 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11721 esac
11722 fi
11723 if test -z "$MKINSTALLDIRS"; then
11724 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11725 fi
11726
11727
11728
11729 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11730echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11731 # Check whether --enable-nls or --disable-nls was given.
11732if test "${enable_nls+set}" = set; then
11733 enableval="$enable_nls"
11734 USE_NLS=$enableval
11735else
11736 USE_NLS=yes
11737fi;
11738 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11739echo "${ECHO_T}$USE_NLS" >&6
11740
11741
11742
11743
11744
11745
11746# Prepare PATH_SEPARATOR.
11747# The user is always right.
11748if test "${PATH_SEPARATOR+set}" != set; then
11749 echo "#! /bin/sh" >conf$$.sh
11750 echo "exit 0" >>conf$$.sh
11751 chmod +x conf$$.sh
11752 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11753 PATH_SEPARATOR=';'
13b2be9c 11754 else
d7040cdb 11755 PATH_SEPARATOR=:
13b2be9c 11756 fi
d7040cdb 11757 rm -f conf$$.sh
252b5132 11758fi
13b2be9c 11759
d7040cdb
SE
11760# Find out how to test for executable files. Don't use a zero-byte file,
11761# as systems may use methods other than mode bits to determine executability.
11762cat >conf$$.file <<_ASEOF
11763#! /bin/sh
11764exit 0
11765_ASEOF
11766chmod +x conf$$.file
11767if test -x conf$$.file >/dev/null 2>&1; then
11768 ac_executable_p="test -x"
11769else
11770 ac_executable_p="test -f"
13b2be9c 11771fi
d7040cdb 11772rm -f conf$$.file
13b2be9c 11773
d7040cdb
SE
11774# Extract the first word of "msgfmt", so it can be a program name with args.
11775set dummy msgfmt; ac_word=$2
11776echo "$as_me:$LINENO: checking for $ac_word" >&5
11777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11778if test "${ac_cv_path_MSGFMT+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11780else
d7040cdb
SE
11781 case "$MSGFMT" in
11782 [\\/]* | ?:[\\/]*)
11783 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11784 ;;
11785 *)
11786 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11787 for ac_dir in $PATH; do
11788 IFS="$ac_save_IFS"
11789 test -z "$ac_dir" && ac_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11792 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11793 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11794 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11795 break 2
11796 fi
11797 fi
11798 done
11799 done
11800 IFS="$ac_save_IFS"
11801 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11802 ;;
11803esac
252b5132 11804fi
d7040cdb
SE
11805MSGFMT="$ac_cv_path_MSGFMT"
11806if test "$MSGFMT" != ":"; then
11807 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11808echo "${ECHO_T}$MSGFMT" >&6
252b5132 11809else
d7040cdb
SE
11810 echo "$as_me:$LINENO: result: no" >&5
11811echo "${ECHO_T}no" >&6
252b5132 11812fi
252b5132 11813
d7040cdb
SE
11814 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11815set dummy gmsgfmt; ac_word=$2
11816echo "$as_me:$LINENO: checking for $ac_word" >&5
11817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11818if test "${ac_cv_path_GMSGFMT+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 11820else
d7040cdb
SE
11821 case $GMSGFMT in
11822 [\\/]* | ?:[\\/]*)
11823 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11824 ;;
11825 *)
11826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827for as_dir in $PATH
11828do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11833 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11836 fi
11837done
11838done
252b5132 11839
d7040cdb
SE
11840 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11841 ;;
11842esac
11843fi
11844GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 11845
d7040cdb
SE
11846if test -n "$GMSGFMT"; then
11847 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11848echo "${ECHO_T}$GMSGFMT" >&6
ac48eca1 11849else
d7040cdb
SE
11850 echo "$as_me:$LINENO: result: no" >&5
11851echo "${ECHO_T}no" >&6
6840198f 11852fi
6840198f 11853
13b2be9c 11854
20e95c23 11855
d7040cdb
SE
11856# Prepare PATH_SEPARATOR.
11857# The user is always right.
11858if test "${PATH_SEPARATOR+set}" != set; then
11859 echo "#! /bin/sh" >conf$$.sh
11860 echo "exit 0" >>conf$$.sh
11861 chmod +x conf$$.sh
11862 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11863 PATH_SEPARATOR=';'
11864 else
11865 PATH_SEPARATOR=:
11866 fi
11867 rm -f conf$$.sh
11868fi
20e95c23 11869
d7040cdb
SE
11870# Find out how to test for executable files. Don't use a zero-byte file,
11871# as systems may use methods other than mode bits to determine executability.
11872cat >conf$$.file <<_ASEOF
11873#! /bin/sh
11874exit 0
11875_ASEOF
11876chmod +x conf$$.file
11877if test -x conf$$.file >/dev/null 2>&1; then
11878 ac_executable_p="test -x"
13b2be9c 11879else
d7040cdb 11880 ac_executable_p="test -f"
13b2be9c 11881fi
d7040cdb 11882rm -f conf$$.file
20e95c23 11883
d7040cdb
SE
11884# Extract the first word of "xgettext", so it can be a program name with args.
11885set dummy xgettext; ac_word=$2
11886echo "$as_me:$LINENO: checking for $ac_word" >&5
11887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11888if test "${ac_cv_path_XGETTEXT+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11890else
d7040cdb
SE
11891 case "$XGETTEXT" in
11892 [\\/]* | ?:[\\/]*)
11893 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11894 ;;
11895 *)
11896 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11897 for ac_dir in $PATH; do
11898 IFS="$ac_save_IFS"
11899 test -z "$ac_dir" && ac_dir=.
11900 for ac_exec_ext in '' $ac_executable_extensions; do
11901 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11902 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11903 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11904 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11905 break 2
11906 fi
11907 fi
11908 done
11909 done
11910 IFS="$ac_save_IFS"
11911 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11912 ;;
11913esac
13b2be9c 11914fi
d7040cdb
SE
11915XGETTEXT="$ac_cv_path_XGETTEXT"
11916if test "$XGETTEXT" != ":"; then
11917 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11918echo "${ECHO_T}$XGETTEXT" >&6
11919else
11920 echo "$as_me:$LINENO: result: no" >&5
11921echo "${ECHO_T}no" >&6
13b2be9c 11922fi
13b2be9c 11923
d7040cdb 11924 rm -f messages.po
20e95c23 11925
13b2be9c 11926
d7040cdb
SE
11927# Prepare PATH_SEPARATOR.
11928# The user is always right.
11929if test "${PATH_SEPARATOR+set}" != set; then
11930 echo "#! /bin/sh" >conf$$.sh
11931 echo "exit 0" >>conf$$.sh
11932 chmod +x conf$$.sh
11933 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11934 PATH_SEPARATOR=';'
11935 else
11936 PATH_SEPARATOR=:
11937 fi
11938 rm -f conf$$.sh
252b5132 11939fi
20e95c23 11940
d7040cdb
SE
11941# Find out how to test for executable files. Don't use a zero-byte file,
11942# as systems may use methods other than mode bits to determine executability.
11943cat >conf$$.file <<_ASEOF
11944#! /bin/sh
11945exit 0
11946_ASEOF
11947chmod +x conf$$.file
11948if test -x conf$$.file >/dev/null 2>&1; then
11949 ac_executable_p="test -x"
252b5132 11950else
d7040cdb
SE
11951 ac_executable_p="test -f"
11952fi
11953rm -f conf$$.file
20e95c23 11954
d7040cdb
SE
11955# Extract the first word of "msgmerge", so it can be a program name with args.
11956set dummy msgmerge; ac_word=$2
11957echo "$as_me:$LINENO: checking for $ac_word" >&5
11958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11959if test "${ac_cv_path_MSGMERGE+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11961else
d7040cdb
SE
11962 case "$MSGMERGE" in
11963 [\\/]* | ?:[\\/]*)
11964 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11965 ;;
11966 *)
11967 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11968 for ac_dir in $PATH; do
11969 IFS="$ac_save_IFS"
11970 test -z "$ac_dir" && ac_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11973 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11974 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11975 break 2
11976 fi
11977 fi
11978 done
11979 done
11980 IFS="$ac_save_IFS"
11981 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11982 ;;
11983esac
20e95c23 11984fi
d7040cdb
SE
11985MSGMERGE="$ac_cv_path_MSGMERGE"
11986if test "$MSGMERGE" != ":"; then
11987 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11988echo "${ECHO_T}$MSGMERGE" >&6
11989else
11990 echo "$as_me:$LINENO: result: no" >&5
11991echo "${ECHO_T}no" >&6
20e95c23 11992fi
252b5132 11993
252b5132 11994
d7040cdb
SE
11995 if test "$GMSGFMT" != ":"; then
11996 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11997 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11998 : ;
11999 else
12000 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12001 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12002echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12003 GMSGFMT=":"
12004 fi
12005 fi
13b2be9c 12006
d7040cdb
SE
12007 if test "$XGETTEXT" != ":"; then
12008 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12009 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12010 : ;
12011 else
12012 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12013echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12014 XGETTEXT=":"
12015 fi
12016 rm -f messages.po
12017 fi
252b5132 12018
d7040cdb 12019 ac_config_commands="$ac_config_commands default-1"
252b5132 12020
13b2be9c 12021
252b5132 12022
d7040cdb
SE
12023echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12024echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12025 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12026if test "${enable_maintainer_mode+set}" = set; then
12027 enableval="$enable_maintainer_mode"
12028 USE_MAINTAINER_MODE=$enableval
c8615825 12029else
d7040cdb
SE
12030 USE_MAINTAINER_MODE=no
12031fi;
12032 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12033echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13b2be9c 12034
d7040cdb
SE
12035
12036if test $USE_MAINTAINER_MODE = yes; then
12037 MAINTAINER_MODE_TRUE=
12038 MAINTAINER_MODE_FALSE='#'
12039else
12040 MAINTAINER_MODE_TRUE='#'
12041 MAINTAINER_MODE_FALSE=
20e95c23 12042fi
9b2b7d69 12043
d7040cdb
SE
12044 MAINT=$MAINTAINER_MODE_TRUE
12045
12046
12047
12048
12049if false; then
12050 GENINSRC_NEVER_TRUE=
12051 GENINSRC_NEVER_FALSE='#'
12052else
12053 GENINSRC_NEVER_TRUE='#'
12054 GENINSRC_NEVER_FALSE=
20e95c23 12055fi
9b2b7d69
MM
12056
12057
12058
12059
12060
13b2be9c
DJ
12061
12062
12063
12064
12065
12066
12067
40fb9820
L
12068
12069for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h
d6d788bd 12070do
13b2be9c
DJ
12071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12072if eval "test \"\${$as_ac_Header+set}\" = set"; then
12073 echo "$as_me:$LINENO: checking for $ac_header" >&5
12074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12075if eval "test \"\${$as_ac_Header+set}\" = set"; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077fi
12078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12080else
12081 # Is the header compilable?
12082echo "$as_me:$LINENO: checking $ac_header usability" >&5
12083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12084cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12085/* confdefs.h. */
12086_ACEOF
12087cat confdefs.h >>conftest.$ac_ext
12088cat >>conftest.$ac_ext <<_ACEOF
12089/* end confdefs.h. */
12090$ac_includes_default
12091#include <$ac_header>
12092_ACEOF
12093rm -f conftest.$ac_objext
12094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12095 (eval $ac_compile) 2>conftest.er1
13b2be9c 12096 ac_status=$?
ab509236
L
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
13b2be9c
DJ
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
1ad12f97
NC
12102 { ac_try='test -z "$ac_c_werror_flag"
12103 || test ! -s conftest.err'
ab509236
L
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } &&
12109 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 ac_header_compiler=yes
12116else
12117 echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
12120ac_header_compiler=no
12121fi
ab509236 12122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
12123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12124echo "${ECHO_T}$ac_header_compiler" >&6
12125
12126# Is the header present?
12127echo "$as_me:$LINENO: checking $ac_header presence" >&5
12128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12129cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12130/* confdefs.h. */
12131_ACEOF
12132cat confdefs.h >>conftest.$ac_ext
12133cat >>conftest.$ac_ext <<_ACEOF
12134/* end confdefs.h. */
12135#include <$ac_header>
12136_ACEOF
12137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12139 ac_status=$?
12140 grep -v '^ *+' conftest.er1 >conftest.err
12141 rm -f conftest.er1
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } >/dev/null; then
12145 if test -s conftest.err; then
12146 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 12147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
12148 else
12149 ac_cpp_err=
12150 fi
9b2b7d69 12151else
13b2be9c
DJ
12152 ac_cpp_err=yes
12153fi
12154if test -z "$ac_cpp_err"; then
12155 ac_header_preproc=yes
12156else
12157 echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
12159
12160 ac_header_preproc=no
12161fi
12162rm -f conftest.err conftest.$ac_ext
12163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12164echo "${ECHO_T}$ac_header_preproc" >&6
12165
12166# So? What about this header?
ab509236
L
12167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12168 yes:no: )
13b2be9c
DJ
12169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
12171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12173 ac_header_preproc=yes
13b2be9c 12174 ;;
ab509236 12175 no:yes:* )
13b2be9c
DJ
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
12184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
12186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
12188 (
12189 cat <<\_ASBOX
ab509236
L
12190## ------------------------------------------ ##
12191## Report this to the AC_PACKAGE_NAME lists. ##
12192## ------------------------------------------ ##
13b2be9c
DJ
12193_ASBOX
12194 ) |
12195 sed "s/^/$as_me: WARNING: /" >&2
12196 ;;
12197esac
12198echo "$as_me:$LINENO: checking for $ac_header" >&5
12199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12200if eval "test \"\${$as_ac_Header+set}\" = set"; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12202else
ab509236 12203 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 12204fi
13b2be9c
DJ
12205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12207
252b5132 12208fi
13b2be9c
DJ
12209if test `eval echo '${'$as_ac_Header'}'` = yes; then
12210 cat >>confdefs.h <<_ACEOF
12211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12212_ACEOF
12213
252b5132 12214fi
13b2be9c 12215
252b5132
RH
12216done
12217
d6d788bd 12218
252b5132
RH
12219# Put this here so that autoconf's "cross-compiling" message doesn't confuse
12220# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
12221echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12222echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
12223if test "${host}" = "${target}"; then
12224 cross_gas=no
12225else
12226 cross_gas=yes
13b2be9c
DJ
12227
12228cat >>confdefs.h <<\_ACEOF
252b5132 12229#define CROSS_COMPILE 1
13b2be9c 12230_ACEOF
252b5132
RH
12231
12232fi
13b2be9c
DJ
12233echo "$as_me:$LINENO: result: $cross_gas" >&5
12234echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
12235
12236# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12237# for constant arguments. Useless!
13b2be9c
DJ
12238echo "$as_me:$LINENO: checking for working alloca.h" >&5
12239echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12240if test "${ac_cv_working_alloca_h+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242else
12243 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12244/* confdefs.h. */
12245_ACEOF
12246cat confdefs.h >>conftest.$ac_ext
12247cat >>conftest.$ac_ext <<_ACEOF
12248/* end confdefs.h. */
252b5132 12249#include <alloca.h>
13b2be9c
DJ
12250int
12251main ()
12252{
12253char *p = (char *) alloca (2 * sizeof (int));
12254 ;
12255 return 0;
12256}
12257_ACEOF
12258rm -f conftest.$ac_objext conftest$ac_exeext
12259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12260 (eval $ac_link) 2>conftest.er1
13b2be9c 12261 ac_status=$?
ab509236
L
12262 grep -v '^ *+' conftest.er1 >conftest.err
12263 rm -f conftest.er1
12264 cat conftest.err >&5
13b2be9c
DJ
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } &&
1ad12f97
NC
12267 { ac_try='test -z "$ac_c_werror_flag"
12268 || test ! -s conftest.err'
ab509236
L
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 ac_cv_working_alloca_h=yes
12281else
12282 echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285ac_cv_working_alloca_h=no
12286fi
ab509236
L
12287rm -f conftest.err conftest.$ac_objext \
12288 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12289fi
12290echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12291echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12292if test $ac_cv_working_alloca_h = yes; then
12293
12294cat >>confdefs.h <<\_ACEOF
252b5132 12295#define HAVE_ALLOCA_H 1
13b2be9c 12296_ACEOF
252b5132
RH
12297
12298fi
12299
13b2be9c
DJ
12300echo "$as_me:$LINENO: checking for alloca" >&5
12301echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12302if test "${ac_cv_func_alloca_works+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12304else
13b2be9c 12305 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12306/* confdefs.h. */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h. */
252b5132
RH
12311#ifdef __GNUC__
12312# define alloca __builtin_alloca
12313#else
12314# ifdef _MSC_VER
12315# include <malloc.h>
12316# define alloca _alloca
12317# else
12318# if HAVE_ALLOCA_H
12319# include <alloca.h>
12320# else
12321# ifdef _AIX
12322 #pragma alloca
12323# else
12324# ifndef alloca /* predefined by HP cc +Olibcalls */
12325char *alloca ();
12326# endif
12327# endif
12328# endif
12329# endif
12330#endif
12331
13b2be9c
DJ
12332int
12333main ()
12334{
12335char *p = (char *) alloca (1);
12336 ;
12337 return 0;
12338}
12339_ACEOF
12340rm -f conftest.$ac_objext conftest$ac_exeext
12341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12342 (eval $ac_link) 2>conftest.er1
13b2be9c 12343 ac_status=$?
ab509236
L
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
13b2be9c
DJ
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
1ad12f97
NC
12349 { ac_try='test -z "$ac_c_werror_flag"
12350 || test ! -s conftest.err'
ab509236
L
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
252b5132
RH
12362 ac_cv_func_alloca_works=yes
12363else
13b2be9c
DJ
12364 echo "$as_me: failed program was:" >&5
12365sed 's/^/| /' conftest.$ac_ext >&5
12366
12367ac_cv_func_alloca_works=no
252b5132 12368fi
ab509236
L
12369rm -f conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
252b5132 12371fi
13b2be9c
DJ
12372echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12373echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 12374
252b5132 12375if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 12376
13b2be9c
DJ
12377cat >>confdefs.h <<\_ACEOF
12378#define HAVE_ALLOCA 1
12379_ACEOF
9b2b7d69 12380
13b2be9c 12381else
c8615825 12382 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
12383# that cause trouble. Some versions do not even contain alloca or
12384# contain a buggy version. If you still want to use their alloca,
12385# use ar to extract alloca.o from them instead of compiling alloca.c.
12386
12387ALLOCA=alloca.$ac_objext
12388
12389cat >>confdefs.h <<\_ACEOF
252b5132 12390#define C_ALLOCA 1
13b2be9c 12391_ACEOF
252b5132 12392
d6d788bd 12393
13b2be9c
DJ
12394echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12395echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12396if test "${ac_cv_os_cray+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12398else
13b2be9c 12399 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12400/* confdefs.h. */
12401_ACEOF
12402cat confdefs.h >>conftest.$ac_ext
12403cat >>conftest.$ac_ext <<_ACEOF
12404/* end confdefs.h. */
252b5132
RH
12405#if defined(CRAY) && ! defined(CRAY2)
12406webecray
12407#else
12408wenotbecray
12409#endif
12410
13b2be9c 12411_ACEOF
252b5132 12412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 12413 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
12414 ac_cv_os_cray=yes
12415else
252b5132
RH
12416 ac_cv_os_cray=no
12417fi
12418rm -f conftest*
12419
12420fi
13b2be9c
DJ
12421echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12422echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 12423if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
12424 for ac_func in _getb67 GETB67 getb67; do
12425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12426echo "$as_me:$LINENO: checking for $ac_func" >&5
12427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12428if eval "test \"\${$as_ac_var+set}\" = set"; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430else
12431 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12432/* confdefs.h. */
12433_ACEOF
12434cat confdefs.h >>conftest.$ac_ext
12435cat >>conftest.$ac_ext <<_ACEOF
12436/* end confdefs.h. */
ab509236
L
12437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12439#define $ac_func innocuous_$ac_func
12440
252b5132 12441/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12442 which can conflict with char $ac_func (); below.
12443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12444 <limits.h> exists even on freestanding compilers. */
ab509236 12445
13b2be9c
DJ
12446#ifdef __STDC__
12447# include <limits.h>
12448#else
12449# include <assert.h>
12450#endif
ab509236
L
12451
12452#undef $ac_func
12453
252b5132 12454/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12455#ifdef __cplusplus
12456extern "C"
12457{
12458#endif
252b5132 12459/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12460 builtin and then its argument prototype would still apply. */
12461char $ac_func ();
252b5132
RH
12462/* The GNU C library defines this for functions which it implements
12463 to always fail with ENOSYS. Some functions are actually named
12464 something starting with __ and the normal name is an alias. */
12465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12466choke me
12467#else
13b2be9c
DJ
12468char (*f) () = $ac_func;
12469#endif
12470#ifdef __cplusplus
12471}
252b5132
RH
12472#endif
12473
13b2be9c
DJ
12474int
12475main ()
12476{
12477return f != $ac_func;
12478 ;
12479 return 0;
12480}
12481_ACEOF
12482rm -f conftest.$ac_objext conftest$ac_exeext
12483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12484 (eval $ac_link) 2>conftest.er1
13b2be9c 12485 ac_status=$?
ab509236
L
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
13b2be9c
DJ
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
1ad12f97
NC
12491 { ac_try='test -z "$ac_c_werror_flag"
12492 || test ! -s conftest.err'
ab509236
L
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 eval "$as_ac_var=yes"
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509eval "$as_ac_var=no"
12510fi
ab509236
L
12511rm -f conftest.err conftest.$ac_objext \
12512 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12513fi
12514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12515echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12516if test `eval echo '${'$as_ac_var'}'` = yes; then
12517
12518cat >>confdefs.h <<_ACEOF
252b5132 12519#define CRAY_STACKSEG_END $ac_func
13b2be9c 12520_ACEOF
252b5132 12521
13b2be9c 12522 break
252b5132
RH
12523fi
12524
13b2be9c 12525 done
252b5132
RH
12526fi
12527
13b2be9c
DJ
12528echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12529echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12530if test "${ac_cv_c_stack_direction+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12532else
12533 if test "$cross_compiling" = yes; then
12534 ac_cv_c_stack_direction=0
12535else
13b2be9c 12536 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12537/* confdefs.h. */
12538_ACEOF
12539cat confdefs.h >>conftest.$ac_ext
12540cat >>conftest.$ac_ext <<_ACEOF
12541/* end confdefs.h. */
12542int
252b5132
RH
12543find_stack_direction ()
12544{
12545 static char *addr = 0;
12546 auto char dummy;
12547 if (addr == 0)
12548 {
12549 addr = &dummy;
12550 return find_stack_direction ();
12551 }
12552 else
12553 return (&dummy > addr) ? 1 : -1;
12554}
13b2be9c
DJ
12555
12556int
252b5132
RH
12557main ()
12558{
13b2be9c 12559 exit (find_stack_direction () < 0);
252b5132 12560}
13b2be9c
DJ
12561_ACEOF
12562rm -f conftest$ac_exeext
12563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12564 (eval $ac_link) 2>&5
12565 ac_status=$?
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
252b5132
RH
12573 ac_cv_c_stack_direction=1
12574else
13b2be9c
DJ
12575 echo "$as_me: program exited with status $ac_status" >&5
12576echo "$as_me: failed program was:" >&5
12577sed 's/^/| /' conftest.$ac_ext >&5
12578
12579( exit $ac_status )
12580ac_cv_c_stack_direction=-1
252b5132 12581fi
ab509236 12582rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 12583fi
252b5132 12584fi
13b2be9c
DJ
12585echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12586echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 12587
13b2be9c 12588cat >>confdefs.h <<_ACEOF
252b5132 12589#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
12590_ACEOF
12591
252b5132
RH
12592
12593fi
12594
13b2be9c
DJ
12595echo "$as_me:$LINENO: checking for inline" >&5
12596echo $ECHO_N "checking for inline... $ECHO_C" >&6
12597if test "${ac_cv_c_inline+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12599else
12600 ac_cv_c_inline=no
12601for ac_kw in inline __inline__ __inline; do
13b2be9c 12602 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12603/* confdefs.h. */
12604_ACEOF
12605cat confdefs.h >>conftest.$ac_ext
12606cat >>conftest.$ac_ext <<_ACEOF
12607/* end confdefs.h. */
12608#ifndef __cplusplus
12609typedef int foo_t;
12610static $ac_kw foo_t static_foo () {return 0; }
12611$ac_kw foo_t foo () {return 0; }
12612#endif
252b5132 12613
13b2be9c
DJ
12614_ACEOF
12615rm -f conftest.$ac_objext
12616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12617 (eval $ac_compile) 2>conftest.er1
13b2be9c 12618 ac_status=$?
ab509236
L
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
13b2be9c
DJ
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
1ad12f97
NC
12624 { ac_try='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
ab509236
L
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
252b5132
RH
12637 ac_cv_c_inline=$ac_kw; break
12638else
13b2be9c
DJ
12639 echo "$as_me: failed program was:" >&5
12640sed 's/^/| /' conftest.$ac_ext >&5
12641
252b5132 12642fi
ab509236 12643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12644done
12645
12646fi
13b2be9c
DJ
12647echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12648echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
12649
12650
13b2be9c 12651case $ac_cv_c_inline in
252b5132 12652 inline | yes) ;;
ab509236
L
12653 *)
12654 case $ac_cv_c_inline in
12655 no) ac_val=;;
12656 *) ac_val=$ac_cv_c_inline;;
12657 esac
12658 cat >>confdefs.h <<_ACEOF
12659#ifndef __cplusplus
12660#define inline $ac_val
12661#endif
13b2be9c 12662_ACEOF
ab509236 12663 ;;
252b5132
RH
12664esac
12665
6840198f 12666
d6d788bd 12667# VMS doesn't have unlink.
13b2be9c
DJ
12668
12669
252b5132
RH
12670for ac_func in unlink remove
12671do
13b2be9c
DJ
12672as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12673echo "$as_me:$LINENO: checking for $ac_func" >&5
12674echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12675if eval "test \"\${$as_ac_var+set}\" = set"; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12677else
12678 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12679/* confdefs.h. */
12680_ACEOF
12681cat confdefs.h >>conftest.$ac_ext
12682cat >>conftest.$ac_ext <<_ACEOF
12683/* end confdefs.h. */
ab509236
L
12684/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12686#define $ac_func innocuous_$ac_func
12687
252b5132 12688/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12689 which can conflict with char $ac_func (); below.
12690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12691 <limits.h> exists even on freestanding compilers. */
ab509236 12692
13b2be9c
DJ
12693#ifdef __STDC__
12694# include <limits.h>
12695#else
12696# include <assert.h>
12697#endif
ab509236
L
12698
12699#undef $ac_func
12700
252b5132 12701/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12702#ifdef __cplusplus
12703extern "C"
12704{
12705#endif
252b5132 12706/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12707 builtin and then its argument prototype would still apply. */
12708char $ac_func ();
252b5132
RH
12709/* The GNU C library defines this for functions which it implements
12710 to always fail with ENOSYS. Some functions are actually named
12711 something starting with __ and the normal name is an alias. */
12712#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12713choke me
12714#else
13b2be9c
DJ
12715char (*f) () = $ac_func;
12716#endif
12717#ifdef __cplusplus
12718}
252b5132
RH
12719#endif
12720
13b2be9c
DJ
12721int
12722main ()
12723{
12724return f != $ac_func;
12725 ;
12726 return 0;
12727}
12728_ACEOF
12729rm -f conftest.$ac_objext conftest$ac_exeext
12730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12731 (eval $ac_link) 2>conftest.er1
13b2be9c 12732 ac_status=$?
ab509236
L
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
13b2be9c
DJ
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
1ad12f97
NC
12738 { ac_try='test -z "$ac_c_werror_flag"
12739 || test ! -s conftest.err'
ab509236
L
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 eval "$as_ac_var=yes"
12752else
12753 echo "$as_me: failed program was:" >&5
12754sed 's/^/| /' conftest.$ac_ext >&5
12755
12756eval "$as_ac_var=no"
12757fi
ab509236
L
12758rm -f conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12760fi
12761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12763if test `eval echo '${'$as_ac_var'}'` = yes; then
12764 cat >>confdefs.h <<_ACEOF
12765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12766_ACEOF
252b5132 12767 break
252b5132
RH
12768fi
12769done
12770
6840198f 12771
d6d788bd 12772# Some systems don't have sbrk().
13b2be9c 12773
252b5132
RH
12774for ac_func in sbrk
12775do
13b2be9c
DJ
12776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12777echo "$as_me:$LINENO: checking for $ac_func" >&5
12778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12779if eval "test \"\${$as_ac_var+set}\" = set"; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781else
12782 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12783/* confdefs.h. */
12784_ACEOF
12785cat confdefs.h >>conftest.$ac_ext
12786cat >>conftest.$ac_ext <<_ACEOF
12787/* end confdefs.h. */
ab509236
L
12788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12790#define $ac_func innocuous_$ac_func
12791
252b5132 12792/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12793 which can conflict with char $ac_func (); below.
12794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12795 <limits.h> exists even on freestanding compilers. */
ab509236 12796
13b2be9c
DJ
12797#ifdef __STDC__
12798# include <limits.h>
12799#else
12800# include <assert.h>
12801#endif
ab509236
L
12802
12803#undef $ac_func
12804
252b5132 12805/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12806#ifdef __cplusplus
12807extern "C"
12808{
12809#endif
252b5132 12810/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12811 builtin and then its argument prototype would still apply. */
12812char $ac_func ();
252b5132
RH
12813/* The GNU C library defines this for functions which it implements
12814 to always fail with ENOSYS. Some functions are actually named
12815 something starting with __ and the normal name is an alias. */
12816#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12817choke me
12818#else
13b2be9c
DJ
12819char (*f) () = $ac_func;
12820#endif
12821#ifdef __cplusplus
12822}
252b5132
RH
12823#endif
12824
13b2be9c
DJ
12825int
12826main ()
12827{
12828return f != $ac_func;
12829 ;
12830 return 0;
12831}
12832_ACEOF
12833rm -f conftest.$ac_objext conftest$ac_exeext
12834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12835 (eval $ac_link) 2>conftest.er1
13b2be9c 12836 ac_status=$?
ab509236
L
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
13b2be9c
DJ
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
1ad12f97
NC
12842 { ac_try='test -z "$ac_c_werror_flag"
12843 || test ! -s conftest.err'
ab509236
L
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 eval "$as_ac_var=yes"
12856else
12857 echo "$as_me: failed program was:" >&5
12858sed 's/^/| /' conftest.$ac_ext >&5
12859
12860eval "$as_ac_var=no"
12861fi
ab509236
L
12862rm -f conftest.err conftest.$ac_objext \
12863 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12864fi
12865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12866echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12867if test `eval echo '${'$as_ac_var'}'` = yes; then
12868 cat >>confdefs.h <<_ACEOF
12869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12870_ACEOF
252b5132 12871
252b5132
RH
12872fi
12873done
12874
d6d788bd 12875
39bec121
TW
12876# do we need the math library?
12877case "${need_libm}" in
13b2be9c 12878yes)
39bec121 12879 LIBM=
f9c19112 12880case $host in
d70c5fc7 12881*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
d7040cdb 12882 # These system don't have libm, or don't need it
39bec121
TW
12883 ;;
12884*-ncr-sysv4.3*)
13b2be9c
DJ
12885 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12886echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
12887if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 12889else
13b2be9c 12890 ac_check_lib_save_LIBS=$LIBS
39bec121 12891LIBS="-lmw $LIBS"
13b2be9c 12892cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12893/* confdefs.h. */
12894_ACEOF
12895cat confdefs.h >>conftest.$ac_ext
12896cat >>conftest.$ac_ext <<_ACEOF
12897/* end confdefs.h. */
12898
39bec121 12899/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12900#ifdef __cplusplus
12901extern "C"
12902#endif
39bec121 12903/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12904 builtin and then its argument prototype would still apply. */
12905char _mwvalidcheckl ();
12906int
12907main ()
12908{
12909_mwvalidcheckl ();
12910 ;
12911 return 0;
12912}
12913_ACEOF
12914rm -f conftest.$ac_objext conftest$ac_exeext
12915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12916 (eval $ac_link) 2>conftest.er1
13b2be9c 12917 ac_status=$?
ab509236
L
12918 grep -v '^ *+' conftest.er1 >conftest.err
12919 rm -f conftest.er1
12920 cat conftest.err >&5
13b2be9c
DJ
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
1ad12f97
NC
12923 { ac_try='test -z "$ac_c_werror_flag"
12924 || test ! -s conftest.err'
ab509236
L
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; } &&
12930 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_lib_mw__mwvalidcheckl=yes
12937else
12938 echo "$as_me: failed program was:" >&5
12939sed 's/^/| /' conftest.$ac_ext >&5
12940
12941ac_cv_lib_mw__mwvalidcheckl=no
12942fi
ab509236
L
12943rm -f conftest.err conftest.$ac_objext \
12944 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12945LIBS=$ac_check_lib_save_LIBS
12946fi
12947echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12948echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
12949if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 12950 LIBM="-lmw"
39bec121
TW
12951fi
12952
d7040cdb
SE
12953 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12954echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12955if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 12956 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 12957else
13b2be9c 12958 ac_check_lib_save_LIBS=$LIBS
39bec121 12959LIBS="-lm $LIBS"
13b2be9c 12960cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12961/* confdefs.h. */
12962_ACEOF
12963cat confdefs.h >>conftest.$ac_ext
12964cat >>conftest.$ac_ext <<_ACEOF
12965/* end confdefs.h. */
39bec121 12966
d7040cdb
SE
12967/* Override any gcc2 internal prototype to avoid an error. */
12968#ifdef __cplusplus
12969extern "C"
12970#endif
12971/* We use char because int might match the return type of a gcc2
12972 builtin and then its argument prototype would still apply. */
12973char cos ();
13b2be9c
DJ
12974int
12975main ()
12976{
d7040cdb 12977cos ();
13b2be9c
DJ
12978 ;
12979 return 0;
12980}
12981_ACEOF
12982rm -f conftest.$ac_objext conftest$ac_exeext
12983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12984 (eval $ac_link) 2>conftest.er1
13b2be9c 12985 ac_status=$?
ab509236
L
12986 grep -v '^ *+' conftest.er1 >conftest.err
12987 rm -f conftest.er1
12988 cat conftest.err >&5
13b2be9c
DJ
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
1ad12f97
NC
12991 { ac_try='test -z "$ac_c_werror_flag"
12992 || test ! -s conftest.err'
ab509236
L
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
d7040cdb 13004 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13005else
13006 echo "$as_me: failed program was:" >&5
13007sed 's/^/| /' conftest.$ac_ext >&5
13008
d7040cdb 13009ac_cv_lib_m_cos=no
13b2be9c 13010fi
ab509236
L
13011rm -f conftest.err conftest.$ac_objext \
13012 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13013LIBS=$ac_check_lib_save_LIBS
13014fi
d7040cdb
SE
13015echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13016echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13017if test $ac_cv_lib_m_cos = yes; then
39bec121 13018 LIBM="$LIBM -lm"
39bec121
TW
13019fi
13020
13021 ;;
13022*)
d7040cdb
SE
13023 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13024echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13025if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 13026 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 13027else
13b2be9c 13028 ac_check_lib_save_LIBS=$LIBS
39bec121 13029LIBS="-lm $LIBS"
13b2be9c 13030cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13031/* confdefs.h. */
13032_ACEOF
13033cat confdefs.h >>conftest.$ac_ext
13034cat >>conftest.$ac_ext <<_ACEOF
13035/* end confdefs.h. */
39bec121 13036
d7040cdb
SE
13037/* Override any gcc2 internal prototype to avoid an error. */
13038#ifdef __cplusplus
13039extern "C"
13040#endif
13041/* We use char because int might match the return type of a gcc2
13042 builtin and then its argument prototype would still apply. */
13043char cos ();
13b2be9c
DJ
13044int
13045main ()
13046{
d7040cdb 13047cos ();
13b2be9c
DJ
13048 ;
13049 return 0;
13050}
13051_ACEOF
13052rm -f conftest.$ac_objext conftest$ac_exeext
13053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13054 (eval $ac_link) 2>conftest.er1
13b2be9c 13055 ac_status=$?
ab509236
L
13056 grep -v '^ *+' conftest.er1 >conftest.err
13057 rm -f conftest.er1
13058 cat conftest.err >&5
13b2be9c
DJ
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
1ad12f97
NC
13061 { ac_try='test -z "$ac_c_werror_flag"
13062 || test ! -s conftest.err'
ab509236
L
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; } &&
13068 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13071 ac_status=$?
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }; then
d7040cdb 13074 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13075else
13076 echo "$as_me: failed program was:" >&5
13077sed 's/^/| /' conftest.$ac_ext >&5
13078
d7040cdb 13079ac_cv_lib_m_cos=no
13b2be9c 13080fi
ab509236
L
13081rm -f conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13083LIBS=$ac_check_lib_save_LIBS
13084fi
d7040cdb
SE
13085echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13086echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13087if test $ac_cv_lib_m_cos = yes; then
39bec121 13088 LIBM="-lm"
39bec121
TW
13089fi
13090
13091 ;;
13092esac
13093
13b2be9c 13094
d7040cdb 13095
39bec121
TW
13096 ;;
13097esac
13098
252b5132
RH
13099# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13100# enough, but on some of those systems, the assert macro relies on requoting
13101# working properly!
13b2be9c
DJ
13102echo "$as_me:$LINENO: checking for working assert macro" >&5
13103echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13104if test "${gas_cv_assert_ok+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13106else
13107 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
252b5132
RH
13113#include <assert.h>
13114#include <stdio.h>
13b2be9c
DJ
13115int
13116main ()
13117{
252b5132
RH
13118
13119/* check for requoting problems */
13120static int a, b, c, d;
13121static char *s;
13122assert (!strcmp(s, "foo bar baz quux"));
13123/* check for newline handling */
13124assert (a == b
13125 || c == d);
13126
13b2be9c
DJ
13127 ;
13128 return 0;
13129}
13130_ACEOF
13131rm -f conftest.$ac_objext conftest$ac_exeext
13132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13133 (eval $ac_link) 2>conftest.er1
13b2be9c 13134 ac_status=$?
ab509236
L
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13b2be9c
DJ
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
1ad12f97
NC
13140 { ac_try='test -z "$ac_c_werror_flag"
13141 || test ! -s conftest.err'
ab509236
L
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
252b5132
RH
13153 gas_cv_assert_ok=yes
13154else
13b2be9c
DJ
13155 echo "$as_me: failed program was:" >&5
13156sed 's/^/| /' conftest.$ac_ext >&5
13157
13158gas_cv_assert_ok=no
252b5132 13159fi
ab509236
L
13160rm -f conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext conftest.$ac_ext
252b5132 13162fi
13b2be9c
DJ
13163echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13164echo "${ECHO_T}$gas_cv_assert_ok" >&6
13165test $gas_cv_assert_ok = yes ||
13166cat >>confdefs.h <<\_ACEOF
252b5132 13167#define BROKEN_ASSERT 1
13b2be9c 13168_ACEOF
252b5132 13169
d6d788bd
L
13170
13171
252b5132
RH
13172# On some systems, the system header files may not declare malloc, realloc,
13173# and free. There are places where gas needs these functions to have been
13174# declared -- such as when taking their addresses.
13175gas_test_headers="
13176#ifdef HAVE_MEMORY_H
13177#include <memory.h>
13178#endif
13179#ifdef HAVE_STRING_H
13180#include <string.h>
13181#else
13182#ifdef HAVE_STRINGS_H
13183#include <strings.h>
13184#endif
13185#endif
13186#ifdef HAVE_STDLIB_H
13187#include <stdlib.h>
13188#endif
13189#ifdef HAVE_UNISTD_H
13190#include <unistd.h>
13191#endif
13192"
13193
e8a38df5
AL
13194# Does errno.h declare errno, or do we have to add a separate declaration
13195# for it?
13196
13197echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13198echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13199if test "${gas_cv_decl_needed_errno+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201else
13202 cat >conftest.$ac_ext <<_ACEOF
13203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
13208
13209#ifdef HAVE_ERRNO_H
13210#include <errno.h>
13211#endif
13212
13213int
13214main ()
13215{
13216
13217typedef int f;
13218f x;
13219x = (f) errno;
13220
13221 ;
13222 return 0;
13223}
13224_ACEOF
13225rm -f conftest.$ac_objext conftest$ac_exeext
13226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13227 (eval $ac_link) 2>conftest.er1
13228 ac_status=$?
13229 grep -v '^ *+' conftest.er1 >conftest.err
13230 rm -f conftest.er1
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -z "$ac_c_werror_flag"
13235 || test ! -s conftest.err'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest$ac_exeext'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; }; then
13247 gas_cv_decl_needed_errno=no
13248else
13249 echo "$as_me: failed program was:" >&5
13250sed 's/^/| /' conftest.$ac_ext >&5
13251
13252gas_cv_decl_needed_errno=yes
13253fi
13254rm -f conftest.err conftest.$ac_objext \
13255 conftest$ac_exeext conftest.$ac_ext
13256fi
13257echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13258echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13259if test $gas_cv_decl_needed_errno = yes; then
13260
13261cat >>confdefs.h <<\_ACEOF
13262#define NEED_DECLARATION_ERRNO 1
13263_ACEOF
13264
13265fi
13266
13267
56f36663
NC
13268echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13269echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13270if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272else
13273 cat >conftest.$ac_ext <<_ACEOF
13274/* confdefs.h. */
13275_ACEOF
13276cat confdefs.h >>conftest.$ac_ext
13277cat >>conftest.$ac_ext <<_ACEOF
13278/* end confdefs.h. */
13279#include <unistd.h>
13280int
13281main ()
13282{
13283extern int getopt (int, char *const*, const char *);
13284 ;
13285 return 0;
13286}
13287_ACEOF
13288rm -f conftest.$ac_objext
13289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290 (eval $ac_compile) 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } &&
13297 { ac_try='test -z "$ac_c_werror_flag"
13298 || test ! -s conftest.err'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest.$ac_objext'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13310 gas_cv_decl_getopt_unistd_h=yes
13311else
13312 echo "$as_me: failed program was:" >&5
13313sed 's/^/| /' conftest.$ac_ext >&5
13314
13315gas_cv_decl_getopt_unistd_h=no
13316fi
13317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13318fi
13319
13320echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13321echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13322if test $gas_cv_decl_getopt_unistd_h = yes; then
13323
13324cat >>confdefs.h <<\_ACEOF
13325#define HAVE_DECL_GETOPT 1
13326_ACEOF
13327
13328fi
13329
e8a38df5
AL
13330
13331echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13332echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13333if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335else
13336 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13337/* confdefs.h. */
13338_ACEOF
13339cat confdefs.h >>conftest.$ac_ext
13340cat >>conftest.$ac_ext <<_ACEOF
13341/* end confdefs.h. */
252b5132 13342$gas_test_headers
13b2be9c
DJ
13343int
13344main ()
13345{
252b5132 13346
e8a38df5 13347typedef char **f;
252b5132 13348f x;
e8a38df5 13349x = (f) environ;
252b5132 13350
13b2be9c
DJ
13351 ;
13352 return 0;
13353}
13354_ACEOF
13355rm -f conftest.$ac_objext conftest$ac_exeext
13356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13357 (eval $ac_link) 2>conftest.er1
13b2be9c 13358 ac_status=$?
ab509236
L
13359 grep -v '^ *+' conftest.er1 >conftest.err
13360 rm -f conftest.er1
13361 cat conftest.err >&5
13b2be9c
DJ
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } &&
1ad12f97
NC
13364 { ac_try='test -z "$ac_c_werror_flag"
13365 || test ! -s conftest.err'
ab509236
L
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; } &&
13371 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
e8a38df5 13377 gas_cv_decl_needed_environ=no
252b5132 13378else
13b2be9c
DJ
13379 echo "$as_me: failed program was:" >&5
13380sed 's/^/| /' conftest.$ac_ext >&5
13381
e8a38df5 13382gas_cv_decl_needed_environ=yes
252b5132 13383fi
ab509236
L
13384rm -f conftest.err conftest.$ac_objext \
13385 conftest$ac_exeext conftest.$ac_ext
252b5132 13386fi
e8a38df5
AL
13387echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13388echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13389if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
13390
13391cat >>confdefs.h <<\_ACEOF
e8a38df5 13392#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
13393_ACEOF
13394
13395fi
13396
13397
e8a38df5
AL
13398echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13399echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13400if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402else
13403 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13404/* confdefs.h. */
13405_ACEOF
13406cat confdefs.h >>conftest.$ac_ext
13407cat >>conftest.$ac_ext <<_ACEOF
13408/* end confdefs.h. */
13409$gas_test_headers
13410int
13411main ()
13412{
13413
e8a38df5 13414typedef int (*f)(int);
13b2be9c 13415f x;
e8a38df5 13416x = (f) ffs;
13b2be9c
DJ
13417
13418 ;
13419 return 0;
13420}
13421_ACEOF
13422rm -f conftest.$ac_objext conftest$ac_exeext
13423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13424 (eval $ac_link) 2>conftest.er1
13b2be9c 13425 ac_status=$?
ab509236
L
13426 grep -v '^ *+' conftest.er1 >conftest.err
13427 rm -f conftest.er1
13428 cat conftest.err >&5
13b2be9c
DJ
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
1ad12f97
NC
13431 { ac_try='test -z "$ac_c_werror_flag"
13432 || test ! -s conftest.err'
ab509236
L
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
e8a38df5 13444 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
13445else
13446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
e8a38df5 13449gas_cv_decl_needed_ffs=yes
13b2be9c 13450fi
ab509236
L
13451rm -f conftest.err conftest.$ac_objext \
13452 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13453fi
e8a38df5
AL
13454echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13455echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13456if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
13457
13458cat >>confdefs.h <<\_ACEOF
e8a38df5 13459#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
13460_ACEOF
13461
13462fi
13463
13464
13465echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13466echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13467if test "${gas_cv_decl_needed_free+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13469else
13470 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13471/* confdefs.h. */
13472_ACEOF
13473cat confdefs.h >>conftest.$ac_ext
13474cat >>conftest.$ac_ext <<_ACEOF
13475/* end confdefs.h. */
13476$gas_test_headers
13477int
13478main ()
13479{
13480
13481typedef void (*f)();
13482f x;
13483x = (f) free;
13484
13485 ;
13486 return 0;
13487}
13488_ACEOF
13489rm -f conftest.$ac_objext conftest$ac_exeext
13490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13491 (eval $ac_link) 2>conftest.er1
13b2be9c 13492 ac_status=$?
ab509236
L
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
13b2be9c
DJ
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } &&
1ad12f97
NC
13498 { ac_try='test -z "$ac_c_werror_flag"
13499 || test ! -s conftest.err'
ab509236
L
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; } &&
13505 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511 gas_cv_decl_needed_free=no
13512else
13513 echo "$as_me: failed program was:" >&5
13514sed 's/^/| /' conftest.$ac_ext >&5
13515
13516gas_cv_decl_needed_free=yes
13517fi
ab509236
L
13518rm -f conftest.err conftest.$ac_objext \
13519 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13520fi
13521echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13522echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13523if test $gas_cv_decl_needed_free = yes; then
13524
13525cat >>confdefs.h <<\_ACEOF
13526#define NEED_DECLARATION_FREE 1
13527_ACEOF
13528
13529fi
13530
13531
e8a38df5
AL
13532echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13533echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13534if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13536else
13537 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13538/* confdefs.h. */
13539_ACEOF
13540cat confdefs.h >>conftest.$ac_ext
13541cat >>conftest.$ac_ext <<_ACEOF
13542/* end confdefs.h. */
13543$gas_test_headers
13544int
13545main ()
13546{
13547
13548typedef char *(*f)();
13549f x;
e8a38df5 13550x = (f) malloc;
13b2be9c
DJ
13551
13552 ;
13553 return 0;
13554}
13555_ACEOF
13556rm -f conftest.$ac_objext conftest$ac_exeext
13557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13558 (eval $ac_link) 2>conftest.er1
13b2be9c 13559 ac_status=$?
ab509236
L
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13b2be9c
DJ
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
1ad12f97
NC
13565 { ac_try='test -z "$ac_c_werror_flag"
13566 || test ! -s conftest.err'
ab509236
L
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
e8a38df5 13578 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
13579else
13580 echo "$as_me: failed program was:" >&5
13581sed 's/^/| /' conftest.$ac_ext >&5
13582
e8a38df5 13583gas_cv_decl_needed_malloc=yes
13b2be9c 13584fi
ab509236
L
13585rm -f conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13587fi
e8a38df5
AL
13588echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13589echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13590if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
13591
13592cat >>confdefs.h <<\_ACEOF
e8a38df5 13593#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
13594_ACEOF
13595
13596fi
13597
13598
e8a38df5
AL
13599echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13600echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13601if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13603else
13604 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13605/* confdefs.h. */
13606_ACEOF
13607cat confdefs.h >>conftest.$ac_ext
13608cat >>conftest.$ac_ext <<_ACEOF
13609/* end confdefs.h. */
13610$gas_test_headers
13611int
13612main ()
13613{
13614
e8a38df5 13615typedef char *(*f)();
13b2be9c 13616f x;
e8a38df5 13617x = (f) sbrk;
13b2be9c
DJ
13618
13619 ;
13620 return 0;
13621}
13622_ACEOF
13623rm -f conftest.$ac_objext conftest$ac_exeext
13624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13625 (eval $ac_link) 2>conftest.er1
13b2be9c 13626 ac_status=$?
ab509236
L
13627 grep -v '^ *+' conftest.er1 >conftest.err
13628 rm -f conftest.er1
13629 cat conftest.err >&5
13b2be9c
DJ
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } &&
1ad12f97
NC
13632 { ac_try='test -z "$ac_c_werror_flag"
13633 || test ! -s conftest.err'
ab509236
L
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; } &&
13639 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }; then
e8a38df5 13645 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
13646else
13647 echo "$as_me: failed program was:" >&5
13648sed 's/^/| /' conftest.$ac_ext >&5
13649
e8a38df5 13650gas_cv_decl_needed_sbrk=yes
13b2be9c 13651fi
ab509236
L
13652rm -f conftest.err conftest.$ac_objext \
13653 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13654fi
e8a38df5
AL
13655echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13656echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13657if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
13658
13659cat >>confdefs.h <<\_ACEOF
e8a38df5 13660#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
13661_ACEOF
13662
13663fi
13664
13665
e8a38df5
AL
13666echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13667echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13668if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670else
13671 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13672/* confdefs.h. */
13673_ACEOF
13674cat confdefs.h >>conftest.$ac_ext
13675cat >>conftest.$ac_ext <<_ACEOF
13676/* end confdefs.h. */
e8a38df5 13677$gas_test_headers
13b2be9c
DJ
13678int
13679main ()
13680{
13681
e8a38df5 13682typedef char *(*f)();
13b2be9c 13683f x;
e8a38df5 13684x = (f) strstr;
13b2be9c
DJ
13685
13686 ;
13687 return 0;
13688}
13689_ACEOF
13690rm -f conftest.$ac_objext conftest$ac_exeext
13691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13692 (eval $ac_link) 2>conftest.er1
13b2be9c 13693 ac_status=$?
ab509236
L
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13b2be9c
DJ
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
1ad12f97
NC
13699 { ac_try='test -z "$ac_c_werror_flag"
13700 || test ! -s conftest.err'
ab509236
L
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; } &&
13706 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
e8a38df5 13712 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
13713else
13714 echo "$as_me: failed program was:" >&5
13715sed 's/^/| /' conftest.$ac_ext >&5
13716
e8a38df5 13717gas_cv_decl_needed_strstr=yes
13b2be9c 13718fi
ab509236
L
13719rm -f conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13721fi
e8a38df5
AL
13722echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
13723echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
13724if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
13725
13726cat >>confdefs.h <<\_ACEOF
e8a38df5 13727#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
13728_ACEOF
13729
13730fi
13731
13732
6d74f28b
EB
13733echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13734echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13735if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737else
13738 cat >conftest.$ac_ext <<_ACEOF
13739/* confdefs.h. */
13740_ACEOF
13741cat confdefs.h >>conftest.$ac_ext
13742cat >>conftest.$ac_ext <<_ACEOF
13743/* end confdefs.h. */
13744$ac_includes_default
13745int
13746main ()
13747{
13748#ifndef vsnprintf
13749 char *p = (char *) vsnprintf;
13750#endif
13751
13752 ;
13753 return 0;
13754}
13755_ACEOF
13756rm -f conftest.$ac_objext
13757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13758 (eval $ac_compile) 2>conftest.er1
13759 ac_status=$?
13760 grep -v '^ *+' conftest.er1 >conftest.err
13761 rm -f conftest.er1
13762 cat conftest.err >&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
13765 { ac_try='test -z "$ac_c_werror_flag"
13766 || test ! -s conftest.err'
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; } &&
13772 { ac_try='test -s conftest.$ac_objext'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 ac_cv_have_decl_vsnprintf=yes
13779else
13780 echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
13783ac_cv_have_decl_vsnprintf=no
13784fi
13785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13786fi
13787echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13788echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13789if test $ac_cv_have_decl_vsnprintf = yes; then
13790
13791cat >>confdefs.h <<_ACEOF
13792#define HAVE_DECL_VSNPRINTF 1
13793_ACEOF
13794
13795
13796else
13797 cat >>confdefs.h <<_ACEOF
13798#define HAVE_DECL_VSNPRINTF 0
13799_ACEOF
13800
13801
13802fi
13803
13804
13805
13b2be9c 13806
c973bc5c
NC
13807case "${host}" in
13808*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13809
13810cat >>confdefs.h <<\_ACEOF
13811#define USE_BINARY_FOPEN 1
13812_ACEOF
13813 ;;
13814esac
13815
13816
13b2be9c 13817
108a6f8e
CD
13818
13819
13820
13821
13b2be9c
DJ
13822 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13823
13824 ac_config_commands="$ac_config_commands default"
13825
13826
13827cat >confcache <<\_ACEOF
13828# This file is a shell script that caches the results of configure
13829# tests run on this system so they can be shared between configure
13830# scripts and configure runs, see configure's option --config-cache.
13831# It is not useful on other systems. If it contains results you don't
13832# want to keep, you may remove or edit it.
13833#
13834# config.status only pays attention to the cache file if you give it
13835# the --recheck option to rerun configure.
13836#
13837# `ac_cv_env_foo' variables (set or unset) will be overridden when
13838# loading this file, other *unset* `ac_cv_foo' will be assigned the
13839# following values.
13840
13841_ACEOF
13842
13843# The following way of writing the cache mishandles newlines in values,
13844# but we know of no workaround that is simple, portable, and efficient.
13845# So, don't put newlines in cache variables' values.
13846# Ultrix sh set writes to stderr and can't be redirected directly,
13847# and sets the high bit in the cache file unless we assign to the vars.
13848{
13849 (set) 2>&1 |
13850 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13851 *ac_space=\ *)
13852 # `set' does not quote correctly, so add quotes (double-quote
13853 # substitution turns \\\\ into \\, and sed turns \\ into \).
13854 sed -n \
ab509236
L
13855 "s/'/'\\\\''/g;
13856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
13857 ;;
13858 *)
13859 # `set' quotes correctly as required by POSIX, so do not add quotes.
13860 sed -n \
ab509236 13861 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
13862 ;;
13863 esac;
13864} |
13865 sed '
13866 t clear
13867 : clear
13868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13869 t end
13870 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13871 : end' >>confcache
13872if diff $cache_file confcache >/dev/null 2>&1; then :; else
13873 if test -w $cache_file; then
13874 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13875 cat confcache >$cache_file
13876 else
13877 echo "not updating unwritable cache $cache_file"
13878 fi
13879fi
13880rm -f confcache
13881
13882test "x$prefix" = xNONE && prefix=$ac_default_prefix
13883# Let make expand exec_prefix.
13884test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13885
13886# VPATH may cause trouble with some makes, so we remove $(srcdir),
13887# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13888# trailing colons and then remove the whole line if VPATH becomes empty
13889# (actually we leave an empty line to preserve line numbers).
13890if test "x$srcdir" = x.; then
ab509236 13891 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
13892s/:*\$(srcdir):*/:/;
13893s/:*\${srcdir}:*/:/;
13894s/:*@srcdir@:*/:/;
ab509236 13895s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 13896s/:*$//;
ab509236 13897s/^[^=]*=[ ]*$//;
13b2be9c
DJ
13898}'
13899fi
13900
13901DEFS=-DHAVE_CONFIG_H
13902
13903ac_libobjs=
13904ac_ltlibobjs=
13905for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13906 # 1. Remove the extension, and $U if already installed.
13907 ac_i=`echo "$ac_i" |
ab509236 13908 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
13909 # 2. Add them.
13910 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13911 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13912done
13913LIBOBJS=$ac_libobjs
13914
13915LTLIBOBJS=$ac_ltlibobjs
13916
13917
13918if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13919 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13920Usually this means the macro was only invoked conditionally." >&5
13921echo "$as_me: error: conditional \"AMDEP\" was never defined.
13922Usually this means the macro was only invoked conditionally." >&2;}
13923 { (exit 1); exit 1; }; }
13924fi
13925if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13926 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13927Usually this means the macro was only invoked conditionally." >&5
13928echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13929Usually this means the macro was only invoked conditionally." >&2;}
13930 { (exit 1); exit 1; }; }
13931fi
13932if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13933 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13934Usually this means the macro was only invoked conditionally." >&5
13935echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13936Usually this means the macro was only invoked conditionally." >&2;}
13937 { (exit 1); exit 1; }; }
13938fi
d5fbea21
DJ
13939if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13940 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13941Usually this means the macro was only invoked conditionally." >&5
13942echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13943Usually this means the macro was only invoked conditionally." >&2;}
13944 { (exit 1); exit 1; }; }
13945fi
13b2be9c
DJ
13946
13947: ${CONFIG_STATUS=./config.status}
13948ac_clean_files_save=$ac_clean_files
13949ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13950{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13951echo "$as_me: creating $CONFIG_STATUS" >&6;}
13952cat >$CONFIG_STATUS <<_ACEOF
13953#! $SHELL
13954# Generated by $as_me.
13955# Run this file to recreate the current configuration.
13956# Compiler output produced by configure, useful for debugging
13957# configure, is in config.log if it exists.
13958
13959debug=false
13960ac_cs_recheck=false
13961ac_cs_silent=false
13962SHELL=\${CONFIG_SHELL-$SHELL}
13963_ACEOF
13964
13965cat >>$CONFIG_STATUS <<\_ACEOF
13966## --------------------- ##
13967## M4sh Initialization. ##
13968## --------------------- ##
13969
13970# Be Bourne compatible
13971if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13972 emulate sh
13973 NULLCMD=:
13974 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13975 # is contrary to our usage. Disable this feature.
13976 alias -g '${1+"$@"}'='"$@"'
13977elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13978 set -o posix
13979fi
ab509236 13980DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
13981
13982# Support unset when possible.
ab509236 13983if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
13984 as_unset=unset
13985else
13986 as_unset=false
13987fi
13988
13989
13990# Work around bugs in pre-3.0 UWIN ksh.
13991$as_unset ENV MAIL MAILPATH
13992PS1='$ '
13993PS2='> '
13994PS4='+ '
13995
13996# NLS nuisances.
13997for as_var in \
13998 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13999 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14000 LC_TELEPHONE LC_TIME
14001do
ab509236 14002 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
14003 eval $as_var=C; export $as_var
14004 else
14005 $as_unset $as_var
14006 fi
14007done
14008
14009# Required to use basename.
14010if expr a : '\(a\)' >/dev/null 2>&1; then
14011 as_expr=expr
14012else
14013 as_expr=false
14014fi
14015
14016if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14017 as_basename=basename
14018else
14019 as_basename=false
14020fi
14021
14022
14023# Name of the executable.
14024as_me=`$as_basename "$0" ||
14025$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14026 X"$0" : 'X\(//\)$' \| \
14027 X"$0" : 'X\(/\)$' \| \
14028 . : '\(.\)' 2>/dev/null ||
14029echo X/"$0" |
14030 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14031 /^X\/\(\/\/\)$/{ s//\1/; q; }
14032 /^X\/\(\/\).*/{ s//\1/; q; }
14033 s/.*/./; q'`
14034
14035
14036# PATH needs CR, and LINENO needs CR and PATH.
14037# Avoid depending upon Character Ranges.
14038as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14039as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14040as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14041as_cr_digits='0123456789'
14042as_cr_alnum=$as_cr_Letters$as_cr_digits
14043
14044# The user is always right.
14045if test "${PATH_SEPARATOR+set}" != set; then
14046 echo "#! /bin/sh" >conf$$.sh
14047 echo "exit 0" >>conf$$.sh
14048 chmod +x conf$$.sh
14049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14050 PATH_SEPARATOR=';'
14051 else
14052 PATH_SEPARATOR=:
14053 fi
14054 rm -f conf$$.sh
14055fi
14056
14057
14058 as_lineno_1=$LINENO
14059 as_lineno_2=$LINENO
14060 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14061 test "x$as_lineno_1" != "x$as_lineno_2" &&
14062 test "x$as_lineno_3" = "x$as_lineno_2" || {
14063 # Find who we are. Look in the path if we contain no path at all
14064 # relative or not.
14065 case $0 in
14066 *[\\/]* ) as_myself=$0 ;;
14067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068for as_dir in $PATH
14069do
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
14072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14073done
252b5132 14074
13b2be9c
DJ
14075 ;;
14076 esac
14077 # We did not find ourselves, most probably we were run as `sh COMMAND'
14078 # in which case we are not to be found in the path.
14079 if test "x$as_myself" = x; then
14080 as_myself=$0
14081 fi
14082 if test ! -f "$as_myself"; then
14083 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14084echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14085 { (exit 1); exit 1; }; }
14086 fi
14087 case $CONFIG_SHELL in
14088 '')
14089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14090for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14091do
14092 IFS=$as_save_IFS
14093 test -z "$as_dir" && as_dir=.
14094 for as_base in sh bash ksh sh5; do
14095 case $as_dir in
14096 /*)
14097 if ("$as_dir/$as_base" -c '
14098 as_lineno_1=$LINENO
14099 as_lineno_2=$LINENO
14100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14101 test "x$as_lineno_1" != "x$as_lineno_2" &&
14102 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14103 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14104 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14105 CONFIG_SHELL=$as_dir/$as_base
14106 export CONFIG_SHELL
14107 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14108 fi;;
14109 esac
14110 done
14111done
14112;;
14113 esac
252b5132 14114
13b2be9c
DJ
14115 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14116 # uniformly replaced by the line number. The first 'sed' inserts a
14117 # line-number line before each line; the second 'sed' does the real
14118 # work. The second script uses 'N' to pair each line-number line
14119 # with the numbered line, and appends trailing '-' during
14120 # substitution so that $LINENO is not a special case at line end.
14121 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14122 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14123 sed '=' <$as_myself |
14124 sed '
14125 N
14126 s,$,-,
14127 : loop
14128 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14129 t loop
14130 s,-$,,
14131 s,^['$as_cr_digits']*\n,,
14132 ' >$as_me.lineno &&
14133 chmod +x $as_me.lineno ||
14134 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14135echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14136 { (exit 1); exit 1; }; }
14137
14138 # Don't try to exec as it changes $[0], causing all sort of problems
14139 # (the dirname of $[0] is not the place where we might find the
14140 # original and so on. Autoconf is especially sensible to this).
14141 . ./$as_me.lineno
14142 # Exit status is that of the last command.
14143 exit
14144}
d6d788bd 14145
252b5132 14146
13b2be9c
DJ
14147case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14148 *c*,-n*) ECHO_N= ECHO_C='
14149' ECHO_T=' ' ;;
14150 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14151 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14152esac
252b5132 14153
13b2be9c
DJ
14154if expr a : '\(a\)' >/dev/null 2>&1; then
14155 as_expr=expr
252b5132 14156else
13b2be9c 14157 as_expr=false
252b5132 14158fi
252b5132 14159
13b2be9c
DJ
14160rm -f conf$$ conf$$.exe conf$$.file
14161echo >conf$$.file
14162if ln -s conf$$.file conf$$ 2>/dev/null; then
14163 # We could just check for DJGPP; but this test a) works b) is more generic
14164 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14165 if test -f conf$$.exe; then
14166 # Don't use ln at all; we don't have any links
14167 as_ln_s='cp -p'
14168 else
14169 as_ln_s='ln -s'
14170 fi
14171elif ln conf$$.file conf$$ 2>/dev/null; then
14172 as_ln_s=ln
14173else
14174 as_ln_s='cp -p'
252b5132 14175fi
13b2be9c 14176rm -f conf$$ conf$$.exe conf$$.file
252b5132 14177
13b2be9c
DJ
14178if mkdir -p . 2>/dev/null; then
14179 as_mkdir_p=:
252b5132 14180else
ab509236 14181 test -d ./-p && rmdir ./-p
13b2be9c
DJ
14182 as_mkdir_p=false
14183fi
252b5132 14184
13b2be9c 14185as_executable_p="test -f"
252b5132 14186
13b2be9c 14187# Sed expression to map a string onto a valid CPP name.
ab509236 14188as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14189
13b2be9c 14190# Sed expression to map a string onto a valid variable name.
ab509236 14191as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14192
d6d788bd 14193
13b2be9c
DJ
14194# IFS
14195# We need space, tab and new line, in precisely that order.
14196as_nl='
14197'
14198IFS=" $as_nl"
252b5132 14199
13b2be9c
DJ
14200# CDPATH.
14201$as_unset CDPATH
252b5132 14202
13b2be9c 14203exec 6>&1
252b5132 14204
13b2be9c
DJ
14205# Open the log real soon, to keep \$[0] and so on meaningful, and to
14206# report actual input values of CONFIG_FILES etc. instead of their
14207# values after options handling. Logging --version etc. is OK.
14208exec 5>>config.log
14209{
14210 echo
14211 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14212## Running $as_me. ##
14213_ASBOX
14214} >&5
14215cat >&5 <<_CSEOF
252b5132 14216
13b2be9c 14217This file was extended by $as_me, which was
ab509236 14218generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 14219
13b2be9c
DJ
14220 CONFIG_FILES = $CONFIG_FILES
14221 CONFIG_HEADERS = $CONFIG_HEADERS
14222 CONFIG_LINKS = $CONFIG_LINKS
14223 CONFIG_COMMANDS = $CONFIG_COMMANDS
14224 $ $0 $@
252b5132 14225
13b2be9c
DJ
14226_CSEOF
14227echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14228echo >&5
14229_ACEOF
252b5132 14230
13b2be9c
DJ
14231# Files that config.status was made for.
14232if test -n "$ac_config_files"; then
14233 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 14234fi
13b2be9c
DJ
14235
14236if test -n "$ac_config_headers"; then
14237 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 14238fi
252b5132 14239
13b2be9c
DJ
14240if test -n "$ac_config_links"; then
14241 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
14242fi
14243
13b2be9c
DJ
14244if test -n "$ac_config_commands"; then
14245 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14246fi
d6d788bd 14247
13b2be9c 14248cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 14249
13b2be9c
DJ
14250ac_cs_usage="\
14251\`$as_me' instantiates files from templates according to the
14252current configuration.
252b5132 14253
13b2be9c 14254Usage: $0 [OPTIONS] [FILE]...
252b5132 14255
13b2be9c
DJ
14256 -h, --help print this help, then exit
14257 -V, --version print version number, then exit
14258 -q, --quiet do not print progress messages
14259 -d, --debug don't remove temporary files
14260 --recheck update $as_me by reconfiguring in the same conditions
14261 --file=FILE[:TEMPLATE]
ab509236 14262 instantiate the configuration file FILE
13b2be9c 14263 --header=FILE[:TEMPLATE]
ab509236 14264 instantiate the configuration header FILE
252b5132 14265
13b2be9c
DJ
14266Configuration files:
14267$config_files
252b5132 14268
13b2be9c
DJ
14269Configuration headers:
14270$config_headers
252b5132 14271
13b2be9c
DJ
14272Configuration commands:
14273$config_commands
252b5132 14274
13b2be9c
DJ
14275Report bugs to <bug-autoconf@gnu.org>."
14276_ACEOF
d6d788bd 14277
13b2be9c
DJ
14278cat >>$CONFIG_STATUS <<_ACEOF
14279ac_cs_version="\\
14280config.status
ab509236 14281configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 14282 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 14283
ab509236 14284Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
14285This config.status script is free software; the Free Software Foundation
14286gives unlimited permission to copy, distribute and modify it."
14287srcdir=$srcdir
14288INSTALL="$INSTALL"
14289_ACEOF
d6d788bd 14290
13b2be9c
DJ
14291cat >>$CONFIG_STATUS <<\_ACEOF
14292# If no file are specified by the user, then we need to provide default
14293# value. By we need to know if files were specified by the user.
14294ac_need_defaults=:
14295while test $# != 0
14296do
14297 case $1 in
14298 --*=*)
14299 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14300 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14301 ac_shift=:
c8615825 14302 ;;
13b2be9c
DJ
14303 -*)
14304 ac_option=$1
14305 ac_optarg=$2
14306 ac_shift=shift
c8615825 14307 ;;
13b2be9c
DJ
14308 *) # This is not an option, so the user has probably given explicit
14309 # arguments.
14310 ac_option=$1
14311 ac_need_defaults=false;;
14312 esac
252b5132 14313
13b2be9c
DJ
14314 case $ac_option in
14315 # Handling of the options.
14316_ACEOF
14317cat >>$CONFIG_STATUS <<\_ACEOF
14318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14319 ac_cs_recheck=: ;;
14320 --version | --vers* | -V )
14321 echo "$ac_cs_version"; exit 0 ;;
14322 --he | --h)
14323 # Conflict between --help and --header
14324 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14325Try \`$0 --help' for more information." >&5
14326echo "$as_me: error: ambiguous option: $1
14327Try \`$0 --help' for more information." >&2;}
14328 { (exit 1); exit 1; }; };;
14329 --help | --hel | -h )
14330 echo "$ac_cs_usage"; exit 0 ;;
14331 --debug | --d* | -d )
14332 debug=: ;;
14333 --file | --fil | --fi | --f )
14334 $ac_shift
14335 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14336 ac_need_defaults=false;;
14337 --header | --heade | --head | --hea )
14338 $ac_shift
14339 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14340 ac_need_defaults=false;;
14341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14342 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14343 ac_cs_silent=: ;;
c8615825 14344
13b2be9c
DJ
14345 # This is an error.
14346 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14347Try \`$0 --help' for more information." >&5
14348echo "$as_me: error: unrecognized option: $1
14349Try \`$0 --help' for more information." >&2;}
14350 { (exit 1); exit 1; }; } ;;
252b5132 14351
13b2be9c 14352 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 14353
13b2be9c
DJ
14354 esac
14355 shift
14356done
252b5132 14357
13b2be9c 14358ac_configure_extra_args=
d6d788bd 14359
13b2be9c
DJ
14360if $ac_cs_silent; then
14361 exec 6>/dev/null
14362 ac_configure_extra_args="$ac_configure_extra_args --silent"
14363fi
9b2b7d69 14364
13b2be9c
DJ
14365_ACEOF
14366cat >>$CONFIG_STATUS <<_ACEOF
14367if \$ac_cs_recheck; then
14368 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14369 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14370fi
14371
14372_ACEOF
14373
14374cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 14375#
13b2be9c 14376# INIT-COMMANDS section.
9b2b7d69
MM
14377#
14378
13b2be9c 14379AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14380
14381
14382# The HP-UX ksh and POSIX shell print the target directory to stdout
14383# if CDPATH is set.
14384(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14385
14386sed_quote_subst='$sed_quote_subst'
14387double_quote_subst='$double_quote_subst'
14388delay_variable_subst='$delay_variable_subst'
14389macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14390macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14391enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14392enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14393pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14394enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14395host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14396host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14397host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14398build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14399build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14400build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14401SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14402Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14403GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14404EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14405FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14406LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14407NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14408LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14409max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14410ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14411exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14412lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14413lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14414lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14415reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14416reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14417deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14418file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14419AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14420AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14421STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14422RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14423old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14424old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14425old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14426CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14427CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14428compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14429GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14430lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14431lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14432lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14433objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14434SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14435ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14436MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14437lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14438lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14439lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14440lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14441lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14442need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14443libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14444shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14445extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14446archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14447enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14448export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14449whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14450compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14451old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14452old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14453archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14454archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14455module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14456module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14457with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14458allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14459no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14460hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14461hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14462hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14463hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14464hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14465hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14466hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14467hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14468inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14469link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14470fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14471always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14472export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14473exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14474include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14475prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14476file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14477variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14478need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14479need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14480version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14481runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14482shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14483shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14484libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14485library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14486soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14487postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14488postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14489finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14490finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14491hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14492sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14493sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14494hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14495enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14496enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14497enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14498old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14499striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14500
14501LTCC='$LTCC'
14502LTCFLAGS='$LTCFLAGS'
14503compiler='$compiler_DEFAULT'
14504
14505# Quote evaled strings.
14506for var in SED \
14507GREP \
14508EGREP \
14509FGREP \
14510LD \
14511NM \
14512LN_S \
14513lt_SP2NL \
14514lt_NL2SP \
14515reload_flag \
14516deplibs_check_method \
14517file_magic_cmd \
14518AR \
14519AR_FLAGS \
14520STRIP \
14521RANLIB \
14522CC \
14523CFLAGS \
14524compiler \
14525lt_cv_sys_global_symbol_pipe \
14526lt_cv_sys_global_symbol_to_cdecl \
14527lt_cv_sys_global_symbol_to_c_name_address \
14528SHELL \
14529ECHO \
14530lt_prog_compiler_no_builtin_flag \
14531lt_prog_compiler_wl \
14532lt_prog_compiler_pic \
14533lt_prog_compiler_static \
14534lt_cv_prog_compiler_c_o \
14535need_locks \
14536shrext_cmds \
14537export_dynamic_flag_spec \
14538whole_archive_flag_spec \
14539compiler_needs_object \
14540with_gnu_ld \
14541allow_undefined_flag \
14542no_undefined_flag \
14543hardcode_libdir_flag_spec \
14544hardcode_libdir_flag_spec_ld \
14545hardcode_libdir_separator \
14546fix_srcfile_path \
14547exclude_expsyms \
14548include_expsyms \
14549file_list_spec \
14550variables_saved_for_relink \
14551libname_spec \
14552library_names_spec \
14553soname_spec \
14554finish_eval \
14555old_striplib \
14556striplib; do
14557 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14558 *[\\\\\\\`\\"\\\$]*)
14559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14560 ;;
14561 *)
14562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14563 ;;
14564 esac
14565done
14566
14567# Double-quote double-evaled strings.
14568for var in reload_cmds \
14569old_postinstall_cmds \
14570old_postuninstall_cmds \
14571old_archive_cmds \
14572extract_expsyms_cmds \
14573old_archive_from_new_cmds \
14574old_archive_from_expsyms_cmds \
14575archive_cmds \
14576archive_expsym_cmds \
14577module_cmds \
14578module_expsym_cmds \
14579export_symbols_cmds \
14580prelink_cmds \
14581postinstall_cmds \
14582postuninstall_cmds \
14583finish_cmds \
14584sys_lib_search_path_spec \
14585sys_lib_dlsearch_path_spec; do
14586 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14587 *[\\\\\\\`\\"\\\$]*)
14588 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14589 ;;
14590 *)
14591 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14592 ;;
14593 esac
14594done
14595
14596# Fix-up fallback echo if it was mangled by the above quoting rules.
14597case \$lt_ECHO in
14598*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14599 ;;
14600esac
14601
14602ac_aux_dir='$ac_aux_dir'
14603xsi_shell='$xsi_shell'
14604lt_shell_append='$lt_shell_append'
14605
14606# See if we are running on zsh, and set the options which allow our
14607# commands through without removal of \ escapes INIT.
14608if test -n "\${ZSH_VERSION+set}" ; then
14609 setopt NO_GLOB_SUBST
14610fi
14611
14612
14613 PACKAGE='$PACKAGE'
14614 VERSION='$VERSION'
14615 TIMESTAMP='$TIMESTAMP'
14616 RM='$RM'
14617 ofile='$ofile'
14618
14619
14620
20e95c23
DJ
14621# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14622 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14623 # from automake.
14624 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14625 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14626 LINGUAS="${LINGUAS-%UNSET%}"
14627
13b2be9c
DJ
14628target_cpu_type=${target_cpu_type}
14629 cgen_cpu_prefix=${cgen_cpu_prefix}
14630 obj_format=${obj_format}
14631 te_file=${te_file}
14632
14633_ACEOF
14634
14635
14636
14637cat >>$CONFIG_STATUS <<\_ACEOF
14638for ac_config_target in $ac_config_targets
9b2b7d69 14639do
13b2be9c
DJ
14640 case "$ac_config_target" in
14641 # Handling of arguments.
14642 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14643 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14644 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14645 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14646 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14647 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 14648 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 14649 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13b2be9c
DJ
14650 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14651 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14652 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14653echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14654 { (exit 1); exit 1; }; };;
9b2b7d69
MM
14655 esac
14656done
14657
13b2be9c
DJ
14658# If the user did not use the arguments to specify the items to instantiate,
14659# then the envvar interface is used. Set only those that are not.
14660# We use the long form for the default assignment because of an extremely
14661# bizarre bug on SunOS 4.1.3.
14662if $ac_need_defaults; then
14663 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14664 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14665 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14666fi
14667
14668# Have a temporary directory for convenience. Make it in the build tree
14669# simply because there is no reason to put it here, and in addition,
14670# creating and moving files from /tmp can sometimes cause problems.
14671# Create a temporary directory, and hook for its removal unless debugging.
14672$debug ||
14673{
14674 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14675 trap '{ (exit 1); exit 1; }' 1 2 13 15
14676}
9b2b7d69 14677
13b2be9c 14678# Create a (secure) tmp directory for tmp files.
9b2b7d69 14679
13b2be9c
DJ
14680{
14681 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14682 test -n "$tmp" && test -d "$tmp"
14683} ||
14684{
14685 tmp=./confstat$$-$RANDOM
14686 (umask 077 && mkdir $tmp)
14687} ||
14688{
14689 echo "$me: cannot create a temporary directory in ." >&2
14690 { (exit 1); exit 1; }
14691}
9b2b7d69 14692
13b2be9c
DJ
14693_ACEOF
14694
14695cat >>$CONFIG_STATUS <<_ACEOF
14696
14697#
14698# CONFIG_FILES section.
14699#
14700
14701# No need to generate the scripts if there are no CONFIG_FILES.
14702# This happens for instance when ./config.status config.h
14703if test -n "\$CONFIG_FILES"; then
14704 # Protect against being on the right side of a sed subst in config.status.
14705 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14706 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14707s,@SHELL@,$SHELL,;t t
14708s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14709s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14710s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14711s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14712s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14713s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14714s,@exec_prefix@,$exec_prefix,;t t
14715s,@prefix@,$prefix,;t t
14716s,@program_transform_name@,$program_transform_name,;t t
14717s,@bindir@,$bindir,;t t
14718s,@sbindir@,$sbindir,;t t
14719s,@libexecdir@,$libexecdir,;t t
14720s,@datadir@,$datadir,;t t
14721s,@sysconfdir@,$sysconfdir,;t t
14722s,@sharedstatedir@,$sharedstatedir,;t t
14723s,@localstatedir@,$localstatedir,;t t
14724s,@libdir@,$libdir,;t t
14725s,@includedir@,$includedir,;t t
14726s,@oldincludedir@,$oldincludedir,;t t
14727s,@infodir@,$infodir,;t t
14728s,@mandir@,$mandir,;t t
14729s,@build_alias@,$build_alias,;t t
14730s,@host_alias@,$host_alias,;t t
14731s,@target_alias@,$target_alias,;t t
14732s,@DEFS@,$DEFS,;t t
14733s,@ECHO_C@,$ECHO_C,;t t
14734s,@ECHO_N@,$ECHO_N,;t t
14735s,@ECHO_T@,$ECHO_T,;t t
14736s,@LIBS@,$LIBS,;t t
14737s,@build@,$build,;t t
14738s,@build_cpu@,$build_cpu,;t t
14739s,@build_vendor@,$build_vendor,;t t
14740s,@build_os@,$build_os,;t t
14741s,@host@,$host,;t t
14742s,@host_cpu@,$host_cpu,;t t
14743s,@host_vendor@,$host_vendor,;t t
14744s,@host_os@,$host_os,;t t
14745s,@target@,$target,;t t
14746s,@target_cpu@,$target_cpu,;t t
14747s,@target_vendor@,$target_vendor,;t t
14748s,@target_os@,$target_os,;t t
14749s,@CC@,$CC,;t t
14750s,@CFLAGS@,$CFLAGS,;t t
14751s,@LDFLAGS@,$LDFLAGS,;t t
14752s,@CPPFLAGS@,$CPPFLAGS,;t t
14753s,@ac_ct_CC@,$ac_ct_CC,;t t
14754s,@EXEEXT@,$EXEEXT,;t t
14755s,@OBJEXT@,$OBJEXT,;t t
14756s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14757s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14758s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14759s,@CYGPATH_W@,$CYGPATH_W,;t t
14760s,@PACKAGE@,$PACKAGE,;t t
14761s,@VERSION@,$VERSION,;t t
14762s,@ACLOCAL@,$ACLOCAL,;t t
14763s,@AUTOCONF@,$AUTOCONF,;t t
14764s,@AUTOMAKE@,$AUTOMAKE,;t t
14765s,@AUTOHEADER@,$AUTOHEADER,;t t
14766s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
14767s,@install_sh@,$install_sh,;t t
14768s,@STRIP@,$STRIP,;t t
14769s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14770s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 14771s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
14772s,@AWK@,$AWK,;t t
14773s,@SET_MAKE@,$SET_MAKE,;t t
14774s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
14775s,@AMTAR@,$AMTAR,;t t
14776s,@am__tar@,$am__tar,;t t
14777s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
14778s,@DEPDIR@,$DEPDIR,;t t
14779s,@am__include@,$am__include,;t t
14780s,@am__quote@,$am__quote,;t t
14781s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14782s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14783s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14784s,@CCDEPMODE@,$CCDEPMODE,;t t
14785s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14786s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
d7040cdb
SE
14787s,@LIBTOOL@,$LIBTOOL,;t t
14788s,@SED@,$SED,;t t
14789s,@EGREP@,$EGREP,;t t
14790s,@FGREP@,$FGREP,;t t
14791s,@GREP@,$GREP,;t t
14792s,@LD@,$LD,;t t
14793s,@DUMPBIN@,$DUMPBIN,;t t
14794s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14795s,@NM@,$NM,;t t
13b2be9c 14796s,@LN_S@,$LN_S,;t t
d7040cdb
SE
14797s,@AR@,$AR,;t t
14798s,@ac_ct_AR@,$ac_ct_AR,;t t
13b2be9c
DJ
14799s,@RANLIB@,$RANLIB,;t t
14800s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
14801s,@lt_ECHO@,$lt_ECHO,;t t
14802s,@CPP@,$CPP,;t t
13b2be9c 14803s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 14804s,@NO_WERROR@,$NO_WERROR,;t t
13b2be9c
DJ
14805s,@GDBINIT@,$GDBINIT,;t t
14806s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
14807s,@extra_objects@,$extra_objects,;t t
14808s,@target_cpu_type@,$target_cpu_type,;t t
14809s,@obj_format@,$obj_format,;t t
14810s,@te_file@,$te_file,;t t
14811s,@install_tooldir@,$install_tooldir,;t t
14812s,@atof@,$atof,;t t
13b2be9c 14813s,@OPCODES_LIB@,$OPCODES_LIB,;t t
13b2be9c
DJ
14814s,@YACC@,$YACC,;t t
14815s,@LEX@,$LEX,;t t
14816s,@LEXLIB@,$LEXLIB,;t t
14817s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13b2be9c 14818s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
14819s,@LIBINTL@,$LIBINTL,;t t
14820s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14821s,@INCINTL@,$INCINTL,;t t
13b2be9c 14822s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
14823s,@GMSGFMT@,$GMSGFMT,;t t
14824s,@POSUB@,$POSUB,;t t
13b2be9c 14825s,@CATALOGS@,$CATALOGS,;t t
13b2be9c 14826s,@DATADIRNAME@,$DATADIRNAME,;t t
13b2be9c 14827s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
14828s,@GENCAT@,$GENCAT,;t t
14829s,@CATOBJEXT@,$CATOBJEXT,;t t
13b2be9c 14830s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
14831s,@MSGFMT@,$MSGFMT,;t t
14832s,@MSGMERGE@,$MSGMERGE,;t t
13b2be9c
DJ
14833s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14834s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14835s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
14836s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14837s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
20e95c23 14838s,@ALLOCA@,$ALLOCA,;t t
13b2be9c 14839s,@LIBM@,$LIBM,;t t
108a6f8e
CD
14840s,@datarootdir@,$datarootdir,;t t
14841s,@docdir@,$docdir,;t t
14842s,@htmldir@,$htmldir,;t t
13b2be9c
DJ
14843s,@LIBOBJS@,$LIBOBJS,;t t
14844s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
14845CEOF
14846
13b2be9c
DJ
14847_ACEOF
14848
14849 cat >>$CONFIG_STATUS <<\_ACEOF
14850 # Split the substitutions into bite-sized pieces for seds with
14851 # small command number limits, like on Digital OSF/1 and HP-UX.
14852 ac_max_sed_lines=48
14853 ac_sed_frag=1 # Number of current file.
14854 ac_beg=1 # First line for current file.
14855 ac_end=$ac_max_sed_lines # Line after last line for current file.
14856 ac_more_lines=:
14857 ac_sed_cmds=
14858 while $ac_more_lines; do
14859 if test $ac_beg -gt 1; then
14860 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14861 else
14862 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14863 fi
14864 if test ! -s $tmp/subs.frag; then
14865 ac_more_lines=false
9b2b7d69 14866 else
13b2be9c
DJ
14867 # The purpose of the label and of the branching condition is to
14868 # speed up the sed processing (if there are no `@' at all, there
14869 # is no need to browse any of the substitutions).
14870 # These are the two extra sed commands mentioned above.
14871 (echo ':t
14872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14873 if test -z "$ac_sed_cmds"; then
ab509236 14874 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 14875 else
ab509236 14876 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
14877 fi
14878 ac_sed_frag=`expr $ac_sed_frag + 1`
14879 ac_beg=$ac_end
14880 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 14881 fi
13b2be9c
DJ
14882 done
14883 if test -z "$ac_sed_cmds"; then
14884 ac_sed_cmds=cat
252b5132 14885 fi
13b2be9c 14886fi # test -n "$CONFIG_FILES"
252b5132 14887
13b2be9c
DJ
14888_ACEOF
14889cat >>$CONFIG_STATUS <<\_ACEOF
14890for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 14891 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
14892 case $ac_file in
14893 - | *:- | *:-:* ) # input from stdin
ab509236
L
14894 cat >$tmp/stdin
14895 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 14897 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 14898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 14899 * ) ac_file_in=$ac_file.in ;;
252b5132 14900 esac
9b2b7d69 14901
13b2be9c
DJ
14902 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14903 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14904$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
14905 X"$ac_file" : 'X\(//\)[^/]' \| \
14906 X"$ac_file" : 'X\(//\)$' \| \
14907 X"$ac_file" : 'X\(/\)' \| \
14908 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
14909echo X"$ac_file" |
14910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14912 /^X\(\/\/\)$/{ s//\1/; q; }
14913 /^X\(\/\).*/{ s//\1/; q; }
14914 s/.*/./; q'`
14915 { if $as_mkdir_p; then
14916 mkdir -p "$ac_dir"
c8615825 14917 else
13b2be9c
DJ
14918 as_dir="$ac_dir"
14919 as_dirs=
14920 while test ! -d "$as_dir"; do
14921 as_dirs="$as_dir $as_dirs"
14922 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14923$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
14924 X"$as_dir" : 'X\(//\)[^/]' \| \
14925 X"$as_dir" : 'X\(//\)$' \| \
14926 X"$as_dir" : 'X\(/\)' \| \
14927 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
14928echo X"$as_dir" |
14929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14930 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14931 /^X\(\/\/\)$/{ s//\1/; q; }
14932 /^X\(\/\).*/{ s//\1/; q; }
14933 s/.*/./; q'`
14934 done
14935 test ! -n "$as_dirs" || mkdir $as_dirs
14936 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14937echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14938 { (exit 1); exit 1; }; }; }
14939
14940 ac_builddir=.
14941
14942if test "$ac_dir" != .; then
14943 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14944 # A "../" for each directory in $ac_dir_suffix.
14945 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14946else
14947 ac_dir_suffix= ac_top_builddir=
14948fi
9b2b7d69 14949
13b2be9c
DJ
14950case $srcdir in
14951 .) # No --srcdir option. We are building in place.
14952 ac_srcdir=.
14953 if test -z "$ac_top_builddir"; then
14954 ac_top_srcdir=.
14955 else
14956 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14957 fi ;;
14958 [\\/]* | ?:[\\/]* ) # Absolute path.
14959 ac_srcdir=$srcdir$ac_dir_suffix;
14960 ac_top_srcdir=$srcdir ;;
9b2b7d69 14961 *) # Relative path.
13b2be9c
DJ
14962 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14963 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14964esac
ab509236
L
14965
14966# Do not use `cd foo && pwd` to compute absolute paths, because
14967# the directories may not exist.
14968case `pwd` in
14969.) ac_abs_builddir="$ac_dir";;
14970*)
14971 case "$ac_dir" in
14972 .) ac_abs_builddir=`pwd`;;
14973 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14974 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14975 esac;;
14976esac
14977case $ac_abs_builddir in
14978.) ac_abs_top_builddir=${ac_top_builddir}.;;
14979*)
14980 case ${ac_top_builddir}. in
14981 .) ac_abs_top_builddir=$ac_abs_builddir;;
14982 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14983 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14984 esac;;
14985esac
14986case $ac_abs_builddir in
14987.) ac_abs_srcdir=$ac_srcdir;;
14988*)
14989 case $ac_srcdir in
14990 .) ac_abs_srcdir=$ac_abs_builddir;;
14991 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14992 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14993 esac;;
14994esac
14995case $ac_abs_builddir in
14996.) ac_abs_top_srcdir=$ac_top_srcdir;;
14997*)
14998 case $ac_top_srcdir in
14999 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15000 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15001 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15002 esac;;
15003esac
252b5132 15004
9b2b7d69 15005
13b2be9c
DJ
15006 case $INSTALL in
15007 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15008 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 15009 esac
9b2b7d69 15010
1ad12f97
NC
15011 if test x"$ac_file" != x-; then
15012 { echo "$as_me:$LINENO: creating $ac_file" >&5
15013echo "$as_me: creating $ac_file" >&6;}
15014 rm -f "$ac_file"
15015 fi
13b2be9c
DJ
15016 # Let's still pretend it is `configure' which instantiates (i.e., don't
15017 # use $as_me), people would be surprised to read:
15018 # /* config.h. Generated by config.status. */
15019 if test x"$ac_file" = x-; then
15020 configure_input=
15021 else
15022 configure_input="$ac_file. "
15023 fi
15024 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 15025 sed 's,.*/,,'` by configure."
13b2be9c
DJ
15026
15027 # First look for the input files in the build tree, otherwise in the
15028 # src tree.
15029 ac_file_inputs=`IFS=:
15030 for f in $ac_file_in; do
15031 case $f in
15032 -) echo $tmp/stdin ;;
15033 [\\/$]*)
ab509236
L
15034 # Absolute (can't be DOS-style, as IFS=:)
15035 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15036echo "$as_me: error: cannot find input file: $f" >&2;}
15037 { (exit 1); exit 1; }; }
ab509236 15038 echo "$f";;
13b2be9c 15039 *) # Relative
ab509236
L
15040 if test -f "$f"; then
15041 # Build tree
15042 echo "$f"
15043 elif test -f "$srcdir/$f"; then
15044 # Source tree
15045 echo "$srcdir/$f"
15046 else
15047 # /dev/null tree
15048 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15049echo "$as_me: error: cannot find input file: $f" >&2;}
15050 { (exit 1); exit 1; }; }
ab509236 15051 fi;;
13b2be9c
DJ
15052 esac
15053 done` || { (exit 1); exit 1; }
15054_ACEOF
15055cat >>$CONFIG_STATUS <<_ACEOF
15056 sed "$ac_vpsub
15057$extrasub
15058_ACEOF
15059cat >>$CONFIG_STATUS <<\_ACEOF
15060:t
15061/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15062s,@configure_input@,$configure_input,;t t
15063s,@srcdir@,$ac_srcdir,;t t
15064s,@abs_srcdir@,$ac_abs_srcdir,;t t
15065s,@top_srcdir@,$ac_top_srcdir,;t t
15066s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15067s,@builddir@,$ac_builddir,;t t
15068s,@abs_builddir@,$ac_abs_builddir,;t t
15069s,@top_builddir@,$ac_top_builddir,;t t
15070s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15071s,@INSTALL@,$ac_INSTALL,;t t
15072" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15073 rm -f $tmp/stdin
15074 if test x"$ac_file" != x-; then
15075 mv $tmp/out $ac_file
15076 else
15077 cat $tmp/out
15078 rm -f $tmp/out
15079 fi
15080
15081done
15082_ACEOF
15083cat >>$CONFIG_STATUS <<\_ACEOF
15084
15085#
15086# CONFIG_HEADER section.
15087#
252b5132
RH
15088
15089# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15090# NAME is the cpp macro being defined and VALUE is the value it is being given.
15091#
15092# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
15093ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15094ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
15095ac_dC=' '
15096ac_dD=',;t'
15097# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 15098ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 15099ac_uB='$,\1#\2define\3'
252b5132 15100ac_uC=' '
13b2be9c
DJ
15101ac_uD=',;t'
15102
15103for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15104 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
15105 case $ac_file in
15106 - | *:- | *:-:* ) # input from stdin
ab509236
L
15107 cat >$tmp/stdin
15108 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15109 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15110 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 15111 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15112 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15113 esac
15114
13b2be9c
DJ
15115 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15116echo "$as_me: creating $ac_file" >&6;}
15117
15118 # First look for the input files in the build tree, otherwise in the
15119 # src tree.
15120 ac_file_inputs=`IFS=:
15121 for f in $ac_file_in; do
15122 case $f in
15123 -) echo $tmp/stdin ;;
15124 [\\/$]*)
ab509236
L
15125 # Absolute (can't be DOS-style, as IFS=:)
15126 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15127echo "$as_me: error: cannot find input file: $f" >&2;}
15128 { (exit 1); exit 1; }; }
ab509236
L
15129 # Do quote $f, to prevent DOS paths from being IFS'd.
15130 echo "$f";;
13b2be9c 15131 *) # Relative
ab509236
L
15132 if test -f "$f"; then
15133 # Build tree
15134 echo "$f"
15135 elif test -f "$srcdir/$f"; then
15136 # Source tree
15137 echo "$srcdir/$f"
15138 else
15139 # /dev/null tree
15140 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15141echo "$as_me: error: cannot find input file: $f" >&2;}
15142 { (exit 1); exit 1; }; }
ab509236 15143 fi;;
13b2be9c
DJ
15144 esac
15145 done` || { (exit 1); exit 1; }
15146 # Remove the trailing spaces.
ab509236 15147 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
15148
15149_ACEOF
15150
15151# Transform confdefs.h into two sed scripts, `conftest.defines' and
15152# `conftest.undefs', that substitutes the proper values into
15153# config.h.in to produce config.h. The first handles `#define'
15154# templates, and the second `#undef' templates.
15155# And first: Protect against being on the right side of a sed subst in
15156# config.status. Protect against being in an unquoted here document
15157# in config.status.
15158rm -f conftest.defines conftest.undefs
15159# Using a here document instead of a string reduces the quoting nightmare.
15160# Putting comments in sed scripts is not portable.
15161#
15162# `end' is used to avoid that the second main sed command (meant for
15163# 0-ary CPP macros) applies to n-ary macro definitions.
15164# See the Autoconf documentation for `clear'.
15165cat >confdef2sed.sed <<\_ACEOF
15166s/[\\&,]/\\&/g
15167s,[\\$`],\\&,g
15168t clear
15169: clear
ab509236 15170s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 15171t end
ab509236 15172s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
15173: end
15174_ACEOF
15175# If some macros were called several times there might be several times
15176# the same #defines, which is useless. Nevertheless, we may not want to
15177# sort them, since we want the *last* AC-DEFINE to be honored.
15178uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15179sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15180rm -f confdef2sed.sed
252b5132
RH
15181
15182# This sed command replaces #undef with comments. This is necessary, for
15183# example, in the case of _POSIX_SOURCE, which is predefined and required
15184# on some systems where configure will not decide to define it.
13b2be9c 15185cat >>conftest.undefs <<\_ACEOF
ab509236 15186s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
15187_ACEOF
15188
15189# Break up conftest.defines because some shells have a limit on the size
15190# of here documents, and old seds have small limits too (100 cmds).
15191echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 15192echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
15193echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15194echo ' :' >>$CONFIG_STATUS
15195rm -f conftest.tail
15196while grep . conftest.defines >/dev/null
15197do
15198 # Write a limited-size here document to $tmp/defines.sed.
15199 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15200 # Speed up: don't consider the non `#define' lines.
ab509236 15201 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15202 # Work around the forget-to-reset-the-flag bug.
15203 echo 't clr' >>$CONFIG_STATUS
15204 echo ': clr' >>$CONFIG_STATUS
15205 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15206 echo 'CEOF
15207 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15208 rm -f $tmp/in
15209 mv $tmp/out $tmp/in
15210' >>$CONFIG_STATUS
15211 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15212 rm -f conftest.defines
15213 mv conftest.tail conftest.defines
15214done
15215rm -f conftest.defines
15216echo ' fi # grep' >>$CONFIG_STATUS
15217echo >>$CONFIG_STATUS
252b5132 15218
13b2be9c
DJ
15219# Break up conftest.undefs because some shells have a limit on the size
15220# of here documents, and old seds have small limits too (100 cmds).
15221echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 15222rm -f conftest.tail
13b2be9c 15223while grep . conftest.undefs >/dev/null
252b5132 15224do
13b2be9c
DJ
15225 # Write a limited-size here document to $tmp/undefs.sed.
15226 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15227 # Speed up: don't consider the non `#undef'
ab509236 15228 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15229 # Work around the forget-to-reset-the-flag bug.
15230 echo 't clr' >>$CONFIG_STATUS
15231 echo ': clr' >>$CONFIG_STATUS
15232 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 15233 echo 'CEOF
13b2be9c
DJ
15234 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15235 rm -f $tmp/in
15236 mv $tmp/out $tmp/in
15237' >>$CONFIG_STATUS
15238 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15239 rm -f conftest.undefs
15240 mv conftest.tail conftest.undefs
252b5132 15241done
13b2be9c
DJ
15242rm -f conftest.undefs
15243
15244cat >>$CONFIG_STATUS <<\_ACEOF
15245 # Let's still pretend it is `configure' which instantiates (i.e., don't
15246 # use $as_me), people would be surprised to read:
15247 # /* config.h. Generated by config.status. */
15248 if test x"$ac_file" = x-; then
15249 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 15250 else
13b2be9c
DJ
15251 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15252 fi
15253 cat $tmp/in >>$tmp/config.h
15254 rm -f $tmp/in
15255 if test x"$ac_file" != x-; then
15256 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15257 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15258echo "$as_me: $ac_file is unchanged" >&6;}
15259 else
15260 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15261$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15262 X"$ac_file" : 'X\(//\)[^/]' \| \
15263 X"$ac_file" : 'X\(//\)$' \| \
15264 X"$ac_file" : 'X\(/\)' \| \
15265 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15266echo X"$ac_file" |
15267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15269 /^X\(\/\/\)$/{ s//\1/; q; }
15270 /^X\(\/\).*/{ s//\1/; q; }
15271 s/.*/./; q'`
15272 { if $as_mkdir_p; then
15273 mkdir -p "$ac_dir"
15274 else
15275 as_dir="$ac_dir"
15276 as_dirs=
15277 while test ! -d "$as_dir"; do
15278 as_dirs="$as_dir $as_dirs"
15279 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15280$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15281 X"$as_dir" : 'X\(//\)[^/]' \| \
15282 X"$as_dir" : 'X\(//\)$' \| \
15283 X"$as_dir" : 'X\(/\)' \| \
15284 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15285echo X"$as_dir" |
15286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15288 /^X\(\/\/\)$/{ s//\1/; q; }
15289 /^X\(\/\).*/{ s//\1/; q; }
15290 s/.*/./; q'`
15291 done
15292 test ! -n "$as_dirs" || mkdir $as_dirs
15293 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15294echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15295 { (exit 1); exit 1; }; }; }
15296
15297 rm -f $ac_file
15298 mv $tmp/config.h $ac_file
9b2b7d69 15299 fi
13b2be9c
DJ
15300 else
15301 cat $tmp/config.h
15302 rm -f $tmp/config.h
9b2b7d69 15303 fi
13b2be9c
DJ
15304# Compute $ac_file's index in $config_headers.
15305_am_stamp_count=1
15306for _am_header in $config_headers :; do
15307 case $_am_header in
15308 $ac_file | $ac_file:* )
15309 break ;;
15310 * )
15311 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15312 esac
15313done
15314echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15315$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15316 X$ac_file : 'X\(//\)[^/]' \| \
15317 X$ac_file : 'X\(//\)$' \| \
15318 X$ac_file : 'X\(/\)' \| \
15319 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15320echo X$ac_file |
15321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15323 /^X\(\/\/\)$/{ s//\1/; q; }
15324 /^X\(\/\).*/{ s//\1/; q; }
15325 s/.*/./; q'`/stamp-h$_am_stamp_count
15326done
15327_ACEOF
15328cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 15329
13b2be9c
DJ
15330#
15331# CONFIG_COMMANDS section.
15332#
15333for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15334 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15335 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15336 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15337$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15338 X"$ac_dest" : 'X\(//\)[^/]' \| \
15339 X"$ac_dest" : 'X\(//\)$' \| \
15340 X"$ac_dest" : 'X\(/\)' \| \
15341 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15342echo X"$ac_dest" |
15343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15345 /^X\(\/\/\)$/{ s//\1/; q; }
15346 /^X\(\/\).*/{ s//\1/; q; }
15347 s/.*/./; q'`
ab509236
L
15348 { if $as_mkdir_p; then
15349 mkdir -p "$ac_dir"
15350 else
15351 as_dir="$ac_dir"
15352 as_dirs=
15353 while test ! -d "$as_dir"; do
15354 as_dirs="$as_dir $as_dirs"
15355 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15356$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15357 X"$as_dir" : 'X\(//\)[^/]' \| \
15358 X"$as_dir" : 'X\(//\)$' \| \
15359 X"$as_dir" : 'X\(/\)' \| \
15360 . : '\(.\)' 2>/dev/null ||
15361echo X"$as_dir" |
15362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15364 /^X\(\/\/\)$/{ s//\1/; q; }
15365 /^X\(\/\).*/{ s//\1/; q; }
15366 s/.*/./; q'`
15367 done
15368 test ! -n "$as_dirs" || mkdir $as_dirs
15369 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15370echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15371 { (exit 1); exit 1; }; }; }
15372
13b2be9c
DJ
15373 ac_builddir=.
15374
15375if test "$ac_dir" != .; then
15376 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15377 # A "../" for each directory in $ac_dir_suffix.
15378 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15379else
15380 ac_dir_suffix= ac_top_builddir=
15381fi
15382
15383case $srcdir in
15384 .) # No --srcdir option. We are building in place.
15385 ac_srcdir=.
15386 if test -z "$ac_top_builddir"; then
15387 ac_top_srcdir=.
15388 else
15389 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15390 fi ;;
15391 [\\/]* | ?:[\\/]* ) # Absolute path.
15392 ac_srcdir=$srcdir$ac_dir_suffix;
15393 ac_top_srcdir=$srcdir ;;
15394 *) # Relative path.
15395 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15396 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15397esac
ab509236
L
15398
15399# Do not use `cd foo && pwd` to compute absolute paths, because
15400# the directories may not exist.
15401case `pwd` in
15402.) ac_abs_builddir="$ac_dir";;
15403*)
15404 case "$ac_dir" in
15405 .) ac_abs_builddir=`pwd`;;
15406 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15407 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15408 esac;;
15409esac
15410case $ac_abs_builddir in
15411.) ac_abs_top_builddir=${ac_top_builddir}.;;
15412*)
15413 case ${ac_top_builddir}. in
15414 .) ac_abs_top_builddir=$ac_abs_builddir;;
15415 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15416 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15417 esac;;
15418esac
15419case $ac_abs_builddir in
15420.) ac_abs_srcdir=$ac_srcdir;;
15421*)
15422 case $ac_srcdir in
15423 .) ac_abs_srcdir=$ac_abs_builddir;;
15424 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15425 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15426 esac;;
15427esac
15428case $ac_abs_builddir in
15429.) ac_abs_top_srcdir=$ac_top_srcdir;;
15430*)
15431 case $ac_top_srcdir in
15432 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15433 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15434 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15435 esac;;
15436esac
13b2be9c
DJ
15437
15438
15439 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15440echo "$as_me: executing $ac_dest commands" >&6;}
15441 case $ac_dest in
15442 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15443 # Strip MF so we end up with the name of the file.
15444 mf=`echo "$mf" | sed -e 's/:.*$//'`
15445 # Check whether this is an Automake generated Makefile or not.
15446 # We used to match only the files named `Makefile.in', but
15447 # some people rename them; so instead we look at the file content.
15448 # Grep'ing the first line is not enough: some people post-process
15449 # each Makefile.in and add a new line on top of each file to say so.
15450 # So let's grep whole file.
15451 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15452 dirpart=`(dirname "$mf") 2>/dev/null ||
15453$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15454 X"$mf" : 'X\(//\)[^/]' \| \
15455 X"$mf" : 'X\(//\)$' \| \
15456 X"$mf" : 'X\(/\)' \| \
15457 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15458echo X"$mf" |
15459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15461 /^X\(\/\/\)$/{ s//\1/; q; }
15462 /^X\(\/\).*/{ s//\1/; q; }
15463 s/.*/./; q'`
15464 else
15465 continue
15466 fi
8ea2b00f
AM
15467 # Extract the definition of DEPDIR, am__include, and am__quote
15468 # from the Makefile without running `make'.
4b363073 15469 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 15470 test -z "$DEPDIR" && continue
8ea2b00f
AM
15471 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15472 test -z "am__include" && continue
15473 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 15474 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 15475 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
15476 # Find all dependency output files, they are included files with
15477 # $(DEPDIR) in their names. We invoke sed twice because it is the
15478 # simplest approach to changing $(DEPDIR) to its actual value in the
15479 # expansion.
15480 for file in `sed -n "
15481 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
15482 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15483 # Make sure the directory exists.
15484 test -f "$dirpart/$file" && continue
15485 fdir=`(dirname "$file") 2>/dev/null ||
15486$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15487 X"$file" : 'X\(//\)[^/]' \| \
15488 X"$file" : 'X\(//\)$' \| \
15489 X"$file" : 'X\(/\)' \| \
15490 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15491echo X"$file" |
15492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15493 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15494 /^X\(\/\/\)$/{ s//\1/; q; }
15495 /^X\(\/\).*/{ s//\1/; q; }
15496 s/.*/./; q'`
15497 { if $as_mkdir_p; then
15498 mkdir -p $dirpart/$fdir
15499 else
15500 as_dir=$dirpart/$fdir
15501 as_dirs=
15502 while test ! -d "$as_dir"; do
15503 as_dirs="$as_dir $as_dirs"
15504 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15505$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15506 X"$as_dir" : 'X\(//\)[^/]' \| \
15507 X"$as_dir" : 'X\(//\)$' \| \
15508 X"$as_dir" : 'X\(/\)' \| \
15509 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15510echo X"$as_dir" |
15511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15512 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15513 /^X\(\/\/\)$/{ s//\1/; q; }
15514 /^X\(\/\).*/{ s//\1/; q; }
15515 s/.*/./; q'`
15516 done
15517 test ! -n "$as_dirs" || mkdir $as_dirs
15518 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15519echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15520 { (exit 1); exit 1; }; }; }
c8615825 15521
13b2be9c
DJ
15522 # echo "creating $dirpart/$file"
15523 echo '# dummy' > "$dirpart/$file"
15524 done
15525done
d7040cdb
SE
15526 ;;
15527 libtool )
15528
15529 # See if we are running on zsh, and set the options which allow our
15530 # commands through without removal of \ escapes.
15531 if test -n "${ZSH_VERSION+set}" ; then
15532 setopt NO_GLOB_SUBST
15533 fi
15534
15535 cfgfile="${ofile}T"
15536 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15537 $RM "$cfgfile"
15538
15539 cat <<_LT_EOF >> "$cfgfile"
15540#! $SHELL
15541
15542# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15543# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15544# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15545# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15546#
15547# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15548# 2006, 2007 Free Software Foundation, Inc.
15549#
15550# This file is part of GNU Libtool:
15551# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15552#
15553# This program is free software; you can redistribute it and/or modify
15554# it under the terms of the GNU General Public License as published by
15555# the Free Software Foundation; either version 2 of the License, or
15556# (at your option) any later version.
15557#
15558# This program is distributed in the hope that it will be useful, but
15559# WITHOUT ANY WARRANTY; without even the implied warranty of
15560# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15561# General Public License for more details.
15562#
15563# You should have received a copy of the GNU General Public License
15564# along with this program; if not, a copy can be downloaded from
15565# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15566# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15567# MA 02110-1301, USA.
15568#
15569# As a special exception to the GNU General Public License, if you
15570# distribute this file as part of a program that contains a
15571# configuration script generated by Autoconf, you may include it under
15572# the same distribution terms that you use for the rest of that program.
15573
15574
15575# The names of the tagged configurations supported by this script.
15576available_tags=""
15577
15578# ### BEGIN LIBTOOL CONFIG
15579
15580# Which release of libtool.m4 was used?
15581macro_version=$macro_version
15582macro_revision=$macro_revision
15583
15584# Whether or not to build shared libraries.
15585build_libtool_libs=$enable_shared
15586
15587# Whether or not to build static libraries.
15588build_old_libs=$enable_static
15589
15590# What type of objects to build.
15591pic_mode=$pic_mode
15592
15593# Whether or not to optimize for fast installation.
15594fast_install=$enable_fast_install
15595
15596# The host system.
15597host_alias=$host_alias
15598host=$host
15599host_os=$host_os
15600
15601# The build system.
15602build_alias=$build_alias
15603build=$build
15604build_os=$build_os
15605
15606# A sed program that does not truncate output.
15607SED=$lt_SED
15608
15609# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15610Xsed="\$SED -e 1s/^X//"
15611
15612# A grep program that handles long lines.
15613GREP=$lt_GREP
15614
15615# An ERE matcher.
15616EGREP=$lt_EGREP
15617
15618# A literal string matcher.
15619FGREP=$lt_FGREP
15620
15621# A BSD- or MS-compatible name lister.
15622NM=$lt_NM
15623
15624# Whether we need soft or hard links.
15625LN_S=$lt_LN_S
15626
15627# What is the maximum length of a command?
15628max_cmd_len=$max_cmd_len
15629
15630# Object file suffix (normally "o").
15631objext=$ac_objext
15632
15633# Executable file suffix (normally "").
15634exeext=$exeext
15635
15636# whether the shell understands "unset".
15637lt_unset=$lt_unset
15638
15639# turn spaces into newlines.
15640SP2NL=$lt_lt_SP2NL
15641
15642# turn newlines into spaces.
15643NL2SP=$lt_lt_NL2SP
15644
15645# How to create reloadable object files.
15646reload_flag=$lt_reload_flag
15647reload_cmds=$lt_reload_cmds
15648
15649# Method to check whether dependent libraries are shared objects.
15650deplibs_check_method=$lt_deplibs_check_method
15651
15652# Command to use when deplibs_check_method == "file_magic".
15653file_magic_cmd=$lt_file_magic_cmd
15654
15655# The archiver.
15656AR=$lt_AR
15657AR_FLAGS=$lt_AR_FLAGS
15658
15659# A symbol stripping program.
15660STRIP=$lt_STRIP
15661
15662# Commands used to install an old-style archive.
15663RANLIB=$lt_RANLIB
15664old_postinstall_cmds=$lt_old_postinstall_cmds
15665old_postuninstall_cmds=$lt_old_postuninstall_cmds
15666
15667# A C compiler.
15668LTCC=$lt_CC
15669
15670# LTCC compiler flags.
15671LTCFLAGS=$lt_CFLAGS
15672
15673# Take the output of nm and produce a listing of raw symbols and C names.
15674global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15675
15676# Transform the output of nm in a proper C declaration.
15677global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15678
15679# Transform the output of nm in a C name address pair.
15680global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15681
15682# The name of the directory that contains temporary libtool files.
15683objdir=$objdir
15684
15685# Shell to use when invoking shell scripts.
15686SHELL=$lt_SHELL
15687
15688# An echo program that does not interpret backslashes.
15689ECHO=$lt_ECHO
15690
15691# Used to examine libraries when file_magic_cmd begins with "file".
15692MAGIC_CMD=$MAGIC_CMD
15693
15694# Must we lock files when doing compilation?
15695need_locks=$lt_need_locks
15696
15697# Old archive suffix (normally "a").
15698libext=$libext
15699
15700# Shared library suffix (normally ".so").
15701shrext_cmds=$lt_shrext_cmds
15702
15703# The commands to extract the exported symbol list from a shared archive.
15704extract_expsyms_cmds=$lt_extract_expsyms_cmds
15705
15706# Variables whose values should be saved in libtool wrapper scripts and
15707# restored at link time.
15708variables_saved_for_relink=$lt_variables_saved_for_relink
15709
15710# Do we need the "lib" prefix for modules?
15711need_lib_prefix=$need_lib_prefix
15712
15713# Do we need a version for libraries?
15714need_version=$need_version
15715
15716# Library versioning type.
15717version_type=$version_type
15718
15719# Shared library runtime path variable.
15720runpath_var=$runpath_var
15721
15722# Shared library path variable.
15723shlibpath_var=$shlibpath_var
15724
15725# Is shlibpath searched before the hard-coded library search path?
15726shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15727
15728# Format of library name prefix.
15729libname_spec=$lt_libname_spec
15730
15731# List of archive names. First name is the real one, the rest are links.
15732# The last name is the one that the linker finds with -lNAME
15733library_names_spec=$lt_library_names_spec
15734
15735# The coded name of the library, if different from the real name.
15736soname_spec=$lt_soname_spec
15737
15738# Command to use after installation of a shared archive.
15739postinstall_cmds=$lt_postinstall_cmds
15740
15741# Command to use after uninstallation of a shared archive.
15742postuninstall_cmds=$lt_postuninstall_cmds
15743
15744# Commands used to finish a libtool library installation in a directory.
15745finish_cmds=$lt_finish_cmds
15746
15747# As "finish_cmds", except a single script fragment to be evaled but
15748# not shown.
15749finish_eval=$lt_finish_eval
15750
15751# Whether we should hardcode library paths into libraries.
15752hardcode_into_libs=$hardcode_into_libs
15753
15754# Compile-time system search path for libraries.
15755sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15756
15757# Run-time system search path for libraries.
15758sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15759
15760# Whether dlopen is supported.
15761dlopen_support=$enable_dlopen
15762
15763# Whether dlopen of programs is supported.
15764dlopen_self=$enable_dlopen_self
15765
15766# Whether dlopen of statically linked programs is supported.
15767dlopen_self_static=$enable_dlopen_self_static
15768
15769# Commands to strip libraries.
15770old_striplib=$lt_old_striplib
15771striplib=$lt_striplib
15772
15773
15774# The linker used to build libraries.
15775LD=$lt_LD
15776
15777# Commands used to build an old-style archive.
15778old_archive_cmds=$lt_old_archive_cmds
15779
15780# A language specific compiler.
15781CC=$lt_compiler
15782
15783# Is the compiler the GNU compiler?
15784with_gcc=$GCC
15785
15786# Compiler flag to turn off builtin functions.
15787no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15788
15789# How to pass a linker flag through the compiler.
15790wl=$lt_lt_prog_compiler_wl
15791
15792# Additional compiler flags for building library objects.
15793pic_flag=$lt_lt_prog_compiler_pic
15794
15795# Compiler flag to prevent dynamic linking.
15796link_static_flag=$lt_lt_prog_compiler_static
15797
15798# Does compiler simultaneously support -c and -o options?
15799compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15800
15801# Whether or not to add -lc for building shared libraries.
15802build_libtool_need_lc=$archive_cmds_need_lc
15803
15804# Whether or not to disallow shared libs when runtime libs are static.
15805allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15806
15807# Compiler flag to allow reflexive dlopens.
15808export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15809
15810# Compiler flag to generate shared objects directly from archives.
15811whole_archive_flag_spec=$lt_whole_archive_flag_spec
15812
15813# Whether the compiler copes with passing no objects directly.
15814compiler_needs_object=$lt_compiler_needs_object
15815
15816# Create an old-style archive from a shared archive.
15817old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15818
15819# Create a temporary old-style archive to link instead of a shared archive.
15820old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15821
15822# Commands used to build a shared archive.
15823archive_cmds=$lt_archive_cmds
15824archive_expsym_cmds=$lt_archive_expsym_cmds
15825
15826# Commands used to build a loadable module if different from building
15827# a shared archive.
15828module_cmds=$lt_module_cmds
15829module_expsym_cmds=$lt_module_expsym_cmds
15830
15831# Whether we are building with GNU ld or not.
15832with_gnu_ld=$lt_with_gnu_ld
15833
15834# Flag that allows shared libraries with undefined symbols to be built.
15835allow_undefined_flag=$lt_allow_undefined_flag
15836
15837# Flag that enforces no undefined symbols.
15838no_undefined_flag=$lt_no_undefined_flag
15839
15840# Flag to hardcode \$libdir into a binary during linking.
15841# This must work even if \$libdir does not exist
15842hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15843
15844# If ld is used when linking, flag to hardcode \$libdir into a binary
15845# during linking. This must work even if \$libdir does not exist.
15846hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15847
15848# Whether we need a single "-rpath" flag with a separated argument.
15849hardcode_libdir_separator=$lt_hardcode_libdir_separator
15850
15851# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15852# DIR into the resulting binary.
15853hardcode_direct=$hardcode_direct
15854
15855# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15856# DIR into the resulting binary and the resulting library dependency is
15857# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15858# library is relocated.
15859hardcode_direct_absolute=$hardcode_direct_absolute
15860
15861# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15862# into the resulting binary.
15863hardcode_minus_L=$hardcode_minus_L
15864
15865# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15866# into the resulting binary.
15867hardcode_shlibpath_var=$hardcode_shlibpath_var
15868
15869# Set to "yes" if building a shared library automatically hardcodes DIR
15870# into the library and all subsequent libraries and executables linked
15871# against it.
15872hardcode_automatic=$hardcode_automatic
15873
15874# Set to yes if linker adds runtime paths of dependent libraries
15875# to runtime path list.
15876inherit_rpath=$inherit_rpath
15877
15878# Whether libtool must link a program against all its dependency libraries.
15879link_all_deplibs=$link_all_deplibs
15880
15881# Fix the shell variable \$srcfile for the compiler.
15882fix_srcfile_path=$lt_fix_srcfile_path
15883
15884# Set to "yes" if exported symbols are required.
15885always_export_symbols=$always_export_symbols
15886
15887# The commands to list exported symbols.
15888export_symbols_cmds=$lt_export_symbols_cmds
15889
15890# Symbols that should not be listed in the preloaded symbols.
15891exclude_expsyms=$lt_exclude_expsyms
15892
15893# Symbols that must always be exported.
15894include_expsyms=$lt_include_expsyms
15895
15896# Commands necessary for linking programs (against libraries) with templates.
15897prelink_cmds=$lt_prelink_cmds
15898
15899# Specify filename containing input files.
15900file_list_spec=$lt_file_list_spec
15901
15902# How to hardcode a shared library path into an executable.
15903hardcode_action=$hardcode_action
15904
15905# ### END LIBTOOL CONFIG
15906
15907_LT_EOF
15908
15909 case $host_os in
15910 aix3*)
15911 cat <<\_LT_EOF >> "$cfgfile"
15912# AIX sometimes has problems with the GCC collect2 program. For some
15913# reason, if we set the COLLECT_NAMES environment variable, the problems
15914# vanish in a puff of smoke.
15915if test "X${COLLECT_NAMES+set}" != Xset; then
15916 COLLECT_NAMES=
15917 export COLLECT_NAMES
15918fi
15919_LT_EOF
15920 ;;
15921 esac
15922
15923
15924ltmain="$ac_aux_dir/ltmain.sh"
15925
15926
15927 # We use sed instead of cat because bash on DJGPP gets confused if
15928 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15929 # text mode, it properly converts lines to CR/LF. This bash problem
15930 # is reportedly fixed, but why not run on old versions too?
15931 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15932 || (rm -f "$cfgfile"; exit 1)
15933
15934 case $xsi_shell in
15935 yes)
15936 cat << \_LT_EOF >> "$cfgfile"
15937# func_dirname file append nondir_replacement
15938# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15939# otherwise set result to NONDIR_REPLACEMENT.
15940func_dirname ()
15941{
15942 case ${1} in
15943 */*) func_dirname_result="${1%/*}${2}" ;;
15944 * ) func_dirname_result="${3}" ;;
15945 esac
15946}
15947
15948# func_basename file
15949func_basename ()
15950{
15951 func_basename_result="${1##*/}"
15952}
15953
15954# func_stripname prefix suffix name
15955# strip PREFIX and SUFFIX off of NAME.
15956# PREFIX and SUFFIX must not contain globbing or regex special
15957# characters, hashes, percent signs, but SUFFIX may contain a leading
15958# dot (in which case that matches only a dot).
15959func_stripname ()
15960{
15961 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15962 # positional parameters, so assign one to ordinary parameter first.
15963 func_stripname_result=${3}
15964 func_stripname_result=${func_stripname_result#"${1}"}
15965 func_stripname_result=${func_stripname_result%"${2}"}
15966}
15967
15968# func_opt_split
15969func_opt_split ()
15970{
15971 func_opt_split_opt=${1%%=*}
15972 func_opt_split_arg=${1#*=}
15973}
15974
15975# func_lo2o object
15976func_lo2o ()
15977{
15978 case ${1} in
15979 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15980 *) func_lo2o_result=${1} ;;
15981 esac
15982}
15983_LT_EOF
15984 ;;
15985 *) # Bourne compatible functions.
15986 cat << \_LT_EOF >> "$cfgfile"
15987# func_dirname file append nondir_replacement
15988# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15989# otherwise set result to NONDIR_REPLACEMENT.
15990func_dirname ()
15991{
15992 # Extract subdirectory from the argument.
15993 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15994 if test "X$func_dirname_result" = "X${1}"; then
15995 func_dirname_result="${3}"
15996 else
15997 func_dirname_result="$func_dirname_result${2}"
15998 fi
15999}
16000
16001# func_basename file
16002func_basename ()
16003{
16004 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16005}
16006
16007# func_stripname prefix suffix name
16008# strip PREFIX and SUFFIX off of NAME.
16009# PREFIX and SUFFIX must not contain globbing or regex special
16010# characters, hashes, percent signs, but SUFFIX may contain a leading
16011# dot (in which case that matches only a dot).
16012# func_strip_suffix prefix name
16013func_stripname ()
16014{
16015 case ${2} in
16016 .*) func_stripname_result=`$ECHO "X${3}" \
16017 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16018 *) func_stripname_result=`$ECHO "X${3}" \
16019 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16020 esac
16021}
16022
16023# sed scripts:
16024my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16025my_sed_long_arg='1s/^-[^=]*=//'
16026
16027# func_opt_split
16028func_opt_split ()
16029{
16030 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16031 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16032}
16033
16034# func_lo2o object
16035func_lo2o ()
16036{
16037 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16038}
16039_LT_EOF
16040esac
16041
16042case $lt_shell_append in
16043 yes)
16044 cat << \_LT_EOF >> "$cfgfile"
16045
16046# func_append var value
16047# Append VALUE to the end of shell variable VAR.
16048func_append ()
16049{
16050 eval "$1+=\$2"
16051}
16052_LT_EOF
16053 ;;
16054 *)
16055 cat << \_LT_EOF >> "$cfgfile"
16056
16057# func_append var value
16058# Append VALUE to the end of shell variable VAR.
16059func_append ()
16060{
16061 eval "$1=\$$1\$2"
16062}
16063_LT_EOF
16064 ;;
16065 esac
16066
16067
16068 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16069 || (rm -f "$cfgfile"; exit 1)
16070
16071 mv -f "$cfgfile" "$ofile" ||
16072 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16073 chmod +x "$ofile"
16074
13b2be9c 16075 ;;
20e95c23
DJ
16076 default-1 )
16077 for ac_file in $CONFIG_FILES; do
16078 # Support "outfile[:infile[:infile...]]"
16079 case "$ac_file" in
16080 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16081 esac
16082 # PO directories have a Makefile.in generated from Makefile.in.in.
16083 case "$ac_file" in */Makefile.in)
16084 # Adjust a relative srcdir.
16085 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16086 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16087 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16088 # In autoconf-2.13 it is called $ac_given_srcdir.
16089 # In autoconf-2.50 it is called $srcdir.
16090 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16091 case "$ac_given_srcdir" in
16092 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16093 /*) top_srcdir="$ac_given_srcdir" ;;
16094 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16095 esac
16096 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16097 rm -f "$ac_dir/POTFILES"
16098 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16099 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16100 POMAKEFILEDEPS="POTFILES.in"
16101 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16102 # on $ac_dir but don't depend on user-specified configuration
16103 # parameters.
16104 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16105 # The LINGUAS file contains the set of available languages.
16106 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16107 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16108 fi
16109 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16110 # Hide the ALL_LINGUAS assigment from automake.
16111 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16112 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16113 else
16114 # The set of available languages was given in configure.in.
16115 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16116 fi
16117 case "$ac_given_srcdir" in
16118 .) srcdirpre= ;;
16119 *) srcdirpre='$(srcdir)/' ;;
16120 esac
16121 POFILES=
16122 GMOFILES=
16123 UPDATEPOFILES=
16124 DUMMYPOFILES=
16125 for lang in $ALL_LINGUAS; do
16126 POFILES="$POFILES $srcdirpre$lang.po"
16127 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16128 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16129 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16130 done
16131 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16132 # environment variable.
16133 INST_LINGUAS=
16134 if test -n "$ALL_LINGUAS"; then
16135 for presentlang in $ALL_LINGUAS; do
16136 useit=no
16137 if test "%UNSET%" != "$LINGUAS"; then
16138 desiredlanguages="$LINGUAS"
16139 else
16140 desiredlanguages="$ALL_LINGUAS"
16141 fi
16142 for desiredlang in $desiredlanguages; do
16143 # Use the presentlang catalog if desiredlang is
16144 # a. equal to presentlang, or
16145 # b. a variant of presentlang (because in this case,
16146 # presentlang can be used as a fallback for messages
16147 # which are not translated in the desiredlang catalog).
16148 case "$desiredlang" in
16149 "$presentlang"*) useit=yes;;
16150 esac
16151 done
16152 if test $useit = yes; then
16153 INST_LINGUAS="$INST_LINGUAS $presentlang"
16154 fi
16155 done
16156 fi
16157 CATALOGS=
16158 if test -n "$INST_LINGUAS"; then
16159 for lang in $INST_LINGUAS; do
16160 CATALOGS="$CATALOGS $lang.gmo"
16161 done
16162 fi
16163 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16164 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16165 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16166 if test -f "$f"; then
16167 case "$f" in
16168 *.orig | *.bak | *~) ;;
16169 *) cat "$f" >> "$ac_dir/Makefile" ;;
16170 esac
16171 fi
16172 done
16173 fi
16174 ;;
16175 esac
16176 done ;;
13b2be9c 16177 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
16178 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16179 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16180 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16181 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16182 if test "x$cgen_cpu_prefix" != x ; then
16183 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16184 fi ;;
13b2be9c
DJ
16185 esac
16186done
16187_ACEOF
16188
16189cat >>$CONFIG_STATUS <<\_ACEOF
16190
16191{ (exit 0); exit 0; }
16192_ACEOF
252b5132 16193chmod +x $CONFIG_STATUS
13b2be9c
DJ
16194ac_clean_files=$ac_clean_files_save
16195
16196
16197# configure is writing to config.log, and then calls config.status.
16198# config.status does its own redirection, appending to config.log.
16199# Unfortunately, on DOS this fails, as config.log is still kept open
16200# by configure, so config.status won't be able to write to it; its
16201# output is simply discarded. So we exec the FD to /dev/null,
16202# effectively closing config.log, so it can be properly (re)opened and
16203# appended to by config.status. When coming back to configure, we
16204# need to make the FD available again.
16205if test "$no_create" != yes; then
16206 ac_cs_success=:
16207 ac_config_status_args=
16208 test "$silent" = yes &&
16209 ac_config_status_args="$ac_config_status_args --quiet"
16210 exec 5>/dev/null
16211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16212 exec 5>>config.log
16213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16214 # would make configure fail if this is the last instruction.
16215 $ac_cs_success || { (exit 1); exit 1; }
16216fi
252b5132 16217
This page took 1.451296 seconds and 4 git commands to generate.