]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/configure
* regenerated files from updating libtool.
[thirdparty/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
ab509236 3# Generated by GNU Autoconf 2.59.
252b5132 4#
ab509236 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
13b2be9c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
ab509236 22DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
23
24# Support unset when possible.
ab509236 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
ab509236 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
ab509236 221 test -d ./-p && rmdir ./-p
13b2be9c
DJ
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
ab509236 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
229
230# Sed expression to map a string onto a valid variable name.
ab509236 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
13b2be9c
DJ
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
13b2be9c
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
13b2be9c
DJ
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="as.h"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
d7040cdb 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
13b2be9c 462ac_subst_files=''
252b5132
RH
463
464# Initialize some variables set by options.
13b2be9c
DJ
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
13b2be9c 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
13b2be9c
DJ
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
13b2be9c 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
13b2be9c 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
13b2be9c 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 526 build_alias=$ac_optarg ;;
252b5132
RH
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
13b2be9c 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
13b2be9c 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
13b2be9c
DJ
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
13b2be9c 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
13b2be9c
DJ
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
13b2be9c 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
13b2be9c 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
13b2be9c
DJ
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
13b2be9c 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 589 host_alias=$ac_optarg ;;
252b5132
RH
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 606 libdir=$ac_optarg ;;
252b5132
RH
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
13b2be9c 613 libexecdir=$ac_optarg ;;
252b5132
RH
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
13b2be9c 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 627 mandir=$ac_optarg ;;
252b5132
RH
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 634 | --no-cr | --no-c | -n)
252b5132
RH
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 653 prefix=$ac_optarg ;;
252b5132
RH
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 660 program_prefix=$ac_optarg ;;
252b5132
RH
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 667 program_suffix=$ac_optarg ;;
252b5132
RH
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 684 program_transform_name=$ac_optarg ;;
252b5132
RH
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
13b2be9c 694 sbindir=$ac_optarg ;;
252b5132
RH
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
13b2be9c 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
13b2be9c 710 site=$ac_optarg ;;
76bff705 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 715 srcdir=$ac_optarg ;;
252b5132
RH
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
13b2be9c
DJ
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
13b2be9c 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
13b2be9c
DJ
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
13b2be9c
DJ
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
13b2be9c 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
13b2be9c 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
13b2be9c
DJ
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 766 x_includes=$ac_optarg ;;
252b5132
RH
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 773 x_libraries=$ac_optarg ;;
252b5132 774
13b2be9c
DJ
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
13b2be9c
DJ
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
252b5132 790 *)
13b2be9c
DJ
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
13b2be9c
DJ
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
c8615825 805fi
c8615825 806
13b2be9c
DJ
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
252b5132 817
13b2be9c
DJ
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ab509236 820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
13b2be9c
DJ
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
252b5132
RH
827 esac
828done
829
13b2be9c
DJ
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
9b2b7d69 847
13b2be9c
DJ
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
13b2be9c
DJ
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132
RH
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
13b2be9c
DJ
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
13b2be9c
DJ
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
13b2be9c
DJ
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
d6d788bd 922
13b2be9c
DJ
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
9b2b7d69 931
13b2be9c 932Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 933
13b2be9c
DJ
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 936
13b2be9c 937Defaults for the options are specified in brackets.
9b2b7d69 938
13b2be9c
DJ
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
ab509236 955 [$ac_default_prefix]
13b2be9c 956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ab509236 957 [PREFIX]
9b2b7d69 958
13b2be9c
DJ
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
9b2b7d69 963
13b2be9c 964For better control, use the options below.
9b2b7d69 965
13b2be9c
DJ
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
9b2b7d69 980
13b2be9c 981 cat <<\_ACEOF
9b2b7d69 982
13b2be9c
DJ
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 987
13b2be9c
DJ
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
9b2b7d69 993fi
9b2b7d69 994
13b2be9c 995if test -n "$ac_init_help"; then
9b2b7d69 996
13b2be9c 997 cat <<\_ACEOF
9b2b7d69 998
13b2be9c
DJ
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
13b2be9c 1010 --disable-libtool-lock avoid locking (might break parallel builds)
241a6c40 1011 --enable-targets alternative target configurations besides the primary
13b2be9c 1012 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
c43a438d 1013 --enable-checking enable run-time checks
241a6c40
AM
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1016 --disable-nls do not use Native Language Support
ab509236
L
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
9b2b7d69 1019
13b2be9c
DJ
1020Optional Packages:
1021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1023 --with-pic try to use only PIC/non-PIC objects [default=use
1024 both]
1025 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9b2b7d69 1026
13b2be9c
DJ
1027Some influential environment variables:
1028 CC C compiler command
1029 CFLAGS C compiler flags
1030 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1031 nonstandard directory <lib dir>
1032 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033 headers in a nonstandard directory <include dir>
1034 CPP C preprocessor
1035
1036Use these variables to override the choices made by `configure' or to help
1037it to find libraries and programs with nonstandard names/locations.
1038
1039_ACEOF
9b2b7d69 1040fi
9b2b7d69 1041
13b2be9c
DJ
1042if test "$ac_init_help" = "recursive"; then
1043 # If there are subdirs, report their specific --help.
1044 ac_popdir=`pwd`
1045 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1046 test -d $ac_dir || continue
1047 ac_builddir=.
1048
1049if test "$ac_dir" != .; then
1050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1051 # A "../" for each directory in $ac_dir_suffix.
1052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1053else
1054 ac_dir_suffix= ac_top_builddir=
1055fi
9b2b7d69 1056
13b2be9c
DJ
1057case $srcdir in
1058 .) # No --srcdir option. We are building in place.
1059 ac_srcdir=.
1060 if test -z "$ac_top_builddir"; then
1061 ac_top_srcdir=.
1062 else
1063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
c8615825 1064 fi ;;
13b2be9c
DJ
1065 [\\/]* | ?:[\\/]* ) # Absolute path.
1066 ac_srcdir=$srcdir$ac_dir_suffix;
1067 ac_top_srcdir=$srcdir ;;
1068 *) # Relative path.
1069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
c8615825 1071esac
ab509236
L
1072
1073# Do not use `cd foo && pwd` to compute absolute paths, because
1074# the directories may not exist.
1075case `pwd` in
1076.) ac_abs_builddir="$ac_dir";;
1077*)
1078 case "$ac_dir" in
1079 .) ac_abs_builddir=`pwd`;;
1080 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1081 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1082 esac;;
1083esac
1084case $ac_abs_builddir in
1085.) ac_abs_top_builddir=${ac_top_builddir}.;;
1086*)
1087 case ${ac_top_builddir}. in
1088 .) ac_abs_top_builddir=$ac_abs_builddir;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1090 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1091 esac;;
1092esac
1093case $ac_abs_builddir in
1094.) ac_abs_srcdir=$ac_srcdir;;
1095*)
1096 case $ac_srcdir in
1097 .) ac_abs_srcdir=$ac_abs_builddir;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1099 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1100 esac;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_top_srcdir=$ac_top_srcdir;;
1104*)
1105 case $ac_top_srcdir in
1106 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1108 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1109 esac;;
1110esac
13b2be9c
DJ
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
ab509236 1121 test -f $ac_srcdir/configure.in; then
13b2be9c
DJ
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1ad12f97 1127 cd $ac_popdir
13b2be9c
DJ
1128 done
1129fi
6840198f 1130
13b2be9c
DJ
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
c8615825 1134
ab509236 1135Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
1136This configure script is free software; the Free Software Foundation
1137gives unlimited permission to copy, distribute and modify it.
1138_ACEOF
1139 exit 0
1140fi
1141exec 5>config.log
1142cat >&5 <<_ACEOF
1143This file contains any messages produced by compilers while
1144running configure, to aid debugging if configure makes a mistake.
c8615825 1145
13b2be9c 1146It was created by $as_me, which was
ab509236 1147generated by GNU Autoconf 2.59. Invocation command line was
c8615825 1148
13b2be9c 1149 $ $0 $@
c8615825 1150
13b2be9c
DJ
1151_ACEOF
1152{
1153cat <<_ASUNAME
1154## --------- ##
1155## Platform. ##
1156## --------- ##
1157
1158hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1159uname -m = `(uname -m) 2>/dev/null || echo unknown`
1160uname -r = `(uname -r) 2>/dev/null || echo unknown`
1161uname -s = `(uname -s) 2>/dev/null || echo unknown`
1162uname -v = `(uname -v) 2>/dev/null || echo unknown`
1163
1164/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1165/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1166
1167/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1168/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1169/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1170hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1171/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1172/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1173/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1174
1175_ASUNAME
1176
1177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1178for as_dir in $PATH
1179do
1180 IFS=$as_save_IFS
1181 test -z "$as_dir" && as_dir=.
1182 echo "PATH: $as_dir"
1183done
9b2b7d69 1184
13b2be9c 1185} >&5
6840198f 1186
13b2be9c 1187cat >&5 <<_ACEOF
c8615825 1188
9b2b7d69 1189
13b2be9c
DJ
1190## ----------- ##
1191## Core tests. ##
1192## ----------- ##
87ccc1b0 1193
13b2be9c 1194_ACEOF
9b2b7d69 1195
13b2be9c
DJ
1196
1197# Keep a trace of the command line.
1198# Strip out --no-create and --no-recursion so they do not pile up.
1199# Strip out --silent because we don't want to record it for future runs.
1200# Also quote any args containing shell meta-characters.
1201# Make two passes to allow for proper duplicate-argument suppression.
1202ac_configure_args=
1203ac_configure_args0=
1204ac_configure_args1=
1205ac_sep=
1206ac_must_keep_next=false
1207for ac_pass in 1 2
1208do
1209 for ac_arg
1210 do
1211 case $ac_arg in
1212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 continue ;;
1216 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1217 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1218 esac
1219 case $ac_pass in
1220 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1221 2)
1222 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1223 if test $ac_must_keep_next = true; then
ab509236 1224 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1225 else
ab509236
L
1226 case $ac_arg in
1227 *=* | --config-cache | -C | -disable-* | --disable-* \
1228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1230 | -with-* | --with-* | -without-* | --without-* | --x)
1231 case "$ac_configure_args0 " in
1232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1233 esac
1234 ;;
1235 -* ) ac_must_keep_next=true ;;
1236 esac
13b2be9c
DJ
1237 fi
1238 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1239 # Get rid of the leading space.
1240 ac_sep=" "
c8615825
AM
1241 ;;
1242 esac
1243 done
13b2be9c
DJ
1244done
1245$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1246$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1247
1248# When interrupted or exit'd, cleanup temporary files, and complete
1249# config.log. We remove comments because anyway the quotes in there
1250# would cause problems or look ugly.
1251# WARNING: Be sure not to use single quotes in there, as some shells,
1252# such as our DU 5.0 friend, will then `close' the trap.
1253trap 'exit_status=$?
1254 # Save into config.log some information that might help in debugging.
1255 {
1256 echo
1257
1258 cat <<\_ASBOX
1259## ---------------- ##
1260## Cache variables. ##
1261## ---------------- ##
1262_ASBOX
1263 echo
1264 # The following way of writing the cache mishandles newlines in values,
1265{
1266 (set) 2>&1 |
1267 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1268 *ac_space=\ *)
1269 sed -n \
ab509236
L
1270 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13b2be9c
DJ
1272 ;;
1273 *)
1274 sed -n \
ab509236 1275 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
1276 ;;
1277 esac;
1278}
1279 echo
1280
1281 cat <<\_ASBOX
1282## ----------------- ##
1283## Output variables. ##
1284## ----------------- ##
1285_ASBOX
1286 echo
1287 for ac_var in $ac_subst_vars
1288 do
1289 eval ac_val=$`echo $ac_var`
1290 echo "$ac_var='"'"'$ac_val'"'"'"
1291 done | sort
1292 echo
1293
1294 if test -n "$ac_subst_files"; then
1295 cat <<\_ASBOX
1296## ------------- ##
1297## Output files. ##
1298## ------------- ##
1299_ASBOX
1300 echo
1301 for ac_var in $ac_subst_files
1302 do
1303 eval ac_val=$`echo $ac_var`
ab509236 1304 echo "$ac_var='"'"'$ac_val'"'"'"
13b2be9c
DJ
1305 done | sort
1306 echo
1307 fi
1308
1309 if test -s confdefs.h; then
1310 cat <<\_ASBOX
1311## ----------- ##
1312## confdefs.h. ##
1313## ----------- ##
1314_ASBOX
1315 echo
1316 sed "/^$/d" confdefs.h | sort
1317 echo
1318 fi
1319 test "$ac_signal" != 0 &&
1320 echo "$as_me: caught signal $ac_signal"
1321 echo "$as_me: exit $exit_status"
1322 } >&5
ab509236 1323 rm -f core *.core &&
13b2be9c
DJ
1324 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1325 exit $exit_status
1326 ' 0
1327for ac_signal in 1 2 13 15; do
1328 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1329done
1330ac_signal=0
1331
1332# confdefs.h avoids OS command line length limits that DEFS can exceed.
1333rm -rf conftest* confdefs.h
1334# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1335echo >confdefs.h
1336
1337# Predefined preprocessor variables.
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_NAME "$PACKAGE_NAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_VERSION "$PACKAGE_VERSION"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_STRING "$PACKAGE_STRING"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1361_ACEOF
1362
1363
1364# Let the site file select an alternate cache file if it wants to.
1365# Prefer explicitly selected file to automatically selected ones.
1366if test -z "$CONFIG_SITE"; then
1367 if test "x$prefix" != xNONE; then
1368 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1369 else
1370 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1371 fi
1372fi
1373for ac_site_file in $CONFIG_SITE; do
1374 if test -r "$ac_site_file"; then
1375 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1376echo "$as_me: loading site script $ac_site_file" >&6;}
1377 sed 's/^/| /' "$ac_site_file" >&5
1378 . "$ac_site_file"
1379 fi
1380done
1381
1382if test -r "$cache_file"; then
1383 # Some versions of bash will fail to source /dev/null (special
1384 # files actually), so we avoid doing that.
1385 if test -f "$cache_file"; then
1386 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1387echo "$as_me: loading cache $cache_file" >&6;}
1388 case $cache_file in
1389 [\\/]* | ?:[\\/]* ) . $cache_file;;
1390 *) . ./$cache_file;;
1391 esac
1392 fi
1393else
1394 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1395echo "$as_me: creating cache $cache_file" >&6;}
1396 >$cache_file
1397fi
1398
1399# Check that the precious variables saved in the cache have kept the same
1400# value.
1401ac_cache_corrupted=false
1402for ac_var in `(set) 2>&1 |
ab509236 1403 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13b2be9c
DJ
1404 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1405 eval ac_new_set=\$ac_env_${ac_var}_set
1406 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1407 eval ac_new_val="\$ac_env_${ac_var}_value"
1408 case $ac_old_set,$ac_new_set in
1409 set,)
1410 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1411echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1412 ac_cache_corrupted=: ;;
1413 ,set)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,);;
1418 *)
1419 if test "x$ac_old_val" != "x$ac_new_val"; then
ab509236 1420 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1421echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ab509236 1422 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
13b2be9c 1423echo "$as_me: former value: $ac_old_val" >&2;}
ab509236 1424 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
13b2be9c 1425echo "$as_me: current value: $ac_new_val" >&2;}
ab509236 1426 ac_cache_corrupted=:
13b2be9c
DJ
1427 fi;;
1428 esac
1429 # Pass precious variables to config.status.
1430 if test "$ac_new_set" = set; then
1431 case $ac_new_val in
1432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1433 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1434 *) ac_arg=$ac_var=$ac_new_val ;;
1435 esac
1436 case " $ac_configure_args " in
1437 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1438 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1439 esac
1440 fi
1441done
1442if $ac_cache_corrupted; then
1443 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1444echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1445 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1446echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1447 { (exit 1); exit 1; }; }
1448fi
1449
1450ac_ext=c
1451ac_cpp='$CPP $CPPFLAGS'
1452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1454ac_compiler_gnu=$ac_cv_c_compiler_gnu
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475ac_aux_dir=
1476for ac_dir in .. $srcdir/..; do
1477 if test -f $ac_dir/install-sh; then
1478 ac_aux_dir=$ac_dir
1479 ac_install_sh="$ac_aux_dir/install-sh -c"
1480 break
1481 elif test -f $ac_dir/install.sh; then
1482 ac_aux_dir=$ac_dir
1483 ac_install_sh="$ac_aux_dir/install.sh -c"
1484 break
1485 elif test -f $ac_dir/shtool; then
1486 ac_aux_dir=$ac_dir
1487 ac_install_sh="$ac_aux_dir/shtool install -c"
1488 break
1489 fi
1490done
1491if test -z "$ac_aux_dir"; then
1492 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1493echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1494 { (exit 1); exit 1; }; }
1495fi
1496ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1497ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1498ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1499
1500# Make sure we can run config.sub.
1501$ac_config_sub sun4 >/dev/null 2>&1 ||
1502 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1503echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1504 { (exit 1); exit 1; }; }
1505
1506echo "$as_me:$LINENO: checking build system type" >&5
1507echo $ECHO_N "checking build system type... $ECHO_C" >&6
1508if test "${ac_cv_build+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 ac_cv_build_alias=$build_alias
1512test -z "$ac_cv_build_alias" &&
1513 ac_cv_build_alias=`$ac_config_guess`
1514test -z "$ac_cv_build_alias" &&
1515 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1516echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1517 { (exit 1); exit 1; }; }
1518ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1519 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1520echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1521 { (exit 1); exit 1; }; }
1522
1523fi
1524echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1525echo "${ECHO_T}$ac_cv_build" >&6
1526build=$ac_cv_build
1527build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1528build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1529build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1530
1531
1532echo "$as_me:$LINENO: checking host system type" >&5
1533echo $ECHO_N "checking host system type... $ECHO_C" >&6
1534if test "${ac_cv_host+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537 ac_cv_host_alias=$host_alias
1538test -z "$ac_cv_host_alias" &&
1539 ac_cv_host_alias=$ac_cv_build_alias
1540ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1541 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1542echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1543 { (exit 1); exit 1; }; }
1544
1545fi
1546echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1547echo "${ECHO_T}$ac_cv_host" >&6
1548host=$ac_cv_host
1549host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1550host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1551host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552
1553
1554echo "$as_me:$LINENO: checking target system type" >&5
1555echo $ECHO_N "checking target system type... $ECHO_C" >&6
1556if test "${ac_cv_target+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558else
1559 ac_cv_target_alias=$target_alias
1560test "x$ac_cv_target_alias" = "x" &&
1561 ac_cv_target_alias=$ac_cv_host_alias
1562ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1564echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1566
1567fi
1568echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1569echo "${ECHO_T}$ac_cv_target" >&6
1570target=$ac_cv_target
1571target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574
1575
1576# The aliases save the names the user supplied, while $host etc.
1577# will get canonicalized.
1578test -n "$target_alias" &&
1579 test "$program_prefix$program_suffix$program_transform_name" = \
1580 NONENONEs,x,x, &&
1581 program_prefix=${target_alias}-
1582ac_ext=c
1583ac_cpp='$CPP $CPPFLAGS'
1584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1586ac_compiler_gnu=$ac_cv_c_compiler_gnu
1587if test -n "$ac_tool_prefix"; then
1588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1589set dummy ${ac_tool_prefix}gcc; ac_word=$2
1590echo "$as_me:$LINENO: checking for $ac_word" >&5
1591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592if test "${ac_cv_prog_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 if test -n "$CC"; then
1596 ac_cv_prog_CC="$CC" # Let the user override the test.
1597else
1598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1608 fi
1609done
1610done
1611
1612fi
1613fi
1614CC=$ac_cv_prog_CC
1615if test -n "$CC"; then
1616 echo "$as_me:$LINENO: result: $CC" >&5
1617echo "${ECHO_T}$CC" >&6
1618else
1619 echo "$as_me:$LINENO: result: no" >&5
1620echo "${ECHO_T}no" >&6
1621fi
1622
1623fi
1624if test -z "$ac_cv_prog_CC"; then
1625 ac_ct_CC=$CC
1626 # Extract the first word of "gcc", so it can be a program name with args.
1627set dummy gcc; ac_word=$2
1628echo "$as_me:$LINENO: checking for $ac_word" >&5
1629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 if test -n "$ac_ct_CC"; then
1634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1635else
1636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637for as_dir in $PATH
1638do
1639 IFS=$as_save_IFS
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643 ac_cv_prog_ac_ct_CC="gcc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 break 2
1646 fi
1647done
1648done
1649
1650fi
1651fi
1652ac_ct_CC=$ac_cv_prog_ac_ct_CC
1653if test -n "$ac_ct_CC"; then
1654 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1655echo "${ECHO_T}$ac_ct_CC" >&6
1656else
1657 echo "$as_me:$LINENO: result: no" >&5
1658echo "${ECHO_T}no" >&6
1659fi
1660
1661 CC=$ac_ct_CC
1662else
1663 CC="$ac_cv_prog_CC"
1664fi
1665
1666if test -z "$CC"; then
1667 if test -n "$ac_tool_prefix"; then
1668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1669set dummy ${ac_tool_prefix}cc; ac_word=$2
1670echo "$as_me:$LINENO: checking for $ac_word" >&5
1671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672if test "${ac_cv_prog_CC+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 if test -n "$CC"; then
1676 ac_cv_prog_CC="$CC" # Let the user override the test.
1677else
1678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679for as_dir in $PATH
1680do
1681 IFS=$as_save_IFS
1682 test -z "$as_dir" && as_dir=.
1683 for ac_exec_ext in '' $ac_executable_extensions; do
1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685 ac_cv_prog_CC="${ac_tool_prefix}cc"
1686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 break 2
1688 fi
1689done
1690done
1691
1692fi
1693fi
1694CC=$ac_cv_prog_CC
1695if test -n "$CC"; then
1696 echo "$as_me:$LINENO: result: $CC" >&5
1697echo "${ECHO_T}$CC" >&6
1698else
1699 echo "$as_me:$LINENO: result: no" >&5
1700echo "${ECHO_T}no" >&6
1701fi
1702
1703fi
1704if test -z "$ac_cv_prog_CC"; then
1705 ac_ct_CC=$CC
1706 # Extract the first word of "cc", so it can be a program name with args.
1707set dummy cc; ac_word=$2
1708echo "$as_me:$LINENO: checking for $ac_word" >&5
1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713 if test -n "$ac_ct_CC"; then
1714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715else
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_ac_ct_CC="cc"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1726 fi
1727done
1728done
1729
1730fi
1731fi
1732ac_ct_CC=$ac_cv_prog_ac_ct_CC
1733if test -n "$ac_ct_CC"; then
1734 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735echo "${ECHO_T}$ac_ct_CC" >&6
1736else
1737 echo "$as_me:$LINENO: result: no" >&5
1738echo "${ECHO_T}no" >&6
1739fi
1740
1741 CC=$ac_ct_CC
1742else
1743 CC="$ac_cv_prog_CC"
1744fi
1745
1746fi
1747if test -z "$CC"; then
1748 # Extract the first word of "cc", so it can be a program name with args.
1749set dummy cc; ac_word=$2
1750echo "$as_me:$LINENO: checking for $ac_word" >&5
1751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
1757else
1758 ac_prog_rejected=no
1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760for as_dir in $PATH
1761do
1762 IFS=$as_save_IFS
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1767 ac_prog_rejected=yes
1768 continue
1769 fi
1770 ac_cv_prog_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 break 2
1773 fi
1774done
1775done
1776
1777if test $ac_prog_rejected = yes; then
1778 # We found a bogon in the path, so make sure we never use it.
1779 set dummy $ac_cv_prog_CC
1780 shift
1781 if test $# != 0; then
1782 # We chose a different compiler from the bogus one.
1783 # However, it has the same basename, so the bogon will be chosen
1784 # first if we set CC to just the basename; use the full file name.
1785 shift
1786 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1787 fi
1788fi
1789fi
1790fi
1791CC=$ac_cv_prog_CC
1792if test -n "$CC"; then
1793 echo "$as_me:$LINENO: result: $CC" >&5
1794echo "${ECHO_T}$CC" >&6
1795else
1796 echo "$as_me:$LINENO: result: no" >&5
1797echo "${ECHO_T}no" >&6
1798fi
1799
1800fi
1801if test -z "$CC"; then
1802 if test -n "$ac_tool_prefix"; then
1803 for ac_prog in cl
1804 do
1805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1806set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818 IFS=$as_save_IFS
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 break 2
1825 fi
1826done
1827done
1828
1829fi
1830fi
1831CC=$ac_cv_prog_CC
1832if test -n "$CC"; then
1833 echo "$as_me:$LINENO: result: $CC" >&5
1834echo "${ECHO_T}$CC" >&6
1835else
1836 echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840 test -n "$CC" && break
1841 done
1842fi
1843if test -z "$CC"; then
1844 ac_ct_CC=$CC
1845 for ac_prog in cl
1846do
1847 # Extract the first word of "$ac_prog", so it can be a program name with args.
1848set dummy $ac_prog; ac_word=$2
1849echo "$as_me:$LINENO: checking for $ac_word" >&5
1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853else
1854 if test -n "$ac_ct_CC"; then
1855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1856else
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_ac_ct_CC="$ac_prog"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1867 fi
1868done
1869done
1870
1871fi
1872fi
1873ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874if test -n "$ac_ct_CC"; then
1875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876echo "${ECHO_T}$ac_ct_CC" >&6
1877else
1878 echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
1880fi
1881
1882 test -n "$ac_ct_CC" && break
1883done
1884
1885 CC=$ac_ct_CC
1886fi
1887
1888fi
1889
1890
1891test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1892See \`config.log' for more details." >&5
1893echo "$as_me: error: no acceptable C compiler found in \$PATH
1894See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
1896
1897# Provide some information about the compiler.
1898echo "$as_me:$LINENO:" \
1899 "checking for C compiler version" >&5
1900ac_compiler=`set X $ac_compile; echo $2`
1901{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1902 (eval $ac_compiler --version </dev/null >&5) 2>&5
1903 ac_status=$?
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }
1906{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1907 (eval $ac_compiler -v </dev/null >&5) 2>&5
1908 ac_status=$?
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); }
1911{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1912 (eval $ac_compiler -V </dev/null >&5) 2>&5
1913 ac_status=$?
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }
1916
1917cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1918/* confdefs.h. */
1919_ACEOF
1920cat confdefs.h >>conftest.$ac_ext
1921cat >>conftest.$ac_ext <<_ACEOF
1922/* end confdefs.h. */
1923
1924int
1925main ()
1926{
1927
1928 ;
1929 return 0;
1930}
1931_ACEOF
1932ac_clean_files_save=$ac_clean_files
1933ac_clean_files="$ac_clean_files a.out a.exe b.out"
1934# Try to create an executable without -o first, disregard a.out.
1935# It will help us diagnose broken compilers, and finding out an intuition
1936# of exeext.
ab509236
L
1937echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1938echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
13b2be9c
DJ
1939ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1940if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1941 (eval $ac_link_default) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 # Find the output, starting from the most likely. This scheme is
1946# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1947# resort.
1948
1949# Be careful to initialize this variable, since it used to be cached.
1950# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1951ac_cv_exeext=
1952# b.out is created by i960 compilers.
1953for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1954do
1955 test -f "$ac_file" || continue
1956 case $ac_file in
1957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ab509236 1958 ;;
13b2be9c 1959 conftest.$ac_ext )
ab509236
L
1960 # This is the source file.
1961 ;;
13b2be9c 1962 [ab].out )
ab509236
L
1963 # We found the default executable, but exeext='' is most
1964 # certainly right.
1965 break;;
13b2be9c 1966 *.* )
ab509236
L
1967 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1968 # FIXME: I believe we export ac_cv_exeext for Libtool,
1969 # but it would be cool to find out if it's true. Does anybody
1970 # maintain Libtool? --akim.
1971 export ac_cv_exeext
1972 break;;
13b2be9c 1973 * )
ab509236 1974 break;;
13b2be9c
DJ
1975 esac
1976done
1977else
1978 echo "$as_me: failed program was:" >&5
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1982See \`config.log' for more details." >&5
1983echo "$as_me: error: C compiler cannot create executables
1984See \`config.log' for more details." >&2;}
1985 { (exit 77); exit 77; }; }
1986fi
1987
1988ac_exeext=$ac_cv_exeext
1989echo "$as_me:$LINENO: result: $ac_file" >&5
1990echo "${ECHO_T}$ac_file" >&6
1991
1992# Check the compiler produces executables we can run. If not, either
1993# the compiler is broken, or we cross compile.
1994echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1995echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1996# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1997# If not cross compiling, check that we can run a simple program.
1998if test "$cross_compiling" != yes; then
1999 if { ac_try='./$ac_file'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 cross_compiling=no
2006 else
2007 if test "$cross_compiling" = maybe; then
2008 cross_compiling=yes
2009 else
2010 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2011If you meant to cross compile, use \`--host'.
2012See \`config.log' for more details." >&5
2013echo "$as_me: error: cannot run C compiled programs.
2014If you meant to cross compile, use \`--host'.
2015See \`config.log' for more details." >&2;}
2016 { (exit 1); exit 1; }; }
2017 fi
2018 fi
2019fi
2020echo "$as_me:$LINENO: result: yes" >&5
2021echo "${ECHO_T}yes" >&6
2022
2023rm -f a.out a.exe conftest$ac_cv_exeext b.out
2024ac_clean_files=$ac_clean_files_save
2025# Check the compiler produces executables we can run. If not, either
2026# the compiler is broken, or we cross compile.
2027echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2028echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2029echo "$as_me:$LINENO: result: $cross_compiling" >&5
2030echo "${ECHO_T}$cross_compiling" >&6
2031
2032echo "$as_me:$LINENO: checking for suffix of executables" >&5
2033echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2035 (eval $ac_link) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; then
2039 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2040# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2041# work properly (i.e., refer to `conftest.exe'), while it won't with
2042# `rm'.
2043for ac_file in conftest.exe conftest conftest.*; do
2044 test -f "$ac_file" || continue
2045 case $ac_file in
2046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2047 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236
L
2048 export ac_cv_exeext
2049 break;;
13b2be9c
DJ
2050 * ) break;;
2051 esac
2052done
2053else
2054 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2055See \`config.log' for more details." >&5
2056echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2057See \`config.log' for more details." >&2;}
2058 { (exit 1); exit 1; }; }
2059fi
2060
2061rm -f conftest$ac_cv_exeext
2062echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2063echo "${ECHO_T}$ac_cv_exeext" >&6
2064
2065rm -f conftest.$ac_ext
2066EXEEXT=$ac_cv_exeext
2067ac_exeext=$EXEEXT
2068echo "$as_me:$LINENO: checking for suffix of object files" >&5
2069echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2070if test "${ac_cv_objext+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2074/* confdefs.h. */
2075_ACEOF
2076cat confdefs.h >>conftest.$ac_ext
2077cat >>conftest.$ac_ext <<_ACEOF
2078/* end confdefs.h. */
2079
2080int
2081main ()
2082{
2083
2084 ;
2085 return 0;
2086}
2087_ACEOF
2088rm -f conftest.o conftest.obj
2089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090 (eval $ac_compile) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; then
2094 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2095 case $ac_file in
2096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2098 break;;
2099 esac
2100done
2101else
2102 echo "$as_me: failed program was:" >&5
2103sed 's/^/| /' conftest.$ac_ext >&5
2104
2105{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2106See \`config.log' for more details." >&5
2107echo "$as_me: error: cannot compute suffix of object files: cannot compile
2108See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2110fi
2111
2112rm -f conftest.$ac_cv_objext conftest.$ac_ext
2113fi
2114echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2115echo "${ECHO_T}$ac_cv_objext" >&6
2116OBJEXT=$ac_cv_objext
2117ac_objext=$OBJEXT
2118echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2119echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2120if test "${ac_cv_c_compiler_gnu+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2124/* confdefs.h. */
2125_ACEOF
2126cat confdefs.h >>conftest.$ac_ext
2127cat >>conftest.$ac_ext <<_ACEOF
2128/* end confdefs.h. */
2129
2130int
2131main ()
2132{
2133#ifndef __GNUC__
2134 choke me
2135#endif
2136
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141rm -f conftest.$ac_objext
2142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2143 (eval $ac_compile) 2>conftest.er1
13b2be9c 2144 ac_status=$?
ab509236
L
2145 grep -v '^ *+' conftest.er1 >conftest.err
2146 rm -f conftest.er1
2147 cat conftest.err >&5
13b2be9c
DJ
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
1ad12f97
NC
2150 { ac_try='test -z "$ac_c_werror_flag"
2151 || test ! -s conftest.err'
ab509236
L
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2163 ac_compiler_gnu=yes
2164else
2165 echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168ac_compiler_gnu=no
2169fi
ab509236 2170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2171ac_cv_c_compiler_gnu=$ac_compiler_gnu
2172
2173fi
2174echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2175echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2176GCC=`test $ac_compiler_gnu = yes && echo yes`
2177ac_test_CFLAGS=${CFLAGS+set}
2178ac_save_CFLAGS=$CFLAGS
2179CFLAGS="-g"
2180echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2181echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2182if test "${ac_cv_prog_cc_g+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2186/* confdefs.h. */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
2190/* end confdefs.h. */
2191
2192int
2193main ()
2194{
2195
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2202 (eval $ac_compile) 2>conftest.er1
13b2be9c 2203 ac_status=$?
ab509236
L
2204 grep -v '^ *+' conftest.er1 >conftest.err
2205 rm -f conftest.er1
2206 cat conftest.err >&5
13b2be9c
DJ
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
1ad12f97
NC
2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
ab509236
L
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; } &&
2216 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 ac_cv_prog_cc_g=yes
2223else
2224 echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_cv_prog_cc_g=no
2228fi
ab509236 2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2230fi
2231echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2232echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2233if test "$ac_test_CFLAGS" = set; then
2234 CFLAGS=$ac_save_CFLAGS
2235elif test $ac_cv_prog_cc_g = yes; then
2236 if test "$GCC" = yes; then
2237 CFLAGS="-g -O2"
2238 else
2239 CFLAGS="-g"
2240 fi
2241else
2242 if test "$GCC" = yes; then
2243 CFLAGS="-O2"
2244 else
2245 CFLAGS=
2246 fi
2247fi
2248echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2249echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2250if test "${ac_cv_prog_cc_stdc+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253 ac_cv_prog_cc_stdc=no
2254ac_save_CC=$CC
2255cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2256/* confdefs.h. */
2257_ACEOF
2258cat confdefs.h >>conftest.$ac_ext
2259cat >>conftest.$ac_ext <<_ACEOF
2260/* end confdefs.h. */
2261#include <stdarg.h>
2262#include <stdio.h>
2263#include <sys/types.h>
2264#include <sys/stat.h>
2265/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2266struct buf { int x; };
2267FILE * (*rcsopen) (struct buf *, struct stat *, int);
2268static char *e (p, i)
2269 char **p;
2270 int i;
2271{
2272 return p[i];
2273}
2274static char *f (char * (*g) (char **, int), char **p, ...)
2275{
2276 char *s;
2277 va_list v;
2278 va_start (v,p);
2279 s = g (p, va_arg (v,int));
2280 va_end (v);
2281 return s;
2282}
ab509236
L
2283
2284/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2285 function prototypes and stuff, but not '\xHH' hex character constants.
2286 These don't provoke an error unfortunately, instead are silently treated
2287 as 'x'. The following induces an error, until -std1 is added to get
2288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2289 array size at least. It's necessary to write '\x00'==0 to get something
2290 that's true only with -std1. */
2291int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2292
13b2be9c
DJ
2293int test (int i, double x);
2294struct s1 {int (*f) (int a);};
2295struct s2 {int (*f) (double a);};
2296int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2297int argc;
2298char **argv;
2299int
2300main ()
2301{
2302return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307# Don't try gcc -ansi; that turns off useful extensions and
2308# breaks some systems' header files.
2309# AIX -qlanglvl=ansi
2310# Ultrix and OSF/1 -std1
2311# HP-UX 10.20 and later -Ae
2312# HP-UX older versions -Aa -D_HPUX_SOURCE
2313# SVR4 -Xc -D__EXTENSIONS__
2314for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2315do
2316 CC="$ac_save_CC $ac_arg"
2317 rm -f conftest.$ac_objext
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2319 (eval $ac_compile) 2>conftest.er1
13b2be9c 2320 ac_status=$?
ab509236
L
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
13b2be9c
DJ
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
1ad12f97
NC
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
ab509236
L
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 ac_cv_prog_cc_stdc=$ac_arg
2340break
2341else
2342 echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345fi
ab509236 2346rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2347done
2348rm -f conftest.$ac_ext conftest.$ac_objext
2349CC=$ac_save_CC
2350
2351fi
2352
2353case "x$ac_cv_prog_cc_stdc" in
2354 x|xno)
2355 echo "$as_me:$LINENO: result: none needed" >&5
2356echo "${ECHO_T}none needed" >&6 ;;
2357 *)
2358 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2359echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2360 CC="$CC $ac_cv_prog_cc_stdc" ;;
2361esac
2362
2363# Some people use a C++ compiler to compile C. Since we use `exit',
2364# in C++ we need to declare it. In case someone uses the same compiler
2365# for both compiling C and C++ we need to have the C++ compiler decide
2366# the declaration of exit, since it's the most demanding environment.
2367cat >conftest.$ac_ext <<_ACEOF
2368#ifndef __cplusplus
2369 choke me
2370#endif
2371_ACEOF
2372rm -f conftest.$ac_objext
2373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2374 (eval $ac_compile) 2>conftest.er1
13b2be9c 2375 ac_status=$?
ab509236
L
2376 grep -v '^ *+' conftest.er1 >conftest.err
2377 rm -f conftest.er1
2378 cat conftest.err >&5
13b2be9c
DJ
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
1ad12f97
NC
2381 { ac_try='test -z "$ac_c_werror_flag"
2382 || test ! -s conftest.err'
ab509236
L
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; } &&
2388 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; }; then
2394 for ac_declaration in \
ab509236 2395 '' \
13b2be9c
DJ
2396 'extern "C" void std::exit (int) throw (); using std::exit;' \
2397 'extern "C" void std::exit (int); using std::exit;' \
2398 'extern "C" void exit (int) throw ();' \
2399 'extern "C" void exit (int);' \
2400 'void exit (int);'
2401do
2402 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2403/* confdefs.h. */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h. */
13dfd2d0 2408$ac_declaration
ab509236 2409#include <stdlib.h>
13b2be9c
DJ
2410int
2411main ()
2412{
2413exit (42);
2414 ;
2415 return 0;
2416}
2417_ACEOF
2418rm -f conftest.$ac_objext
2419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2420 (eval $ac_compile) 2>conftest.er1
13b2be9c 2421 ac_status=$?
ab509236
L
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
13b2be9c
DJ
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
1ad12f97
NC
2427 { ac_try='test -z "$ac_c_werror_flag"
2428 || test ! -s conftest.err'
ab509236
L
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 :
2441else
2442 echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445continue
2446fi
ab509236 2447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2448 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2449/* confdefs.h. */
2450_ACEOF
2451cat confdefs.h >>conftest.$ac_ext
2452cat >>conftest.$ac_ext <<_ACEOF
2453/* end confdefs.h. */
2454$ac_declaration
2455int
2456main ()
2457{
2458exit (42);
2459 ;
2460 return 0;
2461}
2462_ACEOF
2463rm -f conftest.$ac_objext
2464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2465 (eval $ac_compile) 2>conftest.er1
13b2be9c 2466 ac_status=$?
ab509236
L
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
13b2be9c
DJ
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
1ad12f97
NC
2472 { ac_try='test -z "$ac_c_werror_flag"
2473 || test ! -s conftest.err'
ab509236
L
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; } &&
2479 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 (eval $ac_try) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2485 break
2486else
2487 echo "$as_me: failed program was:" >&5
2488sed 's/^/| /' conftest.$ac_ext >&5
2489
2490fi
ab509236 2491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2492done
2493rm -f conftest*
2494if test -n "$ac_declaration"; then
2495 echo '#ifdef __cplusplus' >>confdefs.h
2496 echo $ac_declaration >>confdefs.h
2497 echo '#endif' >>confdefs.h
2498fi
2499
2500else
2501 echo "$as_me: failed program was:" >&5
2502sed 's/^/| /' conftest.$ac_ext >&5
2503
2504fi
ab509236 2505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2506ac_ext=c
2507ac_cpp='$CPP $CPPFLAGS'
2508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511
2512
ab509236
L
2513echo "$as_me:$LINENO: checking for library containing strerror" >&5
2514echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2515if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
ab509236
L
2518 ac_func_search_save_LIBS=$LIBS
2519ac_cv_search_strerror=no
13b2be9c 2520cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2521/* confdefs.h. */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h. */
2526
2527/* Override any gcc2 internal prototype to avoid an error. */
2528#ifdef __cplusplus
2529extern "C"
2530#endif
2531/* We use char because int might match the return type of a gcc2
2532 builtin and then its argument prototype would still apply. */
2533char strerror ();
2534int
2535main ()
2536{
2537strerror ();
2538 ;
2539 return 0;
2540}
2541_ACEOF
2542rm -f conftest.$ac_objext conftest$ac_exeext
2543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2544 (eval $ac_link) 2>conftest.er1
13b2be9c 2545 ac_status=$?
ab509236
L
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
13b2be9c
DJ
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
1ad12f97
NC
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
ab509236
L
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
ab509236 2564 ac_cv_search_strerror="none required"
13b2be9c
DJ
2565else
2566 echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
13b2be9c 2569fi
ab509236
L
2570rm -f conftest.err conftest.$ac_objext \
2571 conftest$ac_exeext conftest.$ac_ext
2572if test "$ac_cv_search_strerror" = no; then
2573 for ac_lib in cposix; do
2574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2575 cat >conftest.$ac_ext <<_ACEOF
2576/* confdefs.h. */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h. */
2581
2582/* Override any gcc2 internal prototype to avoid an error. */
2583#ifdef __cplusplus
2584extern "C"
2585#endif
2586/* We use char because int might match the return type of a gcc2
2587 builtin and then its argument prototype would still apply. */
2588char strerror ();
2589int
2590main ()
2591{
2592strerror ();
2593 ;
2594 return 0;
2595}
2596_ACEOF
2597rm -f conftest.$ac_objext conftest$ac_exeext
2598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599 (eval $ac_link) 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
1ad12f97
NC
2606 { ac_try='test -z "$ac_c_werror_flag"
2607 || test ! -s conftest.err'
ab509236
L
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest$ac_exeext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 ac_cv_search_strerror="-l$ac_lib"
2620break
2621else
2622 echo "$as_me: failed program was:" >&5
2623sed 's/^/| /' conftest.$ac_ext >&5
2624
13b2be9c 2625fi
ab509236
L
2626rm -f conftest.err conftest.$ac_objext \
2627 conftest$ac_exeext conftest.$ac_ext
2628 done
13b2be9c 2629fi
ab509236
L
2630LIBS=$ac_func_search_save_LIBS
2631fi
2632echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2633echo "${ECHO_T}$ac_cv_search_strerror" >&6
2634if test "$ac_cv_search_strerror" != no; then
2635 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2636
ab509236 2637fi
13b2be9c
DJ
2638
2639
2640BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2641am__api_version="1.9"
13b2be9c
DJ
2642# Find a good install program. We prefer a C program (faster),
2643# so one script is as good as another. But avoid the broken or
2644# incompatible versions:
2645# SysV /etc/install, /usr/sbin/install
2646# SunOS /usr/etc/install
2647# IRIX /sbin/install
2648# AIX /bin/install
2649# AmigaOS /C/install, which installs bootblocks on floppy discs
2650# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2651# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2652# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2653# OS/2's system install, which has a completely different semantic
13b2be9c
DJ
2654# ./install, which can be erroneously created by make from ./install.sh.
2655echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2656echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2657if test -z "$INSTALL"; then
2658if test "${ac_cv_path_install+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 # Account for people who put trailing slashes in PATH elements.
2667case $as_dir/ in
2668 ./ | .// | /cC/* | \
2669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2670 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2671 /usr/ucb/* ) ;;
2672 *)
2673 # OSF1 and SCO ODT 3.0 have their own names for install.
2674 # Don't use installbsd from OSF since it installs stuff as root
2675 # by default.
2676 for ac_prog in ginstall scoinst install; do
2677 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2678 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2679 if test $ac_prog = install &&
2680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2681 # AIX install. It has an incompatible calling convention.
2682 :
2683 elif test $ac_prog = install &&
2684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685 # program-specific install script used by HP pwplus--don't use.
2686 :
2687 else
2688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2689 break 3
2690 fi
2691 fi
13b2be9c
DJ
2692 done
2693 done
2694 ;;
2695esac
2696done
2697
252b5132
RH
2698
2699fi
2700 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2701 INSTALL=$ac_cv_path_install
252b5132
RH
2702 else
2703 # As a last resort, use the slow shell script. We don't cache a
2704 # path for INSTALL within a source directory, because that will
2705 # break other packages using the cache if that directory is
2706 # removed, or if the path is relative.
13b2be9c 2707 INSTALL=$ac_install_sh
252b5132
RH
2708 fi
2709fi
13b2be9c
DJ
2710echo "$as_me:$LINENO: result: $INSTALL" >&5
2711echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2712
2713# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2714# It thinks the first close brace ends the variable substitution.
2715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2716
13b2be9c 2717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2718
2719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2720
13b2be9c
DJ
2721echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2722echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2723# Just in case
2724sleep 1
13b2be9c 2725echo timestamp > conftest.file
252b5132
RH
2726# Do `set' in a subshell so we don't clobber the current shell's
2727# arguments. Must try -L first in case configure is actually a
2728# symlink; some systems play weird games with the mod time of symlinks
2729# (eg FreeBSD returns the mod time of the symlink's containing
2730# directory).
2731if (
13b2be9c 2732 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2733 if test "$*" = "X"; then
2734 # -L didn't work.
13b2be9c 2735 set X `ls -t $srcdir/configure conftest.file`
252b5132 2736 fi
13b2be9c
DJ
2737 rm -f conftest.file
2738 if test "$*" != "X $srcdir/configure conftest.file" \
2739 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2740
2741 # If neither matched, then we have a broken ls. This can happen
2742 # if, for instance, CONFIG_SHELL is bash and it inherits a
2743 # broken ls alias from the environment. This has actually
2744 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2745 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2746alias in your environment" >&5
2747echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2748alias in your environment" >&2;}
2749 { (exit 1); exit 1; }; }
252b5132
RH
2750 fi
2751
13b2be9c
DJ
2752 test "$2" = conftest.file
2753 )
2754then
2755 # Ok.
2756 :
2757else
2758 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2759Check your system clock" >&5
2760echo "$as_me: error: newly created file is older than distributed files!
2761Check your system clock" >&2;}
2762 { (exit 1); exit 1; }; }
2763fi
2764echo "$as_me:$LINENO: result: yes" >&5
2765echo "${ECHO_T}yes" >&6
2766test "$program_prefix" != NONE &&
2767 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2768# Use a double $ so make ignores it.
2769test "$program_suffix" != NONE &&
2770 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2771# Double any \ or $. echo might interpret backslashes.
2772# By default was `s,x,x', remove it if useless.
2773cat <<\_ACEOF >conftest.sed
2774s/[\\$]/&&/g;s/;s,x,x,$//
2775_ACEOF
2776program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2777rm conftest.sed
2778
13b2be9c
DJ
2779# expand $ac_aux_dir to an absolute path
2780am_aux_dir=`cd $ac_aux_dir && pwd`
2781
2782test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2783# Use eval to expand $SHELL
2784if eval "$MISSING --run true"; then
2785 am_missing_run="$MISSING --run "
2786else
2787 am_missing_run=
2788 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2789echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2790fi
2791
4b363073 2792if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2793 # We used to keeping the `.' as first argument, in order to
2794 # allow $(mkdir_p) to be used without argument. As in
ab509236 2795 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2796 # where $(somedir) is conditionally defined. However this is wrong
2797 # for two reasons:
2798 # 1. if the package is installed by a user who cannot write `.'
2799 # make install will fail,
2800 # 2. the above comment should most certainly read
2801 # $(mkdir_p) $(DESTDIR)$(somedir)
2802 # so it does not work when $(somedir) is undefined and
2803 # $(DESTDIR) is not.
2804 # To support the latter case, we have to write
2805 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2806 # so the `.' trick is pointless.
2807 mkdir_p='mkdir -p --'
ab509236
L
2808else
2809 # On NextStep and OpenStep, the `mkdir' command does not
2810 # recognize any option. It will interpret all options as
2811 # directories to create, and then abort because `.' already
2812 # exists.
4b363073 2813 for d in ./-p ./--version;
ab509236
L
2814 do
2815 test -d $d && rmdir $d
2816 done
2817 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2818 if test -f "$ac_aux_dir/mkinstalldirs"; then
2819 mkdir_p='$(mkinstalldirs)'
2820 else
2821 mkdir_p='$(install_sh) -d'
2822 fi
2823fi
2824
13b2be9c
DJ
2825for ac_prog in gawk mawk nawk awk
2826do
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828set dummy $ac_prog; ac_word=$2
2829echo "$as_me:$LINENO: checking for $ac_word" >&5
2830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831if test "${ac_cv_prog_AWK+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833else
2834 if test -n "$AWK"; then
2835 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_AWK="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848done
2849done
2850
2851fi
2852fi
2853AWK=$ac_cv_prog_AWK
2854if test -n "$AWK"; then
2855 echo "$as_me:$LINENO: result: $AWK" >&5
2856echo "${ECHO_T}$AWK" >&6
2857else
2858 echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6
2860fi
2861
2862 test -n "$AWK" && break
2863done
2864
2865echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2866echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2867set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2868if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870else
2871 cat >conftest.make <<\_ACEOF
2872all:
2873 @echo 'ac_maketemp="$(MAKE)"'
2874_ACEOF
2875# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2876eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2877if test -n "$ac_maketemp"; then
2878 eval ac_cv_prog_make_${ac_make}_set=yes
2879else
2880 eval ac_cv_prog_make_${ac_make}_set=no
2881fi
2882rm -f conftest.make
2883fi
2884if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2885 echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
2887 SET_MAKE=
2888else
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891 SET_MAKE="MAKE=${MAKE-make}"
2892fi
2893
2894rm -rf .tst 2>/dev/null
2895mkdir .tst 2>/dev/null
2896if test -d .tst; then
2897 am__leading_dot=.
2898else
2899 am__leading_dot=_
2900fi
2901rmdir .tst 2>/dev/null
2902
2903DEPDIR="${am__leading_dot}deps"
2904
2905 ac_config_commands="$ac_config_commands depfiles"
2906
2907
2908am_make=${MAKE-make}
2909cat > confinc << 'END'
2910am__doit:
2911 @echo done
2912.PHONY: am__doit
2913END
2914# If we don't find an include directive, just comment out the code.
2915echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2916echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2917am__include="#"
2918am__quote=
2919_am_result=none
2920# First try GNU make style include.
2921echo "include confinc" > confmf
2922# We grep out `Entering directory' and `Leaving directory'
2923# messages which can occur if `w' ends up in MAKEFLAGS.
2924# In particular we don't look at `^make:' because GNU make might
2925# be invoked under some other name (usually "gmake"), in which
2926# case it prints its new name instead of `make'.
2927if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2928 am__include=include
2929 am__quote=
2930 _am_result=GNU
2931fi
2932# Now try BSD make style include.
2933if test "$am__include" = "#"; then
2934 echo '.include "confinc"' > confmf
2935 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2936 am__include=.include
2937 am__quote="\""
2938 _am_result=BSD
2939 fi
2940fi
2941
2942
2943echo "$as_me:$LINENO: result: $_am_result" >&5
2944echo "${ECHO_T}$_am_result" >&6
2945rm -f confinc confmf
2946
2947# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2948if test "${enable_dependency_tracking+set}" = set; then
2949 enableval="$enable_dependency_tracking"
2950
2951fi;
2952if test "x$enable_dependency_tracking" != xno; then
2953 am_depcomp="$ac_aux_dir/depcomp"
2954 AMDEPBACKSLASH='\'
2955fi
2956
2957
2958if test "x$enable_dependency_tracking" != xno; then
2959 AMDEP_TRUE=
2960 AMDEP_FALSE='#'
2961else
2962 AMDEP_TRUE='#'
2963 AMDEP_FALSE=
2964fi
2965
2966
2967
ab509236 2968# test to see if srcdir already configured
13b2be9c
DJ
2969if test "`cd $srcdir && pwd`" != "`pwd`" &&
2970 test -f $srcdir/config.status; then
2971 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2972echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2973 { (exit 1); exit 1; }; }
2974fi
2975
2976# test whether we have cygpath
2977if test -z "$CYGPATH_W"; then
2978 if (cygpath --version) >/dev/null 2>/dev/null; then
2979 CYGPATH_W='cygpath -w'
2980 else
2981 CYGPATH_W=echo
2982 fi
2983fi
2984
2985
2986# Define the identity of the package.
2987 PACKAGE=gas
2988 VERSION=${BFD_VERSION}
2989
2990
2991cat >>confdefs.h <<_ACEOF
2992#define PACKAGE "$PACKAGE"
2993_ACEOF
2994
2995
2996cat >>confdefs.h <<_ACEOF
2997#define VERSION "$VERSION"
2998_ACEOF
2999
3000# Some tools Automake needs.
3001
3002ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3003
3004
3005AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3006
3007
3008AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3009
3010
3011AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3012
3013
3014MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3015
13b2be9c
DJ
3016install_sh=${install_sh-"$am_aux_dir/install-sh"}
3017
3018# Installed binaries are usually stripped using `strip' when the user
3019# run `make install-strip'. However `strip' might not be the right
3020# tool to use in cross-compilation environments, therefore Automake
3021# will honor the `STRIP' environment variable to overrule this program.
3022if test "$cross_compiling" != no; then
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3025set dummy ${ac_tool_prefix}strip; ac_word=$2
3026echo "$as_me:$LINENO: checking for $ac_word" >&5
3027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028if test "${ac_cv_prog_STRIP+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031 if test -n "$STRIP"; then
3032 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3033else
13b2be9c
DJ
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3044 fi
3045done
3046done
3047
252b5132 3048fi
13b2be9c
DJ
3049fi
3050STRIP=$ac_cv_prog_STRIP
3051if test -n "$STRIP"; then
3052 echo "$as_me:$LINENO: result: $STRIP" >&5
3053echo "${ECHO_T}$STRIP" >&6
c8615825 3054else
13b2be9c
DJ
3055 echo "$as_me:$LINENO: result: no" >&5
3056echo "${ECHO_T}no" >&6
c8615825 3057fi
c8615825 3058
13b2be9c
DJ
3059fi
3060if test -z "$ac_cv_prog_STRIP"; then
3061 ac_ct_STRIP=$STRIP
3062 # Extract the first word of "strip", so it can be a program name with args.
3063set dummy strip; ac_word=$2
3064echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 3068else
13b2be9c
DJ
3069 if test -n "$ac_ct_STRIP"; then
3070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3071else
13b2be9c
DJ
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_ac_ct_STRIP="strip"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083done
3084done
3085
3086 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3087fi
252b5132 3088fi
13b2be9c
DJ
3089ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3090if test -n "$ac_ct_STRIP"; then
3091 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3092echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3093else
13b2be9c
DJ
3094 echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6
252b5132
RH
3096fi
3097
13b2be9c
DJ
3098 STRIP=$ac_ct_STRIP
3099else
3100 STRIP="$ac_cv_prog_STRIP"
3101fi
d6d788bd 3102
252b5132 3103fi
13b2be9c 3104INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3105
13b2be9c
DJ
3106# We need awk for the "check" target. The system "awk" is bad on
3107# some platforms.
8ea2b00f
AM
3108# Always define AMTAR for backward compatibility.
3109
3110AMTAR=${AMTAR-"${am_missing_run}tar"}
3111
3112am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3113
3114
252b5132 3115
d6d788bd 3116
13b2be9c 3117depcc="$CC" am_compiler_list=
d6d788bd 3118
13b2be9c
DJ
3119echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3120echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3121if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3123else
13b2be9c
DJ
3124 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3125 # We make a subdir and do the tests there. Otherwise we can end up
3126 # making bogus files that we don't know about and never remove. For
3127 # instance it was reported that on HP-UX the gcc test will end up
3128 # making a dummy file named `D' -- because `-MD' means `put the output
3129 # in D'.
3130 mkdir conftest.dir
3131 # Copy depcomp to subdir because otherwise we won't find it if we're
3132 # using a relative directory.
3133 cp "$am_depcomp" conftest.dir
3134 cd conftest.dir
3135 # We will build objects and dependencies in a subdirectory because
3136 # it helps to detect inapplicable dependency modes. For instance
3137 # both Tru64's cc and ICC support -MD to output dependencies as a
3138 # side effect of compilation, but ICC will put the dependencies in
3139 # the current directory while Tru64 will put them in the object
3140 # directory.
3141 mkdir sub
252b5132 3142
13b2be9c
DJ
3143 am_cv_CC_dependencies_compiler_type=none
3144 if test "$am_compiler_list" = ""; then
3145 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3146 fi
3147 for depmode in $am_compiler_list; do
3148 # Setup a source with many dependencies, because some compilers
3149 # like to wrap large dependency lists on column 80 (with \), and
3150 # we should not choose a depcomp mode which is confused by this.
3151 #
3152 # We need to recreate these files for each test, as the compiler may
3153 # overwrite some of them when testing with obscure command lines.
3154 # This happens at least with the AIX C compiler.
3155 : > sub/conftest.c
3156 for i in 1 2 3 4 5 6; do
3157 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3158 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3159 # Solaris 8's {/usr,}/bin/sh.
3160 touch sub/conftst$i.h
13b2be9c
DJ
3161 done
3162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3163
3164 case $depmode in
3165 nosideeffect)
3166 # after this tag, mechanisms are not by side-effect, so they'll
3167 # only be used when explicitly requested
3168 if test "x$enable_dependency_tracking" = xyes; then
3169 continue
3170 else
3171 break
3172 fi
3173 ;;
3174 none) break ;;
3175 esac
3176 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3177 # mode. It turns out that the SunPro C++ compiler does not properly
3178 # handle `-M -o', and we need to detect this.
3179 if depmode=$depmode \
3180 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3182 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3183 >/dev/null 2>conftest.err &&
3184 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3185 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3186 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3187 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3188 # or remarks (even with -Werror). So we grep stderr for any message
3189 # that says an option was ignored or not supported.
3190 # When given -MP, icc 7.0 and 7.1 complain thusly:
3191 # icc: Command line warning: ignoring option '-M'; no argument required
3192 # The diagnosis changed in icc 8.0:
3193 # icc: Command line remark: option '-MP' not supported
3194 if (grep 'ignoring option' conftest.err ||
3195 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3196 am_cv_CC_dependencies_compiler_type=$depmode
3197 break
3198 fi
3199 fi
3200 done
252b5132 3201
13b2be9c
DJ
3202 cd ..
3203 rm -rf conftest.dir
252b5132 3204else
13b2be9c 3205 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3206fi
3207
252b5132 3208fi
13b2be9c
DJ
3209echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3210echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3211CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3212
13b2be9c
DJ
3213
3214
3215if
3216 test "x$enable_dependency_tracking" != xno \
3217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3218 am__fastdepCC_TRUE=
3219 am__fastdepCC_FALSE='#'
252b5132 3220else
13b2be9c
DJ
3221 am__fastdepCC_TRUE='#'
3222 am__fastdepCC_FALSE=
252b5132
RH
3223fi
3224
d6d788bd
L
3225
3226
13b2be9c 3227
d7040cdb
SE
3228
3229
3230macro_version='2.1a'
3231macro_revision='1.2435'
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244ltmain="$ac_aux_dir/ltmain.sh"
3245
3246# Set options
3247
3248enable_dlopen=no
3249
3250
3251enable_win32_dll=no
3252
3253
252b5132
RH
3254# Check whether --enable-shared or --disable-shared was given.
3255if test "${enable_shared+set}" = set; then
3256 enableval="$enable_shared"
3257 p=${PACKAGE-default}
d7040cdb
SE
3258 case $enableval in
3259 yes) enable_shared=yes ;;
3260 no) enable_shared=no ;;
3261 *)
3262 enable_shared=no
3263 # Look at the argument we got. We use all the common list separators.
3264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3265 for pkg in $enableval; do
3266 IFS="$lt_save_ifs"
3267 if test "X$pkg" = "X$p"; then
3268 enable_shared=yes
3269 fi
3270 done
3271 IFS="$lt_save_ifs"
3272 ;;
3273 esac
252b5132
RH
3274else
3275 enable_shared=yes
13b2be9c 3276fi;
d7040cdb
SE
3277
3278
3279
3280
3281
3282
3283
3284
252b5132
RH
3285# Check whether --enable-static or --disable-static was given.
3286if test "${enable_static+set}" = set; then
3287 enableval="$enable_static"
3288 p=${PACKAGE-default}
d7040cdb
SE
3289 case $enableval in
3290 yes) enable_static=yes ;;
3291 no) enable_static=no ;;
3292 *)
3293 enable_static=no
3294 # Look at the argument we got. We use all the common list separators.
3295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3296 for pkg in $enableval; do
3297 IFS="$lt_save_ifs"
3298 if test "X$pkg" = "X$p"; then
3299 enable_static=yes
3300 fi
3301 done
3302 IFS="$lt_save_ifs"
3303 ;;
3304 esac
252b5132
RH
3305else
3306 enable_static=yes
13b2be9c 3307fi;
d7040cdb
SE
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317# Check whether --with-pic or --without-pic was given.
3318if test "${with_pic+set}" = set; then
3319 withval="$with_pic"
3320 pic_mode="$withval"
3321else
3322 pic_mode=default
3323fi;
3324
3325test -z "$pic_mode" && pic_mode=default
3326
3327
3328
3329
3330
3331
3332
bedf545c
ILT
3333# Check whether --enable-fast-install or --disable-fast-install was given.
3334if test "${enable_fast_install+set}" = set; then
3335 enableval="$enable_fast_install"
3336 p=${PACKAGE-default}
d7040cdb
SE
3337 case $enableval in
3338 yes) enable_fast_install=yes ;;
3339 no) enable_fast_install=no ;;
3340 *)
3341 enable_fast_install=no
3342 # Look at the argument we got. We use all the common list separators.
3343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3344 for pkg in $enableval; do
3345 IFS="$lt_save_ifs"
3346 if test "X$pkg" = "X$p"; then
3347 enable_fast_install=yes
3348 fi
3349 done
3350 IFS="$lt_save_ifs"
3351 ;;
3352 esac
bedf545c
ILT
3353else
3354 enable_fast_install=yes
13b2be9c 3355fi;
87ccc1b0 3356
d7040cdb
SE
3357
3358
3359
3360
3361
3362
3363
3364echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3365echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3366if test "${lt_cv_path_SED+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369 # Loop through the user's path and test for sed and gsed.
3370# Then use that list of sed's as ones to test for truncation.
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for lt_ac_prog in sed gsed; do
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3379 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3380 fi
3381 done
3382 done
3383done
3384IFS=$as_save_IFS
3385lt_ac_max=0
3386lt_ac_count=0
3387# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3388# along with /bin/sed that truncates output.
3389for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3390 test ! -f $lt_ac_sed && continue
3391 cat /dev/null > conftest.in
3392 lt_ac_count=0
3393 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3394 # Check for GNU sed and select it if it is found.
3395 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3396 lt_cv_path_SED=$lt_ac_sed
3397 break
3398 fi
3399 while true; do
3400 cat conftest.in conftest.in >conftest.tmp
3401 mv conftest.tmp conftest.in
3402 cp conftest.in conftest.nl
3403 echo >>conftest.nl
3404 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3405 cmp -s conftest.out conftest.nl || break
3406 # 10000 chars as input seems more than enough
3407 test $lt_ac_count -gt 10 && break
3408 lt_ac_count=`expr $lt_ac_count + 1`
3409 if test $lt_ac_count -gt $lt_ac_max; then
3410 lt_ac_max=$lt_ac_count
3411 lt_cv_path_SED=$lt_ac_sed
3412 fi
3413 done
3414done
3415
3416fi
3417
3418SED=$lt_cv_path_SED
3419
3420echo "$as_me:$LINENO: result: $SED" >&5
3421echo "${ECHO_T}$SED" >&6
3422
3423test -z "$SED" && SED=sed
3424Xsed="$SED -e 1s/^X//"
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436echo "$as_me:$LINENO: checking for egrep" >&5
3437echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3438if test "${ac_cv_prog_egrep+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3442 then ac_cv_prog_egrep='grep -E'
3443 else ac_cv_prog_egrep='egrep'
3444 fi
3445fi
3446echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3447echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3448 EGREP=$ac_cv_prog_egrep
3449
3450
3451echo "$as_me:$LINENO: checking for fgrep" >&5
3452echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3453if test "${ac_cv_prog_fgrep+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3457 then ac_cv_prog_fgrep='grep -F'
3458 else ac_cv_prog_fgrep='fgrep'
3459 fi
3460fi
3461echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3462echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3463 FGREP=$ac_cv_prog_fgrep
3464
3465
3466test -z "$GREP" && GREP=grep
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
6840198f
NC
3486# Check whether --with-gnu-ld or --without-gnu-ld was given.
3487if test "${with_gnu_ld+set}" = set; then
3488 withval="$with_gnu_ld"
3489 test "$withval" = no || with_gnu_ld=yes
27b7e12d 3490else
6840198f 3491 with_gnu_ld=no
13b2be9c 3492fi;
6840198f
NC
3493ac_prog=ld
3494if test "$GCC" = yes; then
3495 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
3496 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3497echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6840198f
NC
3498 case $host in
3499 *-*-mingw*)
3500 # gcc leaves a trailing carriage return which upsets mingw
3501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3502 *)
3503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3504 esac
3505 case $ac_prog in
3506 # Accept absolute paths.
d7040cdb 3507 [\\/]* | ?:[\\/]*)
6840198f 3508 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
3509 # Canonicalize the pathname of ld
3510 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3511 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3512 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6840198f
NC
3513 done
3514 test -z "$LD" && LD="$ac_prog"
3515 ;;
3516 "")
3517 # If it fails, then pretend we aren't using GCC.
3518 ac_prog=ld
3519 ;;
3520 *)
3521 # If it is relative, then search for the first ld in PATH.
3522 with_gnu_ld=unknown
3523 ;;
3524 esac
3525elif test "$with_gnu_ld" = yes; then
13b2be9c
DJ
3526 echo "$as_me:$LINENO: checking for GNU ld" >&5
3527echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27b7e12d 3528else
13b2be9c
DJ
3529 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3530echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27b7e12d 3531fi
13b2be9c
DJ
3532if test "${lt_cv_path_LD+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3534else
3535 if test -z "$LD"; then
d7040cdb 3536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
252b5132 3537 for ac_dir in $PATH; do
d7040cdb 3538 IFS="$lt_save_ifs"
252b5132 3539 test -z "$ac_dir" && ac_dir=.
a74801ba 3540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
f9c19112 3541 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132 3542 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 3543 # but apparently some variants of GNU ld only accept -v.
252b5132 3544 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
3545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3546 *GNU* | *'with BFD'*)
252b5132 3547 test "$with_gnu_ld" != no && break
d7040cdb
SE
3548 ;;
3549 *)
bedf545c 3550 test "$with_gnu_ld" != yes && break
d7040cdb
SE
3551 ;;
3552 esac
252b5132
RH
3553 fi
3554 done
d7040cdb 3555 IFS="$lt_save_ifs"
252b5132 3556else
f9c19112 3557 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3558fi
3559fi
3560
f9c19112 3561LD="$lt_cv_path_LD"
252b5132 3562if test -n "$LD"; then
13b2be9c
DJ
3563 echo "$as_me:$LINENO: result: $LD" >&5
3564echo "${ECHO_T}$LD" >&6
252b5132 3565else
13b2be9c
DJ
3566 echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
252b5132 3568fi
13b2be9c
DJ
3569test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3570echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3571 { (exit 1); exit 1; }; }
3572echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3573echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3574if test "${lt_cv_prog_gnu_ld+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3576else
d7040cdb
SE
3577 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3578case `$LD -v 2>&1 </dev/null` in
3579*GNU* | *'with BFD'*)
f9c19112 3580 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
3581 ;;
3582*)
f9c19112 3583 lt_cv_prog_gnu_ld=no
d7040cdb
SE
3584 ;;
3585esac
252b5132 3586fi
13b2be9c
DJ
3587echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3588echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
f9c19112 3589with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1 3590
d6d788bd 3591
252b5132 3592
d7040cdb
SE
3593
3594
3595
3596
3597
3598
3599
3600echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3601echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
13b2be9c
DJ
3602if test "${lt_cv_path_NM+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3604else
3605 if test -n "$NM"; then
3606 # Let the user override the test.
f9c19112 3607 lt_cv_path_NM="$NM"
252b5132 3608else
d7040cdb
SE
3609 lt_nm_to_check="${ac_tool_prefix}nm"
3610 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3611 lt_nm_to_check="$lt_nm_to_check nm"
3612 fi
3613 for lt_tmp_nm in $lt_nm_to_check; do
3614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3615 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3616 IFS="$lt_save_ifs"
3617 test -z "$ac_dir" && ac_dir=.
3618 tmp_nm="$ac_dir/$lt_tmp_nm"
3619 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3620 # Check to see if the nm accepts a BSD-compat flag.
3621 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3622 # nm: unknown option "B" ignored
3623 # Tru64's nm complains that /dev/null is an invalid object file
3624 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3625 */dev/null* | *'Invalid file or object type'*)
3626 lt_cv_path_NM="$tmp_nm -B"
3627 break
3628 ;;
3629 *)
3630 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3631 */dev/null*)
3632 lt_cv_path_NM="$tmp_nm -p"
3633 break
3634 ;;
3635 *)
3636 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3637 continue # so that we can try to find one that supports BSD flags
3638 ;;
3639 esac
3640 ;;
3641 esac
252b5132 3642 fi
d7040cdb
SE
3643 done
3644 IFS="$lt_save_ifs"
252b5132 3645 done
d7040cdb 3646 : ${lt_cv_path_NM=no}
252b5132
RH
3647fi
3648fi
d7040cdb
SE
3649echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3650echo "${ECHO_T}$lt_cv_path_NM" >&6
3651if test "$lt_cv_path_NM" != "no"; then
3652 NM="$lt_cv_path_NM"
252b5132 3653else
d7040cdb
SE
3654 # Didn't find any BSD compatible name lister, look for dumpbin.
3655 if test -n "$ac_tool_prefix"; then
3656 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3657 do
3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660echo "$as_me:$LINENO: checking for $ac_word" >&5
3661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662if test "${ac_cv_prog_DUMPBIN+set}" = set; then
13b2be9c 3663 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3664else
d7040cdb
SE
3665 if test -n "$DUMPBIN"; then
3666 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3678 fi
3679done
3680done
ac48eca1 3681
d7040cdb
SE
3682fi
3683fi
3684DUMPBIN=$ac_cv_prog_DUMPBIN
3685if test -n "$DUMPBIN"; then
3686 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3687echo "${ECHO_T}$DUMPBIN" >&6
3688else
3689 echo "$as_me:$LINENO: result: no" >&5
3690echo "${ECHO_T}no" >&6
3691fi
f9c19112 3692
d7040cdb
SE
3693 test -n "$DUMPBIN" && break
3694 done
3695fi
3696if test -z "$DUMPBIN"; then
3697 ac_ct_DUMPBIN=$DUMPBIN
3698 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3699do
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701set dummy $ac_prog; ac_word=$2
3702echo "$as_me:$LINENO: checking for $ac_word" >&5
3703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
3707 if test -n "$ac_ct_DUMPBIN"; then
3708 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
ac48eca1 3720 fi
d7040cdb
SE
3721done
3722done
ac48eca1 3723
d7040cdb
SE
3724fi
3725fi
3726ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3727if test -n "$ac_ct_DUMPBIN"; then
3728 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3729echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3730else
3731 echo "$as_me:$LINENO: result: no" >&5
3732echo "${ECHO_T}no" >&6
3733fi
ac48eca1 3734
d7040cdb
SE
3735 test -n "$ac_ct_DUMPBIN" && break
3736done
3737test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
ac48eca1 3738
d7040cdb
SE
3739 DUMPBIN=$ac_ct_DUMPBIN
3740fi
ac48eca1 3741
ac48eca1 3742
d7040cdb
SE
3743 if test "$DUMPBIN" != ":"; then
3744 NM="$DUMPBIN"
ac48eca1 3745 fi
d7040cdb
SE
3746fi
3747test -z "$NM" && NM=nm
ac48eca1 3748
ac48eca1 3749
ac48eca1 3750
ac48eca1 3751
6be7c12c 3752
ac48eca1 3753
d7040cdb
SE
3754echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3755echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3756if test "${lt_cv_nm_interface+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 lt_cv_nm_interface="BSD nm"
3760 echo "int some_variable = 0;" > conftest.$ac_ext
3761 (eval echo "\"\$as_me:3761: $ac_compile\"" >&5)
3762 (eval "$ac_compile" 2>conftest.err)
3763 cat conftest.err >&5
3764 (eval echo "\"\$as_me:3764: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3765 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3766 cat conftest.err >&5
3767 (eval echo "\"\$as_me:3767: output\"" >&5)
3768 cat conftest.out >&5
3769 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3770 lt_cv_nm_interface="MS dumpbin"
3771 fi
3772 rm -f conftest*
ac48eca1 3773fi
d7040cdb
SE
3774echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3775echo "${ECHO_T}$lt_cv_nm_interface" >&6
c8615825 3776
d7040cdb
SE
3777echo "$as_me:$LINENO: checking whether ln -s works" >&5
3778echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3779LN_S=$as_ln_s
3780if test "$LN_S" = "ln -s"; then
3781 echo "$as_me:$LINENO: result: yes" >&5
3782echo "${ECHO_T}yes" >&6
3783else
3784 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3785echo "${ECHO_T}no, using $LN_S" >&6
3786fi
ac48eca1 3787
d70c5fc7
NC
3788# find the maximum length of command line arguments
3789echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3790echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3791if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 i=0
3795 teststring="ABCD"
3796
3797 case $build_os in
3798 msdosdjgpp*)
3799 # On DJGPP, this test can blow up pretty badly due to problems in libc
3800 # (any single argument exceeding 2000 bytes causes a buffer overrun
3801 # during glob expansion). Even if it were fixed, the result of this
3802 # check would be larger than it should be.
3803 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3804 ;;
3805
d7040cdb
SE
3806 gnu*)
3807 # Under GNU Hurd, this test is not required because there is
3808 # no limit to the length of command line arguments.
3809 # Libtool will interpret -1 as no limit whatsoever
3810 lt_cv_sys_max_cmd_len=-1;
3811 ;;
3812
d70c5fc7
NC
3813 cygwin* | mingw*)
3814 # On Win9x/ME, this test blows up -- it succeeds, but takes
3815 # about 5 minutes as the teststring grows exponentially.
3816 # Worse, since 9x/ME are not pre-emptively multitasking,
3817 # you end up with a "frozen" computer, even though with patience
3818 # the test eventually succeeds (with a max line length of 256k).
3819 # Instead, let's just punt: use the minimum linelength reported by
3820 # all of the supported platforms: 8192 (on NT/2K/XP).
3821 lt_cv_sys_max_cmd_len=8192;
3822 ;;
3823
3824 amigaos*)
3825 # On AmigaOS with pdksh, this test takes hours, literally.
3826 # So we just punt and use a minimum line length of 8192.
3827 lt_cv_sys_max_cmd_len=8192;
3828 ;;
3829
3830 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3831 # This has been around since 386BSD, at least. Likely further.
3832 if test -x /sbin/sysctl; then
3833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3834 elif test -x /usr/sbin/sysctl; then
3835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3836 else
d7040cdb 3837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d70c5fc7
NC
3838 fi
3839 # And add a safety zone
3840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3842 ;;
d7040cdb
SE
3843
3844 interix*)
3845 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3846 lt_cv_sys_max_cmd_len=196608
3847 ;;
3848
3849 osf*)
3850 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3851 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3852 # nice to cause kernel panics so lets avoid the loop below.
3853 # First set a reasonable default.
3854 lt_cv_sys_max_cmd_len=16384
3855 #
3856 if test -x /sbin/sysconfig; then
3857 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3858 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3859 esac
3860 fi
3861 ;;
3862 sco3.2v5*)
3863 lt_cv_sys_max_cmd_len=102400
3864 ;;
3865 sysv5* | sco5v6* | sysv4.2uw2*)
3866 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3867 if test -n "$kargmax"; then
3868 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3869 else
3870 lt_cv_sys_max_cmd_len=32768
3871 fi
3872 ;;
3873 *)
3874 # Make teststring a little bigger before we do anything with it.
3875 # a 1K string should be a reasonable start.
3876 for i in 1 2 3 4 5 6 7 8 ; do
3877 teststring=$teststring$teststring
3878 done
3879 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3880 # If test is not a shell built-in, we'll probably end up computing a
3881 # maximum length that is only half of the actual maximum length, but
3882 # we can't tell.
3883 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3884 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3885 test $i != 17 # 1/2 MB should be enough
3886 do
3887 i=`expr $i + 1`
3888 teststring=$teststring$teststring
3889 done
3890 # Only check the string length outside the loop.
3891 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3892 teststring=
3893 # Add a significant safety factor because C++ compilers can tack on massive
3894 # amounts of additional arguments before passing them to the linker.
3895 # It appears as though 1/2 is a usable value.
3896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3897 ;;
d70c5fc7
NC
3898 esac
3899
3900fi
3901
d7040cdb 3902if test -n $lt_cv_sys_max_cmd_len ; then
d70c5fc7
NC
3903 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3904echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3905else
3906 echo "$as_me:$LINENO: result: none" >&5
3907echo "${ECHO_T}none" >&6
3908fi
d7040cdb 3909max_cmd_len=$lt_cv_sys_max_cmd_len
d70c5fc7
NC
3910
3911
ac48eca1 3912
ac48eca1 3913
ac48eca1 3914
d7040cdb
SE
3915
3916
3917: ${CP="cp -f"}
3918: ${MV="mv -f"}
3919: ${RM="rm -f"}
3920
3921echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3922echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3923# Try some XSI features
3924xsi_shell=no
3925( _lt_dummy="a/b/c"
3926 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3927 = c,a/b,, ) >/dev/null 2>&1 \
3928 && xsi_shell=yes
3929echo "$as_me:$LINENO: result: $xsi_shell" >&5
3930echo "${ECHO_T}$xsi_shell" >&6
3931
3932
3933echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3934echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3935lt_shell_append=no
3936( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3937 >/dev/null 2>&1 \
3938 && lt_shell_append=yes
3939echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3940echo "${ECHO_T}$lt_shell_append" >&6
3941
3942
3943if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3944 lt_unset=unset
ac48eca1 3945else
d7040cdb 3946 lt_unset=false
ac48eca1
AO
3947fi
3948
d7040cdb
SE
3949
3950
3951
3952
3953# test EBCDIC or ASCII
3954case `echo X|tr X '\101'` in
3955 A) # ASCII based system
3956 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3957 lt_SP2NL='tr \040 \012'
3958 lt_NL2SP='tr \015\012 \040\040'
3959 ;;
3960 *) # EBCDIC based system
3961 lt_SP2NL='tr \100 \n'
3962 lt_NL2SP='tr \r\n \100\100'
3963 ;;
3964esac
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3975echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3976if test "${lt_cv_ld_reload_flag+set}" = set; then
13b2be9c 3977 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3978else
d7040cdb
SE
3979 lt_cv_ld_reload_flag='-r'
3980fi
3981echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3982echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3983reload_flag=$lt_cv_ld_reload_flag
3984case $reload_flag in
3985"" | " "*) ;;
3986*) reload_flag=" $reload_flag" ;;
3987esac
3988reload_cmds='$LD$reload_flag -o $output$reload_objs'
3989case $host_os in
3990 darwin*)
3991 if test "$GCC" = yes; then
3992 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3993 else
3994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3995 fi
3996 ;;
3997esac
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4009echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4010if test "${lt_cv_deplibs_check_method+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013 lt_cv_file_magic_cmd='$MAGIC_CMD'
4014lt_cv_file_magic_test_file=
4015lt_cv_deplibs_check_method='unknown'
4016# Need to set the preceding variable on all platforms that support
4017# interlibrary dependencies.
4018# 'none' -- dependencies not supported.
4019# `unknown' -- same as none, but documents that we really don't know.
4020# 'pass_all' -- all dependencies passed with no checks.
4021# 'test_compile' -- check by making test program.
4022# 'file_magic [[regex]]' -- check by looking for files in library path
4023# which responds to the $file_magic_cmd with a given extended regex.
4024# If you have `file' or equivalent on your system and you're not sure
4025# whether `pass_all' will *always* work, you probably want this one.
4026
4027case $host_os in
4028aix4* | aix5*)
4029 lt_cv_deplibs_check_method=pass_all
4030 ;;
4031
4032beos*)
4033 lt_cv_deplibs_check_method=pass_all
ac48eca1 4034 ;;
d7040cdb
SE
4035
4036bsdi[45]*)
4037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4038 lt_cv_file_magic_cmd='/usr/bin/file -L'
4039 lt_cv_file_magic_test_file=/shlib/libc.so
4040 ;;
4041
4042cygwin*)
4043 # func_win32_libid is a shell function defined in ltmain.sh
4044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4045 lt_cv_file_magic_cmd='func_win32_libid'
4046 ;;
4047
4048mingw* | pw32*)
4049 # Base MSYS/MinGW do not provide the 'file' command needed by
4050 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4051 # unless we find 'file', for example because we are cross-compiling.
4052 if ( file / ) >/dev/null 2>&1; then
4053 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4054 lt_cv_file_magic_cmd='func_win32_libid'
4055 else
4056 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4057 lt_cv_file_magic_cmd='$OBJDUMP -f'
4058 fi
4059 ;;
4060
4061darwin* | rhapsody*)
4062 lt_cv_deplibs_check_method=pass_all
4063 ;;
4064
4065freebsd* | dragonfly*)
4066 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4067 case $host_cpu in
4068 i*86 )
4069 # Not sure whether the presence of OpenBSD here was a mistake.
4070 # Let's accept both of them until this is cleared up.
4071 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4072 lt_cv_file_magic_cmd=/usr/bin/file
4073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4074 ;;
4075 esac
4076 else
4077 lt_cv_deplibs_check_method=pass_all
4078 fi
4079 ;;
4080
4081gnu*)
4082 lt_cv_deplibs_check_method=pass_all
ac48eca1 4083 ;;
d7040cdb
SE
4084
4085hpux10.20* | hpux11*)
4086 lt_cv_file_magic_cmd=/usr/bin/file
4087 case $host_cpu in
4088 ia64*)
4089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4090 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4091 ;;
4092 hppa*64*)
4093 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]'
4094 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4095 ;;
ac48eca1 4096 *)
d7040cdb
SE
4097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4098 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4099 ;;
4100 esac
4101 ;;
ac48eca1 4102
d7040cdb
SE
4103interix[3-9]*)
4104 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4106 ;;
ac48eca1 4107
d7040cdb
SE
4108irix5* | irix6* | nonstopux*)
4109 case $LD in
4110 *-32|*"-32 ") libmagic=32-bit;;
4111 *-n32|*"-n32 ") libmagic=N32;;
4112 *-64|*"-64 ") libmagic=64-bit;;
4113 *) libmagic=never-match;;
4114 esac
4115 lt_cv_deplibs_check_method=pass_all
ac48eca1 4116 ;;
ac48eca1 4117
d7040cdb
SE
4118# This must be Linux ELF.
4119linux* | k*bsd*-gnu)
4120 lt_cv_deplibs_check_method=pass_all
4121 ;;
ac48eca1 4122
d7040cdb
SE
4123netbsd*)
4124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ac48eca1 4126 else
d7040cdb 4127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ac48eca1 4128 fi
d7040cdb
SE
4129 ;;
4130
4131newos6*)
4132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4133 lt_cv_file_magic_cmd=/usr/bin/file
4134 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4135 ;;
4136
4137*nto* | *qnx*)
4138 lt_cv_deplibs_check_method=pass_all
4139 ;;
ac48eca1 4140
d7040cdb
SE
4141openbsd*)
4142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4144 else
4145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ac48eca1
AO
4146 fi
4147 ;;
d7040cdb
SE
4148
4149osf3* | osf4* | osf5*)
4150 lt_cv_deplibs_check_method=pass_all
4151 ;;
4152
4153rdos*)
4154 lt_cv_deplibs_check_method=pass_all
4155 ;;
4156
4157solaris*)
4158 lt_cv_deplibs_check_method=pass_all
4159 ;;
4160
4161sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4162 lt_cv_deplibs_check_method=pass_all
4163 ;;
4164
4165sysv4 | sysv4.3*)
4166 case $host_vendor in
4167 motorola)
4168 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]'
4169 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4170 ;;
4171 ncr)
4172 lt_cv_deplibs_check_method=pass_all
4173 ;;
4174 sequent)
4175 lt_cv_file_magic_cmd='/bin/file'
4176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4177 ;;
4178 sni)
4179 lt_cv_file_magic_cmd='/bin/file'
4180 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4181 lt_cv_file_magic_test_file=/lib/libc.so
4182 ;;
4183 siemens)
4184 lt_cv_deplibs_check_method=pass_all
4185 ;;
4186 pc)
4187 lt_cv_deplibs_check_method=pass_all
4188 ;;
4189 esac
4190 ;;
4191
4192tpf*)
4193 lt_cv_deplibs_check_method=pass_all
4194 ;;
ac48eca1
AO
4195esac
4196
d7040cdb
SE
4197fi
4198echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4199echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4200file_magic_cmd=$lt_cv_file_magic_cmd
4201deplibs_check_method=$lt_cv_deplibs_check_method
4202test -z "$deplibs_check_method" && deplibs_check_method=unknown
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
13b2be9c 4215if test -n "$ac_tool_prefix"; then
d7040cdb
SE
4216 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4217set dummy ${ac_tool_prefix}ar; ac_word=$2
13b2be9c
DJ
4218echo "$as_me:$LINENO: checking for $ac_word" >&5
4219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4220if test "${ac_cv_prog_AR+set}" = set; then
13b2be9c 4221 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4222else
d7040cdb
SE
4223 if test -n "$AR"; then
4224 ac_cv_prog_AR="$AR" # Let the user override the test.
ac48eca1 4225else
13b2be9c
DJ
4226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227for as_dir in $PATH
4228do
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4233 ac_cv_prog_AR="${ac_tool_prefix}ar"
13b2be9c
DJ
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4236 fi
4237done
4238done
4239
ac48eca1
AO
4240fi
4241fi
d7040cdb
SE
4242AR=$ac_cv_prog_AR
4243if test -n "$AR"; then
4244 echo "$as_me:$LINENO: result: $AR" >&5
4245echo "${ECHO_T}$AR" >&6
ac48eca1 4246else
13b2be9c
DJ
4247 echo "$as_me:$LINENO: result: no" >&5
4248echo "${ECHO_T}no" >&6
ac48eca1
AO
4249fi
4250
13b2be9c 4251fi
d7040cdb
SE
4252if test -z "$ac_cv_prog_AR"; then
4253 ac_ct_AR=$AR
4254 # Extract the first word of "ar", so it can be a program name with args.
4255set dummy ar; ac_word=$2
13b2be9c
DJ
4256echo "$as_me:$LINENO: checking for $ac_word" >&5
4257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4258if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13b2be9c 4259 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 4260else
d7040cdb
SE
4261 if test -n "$ac_ct_AR"; then
4262 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d6d788bd 4263else
13b2be9c
DJ
4264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH
4266do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4271 ac_cv_prog_ac_ct_AR="ar"
13b2be9c
DJ
4272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275done
4276done
4277
d7040cdb 4278 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
ac48eca1
AO
4279fi
4280fi
d7040cdb
SE
4281ac_ct_AR=$ac_cv_prog_ac_ct_AR
4282if test -n "$ac_ct_AR"; then
4283 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4284echo "${ECHO_T}$ac_ct_AR" >&6
ac48eca1 4285else
13b2be9c
DJ
4286 echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6
ac48eca1
AO
4288fi
4289
d7040cdb 4290 AR=$ac_ct_AR
ac48eca1 4291else
d7040cdb 4292 AR="$ac_cv_prog_AR"
ac48eca1
AO
4293fi
4294
d7040cdb
SE
4295test -z "$AR" && AR=ar
4296test -z "$AR_FLAGS" && AR_FLAGS=cru
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
13b2be9c
DJ
4308if test -n "$ac_tool_prefix"; then
4309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 4310set dummy ${ac_tool_prefix}strip; ac_word=$2
13b2be9c
DJ
4311echo "$as_me:$LINENO: checking for $ac_word" >&5
4312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313if test "${ac_cv_prog_STRIP+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
4315else
4316 if test -n "$STRIP"; then
4317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4318else
13b2be9c
DJ
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330done
4331done
4332
ac48eca1
AO
4333fi
4334fi
13b2be9c 4335STRIP=$ac_cv_prog_STRIP
ac48eca1 4336if test -n "$STRIP"; then
13b2be9c
DJ
4337 echo "$as_me:$LINENO: result: $STRIP" >&5
4338echo "${ECHO_T}$STRIP" >&6
ac48eca1 4339else
13b2be9c
DJ
4340 echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6
ac48eca1
AO
4342fi
4343
13b2be9c 4344fi
ac48eca1 4345if test -z "$ac_cv_prog_STRIP"; then
13b2be9c 4346 ac_ct_STRIP=$STRIP
ac48eca1
AO
4347 # Extract the first word of "strip", so it can be a program name with args.
4348set dummy strip; ac_word=$2
13b2be9c
DJ
4349echo "$as_me:$LINENO: checking for $ac_word" >&5
4350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4353else
13b2be9c
DJ
4354 if test -n "$ac_ct_STRIP"; then
4355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 4356else
13b2be9c
DJ
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364 ac_cv_prog_ac_ct_STRIP="strip"
4365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4367 fi
4368done
4369done
4370
4371 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
d6d788bd
L
4372fi
4373fi
13b2be9c
DJ
4374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4375if test -n "$ac_ct_STRIP"; then
4376 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4377echo "${ECHO_T}$ac_ct_STRIP" >&6
d6d788bd 4378else
13b2be9c
DJ
4379 echo "$as_me:$LINENO: result: no" >&5
4380echo "${ECHO_T}no" >&6
d6d788bd
L
4381fi
4382
13b2be9c 4383 STRIP=$ac_ct_STRIP
d6d788bd 4384else
13b2be9c 4385 STRIP="$ac_cv_prog_STRIP"
d6d788bd
L
4386fi
4387
d7040cdb 4388test -z "$STRIP" && STRIP=:
252b5132 4389
252b5132 4390
d6d788bd 4391
a74801ba 4392
a74801ba 4393
13b2be9c 4394
d7040cdb
SE
4395if test -n "$ac_tool_prefix"; then
4396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4397set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4398echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400if test "${ac_cv_prog_RANLIB+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4402else
d7040cdb
SE
4403 if test -n "$RANLIB"; then
4404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
252b5132 4416 fi
d7040cdb
SE
4417done
4418done
252b5132 4419
d7040cdb
SE
4420fi
4421fi
4422RANLIB=$ac_cv_prog_RANLIB
4423if test -n "$RANLIB"; then
4424 echo "$as_me:$LINENO: result: $RANLIB" >&5
4425echo "${ECHO_T}$RANLIB" >&6
4426else
4427 echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6
4429fi
4867be41 4430
d7040cdb
SE
4431fi
4432if test -z "$ac_cv_prog_RANLIB"; then
4433 ac_ct_RANLIB=$RANLIB
4434 # Extract the first word of "ranlib", so it can be a program name with args.
4435set dummy ranlib; ac_word=$2
4436echo "$as_me:$LINENO: checking for $ac_word" >&5
4437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4438if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 if test -n "$ac_ct_RANLIB"; then
4442 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4443else
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451 ac_cv_prog_ac_ct_RANLIB="ranlib"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
d70c5fc7 4454 fi
d7040cdb
SE
4455done
4456done
d70c5fc7 4457
d7040cdb
SE
4458 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4459fi
4460fi
4461ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4462if test -n "$ac_ct_RANLIB"; then
4463 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4464echo "${ECHO_T}$ac_ct_RANLIB" >&6
bedf545c 4465else
d7040cdb
SE
4466 echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6
4468fi
13b2be9c 4469
d7040cdb
SE
4470 RANLIB=$ac_ct_RANLIB
4471else
4472 RANLIB="$ac_cv_prog_RANLIB"
4473fi
4474
4475test -z "$RANLIB" && RANLIB=:
13b2be9c 4476
13b2be9c 4477
bedf545c 4478
6840198f 4479
13b2be9c 4480
ac48eca1 4481
d7040cdb
SE
4482# Determine commands to create old-style static archives.
4483old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4484old_postinstall_cmds='chmod 644 $oldlib'
4485old_postuninstall_cmds=
4486
4487if test -n "$RANLIB"; then
4488 case $host_os in
4489 openbsd*)
4490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4491 ;;
4492 *)
4493 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4494 ;;
4495 esac
4496 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
bedf545c 4497fi
252b5132 4498
d6d788bd 4499
252b5132 4500
d6d788bd 4501
13b2be9c 4502
13b2be9c 4503
bedf545c 4504
252b5132 4505
bedf545c 4506
d6d788bd 4507
bedf545c 4508
bedf545c 4509
252b5132 4510
d6d788bd 4511
13b2be9c
DJ
4512
4513
4514
4515
d6d788bd 4516
c43a438d 4517
c43a438d 4518
c43a438d 4519
252b5132 4520
ad22bfe8 4521
1ad12f97 4522
1ad12f97 4523
9e9b66a9 4524
1ad12f97 4525
a541e3ce 4526
9e9b66a9 4527
a2d91340 4528
d6d788bd 4529
9e9b66a9
AM
4530
4531
d7040cdb
SE
4532# If no C compiler was specified, use CC.
4533LTCC=${LTCC-"$CC"}
9e9b66a9 4534
d7040cdb
SE
4535# If no C compiler flags were specified, use CFLAGS.
4536LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d6d788bd 4537
d7040cdb
SE
4538# Allow CC to be a program name with arguments.
4539compiler=$CC
252b5132 4540
13b2be9c 4541
d7040cdb
SE
4542# Check for command to grab the raw symbol name followed by C symbol from nm.
4543echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4544echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4545if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
13b2be9c 4548
d7040cdb
SE
4549# These are sane defaults that work on at least a few old systems.
4550# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4551
4552# Character class describing NM global symbol codes.
4553symcode='[BCDEGRST]'
4554
4555# Regexp to match symbols that can be accessed directly from C.
4556sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4557
4558# Define system-specific variables.
4559case $host_os in
4560aix*)
4561 symcode='[BCDT]'
4562 ;;
4563cygwin* | mingw* | pw32*)
4564 symcode='[ABCDGISTW]'
4565 ;;
4566hpux*)
4567 if test "$host_cpu" = ia64; then
4568 symcode='[ABCDEGRST]'
4569 fi
4570 ;;
4571irix* | nonstopux*)
4572 symcode='[BCDEGRST]'
4573 ;;
4574osf*)
4575 symcode='[BCDEGQRST]'
4576 ;;
4577solaris*)
4578 symcode='[BDRT]'
4579 ;;
4580sco3.2v5*)
4581 symcode='[DT]'
4582 ;;
4583sysv4.2uw2*)
4584 symcode='[DT]'
4585 ;;
4586sysv5* | sco5v6* | unixware* | OpenUNIX*)
4587 symcode='[ABDT]'
4588 ;;
4589sysv4)
4590 symcode='[DFNSTU]'
4591 ;;
76a27922
ILT
4592esac
4593
d7040cdb
SE
4594# If we're using GNU nm, then use its standard symbol codes.
4595case `$NM -V 2>&1` in
4596*GNU* | *'with BFD'*)
4597 symcode='[ABCDGIRSTW]' ;;
4598esac
d6d788bd 4599
d7040cdb
SE
4600# Transform an extracted symbol line into a proper C declaration.
4601# Some systems (esp. on ia64) link data and code symbols differently,
4602# so use this general approach.
4603lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
44f2f9d2 4604
d7040cdb
SE
4605# Transform an extracted symbol line into symbol name and symbol address
4606lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
44f2f9d2 4607
d7040cdb
SE
4608# Handle CRLF in mingw tool chain
4609opt_cr=
4610case $build_os in
4611mingw*)
4612 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4613 ;;
4614esac
4615
4616# Try without a prefix underscore, then with it.
4617for ac_symprfx in "" "_"; do
4618
4619 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4620 symxfrm="\\1 $ac_symprfx\\2 \\2"
4621
4622 # Write the raw and C identifiers.
4623 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4624 # Fake it for dumpbin and say T for any non-static function
4625 # and D for any global variable.
4626 # Also find C++ and __fastcall symbols from MSVC++,
4627 # which start with @ or ?.
4628 lt_cv_sys_global_symbol_pipe="$AWK '"\
4629" {last_section=section; section=\$ 3};"\
4630" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4631" \$ 0!~/External *\|/{next};"\
4632" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4633" {if(hide[section]) next};"\
4634" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4635" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4636" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4637" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4638" ' prfx=^$ac_symprfx"
4639 else
4640 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4641 fi
4642
4643 # Check to see that the pipe works correctly.
4644 pipe_works=no
4645
4646 rm -f conftest*
4647 cat > conftest.$ac_ext <<_LT_EOF
4648#ifdef __cplusplus
4649extern "C" {
4650#endif
4651char nm_test_var;
4652void nm_test_func(void);
4653void nm_test_func(void){}
4654#ifdef __cplusplus
44f2f9d2 4655}
d7040cdb
SE
4656#endif
4657int main(){nm_test_var='a';nm_test_func();return(0);}
4658_LT_EOF
4659
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>&5
44f2f9d2
AM
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4664 (exit $ac_status); }; then
4665 # Now try to grab the symbols.
4666 nlist=conftest.nm
4667 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4668 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
44f2f9d2
AM
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4671 (exit $ac_status); } && test -s "$nlist"; then
4672 # Try sorting and uniquifying the output.
4673 if sort "$nlist" | uniq > "$nlist"T; then
4674 mv -f "$nlist"T "$nlist"
4675 else
4676 rm -f "$nlist"T
4677 fi
44f2f9d2 4678
d7040cdb
SE
4679 # Make sure that we snagged all the symbols we need.
4680 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4681 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4682 cat <<_LT_EOF > conftest.$ac_ext
4683#ifdef __cplusplus
4684extern "C" {
4685#endif
4686
4687_LT_EOF
4688 # Now generate the symbol file.
4689 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4690
4691 cat <<_LT_EOF >> conftest.$ac_ext
4692
4693/* The mapping between symbol names and symbols. */
4694const struct {
4695 const char *name;
4696 void *address;
4697}
4698lt__PROGRAM__LTX_preloaded_symbols[] =
44f2f9d2 4699{
d7040cdb
SE
4700 { "@PROGRAM@", (void *) 0 },
4701_LT_EOF
4702 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4703 cat <<\_LT_EOF >> conftest.$ac_ext
4704 {0, (void *) 0}
4705};
4706
4707/* This works around a problem in FreeBSD linker */
4708#ifdef FREEBSD_WORKAROUND
4709static const void *lt_preloaded_setup() {
4710 return lt__PROGRAM__LTX_preloaded_symbols;
4711}
44f2f9d2
AM
4712#endif
4713
d7040cdb 4714#ifdef __cplusplus
44f2f9d2 4715}
d7040cdb
SE
4716#endif
4717_LT_EOF
4718 # Now try linking the two files.
4719 mv conftest.$ac_objext conftstm.$ac_objext
4720 lt_save_LIBS="$LIBS"
4721 lt_save_CFLAGS="$CFLAGS"
4722 LIBS="conftstm.$ac_objext"
4723 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>&5
44f2f9d2
AM
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4728 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4729 pipe_works=yes
4730 fi
4731 LIBS="$lt_save_LIBS"
4732 CFLAGS="$lt_save_CFLAGS"
4733 else
4734 echo "cannot find nm_test_func in $nlist" >&5
4735 fi
4736 else
4737 echo "cannot find nm_test_var in $nlist" >&5
4738 fi
4739 else
4740 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4741 fi
4742 else
4743 echo "$progname: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4745 fi
4746 rm -f conftest* conftst*
4747
4748 # Do not use the global_symbol_pipe unless it works.
4749 if test "$pipe_works" = yes; then
4750 break
4751 else
4752 lt_cv_sys_global_symbol_pipe=
4753 fi
4754done
44f2f9d2 4755
44f2f9d2 4756fi
d7040cdb
SE
4757
4758if test -z "$lt_cv_sys_global_symbol_pipe"; then
4759 lt_cv_sys_global_symbol_to_cdecl=
4760fi
4761if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4762 echo "$as_me:$LINENO: result: failed" >&5
4763echo "${ECHO_T}failed" >&6
44f2f9d2 4764else
d7040cdb
SE
4765 echo "$as_me:$LINENO: result: ok" >&5
4766echo "${ECHO_T}ok" >&6
4767fi
44f2f9d2 4768
d7040cdb
SE
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4786if test "${enable_libtool_lock+set}" = set; then
4787 enableval="$enable_libtool_lock"
4788
4789fi;
4790test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4791
4792# Some flags need to be propagated to the compiler or linker for good
4793# libtool support.
4794case $host in
4795ia64-*-hpux*)
4796 # Find out which ABI we are using.
4797 echo 'int i;' > conftest.$ac_ext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799 (eval $ac_compile) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; then
4803 case `/usr/bin/file conftest.$ac_objext` in
4804 *ELF-32*)
4805 HPUX_IA64_MODE="32"
4806 ;;
4807 *ELF-64*)
4808 HPUX_IA64_MODE="64"
4809 ;;
4810 esac
4811 fi
4812 rm -rf conftest*
4813 ;;
4814*-*-irix6*)
4815 # Find out which ABI we are using.
4816 echo '#line 4816 "configure"' > conftest.$ac_ext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; then
4822 if test "$lt_cv_prog_gnu_ld" = yes; then
4823 case `/usr/bin/file conftest.$ac_objext` in
4824 *32-bit*)
4825 LD="${LD-ld} -melf32bsmip"
4826 ;;
4827 *N32*)
4828 LD="${LD-ld} -melf32bmipn32"
4829 ;;
4830 *64-bit*)
4831 LD="${LD-ld} -melf64bmip"
4832 ;;
4833 esac
4834 else
4835 case `/usr/bin/file conftest.$ac_objext` in
4836 *32-bit*)
4837 LD="${LD-ld} -32"
4838 ;;
4839 *N32*)
4840 LD="${LD-ld} -n32"
4841 ;;
4842 *64-bit*)
4843 LD="${LD-ld} -64"
4844 ;;
4845 esac
4846 fi
4847 fi
4848 rm -rf conftest*
4849 ;;
4850
4851x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4852s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4853 # Find out which ABI we are using.
4854 echo 'int i;' > conftest.$ac_ext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; then
4860 case `/usr/bin/file conftest.o` in
4861 *32-bit*)
4862 case $host in
4863 x86_64-*kfreebsd*-gnu)
4864 LD="${LD-ld} -m elf_i386_fbsd"
4865 ;;
4866 x86_64-*linux*)
4867 LD="${LD-ld} -m elf_i386"
4868 ;;
4869 ppc64-*linux*|powerpc64-*linux*)
4870 LD="${LD-ld} -m elf32ppclinux"
4871 ;;
4872 s390x-*linux*)
4873 LD="${LD-ld} -m elf_s390"
4874 ;;
4875 sparc64-*linux*)
4876 LD="${LD-ld} -m elf32_sparc"
4877 ;;
4878 esac
4879 ;;
4880 *64-bit*)
4881 case $host in
4882 x86_64-*kfreebsd*-gnu)
4883 LD="${LD-ld} -m elf_x86_64_fbsd"
4884 ;;
4885 x86_64-*linux*)
4886 LD="${LD-ld} -m elf_x86_64"
4887 ;;
4888 ppc*-*linux*|powerpc*-*linux*)
4889 LD="${LD-ld} -m elf64ppc"
4890 ;;
4891 s390*-*linux*|s390*-*tpf*)
4892 LD="${LD-ld} -m elf64_s390"
4893 ;;
4894 sparc*-*linux*)
4895 LD="${LD-ld} -m elf64_sparc"
4896 ;;
4897 esac
4898 ;;
4899 esac
4900 fi
4901 rm -rf conftest*
4902 ;;
4903
4904*-*-sco3.2v5*)
4905 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4906 SAVE_CFLAGS="$CFLAGS"
4907 CFLAGS="$CFLAGS -belf"
4908 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4909echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4910if test "${lt_cv_cc_needs_belf+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913 ac_ext=c
4914ac_cpp='$CPP $CPPFLAGS'
4915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
4919 cat >conftest.$ac_ext <<_ACEOF
44f2f9d2
AM
4920/* confdefs.h. */
4921_ACEOF
4922cat confdefs.h >>conftest.$ac_ext
4923cat >>conftest.$ac_ext <<_ACEOF
4924/* end confdefs.h. */
d7040cdb 4925
44f2f9d2
AM
4926int
4927main ()
4928{
d7040cdb 4929
44f2f9d2
AM
4930 ;
4931 return 0;
4932}
4933_ACEOF
d7040cdb
SE
4934rm -f conftest.$ac_objext conftest$ac_exeext
4935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4936 (eval $ac_link) 2>conftest.er1
44f2f9d2
AM
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
1ad12f97
NC
4943 { ac_try='test -z "$ac_c_werror_flag"
4944 || test ! -s conftest.err'
44f2f9d2
AM
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
d7040cdb 4950 { ac_try='test -s conftest$ac_exeext'
44f2f9d2
AM
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
d7040cdb 4956 lt_cv_cc_needs_belf=yes
44f2f9d2
AM
4957else
4958 echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
d7040cdb
SE
4961lt_cv_cc_needs_belf=no
4962fi
4963rm -f conftest.err conftest.$ac_objext \
4964 conftest$ac_exeext conftest.$ac_ext
4965 ac_ext=c
4966ac_cpp='$CPP $CPPFLAGS'
4967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970
44f2f9d2 4971fi
d7040cdb
SE
4972echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4973echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4974 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4975 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4976 CFLAGS="$SAVE_CFLAGS"
4977 fi
4978 ;;
4979sparc*-*solaris*)
4980 # Find out which ABI we are using.
4981 echo 'int i;' > conftest.$ac_ext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>&5
4984 ac_status=$?
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; then
4987 case `/usr/bin/file conftest.o` in
4988 *64-bit*)
4989 case $lt_cv_prog_gnu_ld in
4990 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4991 *) LD="${LD-ld} -64" ;;
4992 esac
4993 ;;
4994 esac
4995 fi
4996 rm -rf conftest*
4997 ;;
4998esac
4999
5000need_locks="$enable_libtool_lock"
5001
5002ac_ext=c
5003ac_cpp='$CPP $CPPFLAGS'
5004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5008echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5009# On Suns, sometimes $CPP names a directory.
5010if test -n "$CPP" && test -d "$CPP"; then
5011 CPP=
5012fi
5013if test -z "$CPP"; then
5014 if test "${ac_cv_prog_CPP+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5016else
d7040cdb
SE
5017 # Double quotes because CPP needs to be expanded
5018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5019 do
5020 ac_preproc_ok=false
5021for ac_c_preproc_warn_flag in '' yes
5022do
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
44f2f9d2
AM
5029 cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h. */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h. */
d7040cdb
SE
5035#ifdef __STDC__
5036# include <limits.h>
5037#else
5038# include <assert.h>
5039#endif
5040 Syntax error
44f2f9d2 5041_ACEOF
d7040cdb
SE
5042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44f2f9d2 5044 ac_status=$?
d7040cdb
SE
5045 grep -v '^ *+' conftest.er1 >conftest.err
5046 rm -f conftest.er1
5047 cat conftest.err >&5
44f2f9d2 5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5049 (exit $ac_status); } >/dev/null; then
5050 if test -s conftest.err; then
5051 ac_cpp_err=$ac_c_preproc_warn_flag
5052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5053 else
5054 ac_cpp_err=
5055 fi
44f2f9d2 5056else
d7040cdb
SE
5057 ac_cpp_err=yes
5058fi
5059if test -z "$ac_cpp_err"; then
5060 :
5061else
5062 echo "$as_me: failed program was:" >&5
44f2f9d2
AM
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
d7040cdb
SE
5065 # Broken: fails on valid input.
5066continue
44f2f9d2 5067fi
d7040cdb 5068rm -f conftest.err conftest.$ac_ext
44f2f9d2 5069
d7040cdb
SE
5070 # OK, works on sane cases. Now check whether non-existent headers
5071 # can be detected and how.
5072 cat >conftest.$ac_ext <<_ACEOF
5073/* confdefs.h. */
44f2f9d2 5074_ACEOF
d7040cdb
SE
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h. */
5078#include <ac_nonexistent.h>
5079_ACEOF
5080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } >/dev/null; then
5088 if test -s conftest.err; then
5089 ac_cpp_err=$ac_c_preproc_warn_flag
5090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5091 else
5092 ac_cpp_err=
5093 fi
5094else
5095 ac_cpp_err=yes
5096fi
5097if test -z "$ac_cpp_err"; then
5098 # Broken: success on invalid input.
5099continue
5100else
5101 echo "$as_me: failed program was:" >&5
5102sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5103
d7040cdb
SE
5104 # Passes both tests.
5105ac_preproc_ok=:
5106break
5107fi
5108rm -f conftest.err conftest.$ac_ext
252b5132 5109
252b5132 5110done
d7040cdb
SE
5111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112rm -f conftest.err conftest.$ac_ext
5113if $ac_preproc_ok; then
5114 break
252b5132
RH
5115fi
5116
d7040cdb
SE
5117 done
5118 ac_cv_prog_CPP=$CPP
ae57792d 5119
d7040cdb
SE
5120fi
5121 CPP=$ac_cv_prog_CPP
5122else
5123 ac_cv_prog_CPP=$CPP
5124fi
5125echo "$as_me:$LINENO: result: $CPP" >&5
5126echo "${ECHO_T}$CPP" >&6
5127ac_preproc_ok=false
5128for ac_c_preproc_warn_flag in '' yes
5129do
5130 # Use a header file that comes with gcc, so configuring glibc
5131 # with a fresh cross-compiler works.
5132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 # <limits.h> exists even on freestanding compilers.
5134 # On the NeXT, cc -E runs the code through the compiler's parser,
5135 # not just through cpp. "Syntax error" is here to catch this case.
5136 cat >conftest.$ac_ext <<_ACEOF
5137/* confdefs.h. */
ae57792d 5138_ACEOF
d7040cdb
SE
5139cat confdefs.h >>conftest.$ac_ext
5140cat >>conftest.$ac_ext <<_ACEOF
5141/* end confdefs.h. */
5142#ifdef __STDC__
5143# include <limits.h>
5144#else
5145# include <assert.h>
5146#endif
5147 Syntax error
13b2be9c 5148_ACEOF
d7040cdb
SE
5149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } >/dev/null; then
5157 if test -s conftest.err; then
5158 ac_cpp_err=$ac_c_preproc_warn_flag
5159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5160 else
5161 ac_cpp_err=
5162 fi
5163else
5164 ac_cpp_err=yes
5165fi
5166if test -z "$ac_cpp_err"; then
5167 :
5168else
5169 echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5171
d7040cdb
SE
5172 # Broken: fails on valid input.
5173continue
5174fi
5175rm -f conftest.err conftest.$ac_ext
13b2be9c 5176
d7040cdb
SE
5177 # OK, works on sane cases. Now check whether non-existent headers
5178 # can be detected and how.
5179 cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h. */
13b2be9c 5181_ACEOF
d7040cdb
SE
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h. */
5185#include <ac_nonexistent.h>
5186_ACEOF
5187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } >/dev/null; then
5195 if test -s conftest.err; then
5196 ac_cpp_err=$ac_c_preproc_warn_flag
5197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5198 else
5199 ac_cpp_err=
5200 fi
5201else
5202 ac_cpp_err=yes
5203fi
5204if test -z "$ac_cpp_err"; then
5205 # Broken: success on invalid input.
5206continue
5207else
5208 echo "$as_me: failed program was:" >&5
5209sed 's/^/| /' conftest.$ac_ext >&5
14ee9f48 5210
d7040cdb
SE
5211 # Passes both tests.
5212ac_preproc_ok=:
5213break
5214fi
5215rm -f conftest.err conftest.$ac_ext
14ee9f48 5216
d7040cdb
SE
5217done
5218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5219rm -f conftest.err conftest.$ac_ext
5220if $ac_preproc_ok; then
5221 :
5222else
5223 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5224See \`config.log' for more details." >&5
5225echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5226See \`config.log' for more details." >&2;}
14ee9f48 5227 { (exit 1); exit 1; }; }
d7040cdb 5228fi
14ee9f48 5229
d7040cdb
SE
5230ac_ext=c
5231ac_cpp='$CPP $CPPFLAGS'
5232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234ac_compiler_gnu=$ac_cv_c_compiler_gnu
f8fc3443 5235
f8fc3443 5236
d7040cdb
SE
5237echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5238echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5239if test "${ac_cv_header_stdc+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241else
5242 cat >conftest.$ac_ext <<_ACEOF
5243/* confdefs.h. */
13b2be9c 5244_ACEOF
d7040cdb
SE
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h. */
5248#include <stdlib.h>
5249#include <stdarg.h>
5250#include <string.h>
5251#include <float.h>
252b5132 5252
d7040cdb
SE
5253int
5254main ()
5255{
85fbca6a 5256
d7040cdb
SE
5257 ;
5258 return 0;
5259}
85fbca6a 5260_ACEOF
d7040cdb
SE
5261rm -f conftest.$ac_objext
5262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263 (eval $ac_compile) 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag"
5271 || test ! -s conftest.err'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest.$ac_objext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_header_stdc=yes
5284else
5285 echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
85fbca6a 5287
d7040cdb
SE
5288ac_cv_header_stdc=no
5289fi
5290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 5291
d7040cdb
SE
5292if test $ac_cv_header_stdc = yes; then
5293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5294 cat >conftest.$ac_ext <<_ACEOF
5295/* confdefs.h. */
13b2be9c 5296_ACEOF
d7040cdb
SE
5297cat confdefs.h >>conftest.$ac_ext
5298cat >>conftest.$ac_ext <<_ACEOF
5299/* end confdefs.h. */
5300#include <string.h>
252b5132 5301
d7040cdb
SE
5302_ACEOF
5303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5304 $EGREP "memchr" >/dev/null 2>&1; then
5305 :
5306else
5307 ac_cv_header_stdc=no
5308fi
5309rm -f conftest*
252b5132 5310
d7040cdb 5311fi
13b2be9c 5312
d7040cdb
SE
5313if test $ac_cv_header_stdc = yes; then
5314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5315 cat >conftest.$ac_ext <<_ACEOF
5316/* confdefs.h. */
13b2be9c 5317_ACEOF
d7040cdb
SE
5318cat confdefs.h >>conftest.$ac_ext
5319cat >>conftest.$ac_ext <<_ACEOF
5320/* end confdefs.h. */
5321#include <stdlib.h>
316f5878 5322
13b2be9c 5323_ACEOF
d7040cdb
SE
5324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5325 $EGREP "free" >/dev/null 2>&1; then
5326 :
5327else
5328 ac_cv_header_stdc=no
5329fi
5330rm -f conftest*
316f5878 5331
d7040cdb 5332fi
13b2be9c 5333
d7040cdb
SE
5334if test $ac_cv_header_stdc = yes; then
5335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5336 if test "$cross_compiling" = yes; then
5337 :
5338else
5339 cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h. */
13b2be9c 5341_ACEOF
d7040cdb
SE
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h. */
5345#include <ctype.h>
5346#if ((' ' & 0x0FF) == 0x020)
5347# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5348# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5349#else
5350# define ISLOWER(c) \
5351 (('a' <= (c) && (c) <= 'i') \
5352 || ('j' <= (c) && (c) <= 'r') \
5353 || ('s' <= (c) && (c) <= 'z'))
5354# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5355#endif
cac012d6 5356
d7040cdb
SE
5357#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5358int
5359main ()
5360{
5361 int i;
5362 for (i = 0; i < 256; i++)
5363 if (XOR (islower (i), ISLOWER (i))
5364 || toupper (i) != TOUPPER (i))
5365 exit(2);
5366 exit (0);
5367}
13b2be9c 5368_ACEOF
d7040cdb
SE
5369rm -f conftest$ac_exeext
5370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5371 (eval $ac_link) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 :
5381else
5382 echo "$as_me: program exited with status $ac_status" >&5
5383echo "$as_me: failed program was:" >&5
5384sed 's/^/| /' conftest.$ac_ext >&5
316f5878 5385
d7040cdb
SE
5386( exit $ac_status )
5387ac_cv_header_stdc=no
5388fi
5389rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5390fi
5391fi
5392fi
5393echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5394echo "${ECHO_T}$ac_cv_header_stdc" >&6
5395if test $ac_cv_header_stdc = yes; then
316f5878 5396
d7040cdb
SE
5397cat >>confdefs.h <<\_ACEOF
5398#define STDC_HEADERS 1
5399_ACEOF
252b5132 5400
d7040cdb 5401fi
252b5132 5402
d7040cdb 5403# On IRIX 5.3, sys/types and inttypes.h are conflicting.
252b5132 5404
07c1b327 5405
07c1b327 5406
07c1b327 5407
252b5132 5408
252b5132 5409
280d71bf 5410
252b5132 5411
252b5132 5412
d7040cdb
SE
5413for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5414 inttypes.h stdint.h unistd.h
5415do
5416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5417echo "$as_me:$LINENO: checking for $ac_header" >&5
5418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5419if eval "test \"\${$as_ac_Header+set}\" = set"; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421else
5422 cat >conftest.$ac_ext <<_ACEOF
5423/* confdefs.h. */
5424_ACEOF
5425cat confdefs.h >>conftest.$ac_ext
5426cat >>conftest.$ac_ext <<_ACEOF
5427/* end confdefs.h. */
5428$ac_includes_default
252b5132 5429
d7040cdb
SE
5430#include <$ac_header>
5431_ACEOF
5432rm -f conftest.$ac_objext
5433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>conftest.er1
5435 ac_status=$?
5436 grep -v '^ *+' conftest.er1 >conftest.err
5437 rm -f conftest.er1
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
5441 { ac_try='test -z "$ac_c_werror_flag"
5442 || test ! -s conftest.err'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; } &&
5448 { ac_try='test -s conftest.$ac_objext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 eval "$as_ac_Header=yes"
5455else
5456 echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
047af9ef 5458
d7040cdb
SE
5459eval "$as_ac_Header=no"
5460fi
5461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462fi
5463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5465if test `eval echo '${'$as_ac_Header'}'` = yes; then
5466 cat >>confdefs.h <<_ACEOF
5467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5468_ACEOF
13b2be9c 5469
d7040cdb
SE
5470fi
5471
5472done
5473
5474
5475
5476for ac_header in dlfcn.h
5477do
5478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5479echo "$as_me:$LINENO: checking for $ac_header" >&5
5480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5481if eval "test \"\${$as_ac_Header+set}\" = set"; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 cat >conftest.$ac_ext <<_ACEOF
5485/* confdefs.h. */
13b2be9c 5486_ACEOF
d7040cdb
SE
5487cat confdefs.h >>conftest.$ac_ext
5488cat >>conftest.$ac_ext <<_ACEOF
5489/* end confdefs.h. */
5490$ac_includes_default
252b5132 5491
d7040cdb
SE
5492#include <$ac_header>
5493_ACEOF
5494rm -f conftest.$ac_objext
5495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496 (eval $ac_compile) 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 { ac_try='test -z "$ac_c_werror_flag"
5504 || test ! -s conftest.err'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; } &&
5510 { ac_try='test -s conftest.$ac_objext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
5516 eval "$as_ac_Header=yes"
5517else
5518 echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
93fbbb04 5520
d7040cdb
SE
5521eval "$as_ac_Header=no"
5522fi
5523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5524fi
5525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5527if test `eval echo '${'$as_ac_Header'}'` = yes; then
5528 cat >>confdefs.h <<_ACEOF
5529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5530_ACEOF
93fbbb04 5531
d7040cdb 5532fi
d70c5fc7 5533
d7040cdb 5534done
e0001a05 5535
252b5132 5536
252b5132 5537
d7040cdb
SE
5538# This can be used to rebuild libtool when needed
5539LIBTOOL_DEPS="$ltmain"
252b5132 5540
d7040cdb
SE
5541# Always use our own libtool.
5542LIBTOOL='$(SHELL) $(top_builddir)/libtool'
252b5132 5543
252b5132 5544
3bcbcc3d 5545
252b5132 5546
252b5132 5547
252b5132 5548
15886821 5549
252b5132 5550
252b5132 5551
13b2be9c
DJ
5552
5553
252b5132 5554
252b5132 5555
d6d788bd 5556
252b5132 5557
252b5132 5558
252b5132 5559
252b5132 5560
252b5132 5561
252b5132 5562
252b5132 5563
13b2be9c 5564
252b5132 5565
13b2be9c 5566
13b2be9c 5567
d7040cdb 5568test -z "$LN_S" && LN_S="ln -s"
252b5132 5569
252b5132 5570
d6d788bd 5571
252b5132 5572
252b5132 5573
d6d788bd
L
5574
5575
5576
5577
5578
5579
252b5132 5580
d6d788bd 5581
4001ad8c 5582
d7040cdb
SE
5583if test -n "${ZSH_VERSION+set}" ; then
5584 setopt NO_GLOB_SUBST
5585fi
5586
5587echo "$as_me:$LINENO: checking for objdir" >&5
5588echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5589if test "${lt_cv_objdir+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592 rm -f .libs 2>/dev/null
5593mkdir .libs 2>/dev/null
5594if test -d .libs; then
5595 lt_cv_objdir=.libs
5596else
5597 # MS-DOS does not allow filenames that begin with a dot.
5598 lt_cv_objdir=_libs
5599fi
5600rmdir .libs 2>/dev/null
5601fi
5602echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5603echo "${ECHO_T}$lt_cv_objdir" >&6
5604objdir=$lt_cv_objdir
13b2be9c 5605
9b2b7d69 5606
13b2be9c 5607
9b2b7d69 5608
13b2be9c
DJ
5609
5610cat >>confdefs.h <<_ACEOF
d7040cdb 5611#define LT_OBJDIR "$lt_cv_objdir/"
13b2be9c 5612_ACEOF
9b2b7d69 5613
13b2be9c 5614
9b2b7d69 5615
13b2be9c 5616
13b2be9c
DJ
5617
5618
d7040cdb
SE
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630case $host_os in
5631aix3*)
5632 # AIX sometimes has problems with the GCC collect2 program. For some
5633 # reason, if we set the COLLECT_NAMES environment variable, the problems
5634 # vanish in a puff of smoke.
5635 if test "X${COLLECT_NAMES+set}" != Xset; then
5636 COLLECT_NAMES=
5637 export COLLECT_NAMES
13b2be9c 5638 fi
d7040cdb
SE
5639 ;;
5640esac
5641
5642# Sed substitution that helps us do robust quoting. It backslashifies
5643# metacharacters that are still active within double-quoted strings.
5644sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5645
5646# Same as above, but do not quote variable references.
5647double_quote_subst='s/\(["`\\]\)/\\\1/g'
5648
5649# Sed substitution to delay expansion of an escaped shell variable in a
5650# double_quote_subst'ed string.
5651delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5652
5653# Sed substitution to delay expansion of an escaped single quote.
5654delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5655
5656# Sed substitution to avoid accidental globbing in evaled expressions
5657no_glob_subst='s/\*/\\\*/g'
5658
5659# Global variables:
5660ofile=libtool
5661can_build_shared=yes
5662
5663# All known linkers require a `.a' archive for static linking (except MSVC,
5664# which needs '.lib').
5665libext=a
5666
5667with_gnu_ld="$lt_cv_prog_gnu_ld"
5668
5669old_CC="$CC"
5670old_CFLAGS="$CFLAGS"
5671
5672# Set sane defaults for various variables
5673test -z "$CC" && CC=cc
5674test -z "$LTCC" && LTCC=$CC
5675test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5676test -z "$LD" && LD=ld
5677test -z "$ac_objext" && ac_objext=o
5678
5679for cc_temp in $compiler""; do
5680 case $cc_temp in
5681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5683 \-*) ;;
5684 *) break;;
5685 esac
13b2be9c 5686done
d7040cdb 5687cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
252b5132
RH
5688
5689
d7040cdb
SE
5690# Only perform the check for file, if the check method requires it
5691test -z "$MAGIC_CMD" && MAGIC_CMD=file
5692case $deplibs_check_method in
5693file_magic*)
5694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5695 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5696echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5697if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13b2be9c
DJ
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
d7040cdb
SE
5700 case $MAGIC_CMD in
5701[\\/*] | ?:[\\/]*)
5702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5703 ;;
5704*)
5705 lt_save_MAGIC_CMD="$MAGIC_CMD"
5706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5707 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5708 for ac_dir in $ac_dummy; do
5709 IFS="$lt_save_ifs"
5710 test -z "$ac_dir" && ac_dir=.
5711 if test -f $ac_dir/${ac_tool_prefix}file; then
5712 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5713 if test -n "$file_magic_test_file"; then
5714 case $deplibs_check_method in
5715 "file_magic "*)
5716 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5717 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5718 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5719 $EGREP "$file_magic_regex" > /dev/null; then
5720 :
5721 else
5722 cat <<_LT_EOF 1>&2
13b2be9c 5723
d7040cdb
SE
5724*** Warning: the command libtool uses to detect shared libraries,
5725*** $file_magic_cmd, produces output that libtool cannot recognize.
5726*** The result is that libtool may fail to recognize shared libraries
5727*** as such. This will affect the creation of libtool libraries that
5728*** depend on shared libraries, but programs linked with such libtool
5729*** libraries will work regardless of this problem. Nevertheless, you
5730*** may want to report the problem to your system manager and/or to
5731*** bug-libtool@gnu.org
5732
5733_LT_EOF
5734 fi ;;
5735 esac
5736 fi
5737 break
5738 fi
5739 done
5740 IFS="$lt_save_ifs"
5741 MAGIC_CMD="$lt_save_MAGIC_CMD"
5742 ;;
5743esac
13b2be9c 5744fi
d7040cdb
SE
5745
5746MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5747if test -n "$MAGIC_CMD"; then
5748 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5749echo "${ECHO_T}$MAGIC_CMD" >&6
13b2be9c
DJ
5750else
5751 echo "$as_me:$LINENO: result: no" >&5
5752echo "${ECHO_T}no" >&6
5753fi
5754
13b2be9c 5755
d7040cdb
SE
5756
5757
5758
5759if test -z "$lt_cv_path_MAGIC_CMD"; then
13b2be9c 5760 if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5761 echo "$as_me:$LINENO: checking for file" >&5
5762echo $ECHO_N "checking for file... $ECHO_C" >&6
5763if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13b2be9c 5764 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5765else
d7040cdb
SE
5766 case $MAGIC_CMD in
5767[\\/*] | ?:[\\/]*)
5768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5769 ;;
5770*)
5771 lt_save_MAGIC_CMD="$MAGIC_CMD"
5772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5773 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5774 for ac_dir in $ac_dummy; do
5775 IFS="$lt_save_ifs"
5776 test -z "$ac_dir" && ac_dir=.
5777 if test -f $ac_dir/file; then
5778 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5779 if test -n "$file_magic_test_file"; then
5780 case $deplibs_check_method in
5781 "file_magic "*)
5782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5785 $EGREP "$file_magic_regex" > /dev/null; then
5786 :
5787 else
5788 cat <<_LT_EOF 1>&2
13b2be9c 5789
d7040cdb
SE
5790*** Warning: the command libtool uses to detect shared libraries,
5791*** $file_magic_cmd, produces output that libtool cannot recognize.
5792*** The result is that libtool may fail to recognize shared libraries
5793*** as such. This will affect the creation of libtool libraries that
5794*** depend on shared libraries, but programs linked with such libtool
5795*** libraries will work regardless of this problem. Nevertheless, you
5796*** may want to report the problem to your system manager and/or to
5797*** bug-libtool@gnu.org
13b2be9c 5798
d7040cdb
SE
5799_LT_EOF
5800 fi ;;
5801 esac
5802 fi
5803 break
5804 fi
5805 done
5806 IFS="$lt_save_ifs"
5807 MAGIC_CMD="$lt_save_MAGIC_CMD"
5808 ;;
5809esac
13b2be9c 5810fi
13b2be9c 5811
d7040cdb
SE
5812MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5813if test -n "$MAGIC_CMD"; then
5814 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5815echo "${ECHO_T}$MAGIC_CMD" >&6
13b2be9c
DJ
5816else
5817 echo "$as_me:$LINENO: result: no" >&5
5818echo "${ECHO_T}no" >&6
5819fi
5820
6840198f 5821
d7040cdb
SE
5822 else
5823 MAGIC_CMD=:
5824 fi
13b2be9c 5825fi
13b2be9c 5826
252b5132 5827 fi
d7040cdb
SE
5828 ;;
5829esac
252b5132 5830
d7040cdb 5831# Use C for the default configuration in the libtool script
13b2be9c 5832
d7040cdb
SE
5833lt_save_CC="$CC"
5834ac_ext=c
5835ac_cpp='$CPP $CPPFLAGS'
5836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838ac_compiler_gnu=$ac_cv_c_compiler_gnu
6840198f 5839
13b2be9c 5840
d7040cdb
SE
5841# Source file extension for C test sources.
5842ac_ext=c
252b5132 5843
d7040cdb
SE
5844# Object file extension for compiled C test sources.
5845objext=o
5846objext=$objext
13b2be9c 5847
d7040cdb
SE
5848# Code to be used in simple compile tests
5849lt_simple_compile_test_code="int some_variable = 0;"
13b2be9c 5850
d7040cdb
SE
5851# Code to be used in simple link tests
5852lt_simple_link_test_code='int main(){return(0);}'
13b2be9c
DJ
5853
5854
13b2be9c 5855
13b2be9c 5856
d7040cdb
SE
5857
5858
5859
5860# If no C compiler was specified, use CC.
5861LTCC=${LTCC-"$CC"}
5862
5863# If no C compiler flags were specified, use CFLAGS.
5864LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5865
5866# Allow CC to be a program name with arguments.
5867compiler=$CC
5868
5869# Save the default compiler, since it gets overwritten when the other
5870# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5871compiler_DEFAULT=$CC
5872
5873# save warnings/boilerplate of simple test code
5874ac_outfile=conftest.$ac_objext
5875echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5876eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5877_lt_compiler_boilerplate=`cat conftest.err`
5878$RM conftest*
5879
5880ac_outfile=conftest.$ac_objext
5881echo "$lt_simple_link_test_code" >conftest.$ac_ext
5882eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5883_lt_linker_boilerplate=`cat conftest.err`
5884$RM conftest*
5885
5886
5887## CAVEAT EMPTOR:
5888## There is no encapsulation within the following macros, do not change
5889## the running order or otherwise move them around unless you know exactly
5890## what you are doing...
5891if test -n "$compiler"; then
5892
5893lt_prog_compiler_no_builtin_flag=
5894
5895if test "$GCC" = yes; then
5896 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5897
5898 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5899echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5900if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13b2be9c
DJ
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
d7040cdb
SE
5903 lt_cv_prog_compiler_rtti_exceptions=no
5904 ac_outfile=conftest.$ac_objext
5905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5906 lt_compiler_flag="-fno-rtti -fno-exceptions"
5907 # Insert the option either (1) after the last *FLAGS variable, or
5908 # (2) before a word containing "conftest.", or (3) at the end.
5909 # Note that $ac_compile itself does not contain backslashes and begins
5910 # with a dollar sign (not a hyphen), so the echo should work correctly.
5911 # The option is referenced via a variable to avoid confusing sed.
5912 lt_compile=`echo "$ac_compile" | $SED \
5913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5915 -e 's:$: $lt_compiler_flag:'`
5916 (eval echo "\"\$as_me:5916: $lt_compile\"" >&5)
5917 (eval "$lt_compile" 2>conftest.err)
5918 ac_status=$?
5919 cat conftest.err >&5
5920 echo "$as_me:5920: \$? = $ac_status" >&5
5921 if (exit $ac_status) && test -s "$ac_outfile"; then
5922 # The compiler can only warn and ignore the option if not recognized
5923 # So say no if there are warnings other than the usual output.
5924 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5927 lt_cv_prog_compiler_rtti_exceptions=yes
5928 fi
5929 fi
5930 $RM conftest*
13b2be9c 5931
d7040cdb
SE
5932fi
5933echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5934echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
13b2be9c 5935
d7040cdb
SE
5936if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5937 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13b2be9c 5938else
d7040cdb 5939 :
13b2be9c 5940fi
13b2be9c
DJ
5941
5942fi
13b2be9c 5943
13b2be9c 5944
c8615825 5945
d7040cdb
SE
5946
5947
5948
5949 lt_prog_compiler_wl=
5950lt_prog_compiler_pic=
5951lt_prog_compiler_static=
5952
5953echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5954echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5955
252b5132 5956 if test "$GCC" = yes; then
d7040cdb
SE
5957 lt_prog_compiler_wl='-Wl,'
5958 lt_prog_compiler_static='-static'
5959
5960 case $host_os in
5961 aix*)
5962 # All AIX code is PIC.
5963 if test "$host_cpu" = ia64; then
5964 # AIX 5 now supports IA64 processor
5965 lt_prog_compiler_static='-Bstatic'
5966 fi
5967 ;;
5968
5969 amigaos*)
5970 if test "$host_cpu" = m68k; then
5971 # FIXME: we need at least 68020 code to build shared libraries, but
5972 # adding the `-m68020' flag to GCC prevents building anything better,
5973 # like `-m68040'.
5974 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5975 fi
5976 ;;
5977
5978 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5979 # PIC is the default for these OSes.
5980 ;;
5981
5982 mingw* | cygwin* | pw32* | os2*)
5983 # This hack is so that the source file can tell whether it is being
5984 # built for inclusion in a dll (and should export symbols for example).
5985 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5986 # (--disable-auto-import) libraries
5987 lt_prog_compiler_pic='-DDLL_EXPORT'
5988 ;;
5989
5990 darwin* | rhapsody*)
5991 # PIC is the default on this platform
5992 # Common symbols not allowed in MH_DYLIB files
5993 lt_prog_compiler_pic='-fno-common'
5994 ;;
5995
5996 hpux*)
5997 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5998 # not for PA HP-UX.
5999 case $host_cpu in
6000 hppa*64*|ia64*)
6001 # +Z the default
6002 ;;
6003 *)
6004 lt_prog_compiler_pic='-fPIC'
6005 ;;
6006 esac
6007 ;;
6008
6009 interix[3-9]*)
6010 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6011 # Instead, we relocate shared libraries at runtime.
6012 ;;
6013
6014 msdosdjgpp*)
6015 # Just because we use GCC doesn't mean we suddenly get shared libraries
6016 # on systems that don't support them.
6017 lt_prog_compiler_can_build_shared=no
6018 enable_shared=no
6019 ;;
6020
6021 *nto* | *qnx*)
6022 # QNX uses GNU C++, but need to define -shared option too, otherwise
6023 # it will coredump.
6024 lt_prog_compiler_pic='-fPIC -shared'
6025 ;;
6026
6027 sysv4*MP*)
6028 if test -d /usr/nec; then
6029 lt_prog_compiler_pic=-Kconform_pic
6030 fi
6031 ;;
6032
6033 *)
6034 lt_prog_compiler_pic='-fPIC'
6035 ;;
6036 esac
252b5132 6037 else
d7040cdb
SE
6038 # PORTME Check for flag to pass linker flags through the system compiler.
6039 case $host_os in
6040 aix*)
6041 lt_prog_compiler_wl='-Wl,'
6042 if test "$host_cpu" = ia64; then
6043 # AIX 5 now supports IA64 processor
6044 lt_prog_compiler_static='-Bstatic'
6045 else
6046 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6047 fi
6048 ;;
6049 darwin*)
6050 # PIC is the default on this platform
6051 # Common symbols not allowed in MH_DYLIB files
6052 case $cc_basename in
6053 xlc*)
6054 lt_prog_compiler_pic='-qnocommon'
6055 lt_prog_compiler_wl='-Wl,'
6056 ;;
6057 esac
6058 ;;
6059
6060 mingw* | cygwin* | pw32* | os2*)
6061 # This hack is so that the source file can tell whether it is being
6062 # built for inclusion in a dll (and should export symbols for example).
6063 lt_prog_compiler_pic='-DDLL_EXPORT'
6064 ;;
6065
6066 hpux9* | hpux10* | hpux11*)
6067 lt_prog_compiler_wl='-Wl,'
6068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6069 # not for PA HP-UX.
6070 case $host_cpu in
6071 hppa*64*|ia64*)
6072 # +Z the default
6073 ;;
6074 *)
6075 lt_prog_compiler_pic='+Z'
6076 ;;
6077 esac
6078 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6079 lt_prog_compiler_static='${wl}-a ${wl}archive'
6080 ;;
6081
6082 irix5* | irix6* | nonstopux*)
6083 lt_prog_compiler_wl='-Wl,'
6084 # PIC (with -KPIC) is the default.
6085 lt_prog_compiler_static='-non_shared'
6086 ;;
6087
6088 linux* | k*bsd*-gnu)
6089 case $cc_basename in
6090 icc* | ecc*)
6091 lt_prog_compiler_wl='-Wl,'
6092 lt_prog_compiler_pic='-KPIC'
6093 lt_prog_compiler_static='-static'
6094 ;;
6095 pgcc* | pgf77* | pgf90* | pgf95*)
6096 # Portland Group compilers (*not* the Pentium gcc compiler,
6097 # which looks to be a dead project)
6098 lt_prog_compiler_wl='-Wl,'
6099 lt_prog_compiler_pic='-fpic'
6100 lt_prog_compiler_static='-Bstatic'
6101 ;;
6102 ccc*)
6103 lt_prog_compiler_wl='-Wl,'
6104 # All Alpha code is PIC.
6105 lt_prog_compiler_static='-non_shared'
6106 ;;
6107 *)
6108 case `$CC -V 2>&1 | sed 5q` in
6109 *Sun\ C*)
6110 # Sun C 5.9
6111 lt_prog_compiler_pic='-KPIC'
6112 lt_prog_compiler_static='-Bstatic'
6113 lt_prog_compiler_wl='-Wl,'
6114 ;;
6115 *Sun\ F*)
6116 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6117 lt_prog_compiler_pic='-KPIC'
6118 lt_prog_compiler_static='-Bstatic'
6119 lt_prog_compiler_wl=''
6120 ;;
6121 esac
6122 ;;
6123 esac
6124 ;;
6125
6126 newsos6)
6127 lt_prog_compiler_pic='-KPIC'
6128 lt_prog_compiler_static='-Bstatic'
6129 ;;
6130
6131 *nto* | *qnx*)
6132 # QNX uses GNU C++, but need to define -shared option too, otherwise
6133 # it will coredump.
6134 lt_prog_compiler_pic='-fPIC -shared'
6135 ;;
6136
6137 osf3* | osf4* | osf5*)
6138 lt_prog_compiler_wl='-Wl,'
6139 # All OSF/1 code is PIC.
6140 lt_prog_compiler_static='-non_shared'
6141 ;;
6142
6143 rdos*)
6144 lt_prog_compiler_static='-non_shared'
6145 ;;
6146
6147 solaris*)
6148 lt_prog_compiler_pic='-KPIC'
6149 lt_prog_compiler_static='-Bstatic'
6150 case $cc_basename in
6151 f77* | f90* | f95*)
6152 lt_prog_compiler_wl='-Qoption ld ';;
6153 *)
6154 lt_prog_compiler_wl='-Wl,';;
6155 esac
6156 ;;
6157
6158 sunos4*)
6159 lt_prog_compiler_wl='-Qoption ld '
6160 lt_prog_compiler_pic='-PIC'
6161 lt_prog_compiler_static='-Bstatic'
6162 ;;
6163
6164 sysv4 | sysv4.2uw2* | sysv4.3*)
6165 lt_prog_compiler_wl='-Wl,'
6166 lt_prog_compiler_pic='-KPIC'
6167 lt_prog_compiler_static='-Bstatic'
6168 ;;
6169
6170 sysv4*MP*)
6171 if test -d /usr/nec ;then
6172 lt_prog_compiler_pic='-Kconform_pic'
6173 lt_prog_compiler_static='-Bstatic'
6174 fi
6175 ;;
6176
6177 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6178 lt_prog_compiler_wl='-Wl,'
6179 lt_prog_compiler_pic='-KPIC'
6180 lt_prog_compiler_static='-Bstatic'
6181 ;;
6182
6183 unicos*)
6184 lt_prog_compiler_wl='-Wl,'
6185 lt_prog_compiler_can_build_shared=no
6186 ;;
6187
6188 uts4*)
6189 lt_prog_compiler_pic='-pic'
6190 lt_prog_compiler_static='-Bstatic'
6191 ;;
6192
6193 *)
6194 lt_prog_compiler_can_build_shared=no
6195 ;;
6196 esac
252b5132 6197 fi
d7040cdb
SE
6198
6199case $host_os in
6200 # For platforms which do not support PIC, -DPIC is meaningless:
6201 *djgpp*)
6202 lt_prog_compiler_pic=
6203 ;;
6204 *)
6205 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6206 ;;
6207esac
6208echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6209echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6210
6211
6212
6213
6214
6215
6216#
6217# Check to make sure the PIC flag actually works.
6218#
6219if test -n "$lt_prog_compiler_pic"; then
6220 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6221echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6222if test "${lt_prog_compiler_pic_works+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6224else
d7040cdb
SE
6225 lt_prog_compiler_pic_works=no
6226 ac_outfile=conftest.$ac_objext
6227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6228 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6229 # Insert the option either (1) after the last *FLAGS variable, or
6230 # (2) before a word containing "conftest.", or (3) at the end.
6231 # Note that $ac_compile itself does not contain backslashes and begins
6232 # with a dollar sign (not a hyphen), so the echo should work correctly.
6233 # The option is referenced via a variable to avoid confusing sed.
6234 lt_compile=`echo "$ac_compile" | $SED \
6235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6237 -e 's:$: $lt_compiler_flag:'`
6238 (eval echo "\"\$as_me:6238: $lt_compile\"" >&5)
6239 (eval "$lt_compile" 2>conftest.err)
6240 ac_status=$?
6241 cat conftest.err >&5
6242 echo "$as_me:6242: \$? = $ac_status" >&5
6243 if (exit $ac_status) && test -s "$ac_outfile"; then
6244 # The compiler can only warn and ignore the option if not recognized
6245 # So say no if there are warnings other than the usual output.
6246 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6248 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6249 lt_prog_compiler_pic_works=yes
6250 fi
6251 fi
6252 $RM conftest*
6253
9b2b7d69 6254fi
d7040cdb
SE
6255echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6256echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6257
6258if test x"$lt_prog_compiler_pic_works" = xyes; then
6259 case $lt_prog_compiler_pic in
6260 "" | " "*) ;;
6261 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6262 esac
13b2be9c 6263else
d7040cdb
SE
6264 lt_prog_compiler_pic=
6265 lt_prog_compiler_can_build_shared=no
6266fi
ab509236 6267
d7040cdb 6268fi
ab509236 6269
d7040cdb
SE
6270
6271
6272
6273
6274
6275#
6276# Check to make sure the static flag actually works.
6277#
6278wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6279echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6280echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6281if test "${lt_prog_compiler_static_works+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 6283else
d7040cdb
SE
6284 lt_prog_compiler_static_works=no
6285 save_LDFLAGS="$LDFLAGS"
6286 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6287 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6289 # The linker can only warn and ignore the option if not recognized
6290 # So say no if there are warnings
6291 if test -s conftest.err; then
6292 # Append any errors to the config.log.
6293 cat conftest.err 1>&5
6294 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6296 if diff conftest.exp conftest.er2 >/dev/null; then
6297 lt_prog_compiler_static_works=yes
6298 fi
6299 else
6300 lt_prog_compiler_static_works=yes
6301 fi
6302 fi
6303 $RM conftest*
6304 LDFLAGS="$save_LDFLAGS"
13b2be9c
DJ
6305
6306fi
d7040cdb
SE
6307echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6308echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
13b2be9c 6309
d7040cdb
SE
6310if test x"$lt_prog_compiler_static_works" = xyes; then
6311 :
6312else
6313 lt_prog_compiler_static=
13b2be9c
DJ
6314fi
6315
13b2be9c 6316
d7040cdb
SE
6317
6318
6319
6320
6321
6322 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6323echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6324if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327 lt_cv_prog_compiler_c_o=no
6328 $RM -r conftest 2>/dev/null
6329 mkdir conftest
6330 cd conftest
6331 mkdir out
6332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6333
6334 lt_compiler_flag="-o out/conftest2.$ac_objext"
6335 # Insert the option either (1) after the last *FLAGS variable, or
6336 # (2) before a word containing "conftest.", or (3) at the end.
6337 # Note that $ac_compile itself does not contain backslashes and begins
6338 # with a dollar sign (not a hyphen), so the echo should work correctly.
6339 lt_compile=`echo "$ac_compile" | $SED \
6340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6342 -e 's:$: $lt_compiler_flag:'`
6343 (eval echo "\"\$as_me:6343: $lt_compile\"" >&5)
6344 (eval "$lt_compile" 2>out/conftest.err)
6345 ac_status=$?
6346 cat out/conftest.err >&5
6347 echo "$as_me:6347: \$? = $ac_status" >&5
6348 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6349 then
6350 # The compiler can only warn and ignore the option if not recognized
6351 # So say no if there are warnings
6352 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6353 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6354 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6355 lt_cv_prog_compiler_c_o=yes
6356 fi
6357 fi
6358 chmod u+w . 2>&5
6359 $RM conftest*
6360 # SGI C++ compiler will create directory out/ii_files/ for
6361 # template instantiation
6362 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6363 $RM out/* && rmdir out
6364 cd ..
6365 $RM -r conftest
6366 $RM conftest*
6367
6368fi
6369echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6370echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6371
6372
6373
6374
6375
6376
6377 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6378echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6379if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381else
6382 lt_cv_prog_compiler_c_o=no
6383 $RM -r conftest 2>/dev/null
6384 mkdir conftest
6385 cd conftest
6386 mkdir out
6387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6388
6389 lt_compiler_flag="-o out/conftest2.$ac_objext"
6390 # Insert the option either (1) after the last *FLAGS variable, or
6391 # (2) before a word containing "conftest.", or (3) at the end.
6392 # Note that $ac_compile itself does not contain backslashes and begins
6393 # with a dollar sign (not a hyphen), so the echo should work correctly.
6394 lt_compile=`echo "$ac_compile" | $SED \
6395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6397 -e 's:$: $lt_compiler_flag:'`
6398 (eval echo "\"\$as_me:6398: $lt_compile\"" >&5)
6399 (eval "$lt_compile" 2>out/conftest.err)
6400 ac_status=$?
6401 cat out/conftest.err >&5
6402 echo "$as_me:6402: \$? = $ac_status" >&5
6403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6404 then
6405 # The compiler can only warn and ignore the option if not recognized
6406 # So say no if there are warnings
6407 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6408 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6409 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6410 lt_cv_prog_compiler_c_o=yes
6411 fi
6412 fi
6413 chmod u+w . 2>&5
6414 $RM conftest*
6415 # SGI C++ compiler will create directory out/ii_files/ for
6416 # template instantiation
6417 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6418 $RM out/* && rmdir out
6419 cd ..
6420 $RM -r conftest
6421 $RM conftest*
6422
6423fi
6424echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6425echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6426
6427
6428
6429
6430hard_links="nottested"
6431if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6432 # do not overwrite the value of need_locks provided by the user
6433 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6434echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6435 hard_links=yes
6436 $RM conftest*
6437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6438 touch conftest.a
6439 ln conftest.a conftest.b 2>&5 || hard_links=no
6440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6441 echo "$as_me:$LINENO: result: $hard_links" >&5
6442echo "${ECHO_T}$hard_links" >&6
6443 if test "$hard_links" = no; then
6444 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6445echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6446 need_locks=warn
6447 fi
6448else
6449 need_locks=no
6450fi
6451
6452
6453
6454
6455
6456
6457 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6458echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6459
6460 runpath_var=
6461 allow_undefined_flag=
6462 always_export_symbols=no
6463 archive_cmds=
6464 archive_expsym_cmds=
6465 compiler_needs_object=no
6466 enable_shared_with_static_runtimes=no
6467 export_dynamic_flag_spec=
6468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6469 hardcode_automatic=no
6470 hardcode_direct=no
6471 hardcode_direct_absolute=no
6472 hardcode_libdir_flag_spec=
6473 hardcode_libdir_flag_spec_ld=
6474 hardcode_libdir_separator=
6475 hardcode_minus_L=no
6476 hardcode_shlibpath_var=unsupported
6477 inherit_rpath=no
6478 link_all_deplibs=unknown
6479 module_cmds=
6480 module_expsym_cmds=
6481 old_archive_from_new_cmds=
6482 old_archive_from_expsyms_cmds=
6483 thread_safe_flag_spec=
6484 whole_archive_flag_spec=
6485 # include_expsyms should be a list of space-separated symbols to be *always*
6486 # included in the symbol list
6487 include_expsyms=
6488 # exclude_expsyms can be an extended regexp of symbols to exclude
6489 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6490 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6491 # as well as any symbol that contains `d'.
6492 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6493 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6494 # platforms (ab)use it in PIC code, but their linkers get confused if
6495 # the symbol is explicitly referenced. Since portable code cannot
6496 # rely on this symbol name, it's probably fine to never include it in
6497 # preloaded symbol tables.
6498 extract_expsyms_cmds=
6499
6500 case $host_os in
6501 cygwin* | mingw* | pw32*)
6502 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6503 # When not using gcc, we currently assume that we are using
6504 # Microsoft Visual C++.
6505 if test "$GCC" != yes; then
6506 with_gnu_ld=no
6507 fi
6508 ;;
6509 interix*)
6510 # we just hope/assume this is gcc and not c89 (= MSVC++)
6511 with_gnu_ld=yes
6512 ;;
6513 openbsd*)
6514 with_gnu_ld=no
6515 ;;
6516 esac
6517
6518 ld_shlibs=yes
6519 if test "$with_gnu_ld" = yes; then
6520 # If archive_cmds runs LD, not CC, wlarc should be empty
6521 wlarc='${wl}'
6522
6523 # Set some defaults for GNU ld with shared library support. These
6524 # are reset later if shared libraries are not supported. Putting them
6525 # here allows them to be overridden if necessary.
6526 runpath_var=LD_RUN_PATH
6527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6528 export_dynamic_flag_spec='${wl}--export-dynamic'
6529 # ancient GNU ld didn't support --whole-archive et. al.
6530 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6531 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6532 else
6533 whole_archive_flag_spec=
6534 fi
6535 supports_anon_versioning=no
6536 case `$LD -v 2>&1` in
6537 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6538 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6539 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6540 *\ 2.11.*) ;; # other 2.11 versions
6541 *) supports_anon_versioning=yes ;;
6542 esac
6543
6544 # See if GNU ld supports shared libraries.
6545 case $host_os in
6546 aix3* | aix4* | aix5*)
6547 # On AIX/PPC, the GNU linker is very broken
6548 if test "$host_cpu" != ia64; then
6549 ld_shlibs=no
6550 cat <<_LT_EOF 1>&2
6551
6552*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6553*** to be unable to reliably create shared libraries on AIX.
6554*** Therefore, libtool is disabling shared libraries support. If you
6555*** really care for shared libraries, you may want to modify your PATH
6556*** so that a non-GNU linker is found, and then restart.
6557
6558_LT_EOF
6559 fi
6560 ;;
6561
6562 amigaos*)
6563 if test "$host_cpu" = m68k; then
6564 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)'
6565 hardcode_libdir_flag_spec='-L$libdir'
6566 hardcode_minus_L=yes
6567 fi
6568
6569 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6570 # that the semantics of dynamic libraries on AmigaOS, at least up
6571 # to version 4, is to share data among multiple programs linked
6572 # with the same dynamic library. Since this doesn't match the
6573 # behavior of shared libraries on other platforms, we can't use
6574 # them.
6575 ld_shlibs=no
6576 ;;
6577
6578 beos*)
6579 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6580 allow_undefined_flag=unsupported
6581 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6582 # support --undefined. This deserves some investigation. FIXME
6583 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6584 else
6585 ld_shlibs=no
6586 fi
6587 ;;
6588
6589 cygwin* | mingw* | pw32*)
6590 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6591 # as there is no search path for DLLs.
6592 hardcode_libdir_flag_spec='-L$libdir'
6593 allow_undefined_flag=unsupported
6594 always_export_symbols=no
6595 enable_shared_with_static_runtimes=yes
6596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6597
6598 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6600 # If the export-symbols file already is a .def file (1st line
6601 # is EXPORTS), use it as is; otherwise, prepend...
6602 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6603 cp $export_symbols $output_objdir/$soname.def;
6604 else
6605 echo EXPORTS > $output_objdir/$soname.def;
6606 cat $export_symbols >> $output_objdir/$soname.def;
6607 fi~
6608 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6609 else
6610 ld_shlibs=no
6611 fi
6612 ;;
6613
6614 interix[3-9]*)
6615 hardcode_direct=no
6616 hardcode_shlibpath_var=no
6617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6618 export_dynamic_flag_spec='${wl}-E'
6619 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6620 # Instead, shared libraries are loaded at an image base (0x10000000 by
6621 # default) and relocated if they conflict, which is a slow very memory
6622 # consuming and fragmenting process. To avoid this, we pick a random,
6623 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6624 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6626 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'
6627 ;;
6628
6629 gnu* | linux* | tpf* | k*bsd*-gnu)
6630 tmp_diet=no
6631 if test "$host_os" = linux-dietlibc; then
6632 case $cc_basename in
6633 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6634 esac
6635 fi
6636 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6637 && test "$tmp_diet" = no
6638 then
6639 tmp_addflag=
6640 case $cc_basename,$host_cpu in
6641 pgcc*) # Portland Group C compiler
6642 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'
6643 tmp_addflag=' $pic_flag'
6644 ;;
6645 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6646 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'
6647 tmp_addflag=' $pic_flag -Mnomain' ;;
6648 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6649 tmp_addflag=' -i_dynamic' ;;
6650 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6651 tmp_addflag=' -i_dynamic -nofor_main' ;;
6652 ifc* | ifort*) # Intel Fortran compiler
6653 tmp_addflag=' -nofor_main' ;;
6654 esac
6655 case `$CC -V 2>&1 | sed 5q` in
6656 *Sun\ C*) # Sun C 5.9
6657 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'
6658 compiler_needs_object=yes
6659 tmp_sharedflag='-G' ;;
6660 *Sun\ F*) # Sun Fortran 8.3
6661 tmp_sharedflag='-G' ;;
6662 *)
6663 tmp_sharedflag='-shared' ;;
6664 esac
6665 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6666
6667 if test "x$supports_anon_versioning" = xyes; then
6668 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6670 echo "local: *; };" >> $output_objdir/$libname.ver~
6671 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6672 fi
6673 else
6674 ld_shlibs=no
6675 fi
6676 ;;
6677
6678 netbsd*)
6679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6680 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6681 wlarc=
6682 else
6683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6684 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6685 fi
6686 ;;
6687
6688 solaris*)
6689 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6690 ld_shlibs=no
6691 cat <<_LT_EOF 1>&2
6692
6693*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6694*** create shared libraries on Solaris systems. Therefore, libtool
6695*** is disabling shared libraries support. We urge you to upgrade GNU
6696*** binutils to release 2.9.1 or newer. Another option is to modify
6697*** your PATH or compiler configuration so that the native linker is
6698*** used, and then restart.
6699
6700_LT_EOF
6701 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6703 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6704 else
6705 ld_shlibs=no
6706 fi
6707 ;;
6708
6709 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6710 case `$LD -v 2>&1` in
6711 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6712 ld_shlibs=no
6713 cat <<_LT_EOF 1>&2
6714
6715*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6716*** reliably create shared libraries on SCO systems. Therefore, libtool
6717*** is disabling shared libraries support. We urge you to upgrade GNU
6718*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6719*** your PATH or compiler configuration so that the native linker is
6720*** used, and then restart.
6721
6722_LT_EOF
6723 ;;
6724 *)
6725 # For security reasons, it is highly recommended that you always
6726 # use absolute paths for naming shared libraries, and exclude the
6727 # DT_RUNPATH tag from executables and libraries. But doing so
6728 # requires that you compile everything twice, which is a pain.
6729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6732 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6733 else
6734 ld_shlibs=no
6735 fi
6736 ;;
6737 esac
6738 ;;
6739
6740 sunos4*)
6741 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6742 wlarc=
6743 hardcode_direct=yes
6744 hardcode_shlibpath_var=no
6745 ;;
6746
6747 *)
6748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6750 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6751 else
6752 ld_shlibs=no
6753 fi
6754 ;;
6755 esac
6756
6757 if test "$ld_shlibs" = no; then
6758 runpath_var=
6759 hardcode_libdir_flag_spec=
6760 export_dynamic_flag_spec=
6761 whole_archive_flag_spec=
6762 fi
6763 else
6764 # PORTME fill in a description of your system's linker (not GNU ld)
6765 case $host_os in
6766 aix3*)
6767 allow_undefined_flag=unsupported
6768 always_export_symbols=yes
6769 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'
6770 # Note: this linker hardcodes the directories in LIBPATH if there
6771 # are no directories specified by -L.
6772 hardcode_minus_L=yes
6773 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6774 # Neither direct hardcoding nor static linking is supported with a
6775 # broken collect2.
6776 hardcode_direct=unsupported
6777 fi
6778 ;;
6779
6780 aix4* | aix5*)
6781 if test "$host_cpu" = ia64; then
6782 # On IA64, the linker does run time linking by default, so we don't
6783 # have to do anything special.
6784 aix_use_runtimelinking=no
6785 exp_sym_flag='-Bexport'
6786 no_entry_flag=""
6787 else
6788 # If we're using GNU nm, then we don't want the "-C" option.
6789 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6790 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6791 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'
6792 else
6793 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'
6794 fi
6795 aix_use_runtimelinking=no
6796
6797 # Test if we are trying to use run time linking or normal
6798 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6799 # need to do runtime linking.
6800 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6801 for ld_flag in $LDFLAGS; do
6802 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6803 aix_use_runtimelinking=yes
6804 break
6805 fi
6806 done
6807 ;;
6808 esac
6809
6810 exp_sym_flag='-bexport'
6811 no_entry_flag='-bnoentry'
6812 fi
6813
6814 # When large executables or shared objects are built, AIX ld can
6815 # have problems creating the table of contents. If linking a library
6816 # or program results in "error TOC overflow" add -mminimal-toc to
6817 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6818 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6819
6820 archive_cmds=''
6821 hardcode_direct=yes
6822 hardcode_direct_absolute=yes
6823 hardcode_libdir_separator=':'
6824 link_all_deplibs=yes
6825 file_list_spec='${wl}-f,'
6826
6827 if test "$GCC" = yes; then
6828 case $host_os in aix4.[012]|aix4.[012].*)
6829 # We only want to do this on AIX 4.2 and lower, the check
6830 # below for broken collect2 doesn't work under 4.3+
6831 collect2name=`${CC} -print-prog-name=collect2`
6832 if test -f "$collect2name" &&
6833 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6834 then
6835 # We have reworked collect2
6836 :
6837 else
6838 # We have old collect2
6839 hardcode_direct=unsupported
6840 # It fails to find uninstalled libraries when the uninstalled
6841 # path is not listed in the libpath. Setting hardcode_minus_L
6842 # to unsupported forces relinking
6843 hardcode_minus_L=yes
6844 hardcode_libdir_flag_spec='-L$libdir'
6845 hardcode_libdir_separator=
6846 fi
6847 ;;
6848 esac
6849 shared_flag='-shared'
6850 if test "$aix_use_runtimelinking" = yes; then
6851 shared_flag="$shared_flag "'${wl}-G'
6852 fi
6853 else
6854 # not using gcc
6855 if test "$host_cpu" = ia64; then
6856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6857 # chokes on -Wl,-G. The following line is correct:
6858 shared_flag='-G'
6859 else
6860 if test "$aix_use_runtimelinking" = yes; then
6861 shared_flag='${wl}-G'
6862 else
6863 shared_flag='${wl}-bM:SRE'
6864 fi
6865 fi
6866 fi
6867
6868 # It seems that -bexpall does not export symbols beginning with
6869 # underscore (_), so it is better to generate a list of symbols to export.
6870 always_export_symbols=yes
6871 if test "$aix_use_runtimelinking" = yes; then
6872 # Warning - without using the other runtime loading flags (-brtl),
6873 # -berok will link without error, but may produce a broken library.
6874 allow_undefined_flag='-berok'
6875 # Determine the default libpath from the value encoded in an
6876 # empty executable.
6877 cat >conftest.$ac_ext <<_ACEOF
6878/* confdefs.h. */
13b2be9c 6879_ACEOF
d7040cdb
SE
6880cat confdefs.h >>conftest.$ac_ext
6881cat >>conftest.$ac_ext <<_ACEOF
6882/* end confdefs.h. */
6883
6884int
6885main ()
6886{
6887
6888 ;
6889 return 0;
6890}
6891_ACEOF
6892rm -f conftest.$ac_objext conftest$ac_exeext
6893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>conftest.er1
13b2be9c 6895 ac_status=$?
ab509236
L
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
13b2be9c
DJ
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
1ad12f97
NC
6901 { ac_try='test -z "$ac_c_werror_flag"
6902 || test ! -s conftest.err'
ab509236
L
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
d7040cdb 6908 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
d7040cdb
SE
6914
6915lt_aix_libpath_sed='
6916 /Import File Strings/,/^$/ {
6917 /^0/ {
6918 s/^0 *\(.*\)$/\1/
6919 p
6920 }
6921 }'
6922aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6923# Check for a 64-bit object if we didn't find anything.
6924if test -z "$aix_libpath"; then
6925 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6926fi
6927else
6928 echo "$as_me: failed program was:" >&5
6929sed 's/^/| /' conftest.$ac_ext >&5
6930
6931fi
6932rm -f conftest.err conftest.$ac_objext \
6933 conftest$ac_exeext conftest.$ac_ext
6934if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6935
6936 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6937 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"
6938 else
6939 if test "$host_cpu" = ia64; then
6940 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6941 allow_undefined_flag="-z nodefs"
6942 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"
6943 else
6944 # Determine the default libpath from the value encoded in an
6945 # empty executable.
6946 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6947/* confdefs.h. */
6948_ACEOF
6949cat confdefs.h >>conftest.$ac_ext
6950cat >>conftest.$ac_ext <<_ACEOF
6951/* end confdefs.h. */
d7040cdb 6952
13b2be9c
DJ
6953int
6954main ()
6955{
d7040cdb 6956
13b2be9c
DJ
6957 ;
6958 return 0;
6959}
6960_ACEOF
d7040cdb
SE
6961rm -f conftest.$ac_objext conftest$ac_exeext
6962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6963 (eval $ac_link) 2>conftest.er1
13b2be9c 6964 ac_status=$?
ab509236
L
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
13b2be9c
DJ
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
1ad12f97
NC
6970 { ac_try='test -z "$ac_c_werror_flag"
6971 || test ! -s conftest.err'
ab509236
L
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 (eval $ac_try) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; } &&
d7040cdb 6977 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
d7040cdb
SE
6983
6984lt_aix_libpath_sed='
6985 /Import File Strings/,/^$/ {
6986 /^0/ {
6987 s/^0 *\(.*\)$/\1/
6988 p
6989 }
6990 }'
6991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6992# Check for a 64-bit object if we didn't find anything.
6993if test -z "$aix_libpath"; then
6994 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6995fi
6996else
6997 echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000fi
7001rm -f conftest.err conftest.$ac_objext \
7002 conftest$ac_exeext conftest.$ac_ext
7003if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7004
7005 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7006 # Warning - without using the other run time loading flags,
7007 # -berok will link without error, but may produce a broken library.
7008 no_undefined_flag=' ${wl}-bernotok'
7009 allow_undefined_flag=' ${wl}-berok'
7010 # Exported symbols can be pulled into shared objects from archives
7011 whole_archive_flag_spec='$convenience'
7012 archive_cmds_need_lc=yes
7013 # This is similar to how AIX traditionally builds its shared libraries.
7014 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'
7015 fi
7016 fi
7017 ;;
7018
7019 amigaos*)
7020 if test "$host_cpu" = m68k; then
7021 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)'
7022 hardcode_libdir_flag_spec='-L$libdir'
7023 hardcode_minus_L=yes
7024 fi
7025 # see comment about different semantics on the GNU ld section
7026 ld_shlibs=no
7027 ;;
7028
7029 bsdi[45]*)
7030 export_dynamic_flag_spec=-rdynamic
7031 ;;
7032
7033 cygwin* | mingw* | pw32*)
7034 # When not using gcc, we currently assume that we are using
7035 # Microsoft Visual C++.
7036 # hardcode_libdir_flag_spec is actually meaningless, as there is
7037 # no search path for DLLs.
7038 hardcode_libdir_flag_spec=' '
7039 allow_undefined_flag=unsupported
7040 # Tell ltmain to make .lib files, not .a files.
7041 libext=lib
7042 # Tell ltmain to make .dll files, not .so files.
7043 shrext_cmds=".dll"
7044 # FIXME: Setting linknames here is a bad hack.
7045 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7046 # The linker will automatically build a .lib file if we build a DLL.
7047 old_archive_from_new_cmds='true'
7048 # FIXME: Should let the user specify the lib program.
7049 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7050 fix_srcfile_path='`cygpath -w "$srcfile"`'
7051 enable_shared_with_static_runtimes=yes
7052 ;;
7053
7054 darwin* | rhapsody*)
7055 case $host_os in
7056 rhapsody* | darwin1.[012])
7057 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7058 ;;
7059 *) # Darwin 1.3 on
7060 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7061 10.[012])
7062 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7063 ;;
7064 10.*)
7065 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7066 ;;
7067 esac
7068 ;;
7069 esac
7070 archive_cmds_need_lc=no
7071 hardcode_direct=no
7072 hardcode_automatic=yes
7073 hardcode_shlibpath_var=unsupported
7074 whole_archive_flag_spec=''
7075 link_all_deplibs=yes
7076 if test "$GCC" = yes ; then
7077 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079else
7080 lt_cv_apple_cc_single_mod=no
7081 if test -z "${LT_MULTI_MODULE}"; then
7082 # By default we will add the -single_module flag. You can override
7083 # by either setting the environment variable LT_MULTI_MODULE
7084 # non-empty at configure time, or by adding -multi-module to the
7085 # link flags.
7086 echo "int foo(void){return 1;}" > conftest.c
7087 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7088 -dynamiclib ${wl}-single_module conftest.c
7089 if test -f libconftest.dylib; then
7090 lt_cv_apple_cc_single_mod=yes
7091 rm libconftest.dylib
7092 fi
7093 rm conftest.$ac_ext
7094 fi
7095fi
7096
7097 output_verbose_link_cmd=echo
7098 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7099 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7100 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}'
7101 else
7102 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7103 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}'
7104 fi
7105 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7106 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}'
7107 else
7108 case $cc_basename in
7109 xlc*)
7110 output_verbose_link_cmd=echo
7111 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7112 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7113 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7114 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}'
7115 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}'
7116 ;;
7117 *)
7118 ld_shlibs=no
7119 ;;
7120 esac
7121 fi
7122 ;;
7123
7124 dgux*)
7125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7126 hardcode_libdir_flag_spec='-L$libdir'
7127 hardcode_shlibpath_var=no
7128 ;;
7129
7130 freebsd1*)
7131 ld_shlibs=no
7132 ;;
7133
7134 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7135 # support. Future versions do this automatically, but an explicit c++rt0.o
7136 # does not break anything, and helps significantly (at the cost of a little
7137 # extra space).
7138 freebsd2.2*)
7139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7140 hardcode_libdir_flag_spec='-R$libdir'
7141 hardcode_direct=yes
7142 hardcode_shlibpath_var=no
7143 ;;
7144
7145 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7146 freebsd2*)
7147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7148 hardcode_direct=yes
7149 hardcode_minus_L=yes
7150 hardcode_shlibpath_var=no
7151 ;;
7152
7153 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7154 freebsd* | dragonfly*)
7155 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7156 hardcode_libdir_flag_spec='-R$libdir'
7157 hardcode_direct=yes
7158 hardcode_shlibpath_var=no
7159 ;;
7160
7161 hpux9*)
7162 if test "$GCC" = yes; then
7163 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'
7164 else
7165 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'
7166 fi
7167 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7168 hardcode_libdir_separator=:
7169 hardcode_direct=yes
7170
7171 # hardcode_minus_L: Not really in the search PATH,
7172 # but as the default location of the library.
7173 hardcode_minus_L=yes
7174 export_dynamic_flag_spec='${wl}-E'
7175 ;;
7176
7177 hpux10*)
7178 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7179 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7180 else
7181 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7182 fi
7183 if test "$with_gnu_ld" = no; then
7184 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7185 hardcode_libdir_flag_spec_ld='+b $libdir'
7186 hardcode_libdir_separator=:
7187 hardcode_direct=yes
7188 hardcode_direct_absolute=yes
7189 export_dynamic_flag_spec='${wl}-E'
7190 # hardcode_minus_L: Not really in the search PATH,
7191 # but as the default location of the library.
7192 hardcode_minus_L=yes
7193 fi
7194 ;;
7195
7196 hpux11*)
7197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7198 case $host_cpu in
7199 hppa*64*)
7200 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7201 ;;
7202 ia64*)
7203 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7204 ;;
7205 *)
7206 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7207 ;;
7208 esac
7209 else
7210 case $host_cpu in
7211 hppa*64*)
7212 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7213 ;;
7214 ia64*)
7215 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7216 ;;
7217 *)
7218 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7219 ;;
7220 esac
7221 fi
7222 if test "$with_gnu_ld" = no; then
7223 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7224 hardcode_libdir_separator=:
7225
7226 case $host_cpu in
7227 hppa*64*|ia64*)
7228 hardcode_direct=no
7229 hardcode_shlibpath_var=no
7230 ;;
7231 *)
7232 hardcode_direct=yes
7233 hardcode_direct_absolute=yes
7234 export_dynamic_flag_spec='${wl}-E'
7235
7236 # hardcode_minus_L: Not really in the search PATH,
7237 # but as the default location of the library.
7238 hardcode_minus_L=yes
7239 ;;
7240 esac
7241 fi
7242 ;;
7243
7244 irix5* | irix6* | nonstopux*)
7245 if test "$GCC" = yes; then
7246 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'
7247 # Try to use the -exported_symbol ld option, if it does not
7248 # work, assume that -exports_file does not work either and
7249 # implicitly export all symbols.
7250 save_LDFLAGS="$LDFLAGS"
7251 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7252 cat >conftest.$ac_ext <<_ACEOF
7253int foo(void) {}
7254_ACEOF
7255rm -f conftest.$ac_objext conftest$ac_exeext
7256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7257 (eval $ac_link) 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -z "$ac_c_werror_flag"
7265 || test ! -s conftest.err'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267 (eval $ac_try) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; } &&
7271 { ac_try='test -s conftest$ac_exeext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 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'
7278
7279else
7280 echo "$as_me: failed program was:" >&5
7281sed 's/^/| /' conftest.$ac_ext >&5
7282
7283fi
7284rm -f conftest.err conftest.$ac_objext \
7285 conftest$ac_exeext conftest.$ac_ext
7286 LDFLAGS="$save_LDFLAGS"
7287 else
7288 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'
7289 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'
7290 fi
7291 archive_cmds_need_lc='no'
7292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7293 hardcode_libdir_separator=:
7294 inherit_rpath=yes
7295 link_all_deplibs=yes
7296 ;;
7297
7298 netbsd*)
7299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7301 else
7302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7303 fi
7304 hardcode_libdir_flag_spec='-R$libdir'
7305 hardcode_direct=yes
7306 hardcode_shlibpath_var=no
7307 ;;
7308
7309 newsos6)
7310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7311 hardcode_direct=yes
7312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7313 hardcode_libdir_separator=:
7314 hardcode_shlibpath_var=no
7315 ;;
7316
7317 *nto* | *qnx*)
7318 ;;
7319
7320 openbsd*)
7321 hardcode_direct=yes
7322 hardcode_shlibpath_var=no
7323 hardcode_direct_absolute=yes
7324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7326 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7328 export_dynamic_flag_spec='${wl}-E'
7329 else
7330 case $host_os in
7331 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7333 hardcode_libdir_flag_spec='-R$libdir'
7334 ;;
7335 *)
7336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7338 ;;
7339 esac
7340 fi
7341 ;;
7342
7343 os2*)
7344 hardcode_libdir_flag_spec='-L$libdir'
7345 hardcode_minus_L=yes
7346 allow_undefined_flag=unsupported
7347 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'
7348 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7349 ;;
7350
7351 osf3*)
7352 if test "$GCC" = yes; then
7353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7354 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'
7355 else
7356 allow_undefined_flag=' -expect_unresolved \*'
7357 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'
7358 fi
7359 archive_cmds_need_lc='no'
7360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7361 hardcode_libdir_separator=:
7362 ;;
7363
7364 osf4* | osf5*) # as osf3* with the addition of -msym flag
7365 if test "$GCC" = yes; then
7366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7367 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'
7368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7369 else
7370 allow_undefined_flag=' -expect_unresolved \*'
7371 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'
7372 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~
7373 $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'
7374
7375 # Both c and cxx compiler support -rpath directly
7376 hardcode_libdir_flag_spec='-rpath $libdir'
7377 fi
7378 archive_cmds_need_lc='no'
7379 hardcode_libdir_separator=:
7380 ;;
7381
7382 solaris*)
7383 no_undefined_flag=' -z defs'
7384 if test "$GCC" = yes; then
7385 wlarc='${wl}'
7386 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7388 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7389 else
7390 case `$CC -V 2>&1` in
7391 *"Compilers 5.0"*)
7392 wlarc=''
7393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7396 ;;
7397 *)
7398 wlarc='${wl}'
7399 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7401 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7402 ;;
7403 esac
7404 fi
7405 hardcode_libdir_flag_spec='-R$libdir'
7406 hardcode_shlibpath_var=no
7407 case $host_os in
7408 solaris2.[0-5] | solaris2.[0-5].*) ;;
7409 *)
7410 # The compiler driver will combine and reorder linker options,
7411 # but understands `-z linker_flag'. GCC discards it without `$wl',
7412 # but is careful enough not to reorder.
7413 # Supported since Solaris 2.6 (maybe 2.5.1?)
7414 if test "$GCC" = yes; then
7415 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7416 else
7417 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7418 fi
7419 ;;
7420 esac
7421 link_all_deplibs=yes
7422 ;;
7423
7424 sunos4*)
7425 if test "x$host_vendor" = xsequent; then
7426 # Use $CC to link under sequent, because it throws in some extra .o
7427 # files that make .init and .fini sections work.
7428 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7429 else
7430 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7431 fi
7432 hardcode_libdir_flag_spec='-L$libdir'
7433 hardcode_direct=yes
7434 hardcode_minus_L=yes
7435 hardcode_shlibpath_var=no
7436 ;;
7437
7438 sysv4)
7439 case $host_vendor in
7440 sni)
7441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7442 hardcode_direct=yes # is this really true???
7443 ;;
7444 siemens)
7445 ## LD is ld it makes a PLAMLIB
7446 ## CC just makes a GrossModule.
7447 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7448 reload_cmds='$CC -r -o $output$reload_objs'
7449 hardcode_direct=no
7450 ;;
7451 motorola)
7452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7453 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7454 ;;
7455 esac
7456 runpath_var='LD_RUN_PATH'
7457 hardcode_shlibpath_var=no
7458 ;;
7459
7460 sysv4.3*)
7461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7462 hardcode_shlibpath_var=no
7463 export_dynamic_flag_spec='-Bexport'
7464 ;;
7465
7466 sysv4*MP*)
7467 if test -d /usr/nec; then
7468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7469 hardcode_shlibpath_var=no
7470 runpath_var=LD_RUN_PATH
7471 hardcode_runpath_var=yes
7472 ld_shlibs=yes
7473 fi
7474 ;;
7475
7476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7477 no_undefined_flag='${wl}-z,text'
7478 archive_cmds_need_lc=no
7479 hardcode_shlibpath_var=no
7480 runpath_var='LD_RUN_PATH'
7481
7482 if test "$GCC" = yes; then
7483 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7484 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7485 else
7486 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7487 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7488 fi
7489 ;;
7490
7491 sysv5* | sco3.2v5* | sco5v6*)
7492 # Note: We can NOT use -z defs as we might desire, because we do not
7493 # link with -lc, and that would cause any symbols used from libc to
7494 # always be unresolved, which means just about no library would
7495 # ever link correctly. If we're not using GNU ld we use -z text
7496 # though, which does catch some bad symbols but isn't as heavy-handed
7497 # as -z defs.
7498 no_undefined_flag='${wl}-z,text'
7499 allow_undefined_flag='${wl}-z,nodefs'
7500 archive_cmds_need_lc=no
7501 hardcode_shlibpath_var=no
7502 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7503 hardcode_libdir_separator=':'
7504 link_all_deplibs=yes
7505 export_dynamic_flag_spec='${wl}-Bexport'
7506 runpath_var='LD_RUN_PATH'
7507
7508 if test "$GCC" = yes; then
7509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7511 else
7512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7514 fi
7515 ;;
7516
7517 uts4*)
7518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7519 hardcode_libdir_flag_spec='-L$libdir'
7520 hardcode_shlibpath_var=no
7521 ;;
7522
7523 *)
7524 ld_shlibs=no
7525 ;;
7526 esac
7527
7528 if test x$host_vendor = xsni; then
7529 case $host in
7530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7531 export_dynamic_flag_spec='${wl}-Blargedynsym'
7532 ;;
7533 esac
7534 fi
7535 fi
7536
7537echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7538echo "${ECHO_T}$ld_shlibs" >&6
7539test "$ld_shlibs" = no && can_build_shared=no
7540
7541with_gnu_ld=$with_gnu_ld
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557#
7558# Do we need to explicitly link libc?
7559#
7560case "x$archive_cmds_need_lc" in
7561x|xyes)
7562 # Assume -lc should be added
7563 archive_cmds_need_lc=yes
7564
7565 if test "$enable_shared" = yes && test "$GCC" = yes; then
7566 case $archive_cmds in
7567 *'~'*)
7568 # FIXME: we may have to deal with multi-command sequences.
7569 ;;
7570 '$CC '*)
7571 # Test whether the compiler implicitly links with -lc since on some
7572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7573 # to ld, don't add -lc before -lgcc.
7574 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7575echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7576 $RM conftest*
7577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7578
7579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580 (eval $ac_compile) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } 2>conftest.err; then
7584 soname=conftest
7585 lib=conftest
7586 libobjs=conftest.$ac_objext
7587 deplibs=
7588 wl=$lt_prog_compiler_wl
7589 pic_flag=$lt_prog_compiler_pic
7590 compiler_flags=-v
7591 linker_flags=-v
7592 verstring=
7593 output_objdir=.
7594 libname=conftest
7595 lt_save_allow_undefined_flag=$allow_undefined_flag
7596 allow_undefined_flag=
7597 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7598 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }
7602 then
7603 archive_cmds_need_lc=no
7604 else
7605 archive_cmds_need_lc=yes
7606 fi
7607 allow_undefined_flag=$lt_save_allow_undefined_flag
7608 else
7609 cat conftest.err 1>&5
7610 fi
7611 $RM conftest*
7612 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7613echo "${ECHO_T}$archive_cmds_need_lc" >&6
7614 ;;
7615 esac
7616 fi
7617 ;;
7618esac
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7777echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7778withGCC=$GCC
7779if test "$withGCC" = yes; then
7780 case $host_os in
7781 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7782 *) lt_awk_arg="/^libraries:/" ;;
7783 esac
7784 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7785 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7786 # if the path contains ";" then we assume it to be the separator
7787 # otherwise default to the standard path separator (i.e. ":") - it is
7788 # assumed that no part of a normal pathname contains ";" but that should
7789 # okay in the real world where ";" in dirpaths is itself problematic.
7790 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7791 else
7792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7793 fi
7794 # Ok, now we have the path, separated by spaces, we can step through it
7795 # and add multilib dir if necessary.
7796 lt_tmp_lt_search_path_spec=
7797 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7798 for lt_sys_path in $lt_search_path_spec; do
7799 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7800 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7801 else
7802 test -d "$lt_sys_path" && \
7803 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7804 fi
7805 done
7806 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7807BEGIN {RS=" "; FS="/|\n";} {
7808 lt_foo="";
7809 lt_count=0;
7810 for (lt_i = NF; lt_i > 0; lt_i--) {
7811 if ($lt_i != "" && $lt_i != ".") {
7812 if ($lt_i == "..") {
7813 lt_count++;
7814 } else {
7815 if (lt_count == 0) {
7816 lt_foo="/" $lt_i lt_foo;
7817 } else {
7818 lt_count--;
7819 }
7820 }
7821 }
7822 }
7823 if (lt_foo != "") { lt_freq[lt_foo]++; }
7824 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7825}'`
7826 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7827else
7828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7829fi
7830library_names_spec=
7831libname_spec='lib$name'
7832soname_spec=
7833shrext_cmds=".so"
7834postinstall_cmds=
7835postuninstall_cmds=
7836finish_cmds=
7837finish_eval=
7838shlibpath_var=
7839shlibpath_overrides_runpath=unknown
7840version_type=none
7841dynamic_linker="$host_os ld.so"
7842sys_lib_dlsearch_path_spec="/lib /usr/lib"
7843need_lib_prefix=unknown
7844hardcode_into_libs=no
7845
7846# when you set need_version to no, make sure it does not cause -set_version
7847# flags to be left without arguments
7848need_version=unknown
7849
7850case $host_os in
7851aix3*)
7852 version_type=linux
7853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7854 shlibpath_var=LIBPATH
7855
7856 # AIX 3 has no versioning support, so we append a major version to the name.
7857 soname_spec='${libname}${release}${shared_ext}$major'
7858 ;;
7859
7860aix4* | aix5*)
7861 version_type=linux
7862 need_lib_prefix=no
7863 need_version=no
7864 hardcode_into_libs=yes
7865 if test "$host_cpu" = ia64; then
7866 # AIX 5 supports IA64
7867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7868 shlibpath_var=LD_LIBRARY_PATH
7869 else
7870 # With GCC up to 2.95.x, collect2 would create an import file
7871 # for dependence libraries. The import file would start with
7872 # the line `#! .'. This would cause the generated library to
7873 # depend on `.', always an invalid library. This was fixed in
7874 # development snapshots of GCC prior to 3.0.
7875 case $host_os in
7876 aix4 | aix4.[01] | aix4.[01].*)
7877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7878 echo ' yes '
7879 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7880 :
7881 else
7882 can_build_shared=no
7883 fi
7884 ;;
7885 esac
7886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7887 # soname into executable. Probably we can add versioning support to
7888 # collect2, so additional links can be useful in future.
7889 if test "$aix_use_runtimelinking" = yes; then
7890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7891 # instead of lib<name>.a to let people know that these are not
7892 # typical AIX shared libraries.
7893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7894 else
7895 # We preserve .a as extension for shared libraries through AIX4.2
7896 # and later when we are not doing run time linking.
7897 library_names_spec='${libname}${release}.a $libname.a'
7898 soname_spec='${libname}${release}${shared_ext}$major'
7899 fi
7900 shlibpath_var=LIBPATH
7901 fi
7902 ;;
7903
7904amigaos*)
7905 if test "$host_cpu" = m68k; then
7906 library_names_spec='$libname.ixlibrary $libname.a'
7907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7908 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'
7909 else
7910 dynamic_linker=no
7911 fi
7912 ;;
7913
7914beos*)
7915 library_names_spec='${libname}${shared_ext}'
7916 dynamic_linker="$host_os ld.so"
7917 shlibpath_var=LIBRARY_PATH
7918 ;;
7919
7920bsdi[45]*)
7921 version_type=linux
7922 need_version=no
7923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924 soname_spec='${libname}${release}${shared_ext}$major'
7925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7926 shlibpath_var=LD_LIBRARY_PATH
7927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7929 # the default ld.so.conf also contains /usr/contrib/lib and
7930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7931 # libtool to hard-code these into programs
7932 ;;
7933
7934cygwin* | mingw* | pw32*)
7935 version_type=windows
7936 shrext_cmds=".dll"
7937 need_version=no
7938 need_lib_prefix=no
7939
7940 case $withGCC,$host_os in
7941 yes,cygwin* | yes,mingw* | yes,pw32*)
7942 library_names_spec='$libname.dll.a'
7943 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7944 postinstall_cmds='base_file=`basename \${file}`~
7945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7946 dldir=$destdir/`dirname \$dlpath`~
7947 test -d \$dldir || mkdir -p \$dldir~
7948 $install_prog $dir/$dlname \$dldir/$dlname~
7949 chmod a+x \$dldir/$dlname~
7950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7952 fi'
7953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7954 dlpath=$dir/\$dldll~
7955 $RM \$dlpath'
7956 shlibpath_overrides_runpath=yes
7957
7958 case $host_os in
7959 cygwin*)
7960 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7961 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7962 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7963 ;;
7964 mingw*)
7965 # MinGW DLLs use traditional 'lib' prefix
7966 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7967 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7968 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7969 # It is most probably a Windows format PATH printed by
7970 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7971 # path with ; separators, and with drive letters. We can handle the
7972 # drive letters (cygwin fileutils understands them), so leave them,
7973 # especially as we might pass files found there to a mingw objdump,
7974 # which wouldn't understand a cygwinified path. Ahh.
7975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7976 else
7977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7978 fi
7979 ;;
7980 pw32*)
7981 # pw32 DLLs use 'pw' prefix rather than 'lib'
7982 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7983 ;;
7984 esac
7985 ;;
7986
7987 *)
7988 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7989 ;;
7990 esac
7991 dynamic_linker='Win32 ld.exe'
7992 # FIXME: first we should search . and the directory the executable is in
7993 shlibpath_var=PATH
7994 ;;
7995
7996darwin* | rhapsody*)
7997 dynamic_linker="$host_os dyld"
7998 version_type=darwin
7999 need_lib_prefix=no
8000 need_version=no
8001 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8002 soname_spec='${libname}${release}${major}$shared_ext'
8003 shlibpath_overrides_runpath=yes
8004 shlibpath_var=DYLD_LIBRARY_PATH
8005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8006
8007 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8009 ;;
8010
8011dgux*)
8012 version_type=linux
8013 need_lib_prefix=no
8014 need_version=no
8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8016 soname_spec='${libname}${release}${shared_ext}$major'
8017 shlibpath_var=LD_LIBRARY_PATH
8018 ;;
8019
8020freebsd1*)
8021 dynamic_linker=no
8022 ;;
8023
8024freebsd* | dragonfly*)
8025 # DragonFly does not have aout. When/if they implement a new
8026 # versioning mechanism, adjust this.
8027 if test -x /usr/bin/objformat; then
8028 objformat=`/usr/bin/objformat`
8029 else
8030 case $host_os in
8031 freebsd[123]*) objformat=aout ;;
8032 *) objformat=elf ;;
8033 esac
8034 fi
8035 version_type=freebsd-$objformat
8036 case $version_type in
8037 freebsd-elf*)
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8039 need_version=no
8040 need_lib_prefix=no
8041 ;;
8042 freebsd-*)
8043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8044 need_version=yes
8045 ;;
8046 esac
8047 shlibpath_var=LD_LIBRARY_PATH
8048 case $host_os in
8049 freebsd2*)
8050 shlibpath_overrides_runpath=yes
8051 ;;
8052 freebsd3.[01]* | freebsdelf3.[01]*)
8053 shlibpath_overrides_runpath=yes
8054 hardcode_into_libs=yes
8055 ;;
8056 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8057 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8058 shlibpath_overrides_runpath=no
8059 hardcode_into_libs=yes
8060 ;;
8061 *) # from 4.6 on, and DragonFly
8062 shlibpath_overrides_runpath=yes
8063 hardcode_into_libs=yes
8064 ;;
8065 esac
8066 ;;
8067
8068gnu*)
8069 version_type=linux
8070 need_lib_prefix=no
8071 need_version=no
8072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8073 soname_spec='${libname}${release}${shared_ext}$major'
8074 shlibpath_var=LD_LIBRARY_PATH
8075 hardcode_into_libs=yes
8076 ;;
8077
8078hpux9* | hpux10* | hpux11*)
8079 # Give a soname corresponding to the major version so that dld.sl refuses to
8080 # link against other versions.
8081 version_type=sunos
8082 need_lib_prefix=no
8083 need_version=no
8084 case $host_cpu in
8085 ia64*)
8086 shrext_cmds='.so'
8087 hardcode_into_libs=yes
8088 dynamic_linker="$host_os dld.so"
8089 shlibpath_var=LD_LIBRARY_PATH
8090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8092 soname_spec='${libname}${release}${shared_ext}$major'
8093 if test "X$HPUX_IA64_MODE" = X32; then
8094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8095 else
8096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8097 fi
8098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8099 ;;
8100 hppa*64*)
8101 shrext_cmds='.sl'
8102 hardcode_into_libs=yes
8103 dynamic_linker="$host_os dld.sl"
8104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8107 soname_spec='${libname}${release}${shared_ext}$major'
8108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8110 ;;
8111 *)
8112 shrext_cmds='.sl'
8113 dynamic_linker="$host_os dld.sl"
8114 shlibpath_var=SHLIB_PATH
8115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8117 soname_spec='${libname}${release}${shared_ext}$major'
8118 ;;
8119 esac
8120 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8121 postinstall_cmds='chmod 555 $lib'
8122 ;;
8123
8124interix[3-9]*)
8125 version_type=linux
8126 need_lib_prefix=no
8127 need_version=no
8128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8129 soname_spec='${libname}${release}${shared_ext}$major'
8130 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8131 shlibpath_var=LD_LIBRARY_PATH
8132 shlibpath_overrides_runpath=no
8133 hardcode_into_libs=yes
8134 ;;
8135
8136irix5* | irix6* | nonstopux*)
8137 case $host_os in
8138 nonstopux*) version_type=nonstopux ;;
8139 *)
8140 if test "$lt_cv_prog_gnu_ld" = yes; then
8141 version_type=linux
8142 else
8143 version_type=irix
8144 fi ;;
8145 esac
8146 need_lib_prefix=no
8147 need_version=no
8148 soname_spec='${libname}${release}${shared_ext}$major'
8149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8150 case $host_os in
8151 irix5* | nonstopux*)
8152 libsuff= shlibsuff=
8153 ;;
8154 *)
8155 case $LD in # libtool.m4 will add one of these switches to LD
8156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8157 libsuff= shlibsuff= libmagic=32-bit;;
8158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8159 libsuff=32 shlibsuff=N32 libmagic=N32;;
8160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8161 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8162 *) libsuff= shlibsuff= libmagic=never-match;;
8163 esac
8164 ;;
8165 esac
8166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8167 shlibpath_overrides_runpath=no
8168 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8169 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8170 hardcode_into_libs=yes
8171 ;;
8172
8173# No shared lib support for Linux oldld, aout, or coff.
8174linux*oldld* | linux*aout* | linux*coff*)
8175 dynamic_linker=no
8176 ;;
8177
8178# This must be Linux ELF.
8179linux* | k*bsd*-gnu)
8180 version_type=linux
8181 need_lib_prefix=no
8182 need_version=no
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8184 soname_spec='${libname}${release}${shared_ext}$major'
8185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8186 shlibpath_var=LD_LIBRARY_PATH
8187 shlibpath_overrides_runpath=no
8188 # Some binutils ld are patched to set DT_RUNPATH
8189 save_LDFLAGS=$LDFLAGS
8190 save_libdir=$libdir
8191 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8192 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8193 cat >conftest.$ac_ext <<_ACEOF
8194/* confdefs.h. */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h. */
8199
8200int
8201main ()
8202{
8203
8204 ;
8205 return 0;
8206}
8207_ACEOF
8208rm -f conftest.$ac_objext conftest$ac_exeext
8209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8210 (eval $ac_link) 2>conftest.er1
8211 ac_status=$?
8212 grep -v '^ *+' conftest.er1 >conftest.err
8213 rm -f conftest.er1
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
8217 { ac_try='test -z "$ac_c_werror_flag"
8218 || test ! -s conftest.err'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 (eval $ac_try) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest$ac_exeext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8231 shlibpath_overrides_runpath=yes
8232fi
8233
8234else
8235 echo "$as_me: failed program was:" >&5
8236sed 's/^/| /' conftest.$ac_ext >&5
8237
8238fi
8239rm -f conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241 LDFLAGS=$save_LDFLAGS
8242 libdir=$save_libdir
8243
8244 # This implies no fast_install, which is unacceptable.
8245 # Some rework will be needed to allow for fast_install
8246 # before this can be enabled.
8247 hardcode_into_libs=yes
8248
8249 # Append ld.so.conf contents to the search path
8250 if test -f /etc/ld.so.conf; then
8251 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' ' '`
8252 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8253 fi
8254
8255 # We used to test for /lib/ld.so.1 and disable shared libraries on
8256 # powerpc, because MkLinux only supported shared libraries with the
8257 # GNU dynamic linker. Since this was broken with cross compilers,
8258 # most powerpc-linux boxes support dynamic linking these days and
8259 # people can always --disable-shared, the test was removed, and we
8260 # assume the GNU/Linux dynamic linker is in use.
8261 dynamic_linker='GNU/Linux ld.so'
8262 ;;
8263
8264netbsd*)
8265 version_type=sunos
8266 need_lib_prefix=no
8267 need_version=no
8268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8271 dynamic_linker='NetBSD (a.out) ld.so'
8272 else
8273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8274 soname_spec='${libname}${release}${shared_ext}$major'
8275 dynamic_linker='NetBSD ld.elf_so'
8276 fi
8277 shlibpath_var=LD_LIBRARY_PATH
8278 shlibpath_overrides_runpath=yes
8279 hardcode_into_libs=yes
8280 ;;
8281
8282newsos6)
8283 version_type=linux
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285 shlibpath_var=LD_LIBRARY_PATH
8286 shlibpath_overrides_runpath=yes
8287 ;;
8288
8289*nto* | *qnx*)
8290 version_type=qnx
8291 need_lib_prefix=no
8292 need_version=no
8293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8294 soname_spec='${libname}${release}${shared_ext}$major'
8295 shlibpath_var=LD_LIBRARY_PATH
8296 shlibpath_overrides_runpath=no
8297 hardcode_into_libs=yes
8298 dynamic_linker='ldqnx.so'
8299 ;;
8300
8301openbsd*)
8302 version_type=sunos
8303 sys_lib_dlsearch_path_spec="/usr/lib"
8304 need_lib_prefix=no
8305 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8306 case $host_os in
8307 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8308 *) need_version=no ;;
8309 esac
8310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8312 shlibpath_var=LD_LIBRARY_PATH
8313 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8314 case $host_os in
8315 openbsd2.[89] | openbsd2.[89].*)
8316 shlibpath_overrides_runpath=no
8317 ;;
8318 *)
8319 shlibpath_overrides_runpath=yes
8320 ;;
8321 esac
8322 else
8323 shlibpath_overrides_runpath=yes
8324 fi
8325 ;;
8326
8327os2*)
8328 libname_spec='$name'
8329 shrext_cmds=".dll"
8330 need_lib_prefix=no
8331 library_names_spec='$libname${shared_ext} $libname.a'
8332 dynamic_linker='OS/2 ld.exe'
8333 shlibpath_var=LIBPATH
8334 ;;
8335
8336osf3* | osf4* | osf5*)
8337 version_type=osf
8338 need_lib_prefix=no
8339 need_version=no
8340 soname_spec='${libname}${release}${shared_ext}$major'
8341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8342 shlibpath_var=LD_LIBRARY_PATH
8343 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8344 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8345 ;;
8346
8347rdos*)
8348 dynamic_linker=no
8349 ;;
8350
8351solaris*)
8352 version_type=linux
8353 need_lib_prefix=no
8354 need_version=no
8355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8356 soname_spec='${libname}${release}${shared_ext}$major'
8357 shlibpath_var=LD_LIBRARY_PATH
8358 shlibpath_overrides_runpath=yes
8359 hardcode_into_libs=yes
8360 # ldd complains unless libraries are executable
8361 postinstall_cmds='chmod +x $lib'
8362 ;;
8363
8364sunos4*)
8365 version_type=sunos
8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8367 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8368 shlibpath_var=LD_LIBRARY_PATH
8369 shlibpath_overrides_runpath=yes
8370 if test "$with_gnu_ld" = yes; then
8371 need_lib_prefix=no
8372 fi
8373 need_version=yes
8374 ;;
8375
8376sysv4 | sysv4.3*)
8377 version_type=linux
8378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8379 soname_spec='${libname}${release}${shared_ext}$major'
8380 shlibpath_var=LD_LIBRARY_PATH
8381 case $host_vendor in
8382 sni)
8383 shlibpath_overrides_runpath=no
8384 need_lib_prefix=no
8385 runpath_var=LD_RUN_PATH
8386 ;;
8387 siemens)
8388 need_lib_prefix=no
8389 ;;
8390 motorola)
8391 need_lib_prefix=no
8392 need_version=no
8393 shlibpath_overrides_runpath=no
8394 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8395 ;;
8396 esac
8397 ;;
8398
8399sysv4*MP*)
8400 if test -d /usr/nec ;then
8401 version_type=linux
8402 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8403 soname_spec='$libname${shared_ext}.$major'
8404 shlibpath_var=LD_LIBRARY_PATH
8405 fi
8406 ;;
8407
8408sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8409 version_type=freebsd-elf
8410 need_lib_prefix=no
8411 need_version=no
8412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8413 soname_spec='${libname}${release}${shared_ext}$major'
8414 shlibpath_var=LD_LIBRARY_PATH
8415 shlibpath_overrides_runpath=yes
8416 hardcode_into_libs=yes
8417 if test "$with_gnu_ld" = yes; then
8418 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8419 else
8420 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8421 case $host_os in
8422 sco3.2v5*)
8423 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8424 ;;
8425 esac
8426 fi
8427 sys_lib_dlsearch_path_spec='/usr/lib'
8428 ;;
8429
8430tpf*)
8431 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8432 version_type=linux
8433 need_lib_prefix=no
8434 need_version=no
8435 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8436 shlibpath_var=LD_LIBRARY_PATH
8437 shlibpath_overrides_runpath=no
8438 hardcode_into_libs=yes
8439 ;;
8440
8441uts4*)
8442 version_type=linux
8443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8444 soname_spec='${libname}${release}${shared_ext}$major'
8445 shlibpath_var=LD_LIBRARY_PATH
8446 ;;
8447
8448*)
8449 dynamic_linker=no
8450 ;;
8451esac
8452echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8453echo "${ECHO_T}$dynamic_linker" >&6
8454test "$dynamic_linker" = no && can_build_shared=no
8455
8456variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8457if test "$GCC" = yes; then
8458 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8459fi
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8548echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8549hardcode_action=
8550if test -n "$hardcode_libdir_flag_spec" ||
8551 test -n "$runpath_var" ||
8552 test "X$hardcode_automatic" = "Xyes" ; then
8553
8554 # We can hardcode non-existent directories.
8555 if test "$hardcode_direct" != no &&
8556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8557 # have to relink, otherwise we might link with an installed library
8558 # when we should be linking with a yet-to-be-installed one
8559 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8560 test "$hardcode_minus_L" != no; then
8561 # Linking always hardcodes the temporary library directory.
8562 hardcode_action=relink
8563 else
8564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8565 hardcode_action=immediate
8566 fi
8567else
8568 # We cannot hardcode anything, or else we can only hardcode existing
8569 # directories.
8570 hardcode_action=unsupported
8571fi
8572echo "$as_me:$LINENO: result: $hardcode_action" >&5
8573echo "${ECHO_T}$hardcode_action" >&6
8574
8575if test "$hardcode_action" = relink ||
8576 test "$inherit_rpath" = yes; then
8577 # Fast installation is not supported
8578 enable_fast_install=no
8579elif test "$shlibpath_overrides_runpath" = yes ||
8580 test "$enable_shared" = no; then
8581 # Fast installation is not necessary
8582 enable_fast_install=needless
8583fi
8584
8585
8586
8587
8588
8589
8590 if test "x$enable_dlopen" != xyes; then
8591 enable_dlopen=unknown
8592 enable_dlopen_self=unknown
8593 enable_dlopen_self_static=unknown
8594else
8595 lt_cv_dlopen=no
8596 lt_cv_dlopen_libs=
8597
8598 case $host_os in
8599 beos*)
8600 lt_cv_dlopen="load_add_on"
8601 lt_cv_dlopen_libs=
8602 lt_cv_dlopen_self=yes
8603 ;;
8604
8605 mingw* | pw32*)
8606 lt_cv_dlopen="LoadLibrary"
8607 lt_cv_dlopen_libs=
8608 ;;
8609
8610 cygwin*)
8611 lt_cv_dlopen="dlopen"
8612 lt_cv_dlopen_libs=
8613 ;;
8614
8615 darwin*)
8616 # if libdl is installed we need to link against it
8617 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8618echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8619if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621else
8622 ac_check_lib_save_LIBS=$LIBS
8623LIBS="-ldl $LIBS"
8624cat >conftest.$ac_ext <<_ACEOF
8625/* confdefs.h. */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h. */
8630
8631/* Override any gcc2 internal prototype to avoid an error. */
8632#ifdef __cplusplus
8633extern "C"
8634#endif
8635/* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8637char dlopen ();
8638int
8639main ()
8640{
8641dlopen ();
8642 ;
8643 return 0;
8644}
8645_ACEOF
8646rm -f conftest.$ac_objext conftest$ac_exeext
8647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag"
8656 || test ! -s conftest.err'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest$ac_exeext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_lib_dl_dlopen=yes
8669else
8670 echo "$as_me: failed program was:" >&5
8671sed 's/^/| /' conftest.$ac_ext >&5
8672
8673ac_cv_lib_dl_dlopen=no
8674fi
8675rm -f conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8677LIBS=$ac_check_lib_save_LIBS
8678fi
8679echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8680echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8681if test $ac_cv_lib_dl_dlopen = yes; then
8682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8683else
8684
8685 lt_cv_dlopen="dyld"
8686 lt_cv_dlopen_libs=
8687 lt_cv_dlopen_self=yes
8688
8689fi
8690
8691 ;;
8692
8693 *)
8694 echo "$as_me:$LINENO: checking for shl_load" >&5
8695echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8696if test "${ac_cv_func_shl_load+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698else
8699 cat >conftest.$ac_ext <<_ACEOF
8700/* confdefs.h. */
8701_ACEOF
8702cat confdefs.h >>conftest.$ac_ext
8703cat >>conftest.$ac_ext <<_ACEOF
8704/* end confdefs.h. */
8705/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8707#define shl_load innocuous_shl_load
8708
8709/* System header to define __stub macros and hopefully few prototypes,
8710 which can conflict with char shl_load (); below.
8711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8712 <limits.h> exists even on freestanding compilers. */
8713
8714#ifdef __STDC__
8715# include <limits.h>
8716#else
8717# include <assert.h>
8718#endif
8719
8720#undef shl_load
8721
8722/* Override any gcc2 internal prototype to avoid an error. */
8723#ifdef __cplusplus
8724extern "C"
8725{
8726#endif
8727/* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8729char shl_load ();
8730/* The GNU C library defines this for functions which it implements
8731 to always fail with ENOSYS. Some functions are actually named
8732 something starting with __ and the normal name is an alias. */
8733#if defined (__stub_shl_load) || defined (__stub___shl_load)
8734choke me
8735#else
8736char (*f) () = shl_load;
8737#endif
8738#ifdef __cplusplus
8739}
8740#endif
8741
8742int
8743main ()
8744{
8745return f != shl_load;
8746 ;
8747 return 0;
8748}
8749_ACEOF
8750rm -f conftest.$ac_objext conftest$ac_exeext
8751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8752 (eval $ac_link) 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -z "$ac_c_werror_flag"
8760 || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest$ac_exeext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 ac_cv_func_shl_load=yes
8773else
8774 echo "$as_me: failed program was:" >&5
8775sed 's/^/| /' conftest.$ac_ext >&5
8776
8777ac_cv_func_shl_load=no
8778fi
8779rm -f conftest.err conftest.$ac_objext \
8780 conftest$ac_exeext conftest.$ac_ext
8781fi
8782echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8783echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8784if test $ac_cv_func_shl_load = yes; then
8785 lt_cv_dlopen="shl_load"
8786else
8787 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8788echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8789if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791else
8792 ac_check_lib_save_LIBS=$LIBS
8793LIBS="-ldld $LIBS"
8794cat >conftest.$ac_ext <<_ACEOF
8795/* confdefs.h. */
8796_ACEOF
8797cat confdefs.h >>conftest.$ac_ext
8798cat >>conftest.$ac_ext <<_ACEOF
8799/* end confdefs.h. */
8800
8801/* Override any gcc2 internal prototype to avoid an error. */
8802#ifdef __cplusplus
8803extern "C"
8804#endif
8805/* We use char because int might match the return type of a gcc2
8806 builtin and then its argument prototype would still apply. */
8807char shl_load ();
8808int
8809main ()
8810{
8811shl_load ();
8812 ;
8813 return 0;
8814}
8815_ACEOF
8816rm -f conftest.$ac_objext conftest$ac_exeext
8817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag"
8826 || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 ac_cv_lib_dld_shl_load=yes
8839else
8840 echo "$as_me: failed program was:" >&5
8841sed 's/^/| /' conftest.$ac_ext >&5
8842
8843ac_cv_lib_dld_shl_load=no
8844fi
8845rm -f conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8847LIBS=$ac_check_lib_save_LIBS
8848fi
8849echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8850echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8851if test $ac_cv_lib_dld_shl_load = yes; then
8852 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8853else
8854 echo "$as_me:$LINENO: checking for dlopen" >&5
8855echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8856if test "${ac_cv_func_dlopen+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858else
8859 cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h. */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h. */
8865/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8867#define dlopen innocuous_dlopen
8868
8869/* System header to define __stub macros and hopefully few prototypes,
8870 which can conflict with char dlopen (); below.
8871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8872 <limits.h> exists even on freestanding compilers. */
8873
8874#ifdef __STDC__
8875# include <limits.h>
8876#else
8877# include <assert.h>
8878#endif
8879
8880#undef dlopen
8881
8882/* Override any gcc2 internal prototype to avoid an error. */
8883#ifdef __cplusplus
8884extern "C"
8885{
8886#endif
8887/* We use char because int might match the return type of a gcc2
8888 builtin and then its argument prototype would still apply. */
8889char dlopen ();
8890/* The GNU C library defines this for functions which it implements
8891 to always fail with ENOSYS. Some functions are actually named
8892 something starting with __ and the normal name is an alias. */
8893#if defined (__stub_dlopen) || defined (__stub___dlopen)
8894choke me
8895#else
8896char (*f) () = dlopen;
8897#endif
8898#ifdef __cplusplus
8899}
8900#endif
8901
8902int
8903main ()
8904{
8905return f != dlopen;
8906 ;
8907 return 0;
8908}
8909_ACEOF
8910rm -f conftest.$ac_objext conftest$ac_exeext
8911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8912 (eval $ac_link) 2>conftest.er1
8913 ac_status=$?
8914 grep -v '^ *+' conftest.er1 >conftest.err
8915 rm -f conftest.er1
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } &&
8919 { ac_try='test -z "$ac_c_werror_flag"
8920 || test ! -s conftest.err'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 (eval $ac_try) 2>&5
8923 ac_status=$?
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; } &&
8926 { ac_try='test -s conftest$ac_exeext'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 (eval $ac_try) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; }; then
8932 ac_cv_func_dlopen=yes
8933else
8934 echo "$as_me: failed program was:" >&5
8935sed 's/^/| /' conftest.$ac_ext >&5
8936
8937ac_cv_func_dlopen=no
8938fi
8939rm -f conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941fi
8942echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8943echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8944if test $ac_cv_func_dlopen = yes; then
8945 lt_cv_dlopen="dlopen"
8946else
8947 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8948echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8949if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8951else
8952 ac_check_lib_save_LIBS=$LIBS
8953LIBS="-ldl $LIBS"
8954cat >conftest.$ac_ext <<_ACEOF
8955/* confdefs.h. */
8956_ACEOF
8957cat confdefs.h >>conftest.$ac_ext
8958cat >>conftest.$ac_ext <<_ACEOF
8959/* end confdefs.h. */
8960
8961/* Override any gcc2 internal prototype to avoid an error. */
8962#ifdef __cplusplus
8963extern "C"
8964#endif
8965/* We use char because int might match the return type of a gcc2
8966 builtin and then its argument prototype would still apply. */
8967char dlopen ();
8968int
8969main ()
8970{
8971dlopen ();
8972 ;
8973 return 0;
8974}
8975_ACEOF
8976rm -f conftest.$ac_objext conftest$ac_exeext
8977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978 (eval $ac_link) 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -z "$ac_c_werror_flag"
8986 || test ! -s conftest.err'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 (eval $ac_try) 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_cv_lib_dl_dlopen=yes
8999else
9000 echo "$as_me: failed program was:" >&5
9001sed 's/^/| /' conftest.$ac_ext >&5
9002
9003ac_cv_lib_dl_dlopen=no
9004fi
9005rm -f conftest.err conftest.$ac_objext \
9006 conftest$ac_exeext conftest.$ac_ext
9007LIBS=$ac_check_lib_save_LIBS
9008fi
9009echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9010echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9011if test $ac_cv_lib_dl_dlopen = yes; then
9012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9013else
9014 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9015echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9016if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018else
9019 ac_check_lib_save_LIBS=$LIBS
9020LIBS="-lsvld $LIBS"
9021cat >conftest.$ac_ext <<_ACEOF
9022/* confdefs.h. */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h. */
9027
9028/* Override any gcc2 internal prototype to avoid an error. */
9029#ifdef __cplusplus
9030extern "C"
9031#endif
9032/* We use char because int might match the return type of a gcc2
9033 builtin and then its argument prototype would still apply. */
9034char dlopen ();
9035int
9036main ()
9037{
9038dlopen ();
9039 ;
9040 return 0;
9041}
9042_ACEOF
9043rm -f conftest.$ac_objext conftest$ac_exeext
9044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag"
9053 || test ! -s conftest.err'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 (eval $ac_try) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; } &&
9059 { ac_try='test -s conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 (eval $ac_try) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 ac_cv_lib_svld_dlopen=yes
9066else
9067 echo "$as_me: failed program was:" >&5
9068sed 's/^/| /' conftest.$ac_ext >&5
9069
9070ac_cv_lib_svld_dlopen=no
9071fi
9072rm -f conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9074LIBS=$ac_check_lib_save_LIBS
9075fi
9076echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9077echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9078if test $ac_cv_lib_svld_dlopen = yes; then
9079 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9080else
9081 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9082echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9083if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9085else
9086 ac_check_lib_save_LIBS=$LIBS
9087LIBS="-ldld $LIBS"
9088cat >conftest.$ac_ext <<_ACEOF
9089/* confdefs.h. */
9090_ACEOF
9091cat confdefs.h >>conftest.$ac_ext
9092cat >>conftest.$ac_ext <<_ACEOF
9093/* end confdefs.h. */
9094
9095/* Override any gcc2 internal prototype to avoid an error. */
9096#ifdef __cplusplus
9097extern "C"
9098#endif
9099/* We use char because int might match the return type of a gcc2
9100 builtin and then its argument prototype would still apply. */
9101char dld_link ();
9102int
9103main ()
9104{
9105dld_link ();
9106 ;
9107 return 0;
9108}
9109_ACEOF
9110rm -f conftest.$ac_objext conftest$ac_exeext
9111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112 (eval $ac_link) 2>conftest.er1
9113 ac_status=$?
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -z "$ac_c_werror_flag"
9120 || test ! -s conftest.err'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; } &&
9126 { ac_try='test -s conftest$ac_exeext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_cv_lib_dld_dld_link=yes
9133else
9134 echo "$as_me: failed program was:" >&5
9135sed 's/^/| /' conftest.$ac_ext >&5
9136
9137ac_cv_lib_dld_dld_link=no
9138fi
9139rm -f conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9141LIBS=$ac_check_lib_save_LIBS
9142fi
9143echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9144echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9145if test $ac_cv_lib_dld_dld_link = yes; then
9146 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9147fi
9148
9149
9150fi
9151
9152
9153fi
9154
9155
9156fi
9157
9158
9159fi
9160
9161
9162fi
9163
9164 ;;
9165 esac
9166
9167 if test "x$lt_cv_dlopen" != xno; then
9168 enable_dlopen=yes
9169 else
9170 enable_dlopen=no
9171 fi
9172
9173 case $lt_cv_dlopen in
9174 dlopen)
9175 save_CPPFLAGS="$CPPFLAGS"
9176 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9177
9178 save_LDFLAGS="$LDFLAGS"
9179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9180
9181 save_LIBS="$LIBS"
9182 LIBS="$lt_cv_dlopen_libs $LIBS"
9183
9184 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9185echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9186if test "${lt_cv_dlopen_self+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188else
9189 if test "$cross_compiling" = yes; then :
9190 lt_cv_dlopen_self=cross
9191else
9192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9193 lt_status=$lt_dlunknown
9194 cat > conftest.$ac_ext <<_LT_EOF
9195#line 9195 "configure"
9196#include "confdefs.h"
9197
9198#if HAVE_DLFCN_H
9199#include <dlfcn.h>
9200#endif
9201
9202#include <stdio.h>
9203
9204#ifdef RTLD_GLOBAL
9205# define LT_DLGLOBAL RTLD_GLOBAL
9206#else
9207# ifdef DL_GLOBAL
9208# define LT_DLGLOBAL DL_GLOBAL
9209# else
9210# define LT_DLGLOBAL 0
9211# endif
9212#endif
9213
9214/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9215 find out it does not work in some platform. */
9216#ifndef LT_DLLAZY_OR_NOW
9217# ifdef RTLD_LAZY
9218# define LT_DLLAZY_OR_NOW RTLD_LAZY
9219# else
9220# ifdef DL_LAZY
9221# define LT_DLLAZY_OR_NOW DL_LAZY
9222# else
9223# ifdef RTLD_NOW
9224# define LT_DLLAZY_OR_NOW RTLD_NOW
9225# else
9226# ifdef DL_NOW
9227# define LT_DLLAZY_OR_NOW DL_NOW
9228# else
9229# define LT_DLLAZY_OR_NOW 0
9230# endif
9231# endif
9232# endif
9233# endif
9234#endif
9235
9236#ifdef __cplusplus
9237extern "C" void exit (int);
9238#endif
9239
9240void fnord() { int i=42;}
9241int main ()
9242{
9243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9244 int status = $lt_dlunknown;
9245
9246 if (self)
9247 {
9248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9250 /* dlclose (self); */
9251 }
9252 else
9253 puts (dlerror ());
9254
9255 exit (status);
9256}
9257_LT_EOF
9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259 (eval $ac_link) 2>&5
9260 ac_status=$?
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9263 (./conftest; exit; ) >&5 2>/dev/null
9264 lt_status=$?
9265 case x$lt_status in
9266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9268 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9269 esac
9270 else :
9271 # compilation failed
9272 lt_cv_dlopen_self=no
9273 fi
9274fi
9275rm -fr conftest*
9276
9277
9278fi
9279echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9280echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9281
9282 if test "x$lt_cv_dlopen_self" = xyes; then
9283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9284 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9285echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9286if test "${lt_cv_dlopen_self_static+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288else
9289 if test "$cross_compiling" = yes; then :
9290 lt_cv_dlopen_self_static=cross
9291else
9292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9293 lt_status=$lt_dlunknown
9294 cat > conftest.$ac_ext <<_LT_EOF
9295#line 9295 "configure"
9296#include "confdefs.h"
9297
9298#if HAVE_DLFCN_H
9299#include <dlfcn.h>
9300#endif
9301
9302#include <stdio.h>
9303
9304#ifdef RTLD_GLOBAL
9305# define LT_DLGLOBAL RTLD_GLOBAL
9306#else
9307# ifdef DL_GLOBAL
9308# define LT_DLGLOBAL DL_GLOBAL
9309# else
9310# define LT_DLGLOBAL 0
9311# endif
9312#endif
9313
9314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9315 find out it does not work in some platform. */
9316#ifndef LT_DLLAZY_OR_NOW
9317# ifdef RTLD_LAZY
9318# define LT_DLLAZY_OR_NOW RTLD_LAZY
9319# else
9320# ifdef DL_LAZY
9321# define LT_DLLAZY_OR_NOW DL_LAZY
9322# else
9323# ifdef RTLD_NOW
9324# define LT_DLLAZY_OR_NOW RTLD_NOW
9325# else
9326# ifdef DL_NOW
9327# define LT_DLLAZY_OR_NOW DL_NOW
9328# else
9329# define LT_DLLAZY_OR_NOW 0
9330# endif
9331# endif
9332# endif
9333# endif
9334#endif
9335
9336#ifdef __cplusplus
9337extern "C" void exit (int);
9338#endif
9339
9340void fnord() { int i=42;}
9341int main ()
9342{
9343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9344 int status = $lt_dlunknown;
9345
9346 if (self)
9347 {
9348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9349 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9350 /* dlclose (self); */
9351 }
9352 else
9353 puts (dlerror ());
9354
9355 exit (status);
9356}
9357_LT_EOF
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9363 (./conftest; exit; ) >&5 2>/dev/null
9364 lt_status=$?
9365 case x$lt_status in
9366 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9367 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9368 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9369 esac
9370 else :
9371 # compilation failed
9372 lt_cv_dlopen_self_static=no
9373 fi
9374fi
9375rm -fr conftest*
9376
9377
9378fi
9379echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9380echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9381 fi
9382
9383 CPPFLAGS="$save_CPPFLAGS"
9384 LDFLAGS="$save_LDFLAGS"
9385 LIBS="$save_LIBS"
9386 ;;
9387 esac
9388
9389 case $lt_cv_dlopen_self in
9390 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9391 *) enable_dlopen_self=unknown ;;
9392 esac
9393
9394 case $lt_cv_dlopen_self_static in
9395 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9396 *) enable_dlopen_self_static=unknown ;;
9397 esac
9398fi
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416striplib=
9417old_striplib=
9418echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9419echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9420if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9421 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9422 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
9425else
9426# FIXME - insert some real tests, host_os isn't really good enough
9427 case $host_os in
9428 darwin*)
9429 if test -n "$STRIP" ; then
9430 striplib="$STRIP -x"
9431 old_striplib="$STRIP -S"
9432 echo "$as_me:$LINENO: result: yes" >&5
9433echo "${ECHO_T}yes" >&6
9434 else
9435 echo "$as_me:$LINENO: result: no" >&5
9436echo "${ECHO_T}no" >&6
9437 fi
9438 ;;
9439 *)
9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
9442 ;;
9443 esac
9444fi
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457 # Report which library types will actually be built
9458 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9459echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9460 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9461echo "${ECHO_T}$can_build_shared" >&6
9462
9463 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9464echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9465 test "$can_build_shared" = "no" && enable_shared=no
9466
9467 # On AIX, shared libraries and static libraries use the same namespace, and
9468 # are all built from PIC.
9469 case $host_os in
9470 aix3*)
9471 test "$enable_shared" = yes && enable_static=no
9472 if test -n "$RANLIB"; then
9473 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9474 postinstall_cmds='$RANLIB $lib'
9475 fi
9476 ;;
9477
9478 aix4* | aix5*)
9479 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9480 test "$enable_shared" = yes && enable_static=no
9481 fi
9482 ;;
9483 esac
9484 echo "$as_me:$LINENO: result: $enable_shared" >&5
9485echo "${ECHO_T}$enable_shared" >&6
9486
9487 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9488echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9489 # Make sure either enable_shared or enable_static is yes.
9490 test "$enable_shared" = yes || enable_static=yes
9491 echo "$as_me:$LINENO: result: $enable_static" >&5
9492echo "${ECHO_T}$enable_static" >&6
9493
9494
9495
9496
9497fi
9498ac_ext=c
9499ac_cpp='$CPP $CPPFLAGS'
9500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9502ac_compiler_gnu=$ac_cv_c_compiler_gnu
9503
9504CC="$lt_save_CC"
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518 ac_config_commands="$ac_config_commands libtool"
9519
9520
9521
9522
9523# Only expand once:
9524
9525
9526
9527# Check whether --enable-targets or --disable-targets was given.
9528if test "${enable_targets+set}" = set; then
9529 enableval="$enable_targets"
9530 case "${enableval}" in
9531 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
9532echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
9533 { (exit 1); exit 1; }; }
9534 ;;
9535 no) enable_targets= ;;
9536 *) enable_targets=$enableval ;;
9537esac
9538fi;
9539# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
9540if test "${enable_commonbfdlib+set}" = set; then
9541 enableval="$enable_commonbfdlib"
9542 case "${enableval}" in
9543 yes) commonbfdlib=true ;;
9544 no) commonbfdlib=false ;;
9545 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
9546echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
9547 { (exit 1); exit 1; }; } ;;
9548esac
9549fi;
9550ac_checking=yes
9551if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
9552 ac_checking=
9553fi
9554# Check whether --enable-checking or --disable-checking was given.
9555if test "${enable_checking+set}" = set; then
9556 enableval="$enable_checking"
9557 case "${enableval}" in
9558 no|none) ac_checking= ;;
9559 *) ac_checking=yes ;;
9560esac
9561fi; if test x$ac_checking != x ; then
9562
9563cat >>confdefs.h <<\_ACEOF
9564#define ENABLE_CHECKING 1
9565_ACEOF
9566
9567fi
9568
9569using_cgen=no
9570
9571
9572GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9573
9574# Check whether --enable-werror or --disable-werror was given.
9575if test "${enable_werror+set}" = set; then
9576 enableval="$enable_werror"
9577 case "${enableval}" in
9578 yes | y) ERROR_ON_WARNING="yes" ;;
9579 no | n) ERROR_ON_WARNING="no" ;;
9580 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
9581echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
9582 { (exit 1); exit 1; }; } ;;
9583 esac
9584fi;
9585
9586# Enable -Werror by default when using gcc
9587if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9588 ERROR_ON_WARNING=yes
9589fi
9590
9591NO_WERROR=
9592if test "${ERROR_ON_WARNING}" = yes ; then
9593 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9594 NO_WERROR="-Wno-error"
9595fi
9596
9597if test "${GCC}" = yes ; then
9598 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9599fi
9600
9601# Check whether --enable-build-warnings or --disable-build-warnings was given.
9602if test "${enable_build_warnings+set}" = set; then
9603 enableval="$enable_build_warnings"
9604 case "${enableval}" in
9605 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
9606 no) if test "${GCC}" = yes ; then
9607 WARN_CFLAGS="-w"
9608 fi;;
9609 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9610 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
9611 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9612 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9613 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9614esac
9615fi;
9616
9617if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9618 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9619fi
9620
9621
9622
9623
9624
9625# Generate a header file
9626 ac_config_headers="$ac_config_headers config.h:config.in"
9627
9628
9629# If we are on a DOS filesystem, we must use gdb.ini rather than
9630# .gdbinit.
9631case "${host}" in
9632 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
9633 GDBINIT="gdb.ini"
9634 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
9635
9636 ;;
9637 *)
9638 GDBINIT=".gdbinit"
9639 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
9640
9641 ;;
9642esac
9643
9644
9645#We need this for the host. BOUT header is in host order.
9646echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9647echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9648if test "${ac_cv_c_bigendian+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650else
9651 # See if sys/param.h defines the BYTE_ORDER macro.
9652cat >conftest.$ac_ext <<_ACEOF
9653/* confdefs.h. */
9654_ACEOF
9655cat confdefs.h >>conftest.$ac_ext
9656cat >>conftest.$ac_ext <<_ACEOF
9657/* end confdefs.h. */
9658#include <sys/types.h>
9659#include <sys/param.h>
9660
9661int
9662main ()
9663{
9664#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9665 bogus endian macros
9666#endif
9667
9668 ;
9669 return 0;
9670}
9671_ACEOF
9672rm -f conftest.$ac_objext
9673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9674 (eval $ac_compile) 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -z "$ac_c_werror_flag"
9682 || test ! -s conftest.err'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; } &&
9688 { ac_try='test -s conftest.$ac_objext'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; }; then
9694 # It does; now see whether it defined to BIG_ENDIAN or not.
9695cat >conftest.$ac_ext <<_ACEOF
9696/* confdefs.h. */
9697_ACEOF
9698cat confdefs.h >>conftest.$ac_ext
9699cat >>conftest.$ac_ext <<_ACEOF
9700/* end confdefs.h. */
9701#include <sys/types.h>
9702#include <sys/param.h>
9703
9704int
9705main ()
9706{
9707#if BYTE_ORDER != BIG_ENDIAN
9708 not big endian
9709#endif
9710
9711 ;
9712 return 0;
9713}
9714_ACEOF
9715rm -f conftest.$ac_objext
9716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9717 (eval $ac_compile) 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -z "$ac_c_werror_flag"
9725 || test ! -s conftest.err'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try='test -s conftest.$ac_objext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_c_bigendian=yes
9738else
9739 echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
9741
9742ac_cv_c_bigendian=no
9743fi
9744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9745else
9746 echo "$as_me: failed program was:" >&5
9747sed 's/^/| /' conftest.$ac_ext >&5
9748
9749# It does not; compile a test program.
9750if test "$cross_compiling" = yes; then
9751 # try to guess the endianness by grepping values into an object file
9752 ac_cv_c_bigendian=unknown
9753 cat >conftest.$ac_ext <<_ACEOF
9754/* confdefs.h. */
9755_ACEOF
9756cat confdefs.h >>conftest.$ac_ext
9757cat >>conftest.$ac_ext <<_ACEOF
9758/* end confdefs.h. */
9759short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9760short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9761void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9762short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9763short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9764void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9765int
9766main ()
9767{
9768 _ascii (); _ebcdic ();
9769 ;
9770 return 0;
9771}
9772_ACEOF
9773rm -f conftest.$ac_objext
9774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9775 (eval $ac_compile) 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag"
9783 || test ! -s conftest.err'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try='test -s conftest.$ac_objext'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9796 ac_cv_c_bigendian=yes
9797fi
9798if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9799 if test "$ac_cv_c_bigendian" = unknown; then
9800 ac_cv_c_bigendian=no
9801 else
9802 # finding both strings is unlikely to happen, but who knows?
9803 ac_cv_c_bigendian=unknown
9804 fi
9805fi
9806else
9807 echo "$as_me: failed program was:" >&5
9808sed 's/^/| /' conftest.$ac_ext >&5
9809
9810fi
9811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9812else
9813 cat >conftest.$ac_ext <<_ACEOF
9814/* confdefs.h. */
9815_ACEOF
9816cat confdefs.h >>conftest.$ac_ext
9817cat >>conftest.$ac_ext <<_ACEOF
9818/* end confdefs.h. */
9819int
9820main ()
9821{
9822 /* Are we little or big endian? From Harbison&Steele. */
9823 union
9824 {
9825 long l;
9826 char c[sizeof (long)];
9827 } u;
9828 u.l = 1;
9829 exit (u.c[sizeof (long) - 1] == 1);
9830}
9831_ACEOF
9832rm -f conftest$ac_exeext
9833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9834 (eval $ac_link) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 (eval $ac_try) 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_cv_c_bigendian=no
9844else
9845 echo "$as_me: program exited with status $ac_status" >&5
9846echo "$as_me: failed program was:" >&5
9847sed 's/^/| /' conftest.$ac_ext >&5
9848
9849( exit $ac_status )
9850ac_cv_c_bigendian=yes
9851fi
9852rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9853fi
9854fi
9855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9856fi
9857echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9858echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9859case $ac_cv_c_bigendian in
9860 yes)
9861
9862cat >>confdefs.h <<\_ACEOF
9863#define WORDS_BIGENDIAN 1
9864_ACEOF
9865 ;;
9866 no)
9867 ;;
9868 *)
9869 { { echo "$as_me:$LINENO: error: unknown endianness
9870presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9871echo "$as_me: error: unknown endianness
9872presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9873 { (exit 1); exit 1; }; } ;;
9874esac
9875
9876
9877te_file=generic
9878
9879# Makefile target for installing gas in $(tooldir)/bin.
9880install_tooldir=install-exec-tooldir
9881
9882canon_targets=""
9883all_targets=no
9884if test -n "$enable_targets" ; then
9885 for t in `echo $enable_targets | sed 's/,/ /g'`; do
9886 if test $t = "all"; then
9887 all_targets=yes
9888 continue
9889 fi
9890 result=`$ac_config_sub $t 2>/dev/null`
9891 if test -n "$result" ; then
9892 canon_targets="$canon_targets $result"
9893# else
9894# # Permit "all", etc. We don't support it yet though.
9895# canon_targets="$canon_targets $t"
9896 fi
9897 done
9898 _gas_uniq_list="$canon_targets"
9899_gas_uniq_newlist=""
9900for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
9901 case $_gas_uniq_i in
9902 _gas_uniq_dummy) ;;
9903 *) case " $_gas_uniq_newlist " in
9904 *" $_gas_uniq_i "*) ;;
9905 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
9906 esac ;;
9907 esac
9908done
9909canon_targets=$_gas_uniq_newlist
9910
9911fi
9912
9913emulations=""
9914
9915for this_target in $target $canon_targets ; do
9916
9917 targ=${this_target}
9918 . ${srcdir}/configure.tgt
9919
9920 case ${target_cpu} in
9921 crisv32)
9922
9923cat >>confdefs.h <<_ACEOF
9924#define DEFAULT_CRIS_ARCH $arch
9925_ACEOF
9926
9927 ;;
9928 esac
9929
9930 if test ${this_target} = $target ; then
9931 target_cpu_type=${cpu_type}
9932 elif test ${target_cpu_type} != ${cpu_type} ; then
9933 continue
9934 fi
9935
9936 generic_target=${cpu_type}-${target_vendor}-${target_os}
9937 case ${generic_target} in
9938 i386-*-sco3.2v5*)
9939 if test ${this_target} = $target; then
9940
9941cat >>confdefs.h <<\_ACEOF
9942#define SCO_ELF 1
9943_ACEOF
9944
9945 fi
9946 ;;
9947
9948 i386-*-msdosdjgpp* \
9949 | i386-*-go32* \
9950 | i386-go32-rtems*)
9951
9952cat >>confdefs.h <<\_ACEOF
9953#define STRICTCOFF 1
9954_ACEOF
9955
9956 ;;
9957
9958 i860-*-*)
9959 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
9960echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
9961 ;;
9962
9963 mips-sony-bsd*)
9964 ;;
9965 mips-*-bsd*)
9966 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
9967echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
9968 { (exit 1); exit 1; }; }
9969 ;;
9970
9971 ppc-*-aix5.*)
9972
9973cat >>confdefs.h <<\_ACEOF
9974#define AIX_WEAK_SUPPORT 1
9975_ACEOF
9976
9977 ;;
9978 ppc-*-linux-*)
9979 case "$endian" in
9980 big) ;;
9981 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
9982echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
9983 { (exit 1); exit 1; }; } ;;
9984 esac
9985 ;;
9986 ppc-*-solaris*)
9987 if test ${this_target} = $target; then
9988
9989cat >>confdefs.h <<\_ACEOF
9990#define TARGET_SOLARIS_COMMENT 1
9991_ACEOF
9992
9993 fi
9994 if test x${endian} = xbig; then
9995 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
9996echo "$as_me: error: Solaris must be configured little endian" >&2;}
9997 { (exit 1); exit 1; }; }
9998 fi
9999 ;;
10000
10001 sh*-*-symbianelf*)
10002
10003cat >>confdefs.h <<\_ACEOF
10004#define TARGET_SYMBIAN 1
10005_ACEOF
10006
10007 ;;
10008 esac
10009
10010 if test ${this_target} = $target ; then
10011 endian_def=
10012 if test x${endian} = xbig; then
10013 endian_def=1
10014 elif test x${endian} = xlittle; then
10015 endian_def=0
10016 fi
10017 if test x${endian_def} != x; then
10018
10019cat >>confdefs.h <<_ACEOF
10020#define TARGET_BYTES_BIG_ENDIAN $endian_def
10021_ACEOF
10022
10023 fi
10024 fi
10025
10026# Other random stuff.
10027
10028 case ${cpu_type} in
10029 mips)
10030 # Set mips_cpu to the name of the default CPU.
10031 case ${target_cpu} in
10032 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
10033 mips_cpu=from-abi
10034 ;;
10035 mipsisa32 | mipsisa32el)
10036 mips_cpu=mips32
10037 ;;
10038 mipsisa32r2 | mipsisa32r2el)
10039 mips_cpu=mips32r2
10040 ;;
10041 mipsisa64 | mipsisa64el)
10042 mips_cpu=mips64
10043 ;;
10044 mipsisa64r2 | mipsisa64r2el)
10045 mips_cpu=mips64r2
10046 ;;
10047 mipstx39 | mipstx39el)
10048 mips_cpu=r3900
10049 ;;
10050 mips64vr | mips64vrel)
10051 mips_cpu=vr4100
10052 ;;
10053 mipsisa32r2* | mipsisa64r2*)
10054 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
10055 ;;
10056 mips64* | mipsisa64* | mipsisa32*)
10057 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
10058 ;;
10059 *)
10060 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
10061echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
10062 { (exit 1); exit 1; }; }
10063 ;;
10064 esac
10065 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
10066 # binaries. It's a GNU extension that some OSes don't understand.
10067 # The value only matters on ELF targets.
10068 case ${target} in
10069 *-*-irix*)
10070 use_e_mips_abi_o32=0
10071 ;;
10072 *)
10073 use_e_mips_abi_o32=1
10074 ;;
10075 esac
10076 # Decide whether to generate 32-bit or 64-bit code by default.
10077 # Used to resolve -march=from-abi when an embedded ABI is selected.
10078 case ${target} in
10079 mips64*-*-* | mipsisa64*-*-*)
10080 mips_default_64bit=1
10081 ;;
10082 *)
10083 mips_default_64bit=0
10084 ;;
10085 esac
10086 # Decide which ABI to target by default.
10087 case ${target} in
10088 mips64*-linux* | mips-sgi-irix6*)
10089 mips_default_abi=N32_ABI
10090 ;;
10091 mips*-linux*)
10092 mips_default_abi=O32_ABI
10093 ;;
10094 mips64*-openbsd*)
10095 mips_default_abi=N64_ABI
10096 ;;
10097 *)
10098 mips_default_abi=NO_ABI
10099 ;;
10100 esac
10101
10102cat >>confdefs.h <<_ACEOF
10103#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
10104_ACEOF
10105
10106
10107cat >>confdefs.h <<_ACEOF
10108#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
10109_ACEOF
10110
10111
10112cat >>confdefs.h <<_ACEOF
10113#define MIPS_DEFAULT_64BIT $mips_default_64bit
10114_ACEOF
10115
10116
10117cat >>confdefs.h <<_ACEOF
10118#define MIPS_DEFAULT_ABI $mips_default_abi
10119_ACEOF
10120
10121 ;;
10122 esac
10123
10124 # Do we need the opcodes library?
10125 case ${cpu_type} in
10126 vax | tic30)
10127 ;;
10128
10129 *)
10130 need_opcodes=yes
10131
10132 case "${enable_shared}" in
10133 yes) shared_opcodes=true ;;
10134 *opcodes*) shared_opcodes=true ;;
10135 *) shared_opcodes=false ;;
10136 esac
10137 ;;
10138 esac
10139
10140 # Any other special object files needed ?
10141 case ${cpu_type} in
10142
10143 bfin)
10144 echo ${extra_objects} | grep -s "bfin-parse.o"
10145 if test $? -ne 0 ; then
10146 extra_objects="$extra_objects bfin-parse.o"
10147 fi
10148
10149 echo ${extra_objects} | grep -s "bfin-lex.o"
10150 if test $? -ne 0 ; then
10151 extra_objects="$extra_objects bfin-lex.o"
10152 fi
10153 ;;
10154
10155 fr30 | ip2k | iq2000 | m32r | openrisc)
10156 using_cgen=yes
10157 ;;
10158
10159 m32c)
10160 using_cgen=yes
10161 ;;
10162 frv)
10163 using_cgen=yes
10164 ;;
10165 m68k)
10166 case ${extra_objects} in
10167 *m68k-parse.o*) ;;
10168 *) extra_objects="$extra_objects m68k-parse.o" ;;
10169 esac
10170 ;;
10171
10172 mep)
10173 using_cgen=yes
10174 ;;
10175
10176 mips)
10177 echo ${extra_objects} | grep -s "itbl-parse.o"
10178 if test $? -ne 0 ; then
10179 extra_objects="$extra_objects itbl-parse.o"
10180 fi
10181
10182 echo ${extra_objects} | grep -s "itbl-lex.o"
10183 if test $? -ne 0 ; then
10184 extra_objects="$extra_objects itbl-lex.o"
10185 fi
10186
10187 echo ${extra_objects} | grep -s "itbl-ops.o"
10188 if test $? -ne 0 ; then
10189 extra_objects="$extra_objects itbl-ops.o"
10190 fi
10191 ;;
10192
10193 mt)
10194 using_cgen=yes
10195 ;;
10196
10197 i386 | s390 | sparc)
10198 if test $this_target = $target ; then
10199
10200cat >>confdefs.h <<_ACEOF
10201#define DEFAULT_ARCH "${arch}"
10202_ACEOF
10203
10204 fi
10205 ;;
10206
10207 xstormy16)
10208 using_cgen=yes
10209 ;;
10210
10211 xc16x)
10212 using_cgen=yes
10213 ;;
10214
10215 xtensa)
10216 echo ${extra_objects} | grep -s "xtensa-relax.o"
10217 if test $? -ne 0 ; then
10218 extra_objects="$extra_objects xtensa-relax.o"
10219 fi
10220 ;;
10221
10222 *)
10223 ;;
10224 esac
10225
10226 if test $using_cgen = yes ; then
10227 case "x${extra_objects}" in
10228 *cgen.o*) ;;
10229 *) extra_objects="$extra_objects cgen.o" ;;
10230 esac
10231 fi
10232
10233# See if we really can support this configuration with the emulation code.
10234
10235 if test $this_target = $target ; then
10236 obj_format=$fmt
10237 te_file=$em
10238 fi
10239
10240# From target name and format, produce a list of supported emulations.
10241
10242 case ${generic_target}-${fmt} in
10243 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
10244 mips*-*-linux*-*) case "$endian" in
10245 big) emulation="mipsbelf mipslelf mipself" ;;
10246 *) emulation="mipslelf mipsbelf mipself" ;;
10247 esac ;;
10248 mips-*-lnews*-ecoff) ;;
10249 mips-*-*-ecoff) case "$endian" in
10250 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
10251 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
10252 esac ;;
10253 mips-*-*-elf) case "$endian" in
10254 big) emulation="mipsbelf mipslelf mipself" ;;
10255 *) emulation="mipslelf mipsbelf mipself" ;;
10256 esac ;;
10257 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
10258 # i386-pc-pe-coff != i386-pc-coff.
10259 i386-*-pe-coff) ;;
10260 # Uncommenting the next line will turn on support for i386 AOUT
10261 # for the default linux configuration
10262 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
10263 #
10264 i386-*-aout) emulation="i386aout" ;;
10265 i386-*-coff) emulation="i386coff" ;;
10266 i386-*-elf) emulation="i386elf" ;;
10267
10268 # Always all formats. The first stated emulation becomes the default.
10269 cris-*-*aout*) emulation="crisaout criself" ;;
10270 cris-*-*) emulation="criself crisaout" ;;
10271 esac
10272
10273 emulations="$emulations $emulation"
10274
10275done
10276
10277# Turn on all targets if possible
10278if test ${all_targets} = "yes"; then
10279 case ${target_cpu_type} in
10280 i386)
10281 case ${obj_format} in
10282 aout)
10283 emulations="$emulations i386coff i386elf"
10284 ;;
10285 coff)
10286 emulations="$emulations i386aout i386elf"
10287 ;;
10288 elf)
10289 emulations="$emulations i386aout i386coff"
10290 ;;
10291 esac
10292 ;;
10293 x86_64)
10294 case ${obj_format} in
10295 aout)
10296 emulations="$emulations i386coff i386elf"
10297 ;;
10298 coff)
10299 emulations="$emulations i386aout i386elf"
10300 ;;
10301 elf)
10302 emulations="$emulations i386aout i386coff"
10303 ;;
10304 esac
10305 ;;
10306 esac
10307fi
10308
10309# Assign floating point type. Most processors with FP support
10310# IEEE FP. On those that don't support FP at all, usually IEEE
10311# is emulated.
10312case ${target_cpu} in
10313 vax | pdp11 ) atof=vax ;;
10314 *) atof=ieee ;;
10315esac
10316
10317case "${obj_format}" in
10318 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
10319echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
10320 { (exit 1); exit 1; }; } ;;
10321esac
10322
10323# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
10324cgen_cpu_prefix=""
10325if test $using_cgen = yes ; then
10326 case ${target_cpu} in
10327 *) cgen_cpu_prefix=${target_cpu} ;;
10328 esac
10329
10330
10331cat >>confdefs.h <<\_ACEOF
10332#define USING_CGEN 1
10333_ACEOF
10334
10335fi
10336
10337
10338if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
10339 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
10340echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
10341 { (exit 1); exit 1; }; }
10342fi
10343
10344if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
10345 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
10346echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
10347 { (exit 1); exit 1; }; }
10348fi
10349
10350# Some COFF configurations want these random other flags set.
10351case ${obj_format} in
10352 coff)
10353 case ${target_cpu_type} in
10354 i386)
10355cat >>confdefs.h <<\_ACEOF
10356#define I386COFF 1
10357_ACEOF
10358 ;;
10359 m68k)
10360cat >>confdefs.h <<\_ACEOF
10361#define M68KCOFF 1
10362_ACEOF
10363 ;;
10364 m88k)
10365cat >>confdefs.h <<\_ACEOF
10366#define M88KCOFF 1
10367_ACEOF
10368 ;;
10369 x86_64)
10370cat >>confdefs.h <<\_ACEOF
10371#define I386COFF 1
10372_ACEOF
10373 ;;
10374 esac
10375 ;;
10376esac
10377
10378# Getting this done right is going to be a bitch. Each configuration specified
10379# with --enable-targets=... should be checked for environment, format, cpu
10380# setting.
10381#
10382# For each configuration, the necessary object file support code must be linked
10383# in. This might be only one, it might be up to four. The necessary emulation
10384# code needs to be provided, too.
10385#
10386# And then there's "--enable-targets=all"....
10387#
10388# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
10389
10390formats="${obj_format}"
10391emfiles=""
10392EMULATIONS=""
10393_gas_uniq_list="$emulations"
10394_gas_uniq_newlist=""
10395for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10396 case $_gas_uniq_i in
10397 _gas_uniq_dummy) ;;
10398 *) case " $_gas_uniq_newlist " in
10399 *" $_gas_uniq_i "*) ;;
10400 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10401 esac ;;
10402 esac
10403done
10404emulations=$_gas_uniq_newlist
10405
10406for em in . $emulations ; do
10407 case $em in
10408 .) continue ;;
10409 mipsbelf | mipslelf | mipself)
10410 fmt=elf file=mipself ;;
10411 mipsbecoff | mipslecoff | mipsecoff)
10412 fmt=ecoff file=mipsecoff ;;
10413 *coff)
10414 fmt=coff file=$em ;;
10415 *aout)
10416 fmt=aout file=$em ;;
10417 *elf)
10418 fmt=elf file=$em ;;
10419 esac
10420 formats="$formats $fmt"
10421 emfiles="$emfiles e-$file.o"
10422 EMULATIONS="$EMULATIONS &$em,"
10423done
10424_gas_uniq_list="$formats"
10425_gas_uniq_newlist=""
10426for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10427 case $_gas_uniq_i in
10428 _gas_uniq_dummy) ;;
10429 *) case " $_gas_uniq_newlist " in
10430 *" $_gas_uniq_i "*) ;;
10431 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10432 esac ;;
10433 esac
10434done
10435formats=$_gas_uniq_newlist
10436
10437_gas_uniq_list="$emfiles"
10438_gas_uniq_newlist=""
10439for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10440 case $_gas_uniq_i in
10441 _gas_uniq_dummy) ;;
10442 *) case " $_gas_uniq_newlist " in
10443 *" $_gas_uniq_i "*) ;;
10444 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10445 esac ;;
10446 esac
10447done
10448emfiles=$_gas_uniq_newlist
10449
10450if test `set . $formats ; shift ; echo $#` -gt 1 ; then
10451 for fmt in $formats ; do
10452 case $fmt in
10453 aout)
10454cat >>confdefs.h <<\_ACEOF
10455#define OBJ_MAYBE_AOUT 1
10456_ACEOF
10457 ;;
10458 bout)
10459cat >>confdefs.h <<\_ACEOF
10460#define OBJ_MAYBE_BOUT 1
10461_ACEOF
10462 ;;
10463 coff)
10464cat >>confdefs.h <<\_ACEOF
10465#define OBJ_MAYBE_COFF 1
10466_ACEOF
10467 ;;
10468 ecoff)
10469cat >>confdefs.h <<\_ACEOF
10470#define OBJ_MAYBE_ECOFF 1
10471_ACEOF
10472 ;;
10473 elf)
10474cat >>confdefs.h <<\_ACEOF
10475#define OBJ_MAYBE_ELF 1
10476_ACEOF
10477 ;;
10478 generic)
10479cat >>confdefs.h <<\_ACEOF
10480#define OBJ_MAYBE_GENERIC 1
10481_ACEOF
10482 ;;
10483 som)
10484cat >>confdefs.h <<\_ACEOF
10485#define OBJ_MAYBE_SOM 1
10486_ACEOF
10487 ;;
10488 esac
10489 extra_objects="$extra_objects obj-$fmt.o"
10490 done
10491 obj_format=multi
10492fi
10493if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
10494 DEFAULT_EMULATION=`set . $emulations ; echo $2`
10495 # e-mips* has more than one emulation per file, e-i386* has just one at the
10496 # moment. If only one emulation is specified, then don't define
10497 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
10498 case "${obj_format}${emfiles}" in
10499 multi* | *mips*)
10500 extra_objects="$extra_objects $emfiles"
10501
10502cat >>confdefs.h <<\_ACEOF
10503#define USE_EMULATIONS 1
10504_ACEOF
10505 ;;
10506 esac
10507fi
10508
10509
10510cat >>confdefs.h <<_ACEOF
10511#define EMULATIONS $EMULATIONS
10512_ACEOF
10513
10514
10515cat >>confdefs.h <<_ACEOF
10516#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
10517_ACEOF
10518
10519
10520reject_dev_configs=yes
10521
10522case ${reject_dev_configs}-${dev} in
10523 yes-yes) # Oops.
10524 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
10525echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
10526 { (exit 1); exit 1; }; }
10527 ;;
10528esac
10529
10530
10531
10532
10533
10534
10535
10536# do we need the opcodes library?
10537case "${need_opcodes}" in
10538yes)
10539 OPCODES_LIB=../opcodes/libopcodes.la
10540 ;;
10541esac
10542
10543
10544
10545
10546cat >>confdefs.h <<_ACEOF
10547#define TARGET_ALIAS "${target_alias}"
10548_ACEOF
10549
10550
10551cat >>confdefs.h <<_ACEOF
10552#define TARGET_CANONICAL "${target}"
10553_ACEOF
10554
10555
10556cat >>confdefs.h <<_ACEOF
10557#define TARGET_CPU "${target_cpu}"
10558_ACEOF
10559
10560
10561cat >>confdefs.h <<_ACEOF
10562#define TARGET_VENDOR "${target_vendor}"
10563_ACEOF
10564
10565
10566cat >>confdefs.h <<_ACEOF
10567#define TARGET_OS "${target_os}"
10568_ACEOF
10569
10570
10571ac_ext=c
10572ac_cpp='$CPP $CPPFLAGS'
10573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575ac_compiler_gnu=$ac_cv_c_compiler_gnu
10576if test -n "$ac_tool_prefix"; then
10577 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10578set dummy ${ac_tool_prefix}gcc; ac_word=$2
10579echo "$as_me:$LINENO: checking for $ac_word" >&5
10580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10581if test "${ac_cv_prog_CC+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583else
10584 if test -n "$CC"; then
10585 ac_cv_prog_CC="$CC" # Let the user override the test.
10586else
10587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10588for as_dir in $PATH
10589do
10590 IFS=$as_save_IFS
10591 test -z "$as_dir" && as_dir=.
10592 for ac_exec_ext in '' $ac_executable_extensions; do
10593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10594 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 break 2
10597 fi
10598done
10599done
10600
10601fi
10602fi
10603CC=$ac_cv_prog_CC
10604if test -n "$CC"; then
10605 echo "$as_me:$LINENO: result: $CC" >&5
10606echo "${ECHO_T}$CC" >&6
10607else
10608 echo "$as_me:$LINENO: result: no" >&5
10609echo "${ECHO_T}no" >&6
10610fi
10611
10612fi
10613if test -z "$ac_cv_prog_CC"; then
10614 ac_ct_CC=$CC
10615 # Extract the first word of "gcc", so it can be a program name with args.
10616set dummy gcc; ac_word=$2
10617echo "$as_me:$LINENO: checking for $ac_word" >&5
10618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10619if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621else
10622 if test -n "$ac_ct_CC"; then
10623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10624else
10625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626for as_dir in $PATH
10627do
10628 IFS=$as_save_IFS
10629 test -z "$as_dir" && as_dir=.
10630 for ac_exec_ext in '' $ac_executable_extensions; do
10631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10632 ac_cv_prog_ac_ct_CC="gcc"
10633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10634 break 2
10635 fi
10636done
10637done
10638
10639fi
10640fi
10641ac_ct_CC=$ac_cv_prog_ac_ct_CC
10642if test -n "$ac_ct_CC"; then
10643 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10644echo "${ECHO_T}$ac_ct_CC" >&6
10645else
10646 echo "$as_me:$LINENO: result: no" >&5
10647echo "${ECHO_T}no" >&6
10648fi
10649
10650 CC=$ac_ct_CC
10651else
10652 CC="$ac_cv_prog_CC"
10653fi
10654
10655if test -z "$CC"; then
10656 if test -n "$ac_tool_prefix"; then
10657 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10658set dummy ${ac_tool_prefix}cc; ac_word=$2
10659echo "$as_me:$LINENO: checking for $ac_word" >&5
10660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10661if test "${ac_cv_prog_CC+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663else
10664 if test -n "$CC"; then
10665 ac_cv_prog_CC="$CC" # Let the user override the test.
13b2be9c 10666else
d7040cdb
SE
10667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668for as_dir in $PATH
10669do
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674 ac_cv_prog_CC="${ac_tool_prefix}cc"
10675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10677 fi
10678done
10679done
13b2be9c 10680
13b2be9c 10681fi
d7040cdb
SE
10682fi
10683CC=$ac_cv_prog_CC
10684if test -n "$CC"; then
10685 echo "$as_me:$LINENO: result: $CC" >&5
10686echo "${ECHO_T}$CC" >&6
13b2be9c 10687else
d7040cdb
SE
10688 echo "$as_me:$LINENO: result: no" >&5
10689echo "${ECHO_T}no" >&6
10690fi
13b2be9c
DJ
10691
10692fi
d7040cdb
SE
10693if test -z "$ac_cv_prog_CC"; then
10694 ac_ct_CC=$CC
10695 # Extract the first word of "cc", so it can be a program name with args.
10696set dummy cc; ac_word=$2
10697echo "$as_me:$LINENO: checking for $ac_word" >&5
10698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701else
10702 if test -n "$ac_ct_CC"; then
10703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10704else
10705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706for as_dir in $PATH
10707do
10708 IFS=$as_save_IFS
10709 test -z "$as_dir" && as_dir=.
10710 for ac_exec_ext in '' $ac_executable_extensions; do
10711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10712 ac_cv_prog_ac_ct_CC="cc"
10713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10714 break 2
10715 fi
10716done
13b2be9c 10717done
13b2be9c 10718
d7040cdb
SE
10719fi
10720fi
10721ac_ct_CC=$ac_cv_prog_ac_ct_CC
10722if test -n "$ac_ct_CC"; then
10723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10724echo "${ECHO_T}$ac_ct_CC" >&6
13b2be9c 10725else
d7040cdb
SE
10726 echo "$as_me:$LINENO: result: no" >&5
10727echo "${ECHO_T}no" >&6
13b2be9c 10728fi
c8615825 10729
d7040cdb
SE
10730 CC=$ac_ct_CC
10731else
10732 CC="$ac_cv_prog_CC"
10733fi
c8615825 10734
d7040cdb
SE
10735fi
10736if test -z "$CC"; then
10737 # Extract the first word of "cc", so it can be a program name with args.
10738set dummy cc; ac_word=$2
13b2be9c
DJ
10739echo "$as_me:$LINENO: checking for $ac_word" >&5
10740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 10741if test "${ac_cv_prog_CC+set}" = set; then
13b2be9c 10742 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 10743else
d7040cdb
SE
10744 if test -n "$CC"; then
10745 ac_cv_prog_CC="$CC" # Let the user override the test.
c8615825 10746else
d7040cdb 10747 ac_prog_rejected=no
13b2be9c
DJ
10748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749for as_dir in $PATH
10750do
10751 IFS=$as_save_IFS
10752 test -z "$as_dir" && as_dir=.
10753 for ac_exec_ext in '' $ac_executable_extensions; do
10754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb
SE
10755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10756 ac_prog_rejected=yes
10757 continue
10758 fi
10759 ac_cv_prog_CC="cc"
13b2be9c
DJ
10760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10762 fi
10763done
10764done
10765
d7040cdb
SE
10766if test $ac_prog_rejected = yes; then
10767 # We found a bogon in the path, so make sure we never use it.
10768 set dummy $ac_cv_prog_CC
10769 shift
10770 if test $# != 0; then
10771 # We chose a different compiler from the bogus one.
10772 # However, it has the same basename, so the bogon will be chosen
10773 # first if we set CC to just the basename; use the full file name.
10774 shift
10775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10776 fi
c8615825
AM
10777fi
10778fi
d7040cdb
SE
10779fi
10780CC=$ac_cv_prog_CC
10781if test -n "$CC"; then
10782 echo "$as_me:$LINENO: result: $CC" >&5
10783echo "${ECHO_T}$CC" >&6
c8615825 10784else
13b2be9c
DJ
10785 echo "$as_me:$LINENO: result: no" >&5
10786echo "${ECHO_T}no" >&6
c8615825
AM
10787fi
10788
d7040cdb
SE
10789fi
10790if test -z "$CC"; then
10791 if test -n "$ac_tool_prefix"; then
10792 for ac_prog in cl
10793 do
10794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10796echo "$as_me:$LINENO: checking for $ac_word" >&5
10797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10798if test "${ac_cv_prog_CC+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800else
10801 if test -n "$CC"; then
10802 ac_cv_prog_CC="$CC" # Let the user override the test.
10803else
10804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805for as_dir in $PATH
10806do
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10814 fi
10815done
c8615825 10816done
c8615825 10817
d7040cdb
SE
10818fi
10819fi
10820CC=$ac_cv_prog_CC
10821if test -n "$CC"; then
10822 echo "$as_me:$LINENO: result: $CC" >&5
10823echo "${ECHO_T}$CC" >&6
10824else
10825 echo "$as_me:$LINENO: result: no" >&5
10826echo "${ECHO_T}no" >&6
10827fi
10828
10829 test -n "$CC" && break
10830 done
10831fi
10832if test -z "$CC"; then
10833 ac_ct_CC=$CC
10834 for ac_prog in cl
13b2be9c
DJ
10835do
10836 # Extract the first word of "$ac_prog", so it can be a program name with args.
10837set dummy $ac_prog; ac_word=$2
10838echo "$as_me:$LINENO: checking for $ac_word" >&5
10839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 10840if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13b2be9c 10841 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 10842else
d7040cdb
SE
10843 if test -n "$ac_ct_CC"; then
10844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9b2b7d69 10845else
13b2be9c
DJ
10846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847for as_dir in $PATH
10848do
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 for ac_exec_ext in '' $ac_executable_extensions; do
10852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 10853 ac_cv_prog_ac_ct_CC="$ac_prog"
13b2be9c
DJ
10854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 break 2
10856 fi
10857done
10858done
10859
10860fi
10861fi
d7040cdb
SE
10862ac_ct_CC=$ac_cv_prog_ac_ct_CC
10863if test -n "$ac_ct_CC"; then
10864 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10865echo "${ECHO_T}$ac_ct_CC" >&6
c8615825 10866else
13b2be9c
DJ
10867 echo "$as_me:$LINENO: result: no" >&5
10868echo "${ECHO_T}no" >&6
10869fi
10870
d7040cdb 10871 test -n "$ac_ct_CC" && break
13b2be9c 10872done
13b2be9c 10873
d7040cdb
SE
10874 CC=$ac_ct_CC
10875fi
10876
10877fi
10878
10879
10880test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10881See \`config.log' for more details." >&5
10882echo "$as_me: error: no acceptable C compiler found in \$PATH
10883See \`config.log' for more details." >&2;}
10884 { (exit 1); exit 1; }; }
10885
10886# Provide some information about the compiler.
10887echo "$as_me:$LINENO:" \
10888 "checking for C compiler version" >&5
10889ac_compiler=`set X $ac_compile; echo $2`
10890{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10891 (eval $ac_compiler --version </dev/null >&5) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }
10895{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10896 (eval $ac_compiler -v </dev/null >&5) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }
10900{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10901 (eval $ac_compiler -V </dev/null >&5) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }
10905
10906echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10907echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10908if test "${ac_cv_c_compiler_gnu+set}" = set; then
13b2be9c
DJ
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10910else
d7040cdb 10911 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10912/* confdefs.h. */
10913_ACEOF
10914cat confdefs.h >>conftest.$ac_ext
10915cat >>conftest.$ac_ext <<_ACEOF
10916/* end confdefs.h. */
10917
13b2be9c
DJ
10918int
10919main ()
10920{
d7040cdb
SE
10921#ifndef __GNUC__
10922 choke me
10923#endif
10924
13b2be9c
DJ
10925 ;
10926 return 0;
10927}
10928_ACEOF
d7040cdb
SE
10929rm -f conftest.$ac_objext
10930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10931 (eval $ac_compile) 2>conftest.er1
13b2be9c 10932 ac_status=$?
ab509236
L
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
13b2be9c
DJ
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
1ad12f97
NC
10938 { ac_try='test -z "$ac_c_werror_flag"
10939 || test ! -s conftest.err'
ab509236
L
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; } &&
d7040cdb 10945 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
d7040cdb 10951 ac_compiler_gnu=yes
13b2be9c
DJ
10952else
10953 echo "$as_me: failed program was:" >&5
10954sed 's/^/| /' conftest.$ac_ext >&5
10955
d7040cdb 10956ac_compiler_gnu=no
13b2be9c 10957fi
d7040cdb
SE
10958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10959ac_cv_c_compiler_gnu=$ac_compiler_gnu
10960
13b2be9c 10961fi
d7040cdb
SE
10962echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10963echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10964GCC=`test $ac_compiler_gnu = yes && echo yes`
10965ac_test_CFLAGS=${CFLAGS+set}
10966ac_save_CFLAGS=$CFLAGS
10967CFLAGS="-g"
10968echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10969echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10970if test "${ac_cv_prog_cc_g+set}" = set; then
13b2be9c
DJ
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972else
d7040cdb 10973 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10974/* confdefs.h. */
10975_ACEOF
10976cat confdefs.h >>conftest.$ac_ext
10977cat >>conftest.$ac_ext <<_ACEOF
10978/* end confdefs.h. */
10979
13b2be9c
DJ
10980int
10981main ()
10982{
d7040cdb 10983
13b2be9c
DJ
10984 ;
10985 return 0;
10986}
10987_ACEOF
d7040cdb
SE
10988rm -f conftest.$ac_objext
10989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10990 (eval $ac_compile) 2>conftest.er1
13b2be9c 10991 ac_status=$?
ab509236
L
10992 grep -v '^ *+' conftest.er1 >conftest.err
10993 rm -f conftest.er1
10994 cat conftest.err >&5
13b2be9c
DJ
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
1ad12f97
NC
10997 { ac_try='test -z "$ac_c_werror_flag"
10998 || test ! -s conftest.err'
ab509236
L
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; } &&
d7040cdb 11004 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
d7040cdb 11010 ac_cv_prog_cc_g=yes
9b2b7d69 11011else
13b2be9c
DJ
11012 echo "$as_me: failed program was:" >&5
11013sed 's/^/| /' conftest.$ac_ext >&5
11014
d7040cdb 11015ac_cv_prog_cc_g=no
252b5132 11016fi
d7040cdb 11017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 11018fi
d7040cdb
SE
11019echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11020echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11021if test "$ac_test_CFLAGS" = set; then
11022 CFLAGS=$ac_save_CFLAGS
11023elif test $ac_cv_prog_cc_g = yes; then
11024 if test "$GCC" = yes; then
11025 CFLAGS="-g -O2"
11026 else
11027 CFLAGS="-g"
11028 fi
11029else
11030 if test "$GCC" = yes; then
11031 CFLAGS="-O2"
11032 else
11033 CFLAGS=
11034 fi
252b5132 11035fi
d7040cdb
SE
11036echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11037echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11038if test "${ac_cv_prog_cc_stdc+set}" = set; then
13b2be9c
DJ
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11040else
d7040cdb
SE
11041 ac_cv_prog_cc_stdc=no
11042ac_save_CC=$CC
11043cat >conftest.$ac_ext <<_ACEOF
11044/* confdefs.h. */
13b2be9c 11045_ACEOF
d7040cdb
SE
11046cat confdefs.h >>conftest.$ac_ext
11047cat >>conftest.$ac_ext <<_ACEOF
11048/* end confdefs.h. */
11049#include <stdarg.h>
11050#include <stdio.h>
11051#include <sys/types.h>
11052#include <sys/stat.h>
11053/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11054struct buf { int x; };
11055FILE * (*rcsopen) (struct buf *, struct stat *, int);
11056static char *e (p, i)
11057 char **p;
11058 int i;
11059{
11060 return p[i];
11061}
11062static char *f (char * (*g) (char **, int), char **p, ...)
11063{
11064 char *s;
11065 va_list v;
11066 va_start (v,p);
11067 s = g (p, va_arg (v,int));
11068 va_end (v);
11069 return s;
11070}
11071
11072/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11073 function prototypes and stuff, but not '\xHH' hex character constants.
11074 These don't provoke an error unfortunately, instead are silently treated
11075 as 'x'. The following induces an error, until -std1 is added to get
11076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11077 array size at least. It's necessary to write '\x00'==0 to get something
11078 that's true only with -std1. */
11079int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11080
11081int test (int i, double x);
11082struct s1 {int (*f) (int a);};
11083struct s2 {int (*f) (double a);};
11084int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11085int argc;
11086char **argv;
11087int
11088main ()
11089{
11090return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11091 ;
11092 return 0;
11093}
11094_ACEOF
11095# Don't try gcc -ansi; that turns off useful extensions and
11096# breaks some systems' header files.
11097# AIX -qlanglvl=ansi
11098# Ultrix and OSF/1 -std1
11099# HP-UX 10.20 and later -Ae
11100# HP-UX older versions -Aa -D_HPUX_SOURCE
11101# SVR4 -Xc -D__EXTENSIONS__
11102for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11103do
11104 CC="$ac_save_CC $ac_arg"
11105 rm -f conftest.$ac_objext
11106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11107 (eval $ac_compile) 2>conftest.er1
13b2be9c 11108 ac_status=$?
d7040cdb
SE
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
13b2be9c 11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11113 (exit $ac_status); } &&
11114 { ac_try='test -z "$ac_c_werror_flag"
11115 || test ! -s conftest.err'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; } &&
11121 { ac_try='test -s conftest.$ac_objext'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; }; then
11127 ac_cv_prog_cc_stdc=$ac_arg
11128break
252b5132 11129else
d7040cdb
SE
11130 echo "$as_me: failed program was:" >&5
11131sed 's/^/| /' conftest.$ac_ext >&5
11132
252b5132 11133fi
d7040cdb
SE
11134rm -f conftest.err conftest.$ac_objext
11135done
11136rm -f conftest.$ac_ext conftest.$ac_objext
11137CC=$ac_save_CC
11138
13b2be9c 11139fi
252b5132 11140
d7040cdb
SE
11141case "x$ac_cv_prog_cc_stdc" in
11142 x|xno)
11143 echo "$as_me:$LINENO: result: none needed" >&5
11144echo "${ECHO_T}none needed" >&6 ;;
11145 *)
11146 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11147echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11148 CC="$CC $ac_cv_prog_cc_stdc" ;;
11149esac
11150
11151# Some people use a C++ compiler to compile C. Since we use `exit',
11152# in C++ we need to declare it. In case someone uses the same compiler
11153# for both compiling C and C++ we need to have the C++ compiler decide
11154# the declaration of exit, since it's the most demanding environment.
13b2be9c 11155cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
11156#ifndef __cplusplus
11157 choke me
11158#endif
13b2be9c 11159_ACEOF
d7040cdb
SE
11160rm -f conftest.$ac_objext
11161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
13b2be9c 11163 ac_status=$?
ab509236
L
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
13b2be9c
DJ
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
1ad12f97
NC
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
ab509236
L
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
d7040cdb 11176 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
d7040cdb
SE
11182 for ac_declaration in \
11183 '' \
11184 'extern "C" void std::exit (int) throw (); using std::exit;' \
11185 'extern "C" void std::exit (int); using std::exit;' \
11186 'extern "C" void exit (int) throw ();' \
11187 'extern "C" void exit (int);' \
11188 'void exit (int);'
11189do
11190 cat >conftest.$ac_ext <<_ACEOF
11191/* confdefs.h. */
13b2be9c 11192_ACEOF
d7040cdb
SE
11193cat confdefs.h >>conftest.$ac_ext
11194cat >>conftest.$ac_ext <<_ACEOF
11195/* end confdefs.h. */
11196$ac_declaration
11197#include <stdlib.h>
11198int
11199main ()
11200{
11201exit (42);
11202 ;
11203 return 0;
11204}
20e95c23 11205_ACEOF
d7040cdb
SE
11206rm -f conftest.$ac_objext
11207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try='test -z "$ac_c_werror_flag"
11216 || test ! -s conftest.err'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
11228 :
20e95c23 11229else
d7040cdb
SE
11230 echo "$as_me: failed program was:" >&5
11231sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 11232
d7040cdb 11233continue
13b2be9c 11234fi
d7040cdb
SE
11235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11236 cat >conftest.$ac_ext <<_ACEOF
11237/* confdefs.h. */
11238_ACEOF
11239cat confdefs.h >>conftest.$ac_ext
11240cat >>conftest.$ac_ext <<_ACEOF
11241/* end confdefs.h. */
11242$ac_declaration
11243int
11244main ()
11245{
11246exit (42);
11247 ;
11248 return 0;
11249}
11250_ACEOF
11251rm -f conftest.$ac_objext
11252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11253 (eval $ac_compile) 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag"
11261 || test ! -s conftest.err'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; } &&
11267 { ac_try='test -s conftest.$ac_objext'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; }; then
11273 break
252b5132 11274else
d7040cdb
SE
11275 echo "$as_me: failed program was:" >&5
11276sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 11277
20e95c23 11278fi
d7040cdb
SE
11279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11280done
11281rm -f conftest*
11282if test -n "$ac_declaration"; then
11283 echo '#ifdef __cplusplus' >>confdefs.h
11284 echo $ac_declaration >>confdefs.h
11285 echo '#endif' >>confdefs.h
13b2be9c 11286fi
20e95c23 11287
13b2be9c 11288else
d7040cdb
SE
11289 echo "$as_me: failed program was:" >&5
11290sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 11291
20e95c23 11292fi
d7040cdb
SE
11293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11294ac_ext=c
11295ac_cpp='$CPP $CPPFLAGS'
11296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11298ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6d788bd 11299
20e95c23 11300
d7040cdb
SE
11301for ac_prog in 'bison -y' byacc
11302do
11303 # Extract the first word of "$ac_prog", so it can be a program name with args.
11304set dummy $ac_prog; ac_word=$2
20e95c23
DJ
11305echo "$as_me:$LINENO: checking for $ac_word" >&5
11306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 11307if test "${ac_cv_prog_YACC+set}" = set; then
20e95c23
DJ
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309else
d7040cdb
SE
11310 if test -n "$YACC"; then
11311 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 11312else
d7040cdb
SE
11313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314for as_dir in $PATH
11315do
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11320 ac_cv_prog_YACC="$ac_prog"
11321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 break 2
20e95c23 11323 fi
d7040cdb
SE
11324done
11325done
20e95c23 11326
d7040cdb
SE
11327fi
11328fi
11329YACC=$ac_cv_prog_YACC
11330if test -n "$YACC"; then
11331 echo "$as_me:$LINENO: result: $YACC" >&5
11332echo "${ECHO_T}$YACC" >&6
11333else
11334 echo "$as_me:$LINENO: result: no" >&5
11335echo "${ECHO_T}no" >&6
11336fi
20e95c23 11337
d7040cdb
SE
11338 test -n "$YACC" && break
11339done
11340test -n "$YACC" || YACC="yacc"
20e95c23 11341
d7040cdb
SE
11342for ac_prog in flex lex
11343do
11344 # Extract the first word of "$ac_prog", so it can be a program name with args.
11345set dummy $ac_prog; ac_word=$2
11346echo "$as_me:$LINENO: checking for $ac_word" >&5
11347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11348if test "${ac_cv_prog_LEX+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 11350else
d7040cdb
SE
11351 if test -n "$LEX"; then
11352 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11353else
11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355for as_dir in $PATH
11356do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_prog_LEX="$ac_prog"
11362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11364 fi
11365done
11366done
20e95c23 11367
d7040cdb
SE
11368fi
11369fi
11370LEX=$ac_cv_prog_LEX
11371if test -n "$LEX"; then
11372 echo "$as_me:$LINENO: result: $LEX" >&5
11373echo "${ECHO_T}$LEX" >&6
20e95c23 11374else
d7040cdb
SE
11375 echo "$as_me:$LINENO: result: no" >&5
11376echo "${ECHO_T}no" >&6
13b2be9c
DJ
11377fi
11378
d7040cdb
SE
11379 test -n "$LEX" && break
11380done
11381test -n "$LEX" || LEX=":"
20e95c23 11382
d7040cdb
SE
11383if test -z "$LEXLIB"
11384then
11385 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11386echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11387if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
d5fbea21 11389else
d7040cdb
SE
11390 ac_check_lib_save_LIBS=$LIBS
11391LIBS="-lfl $LIBS"
11392cat >conftest.$ac_ext <<_ACEOF
11393/* confdefs.h. */
11394_ACEOF
11395cat confdefs.h >>conftest.$ac_ext
11396cat >>conftest.$ac_ext <<_ACEOF
11397/* end confdefs.h. */
d5fbea21 11398
d7040cdb
SE
11399/* Override any gcc2 internal prototype to avoid an error. */
11400#ifdef __cplusplus
11401extern "C"
11402#endif
11403/* We use char because int might match the return type of a gcc2
11404 builtin and then its argument prototype would still apply. */
11405char yywrap ();
11406int
11407main ()
11408{
11409yywrap ();
11410 ;
11411 return 0;
11412}
11413_ACEOF
11414rm -f conftest.$ac_objext conftest$ac_exeext
11415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>conftest.er1
11417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag"
11424 || test ! -s conftest.err'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; } &&
11430 { ac_try='test -s conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 ac_cv_lib_fl_yywrap=yes
11437else
11438 echo "$as_me: failed program was:" >&5
11439sed 's/^/| /' conftest.$ac_ext >&5
d5fbea21 11440
d7040cdb 11441ac_cv_lib_fl_yywrap=no
d6d788bd 11442fi
d7040cdb
SE
11443rm -f conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445LIBS=$ac_check_lib_save_LIBS
11446fi
11447echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11448echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11449if test $ac_cv_lib_fl_yywrap = yes; then
11450 LEXLIB="-lfl"
11451else
11452 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11453echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11454if test "${ac_cv_lib_l_yywrap+set}" = set; then
13b2be9c
DJ
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11456else
d7040cdb
SE
11457 ac_check_lib_save_LIBS=$LIBS
11458LIBS="-ll $LIBS"
11459cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
11460/* confdefs.h. */
11461_ACEOF
11462cat confdefs.h >>conftest.$ac_ext
11463cat >>conftest.$ac_ext <<_ACEOF
11464/* end confdefs.h. */
d7040cdb
SE
11465
11466/* Override any gcc2 internal prototype to avoid an error. */
11467#ifdef __cplusplus
11468extern "C"
13b2be9c 11469#endif
d7040cdb
SE
11470/* We use char because int might match the return type of a gcc2
11471 builtin and then its argument prototype would still apply. */
11472char yywrap ();
11473int
11474main ()
11475{
11476yywrap ();
11477 ;
11478 return 0;
11479}
11480_ACEOF
11481rm -f conftest.$ac_objext conftest$ac_exeext
11482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483 (eval $ac_link) 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag"
11491 || test ! -s conftest.err'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest$ac_exeext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 ac_cv_lib_l_yywrap=yes
11504else
11505 echo "$as_me: failed program was:" >&5
11506sed 's/^/| /' conftest.$ac_ext >&5
11507
11508ac_cv_lib_l_yywrap=no
11509fi
11510rm -f conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11512LIBS=$ac_check_lib_save_LIBS
11513fi
11514echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11515echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11516if test $ac_cv_lib_l_yywrap = yes; then
11517 LEXLIB="-ll"
11518fi
11519
11520fi
11521
11522fi
11523
11524if test "x$LEX" != "x:"; then
11525 echo "$as_me:$LINENO: checking lex output file root" >&5
11526echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11527if test "${ac_cv_prog_lex_root+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11529else
11530 # The minimal lex program is just a single line: %%. But some broken lexes
11531# (Solaris, I think it was) want two %% lines, so accommodate them.
11532cat >conftest.l <<_ACEOF
11533%%
11534%%
13b2be9c 11535_ACEOF
d7040cdb
SE
11536{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11537 (eval $LEX conftest.l) 2>&5
13b2be9c 11538 ac_status=$?
13b2be9c 11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11540 (exit $ac_status); }
11541if test -f lex.yy.c; then
11542 ac_cv_prog_lex_root=lex.yy
11543elif test -f lexyy.c; then
11544 ac_cv_prog_lex_root=lexyy
13b2be9c 11545else
d7040cdb
SE
11546 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11547echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11548 { (exit 1); exit 1; }; }
d6d788bd 11549fi
13b2be9c 11550fi
d7040cdb
SE
11551echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11552echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11553rm -f conftest.l
11554LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13b2be9c 11555
d7040cdb
SE
11556echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11557echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11558if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11560else
11561 # POSIX says lex can declare yytext either as a pointer or an array; the
11562# default is implementation-dependent. Figure out which it is, since
11563# not all implementations provide the %pointer and %array declarations.
11564ac_cv_prog_lex_yytext_pointer=no
11565echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11566ac_save_LIBS=$LIBS
11567LIBS="$LIBS $LEXLIB"
11568cat >conftest.$ac_ext <<_ACEOF
11569`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 11570_ACEOF
d7040cdb
SE
11571rm -f conftest.$ac_objext conftest$ac_exeext
11572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11573 (eval $ac_link) 2>conftest.er1
13b2be9c
DJ
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11579 (exit $ac_status); } &&
11580 { ac_try='test -z "$ac_c_werror_flag"
11581 || test ! -s conftest.err'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; } &&
11587 { ac_try='test -s conftest$ac_exeext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }; then
11593 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c
DJ
11594else
11595 echo "$as_me: failed program was:" >&5
11596sed 's/^/| /' conftest.$ac_ext >&5
6840198f 11597
13b2be9c 11598fi
d7040cdb
SE
11599rm -f conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601LIBS=$ac_save_LIBS
11602rm -f "${LEX_OUTPUT_ROOT}.c"
252b5132 11603
9b2b7d69 11604fi
d7040cdb
SE
11605echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11606echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11607if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 11608
d7040cdb
SE
11609cat >>confdefs.h <<\_ACEOF
11610#define YYTEXT_POINTER 1
11611_ACEOF
9b2b7d69 11612
d6d788bd 11613fi
d7040cdb 11614
c8615825 11615fi
d7040cdb
SE
11616if test "$LEX" = :; then
11617 LEX=${am_missing_run}flex
11618fi
11619
11620ALL_LINGUAS="fr tr es rw"
11621# If we haven't got the data from the intl directory,
11622# assume NLS is disabled.
11623USE_NLS=no
11624LIBINTL=
11625LIBINTL_DEP=
11626INCINTL=
11627XGETTEXT=
11628GMSGFMT=
11629POSUB=
11630
11631if test -f ../intl/config.intl; then
11632 . ../intl/config.intl
11633fi
11634echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11635echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11636if test x"$USE_NLS" != xyes; then
11637 echo "$as_me:$LINENO: result: no" >&5
11638echo "${ECHO_T}no" >&6
11639else
11640 echo "$as_me:$LINENO: result: yes" >&5
11641echo "${ECHO_T}yes" >&6
11642
11643cat >>confdefs.h <<\_ACEOF
11644#define ENABLE_NLS 1
13b2be9c 11645_ACEOF
d7040cdb
SE
11646
11647
11648 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11649echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11650 # Look for .po and .gmo files in the source directory.
11651 CATALOGS=
11652 XLINGUAS=
11653 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11654 # If there aren't any .gmo files the shell will give us the
11655 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11656 # weeded out.
11657 case "$cat" in *\**)
11658 continue;;
11659 esac
11660 # The quadruple backslash is collapsed to a double backslash
11661 # by the backticks, then collapsed again by the double quotes,
11662 # leaving us with one backslash in the sed expression (right
11663 # before the dot that mustn't act as a wildcard).
11664 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11665 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11666 # The user is allowed to set LINGUAS to a list of languages to
11667 # install catalogs for. If it's empty that means "all of them."
11668 if test "x$LINGUAS" = x; then
11669 CATALOGS="$CATALOGS $cat"
11670 XLINGUAS="$XLINGUAS $lang"
11671 else
11672 case "$LINGUAS" in *$lang*)
11673 CATALOGS="$CATALOGS $cat"
11674 XLINGUAS="$XLINGUAS $lang"
11675 ;;
11676 esac
11677 fi
11678 done
11679 LINGUAS="$XLINGUAS"
11680 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11681echo "${ECHO_T}$LINGUAS" >&6
11682
11683
11684 DATADIRNAME=share
11685
11686 INSTOBJEXT=.mo
11687
11688 GENCAT=gencat
11689
11690 CATOBJEXT=.gmo
11691
11692fi
11693
11694 MKINSTALLDIRS=
11695 if test -n "$ac_aux_dir"; then
11696 case "$ac_aux_dir" in
11697 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11698 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11699 esac
11700 fi
11701 if test -z "$MKINSTALLDIRS"; then
11702 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11703 fi
11704
11705
11706
11707 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11708echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11709 # Check whether --enable-nls or --disable-nls was given.
11710if test "${enable_nls+set}" = set; then
11711 enableval="$enable_nls"
11712 USE_NLS=$enableval
11713else
11714 USE_NLS=yes
11715fi;
11716 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11717echo "${ECHO_T}$USE_NLS" >&6
11718
11719
11720
11721
11722
11723
11724# Prepare PATH_SEPARATOR.
11725# The user is always right.
11726if test "${PATH_SEPARATOR+set}" != set; then
11727 echo "#! /bin/sh" >conf$$.sh
11728 echo "exit 0" >>conf$$.sh
11729 chmod +x conf$$.sh
11730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11731 PATH_SEPARATOR=';'
13b2be9c 11732 else
d7040cdb 11733 PATH_SEPARATOR=:
13b2be9c 11734 fi
d7040cdb 11735 rm -f conf$$.sh
252b5132 11736fi
13b2be9c 11737
d7040cdb
SE
11738# Find out how to test for executable files. Don't use a zero-byte file,
11739# as systems may use methods other than mode bits to determine executability.
11740cat >conf$$.file <<_ASEOF
11741#! /bin/sh
11742exit 0
11743_ASEOF
11744chmod +x conf$$.file
11745if test -x conf$$.file >/dev/null 2>&1; then
11746 ac_executable_p="test -x"
11747else
11748 ac_executable_p="test -f"
13b2be9c 11749fi
d7040cdb 11750rm -f conf$$.file
13b2be9c 11751
d7040cdb
SE
11752# Extract the first word of "msgfmt", so it can be a program name with args.
11753set dummy msgfmt; ac_word=$2
11754echo "$as_me:$LINENO: checking for $ac_word" >&5
11755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11756if test "${ac_cv_path_MSGFMT+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11758else
d7040cdb
SE
11759 case "$MSGFMT" in
11760 [\\/]* | ?:[\\/]*)
11761 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11762 ;;
11763 *)
11764 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11765 for ac_dir in $PATH; do
11766 IFS="$ac_save_IFS"
11767 test -z "$ac_dir" && ac_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11770 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11771 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11772 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11773 break 2
11774 fi
11775 fi
11776 done
11777 done
11778 IFS="$ac_save_IFS"
11779 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11780 ;;
11781esac
252b5132 11782fi
d7040cdb
SE
11783MSGFMT="$ac_cv_path_MSGFMT"
11784if test "$MSGFMT" != ":"; then
11785 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11786echo "${ECHO_T}$MSGFMT" >&6
252b5132 11787else
d7040cdb
SE
11788 echo "$as_me:$LINENO: result: no" >&5
11789echo "${ECHO_T}no" >&6
252b5132 11790fi
252b5132 11791
d7040cdb
SE
11792 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11793set dummy gmsgfmt; ac_word=$2
11794echo "$as_me:$LINENO: checking for $ac_word" >&5
11795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11796if test "${ac_cv_path_GMSGFMT+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 11798else
d7040cdb
SE
11799 case $GMSGFMT in
11800 [\\/]* | ?:[\\/]*)
11801 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11802 ;;
11803 *)
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805for as_dir in $PATH
11806do
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11814 fi
11815done
11816done
252b5132 11817
d7040cdb
SE
11818 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11819 ;;
11820esac
11821fi
11822GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 11823
d7040cdb
SE
11824if test -n "$GMSGFMT"; then
11825 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11826echo "${ECHO_T}$GMSGFMT" >&6
ac48eca1 11827else
d7040cdb
SE
11828 echo "$as_me:$LINENO: result: no" >&5
11829echo "${ECHO_T}no" >&6
6840198f 11830fi
6840198f 11831
13b2be9c 11832
20e95c23 11833
d7040cdb
SE
11834# Prepare PATH_SEPARATOR.
11835# The user is always right.
11836if test "${PATH_SEPARATOR+set}" != set; then
11837 echo "#! /bin/sh" >conf$$.sh
11838 echo "exit 0" >>conf$$.sh
11839 chmod +x conf$$.sh
11840 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11841 PATH_SEPARATOR=';'
11842 else
11843 PATH_SEPARATOR=:
11844 fi
11845 rm -f conf$$.sh
11846fi
20e95c23 11847
d7040cdb
SE
11848# Find out how to test for executable files. Don't use a zero-byte file,
11849# as systems may use methods other than mode bits to determine executability.
11850cat >conf$$.file <<_ASEOF
11851#! /bin/sh
11852exit 0
11853_ASEOF
11854chmod +x conf$$.file
11855if test -x conf$$.file >/dev/null 2>&1; then
11856 ac_executable_p="test -x"
13b2be9c 11857else
d7040cdb 11858 ac_executable_p="test -f"
13b2be9c 11859fi
d7040cdb 11860rm -f conf$$.file
20e95c23 11861
d7040cdb
SE
11862# Extract the first word of "xgettext", so it can be a program name with args.
11863set dummy xgettext; ac_word=$2
11864echo "$as_me:$LINENO: checking for $ac_word" >&5
11865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11866if test "${ac_cv_path_XGETTEXT+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11868else
d7040cdb
SE
11869 case "$XGETTEXT" in
11870 [\\/]* | ?:[\\/]*)
11871 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11872 ;;
11873 *)
11874 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11875 for ac_dir in $PATH; do
11876 IFS="$ac_save_IFS"
11877 test -z "$ac_dir" && ac_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11880 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11881 (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
11882 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11883 break 2
11884 fi
11885 fi
11886 done
11887 done
11888 IFS="$ac_save_IFS"
11889 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11890 ;;
11891esac
13b2be9c 11892fi
d7040cdb
SE
11893XGETTEXT="$ac_cv_path_XGETTEXT"
11894if test "$XGETTEXT" != ":"; then
11895 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11896echo "${ECHO_T}$XGETTEXT" >&6
11897else
11898 echo "$as_me:$LINENO: result: no" >&5
11899echo "${ECHO_T}no" >&6
13b2be9c 11900fi
13b2be9c 11901
d7040cdb 11902 rm -f messages.po
20e95c23 11903
13b2be9c 11904
d7040cdb
SE
11905# Prepare PATH_SEPARATOR.
11906# The user is always right.
11907if test "${PATH_SEPARATOR+set}" != set; then
11908 echo "#! /bin/sh" >conf$$.sh
11909 echo "exit 0" >>conf$$.sh
11910 chmod +x conf$$.sh
11911 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11912 PATH_SEPARATOR=';'
11913 else
11914 PATH_SEPARATOR=:
11915 fi
11916 rm -f conf$$.sh
252b5132 11917fi
20e95c23 11918
d7040cdb
SE
11919# Find out how to test for executable files. Don't use a zero-byte file,
11920# as systems may use methods other than mode bits to determine executability.
11921cat >conf$$.file <<_ASEOF
11922#! /bin/sh
11923exit 0
11924_ASEOF
11925chmod +x conf$$.file
11926if test -x conf$$.file >/dev/null 2>&1; then
11927 ac_executable_p="test -x"
252b5132 11928else
d7040cdb
SE
11929 ac_executable_p="test -f"
11930fi
11931rm -f conf$$.file
20e95c23 11932
d7040cdb
SE
11933# Extract the first word of "msgmerge", so it can be a program name with args.
11934set dummy msgmerge; ac_word=$2
11935echo "$as_me:$LINENO: checking for $ac_word" >&5
11936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11937if test "${ac_cv_path_MSGMERGE+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11939else
d7040cdb
SE
11940 case "$MSGMERGE" in
11941 [\\/]* | ?:[\\/]*)
11942 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11943 ;;
11944 *)
11945 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11946 for ac_dir in $PATH; do
11947 IFS="$ac_save_IFS"
11948 test -z "$ac_dir" && ac_dir=.
11949 for ac_exec_ext in '' $ac_executable_extensions; do
11950 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11951 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11952 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11953 break 2
11954 fi
11955 fi
11956 done
11957 done
11958 IFS="$ac_save_IFS"
11959 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11960 ;;
11961esac
20e95c23 11962fi
d7040cdb
SE
11963MSGMERGE="$ac_cv_path_MSGMERGE"
11964if test "$MSGMERGE" != ":"; then
11965 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11966echo "${ECHO_T}$MSGMERGE" >&6
11967else
11968 echo "$as_me:$LINENO: result: no" >&5
11969echo "${ECHO_T}no" >&6
20e95c23 11970fi
252b5132 11971
252b5132 11972
d7040cdb
SE
11973 if test "$GMSGFMT" != ":"; then
11974 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11975 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11976 : ;
11977 else
11978 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11979 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11980echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11981 GMSGFMT=":"
11982 fi
11983 fi
13b2be9c 11984
d7040cdb
SE
11985 if test "$XGETTEXT" != ":"; then
11986 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11987 (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
11988 : ;
11989 else
11990 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11991echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11992 XGETTEXT=":"
11993 fi
11994 rm -f messages.po
11995 fi
252b5132 11996
d7040cdb 11997 ac_config_commands="$ac_config_commands default-1"
252b5132 11998
13b2be9c 11999
252b5132 12000
d7040cdb
SE
12001echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12002echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12003 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12004if test "${enable_maintainer_mode+set}" = set; then
12005 enableval="$enable_maintainer_mode"
12006 USE_MAINTAINER_MODE=$enableval
c8615825 12007else
d7040cdb
SE
12008 USE_MAINTAINER_MODE=no
12009fi;
12010 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12011echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13b2be9c 12012
d7040cdb
SE
12013
12014if test $USE_MAINTAINER_MODE = yes; then
12015 MAINTAINER_MODE_TRUE=
12016 MAINTAINER_MODE_FALSE='#'
12017else
12018 MAINTAINER_MODE_TRUE='#'
12019 MAINTAINER_MODE_FALSE=
20e95c23 12020fi
9b2b7d69 12021
d7040cdb
SE
12022 MAINT=$MAINTAINER_MODE_TRUE
12023
12024
12025
12026
12027if false; then
12028 GENINSRC_NEVER_TRUE=
12029 GENINSRC_NEVER_FALSE='#'
12030else
12031 GENINSRC_NEVER_TRUE='#'
12032 GENINSRC_NEVER_FALSE=
20e95c23 12033fi
9b2b7d69
MM
12034
12035
12036
12037
12038
13b2be9c
DJ
12039
12040
12041
12042
12043
12044
12045
12046for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
d6d788bd 12047do
13b2be9c
DJ
12048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12049if eval "test \"\${$as_ac_Header+set}\" = set"; then
12050 echo "$as_me:$LINENO: checking for $ac_header" >&5
12051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12052if eval "test \"\${$as_ac_Header+set}\" = set"; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054fi
12055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12057else
12058 # Is the header compilable?
12059echo "$as_me:$LINENO: checking $ac_header usability" >&5
12060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12061cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
12067$ac_includes_default
12068#include <$ac_header>
12069_ACEOF
12070rm -f conftest.$ac_objext
12071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12072 (eval $ac_compile) 2>conftest.er1
13b2be9c 12073 ac_status=$?
ab509236
L
12074 grep -v '^ *+' conftest.er1 >conftest.err
12075 rm -f conftest.er1
12076 cat conftest.err >&5
13b2be9c
DJ
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
1ad12f97
NC
12079 { ac_try='test -z "$ac_c_werror_flag"
12080 || test ! -s conftest.err'
ab509236
L
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 ac_header_compiler=yes
12093else
12094 echo "$as_me: failed program was:" >&5
12095sed 's/^/| /' conftest.$ac_ext >&5
12096
12097ac_header_compiler=no
12098fi
ab509236 12099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
12100echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12101echo "${ECHO_T}$ac_header_compiler" >&6
12102
12103# Is the header present?
12104echo "$as_me:$LINENO: checking $ac_header presence" >&5
12105echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12106cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12107/* confdefs.h. */
12108_ACEOF
12109cat confdefs.h >>conftest.$ac_ext
12110cat >>conftest.$ac_ext <<_ACEOF
12111/* end confdefs.h. */
12112#include <$ac_header>
12113_ACEOF
12114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } >/dev/null; then
12122 if test -s conftest.err; then
12123 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 12124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
12125 else
12126 ac_cpp_err=
12127 fi
9b2b7d69 12128else
13b2be9c
DJ
12129 ac_cpp_err=yes
12130fi
12131if test -z "$ac_cpp_err"; then
12132 ac_header_preproc=yes
12133else
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137 ac_header_preproc=no
12138fi
12139rm -f conftest.err conftest.$ac_ext
12140echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12141echo "${ECHO_T}$ac_header_preproc" >&6
12142
12143# So? What about this header?
ab509236
L
12144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12145 yes:no: )
13b2be9c
DJ
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12150 ac_header_preproc=yes
13b2be9c 12151 ;;
ab509236 12152 no:yes:* )
13b2be9c
DJ
12153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
12155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12156echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12160echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
12165 (
12166 cat <<\_ASBOX
ab509236
L
12167## ------------------------------------------ ##
12168## Report this to the AC_PACKAGE_NAME lists. ##
12169## ------------------------------------------ ##
13b2be9c
DJ
12170_ASBOX
12171 ) |
12172 sed "s/^/$as_me: WARNING: /" >&2
12173 ;;
12174esac
12175echo "$as_me:$LINENO: checking for $ac_header" >&5
12176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12177if eval "test \"\${$as_ac_Header+set}\" = set"; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179else
ab509236 12180 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 12181fi
13b2be9c
DJ
12182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12184
252b5132 12185fi
13b2be9c
DJ
12186if test `eval echo '${'$as_ac_Header'}'` = yes; then
12187 cat >>confdefs.h <<_ACEOF
12188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12189_ACEOF
12190
252b5132 12191fi
13b2be9c 12192
252b5132
RH
12193done
12194
d6d788bd 12195
252b5132
RH
12196# Put this here so that autoconf's "cross-compiling" message doesn't confuse
12197# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
12198echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12199echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
12200if test "${host}" = "${target}"; then
12201 cross_gas=no
12202else
12203 cross_gas=yes
13b2be9c
DJ
12204
12205cat >>confdefs.h <<\_ACEOF
252b5132 12206#define CROSS_COMPILE 1
13b2be9c 12207_ACEOF
252b5132
RH
12208
12209fi
13b2be9c
DJ
12210echo "$as_me:$LINENO: result: $cross_gas" >&5
12211echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
12212
12213# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12214# for constant arguments. Useless!
13b2be9c
DJ
12215echo "$as_me:$LINENO: checking for working alloca.h" >&5
12216echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12217if test "${ac_cv_working_alloca_h+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219else
12220 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12221/* confdefs.h. */
12222_ACEOF
12223cat confdefs.h >>conftest.$ac_ext
12224cat >>conftest.$ac_ext <<_ACEOF
12225/* end confdefs.h. */
252b5132 12226#include <alloca.h>
13b2be9c
DJ
12227int
12228main ()
12229{
12230char *p = (char *) alloca (2 * sizeof (int));
12231 ;
12232 return 0;
12233}
12234_ACEOF
12235rm -f conftest.$ac_objext conftest$ac_exeext
12236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12237 (eval $ac_link) 2>conftest.er1
13b2be9c 12238 ac_status=$?
ab509236
L
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
13b2be9c
DJ
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
1ad12f97
NC
12244 { ac_try='test -z "$ac_c_werror_flag"
12245 || test ! -s conftest.err'
ab509236
L
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; } &&
12251 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 ac_cv_working_alloca_h=yes
12258else
12259 echo "$as_me: failed program was:" >&5
12260sed 's/^/| /' conftest.$ac_ext >&5
12261
12262ac_cv_working_alloca_h=no
12263fi
ab509236
L
12264rm -f conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12266fi
12267echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12268echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12269if test $ac_cv_working_alloca_h = yes; then
12270
12271cat >>confdefs.h <<\_ACEOF
252b5132 12272#define HAVE_ALLOCA_H 1
13b2be9c 12273_ACEOF
252b5132
RH
12274
12275fi
12276
13b2be9c
DJ
12277echo "$as_me:$LINENO: checking for alloca" >&5
12278echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12279if test "${ac_cv_func_alloca_works+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12281else
13b2be9c 12282 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12283/* confdefs.h. */
12284_ACEOF
12285cat confdefs.h >>conftest.$ac_ext
12286cat >>conftest.$ac_ext <<_ACEOF
12287/* end confdefs.h. */
252b5132
RH
12288#ifdef __GNUC__
12289# define alloca __builtin_alloca
12290#else
12291# ifdef _MSC_VER
12292# include <malloc.h>
12293# define alloca _alloca
12294# else
12295# if HAVE_ALLOCA_H
12296# include <alloca.h>
12297# else
12298# ifdef _AIX
12299 #pragma alloca
12300# else
12301# ifndef alloca /* predefined by HP cc +Olibcalls */
12302char *alloca ();
12303# endif
12304# endif
12305# endif
12306# endif
12307#endif
12308
13b2be9c
DJ
12309int
12310main ()
12311{
12312char *p = (char *) alloca (1);
12313 ;
12314 return 0;
12315}
12316_ACEOF
12317rm -f conftest.$ac_objext conftest$ac_exeext
12318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12319 (eval $ac_link) 2>conftest.er1
13b2be9c 12320 ac_status=$?
ab509236
L
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
13b2be9c
DJ
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
1ad12f97
NC
12326 { ac_try='test -z "$ac_c_werror_flag"
12327 || test ! -s conftest.err'
ab509236
L
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
252b5132
RH
12339 ac_cv_func_alloca_works=yes
12340else
13b2be9c
DJ
12341 echo "$as_me: failed program was:" >&5
12342sed 's/^/| /' conftest.$ac_ext >&5
12343
12344ac_cv_func_alloca_works=no
252b5132 12345fi
ab509236
L
12346rm -f conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
252b5132 12348fi
13b2be9c
DJ
12349echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12350echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 12351
252b5132 12352if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 12353
13b2be9c
DJ
12354cat >>confdefs.h <<\_ACEOF
12355#define HAVE_ALLOCA 1
12356_ACEOF
9b2b7d69 12357
13b2be9c 12358else
c8615825 12359 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
12360# that cause trouble. Some versions do not even contain alloca or
12361# contain a buggy version. If you still want to use their alloca,
12362# use ar to extract alloca.o from them instead of compiling alloca.c.
12363
12364ALLOCA=alloca.$ac_objext
12365
12366cat >>confdefs.h <<\_ACEOF
252b5132 12367#define C_ALLOCA 1
13b2be9c 12368_ACEOF
252b5132 12369
d6d788bd 12370
13b2be9c
DJ
12371echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12372echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12373if test "${ac_cv_os_cray+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12375else
13b2be9c 12376 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
252b5132
RH
12382#if defined(CRAY) && ! defined(CRAY2)
12383webecray
12384#else
12385wenotbecray
12386#endif
12387
13b2be9c 12388_ACEOF
252b5132 12389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 12390 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
12391 ac_cv_os_cray=yes
12392else
252b5132
RH
12393 ac_cv_os_cray=no
12394fi
12395rm -f conftest*
12396
12397fi
13b2be9c
DJ
12398echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12399echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 12400if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
12401 for ac_func in _getb67 GETB67 getb67; do
12402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12403echo "$as_me:$LINENO: checking for $ac_func" >&5
12404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12405if eval "test \"\${$as_ac_var+set}\" = set"; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407else
12408 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12409/* confdefs.h. */
12410_ACEOF
12411cat confdefs.h >>conftest.$ac_ext
12412cat >>conftest.$ac_ext <<_ACEOF
12413/* end confdefs.h. */
ab509236
L
12414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12416#define $ac_func innocuous_$ac_func
12417
252b5132 12418/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12419 which can conflict with char $ac_func (); below.
12420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12421 <limits.h> exists even on freestanding compilers. */
ab509236 12422
13b2be9c
DJ
12423#ifdef __STDC__
12424# include <limits.h>
12425#else
12426# include <assert.h>
12427#endif
ab509236
L
12428
12429#undef $ac_func
12430
252b5132 12431/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12432#ifdef __cplusplus
12433extern "C"
12434{
12435#endif
252b5132 12436/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12437 builtin and then its argument prototype would still apply. */
12438char $ac_func ();
252b5132
RH
12439/* The GNU C library defines this for functions which it implements
12440 to always fail with ENOSYS. Some functions are actually named
12441 something starting with __ and the normal name is an alias. */
12442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12443choke me
12444#else
13b2be9c
DJ
12445char (*f) () = $ac_func;
12446#endif
12447#ifdef __cplusplus
12448}
252b5132
RH
12449#endif
12450
13b2be9c
DJ
12451int
12452main ()
12453{
12454return f != $ac_func;
12455 ;
12456 return 0;
12457}
12458_ACEOF
12459rm -f conftest.$ac_objext conftest$ac_exeext
12460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12461 (eval $ac_link) 2>conftest.er1
13b2be9c 12462 ac_status=$?
ab509236
L
12463 grep -v '^ *+' conftest.er1 >conftest.err
12464 rm -f conftest.er1
12465 cat conftest.err >&5
13b2be9c
DJ
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
1ad12f97
NC
12468 { ac_try='test -z "$ac_c_werror_flag"
12469 || test ! -s conftest.err'
ab509236
L
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; } &&
12475 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
12481 eval "$as_ac_var=yes"
12482else
12483 echo "$as_me: failed program was:" >&5
12484sed 's/^/| /' conftest.$ac_ext >&5
12485
12486eval "$as_ac_var=no"
12487fi
ab509236
L
12488rm -f conftest.err conftest.$ac_objext \
12489 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12490fi
12491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12493if test `eval echo '${'$as_ac_var'}'` = yes; then
12494
12495cat >>confdefs.h <<_ACEOF
252b5132 12496#define CRAY_STACKSEG_END $ac_func
13b2be9c 12497_ACEOF
252b5132 12498
13b2be9c 12499 break
252b5132
RH
12500fi
12501
13b2be9c 12502 done
252b5132
RH
12503fi
12504
13b2be9c
DJ
12505echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12506echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12507if test "${ac_cv_c_stack_direction+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12509else
12510 if test "$cross_compiling" = yes; then
12511 ac_cv_c_stack_direction=0
12512else
13b2be9c 12513 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12514/* confdefs.h. */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
12518/* end confdefs.h. */
12519int
252b5132
RH
12520find_stack_direction ()
12521{
12522 static char *addr = 0;
12523 auto char dummy;
12524 if (addr == 0)
12525 {
12526 addr = &dummy;
12527 return find_stack_direction ();
12528 }
12529 else
12530 return (&dummy > addr) ? 1 : -1;
12531}
13b2be9c
DJ
12532
12533int
252b5132
RH
12534main ()
12535{
13b2be9c 12536 exit (find_stack_direction () < 0);
252b5132 12537}
13b2be9c
DJ
12538_ACEOF
12539rm -f conftest$ac_exeext
12540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12541 (eval $ac_link) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
252b5132
RH
12550 ac_cv_c_stack_direction=1
12551else
13b2be9c
DJ
12552 echo "$as_me: program exited with status $ac_status" >&5
12553echo "$as_me: failed program was:" >&5
12554sed 's/^/| /' conftest.$ac_ext >&5
12555
12556( exit $ac_status )
12557ac_cv_c_stack_direction=-1
252b5132 12558fi
ab509236 12559rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 12560fi
252b5132 12561fi
13b2be9c
DJ
12562echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12563echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 12564
13b2be9c 12565cat >>confdefs.h <<_ACEOF
252b5132 12566#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
12567_ACEOF
12568
252b5132
RH
12569
12570fi
12571
13b2be9c
DJ
12572echo "$as_me:$LINENO: checking for inline" >&5
12573echo $ECHO_N "checking for inline... $ECHO_C" >&6
12574if test "${ac_cv_c_inline+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12576else
12577 ac_cv_c_inline=no
12578for ac_kw in inline __inline__ __inline; do
13b2be9c 12579 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12580/* confdefs.h. */
12581_ACEOF
12582cat confdefs.h >>conftest.$ac_ext
12583cat >>conftest.$ac_ext <<_ACEOF
12584/* end confdefs.h. */
12585#ifndef __cplusplus
12586typedef int foo_t;
12587static $ac_kw foo_t static_foo () {return 0; }
12588$ac_kw foo_t foo () {return 0; }
12589#endif
252b5132 12590
13b2be9c
DJ
12591_ACEOF
12592rm -f conftest.$ac_objext
12593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12594 (eval $ac_compile) 2>conftest.er1
13b2be9c 12595 ac_status=$?
ab509236
L
12596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
13b2be9c
DJ
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
1ad12f97
NC
12601 { ac_try='test -z "$ac_c_werror_flag"
12602 || test ! -s conftest.err'
ab509236
L
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
252b5132
RH
12614 ac_cv_c_inline=$ac_kw; break
12615else
13b2be9c
DJ
12616 echo "$as_me: failed program was:" >&5
12617sed 's/^/| /' conftest.$ac_ext >&5
12618
252b5132 12619fi
ab509236 12620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12621done
12622
12623fi
13b2be9c
DJ
12624echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12625echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
12626
12627
13b2be9c 12628case $ac_cv_c_inline in
252b5132 12629 inline | yes) ;;
ab509236
L
12630 *)
12631 case $ac_cv_c_inline in
12632 no) ac_val=;;
12633 *) ac_val=$ac_cv_c_inline;;
12634 esac
12635 cat >>confdefs.h <<_ACEOF
12636#ifndef __cplusplus
12637#define inline $ac_val
12638#endif
13b2be9c 12639_ACEOF
ab509236 12640 ;;
252b5132
RH
12641esac
12642
6840198f 12643
d6d788bd 12644# VMS doesn't have unlink.
13b2be9c
DJ
12645
12646
252b5132
RH
12647for ac_func in unlink remove
12648do
13b2be9c
DJ
12649as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12650echo "$as_me:$LINENO: checking for $ac_func" >&5
12651echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12652if eval "test \"\${$as_ac_var+set}\" = set"; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12654else
12655 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12656/* confdefs.h. */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h. */
ab509236
L
12661/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12663#define $ac_func innocuous_$ac_func
12664
252b5132 12665/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12666 which can conflict with char $ac_func (); below.
12667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12668 <limits.h> exists even on freestanding compilers. */
ab509236 12669
13b2be9c
DJ
12670#ifdef __STDC__
12671# include <limits.h>
12672#else
12673# include <assert.h>
12674#endif
ab509236
L
12675
12676#undef $ac_func
12677
252b5132 12678/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12679#ifdef __cplusplus
12680extern "C"
12681{
12682#endif
252b5132 12683/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12684 builtin and then its argument prototype would still apply. */
12685char $ac_func ();
252b5132
RH
12686/* The GNU C library defines this for functions which it implements
12687 to always fail with ENOSYS. Some functions are actually named
12688 something starting with __ and the normal name is an alias. */
12689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12690choke me
12691#else
13b2be9c
DJ
12692char (*f) () = $ac_func;
12693#endif
12694#ifdef __cplusplus
12695}
252b5132
RH
12696#endif
12697
13b2be9c
DJ
12698int
12699main ()
12700{
12701return f != $ac_func;
12702 ;
12703 return 0;
12704}
12705_ACEOF
12706rm -f conftest.$ac_objext conftest$ac_exeext
12707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12708 (eval $ac_link) 2>conftest.er1
13b2be9c 12709 ac_status=$?
ab509236
L
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
13b2be9c
DJ
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
1ad12f97
NC
12715 { ac_try='test -z "$ac_c_werror_flag"
12716 || test ! -s conftest.err'
ab509236
L
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 eval "$as_ac_var=yes"
12729else
12730 echo "$as_me: failed program was:" >&5
12731sed 's/^/| /' conftest.$ac_ext >&5
12732
12733eval "$as_ac_var=no"
12734fi
ab509236
L
12735rm -f conftest.err conftest.$ac_objext \
12736 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12737fi
12738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12739echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12740if test `eval echo '${'$as_ac_var'}'` = yes; then
12741 cat >>confdefs.h <<_ACEOF
12742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12743_ACEOF
252b5132 12744 break
252b5132
RH
12745fi
12746done
12747
6840198f 12748
d6d788bd 12749# Some systems don't have sbrk().
13b2be9c 12750
252b5132
RH
12751for ac_func in sbrk
12752do
13b2be9c
DJ
12753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12754echo "$as_me:$LINENO: checking for $ac_func" >&5
12755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12756if eval "test \"\${$as_ac_var+set}\" = set"; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12758else
12759 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12760/* confdefs.h. */
12761_ACEOF
12762cat confdefs.h >>conftest.$ac_ext
12763cat >>conftest.$ac_ext <<_ACEOF
12764/* end confdefs.h. */
ab509236
L
12765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12767#define $ac_func innocuous_$ac_func
12768
252b5132 12769/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12770 which can conflict with char $ac_func (); below.
12771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12772 <limits.h> exists even on freestanding compilers. */
ab509236 12773
13b2be9c
DJ
12774#ifdef __STDC__
12775# include <limits.h>
12776#else
12777# include <assert.h>
12778#endif
ab509236
L
12779
12780#undef $ac_func
12781
252b5132 12782/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12783#ifdef __cplusplus
12784extern "C"
12785{
12786#endif
252b5132 12787/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12788 builtin and then its argument prototype would still apply. */
12789char $ac_func ();
252b5132
RH
12790/* The GNU C library defines this for functions which it implements
12791 to always fail with ENOSYS. Some functions are actually named
12792 something starting with __ and the normal name is an alias. */
12793#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12794choke me
12795#else
13b2be9c
DJ
12796char (*f) () = $ac_func;
12797#endif
12798#ifdef __cplusplus
12799}
252b5132
RH
12800#endif
12801
13b2be9c
DJ
12802int
12803main ()
12804{
12805return f != $ac_func;
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810rm -f conftest.$ac_objext conftest$ac_exeext
12811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12812 (eval $ac_link) 2>conftest.er1
13b2be9c 12813 ac_status=$?
ab509236
L
12814 grep -v '^ *+' conftest.er1 >conftest.err
12815 rm -f conftest.er1
12816 cat conftest.err >&5
13b2be9c
DJ
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
1ad12f97
NC
12819 { ac_try='test -z "$ac_c_werror_flag"
12820 || test ! -s conftest.err'
ab509236
L
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; } &&
12826 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 eval "$as_ac_var=yes"
12833else
12834 echo "$as_me: failed program was:" >&5
12835sed 's/^/| /' conftest.$ac_ext >&5
12836
12837eval "$as_ac_var=no"
12838fi
ab509236
L
12839rm -f conftest.err conftest.$ac_objext \
12840 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12841fi
12842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12843echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12844if test `eval echo '${'$as_ac_var'}'` = yes; then
12845 cat >>confdefs.h <<_ACEOF
12846#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12847_ACEOF
252b5132 12848
252b5132
RH
12849fi
12850done
12851
d6d788bd 12852
39bec121
TW
12853# do we need the math library?
12854case "${need_libm}" in
13b2be9c 12855yes)
39bec121 12856 LIBM=
f9c19112 12857case $host in
d70c5fc7 12858*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
d7040cdb 12859 # These system don't have libm, or don't need it
39bec121
TW
12860 ;;
12861*-ncr-sysv4.3*)
13b2be9c
DJ
12862 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12863echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
12864if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 12866else
13b2be9c 12867 ac_check_lib_save_LIBS=$LIBS
39bec121 12868LIBS="-lmw $LIBS"
13b2be9c 12869cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12870/* confdefs.h. */
12871_ACEOF
12872cat confdefs.h >>conftest.$ac_ext
12873cat >>conftest.$ac_ext <<_ACEOF
12874/* end confdefs.h. */
12875
39bec121 12876/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12877#ifdef __cplusplus
12878extern "C"
12879#endif
39bec121 12880/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12881 builtin and then its argument prototype would still apply. */
12882char _mwvalidcheckl ();
12883int
12884main ()
12885{
12886_mwvalidcheckl ();
12887 ;
12888 return 0;
12889}
12890_ACEOF
12891rm -f conftest.$ac_objext conftest$ac_exeext
12892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12893 (eval $ac_link) 2>conftest.er1
13b2be9c 12894 ac_status=$?
ab509236
L
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
13b2be9c
DJ
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
1ad12f97
NC
12900 { ac_try='test -z "$ac_c_werror_flag"
12901 || test ! -s conftest.err'
ab509236
L
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 ac_cv_lib_mw__mwvalidcheckl=yes
12914else
12915 echo "$as_me: failed program was:" >&5
12916sed 's/^/| /' conftest.$ac_ext >&5
12917
12918ac_cv_lib_mw__mwvalidcheckl=no
12919fi
ab509236
L
12920rm -f conftest.err conftest.$ac_objext \
12921 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12922LIBS=$ac_check_lib_save_LIBS
12923fi
12924echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12925echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
12926if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 12927 LIBM="-lmw"
39bec121
TW
12928fi
12929
d7040cdb
SE
12930 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12931echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12932if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 12933 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 12934else
13b2be9c 12935 ac_check_lib_save_LIBS=$LIBS
39bec121 12936LIBS="-lm $LIBS"
13b2be9c 12937cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12938/* confdefs.h. */
12939_ACEOF
12940cat confdefs.h >>conftest.$ac_ext
12941cat >>conftest.$ac_ext <<_ACEOF
12942/* end confdefs.h. */
39bec121 12943
d7040cdb
SE
12944/* Override any gcc2 internal prototype to avoid an error. */
12945#ifdef __cplusplus
12946extern "C"
12947#endif
12948/* We use char because int might match the return type of a gcc2
12949 builtin and then its argument prototype would still apply. */
12950char cos ();
13b2be9c
DJ
12951int
12952main ()
12953{
d7040cdb 12954cos ();
13b2be9c
DJ
12955 ;
12956 return 0;
12957}
12958_ACEOF
12959rm -f conftest.$ac_objext conftest$ac_exeext
12960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12961 (eval $ac_link) 2>conftest.er1
13b2be9c 12962 ac_status=$?
ab509236
L
12963 grep -v '^ *+' conftest.er1 >conftest.err
12964 rm -f conftest.er1
12965 cat conftest.err >&5
13b2be9c
DJ
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
1ad12f97
NC
12968 { ac_try='test -z "$ac_c_werror_flag"
12969 || test ! -s conftest.err'
ab509236
L
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
d7040cdb 12981 ac_cv_lib_m_cos=yes
13b2be9c
DJ
12982else
12983 echo "$as_me: failed program was:" >&5
12984sed 's/^/| /' conftest.$ac_ext >&5
12985
d7040cdb 12986ac_cv_lib_m_cos=no
13b2be9c 12987fi
ab509236
L
12988rm -f conftest.err conftest.$ac_objext \
12989 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12990LIBS=$ac_check_lib_save_LIBS
12991fi
d7040cdb
SE
12992echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
12993echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
12994if test $ac_cv_lib_m_cos = yes; then
39bec121 12995 LIBM="$LIBM -lm"
39bec121
TW
12996fi
12997
12998 ;;
12999*)
d7040cdb
SE
13000 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13001echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13002if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 13003 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 13004else
13b2be9c 13005 ac_check_lib_save_LIBS=$LIBS
39bec121 13006LIBS="-lm $LIBS"
13b2be9c 13007cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13008/* confdefs.h. */
13009_ACEOF
13010cat confdefs.h >>conftest.$ac_ext
13011cat >>conftest.$ac_ext <<_ACEOF
13012/* end confdefs.h. */
39bec121 13013
d7040cdb
SE
13014/* Override any gcc2 internal prototype to avoid an error. */
13015#ifdef __cplusplus
13016extern "C"
13017#endif
13018/* We use char because int might match the return type of a gcc2
13019 builtin and then its argument prototype would still apply. */
13020char cos ();
13b2be9c
DJ
13021int
13022main ()
13023{
d7040cdb 13024cos ();
13b2be9c
DJ
13025 ;
13026 return 0;
13027}
13028_ACEOF
13029rm -f conftest.$ac_objext conftest$ac_exeext
13030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13031 (eval $ac_link) 2>conftest.er1
13b2be9c 13032 ac_status=$?
ab509236
L
13033 grep -v '^ *+' conftest.er1 >conftest.err
13034 rm -f conftest.er1
13035 cat conftest.err >&5
13b2be9c
DJ
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
1ad12f97
NC
13038 { ac_try='test -z "$ac_c_werror_flag"
13039 || test ! -s conftest.err'
ab509236
L
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; } &&
13045 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
d7040cdb 13051 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13052else
13053 echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
d7040cdb 13056ac_cv_lib_m_cos=no
13b2be9c 13057fi
ab509236
L
13058rm -f conftest.err conftest.$ac_objext \
13059 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13060LIBS=$ac_check_lib_save_LIBS
13061fi
d7040cdb
SE
13062echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13063echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13064if test $ac_cv_lib_m_cos = yes; then
39bec121 13065 LIBM="-lm"
39bec121
TW
13066fi
13067
13068 ;;
13069esac
13070
13b2be9c 13071
d7040cdb 13072
39bec121
TW
13073 ;;
13074esac
13075
252b5132
RH
13076# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13077# enough, but on some of those systems, the assert macro relies on requoting
13078# working properly!
13b2be9c
DJ
13079echo "$as_me:$LINENO: checking for working assert macro" >&5
13080echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13081if test "${gas_cv_assert_ok+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13083else
13084 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13085/* confdefs.h. */
13086_ACEOF
13087cat confdefs.h >>conftest.$ac_ext
13088cat >>conftest.$ac_ext <<_ACEOF
13089/* end confdefs.h. */
252b5132
RH
13090#include <assert.h>
13091#include <stdio.h>
13b2be9c
DJ
13092int
13093main ()
13094{
252b5132
RH
13095
13096/* check for requoting problems */
13097static int a, b, c, d;
13098static char *s;
13099assert (!strcmp(s, "foo bar baz quux"));
13100/* check for newline handling */
13101assert (a == b
13102 || c == d);
13103
13b2be9c
DJ
13104 ;
13105 return 0;
13106}
13107_ACEOF
13108rm -f conftest.$ac_objext conftest$ac_exeext
13109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13110 (eval $ac_link) 2>conftest.er1
13b2be9c 13111 ac_status=$?
ab509236
L
13112 grep -v '^ *+' conftest.er1 >conftest.err
13113 rm -f conftest.er1
13114 cat conftest.err >&5
13b2be9c
DJ
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
1ad12f97
NC
13117 { ac_try='test -z "$ac_c_werror_flag"
13118 || test ! -s conftest.err'
ab509236
L
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; } &&
13124 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
252b5132
RH
13130 gas_cv_assert_ok=yes
13131else
13b2be9c
DJ
13132 echo "$as_me: failed program was:" >&5
13133sed 's/^/| /' conftest.$ac_ext >&5
13134
13135gas_cv_assert_ok=no
252b5132 13136fi
ab509236
L
13137rm -f conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
252b5132 13139fi
13b2be9c
DJ
13140echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13141echo "${ECHO_T}$gas_cv_assert_ok" >&6
13142test $gas_cv_assert_ok = yes ||
13143cat >>confdefs.h <<\_ACEOF
252b5132 13144#define BROKEN_ASSERT 1
13b2be9c 13145_ACEOF
252b5132 13146
d6d788bd
L
13147
13148
252b5132
RH
13149# On some systems, the system header files may not declare malloc, realloc,
13150# and free. There are places where gas needs these functions to have been
13151# declared -- such as when taking their addresses.
13152gas_test_headers="
13153#ifdef HAVE_MEMORY_H
13154#include <memory.h>
13155#endif
13156#ifdef HAVE_STRING_H
13157#include <string.h>
13158#else
13159#ifdef HAVE_STRINGS_H
13160#include <strings.h>
13161#endif
13162#endif
13163#ifdef HAVE_STDLIB_H
13164#include <stdlib.h>
13165#endif
13166#ifdef HAVE_UNISTD_H
13167#include <unistd.h>
13168#endif
13169"
13170
e8a38df5
AL
13171# Does errno.h declare errno, or do we have to add a separate declaration
13172# for it?
13173
13174echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13175echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13176if test "${gas_cv_decl_needed_errno+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13178else
13179 cat >conftest.$ac_ext <<_ACEOF
13180/* confdefs.h. */
13181_ACEOF
13182cat confdefs.h >>conftest.$ac_ext
13183cat >>conftest.$ac_ext <<_ACEOF
13184/* end confdefs.h. */
13185
13186#ifdef HAVE_ERRNO_H
13187#include <errno.h>
13188#endif
13189
13190int
13191main ()
13192{
13193
13194typedef int f;
13195f x;
13196x = (f) errno;
13197
13198 ;
13199 return 0;
13200}
13201_ACEOF
13202rm -f conftest.$ac_objext conftest$ac_exeext
13203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204 (eval $ac_link) 2>conftest.er1
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -z "$ac_c_werror_flag"
13212 || test ! -s conftest.err'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try='test -s conftest$ac_exeext'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 gas_cv_decl_needed_errno=no
13225else
13226 echo "$as_me: failed program was:" >&5
13227sed 's/^/| /' conftest.$ac_ext >&5
13228
13229gas_cv_decl_needed_errno=yes
13230fi
13231rm -f conftest.err conftest.$ac_objext \
13232 conftest$ac_exeext conftest.$ac_ext
13233fi
13234echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13235echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13236if test $gas_cv_decl_needed_errno = yes; then
13237
13238cat >>confdefs.h <<\_ACEOF
13239#define NEED_DECLARATION_ERRNO 1
13240_ACEOF
13241
13242fi
13243
13244
56f36663
NC
13245echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13246echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13247if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249else
13250 cat >conftest.$ac_ext <<_ACEOF
13251/* confdefs.h. */
13252_ACEOF
13253cat confdefs.h >>conftest.$ac_ext
13254cat >>conftest.$ac_ext <<_ACEOF
13255/* end confdefs.h. */
13256#include <unistd.h>
13257int
13258main ()
13259{
13260extern int getopt (int, char *const*, const char *);
13261 ;
13262 return 0;
13263}
13264_ACEOF
13265rm -f conftest.$ac_objext
13266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13267 (eval $ac_compile) 2>conftest.er1
13268 ac_status=$?
13269 grep -v '^ *+' conftest.er1 >conftest.err
13270 rm -f conftest.er1
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
13274 { ac_try='test -z "$ac_c_werror_flag"
13275 || test ! -s conftest.err'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest.$ac_objext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 gas_cv_decl_getopt_unistd_h=yes
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292gas_cv_decl_getopt_unistd_h=no
13293fi
13294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13295fi
13296
13297echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13298echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13299if test $gas_cv_decl_getopt_unistd_h = yes; then
13300
13301cat >>confdefs.h <<\_ACEOF
13302#define HAVE_DECL_GETOPT 1
13303_ACEOF
13304
13305fi
13306
e8a38df5
AL
13307
13308echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13309echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13310if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312else
13313 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13314/* confdefs.h. */
13315_ACEOF
13316cat confdefs.h >>conftest.$ac_ext
13317cat >>conftest.$ac_ext <<_ACEOF
13318/* end confdefs.h. */
252b5132 13319$gas_test_headers
13b2be9c
DJ
13320int
13321main ()
13322{
252b5132 13323
e8a38df5 13324typedef char **f;
252b5132 13325f x;
e8a38df5 13326x = (f) environ;
252b5132 13327
13b2be9c
DJ
13328 ;
13329 return 0;
13330}
13331_ACEOF
13332rm -f conftest.$ac_objext conftest$ac_exeext
13333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13334 (eval $ac_link) 2>conftest.er1
13b2be9c 13335 ac_status=$?
ab509236
L
13336 grep -v '^ *+' conftest.er1 >conftest.err
13337 rm -f conftest.er1
13338 cat conftest.err >&5
13b2be9c
DJ
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } &&
1ad12f97
NC
13341 { ac_try='test -z "$ac_c_werror_flag"
13342 || test ! -s conftest.err'
ab509236
L
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; } &&
13348 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
e8a38df5 13354 gas_cv_decl_needed_environ=no
252b5132 13355else
13b2be9c
DJ
13356 echo "$as_me: failed program was:" >&5
13357sed 's/^/| /' conftest.$ac_ext >&5
13358
e8a38df5 13359gas_cv_decl_needed_environ=yes
252b5132 13360fi
ab509236
L
13361rm -f conftest.err conftest.$ac_objext \
13362 conftest$ac_exeext conftest.$ac_ext
252b5132 13363fi
e8a38df5
AL
13364echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13365echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13366if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
13367
13368cat >>confdefs.h <<\_ACEOF
e8a38df5 13369#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
13370_ACEOF
13371
13372fi
13373
13374
e8a38df5
AL
13375echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13376echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13377if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13379else
13380 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13381/* confdefs.h. */
13382_ACEOF
13383cat confdefs.h >>conftest.$ac_ext
13384cat >>conftest.$ac_ext <<_ACEOF
13385/* end confdefs.h. */
13386$gas_test_headers
13387int
13388main ()
13389{
13390
e8a38df5 13391typedef int (*f)(int);
13b2be9c 13392f x;
e8a38df5 13393x = (f) ffs;
13b2be9c
DJ
13394
13395 ;
13396 return 0;
13397}
13398_ACEOF
13399rm -f conftest.$ac_objext conftest$ac_exeext
13400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13401 (eval $ac_link) 2>conftest.er1
13b2be9c 13402 ac_status=$?
ab509236
L
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13b2be9c
DJ
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
1ad12f97
NC
13408 { ac_try='test -z "$ac_c_werror_flag"
13409 || test ! -s conftest.err'
ab509236
L
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } &&
13415 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
e8a38df5 13421 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
13422else
13423 echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
e8a38df5 13426gas_cv_decl_needed_ffs=yes
13b2be9c 13427fi
ab509236
L
13428rm -f conftest.err conftest.$ac_objext \
13429 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13430fi
e8a38df5
AL
13431echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13432echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13433if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
13434
13435cat >>confdefs.h <<\_ACEOF
e8a38df5 13436#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
13437_ACEOF
13438
13439fi
13440
13441
13442echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13443echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13444if test "${gas_cv_decl_needed_free+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13446else
13447 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13448/* confdefs.h. */
13449_ACEOF
13450cat confdefs.h >>conftest.$ac_ext
13451cat >>conftest.$ac_ext <<_ACEOF
13452/* end confdefs.h. */
13453$gas_test_headers
13454int
13455main ()
13456{
13457
13458typedef void (*f)();
13459f x;
13460x = (f) free;
13461
13462 ;
13463 return 0;
13464}
13465_ACEOF
13466rm -f conftest.$ac_objext conftest$ac_exeext
13467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13468 (eval $ac_link) 2>conftest.er1
13b2be9c 13469 ac_status=$?
ab509236
L
13470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
13b2be9c
DJ
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
1ad12f97
NC
13475 { ac_try='test -z "$ac_c_werror_flag"
13476 || test ! -s conftest.err'
ab509236
L
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 gas_cv_decl_needed_free=no
13489else
13490 echo "$as_me: failed program was:" >&5
13491sed 's/^/| /' conftest.$ac_ext >&5
13492
13493gas_cv_decl_needed_free=yes
13494fi
ab509236
L
13495rm -f conftest.err conftest.$ac_objext \
13496 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13497fi
13498echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13499echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13500if test $gas_cv_decl_needed_free = yes; then
13501
13502cat >>confdefs.h <<\_ACEOF
13503#define NEED_DECLARATION_FREE 1
13504_ACEOF
13505
13506fi
13507
13508
e8a38df5
AL
13509echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13510echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13511if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13513else
13514 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13515/* confdefs.h. */
13516_ACEOF
13517cat confdefs.h >>conftest.$ac_ext
13518cat >>conftest.$ac_ext <<_ACEOF
13519/* end confdefs.h. */
13520$gas_test_headers
13521int
13522main ()
13523{
13524
13525typedef char *(*f)();
13526f x;
e8a38df5 13527x = (f) malloc;
13b2be9c
DJ
13528
13529 ;
13530 return 0;
13531}
13532_ACEOF
13533rm -f conftest.$ac_objext conftest$ac_exeext
13534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13535 (eval $ac_link) 2>conftest.er1
13b2be9c 13536 ac_status=$?
ab509236
L
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13b2be9c
DJ
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
1ad12f97
NC
13542 { ac_try='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
ab509236
L
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
e8a38df5 13555 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
13556else
13557 echo "$as_me: failed program was:" >&5
13558sed 's/^/| /' conftest.$ac_ext >&5
13559
e8a38df5 13560gas_cv_decl_needed_malloc=yes
13b2be9c 13561fi
ab509236
L
13562rm -f conftest.err conftest.$ac_objext \
13563 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13564fi
e8a38df5
AL
13565echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13566echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13567if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
13568
13569cat >>confdefs.h <<\_ACEOF
e8a38df5 13570#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
13571_ACEOF
13572
13573fi
13574
13575
e8a38df5
AL
13576echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13577echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13578if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580else
13581 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13582/* confdefs.h. */
13583_ACEOF
13584cat confdefs.h >>conftest.$ac_ext
13585cat >>conftest.$ac_ext <<_ACEOF
13586/* end confdefs.h. */
13587$gas_test_headers
13588int
13589main ()
13590{
13591
e8a38df5 13592typedef char *(*f)();
13b2be9c 13593f x;
e8a38df5 13594x = (f) sbrk;
13b2be9c
DJ
13595
13596 ;
13597 return 0;
13598}
13599_ACEOF
13600rm -f conftest.$ac_objext conftest$ac_exeext
13601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13602 (eval $ac_link) 2>conftest.er1
13b2be9c 13603 ac_status=$?
ab509236
L
13604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
13b2be9c
DJ
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } &&
1ad12f97
NC
13609 { ac_try='test -z "$ac_c_werror_flag"
13610 || test ! -s conftest.err'
ab509236
L
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; }; then
e8a38df5 13622 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
13623else
13624 echo "$as_me: failed program was:" >&5
13625sed 's/^/| /' conftest.$ac_ext >&5
13626
e8a38df5 13627gas_cv_decl_needed_sbrk=yes
13b2be9c 13628fi
ab509236
L
13629rm -f conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13631fi
e8a38df5
AL
13632echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13633echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13634if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
13635
13636cat >>confdefs.h <<\_ACEOF
e8a38df5 13637#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
13638_ACEOF
13639
13640fi
13641
13642
e8a38df5
AL
13643echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13644echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13645if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13647else
13648 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13649/* confdefs.h. */
13650_ACEOF
13651cat confdefs.h >>conftest.$ac_ext
13652cat >>conftest.$ac_ext <<_ACEOF
13653/* end confdefs.h. */
e8a38df5 13654$gas_test_headers
13b2be9c
DJ
13655int
13656main ()
13657{
13658
e8a38df5 13659typedef char *(*f)();
13b2be9c 13660f x;
e8a38df5 13661x = (f) strstr;
13b2be9c
DJ
13662
13663 ;
13664 return 0;
13665}
13666_ACEOF
13667rm -f conftest.$ac_objext conftest$ac_exeext
13668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13669 (eval $ac_link) 2>conftest.er1
13b2be9c 13670 ac_status=$?
ab509236
L
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13b2be9c
DJ
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
1ad12f97
NC
13676 { ac_try='test -z "$ac_c_werror_flag"
13677 || test ! -s conftest.err'
ab509236
L
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } &&
13683 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
e8a38df5 13689 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
13690else
13691 echo "$as_me: failed program was:" >&5
13692sed 's/^/| /' conftest.$ac_ext >&5
13693
e8a38df5 13694gas_cv_decl_needed_strstr=yes
13b2be9c 13695fi
ab509236
L
13696rm -f conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13698fi
e8a38df5
AL
13699echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
13700echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
13701if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
13702
13703cat >>confdefs.h <<\_ACEOF
e8a38df5 13704#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
13705_ACEOF
13706
13707fi
13708
13709
6d74f28b
EB
13710echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13711echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13712if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13714else
13715 cat >conftest.$ac_ext <<_ACEOF
13716/* confdefs.h. */
13717_ACEOF
13718cat confdefs.h >>conftest.$ac_ext
13719cat >>conftest.$ac_ext <<_ACEOF
13720/* end confdefs.h. */
13721$ac_includes_default
13722int
13723main ()
13724{
13725#ifndef vsnprintf
13726 char *p = (char *) vsnprintf;
13727#endif
13728
13729 ;
13730 return 0;
13731}
13732_ACEOF
13733rm -f conftest.$ac_objext
13734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>conftest.er1
13736 ac_status=$?
13737 grep -v '^ *+' conftest.er1 >conftest.err
13738 rm -f conftest.er1
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -z "$ac_c_werror_flag"
13743 || test ! -s conftest.err'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest.$ac_objext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_cv_have_decl_vsnprintf=yes
13756else
13757 echo "$as_me: failed program was:" >&5
13758sed 's/^/| /' conftest.$ac_ext >&5
13759
13760ac_cv_have_decl_vsnprintf=no
13761fi
13762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13763fi
13764echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13765echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13766if test $ac_cv_have_decl_vsnprintf = yes; then
13767
13768cat >>confdefs.h <<_ACEOF
13769#define HAVE_DECL_VSNPRINTF 1
13770_ACEOF
13771
13772
13773else
13774 cat >>confdefs.h <<_ACEOF
13775#define HAVE_DECL_VSNPRINTF 0
13776_ACEOF
13777
13778
13779fi
13780
13781
13782
13b2be9c 13783
c973bc5c
NC
13784case "${host}" in
13785*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13786
13787cat >>confdefs.h <<\_ACEOF
13788#define USE_BINARY_FOPEN 1
13789_ACEOF
13790 ;;
13791esac
13792
13793
13b2be9c 13794
108a6f8e
CD
13795
13796
13797
13798
13b2be9c
DJ
13799 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13800
13801 ac_config_commands="$ac_config_commands default"
13802
13803
13804cat >confcache <<\_ACEOF
13805# This file is a shell script that caches the results of configure
13806# tests run on this system so they can be shared between configure
13807# scripts and configure runs, see configure's option --config-cache.
13808# It is not useful on other systems. If it contains results you don't
13809# want to keep, you may remove or edit it.
13810#
13811# config.status only pays attention to the cache file if you give it
13812# the --recheck option to rerun configure.
13813#
13814# `ac_cv_env_foo' variables (set or unset) will be overridden when
13815# loading this file, other *unset* `ac_cv_foo' will be assigned the
13816# following values.
13817
13818_ACEOF
13819
13820# The following way of writing the cache mishandles newlines in values,
13821# but we know of no workaround that is simple, portable, and efficient.
13822# So, don't put newlines in cache variables' values.
13823# Ultrix sh set writes to stderr and can't be redirected directly,
13824# and sets the high bit in the cache file unless we assign to the vars.
13825{
13826 (set) 2>&1 |
13827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13828 *ac_space=\ *)
13829 # `set' does not quote correctly, so add quotes (double-quote
13830 # substitution turns \\\\ into \\, and sed turns \\ into \).
13831 sed -n \
ab509236
L
13832 "s/'/'\\\\''/g;
13833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
13834 ;;
13835 *)
13836 # `set' quotes correctly as required by POSIX, so do not add quotes.
13837 sed -n \
ab509236 13838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
13839 ;;
13840 esac;
13841} |
13842 sed '
13843 t clear
13844 : clear
13845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13846 t end
13847 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13848 : end' >>confcache
13849if diff $cache_file confcache >/dev/null 2>&1; then :; else
13850 if test -w $cache_file; then
13851 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13852 cat confcache >$cache_file
13853 else
13854 echo "not updating unwritable cache $cache_file"
13855 fi
13856fi
13857rm -f confcache
13858
13859test "x$prefix" = xNONE && prefix=$ac_default_prefix
13860# Let make expand exec_prefix.
13861test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13862
13863# VPATH may cause trouble with some makes, so we remove $(srcdir),
13864# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13865# trailing colons and then remove the whole line if VPATH becomes empty
13866# (actually we leave an empty line to preserve line numbers).
13867if test "x$srcdir" = x.; then
ab509236 13868 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
13869s/:*\$(srcdir):*/:/;
13870s/:*\${srcdir}:*/:/;
13871s/:*@srcdir@:*/:/;
ab509236 13872s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 13873s/:*$//;
ab509236 13874s/^[^=]*=[ ]*$//;
13b2be9c
DJ
13875}'
13876fi
13877
13878DEFS=-DHAVE_CONFIG_H
13879
13880ac_libobjs=
13881ac_ltlibobjs=
13882for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13883 # 1. Remove the extension, and $U if already installed.
13884 ac_i=`echo "$ac_i" |
ab509236 13885 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
13886 # 2. Add them.
13887 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13888 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13889done
13890LIBOBJS=$ac_libobjs
13891
13892LTLIBOBJS=$ac_ltlibobjs
13893
13894
13895if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13896 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13897Usually this means the macro was only invoked conditionally." >&5
13898echo "$as_me: error: conditional \"AMDEP\" was never defined.
13899Usually this means the macro was only invoked conditionally." >&2;}
13900 { (exit 1); exit 1; }; }
13901fi
13902if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13903 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13904Usually this means the macro was only invoked conditionally." >&5
13905echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13906Usually this means the macro was only invoked conditionally." >&2;}
13907 { (exit 1); exit 1; }; }
13908fi
13909if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13910 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13911Usually this means the macro was only invoked conditionally." >&5
13912echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13913Usually this means the macro was only invoked conditionally." >&2;}
13914 { (exit 1); exit 1; }; }
13915fi
d5fbea21
DJ
13916if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13917 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13918Usually this means the macro was only invoked conditionally." >&5
13919echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13920Usually this means the macro was only invoked conditionally." >&2;}
13921 { (exit 1); exit 1; }; }
13922fi
13b2be9c
DJ
13923
13924: ${CONFIG_STATUS=./config.status}
13925ac_clean_files_save=$ac_clean_files
13926ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13927{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13928echo "$as_me: creating $CONFIG_STATUS" >&6;}
13929cat >$CONFIG_STATUS <<_ACEOF
13930#! $SHELL
13931# Generated by $as_me.
13932# Run this file to recreate the current configuration.
13933# Compiler output produced by configure, useful for debugging
13934# configure, is in config.log if it exists.
13935
13936debug=false
13937ac_cs_recheck=false
13938ac_cs_silent=false
13939SHELL=\${CONFIG_SHELL-$SHELL}
13940_ACEOF
13941
13942cat >>$CONFIG_STATUS <<\_ACEOF
13943## --------------------- ##
13944## M4sh Initialization. ##
13945## --------------------- ##
13946
13947# Be Bourne compatible
13948if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13949 emulate sh
13950 NULLCMD=:
13951 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13952 # is contrary to our usage. Disable this feature.
13953 alias -g '${1+"$@"}'='"$@"'
13954elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13955 set -o posix
13956fi
ab509236 13957DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
13958
13959# Support unset when possible.
ab509236 13960if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
13961 as_unset=unset
13962else
13963 as_unset=false
13964fi
13965
13966
13967# Work around bugs in pre-3.0 UWIN ksh.
13968$as_unset ENV MAIL MAILPATH
13969PS1='$ '
13970PS2='> '
13971PS4='+ '
13972
13973# NLS nuisances.
13974for as_var in \
13975 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13976 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13977 LC_TELEPHONE LC_TIME
13978do
ab509236 13979 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
13980 eval $as_var=C; export $as_var
13981 else
13982 $as_unset $as_var
13983 fi
13984done
13985
13986# Required to use basename.
13987if expr a : '\(a\)' >/dev/null 2>&1; then
13988 as_expr=expr
13989else
13990 as_expr=false
13991fi
13992
13993if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13994 as_basename=basename
13995else
13996 as_basename=false
13997fi
13998
13999
14000# Name of the executable.
14001as_me=`$as_basename "$0" ||
14002$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14003 X"$0" : 'X\(//\)$' \| \
14004 X"$0" : 'X\(/\)$' \| \
14005 . : '\(.\)' 2>/dev/null ||
14006echo X/"$0" |
14007 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14008 /^X\/\(\/\/\)$/{ s//\1/; q; }
14009 /^X\/\(\/\).*/{ s//\1/; q; }
14010 s/.*/./; q'`
14011
14012
14013# PATH needs CR, and LINENO needs CR and PATH.
14014# Avoid depending upon Character Ranges.
14015as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14016as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14017as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14018as_cr_digits='0123456789'
14019as_cr_alnum=$as_cr_Letters$as_cr_digits
14020
14021# The user is always right.
14022if test "${PATH_SEPARATOR+set}" != set; then
14023 echo "#! /bin/sh" >conf$$.sh
14024 echo "exit 0" >>conf$$.sh
14025 chmod +x conf$$.sh
14026 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14027 PATH_SEPARATOR=';'
14028 else
14029 PATH_SEPARATOR=:
14030 fi
14031 rm -f conf$$.sh
14032fi
14033
14034
14035 as_lineno_1=$LINENO
14036 as_lineno_2=$LINENO
14037 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14038 test "x$as_lineno_1" != "x$as_lineno_2" &&
14039 test "x$as_lineno_3" = "x$as_lineno_2" || {
14040 # Find who we are. Look in the path if we contain no path at all
14041 # relative or not.
14042 case $0 in
14043 *[\\/]* ) as_myself=$0 ;;
14044 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14045for as_dir in $PATH
14046do
14047 IFS=$as_save_IFS
14048 test -z "$as_dir" && as_dir=.
14049 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14050done
252b5132 14051
13b2be9c
DJ
14052 ;;
14053 esac
14054 # We did not find ourselves, most probably we were run as `sh COMMAND'
14055 # in which case we are not to be found in the path.
14056 if test "x$as_myself" = x; then
14057 as_myself=$0
14058 fi
14059 if test ! -f "$as_myself"; then
14060 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14061echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14062 { (exit 1); exit 1; }; }
14063 fi
14064 case $CONFIG_SHELL in
14065 '')
14066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14067for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14068do
14069 IFS=$as_save_IFS
14070 test -z "$as_dir" && as_dir=.
14071 for as_base in sh bash ksh sh5; do
14072 case $as_dir in
14073 /*)
14074 if ("$as_dir/$as_base" -c '
14075 as_lineno_1=$LINENO
14076 as_lineno_2=$LINENO
14077 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14078 test "x$as_lineno_1" != "x$as_lineno_2" &&
14079 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14080 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14081 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14082 CONFIG_SHELL=$as_dir/$as_base
14083 export CONFIG_SHELL
14084 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14085 fi;;
14086 esac
14087 done
14088done
14089;;
14090 esac
252b5132 14091
13b2be9c
DJ
14092 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14093 # uniformly replaced by the line number. The first 'sed' inserts a
14094 # line-number line before each line; the second 'sed' does the real
14095 # work. The second script uses 'N' to pair each line-number line
14096 # with the numbered line, and appends trailing '-' during
14097 # substitution so that $LINENO is not a special case at line end.
14098 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14099 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14100 sed '=' <$as_myself |
14101 sed '
14102 N
14103 s,$,-,
14104 : loop
14105 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14106 t loop
14107 s,-$,,
14108 s,^['$as_cr_digits']*\n,,
14109 ' >$as_me.lineno &&
14110 chmod +x $as_me.lineno ||
14111 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14112echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14113 { (exit 1); exit 1; }; }
14114
14115 # Don't try to exec as it changes $[0], causing all sort of problems
14116 # (the dirname of $[0] is not the place where we might find the
14117 # original and so on. Autoconf is especially sensible to this).
14118 . ./$as_me.lineno
14119 # Exit status is that of the last command.
14120 exit
14121}
d6d788bd 14122
252b5132 14123
13b2be9c
DJ
14124case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14125 *c*,-n*) ECHO_N= ECHO_C='
14126' ECHO_T=' ' ;;
14127 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14128 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14129esac
252b5132 14130
13b2be9c
DJ
14131if expr a : '\(a\)' >/dev/null 2>&1; then
14132 as_expr=expr
252b5132 14133else
13b2be9c 14134 as_expr=false
252b5132 14135fi
252b5132 14136
13b2be9c
DJ
14137rm -f conf$$ conf$$.exe conf$$.file
14138echo >conf$$.file
14139if ln -s conf$$.file conf$$ 2>/dev/null; then
14140 # We could just check for DJGPP; but this test a) works b) is more generic
14141 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14142 if test -f conf$$.exe; then
14143 # Don't use ln at all; we don't have any links
14144 as_ln_s='cp -p'
14145 else
14146 as_ln_s='ln -s'
14147 fi
14148elif ln conf$$.file conf$$ 2>/dev/null; then
14149 as_ln_s=ln
14150else
14151 as_ln_s='cp -p'
252b5132 14152fi
13b2be9c 14153rm -f conf$$ conf$$.exe conf$$.file
252b5132 14154
13b2be9c
DJ
14155if mkdir -p . 2>/dev/null; then
14156 as_mkdir_p=:
252b5132 14157else
ab509236 14158 test -d ./-p && rmdir ./-p
13b2be9c
DJ
14159 as_mkdir_p=false
14160fi
252b5132 14161
13b2be9c 14162as_executable_p="test -f"
252b5132 14163
13b2be9c 14164# Sed expression to map a string onto a valid CPP name.
ab509236 14165as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14166
13b2be9c 14167# Sed expression to map a string onto a valid variable name.
ab509236 14168as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14169
d6d788bd 14170
13b2be9c
DJ
14171# IFS
14172# We need space, tab and new line, in precisely that order.
14173as_nl='
14174'
14175IFS=" $as_nl"
252b5132 14176
13b2be9c
DJ
14177# CDPATH.
14178$as_unset CDPATH
252b5132 14179
13b2be9c 14180exec 6>&1
252b5132 14181
13b2be9c
DJ
14182# Open the log real soon, to keep \$[0] and so on meaningful, and to
14183# report actual input values of CONFIG_FILES etc. instead of their
14184# values after options handling. Logging --version etc. is OK.
14185exec 5>>config.log
14186{
14187 echo
14188 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14189## Running $as_me. ##
14190_ASBOX
14191} >&5
14192cat >&5 <<_CSEOF
252b5132 14193
13b2be9c 14194This file was extended by $as_me, which was
ab509236 14195generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 14196
13b2be9c
DJ
14197 CONFIG_FILES = $CONFIG_FILES
14198 CONFIG_HEADERS = $CONFIG_HEADERS
14199 CONFIG_LINKS = $CONFIG_LINKS
14200 CONFIG_COMMANDS = $CONFIG_COMMANDS
14201 $ $0 $@
252b5132 14202
13b2be9c
DJ
14203_CSEOF
14204echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14205echo >&5
14206_ACEOF
252b5132 14207
13b2be9c
DJ
14208# Files that config.status was made for.
14209if test -n "$ac_config_files"; then
14210 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 14211fi
13b2be9c
DJ
14212
14213if test -n "$ac_config_headers"; then
14214 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 14215fi
252b5132 14216
13b2be9c
DJ
14217if test -n "$ac_config_links"; then
14218 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
14219fi
14220
13b2be9c
DJ
14221if test -n "$ac_config_commands"; then
14222 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14223fi
d6d788bd 14224
13b2be9c 14225cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 14226
13b2be9c
DJ
14227ac_cs_usage="\
14228\`$as_me' instantiates files from templates according to the
14229current configuration.
252b5132 14230
13b2be9c 14231Usage: $0 [OPTIONS] [FILE]...
252b5132 14232
13b2be9c
DJ
14233 -h, --help print this help, then exit
14234 -V, --version print version number, then exit
14235 -q, --quiet do not print progress messages
14236 -d, --debug don't remove temporary files
14237 --recheck update $as_me by reconfiguring in the same conditions
14238 --file=FILE[:TEMPLATE]
ab509236 14239 instantiate the configuration file FILE
13b2be9c 14240 --header=FILE[:TEMPLATE]
ab509236 14241 instantiate the configuration header FILE
252b5132 14242
13b2be9c
DJ
14243Configuration files:
14244$config_files
252b5132 14245
13b2be9c
DJ
14246Configuration headers:
14247$config_headers
252b5132 14248
13b2be9c
DJ
14249Configuration commands:
14250$config_commands
252b5132 14251
13b2be9c
DJ
14252Report bugs to <bug-autoconf@gnu.org>."
14253_ACEOF
d6d788bd 14254
13b2be9c
DJ
14255cat >>$CONFIG_STATUS <<_ACEOF
14256ac_cs_version="\\
14257config.status
ab509236 14258configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 14259 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 14260
ab509236 14261Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
14262This config.status script is free software; the Free Software Foundation
14263gives unlimited permission to copy, distribute and modify it."
14264srcdir=$srcdir
14265INSTALL="$INSTALL"
14266_ACEOF
d6d788bd 14267
13b2be9c
DJ
14268cat >>$CONFIG_STATUS <<\_ACEOF
14269# If no file are specified by the user, then we need to provide default
14270# value. By we need to know if files were specified by the user.
14271ac_need_defaults=:
14272while test $# != 0
14273do
14274 case $1 in
14275 --*=*)
14276 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14277 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14278 ac_shift=:
c8615825 14279 ;;
13b2be9c
DJ
14280 -*)
14281 ac_option=$1
14282 ac_optarg=$2
14283 ac_shift=shift
c8615825 14284 ;;
13b2be9c
DJ
14285 *) # This is not an option, so the user has probably given explicit
14286 # arguments.
14287 ac_option=$1
14288 ac_need_defaults=false;;
14289 esac
252b5132 14290
13b2be9c
DJ
14291 case $ac_option in
14292 # Handling of the options.
14293_ACEOF
14294cat >>$CONFIG_STATUS <<\_ACEOF
14295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14296 ac_cs_recheck=: ;;
14297 --version | --vers* | -V )
14298 echo "$ac_cs_version"; exit 0 ;;
14299 --he | --h)
14300 # Conflict between --help and --header
14301 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14302Try \`$0 --help' for more information." >&5
14303echo "$as_me: error: ambiguous option: $1
14304Try \`$0 --help' for more information." >&2;}
14305 { (exit 1); exit 1; }; };;
14306 --help | --hel | -h )
14307 echo "$ac_cs_usage"; exit 0 ;;
14308 --debug | --d* | -d )
14309 debug=: ;;
14310 --file | --fil | --fi | --f )
14311 $ac_shift
14312 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14313 ac_need_defaults=false;;
14314 --header | --heade | --head | --hea )
14315 $ac_shift
14316 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14317 ac_need_defaults=false;;
14318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14319 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14320 ac_cs_silent=: ;;
c8615825 14321
13b2be9c
DJ
14322 # This is an error.
14323 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14324Try \`$0 --help' for more information." >&5
14325echo "$as_me: error: unrecognized option: $1
14326Try \`$0 --help' for more information." >&2;}
14327 { (exit 1); exit 1; }; } ;;
252b5132 14328
13b2be9c 14329 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 14330
13b2be9c
DJ
14331 esac
14332 shift
14333done
252b5132 14334
13b2be9c 14335ac_configure_extra_args=
d6d788bd 14336
13b2be9c
DJ
14337if $ac_cs_silent; then
14338 exec 6>/dev/null
14339 ac_configure_extra_args="$ac_configure_extra_args --silent"
14340fi
9b2b7d69 14341
13b2be9c
DJ
14342_ACEOF
14343cat >>$CONFIG_STATUS <<_ACEOF
14344if \$ac_cs_recheck; then
14345 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14346 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14347fi
14348
14349_ACEOF
14350
14351cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 14352#
13b2be9c 14353# INIT-COMMANDS section.
9b2b7d69
MM
14354#
14355
13b2be9c 14356AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14357
14358
14359# The HP-UX ksh and POSIX shell print the target directory to stdout
14360# if CDPATH is set.
14361(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14362
14363sed_quote_subst='$sed_quote_subst'
14364double_quote_subst='$double_quote_subst'
14365delay_variable_subst='$delay_variable_subst'
14366macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14367macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14368enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14369enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14370pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14371enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14372host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14373host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14374host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14375build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14376build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14377build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14378SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14379Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14380GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14381EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14382FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14383LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14384NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14385LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14386max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14387ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14388exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14389lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14390lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14391lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14392reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14393reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14394deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14395file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14396AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14397AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14398STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14399RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14400old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14401old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14402old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14403CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14404CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14405compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14406GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14407lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14408lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14409lt_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"`'
14410objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14411SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14412ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14413MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14414lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14415lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14416lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14417lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14418lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14419need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14420libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14421shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14422extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14423archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14424enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14425export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14426whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14427compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14428old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14429old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14430archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14431archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14432module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14433module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14434with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14435allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14436no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14437hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14438hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14439hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14440hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14441hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14442hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14443hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14444hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14445inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14446link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14447fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14448always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14449export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14450exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14451include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14452prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14453file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14454variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14455need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14456need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14457version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14458runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14459shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14460shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14461libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14462library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14463soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14464postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14465postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14466finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14467finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14468hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14469sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14470sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14471hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14472enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14473enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14474enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14475old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14476striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14477
14478LTCC='$LTCC'
14479LTCFLAGS='$LTCFLAGS'
14480compiler='$compiler_DEFAULT'
14481
14482# Quote evaled strings.
14483for var in SED \
14484GREP \
14485EGREP \
14486FGREP \
14487LD \
14488NM \
14489LN_S \
14490lt_SP2NL \
14491lt_NL2SP \
14492reload_flag \
14493deplibs_check_method \
14494file_magic_cmd \
14495AR \
14496AR_FLAGS \
14497STRIP \
14498RANLIB \
14499CC \
14500CFLAGS \
14501compiler \
14502lt_cv_sys_global_symbol_pipe \
14503lt_cv_sys_global_symbol_to_cdecl \
14504lt_cv_sys_global_symbol_to_c_name_address \
14505SHELL \
14506ECHO \
14507lt_prog_compiler_no_builtin_flag \
14508lt_prog_compiler_wl \
14509lt_prog_compiler_pic \
14510lt_prog_compiler_static \
14511lt_cv_prog_compiler_c_o \
14512need_locks \
14513shrext_cmds \
14514export_dynamic_flag_spec \
14515whole_archive_flag_spec \
14516compiler_needs_object \
14517with_gnu_ld \
14518allow_undefined_flag \
14519no_undefined_flag \
14520hardcode_libdir_flag_spec \
14521hardcode_libdir_flag_spec_ld \
14522hardcode_libdir_separator \
14523fix_srcfile_path \
14524exclude_expsyms \
14525include_expsyms \
14526file_list_spec \
14527variables_saved_for_relink \
14528libname_spec \
14529library_names_spec \
14530soname_spec \
14531finish_eval \
14532old_striplib \
14533striplib; do
14534 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14535 *[\\\\\\\`\\"\\\$]*)
14536 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14537 ;;
14538 *)
14539 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14540 ;;
14541 esac
14542done
14543
14544# Double-quote double-evaled strings.
14545for var in reload_cmds \
14546old_postinstall_cmds \
14547old_postuninstall_cmds \
14548old_archive_cmds \
14549extract_expsyms_cmds \
14550old_archive_from_new_cmds \
14551old_archive_from_expsyms_cmds \
14552archive_cmds \
14553archive_expsym_cmds \
14554module_cmds \
14555module_expsym_cmds \
14556export_symbols_cmds \
14557prelink_cmds \
14558postinstall_cmds \
14559postuninstall_cmds \
14560finish_cmds \
14561sys_lib_search_path_spec \
14562sys_lib_dlsearch_path_spec; do
14563 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14564 *[\\\\\\\`\\"\\\$]*)
14565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14566 ;;
14567 *)
14568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14569 ;;
14570 esac
14571done
14572
14573# Fix-up fallback echo if it was mangled by the above quoting rules.
14574case \$lt_ECHO in
14575*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14576 ;;
14577esac
14578
14579ac_aux_dir='$ac_aux_dir'
14580xsi_shell='$xsi_shell'
14581lt_shell_append='$lt_shell_append'
14582
14583# See if we are running on zsh, and set the options which allow our
14584# commands through without removal of \ escapes INIT.
14585if test -n "\${ZSH_VERSION+set}" ; then
14586 setopt NO_GLOB_SUBST
14587fi
14588
14589
14590 PACKAGE='$PACKAGE'
14591 VERSION='$VERSION'
14592 TIMESTAMP='$TIMESTAMP'
14593 RM='$RM'
14594 ofile='$ofile'
14595
14596
14597
20e95c23
DJ
14598# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14599 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14600 # from automake.
14601 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14602 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14603 LINGUAS="${LINGUAS-%UNSET%}"
14604
13b2be9c
DJ
14605target_cpu_type=${target_cpu_type}
14606 cgen_cpu_prefix=${cgen_cpu_prefix}
14607 obj_format=${obj_format}
14608 te_file=${te_file}
14609
14610_ACEOF
14611
14612
14613
14614cat >>$CONFIG_STATUS <<\_ACEOF
14615for ac_config_target in $ac_config_targets
9b2b7d69 14616do
13b2be9c
DJ
14617 case "$ac_config_target" in
14618 # Handling of arguments.
14619 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14620 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14621 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14622 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14623 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14624 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 14625 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 14626 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13b2be9c
DJ
14627 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14628 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14629 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14630echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14631 { (exit 1); exit 1; }; };;
9b2b7d69
MM
14632 esac
14633done
14634
13b2be9c
DJ
14635# If the user did not use the arguments to specify the items to instantiate,
14636# then the envvar interface is used. Set only those that are not.
14637# We use the long form for the default assignment because of an extremely
14638# bizarre bug on SunOS 4.1.3.
14639if $ac_need_defaults; then
14640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14642 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14643fi
14644
14645# Have a temporary directory for convenience. Make it in the build tree
14646# simply because there is no reason to put it here, and in addition,
14647# creating and moving files from /tmp can sometimes cause problems.
14648# Create a temporary directory, and hook for its removal unless debugging.
14649$debug ||
14650{
14651 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14652 trap '{ (exit 1); exit 1; }' 1 2 13 15
14653}
9b2b7d69 14654
13b2be9c 14655# Create a (secure) tmp directory for tmp files.
9b2b7d69 14656
13b2be9c
DJ
14657{
14658 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14659 test -n "$tmp" && test -d "$tmp"
14660} ||
14661{
14662 tmp=./confstat$$-$RANDOM
14663 (umask 077 && mkdir $tmp)
14664} ||
14665{
14666 echo "$me: cannot create a temporary directory in ." >&2
14667 { (exit 1); exit 1; }
14668}
9b2b7d69 14669
13b2be9c
DJ
14670_ACEOF
14671
14672cat >>$CONFIG_STATUS <<_ACEOF
14673
14674#
14675# CONFIG_FILES section.
14676#
14677
14678# No need to generate the scripts if there are no CONFIG_FILES.
14679# This happens for instance when ./config.status config.h
14680if test -n "\$CONFIG_FILES"; then
14681 # Protect against being on the right side of a sed subst in config.status.
14682 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14683 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14684s,@SHELL@,$SHELL,;t t
14685s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14686s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14687s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14688s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14689s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14690s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14691s,@exec_prefix@,$exec_prefix,;t t
14692s,@prefix@,$prefix,;t t
14693s,@program_transform_name@,$program_transform_name,;t t
14694s,@bindir@,$bindir,;t t
14695s,@sbindir@,$sbindir,;t t
14696s,@libexecdir@,$libexecdir,;t t
14697s,@datadir@,$datadir,;t t
14698s,@sysconfdir@,$sysconfdir,;t t
14699s,@sharedstatedir@,$sharedstatedir,;t t
14700s,@localstatedir@,$localstatedir,;t t
14701s,@libdir@,$libdir,;t t
14702s,@includedir@,$includedir,;t t
14703s,@oldincludedir@,$oldincludedir,;t t
14704s,@infodir@,$infodir,;t t
14705s,@mandir@,$mandir,;t t
14706s,@build_alias@,$build_alias,;t t
14707s,@host_alias@,$host_alias,;t t
14708s,@target_alias@,$target_alias,;t t
14709s,@DEFS@,$DEFS,;t t
14710s,@ECHO_C@,$ECHO_C,;t t
14711s,@ECHO_N@,$ECHO_N,;t t
14712s,@ECHO_T@,$ECHO_T,;t t
14713s,@LIBS@,$LIBS,;t t
14714s,@build@,$build,;t t
14715s,@build_cpu@,$build_cpu,;t t
14716s,@build_vendor@,$build_vendor,;t t
14717s,@build_os@,$build_os,;t t
14718s,@host@,$host,;t t
14719s,@host_cpu@,$host_cpu,;t t
14720s,@host_vendor@,$host_vendor,;t t
14721s,@host_os@,$host_os,;t t
14722s,@target@,$target,;t t
14723s,@target_cpu@,$target_cpu,;t t
14724s,@target_vendor@,$target_vendor,;t t
14725s,@target_os@,$target_os,;t t
14726s,@CC@,$CC,;t t
14727s,@CFLAGS@,$CFLAGS,;t t
14728s,@LDFLAGS@,$LDFLAGS,;t t
14729s,@CPPFLAGS@,$CPPFLAGS,;t t
14730s,@ac_ct_CC@,$ac_ct_CC,;t t
14731s,@EXEEXT@,$EXEEXT,;t t
14732s,@OBJEXT@,$OBJEXT,;t t
14733s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14734s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14735s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14736s,@CYGPATH_W@,$CYGPATH_W,;t t
14737s,@PACKAGE@,$PACKAGE,;t t
14738s,@VERSION@,$VERSION,;t t
14739s,@ACLOCAL@,$ACLOCAL,;t t
14740s,@AUTOCONF@,$AUTOCONF,;t t
14741s,@AUTOMAKE@,$AUTOMAKE,;t t
14742s,@AUTOHEADER@,$AUTOHEADER,;t t
14743s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
14744s,@install_sh@,$install_sh,;t t
14745s,@STRIP@,$STRIP,;t t
14746s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14747s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 14748s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
14749s,@AWK@,$AWK,;t t
14750s,@SET_MAKE@,$SET_MAKE,;t t
14751s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
14752s,@AMTAR@,$AMTAR,;t t
14753s,@am__tar@,$am__tar,;t t
14754s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
14755s,@DEPDIR@,$DEPDIR,;t t
14756s,@am__include@,$am__include,;t t
14757s,@am__quote@,$am__quote,;t t
14758s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14759s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14760s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14761s,@CCDEPMODE@,$CCDEPMODE,;t t
14762s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14763s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
d7040cdb
SE
14764s,@LIBTOOL@,$LIBTOOL,;t t
14765s,@SED@,$SED,;t t
14766s,@EGREP@,$EGREP,;t t
14767s,@FGREP@,$FGREP,;t t
14768s,@GREP@,$GREP,;t t
14769s,@LD@,$LD,;t t
14770s,@DUMPBIN@,$DUMPBIN,;t t
14771s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14772s,@NM@,$NM,;t t
13b2be9c 14773s,@LN_S@,$LN_S,;t t
d7040cdb
SE
14774s,@AR@,$AR,;t t
14775s,@ac_ct_AR@,$ac_ct_AR,;t t
13b2be9c
DJ
14776s,@RANLIB@,$RANLIB,;t t
14777s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
14778s,@lt_ECHO@,$lt_ECHO,;t t
14779s,@CPP@,$CPP,;t t
13b2be9c 14780s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 14781s,@NO_WERROR@,$NO_WERROR,;t t
13b2be9c
DJ
14782s,@GDBINIT@,$GDBINIT,;t t
14783s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
14784s,@extra_objects@,$extra_objects,;t t
14785s,@target_cpu_type@,$target_cpu_type,;t t
14786s,@obj_format@,$obj_format,;t t
14787s,@te_file@,$te_file,;t t
14788s,@install_tooldir@,$install_tooldir,;t t
14789s,@atof@,$atof,;t t
13b2be9c 14790s,@OPCODES_LIB@,$OPCODES_LIB,;t t
13b2be9c
DJ
14791s,@YACC@,$YACC,;t t
14792s,@LEX@,$LEX,;t t
14793s,@LEXLIB@,$LEXLIB,;t t
14794s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13b2be9c 14795s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
14796s,@LIBINTL@,$LIBINTL,;t t
14797s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14798s,@INCINTL@,$INCINTL,;t t
13b2be9c 14799s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
14800s,@GMSGFMT@,$GMSGFMT,;t t
14801s,@POSUB@,$POSUB,;t t
13b2be9c 14802s,@CATALOGS@,$CATALOGS,;t t
13b2be9c 14803s,@DATADIRNAME@,$DATADIRNAME,;t t
13b2be9c 14804s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
14805s,@GENCAT@,$GENCAT,;t t
14806s,@CATOBJEXT@,$CATOBJEXT,;t t
13b2be9c 14807s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
14808s,@MSGFMT@,$MSGFMT,;t t
14809s,@MSGMERGE@,$MSGMERGE,;t t
13b2be9c
DJ
14810s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14811s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14812s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
14813s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14814s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
20e95c23 14815s,@ALLOCA@,$ALLOCA,;t t
13b2be9c 14816s,@LIBM@,$LIBM,;t t
108a6f8e
CD
14817s,@datarootdir@,$datarootdir,;t t
14818s,@docdir@,$docdir,;t t
14819s,@htmldir@,$htmldir,;t t
13b2be9c
DJ
14820s,@LIBOBJS@,$LIBOBJS,;t t
14821s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
14822CEOF
14823
13b2be9c
DJ
14824_ACEOF
14825
14826 cat >>$CONFIG_STATUS <<\_ACEOF
14827 # Split the substitutions into bite-sized pieces for seds with
14828 # small command number limits, like on Digital OSF/1 and HP-UX.
14829 ac_max_sed_lines=48
14830 ac_sed_frag=1 # Number of current file.
14831 ac_beg=1 # First line for current file.
14832 ac_end=$ac_max_sed_lines # Line after last line for current file.
14833 ac_more_lines=:
14834 ac_sed_cmds=
14835 while $ac_more_lines; do
14836 if test $ac_beg -gt 1; then
14837 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14838 else
14839 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14840 fi
14841 if test ! -s $tmp/subs.frag; then
14842 ac_more_lines=false
9b2b7d69 14843 else
13b2be9c
DJ
14844 # The purpose of the label and of the branching condition is to
14845 # speed up the sed processing (if there are no `@' at all, there
14846 # is no need to browse any of the substitutions).
14847 # These are the two extra sed commands mentioned above.
14848 (echo ':t
14849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14850 if test -z "$ac_sed_cmds"; then
ab509236 14851 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 14852 else
ab509236 14853 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
14854 fi
14855 ac_sed_frag=`expr $ac_sed_frag + 1`
14856 ac_beg=$ac_end
14857 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 14858 fi
13b2be9c
DJ
14859 done
14860 if test -z "$ac_sed_cmds"; then
14861 ac_sed_cmds=cat
252b5132 14862 fi
13b2be9c 14863fi # test -n "$CONFIG_FILES"
252b5132 14864
13b2be9c
DJ
14865_ACEOF
14866cat >>$CONFIG_STATUS <<\_ACEOF
14867for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 14868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
14869 case $ac_file in
14870 - | *:- | *:-:* ) # input from stdin
ab509236
L
14871 cat >$tmp/stdin
14872 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14873 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 14874 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 14875 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 14876 * ) ac_file_in=$ac_file.in ;;
252b5132 14877 esac
9b2b7d69 14878
13b2be9c
DJ
14879 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14880 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14881$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
14882 X"$ac_file" : 'X\(//\)[^/]' \| \
14883 X"$ac_file" : 'X\(//\)$' \| \
14884 X"$ac_file" : 'X\(/\)' \| \
14885 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
14886echo X"$ac_file" |
14887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14889 /^X\(\/\/\)$/{ s//\1/; q; }
14890 /^X\(\/\).*/{ s//\1/; q; }
14891 s/.*/./; q'`
14892 { if $as_mkdir_p; then
14893 mkdir -p "$ac_dir"
c8615825 14894 else
13b2be9c
DJ
14895 as_dir="$ac_dir"
14896 as_dirs=
14897 while test ! -d "$as_dir"; do
14898 as_dirs="$as_dir $as_dirs"
14899 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14900$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
14901 X"$as_dir" : 'X\(//\)[^/]' \| \
14902 X"$as_dir" : 'X\(//\)$' \| \
14903 X"$as_dir" : 'X\(/\)' \| \
14904 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
14905echo X"$as_dir" |
14906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14908 /^X\(\/\/\)$/{ s//\1/; q; }
14909 /^X\(\/\).*/{ s//\1/; q; }
14910 s/.*/./; q'`
14911 done
14912 test ! -n "$as_dirs" || mkdir $as_dirs
14913 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14914echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14915 { (exit 1); exit 1; }; }; }
14916
14917 ac_builddir=.
14918
14919if test "$ac_dir" != .; then
14920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14921 # A "../" for each directory in $ac_dir_suffix.
14922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14923else
14924 ac_dir_suffix= ac_top_builddir=
14925fi
9b2b7d69 14926
13b2be9c
DJ
14927case $srcdir in
14928 .) # No --srcdir option. We are building in place.
14929 ac_srcdir=.
14930 if test -z "$ac_top_builddir"; then
14931 ac_top_srcdir=.
14932 else
14933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14934 fi ;;
14935 [\\/]* | ?:[\\/]* ) # Absolute path.
14936 ac_srcdir=$srcdir$ac_dir_suffix;
14937 ac_top_srcdir=$srcdir ;;
9b2b7d69 14938 *) # Relative path.
13b2be9c
DJ
14939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14941esac
ab509236
L
14942
14943# Do not use `cd foo && pwd` to compute absolute paths, because
14944# the directories may not exist.
14945case `pwd` in
14946.) ac_abs_builddir="$ac_dir";;
14947*)
14948 case "$ac_dir" in
14949 .) ac_abs_builddir=`pwd`;;
14950 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14951 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14952 esac;;
14953esac
14954case $ac_abs_builddir in
14955.) ac_abs_top_builddir=${ac_top_builddir}.;;
14956*)
14957 case ${ac_top_builddir}. in
14958 .) ac_abs_top_builddir=$ac_abs_builddir;;
14959 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14960 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14961 esac;;
14962esac
14963case $ac_abs_builddir in
14964.) ac_abs_srcdir=$ac_srcdir;;
14965*)
14966 case $ac_srcdir in
14967 .) ac_abs_srcdir=$ac_abs_builddir;;
14968 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14969 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14970 esac;;
14971esac
14972case $ac_abs_builddir in
14973.) ac_abs_top_srcdir=$ac_top_srcdir;;
14974*)
14975 case $ac_top_srcdir in
14976 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14977 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14978 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14979 esac;;
14980esac
252b5132 14981
9b2b7d69 14982
13b2be9c
DJ
14983 case $INSTALL in
14984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14985 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 14986 esac
9b2b7d69 14987
1ad12f97
NC
14988 if test x"$ac_file" != x-; then
14989 { echo "$as_me:$LINENO: creating $ac_file" >&5
14990echo "$as_me: creating $ac_file" >&6;}
14991 rm -f "$ac_file"
14992 fi
13b2be9c
DJ
14993 # Let's still pretend it is `configure' which instantiates (i.e., don't
14994 # use $as_me), people would be surprised to read:
14995 # /* config.h. Generated by config.status. */
14996 if test x"$ac_file" = x-; then
14997 configure_input=
14998 else
14999 configure_input="$ac_file. "
15000 fi
15001 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 15002 sed 's,.*/,,'` by configure."
13b2be9c
DJ
15003
15004 # First look for the input files in the build tree, otherwise in the
15005 # src tree.
15006 ac_file_inputs=`IFS=:
15007 for f in $ac_file_in; do
15008 case $f in
15009 -) echo $tmp/stdin ;;
15010 [\\/$]*)
ab509236
L
15011 # Absolute (can't be DOS-style, as IFS=:)
15012 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15013echo "$as_me: error: cannot find input file: $f" >&2;}
15014 { (exit 1); exit 1; }; }
ab509236 15015 echo "$f";;
13b2be9c 15016 *) # Relative
ab509236
L
15017 if test -f "$f"; then
15018 # Build tree
15019 echo "$f"
15020 elif test -f "$srcdir/$f"; then
15021 # Source tree
15022 echo "$srcdir/$f"
15023 else
15024 # /dev/null tree
15025 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15026echo "$as_me: error: cannot find input file: $f" >&2;}
15027 { (exit 1); exit 1; }; }
ab509236 15028 fi;;
13b2be9c
DJ
15029 esac
15030 done` || { (exit 1); exit 1; }
15031_ACEOF
15032cat >>$CONFIG_STATUS <<_ACEOF
15033 sed "$ac_vpsub
15034$extrasub
15035_ACEOF
15036cat >>$CONFIG_STATUS <<\_ACEOF
15037:t
15038/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15039s,@configure_input@,$configure_input,;t t
15040s,@srcdir@,$ac_srcdir,;t t
15041s,@abs_srcdir@,$ac_abs_srcdir,;t t
15042s,@top_srcdir@,$ac_top_srcdir,;t t
15043s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15044s,@builddir@,$ac_builddir,;t t
15045s,@abs_builddir@,$ac_abs_builddir,;t t
15046s,@top_builddir@,$ac_top_builddir,;t t
15047s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15048s,@INSTALL@,$ac_INSTALL,;t t
15049" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15050 rm -f $tmp/stdin
15051 if test x"$ac_file" != x-; then
15052 mv $tmp/out $ac_file
15053 else
15054 cat $tmp/out
15055 rm -f $tmp/out
15056 fi
15057
15058done
15059_ACEOF
15060cat >>$CONFIG_STATUS <<\_ACEOF
15061
15062#
15063# CONFIG_HEADER section.
15064#
252b5132
RH
15065
15066# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15067# NAME is the cpp macro being defined and VALUE is the value it is being given.
15068#
15069# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
15070ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15071ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
15072ac_dC=' '
15073ac_dD=',;t'
15074# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 15075ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 15076ac_uB='$,\1#\2define\3'
252b5132 15077ac_uC=' '
13b2be9c
DJ
15078ac_uD=',;t'
15079
15080for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15081 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
15082 case $ac_file in
15083 - | *:- | *:-:* ) # input from stdin
ab509236
L
15084 cat >$tmp/stdin
15085 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15086 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15087 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 15088 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15089 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15090 esac
15091
13b2be9c
DJ
15092 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15093echo "$as_me: creating $ac_file" >&6;}
15094
15095 # First look for the input files in the build tree, otherwise in the
15096 # src tree.
15097 ac_file_inputs=`IFS=:
15098 for f in $ac_file_in; do
15099 case $f in
15100 -) echo $tmp/stdin ;;
15101 [\\/$]*)
ab509236
L
15102 # Absolute (can't be DOS-style, as IFS=:)
15103 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15104echo "$as_me: error: cannot find input file: $f" >&2;}
15105 { (exit 1); exit 1; }; }
ab509236
L
15106 # Do quote $f, to prevent DOS paths from being IFS'd.
15107 echo "$f";;
13b2be9c 15108 *) # Relative
ab509236
L
15109 if test -f "$f"; then
15110 # Build tree
15111 echo "$f"
15112 elif test -f "$srcdir/$f"; then
15113 # Source tree
15114 echo "$srcdir/$f"
15115 else
15116 # /dev/null tree
15117 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15118echo "$as_me: error: cannot find input file: $f" >&2;}
15119 { (exit 1); exit 1; }; }
ab509236 15120 fi;;
13b2be9c
DJ
15121 esac
15122 done` || { (exit 1); exit 1; }
15123 # Remove the trailing spaces.
ab509236 15124 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
15125
15126_ACEOF
15127
15128# Transform confdefs.h into two sed scripts, `conftest.defines' and
15129# `conftest.undefs', that substitutes the proper values into
15130# config.h.in to produce config.h. The first handles `#define'
15131# templates, and the second `#undef' templates.
15132# And first: Protect against being on the right side of a sed subst in
15133# config.status. Protect against being in an unquoted here document
15134# in config.status.
15135rm -f conftest.defines conftest.undefs
15136# Using a here document instead of a string reduces the quoting nightmare.
15137# Putting comments in sed scripts is not portable.
15138#
15139# `end' is used to avoid that the second main sed command (meant for
15140# 0-ary CPP macros) applies to n-ary macro definitions.
15141# See the Autoconf documentation for `clear'.
15142cat >confdef2sed.sed <<\_ACEOF
15143s/[\\&,]/\\&/g
15144s,[\\$`],\\&,g
15145t clear
15146: clear
ab509236 15147s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 15148t end
ab509236 15149s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
15150: end
15151_ACEOF
15152# If some macros were called several times there might be several times
15153# the same #defines, which is useless. Nevertheless, we may not want to
15154# sort them, since we want the *last* AC-DEFINE to be honored.
15155uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15156sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15157rm -f confdef2sed.sed
252b5132
RH
15158
15159# This sed command replaces #undef with comments. This is necessary, for
15160# example, in the case of _POSIX_SOURCE, which is predefined and required
15161# on some systems where configure will not decide to define it.
13b2be9c 15162cat >>conftest.undefs <<\_ACEOF
ab509236 15163s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
15164_ACEOF
15165
15166# Break up conftest.defines because some shells have a limit on the size
15167# of here documents, and old seds have small limits too (100 cmds).
15168echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 15169echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
15170echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15171echo ' :' >>$CONFIG_STATUS
15172rm -f conftest.tail
15173while grep . conftest.defines >/dev/null
15174do
15175 # Write a limited-size here document to $tmp/defines.sed.
15176 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15177 # Speed up: don't consider the non `#define' lines.
ab509236 15178 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15179 # Work around the forget-to-reset-the-flag bug.
15180 echo 't clr' >>$CONFIG_STATUS
15181 echo ': clr' >>$CONFIG_STATUS
15182 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15183 echo 'CEOF
15184 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15185 rm -f $tmp/in
15186 mv $tmp/out $tmp/in
15187' >>$CONFIG_STATUS
15188 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15189 rm -f conftest.defines
15190 mv conftest.tail conftest.defines
15191done
15192rm -f conftest.defines
15193echo ' fi # grep' >>$CONFIG_STATUS
15194echo >>$CONFIG_STATUS
252b5132 15195
13b2be9c
DJ
15196# Break up conftest.undefs because some shells have a limit on the size
15197# of here documents, and old seds have small limits too (100 cmds).
15198echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 15199rm -f conftest.tail
13b2be9c 15200while grep . conftest.undefs >/dev/null
252b5132 15201do
13b2be9c
DJ
15202 # Write a limited-size here document to $tmp/undefs.sed.
15203 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15204 # Speed up: don't consider the non `#undef'
ab509236 15205 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15206 # Work around the forget-to-reset-the-flag bug.
15207 echo 't clr' >>$CONFIG_STATUS
15208 echo ': clr' >>$CONFIG_STATUS
15209 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 15210 echo 'CEOF
13b2be9c
DJ
15211 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15212 rm -f $tmp/in
15213 mv $tmp/out $tmp/in
15214' >>$CONFIG_STATUS
15215 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15216 rm -f conftest.undefs
15217 mv conftest.tail conftest.undefs
252b5132 15218done
13b2be9c
DJ
15219rm -f conftest.undefs
15220
15221cat >>$CONFIG_STATUS <<\_ACEOF
15222 # Let's still pretend it is `configure' which instantiates (i.e., don't
15223 # use $as_me), people would be surprised to read:
15224 # /* config.h. Generated by config.status. */
15225 if test x"$ac_file" = x-; then
15226 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 15227 else
13b2be9c
DJ
15228 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15229 fi
15230 cat $tmp/in >>$tmp/config.h
15231 rm -f $tmp/in
15232 if test x"$ac_file" != x-; then
15233 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15234 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15235echo "$as_me: $ac_file is unchanged" >&6;}
15236 else
15237 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15238$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15239 X"$ac_file" : 'X\(//\)[^/]' \| \
15240 X"$ac_file" : 'X\(//\)$' \| \
15241 X"$ac_file" : 'X\(/\)' \| \
15242 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15243echo X"$ac_file" |
15244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15246 /^X\(\/\/\)$/{ s//\1/; q; }
15247 /^X\(\/\).*/{ s//\1/; q; }
15248 s/.*/./; q'`
15249 { if $as_mkdir_p; then
15250 mkdir -p "$ac_dir"
15251 else
15252 as_dir="$ac_dir"
15253 as_dirs=
15254 while test ! -d "$as_dir"; do
15255 as_dirs="$as_dir $as_dirs"
15256 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15257$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15258 X"$as_dir" : 'X\(//\)[^/]' \| \
15259 X"$as_dir" : 'X\(//\)$' \| \
15260 X"$as_dir" : 'X\(/\)' \| \
15261 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15262echo X"$as_dir" |
15263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15265 /^X\(\/\/\)$/{ s//\1/; q; }
15266 /^X\(\/\).*/{ s//\1/; q; }
15267 s/.*/./; q'`
15268 done
15269 test ! -n "$as_dirs" || mkdir $as_dirs
15270 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15271echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15272 { (exit 1); exit 1; }; }; }
15273
15274 rm -f $ac_file
15275 mv $tmp/config.h $ac_file
9b2b7d69 15276 fi
13b2be9c
DJ
15277 else
15278 cat $tmp/config.h
15279 rm -f $tmp/config.h
9b2b7d69 15280 fi
13b2be9c
DJ
15281# Compute $ac_file's index in $config_headers.
15282_am_stamp_count=1
15283for _am_header in $config_headers :; do
15284 case $_am_header in
15285 $ac_file | $ac_file:* )
15286 break ;;
15287 * )
15288 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15289 esac
15290done
15291echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15292$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15293 X$ac_file : 'X\(//\)[^/]' \| \
15294 X$ac_file : 'X\(//\)$' \| \
15295 X$ac_file : 'X\(/\)' \| \
15296 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15297echo X$ac_file |
15298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15300 /^X\(\/\/\)$/{ s//\1/; q; }
15301 /^X\(\/\).*/{ s//\1/; q; }
15302 s/.*/./; q'`/stamp-h$_am_stamp_count
15303done
15304_ACEOF
15305cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 15306
13b2be9c
DJ
15307#
15308# CONFIG_COMMANDS section.
15309#
15310for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15311 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15312 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15313 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15314$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15315 X"$ac_dest" : 'X\(//\)[^/]' \| \
15316 X"$ac_dest" : 'X\(//\)$' \| \
15317 X"$ac_dest" : 'X\(/\)' \| \
15318 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15319echo X"$ac_dest" |
15320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15322 /^X\(\/\/\)$/{ s//\1/; q; }
15323 /^X\(\/\).*/{ s//\1/; q; }
15324 s/.*/./; q'`
ab509236
L
15325 { if $as_mkdir_p; then
15326 mkdir -p "$ac_dir"
15327 else
15328 as_dir="$ac_dir"
15329 as_dirs=
15330 while test ! -d "$as_dir"; do
15331 as_dirs="$as_dir $as_dirs"
15332 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15334 X"$as_dir" : 'X\(//\)[^/]' \| \
15335 X"$as_dir" : 'X\(//\)$' \| \
15336 X"$as_dir" : 'X\(/\)' \| \
15337 . : '\(.\)' 2>/dev/null ||
15338echo X"$as_dir" |
15339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15341 /^X\(\/\/\)$/{ s//\1/; q; }
15342 /^X\(\/\).*/{ s//\1/; q; }
15343 s/.*/./; q'`
15344 done
15345 test ! -n "$as_dirs" || mkdir $as_dirs
15346 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15347echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15348 { (exit 1); exit 1; }; }; }
15349
13b2be9c
DJ
15350 ac_builddir=.
15351
15352if test "$ac_dir" != .; then
15353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15354 # A "../" for each directory in $ac_dir_suffix.
15355 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15356else
15357 ac_dir_suffix= ac_top_builddir=
15358fi
15359
15360case $srcdir in
15361 .) # No --srcdir option. We are building in place.
15362 ac_srcdir=.
15363 if test -z "$ac_top_builddir"; then
15364 ac_top_srcdir=.
15365 else
15366 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15367 fi ;;
15368 [\\/]* | ?:[\\/]* ) # Absolute path.
15369 ac_srcdir=$srcdir$ac_dir_suffix;
15370 ac_top_srcdir=$srcdir ;;
15371 *) # Relative path.
15372 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15373 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15374esac
ab509236
L
15375
15376# Do not use `cd foo && pwd` to compute absolute paths, because
15377# the directories may not exist.
15378case `pwd` in
15379.) ac_abs_builddir="$ac_dir";;
15380*)
15381 case "$ac_dir" in
15382 .) ac_abs_builddir=`pwd`;;
15383 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15384 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15385 esac;;
15386esac
15387case $ac_abs_builddir in
15388.) ac_abs_top_builddir=${ac_top_builddir}.;;
15389*)
15390 case ${ac_top_builddir}. in
15391 .) ac_abs_top_builddir=$ac_abs_builddir;;
15392 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15393 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15394 esac;;
15395esac
15396case $ac_abs_builddir in
15397.) ac_abs_srcdir=$ac_srcdir;;
15398*)
15399 case $ac_srcdir in
15400 .) ac_abs_srcdir=$ac_abs_builddir;;
15401 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15402 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15403 esac;;
15404esac
15405case $ac_abs_builddir in
15406.) ac_abs_top_srcdir=$ac_top_srcdir;;
15407*)
15408 case $ac_top_srcdir in
15409 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15410 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15411 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15412 esac;;
15413esac
13b2be9c
DJ
15414
15415
15416 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15417echo "$as_me: executing $ac_dest commands" >&6;}
15418 case $ac_dest in
15419 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15420 # Strip MF so we end up with the name of the file.
15421 mf=`echo "$mf" | sed -e 's/:.*$//'`
15422 # Check whether this is an Automake generated Makefile or not.
15423 # We used to match only the files named `Makefile.in', but
15424 # some people rename them; so instead we look at the file content.
15425 # Grep'ing the first line is not enough: some people post-process
15426 # each Makefile.in and add a new line on top of each file to say so.
15427 # So let's grep whole file.
15428 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15429 dirpart=`(dirname "$mf") 2>/dev/null ||
15430$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15431 X"$mf" : 'X\(//\)[^/]' \| \
15432 X"$mf" : 'X\(//\)$' \| \
15433 X"$mf" : 'X\(/\)' \| \
15434 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15435echo X"$mf" |
15436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15438 /^X\(\/\/\)$/{ s//\1/; q; }
15439 /^X\(\/\).*/{ s//\1/; q; }
15440 s/.*/./; q'`
15441 else
15442 continue
15443 fi
8ea2b00f
AM
15444 # Extract the definition of DEPDIR, am__include, and am__quote
15445 # from the Makefile without running `make'.
4b363073 15446 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 15447 test -z "$DEPDIR" && continue
8ea2b00f
AM
15448 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15449 test -z "am__include" && continue
15450 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 15451 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 15452 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
15453 # Find all dependency output files, they are included files with
15454 # $(DEPDIR) in their names. We invoke sed twice because it is the
15455 # simplest approach to changing $(DEPDIR) to its actual value in the
15456 # expansion.
15457 for file in `sed -n "
15458 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
15459 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15460 # Make sure the directory exists.
15461 test -f "$dirpart/$file" && continue
15462 fdir=`(dirname "$file") 2>/dev/null ||
15463$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15464 X"$file" : 'X\(//\)[^/]' \| \
15465 X"$file" : 'X\(//\)$' \| \
15466 X"$file" : 'X\(/\)' \| \
15467 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15468echo X"$file" |
15469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15471 /^X\(\/\/\)$/{ s//\1/; q; }
15472 /^X\(\/\).*/{ s//\1/; q; }
15473 s/.*/./; q'`
15474 { if $as_mkdir_p; then
15475 mkdir -p $dirpart/$fdir
15476 else
15477 as_dir=$dirpart/$fdir
15478 as_dirs=
15479 while test ! -d "$as_dir"; do
15480 as_dirs="$as_dir $as_dirs"
15481 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15482$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15483 X"$as_dir" : 'X\(//\)[^/]' \| \
15484 X"$as_dir" : 'X\(//\)$' \| \
15485 X"$as_dir" : 'X\(/\)' \| \
15486 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15487echo X"$as_dir" |
15488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15490 /^X\(\/\/\)$/{ s//\1/; q; }
15491 /^X\(\/\).*/{ s//\1/; q; }
15492 s/.*/./; q'`
15493 done
15494 test ! -n "$as_dirs" || mkdir $as_dirs
15495 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15496echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15497 { (exit 1); exit 1; }; }; }
c8615825 15498
13b2be9c
DJ
15499 # echo "creating $dirpart/$file"
15500 echo '# dummy' > "$dirpart/$file"
15501 done
15502done
d7040cdb
SE
15503 ;;
15504 libtool )
15505
15506 # See if we are running on zsh, and set the options which allow our
15507 # commands through without removal of \ escapes.
15508 if test -n "${ZSH_VERSION+set}" ; then
15509 setopt NO_GLOB_SUBST
15510 fi
15511
15512 cfgfile="${ofile}T"
15513 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15514 $RM "$cfgfile"
15515
15516 cat <<_LT_EOF >> "$cfgfile"
15517#! $SHELL
15518
15519# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15520# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15521# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15522# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15523#
15524# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15525# 2006, 2007 Free Software Foundation, Inc.
15526#
15527# This file is part of GNU Libtool:
15528# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15529#
15530# This program is free software; you can redistribute it and/or modify
15531# it under the terms of the GNU General Public License as published by
15532# the Free Software Foundation; either version 2 of the License, or
15533# (at your option) any later version.
15534#
15535# This program is distributed in the hope that it will be useful, but
15536# WITHOUT ANY WARRANTY; without even the implied warranty of
15537# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15538# General Public License for more details.
15539#
15540# You should have received a copy of the GNU General Public License
15541# along with this program; if not, a copy can be downloaded from
15542# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15543# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15544# MA 02110-1301, USA.
15545#
15546# As a special exception to the GNU General Public License, if you
15547# distribute this file as part of a program that contains a
15548# configuration script generated by Autoconf, you may include it under
15549# the same distribution terms that you use for the rest of that program.
15550
15551
15552# The names of the tagged configurations supported by this script.
15553available_tags=""
15554
15555# ### BEGIN LIBTOOL CONFIG
15556
15557# Which release of libtool.m4 was used?
15558macro_version=$macro_version
15559macro_revision=$macro_revision
15560
15561# Whether or not to build shared libraries.
15562build_libtool_libs=$enable_shared
15563
15564# Whether or not to build static libraries.
15565build_old_libs=$enable_static
15566
15567# What type of objects to build.
15568pic_mode=$pic_mode
15569
15570# Whether or not to optimize for fast installation.
15571fast_install=$enable_fast_install
15572
15573# The host system.
15574host_alias=$host_alias
15575host=$host
15576host_os=$host_os
15577
15578# The build system.
15579build_alias=$build_alias
15580build=$build
15581build_os=$build_os
15582
15583# A sed program that does not truncate output.
15584SED=$lt_SED
15585
15586# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15587Xsed="\$SED -e 1s/^X//"
15588
15589# A grep program that handles long lines.
15590GREP=$lt_GREP
15591
15592# An ERE matcher.
15593EGREP=$lt_EGREP
15594
15595# A literal string matcher.
15596FGREP=$lt_FGREP
15597
15598# A BSD- or MS-compatible name lister.
15599NM=$lt_NM
15600
15601# Whether we need soft or hard links.
15602LN_S=$lt_LN_S
15603
15604# What is the maximum length of a command?
15605max_cmd_len=$max_cmd_len
15606
15607# Object file suffix (normally "o").
15608objext=$ac_objext
15609
15610# Executable file suffix (normally "").
15611exeext=$exeext
15612
15613# whether the shell understands "unset".
15614lt_unset=$lt_unset
15615
15616# turn spaces into newlines.
15617SP2NL=$lt_lt_SP2NL
15618
15619# turn newlines into spaces.
15620NL2SP=$lt_lt_NL2SP
15621
15622# How to create reloadable object files.
15623reload_flag=$lt_reload_flag
15624reload_cmds=$lt_reload_cmds
15625
15626# Method to check whether dependent libraries are shared objects.
15627deplibs_check_method=$lt_deplibs_check_method
15628
15629# Command to use when deplibs_check_method == "file_magic".
15630file_magic_cmd=$lt_file_magic_cmd
15631
15632# The archiver.
15633AR=$lt_AR
15634AR_FLAGS=$lt_AR_FLAGS
15635
15636# A symbol stripping program.
15637STRIP=$lt_STRIP
15638
15639# Commands used to install an old-style archive.
15640RANLIB=$lt_RANLIB
15641old_postinstall_cmds=$lt_old_postinstall_cmds
15642old_postuninstall_cmds=$lt_old_postuninstall_cmds
15643
15644# A C compiler.
15645LTCC=$lt_CC
15646
15647# LTCC compiler flags.
15648LTCFLAGS=$lt_CFLAGS
15649
15650# Take the output of nm and produce a listing of raw symbols and C names.
15651global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15652
15653# Transform the output of nm in a proper C declaration.
15654global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15655
15656# Transform the output of nm in a C name address pair.
15657global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15658
15659# The name of the directory that contains temporary libtool files.
15660objdir=$objdir
15661
15662# Shell to use when invoking shell scripts.
15663SHELL=$lt_SHELL
15664
15665# An echo program that does not interpret backslashes.
15666ECHO=$lt_ECHO
15667
15668# Used to examine libraries when file_magic_cmd begins with "file".
15669MAGIC_CMD=$MAGIC_CMD
15670
15671# Must we lock files when doing compilation?
15672need_locks=$lt_need_locks
15673
15674# Old archive suffix (normally "a").
15675libext=$libext
15676
15677# Shared library suffix (normally ".so").
15678shrext_cmds=$lt_shrext_cmds
15679
15680# The commands to extract the exported symbol list from a shared archive.
15681extract_expsyms_cmds=$lt_extract_expsyms_cmds
15682
15683# Variables whose values should be saved in libtool wrapper scripts and
15684# restored at link time.
15685variables_saved_for_relink=$lt_variables_saved_for_relink
15686
15687# Do we need the "lib" prefix for modules?
15688need_lib_prefix=$need_lib_prefix
15689
15690# Do we need a version for libraries?
15691need_version=$need_version
15692
15693# Library versioning type.
15694version_type=$version_type
15695
15696# Shared library runtime path variable.
15697runpath_var=$runpath_var
15698
15699# Shared library path variable.
15700shlibpath_var=$shlibpath_var
15701
15702# Is shlibpath searched before the hard-coded library search path?
15703shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15704
15705# Format of library name prefix.
15706libname_spec=$lt_libname_spec
15707
15708# List of archive names. First name is the real one, the rest are links.
15709# The last name is the one that the linker finds with -lNAME
15710library_names_spec=$lt_library_names_spec
15711
15712# The coded name of the library, if different from the real name.
15713soname_spec=$lt_soname_spec
15714
15715# Command to use after installation of a shared archive.
15716postinstall_cmds=$lt_postinstall_cmds
15717
15718# Command to use after uninstallation of a shared archive.
15719postuninstall_cmds=$lt_postuninstall_cmds
15720
15721# Commands used to finish a libtool library installation in a directory.
15722finish_cmds=$lt_finish_cmds
15723
15724# As "finish_cmds", except a single script fragment to be evaled but
15725# not shown.
15726finish_eval=$lt_finish_eval
15727
15728# Whether we should hardcode library paths into libraries.
15729hardcode_into_libs=$hardcode_into_libs
15730
15731# Compile-time system search path for libraries.
15732sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15733
15734# Run-time system search path for libraries.
15735sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15736
15737# Whether dlopen is supported.
15738dlopen_support=$enable_dlopen
15739
15740# Whether dlopen of programs is supported.
15741dlopen_self=$enable_dlopen_self
15742
15743# Whether dlopen of statically linked programs is supported.
15744dlopen_self_static=$enable_dlopen_self_static
15745
15746# Commands to strip libraries.
15747old_striplib=$lt_old_striplib
15748striplib=$lt_striplib
15749
15750
15751# The linker used to build libraries.
15752LD=$lt_LD
15753
15754# Commands used to build an old-style archive.
15755old_archive_cmds=$lt_old_archive_cmds
15756
15757# A language specific compiler.
15758CC=$lt_compiler
15759
15760# Is the compiler the GNU compiler?
15761with_gcc=$GCC
15762
15763# Compiler flag to turn off builtin functions.
15764no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15765
15766# How to pass a linker flag through the compiler.
15767wl=$lt_lt_prog_compiler_wl
15768
15769# Additional compiler flags for building library objects.
15770pic_flag=$lt_lt_prog_compiler_pic
15771
15772# Compiler flag to prevent dynamic linking.
15773link_static_flag=$lt_lt_prog_compiler_static
15774
15775# Does compiler simultaneously support -c and -o options?
15776compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15777
15778# Whether or not to add -lc for building shared libraries.
15779build_libtool_need_lc=$archive_cmds_need_lc
15780
15781# Whether or not to disallow shared libs when runtime libs are static.
15782allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15783
15784# Compiler flag to allow reflexive dlopens.
15785export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15786
15787# Compiler flag to generate shared objects directly from archives.
15788whole_archive_flag_spec=$lt_whole_archive_flag_spec
15789
15790# Whether the compiler copes with passing no objects directly.
15791compiler_needs_object=$lt_compiler_needs_object
15792
15793# Create an old-style archive from a shared archive.
15794old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15795
15796# Create a temporary old-style archive to link instead of a shared archive.
15797old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15798
15799# Commands used to build a shared archive.
15800archive_cmds=$lt_archive_cmds
15801archive_expsym_cmds=$lt_archive_expsym_cmds
15802
15803# Commands used to build a loadable module if different from building
15804# a shared archive.
15805module_cmds=$lt_module_cmds
15806module_expsym_cmds=$lt_module_expsym_cmds
15807
15808# Whether we are building with GNU ld or not.
15809with_gnu_ld=$lt_with_gnu_ld
15810
15811# Flag that allows shared libraries with undefined symbols to be built.
15812allow_undefined_flag=$lt_allow_undefined_flag
15813
15814# Flag that enforces no undefined symbols.
15815no_undefined_flag=$lt_no_undefined_flag
15816
15817# Flag to hardcode \$libdir into a binary during linking.
15818# This must work even if \$libdir does not exist
15819hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15820
15821# If ld is used when linking, flag to hardcode \$libdir into a binary
15822# during linking. This must work even if \$libdir does not exist.
15823hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15824
15825# Whether we need a single "-rpath" flag with a separated argument.
15826hardcode_libdir_separator=$lt_hardcode_libdir_separator
15827
15828# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15829# DIR into the resulting binary.
15830hardcode_direct=$hardcode_direct
15831
15832# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15833# DIR into the resulting binary and the resulting library dependency is
15834# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15835# library is relocated.
15836hardcode_direct_absolute=$hardcode_direct_absolute
15837
15838# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15839# into the resulting binary.
15840hardcode_minus_L=$hardcode_minus_L
15841
15842# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15843# into the resulting binary.
15844hardcode_shlibpath_var=$hardcode_shlibpath_var
15845
15846# Set to "yes" if building a shared library automatically hardcodes DIR
15847# into the library and all subsequent libraries and executables linked
15848# against it.
15849hardcode_automatic=$hardcode_automatic
15850
15851# Set to yes if linker adds runtime paths of dependent libraries
15852# to runtime path list.
15853inherit_rpath=$inherit_rpath
15854
15855# Whether libtool must link a program against all its dependency libraries.
15856link_all_deplibs=$link_all_deplibs
15857
15858# Fix the shell variable \$srcfile for the compiler.
15859fix_srcfile_path=$lt_fix_srcfile_path
15860
15861# Set to "yes" if exported symbols are required.
15862always_export_symbols=$always_export_symbols
15863
15864# The commands to list exported symbols.
15865export_symbols_cmds=$lt_export_symbols_cmds
15866
15867# Symbols that should not be listed in the preloaded symbols.
15868exclude_expsyms=$lt_exclude_expsyms
15869
15870# Symbols that must always be exported.
15871include_expsyms=$lt_include_expsyms
15872
15873# Commands necessary for linking programs (against libraries) with templates.
15874prelink_cmds=$lt_prelink_cmds
15875
15876# Specify filename containing input files.
15877file_list_spec=$lt_file_list_spec
15878
15879# How to hardcode a shared library path into an executable.
15880hardcode_action=$hardcode_action
15881
15882# ### END LIBTOOL CONFIG
15883
15884_LT_EOF
15885
15886 case $host_os in
15887 aix3*)
15888 cat <<\_LT_EOF >> "$cfgfile"
15889# AIX sometimes has problems with the GCC collect2 program. For some
15890# reason, if we set the COLLECT_NAMES environment variable, the problems
15891# vanish in a puff of smoke.
15892if test "X${COLLECT_NAMES+set}" != Xset; then
15893 COLLECT_NAMES=
15894 export COLLECT_NAMES
15895fi
15896_LT_EOF
15897 ;;
15898 esac
15899
15900
15901ltmain="$ac_aux_dir/ltmain.sh"
15902
15903
15904 # We use sed instead of cat because bash on DJGPP gets confused if
15905 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15906 # text mode, it properly converts lines to CR/LF. This bash problem
15907 # is reportedly fixed, but why not run on old versions too?
15908 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15909 || (rm -f "$cfgfile"; exit 1)
15910
15911 case $xsi_shell in
15912 yes)
15913 cat << \_LT_EOF >> "$cfgfile"
15914# func_dirname file append nondir_replacement
15915# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15916# otherwise set result to NONDIR_REPLACEMENT.
15917func_dirname ()
15918{
15919 case ${1} in
15920 */*) func_dirname_result="${1%/*}${2}" ;;
15921 * ) func_dirname_result="${3}" ;;
15922 esac
15923}
15924
15925# func_basename file
15926func_basename ()
15927{
15928 func_basename_result="${1##*/}"
15929}
15930
15931# func_stripname prefix suffix name
15932# strip PREFIX and SUFFIX off of NAME.
15933# PREFIX and SUFFIX must not contain globbing or regex special
15934# characters, hashes, percent signs, but SUFFIX may contain a leading
15935# dot (in which case that matches only a dot).
15936func_stripname ()
15937{
15938 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15939 # positional parameters, so assign one to ordinary parameter first.
15940 func_stripname_result=${3}
15941 func_stripname_result=${func_stripname_result#"${1}"}
15942 func_stripname_result=${func_stripname_result%"${2}"}
15943}
15944
15945# func_opt_split
15946func_opt_split ()
15947{
15948 func_opt_split_opt=${1%%=*}
15949 func_opt_split_arg=${1#*=}
15950}
15951
15952# func_lo2o object
15953func_lo2o ()
15954{
15955 case ${1} in
15956 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15957 *) func_lo2o_result=${1} ;;
15958 esac
15959}
15960_LT_EOF
15961 ;;
15962 *) # Bourne compatible functions.
15963 cat << \_LT_EOF >> "$cfgfile"
15964# func_dirname file append nondir_replacement
15965# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15966# otherwise set result to NONDIR_REPLACEMENT.
15967func_dirname ()
15968{
15969 # Extract subdirectory from the argument.
15970 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15971 if test "X$func_dirname_result" = "X${1}"; then
15972 func_dirname_result="${3}"
15973 else
15974 func_dirname_result="$func_dirname_result${2}"
15975 fi
15976}
15977
15978# func_basename file
15979func_basename ()
15980{
15981 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15982}
15983
15984# func_stripname prefix suffix name
15985# strip PREFIX and SUFFIX off of NAME.
15986# PREFIX and SUFFIX must not contain globbing or regex special
15987# characters, hashes, percent signs, but SUFFIX may contain a leading
15988# dot (in which case that matches only a dot).
15989# func_strip_suffix prefix name
15990func_stripname ()
15991{
15992 case ${2} in
15993 .*) func_stripname_result=`$ECHO "X${3}" \
15994 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15995 *) func_stripname_result=`$ECHO "X${3}" \
15996 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15997 esac
15998}
15999
16000# sed scripts:
16001my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16002my_sed_long_arg='1s/^-[^=]*=//'
16003
16004# func_opt_split
16005func_opt_split ()
16006{
16007 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16008 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16009}
16010
16011# func_lo2o object
16012func_lo2o ()
16013{
16014 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16015}
16016_LT_EOF
16017esac
16018
16019case $lt_shell_append in
16020 yes)
16021 cat << \_LT_EOF >> "$cfgfile"
16022
16023# func_append var value
16024# Append VALUE to the end of shell variable VAR.
16025func_append ()
16026{
16027 eval "$1+=\$2"
16028}
16029_LT_EOF
16030 ;;
16031 *)
16032 cat << \_LT_EOF >> "$cfgfile"
16033
16034# func_append var value
16035# Append VALUE to the end of shell variable VAR.
16036func_append ()
16037{
16038 eval "$1=\$$1\$2"
16039}
16040_LT_EOF
16041 ;;
16042 esac
16043
16044
16045 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16046 || (rm -f "$cfgfile"; exit 1)
16047
16048 mv -f "$cfgfile" "$ofile" ||
16049 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16050 chmod +x "$ofile"
16051
13b2be9c 16052 ;;
20e95c23
DJ
16053 default-1 )
16054 for ac_file in $CONFIG_FILES; do
16055 # Support "outfile[:infile[:infile...]]"
16056 case "$ac_file" in
16057 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16058 esac
16059 # PO directories have a Makefile.in generated from Makefile.in.in.
16060 case "$ac_file" in */Makefile.in)
16061 # Adjust a relative srcdir.
16062 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16063 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16064 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16065 # In autoconf-2.13 it is called $ac_given_srcdir.
16066 # In autoconf-2.50 it is called $srcdir.
16067 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16068 case "$ac_given_srcdir" in
16069 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16070 /*) top_srcdir="$ac_given_srcdir" ;;
16071 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16072 esac
16073 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16074 rm -f "$ac_dir/POTFILES"
16075 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16076 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16077 POMAKEFILEDEPS="POTFILES.in"
16078 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16079 # on $ac_dir but don't depend on user-specified configuration
16080 # parameters.
16081 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16082 # The LINGUAS file contains the set of available languages.
16083 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16084 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16085 fi
16086 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16087 # Hide the ALL_LINGUAS assigment from automake.
16088 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16089 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16090 else
16091 # The set of available languages was given in configure.in.
16092 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16093 fi
16094 case "$ac_given_srcdir" in
16095 .) srcdirpre= ;;
16096 *) srcdirpre='$(srcdir)/' ;;
16097 esac
16098 POFILES=
16099 GMOFILES=
16100 UPDATEPOFILES=
16101 DUMMYPOFILES=
16102 for lang in $ALL_LINGUAS; do
16103 POFILES="$POFILES $srcdirpre$lang.po"
16104 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16105 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16106 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16107 done
16108 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16109 # environment variable.
16110 INST_LINGUAS=
16111 if test -n "$ALL_LINGUAS"; then
16112 for presentlang in $ALL_LINGUAS; do
16113 useit=no
16114 if test "%UNSET%" != "$LINGUAS"; then
16115 desiredlanguages="$LINGUAS"
16116 else
16117 desiredlanguages="$ALL_LINGUAS"
16118 fi
16119 for desiredlang in $desiredlanguages; do
16120 # Use the presentlang catalog if desiredlang is
16121 # a. equal to presentlang, or
16122 # b. a variant of presentlang (because in this case,
16123 # presentlang can be used as a fallback for messages
16124 # which are not translated in the desiredlang catalog).
16125 case "$desiredlang" in
16126 "$presentlang"*) useit=yes;;
16127 esac
16128 done
16129 if test $useit = yes; then
16130 INST_LINGUAS="$INST_LINGUAS $presentlang"
16131 fi
16132 done
16133 fi
16134 CATALOGS=
16135 if test -n "$INST_LINGUAS"; then
16136 for lang in $INST_LINGUAS; do
16137 CATALOGS="$CATALOGS $lang.gmo"
16138 done
16139 fi
16140 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16141 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"
16142 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16143 if test -f "$f"; then
16144 case "$f" in
16145 *.orig | *.bak | *~) ;;
16146 *) cat "$f" >> "$ac_dir/Makefile" ;;
16147 esac
16148 fi
16149 done
16150 fi
16151 ;;
16152 esac
16153 done ;;
13b2be9c 16154 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
16155 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16156 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16157 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16158 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16159 if test "x$cgen_cpu_prefix" != x ; then
16160 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16161 fi ;;
13b2be9c
DJ
16162 esac
16163done
16164_ACEOF
16165
16166cat >>$CONFIG_STATUS <<\_ACEOF
16167
16168{ (exit 0); exit 0; }
16169_ACEOF
252b5132 16170chmod +x $CONFIG_STATUS
13b2be9c
DJ
16171ac_clean_files=$ac_clean_files_save
16172
16173
16174# configure is writing to config.log, and then calls config.status.
16175# config.status does its own redirection, appending to config.log.
16176# Unfortunately, on DOS this fails, as config.log is still kept open
16177# by configure, so config.status won't be able to write to it; its
16178# output is simply discarded. So we exec the FD to /dev/null,
16179# effectively closing config.log, so it can be properly (re)opened and
16180# appended to by config.status. When coming back to configure, we
16181# need to make the FD available again.
16182if test "$no_create" != yes; then
16183 ac_cs_success=:
16184 ac_config_status_args=
16185 test "$silent" = yes &&
16186 ac_config_status_args="$ac_config_status_args --quiet"
16187 exec 5>/dev/null
16188 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16189 exec 5>>config.log
16190 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16191 # would make configure fail if this is the last instruction.
16192 $ac_cs_success || { (exit 1); exit 1; }
16193fi
252b5132 16194