* configure.ac: m4_include config/proginstall.m4.
[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 2654# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2655# Reject install programs that cannot install multiple files.
13b2be9c
DJ
2656echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2657echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2658if test -z "$INSTALL"; then
2659if test "${ac_cv_path_install+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 # Account for people who put trailing slashes in PATH elements.
2668case $as_dir/ in
2669 ./ | .// | /cC/* | \
2670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2671 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2672 /usr/ucb/* ) ;;
2673 *)
2674 # OSF1 and SCO ODT 3.0 have their own names for install.
2675 # Don't use installbsd from OSF since it installs stuff as root
2676 # by default.
2677 for ac_prog in ginstall scoinst install; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2679 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2680 if test $ac_prog = install &&
2681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682 # AIX install. It has an incompatible calling convention.
2683 :
2684 elif test $ac_prog = install &&
2685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # program-specific install script used by HP pwplus--don't use.
2687 :
2688 else
58c85be7
RW
2689 rm -rf conftest.one conftest.two conftest.dir
2690 echo one > conftest.one
2691 echo two > conftest.two
2692 mkdir conftest.dir
2693 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2694 test -s conftest.one && test -s conftest.two &&
2695 test -s conftest.dir/conftest.one &&
2696 test -s conftest.dir/conftest.two
2697 then
2698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2699 break 3
2700 fi
ab509236
L
2701 fi
2702 fi
13b2be9c
DJ
2703 done
2704 done
2705 ;;
2706esac
2707done
2708
58c85be7 2709rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2710
2711fi
2712 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2713 INSTALL=$ac_cv_path_install
252b5132 2714 else
58c85be7
RW
2715 # As a last resort, use the slow shell script. Don't cache a
2716 # value for INSTALL within a source directory, because that will
252b5132 2717 # break other packages using the cache if that directory is
58c85be7 2718 # removed, or if the value is a relative name.
13b2be9c 2719 INSTALL=$ac_install_sh
252b5132
RH
2720 fi
2721fi
13b2be9c
DJ
2722echo "$as_me:$LINENO: result: $INSTALL" >&5
2723echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2724
2725# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2726# It thinks the first close brace ends the variable substitution.
2727test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2728
13b2be9c 2729test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2730
2731test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2732
13b2be9c
DJ
2733echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2734echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2735# Just in case
2736sleep 1
13b2be9c 2737echo timestamp > conftest.file
252b5132
RH
2738# Do `set' in a subshell so we don't clobber the current shell's
2739# arguments. Must try -L first in case configure is actually a
2740# symlink; some systems play weird games with the mod time of symlinks
2741# (eg FreeBSD returns the mod time of the symlink's containing
2742# directory).
2743if (
13b2be9c 2744 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2745 if test "$*" = "X"; then
2746 # -L didn't work.
13b2be9c 2747 set X `ls -t $srcdir/configure conftest.file`
252b5132 2748 fi
13b2be9c
DJ
2749 rm -f conftest.file
2750 if test "$*" != "X $srcdir/configure conftest.file" \
2751 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2752
2753 # If neither matched, then we have a broken ls. This can happen
2754 # if, for instance, CONFIG_SHELL is bash and it inherits a
2755 # broken ls alias from the environment. This has actually
2756 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2757 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2758alias in your environment" >&5
2759echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2760alias in your environment" >&2;}
2761 { (exit 1); exit 1; }; }
252b5132
RH
2762 fi
2763
13b2be9c
DJ
2764 test "$2" = conftest.file
2765 )
2766then
2767 # Ok.
2768 :
2769else
2770 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2771Check your system clock" >&5
2772echo "$as_me: error: newly created file is older than distributed files!
2773Check your system clock" >&2;}
2774 { (exit 1); exit 1; }; }
2775fi
2776echo "$as_me:$LINENO: result: yes" >&5
2777echo "${ECHO_T}yes" >&6
2778test "$program_prefix" != NONE &&
2779 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2780# Use a double $ so make ignores it.
2781test "$program_suffix" != NONE &&
2782 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2783# Double any \ or $. echo might interpret backslashes.
2784# By default was `s,x,x', remove it if useless.
2785cat <<\_ACEOF >conftest.sed
2786s/[\\$]/&&/g;s/;s,x,x,$//
2787_ACEOF
2788program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2789rm conftest.sed
2790
13b2be9c
DJ
2791# expand $ac_aux_dir to an absolute path
2792am_aux_dir=`cd $ac_aux_dir && pwd`
2793
2794test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2795# Use eval to expand $SHELL
2796if eval "$MISSING --run true"; then
2797 am_missing_run="$MISSING --run "
2798else
2799 am_missing_run=
2800 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2801echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2802fi
2803
4b363073 2804if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2805 # We used to keeping the `.' as first argument, in order to
2806 # allow $(mkdir_p) to be used without argument. As in
ab509236 2807 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2808 # where $(somedir) is conditionally defined. However this is wrong
2809 # for two reasons:
2810 # 1. if the package is installed by a user who cannot write `.'
2811 # make install will fail,
2812 # 2. the above comment should most certainly read
2813 # $(mkdir_p) $(DESTDIR)$(somedir)
2814 # so it does not work when $(somedir) is undefined and
2815 # $(DESTDIR) is not.
2816 # To support the latter case, we have to write
2817 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2818 # so the `.' trick is pointless.
2819 mkdir_p='mkdir -p --'
ab509236
L
2820else
2821 # On NextStep and OpenStep, the `mkdir' command does not
2822 # recognize any option. It will interpret all options as
2823 # directories to create, and then abort because `.' already
2824 # exists.
4b363073 2825 for d in ./-p ./--version;
ab509236
L
2826 do
2827 test -d $d && rmdir $d
2828 done
2829 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2830 if test -f "$ac_aux_dir/mkinstalldirs"; then
2831 mkdir_p='$(mkinstalldirs)'
2832 else
2833 mkdir_p='$(install_sh) -d'
2834 fi
2835fi
2836
13b2be9c
DJ
2837for ac_prog in gawk mawk nawk awk
2838do
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840set dummy $ac_prog; ac_word=$2
2841echo "$as_me:$LINENO: checking for $ac_word" >&5
2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843if test "${ac_cv_prog_AWK+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846 if test -n "$AWK"; then
2847 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_AWK="$ac_prog"
2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860done
2861done
2862
2863fi
2864fi
2865AWK=$ac_cv_prog_AWK
2866if test -n "$AWK"; then
2867 echo "$as_me:$LINENO: result: $AWK" >&5
2868echo "${ECHO_T}$AWK" >&6
2869else
2870 echo "$as_me:$LINENO: result: no" >&5
2871echo "${ECHO_T}no" >&6
2872fi
2873
2874 test -n "$AWK" && break
2875done
2876
2877echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2878echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2879set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2880if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882else
2883 cat >conftest.make <<\_ACEOF
2884all:
2885 @echo 'ac_maketemp="$(MAKE)"'
2886_ACEOF
2887# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2888eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2889if test -n "$ac_maketemp"; then
2890 eval ac_cv_prog_make_${ac_make}_set=yes
2891else
2892 eval ac_cv_prog_make_${ac_make}_set=no
2893fi
2894rm -f conftest.make
2895fi
2896if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2897 echo "$as_me:$LINENO: result: yes" >&5
2898echo "${ECHO_T}yes" >&6
2899 SET_MAKE=
2900else
2901 echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903 SET_MAKE="MAKE=${MAKE-make}"
2904fi
2905
2906rm -rf .tst 2>/dev/null
2907mkdir .tst 2>/dev/null
2908if test -d .tst; then
2909 am__leading_dot=.
2910else
2911 am__leading_dot=_
2912fi
2913rmdir .tst 2>/dev/null
2914
2915DEPDIR="${am__leading_dot}deps"
2916
2917 ac_config_commands="$ac_config_commands depfiles"
2918
2919
2920am_make=${MAKE-make}
2921cat > confinc << 'END'
2922am__doit:
2923 @echo done
2924.PHONY: am__doit
2925END
2926# If we don't find an include directive, just comment out the code.
2927echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2928echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2929am__include="#"
2930am__quote=
2931_am_result=none
2932# First try GNU make style include.
2933echo "include confinc" > confmf
2934# We grep out `Entering directory' and `Leaving directory'
2935# messages which can occur if `w' ends up in MAKEFLAGS.
2936# In particular we don't look at `^make:' because GNU make might
2937# be invoked under some other name (usually "gmake"), in which
2938# case it prints its new name instead of `make'.
2939if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2940 am__include=include
2941 am__quote=
2942 _am_result=GNU
2943fi
2944# Now try BSD make style include.
2945if test "$am__include" = "#"; then
2946 echo '.include "confinc"' > confmf
2947 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2948 am__include=.include
2949 am__quote="\""
2950 _am_result=BSD
2951 fi
2952fi
2953
2954
2955echo "$as_me:$LINENO: result: $_am_result" >&5
2956echo "${ECHO_T}$_am_result" >&6
2957rm -f confinc confmf
2958
2959# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2960if test "${enable_dependency_tracking+set}" = set; then
2961 enableval="$enable_dependency_tracking"
2962
2963fi;
2964if test "x$enable_dependency_tracking" != xno; then
2965 am_depcomp="$ac_aux_dir/depcomp"
2966 AMDEPBACKSLASH='\'
2967fi
2968
2969
2970if test "x$enable_dependency_tracking" != xno; then
2971 AMDEP_TRUE=
2972 AMDEP_FALSE='#'
2973else
2974 AMDEP_TRUE='#'
2975 AMDEP_FALSE=
2976fi
2977
2978
2979
ab509236 2980# test to see if srcdir already configured
13b2be9c
DJ
2981if test "`cd $srcdir && pwd`" != "`pwd`" &&
2982 test -f $srcdir/config.status; then
2983 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2984echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2985 { (exit 1); exit 1; }; }
2986fi
2987
2988# test whether we have cygpath
2989if test -z "$CYGPATH_W"; then
2990 if (cygpath --version) >/dev/null 2>/dev/null; then
2991 CYGPATH_W='cygpath -w'
2992 else
2993 CYGPATH_W=echo
2994 fi
2995fi
2996
2997
2998# Define the identity of the package.
2999 PACKAGE=gas
3000 VERSION=${BFD_VERSION}
3001
3002
3003cat >>confdefs.h <<_ACEOF
3004#define PACKAGE "$PACKAGE"
3005_ACEOF
3006
3007
3008cat >>confdefs.h <<_ACEOF
3009#define VERSION "$VERSION"
3010_ACEOF
3011
3012# Some tools Automake needs.
3013
3014ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3015
3016
3017AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3018
3019
3020AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3021
3022
3023AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3024
3025
3026MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3027
13b2be9c
DJ
3028install_sh=${install_sh-"$am_aux_dir/install-sh"}
3029
3030# Installed binaries are usually stripped using `strip' when the user
3031# run `make install-strip'. However `strip' might not be the right
3032# tool to use in cross-compilation environments, therefore Automake
3033# will honor the `STRIP' environment variable to overrule this program.
3034if test "$cross_compiling" != no; then
3035 if test -n "$ac_tool_prefix"; then
3036 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3037set dummy ${ac_tool_prefix}strip; ac_word=$2
3038echo "$as_me:$LINENO: checking for $ac_word" >&5
3039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3040if test "${ac_cv_prog_STRIP+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042else
3043 if test -n "$STRIP"; then
3044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3045else
13b2be9c
DJ
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057done
3058done
3059
252b5132 3060fi
13b2be9c
DJ
3061fi
3062STRIP=$ac_cv_prog_STRIP
3063if test -n "$STRIP"; then
3064 echo "$as_me:$LINENO: result: $STRIP" >&5
3065echo "${ECHO_T}$STRIP" >&6
c8615825 3066else
13b2be9c
DJ
3067 echo "$as_me:$LINENO: result: no" >&5
3068echo "${ECHO_T}no" >&6
c8615825 3069fi
c8615825 3070
13b2be9c
DJ
3071fi
3072if test -z "$ac_cv_prog_STRIP"; then
3073 ac_ct_STRIP=$STRIP
3074 # Extract the first word of "strip", so it can be a program name with args.
3075set dummy strip; ac_word=$2
3076echo "$as_me:$LINENO: checking for $ac_word" >&5
3077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 3080else
13b2be9c
DJ
3081 if test -n "$ac_ct_STRIP"; then
3082 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3083else
13b2be9c
DJ
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_STRIP="strip"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095done
3096done
3097
3098 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3099fi
252b5132 3100fi
13b2be9c
DJ
3101ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3102if test -n "$ac_ct_STRIP"; then
3103 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3104echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3105else
13b2be9c
DJ
3106 echo "$as_me:$LINENO: result: no" >&5
3107echo "${ECHO_T}no" >&6
252b5132
RH
3108fi
3109
13b2be9c
DJ
3110 STRIP=$ac_ct_STRIP
3111else
3112 STRIP="$ac_cv_prog_STRIP"
3113fi
d6d788bd 3114
252b5132 3115fi
13b2be9c 3116INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3117
13b2be9c
DJ
3118# We need awk for the "check" target. The system "awk" is bad on
3119# some platforms.
8ea2b00f
AM
3120# Always define AMTAR for backward compatibility.
3121
3122AMTAR=${AMTAR-"${am_missing_run}tar"}
3123
3124am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3125
3126
252b5132 3127
d6d788bd 3128
13b2be9c 3129depcc="$CC" am_compiler_list=
d6d788bd 3130
13b2be9c
DJ
3131echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3132echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3133if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3135else
13b2be9c
DJ
3136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3137 # We make a subdir and do the tests there. Otherwise we can end up
3138 # making bogus files that we don't know about and never remove. For
3139 # instance it was reported that on HP-UX the gcc test will end up
3140 # making a dummy file named `D' -- because `-MD' means `put the output
3141 # in D'.
3142 mkdir conftest.dir
3143 # Copy depcomp to subdir because otherwise we won't find it if we're
3144 # using a relative directory.
3145 cp "$am_depcomp" conftest.dir
3146 cd conftest.dir
3147 # We will build objects and dependencies in a subdirectory because
3148 # it helps to detect inapplicable dependency modes. For instance
3149 # both Tru64's cc and ICC support -MD to output dependencies as a
3150 # side effect of compilation, but ICC will put the dependencies in
3151 # the current directory while Tru64 will put them in the object
3152 # directory.
3153 mkdir sub
252b5132 3154
13b2be9c
DJ
3155 am_cv_CC_dependencies_compiler_type=none
3156 if test "$am_compiler_list" = ""; then
3157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3158 fi
3159 for depmode in $am_compiler_list; do
3160 # Setup a source with many dependencies, because some compilers
3161 # like to wrap large dependency lists on column 80 (with \), and
3162 # we should not choose a depcomp mode which is confused by this.
3163 #
3164 # We need to recreate these files for each test, as the compiler may
3165 # overwrite some of them when testing with obscure command lines.
3166 # This happens at least with the AIX C compiler.
3167 : > sub/conftest.c
3168 for i in 1 2 3 4 5 6; do
3169 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3170 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3171 # Solaris 8's {/usr,}/bin/sh.
3172 touch sub/conftst$i.h
13b2be9c
DJ
3173 done
3174 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3175
3176 case $depmode in
3177 nosideeffect)
3178 # after this tag, mechanisms are not by side-effect, so they'll
3179 # only be used when explicitly requested
3180 if test "x$enable_dependency_tracking" = xyes; then
3181 continue
3182 else
3183 break
3184 fi
3185 ;;
3186 none) break ;;
3187 esac
3188 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3189 # mode. It turns out that the SunPro C++ compiler does not properly
3190 # handle `-M -o', and we need to detect this.
3191 if depmode=$depmode \
3192 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3194 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3195 >/dev/null 2>conftest.err &&
3196 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3197 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3198 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3199 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3200 # or remarks (even with -Werror). So we grep stderr for any message
3201 # that says an option was ignored or not supported.
3202 # When given -MP, icc 7.0 and 7.1 complain thusly:
3203 # icc: Command line warning: ignoring option '-M'; no argument required
3204 # The diagnosis changed in icc 8.0:
3205 # icc: Command line remark: option '-MP' not supported
3206 if (grep 'ignoring option' conftest.err ||
3207 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3208 am_cv_CC_dependencies_compiler_type=$depmode
3209 break
3210 fi
3211 fi
3212 done
252b5132 3213
13b2be9c
DJ
3214 cd ..
3215 rm -rf conftest.dir
252b5132 3216else
13b2be9c 3217 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3218fi
3219
252b5132 3220fi
13b2be9c
DJ
3221echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3222echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3223CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3224
13b2be9c
DJ
3225
3226
3227if
3228 test "x$enable_dependency_tracking" != xno \
3229 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3230 am__fastdepCC_TRUE=
3231 am__fastdepCC_FALSE='#'
252b5132 3232else
13b2be9c
DJ
3233 am__fastdepCC_TRUE='#'
3234 am__fastdepCC_FALSE=
252b5132
RH
3235fi
3236
d6d788bd
L
3237
3238
13b2be9c 3239
ce2cded5
L
3240ac_ext=c
3241ac_cpp='$CPP $CPPFLAGS'
3242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245if test -n "$ac_tool_prefix"; then
3246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3247set dummy ${ac_tool_prefix}gcc; ac_word=$2
3248echo "$as_me:$LINENO: checking for $ac_word" >&5
3249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250if test "${ac_cv_prog_CC+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3252else
ce2cded5
L
3253 if test -n "$CC"; then
3254 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3255else
ce2cded5
L
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267done
3268done
d7040cdb 3269
ce2cded5
L
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274 echo "$as_me:$LINENO: result: $CC" >&5
3275echo "${ECHO_T}$CC" >&6
bedf545c 3276else
ce2cded5
L
3277 echo "$as_me:$LINENO: result: no" >&5
3278echo "${ECHO_T}no" >&6
3279fi
d7040cdb 3280
ce2cded5
L
3281fi
3282if test -z "$ac_cv_prog_CC"; then
3283 ac_ct_CC=$CC
3284 # Extract the first word of "gcc", so it can be a program name with args.
3285set dummy gcc; ac_word=$2
3286echo "$as_me:$LINENO: checking for $ac_word" >&5
3287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
ce2cded5
L
3291 if test -n "$ac_ct_CC"; then
3292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3293else
d7040cdb
SE
3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH
3296do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
ce2cded5
L
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_ac_ct_CC="gcc"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
d7040cdb 3304 fi
ce2cded5 3305done
d7040cdb
SE
3306done
3307
ce2cded5
L
3308fi
3309fi
3310ac_ct_CC=$ac_cv_prog_ac_ct_CC
3311if test -n "$ac_ct_CC"; then
3312 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3313echo "${ECHO_T}$ac_ct_CC" >&6
3314else
3315 echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
d7040cdb
SE
3317fi
3318
ce2cded5
L
3319 CC=$ac_ct_CC
3320else
3321 CC="$ac_cv_prog_CC"
3322fi
d7040cdb 3323
ce2cded5
L
3324if test -z "$CC"; then
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3327set dummy ${ac_tool_prefix}cc; ac_word=$2
3328echo "$as_me:$LINENO: checking for $ac_word" >&5
3329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332else
ce2cded5
L
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3335else
ce2cded5
L
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_CC="${ac_tool_prefix}cc"
3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347done
3348done
d7040cdb 3349
252b5132
RH
3350fi
3351fi
ce2cded5
L
3352CC=$ac_cv_prog_CC
3353if test -n "$CC"; then
3354 echo "$as_me:$LINENO: result: $CC" >&5
3355echo "${ECHO_T}$CC" >&6
252b5132 3356else
13b2be9c
DJ
3357 echo "$as_me:$LINENO: result: no" >&5
3358echo "${ECHO_T}no" >&6
252b5132 3359fi
d7040cdb 3360
252b5132 3361fi
ce2cded5
L
3362if test -z "$ac_cv_prog_CC"; then
3363 ac_ct_CC=$CC
3364 # Extract the first word of "cc", so it can be a program name with args.
3365set dummy cc; ac_word=$2
d7040cdb
SE
3366echo "$as_me:$LINENO: checking for $ac_word" >&5
3367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3368if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13b2be9c 3369 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3370else
ce2cded5
L
3371 if test -n "$ac_ct_CC"; then
3372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3381 ac_cv_prog_ac_ct_CC="cc"
d7040cdb
SE
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385done
3386done
ac48eca1 3387
d7040cdb
SE
3388fi
3389fi
ce2cded5
L
3390ac_ct_CC=$ac_cv_prog_ac_ct_CC
3391if test -n "$ac_ct_CC"; then
3392 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3393echo "${ECHO_T}$ac_ct_CC" >&6
3394else
3395 echo "$as_me:$LINENO: result: no" >&5
d7040cdb
SE
3396echo "${ECHO_T}no" >&6
3397fi
f9c19112 3398
ce2cded5
L
3399 CC=$ac_ct_CC
3400else
3401 CC="$ac_cv_prog_CC"
3402fi
3403
3404fi
3405if test -z "$CC"; then
3406 # Extract the first word of "cc", so it can be a program name with args.
3407set dummy cc; ac_word=$2
3408echo "$as_me:$LINENO: checking for $ac_word" >&5
3409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3410if test "${ac_cv_prog_CC+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412else
3413 if test -n "$CC"; then
3414 ac_cv_prog_CC="$CC" # Let the user override the test.
3415else
3416 ac_prog_rejected=no
3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418for as_dir in $PATH
3419do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3425 ac_prog_rejected=yes
3426 continue
3427 fi
3428 ac_cv_prog_CC="cc"
3429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432done
3433done
3434
3435if test $ac_prog_rejected = yes; then
3436 # We found a bogon in the path, so make sure we never use it.
3437 set dummy $ac_cv_prog_CC
3438 shift
3439 if test $# != 0; then
3440 # We chose a different compiler from the bogus one.
3441 # However, it has the same basename, so the bogon will be chosen
3442 # first if we set CC to just the basename; use the full file name.
3443 shift
3444 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3445 fi
3446fi
3447fi
3448fi
3449CC=$ac_cv_prog_CC
3450if test -n "$CC"; then
3451 echo "$as_me:$LINENO: result: $CC" >&5
3452echo "${ECHO_T}$CC" >&6
3453else
3454 echo "$as_me:$LINENO: result: no" >&5
3455echo "${ECHO_T}no" >&6
3456fi
3457
3458fi
3459if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 for ac_prog in cl
3462 do
3463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3464set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3465echo "$as_me:$LINENO: checking for $ac_word" >&5
3466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467if test "${ac_cv_prog_CC+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3472else
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484done
3485done
3486
3487fi
3488fi
3489CC=$ac_cv_prog_CC
3490if test -n "$CC"; then
3491 echo "$as_me:$LINENO: result: $CC" >&5
3492echo "${ECHO_T}$CC" >&6
3493else
3494 echo "$as_me:$LINENO: result: no" >&5
3495echo "${ECHO_T}no" >&6
3496fi
3497
3498 test -n "$CC" && break
d7040cdb
SE
3499 done
3500fi
ce2cded5
L
3501if test -z "$CC"; then
3502 ac_ct_CC=$CC
3503 for ac_prog in cl
d7040cdb
SE
3504do
3505 # Extract the first word of "$ac_prog", so it can be a program name with args.
3506set dummy $ac_prog; ac_word=$2
3507echo "$as_me:$LINENO: checking for $ac_word" >&5
3508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3509if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
ce2cded5
L
3512 if test -n "$ac_ct_CC"; then
3513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3522 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
ac48eca1 3525 fi
d7040cdb
SE
3526done
3527done
ac48eca1 3528
d7040cdb
SE
3529fi
3530fi
ce2cded5
L
3531ac_ct_CC=$ac_cv_prog_ac_ct_CC
3532if test -n "$ac_ct_CC"; then
3533 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3534echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3535else
3536 echo "$as_me:$LINENO: result: no" >&5
3537echo "${ECHO_T}no" >&6
3538fi
ac48eca1 3539
ce2cded5 3540 test -n "$ac_ct_CC" && break
d7040cdb 3541done
ac48eca1 3542
ce2cded5 3543 CC=$ac_ct_CC
d7040cdb 3544fi
ac48eca1 3545
d7040cdb 3546fi
ac48eca1 3547
ac48eca1 3548
ce2cded5
L
3549test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3550See \`config.log' for more details." >&5
3551echo "$as_me: error: no acceptable C compiler found in \$PATH
3552See \`config.log' for more details." >&2;}
3553 { (exit 1); exit 1; }; }
6be7c12c 3554
ce2cded5
L
3555# Provide some information about the compiler.
3556echo "$as_me:$LINENO:" \
3557 "checking for C compiler version" >&5
3558ac_compiler=`set X $ac_compile; echo $2`
3559{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3560 (eval $ac_compiler --version </dev/null >&5) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }
3564{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3565 (eval $ac_compiler -v </dev/null >&5) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }
3569{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3570 (eval $ac_compiler -V </dev/null >&5) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }
ac48eca1 3574
ce2cded5
L
3575echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3576echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3577if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579else
ce2cded5
L
3580 cat >conftest.$ac_ext <<_ACEOF
3581/* confdefs.h. */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h. */
c8615825 3586
ce2cded5
L
3587int
3588main ()
3589{
3590#ifndef __GNUC__
3591 choke me
3592#endif
3593
3594 ;
3595 return 0;
3596}
3597_ACEOF
3598rm -f conftest.$ac_objext
3599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600 (eval $ac_compile) 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -z "$ac_c_werror_flag"
3608 || test ! -s conftest.err'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; } &&
3614 { ac_try='test -s conftest.$ac_objext'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3620 ac_compiler_gnu=yes
d7040cdb 3621else
ce2cded5
L
3622 echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625ac_compiler_gnu=no
d7040cdb 3626fi
ce2cded5
L
3627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3629
ce2cded5
L
3630fi
3631echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3632echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3633GCC=`test $ac_compiler_gnu = yes && echo yes`
3634ac_test_CFLAGS=${CFLAGS+set}
3635ac_save_CFLAGS=$CFLAGS
3636CFLAGS="-g"
3637echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3638echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3639if test "${ac_cv_prog_cc_g+set}" = set; then
d70c5fc7
NC
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
ce2cded5
L
3642 cat >conftest.$ac_ext <<_ACEOF
3643/* confdefs.h. */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h. */
d7040cdb 3648
ce2cded5
L
3649int
3650main ()
3651{
d7040cdb 3652
ce2cded5
L
3653 ;
3654 return 0;
3655}
3656_ACEOF
3657rm -f conftest.$ac_objext
3658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_cv_prog_cc_g=yes
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
d70c5fc7 3683
ce2cded5 3684ac_cv_prog_cc_g=no
d70c5fc7 3685fi
ce2cded5 3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 3687fi
ce2cded5
L
3688echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3689echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3690if test "$ac_test_CFLAGS" = set; then
3691 CFLAGS=$ac_save_CFLAGS
3692elif test $ac_cv_prog_cc_g = yes; then
3693 if test "$GCC" = yes; then
3694 CFLAGS="-g -O2"
3695 else
3696 CFLAGS="-g"
3697 fi
ac48eca1 3698else
ce2cded5
L
3699 if test "$GCC" = yes; then
3700 CFLAGS="-O2"
3701 else
3702 CFLAGS=
3703 fi
ac48eca1 3704fi
ce2cded5
L
3705echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3706echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3707if test "${ac_cv_prog_cc_stdc+set}" = set; then
13b2be9c 3708 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3709else
ce2cded5
L
3710 ac_cv_prog_cc_stdc=no
3711ac_save_CC=$CC
3712cat >conftest.$ac_ext <<_ACEOF
3713/* confdefs.h. */
3714_ACEOF
3715cat confdefs.h >>conftest.$ac_ext
3716cat >>conftest.$ac_ext <<_ACEOF
3717/* end confdefs.h. */
3718#include <stdarg.h>
3719#include <stdio.h>
3720#include <sys/types.h>
3721#include <sys/stat.h>
3722/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3723struct buf { int x; };
3724FILE * (*rcsopen) (struct buf *, struct stat *, int);
3725static char *e (p, i)
3726 char **p;
3727 int i;
3728{
3729 return p[i];
3730}
3731static char *f (char * (*g) (char **, int), char **p, ...)
3732{
3733 char *s;
3734 va_list v;
3735 va_start (v,p);
3736 s = g (p, va_arg (v,int));
3737 va_end (v);
3738 return s;
3739}
3740
3741/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3742 function prototypes and stuff, but not '\xHH' hex character constants.
3743 These don't provoke an error unfortunately, instead are silently treated
3744 as 'x'. The following induces an error, until -std1 is added to get
3745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3746 array size at least. It's necessary to write '\x00'==0 to get something
3747 that's true only with -std1. */
3748int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3749
3750int test (int i, double x);
3751struct s1 {int (*f) (int a);};
3752struct s2 {int (*f) (double a);};
3753int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3754int argc;
3755char **argv;
3756int
3757main ()
3758{
3759return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3760 ;
3761 return 0;
3762}
3763_ACEOF
3764# Don't try gcc -ansi; that turns off useful extensions and
3765# breaks some systems' header files.
3766# AIX -qlanglvl=ansi
3767# Ultrix and OSF/1 -std1
3768# HP-UX 10.20 and later -Ae
3769# HP-UX older versions -Aa -D_HPUX_SOURCE
3770# SVR4 -Xc -D__EXTENSIONS__
3771for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3772do
3773 CC="$ac_save_CC $ac_arg"
3774 rm -f conftest.$ac_objext
3775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776 (eval $ac_compile) 2>conftest.er1
3777 ac_status=$?
3778 grep -v '^ *+' conftest.er1 >conftest.err
3779 rm -f conftest.er1
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -z "$ac_c_werror_flag"
3784 || test ! -s conftest.err'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try='test -s conftest.$ac_objext'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 ac_cv_prog_cc_stdc=$ac_arg
3797break
3798else
3799 echo "$as_me: failed program was:" >&5
3800sed 's/^/| /' conftest.$ac_ext >&5
3801
3802fi
3803rm -f conftest.err conftest.$ac_objext
3804done
3805rm -f conftest.$ac_ext conftest.$ac_objext
3806CC=$ac_save_CC
3807
3808fi
3809
3810case "x$ac_cv_prog_cc_stdc" in
3811 x|xno)
3812 echo "$as_me:$LINENO: result: none needed" >&5
3813echo "${ECHO_T}none needed" >&6 ;;
3814 *)
3815 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3816echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3817 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
3818esac
3819
ce2cded5
L
3820# Some people use a C++ compiler to compile C. Since we use `exit',
3821# in C++ we need to declare it. In case someone uses the same compiler
3822# for both compiling C and C++ we need to have the C++ compiler decide
3823# the declaration of exit, since it's the most demanding environment.
3824cat >conftest.$ac_ext <<_ACEOF
3825#ifndef __cplusplus
3826 choke me
3827#endif
3828_ACEOF
3829rm -f conftest.$ac_objext
3830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 for ac_declaration in \
3852 '' \
3853 'extern "C" void std::exit (int) throw (); using std::exit;' \
3854 'extern "C" void std::exit (int); using std::exit;' \
3855 'extern "C" void exit (int) throw ();' \
3856 'extern "C" void exit (int);' \
3857 'void exit (int);'
3858do
3859 cat >conftest.$ac_ext <<_ACEOF
3860/* confdefs.h. */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
3864/* end confdefs.h. */
3865$ac_declaration
3866#include <stdlib.h>
3867int
3868main ()
3869{
3870exit (42);
3871 ;
3872 return 0;
3873}
3874_ACEOF
3875rm -f conftest.$ac_objext
3876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -z "$ac_c_werror_flag"
3885 || test ! -s conftest.err'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 (eval $ac_try) 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 :
3898else
3899 echo "$as_me: failed program was:" >&5
3900sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3901
ce2cded5
L
3902continue
3903fi
3904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3905 cat >conftest.$ac_ext <<_ACEOF
3906/* confdefs.h. */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h. */
3911$ac_declaration
3912int
3913main ()
3914{
3915exit (42);
3916 ;
3917 return 0;
3918}
3919_ACEOF
3920rm -f conftest.$ac_objext
3921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922 (eval $ac_compile) 2>conftest.er1
3923 ac_status=$?
3924 grep -v '^ *+' conftest.er1 >conftest.err
3925 rm -f conftest.er1
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -z "$ac_c_werror_flag"
3930 || test ! -s conftest.err'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; } &&
3936 { ac_try='test -s conftest.$ac_objext'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 (eval $ac_try) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3942 break
3943else
3944 echo "$as_me: failed program was:" >&5
3945sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3946
ce2cded5
L
3947fi
3948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3949done
3950rm -f conftest*
3951if test -n "$ac_declaration"; then
3952 echo '#ifdef __cplusplus' >>confdefs.h
3953 echo $ac_declaration >>confdefs.h
3954 echo '#endif' >>confdefs.h
3955fi
d7040cdb 3956
ce2cded5
L
3957else
3958 echo "$as_me: failed program was:" >&5
3959sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3960
ce2cded5
L
3961fi
3962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3963ac_ext=c
3964ac_cpp='$CPP $CPPFLAGS'
3965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
3968
3969
ce2cded5
L
3970cat >>confdefs.h <<\_ACEOF
3971#define _GNU_SOURCE 1
3972_ACEOF
d7040cdb
SE
3973
3974
3975
d7040cdb 3976
d7040cdb 3977
ce2cded5
L
3978macro_version='2.1a'
3979macro_revision='1.2435'
d7040cdb 3980
d7040cdb 3981
d7040cdb 3982
d7040cdb 3983
d7040cdb 3984
d7040cdb 3985
d7040cdb 3986
ac48eca1 3987
ac48eca1 3988
ac48eca1 3989
ac48eca1 3990
d7040cdb 3991
ce2cded5 3992ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 3993
ce2cded5 3994# Set options
ac48eca1 3995
ce2cded5 3996enable_dlopen=no
d7040cdb 3997
d7040cdb 3998
ce2cded5 3999enable_win32_dll=no
d7040cdb 4000
d7040cdb 4001
ce2cded5
L
4002# Check whether --enable-shared or --disable-shared was given.
4003if test "${enable_shared+set}" = set; then
4004 enableval="$enable_shared"
4005 p=${PACKAGE-default}
4006 case $enableval in
4007 yes) enable_shared=yes ;;
4008 no) enable_shared=no ;;
4009 *)
4010 enable_shared=no
4011 # Look at the argument we got. We use all the common list separators.
4012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4013 for pkg in $enableval; do
4014 IFS="$lt_save_ifs"
4015 if test "X$pkg" = "X$p"; then
4016 enable_shared=yes
4017 fi
4018 done
4019 IFS="$lt_save_ifs"
4020 ;;
4021 esac
4022else
4023 enable_shared=yes
4024fi;
d7040cdb 4025
d7040cdb 4026
ac48eca1 4027
d7040cdb
SE
4028
4029
4030
4031
4032
ce2cded5
L
4033# Check whether --enable-static or --disable-static was given.
4034if test "${enable_static+set}" = set; then
4035 enableval="$enable_static"
4036 p=${PACKAGE-default}
4037 case $enableval in
4038 yes) enable_static=yes ;;
4039 no) enable_static=no ;;
4040 *)
4041 enable_static=no
4042 # Look at the argument we got. We use all the common list separators.
4043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4044 for pkg in $enableval; do
4045 IFS="$lt_save_ifs"
4046 if test "X$pkg" = "X$p"; then
4047 enable_static=yes
4048 fi
4049 done
4050 IFS="$lt_save_ifs"
4051 ;;
4052 esac
4053else
4054 enable_static=yes
4055fi;
d7040cdb
SE
4056
4057
4058
4059
4060
4061
4062
ce2cded5
L
4063
4064
4065# Check whether --with-pic or --without-pic was given.
4066if test "${with_pic+set}" = set; then
4067 withval="$with_pic"
4068 pic_mode="$withval"
ac48eca1 4069else
ce2cded5
L
4070 pic_mode=default
4071fi;
13b2be9c 4072
ce2cded5
L
4073test -z "$pic_mode" && pic_mode=default
4074
4075
4076
4077
4078
4079
4080
4081# Check whether --enable-fast-install or --disable-fast-install was given.
4082if test "${enable_fast_install+set}" = set; then
4083 enableval="$enable_fast_install"
4084 p=${PACKAGE-default}
4085 case $enableval in
4086 yes) enable_fast_install=yes ;;
4087 no) enable_fast_install=no ;;
4088 *)
4089 enable_fast_install=no
4090 # Look at the argument we got. We use all the common list separators.
4091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4092 for pkg in $enableval; do
4093 IFS="$lt_save_ifs"
4094 if test "X$pkg" = "X$p"; then
4095 enable_fast_install=yes
4096 fi
4097 done
4098 IFS="$lt_save_ifs"
4099 ;;
4100 esac
ac48eca1 4101else
ce2cded5
L
4102 enable_fast_install=yes
4103fi;
ac48eca1 4104
ce2cded5
L
4105
4106
4107
4108
4109
4110
4111
4112echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4113echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4114if test "${lt_cv_path_SED+set}" = set; then
13b2be9c 4115 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 4116else
ce2cded5
L
4117 # Loop through the user's path and test for sed and gsed.
4118# Then use that list of sed's as ones to test for truncation.
13b2be9c
DJ
4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH
4121do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
ce2cded5
L
4124 for lt_ac_prog in sed gsed; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4127 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4128 fi
4129 done
4130 done
13b2be9c 4131done
ce2cded5
L
4132IFS=$as_save_IFS
4133lt_ac_max=0
4134lt_ac_count=0
4135# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4136# along with /bin/sed that truncates output.
4137for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4138 test ! -f $lt_ac_sed && continue
4139 cat /dev/null > conftest.in
4140 lt_ac_count=0
4141 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4142 # Check for GNU sed and select it if it is found.
4143 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4144 lt_cv_path_SED=$lt_ac_sed
4145 break
4146 fi
4147 while true; do
4148 cat conftest.in conftest.in >conftest.tmp
4149 mv conftest.tmp conftest.in
4150 cp conftest.in conftest.nl
4151 echo >>conftest.nl
4152 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4153 cmp -s conftest.out conftest.nl || break
4154 # 10000 chars as input seems more than enough
4155 test $lt_ac_count -gt 10 && break
4156 lt_ac_count=`expr $lt_ac_count + 1`
4157 if test $lt_ac_count -gt $lt_ac_max; then
4158 lt_ac_max=$lt_ac_count
4159 lt_cv_path_SED=$lt_ac_sed
4160 fi
4161 done
13b2be9c
DJ
4162done
4163
ac48eca1
AO
4164fi
4165
ce2cded5 4166SED=$lt_cv_path_SED
ac48eca1 4167
ce2cded5
L
4168echo "$as_me:$LINENO: result: $SED" >&5
4169echo "${ECHO_T}$SED" >&6
d7040cdb 4170
ce2cded5
L
4171test -z "$SED" && SED=sed
4172Xsed="$SED -e 1s/^X//"
d7040cdb
SE
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
13b2be9c 4183
ce2cded5
L
4184echo "$as_me:$LINENO: checking for egrep" >&5
4185echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4186if test "${ac_cv_prog_egrep+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4188else
ce2cded5
L
4189 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4190 then ac_cv_prog_egrep='grep -E'
4191 else ac_cv_prog_egrep='egrep'
4192 fi
ac48eca1 4193fi
ce2cded5
L
4194echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4195echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4196 EGREP=$ac_cv_prog_egrep
ac48eca1 4197
13b2be9c 4198
ce2cded5
L
4199echo "$as_me:$LINENO: checking for fgrep" >&5
4200echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4201if test "${ac_cv_prog_fgrep+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 4203else
ce2cded5
L
4204 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4205 then ac_cv_prog_fgrep='grep -F'
4206 else ac_cv_prog_fgrep='fgrep'
4207 fi
d6d788bd 4208fi
ce2cded5
L
4209echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4210echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4211 FGREP=$ac_cv_prog_fgrep
d6d788bd 4212
d6d788bd 4213
ce2cded5 4214test -z "$GREP" && GREP=grep
252b5132 4215
252b5132 4216
d6d788bd 4217
a74801ba 4218
a74801ba 4219
13b2be9c 4220
252b5132 4221
4867be41 4222
ce2cded5
L
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234# Check whether --with-gnu-ld or --without-gnu-ld was given.
4235if test "${with_gnu_ld+set}" = set; then
4236 withval="$with_gnu_ld"
4237 test "$withval" = no || with_gnu_ld=yes
4238else
4239 with_gnu_ld=no
4240fi;
4241ac_prog=ld
4242if test "$GCC" = yes; then
4243 # Check if gcc -print-prog-name=ld gives a path.
4244 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4245echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4246 case $host in
4247 *-*-mingw*)
4248 # gcc leaves a trailing carriage return which upsets mingw
4249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4250 *)
4251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4252 esac
4253 case $ac_prog in
4254 # Accept absolute paths.
4255 [\\/]* | ?:[\\/]*)
4256 re_direlt='/[^/][^/]*/\.\./'
4257 # Canonicalize the pathname of ld
4258 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4259 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4260 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4261 done
4262 test -z "$LD" && LD="$ac_prog"
4263 ;;
4264 "")
4265 # If it fails, then pretend we aren't using GCC.
4266 ac_prog=ld
4267 ;;
4268 *)
4269 # If it is relative, then search for the first ld in PATH.
4270 with_gnu_ld=unknown
4271 ;;
4272 esac
4273elif test "$with_gnu_ld" = yes; then
4274 echo "$as_me:$LINENO: checking for GNU ld" >&5
4275echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4276else
4277 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4278echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4279fi
4280if test "${lt_cv_path_LD+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
4283 if test -z "$LD"; then
4284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4285 for ac_dir in $PATH; do
4286 IFS="$lt_save_ifs"
4287 test -z "$ac_dir" && ac_dir=.
4288 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4289 lt_cv_path_LD="$ac_dir/$ac_prog"
4290 # Check to see if the program is GNU ld. I'd rather use --version,
4291 # but apparently some variants of GNU ld only accept -v.
4292 # Break only if it was the GNU/non-GNU ld that we prefer.
4293 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4294 *GNU* | *'with BFD'*)
4295 test "$with_gnu_ld" != no && break
4296 ;;
4297 *)
4298 test "$with_gnu_ld" != yes && break
4299 ;;
4300 esac
4301 fi
4302 done
4303 IFS="$lt_save_ifs"
4304else
4305 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4306fi
4307fi
4308
4309LD="$lt_cv_path_LD"
4310if test -n "$LD"; then
4311 echo "$as_me:$LINENO: result: $LD" >&5
4312echo "${ECHO_T}$LD" >&6
4313else
4314 echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
4316fi
4317test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4318echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4319 { (exit 1); exit 1; }; }
4320echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4321echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4322if test "${lt_cv_prog_gnu_ld+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324else
4325 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4326case `$LD -v 2>&1 </dev/null` in
4327*GNU* | *'with BFD'*)
4328 lt_cv_prog_gnu_ld=yes
4329 ;;
4330*)
4331 lt_cv_prog_gnu_ld=no
4332 ;;
4333esac
4334fi
4335echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4336echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4337with_gnu_ld=$lt_cv_prog_gnu_ld
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4349echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4350if test "${lt_cv_path_NM+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353 if test -n "$NM"; then
4354 # Let the user override the test.
4355 lt_cv_path_NM="$NM"
4356else
4357 lt_nm_to_check="${ac_tool_prefix}nm"
4358 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4359 lt_nm_to_check="$lt_nm_to_check nm"
4360 fi
4361 for lt_tmp_nm in $lt_nm_to_check; do
4362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4363 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4364 IFS="$lt_save_ifs"
4365 test -z "$ac_dir" && ac_dir=.
4366 tmp_nm="$ac_dir/$lt_tmp_nm"
4367 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4368 # Check to see if the nm accepts a BSD-compat flag.
4369 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4370 # nm: unknown option "B" ignored
4371 # Tru64's nm complains that /dev/null is an invalid object file
4372 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4373 */dev/null* | *'Invalid file or object type'*)
4374 lt_cv_path_NM="$tmp_nm -B"
4375 break
4376 ;;
4377 *)
4378 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4379 */dev/null*)
4380 lt_cv_path_NM="$tmp_nm -p"
4381 break
4382 ;;
4383 *)
4384 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4385 continue # so that we can try to find one that supports BSD flags
4386 ;;
4387 esac
4388 ;;
4389 esac
4390 fi
4391 done
4392 IFS="$lt_save_ifs"
4393 done
4394 : ${lt_cv_path_NM=no}
4395fi
4396fi
4397echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4398echo "${ECHO_T}$lt_cv_path_NM" >&6
4399if test "$lt_cv_path_NM" != "no"; then
4400 NM="$lt_cv_path_NM"
4401else
4402 # Didn't find any BSD compatible name lister, look for dumpbin.
4403 if test -n "$ac_tool_prefix"; then
4404 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4405 do
4406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4407set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d7040cdb
SE
4408echo "$as_me:$LINENO: checking for $ac_word" >&5
4409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 4410if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d7040cdb
SE
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412else
ce2cded5
L
4413 if test -n "$DUMPBIN"; then
4414 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
4415else
4416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4423 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
d7040cdb
SE
4424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
d70c5fc7 4426 fi
d7040cdb
SE
4427done
4428done
d70c5fc7 4429
d7040cdb
SE
4430fi
4431fi
ce2cded5
L
4432DUMPBIN=$ac_cv_prog_DUMPBIN
4433if test -n "$DUMPBIN"; then
4434 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4435echo "${ECHO_T}$DUMPBIN" >&6
bedf545c 4436else
d7040cdb
SE
4437 echo "$as_me:$LINENO: result: no" >&5
4438echo "${ECHO_T}no" >&6
4439fi
13b2be9c 4440
ce2cded5
L
4441 test -n "$DUMPBIN" && break
4442 done
4443fi
4444if test -z "$DUMPBIN"; then
4445 ac_ct_DUMPBIN=$DUMPBIN
4446 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4447do
4448 # Extract the first word of "$ac_prog", so it can be a program name with args.
4449set dummy $ac_prog; ac_word=$2
4450echo "$as_me:$LINENO: checking for $ac_word" >&5
4451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4452if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 4454else
ce2cded5
L
4455 if test -n "$ac_ct_DUMPBIN"; then
4456 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4457else
4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4468 fi
4469done
4470done
4471
4472fi
4473fi
4474ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4475if test -n "$ac_ct_DUMPBIN"; then
4476 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4477echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4478else
4479 echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6
d7040cdb
SE
4481fi
4482
ce2cded5
L
4483 test -n "$ac_ct_DUMPBIN" && break
4484done
4485test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
13b2be9c 4486
ce2cded5
L
4487 DUMPBIN=$ac_ct_DUMPBIN
4488fi
13b2be9c 4489
bedf545c 4490
ce2cded5
L
4491 if test "$DUMPBIN" != ":"; then
4492 NM="$DUMPBIN"
4493 fi
4494fi
4495test -z "$NM" && NM=nm
6840198f 4496
13b2be9c 4497
ac48eca1 4498
d7040cdb 4499
ce2cded5
L
4500
4501
4502echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4503echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4504if test "${lt_cv_nm_interface+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507 lt_cv_nm_interface="BSD nm"
4508 echo "int some_variable = 0;" > conftest.$ac_ext
58c85be7 4509 (eval echo "\"\$as_me:4509: $ac_compile\"" >&5)
ce2cded5
L
4510 (eval "$ac_compile" 2>conftest.err)
4511 cat conftest.err >&5
58c85be7 4512 (eval echo "\"\$as_me:4512: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
4513 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4514 cat conftest.err >&5
58c85be7 4515 (eval echo "\"\$as_me:4515: output\"" >&5)
ce2cded5
L
4516 cat conftest.out >&5
4517 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4518 lt_cv_nm_interface="MS dumpbin"
4519 fi
4520 rm -f conftest*
4521fi
4522echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4523echo "${ECHO_T}$lt_cv_nm_interface" >&6
4524
4525echo "$as_me:$LINENO: checking whether ln -s works" >&5
4526echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4527LN_S=$as_ln_s
4528if test "$LN_S" = "ln -s"; then
4529 echo "$as_me:$LINENO: result: yes" >&5
4530echo "${ECHO_T}yes" >&6
4531else
4532 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4533echo "${ECHO_T}no, using $LN_S" >&6
4534fi
4535
4536# find the maximum length of command line arguments
4537echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4538echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4539if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541else
4542 i=0
4543 teststring="ABCD"
4544
4545 case $build_os in
4546 msdosdjgpp*)
4547 # On DJGPP, this test can blow up pretty badly due to problems in libc
4548 # (any single argument exceeding 2000 bytes causes a buffer overrun
4549 # during glob expansion). Even if it were fixed, the result of this
4550 # check would be larger than it should be.
4551 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4552 ;;
4553
4554 gnu*)
4555 # Under GNU Hurd, this test is not required because there is
4556 # no limit to the length of command line arguments.
4557 # Libtool will interpret -1 as no limit whatsoever
4558 lt_cv_sys_max_cmd_len=-1;
4559 ;;
4560
4561 cygwin* | mingw*)
4562 # On Win9x/ME, this test blows up -- it succeeds, but takes
4563 # about 5 minutes as the teststring grows exponentially.
4564 # Worse, since 9x/ME are not pre-emptively multitasking,
4565 # you end up with a "frozen" computer, even though with patience
4566 # the test eventually succeeds (with a max line length of 256k).
4567 # Instead, let's just punt: use the minimum linelength reported by
4568 # all of the supported platforms: 8192 (on NT/2K/XP).
4569 lt_cv_sys_max_cmd_len=8192;
4570 ;;
4571
4572 amigaos*)
4573 # On AmigaOS with pdksh, this test takes hours, literally.
4574 # So we just punt and use a minimum line length of 8192.
4575 lt_cv_sys_max_cmd_len=8192;
4576 ;;
4577
4578 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4579 # This has been around since 386BSD, at least. Likely further.
4580 if test -x /sbin/sysctl; then
4581 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4582 elif test -x /usr/sbin/sysctl; then
4583 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4584 else
4585 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4586 fi
4587 # And add a safety zone
4588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4590 ;;
4591
4592 interix*)
4593 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4594 lt_cv_sys_max_cmd_len=196608
4595 ;;
4596
4597 osf*)
4598 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4599 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4600 # nice to cause kernel panics so lets avoid the loop below.
4601 # First set a reasonable default.
4602 lt_cv_sys_max_cmd_len=16384
4603 #
4604 if test -x /sbin/sysconfig; then
4605 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4606 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4607 esac
4608 fi
4609 ;;
4610 sco3.2v5*)
4611 lt_cv_sys_max_cmd_len=102400
4612 ;;
4613 sysv5* | sco5v6* | sysv4.2uw2*)
4614 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4615 if test -n "$kargmax"; then
4616 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4617 else
4618 lt_cv_sys_max_cmd_len=32768
4619 fi
d7040cdb
SE
4620 ;;
4621 *)
ce2cded5
L
4622 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4623 if test -n $lt_cv_sys_max_cmd_len; then
4624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4626 else
4627 # Make teststring a little bigger before we do anything with it.
4628 # a 1K string should be a reasonable start.
4629 for i in 1 2 3 4 5 6 7 8 ; do
4630 teststring=$teststring$teststring
4631 done
4632 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4633 # If test is not a shell built-in, we'll probably end up computing a
4634 # maximum length that is only half of the actual maximum length, but
4635 # we can't tell.
4636 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4637 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4638 test $i != 17 # 1/2 MB should be enough
4639 do
4640 i=`expr $i + 1`
4641 teststring=$teststring$teststring
4642 done
4643 # Only check the string length outside the loop.
4644 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4645 teststring=
4646 # Add a significant safety factor because C++ compilers can tack on
4647 # massive amounts of additional arguments before passing them to the
4648 # linker. It appears as though 1/2 is a usable value.
4649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4650 fi
d7040cdb
SE
4651 ;;
4652 esac
252b5132 4653
ce2cded5 4654fi
d6d788bd 4655
ce2cded5
L
4656if test -n $lt_cv_sys_max_cmd_len ; then
4657 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4658echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4659else
4660 echo "$as_me:$LINENO: result: none" >&5
4661echo "${ECHO_T}none" >&6
4662fi
4663max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4664
d6d788bd 4665
13b2be9c 4666
13b2be9c 4667
bedf545c 4668
252b5132 4669
bedf545c 4670
ce2cded5
L
4671: ${CP="cp -f"}
4672: ${MV="mv -f"}
4673: ${RM="rm -f"}
d6d788bd 4674
ce2cded5
L
4675echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4676echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4677# Try some XSI features
4678xsi_shell=no
4679( _lt_dummy="a/b/c"
4680 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4681 = c,a/b,, ) >/dev/null 2>&1 \
4682 && xsi_shell=yes
4683echo "$as_me:$LINENO: result: $xsi_shell" >&5
4684echo "${ECHO_T}$xsi_shell" >&6
bedf545c 4685
bedf545c 4686
ce2cded5
L
4687echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4688echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4689lt_shell_append=no
4690( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4691 >/dev/null 2>&1 \
4692 && lt_shell_append=yes
4693echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4694echo "${ECHO_T}$lt_shell_append" >&6
252b5132 4695
d6d788bd 4696
ce2cded5
L
4697if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4698 lt_unset=unset
4699else
4700 lt_unset=false
4701fi
13b2be9c
DJ
4702
4703
4704
4705
d6d788bd 4706
ce2cded5
L
4707# test EBCDIC or ASCII
4708case `echo X|tr X '\101'` in
4709 A) # ASCII based system
4710 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4711 lt_SP2NL='tr \040 \012'
4712 lt_NL2SP='tr \015\012 \040\040'
4713 ;;
4714 *) # EBCDIC based system
4715 lt_SP2NL='tr \100 \n'
4716 lt_NL2SP='tr \r\n \100\100'
4717 ;;
4718esac
c43a438d 4719
c43a438d 4720
c43a438d 4721
252b5132 4722
ad22bfe8 4723
1ad12f97 4724
1ad12f97 4725
9e9b66a9 4726
1ad12f97 4727
ce2cded5
L
4728echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4729echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4730if test "${lt_cv_ld_reload_flag+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 lt_cv_ld_reload_flag='-r'
4734fi
4735echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4736echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4737reload_flag=$lt_cv_ld_reload_flag
4738case $reload_flag in
4739"" | " "*) ;;
4740*) reload_flag=" $reload_flag" ;;
4741esac
4742reload_cmds='$LD$reload_flag -o $output$reload_objs'
4743case $host_os in
4744 darwin*)
4745 if test "$GCC" = yes; then
4746 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4747 else
4748 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4749 fi
4750 ;;
4751esac
a541e3ce 4752
9e9b66a9 4753
a2d91340 4754
d6d788bd 4755
9e9b66a9
AM
4756
4757
4758
d6d788bd 4759
252b5132 4760
13b2be9c 4761
ce2cded5
L
4762echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4763echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4764if test "${lt_cv_deplibs_check_method+set}" = set; then
d7040cdb
SE
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
ce2cded5
L
4767 lt_cv_file_magic_cmd='$MAGIC_CMD'
4768lt_cv_file_magic_test_file=
4769lt_cv_deplibs_check_method='unknown'
4770# Need to set the preceding variable on all platforms that support
4771# interlibrary dependencies.
4772# 'none' -- dependencies not supported.
4773# `unknown' -- same as none, but documents that we really don't know.
4774# 'pass_all' -- all dependencies passed with no checks.
4775# 'test_compile' -- check by making test program.
4776# 'file_magic [[regex]]' -- check by looking for files in library path
4777# which responds to the $file_magic_cmd with a given extended regex.
4778# If you have `file' or equivalent on your system and you're not sure
4779# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 4780
ce2cded5 4781case $host_os in
50e7d84b 4782aix[4-9]*)
ce2cded5
L
4783 lt_cv_deplibs_check_method=pass_all
4784 ;;
d7040cdb 4785
ce2cded5
L
4786beos*)
4787 lt_cv_deplibs_check_method=pass_all
4788 ;;
d7040cdb 4789
ce2cded5
L
4790bsdi[45]*)
4791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4792 lt_cv_file_magic_cmd='/usr/bin/file -L'
4793 lt_cv_file_magic_test_file=/shlib/libc.so
4794 ;;
d7040cdb 4795
ce2cded5
L
4796cygwin*)
4797 # func_win32_libid is a shell function defined in ltmain.sh
4798 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4799 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 4800 ;;
ce2cded5
L
4801
4802mingw* | pw32*)
4803 # Base MSYS/MinGW do not provide the 'file' command needed by
4804 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4805 # unless we find 'file', for example because we are cross-compiling.
4806 if ( file / ) >/dev/null 2>&1; then
4807 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4808 lt_cv_file_magic_cmd='func_win32_libid'
4809 else
4810 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4811 lt_cv_file_magic_cmd='$OBJDUMP -f'
4812 fi
d7040cdb 4813 ;;
ce2cded5
L
4814
4815darwin* | rhapsody*)
4816 lt_cv_deplibs_check_method=pass_all
4817 ;;
4818
4819freebsd* | dragonfly*)
4820 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4821 case $host_cpu in
4822 i*86 )
4823 # Not sure whether the presence of OpenBSD here was a mistake.
4824 # Let's accept both of them until this is cleared up.
4825 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4826 lt_cv_file_magic_cmd=/usr/bin/file
4827 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4828 ;;
4829 esac
4830 else
4831 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
4832 fi
4833 ;;
ce2cded5
L
4834
4835gnu*)
4836 lt_cv_deplibs_check_method=pass_all
d7040cdb 4837 ;;
ce2cded5
L
4838
4839hpux10.20* | hpux11*)
4840 lt_cv_file_magic_cmd=/usr/bin/file
4841 case $host_cpu in
4842 ia64*)
4843 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4844 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4845 ;;
4846 hppa*64*)
4847 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]'
4848 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4849 ;;
4850 *)
4851 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4852 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4853 ;;
4854 esac
d7040cdb 4855 ;;
ce2cded5
L
4856
4857interix[3-9]*)
4858 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 4860 ;;
ce2cded5
L
4861
4862irix5* | irix6* | nonstopux*)
4863 case $LD in
4864 *-32|*"-32 ") libmagic=32-bit;;
4865 *-n32|*"-n32 ") libmagic=N32;;
4866 *-64|*"-64 ") libmagic=64-bit;;
4867 *) libmagic=never-match;;
4868 esac
4869 lt_cv_deplibs_check_method=pass_all
d7040cdb 4870 ;;
ce2cded5
L
4871
4872# This must be Linux ELF.
4873linux* | k*bsd*-gnu)
4874 lt_cv_deplibs_check_method=pass_all
d7040cdb 4875 ;;
ce2cded5
L
4876
4877netbsd*)
4878 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4880 else
4881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4882 fi
d7040cdb 4883 ;;
ce2cded5
L
4884
4885newos6*)
4886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4887 lt_cv_file_magic_cmd=/usr/bin/file
4888 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 4889 ;;
76a27922 4890
ce2cded5
L
4891*nto* | *qnx*)
4892 lt_cv_deplibs_check_method=pass_all
4893 ;;
d6d788bd 4894
ce2cded5
L
4895openbsd*)
4896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4898 else
4899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4900 fi
4901 ;;
44f2f9d2 4902
ce2cded5
L
4903osf3* | osf4* | osf5*)
4904 lt_cv_deplibs_check_method=pass_all
4905 ;;
44f2f9d2 4906
ce2cded5
L
4907rdos*)
4908 lt_cv_deplibs_check_method=pass_all
4909 ;;
4910
4911solaris*)
4912 lt_cv_deplibs_check_method=pass_all
4913 ;;
4914
4915sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4916 lt_cv_deplibs_check_method=pass_all
4917 ;;
4918
4919sysv4 | sysv4.3*)
4920 case $host_vendor in
4921 motorola)
4922 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]'
4923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4924 ;;
4925 ncr)
4926 lt_cv_deplibs_check_method=pass_all
4927 ;;
4928 sequent)
4929 lt_cv_file_magic_cmd='/bin/file'
4930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4931 ;;
4932 sni)
4933 lt_cv_file_magic_cmd='/bin/file'
4934 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4935 lt_cv_file_magic_test_file=/lib/libc.so
4936 ;;
4937 siemens)
4938 lt_cv_deplibs_check_method=pass_all
4939 ;;
4940 pc)
4941 lt_cv_deplibs_check_method=pass_all
4942 ;;
4943 esac
4944 ;;
4945
4946tpf*)
4947 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
4948 ;;
4949esac
4950
ce2cded5
L
4951fi
4952echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4953echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4954file_magic_cmd=$lt_cv_file_magic_cmd
4955deplibs_check_method=$lt_cv_deplibs_check_method
4956test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 4957
d7040cdb 4958
d7040cdb 4959
d7040cdb 4960
d7040cdb 4961
44f2f9d2 4962
d7040cdb 4963
d7040cdb 4964
d7040cdb 4965
d7040cdb 4966
44f2f9d2 4967
d7040cdb 4968
ce2cded5
L
4969if test -n "$ac_tool_prefix"; then
4970 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4971set dummy ${ac_tool_prefix}ar; ac_word=$2
4972echo "$as_me:$LINENO: checking for $ac_word" >&5
4973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4974if test "${ac_cv_prog_AR+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4976else
4977 if test -n "$AR"; then
4978 ac_cv_prog_AR="$AR" # Let the user override the test.
4979else
4980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_AR="${ac_tool_prefix}ar"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
d7040cdb
SE
4990 fi
4991done
ce2cded5 4992done
44f2f9d2 4993
ce2cded5
L
4994fi
4995fi
4996AR=$ac_cv_prog_AR
4997if test -n "$AR"; then
4998 echo "$as_me:$LINENO: result: $AR" >&5
4999echo "${ECHO_T}$AR" >&6
5000else
5001 echo "$as_me:$LINENO: result: no" >&5
5002echo "${ECHO_T}no" >&6
44f2f9d2 5003fi
d7040cdb 5004
d7040cdb 5005fi
ce2cded5
L
5006if test -z "$ac_cv_prog_AR"; then
5007 ac_ct_AR=$AR
5008 # Extract the first word of "ar", so it can be a program name with args.
5009set dummy ar; ac_word=$2
5010echo "$as_me:$LINENO: checking for $ac_word" >&5
5011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5014else
ce2cded5
L
5015 if test -n "$ac_ct_AR"; then
5016 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5017else
5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_ac_ct_AR="ar"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029done
5030done
5031
5032 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5033fi
5034fi
5035ac_ct_AR=$ac_cv_prog_ac_ct_AR
5036if test -n "$ac_ct_AR"; then
5037 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5038echo "${ECHO_T}$ac_ct_AR" >&6
5039else
5040 echo "$as_me:$LINENO: result: no" >&5
5041echo "${ECHO_T}no" >&6
d7040cdb 5042fi
44f2f9d2 5043
ce2cded5
L
5044 AR=$ac_ct_AR
5045else
5046 AR="$ac_cv_prog_AR"
5047fi
d7040cdb 5048
ce2cded5
L
5049test -z "$AR" && AR=ar
5050test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
ce2cded5
L
5062if test -n "$ac_tool_prefix"; then
5063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5064set dummy ${ac_tool_prefix}strip; ac_word=$2
5065echo "$as_me:$LINENO: checking for $ac_word" >&5
5066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5067if test "${ac_cv_prog_STRIP+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069else
5070 if test -n "$STRIP"; then
5071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5072else
5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5083 fi
5084done
5085done
d7040cdb 5086
ce2cded5
L
5087fi
5088fi
5089STRIP=$ac_cv_prog_STRIP
5090if test -n "$STRIP"; then
5091 echo "$as_me:$LINENO: result: $STRIP" >&5
5092echo "${ECHO_T}$STRIP" >&6
5093else
5094 echo "$as_me:$LINENO: result: no" >&5
5095echo "${ECHO_T}no" >&6
5096fi
d7040cdb 5097
ce2cded5
L
5098fi
5099if test -z "$ac_cv_prog_STRIP"; then
5100 ac_ct_STRIP=$STRIP
5101 # Extract the first word of "strip", so it can be a program name with args.
5102set dummy strip; ac_word=$2
5103echo "$as_me:$LINENO: checking for $ac_word" >&5
5104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107else
5108 if test -n "$ac_ct_STRIP"; then
5109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5110else
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_ac_ct_STRIP="strip"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122done
5123done
d7040cdb 5124
ce2cded5
L
5125 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5126fi
5127fi
5128ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5129if test -n "$ac_ct_STRIP"; then
5130 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5131echo "${ECHO_T}$ac_ct_STRIP" >&6
5132else
5133 echo "$as_me:$LINENO: result: no" >&5
5134echo "${ECHO_T}no" >&6
5135fi
d7040cdb 5136
ce2cded5
L
5137 STRIP=$ac_ct_STRIP
5138else
5139 STRIP="$ac_cv_prog_STRIP"
5140fi
d7040cdb 5141
ce2cded5 5142test -z "$STRIP" && STRIP=:
d7040cdb 5143
d7040cdb 5144
d7040cdb 5145
d7040cdb 5146
d7040cdb 5147
d7040cdb 5148
ce2cded5
L
5149if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5151set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5152echo "$as_me:$LINENO: checking for $ac_word" >&5
5153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154if test "${ac_cv_prog_RANLIB+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5156else
ce2cded5
L
5157 if test -n "$RANLIB"; then
5158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5159else
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171done
5172done
44f2f9d2 5173
d7040cdb 5174fi
44f2f9d2 5175fi
ce2cded5
L
5176RANLIB=$ac_cv_prog_RANLIB
5177if test -n "$RANLIB"; then
5178 echo "$as_me:$LINENO: result: $RANLIB" >&5
5179echo "${ECHO_T}$RANLIB" >&6
5180else
5181 echo "$as_me:$LINENO: result: no" >&5
5182echo "${ECHO_T}no" >&6
5183fi
d7040cdb 5184
d7040cdb 5185fi
ce2cded5
L
5186if test -z "$ac_cv_prog_RANLIB"; then
5187 ac_ct_RANLIB=$RANLIB
5188 # Extract the first word of "ranlib", so it can be a program name with args.
5189set dummy ranlib; ac_word=$2
5190echo "$as_me:$LINENO: checking for $ac_word" >&5
5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
d7040cdb 5193 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5194else
ce2cded5
L
5195 if test -n "$ac_ct_RANLIB"; then
5196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5197else
5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
d7040cdb 5200do
ce2cded5
L
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_RANLIB="ranlib"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
d7040cdb 5208 fi
ce2cded5
L
5209done
5210done
5211
5212 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
d7040cdb 5213fi
ce2cded5
L
5214fi
5215ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5216if test -n "$ac_ct_RANLIB"; then
5217 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5218echo "${ECHO_T}$ac_ct_RANLIB" >&6
d7040cdb 5219else
ce2cded5
L
5220 echo "$as_me:$LINENO: result: no" >&5
5221echo "${ECHO_T}no" >&6
44f2f9d2 5222fi
44f2f9d2 5223
ce2cded5 5224 RANLIB=$ac_ct_RANLIB
d7040cdb 5225else
ce2cded5 5226 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5227fi
252b5132 5228
ce2cded5 5229test -z "$RANLIB" && RANLIB=:
252b5132 5230
252b5132 5231
ae57792d 5232
252b5132 5233
13b2be9c 5234
14ee9f48 5235
ce2cded5
L
5236# Determine commands to create old-style static archives.
5237old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5238old_postinstall_cmds='chmod 644 $oldlib'
5239old_postuninstall_cmds=
14ee9f48 5240
ce2cded5
L
5241if test -n "$RANLIB"; then
5242 case $host_os in
5243 openbsd*)
5244 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5245 ;;
5246 *)
5247 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5248 ;;
5249 esac
5250 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 5251fi
14ee9f48 5252
f8fc3443 5253
f8fc3443 5254
252b5132 5255
85fbca6a 5256
85fbca6a 5257
13b2be9c 5258
13b2be9c 5259
d7040cdb 5260
d7040cdb
SE
5261
5262
5263
252b5132 5264
93fbbb04 5265
93fbbb04 5266
d70c5fc7 5267
e0001a05 5268
252b5132 5269
252b5132 5270
252b5132 5271
252b5132 5272
252b5132 5273
3bcbcc3d 5274
252b5132 5275
252b5132 5276
252b5132 5277
15886821 5278
252b5132 5279
252b5132 5280
13b2be9c
DJ
5281
5282
252b5132 5283
252b5132 5284
d6d788bd 5285
ce2cded5
L
5286# If no C compiler was specified, use CC.
5287LTCC=${LTCC-"$CC"}
252b5132 5288
ce2cded5
L
5289# If no C compiler flags were specified, use CFLAGS.
5290LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 5291
ce2cded5
L
5292# Allow CC to be a program name with arguments.
5293compiler=$CC
252b5132 5294
252b5132 5295
ce2cded5
L
5296# Check for command to grab the raw symbol name followed by C symbol from nm.
5297echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5298echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5299if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
252b5132 5302
ce2cded5
L
5303# These are sane defaults that work on at least a few old systems.
5304# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 5305
ce2cded5
L
5306# Character class describing NM global symbol codes.
5307symcode='[BCDEGRST]'
252b5132 5308
ce2cded5
L
5309# Regexp to match symbols that can be accessed directly from C.
5310sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 5311
ce2cded5
L
5312# Define system-specific variables.
5313case $host_os in
5314aix*)
5315 symcode='[BCDT]'
5316 ;;
5317cygwin* | mingw* | pw32*)
5318 symcode='[ABCDGISTW]'
5319 ;;
5320hpux*)
5321 if test "$host_cpu" = ia64; then
5322 symcode='[ABCDEGRST]'
5323 fi
5324 ;;
5325irix* | nonstopux*)
5326 symcode='[BCDEGRST]'
5327 ;;
5328osf*)
5329 symcode='[BCDEGQRST]'
5330 ;;
5331solaris*)
5332 symcode='[BDRT]'
5333 ;;
5334sco3.2v5*)
5335 symcode='[DT]'
5336 ;;
5337sysv4.2uw2*)
5338 symcode='[DT]'
5339 ;;
5340sysv5* | sco5v6* | unixware* | OpenUNIX*)
5341 symcode='[ABDT]'
5342 ;;
5343sysv4)
5344 symcode='[DFNSTU]'
5345 ;;
5346esac
5347
5348# If we're using GNU nm, then use its standard symbol codes.
5349case `$NM -V 2>&1` in
5350*GNU* | *'with BFD'*)
5351 symcode='[ABCDGIRSTW]' ;;
5352esac
252b5132 5353
ce2cded5
L
5354# Transform an extracted symbol line into a proper C declaration.
5355# Some systems (esp. on ia64) link data and code symbols differently,
5356# so use this general approach.
5357lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 5358
ce2cded5
L
5359# Transform an extracted symbol line into symbol name and symbol address
5360lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13b2be9c 5361
ce2cded5
L
5362# Handle CRLF in mingw tool chain
5363opt_cr=
5364case $build_os in
5365mingw*)
5366 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5367 ;;
5368esac
252b5132 5369
ce2cded5
L
5370# Try without a prefix underscore, then with it.
5371for ac_symprfx in "" "_"; do
252b5132 5372
ce2cded5
L
5373 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5374 symxfrm="\\1 $ac_symprfx\\2 \\2"
d6d788bd 5375
ce2cded5
L
5376 # Write the raw and C identifiers.
5377 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5378 # Fake it for dumpbin and say T for any non-static function
5379 # and D for any global variable.
5380 # Also find C++ and __fastcall symbols from MSVC++,
5381 # which start with @ or ?.
5382 lt_cv_sys_global_symbol_pipe="$AWK '"\
5383" {last_section=section; section=\$ 3};"\
5384" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5385" \$ 0!~/External *\|/{next};"\
5386" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5387" {if(hide[section]) next};"\
5388" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5389" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5390" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5391" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5392" ' prfx=^$ac_symprfx"
5393 else
5394 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5395 fi
252b5132 5396
ce2cded5
L
5397 # Check to see that the pipe works correctly.
5398 pipe_works=no
252b5132 5399
ce2cded5
L
5400 rm -f conftest*
5401 cat > conftest.$ac_ext <<_LT_EOF
5402#ifdef __cplusplus
5403extern "C" {
5404#endif
5405char nm_test_var;
5406void nm_test_func(void);
5407void nm_test_func(void){}
5408#ifdef __cplusplus
5409}
5410#endif
5411int main(){nm_test_var='a';nm_test_func();return(0);}
5412_LT_EOF
d6d788bd 5413
ce2cded5
L
5414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5415 (eval $ac_compile) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; then
5419 # Now try to grab the symbols.
5420 nlist=conftest.nm
5421 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5422 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && test -s "$nlist"; then
5426 # Try sorting and uniquifying the output.
5427 if sort "$nlist" | uniq > "$nlist"T; then
5428 mv -f "$nlist"T "$nlist"
5429 else
5430 rm -f "$nlist"T
5431 fi
d6d788bd 5432
ce2cded5
L
5433 # Make sure that we snagged all the symbols we need.
5434 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5435 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5436 cat <<_LT_EOF > conftest.$ac_ext
5437#ifdef __cplusplus
5438extern "C" {
5439#endif
d6d788bd 5440
ce2cded5
L
5441_LT_EOF
5442 # Now generate the symbol file.
5443 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d6d788bd 5444
ce2cded5 5445 cat <<_LT_EOF >> conftest.$ac_ext
d6d788bd 5446
ce2cded5
L
5447/* The mapping between symbol names and symbols. */
5448const struct {
5449 const char *name;
5450 void *address;
5451}
5452lt__PROGRAM__LTX_preloaded_symbols[] =
5453{
5454 { "@PROGRAM@", (void *) 0 },
5455_LT_EOF
5456 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5457 cat <<\_LT_EOF >> conftest.$ac_ext
5458 {0, (void *) 0}
5459};
d6d788bd 5460
ce2cded5
L
5461/* This works around a problem in FreeBSD linker */
5462#ifdef FREEBSD_WORKAROUND
5463static const void *lt_preloaded_setup() {
5464 return lt__PROGRAM__LTX_preloaded_symbols;
5465}
5466#endif
252b5132 5467
ce2cded5
L
5468#ifdef __cplusplus
5469}
5470#endif
5471_LT_EOF
5472 # Now try linking the two files.
5473 mv conftest.$ac_objext conftstm.$ac_objext
5474 lt_save_LIBS="$LIBS"
5475 lt_save_CFLAGS="$CFLAGS"
5476 LIBS="conftstm.$ac_objext"
5477 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5479 (eval $ac_link) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5483 pipe_works=yes
5484 fi
5485 LIBS="$lt_save_LIBS"
5486 CFLAGS="$lt_save_CFLAGS"
5487 else
5488 echo "cannot find nm_test_func in $nlist" >&5
5489 fi
5490 else
5491 echo "cannot find nm_test_var in $nlist" >&5
5492 fi
5493 else
5494 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5495 fi
5496 else
5497 echo "$progname: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5499 fi
5500 rm -f conftest* conftst*
d6d788bd 5501
ce2cded5
L
5502 # Do not use the global_symbol_pipe unless it works.
5503 if test "$pipe_works" = yes; then
5504 break
5505 else
5506 lt_cv_sys_global_symbol_pipe=
5507 fi
5508done
4001ad8c 5509
d7040cdb
SE
5510fi
5511
ce2cded5
L
5512if test -z "$lt_cv_sys_global_symbol_pipe"; then
5513 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 5514fi
ce2cded5
L
5515if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5516 echo "$as_me:$LINENO: result: failed" >&5
5517echo "${ECHO_T}failed" >&6
5518else
5519 echo "$as_me:$LINENO: result: ok" >&5
5520echo "${ECHO_T}ok" >&6
d7040cdb 5521fi
13b2be9c 5522
9b2b7d69 5523
13b2be9c 5524
9b2b7d69 5525
13b2be9c 5526
13b2be9c 5527
13b2be9c
DJ
5528
5529
d7040cdb
SE
5530
5531
5532
5533
5534
5535
5536
5537
5538
ce2cded5
L
5539# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5540if test "${enable_libtool_lock+set}" = set; then
5541 enableval="$enable_libtool_lock"
d7040cdb 5542
ce2cded5
L
5543fi;
5544test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d7040cdb 5545
ce2cded5
L
5546# Some flags need to be propagated to the compiler or linker for good
5547# libtool support.
5548case $host in
5549ia64-*-hpux*)
5550 # Find out which ABI we are using.
5551 echo 'int i;' > conftest.$ac_ext
5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553 (eval $ac_compile) 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; then
5557 case `/usr/bin/file conftest.$ac_objext` in
5558 *ELF-32*)
5559 HPUX_IA64_MODE="32"
5560 ;;
5561 *ELF-64*)
5562 HPUX_IA64_MODE="64"
5563 ;;
5564 esac
13b2be9c 5565 fi
ce2cded5 5566 rm -rf conftest*
d7040cdb 5567 ;;
ce2cded5
L
5568*-*-irix6*)
5569 # Find out which ABI we are using.
58c85be7 5570 echo '#line 5570 "configure"' > conftest.$ac_ext
ce2cded5
L
5571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572 (eval $ac_compile) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; then
5576 if test "$lt_cv_prog_gnu_ld" = yes; then
5577 case `/usr/bin/file conftest.$ac_objext` in
5578 *32-bit*)
5579 LD="${LD-ld} -melf32bsmip"
5580 ;;
5581 *N32*)
5582 LD="${LD-ld} -melf32bmipn32"
5583 ;;
5584 *64-bit*)
5585 LD="${LD-ld} -melf64bmip"
5586 ;;
5587 esac
5588 else
5589 case `/usr/bin/file conftest.$ac_objext` in
5590 *32-bit*)
5591 LD="${LD-ld} -32"
5592 ;;
5593 *N32*)
5594 LD="${LD-ld} -n32"
5595 ;;
5596 *64-bit*)
5597 LD="${LD-ld} -64"
5598 ;;
5599 esac
5600 fi
5601 fi
5602 rm -rf conftest*
d7040cdb 5603 ;;
d7040cdb 5604
ce2cded5
L
5605x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5606s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5607 # Find out which ABI we are using.
5608 echo 'int i;' > conftest.$ac_ext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 (eval $ac_compile) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; then
5614 case `/usr/bin/file conftest.o` in
5615 *32-bit*)
5616 case $host in
5617 x86_64-*kfreebsd*-gnu)
5618 LD="${LD-ld} -m elf_i386_fbsd"
5619 ;;
5620 x86_64-*linux*)
5621 LD="${LD-ld} -m elf_i386"
5622 ;;
5623 ppc64-*linux*|powerpc64-*linux*)
5624 LD="${LD-ld} -m elf32ppclinux"
5625 ;;
5626 s390x-*linux*)
5627 LD="${LD-ld} -m elf_s390"
5628 ;;
5629 sparc64-*linux*)
5630 LD="${LD-ld} -m elf32_sparc"
5631 ;;
d7040cdb 5632 esac
ce2cded5
L
5633 ;;
5634 *64-bit*)
5635 case $host in
5636 x86_64-*kfreebsd*-gnu)
5637 LD="${LD-ld} -m elf_x86_64_fbsd"
5638 ;;
5639 x86_64-*linux*)
5640 LD="${LD-ld} -m elf_x86_64"
5641 ;;
5642 ppc*-*linux*|powerpc*-*linux*)
5643 LD="${LD-ld} -m elf64ppc"
5644 ;;
5645 s390*-*linux*|s390*-*tpf*)
5646 LD="${LD-ld} -m elf64_s390"
5647 ;;
5648 sparc*-*linux*)
5649 LD="${LD-ld} -m elf64_sparc"
5650 ;;
5651 esac
5652 ;;
5653 esac
5654 fi
5655 rm -rf conftest*
d7040cdb 5656 ;;
d7040cdb 5657
ce2cded5
L
5658*-*-sco3.2v5*)
5659 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5660 SAVE_CFLAGS="$CFLAGS"
5661 CFLAGS="$CFLAGS -belf"
5662 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5663echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5664if test "${lt_cv_cc_needs_belf+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 5666else
ce2cded5
L
5667 ac_ext=c
5668ac_cpp='$CPP $CPPFLAGS'
5669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671ac_compiler_gnu=$ac_cv_c_compiler_gnu
13b2be9c 5672
ce2cded5
L
5673 cat >conftest.$ac_ext <<_ACEOF
5674/* confdefs.h. */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h. */
13b2be9c 5679
ce2cded5
L
5680int
5681main ()
5682{
d7040cdb 5683
ce2cded5
L
5684 ;
5685 return 0;
5686}
5687_ACEOF
5688rm -f conftest.$ac_objext conftest$ac_exeext
5689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_c_werror_flag"
5698 || test ! -s conftest.err'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 (eval $ac_try) 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; } &&
5704 { ac_try='test -s conftest$ac_exeext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 (eval $ac_try) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5710 lt_cv_cc_needs_belf=yes
5711else
5712 echo "$as_me: failed program was:" >&5
5713sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5714
ce2cded5
L
5715lt_cv_cc_needs_belf=no
5716fi
5717rm -f conftest.err conftest.$ac_objext \
5718 conftest$ac_exeext conftest.$ac_ext
5719 ac_ext=c
5720ac_cpp='$CPP $CPPFLAGS'
5721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5723ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5724
13b2be9c 5725fi
ce2cded5
L
5726echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5727echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5728 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5729 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5730 CFLAGS="$SAVE_CFLAGS"
d7040cdb 5731 fi
ce2cded5
L
5732 ;;
5733sparc*-*solaris*)
5734 # Find out which ABI we are using.
5735 echo 'int i;' > conftest.$ac_ext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737 (eval $ac_compile) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; then
5741 case `/usr/bin/file conftest.o` in
5742 *64-bit*)
5743 case $lt_cv_prog_gnu_ld in
5744 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5745 *) LD="${LD-ld} -64" ;;
5746 esac
5747 ;;
5748 esac
252b5132 5749 fi
ce2cded5 5750 rm -rf conftest*
d7040cdb
SE
5751 ;;
5752esac
252b5132 5753
ce2cded5 5754need_locks="$enable_libtool_lock"
13b2be9c 5755
d7040cdb
SE
5756ac_ext=c
5757ac_cpp='$CPP $CPPFLAGS'
5758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5760ac_compiler_gnu=$ac_cv_c_compiler_gnu
ce2cded5
L
5761echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5762echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5763# On Suns, sometimes $CPP names a directory.
5764if test -n "$CPP" && test -d "$CPP"; then
5765 CPP=
5766fi
5767if test -z "$CPP"; then
5768 if test "${ac_cv_prog_CPP+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771 # Double quotes because CPP needs to be expanded
5772 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5773 do
5774 ac_preproc_ok=false
5775for ac_c_preproc_warn_flag in '' yes
5776do
5777 # Use a header file that comes with gcc, so configuring glibc
5778 # with a fresh cross-compiler works.
5779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5780 # <limits.h> exists even on freestanding compilers.
5781 # On the NeXT, cc -E runs the code through the compiler's parser,
5782 # not just through cpp. "Syntax error" is here to catch this case.
5783 cat >conftest.$ac_ext <<_ACEOF
5784/* confdefs.h. */
5785_ACEOF
5786cat confdefs.h >>conftest.$ac_ext
5787cat >>conftest.$ac_ext <<_ACEOF
5788/* end confdefs.h. */
5789#ifdef __STDC__
5790# include <limits.h>
5791#else
5792# include <assert.h>
5793#endif
5794 Syntax error
5795_ACEOF
5796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } >/dev/null; then
5804 if test -s conftest.err; then
5805 ac_cpp_err=$ac_c_preproc_warn_flag
5806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5807 else
5808 ac_cpp_err=
5809 fi
5810else
5811 ac_cpp_err=yes
5812fi
5813if test -z "$ac_cpp_err"; then
5814 :
5815else
5816 echo "$as_me: failed program was:" >&5
5817sed 's/^/| /' conftest.$ac_ext >&5
6840198f 5818
ce2cded5
L
5819 # Broken: fails on valid input.
5820continue
5821fi
5822rm -f conftest.err conftest.$ac_ext
13b2be9c 5823
ce2cded5
L
5824 # OK, works on sane cases. Now check whether non-existent headers
5825 # can be detected and how.
5826 cat >conftest.$ac_ext <<_ACEOF
5827/* confdefs.h. */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h. */
5832#include <ac_nonexistent.h>
5833_ACEOF
5834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } >/dev/null; then
5842 if test -s conftest.err; then
5843 ac_cpp_err=$ac_c_preproc_warn_flag
5844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5845 else
5846 ac_cpp_err=
5847 fi
5848else
5849 ac_cpp_err=yes
5850fi
5851if test -z "$ac_cpp_err"; then
5852 # Broken: success on invalid input.
5853continue
5854else
5855 echo "$as_me: failed program was:" >&5
5856sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 5857
ce2cded5
L
5858 # Passes both tests.
5859ac_preproc_ok=:
5860break
5861fi
5862rm -f conftest.err conftest.$ac_ext
13b2be9c 5863
ce2cded5
L
5864done
5865# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5866rm -f conftest.err conftest.$ac_ext
5867if $ac_preproc_ok; then
5868 break
5869fi
13b2be9c 5870
ce2cded5
L
5871 done
5872 ac_cv_prog_CPP=$CPP
d7040cdb 5873
ce2cded5
L
5874fi
5875 CPP=$ac_cv_prog_CPP
5876else
5877 ac_cv_prog_CPP=$CPP
5878fi
5879echo "$as_me:$LINENO: result: $CPP" >&5
5880echo "${ECHO_T}$CPP" >&6
5881ac_preproc_ok=false
5882for ac_c_preproc_warn_flag in '' yes
5883do
5884 # Use a header file that comes with gcc, so configuring glibc
5885 # with a fresh cross-compiler works.
5886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5887 # <limits.h> exists even on freestanding compilers.
5888 # On the NeXT, cc -E runs the code through the compiler's parser,
5889 # not just through cpp. "Syntax error" is here to catch this case.
5890 cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
5896#ifdef __STDC__
5897# include <limits.h>
5898#else
5899# include <assert.h>
5900#endif
5901 Syntax error
5902_ACEOF
5903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } >/dev/null; then
5911 if test -s conftest.err; then
5912 ac_cpp_err=$ac_c_preproc_warn_flag
5913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5914 else
5915 ac_cpp_err=
5916 fi
5917else
5918 ac_cpp_err=yes
5919fi
5920if test -z "$ac_cpp_err"; then
5921 :
5922else
5923 echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5925
ce2cded5
L
5926 # Broken: fails on valid input.
5927continue
5928fi
5929rm -f conftest.err conftest.$ac_ext
d7040cdb 5930
ce2cded5
L
5931 # OK, works on sane cases. Now check whether non-existent headers
5932 # can be detected and how.
5933 cat >conftest.$ac_ext <<_ACEOF
5934/* confdefs.h. */
5935_ACEOF
5936cat confdefs.h >>conftest.$ac_ext
5937cat >>conftest.$ac_ext <<_ACEOF
5938/* end confdefs.h. */
5939#include <ac_nonexistent.h>
5940_ACEOF
5941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } >/dev/null; then
5949 if test -s conftest.err; then
5950 ac_cpp_err=$ac_c_preproc_warn_flag
5951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5952 else
5953 ac_cpp_err=
5954 fi
5955else
5956 ac_cpp_err=yes
5957fi
5958if test -z "$ac_cpp_err"; then
5959 # Broken: success on invalid input.
5960continue
5961else
5962 echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5964
ce2cded5
L
5965 # Passes both tests.
5966ac_preproc_ok=:
5967break
5968fi
5969rm -f conftest.err conftest.$ac_ext
d7040cdb 5970
ce2cded5
L
5971done
5972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5973rm -f conftest.err conftest.$ac_ext
5974if $ac_preproc_ok; then
5975 :
5976else
5977 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5978See \`config.log' for more details." >&5
5979echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5980See \`config.log' for more details." >&2;}
5981 { (exit 1); exit 1; }; }
5982fi
d7040cdb 5983
ce2cded5
L
5984ac_ext=c
5985ac_cpp='$CPP $CPPFLAGS'
5986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5989
d7040cdb 5990
ce2cded5
L
5991echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5992echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5993if test "${ac_cv_header_stdc+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995else
5996 cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
6002#include <stdlib.h>
6003#include <stdarg.h>
6004#include <string.h>
6005#include <float.h>
d7040cdb 6006
ce2cded5
L
6007int
6008main ()
6009{
d7040cdb 6010
ce2cded5
L
6011 ;
6012 return 0;
6013}
6014_ACEOF
6015rm -f conftest.$ac_objext
6016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6017 (eval $ac_compile) 2>conftest.er1
6018 ac_status=$?
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } &&
6024 { ac_try='test -z "$ac_c_werror_flag"
6025 || test ! -s conftest.err'
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 (eval $ac_try) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; } &&
6031 { ac_try='test -s conftest.$ac_objext'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
6037 ac_cv_header_stdc=yes
13b2be9c 6038else
ce2cded5
L
6039 echo "$as_me: failed program was:" >&5
6040sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 6041
ce2cded5 6042ac_cv_header_stdc=no
d7040cdb 6043fi
ce2cded5 6044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 6045
ce2cded5
L
6046if test $ac_cv_header_stdc = yes; then
6047 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6048 cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h. */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h. */
6054#include <string.h>
6055
6056_ACEOF
6057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6058 $EGREP "memchr" >/dev/null 2>&1; then
6059 :
13b2be9c 6060else
ce2cded5 6061 ac_cv_header_stdc=no
13b2be9c 6062fi
ce2cded5 6063rm -f conftest*
13b2be9c
DJ
6064
6065fi
13b2be9c 6066
ce2cded5
L
6067if test $ac_cv_header_stdc = yes; then
6068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6069 cat >conftest.$ac_ext <<_ACEOF
6070/* confdefs.h. */
6071_ACEOF
6072cat confdefs.h >>conftest.$ac_ext
6073cat >>conftest.$ac_ext <<_ACEOF
6074/* end confdefs.h. */
6075#include <stdlib.h>
13b2be9c 6076
ce2cded5
L
6077_ACEOF
6078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6079 $EGREP "free" >/dev/null 2>&1; then
6080 :
6081else
6082 ac_cv_header_stdc=no
6083fi
6084rm -f conftest*
c8615825 6085
ce2cded5 6086fi
d7040cdb 6087
ce2cded5
L
6088if test $ac_cv_header_stdc = yes; then
6089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6090 if test "$cross_compiling" = yes; then
6091 :
6092else
6093 cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h. */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h. */
6099#include <ctype.h>
6100#if ((' ' & 0x0FF) == 0x020)
6101# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6102# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6103#else
6104# define ISLOWER(c) \
6105 (('a' <= (c) && (c) <= 'i') \
6106 || ('j' <= (c) && (c) <= 'r') \
6107 || ('s' <= (c) && (c) <= 'z'))
6108# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6109#endif
d7040cdb 6110
ce2cded5
L
6111#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6112int
6113main ()
6114{
6115 int i;
6116 for (i = 0; i < 256; i++)
6117 if (XOR (islower (i), ISLOWER (i))
6118 || toupper (i) != TOUPPER (i))
6119 exit(2);
6120 exit (0);
6121}
6122_ACEOF
6123rm -f conftest$ac_exeext
6124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6125 (eval $ac_link) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 :
6135else
6136 echo "$as_me: program exited with status $ac_status" >&5
6137echo "$as_me: failed program was:" >&5
6138sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6139
ce2cded5
L
6140( exit $ac_status )
6141ac_cv_header_stdc=no
6142fi
6143rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6144fi
6145fi
6146fi
6147echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6148echo "${ECHO_T}$ac_cv_header_stdc" >&6
6149if test $ac_cv_header_stdc = yes; then
d7040cdb 6150
ce2cded5
L
6151cat >>confdefs.h <<\_ACEOF
6152#define STDC_HEADERS 1
6153_ACEOF
d7040cdb 6154
ce2cded5 6155fi
d7040cdb 6156
ce2cded5 6157# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6158
d7040cdb 6159
d7040cdb 6160
d7040cdb 6161
d7040cdb 6162
d7040cdb 6163
d7040cdb 6164
d7040cdb 6165
d7040cdb 6166
ce2cded5
L
6167for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6168 inttypes.h stdint.h unistd.h
6169do
6170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6171echo "$as_me:$LINENO: checking for $ac_header" >&5
6172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6173if eval "test \"\${$as_ac_Header+set}\" = set"; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175else
6176 cat >conftest.$ac_ext <<_ACEOF
6177/* confdefs.h. */
6178_ACEOF
6179cat confdefs.h >>conftest.$ac_ext
6180cat >>conftest.$ac_ext <<_ACEOF
6181/* end confdefs.h. */
6182$ac_includes_default
d7040cdb 6183
ce2cded5
L
6184#include <$ac_header>
6185_ACEOF
6186rm -f conftest.$ac_objext
6187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -z "$ac_c_werror_flag"
6196 || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try='test -s conftest.$ac_objext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 eval "$as_ac_Header=yes"
6209else
6210 echo "$as_me: failed program was:" >&5
6211sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6212
ce2cded5
L
6213eval "$as_ac_Header=no"
6214fi
6215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6216fi
6217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6219if test `eval echo '${'$as_ac_Header'}'` = yes; then
6220 cat >>confdefs.h <<_ACEOF
6221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6222_ACEOF
d7040cdb 6223
ce2cded5 6224fi
d7040cdb 6225
ce2cded5 6226done
d7040cdb 6227
d7040cdb 6228
d7040cdb 6229
ce2cded5
L
6230for ac_header in dlfcn.h
6231do
6232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6233echo "$as_me:$LINENO: checking for $ac_header" >&5
6234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6235if eval "test \"\${$as_ac_Header+set}\" = set"; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238 cat >conftest.$ac_ext <<_ACEOF
6239/* confdefs.h. */
6240_ACEOF
6241cat confdefs.h >>conftest.$ac_ext
6242cat >>conftest.$ac_ext <<_ACEOF
6243/* end confdefs.h. */
6244$ac_includes_default
d7040cdb 6245
ce2cded5
L
6246#include <$ac_header>
6247_ACEOF
6248rm -f conftest.$ac_objext
6249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_c_werror_flag"
6258 || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 eval "$as_ac_Header=yes"
6271else
6272 echo "$as_me: failed program was:" >&5
6273sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6274
ce2cded5
L
6275eval "$as_ac_Header=no"
6276fi
6277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6278fi
6279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6281if test `eval echo '${'$as_ac_Header'}'` = yes; then
6282 cat >>confdefs.h <<_ACEOF
6283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6284_ACEOF
d7040cdb 6285
ce2cded5 6286fi
d7040cdb 6287
ce2cded5 6288done
d7040cdb 6289
d7040cdb 6290
d7040cdb 6291
ce2cded5
L
6292# This can be used to rebuild libtool when needed
6293LIBTOOL_DEPS="$ltmain"
d7040cdb 6294
ce2cded5
L
6295# Always use our own libtool.
6296LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6297
d7040cdb 6298
d7040cdb 6299
d7040cdb
SE
6300
6301
6302
6303
6304
6305
d7040cdb 6306
d7040cdb 6307
ab509236 6308
ab509236 6309
d7040cdb
SE
6310
6311
6312
6313
6314
13b2be9c 6315
13b2be9c 6316
13b2be9c 6317
13b2be9c 6318
d7040cdb
SE
6319
6320
6321
ce2cded5 6322test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6323
6324
d7040cdb 6325
d7040cdb 6326
d7040cdb
SE
6327
6328
6329
6330
6331
6332
ce2cded5
L
6333
6334
6335
6336
6337if test -n "${ZSH_VERSION+set}" ; then
6338 setopt NO_GLOB_SUBST
6339fi
6340
6341echo "$as_me:$LINENO: checking for objdir" >&5
6342echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6343if test "${lt_cv_objdir+set}" = set; then
d7040cdb
SE
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
ce2cded5
L
6346 rm -f .libs 2>/dev/null
6347mkdir .libs 2>/dev/null
6348if test -d .libs; then
6349 lt_cv_objdir=.libs
6350else
6351 # MS-DOS does not allow filenames that begin with a dot.
6352 lt_cv_objdir=_libs
d7040cdb 6353fi
ce2cded5
L
6354rmdir .libs 2>/dev/null
6355fi
6356echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6357echo "${ECHO_T}$lt_cv_objdir" >&6
6358objdir=$lt_cv_objdir
d7040cdb
SE
6359
6360
6361
6362
d7040cdb 6363
ce2cded5
L
6364cat >>confdefs.h <<_ACEOF
6365#define LT_OBJDIR "$lt_cv_objdir/"
6366_ACEOF
d7040cdb
SE
6367
6368
6369
6370
6371
d7040cdb 6372
d7040cdb 6373
d7040cdb 6374
d7040cdb 6375
d7040cdb 6376
d7040cdb 6377
d7040cdb 6378
d7040cdb 6379
d7040cdb 6380
d7040cdb 6381
d7040cdb 6382
d7040cdb 6383
ce2cded5
L
6384case $host_os in
6385aix3*)
6386 # AIX sometimes has problems with the GCC collect2 program. For some
6387 # reason, if we set the COLLECT_NAMES environment variable, the problems
6388 # vanish in a puff of smoke.
6389 if test "X${COLLECT_NAMES+set}" != Xset; then
6390 COLLECT_NAMES=
6391 export COLLECT_NAMES
6392 fi
6393 ;;
6394esac
d7040cdb 6395
ce2cded5
L
6396# Sed substitution that helps us do robust quoting. It backslashifies
6397# metacharacters that are still active within double-quoted strings.
6398sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6399
ce2cded5
L
6400# Same as above, but do not quote variable references.
6401double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6402
ce2cded5
L
6403# Sed substitution to delay expansion of an escaped shell variable in a
6404# double_quote_subst'ed string.
6405delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6406
ce2cded5
L
6407# Sed substitution to delay expansion of an escaped single quote.
6408delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6409
ce2cded5
L
6410# Sed substitution to avoid accidental globbing in evaled expressions
6411no_glob_subst='s/\*/\\\*/g'
d7040cdb 6412
ce2cded5
L
6413# Global variables:
6414ofile=libtool
6415can_build_shared=yes
d7040cdb 6416
ce2cded5
L
6417# All known linkers require a `.a' archive for static linking (except MSVC,
6418# which needs '.lib').
6419libext=a
d7040cdb 6420
ce2cded5 6421with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6422
ce2cded5
L
6423old_CC="$CC"
6424old_CFLAGS="$CFLAGS"
d7040cdb 6425
ce2cded5
L
6426# Set sane defaults for various variables
6427test -z "$CC" && CC=cc
6428test -z "$LTCC" && LTCC=$CC
6429test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6430test -z "$LD" && LD=ld
6431test -z "$ac_objext" && ac_objext=o
6432
6433for cc_temp in $compiler""; do
6434 case $cc_temp in
6435 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6436 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6437 \-*) ;;
6438 *) break;;
6439 esac
6440done
6441cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6442
6443
6444# Only perform the check for file, if the check method requires it
6445test -z "$MAGIC_CMD" && MAGIC_CMD=file
6446case $deplibs_check_method in
6447file_magic*)
6448 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6449 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6450echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6451if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453else
6454 case $MAGIC_CMD in
6455[\\/*] | ?:[\\/]*)
6456 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6457 ;;
6458*)
6459 lt_save_MAGIC_CMD="$MAGIC_CMD"
6460 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6461 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6462 for ac_dir in $ac_dummy; do
6463 IFS="$lt_save_ifs"
6464 test -z "$ac_dir" && ac_dir=.
6465 if test -f $ac_dir/${ac_tool_prefix}file; then
6466 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6467 if test -n "$file_magic_test_file"; then
6468 case $deplibs_check_method in
6469 "file_magic "*)
6470 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6471 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6472 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6473 $EGREP "$file_magic_regex" > /dev/null; then
6474 :
d7040cdb 6475 else
ce2cded5 6476 cat <<_LT_EOF 1>&2
d7040cdb 6477
ce2cded5
L
6478*** Warning: the command libtool uses to detect shared libraries,
6479*** $file_magic_cmd, produces output that libtool cannot recognize.
6480*** The result is that libtool may fail to recognize shared libraries
6481*** as such. This will affect the creation of libtool libraries that
6482*** depend on shared libraries, but programs linked with such libtool
6483*** libraries will work regardless of this problem. Nevertheless, you
6484*** may want to report the problem to your system manager and/or to
6485*** bug-libtool@gnu.org
d7040cdb 6486
ce2cded5
L
6487_LT_EOF
6488 fi ;;
6489 esac
d7040cdb 6490 fi
ce2cded5 6491 break
d7040cdb 6492 fi
ce2cded5
L
6493 done
6494 IFS="$lt_save_ifs"
6495 MAGIC_CMD="$lt_save_MAGIC_CMD"
6496 ;;
6497esac
6498fi
d7040cdb 6499
ce2cded5
L
6500MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6501if test -n "$MAGIC_CMD"; then
6502 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6503echo "${ECHO_T}$MAGIC_CMD" >&6
6504else
6505 echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6
6507fi
d7040cdb 6508
d7040cdb 6509
d7040cdb 6510
d7040cdb 6511
d7040cdb 6512
ce2cded5
L
6513if test -z "$lt_cv_path_MAGIC_CMD"; then
6514 if test -n "$ac_tool_prefix"; then
6515 echo "$as_me:$LINENO: checking for file" >&5
6516echo $ECHO_N "checking for file... $ECHO_C" >&6
6517if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520 case $MAGIC_CMD in
6521[\\/*] | ?:[\\/]*)
6522 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6523 ;;
6524*)
6525 lt_save_MAGIC_CMD="$MAGIC_CMD"
6526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6527 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6528 for ac_dir in $ac_dummy; do
6529 IFS="$lt_save_ifs"
6530 test -z "$ac_dir" && ac_dir=.
6531 if test -f $ac_dir/file; then
6532 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6533 if test -n "$file_magic_test_file"; then
6534 case $deplibs_check_method in
6535 "file_magic "*)
6536 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6538 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6539 $EGREP "$file_magic_regex" > /dev/null; then
6540 :
d7040cdb 6541 else
ce2cded5
L
6542 cat <<_LT_EOF 1>&2
6543
6544*** Warning: the command libtool uses to detect shared libraries,
6545*** $file_magic_cmd, produces output that libtool cannot recognize.
6546*** The result is that libtool may fail to recognize shared libraries
6547*** as such. This will affect the creation of libtool libraries that
6548*** depend on shared libraries, but programs linked with such libtool
6549*** libraries will work regardless of this problem. Nevertheless, you
6550*** may want to report the problem to your system manager and/or to
6551*** bug-libtool@gnu.org
6552
6553_LT_EOF
6554 fi ;;
d7040cdb 6555 esac
d7040cdb 6556 fi
ce2cded5
L
6557 break
6558 fi
6559 done
6560 IFS="$lt_save_ifs"
6561 MAGIC_CMD="$lt_save_MAGIC_CMD"
6562 ;;
6563esac
6564fi
d7040cdb 6565
ce2cded5
L
6566MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6567if test -n "$MAGIC_CMD"; then
6568 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6569echo "${ECHO_T}$MAGIC_CMD" >&6
6570else
6571 echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6
6573fi
d7040cdb 6574
d7040cdb 6575
ce2cded5
L
6576 else
6577 MAGIC_CMD=:
6578 fi
d7040cdb 6579fi
d7040cdb 6580
ce2cded5
L
6581 fi
6582 ;;
6583esac
d7040cdb 6584
ce2cded5 6585# Use C for the default configuration in the libtool script
d7040cdb 6586
ce2cded5
L
6587lt_save_CC="$CC"
6588ac_ext=c
6589ac_cpp='$CPP $CPPFLAGS'
6590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6592ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6593
d7040cdb 6594
ce2cded5
L
6595# Source file extension for C test sources.
6596ac_ext=c
d7040cdb 6597
ce2cded5
L
6598# Object file extension for compiled C test sources.
6599objext=o
6600objext=$objext
d7040cdb 6601
ce2cded5
L
6602# Code to be used in simple compile tests
6603lt_simple_compile_test_code="int some_variable = 0;"
6604
6605# Code to be used in simple link tests
6606lt_simple_link_test_code='int main(){return(0);}'
6607
6608
6609
6610
6611
6612
6613
6614# If no C compiler was specified, use CC.
6615LTCC=${LTCC-"$CC"}
6616
6617# If no C compiler flags were specified, use CFLAGS.
6618LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6619
6620# Allow CC to be a program name with arguments.
6621compiler=$CC
6622
6623# Save the default compiler, since it gets overwritten when the other
6624# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6625compiler_DEFAULT=$CC
6626
6627# save warnings/boilerplate of simple test code
6628ac_outfile=conftest.$ac_objext
6629echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6630eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6631_lt_compiler_boilerplate=`cat conftest.err`
6632$RM conftest*
6633
6634ac_outfile=conftest.$ac_objext
6635echo "$lt_simple_link_test_code" >conftest.$ac_ext
6636eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6637_lt_linker_boilerplate=`cat conftest.err`
6638$RM conftest*
6639
6640
6641## CAVEAT EMPTOR:
6642## There is no encapsulation within the following macros, do not change
6643## the running order or otherwise move them around unless you know exactly
6644## what you are doing...
6645if test -n "$compiler"; then
6646
6647lt_prog_compiler_no_builtin_flag=
6648
6649if test "$GCC" = yes; then
6650 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6651
6652 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6653echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6654if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657 lt_cv_prog_compiler_rtti_exceptions=no
6658 ac_outfile=conftest.$ac_objext
6659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6660 lt_compiler_flag="-fno-rtti -fno-exceptions"
6661 # Insert the option either (1) after the last *FLAGS variable, or
6662 # (2) before a word containing "conftest.", or (3) at the end.
6663 # Note that $ac_compile itself does not contain backslashes and begins
6664 # with a dollar sign (not a hyphen), so the echo should work correctly.
6665 # The option is referenced via a variable to avoid confusing sed.
6666 lt_compile=`echo "$ac_compile" | $SED \
6667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6669 -e 's:$: $lt_compiler_flag:'`
58c85be7 6670 (eval echo "\"\$as_me:6670: $lt_compile\"" >&5)
ce2cded5
L
6671 (eval "$lt_compile" 2>conftest.err)
6672 ac_status=$?
6673 cat conftest.err >&5
58c85be7 6674 echo "$as_me:6674: \$? = $ac_status" >&5
ce2cded5
L
6675 if (exit $ac_status) && test -s "$ac_outfile"; then
6676 # The compiler can only warn and ignore the option if not recognized
6677 # So say no if there are warnings other than the usual output.
6678 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6681 lt_cv_prog_compiler_rtti_exceptions=yes
6682 fi
6683 fi
6684 $RM conftest*
6685
6686fi
6687echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6688echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6689
6690if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6691 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6692else
6693 :
6694fi
6695
6696fi
6697
6698
6699
6700
6701
6702
6703 lt_prog_compiler_wl=
6704lt_prog_compiler_pic=
6705lt_prog_compiler_static=
6706
6707echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6708echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6709
6710 if test "$GCC" = yes; then
6711 lt_prog_compiler_wl='-Wl,'
6712 lt_prog_compiler_static='-static'
6713
6714 case $host_os in
6715 aix*)
6716 # All AIX code is PIC.
6717 if test "$host_cpu" = ia64; then
6718 # AIX 5 now supports IA64 processor
6719 lt_prog_compiler_static='-Bstatic'
6720 fi
6721 ;;
d7040cdb
SE
6722
6723 amigaos*)
6724 if test "$host_cpu" = m68k; then
ce2cded5
L
6725 # FIXME: we need at least 68020 code to build shared libraries, but
6726 # adding the `-m68020' flag to GCC prevents building anything better,
6727 # like `-m68040'.
6728 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
d7040cdb 6729 fi
d7040cdb
SE
6730 ;;
6731
ce2cded5
L
6732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6733 # PIC is the default for these OSes.
d7040cdb
SE
6734 ;;
6735
ce2cded5
L
6736 mingw* | cygwin* | pw32* | os2*)
6737 # This hack is so that the source file can tell whether it is being
6738 # built for inclusion in a dll (and should export symbols for example).
6739 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6740 # (--disable-auto-import) libraries
6741 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
6742 ;;
6743
6744 darwin* | rhapsody*)
ce2cded5
L
6745 # PIC is the default on this platform
6746 # Common symbols not allowed in MH_DYLIB files
6747 lt_prog_compiler_pic='-fno-common'
6748 ;;
6749
6750 hpux*)
6751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6752 # not for PA HP-UX.
6753 case $host_cpu in
6754 hppa*64*|ia64*)
6755 # +Z the default
d7040cdb 6756 ;;
ce2cded5
L
6757 *)
6758 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
6759 ;;
6760 esac
ce2cded5 6761 ;;
d7040cdb 6762
ce2cded5
L
6763 interix[3-9]*)
6764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6765 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
6766 ;;
6767
ce2cded5
L
6768 msdosdjgpp*)
6769 # Just because we use GCC doesn't mean we suddenly get shared libraries
6770 # on systems that don't support them.
6771 lt_prog_compiler_can_build_shared=no
6772 enable_shared=no
d7040cdb
SE
6773 ;;
6774
ce2cded5
L
6775 *nto* | *qnx*)
6776 # QNX uses GNU C++, but need to define -shared option too, otherwise
6777 # it will coredump.
6778 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
6779 ;;
6780
ce2cded5
L
6781 sysv4*MP*)
6782 if test -d /usr/nec; then
6783 lt_prog_compiler_pic=-Kconform_pic
6784 fi
d7040cdb
SE
6785 ;;
6786
ce2cded5
L
6787 *)
6788 lt_prog_compiler_pic='-fPIC'
d7040cdb 6789 ;;
ce2cded5
L
6790 esac
6791 else
6792 # PORTME Check for flag to pass linker flags through the system compiler.
6793 case $host_os in
6794 aix*)
6795 lt_prog_compiler_wl='-Wl,'
6796 if test "$host_cpu" = ia64; then
6797 # AIX 5 now supports IA64 processor
6798 lt_prog_compiler_static='-Bstatic'
d7040cdb 6799 else
ce2cded5 6800 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 6801 fi
ce2cded5
L
6802 ;;
6803 darwin*)
6804 # PIC is the default on this platform
6805 # Common symbols not allowed in MH_DYLIB files
6806 case $cc_basename in
6807 xlc*)
6808 lt_prog_compiler_pic='-qnocommon'
6809 lt_prog_compiler_wl='-Wl,'
6810 ;;
6811 esac
6812 ;;
d7040cdb 6813
ce2cded5
L
6814 mingw* | cygwin* | pw32* | os2*)
6815 # This hack is so that the source file can tell whether it is being
6816 # built for inclusion in a dll (and should export symbols for example).
6817 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
6818 ;;
6819
ce2cded5
L
6820 hpux9* | hpux10* | hpux11*)
6821 lt_prog_compiler_wl='-Wl,'
6822 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6823 # not for PA HP-UX.
6824 case $host_cpu in
6825 hppa*64*|ia64*)
6826 # +Z the default
6827 ;;
6828 *)
6829 lt_prog_compiler_pic='+Z'
6830 ;;
6831 esac
6832 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6833 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
6834 ;;
6835
ce2cded5
L
6836 irix5* | irix6* | nonstopux*)
6837 lt_prog_compiler_wl='-Wl,'
6838 # PIC (with -KPIC) is the default.
6839 lt_prog_compiler_static='-non_shared'
6840 ;;
d7040cdb 6841
ce2cded5
L
6842 linux* | k*bsd*-gnu)
6843 case $cc_basename in
6844 icc* | ecc*)
6845 lt_prog_compiler_wl='-Wl,'
6846 lt_prog_compiler_pic='-KPIC'
6847 lt_prog_compiler_static='-static'
6848 ;;
6849 pgcc* | pgf77* | pgf90* | pgf95*)
6850 # Portland Group compilers (*not* the Pentium gcc compiler,
6851 # which looks to be a dead project)
6852 lt_prog_compiler_wl='-Wl,'
6853 lt_prog_compiler_pic='-fpic'
6854 lt_prog_compiler_static='-Bstatic'
6855 ;;
6856 ccc*)
6857 lt_prog_compiler_wl='-Wl,'
6858 # All Alpha code is PIC.
6859 lt_prog_compiler_static='-non_shared'
6860 ;;
6861 *)
6862 case `$CC -V 2>&1 | sed 5q` in
6863 *Sun\ C*)
6864 # Sun C 5.9
6865 lt_prog_compiler_pic='-KPIC'
6866 lt_prog_compiler_static='-Bstatic'
6867 lt_prog_compiler_wl='-Wl,'
d7040cdb 6868 ;;
ce2cded5
L
6869 *Sun\ F*)
6870 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6871 lt_prog_compiler_pic='-KPIC'
6872 lt_prog_compiler_static='-Bstatic'
6873 lt_prog_compiler_wl=''
d7040cdb
SE
6874 ;;
6875 esac
ce2cded5
L
6876 ;;
6877 esac
d7040cdb
SE
6878 ;;
6879
ce2cded5
L
6880 newsos6)
6881 lt_prog_compiler_pic='-KPIC'
6882 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6883 ;;
6884
ce2cded5
L
6885 *nto* | *qnx*)
6886 # QNX uses GNU C++, but need to define -shared option too, otherwise
6887 # it will coredump.
6888 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
6889 ;;
6890
ce2cded5
L
6891 osf3* | osf4* | osf5*)
6892 lt_prog_compiler_wl='-Wl,'
6893 # All OSF/1 code is PIC.
6894 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
6895 ;;
6896
ce2cded5
L
6897 rdos*)
6898 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
6899 ;;
6900
6901 solaris*)
ce2cded5
L
6902 lt_prog_compiler_pic='-KPIC'
6903 lt_prog_compiler_static='-Bstatic'
6904 case $cc_basename in
6905 f77* | f90* | f95*)
6906 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 6907 *)
ce2cded5 6908 lt_prog_compiler_wl='-Wl,';;
d7040cdb 6909 esac
d7040cdb
SE
6910 ;;
6911
6912 sunos4*)
ce2cded5
L
6913 lt_prog_compiler_wl='-Qoption ld '
6914 lt_prog_compiler_pic='-PIC'
6915 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6916 ;;
6917
ce2cded5
L
6918 sysv4 | sysv4.2uw2* | sysv4.3*)
6919 lt_prog_compiler_wl='-Wl,'
6920 lt_prog_compiler_pic='-KPIC'
6921 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6922 ;;
6923
6924 sysv4*MP*)
ce2cded5
L
6925 if test -d /usr/nec ;then
6926 lt_prog_compiler_pic='-Kconform_pic'
6927 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6928 fi
6929 ;;
6930
ce2cded5
L
6931 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6932 lt_prog_compiler_wl='-Wl,'
6933 lt_prog_compiler_pic='-KPIC'
6934 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6935 ;;
6936
ce2cded5
L
6937 unicos*)
6938 lt_prog_compiler_wl='-Wl,'
6939 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
6940 ;;
6941
6942 uts4*)
ce2cded5
L
6943 lt_prog_compiler_pic='-pic'
6944 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6945 ;;
6946
6947 *)
ce2cded5 6948 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
6949 ;;
6950 esac
d7040cdb
SE
6951 fi
6952
ce2cded5
L
6953case $host_os in
6954 # For platforms which do not support PIC, -DPIC is meaningless:
6955 *djgpp*)
6956 lt_prog_compiler_pic=
6957 ;;
6958 *)
6959 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6960 ;;
6961esac
6962echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6963echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
6964
6965
6966
6967
6968
6969
6970#
ce2cded5 6971# Check to make sure the PIC flag actually works.
d7040cdb 6972#
ce2cded5
L
6973if test -n "$lt_prog_compiler_pic"; then
6974 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6975echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6976if test "${lt_prog_compiler_pic_works+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978else
6979 lt_prog_compiler_pic_works=no
6980 ac_outfile=conftest.$ac_objext
6981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6982 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6983 # Insert the option either (1) after the last *FLAGS variable, or
6984 # (2) before a word containing "conftest.", or (3) at the end.
6985 # Note that $ac_compile itself does not contain backslashes and begins
6986 # with a dollar sign (not a hyphen), so the echo should work correctly.
6987 # The option is referenced via a variable to avoid confusing sed.
6988 lt_compile=`echo "$ac_compile" | $SED \
6989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6991 -e 's:$: $lt_compiler_flag:'`
58c85be7 6992 (eval echo "\"\$as_me:6992: $lt_compile\"" >&5)
ce2cded5
L
6993 (eval "$lt_compile" 2>conftest.err)
6994 ac_status=$?
6995 cat conftest.err >&5
58c85be7 6996 echo "$as_me:6996: \$? = $ac_status" >&5
ce2cded5
L
6997 if (exit $ac_status) && test -s "$ac_outfile"; then
6998 # The compiler can only warn and ignore the option if not recognized
6999 # So say no if there are warnings other than the usual output.
7000 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7002 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7003 lt_prog_compiler_pic_works=yes
7004 fi
7005 fi
7006 $RM conftest*
d7040cdb 7007
ce2cded5
L
7008fi
7009echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7010echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
d7040cdb 7011
ce2cded5
L
7012if test x"$lt_prog_compiler_pic_works" = xyes; then
7013 case $lt_prog_compiler_pic in
7014 "" | " "*) ;;
7015 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7016 esac
7017else
7018 lt_prog_compiler_pic=
7019 lt_prog_compiler_can_build_shared=no
7020fi
d7040cdb 7021
ce2cded5 7022fi
d7040cdb
SE
7023
7024
7025
7026
7027
7028
ce2cded5
L
7029#
7030# Check to make sure the static flag actually works.
7031#
7032wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7033echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7034echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7035if test "${lt_prog_compiler_static_works+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037else
7038 lt_prog_compiler_static_works=no
7039 save_LDFLAGS="$LDFLAGS"
7040 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7041 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7043 # The linker can only warn and ignore the option if not recognized
7044 # So say no if there are warnings
7045 if test -s conftest.err; then
7046 # Append any errors to the config.log.
7047 cat conftest.err 1>&5
7048 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7050 if diff conftest.exp conftest.er2 >/dev/null; then
7051 lt_prog_compiler_static_works=yes
7052 fi
7053 else
7054 lt_prog_compiler_static_works=yes
7055 fi
7056 fi
7057 $RM conftest*
7058 LDFLAGS="$save_LDFLAGS"
d7040cdb 7059
ce2cded5
L
7060fi
7061echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7062echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7063
ce2cded5
L
7064if test x"$lt_prog_compiler_static_works" = xyes; then
7065 :
7066else
7067 lt_prog_compiler_static=
7068fi
d7040cdb
SE
7069
7070
7071
7072
7073
7074
7075
ce2cded5
L
7076 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7077echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7078if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080else
7081 lt_cv_prog_compiler_c_o=no
7082 $RM -r conftest 2>/dev/null
7083 mkdir conftest
7084 cd conftest
7085 mkdir out
7086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7087
ce2cded5
L
7088 lt_compiler_flag="-o out/conftest2.$ac_objext"
7089 # Insert the option either (1) after the last *FLAGS variable, or
7090 # (2) before a word containing "conftest.", or (3) at the end.
7091 # Note that $ac_compile itself does not contain backslashes and begins
7092 # with a dollar sign (not a hyphen), so the echo should work correctly.
7093 lt_compile=`echo "$ac_compile" | $SED \
7094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7096 -e 's:$: $lt_compiler_flag:'`
58c85be7 7097 (eval echo "\"\$as_me:7097: $lt_compile\"" >&5)
ce2cded5
L
7098 (eval "$lt_compile" 2>out/conftest.err)
7099 ac_status=$?
7100 cat out/conftest.err >&5
58c85be7 7101 echo "$as_me:7101: \$? = $ac_status" >&5
ce2cded5
L
7102 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7103 then
7104 # The compiler can only warn and ignore the option if not recognized
7105 # So say no if there are warnings
7106 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7107 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7108 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7109 lt_cv_prog_compiler_c_o=yes
7110 fi
7111 fi
7112 chmod u+w . 2>&5
7113 $RM conftest*
7114 # SGI C++ compiler will create directory out/ii_files/ for
7115 # template instantiation
7116 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7117 $RM out/* && rmdir out
7118 cd ..
7119 $RM -r conftest
7120 $RM conftest*
d7040cdb 7121
ce2cded5
L
7122fi
7123echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7124echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7125
7126
7127
7128
7129
7130
ce2cded5
L
7131 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7132echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7133if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135else
7136 lt_cv_prog_compiler_c_o=no
7137 $RM -r conftest 2>/dev/null
7138 mkdir conftest
7139 cd conftest
7140 mkdir out
7141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7142
ce2cded5
L
7143 lt_compiler_flag="-o out/conftest2.$ac_objext"
7144 # Insert the option either (1) after the last *FLAGS variable, or
7145 # (2) before a word containing "conftest.", or (3) at the end.
7146 # Note that $ac_compile itself does not contain backslashes and begins
7147 # with a dollar sign (not a hyphen), so the echo should work correctly.
7148 lt_compile=`echo "$ac_compile" | $SED \
7149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7151 -e 's:$: $lt_compiler_flag:'`
58c85be7 7152 (eval echo "\"\$as_me:7152: $lt_compile\"" >&5)
ce2cded5
L
7153 (eval "$lt_compile" 2>out/conftest.err)
7154 ac_status=$?
7155 cat out/conftest.err >&5
58c85be7 7156 echo "$as_me:7156: \$? = $ac_status" >&5
ce2cded5
L
7157 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7158 then
7159 # The compiler can only warn and ignore the option if not recognized
7160 # So say no if there are warnings
7161 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7164 lt_cv_prog_compiler_c_o=yes
7165 fi
7166 fi
7167 chmod u+w . 2>&5
7168 $RM conftest*
7169 # SGI C++ compiler will create directory out/ii_files/ for
7170 # template instantiation
7171 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7172 $RM out/* && rmdir out
7173 cd ..
7174 $RM -r conftest
7175 $RM conftest*
d7040cdb 7176
ce2cded5
L
7177fi
7178echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7179echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7180
7181
7182
7183
ce2cded5
L
7184hard_links="nottested"
7185if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7186 # do not overwrite the value of need_locks provided by the user
7187 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7188echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7189 hard_links=yes
7190 $RM conftest*
7191 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7192 touch conftest.a
7193 ln conftest.a conftest.b 2>&5 || hard_links=no
7194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7195 echo "$as_me:$LINENO: result: $hard_links" >&5
7196echo "${ECHO_T}$hard_links" >&6
7197 if test "$hard_links" = no; then
7198 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7199echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7200 need_locks=warn
7201 fi
7202else
7203 need_locks=no
7204fi
d7040cdb
SE
7205
7206
7207
7208
7209
7210
ce2cded5
L
7211 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7212echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7213
ce2cded5
L
7214 runpath_var=
7215 allow_undefined_flag=
7216 always_export_symbols=no
7217 archive_cmds=
7218 archive_expsym_cmds=
7219 compiler_needs_object=no
7220 enable_shared_with_static_runtimes=no
7221 export_dynamic_flag_spec=
7222 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7223 hardcode_automatic=no
7224 hardcode_direct=no
7225 hardcode_direct_absolute=no
7226 hardcode_libdir_flag_spec=
7227 hardcode_libdir_flag_spec_ld=
7228 hardcode_libdir_separator=
7229 hardcode_minus_L=no
7230 hardcode_shlibpath_var=unsupported
7231 inherit_rpath=no
7232 link_all_deplibs=unknown
7233 module_cmds=
7234 module_expsym_cmds=
7235 old_archive_from_new_cmds=
7236 old_archive_from_expsyms_cmds=
7237 thread_safe_flag_spec=
7238 whole_archive_flag_spec=
7239 # include_expsyms should be a list of space-separated symbols to be *always*
7240 # included in the symbol list
7241 include_expsyms=
7242 # exclude_expsyms can be an extended regexp of symbols to exclude
7243 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7244 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7245 # as well as any symbol that contains `d'.
7246 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7247 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7248 # platforms (ab)use it in PIC code, but their linkers get confused if
7249 # the symbol is explicitly referenced. Since portable code cannot
7250 # rely on this symbol name, it's probably fine to never include it in
7251 # preloaded symbol tables.
7252 extract_expsyms_cmds=
d7040cdb 7253
ce2cded5
L
7254 case $host_os in
7255 cygwin* | mingw* | pw32*)
7256 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7257 # When not using gcc, we currently assume that we are using
7258 # Microsoft Visual C++.
7259 if test "$GCC" != yes; then
7260 with_gnu_ld=no
7261 fi
7262 ;;
7263 interix*)
7264 # we just hope/assume this is gcc and not c89 (= MSVC++)
7265 with_gnu_ld=yes
7266 ;;
7267 openbsd*)
7268 with_gnu_ld=no
7269 ;;
7270 esac
d7040cdb 7271
ce2cded5
L
7272 ld_shlibs=yes
7273 if test "$with_gnu_ld" = yes; then
7274 # If archive_cmds runs LD, not CC, wlarc should be empty
7275 wlarc='${wl}'
d7040cdb 7276
ce2cded5
L
7277 # Set some defaults for GNU ld with shared library support. These
7278 # are reset later if shared libraries are not supported. Putting them
7279 # here allows them to be overridden if necessary.
7280 runpath_var=LD_RUN_PATH
7281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7282 export_dynamic_flag_spec='${wl}--export-dynamic'
7283 # ancient GNU ld didn't support --whole-archive et. al.
7284 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7285 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7286 else
7287 whole_archive_flag_spec=
7288 fi
7289 supports_anon_versioning=no
7290 case `$LD -v 2>&1` in
7291 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7292 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7293 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7294 *\ 2.11.*) ;; # other 2.11 versions
7295 *) supports_anon_versioning=yes ;;
7296 esac
d7040cdb 7297
ce2cded5
L
7298 # See if GNU ld supports shared libraries.
7299 case $host_os in
50e7d84b 7300 aix[3-9]*)
ce2cded5
L
7301 # On AIX/PPC, the GNU linker is very broken
7302 if test "$host_cpu" != ia64; then
7303 ld_shlibs=no
7304 cat <<_LT_EOF 1>&2
d7040cdb 7305
ce2cded5
L
7306*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7307*** to be unable to reliably create shared libraries on AIX.
7308*** Therefore, libtool is disabling shared libraries support. If you
7309*** really care for shared libraries, you may want to modify your PATH
7310*** so that a non-GNU linker is found, and then restart.
d7040cdb 7311
ce2cded5
L
7312_LT_EOF
7313 fi
7314 ;;
d7040cdb 7315
ce2cded5
L
7316 amigaos*)
7317 if test "$host_cpu" = m68k; then
7318 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)'
7319 hardcode_libdir_flag_spec='-L$libdir'
7320 hardcode_minus_L=yes
7321 fi
d7040cdb 7322
ce2cded5
L
7323 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7324 # that the semantics of dynamic libraries on AmigaOS, at least up
7325 # to version 4, is to share data among multiple programs linked
7326 # with the same dynamic library. Since this doesn't match the
7327 # behavior of shared libraries on other platforms, we can't use
7328 # them.
7329 ld_shlibs=no
7330 ;;
d7040cdb 7331
ce2cded5
L
7332 beos*)
7333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7334 allow_undefined_flag=unsupported
7335 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7336 # support --undefined. This deserves some investigation. FIXME
7337 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7338 else
7339 ld_shlibs=no
7340 fi
7341 ;;
d7040cdb 7342
ce2cded5
L
7343 cygwin* | mingw* | pw32*)
7344 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7345 # as there is no search path for DLLs.
7346 hardcode_libdir_flag_spec='-L$libdir'
7347 allow_undefined_flag=unsupported
7348 always_export_symbols=no
7349 enable_shared_with_static_runtimes=yes
7350 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 7351
ce2cded5
L
7352 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7354 # If the export-symbols file already is a .def file (1st line
7355 # is EXPORTS), use it as is; otherwise, prepend...
7356 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7357 cp $export_symbols $output_objdir/$soname.def;
7358 else
7359 echo EXPORTS > $output_objdir/$soname.def;
7360 cat $export_symbols >> $output_objdir/$soname.def;
7361 fi~
7362 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7363 else
7364 ld_shlibs=no
7365 fi
7366 ;;
d7040cdb 7367
ce2cded5
L
7368 interix[3-9]*)
7369 hardcode_direct=no
7370 hardcode_shlibpath_var=no
7371 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7372 export_dynamic_flag_spec='${wl}-E'
7373 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7374 # Instead, shared libraries are loaded at an image base (0x10000000 by
7375 # default) and relocated if they conflict, which is a slow very memory
7376 # consuming and fragmenting process. To avoid this, we pick a random,
7377 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7378 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7379 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7380 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'
7381 ;;
d7040cdb 7382
ce2cded5
L
7383 gnu* | linux* | tpf* | k*bsd*-gnu)
7384 tmp_diet=no
7385 if test "$host_os" = linux-dietlibc; then
7386 case $cc_basename in
7387 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7388 esac
7389 fi
7390 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7391 && test "$tmp_diet" = no
7392 then
7393 tmp_addflag=
7394 case $cc_basename,$host_cpu in
7395 pgcc*) # Portland Group C compiler
7396 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'
7397 tmp_addflag=' $pic_flag'
7398 ;;
7399 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7400 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'
7401 tmp_addflag=' $pic_flag -Mnomain' ;;
7402 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7403 tmp_addflag=' -i_dynamic' ;;
7404 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7405 tmp_addflag=' -i_dynamic -nofor_main' ;;
7406 ifc* | ifort*) # Intel Fortran compiler
7407 tmp_addflag=' -nofor_main' ;;
7408 esac
7409 case `$CC -V 2>&1 | sed 5q` in
7410 *Sun\ C*) # Sun C 5.9
7411 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'
7412 compiler_needs_object=yes
7413 tmp_sharedflag='-G' ;;
7414 *Sun\ F*) # Sun Fortran 8.3
7415 tmp_sharedflag='-G' ;;
7416 *)
7417 tmp_sharedflag='-shared' ;;
7418 esac
7419 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7420
ce2cded5
L
7421 if test "x$supports_anon_versioning" = xyes; then
7422 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7423 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7424 echo "local: *; };" >> $output_objdir/$libname.ver~
7425 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7426 fi
7427 else
7428 ld_shlibs=no
7429 fi
7430 ;;
d7040cdb 7431
ce2cded5
L
7432 netbsd*)
7433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7434 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7435 wlarc=
7436 else
7437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7438 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7439 fi
7440 ;;
d7040cdb 7441
ce2cded5
L
7442 solaris*)
7443 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7444 ld_shlibs=no
7445 cat <<_LT_EOF 1>&2
d7040cdb 7446
ce2cded5
L
7447*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7448*** create shared libraries on Solaris systems. Therefore, libtool
7449*** is disabling shared libraries support. We urge you to upgrade GNU
7450*** binutils to release 2.9.1 or newer. Another option is to modify
7451*** your PATH or compiler configuration so that the native linker is
7452*** used, and then restart.
d7040cdb 7453
ce2cded5
L
7454_LT_EOF
7455 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7458 else
7459 ld_shlibs=no
7460 fi
7461 ;;
d7040cdb 7462
ce2cded5
L
7463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7464 case `$LD -v 2>&1` in
7465 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7466 ld_shlibs=no
7467 cat <<_LT_EOF 1>&2
d7040cdb 7468
ce2cded5
L
7469*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7470*** reliably create shared libraries on SCO systems. Therefore, libtool
7471*** is disabling shared libraries support. We urge you to upgrade GNU
7472*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7473*** your PATH or compiler configuration so that the native linker is
7474*** used, and then restart.
d7040cdb 7475
ce2cded5
L
7476_LT_EOF
7477 ;;
7478 *)
7479 # For security reasons, it is highly recommended that you always
7480 # use absolute paths for naming shared libraries, and exclude the
7481 # DT_RUNPATH tag from executables and libraries. But doing so
7482 # requires that you compile everything twice, which is a pain.
7483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7487 else
7488 ld_shlibs=no
7489 fi
7490 ;;
7491 esac
7492 ;;
d7040cdb 7493
ce2cded5
L
7494 sunos4*)
7495 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7496 wlarc=
7497 hardcode_direct=yes
7498 hardcode_shlibpath_var=no
7499 ;;
d7040cdb 7500
ce2cded5
L
7501 *)
7502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7505 else
7506 ld_shlibs=no
7507 fi
7508 ;;
7509 esac
d7040cdb 7510
ce2cded5
L
7511 if test "$ld_shlibs" = no; then
7512 runpath_var=
7513 hardcode_libdir_flag_spec=
7514 export_dynamic_flag_spec=
7515 whole_archive_flag_spec=
7516 fi
7517 else
7518 # PORTME fill in a description of your system's linker (not GNU ld)
7519 case $host_os in
7520 aix3*)
7521 allow_undefined_flag=unsupported
7522 always_export_symbols=yes
7523 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'
7524 # Note: this linker hardcodes the directories in LIBPATH if there
7525 # are no directories specified by -L.
7526 hardcode_minus_L=yes
7527 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7528 # Neither direct hardcoding nor static linking is supported with a
7529 # broken collect2.
7530 hardcode_direct=unsupported
7531 fi
7532 ;;
d7040cdb 7533
50e7d84b 7534 aix[4-9]*)
ce2cded5
L
7535 if test "$host_cpu" = ia64; then
7536 # On IA64, the linker does run time linking by default, so we don't
7537 # have to do anything special.
7538 aix_use_runtimelinking=no
7539 exp_sym_flag='-Bexport'
7540 no_entry_flag=""
7541 else
7542 # If we're using GNU nm, then we don't want the "-C" option.
7543 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7544 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7545 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'
7546 else
7547 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'
7548 fi
7549 aix_use_runtimelinking=no
d7040cdb 7550
ce2cded5
L
7551 # Test if we are trying to use run time linking or normal
7552 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7553 # need to do runtime linking.
50e7d84b 7554 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
7555 for ld_flag in $LDFLAGS; do
7556 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7557 aix_use_runtimelinking=yes
7558 break
7559 fi
7560 done
7561 ;;
7562 esac
d7040cdb 7563
ce2cded5
L
7564 exp_sym_flag='-bexport'
7565 no_entry_flag='-bnoentry'
7566 fi
d7040cdb 7567
ce2cded5
L
7568 # When large executables or shared objects are built, AIX ld can
7569 # have problems creating the table of contents. If linking a library
7570 # or program results in "error TOC overflow" add -mminimal-toc to
7571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 7573
ce2cded5
L
7574 archive_cmds=''
7575 hardcode_direct=yes
7576 hardcode_direct_absolute=yes
7577 hardcode_libdir_separator=':'
7578 link_all_deplibs=yes
7579 file_list_spec='${wl}-f,'
d7040cdb 7580
ce2cded5
L
7581 if test "$GCC" = yes; then
7582 case $host_os in aix4.[012]|aix4.[012].*)
7583 # We only want to do this on AIX 4.2 and lower, the check
7584 # below for broken collect2 doesn't work under 4.3+
7585 collect2name=`${CC} -print-prog-name=collect2`
7586 if test -f "$collect2name" &&
7587 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7588 then
7589 # We have reworked collect2
7590 :
7591 else
7592 # We have old collect2
7593 hardcode_direct=unsupported
7594 # It fails to find uninstalled libraries when the uninstalled
7595 # path is not listed in the libpath. Setting hardcode_minus_L
7596 # to unsupported forces relinking
7597 hardcode_minus_L=yes
7598 hardcode_libdir_flag_spec='-L$libdir'
7599 hardcode_libdir_separator=
7600 fi
7601 ;;
7602 esac
7603 shared_flag='-shared'
7604 if test "$aix_use_runtimelinking" = yes; then
7605 shared_flag="$shared_flag "'${wl}-G'
7606 fi
7607 else
7608 # not using gcc
7609 if test "$host_cpu" = ia64; then
7610 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7611 # chokes on -Wl,-G. The following line is correct:
7612 shared_flag='-G'
7613 else
7614 if test "$aix_use_runtimelinking" = yes; then
7615 shared_flag='${wl}-G'
7616 else
7617 shared_flag='${wl}-bM:SRE'
7618 fi
7619 fi
7620 fi
d7040cdb 7621
ce2cded5
L
7622 # It seems that -bexpall does not export symbols beginning with
7623 # underscore (_), so it is better to generate a list of symbols to export.
7624 always_export_symbols=yes
7625 if test "$aix_use_runtimelinking" = yes; then
7626 # Warning - without using the other runtime loading flags (-brtl),
7627 # -berok will link without error, but may produce a broken library.
7628 allow_undefined_flag='-berok'
7629 # Determine the default libpath from the value encoded in an
7630 # empty executable.
7631 cat >conftest.$ac_ext <<_ACEOF
7632/* confdefs.h. */
7633_ACEOF
7634cat confdefs.h >>conftest.$ac_ext
7635cat >>conftest.$ac_ext <<_ACEOF
7636/* end confdefs.h. */
d7040cdb 7637
ce2cded5
L
7638int
7639main ()
7640{
d7040cdb 7641
ce2cded5
L
7642 ;
7643 return 0;
7644}
7645_ACEOF
7646rm -f conftest.$ac_objext conftest$ac_exeext
7647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7648 (eval $ac_link) 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } &&
7655 { ac_try='test -z "$ac_c_werror_flag"
7656 || test ! -s conftest.err'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; } &&
7662 { ac_try='test -s conftest$ac_exeext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
d7040cdb 7668
ce2cded5
L
7669lt_aix_libpath_sed='
7670 /Import File Strings/,/^$/ {
7671 /^0/ {
7672 s/^0 *\(.*\)$/\1/
7673 p
7674 }
7675 }'
7676aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7677# Check for a 64-bit object if we didn't find anything.
7678if test -z "$aix_libpath"; then
7679 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7680fi
7681else
7682 echo "$as_me: failed program was:" >&5
7683sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7684
ce2cded5
L
7685fi
7686rm -f conftest.err conftest.$ac_objext \
7687 conftest$ac_exeext conftest.$ac_ext
7688if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7689
ce2cded5
L
7690 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7691 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"
7692 else
7693 if test "$host_cpu" = ia64; then
7694 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7695 allow_undefined_flag="-z nodefs"
7696 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"
7697 else
7698 # Determine the default libpath from the value encoded in an
7699 # empty executable.
7700 cat >conftest.$ac_ext <<_ACEOF
7701/* confdefs.h. */
7702_ACEOF
7703cat confdefs.h >>conftest.$ac_ext
7704cat >>conftest.$ac_ext <<_ACEOF
7705/* end confdefs.h. */
d7040cdb 7706
ce2cded5
L
7707int
7708main ()
7709{
d7040cdb 7710
ce2cded5
L
7711 ;
7712 return 0;
7713}
7714_ACEOF
7715rm -f conftest.$ac_objext conftest$ac_exeext
7716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7717 (eval $ac_link) 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } &&
7724 { ac_try='test -z "$ac_c_werror_flag"
7725 || test ! -s conftest.err'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 (eval $ac_try) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; } &&
7731 { ac_try='test -s conftest$ac_exeext'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 (eval $ac_try) 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
d7040cdb 7737
ce2cded5
L
7738lt_aix_libpath_sed='
7739 /Import File Strings/,/^$/ {
7740 /^0/ {
7741 s/^0 *\(.*\)$/\1/
7742 p
7743 }
7744 }'
7745aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7746# Check for a 64-bit object if we didn't find anything.
7747if test -z "$aix_libpath"; then
7748 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7749fi
7750else
7751 echo "$as_me: failed program was:" >&5
7752sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7753
ce2cded5
L
7754fi
7755rm -f conftest.err conftest.$ac_objext \
7756 conftest$ac_exeext conftest.$ac_ext
7757if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7758
ce2cded5
L
7759 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7760 # Warning - without using the other run time loading flags,
7761 # -berok will link without error, but may produce a broken library.
7762 no_undefined_flag=' ${wl}-bernotok'
7763 allow_undefined_flag=' ${wl}-berok'
7764 # Exported symbols can be pulled into shared objects from archives
7765 whole_archive_flag_spec='$convenience'
7766 archive_cmds_need_lc=yes
7767 # This is similar to how AIX traditionally builds its shared libraries.
7768 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'
7769 fi
7770 fi
7771 ;;
d7040cdb 7772
ce2cded5
L
7773 amigaos*)
7774 if test "$host_cpu" = m68k; then
7775 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)'
7776 hardcode_libdir_flag_spec='-L$libdir'
7777 hardcode_minus_L=yes
7778 fi
7779 # see comment about different semantics on the GNU ld section
7780 ld_shlibs=no
7781 ;;
d7040cdb 7782
ce2cded5
L
7783 bsdi[45]*)
7784 export_dynamic_flag_spec=-rdynamic
7785 ;;
d7040cdb 7786
ce2cded5
L
7787 cygwin* | mingw* | pw32*)
7788 # When not using gcc, we currently assume that we are using
7789 # Microsoft Visual C++.
7790 # hardcode_libdir_flag_spec is actually meaningless, as there is
7791 # no search path for DLLs.
7792 hardcode_libdir_flag_spec=' '
7793 allow_undefined_flag=unsupported
7794 # Tell ltmain to make .lib files, not .a files.
7795 libext=lib
7796 # Tell ltmain to make .dll files, not .so files.
7797 shrext_cmds=".dll"
7798 # FIXME: Setting linknames here is a bad hack.
7799 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7800 # The linker will automatically build a .lib file if we build a DLL.
7801 old_archive_from_new_cmds='true'
7802 # FIXME: Should let the user specify the lib program.
7803 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7804 fix_srcfile_path='`cygpath -w "$srcfile"`'
7805 enable_shared_with_static_runtimes=yes
7806 ;;
d7040cdb 7807
ce2cded5
L
7808 darwin* | rhapsody*)
7809 case $host_os in
7810 rhapsody* | darwin1.[012])
7811 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7812 ;;
7813 *) # Darwin 1.3 on
7814 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7815 10.[012])
7816 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7817 ;;
7818 10.*)
7819 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7820 ;;
7821 esac
7822 ;;
7823 esac
7824 archive_cmds_need_lc=no
7825 hardcode_direct=no
7826 hardcode_automatic=yes
7827 hardcode_shlibpath_var=unsupported
7828 whole_archive_flag_spec=''
7829 link_all_deplibs=yes
7830 if test "$GCC" = yes ; then
7831 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833else
7834 lt_cv_apple_cc_single_mod=no
7835 if test -z "${LT_MULTI_MODULE}"; then
7836 # By default we will add the -single_module flag. You can override
7837 # by either setting the environment variable LT_MULTI_MODULE
7838 # non-empty at configure time, or by adding -multi-module to the
7839 # link flags.
7840 echo "int foo(void){return 1;}" > conftest.c
7841 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7842 -dynamiclib ${wl}-single_module conftest.c
7843 if test -f libconftest.dylib; then
7844 lt_cv_apple_cc_single_mod=yes
7845 rm libconftest.dylib
7846 fi
7847 rm conftest.$ac_ext
7848 fi
7849fi
d7040cdb 7850
ce2cded5
L
7851 output_verbose_link_cmd=echo
7852 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7853 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7854 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}'
7855 else
7856 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7857 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}'
7858 fi
7859 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7860 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}'
7861 else
7862 case $cc_basename in
7863 xlc*)
7864 output_verbose_link_cmd=echo
7865 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7866 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7868 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}'
7869 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}'
7870 ;;
7871 *)
7872 ld_shlibs=no
7873 ;;
7874 esac
7875 fi
7876 ;;
d7040cdb 7877
ce2cded5
L
7878 dgux*)
7879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7880 hardcode_libdir_flag_spec='-L$libdir'
7881 hardcode_shlibpath_var=no
7882 ;;
d7040cdb 7883
ce2cded5
L
7884 freebsd1*)
7885 ld_shlibs=no
7886 ;;
d7040cdb 7887
ce2cded5
L
7888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7889 # support. Future versions do this automatically, but an explicit c++rt0.o
7890 # does not break anything, and helps significantly (at the cost of a little
7891 # extra space).
7892 freebsd2.2*)
7893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7894 hardcode_libdir_flag_spec='-R$libdir'
7895 hardcode_direct=yes
7896 hardcode_shlibpath_var=no
7897 ;;
d7040cdb 7898
ce2cded5
L
7899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7900 freebsd2*)
7901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7902 hardcode_direct=yes
7903 hardcode_minus_L=yes
7904 hardcode_shlibpath_var=no
7905 ;;
d7040cdb 7906
ce2cded5
L
7907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7908 freebsd* | dragonfly*)
7909 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7910 hardcode_libdir_flag_spec='-R$libdir'
7911 hardcode_direct=yes
7912 hardcode_shlibpath_var=no
7913 ;;
d7040cdb 7914
ce2cded5
L
7915 hpux9*)
7916 if test "$GCC" = yes; then
7917 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'
7918 else
7919 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'
7920 fi
7921 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7922 hardcode_libdir_separator=:
7923 hardcode_direct=yes
d7040cdb 7924
ce2cded5
L
7925 # hardcode_minus_L: Not really in the search PATH,
7926 # but as the default location of the library.
7927 hardcode_minus_L=yes
7928 export_dynamic_flag_spec='${wl}-E'
7929 ;;
d7040cdb 7930
ce2cded5
L
7931 hpux10*)
7932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7933 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7934 else
7935 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7936 fi
7937 if test "$with_gnu_ld" = no; then
7938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7939 hardcode_libdir_flag_spec_ld='+b $libdir'
7940 hardcode_libdir_separator=:
7941 hardcode_direct=yes
7942 hardcode_direct_absolute=yes
7943 export_dynamic_flag_spec='${wl}-E'
7944 # hardcode_minus_L: Not really in the search PATH,
7945 # but as the default location of the library.
7946 hardcode_minus_L=yes
7947 fi
7948 ;;
d7040cdb 7949
ce2cded5
L
7950 hpux11*)
7951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7952 case $host_cpu in
7953 hppa*64*)
7954 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7955 ;;
7956 ia64*)
7957 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7958 ;;
7959 *)
7960 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7961 ;;
7962 esac
7963 else
7964 case $host_cpu in
7965 hppa*64*)
7966 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7967 ;;
7968 ia64*)
7969 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7970 ;;
7971 *)
7972 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7973 ;;
7974 esac
7975 fi
7976 if test "$with_gnu_ld" = no; then
7977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7978 hardcode_libdir_separator=:
d7040cdb 7979
ce2cded5
L
7980 case $host_cpu in
7981 hppa*64*|ia64*)
7982 hardcode_direct=no
7983 hardcode_shlibpath_var=no
7984 ;;
7985 *)
7986 hardcode_direct=yes
7987 hardcode_direct_absolute=yes
7988 export_dynamic_flag_spec='${wl}-E'
d7040cdb 7989
ce2cded5
L
7990 # hardcode_minus_L: Not really in the search PATH,
7991 # but as the default location of the library.
7992 hardcode_minus_L=yes
7993 ;;
7994 esac
7995 fi
7996 ;;
7997
7998 irix5* | irix6* | nonstopux*)
7999 if test "$GCC" = yes; then
8000 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'
8001 # Try to use the -exported_symbol ld option, if it does not
8002 # work, assume that -exports_file does not work either and
8003 # implicitly export all symbols.
8004 save_LDFLAGS="$LDFLAGS"
8005 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8006 cat >conftest.$ac_ext <<_ACEOF
8007int foo(void) {}
8008_ACEOF
8009rm -f conftest.$ac_objext conftest$ac_exeext
8010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8011 (eval $ac_link) 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -z "$ac_c_werror_flag"
8019 || test ! -s conftest.err'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try='test -s conftest$ac_exeext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8031 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 8032
d7040cdb 8033else
ce2cded5
L
8034 echo "$as_me: failed program was:" >&5
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
d7040cdb 8037fi
ce2cded5
L
8038rm -f conftest.err conftest.$ac_objext \
8039 conftest$ac_exeext conftest.$ac_ext
8040 LDFLAGS="$save_LDFLAGS"
8041 else
8042 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'
8043 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'
8044 fi
8045 archive_cmds_need_lc='no'
8046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8047 hardcode_libdir_separator=:
8048 inherit_rpath=yes
8049 link_all_deplibs=yes
8050 ;;
d7040cdb 8051
ce2cded5
L
8052 netbsd*)
8053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8055 else
8056 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8057 fi
8058 hardcode_libdir_flag_spec='-R$libdir'
8059 hardcode_direct=yes
8060 hardcode_shlibpath_var=no
8061 ;;
d7040cdb 8062
ce2cded5
L
8063 newsos6)
8064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8065 hardcode_direct=yes
8066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8067 hardcode_libdir_separator=:
8068 hardcode_shlibpath_var=no
8069 ;;
d7040cdb 8070
ce2cded5
L
8071 *nto* | *qnx*)
8072 ;;
d7040cdb 8073
ce2cded5
L
8074 openbsd*)
8075 hardcode_direct=yes
8076 hardcode_shlibpath_var=no
8077 hardcode_direct_absolute=yes
8078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8080 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8082 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8083 else
ce2cded5
L
8084 case $host_os in
8085 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8087 hardcode_libdir_flag_spec='-R$libdir'
8088 ;;
8089 *)
8090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8091 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8092 ;;
8093 esac
d7040cdb
SE
8094 fi
8095 ;;
d7040cdb 8096
ce2cded5
L
8097 os2*)
8098 hardcode_libdir_flag_spec='-L$libdir'
8099 hardcode_minus_L=yes
8100 allow_undefined_flag=unsupported
8101 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'
8102 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8103 ;;
d7040cdb 8104
ce2cded5
L
8105 osf3*)
8106 if test "$GCC" = yes; then
8107 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8108 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'
8109 else
8110 allow_undefined_flag=' -expect_unresolved \*'
8111 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'
8112 fi
8113 archive_cmds_need_lc='no'
8114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8115 hardcode_libdir_separator=:
8116 ;;
d7040cdb 8117
ce2cded5
L
8118 osf4* | osf5*) # as osf3* with the addition of -msym flag
8119 if test "$GCC" = yes; then
8120 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8121 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'
8122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8123 else
8124 allow_undefined_flag=' -expect_unresolved \*'
8125 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'
8126 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~
8127 $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 8128
ce2cded5
L
8129 # Both c and cxx compiler support -rpath directly
8130 hardcode_libdir_flag_spec='-rpath $libdir'
8131 fi
8132 archive_cmds_need_lc='no'
8133 hardcode_libdir_separator=:
8134 ;;
d7040cdb 8135
ce2cded5
L
8136 solaris*)
8137 no_undefined_flag=' -z defs'
8138 if test "$GCC" = yes; then
8139 wlarc='${wl}'
8140 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8141 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8142 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8143 else
8144 case `$CC -V 2>&1` in
8145 *"Compilers 5.0"*)
8146 wlarc=''
8147 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8148 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8149 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8150 ;;
8151 *)
8152 wlarc='${wl}'
8153 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8154 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8155 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8156 ;;
8157 esac
8158 fi
8159 hardcode_libdir_flag_spec='-R$libdir'
8160 hardcode_shlibpath_var=no
8161 case $host_os in
8162 solaris2.[0-5] | solaris2.[0-5].*) ;;
8163 *)
8164 # The compiler driver will combine and reorder linker options,
8165 # but understands `-z linker_flag'. GCC discards it without `$wl',
8166 # but is careful enough not to reorder.
8167 # Supported since Solaris 2.6 (maybe 2.5.1?)
8168 if test "$GCC" = yes; then
8169 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8170 else
8171 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8172 fi
8173 ;;
8174 esac
8175 link_all_deplibs=yes
d7040cdb 8176 ;;
ce2cded5
L
8177
8178 sunos4*)
8179 if test "x$host_vendor" = xsequent; then
8180 # Use $CC to link under sequent, because it throws in some extra .o
8181 # files that make .init and .fini sections work.
8182 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 8183 else
ce2cded5 8184 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 8185 fi
ce2cded5
L
8186 hardcode_libdir_flag_spec='-L$libdir'
8187 hardcode_direct=yes
8188 hardcode_minus_L=yes
8189 hardcode_shlibpath_var=no
d7040cdb 8190 ;;
ce2cded5
L
8191
8192 sysv4)
8193 case $host_vendor in
8194 sni)
8195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8196 hardcode_direct=yes # is this really true???
8197 ;;
8198 siemens)
8199 ## LD is ld it makes a PLAMLIB
8200 ## CC just makes a GrossModule.
8201 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8202 reload_cmds='$CC -r -o $output$reload_objs'
8203 hardcode_direct=no
8204 ;;
8205 motorola)
8206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8207 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8208 ;;
8209 esac
8210 runpath_var='LD_RUN_PATH'
8211 hardcode_shlibpath_var=no
d7040cdb 8212 ;;
d7040cdb 8213
ce2cded5
L
8214 sysv4.3*)
8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_shlibpath_var=no
8217 export_dynamic_flag_spec='-Bexport'
8218 ;;
d7040cdb 8219
ce2cded5
L
8220 sysv4*MP*)
8221 if test -d /usr/nec; then
8222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8223 hardcode_shlibpath_var=no
8224 runpath_var=LD_RUN_PATH
8225 hardcode_runpath_var=yes
8226 ld_shlibs=yes
8227 fi
8228 ;;
d7040cdb 8229
ce2cded5
L
8230 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8231 no_undefined_flag='${wl}-z,text'
8232 archive_cmds_need_lc=no
8233 hardcode_shlibpath_var=no
8234 runpath_var='LD_RUN_PATH'
d7040cdb 8235
ce2cded5
L
8236 if test "$GCC" = yes; then
8237 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8238 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8239 else
8240 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8241 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8242 fi
8243 ;;
d7040cdb 8244
ce2cded5
L
8245 sysv5* | sco3.2v5* | sco5v6*)
8246 # Note: We can NOT use -z defs as we might desire, because we do not
8247 # link with -lc, and that would cause any symbols used from libc to
8248 # always be unresolved, which means just about no library would
8249 # ever link correctly. If we're not using GNU ld we use -z text
8250 # though, which does catch some bad symbols but isn't as heavy-handed
8251 # as -z defs.
8252 no_undefined_flag='${wl}-z,text'
8253 allow_undefined_flag='${wl}-z,nodefs'
8254 archive_cmds_need_lc=no
8255 hardcode_shlibpath_var=no
8256 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8257 hardcode_libdir_separator=':'
8258 link_all_deplibs=yes
8259 export_dynamic_flag_spec='${wl}-Bexport'
8260 runpath_var='LD_RUN_PATH'
d7040cdb 8261
ce2cded5
L
8262 if test "$GCC" = yes; then
8263 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8264 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8265 else
8266 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8267 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8268 fi
d7040cdb 8269 ;;
d7040cdb 8270
ce2cded5
L
8271 uts4*)
8272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8273 hardcode_libdir_flag_spec='-L$libdir'
8274 hardcode_shlibpath_var=no
8275 ;;
d7040cdb 8276
ce2cded5
L
8277 *)
8278 ld_shlibs=no
8279 ;;
8280 esac
8281
8282 if test x$host_vendor = xsni; then
8283 case $host in
8284 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8285 export_dynamic_flag_spec='${wl}-Blargedynsym'
8286 ;;
8287 esac
d7040cdb 8288 fi
ce2cded5 8289 fi
d7040cdb 8290
ce2cded5
L
8291echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8292echo "${ECHO_T}$ld_shlibs" >&6
8293test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8294
ce2cded5 8295with_gnu_ld=$with_gnu_ld
d7040cdb 8296
d7040cdb 8297
d7040cdb 8298
d7040cdb 8299
d7040cdb 8300
d7040cdb 8301
d7040cdb 8302
d7040cdb 8303
d7040cdb 8304
d7040cdb 8305
d7040cdb 8306
d7040cdb 8307
d7040cdb 8308
d7040cdb 8309
d7040cdb 8310
ce2cded5
L
8311#
8312# Do we need to explicitly link libc?
8313#
8314case "x$archive_cmds_need_lc" in
8315x|xyes)
8316 # Assume -lc should be added
8317 archive_cmds_need_lc=yes
d7040cdb 8318
ce2cded5
L
8319 if test "$enable_shared" = yes && test "$GCC" = yes; then
8320 case $archive_cmds in
8321 *'~'*)
8322 # FIXME: we may have to deal with multi-command sequences.
8323 ;;
8324 '$CC '*)
8325 # Test whether the compiler implicitly links with -lc since on some
8326 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8327 # to ld, don't add -lc before -lgcc.
8328 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8329echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8330 $RM conftest*
8331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8332
ce2cded5
L
8333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8334 (eval $ac_compile) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } 2>conftest.err; then
8338 soname=conftest
8339 lib=conftest
8340 libobjs=conftest.$ac_objext
8341 deplibs=
8342 wl=$lt_prog_compiler_wl
8343 pic_flag=$lt_prog_compiler_pic
8344 compiler_flags=-v
8345 linker_flags=-v
8346 verstring=
8347 output_objdir=.
8348 libname=conftest
8349 lt_save_allow_undefined_flag=$allow_undefined_flag
8350 allow_undefined_flag=
8351 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8352 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }
8356 then
8357 archive_cmds_need_lc=no
8358 else
8359 archive_cmds_need_lc=yes
8360 fi
8361 allow_undefined_flag=$lt_save_allow_undefined_flag
8362 else
8363 cat conftest.err 1>&5
8364 fi
8365 $RM conftest*
8366 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8367echo "${ECHO_T}$archive_cmds_need_lc" >&6
8368 ;;
8369 esac
d7040cdb 8370 fi
d7040cdb 8371 ;;
ce2cded5 8372esac
d7040cdb 8373
d7040cdb 8374
d7040cdb 8375
d7040cdb 8376
d7040cdb 8377
d7040cdb 8378
d7040cdb 8379
d7040cdb
SE
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
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
d7040cdb 8467
d7040cdb 8468
d7040cdb
SE
8469
8470
8471
8472
8473
8474
d7040cdb 8475
d7040cdb 8476
d7040cdb 8477
d7040cdb 8478
d7040cdb 8479
d7040cdb 8480
d7040cdb 8481
d7040cdb 8482
d7040cdb 8483
d7040cdb 8484
d7040cdb 8485
d7040cdb 8486
d7040cdb 8487
d7040cdb 8488
d7040cdb 8489
d7040cdb 8490
d7040cdb 8491
d7040cdb 8492
d7040cdb 8493
d7040cdb 8494
d7040cdb 8495
d7040cdb 8496
d7040cdb 8497
ce2cded5
L
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8531echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8532withGCC=$GCC
8533if test "$withGCC" = yes; then
8534 case $host_os in
8535 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8536 *) lt_awk_arg="/^libraries:/" ;;
8537 esac
8538 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8539 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8540 # if the path contains ";" then we assume it to be the separator
8541 # otherwise default to the standard path separator (i.e. ":") - it is
8542 # assumed that no part of a normal pathname contains ";" but that should
8543 # okay in the real world where ";" in dirpaths is itself problematic.
8544 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8545 else
8546 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8547 fi
8548 # Ok, now we have the path, separated by spaces, we can step through it
8549 # and add multilib dir if necessary.
8550 lt_tmp_lt_search_path_spec=
8551 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8552 for lt_sys_path in $lt_search_path_spec; do
8553 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8554 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8555 else
8556 test -d "$lt_sys_path" && \
8557 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8558 fi
8559 done
8560 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8561BEGIN {RS=" "; FS="/|\n";} {
8562 lt_foo="";
8563 lt_count=0;
8564 for (lt_i = NF; lt_i > 0; lt_i--) {
8565 if ($lt_i != "" && $lt_i != ".") {
8566 if ($lt_i == "..") {
8567 lt_count++;
8568 } else {
8569 if (lt_count == 0) {
8570 lt_foo="/" $lt_i lt_foo;
8571 } else {
8572 lt_count--;
8573 }
8574 }
8575 }
8576 }
8577 if (lt_foo != "") { lt_freq[lt_foo]++; }
8578 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8579}'`
8580 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8581else
ce2cded5
L
8582 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8583fi
8584library_names_spec=
8585libname_spec='lib$name'
8586soname_spec=
8587shrext_cmds=".so"
8588postinstall_cmds=
8589postuninstall_cmds=
8590finish_cmds=
8591finish_eval=
8592shlibpath_var=
8593shlibpath_overrides_runpath=unknown
8594version_type=none
8595dynamic_linker="$host_os ld.so"
8596sys_lib_dlsearch_path_spec="/lib /usr/lib"
8597need_lib_prefix=unknown
8598hardcode_into_libs=no
8599
8600# when you set need_version to no, make sure it does not cause -set_version
8601# flags to be left without arguments
8602need_version=unknown
8603
8604case $host_os in
8605aix3*)
8606 version_type=linux
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8608 shlibpath_var=LIBPATH
8609
8610 # AIX 3 has no versioning support, so we append a major version to the name.
8611 soname_spec='${libname}${release}${shared_ext}$major'
8612 ;;
8613
50e7d84b 8614aix[4-9]*)
ce2cded5
L
8615 version_type=linux
8616 need_lib_prefix=no
8617 need_version=no
8618 hardcode_into_libs=yes
8619 if test "$host_cpu" = ia64; then
8620 # AIX 5 supports IA64
8621 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8622 shlibpath_var=LD_LIBRARY_PATH
8623 else
8624 # With GCC up to 2.95.x, collect2 would create an import file
8625 # for dependence libraries. The import file would start with
8626 # the line `#! .'. This would cause the generated library to
8627 # depend on `.', always an invalid library. This was fixed in
8628 # development snapshots of GCC prior to 3.0.
8629 case $host_os in
8630 aix4 | aix4.[01] | aix4.[01].*)
8631 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8632 echo ' yes '
8633 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8634 :
8635 else
8636 can_build_shared=no
8637 fi
8638 ;;
8639 esac
8640 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8641 # soname into executable. Probably we can add versioning support to
8642 # collect2, so additional links can be useful in future.
8643 if test "$aix_use_runtimelinking" = yes; then
8644 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8645 # instead of lib<name>.a to let people know that these are not
8646 # typical AIX shared libraries.
8647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8648 else
8649 # We preserve .a as extension for shared libraries through AIX4.2
8650 # and later when we are not doing run time linking.
8651 library_names_spec='${libname}${release}.a $libname.a'
8652 soname_spec='${libname}${release}${shared_ext}$major'
8653 fi
8654 shlibpath_var=LIBPATH
8655 fi
8656 ;;
8657
8658amigaos*)
8659 if test "$host_cpu" = m68k; then
8660 library_names_spec='$libname.ixlibrary $libname.a'
8661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8662 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'
8663 else
8664 dynamic_linker=no
8665 fi
8666 ;;
8667
8668beos*)
8669 library_names_spec='${libname}${shared_ext}'
8670 dynamic_linker="$host_os ld.so"
8671 shlibpath_var=LIBRARY_PATH
8672 ;;
8673
8674bsdi[45]*)
8675 version_type=linux
8676 need_version=no
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8678 soname_spec='${libname}${release}${shared_ext}$major'
8679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8680 shlibpath_var=LD_LIBRARY_PATH
8681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8683 # the default ld.so.conf also contains /usr/contrib/lib and
8684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8685 # libtool to hard-code these into programs
8686 ;;
8687
8688cygwin* | mingw* | pw32*)
8689 version_type=windows
8690 shrext_cmds=".dll"
8691 need_version=no
8692 need_lib_prefix=no
8693
8694 case $withGCC,$host_os in
8695 yes,cygwin* | yes,mingw* | yes,pw32*)
8696 library_names_spec='$libname.dll.a'
8697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8698 postinstall_cmds='base_file=`basename \${file}`~
8699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8700 dldir=$destdir/`dirname \$dlpath`~
8701 test -d \$dldir || mkdir -p \$dldir~
8702 $install_prog $dir/$dlname \$dldir/$dlname~
8703 chmod a+x \$dldir/$dlname~
8704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8706 fi'
8707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8708 dlpath=$dir/\$dldll~
8709 $RM \$dlpath'
8710 shlibpath_overrides_runpath=yes
8711
8712 case $host_os in
8713 cygwin*)
8714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8715 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8716 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8717 ;;
8718 mingw*)
8719 # MinGW DLLs use traditional 'lib' prefix
8720 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8721 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8722 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8723 # It is most probably a Windows format PATH printed by
8724 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8725 # path with ; separators, and with drive letters. We can handle the
8726 # drive letters (cygwin fileutils understands them), so leave them,
8727 # especially as we might pass files found there to a mingw objdump,
8728 # which wouldn't understand a cygwinified path. Ahh.
8729 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8730 else
8731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8732 fi
8733 ;;
8734 pw32*)
8735 # pw32 DLLs use 'pw' prefix rather than 'lib'
8736 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8737 ;;
8738 esac
8739 ;;
8740
8741 *)
8742 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8743 ;;
8744 esac
8745 dynamic_linker='Win32 ld.exe'
8746 # FIXME: first we should search . and the directory the executable is in
8747 shlibpath_var=PATH
8748 ;;
8749
8750darwin* | rhapsody*)
8751 dynamic_linker="$host_os dyld"
8752 version_type=darwin
8753 need_lib_prefix=no
8754 need_version=no
8755 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8756 soname_spec='${libname}${release}${major}$shared_ext'
8757 shlibpath_overrides_runpath=yes
8758 shlibpath_var=DYLD_LIBRARY_PATH
8759 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8760
8761 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8762 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8763 ;;
8764
8765dgux*)
8766 version_type=linux
8767 need_lib_prefix=no
8768 need_version=no
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 shlibpath_var=LD_LIBRARY_PATH
8772 ;;
8773
8774freebsd1*)
8775 dynamic_linker=no
8776 ;;
8777
8778freebsd* | dragonfly*)
8779 # DragonFly does not have aout. When/if they implement a new
8780 # versioning mechanism, adjust this.
8781 if test -x /usr/bin/objformat; then
8782 objformat=`/usr/bin/objformat`
8783 else
8784 case $host_os in
8785 freebsd[123]*) objformat=aout ;;
8786 *) objformat=elf ;;
8787 esac
8788 fi
8789 version_type=freebsd-$objformat
8790 case $version_type in
8791 freebsd-elf*)
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8793 need_version=no
8794 need_lib_prefix=no
8795 ;;
8796 freebsd-*)
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8798 need_version=yes
8799 ;;
8800 esac
8801 shlibpath_var=LD_LIBRARY_PATH
8802 case $host_os in
8803 freebsd2*)
8804 shlibpath_overrides_runpath=yes
8805 ;;
8806 freebsd3.[01]* | freebsdelf3.[01]*)
8807 shlibpath_overrides_runpath=yes
8808 hardcode_into_libs=yes
8809 ;;
8810 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8811 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8812 shlibpath_overrides_runpath=no
8813 hardcode_into_libs=yes
8814 ;;
8815 *) # from 4.6 on, and DragonFly
8816 shlibpath_overrides_runpath=yes
8817 hardcode_into_libs=yes
8818 ;;
8819 esac
8820 ;;
8821
8822gnu*)
8823 version_type=linux
8824 need_lib_prefix=no
8825 need_version=no
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8828 shlibpath_var=LD_LIBRARY_PATH
8829 hardcode_into_libs=yes
8830 ;;
8831
8832hpux9* | hpux10* | hpux11*)
8833 # Give a soname corresponding to the major version so that dld.sl refuses to
8834 # link against other versions.
8835 version_type=sunos
8836 need_lib_prefix=no
8837 need_version=no
8838 case $host_cpu in
8839 ia64*)
8840 shrext_cmds='.so'
8841 hardcode_into_libs=yes
8842 dynamic_linker="$host_os dld.so"
8843 shlibpath_var=LD_LIBRARY_PATH
8844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 if test "X$HPUX_IA64_MODE" = X32; then
8848 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8849 else
8850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8851 fi
8852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8853 ;;
8854 hppa*64*)
8855 shrext_cmds='.sl'
8856 hardcode_into_libs=yes
8857 dynamic_linker="$host_os dld.sl"
8858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8864 ;;
8865 *)
8866 shrext_cmds='.sl'
8867 dynamic_linker="$host_os dld.sl"
8868 shlibpath_var=SHLIB_PATH
8869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
8873 esac
8874 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8875 postinstall_cmds='chmod 555 $lib'
8876 ;;
8877
8878interix[3-9]*)
8879 version_type=linux
8880 need_lib_prefix=no
8881 need_version=no
8882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8885 shlibpath_var=LD_LIBRARY_PATH
8886 shlibpath_overrides_runpath=no
8887 hardcode_into_libs=yes
8888 ;;
8889
8890irix5* | irix6* | nonstopux*)
8891 case $host_os in
8892 nonstopux*) version_type=nonstopux ;;
8893 *)
8894 if test "$lt_cv_prog_gnu_ld" = yes; then
8895 version_type=linux
8896 else
8897 version_type=irix
8898 fi ;;
8899 esac
8900 need_lib_prefix=no
8901 need_version=no
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8904 case $host_os in
8905 irix5* | nonstopux*)
8906 libsuff= shlibsuff=
8907 ;;
8908 *)
8909 case $LD in # libtool.m4 will add one of these switches to LD
8910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8911 libsuff= shlibsuff= libmagic=32-bit;;
8912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8913 libsuff=32 shlibsuff=N32 libmagic=N32;;
8914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8916 *) libsuff= shlibsuff= libmagic=never-match;;
8917 esac
8918 ;;
8919 esac
8920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8921 shlibpath_overrides_runpath=no
8922 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8923 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8924 hardcode_into_libs=yes
8925 ;;
d7040cdb 8926
ce2cded5
L
8927# No shared lib support for Linux oldld, aout, or coff.
8928linux*oldld* | linux*aout* | linux*coff*)
8929 dynamic_linker=no
8930 ;;
8931
8932# This must be Linux ELF.
8933linux* | k*bsd*-gnu)
8934 version_type=linux
8935 need_lib_prefix=no
8936 need_version=no
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8940 shlibpath_var=LD_LIBRARY_PATH
8941 shlibpath_overrides_runpath=no
8942 # Some binutils ld are patched to set DT_RUNPATH
8943 save_LDFLAGS=$LDFLAGS
8944 save_libdir=$libdir
8945 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8946 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8947 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
8948/* confdefs.h. */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
8952/* end confdefs.h. */
8953
d7040cdb
SE
8954int
8955main ()
8956{
ce2cded5 8957
d7040cdb
SE
8958 ;
8959 return 0;
8960}
8961_ACEOF
8962rm -f conftest.$ac_objext conftest$ac_exeext
8963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>conftest.er1
8965 ac_status=$?
8966 grep -v '^ *+' conftest.er1 >conftest.err
8967 rm -f conftest.er1
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -z "$ac_c_werror_flag"
8972 || test ! -s conftest.err'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; } &&
8978 { ac_try='test -s conftest$ac_exeext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
ce2cded5
L
8984 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8985 shlibpath_overrides_runpath=yes
8986fi
8987
d7040cdb
SE
8988else
8989 echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
ce2cded5
L
8992fi
8993rm -f conftest.err conftest.$ac_objext \
8994 conftest$ac_exeext conftest.$ac_ext
8995 LDFLAGS=$save_LDFLAGS
8996 libdir=$save_libdir
8997
8998 # This implies no fast_install, which is unacceptable.
8999 # Some rework will be needed to allow for fast_install
9000 # before this can be enabled.
9001 hardcode_into_libs=yes
9002
9003 # Append ld.so.conf contents to the search path
9004 if test -f /etc/ld.so.conf; then
9005 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' ' '`
9006 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9007 fi
9008
9009 # We used to test for /lib/ld.so.1 and disable shared libraries on
9010 # powerpc, because MkLinux only supported shared libraries with the
9011 # GNU dynamic linker. Since this was broken with cross compilers,
9012 # most powerpc-linux boxes support dynamic linking these days and
9013 # people can always --disable-shared, the test was removed, and we
9014 # assume the GNU/Linux dynamic linker is in use.
9015 dynamic_linker='GNU/Linux ld.so'
9016 ;;
9017
9018netbsd*)
9019 version_type=sunos
9020 need_lib_prefix=no
9021 need_version=no
9022 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9025 dynamic_linker='NetBSD (a.out) ld.so'
9026 else
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9028 soname_spec='${libname}${release}${shared_ext}$major'
9029 dynamic_linker='NetBSD ld.elf_so'
9030 fi
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=yes
9033 hardcode_into_libs=yes
9034 ;;
9035
9036newsos6)
9037 version_type=linux
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 ;;
9042
9043*nto* | *qnx*)
9044 version_type=qnx
9045 need_lib_prefix=no
9046 need_version=no
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 shlibpath_overrides_runpath=no
9051 hardcode_into_libs=yes
9052 dynamic_linker='ldqnx.so'
9053 ;;
9054
9055openbsd*)
9056 version_type=sunos
9057 sys_lib_dlsearch_path_spec="/usr/lib"
9058 need_lib_prefix=no
9059 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9060 case $host_os in
9061 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9062 *) need_version=no ;;
9063 esac
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9068 case $host_os in
9069 openbsd2.[89] | openbsd2.[89].*)
9070 shlibpath_overrides_runpath=no
9071 ;;
9072 *)
9073 shlibpath_overrides_runpath=yes
9074 ;;
9075 esac
9076 else
9077 shlibpath_overrides_runpath=yes
9078 fi
9079 ;;
9080
9081os2*)
9082 libname_spec='$name'
9083 shrext_cmds=".dll"
9084 need_lib_prefix=no
9085 library_names_spec='$libname${shared_ext} $libname.a'
9086 dynamic_linker='OS/2 ld.exe'
9087 shlibpath_var=LIBPATH
9088 ;;
9089
9090osf3* | osf4* | osf5*)
9091 version_type=osf
9092 need_lib_prefix=no
9093 need_version=no
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9098 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9099 ;;
9100
9101rdos*)
9102 dynamic_linker=no
9103 ;;
9104
9105solaris*)
9106 version_type=linux
9107 need_lib_prefix=no
9108 need_version=no
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 shlibpath_overrides_runpath=yes
9113 hardcode_into_libs=yes
9114 # ldd complains unless libraries are executable
9115 postinstall_cmds='chmod +x $lib'
9116 ;;
9117
9118sunos4*)
9119 version_type=sunos
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9121 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 shlibpath_overrides_runpath=yes
9124 if test "$with_gnu_ld" = yes; then
9125 need_lib_prefix=no
9126 fi
9127 need_version=yes
9128 ;;
9129
9130sysv4 | sysv4.3*)
9131 version_type=linux
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 case $host_vendor in
9136 sni)
9137 shlibpath_overrides_runpath=no
9138 need_lib_prefix=no
9139 runpath_var=LD_RUN_PATH
9140 ;;
9141 siemens)
9142 need_lib_prefix=no
9143 ;;
9144 motorola)
9145 need_lib_prefix=no
9146 need_version=no
9147 shlibpath_overrides_runpath=no
9148 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9149 ;;
9150 esac
9151 ;;
9152
9153sysv4*MP*)
9154 if test -d /usr/nec ;then
9155 version_type=linux
9156 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9157 soname_spec='$libname${shared_ext}.$major'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 fi
9160 ;;
9161
9162sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9163 version_type=freebsd-elf
9164 need_lib_prefix=no
9165 need_version=no
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes
9170 hardcode_into_libs=yes
9171 if test "$with_gnu_ld" = yes; then
9172 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9173 else
9174 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9175 case $host_os in
9176 sco3.2v5*)
9177 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9178 ;;
9179 esac
9180 fi
9181 sys_lib_dlsearch_path_spec='/usr/lib'
9182 ;;
9183
9184tpf*)
9185 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9186 version_type=linux
9187 need_lib_prefix=no
9188 need_version=no
9189 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=no
9192 hardcode_into_libs=yes
9193 ;;
d7040cdb 9194
ce2cded5
L
9195uts4*)
9196 version_type=linux
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 ;;
d7040cdb 9201
ce2cded5
L
9202*)
9203 dynamic_linker=no
9204 ;;
9205esac
9206echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9207echo "${ECHO_T}$dynamic_linker" >&6
9208test "$dynamic_linker" = no && can_build_shared=no
9209
9210variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9211if test "$GCC" = yes; then
9212 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 9213fi
d7040cdb 9214
d7040cdb 9215
d7040cdb
SE
9216
9217
d7040cdb
SE
9218
9219
d7040cdb
SE
9220
9221
d7040cdb
SE
9222
9223
d7040cdb
SE
9224
9225
d7040cdb 9226
d7040cdb 9227
d7040cdb 9228
d7040cdb 9229
d7040cdb 9230
d7040cdb 9231
d7040cdb 9232
d7040cdb 9233
d7040cdb 9234
d7040cdb 9235
d7040cdb 9236
d7040cdb 9237
d7040cdb 9238
d7040cdb 9239
d7040cdb
SE
9240
9241
d7040cdb 9242
d7040cdb 9243
d7040cdb 9244
d7040cdb 9245
d7040cdb 9246
d7040cdb 9247
d7040cdb 9248
d7040cdb 9249
d7040cdb 9250
d7040cdb
SE
9251
9252
d7040cdb 9253
d7040cdb 9254
d7040cdb 9255
d7040cdb
SE
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
d7040cdb
SE
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
d7040cdb 9285
d7040cdb 9286
d7040cdb 9287
d7040cdb 9288
d7040cdb
SE
9289
9290
9291
9292
ce2cded5
L
9293
9294
9295
9296
9297
9298
9299
9300
9301 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9302echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9303hardcode_action=
9304if test -n "$hardcode_libdir_flag_spec" ||
9305 test -n "$runpath_var" ||
9306 test "X$hardcode_automatic" = "Xyes" ; then
9307
9308 # We can hardcode non-existent directories.
9309 if test "$hardcode_direct" != no &&
9310 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9311 # have to relink, otherwise we might link with an installed library
9312 # when we should be linking with a yet-to-be-installed one
9313 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9314 test "$hardcode_minus_L" != no; then
9315 # Linking always hardcodes the temporary library directory.
9316 hardcode_action=relink
9317 else
9318 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9319 hardcode_action=immediate
9320 fi
9321else
9322 # We cannot hardcode anything, or else we can only hardcode existing
9323 # directories.
9324 hardcode_action=unsupported
9325fi
9326echo "$as_me:$LINENO: result: $hardcode_action" >&5
9327echo "${ECHO_T}$hardcode_action" >&6
9328
9329if test "$hardcode_action" = relink ||
9330 test "$inherit_rpath" = yes; then
9331 # Fast installation is not supported
9332 enable_fast_install=no
9333elif test "$shlibpath_overrides_runpath" = yes ||
9334 test "$enable_shared" = no; then
9335 # Fast installation is not necessary
9336 enable_fast_install=needless
d7040cdb 9337fi
d7040cdb 9338
d7040cdb
SE
9339
9340
9341
9342
9343
ce2cded5
L
9344 if test "x$enable_dlopen" != xyes; then
9345 enable_dlopen=unknown
9346 enable_dlopen_self=unknown
9347 enable_dlopen_self_static=unknown
9348else
9349 lt_cv_dlopen=no
9350 lt_cv_dlopen_libs=
9351
9352 case $host_os in
9353 beos*)
9354 lt_cv_dlopen="load_add_on"
9355 lt_cv_dlopen_libs=
9356 lt_cv_dlopen_self=yes
9357 ;;
d7040cdb 9358
ce2cded5
L
9359 mingw* | pw32*)
9360 lt_cv_dlopen="LoadLibrary"
9361 lt_cv_dlopen_libs=
9362 ;;
d7040cdb 9363
ce2cded5
L
9364 cygwin*)
9365 lt_cv_dlopen="dlopen"
9366 lt_cv_dlopen_libs=
9367 ;;
d7040cdb 9368
ce2cded5
L
9369 darwin*)
9370 # if libdl is installed we need to link against it
9371 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9372echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9373if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9375else
9376 ac_check_lib_save_LIBS=$LIBS
9377LIBS="-ldl $LIBS"
9378cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h. */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h. */
d7040cdb 9384
ce2cded5
L
9385/* Override any gcc2 internal prototype to avoid an error. */
9386#ifdef __cplusplus
9387extern "C"
9388#endif
9389/* We use char because int might match the return type of a gcc2
9390 builtin and then its argument prototype would still apply. */
9391char dlopen ();
9392int
9393main ()
9394{
9395dlopen ();
9396 ;
9397 return 0;
9398}
9399_ACEOF
9400rm -f conftest.$ac_objext conftest$ac_exeext
9401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402 (eval $ac_link) 2>conftest.er1
9403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -z "$ac_c_werror_flag"
9410 || test ! -s conftest.err'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; } &&
9416 { ac_try='test -s conftest$ac_exeext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 ac_cv_lib_dl_dlopen=yes
9423else
9424 echo "$as_me: failed program was:" >&5
9425sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9426
ce2cded5
L
9427ac_cv_lib_dl_dlopen=no
9428fi
9429rm -f conftest.err conftest.$ac_objext \
9430 conftest$ac_exeext conftest.$ac_ext
9431LIBS=$ac_check_lib_save_LIBS
9432fi
9433echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9434echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9435if test $ac_cv_lib_dl_dlopen = yes; then
9436 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9437else
d7040cdb 9438
ce2cded5
L
9439 lt_cv_dlopen="dyld"
9440 lt_cv_dlopen_libs=
9441 lt_cv_dlopen_self=yes
d7040cdb 9442
ce2cded5 9443fi
d7040cdb 9444
ce2cded5 9445 ;;
d7040cdb 9446
ce2cded5
L
9447 *)
9448 echo "$as_me:$LINENO: checking for shl_load" >&5
9449echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9450if test "${ac_cv_func_shl_load+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452else
9453 cat >conftest.$ac_ext <<_ACEOF
9454/* confdefs.h. */
9455_ACEOF
9456cat confdefs.h >>conftest.$ac_ext
9457cat >>conftest.$ac_ext <<_ACEOF
9458/* end confdefs.h. */
9459/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9461#define shl_load innocuous_shl_load
d7040cdb 9462
ce2cded5
L
9463/* System header to define __stub macros and hopefully few prototypes,
9464 which can conflict with char shl_load (); below.
9465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9466 <limits.h> exists even on freestanding compilers. */
d7040cdb 9467
ce2cded5
L
9468#ifdef __STDC__
9469# include <limits.h>
9470#else
9471# include <assert.h>
9472#endif
d7040cdb 9473
ce2cded5 9474#undef shl_load
d7040cdb 9475
ce2cded5
L
9476/* Override any gcc2 internal prototype to avoid an error. */
9477#ifdef __cplusplus
9478extern "C"
9479{
9480#endif
9481/* We use char because int might match the return type of a gcc2
9482 builtin and then its argument prototype would still apply. */
9483char shl_load ();
9484/* The GNU C library defines this for functions which it implements
9485 to always fail with ENOSYS. Some functions are actually named
9486 something starting with __ and the normal name is an alias. */
9487#if defined (__stub_shl_load) || defined (__stub___shl_load)
9488choke me
9489#else
9490char (*f) () = shl_load;
9491#endif
9492#ifdef __cplusplus
9493}
9494#endif
d7040cdb 9495
ce2cded5
L
9496int
9497main ()
9498{
9499return f != shl_load;
9500 ;
9501 return 0;
9502}
9503_ACEOF
9504rm -f conftest.$ac_objext conftest$ac_exeext
9505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506 (eval $ac_link) 2>conftest.er1
9507 ac_status=$?
9508 grep -v '^ *+' conftest.er1 >conftest.err
9509 rm -f conftest.er1
9510 cat conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } &&
9513 { ac_try='test -z "$ac_c_werror_flag"
9514 || test ! -s conftest.err'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 (eval $ac_try) 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; } &&
9520 { ac_try='test -s conftest$ac_exeext'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 ac_cv_func_shl_load=yes
9527else
9528 echo "$as_me: failed program was:" >&5
9529sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9530
ce2cded5 9531ac_cv_func_shl_load=no
d7040cdb 9532fi
ce2cded5
L
9533rm -f conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535fi
9536echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9537echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9538if test $ac_cv_func_shl_load = yes; then
9539 lt_cv_dlopen="shl_load"
9540else
9541 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9542echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9543if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545else
9546 ac_check_lib_save_LIBS=$LIBS
9547LIBS="-ldld $LIBS"
9548cat >conftest.$ac_ext <<_ACEOF
9549/* confdefs.h. */
9550_ACEOF
9551cat confdefs.h >>conftest.$ac_ext
9552cat >>conftest.$ac_ext <<_ACEOF
9553/* end confdefs.h. */
d7040cdb 9554
ce2cded5
L
9555/* Override any gcc2 internal prototype to avoid an error. */
9556#ifdef __cplusplus
9557extern "C"
9558#endif
9559/* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9561char shl_load ();
9562int
9563main ()
9564{
9565shl_load ();
9566 ;
9567 return 0;
9568}
d7040cdb 9569_ACEOF
ce2cded5
L
9570rm -f conftest.$ac_objext conftest$ac_exeext
9571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9572 (eval $ac_link) 2>conftest.er1
9573 ac_status=$?
9574 grep -v '^ *+' conftest.er1 >conftest.err
9575 rm -f conftest.er1
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try='test -z "$ac_c_werror_flag"
9580 || test ! -s conftest.err'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; } &&
9586 { ac_try='test -s conftest$ac_exeext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 (eval $ac_try) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_lib_dld_shl_load=yes
9593else
9594 echo "$as_me: failed program was:" >&5
9595sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9596
ce2cded5 9597ac_cv_lib_dld_shl_load=no
d7040cdb 9598fi
ce2cded5
L
9599rm -f conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9601LIBS=$ac_check_lib_save_LIBS
9602fi
9603echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9604echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9605if test $ac_cv_lib_dld_shl_load = yes; then
9606 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9607else
9608 echo "$as_me:$LINENO: checking for dlopen" >&5
9609echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9610if test "${ac_cv_func_dlopen+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612else
9613 cat >conftest.$ac_ext <<_ACEOF
9614/* confdefs.h. */
9615_ACEOF
9616cat confdefs.h >>conftest.$ac_ext
9617cat >>conftest.$ac_ext <<_ACEOF
9618/* end confdefs.h. */
9619/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9621#define dlopen innocuous_dlopen
d7040cdb 9622
ce2cded5
L
9623/* System header to define __stub macros and hopefully few prototypes,
9624 which can conflict with char dlopen (); below.
9625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9626 <limits.h> exists even on freestanding compilers. */
d7040cdb 9627
ce2cded5
L
9628#ifdef __STDC__
9629# include <limits.h>
9630#else
9631# include <assert.h>
9632#endif
d7040cdb 9633
ce2cded5 9634#undef dlopen
d7040cdb 9635
ce2cded5
L
9636/* Override any gcc2 internal prototype to avoid an error. */
9637#ifdef __cplusplus
9638extern "C"
9639{
9640#endif
9641/* We use char because int might match the return type of a gcc2
9642 builtin and then its argument prototype would still apply. */
9643char dlopen ();
9644/* The GNU C library defines this for functions which it implements
9645 to always fail with ENOSYS. Some functions are actually named
9646 something starting with __ and the normal name is an alias. */
9647#if defined (__stub_dlopen) || defined (__stub___dlopen)
9648choke me
9649#else
9650char (*f) () = dlopen;
9651#endif
9652#ifdef __cplusplus
9653}
9654#endif
d7040cdb 9655
ce2cded5
L
9656int
9657main ()
9658{
9659return f != dlopen;
9660 ;
9661 return 0;
9662}
9663_ACEOF
9664rm -f conftest.$ac_objext conftest$ac_exeext
9665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666 (eval $ac_link) 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag"
9674 || test ! -s conftest.err'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest$ac_exeext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_func_dlopen=yes
9687else
9688 echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9690
ce2cded5 9691ac_cv_func_dlopen=no
d7040cdb 9692fi
ce2cded5
L
9693rm -f conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9695fi
ce2cded5
L
9696echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9697echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9698if test $ac_cv_func_dlopen = yes; then
9699 lt_cv_dlopen="dlopen"
9700else
9701 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9702echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9703if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705else
ce2cded5
L
9706 ac_check_lib_save_LIBS=$LIBS
9707LIBS="-ldl $LIBS"
d7040cdb
SE
9708cat >conftest.$ac_ext <<_ACEOF
9709/* confdefs.h. */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h. */
d7040cdb 9714
ce2cded5
L
9715/* Override any gcc2 internal prototype to avoid an error. */
9716#ifdef __cplusplus
9717extern "C"
9718#endif
9719/* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9721char dlopen ();
d7040cdb
SE
9722int
9723main ()
9724{
ce2cded5 9725dlopen ();
d7040cdb
SE
9726 ;
9727 return 0;
9728}
9729_ACEOF
ce2cded5
L
9730rm -f conftest.$ac_objext conftest$ac_exeext
9731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag"
9740 || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
ce2cded5 9746 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
ce2cded5
L
9752 ac_cv_lib_dl_dlopen=yes
9753else
9754 echo "$as_me: failed program was:" >&5
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
9757ac_cv_lib_dl_dlopen=no
9758fi
9759rm -f conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761LIBS=$ac_check_lib_save_LIBS
9762fi
9763echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9764echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9765if test $ac_cv_lib_dl_dlopen = yes; then
9766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9767else
9768 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9769echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9770if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773 ac_check_lib_save_LIBS=$LIBS
9774LIBS="-lsvld $LIBS"
d7040cdb
SE
9775cat >conftest.$ac_ext <<_ACEOF
9776/* confdefs.h. */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h. */
d7040cdb 9781
ce2cded5
L
9782/* Override any gcc2 internal prototype to avoid an error. */
9783#ifdef __cplusplus
9784extern "C"
9785#endif
9786/* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9788char dlopen ();
d7040cdb
SE
9789int
9790main ()
9791{
ce2cded5 9792dlopen ();
d7040cdb
SE
9793 ;
9794 return 0;
9795}
9796_ACEOF
ce2cded5
L
9797rm -f conftest.$ac_objext conftest$ac_exeext
9798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -z "$ac_c_werror_flag"
9807 || test ! -s conftest.err'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 (eval $ac_try) 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
ce2cded5 9813 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
ce2cded5 9819 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
9820else
9821 echo "$as_me: failed program was:" >&5
9822sed 's/^/| /' conftest.$ac_ext >&5
9823
ce2cded5 9824ac_cv_lib_svld_dlopen=no
d7040cdb 9825fi
ce2cded5
L
9826rm -f conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828LIBS=$ac_check_lib_save_LIBS
9829fi
9830echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9831echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9832if test $ac_cv_lib_svld_dlopen = yes; then
9833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9834else
9835 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9836echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9837if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 9839else
ce2cded5
L
9840 ac_check_lib_save_LIBS=$LIBS
9841LIBS="-ldld $LIBS"
9842cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9843/* confdefs.h. */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
9847/* end confdefs.h. */
ce2cded5
L
9848
9849/* Override any gcc2 internal prototype to avoid an error. */
9850#ifdef __cplusplus
9851extern "C"
9852#endif
9853/* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9855char dld_link ();
d7040cdb
SE
9856int
9857main ()
9858{
ce2cded5 9859dld_link ();
d7040cdb
SE
9860 ;
9861 return 0;
9862}
9863_ACEOF
ce2cded5
L
9864rm -f conftest.$ac_objext conftest$ac_exeext
9865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9866 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag"
9874 || test ! -s conftest.err'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 (eval $ac_try) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
ce2cded5 9880 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 (eval $ac_try) 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
ce2cded5
L
9886 ac_cv_lib_dld_dld_link=yes
9887else
9888 echo "$as_me: failed program was:" >&5
9889sed 's/^/| /' conftest.$ac_ext >&5
9890
9891ac_cv_lib_dld_dld_link=no
d7040cdb 9892fi
ce2cded5
L
9893rm -f conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895LIBS=$ac_check_lib_save_LIBS
9896fi
9897echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9898echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9899if test $ac_cv_lib_dld_dld_link = yes; then
9900 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9901fi
9902
9903
9904fi
9905
9906
9907fi
9908
9909
9910fi
9911
9912
9913fi
9914
9915
9916fi
9917
9918 ;;
9919 esac
9920
9921 if test "x$lt_cv_dlopen" != xno; then
9922 enable_dlopen=yes
d7040cdb 9923 else
ce2cded5 9924 enable_dlopen=no
d7040cdb 9925 fi
ce2cded5
L
9926
9927 case $lt_cv_dlopen in
9928 dlopen)
9929 save_CPPFLAGS="$CPPFLAGS"
9930 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9931
9932 save_LDFLAGS="$LDFLAGS"
9933 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9934
9935 save_LIBS="$LIBS"
9936 LIBS="$lt_cv_dlopen_libs $LIBS"
9937
9938 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9939echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9940if test "${lt_cv_dlopen_self+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 9942else
ce2cded5
L
9943 if test "$cross_compiling" = yes; then :
9944 lt_cv_dlopen_self=cross
9945else
9946 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9947 lt_status=$lt_dlunknown
9948 cat > conftest.$ac_ext <<_LT_EOF
58c85be7 9949#line 9949 "configure"
ce2cded5
L
9950#include "confdefs.h"
9951
9952#if HAVE_DLFCN_H
9953#include <dlfcn.h>
9954#endif
9955
9956#include <stdio.h>
9957
9958#ifdef RTLD_GLOBAL
9959# define LT_DLGLOBAL RTLD_GLOBAL
9960#else
9961# ifdef DL_GLOBAL
9962# define LT_DLGLOBAL DL_GLOBAL
9963# else
9964# define LT_DLGLOBAL 0
9965# endif
9966#endif
9967
9968/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9969 find out it does not work in some platform. */
9970#ifndef LT_DLLAZY_OR_NOW
9971# ifdef RTLD_LAZY
9972# define LT_DLLAZY_OR_NOW RTLD_LAZY
9973# else
9974# ifdef DL_LAZY
9975# define LT_DLLAZY_OR_NOW DL_LAZY
9976# else
9977# ifdef RTLD_NOW
9978# define LT_DLLAZY_OR_NOW RTLD_NOW
9979# else
9980# ifdef DL_NOW
9981# define LT_DLLAZY_OR_NOW DL_NOW
9982# else
9983# define LT_DLLAZY_OR_NOW 0
9984# endif
9985# endif
9986# endif
9987# endif
9988#endif
9989
9990#ifdef __cplusplus
9991extern "C" void exit (int);
9992#endif
9993
9994void fnord() { int i=42;}
9995int main ()
9996{
9997 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9998 int status = $lt_dlunknown;
9999
10000 if (self)
10001 {
10002 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10003 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10004 /* dlclose (self); */
10005 }
10006 else
10007 puts (dlerror ());
10008
10009 exit (status);
10010}
10011_LT_EOF
10012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10013 (eval $ac_link) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10017 (./conftest; exit; ) >&5 2>/dev/null
10018 lt_status=$?
10019 case x$lt_status in
10020 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10021 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10022 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10023 esac
10024 else :
10025 # compilation failed
10026 lt_cv_dlopen_self=no
10027 fi
10028fi
10029rm -fr conftest*
10030
d7040cdb
SE
10031
10032fi
ce2cded5
L
10033echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10034echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10035
10036 if test "x$lt_cv_dlopen_self" = xyes; then
10037 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10038 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10039echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10040if test "${lt_cv_dlopen_self_static+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 10042else
ce2cded5
L
10043 if test "$cross_compiling" = yes; then :
10044 lt_cv_dlopen_self_static=cross
10045else
10046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10047 lt_status=$lt_dlunknown
10048 cat > conftest.$ac_ext <<_LT_EOF
58c85be7 10049#line 10049 "configure"
ce2cded5
L
10050#include "confdefs.h"
10051
10052#if HAVE_DLFCN_H
10053#include <dlfcn.h>
10054#endif
10055
10056#include <stdio.h>
10057
10058#ifdef RTLD_GLOBAL
10059# define LT_DLGLOBAL RTLD_GLOBAL
10060#else
10061# ifdef DL_GLOBAL
10062# define LT_DLGLOBAL DL_GLOBAL
10063# else
10064# define LT_DLGLOBAL 0
10065# endif
10066#endif
10067
10068/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10069 find out it does not work in some platform. */
10070#ifndef LT_DLLAZY_OR_NOW
10071# ifdef RTLD_LAZY
10072# define LT_DLLAZY_OR_NOW RTLD_LAZY
10073# else
10074# ifdef DL_LAZY
10075# define LT_DLLAZY_OR_NOW DL_LAZY
10076# else
10077# ifdef RTLD_NOW
10078# define LT_DLLAZY_OR_NOW RTLD_NOW
10079# else
10080# ifdef DL_NOW
10081# define LT_DLLAZY_OR_NOW DL_NOW
10082# else
10083# define LT_DLLAZY_OR_NOW 0
10084# endif
10085# endif
10086# endif
10087# endif
10088#endif
10089
10090#ifdef __cplusplus
10091extern "C" void exit (int);
10092#endif
10093
10094void fnord() { int i=42;}
10095int main ()
d7040cdb 10096{
ce2cded5
L
10097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10098 int status = $lt_dlunknown;
10099
10100 if (self)
10101 {
10102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10104 /* dlclose (self); */
10105 }
10106 else
10107 puts (dlerror ());
10108
10109 exit (status);
d7040cdb 10110}
ce2cded5
L
10111_LT_EOF
10112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
10113 (eval $ac_link) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10116 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10117 (./conftest; exit; ) >&5 2>/dev/null
10118 lt_status=$?
10119 case x$lt_status in
10120 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10121 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10122 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10123 esac
10124 else :
10125 # compilation failed
10126 lt_cv_dlopen_self_static=no
10127 fi
d7040cdb 10128fi
ce2cded5
L
10129rm -fr conftest*
10130
10131
d7040cdb 10132fi
ce2cded5
L
10133echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10134echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10135 fi
10136
10137 CPPFLAGS="$save_CPPFLAGS"
10138 LDFLAGS="$save_LDFLAGS"
10139 LIBS="$save_LIBS"
10140 ;;
10141 esac
10142
10143 case $lt_cv_dlopen_self in
10144 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10145 *) enable_dlopen_self=unknown ;;
10146 esac
10147
10148 case $lt_cv_dlopen_self_static in
10149 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10150 *) enable_dlopen_self_static=unknown ;;
10151 esac
d7040cdb 10152fi
d7040cdb 10153
d7040cdb
SE
10154
10155
d7040cdb 10156
d7040cdb 10157
ce2cded5
L
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170striplib=
10171old_striplib=
10172echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10173echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10174if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10175 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10176 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10177 echo "$as_me:$LINENO: result: yes" >&5
10178echo "${ECHO_T}yes" >&6
10179else
10180# FIXME - insert some real tests, host_os isn't really good enough
10181 case $host_os in
10182 darwin*)
10183 if test -n "$STRIP" ; then
10184 striplib="$STRIP -x"
10185 old_striplib="$STRIP -S"
10186 echo "$as_me:$LINENO: result: yes" >&5
10187echo "${ECHO_T}yes" >&6
10188 else
10189 echo "$as_me:$LINENO: result: no" >&5
10190echo "${ECHO_T}no" >&6
d7040cdb 10191 fi
ce2cded5
L
10192 ;;
10193 *)
10194 echo "$as_me:$LINENO: result: no" >&5
10195echo "${ECHO_T}no" >&6
10196 ;;
d7040cdb 10197 esac
d7040cdb
SE
10198fi
10199
d7040cdb 10200
d7040cdb 10201
d7040cdb 10202
d7040cdb 10203
d7040cdb 10204
d7040cdb 10205
d7040cdb 10206
d7040cdb 10207
d7040cdb 10208
d7040cdb 10209
d7040cdb 10210
ce2cded5
L
10211 # Report which library types will actually be built
10212 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10213echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10214 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10215echo "${ECHO_T}$can_build_shared" >&6
d7040cdb 10216
ce2cded5
L
10217 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10218echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10219 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 10220
ce2cded5
L
10221 # On AIX, shared libraries and static libraries use the same namespace, and
10222 # are all built from PIC.
10223 case $host_os in
10224 aix3*)
10225 test "$enable_shared" = yes && enable_static=no
10226 if test -n "$RANLIB"; then
10227 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10228 postinstall_cmds='$RANLIB $lib'
10229 fi
10230 ;;
d7040cdb 10231
50e7d84b 10232 aix[4-9]*)
ce2cded5
L
10233 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10234 test "$enable_shared" = yes && enable_static=no
10235 fi
10236 ;;
10237 esac
10238 echo "$as_me:$LINENO: result: $enable_shared" >&5
10239echo "${ECHO_T}$enable_shared" >&6
10240
10241 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10242echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10243 # Make sure either enable_shared or enable_static is yes.
10244 test "$enable_shared" = yes || enable_static=yes
10245 echo "$as_me:$LINENO: result: $enable_static" >&5
10246echo "${ECHO_T}$enable_static" >&6
d7040cdb 10247
d7040cdb 10248
d7040cdb 10249
d7040cdb 10250
ce2cded5
L
10251fi
10252ac_ext=c
10253ac_cpp='$CPP $CPPFLAGS'
10254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10256ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 10257
ce2cded5 10258CC="$lt_save_CC"
d7040cdb 10259
d7040cdb 10260
d7040cdb 10261
d7040cdb 10262
d7040cdb 10263
d7040cdb 10264
d7040cdb 10265
d7040cdb 10266
d7040cdb 10267
d7040cdb
SE
10268
10269
d7040cdb
SE
10270
10271
ce2cded5 10272 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
10273
10274
d7040cdb 10275
d7040cdb 10276
ce2cded5 10277# Only expand once:
d7040cdb 10278
d7040cdb 10279
d7040cdb 10280
ce2cded5
L
10281# Check whether --enable-targets or --disable-targets was given.
10282if test "${enable_targets+set}" = set; then
10283 enableval="$enable_targets"
10284 case "${enableval}" in
10285 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10286echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10287 { (exit 1); exit 1; }; }
10288 ;;
10289 no) enable_targets= ;;
10290 *) enable_targets=$enableval ;;
10291esac
10292fi;
10293# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10294if test "${enable_commonbfdlib+set}" = set; then
10295 enableval="$enable_commonbfdlib"
10296 case "${enableval}" in
10297 yes) commonbfdlib=true ;;
10298 no) commonbfdlib=false ;;
10299 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10300echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10301 { (exit 1); exit 1; }; } ;;
10302esac
10303fi;
10304ac_checking=yes
10305if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10306 ac_checking=
10307fi
10308# Check whether --enable-checking or --disable-checking was given.
10309if test "${enable_checking+set}" = set; then
10310 enableval="$enable_checking"
10311 case "${enableval}" in
10312 no|none) ac_checking= ;;
10313 *) ac_checking=yes ;;
10314esac
10315fi; if test x$ac_checking != x ; then
d7040cdb 10316
ce2cded5
L
10317cat >>confdefs.h <<\_ACEOF
10318#define ENABLE_CHECKING 1
10319_ACEOF
d7040cdb 10320
ce2cded5 10321fi
d7040cdb 10322
ce2cded5 10323using_cgen=no
d7040cdb 10324
d7040cdb 10325
ce2cded5 10326GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 10327
ce2cded5
L
10328# Check whether --enable-werror or --disable-werror was given.
10329if test "${enable_werror+set}" = set; then
10330 enableval="$enable_werror"
10331 case "${enableval}" in
10332 yes | y) ERROR_ON_WARNING="yes" ;;
10333 no | n) ERROR_ON_WARNING="no" ;;
10334 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10335echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10336 { (exit 1); exit 1; }; } ;;
10337 esac
10338fi;
d7040cdb 10339
bb8541b9
L
10340# Enable -Wno-format by default when using gcc on mingw
10341case "${host}" in
10342 *-*-mingw32*)
10343 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10344 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10345 fi
10346 ;;
10347 *) ;;
10348esac
10349
ce2cded5
L
10350# Enable -Werror by default when using gcc
10351if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10352 ERROR_ON_WARNING=yes
10353fi
10354
10355NO_WERROR=
10356if test "${ERROR_ON_WARNING}" = yes ; then
10357 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10358 NO_WERROR="-Wno-error"
10359fi
10360
10361if test "${GCC}" = yes ; then
10362 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10363fi
10364
10365# Check whether --enable-build-warnings or --disable-build-warnings was given.
10366if test "${enable_build_warnings+set}" = set; then
10367 enableval="$enable_build_warnings"
10368 case "${enableval}" in
10369 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10370 no) if test "${GCC}" = yes ; then
10371 WARN_CFLAGS="-w"
10372 fi;;
10373 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10374 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10375 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10376 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10377 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10378esac
10379fi;
d7040cdb 10380
ce2cded5
L
10381if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10382 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10383fi
d7040cdb 10384
d7040cdb 10385
d7040cdb 10386
d7040cdb 10387
d7040cdb 10388
ce2cded5
L
10389# Generate a header file
10390 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 10391
d7040cdb 10392
ce2cded5
L
10393# If we are on a DOS filesystem, we must use gdb.ini rather than
10394# .gdbinit.
10395case "${host}" in
10396 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10397 GDBINIT="gdb.ini"
10398 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 10399
ce2cded5
L
10400 ;;
10401 *)
10402 GDBINIT=".gdbinit"
10403 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 10404
ce2cded5
L
10405 ;;
10406esac
d7040cdb 10407
d7040cdb 10408
ce2cded5
L
10409#We need this for the host. BOUT header is in host order.
10410echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10411echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10412if test "${ac_cv_c_bigendian+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414else
10415 # See if sys/param.h defines the BYTE_ORDER macro.
10416cat >conftest.$ac_ext <<_ACEOF
10417/* confdefs.h. */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h. */
10422#include <sys/types.h>
10423#include <sys/param.h>
d7040cdb 10424
ce2cded5
L
10425int
10426main ()
10427{
10428#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10429 bogus endian macros
10430#endif
d7040cdb 10431
ce2cded5
L
10432 ;
10433 return 0;
10434}
10435_ACEOF
10436rm -f conftest.$ac_objext
10437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10438 (eval $ac_compile) 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -z "$ac_c_werror_flag"
10446 || test ! -s conftest.err'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; } &&
10452 { ac_try='test -s conftest.$ac_objext'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10458 # It does; now see whether it defined to BIG_ENDIAN or not.
10459cat >conftest.$ac_ext <<_ACEOF
10460/* confdefs.h. */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
10464/* end confdefs.h. */
10465#include <sys/types.h>
10466#include <sys/param.h>
d7040cdb 10467
ce2cded5
L
10468int
10469main ()
10470{
10471#if BYTE_ORDER != BIG_ENDIAN
10472 not big endian
10473#endif
d7040cdb 10474
ce2cded5
L
10475 ;
10476 return 0;
10477}
10478_ACEOF
10479rm -f conftest.$ac_objext
10480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10481 (eval $ac_compile) 2>conftest.er1
10482 ac_status=$?
10483 grep -v '^ *+' conftest.er1 >conftest.err
10484 rm -f conftest.er1
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_c_werror_flag"
10489 || test ! -s conftest.err'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; } &&
10495 { ac_try='test -s conftest.$ac_objext'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }; then
10501 ac_cv_c_bigendian=yes
10502else
10503 echo "$as_me: failed program was:" >&5
10504sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10505
ce2cded5
L
10506ac_cv_c_bigendian=no
10507fi
10508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10509else
10510 echo "$as_me: failed program was:" >&5
10511sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10512
ce2cded5
L
10513# It does not; compile a test program.
10514if test "$cross_compiling" = yes; then
10515 # try to guess the endianness by grepping values into an object file
10516 ac_cv_c_bigendian=unknown
10517 cat >conftest.$ac_ext <<_ACEOF
10518/* confdefs.h. */
10519_ACEOF
10520cat confdefs.h >>conftest.$ac_ext
10521cat >>conftest.$ac_ext <<_ACEOF
10522/* end confdefs.h. */
10523short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10524short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10525void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10526short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10527short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10528void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10529int
10530main ()
10531{
10532 _ascii (); _ebcdic ();
10533 ;
10534 return 0;
10535}
10536_ACEOF
10537rm -f conftest.$ac_objext
10538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10539 (eval $ac_compile) 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest.$ac_objext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10560 ac_cv_c_bigendian=yes
d7040cdb 10561fi
ce2cded5
L
10562if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10563 if test "$ac_cv_c_bigendian" = unknown; then
10564 ac_cv_c_bigendian=no
10565 else
10566 # finding both strings is unlikely to happen, but who knows?
10567 ac_cv_c_bigendian=unknown
10568 fi
10569fi
10570else
10571 echo "$as_me: failed program was:" >&5
10572sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10573
ce2cded5
L
10574fi
10575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10576else
10577 cat >conftest.$ac_ext <<_ACEOF
10578/* confdefs.h. */
10579_ACEOF
10580cat confdefs.h >>conftest.$ac_ext
10581cat >>conftest.$ac_ext <<_ACEOF
10582/* end confdefs.h. */
10583int
10584main ()
10585{
10586 /* Are we little or big endian? From Harbison&Steele. */
10587 union
10588 {
10589 long l;
10590 char c[sizeof (long)];
10591 } u;
10592 u.l = 1;
10593 exit (u.c[sizeof (long) - 1] == 1);
10594}
d7040cdb 10595_ACEOF
ce2cded5
L
10596rm -f conftest$ac_exeext
10597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598 (eval $ac_link) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; }; then
10607 ac_cv_c_bigendian=no
10608else
10609 echo "$as_me: program exited with status $ac_status" >&5
10610echo "$as_me: failed program was:" >&5
10611sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10612
ce2cded5
L
10613( exit $ac_status )
10614ac_cv_c_bigendian=yes
d7040cdb 10615fi
ce2cded5 10616rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7040cdb 10617fi
d7040cdb 10618fi
ce2cded5
L
10619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10620fi
10621echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10622echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10623case $ac_cv_c_bigendian in
10624 yes)
d7040cdb 10625
d7040cdb 10626cat >>confdefs.h <<\_ACEOF
ce2cded5 10627#define WORDS_BIGENDIAN 1
d7040cdb
SE
10628_ACEOF
10629 ;;
ce2cded5
L
10630 no)
10631 ;;
10632 *)
10633 { { echo "$as_me:$LINENO: error: unknown endianness
10634presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10635echo "$as_me: error: unknown endianness
10636presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10637 { (exit 1); exit 1; }; } ;;
d7040cdb
SE
10638esac
10639
d7040cdb 10640
ce2cded5 10641te_file=generic
d7040cdb 10642
ce2cded5
L
10643# Makefile target for installing gas in $(tooldir)/bin.
10644install_tooldir=install-exec-tooldir
d7040cdb 10645
ce2cded5
L
10646canon_targets=""
10647all_targets=no
10648if test -n "$enable_targets" ; then
10649 for t in `echo $enable_targets | sed 's/,/ /g'`; do
10650 if test $t = "all"; then
10651 all_targets=yes
10652 continue
10653 fi
10654 result=`$ac_config_sub $t 2>/dev/null`
10655 if test -n "$result" ; then
10656 canon_targets="$canon_targets $result"
10657# else
10658# # Permit "all", etc. We don't support it yet though.
10659# canon_targets="$canon_targets $t"
10660 fi
10661 done
10662 _gas_uniq_list="$canon_targets"
d7040cdb
SE
10663_gas_uniq_newlist=""
10664for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10665 case $_gas_uniq_i in
10666 _gas_uniq_dummy) ;;
10667 *) case " $_gas_uniq_newlist " in
10668 *" $_gas_uniq_i "*) ;;
10669 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10670 esac ;;
10671 esac
10672done
ce2cded5 10673canon_targets=$_gas_uniq_newlist
d7040cdb 10674
ce2cded5
L
10675fi
10676
10677emulations=""
10678
10679for this_target in $target $canon_targets ; do
10680
10681 targ=${this_target}
10682 . ${srcdir}/configure.tgt
10683
10684 case ${target_cpu} in
10685 crisv32)
10686
10687cat >>confdefs.h <<_ACEOF
10688#define DEFAULT_CRIS_ARCH $arch
d7040cdb 10689_ACEOF
ce2cded5
L
10690
10691 ;;
10692 esac
10693
10694 if test ${this_target} = $target ; then
10695 target_cpu_type=${cpu_type}
10696 elif test ${target_cpu_type} != ${cpu_type} ; then
10697 continue
10698 fi
10699
10700 generic_target=${cpu_type}-${target_vendor}-${target_os}
10701 case ${generic_target} in
10702 i386-*-sco3.2v5*)
10703 if test ${this_target} = $target; then
10704
d7040cdb 10705cat >>confdefs.h <<\_ACEOF
ce2cded5 10706#define SCO_ELF 1
d7040cdb 10707_ACEOF
ce2cded5
L
10708
10709 fi
10710 ;;
10711
10712 i386-*-msdosdjgpp* \
10713 | i386-*-go32* \
10714 | i386-go32-rtems*)
10715
d7040cdb 10716cat >>confdefs.h <<\_ACEOF
ce2cded5 10717#define STRICTCOFF 1
d7040cdb 10718_ACEOF
ce2cded5
L
10719
10720 ;;
10721
10722 i860-*-*)
10723 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10724echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
10725 ;;
10726
10727 mips-sony-bsd*)
10728 ;;
10729 mips-*-bsd*)
10730 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
10731echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
10732 { (exit 1); exit 1; }; }
10733 ;;
10734
10735 ppc-*-aix5.*)
10736
d7040cdb 10737cat >>confdefs.h <<\_ACEOF
ce2cded5 10738#define AIX_WEAK_SUPPORT 1
d7040cdb 10739_ACEOF
ce2cded5
L
10740
10741 ;;
10742 ppc-*-linux-*)
10743 case "$endian" in
10744 big) ;;
10745 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
10746echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
10747 { (exit 1); exit 1; }; } ;;
10748 esac
10749 ;;
10750 ppc-*-solaris*)
10751 if test ${this_target} = $target; then
10752
d7040cdb 10753cat >>confdefs.h <<\_ACEOF
ce2cded5 10754#define TARGET_SOLARIS_COMMENT 1
d7040cdb 10755_ACEOF
ce2cded5
L
10756
10757 fi
10758 if test x${endian} = xbig; then
10759 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
10760echo "$as_me: error: Solaris must be configured little endian" >&2;}
10761 { (exit 1); exit 1; }; }
10762 fi
10763 ;;
10764
10765 sh*-*-symbianelf*)
10766
d7040cdb 10767cat >>confdefs.h <<\_ACEOF
ce2cded5 10768#define TARGET_SYMBIAN 1
d7040cdb 10769_ACEOF
ce2cded5
L
10770
10771 ;;
d7040cdb 10772 esac
d7040cdb 10773
ce2cded5
L
10774 if test ${this_target} = $target ; then
10775 endian_def=
10776 if test x${endian} = xbig; then
10777 endian_def=1
10778 elif test x${endian} = xlittle; then
10779 endian_def=0
10780 fi
10781 if test x${endian_def} != x; then
10782
10783cat >>confdefs.h <<_ACEOF
10784#define TARGET_BYTES_BIG_ENDIAN $endian_def
10785_ACEOF
10786
10787 fi
10788 fi
10789
10790# Other random stuff.
10791
10792 case ${cpu_type} in
10793 mips)
10794 # Set mips_cpu to the name of the default CPU.
10795 case ${target_cpu} in
10796 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
10797 mips_cpu=from-abi
10798 ;;
10799 mipsisa32 | mipsisa32el)
10800 mips_cpu=mips32
10801 ;;
10802 mipsisa32r2 | mipsisa32r2el)
10803 mips_cpu=mips32r2
10804 ;;
10805 mipsisa64 | mipsisa64el)
10806 mips_cpu=mips64
10807 ;;
10808 mipsisa64r2 | mipsisa64r2el)
10809 mips_cpu=mips64r2
10810 ;;
10811 mipstx39 | mipstx39el)
10812 mips_cpu=r3900
10813 ;;
10814 mips64vr | mips64vrel)
10815 mips_cpu=vr4100
10816 ;;
10817 mipsisa32r2* | mipsisa64r2*)
10818 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
10819 ;;
10820 mips64* | mipsisa64* | mipsisa32*)
10821 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
10822 ;;
10823 *)
10824 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
10825echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
10826 { (exit 1); exit 1; }; }
10827 ;;
10828 esac
10829 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
10830 # binaries. It's a GNU extension that some OSes don't understand.
10831 # The value only matters on ELF targets.
10832 case ${target} in
10833 *-*-irix*)
10834 use_e_mips_abi_o32=0
10835 ;;
10836 *)
10837 use_e_mips_abi_o32=1
10838 ;;
10839 esac
10840 # Decide whether to generate 32-bit or 64-bit code by default.
10841 # Used to resolve -march=from-abi when an embedded ABI is selected.
10842 case ${target} in
10843 mips64*-*-* | mipsisa64*-*-*)
10844 mips_default_64bit=1
10845 ;;
10846 *)
10847 mips_default_64bit=0
10848 ;;
10849 esac
10850 # Decide which ABI to target by default.
10851 case ${target} in
10852 mips64*-linux* | mips-sgi-irix6*)
10853 mips_default_abi=N32_ABI
10854 ;;
10855 mips*-linux*)
10856 mips_default_abi=O32_ABI
10857 ;;
10858 mips64*-openbsd*)
10859 mips_default_abi=N64_ABI
10860 ;;
10861 *)
10862 mips_default_abi=NO_ABI
10863 ;;
10864 esac
10865
10866cat >>confdefs.h <<_ACEOF
10867#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 10868_ACEOF
d7040cdb
SE
10869
10870
10871cat >>confdefs.h <<_ACEOF
ce2cded5 10872#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
10873_ACEOF
10874
10875
10876cat >>confdefs.h <<_ACEOF
ce2cded5 10877#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
10878_ACEOF
10879
10880
ce2cded5
L
10881cat >>confdefs.h <<_ACEOF
10882#define MIPS_DEFAULT_ABI $mips_default_abi
10883_ACEOF
d7040cdb 10884
ce2cded5
L
10885 ;;
10886 esac
d7040cdb 10887
ce2cded5
L
10888 # Do we need the opcodes library?
10889 case ${cpu_type} in
10890 vax | tic30)
10891 ;;
d7040cdb 10892
ce2cded5
L
10893 *)
10894 need_opcodes=yes
d7040cdb 10895
ce2cded5
L
10896 case "${enable_shared}" in
10897 yes) shared_opcodes=true ;;
10898 *opcodes*) shared_opcodes=true ;;
10899 *) shared_opcodes=false ;;
10900 esac
10901 ;;
10902 esac
d7040cdb 10903
ce2cded5
L
10904 # Any other special object files needed ?
10905 case ${cpu_type} in
d7040cdb 10906
ce2cded5
L
10907 bfin)
10908 echo ${extra_objects} | grep -s "bfin-parse.o"
10909 if test $? -ne 0 ; then
10910 extra_objects="$extra_objects bfin-parse.o"
10911 fi
d7040cdb 10912
ce2cded5
L
10913 echo ${extra_objects} | grep -s "bfin-lex.o"
10914 if test $? -ne 0 ; then
10915 extra_objects="$extra_objects bfin-lex.o"
10916 fi
10917 ;;
d7040cdb 10918
ce2cded5
L
10919 fr30 | ip2k | iq2000 | m32r | openrisc)
10920 using_cgen=yes
10921 ;;
d7040cdb 10922
ce2cded5
L
10923 m32c)
10924 using_cgen=yes
10925 ;;
10926 frv)
10927 using_cgen=yes
10928 ;;
10929 m68k)
10930 case ${extra_objects} in
10931 *m68k-parse.o*) ;;
10932 *) extra_objects="$extra_objects m68k-parse.o" ;;
10933 esac
10934 ;;
d7040cdb 10935
ce2cded5
L
10936 mep)
10937 using_cgen=yes
10938 ;;
d7040cdb 10939
ce2cded5
L
10940 mips)
10941 echo ${extra_objects} | grep -s "itbl-parse.o"
10942 if test $? -ne 0 ; then
10943 extra_objects="$extra_objects itbl-parse.o"
10944 fi
d7040cdb 10945
ce2cded5
L
10946 echo ${extra_objects} | grep -s "itbl-lex.o"
10947 if test $? -ne 0 ; then
10948 extra_objects="$extra_objects itbl-lex.o"
10949 fi
d7040cdb 10950
ce2cded5
L
10951 echo ${extra_objects} | grep -s "itbl-ops.o"
10952 if test $? -ne 0 ; then
10953 extra_objects="$extra_objects itbl-ops.o"
10954 fi
10955 ;;
d7040cdb 10956
ce2cded5
L
10957 mt)
10958 using_cgen=yes
10959 ;;
d7040cdb 10960
ce2cded5
L
10961 i386 | s390 | sparc)
10962 if test $this_target = $target ; then
d7040cdb
SE
10963
10964cat >>confdefs.h <<_ACEOF
ce2cded5 10965#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
10966_ACEOF
10967
ce2cded5
L
10968 fi
10969 ;;
d7040cdb 10970
ce2cded5
L
10971 xstormy16)
10972 using_cgen=yes
10973 ;;
d7040cdb 10974
ce2cded5
L
10975 xc16x)
10976 using_cgen=yes
10977 ;;
d7040cdb 10978
ce2cded5
L
10979 xtensa)
10980 echo ${extra_objects} | grep -s "xtensa-relax.o"
10981 if test $? -ne 0 ; then
10982 extra_objects="$extra_objects xtensa-relax.o"
10983 fi
10984 ;;
d7040cdb 10985
ce2cded5
L
10986 *)
10987 ;;
10988 esac
d7040cdb 10989
ce2cded5
L
10990 if test $using_cgen = yes ; then
10991 case "x${extra_objects}" in
10992 *cgen.o*) ;;
10993 *) extra_objects="$extra_objects cgen.o" ;;
10994 esac
10995 fi
d7040cdb 10996
ce2cded5 10997# See if we really can support this configuration with the emulation code.
d7040cdb 10998
ce2cded5
L
10999 if test $this_target = $target ; then
11000 obj_format=$fmt
11001 te_file=$em
11002 fi
d7040cdb 11003
ce2cded5 11004# From target name and format, produce a list of supported emulations.
d7040cdb 11005
ce2cded5
L
11006 case ${generic_target}-${fmt} in
11007 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11008 mips*-*-linux*-*) case "$endian" in
11009 big) emulation="mipsbelf mipslelf mipself" ;;
11010 *) emulation="mipslelf mipsbelf mipself" ;;
11011 esac ;;
11012 mips-*-lnews*-ecoff) ;;
11013 mips-*-*-ecoff) case "$endian" in
11014 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
11015 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
11016 esac ;;
11017 mips-*-*-elf) case "$endian" in
11018 big) emulation="mipsbelf mipslelf mipself" ;;
11019 *) emulation="mipslelf mipsbelf mipself" ;;
11020 esac ;;
11021 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11022 # i386-pc-pe-coff != i386-pc-coff.
11023 i386-*-pe-coff) ;;
11024 # Uncommenting the next line will turn on support for i386 AOUT
11025 # for the default linux configuration
11026 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11027 #
11028 i386-*-aout) emulation="i386aout" ;;
11029 i386-*-coff) emulation="i386coff" ;;
11030 i386-*-elf) emulation="i386elf" ;;
d7040cdb 11031
ce2cded5
L
11032 # Always all formats. The first stated emulation becomes the default.
11033 cris-*-*aout*) emulation="crisaout criself" ;;
11034 cris-*-*) emulation="criself crisaout" ;;
11035 esac
13b2be9c 11036
ce2cded5 11037 emulations="$emulations $emulation"
13b2be9c 11038
13b2be9c 11039done
13b2be9c 11040
ce2cded5
L
11041# Turn on all targets if possible
11042if test ${all_targets} = "yes"; then
11043 case ${target_cpu_type} in
11044 i386)
11045 case ${obj_format} in
11046 aout)
11047 emulations="$emulations i386coff i386elf"
11048 ;;
11049 coff)
11050 emulations="$emulations i386aout i386elf"
11051 ;;
11052 elf)
11053 emulations="$emulations i386aout i386coff"
11054 ;;
11055 esac
11056 ;;
11057 x86_64)
11058 case ${obj_format} in
11059 aout)
11060 emulations="$emulations i386coff i386elf"
11061 ;;
11062 coff)
11063 emulations="$emulations i386aout i386elf"
11064 ;;
11065 elf)
11066 emulations="$emulations i386aout i386coff"
11067 ;;
11068 esac
11069 ;;
11070 esac
13b2be9c 11071fi
c8615825 11072
ce2cded5
L
11073# Assign floating point type. Most processors with FP support
11074# IEEE FP. On those that don't support FP at all, usually IEEE
11075# is emulated.
11076case ${target_cpu} in
11077 vax | pdp11 ) atof=vax ;;
11078 *) atof=ieee ;;
11079esac
c8615825 11080
ce2cded5
L
11081case "${obj_format}" in
11082 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11083echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11084 { (exit 1); exit 1; }; } ;;
11085esac
13b2be9c 11086
ce2cded5
L
11087# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11088cgen_cpu_prefix=""
11089if test $using_cgen = yes ; then
11090 case ${target_cpu} in
11091 *) cgen_cpu_prefix=${target_cpu} ;;
11092 esac
c8615825 11093
c8615825 11094
ce2cded5
L
11095cat >>confdefs.h <<\_ACEOF
11096#define USING_CGEN 1
11097_ACEOF
d7040cdb 11098
d7040cdb 11099fi
13b2be9c 11100
ce2cded5
L
11101
11102if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11103 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11104echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11105 { (exit 1); exit 1; }; }
13b2be9c 11106fi
ce2cded5
L
11107
11108if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11109 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11110echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11111 { (exit 1); exit 1; }; }
13b2be9c
DJ
11112fi
11113
ce2cded5
L
11114# Some COFF configurations want these random other flags set.
11115case ${obj_format} in
11116 coff)
11117 case ${target_cpu_type} in
11118 i386)
11119cat >>confdefs.h <<\_ACEOF
11120#define I386COFF 1
11121_ACEOF
11122 ;;
11123 m68k)
11124cat >>confdefs.h <<\_ACEOF
11125#define M68KCOFF 1
11126_ACEOF
11127 ;;
11128 m88k)
11129cat >>confdefs.h <<\_ACEOF
11130#define M88KCOFF 1
11131_ACEOF
11132 ;;
11133 x86_64)
11134cat >>confdefs.h <<\_ACEOF
11135#define I386COFF 1
11136_ACEOF
11137 ;;
11138 esac
11139 ;;
11140esac
11141
11142# Getting this done right is going to be a bitch. Each configuration specified
11143# with --enable-targets=... should be checked for environment, format, cpu
11144# setting.
11145#
11146# For each configuration, the necessary object file support code must be linked
11147# in. This might be only one, it might be up to four. The necessary emulation
11148# code needs to be provided, too.
11149#
11150# And then there's "--enable-targets=all"....
11151#
11152# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
11153
11154formats="${obj_format}"
11155emfiles=""
11156EMULATIONS=""
11157_gas_uniq_list="$emulations"
11158_gas_uniq_newlist=""
11159for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11160 case $_gas_uniq_i in
11161 _gas_uniq_dummy) ;;
11162 *) case " $_gas_uniq_newlist " in
11163 *" $_gas_uniq_i "*) ;;
11164 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11165 esac ;;
11166 esac
11167done
11168emulations=$_gas_uniq_newlist
11169
11170for em in . $emulations ; do
11171 case $em in
11172 .) continue ;;
11173 mipsbelf | mipslelf | mipself)
11174 fmt=elf file=mipself ;;
11175 mipsbecoff | mipslecoff | mipsecoff)
11176 fmt=ecoff file=mipsecoff ;;
11177 *coff)
11178 fmt=coff file=$em ;;
11179 *aout)
11180 fmt=aout file=$em ;;
11181 *elf)
11182 fmt=elf file=$em ;;
11183 esac
11184 formats="$formats $fmt"
11185 emfiles="$emfiles e-$file.o"
11186 EMULATIONS="$EMULATIONS &$em,"
11187done
11188_gas_uniq_list="$formats"
11189_gas_uniq_newlist=""
11190for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11191 case $_gas_uniq_i in
11192 _gas_uniq_dummy) ;;
11193 *) case " $_gas_uniq_newlist " in
11194 *" $_gas_uniq_i "*) ;;
11195 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11196 esac ;;
11197 esac
13b2be9c 11198done
ce2cded5 11199formats=$_gas_uniq_newlist
13b2be9c 11200
ce2cded5
L
11201_gas_uniq_list="$emfiles"
11202_gas_uniq_newlist=""
11203for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11204 case $_gas_uniq_i in
11205 _gas_uniq_dummy) ;;
11206 *) case " $_gas_uniq_newlist " in
11207 *" $_gas_uniq_i "*) ;;
11208 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11209 esac ;;
11210 esac
11211done
11212emfiles=$_gas_uniq_newlist
d7040cdb 11213
ce2cded5
L
11214if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11215 for fmt in $formats ; do
11216 case $fmt in
11217 aout)
11218cat >>confdefs.h <<\_ACEOF
11219#define OBJ_MAYBE_AOUT 1
13b2be9c 11220_ACEOF
ce2cded5
L
11221 ;;
11222 bout)
11223cat >>confdefs.h <<\_ACEOF
11224#define OBJ_MAYBE_BOUT 1
13b2be9c 11225_ACEOF
ce2cded5
L
11226 ;;
11227 coff)
11228cat >>confdefs.h <<\_ACEOF
11229#define OBJ_MAYBE_COFF 1
11230_ACEOF
11231 ;;
11232 ecoff)
11233cat >>confdefs.h <<\_ACEOF
11234#define OBJ_MAYBE_ECOFF 1
11235_ACEOF
11236 ;;
11237 elf)
11238cat >>confdefs.h <<\_ACEOF
11239#define OBJ_MAYBE_ELF 1
11240_ACEOF
11241 ;;
11242 generic)
11243cat >>confdefs.h <<\_ACEOF
11244#define OBJ_MAYBE_GENERIC 1
11245_ACEOF
11246 ;;
11247 som)
11248cat >>confdefs.h <<\_ACEOF
11249#define OBJ_MAYBE_SOM 1
11250_ACEOF
11251 ;;
11252 esac
11253 extra_objects="$extra_objects obj-$fmt.o"
11254 done
11255 obj_format=multi
13b2be9c 11256fi
ce2cded5
L
11257if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11258 DEFAULT_EMULATION=`set . $emulations ; echo $2`
11259 # e-mips* has more than one emulation per file, e-i386* has just one at the
11260 # moment. If only one emulation is specified, then don't define
11261 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11262 case "${obj_format}${emfiles}" in
11263 multi* | *mips*)
11264 extra_objects="$extra_objects $emfiles"
d7040cdb 11265
ce2cded5
L
11266cat >>confdefs.h <<\_ACEOF
11267#define USE_EMULATIONS 1
13b2be9c 11268_ACEOF
ce2cded5
L
11269 ;;
11270 esac
11271fi
d7040cdb 11272
13b2be9c 11273
ce2cded5
L
11274cat >>confdefs.h <<_ACEOF
11275#define EMULATIONS $EMULATIONS
13b2be9c 11276_ACEOF
d7040cdb 11277
d7040cdb 11278
ce2cded5
L
11279cat >>confdefs.h <<_ACEOF
11280#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 11281_ACEOF
d7040cdb 11282
d7040cdb 11283
ce2cded5 11284reject_dev_configs=yes
252b5132 11285
ce2cded5
L
11286case ${reject_dev_configs}-${dev} in
11287 yes-yes) # Oops.
11288 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11289echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11290 { (exit 1); exit 1; }; }
11291 ;;
d7040cdb
SE
11292esac
11293
13b2be9c 11294
ce2cded5
L
11295
11296
11297
11298
11299
11300# do we need the opcodes library?
11301case "${need_opcodes}" in
11302yes)
11303 OPCODES_LIB=../opcodes/libopcodes.la
11304 ;;
11305esac
11306
11307
11308
11309
11310cat >>confdefs.h <<_ACEOF
11311#define TARGET_ALIAS "${target_alias}"
d7040cdb 11312_ACEOF
20e95c23 11313
20e95c23 11314
ce2cded5
L
11315cat >>confdefs.h <<_ACEOF
11316#define TARGET_CANONICAL "${target}"
11317_ACEOF
20e95c23 11318
d6d788bd 11319
ce2cded5
L
11320cat >>confdefs.h <<_ACEOF
11321#define TARGET_CPU "${target_cpu}"
11322_ACEOF
20e95c23 11323
ce2cded5
L
11324
11325cat >>confdefs.h <<_ACEOF
11326#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
11327_ACEOF
11328
11329
ce2cded5
L
11330cat >>confdefs.h <<_ACEOF
11331#define TARGET_OS "${target_os}"
11332_ACEOF
11333
0efedc4c 11334
d7040cdb
SE
11335for ac_prog in 'bison -y' byacc
11336do
11337 # Extract the first word of "$ac_prog", so it can be a program name with args.
11338set dummy $ac_prog; ac_word=$2
20e95c23
DJ
11339echo "$as_me:$LINENO: checking for $ac_word" >&5
11340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 11341if test "${ac_cv_prog_YACC+set}" = set; then
20e95c23
DJ
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11343else
d7040cdb
SE
11344 if test -n "$YACC"; then
11345 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 11346else
d7040cdb
SE
11347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348for as_dir in $PATH
11349do
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11354 ac_cv_prog_YACC="$ac_prog"
11355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 break 2
20e95c23 11357 fi
d7040cdb
SE
11358done
11359done
20e95c23 11360
d7040cdb
SE
11361fi
11362fi
11363YACC=$ac_cv_prog_YACC
11364if test -n "$YACC"; then
11365 echo "$as_me:$LINENO: result: $YACC" >&5
11366echo "${ECHO_T}$YACC" >&6
11367else
11368 echo "$as_me:$LINENO: result: no" >&5
11369echo "${ECHO_T}no" >&6
11370fi
20e95c23 11371
d7040cdb
SE
11372 test -n "$YACC" && break
11373done
11374test -n "$YACC" || YACC="yacc"
20e95c23 11375
d7040cdb
SE
11376for ac_prog in flex lex
11377do
11378 # Extract the first word of "$ac_prog", so it can be a program name with args.
11379set dummy $ac_prog; ac_word=$2
11380echo "$as_me:$LINENO: checking for $ac_word" >&5
11381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11382if test "${ac_cv_prog_LEX+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 11384else
d7040cdb
SE
11385 if test -n "$LEX"; then
11386 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11387else
11388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389for as_dir in $PATH
11390do
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11395 ac_cv_prog_LEX="$ac_prog"
11396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 break 2
11398 fi
11399done
11400done
20e95c23 11401
d7040cdb
SE
11402fi
11403fi
11404LEX=$ac_cv_prog_LEX
11405if test -n "$LEX"; then
11406 echo "$as_me:$LINENO: result: $LEX" >&5
11407echo "${ECHO_T}$LEX" >&6
20e95c23 11408else
d7040cdb
SE
11409 echo "$as_me:$LINENO: result: no" >&5
11410echo "${ECHO_T}no" >&6
13b2be9c
DJ
11411fi
11412
d7040cdb
SE
11413 test -n "$LEX" && break
11414done
11415test -n "$LEX" || LEX=":"
20e95c23 11416
d7040cdb
SE
11417if test -z "$LEXLIB"
11418then
11419 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11420echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11421if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
d5fbea21 11423else
d7040cdb
SE
11424 ac_check_lib_save_LIBS=$LIBS
11425LIBS="-lfl $LIBS"
11426cat >conftest.$ac_ext <<_ACEOF
11427/* confdefs.h. */
11428_ACEOF
11429cat confdefs.h >>conftest.$ac_ext
11430cat >>conftest.$ac_ext <<_ACEOF
11431/* end confdefs.h. */
d5fbea21 11432
d7040cdb
SE
11433/* Override any gcc2 internal prototype to avoid an error. */
11434#ifdef __cplusplus
11435extern "C"
11436#endif
11437/* We use char because int might match the return type of a gcc2
11438 builtin and then its argument prototype would still apply. */
11439char yywrap ();
11440int
11441main ()
11442{
11443yywrap ();
11444 ;
11445 return 0;
11446}
11447_ACEOF
11448rm -f conftest.$ac_objext conftest$ac_exeext
11449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11450 (eval $ac_link) 2>conftest.er1
11451 ac_status=$?
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try='test -z "$ac_c_werror_flag"
11458 || test ! -s conftest.err'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; } &&
11464 { ac_try='test -s conftest$ac_exeext'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 ac_cv_lib_fl_yywrap=yes
11471else
11472 echo "$as_me: failed program was:" >&5
11473sed 's/^/| /' conftest.$ac_ext >&5
d5fbea21 11474
d7040cdb 11475ac_cv_lib_fl_yywrap=no
d6d788bd 11476fi
d7040cdb
SE
11477rm -f conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479LIBS=$ac_check_lib_save_LIBS
11480fi
11481echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11482echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11483if test $ac_cv_lib_fl_yywrap = yes; then
11484 LEXLIB="-lfl"
11485else
11486 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11487echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11488if test "${ac_cv_lib_l_yywrap+set}" = set; then
13b2be9c
DJ
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490else
d7040cdb
SE
11491 ac_check_lib_save_LIBS=$LIBS
11492LIBS="-ll $LIBS"
11493cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
11494/* confdefs.h. */
11495_ACEOF
11496cat confdefs.h >>conftest.$ac_ext
11497cat >>conftest.$ac_ext <<_ACEOF
11498/* end confdefs.h. */
d7040cdb
SE
11499
11500/* Override any gcc2 internal prototype to avoid an error. */
11501#ifdef __cplusplus
11502extern "C"
13b2be9c 11503#endif
d7040cdb
SE
11504/* We use char because int might match the return type of a gcc2
11505 builtin and then its argument prototype would still apply. */
11506char yywrap ();
11507int
11508main ()
11509{
11510yywrap ();
11511 ;
11512 return 0;
11513}
11514_ACEOF
11515rm -f conftest.$ac_objext conftest$ac_exeext
11516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11517 (eval $ac_link) 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -z "$ac_c_werror_flag"
11525 || test ! -s conftest.err'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; } &&
11531 { ac_try='test -s conftest$ac_exeext'
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; }; then
11537 ac_cv_lib_l_yywrap=yes
11538else
11539 echo "$as_me: failed program was:" >&5
11540sed 's/^/| /' conftest.$ac_ext >&5
11541
11542ac_cv_lib_l_yywrap=no
11543fi
11544rm -f conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext conftest.$ac_ext
11546LIBS=$ac_check_lib_save_LIBS
11547fi
11548echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11549echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11550if test $ac_cv_lib_l_yywrap = yes; then
11551 LEXLIB="-ll"
11552fi
11553
11554fi
11555
11556fi
11557
11558if test "x$LEX" != "x:"; then
11559 echo "$as_me:$LINENO: checking lex output file root" >&5
11560echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11561if test "${ac_cv_prog_lex_root+set}" = set; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11563else
11564 # The minimal lex program is just a single line: %%. But some broken lexes
11565# (Solaris, I think it was) want two %% lines, so accommodate them.
11566cat >conftest.l <<_ACEOF
11567%%
11568%%
13b2be9c 11569_ACEOF
d7040cdb
SE
11570{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11571 (eval $LEX conftest.l) 2>&5
13b2be9c 11572 ac_status=$?
13b2be9c 11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11574 (exit $ac_status); }
11575if test -f lex.yy.c; then
11576 ac_cv_prog_lex_root=lex.yy
11577elif test -f lexyy.c; then
11578 ac_cv_prog_lex_root=lexyy
13b2be9c 11579else
d7040cdb
SE
11580 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11581echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11582 { (exit 1); exit 1; }; }
d6d788bd 11583fi
13b2be9c 11584fi
d7040cdb
SE
11585echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11586echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11587rm -f conftest.l
11588LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13b2be9c 11589
d7040cdb
SE
11590echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11591echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11592if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594else
11595 # POSIX says lex can declare yytext either as a pointer or an array; the
11596# default is implementation-dependent. Figure out which it is, since
11597# not all implementations provide the %pointer and %array declarations.
11598ac_cv_prog_lex_yytext_pointer=no
11599echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11600ac_save_LIBS=$LIBS
11601LIBS="$LIBS $LEXLIB"
11602cat >conftest.$ac_ext <<_ACEOF
11603`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 11604_ACEOF
d7040cdb
SE
11605rm -f conftest.$ac_objext conftest$ac_exeext
11606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>conftest.er1
13b2be9c
DJ
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag"
11615 || test ! -s conftest.err'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest$ac_exeext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c
DJ
11628else
11629 echo "$as_me: failed program was:" >&5
11630sed 's/^/| /' conftest.$ac_ext >&5
6840198f 11631
13b2be9c 11632fi
d7040cdb
SE
11633rm -f conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
11635LIBS=$ac_save_LIBS
11636rm -f "${LEX_OUTPUT_ROOT}.c"
252b5132 11637
9b2b7d69 11638fi
d7040cdb
SE
11639echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11640echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11641if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 11642
d7040cdb
SE
11643cat >>confdefs.h <<\_ACEOF
11644#define YYTEXT_POINTER 1
11645_ACEOF
9b2b7d69 11646
d6d788bd 11647fi
d7040cdb 11648
c8615825 11649fi
d7040cdb
SE
11650if test "$LEX" = :; then
11651 LEX=${am_missing_run}flex
11652fi
11653
11654ALL_LINGUAS="fr tr es rw"
11655# If we haven't got the data from the intl directory,
11656# assume NLS is disabled.
11657USE_NLS=no
11658LIBINTL=
11659LIBINTL_DEP=
11660INCINTL=
11661XGETTEXT=
11662GMSGFMT=
11663POSUB=
11664
11665if test -f ../intl/config.intl; then
11666 . ../intl/config.intl
11667fi
11668echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11669echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11670if test x"$USE_NLS" != xyes; then
11671 echo "$as_me:$LINENO: result: no" >&5
11672echo "${ECHO_T}no" >&6
11673else
11674 echo "$as_me:$LINENO: result: yes" >&5
11675echo "${ECHO_T}yes" >&6
11676
11677cat >>confdefs.h <<\_ACEOF
11678#define ENABLE_NLS 1
13b2be9c 11679_ACEOF
d7040cdb
SE
11680
11681
11682 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11683echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11684 # Look for .po and .gmo files in the source directory.
11685 CATALOGS=
11686 XLINGUAS=
11687 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11688 # If there aren't any .gmo files the shell will give us the
11689 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11690 # weeded out.
11691 case "$cat" in *\**)
11692 continue;;
11693 esac
11694 # The quadruple backslash is collapsed to a double backslash
11695 # by the backticks, then collapsed again by the double quotes,
11696 # leaving us with one backslash in the sed expression (right
11697 # before the dot that mustn't act as a wildcard).
11698 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11699 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11700 # The user is allowed to set LINGUAS to a list of languages to
11701 # install catalogs for. If it's empty that means "all of them."
11702 if test "x$LINGUAS" = x; then
11703 CATALOGS="$CATALOGS $cat"
11704 XLINGUAS="$XLINGUAS $lang"
11705 else
11706 case "$LINGUAS" in *$lang*)
11707 CATALOGS="$CATALOGS $cat"
11708 XLINGUAS="$XLINGUAS $lang"
11709 ;;
11710 esac
11711 fi
11712 done
11713 LINGUAS="$XLINGUAS"
11714 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11715echo "${ECHO_T}$LINGUAS" >&6
11716
11717
11718 DATADIRNAME=share
11719
11720 INSTOBJEXT=.mo
11721
11722 GENCAT=gencat
11723
11724 CATOBJEXT=.gmo
11725
11726fi
11727
11728 MKINSTALLDIRS=
11729 if test -n "$ac_aux_dir"; then
11730 case "$ac_aux_dir" in
11731 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11732 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11733 esac
11734 fi
11735 if test -z "$MKINSTALLDIRS"; then
11736 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11737 fi
11738
11739
11740
11741 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11742echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11743 # Check whether --enable-nls or --disable-nls was given.
11744if test "${enable_nls+set}" = set; then
11745 enableval="$enable_nls"
11746 USE_NLS=$enableval
11747else
11748 USE_NLS=yes
11749fi;
11750 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11751echo "${ECHO_T}$USE_NLS" >&6
11752
11753
11754
11755
11756
11757
11758# Prepare PATH_SEPARATOR.
11759# The user is always right.
11760if test "${PATH_SEPARATOR+set}" != set; then
11761 echo "#! /bin/sh" >conf$$.sh
11762 echo "exit 0" >>conf$$.sh
11763 chmod +x conf$$.sh
11764 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11765 PATH_SEPARATOR=';'
13b2be9c 11766 else
d7040cdb 11767 PATH_SEPARATOR=:
13b2be9c 11768 fi
d7040cdb 11769 rm -f conf$$.sh
252b5132 11770fi
13b2be9c 11771
d7040cdb
SE
11772# Find out how to test for executable files. Don't use a zero-byte file,
11773# as systems may use methods other than mode bits to determine executability.
11774cat >conf$$.file <<_ASEOF
11775#! /bin/sh
11776exit 0
11777_ASEOF
11778chmod +x conf$$.file
11779if test -x conf$$.file >/dev/null 2>&1; then
11780 ac_executable_p="test -x"
11781else
11782 ac_executable_p="test -f"
13b2be9c 11783fi
d7040cdb 11784rm -f conf$$.file
13b2be9c 11785
d7040cdb
SE
11786# Extract the first word of "msgfmt", so it can be a program name with args.
11787set dummy msgfmt; ac_word=$2
11788echo "$as_me:$LINENO: checking for $ac_word" >&5
11789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11790if test "${ac_cv_path_MSGFMT+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11792else
d7040cdb
SE
11793 case "$MSGFMT" in
11794 [\\/]* | ?:[\\/]*)
11795 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11796 ;;
11797 *)
11798 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11799 for ac_dir in $PATH; do
11800 IFS="$ac_save_IFS"
11801 test -z "$ac_dir" && ac_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11804 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11805 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11806 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11807 break 2
11808 fi
11809 fi
11810 done
11811 done
11812 IFS="$ac_save_IFS"
11813 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11814 ;;
11815esac
252b5132 11816fi
d7040cdb
SE
11817MSGFMT="$ac_cv_path_MSGFMT"
11818if test "$MSGFMT" != ":"; then
11819 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11820echo "${ECHO_T}$MSGFMT" >&6
252b5132 11821else
d7040cdb
SE
11822 echo "$as_me:$LINENO: result: no" >&5
11823echo "${ECHO_T}no" >&6
252b5132 11824fi
252b5132 11825
d7040cdb
SE
11826 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11827set dummy gmsgfmt; ac_word=$2
11828echo "$as_me:$LINENO: checking for $ac_word" >&5
11829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11830if test "${ac_cv_path_GMSGFMT+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 11832else
d7040cdb
SE
11833 case $GMSGFMT in
11834 [\\/]* | ?:[\\/]*)
11835 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11836 ;;
11837 *)
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 break 2
11848 fi
11849done
11850done
252b5132 11851
d7040cdb
SE
11852 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11853 ;;
11854esac
11855fi
11856GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 11857
d7040cdb
SE
11858if test -n "$GMSGFMT"; then
11859 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11860echo "${ECHO_T}$GMSGFMT" >&6
ac48eca1 11861else
d7040cdb
SE
11862 echo "$as_me:$LINENO: result: no" >&5
11863echo "${ECHO_T}no" >&6
6840198f 11864fi
6840198f 11865
13b2be9c 11866
20e95c23 11867
d7040cdb
SE
11868# Prepare PATH_SEPARATOR.
11869# The user is always right.
11870if test "${PATH_SEPARATOR+set}" != set; then
11871 echo "#! /bin/sh" >conf$$.sh
11872 echo "exit 0" >>conf$$.sh
11873 chmod +x conf$$.sh
11874 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11875 PATH_SEPARATOR=';'
11876 else
11877 PATH_SEPARATOR=:
11878 fi
11879 rm -f conf$$.sh
11880fi
20e95c23 11881
d7040cdb
SE
11882# Find out how to test for executable files. Don't use a zero-byte file,
11883# as systems may use methods other than mode bits to determine executability.
11884cat >conf$$.file <<_ASEOF
11885#! /bin/sh
11886exit 0
11887_ASEOF
11888chmod +x conf$$.file
11889if test -x conf$$.file >/dev/null 2>&1; then
11890 ac_executable_p="test -x"
13b2be9c 11891else
d7040cdb 11892 ac_executable_p="test -f"
13b2be9c 11893fi
d7040cdb 11894rm -f conf$$.file
20e95c23 11895
d7040cdb
SE
11896# Extract the first word of "xgettext", so it can be a program name with args.
11897set dummy xgettext; ac_word=$2
11898echo "$as_me:$LINENO: checking for $ac_word" >&5
11899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11900if test "${ac_cv_path_XGETTEXT+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11902else
d7040cdb
SE
11903 case "$XGETTEXT" in
11904 [\\/]* | ?:[\\/]*)
11905 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11906 ;;
11907 *)
11908 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11909 for ac_dir in $PATH; do
11910 IFS="$ac_save_IFS"
11911 test -z "$ac_dir" && ac_dir=.
11912 for ac_exec_ext in '' $ac_executable_extensions; do
11913 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11914 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11915 (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
11916 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11917 break 2
11918 fi
11919 fi
11920 done
11921 done
11922 IFS="$ac_save_IFS"
11923 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11924 ;;
11925esac
13b2be9c 11926fi
d7040cdb
SE
11927XGETTEXT="$ac_cv_path_XGETTEXT"
11928if test "$XGETTEXT" != ":"; then
11929 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11930echo "${ECHO_T}$XGETTEXT" >&6
11931else
11932 echo "$as_me:$LINENO: result: no" >&5
11933echo "${ECHO_T}no" >&6
13b2be9c 11934fi
13b2be9c 11935
d7040cdb 11936 rm -f messages.po
20e95c23 11937
13b2be9c 11938
d7040cdb
SE
11939# Prepare PATH_SEPARATOR.
11940# The user is always right.
11941if test "${PATH_SEPARATOR+set}" != set; then
11942 echo "#! /bin/sh" >conf$$.sh
11943 echo "exit 0" >>conf$$.sh
11944 chmod +x conf$$.sh
11945 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11946 PATH_SEPARATOR=';'
11947 else
11948 PATH_SEPARATOR=:
11949 fi
11950 rm -f conf$$.sh
252b5132 11951fi
20e95c23 11952
d7040cdb
SE
11953# Find out how to test for executable files. Don't use a zero-byte file,
11954# as systems may use methods other than mode bits to determine executability.
11955cat >conf$$.file <<_ASEOF
11956#! /bin/sh
11957exit 0
11958_ASEOF
11959chmod +x conf$$.file
11960if test -x conf$$.file >/dev/null 2>&1; then
11961 ac_executable_p="test -x"
252b5132 11962else
d7040cdb
SE
11963 ac_executable_p="test -f"
11964fi
11965rm -f conf$$.file
20e95c23 11966
d7040cdb
SE
11967# Extract the first word of "msgmerge", so it can be a program name with args.
11968set dummy msgmerge; ac_word=$2
11969echo "$as_me:$LINENO: checking for $ac_word" >&5
11970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11971if test "${ac_cv_path_MSGMERGE+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11973else
d7040cdb
SE
11974 case "$MSGMERGE" in
11975 [\\/]* | ?:[\\/]*)
11976 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11977 ;;
11978 *)
11979 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11980 for ac_dir in $PATH; do
11981 IFS="$ac_save_IFS"
11982 test -z "$ac_dir" && ac_dir=.
11983 for ac_exec_ext in '' $ac_executable_extensions; do
11984 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11985 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11986 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11987 break 2
11988 fi
11989 fi
11990 done
11991 done
11992 IFS="$ac_save_IFS"
11993 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11994 ;;
11995esac
20e95c23 11996fi
d7040cdb
SE
11997MSGMERGE="$ac_cv_path_MSGMERGE"
11998if test "$MSGMERGE" != ":"; then
11999 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12000echo "${ECHO_T}$MSGMERGE" >&6
12001else
12002 echo "$as_me:$LINENO: result: no" >&5
12003echo "${ECHO_T}no" >&6
20e95c23 12004fi
252b5132 12005
252b5132 12006
d7040cdb
SE
12007 if test "$GMSGFMT" != ":"; then
12008 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12009 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12010 : ;
12011 else
12012 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12013 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12014echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12015 GMSGFMT=":"
12016 fi
12017 fi
13b2be9c 12018
d7040cdb
SE
12019 if test "$XGETTEXT" != ":"; then
12020 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12021 (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
12022 : ;
12023 else
12024 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12025echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12026 XGETTEXT=":"
12027 fi
12028 rm -f messages.po
12029 fi
252b5132 12030
d7040cdb 12031 ac_config_commands="$ac_config_commands default-1"
252b5132 12032
13b2be9c 12033
252b5132 12034
d7040cdb
SE
12035echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12036echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12037 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12038if test "${enable_maintainer_mode+set}" = set; then
12039 enableval="$enable_maintainer_mode"
12040 USE_MAINTAINER_MODE=$enableval
c8615825 12041else
d7040cdb
SE
12042 USE_MAINTAINER_MODE=no
12043fi;
12044 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12045echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13b2be9c 12046
d7040cdb
SE
12047
12048if test $USE_MAINTAINER_MODE = yes; then
12049 MAINTAINER_MODE_TRUE=
12050 MAINTAINER_MODE_FALSE='#'
12051else
12052 MAINTAINER_MODE_TRUE='#'
12053 MAINTAINER_MODE_FALSE=
20e95c23 12054fi
9b2b7d69 12055
d7040cdb
SE
12056 MAINT=$MAINTAINER_MODE_TRUE
12057
12058
12059
12060
12061if false; then
12062 GENINSRC_NEVER_TRUE=
12063 GENINSRC_NEVER_FALSE='#'
12064else
12065 GENINSRC_NEVER_TRUE='#'
12066 GENINSRC_NEVER_FALSE=
20e95c23 12067fi
9b2b7d69
MM
12068
12069
12070
12071
12072
13b2be9c
DJ
12073
12074
12075
12076
12077
12078
12079
40fb9820
L
12080
12081for 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 12082do
13b2be9c
DJ
12083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12084if eval "test \"\${$as_ac_Header+set}\" = set"; then
12085 echo "$as_me:$LINENO: checking for $ac_header" >&5
12086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12087if eval "test \"\${$as_ac_Header+set}\" = set"; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12089fi
12090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12092else
12093 # Is the header compilable?
12094echo "$as_me:$LINENO: checking $ac_header usability" >&5
12095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12096cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12097/* confdefs.h. */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h. */
12102$ac_includes_default
12103#include <$ac_header>
12104_ACEOF
12105rm -f conftest.$ac_objext
12106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12107 (eval $ac_compile) 2>conftest.er1
13b2be9c 12108 ac_status=$?
ab509236
L
12109 grep -v '^ *+' conftest.er1 >conftest.err
12110 rm -f conftest.er1
12111 cat conftest.err >&5
13b2be9c
DJ
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
1ad12f97
NC
12114 { ac_try='test -z "$ac_c_werror_flag"
12115 || test ! -s conftest.err'
ab509236
L
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } &&
12121 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 ac_header_compiler=yes
12128else
12129 echo "$as_me: failed program was:" >&5
12130sed 's/^/| /' conftest.$ac_ext >&5
12131
12132ac_header_compiler=no
12133fi
ab509236 12134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
12135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12136echo "${ECHO_T}$ac_header_compiler" >&6
12137
12138# Is the header present?
12139echo "$as_me:$LINENO: checking $ac_header presence" >&5
12140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12141cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12142/* confdefs.h. */
12143_ACEOF
12144cat confdefs.h >>conftest.$ac_ext
12145cat >>conftest.$ac_ext <<_ACEOF
12146/* end confdefs.h. */
12147#include <$ac_header>
12148_ACEOF
12149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12151 ac_status=$?
12152 grep -v '^ *+' conftest.er1 >conftest.err
12153 rm -f conftest.er1
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } >/dev/null; then
12157 if test -s conftest.err; then
12158 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 12159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
12160 else
12161 ac_cpp_err=
12162 fi
9b2b7d69 12163else
13b2be9c
DJ
12164 ac_cpp_err=yes
12165fi
12166if test -z "$ac_cpp_err"; then
12167 ac_header_preproc=yes
12168else
12169 echo "$as_me: failed program was:" >&5
12170sed 's/^/| /' conftest.$ac_ext >&5
12171
12172 ac_header_preproc=no
12173fi
12174rm -f conftest.err conftest.$ac_ext
12175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12176echo "${ECHO_T}$ac_header_preproc" >&6
12177
12178# So? What about this header?
ab509236
L
12179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12180 yes:no: )
13b2be9c
DJ
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12185 ac_header_preproc=yes
13b2be9c 12186 ;;
ab509236 12187 no:yes:* )
13b2be9c
DJ
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
12200 (
12201 cat <<\_ASBOX
ab509236
L
12202## ------------------------------------------ ##
12203## Report this to the AC_PACKAGE_NAME lists. ##
12204## ------------------------------------------ ##
13b2be9c
DJ
12205_ASBOX
12206 ) |
12207 sed "s/^/$as_me: WARNING: /" >&2
12208 ;;
12209esac
12210echo "$as_me:$LINENO: checking for $ac_header" >&5
12211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12212if eval "test \"\${$as_ac_Header+set}\" = set"; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214else
ab509236 12215 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 12216fi
13b2be9c
DJ
12217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12219
252b5132 12220fi
13b2be9c
DJ
12221if test `eval echo '${'$as_ac_Header'}'` = yes; then
12222 cat >>confdefs.h <<_ACEOF
12223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12224_ACEOF
12225
252b5132 12226fi
13b2be9c 12227
252b5132
RH
12228done
12229
d6d788bd 12230
252b5132
RH
12231# Put this here so that autoconf's "cross-compiling" message doesn't confuse
12232# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
12233echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12234echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
12235if test "${host}" = "${target}"; then
12236 cross_gas=no
12237else
12238 cross_gas=yes
13b2be9c
DJ
12239
12240cat >>confdefs.h <<\_ACEOF
252b5132 12241#define CROSS_COMPILE 1
13b2be9c 12242_ACEOF
252b5132
RH
12243
12244fi
13b2be9c
DJ
12245echo "$as_me:$LINENO: result: $cross_gas" >&5
12246echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
12247
12248# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12249# for constant arguments. Useless!
13b2be9c
DJ
12250echo "$as_me:$LINENO: checking for working alloca.h" >&5
12251echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12252if test "${ac_cv_working_alloca_h+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12254else
12255 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12256/* confdefs.h. */
12257_ACEOF
12258cat confdefs.h >>conftest.$ac_ext
12259cat >>conftest.$ac_ext <<_ACEOF
12260/* end confdefs.h. */
252b5132 12261#include <alloca.h>
13b2be9c
DJ
12262int
12263main ()
12264{
12265char *p = (char *) alloca (2 * sizeof (int));
12266 ;
12267 return 0;
12268}
12269_ACEOF
12270rm -f conftest.$ac_objext conftest$ac_exeext
12271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12272 (eval $ac_link) 2>conftest.er1
13b2be9c 12273 ac_status=$?
ab509236
L
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
13b2be9c
DJ
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
1ad12f97
NC
12279 { ac_try='test -z "$ac_c_werror_flag"
12280 || test ! -s conftest.err'
ab509236
L
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_cv_working_alloca_h=yes
12293else
12294 echo "$as_me: failed program was:" >&5
12295sed 's/^/| /' conftest.$ac_ext >&5
12296
12297ac_cv_working_alloca_h=no
12298fi
ab509236
L
12299rm -f conftest.err conftest.$ac_objext \
12300 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12301fi
12302echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12303echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12304if test $ac_cv_working_alloca_h = yes; then
12305
12306cat >>confdefs.h <<\_ACEOF
252b5132 12307#define HAVE_ALLOCA_H 1
13b2be9c 12308_ACEOF
252b5132
RH
12309
12310fi
12311
13b2be9c
DJ
12312echo "$as_me:$LINENO: checking for alloca" >&5
12313echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12314if test "${ac_cv_func_alloca_works+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12316else
13b2be9c 12317 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12318/* confdefs.h. */
12319_ACEOF
12320cat confdefs.h >>conftest.$ac_ext
12321cat >>conftest.$ac_ext <<_ACEOF
12322/* end confdefs.h. */
252b5132
RH
12323#ifdef __GNUC__
12324# define alloca __builtin_alloca
12325#else
12326# ifdef _MSC_VER
12327# include <malloc.h>
12328# define alloca _alloca
12329# else
12330# if HAVE_ALLOCA_H
12331# include <alloca.h>
12332# else
12333# ifdef _AIX
12334 #pragma alloca
12335# else
12336# ifndef alloca /* predefined by HP cc +Olibcalls */
12337char *alloca ();
12338# endif
12339# endif
12340# endif
12341# endif
12342#endif
12343
13b2be9c
DJ
12344int
12345main ()
12346{
12347char *p = (char *) alloca (1);
12348 ;
12349 return 0;
12350}
12351_ACEOF
12352rm -f conftest.$ac_objext conftest$ac_exeext
12353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12354 (eval $ac_link) 2>conftest.er1
13b2be9c 12355 ac_status=$?
ab509236
L
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
13b2be9c
DJ
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
1ad12f97
NC
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
ab509236
L
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
252b5132
RH
12374 ac_cv_func_alloca_works=yes
12375else
13b2be9c
DJ
12376 echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
12379ac_cv_func_alloca_works=no
252b5132 12380fi
ab509236
L
12381rm -f conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
252b5132 12383fi
13b2be9c
DJ
12384echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12385echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 12386
252b5132 12387if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 12388
13b2be9c
DJ
12389cat >>confdefs.h <<\_ACEOF
12390#define HAVE_ALLOCA 1
12391_ACEOF
9b2b7d69 12392
13b2be9c 12393else
c8615825 12394 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
12395# that cause trouble. Some versions do not even contain alloca or
12396# contain a buggy version. If you still want to use their alloca,
12397# use ar to extract alloca.o from them instead of compiling alloca.c.
12398
12399ALLOCA=alloca.$ac_objext
12400
12401cat >>confdefs.h <<\_ACEOF
252b5132 12402#define C_ALLOCA 1
13b2be9c 12403_ACEOF
252b5132 12404
d6d788bd 12405
13b2be9c
DJ
12406echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12407echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12408if test "${ac_cv_os_cray+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12410else
13b2be9c 12411 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12412/* confdefs.h. */
12413_ACEOF
12414cat confdefs.h >>conftest.$ac_ext
12415cat >>conftest.$ac_ext <<_ACEOF
12416/* end confdefs.h. */
252b5132
RH
12417#if defined(CRAY) && ! defined(CRAY2)
12418webecray
12419#else
12420wenotbecray
12421#endif
12422
13b2be9c 12423_ACEOF
252b5132 12424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 12425 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
12426 ac_cv_os_cray=yes
12427else
252b5132
RH
12428 ac_cv_os_cray=no
12429fi
12430rm -f conftest*
12431
12432fi
13b2be9c
DJ
12433echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12434echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 12435if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
12436 for ac_func in _getb67 GETB67 getb67; do
12437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12438echo "$as_me:$LINENO: checking for $ac_func" >&5
12439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12440if eval "test \"\${$as_ac_var+set}\" = set"; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442else
12443 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12444/* confdefs.h. */
12445_ACEOF
12446cat confdefs.h >>conftest.$ac_ext
12447cat >>conftest.$ac_ext <<_ACEOF
12448/* end confdefs.h. */
ab509236
L
12449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12451#define $ac_func innocuous_$ac_func
12452
252b5132 12453/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12454 which can conflict with char $ac_func (); below.
12455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12456 <limits.h> exists even on freestanding compilers. */
ab509236 12457
13b2be9c
DJ
12458#ifdef __STDC__
12459# include <limits.h>
12460#else
12461# include <assert.h>
12462#endif
ab509236
L
12463
12464#undef $ac_func
12465
252b5132 12466/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12467#ifdef __cplusplus
12468extern "C"
12469{
12470#endif
252b5132 12471/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12472 builtin and then its argument prototype would still apply. */
12473char $ac_func ();
252b5132
RH
12474/* The GNU C library defines this for functions which it implements
12475 to always fail with ENOSYS. Some functions are actually named
12476 something starting with __ and the normal name is an alias. */
12477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12478choke me
12479#else
13b2be9c
DJ
12480char (*f) () = $ac_func;
12481#endif
12482#ifdef __cplusplus
12483}
252b5132
RH
12484#endif
12485
13b2be9c
DJ
12486int
12487main ()
12488{
12489return f != $ac_func;
12490 ;
12491 return 0;
12492}
12493_ACEOF
12494rm -f conftest.$ac_objext conftest$ac_exeext
12495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12496 (eval $ac_link) 2>conftest.er1
13b2be9c 12497 ac_status=$?
ab509236
L
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
13b2be9c
DJ
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
1ad12f97
NC
12503 { ac_try='test -z "$ac_c_werror_flag"
12504 || test ! -s conftest.err'
ab509236
L
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 eval "$as_ac_var=yes"
12517else
12518 echo "$as_me: failed program was:" >&5
12519sed 's/^/| /' conftest.$ac_ext >&5
12520
12521eval "$as_ac_var=no"
12522fi
ab509236
L
12523rm -f conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12525fi
12526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12527echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12528if test `eval echo '${'$as_ac_var'}'` = yes; then
12529
12530cat >>confdefs.h <<_ACEOF
252b5132 12531#define CRAY_STACKSEG_END $ac_func
13b2be9c 12532_ACEOF
252b5132 12533
13b2be9c 12534 break
252b5132
RH
12535fi
12536
13b2be9c 12537 done
252b5132
RH
12538fi
12539
13b2be9c
DJ
12540echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12541echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12542if test "${ac_cv_c_stack_direction+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12544else
12545 if test "$cross_compiling" = yes; then
12546 ac_cv_c_stack_direction=0
12547else
13b2be9c 12548 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
12554int
252b5132
RH
12555find_stack_direction ()
12556{
12557 static char *addr = 0;
12558 auto char dummy;
12559 if (addr == 0)
12560 {
12561 addr = &dummy;
12562 return find_stack_direction ();
12563 }
12564 else
12565 return (&dummy > addr) ? 1 : -1;
12566}
13b2be9c
DJ
12567
12568int
252b5132
RH
12569main ()
12570{
13b2be9c 12571 exit (find_stack_direction () < 0);
252b5132 12572}
13b2be9c
DJ
12573_ACEOF
12574rm -f conftest$ac_exeext
12575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12576 (eval $ac_link) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
252b5132
RH
12585 ac_cv_c_stack_direction=1
12586else
13b2be9c
DJ
12587 echo "$as_me: program exited with status $ac_status" >&5
12588echo "$as_me: failed program was:" >&5
12589sed 's/^/| /' conftest.$ac_ext >&5
12590
12591( exit $ac_status )
12592ac_cv_c_stack_direction=-1
252b5132 12593fi
ab509236 12594rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 12595fi
252b5132 12596fi
13b2be9c
DJ
12597echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12598echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 12599
13b2be9c 12600cat >>confdefs.h <<_ACEOF
252b5132 12601#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
12602_ACEOF
12603
252b5132
RH
12604
12605fi
12606
13b2be9c
DJ
12607echo "$as_me:$LINENO: checking for inline" >&5
12608echo $ECHO_N "checking for inline... $ECHO_C" >&6
12609if test "${ac_cv_c_inline+set}" = set; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12611else
12612 ac_cv_c_inline=no
12613for ac_kw in inline __inline__ __inline; do
13b2be9c 12614 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12615/* confdefs.h. */
12616_ACEOF
12617cat confdefs.h >>conftest.$ac_ext
12618cat >>conftest.$ac_ext <<_ACEOF
12619/* end confdefs.h. */
12620#ifndef __cplusplus
12621typedef int foo_t;
12622static $ac_kw foo_t static_foo () {return 0; }
12623$ac_kw foo_t foo () {return 0; }
12624#endif
252b5132 12625
13b2be9c
DJ
12626_ACEOF
12627rm -f conftest.$ac_objext
12628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12629 (eval $ac_compile) 2>conftest.er1
13b2be9c 12630 ac_status=$?
ab509236
L
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
13b2be9c
DJ
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
1ad12f97
NC
12636 { ac_try='test -z "$ac_c_werror_flag"
12637 || test ! -s conftest.err'
ab509236
L
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; } &&
12643 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
252b5132
RH
12649 ac_cv_c_inline=$ac_kw; break
12650else
13b2be9c
DJ
12651 echo "$as_me: failed program was:" >&5
12652sed 's/^/| /' conftest.$ac_ext >&5
12653
252b5132 12654fi
ab509236 12655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12656done
12657
12658fi
13b2be9c
DJ
12659echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12660echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
12661
12662
13b2be9c 12663case $ac_cv_c_inline in
252b5132 12664 inline | yes) ;;
ab509236
L
12665 *)
12666 case $ac_cv_c_inline in
12667 no) ac_val=;;
12668 *) ac_val=$ac_cv_c_inline;;
12669 esac
12670 cat >>confdefs.h <<_ACEOF
12671#ifndef __cplusplus
12672#define inline $ac_val
12673#endif
13b2be9c 12674_ACEOF
ab509236 12675 ;;
252b5132
RH
12676esac
12677
6840198f 12678
d6d788bd 12679# VMS doesn't have unlink.
13b2be9c
DJ
12680
12681
252b5132
RH
12682for ac_func in unlink remove
12683do
13b2be9c
DJ
12684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12685echo "$as_me:$LINENO: checking for $ac_func" >&5
12686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12687if eval "test \"\${$as_ac_var+set}\" = set"; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12689else
12690 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12691/* confdefs.h. */
12692_ACEOF
12693cat confdefs.h >>conftest.$ac_ext
12694cat >>conftest.$ac_ext <<_ACEOF
12695/* end confdefs.h. */
ab509236
L
12696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12698#define $ac_func innocuous_$ac_func
12699
252b5132 12700/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12701 which can conflict with char $ac_func (); below.
12702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12703 <limits.h> exists even on freestanding compilers. */
ab509236 12704
13b2be9c
DJ
12705#ifdef __STDC__
12706# include <limits.h>
12707#else
12708# include <assert.h>
12709#endif
ab509236
L
12710
12711#undef $ac_func
12712
252b5132 12713/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12714#ifdef __cplusplus
12715extern "C"
12716{
12717#endif
252b5132 12718/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12719 builtin and then its argument prototype would still apply. */
12720char $ac_func ();
252b5132
RH
12721/* The GNU C library defines this for functions which it implements
12722 to always fail with ENOSYS. Some functions are actually named
12723 something starting with __ and the normal name is an alias. */
12724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12725choke me
12726#else
13b2be9c
DJ
12727char (*f) () = $ac_func;
12728#endif
12729#ifdef __cplusplus
12730}
252b5132
RH
12731#endif
12732
13b2be9c
DJ
12733int
12734main ()
12735{
12736return f != $ac_func;
12737 ;
12738 return 0;
12739}
12740_ACEOF
12741rm -f conftest.$ac_objext conftest$ac_exeext
12742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12743 (eval $ac_link) 2>conftest.er1
13b2be9c 12744 ac_status=$?
ab509236
L
12745 grep -v '^ *+' conftest.er1 >conftest.err
12746 rm -f conftest.er1
12747 cat conftest.err >&5
13b2be9c
DJ
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
1ad12f97
NC
12750 { ac_try='test -z "$ac_c_werror_flag"
12751 || test ! -s conftest.err'
ab509236
L
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 eval "$as_ac_var=yes"
12764else
12765 echo "$as_me: failed program was:" >&5
12766sed 's/^/| /' conftest.$ac_ext >&5
12767
12768eval "$as_ac_var=no"
12769fi
ab509236
L
12770rm -f conftest.err conftest.$ac_objext \
12771 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12772fi
12773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12775if test `eval echo '${'$as_ac_var'}'` = yes; then
12776 cat >>confdefs.h <<_ACEOF
12777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12778_ACEOF
252b5132 12779 break
252b5132
RH
12780fi
12781done
12782
6840198f 12783
d6d788bd 12784# Some systems don't have sbrk().
13b2be9c 12785
252b5132
RH
12786for ac_func in sbrk
12787do
13b2be9c
DJ
12788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12789echo "$as_me:$LINENO: checking for $ac_func" >&5
12790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12791if eval "test \"\${$as_ac_var+set}\" = set"; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12793else
12794 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12795/* confdefs.h. */
12796_ACEOF
12797cat confdefs.h >>conftest.$ac_ext
12798cat >>conftest.$ac_ext <<_ACEOF
12799/* end confdefs.h. */
ab509236
L
12800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12802#define $ac_func innocuous_$ac_func
12803
252b5132 12804/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12805 which can conflict with char $ac_func (); below.
12806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12807 <limits.h> exists even on freestanding compilers. */
ab509236 12808
13b2be9c
DJ
12809#ifdef __STDC__
12810# include <limits.h>
12811#else
12812# include <assert.h>
12813#endif
ab509236
L
12814
12815#undef $ac_func
12816
252b5132 12817/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12818#ifdef __cplusplus
12819extern "C"
12820{
12821#endif
252b5132 12822/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12823 builtin and then its argument prototype would still apply. */
12824char $ac_func ();
252b5132
RH
12825/* The GNU C library defines this for functions which it implements
12826 to always fail with ENOSYS. Some functions are actually named
12827 something starting with __ and the normal name is an alias. */
12828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12829choke me
12830#else
13b2be9c
DJ
12831char (*f) () = $ac_func;
12832#endif
12833#ifdef __cplusplus
12834}
252b5132
RH
12835#endif
12836
13b2be9c
DJ
12837int
12838main ()
12839{
12840return f != $ac_func;
12841 ;
12842 return 0;
12843}
12844_ACEOF
12845rm -f conftest.$ac_objext conftest$ac_exeext
12846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12847 (eval $ac_link) 2>conftest.er1
13b2be9c 12848 ac_status=$?
ab509236
L
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
13b2be9c
DJ
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
1ad12f97
NC
12854 { ac_try='test -z "$ac_c_werror_flag"
12855 || test ! -s conftest.err'
ab509236
L
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; } &&
12861 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 eval "$as_ac_var=yes"
12868else
12869 echo "$as_me: failed program was:" >&5
12870sed 's/^/| /' conftest.$ac_ext >&5
12871
12872eval "$as_ac_var=no"
12873fi
ab509236
L
12874rm -f conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12876fi
12877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12879if test `eval echo '${'$as_ac_var'}'` = yes; then
12880 cat >>confdefs.h <<_ACEOF
12881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12882_ACEOF
252b5132 12883
252b5132
RH
12884fi
12885done
12886
d6d788bd 12887
39bec121
TW
12888# do we need the math library?
12889case "${need_libm}" in
13b2be9c 12890yes)
39bec121 12891 LIBM=
f9c19112 12892case $host in
d70c5fc7 12893*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
d7040cdb 12894 # These system don't have libm, or don't need it
39bec121
TW
12895 ;;
12896*-ncr-sysv4.3*)
13b2be9c
DJ
12897 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12898echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
12899if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 12901else
13b2be9c 12902 ac_check_lib_save_LIBS=$LIBS
39bec121 12903LIBS="-lmw $LIBS"
13b2be9c 12904cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h. */
12910
39bec121 12911/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12912#ifdef __cplusplus
12913extern "C"
12914#endif
39bec121 12915/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12916 builtin and then its argument prototype would still apply. */
12917char _mwvalidcheckl ();
12918int
12919main ()
12920{
12921_mwvalidcheckl ();
12922 ;
12923 return 0;
12924}
12925_ACEOF
12926rm -f conftest.$ac_objext conftest$ac_exeext
12927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12928 (eval $ac_link) 2>conftest.er1
13b2be9c 12929 ac_status=$?
ab509236
L
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
13b2be9c
DJ
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
1ad12f97
NC
12935 { ac_try='test -z "$ac_c_werror_flag"
12936 || test ! -s conftest.err'
ab509236
L
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; } &&
12942 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948 ac_cv_lib_mw__mwvalidcheckl=yes
12949else
12950 echo "$as_me: failed program was:" >&5
12951sed 's/^/| /' conftest.$ac_ext >&5
12952
12953ac_cv_lib_mw__mwvalidcheckl=no
12954fi
ab509236
L
12955rm -f conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12957LIBS=$ac_check_lib_save_LIBS
12958fi
12959echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12960echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
12961if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 12962 LIBM="-lmw"
39bec121
TW
12963fi
12964
d7040cdb
SE
12965 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12966echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12967if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 12968 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 12969else
13b2be9c 12970 ac_check_lib_save_LIBS=$LIBS
39bec121 12971LIBS="-lm $LIBS"
13b2be9c 12972cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12973/* confdefs.h. */
12974_ACEOF
12975cat confdefs.h >>conftest.$ac_ext
12976cat >>conftest.$ac_ext <<_ACEOF
12977/* end confdefs.h. */
39bec121 12978
d7040cdb
SE
12979/* Override any gcc2 internal prototype to avoid an error. */
12980#ifdef __cplusplus
12981extern "C"
12982#endif
12983/* We use char because int might match the return type of a gcc2
12984 builtin and then its argument prototype would still apply. */
12985char cos ();
13b2be9c
DJ
12986int
12987main ()
12988{
d7040cdb 12989cos ();
13b2be9c
DJ
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994rm -f conftest.$ac_objext conftest$ac_exeext
12995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12996 (eval $ac_link) 2>conftest.er1
13b2be9c 12997 ac_status=$?
ab509236
L
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13b2be9c
DJ
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } &&
1ad12f97
NC
13003 { ac_try='test -z "$ac_c_werror_flag"
13004 || test ! -s conftest.err'
ab509236
L
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
d7040cdb 13016 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13017else
13018 echo "$as_me: failed program was:" >&5
13019sed 's/^/| /' conftest.$ac_ext >&5
13020
d7040cdb 13021ac_cv_lib_m_cos=no
13b2be9c 13022fi
ab509236
L
13023rm -f conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13025LIBS=$ac_check_lib_save_LIBS
13026fi
d7040cdb
SE
13027echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13028echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13029if test $ac_cv_lib_m_cos = yes; then
39bec121 13030 LIBM="$LIBM -lm"
39bec121
TW
13031fi
13032
13033 ;;
13034*)
d7040cdb
SE
13035 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13036echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13037if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 13038 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 13039else
13b2be9c 13040 ac_check_lib_save_LIBS=$LIBS
39bec121 13041LIBS="-lm $LIBS"
13b2be9c 13042cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13043/* confdefs.h. */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h. */
39bec121 13048
d7040cdb
SE
13049/* Override any gcc2 internal prototype to avoid an error. */
13050#ifdef __cplusplus
13051extern "C"
13052#endif
13053/* We use char because int might match the return type of a gcc2
13054 builtin and then its argument prototype would still apply. */
13055char cos ();
13b2be9c
DJ
13056int
13057main ()
13058{
d7040cdb 13059cos ();
13b2be9c
DJ
13060 ;
13061 return 0;
13062}
13063_ACEOF
13064rm -f conftest.$ac_objext conftest$ac_exeext
13065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13066 (eval $ac_link) 2>conftest.er1
13b2be9c 13067 ac_status=$?
ab509236
L
13068 grep -v '^ *+' conftest.er1 >conftest.err
13069 rm -f conftest.er1
13070 cat conftest.err >&5
13b2be9c
DJ
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
1ad12f97
NC
13073 { ac_try='test -z "$ac_c_werror_flag"
13074 || test ! -s conftest.err'
ab509236
L
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } &&
13080 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
d7040cdb 13086 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13087else
13088 echo "$as_me: failed program was:" >&5
13089sed 's/^/| /' conftest.$ac_ext >&5
13090
d7040cdb 13091ac_cv_lib_m_cos=no
13b2be9c 13092fi
ab509236
L
13093rm -f conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13095LIBS=$ac_check_lib_save_LIBS
13096fi
d7040cdb
SE
13097echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13098echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13099if test $ac_cv_lib_m_cos = yes; then
39bec121 13100 LIBM="-lm"
39bec121
TW
13101fi
13102
13103 ;;
13104esac
13105
13b2be9c 13106
d7040cdb 13107
39bec121
TW
13108 ;;
13109esac
13110
252b5132
RH
13111# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13112# enough, but on some of those systems, the assert macro relies on requoting
13113# working properly!
13b2be9c
DJ
13114echo "$as_me:$LINENO: checking for working assert macro" >&5
13115echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13116if test "${gas_cv_assert_ok+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118else
13119 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13120/* confdefs.h. */
13121_ACEOF
13122cat confdefs.h >>conftest.$ac_ext
13123cat >>conftest.$ac_ext <<_ACEOF
13124/* end confdefs.h. */
252b5132
RH
13125#include <assert.h>
13126#include <stdio.h>
13b2be9c
DJ
13127int
13128main ()
13129{
252b5132
RH
13130
13131/* check for requoting problems */
13132static int a, b, c, d;
13133static char *s;
13134assert (!strcmp(s, "foo bar baz quux"));
13135/* check for newline handling */
13136assert (a == b
13137 || c == d);
13138
13b2be9c
DJ
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext conftest$ac_exeext
13144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13145 (eval $ac_link) 2>conftest.er1
13b2be9c 13146 ac_status=$?
ab509236
L
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13b2be9c
DJ
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
1ad12f97
NC
13152 { ac_try='test -z "$ac_c_werror_flag"
13153 || test ! -s conftest.err'
ab509236
L
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; } &&
13159 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
252b5132
RH
13165 gas_cv_assert_ok=yes
13166else
13b2be9c
DJ
13167 echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170gas_cv_assert_ok=no
252b5132 13171fi
ab509236
L
13172rm -f conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
252b5132 13174fi
13b2be9c
DJ
13175echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13176echo "${ECHO_T}$gas_cv_assert_ok" >&6
13177test $gas_cv_assert_ok = yes ||
13178cat >>confdefs.h <<\_ACEOF
252b5132 13179#define BROKEN_ASSERT 1
13b2be9c 13180_ACEOF
252b5132 13181
d6d788bd
L
13182
13183
252b5132
RH
13184# On some systems, the system header files may not declare malloc, realloc,
13185# and free. There are places where gas needs these functions to have been
13186# declared -- such as when taking their addresses.
13187gas_test_headers="
13188#ifdef HAVE_MEMORY_H
13189#include <memory.h>
13190#endif
13191#ifdef HAVE_STRING_H
13192#include <string.h>
13193#else
13194#ifdef HAVE_STRINGS_H
13195#include <strings.h>
13196#endif
13197#endif
13198#ifdef HAVE_STDLIB_H
13199#include <stdlib.h>
13200#endif
13201#ifdef HAVE_UNISTD_H
13202#include <unistd.h>
13203#endif
13204"
13205
e8a38df5
AL
13206# Does errno.h declare errno, or do we have to add a separate declaration
13207# for it?
13208
13209echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13210echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13211if test "${gas_cv_decl_needed_errno+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13213else
13214 cat >conftest.$ac_ext <<_ACEOF
13215/* confdefs.h. */
13216_ACEOF
13217cat confdefs.h >>conftest.$ac_ext
13218cat >>conftest.$ac_ext <<_ACEOF
13219/* end confdefs.h. */
13220
13221#ifdef HAVE_ERRNO_H
13222#include <errno.h>
13223#endif
13224
13225int
13226main ()
13227{
13228
13229typedef int f;
13230f x;
13231x = (f) errno;
13232
13233 ;
13234 return 0;
13235}
13236_ACEOF
13237rm -f conftest.$ac_objext conftest$ac_exeext
13238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239 (eval $ac_link) 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag"
13247 || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest$ac_exeext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 gas_cv_decl_needed_errno=no
13260else
13261 echo "$as_me: failed program was:" >&5
13262sed 's/^/| /' conftest.$ac_ext >&5
13263
13264gas_cv_decl_needed_errno=yes
13265fi
13266rm -f conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268fi
13269echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13270echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13271if test $gas_cv_decl_needed_errno = yes; then
13272
13273cat >>confdefs.h <<\_ACEOF
13274#define NEED_DECLARATION_ERRNO 1
13275_ACEOF
13276
13277fi
13278
13279
56f36663
NC
13280echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13281echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13282if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13284else
13285 cat >conftest.$ac_ext <<_ACEOF
13286/* confdefs.h. */
13287_ACEOF
13288cat confdefs.h >>conftest.$ac_ext
13289cat >>conftest.$ac_ext <<_ACEOF
13290/* end confdefs.h. */
13291#include <unistd.h>
13292int
13293main ()
13294{
13295extern int getopt (int, char *const*, const char *);
13296 ;
13297 return 0;
13298}
13299_ACEOF
13300rm -f conftest.$ac_objext
13301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302 (eval $ac_compile) 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -z "$ac_c_werror_flag"
13310 || test ! -s conftest.err'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; } &&
13316 { ac_try='test -s conftest.$ac_objext'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 gas_cv_decl_getopt_unistd_h=yes
13323else
13324 echo "$as_me: failed program was:" >&5
13325sed 's/^/| /' conftest.$ac_ext >&5
13326
13327gas_cv_decl_getopt_unistd_h=no
13328fi
13329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13330fi
13331
13332echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13333echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13334if test $gas_cv_decl_getopt_unistd_h = yes; then
13335
13336cat >>confdefs.h <<\_ACEOF
13337#define HAVE_DECL_GETOPT 1
13338_ACEOF
13339
13340fi
13341
e8a38df5
AL
13342
13343echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13344echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13345if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347else
13348 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
252b5132 13354$gas_test_headers
13b2be9c
DJ
13355int
13356main ()
13357{
252b5132 13358
e8a38df5 13359typedef char **f;
252b5132 13360f x;
e8a38df5 13361x = (f) environ;
252b5132 13362
13b2be9c
DJ
13363 ;
13364 return 0;
13365}
13366_ACEOF
13367rm -f conftest.$ac_objext conftest$ac_exeext
13368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13369 (eval $ac_link) 2>conftest.er1
13b2be9c 13370 ac_status=$?
ab509236
L
13371 grep -v '^ *+' conftest.er1 >conftest.err
13372 rm -f conftest.er1
13373 cat conftest.err >&5
13b2be9c
DJ
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } &&
1ad12f97
NC
13376 { ac_try='test -z "$ac_c_werror_flag"
13377 || test ! -s conftest.err'
ab509236
L
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; } &&
13383 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
e8a38df5 13389 gas_cv_decl_needed_environ=no
252b5132 13390else
13b2be9c
DJ
13391 echo "$as_me: failed program was:" >&5
13392sed 's/^/| /' conftest.$ac_ext >&5
13393
e8a38df5 13394gas_cv_decl_needed_environ=yes
252b5132 13395fi
ab509236
L
13396rm -f conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
252b5132 13398fi
e8a38df5
AL
13399echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13400echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13401if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
13402
13403cat >>confdefs.h <<\_ACEOF
e8a38df5 13404#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
13405_ACEOF
13406
13407fi
13408
13409
e8a38df5
AL
13410echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13411echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13412if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13414else
13415 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13416/* confdefs.h. */
13417_ACEOF
13418cat confdefs.h >>conftest.$ac_ext
13419cat >>conftest.$ac_ext <<_ACEOF
13420/* end confdefs.h. */
13421$gas_test_headers
13422int
13423main ()
13424{
13425
e8a38df5 13426typedef int (*f)(int);
13b2be9c 13427f x;
e8a38df5 13428x = (f) ffs;
13b2be9c
DJ
13429
13430 ;
13431 return 0;
13432}
13433_ACEOF
13434rm -f conftest.$ac_objext conftest$ac_exeext
13435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13436 (eval $ac_link) 2>conftest.er1
13b2be9c 13437 ac_status=$?
ab509236
L
13438 grep -v '^ *+' conftest.er1 >conftest.err
13439 rm -f conftest.er1
13440 cat conftest.err >&5
13b2be9c
DJ
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
1ad12f97
NC
13443 { ac_try='test -z "$ac_c_werror_flag"
13444 || test ! -s conftest.err'
ab509236
L
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
e8a38df5 13456 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
13457else
13458 echo "$as_me: failed program was:" >&5
13459sed 's/^/| /' conftest.$ac_ext >&5
13460
e8a38df5 13461gas_cv_decl_needed_ffs=yes
13b2be9c 13462fi
ab509236
L
13463rm -f conftest.err conftest.$ac_objext \
13464 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13465fi
e8a38df5
AL
13466echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13467echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13468if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
13469
13470cat >>confdefs.h <<\_ACEOF
e8a38df5 13471#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
13472_ACEOF
13473
13474fi
13475
13476
13477echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13478echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13479if test "${gas_cv_decl_needed_free+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481else
13482 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13483/* confdefs.h. */
13484_ACEOF
13485cat confdefs.h >>conftest.$ac_ext
13486cat >>conftest.$ac_ext <<_ACEOF
13487/* end confdefs.h. */
13488$gas_test_headers
13489int
13490main ()
13491{
13492
13493typedef void (*f)();
13494f x;
13495x = (f) free;
13496
13497 ;
13498 return 0;
13499}
13500_ACEOF
13501rm -f conftest.$ac_objext conftest$ac_exeext
13502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13503 (eval $ac_link) 2>conftest.er1
13b2be9c 13504 ac_status=$?
ab509236
L
13505 grep -v '^ *+' conftest.er1 >conftest.err
13506 rm -f conftest.er1
13507 cat conftest.err >&5
13b2be9c
DJ
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
1ad12f97
NC
13510 { ac_try='test -z "$ac_c_werror_flag"
13511 || test ! -s conftest.err'
ab509236
L
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 gas_cv_decl_needed_free=no
13524else
13525 echo "$as_me: failed program was:" >&5
13526sed 's/^/| /' conftest.$ac_ext >&5
13527
13528gas_cv_decl_needed_free=yes
13529fi
ab509236
L
13530rm -f conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13532fi
13533echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13534echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13535if test $gas_cv_decl_needed_free = yes; then
13536
13537cat >>confdefs.h <<\_ACEOF
13538#define NEED_DECLARATION_FREE 1
13539_ACEOF
13540
13541fi
13542
13543
e8a38df5
AL
13544echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13545echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13546if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13548else
13549 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13550/* confdefs.h. */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h. */
13555$gas_test_headers
13556int
13557main ()
13558{
13559
13560typedef char *(*f)();
13561f x;
e8a38df5 13562x = (f) malloc;
13b2be9c
DJ
13563
13564 ;
13565 return 0;
13566}
13567_ACEOF
13568rm -f conftest.$ac_objext conftest$ac_exeext
13569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13570 (eval $ac_link) 2>conftest.er1
13b2be9c 13571 ac_status=$?
ab509236
L
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13b2be9c
DJ
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
1ad12f97
NC
13577 { ac_try='test -z "$ac_c_werror_flag"
13578 || test ! -s conftest.err'
ab509236
L
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } &&
13584 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
e8a38df5 13590 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
13591else
13592 echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
13594
e8a38df5 13595gas_cv_decl_needed_malloc=yes
13b2be9c 13596fi
ab509236
L
13597rm -f conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13599fi
e8a38df5
AL
13600echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13601echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13602if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
13603
13604cat >>confdefs.h <<\_ACEOF
e8a38df5 13605#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
13606_ACEOF
13607
13608fi
13609
13610
e8a38df5
AL
13611echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13612echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13613if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615else
13616 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h. */
13622$gas_test_headers
13623int
13624main ()
13625{
13626
e8a38df5 13627typedef char *(*f)();
13b2be9c 13628f x;
e8a38df5 13629x = (f) sbrk;
13b2be9c
DJ
13630
13631 ;
13632 return 0;
13633}
13634_ACEOF
13635rm -f conftest.$ac_objext conftest$ac_exeext
13636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13637 (eval $ac_link) 2>conftest.er1
13b2be9c 13638 ac_status=$?
ab509236
L
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13b2be9c
DJ
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
1ad12f97
NC
13644 { ac_try='test -z "$ac_c_werror_flag"
13645 || test ! -s conftest.err'
ab509236
L
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
e8a38df5 13657 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
13658else
13659 echo "$as_me: failed program was:" >&5
13660sed 's/^/| /' conftest.$ac_ext >&5
13661
e8a38df5 13662gas_cv_decl_needed_sbrk=yes
13b2be9c 13663fi
ab509236
L
13664rm -f conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13666fi
e8a38df5
AL
13667echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13668echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13669if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
13670
13671cat >>confdefs.h <<\_ACEOF
e8a38df5 13672#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
13673_ACEOF
13674
13675fi
13676
13677
e8a38df5
AL
13678echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13679echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13680if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682else
13683 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
e8a38df5 13689$gas_test_headers
13b2be9c
DJ
13690int
13691main ()
13692{
13693
e8a38df5 13694typedef char *(*f)();
13b2be9c 13695f x;
e8a38df5 13696x = (f) strstr;
13b2be9c
DJ
13697
13698 ;
13699 return 0;
13700}
13701_ACEOF
13702rm -f conftest.$ac_objext conftest$ac_exeext
13703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13704 (eval $ac_link) 2>conftest.er1
13b2be9c 13705 ac_status=$?
ab509236
L
13706 grep -v '^ *+' conftest.er1 >conftest.err
13707 rm -f conftest.er1
13708 cat conftest.err >&5
13b2be9c
DJ
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } &&
1ad12f97
NC
13711 { ac_try='test -z "$ac_c_werror_flag"
13712 || test ! -s conftest.err'
ab509236
L
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; } &&
13718 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
e8a38df5 13724 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
13725else
13726 echo "$as_me: failed program was:" >&5
13727sed 's/^/| /' conftest.$ac_ext >&5
13728
e8a38df5 13729gas_cv_decl_needed_strstr=yes
13b2be9c 13730fi
ab509236
L
13731rm -f conftest.err conftest.$ac_objext \
13732 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13733fi
e8a38df5
AL
13734echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
13735echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
13736if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
13737
13738cat >>confdefs.h <<\_ACEOF
e8a38df5 13739#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
13740_ACEOF
13741
13742fi
13743
13744
6d74f28b
EB
13745echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13746echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13747if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749else
13750 cat >conftest.$ac_ext <<_ACEOF
13751/* confdefs.h. */
13752_ACEOF
13753cat confdefs.h >>conftest.$ac_ext
13754cat >>conftest.$ac_ext <<_ACEOF
13755/* end confdefs.h. */
13756$ac_includes_default
13757int
13758main ()
13759{
13760#ifndef vsnprintf
13761 char *p = (char *) vsnprintf;
13762#endif
13763
13764 ;
13765 return 0;
13766}
13767_ACEOF
13768rm -f conftest.$ac_objext
13769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag"
13778 || test ! -s conftest.err'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest.$ac_objext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 ac_cv_have_decl_vsnprintf=yes
13791else
13792 echo "$as_me: failed program was:" >&5
13793sed 's/^/| /' conftest.$ac_ext >&5
13794
13795ac_cv_have_decl_vsnprintf=no
13796fi
13797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13798fi
13799echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13800echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13801if test $ac_cv_have_decl_vsnprintf = yes; then
13802
13803cat >>confdefs.h <<_ACEOF
13804#define HAVE_DECL_VSNPRINTF 1
13805_ACEOF
13806
13807
13808else
13809 cat >>confdefs.h <<_ACEOF
13810#define HAVE_DECL_VSNPRINTF 0
13811_ACEOF
13812
13813
13814fi
13815
13816
13817
13b2be9c 13818
c973bc5c
NC
13819case "${host}" in
13820*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13821
13822cat >>confdefs.h <<\_ACEOF
13823#define USE_BINARY_FOPEN 1
13824_ACEOF
13825 ;;
13826esac
13827
13828
13b2be9c 13829
108a6f8e
CD
13830
13831
13832
13833
13b2be9c
DJ
13834 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13835
13836 ac_config_commands="$ac_config_commands default"
13837
13838
13839cat >confcache <<\_ACEOF
13840# This file is a shell script that caches the results of configure
13841# tests run on this system so they can be shared between configure
13842# scripts and configure runs, see configure's option --config-cache.
13843# It is not useful on other systems. If it contains results you don't
13844# want to keep, you may remove or edit it.
13845#
13846# config.status only pays attention to the cache file if you give it
13847# the --recheck option to rerun configure.
13848#
13849# `ac_cv_env_foo' variables (set or unset) will be overridden when
13850# loading this file, other *unset* `ac_cv_foo' will be assigned the
13851# following values.
13852
13853_ACEOF
13854
13855# The following way of writing the cache mishandles newlines in values,
13856# but we know of no workaround that is simple, portable, and efficient.
13857# So, don't put newlines in cache variables' values.
13858# Ultrix sh set writes to stderr and can't be redirected directly,
13859# and sets the high bit in the cache file unless we assign to the vars.
13860{
13861 (set) 2>&1 |
13862 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13863 *ac_space=\ *)
13864 # `set' does not quote correctly, so add quotes (double-quote
13865 # substitution turns \\\\ into \\, and sed turns \\ into \).
13866 sed -n \
ab509236
L
13867 "s/'/'\\\\''/g;
13868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
13869 ;;
13870 *)
13871 # `set' quotes correctly as required by POSIX, so do not add quotes.
13872 sed -n \
ab509236 13873 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
13874 ;;
13875 esac;
13876} |
13877 sed '
13878 t clear
13879 : clear
13880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13881 t end
13882 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13883 : end' >>confcache
13884if diff $cache_file confcache >/dev/null 2>&1; then :; else
13885 if test -w $cache_file; then
13886 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13887 cat confcache >$cache_file
13888 else
13889 echo "not updating unwritable cache $cache_file"
13890 fi
13891fi
13892rm -f confcache
13893
13894test "x$prefix" = xNONE && prefix=$ac_default_prefix
13895# Let make expand exec_prefix.
13896test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13897
13898# VPATH may cause trouble with some makes, so we remove $(srcdir),
13899# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13900# trailing colons and then remove the whole line if VPATH becomes empty
13901# (actually we leave an empty line to preserve line numbers).
13902if test "x$srcdir" = x.; then
ab509236 13903 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
13904s/:*\$(srcdir):*/:/;
13905s/:*\${srcdir}:*/:/;
13906s/:*@srcdir@:*/:/;
ab509236 13907s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 13908s/:*$//;
ab509236 13909s/^[^=]*=[ ]*$//;
13b2be9c
DJ
13910}'
13911fi
13912
13913DEFS=-DHAVE_CONFIG_H
13914
13915ac_libobjs=
13916ac_ltlibobjs=
13917for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13918 # 1. Remove the extension, and $U if already installed.
13919 ac_i=`echo "$ac_i" |
ab509236 13920 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
13921 # 2. Add them.
13922 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13923 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13924done
13925LIBOBJS=$ac_libobjs
13926
13927LTLIBOBJS=$ac_ltlibobjs
13928
13929
13930if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13931 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13932Usually this means the macro was only invoked conditionally." >&5
13933echo "$as_me: error: conditional \"AMDEP\" was never defined.
13934Usually this means the macro was only invoked conditionally." >&2;}
13935 { (exit 1); exit 1; }; }
13936fi
13937if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13938 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13939Usually this means the macro was only invoked conditionally." >&5
13940echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13941Usually this means the macro was only invoked conditionally." >&2;}
13942 { (exit 1); exit 1; }; }
13943fi
13944if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13945 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13946Usually this means the macro was only invoked conditionally." >&5
13947echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13948Usually this means the macro was only invoked conditionally." >&2;}
13949 { (exit 1); exit 1; }; }
13950fi
d5fbea21
DJ
13951if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13952 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13953Usually this means the macro was only invoked conditionally." >&5
13954echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13955Usually this means the macro was only invoked conditionally." >&2;}
13956 { (exit 1); exit 1; }; }
13957fi
13b2be9c
DJ
13958
13959: ${CONFIG_STATUS=./config.status}
13960ac_clean_files_save=$ac_clean_files
13961ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13962{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13963echo "$as_me: creating $CONFIG_STATUS" >&6;}
13964cat >$CONFIG_STATUS <<_ACEOF
13965#! $SHELL
13966# Generated by $as_me.
13967# Run this file to recreate the current configuration.
13968# Compiler output produced by configure, useful for debugging
13969# configure, is in config.log if it exists.
13970
13971debug=false
13972ac_cs_recheck=false
13973ac_cs_silent=false
13974SHELL=\${CONFIG_SHELL-$SHELL}
13975_ACEOF
13976
13977cat >>$CONFIG_STATUS <<\_ACEOF
13978## --------------------- ##
13979## M4sh Initialization. ##
13980## --------------------- ##
13981
13982# Be Bourne compatible
13983if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13984 emulate sh
13985 NULLCMD=:
13986 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13987 # is contrary to our usage. Disable this feature.
13988 alias -g '${1+"$@"}'='"$@"'
13989elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13990 set -o posix
13991fi
ab509236 13992DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
13993
13994# Support unset when possible.
ab509236 13995if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
13996 as_unset=unset
13997else
13998 as_unset=false
13999fi
14000
14001
14002# Work around bugs in pre-3.0 UWIN ksh.
14003$as_unset ENV MAIL MAILPATH
14004PS1='$ '
14005PS2='> '
14006PS4='+ '
14007
14008# NLS nuisances.
14009for as_var in \
14010 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14011 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14012 LC_TELEPHONE LC_TIME
14013do
ab509236 14014 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
14015 eval $as_var=C; export $as_var
14016 else
14017 $as_unset $as_var
14018 fi
14019done
14020
14021# Required to use basename.
14022if expr a : '\(a\)' >/dev/null 2>&1; then
14023 as_expr=expr
14024else
14025 as_expr=false
14026fi
14027
14028if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14029 as_basename=basename
14030else
14031 as_basename=false
14032fi
14033
14034
14035# Name of the executable.
14036as_me=`$as_basename "$0" ||
14037$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14038 X"$0" : 'X\(//\)$' \| \
14039 X"$0" : 'X\(/\)$' \| \
14040 . : '\(.\)' 2>/dev/null ||
14041echo X/"$0" |
14042 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14043 /^X\/\(\/\/\)$/{ s//\1/; q; }
14044 /^X\/\(\/\).*/{ s//\1/; q; }
14045 s/.*/./; q'`
14046
14047
14048# PATH needs CR, and LINENO needs CR and PATH.
14049# Avoid depending upon Character Ranges.
14050as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14051as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14052as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14053as_cr_digits='0123456789'
14054as_cr_alnum=$as_cr_Letters$as_cr_digits
14055
14056# The user is always right.
14057if test "${PATH_SEPARATOR+set}" != set; then
14058 echo "#! /bin/sh" >conf$$.sh
14059 echo "exit 0" >>conf$$.sh
14060 chmod +x conf$$.sh
14061 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14062 PATH_SEPARATOR=';'
14063 else
14064 PATH_SEPARATOR=:
14065 fi
14066 rm -f conf$$.sh
14067fi
14068
14069
14070 as_lineno_1=$LINENO
14071 as_lineno_2=$LINENO
14072 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14073 test "x$as_lineno_1" != "x$as_lineno_2" &&
14074 test "x$as_lineno_3" = "x$as_lineno_2" || {
14075 # Find who we are. Look in the path if we contain no path at all
14076 # relative or not.
14077 case $0 in
14078 *[\\/]* ) as_myself=$0 ;;
14079 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080for as_dir in $PATH
14081do
14082 IFS=$as_save_IFS
14083 test -z "$as_dir" && as_dir=.
14084 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14085done
252b5132 14086
13b2be9c
DJ
14087 ;;
14088 esac
14089 # We did not find ourselves, most probably we were run as `sh COMMAND'
14090 # in which case we are not to be found in the path.
14091 if test "x$as_myself" = x; then
14092 as_myself=$0
14093 fi
14094 if test ! -f "$as_myself"; then
14095 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14096echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14097 { (exit 1); exit 1; }; }
14098 fi
14099 case $CONFIG_SHELL in
14100 '')
14101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14103do
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for as_base in sh bash ksh sh5; do
14107 case $as_dir in
14108 /*)
14109 if ("$as_dir/$as_base" -c '
14110 as_lineno_1=$LINENO
14111 as_lineno_2=$LINENO
14112 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14113 test "x$as_lineno_1" != "x$as_lineno_2" &&
14114 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14115 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14116 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14117 CONFIG_SHELL=$as_dir/$as_base
14118 export CONFIG_SHELL
14119 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14120 fi;;
14121 esac
14122 done
14123done
14124;;
14125 esac
252b5132 14126
13b2be9c
DJ
14127 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14128 # uniformly replaced by the line number. The first 'sed' inserts a
14129 # line-number line before each line; the second 'sed' does the real
14130 # work. The second script uses 'N' to pair each line-number line
14131 # with the numbered line, and appends trailing '-' during
14132 # substitution so that $LINENO is not a special case at line end.
14133 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14134 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14135 sed '=' <$as_myself |
14136 sed '
14137 N
14138 s,$,-,
14139 : loop
14140 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14141 t loop
14142 s,-$,,
14143 s,^['$as_cr_digits']*\n,,
14144 ' >$as_me.lineno &&
14145 chmod +x $as_me.lineno ||
14146 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14147echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14148 { (exit 1); exit 1; }; }
14149
14150 # Don't try to exec as it changes $[0], causing all sort of problems
14151 # (the dirname of $[0] is not the place where we might find the
14152 # original and so on. Autoconf is especially sensible to this).
14153 . ./$as_me.lineno
14154 # Exit status is that of the last command.
14155 exit
14156}
d6d788bd 14157
252b5132 14158
13b2be9c
DJ
14159case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14160 *c*,-n*) ECHO_N= ECHO_C='
14161' ECHO_T=' ' ;;
14162 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14163 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14164esac
252b5132 14165
13b2be9c
DJ
14166if expr a : '\(a\)' >/dev/null 2>&1; then
14167 as_expr=expr
252b5132 14168else
13b2be9c 14169 as_expr=false
252b5132 14170fi
252b5132 14171
13b2be9c
DJ
14172rm -f conf$$ conf$$.exe conf$$.file
14173echo >conf$$.file
14174if ln -s conf$$.file conf$$ 2>/dev/null; then
14175 # We could just check for DJGPP; but this test a) works b) is more generic
14176 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14177 if test -f conf$$.exe; then
14178 # Don't use ln at all; we don't have any links
14179 as_ln_s='cp -p'
14180 else
14181 as_ln_s='ln -s'
14182 fi
14183elif ln conf$$.file conf$$ 2>/dev/null; then
14184 as_ln_s=ln
14185else
14186 as_ln_s='cp -p'
252b5132 14187fi
13b2be9c 14188rm -f conf$$ conf$$.exe conf$$.file
252b5132 14189
13b2be9c
DJ
14190if mkdir -p . 2>/dev/null; then
14191 as_mkdir_p=:
252b5132 14192else
ab509236 14193 test -d ./-p && rmdir ./-p
13b2be9c
DJ
14194 as_mkdir_p=false
14195fi
252b5132 14196
13b2be9c 14197as_executable_p="test -f"
252b5132 14198
13b2be9c 14199# Sed expression to map a string onto a valid CPP name.
ab509236 14200as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14201
13b2be9c 14202# Sed expression to map a string onto a valid variable name.
ab509236 14203as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14204
d6d788bd 14205
13b2be9c
DJ
14206# IFS
14207# We need space, tab and new line, in precisely that order.
14208as_nl='
14209'
14210IFS=" $as_nl"
252b5132 14211
13b2be9c
DJ
14212# CDPATH.
14213$as_unset CDPATH
252b5132 14214
13b2be9c 14215exec 6>&1
252b5132 14216
13b2be9c
DJ
14217# Open the log real soon, to keep \$[0] and so on meaningful, and to
14218# report actual input values of CONFIG_FILES etc. instead of their
14219# values after options handling. Logging --version etc. is OK.
14220exec 5>>config.log
14221{
14222 echo
14223 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14224## Running $as_me. ##
14225_ASBOX
14226} >&5
14227cat >&5 <<_CSEOF
252b5132 14228
13b2be9c 14229This file was extended by $as_me, which was
ab509236 14230generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 14231
13b2be9c
DJ
14232 CONFIG_FILES = $CONFIG_FILES
14233 CONFIG_HEADERS = $CONFIG_HEADERS
14234 CONFIG_LINKS = $CONFIG_LINKS
14235 CONFIG_COMMANDS = $CONFIG_COMMANDS
14236 $ $0 $@
252b5132 14237
13b2be9c
DJ
14238_CSEOF
14239echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14240echo >&5
14241_ACEOF
252b5132 14242
13b2be9c
DJ
14243# Files that config.status was made for.
14244if test -n "$ac_config_files"; then
14245 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 14246fi
13b2be9c
DJ
14247
14248if test -n "$ac_config_headers"; then
14249 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 14250fi
252b5132 14251
13b2be9c
DJ
14252if test -n "$ac_config_links"; then
14253 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
14254fi
14255
13b2be9c
DJ
14256if test -n "$ac_config_commands"; then
14257 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14258fi
d6d788bd 14259
13b2be9c 14260cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 14261
13b2be9c
DJ
14262ac_cs_usage="\
14263\`$as_me' instantiates files from templates according to the
14264current configuration.
252b5132 14265
13b2be9c 14266Usage: $0 [OPTIONS] [FILE]...
252b5132 14267
13b2be9c
DJ
14268 -h, --help print this help, then exit
14269 -V, --version print version number, then exit
14270 -q, --quiet do not print progress messages
14271 -d, --debug don't remove temporary files
14272 --recheck update $as_me by reconfiguring in the same conditions
14273 --file=FILE[:TEMPLATE]
ab509236 14274 instantiate the configuration file FILE
13b2be9c 14275 --header=FILE[:TEMPLATE]
ab509236 14276 instantiate the configuration header FILE
252b5132 14277
13b2be9c
DJ
14278Configuration files:
14279$config_files
252b5132 14280
13b2be9c
DJ
14281Configuration headers:
14282$config_headers
252b5132 14283
13b2be9c
DJ
14284Configuration commands:
14285$config_commands
252b5132 14286
13b2be9c
DJ
14287Report bugs to <bug-autoconf@gnu.org>."
14288_ACEOF
d6d788bd 14289
13b2be9c
DJ
14290cat >>$CONFIG_STATUS <<_ACEOF
14291ac_cs_version="\\
14292config.status
ab509236 14293configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 14294 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 14295
ab509236 14296Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
14297This config.status script is free software; the Free Software Foundation
14298gives unlimited permission to copy, distribute and modify it."
14299srcdir=$srcdir
14300INSTALL="$INSTALL"
14301_ACEOF
d6d788bd 14302
13b2be9c
DJ
14303cat >>$CONFIG_STATUS <<\_ACEOF
14304# If no file are specified by the user, then we need to provide default
14305# value. By we need to know if files were specified by the user.
14306ac_need_defaults=:
14307while test $# != 0
14308do
14309 case $1 in
14310 --*=*)
14311 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14312 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14313 ac_shift=:
c8615825 14314 ;;
13b2be9c
DJ
14315 -*)
14316 ac_option=$1
14317 ac_optarg=$2
14318 ac_shift=shift
c8615825 14319 ;;
13b2be9c
DJ
14320 *) # This is not an option, so the user has probably given explicit
14321 # arguments.
14322 ac_option=$1
14323 ac_need_defaults=false;;
14324 esac
252b5132 14325
13b2be9c
DJ
14326 case $ac_option in
14327 # Handling of the options.
14328_ACEOF
14329cat >>$CONFIG_STATUS <<\_ACEOF
14330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14331 ac_cs_recheck=: ;;
14332 --version | --vers* | -V )
14333 echo "$ac_cs_version"; exit 0 ;;
14334 --he | --h)
14335 # Conflict between --help and --header
14336 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14337Try \`$0 --help' for more information." >&5
14338echo "$as_me: error: ambiguous option: $1
14339Try \`$0 --help' for more information." >&2;}
14340 { (exit 1); exit 1; }; };;
14341 --help | --hel | -h )
14342 echo "$ac_cs_usage"; exit 0 ;;
14343 --debug | --d* | -d )
14344 debug=: ;;
14345 --file | --fil | --fi | --f )
14346 $ac_shift
14347 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14348 ac_need_defaults=false;;
14349 --header | --heade | --head | --hea )
14350 $ac_shift
14351 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14352 ac_need_defaults=false;;
14353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14354 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14355 ac_cs_silent=: ;;
c8615825 14356
13b2be9c
DJ
14357 # This is an error.
14358 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14359Try \`$0 --help' for more information." >&5
14360echo "$as_me: error: unrecognized option: $1
14361Try \`$0 --help' for more information." >&2;}
14362 { (exit 1); exit 1; }; } ;;
252b5132 14363
13b2be9c 14364 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 14365
13b2be9c
DJ
14366 esac
14367 shift
14368done
252b5132 14369
13b2be9c 14370ac_configure_extra_args=
d6d788bd 14371
13b2be9c
DJ
14372if $ac_cs_silent; then
14373 exec 6>/dev/null
14374 ac_configure_extra_args="$ac_configure_extra_args --silent"
14375fi
9b2b7d69 14376
13b2be9c
DJ
14377_ACEOF
14378cat >>$CONFIG_STATUS <<_ACEOF
14379if \$ac_cs_recheck; then
14380 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14381 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14382fi
14383
14384_ACEOF
14385
14386cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 14387#
13b2be9c 14388# INIT-COMMANDS section.
9b2b7d69
MM
14389#
14390
13b2be9c 14391AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14392
14393
14394# The HP-UX ksh and POSIX shell print the target directory to stdout
14395# if CDPATH is set.
14396(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14397
14398sed_quote_subst='$sed_quote_subst'
14399double_quote_subst='$double_quote_subst'
14400delay_variable_subst='$delay_variable_subst'
14401macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14402macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14403enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14404enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14405pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14406enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14407host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14408host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14409host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14410build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14411build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14412build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14413SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14414Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14415GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14416EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14417FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14418LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14419NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14420LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14421max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14422ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14423exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14424lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14425lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14426lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14427reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14428reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14429deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14430file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14431AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14432AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14433STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14434RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14435old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14436old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14437old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14438CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14439CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14440compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14441GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14442lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14443lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14444lt_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"`'
14445objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14446SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14447ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14448MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14449lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14450lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14451lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14452lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14453lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14454need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14455libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14456shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14457extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14458archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14459enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14460export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14461whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14462compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14463old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14464old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14465archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14466archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14467module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14468module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14469with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14470allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14471no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14472hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14473hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14474hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14475hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14476hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14477hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14478hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14479hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14480inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14481link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14482fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14483always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14484export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14485exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14486include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14487prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14488file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14489variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14490need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14491need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14492version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14493runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14494shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14495shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14496libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14497library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14498soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14499postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14500postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14501finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14502finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14503hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14504sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14505sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14506hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14507enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14508enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14509enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14510old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14511striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14512
14513LTCC='$LTCC'
14514LTCFLAGS='$LTCFLAGS'
14515compiler='$compiler_DEFAULT'
14516
14517# Quote evaled strings.
14518for var in SED \
14519GREP \
14520EGREP \
14521FGREP \
14522LD \
14523NM \
14524LN_S \
14525lt_SP2NL \
14526lt_NL2SP \
14527reload_flag \
14528deplibs_check_method \
14529file_magic_cmd \
14530AR \
14531AR_FLAGS \
14532STRIP \
14533RANLIB \
14534CC \
14535CFLAGS \
14536compiler \
14537lt_cv_sys_global_symbol_pipe \
14538lt_cv_sys_global_symbol_to_cdecl \
14539lt_cv_sys_global_symbol_to_c_name_address \
14540SHELL \
14541ECHO \
14542lt_prog_compiler_no_builtin_flag \
14543lt_prog_compiler_wl \
14544lt_prog_compiler_pic \
14545lt_prog_compiler_static \
14546lt_cv_prog_compiler_c_o \
14547need_locks \
14548shrext_cmds \
14549export_dynamic_flag_spec \
14550whole_archive_flag_spec \
14551compiler_needs_object \
14552with_gnu_ld \
14553allow_undefined_flag \
14554no_undefined_flag \
14555hardcode_libdir_flag_spec \
14556hardcode_libdir_flag_spec_ld \
14557hardcode_libdir_separator \
14558fix_srcfile_path \
14559exclude_expsyms \
14560include_expsyms \
14561file_list_spec \
14562variables_saved_for_relink \
14563libname_spec \
14564library_names_spec \
14565soname_spec \
14566finish_eval \
14567old_striplib \
14568striplib; do
14569 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14570 *[\\\\\\\`\\"\\\$]*)
14571 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14572 ;;
14573 *)
14574 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14575 ;;
14576 esac
14577done
14578
14579# Double-quote double-evaled strings.
14580for var in reload_cmds \
14581old_postinstall_cmds \
14582old_postuninstall_cmds \
14583old_archive_cmds \
14584extract_expsyms_cmds \
14585old_archive_from_new_cmds \
14586old_archive_from_expsyms_cmds \
14587archive_cmds \
14588archive_expsym_cmds \
14589module_cmds \
14590module_expsym_cmds \
14591export_symbols_cmds \
14592prelink_cmds \
14593postinstall_cmds \
14594postuninstall_cmds \
14595finish_cmds \
14596sys_lib_search_path_spec \
14597sys_lib_dlsearch_path_spec; do
14598 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14599 *[\\\\\\\`\\"\\\$]*)
14600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14601 ;;
14602 *)
14603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14604 ;;
14605 esac
14606done
14607
14608# Fix-up fallback echo if it was mangled by the above quoting rules.
14609case \$lt_ECHO in
14610*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14611 ;;
14612esac
14613
14614ac_aux_dir='$ac_aux_dir'
14615xsi_shell='$xsi_shell'
14616lt_shell_append='$lt_shell_append'
14617
14618# See if we are running on zsh, and set the options which allow our
14619# commands through without removal of \ escapes INIT.
14620if test -n "\${ZSH_VERSION+set}" ; then
14621 setopt NO_GLOB_SUBST
14622fi
14623
14624
14625 PACKAGE='$PACKAGE'
14626 VERSION='$VERSION'
14627 TIMESTAMP='$TIMESTAMP'
14628 RM='$RM'
14629 ofile='$ofile'
14630
14631
14632
20e95c23
DJ
14633# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14634 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14635 # from automake.
14636 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14637 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14638 LINGUAS="${LINGUAS-%UNSET%}"
14639
13b2be9c
DJ
14640target_cpu_type=${target_cpu_type}
14641 cgen_cpu_prefix=${cgen_cpu_prefix}
14642 obj_format=${obj_format}
14643 te_file=${te_file}
14644
14645_ACEOF
14646
14647
14648
14649cat >>$CONFIG_STATUS <<\_ACEOF
14650for ac_config_target in $ac_config_targets
9b2b7d69 14651do
13b2be9c
DJ
14652 case "$ac_config_target" in
14653 # Handling of arguments.
14654 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14655 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14656 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14657 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14658 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14659 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 14660 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 14661 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13b2be9c
DJ
14662 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14663 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14664 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14665echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14666 { (exit 1); exit 1; }; };;
9b2b7d69
MM
14667 esac
14668done
14669
13b2be9c
DJ
14670# If the user did not use the arguments to specify the items to instantiate,
14671# then the envvar interface is used. Set only those that are not.
14672# We use the long form for the default assignment because of an extremely
14673# bizarre bug on SunOS 4.1.3.
14674if $ac_need_defaults; then
14675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14678fi
14679
14680# Have a temporary directory for convenience. Make it in the build tree
14681# simply because there is no reason to put it here, and in addition,
14682# creating and moving files from /tmp can sometimes cause problems.
14683# Create a temporary directory, and hook for its removal unless debugging.
14684$debug ||
14685{
14686 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14687 trap '{ (exit 1); exit 1; }' 1 2 13 15
14688}
9b2b7d69 14689
13b2be9c 14690# Create a (secure) tmp directory for tmp files.
9b2b7d69 14691
13b2be9c
DJ
14692{
14693 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14694 test -n "$tmp" && test -d "$tmp"
14695} ||
14696{
14697 tmp=./confstat$$-$RANDOM
14698 (umask 077 && mkdir $tmp)
14699} ||
14700{
14701 echo "$me: cannot create a temporary directory in ." >&2
14702 { (exit 1); exit 1; }
14703}
9b2b7d69 14704
13b2be9c
DJ
14705_ACEOF
14706
14707cat >>$CONFIG_STATUS <<_ACEOF
14708
14709#
14710# CONFIG_FILES section.
14711#
14712
14713# No need to generate the scripts if there are no CONFIG_FILES.
14714# This happens for instance when ./config.status config.h
14715if test -n "\$CONFIG_FILES"; then
14716 # Protect against being on the right side of a sed subst in config.status.
14717 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14718 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14719s,@SHELL@,$SHELL,;t t
14720s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14721s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14722s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14723s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14724s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14725s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14726s,@exec_prefix@,$exec_prefix,;t t
14727s,@prefix@,$prefix,;t t
14728s,@program_transform_name@,$program_transform_name,;t t
14729s,@bindir@,$bindir,;t t
14730s,@sbindir@,$sbindir,;t t
14731s,@libexecdir@,$libexecdir,;t t
14732s,@datadir@,$datadir,;t t
14733s,@sysconfdir@,$sysconfdir,;t t
14734s,@sharedstatedir@,$sharedstatedir,;t t
14735s,@localstatedir@,$localstatedir,;t t
14736s,@libdir@,$libdir,;t t
14737s,@includedir@,$includedir,;t t
14738s,@oldincludedir@,$oldincludedir,;t t
14739s,@infodir@,$infodir,;t t
14740s,@mandir@,$mandir,;t t
14741s,@build_alias@,$build_alias,;t t
14742s,@host_alias@,$host_alias,;t t
14743s,@target_alias@,$target_alias,;t t
14744s,@DEFS@,$DEFS,;t t
14745s,@ECHO_C@,$ECHO_C,;t t
14746s,@ECHO_N@,$ECHO_N,;t t
14747s,@ECHO_T@,$ECHO_T,;t t
14748s,@LIBS@,$LIBS,;t t
14749s,@build@,$build,;t t
14750s,@build_cpu@,$build_cpu,;t t
14751s,@build_vendor@,$build_vendor,;t t
14752s,@build_os@,$build_os,;t t
14753s,@host@,$host,;t t
14754s,@host_cpu@,$host_cpu,;t t
14755s,@host_vendor@,$host_vendor,;t t
14756s,@host_os@,$host_os,;t t
14757s,@target@,$target,;t t
14758s,@target_cpu@,$target_cpu,;t t
14759s,@target_vendor@,$target_vendor,;t t
14760s,@target_os@,$target_os,;t t
14761s,@CC@,$CC,;t t
14762s,@CFLAGS@,$CFLAGS,;t t
14763s,@LDFLAGS@,$LDFLAGS,;t t
14764s,@CPPFLAGS@,$CPPFLAGS,;t t
14765s,@ac_ct_CC@,$ac_ct_CC,;t t
14766s,@EXEEXT@,$EXEEXT,;t t
14767s,@OBJEXT@,$OBJEXT,;t t
14768s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14769s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14770s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14771s,@CYGPATH_W@,$CYGPATH_W,;t t
14772s,@PACKAGE@,$PACKAGE,;t t
14773s,@VERSION@,$VERSION,;t t
14774s,@ACLOCAL@,$ACLOCAL,;t t
14775s,@AUTOCONF@,$AUTOCONF,;t t
14776s,@AUTOMAKE@,$AUTOMAKE,;t t
14777s,@AUTOHEADER@,$AUTOHEADER,;t t
14778s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
14779s,@install_sh@,$install_sh,;t t
14780s,@STRIP@,$STRIP,;t t
14781s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14782s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 14783s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
14784s,@AWK@,$AWK,;t t
14785s,@SET_MAKE@,$SET_MAKE,;t t
14786s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
14787s,@AMTAR@,$AMTAR,;t t
14788s,@am__tar@,$am__tar,;t t
14789s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
14790s,@DEPDIR@,$DEPDIR,;t t
14791s,@am__include@,$am__include,;t t
14792s,@am__quote@,$am__quote,;t t
14793s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14794s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14795s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14796s,@CCDEPMODE@,$CCDEPMODE,;t t
14797s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14798s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
d7040cdb
SE
14799s,@LIBTOOL@,$LIBTOOL,;t t
14800s,@SED@,$SED,;t t
14801s,@EGREP@,$EGREP,;t t
14802s,@FGREP@,$FGREP,;t t
14803s,@GREP@,$GREP,;t t
14804s,@LD@,$LD,;t t
14805s,@DUMPBIN@,$DUMPBIN,;t t
14806s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14807s,@NM@,$NM,;t t
13b2be9c 14808s,@LN_S@,$LN_S,;t t
d7040cdb
SE
14809s,@AR@,$AR,;t t
14810s,@ac_ct_AR@,$ac_ct_AR,;t t
13b2be9c
DJ
14811s,@RANLIB@,$RANLIB,;t t
14812s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
14813s,@lt_ECHO@,$lt_ECHO,;t t
14814s,@CPP@,$CPP,;t t
13b2be9c 14815s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 14816s,@NO_WERROR@,$NO_WERROR,;t t
13b2be9c
DJ
14817s,@GDBINIT@,$GDBINIT,;t t
14818s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
14819s,@extra_objects@,$extra_objects,;t t
14820s,@target_cpu_type@,$target_cpu_type,;t t
14821s,@obj_format@,$obj_format,;t t
14822s,@te_file@,$te_file,;t t
14823s,@install_tooldir@,$install_tooldir,;t t
14824s,@atof@,$atof,;t t
13b2be9c 14825s,@OPCODES_LIB@,$OPCODES_LIB,;t t
13b2be9c
DJ
14826s,@YACC@,$YACC,;t t
14827s,@LEX@,$LEX,;t t
14828s,@LEXLIB@,$LEXLIB,;t t
14829s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13b2be9c 14830s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
14831s,@LIBINTL@,$LIBINTL,;t t
14832s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14833s,@INCINTL@,$INCINTL,;t t
13b2be9c 14834s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
14835s,@GMSGFMT@,$GMSGFMT,;t t
14836s,@POSUB@,$POSUB,;t t
13b2be9c 14837s,@CATALOGS@,$CATALOGS,;t t
13b2be9c 14838s,@DATADIRNAME@,$DATADIRNAME,;t t
13b2be9c 14839s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
14840s,@GENCAT@,$GENCAT,;t t
14841s,@CATOBJEXT@,$CATOBJEXT,;t t
13b2be9c 14842s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
14843s,@MSGFMT@,$MSGFMT,;t t
14844s,@MSGMERGE@,$MSGMERGE,;t t
13b2be9c
DJ
14845s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14846s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14847s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
14848s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14849s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
20e95c23 14850s,@ALLOCA@,$ALLOCA,;t t
13b2be9c 14851s,@LIBM@,$LIBM,;t t
108a6f8e
CD
14852s,@datarootdir@,$datarootdir,;t t
14853s,@docdir@,$docdir,;t t
14854s,@htmldir@,$htmldir,;t t
13b2be9c
DJ
14855s,@LIBOBJS@,$LIBOBJS,;t t
14856s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
14857CEOF
14858
13b2be9c
DJ
14859_ACEOF
14860
14861 cat >>$CONFIG_STATUS <<\_ACEOF
14862 # Split the substitutions into bite-sized pieces for seds with
14863 # small command number limits, like on Digital OSF/1 and HP-UX.
14864 ac_max_sed_lines=48
14865 ac_sed_frag=1 # Number of current file.
14866 ac_beg=1 # First line for current file.
14867 ac_end=$ac_max_sed_lines # Line after last line for current file.
14868 ac_more_lines=:
14869 ac_sed_cmds=
14870 while $ac_more_lines; do
14871 if test $ac_beg -gt 1; then
14872 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14873 else
14874 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14875 fi
14876 if test ! -s $tmp/subs.frag; then
14877 ac_more_lines=false
9b2b7d69 14878 else
13b2be9c
DJ
14879 # The purpose of the label and of the branching condition is to
14880 # speed up the sed processing (if there are no `@' at all, there
14881 # is no need to browse any of the substitutions).
14882 # These are the two extra sed commands mentioned above.
14883 (echo ':t
14884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14885 if test -z "$ac_sed_cmds"; then
ab509236 14886 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 14887 else
ab509236 14888 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
14889 fi
14890 ac_sed_frag=`expr $ac_sed_frag + 1`
14891 ac_beg=$ac_end
14892 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 14893 fi
13b2be9c
DJ
14894 done
14895 if test -z "$ac_sed_cmds"; then
14896 ac_sed_cmds=cat
252b5132 14897 fi
13b2be9c 14898fi # test -n "$CONFIG_FILES"
252b5132 14899
13b2be9c
DJ
14900_ACEOF
14901cat >>$CONFIG_STATUS <<\_ACEOF
14902for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 14903 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
14904 case $ac_file in
14905 - | *:- | *:-:* ) # input from stdin
ab509236
L
14906 cat >$tmp/stdin
14907 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14908 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 14909 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 14910 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 14911 * ) ac_file_in=$ac_file.in ;;
252b5132 14912 esac
9b2b7d69 14913
13b2be9c
DJ
14914 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14915 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14916$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
14917 X"$ac_file" : 'X\(//\)[^/]' \| \
14918 X"$ac_file" : 'X\(//\)$' \| \
14919 X"$ac_file" : 'X\(/\)' \| \
14920 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
14921echo X"$ac_file" |
14922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14924 /^X\(\/\/\)$/{ s//\1/; q; }
14925 /^X\(\/\).*/{ s//\1/; q; }
14926 s/.*/./; q'`
14927 { if $as_mkdir_p; then
14928 mkdir -p "$ac_dir"
c8615825 14929 else
13b2be9c
DJ
14930 as_dir="$ac_dir"
14931 as_dirs=
14932 while test ! -d "$as_dir"; do
14933 as_dirs="$as_dir $as_dirs"
14934 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14935$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
14936 X"$as_dir" : 'X\(//\)[^/]' \| \
14937 X"$as_dir" : 'X\(//\)$' \| \
14938 X"$as_dir" : 'X\(/\)' \| \
14939 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
14940echo X"$as_dir" |
14941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14943 /^X\(\/\/\)$/{ s//\1/; q; }
14944 /^X\(\/\).*/{ s//\1/; q; }
14945 s/.*/./; q'`
14946 done
14947 test ! -n "$as_dirs" || mkdir $as_dirs
14948 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14949echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14950 { (exit 1); exit 1; }; }; }
14951
14952 ac_builddir=.
14953
14954if test "$ac_dir" != .; then
14955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14956 # A "../" for each directory in $ac_dir_suffix.
14957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14958else
14959 ac_dir_suffix= ac_top_builddir=
14960fi
9b2b7d69 14961
13b2be9c
DJ
14962case $srcdir in
14963 .) # No --srcdir option. We are building in place.
14964 ac_srcdir=.
14965 if test -z "$ac_top_builddir"; then
14966 ac_top_srcdir=.
14967 else
14968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14969 fi ;;
14970 [\\/]* | ?:[\\/]* ) # Absolute path.
14971 ac_srcdir=$srcdir$ac_dir_suffix;
14972 ac_top_srcdir=$srcdir ;;
9b2b7d69 14973 *) # Relative path.
13b2be9c
DJ
14974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14976esac
ab509236
L
14977
14978# Do not use `cd foo && pwd` to compute absolute paths, because
14979# the directories may not exist.
14980case `pwd` in
14981.) ac_abs_builddir="$ac_dir";;
14982*)
14983 case "$ac_dir" in
14984 .) ac_abs_builddir=`pwd`;;
14985 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14986 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14987 esac;;
14988esac
14989case $ac_abs_builddir in
14990.) ac_abs_top_builddir=${ac_top_builddir}.;;
14991*)
14992 case ${ac_top_builddir}. in
14993 .) ac_abs_top_builddir=$ac_abs_builddir;;
14994 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14995 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14996 esac;;
14997esac
14998case $ac_abs_builddir in
14999.) ac_abs_srcdir=$ac_srcdir;;
15000*)
15001 case $ac_srcdir in
15002 .) ac_abs_srcdir=$ac_abs_builddir;;
15003 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15004 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15005 esac;;
15006esac
15007case $ac_abs_builddir in
15008.) ac_abs_top_srcdir=$ac_top_srcdir;;
15009*)
15010 case $ac_top_srcdir in
15011 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15012 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15013 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15014 esac;;
15015esac
252b5132 15016
9b2b7d69 15017
13b2be9c
DJ
15018 case $INSTALL in
15019 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15020 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 15021 esac
9b2b7d69 15022
1ad12f97
NC
15023 if test x"$ac_file" != x-; then
15024 { echo "$as_me:$LINENO: creating $ac_file" >&5
15025echo "$as_me: creating $ac_file" >&6;}
15026 rm -f "$ac_file"
15027 fi
13b2be9c
DJ
15028 # Let's still pretend it is `configure' which instantiates (i.e., don't
15029 # use $as_me), people would be surprised to read:
15030 # /* config.h. Generated by config.status. */
15031 if test x"$ac_file" = x-; then
15032 configure_input=
15033 else
15034 configure_input="$ac_file. "
15035 fi
15036 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 15037 sed 's,.*/,,'` by configure."
13b2be9c
DJ
15038
15039 # First look for the input files in the build tree, otherwise in the
15040 # src tree.
15041 ac_file_inputs=`IFS=:
15042 for f in $ac_file_in; do
15043 case $f in
15044 -) echo $tmp/stdin ;;
15045 [\\/$]*)
ab509236
L
15046 # Absolute (can't be DOS-style, as IFS=:)
15047 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15048echo "$as_me: error: cannot find input file: $f" >&2;}
15049 { (exit 1); exit 1; }; }
ab509236 15050 echo "$f";;
13b2be9c 15051 *) # Relative
ab509236
L
15052 if test -f "$f"; then
15053 # Build tree
15054 echo "$f"
15055 elif test -f "$srcdir/$f"; then
15056 # Source tree
15057 echo "$srcdir/$f"
15058 else
15059 # /dev/null tree
15060 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15061echo "$as_me: error: cannot find input file: $f" >&2;}
15062 { (exit 1); exit 1; }; }
ab509236 15063 fi;;
13b2be9c
DJ
15064 esac
15065 done` || { (exit 1); exit 1; }
15066_ACEOF
15067cat >>$CONFIG_STATUS <<_ACEOF
15068 sed "$ac_vpsub
15069$extrasub
15070_ACEOF
15071cat >>$CONFIG_STATUS <<\_ACEOF
15072:t
15073/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15074s,@configure_input@,$configure_input,;t t
15075s,@srcdir@,$ac_srcdir,;t t
15076s,@abs_srcdir@,$ac_abs_srcdir,;t t
15077s,@top_srcdir@,$ac_top_srcdir,;t t
15078s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15079s,@builddir@,$ac_builddir,;t t
15080s,@abs_builddir@,$ac_abs_builddir,;t t
15081s,@top_builddir@,$ac_top_builddir,;t t
15082s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15083s,@INSTALL@,$ac_INSTALL,;t t
15084" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15085 rm -f $tmp/stdin
15086 if test x"$ac_file" != x-; then
15087 mv $tmp/out $ac_file
15088 else
15089 cat $tmp/out
15090 rm -f $tmp/out
15091 fi
15092
15093done
15094_ACEOF
15095cat >>$CONFIG_STATUS <<\_ACEOF
15096
15097#
15098# CONFIG_HEADER section.
15099#
252b5132
RH
15100
15101# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15102# NAME is the cpp macro being defined and VALUE is the value it is being given.
15103#
15104# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
15105ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15106ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
15107ac_dC=' '
15108ac_dD=',;t'
15109# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 15110ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 15111ac_uB='$,\1#\2define\3'
252b5132 15112ac_uC=' '
13b2be9c
DJ
15113ac_uD=',;t'
15114
15115for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15116 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
15117 case $ac_file in
15118 - | *:- | *:-:* ) # input from stdin
ab509236
L
15119 cat >$tmp/stdin
15120 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15121 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15122 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 15123 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15124 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15125 esac
15126
13b2be9c
DJ
15127 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15128echo "$as_me: creating $ac_file" >&6;}
15129
15130 # First look for the input files in the build tree, otherwise in the
15131 # src tree.
15132 ac_file_inputs=`IFS=:
15133 for f in $ac_file_in; do
15134 case $f in
15135 -) echo $tmp/stdin ;;
15136 [\\/$]*)
ab509236
L
15137 # Absolute (can't be DOS-style, as IFS=:)
15138 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15139echo "$as_me: error: cannot find input file: $f" >&2;}
15140 { (exit 1); exit 1; }; }
ab509236
L
15141 # Do quote $f, to prevent DOS paths from being IFS'd.
15142 echo "$f";;
13b2be9c 15143 *) # Relative
ab509236
L
15144 if test -f "$f"; then
15145 # Build tree
15146 echo "$f"
15147 elif test -f "$srcdir/$f"; then
15148 # Source tree
15149 echo "$srcdir/$f"
15150 else
15151 # /dev/null tree
15152 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15153echo "$as_me: error: cannot find input file: $f" >&2;}
15154 { (exit 1); exit 1; }; }
ab509236 15155 fi;;
13b2be9c
DJ
15156 esac
15157 done` || { (exit 1); exit 1; }
15158 # Remove the trailing spaces.
ab509236 15159 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
15160
15161_ACEOF
15162
15163# Transform confdefs.h into two sed scripts, `conftest.defines' and
15164# `conftest.undefs', that substitutes the proper values into
15165# config.h.in to produce config.h. The first handles `#define'
15166# templates, and the second `#undef' templates.
15167# And first: Protect against being on the right side of a sed subst in
15168# config.status. Protect against being in an unquoted here document
15169# in config.status.
15170rm -f conftest.defines conftest.undefs
15171# Using a here document instead of a string reduces the quoting nightmare.
15172# Putting comments in sed scripts is not portable.
15173#
15174# `end' is used to avoid that the second main sed command (meant for
15175# 0-ary CPP macros) applies to n-ary macro definitions.
15176# See the Autoconf documentation for `clear'.
15177cat >confdef2sed.sed <<\_ACEOF
15178s/[\\&,]/\\&/g
15179s,[\\$`],\\&,g
15180t clear
15181: clear
ab509236 15182s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 15183t end
ab509236 15184s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
15185: end
15186_ACEOF
15187# If some macros were called several times there might be several times
15188# the same #defines, which is useless. Nevertheless, we may not want to
15189# sort them, since we want the *last* AC-DEFINE to be honored.
15190uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15191sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15192rm -f confdef2sed.sed
252b5132
RH
15193
15194# This sed command replaces #undef with comments. This is necessary, for
15195# example, in the case of _POSIX_SOURCE, which is predefined and required
15196# on some systems where configure will not decide to define it.
13b2be9c 15197cat >>conftest.undefs <<\_ACEOF
ab509236 15198s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
15199_ACEOF
15200
15201# Break up conftest.defines because some shells have a limit on the size
15202# of here documents, and old seds have small limits too (100 cmds).
15203echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 15204echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
15205echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15206echo ' :' >>$CONFIG_STATUS
15207rm -f conftest.tail
15208while grep . conftest.defines >/dev/null
15209do
15210 # Write a limited-size here document to $tmp/defines.sed.
15211 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15212 # Speed up: don't consider the non `#define' lines.
ab509236 15213 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15214 # Work around the forget-to-reset-the-flag bug.
15215 echo 't clr' >>$CONFIG_STATUS
15216 echo ': clr' >>$CONFIG_STATUS
15217 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15218 echo 'CEOF
15219 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15220 rm -f $tmp/in
15221 mv $tmp/out $tmp/in
15222' >>$CONFIG_STATUS
15223 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15224 rm -f conftest.defines
15225 mv conftest.tail conftest.defines
15226done
15227rm -f conftest.defines
15228echo ' fi # grep' >>$CONFIG_STATUS
15229echo >>$CONFIG_STATUS
252b5132 15230
13b2be9c
DJ
15231# Break up conftest.undefs because some shells have a limit on the size
15232# of here documents, and old seds have small limits too (100 cmds).
15233echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 15234rm -f conftest.tail
13b2be9c 15235while grep . conftest.undefs >/dev/null
252b5132 15236do
13b2be9c
DJ
15237 # Write a limited-size here document to $tmp/undefs.sed.
15238 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15239 # Speed up: don't consider the non `#undef'
ab509236 15240 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15241 # Work around the forget-to-reset-the-flag bug.
15242 echo 't clr' >>$CONFIG_STATUS
15243 echo ': clr' >>$CONFIG_STATUS
15244 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 15245 echo 'CEOF
13b2be9c
DJ
15246 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15247 rm -f $tmp/in
15248 mv $tmp/out $tmp/in
15249' >>$CONFIG_STATUS
15250 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15251 rm -f conftest.undefs
15252 mv conftest.tail conftest.undefs
252b5132 15253done
13b2be9c
DJ
15254rm -f conftest.undefs
15255
15256cat >>$CONFIG_STATUS <<\_ACEOF
15257 # Let's still pretend it is `configure' which instantiates (i.e., don't
15258 # use $as_me), people would be surprised to read:
15259 # /* config.h. Generated by config.status. */
15260 if test x"$ac_file" = x-; then
15261 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 15262 else
13b2be9c
DJ
15263 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15264 fi
15265 cat $tmp/in >>$tmp/config.h
15266 rm -f $tmp/in
15267 if test x"$ac_file" != x-; then
15268 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15269 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15270echo "$as_me: $ac_file is unchanged" >&6;}
15271 else
15272 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15273$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15274 X"$ac_file" : 'X\(//\)[^/]' \| \
15275 X"$ac_file" : 'X\(//\)$' \| \
15276 X"$ac_file" : 'X\(/\)' \| \
15277 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15278echo X"$ac_file" |
15279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15281 /^X\(\/\/\)$/{ s//\1/; q; }
15282 /^X\(\/\).*/{ s//\1/; q; }
15283 s/.*/./; q'`
15284 { if $as_mkdir_p; then
15285 mkdir -p "$ac_dir"
15286 else
15287 as_dir="$ac_dir"
15288 as_dirs=
15289 while test ! -d "$as_dir"; do
15290 as_dirs="$as_dir $as_dirs"
15291 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15293 X"$as_dir" : 'X\(//\)[^/]' \| \
15294 X"$as_dir" : 'X\(//\)$' \| \
15295 X"$as_dir" : 'X\(/\)' \| \
15296 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15297echo X"$as_dir" |
15298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15300 /^X\(\/\/\)$/{ s//\1/; q; }
15301 /^X\(\/\).*/{ s//\1/; q; }
15302 s/.*/./; q'`
15303 done
15304 test ! -n "$as_dirs" || mkdir $as_dirs
15305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15306echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15307 { (exit 1); exit 1; }; }; }
15308
15309 rm -f $ac_file
15310 mv $tmp/config.h $ac_file
9b2b7d69 15311 fi
13b2be9c
DJ
15312 else
15313 cat $tmp/config.h
15314 rm -f $tmp/config.h
9b2b7d69 15315 fi
13b2be9c
DJ
15316# Compute $ac_file's index in $config_headers.
15317_am_stamp_count=1
15318for _am_header in $config_headers :; do
15319 case $_am_header in
15320 $ac_file | $ac_file:* )
15321 break ;;
15322 * )
15323 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15324 esac
15325done
15326echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15327$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15328 X$ac_file : 'X\(//\)[^/]' \| \
15329 X$ac_file : 'X\(//\)$' \| \
15330 X$ac_file : 'X\(/\)' \| \
15331 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15332echo X$ac_file |
15333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15335 /^X\(\/\/\)$/{ s//\1/; q; }
15336 /^X\(\/\).*/{ s//\1/; q; }
15337 s/.*/./; q'`/stamp-h$_am_stamp_count
15338done
15339_ACEOF
15340cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 15341
13b2be9c
DJ
15342#
15343# CONFIG_COMMANDS section.
15344#
15345for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15346 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15347 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15348 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15349$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15350 X"$ac_dest" : 'X\(//\)[^/]' \| \
15351 X"$ac_dest" : 'X\(//\)$' \| \
15352 X"$ac_dest" : 'X\(/\)' \| \
15353 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15354echo X"$ac_dest" |
15355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15357 /^X\(\/\/\)$/{ s//\1/; q; }
15358 /^X\(\/\).*/{ s//\1/; q; }
15359 s/.*/./; q'`
ab509236
L
15360 { if $as_mkdir_p; then
15361 mkdir -p "$ac_dir"
15362 else
15363 as_dir="$ac_dir"
15364 as_dirs=
15365 while test ! -d "$as_dir"; do
15366 as_dirs="$as_dir $as_dirs"
15367 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15368$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15369 X"$as_dir" : 'X\(//\)[^/]' \| \
15370 X"$as_dir" : 'X\(//\)$' \| \
15371 X"$as_dir" : 'X\(/\)' \| \
15372 . : '\(.\)' 2>/dev/null ||
15373echo X"$as_dir" |
15374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15376 /^X\(\/\/\)$/{ s//\1/; q; }
15377 /^X\(\/\).*/{ s//\1/; q; }
15378 s/.*/./; q'`
15379 done
15380 test ! -n "$as_dirs" || mkdir $as_dirs
15381 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15382echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15383 { (exit 1); exit 1; }; }; }
15384
13b2be9c
DJ
15385 ac_builddir=.
15386
15387if test "$ac_dir" != .; then
15388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15389 # A "../" for each directory in $ac_dir_suffix.
15390 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15391else
15392 ac_dir_suffix= ac_top_builddir=
15393fi
15394
15395case $srcdir in
15396 .) # No --srcdir option. We are building in place.
15397 ac_srcdir=.
15398 if test -z "$ac_top_builddir"; then
15399 ac_top_srcdir=.
15400 else
15401 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15402 fi ;;
15403 [\\/]* | ?:[\\/]* ) # Absolute path.
15404 ac_srcdir=$srcdir$ac_dir_suffix;
15405 ac_top_srcdir=$srcdir ;;
15406 *) # Relative path.
15407 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15408 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15409esac
ab509236
L
15410
15411# Do not use `cd foo && pwd` to compute absolute paths, because
15412# the directories may not exist.
15413case `pwd` in
15414.) ac_abs_builddir="$ac_dir";;
15415*)
15416 case "$ac_dir" in
15417 .) ac_abs_builddir=`pwd`;;
15418 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15419 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15420 esac;;
15421esac
15422case $ac_abs_builddir in
15423.) ac_abs_top_builddir=${ac_top_builddir}.;;
15424*)
15425 case ${ac_top_builddir}. in
15426 .) ac_abs_top_builddir=$ac_abs_builddir;;
15427 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15428 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15429 esac;;
15430esac
15431case $ac_abs_builddir in
15432.) ac_abs_srcdir=$ac_srcdir;;
15433*)
15434 case $ac_srcdir in
15435 .) ac_abs_srcdir=$ac_abs_builddir;;
15436 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15437 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15438 esac;;
15439esac
15440case $ac_abs_builddir in
15441.) ac_abs_top_srcdir=$ac_top_srcdir;;
15442*)
15443 case $ac_top_srcdir in
15444 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15445 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15446 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15447 esac;;
15448esac
13b2be9c
DJ
15449
15450
15451 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15452echo "$as_me: executing $ac_dest commands" >&6;}
15453 case $ac_dest in
15454 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15455 # Strip MF so we end up with the name of the file.
15456 mf=`echo "$mf" | sed -e 's/:.*$//'`
15457 # Check whether this is an Automake generated Makefile or not.
15458 # We used to match only the files named `Makefile.in', but
15459 # some people rename them; so instead we look at the file content.
15460 # Grep'ing the first line is not enough: some people post-process
15461 # each Makefile.in and add a new line on top of each file to say so.
15462 # So let's grep whole file.
15463 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15464 dirpart=`(dirname "$mf") 2>/dev/null ||
15465$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15466 X"$mf" : 'X\(//\)[^/]' \| \
15467 X"$mf" : 'X\(//\)$' \| \
15468 X"$mf" : 'X\(/\)' \| \
15469 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15470echo X"$mf" |
15471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15473 /^X\(\/\/\)$/{ s//\1/; q; }
15474 /^X\(\/\).*/{ s//\1/; q; }
15475 s/.*/./; q'`
15476 else
15477 continue
15478 fi
8ea2b00f
AM
15479 # Extract the definition of DEPDIR, am__include, and am__quote
15480 # from the Makefile without running `make'.
4b363073 15481 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 15482 test -z "$DEPDIR" && continue
8ea2b00f
AM
15483 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15484 test -z "am__include" && continue
15485 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 15486 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 15487 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
15488 # Find all dependency output files, they are included files with
15489 # $(DEPDIR) in their names. We invoke sed twice because it is the
15490 # simplest approach to changing $(DEPDIR) to its actual value in the
15491 # expansion.
15492 for file in `sed -n "
15493 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
15494 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15495 # Make sure the directory exists.
15496 test -f "$dirpart/$file" && continue
15497 fdir=`(dirname "$file") 2>/dev/null ||
15498$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15499 X"$file" : 'X\(//\)[^/]' \| \
15500 X"$file" : 'X\(//\)$' \| \
15501 X"$file" : 'X\(/\)' \| \
15502 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15503echo X"$file" |
15504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15506 /^X\(\/\/\)$/{ s//\1/; q; }
15507 /^X\(\/\).*/{ s//\1/; q; }
15508 s/.*/./; q'`
15509 { if $as_mkdir_p; then
15510 mkdir -p $dirpart/$fdir
15511 else
15512 as_dir=$dirpart/$fdir
15513 as_dirs=
15514 while test ! -d "$as_dir"; do
15515 as_dirs="$as_dir $as_dirs"
15516 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15517$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15518 X"$as_dir" : 'X\(//\)[^/]' \| \
15519 X"$as_dir" : 'X\(//\)$' \| \
15520 X"$as_dir" : 'X\(/\)' \| \
15521 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15522echo X"$as_dir" |
15523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15525 /^X\(\/\/\)$/{ s//\1/; q; }
15526 /^X\(\/\).*/{ s//\1/; q; }
15527 s/.*/./; q'`
15528 done
15529 test ! -n "$as_dirs" || mkdir $as_dirs
15530 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15531echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15532 { (exit 1); exit 1; }; }; }
c8615825 15533
13b2be9c
DJ
15534 # echo "creating $dirpart/$file"
15535 echo '# dummy' > "$dirpart/$file"
15536 done
15537done
d7040cdb
SE
15538 ;;
15539 libtool )
15540
15541 # See if we are running on zsh, and set the options which allow our
15542 # commands through without removal of \ escapes.
15543 if test -n "${ZSH_VERSION+set}" ; then
15544 setopt NO_GLOB_SUBST
15545 fi
15546
15547 cfgfile="${ofile}T"
15548 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15549 $RM "$cfgfile"
15550
15551 cat <<_LT_EOF >> "$cfgfile"
15552#! $SHELL
15553
15554# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15555# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15556# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15557# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15558#
15559# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15560# 2006, 2007 Free Software Foundation, Inc.
15561#
15562# This file is part of GNU Libtool:
15563# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15564#
15565# This program is free software; you can redistribute it and/or modify
15566# it under the terms of the GNU General Public License as published by
15567# the Free Software Foundation; either version 2 of the License, or
15568# (at your option) any later version.
15569#
15570# This program is distributed in the hope that it will be useful, but
15571# WITHOUT ANY WARRANTY; without even the implied warranty of
15572# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15573# General Public License for more details.
15574#
15575# You should have received a copy of the GNU General Public License
15576# along with this program; if not, a copy can be downloaded from
15577# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15578# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15579# MA 02110-1301, USA.
15580#
15581# As a special exception to the GNU General Public License, if you
15582# distribute this file as part of a program that contains a
15583# configuration script generated by Autoconf, you may include it under
15584# the same distribution terms that you use for the rest of that program.
15585
15586
15587# The names of the tagged configurations supported by this script.
15588available_tags=""
15589
15590# ### BEGIN LIBTOOL CONFIG
15591
15592# Which release of libtool.m4 was used?
15593macro_version=$macro_version
15594macro_revision=$macro_revision
15595
15596# Whether or not to build shared libraries.
15597build_libtool_libs=$enable_shared
15598
15599# Whether or not to build static libraries.
15600build_old_libs=$enable_static
15601
15602# What type of objects to build.
15603pic_mode=$pic_mode
15604
15605# Whether or not to optimize for fast installation.
15606fast_install=$enable_fast_install
15607
15608# The host system.
15609host_alias=$host_alias
15610host=$host
15611host_os=$host_os
15612
15613# The build system.
15614build_alias=$build_alias
15615build=$build
15616build_os=$build_os
15617
15618# A sed program that does not truncate output.
15619SED=$lt_SED
15620
15621# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15622Xsed="\$SED -e 1s/^X//"
15623
15624# A grep program that handles long lines.
15625GREP=$lt_GREP
15626
15627# An ERE matcher.
15628EGREP=$lt_EGREP
15629
15630# A literal string matcher.
15631FGREP=$lt_FGREP
15632
15633# A BSD- or MS-compatible name lister.
15634NM=$lt_NM
15635
15636# Whether we need soft or hard links.
15637LN_S=$lt_LN_S
15638
15639# What is the maximum length of a command?
15640max_cmd_len=$max_cmd_len
15641
15642# Object file suffix (normally "o").
15643objext=$ac_objext
15644
15645# Executable file suffix (normally "").
15646exeext=$exeext
15647
15648# whether the shell understands "unset".
15649lt_unset=$lt_unset
15650
15651# turn spaces into newlines.
15652SP2NL=$lt_lt_SP2NL
15653
15654# turn newlines into spaces.
15655NL2SP=$lt_lt_NL2SP
15656
15657# How to create reloadable object files.
15658reload_flag=$lt_reload_flag
15659reload_cmds=$lt_reload_cmds
15660
15661# Method to check whether dependent libraries are shared objects.
15662deplibs_check_method=$lt_deplibs_check_method
15663
15664# Command to use when deplibs_check_method == "file_magic".
15665file_magic_cmd=$lt_file_magic_cmd
15666
15667# The archiver.
15668AR=$lt_AR
15669AR_FLAGS=$lt_AR_FLAGS
15670
15671# A symbol stripping program.
15672STRIP=$lt_STRIP
15673
15674# Commands used to install an old-style archive.
15675RANLIB=$lt_RANLIB
15676old_postinstall_cmds=$lt_old_postinstall_cmds
15677old_postuninstall_cmds=$lt_old_postuninstall_cmds
15678
15679# A C compiler.
15680LTCC=$lt_CC
15681
15682# LTCC compiler flags.
15683LTCFLAGS=$lt_CFLAGS
15684
15685# Take the output of nm and produce a listing of raw symbols and C names.
15686global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15687
15688# Transform the output of nm in a proper C declaration.
15689global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15690
15691# Transform the output of nm in a C name address pair.
15692global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15693
15694# The name of the directory that contains temporary libtool files.
15695objdir=$objdir
15696
15697# Shell to use when invoking shell scripts.
15698SHELL=$lt_SHELL
15699
15700# An echo program that does not interpret backslashes.
15701ECHO=$lt_ECHO
15702
15703# Used to examine libraries when file_magic_cmd begins with "file".
15704MAGIC_CMD=$MAGIC_CMD
15705
15706# Must we lock files when doing compilation?
15707need_locks=$lt_need_locks
15708
15709# Old archive suffix (normally "a").
15710libext=$libext
15711
15712# Shared library suffix (normally ".so").
15713shrext_cmds=$lt_shrext_cmds
15714
15715# The commands to extract the exported symbol list from a shared archive.
15716extract_expsyms_cmds=$lt_extract_expsyms_cmds
15717
15718# Variables whose values should be saved in libtool wrapper scripts and
15719# restored at link time.
15720variables_saved_for_relink=$lt_variables_saved_for_relink
15721
15722# Do we need the "lib" prefix for modules?
15723need_lib_prefix=$need_lib_prefix
15724
15725# Do we need a version for libraries?
15726need_version=$need_version
15727
15728# Library versioning type.
15729version_type=$version_type
15730
15731# Shared library runtime path variable.
15732runpath_var=$runpath_var
15733
15734# Shared library path variable.
15735shlibpath_var=$shlibpath_var
15736
15737# Is shlibpath searched before the hard-coded library search path?
15738shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15739
15740# Format of library name prefix.
15741libname_spec=$lt_libname_spec
15742
15743# List of archive names. First name is the real one, the rest are links.
15744# The last name is the one that the linker finds with -lNAME
15745library_names_spec=$lt_library_names_spec
15746
15747# The coded name of the library, if different from the real name.
15748soname_spec=$lt_soname_spec
15749
15750# Command to use after installation of a shared archive.
15751postinstall_cmds=$lt_postinstall_cmds
15752
15753# Command to use after uninstallation of a shared archive.
15754postuninstall_cmds=$lt_postuninstall_cmds
15755
15756# Commands used to finish a libtool library installation in a directory.
15757finish_cmds=$lt_finish_cmds
15758
15759# As "finish_cmds", except a single script fragment to be evaled but
15760# not shown.
15761finish_eval=$lt_finish_eval
15762
15763# Whether we should hardcode library paths into libraries.
15764hardcode_into_libs=$hardcode_into_libs
15765
15766# Compile-time system search path for libraries.
15767sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15768
15769# Run-time system search path for libraries.
15770sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15771
15772# Whether dlopen is supported.
15773dlopen_support=$enable_dlopen
15774
15775# Whether dlopen of programs is supported.
15776dlopen_self=$enable_dlopen_self
15777
15778# Whether dlopen of statically linked programs is supported.
15779dlopen_self_static=$enable_dlopen_self_static
15780
15781# Commands to strip libraries.
15782old_striplib=$lt_old_striplib
15783striplib=$lt_striplib
15784
15785
15786# The linker used to build libraries.
15787LD=$lt_LD
15788
15789# Commands used to build an old-style archive.
15790old_archive_cmds=$lt_old_archive_cmds
15791
15792# A language specific compiler.
15793CC=$lt_compiler
15794
15795# Is the compiler the GNU compiler?
15796with_gcc=$GCC
15797
15798# Compiler flag to turn off builtin functions.
15799no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15800
15801# How to pass a linker flag through the compiler.
15802wl=$lt_lt_prog_compiler_wl
15803
15804# Additional compiler flags for building library objects.
15805pic_flag=$lt_lt_prog_compiler_pic
15806
15807# Compiler flag to prevent dynamic linking.
15808link_static_flag=$lt_lt_prog_compiler_static
15809
15810# Does compiler simultaneously support -c and -o options?
15811compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15812
15813# Whether or not to add -lc for building shared libraries.
15814build_libtool_need_lc=$archive_cmds_need_lc
15815
15816# Whether or not to disallow shared libs when runtime libs are static.
15817allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15818
15819# Compiler flag to allow reflexive dlopens.
15820export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15821
15822# Compiler flag to generate shared objects directly from archives.
15823whole_archive_flag_spec=$lt_whole_archive_flag_spec
15824
15825# Whether the compiler copes with passing no objects directly.
15826compiler_needs_object=$lt_compiler_needs_object
15827
15828# Create an old-style archive from a shared archive.
15829old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15830
15831# Create a temporary old-style archive to link instead of a shared archive.
15832old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15833
15834# Commands used to build a shared archive.
15835archive_cmds=$lt_archive_cmds
15836archive_expsym_cmds=$lt_archive_expsym_cmds
15837
15838# Commands used to build a loadable module if different from building
15839# a shared archive.
15840module_cmds=$lt_module_cmds
15841module_expsym_cmds=$lt_module_expsym_cmds
15842
15843# Whether we are building with GNU ld or not.
15844with_gnu_ld=$lt_with_gnu_ld
15845
15846# Flag that allows shared libraries with undefined symbols to be built.
15847allow_undefined_flag=$lt_allow_undefined_flag
15848
15849# Flag that enforces no undefined symbols.
15850no_undefined_flag=$lt_no_undefined_flag
15851
15852# Flag to hardcode \$libdir into a binary during linking.
15853# This must work even if \$libdir does not exist
15854hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15855
15856# If ld is used when linking, flag to hardcode \$libdir into a binary
15857# during linking. This must work even if \$libdir does not exist.
15858hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15859
15860# Whether we need a single "-rpath" flag with a separated argument.
15861hardcode_libdir_separator=$lt_hardcode_libdir_separator
15862
15863# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15864# DIR into the resulting binary.
15865hardcode_direct=$hardcode_direct
15866
15867# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15868# DIR into the resulting binary and the resulting library dependency is
15869# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15870# library is relocated.
15871hardcode_direct_absolute=$hardcode_direct_absolute
15872
15873# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15874# into the resulting binary.
15875hardcode_minus_L=$hardcode_minus_L
15876
15877# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15878# into the resulting binary.
15879hardcode_shlibpath_var=$hardcode_shlibpath_var
15880
15881# Set to "yes" if building a shared library automatically hardcodes DIR
15882# into the library and all subsequent libraries and executables linked
15883# against it.
15884hardcode_automatic=$hardcode_automatic
15885
15886# Set to yes if linker adds runtime paths of dependent libraries
15887# to runtime path list.
15888inherit_rpath=$inherit_rpath
15889
15890# Whether libtool must link a program against all its dependency libraries.
15891link_all_deplibs=$link_all_deplibs
15892
15893# Fix the shell variable \$srcfile for the compiler.
15894fix_srcfile_path=$lt_fix_srcfile_path
15895
15896# Set to "yes" if exported symbols are required.
15897always_export_symbols=$always_export_symbols
15898
15899# The commands to list exported symbols.
15900export_symbols_cmds=$lt_export_symbols_cmds
15901
15902# Symbols that should not be listed in the preloaded symbols.
15903exclude_expsyms=$lt_exclude_expsyms
15904
15905# Symbols that must always be exported.
15906include_expsyms=$lt_include_expsyms
15907
15908# Commands necessary for linking programs (against libraries) with templates.
15909prelink_cmds=$lt_prelink_cmds
15910
15911# Specify filename containing input files.
15912file_list_spec=$lt_file_list_spec
15913
15914# How to hardcode a shared library path into an executable.
15915hardcode_action=$hardcode_action
15916
15917# ### END LIBTOOL CONFIG
15918
15919_LT_EOF
15920
15921 case $host_os in
15922 aix3*)
15923 cat <<\_LT_EOF >> "$cfgfile"
15924# AIX sometimes has problems with the GCC collect2 program. For some
15925# reason, if we set the COLLECT_NAMES environment variable, the problems
15926# vanish in a puff of smoke.
15927if test "X${COLLECT_NAMES+set}" != Xset; then
15928 COLLECT_NAMES=
15929 export COLLECT_NAMES
15930fi
15931_LT_EOF
15932 ;;
15933 esac
15934
15935
15936ltmain="$ac_aux_dir/ltmain.sh"
15937
15938
15939 # We use sed instead of cat because bash on DJGPP gets confused if
15940 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15941 # text mode, it properly converts lines to CR/LF. This bash problem
15942 # is reportedly fixed, but why not run on old versions too?
15943 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15944 || (rm -f "$cfgfile"; exit 1)
15945
15946 case $xsi_shell in
15947 yes)
15948 cat << \_LT_EOF >> "$cfgfile"
15949# func_dirname file append nondir_replacement
15950# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15951# otherwise set result to NONDIR_REPLACEMENT.
15952func_dirname ()
15953{
15954 case ${1} in
15955 */*) func_dirname_result="${1%/*}${2}" ;;
15956 * ) func_dirname_result="${3}" ;;
15957 esac
15958}
15959
15960# func_basename file
15961func_basename ()
15962{
15963 func_basename_result="${1##*/}"
15964}
15965
15966# func_stripname prefix suffix name
15967# strip PREFIX and SUFFIX off of NAME.
15968# PREFIX and SUFFIX must not contain globbing or regex special
15969# characters, hashes, percent signs, but SUFFIX may contain a leading
15970# dot (in which case that matches only a dot).
15971func_stripname ()
15972{
15973 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15974 # positional parameters, so assign one to ordinary parameter first.
15975 func_stripname_result=${3}
15976 func_stripname_result=${func_stripname_result#"${1}"}
15977 func_stripname_result=${func_stripname_result%"${2}"}
15978}
15979
15980# func_opt_split
15981func_opt_split ()
15982{
15983 func_opt_split_opt=${1%%=*}
15984 func_opt_split_arg=${1#*=}
15985}
15986
15987# func_lo2o object
15988func_lo2o ()
15989{
15990 case ${1} in
15991 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15992 *) func_lo2o_result=${1} ;;
15993 esac
15994}
15995_LT_EOF
15996 ;;
15997 *) # Bourne compatible functions.
15998 cat << \_LT_EOF >> "$cfgfile"
15999# func_dirname file append nondir_replacement
16000# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16001# otherwise set result to NONDIR_REPLACEMENT.
16002func_dirname ()
16003{
16004 # Extract subdirectory from the argument.
16005 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16006 if test "X$func_dirname_result" = "X${1}"; then
16007 func_dirname_result="${3}"
16008 else
16009 func_dirname_result="$func_dirname_result${2}"
16010 fi
16011}
16012
16013# func_basename file
16014func_basename ()
16015{
16016 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16017}
16018
16019# func_stripname prefix suffix name
16020# strip PREFIX and SUFFIX off of NAME.
16021# PREFIX and SUFFIX must not contain globbing or regex special
16022# characters, hashes, percent signs, but SUFFIX may contain a leading
16023# dot (in which case that matches only a dot).
16024# func_strip_suffix prefix name
16025func_stripname ()
16026{
16027 case ${2} in
16028 .*) func_stripname_result=`$ECHO "X${3}" \
16029 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16030 *) func_stripname_result=`$ECHO "X${3}" \
16031 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16032 esac
16033}
16034
16035# sed scripts:
16036my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16037my_sed_long_arg='1s/^-[^=]*=//'
16038
16039# func_opt_split
16040func_opt_split ()
16041{
16042 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16043 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16044}
16045
16046# func_lo2o object
16047func_lo2o ()
16048{
16049 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16050}
16051_LT_EOF
16052esac
16053
16054case $lt_shell_append in
16055 yes)
16056 cat << \_LT_EOF >> "$cfgfile"
16057
16058# func_append var value
16059# Append VALUE to the end of shell variable VAR.
16060func_append ()
16061{
16062 eval "$1+=\$2"
16063}
16064_LT_EOF
16065 ;;
16066 *)
16067 cat << \_LT_EOF >> "$cfgfile"
16068
16069# func_append var value
16070# Append VALUE to the end of shell variable VAR.
16071func_append ()
16072{
16073 eval "$1=\$$1\$2"
16074}
16075_LT_EOF
16076 ;;
16077 esac
16078
16079
16080 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16081 || (rm -f "$cfgfile"; exit 1)
16082
16083 mv -f "$cfgfile" "$ofile" ||
16084 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16085 chmod +x "$ofile"
16086
13b2be9c 16087 ;;
20e95c23
DJ
16088 default-1 )
16089 for ac_file in $CONFIG_FILES; do
16090 # Support "outfile[:infile[:infile...]]"
16091 case "$ac_file" in
16092 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16093 esac
16094 # PO directories have a Makefile.in generated from Makefile.in.in.
16095 case "$ac_file" in */Makefile.in)
16096 # Adjust a relative srcdir.
16097 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16098 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16099 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16100 # In autoconf-2.13 it is called $ac_given_srcdir.
16101 # In autoconf-2.50 it is called $srcdir.
16102 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16103 case "$ac_given_srcdir" in
16104 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16105 /*) top_srcdir="$ac_given_srcdir" ;;
16106 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16107 esac
16108 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16109 rm -f "$ac_dir/POTFILES"
16110 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16111 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16112 POMAKEFILEDEPS="POTFILES.in"
16113 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16114 # on $ac_dir but don't depend on user-specified configuration
16115 # parameters.
16116 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16117 # The LINGUAS file contains the set of available languages.
16118 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16119 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16120 fi
16121 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16122 # Hide the ALL_LINGUAS assigment from automake.
16123 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16124 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16125 else
16126 # The set of available languages was given in configure.in.
16127 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16128 fi
16129 case "$ac_given_srcdir" in
16130 .) srcdirpre= ;;
16131 *) srcdirpre='$(srcdir)/' ;;
16132 esac
16133 POFILES=
16134 GMOFILES=
16135 UPDATEPOFILES=
16136 DUMMYPOFILES=
16137 for lang in $ALL_LINGUAS; do
16138 POFILES="$POFILES $srcdirpre$lang.po"
16139 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16140 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16141 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16142 done
16143 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16144 # environment variable.
16145 INST_LINGUAS=
16146 if test -n "$ALL_LINGUAS"; then
16147 for presentlang in $ALL_LINGUAS; do
16148 useit=no
16149 if test "%UNSET%" != "$LINGUAS"; then
16150 desiredlanguages="$LINGUAS"
16151 else
16152 desiredlanguages="$ALL_LINGUAS"
16153 fi
16154 for desiredlang in $desiredlanguages; do
16155 # Use the presentlang catalog if desiredlang is
16156 # a. equal to presentlang, or
16157 # b. a variant of presentlang (because in this case,
16158 # presentlang can be used as a fallback for messages
16159 # which are not translated in the desiredlang catalog).
16160 case "$desiredlang" in
16161 "$presentlang"*) useit=yes;;
16162 esac
16163 done
16164 if test $useit = yes; then
16165 INST_LINGUAS="$INST_LINGUAS $presentlang"
16166 fi
16167 done
16168 fi
16169 CATALOGS=
16170 if test -n "$INST_LINGUAS"; then
16171 for lang in $INST_LINGUAS; do
16172 CATALOGS="$CATALOGS $lang.gmo"
16173 done
16174 fi
16175 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16176 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"
16177 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16178 if test -f "$f"; then
16179 case "$f" in
16180 *.orig | *.bak | *~) ;;
16181 *) cat "$f" >> "$ac_dir/Makefile" ;;
16182 esac
16183 fi
16184 done
16185 fi
16186 ;;
16187 esac
16188 done ;;
13b2be9c 16189 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
16190 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16191 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16192 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16193 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16194 if test "x$cgen_cpu_prefix" != x ; then
16195 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16196 fi ;;
13b2be9c
DJ
16197 esac
16198done
16199_ACEOF
16200
16201cat >>$CONFIG_STATUS <<\_ACEOF
16202
16203{ (exit 0); exit 0; }
16204_ACEOF
252b5132 16205chmod +x $CONFIG_STATUS
13b2be9c
DJ
16206ac_clean_files=$ac_clean_files_save
16207
16208
16209# configure is writing to config.log, and then calls config.status.
16210# config.status does its own redirection, appending to config.log.
16211# Unfortunately, on DOS this fails, as config.log is still kept open
16212# by configure, so config.status won't be able to write to it; its
16213# output is simply discarded. So we exec the FD to /dev/null,
16214# effectively closing config.log, so it can be properly (re)opened and
16215# appended to by config.status. When coming back to configure, we
16216# need to make the FD available again.
16217if test "$no_create" != yes; then
16218 ac_cs_success=:
16219 ac_config_status_args=
16220 test "$silent" = yes &&
16221 ac_config_status_args="$ac_config_status_args --quiet"
16222 exec 5>/dev/null
16223 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16224 exec 5>>config.log
16225 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16226 # would make configure fail if this is the last instruction.
16227 $ac_cs_success || { (exit 1); exit 1; }
16228fi
252b5132 16229
This page took 1.642054 seconds and 4 git commands to generate.