* configure.ac: m4_include config/proginstall.m4.
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 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.
42ecbf5e
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
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
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
221 test -d ./-p && rmdir ./-p
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.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
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
42ecbf5e
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
42ecbf5e
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
42ecbf5e
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="ldmain.c"
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
ce2cded5 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 use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files='TDIRS'
252b5132
RH
463
464# Initialize some variables set by options.
42ecbf5e
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.
42ecbf5e 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
42ecbf5e
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
42ecbf5e 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
42ecbf5e 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=*)
42ecbf5e 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
42ecbf5e 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 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=*)
42ecbf5e
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=*)
42ecbf5e 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
42ecbf5e 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
42ecbf5e
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-*)
42ecbf5e 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
42ecbf5e
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
42ecbf5e 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=*)
42ecbf5e 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
42ecbf5e
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)
42ecbf5e 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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 \
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 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=*)
42ecbf5e 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
42ecbf5e 710 site=$ac_optarg ;;
85fbca6a 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 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=*)
42ecbf5e 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
42ecbf5e
DJ
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
42ecbf5e 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
42ecbf5e
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'`
42ecbf5e
DJ
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
42ecbf5e 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
42ecbf5e 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
42ecbf5e
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=*)
42ecbf5e 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=*)
42ecbf5e 773 x_libraries=$ac_optarg ;;
252b5132 774
42ecbf5e
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
42ecbf5e
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 *)
42ecbf5e
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
42ecbf5e
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; }; }
252b5132 805fi
252b5132 806
42ecbf5e
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
42ecbf5e
DJ
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
42ecbf5e
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
42ecbf5e
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
e5a52504 847
42ecbf5e
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.
42ecbf5e
DJ
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
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
42ecbf5e
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
42ecbf5e
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
42ecbf5e
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
252b5132 922
42ecbf5e
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.
252b5132 931
42ecbf5e 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
42ecbf5e
DJ
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 936
42ecbf5e 937Defaults for the options are specified in brackets.
ac48eca1 938
42ecbf5e
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
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
ac48eca1 958
42ecbf5e
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'.
ac48eca1 963
42ecbf5e 964For better control, use the options below.
ac48eca1 965
42ecbf5e
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
ac48eca1 980
42ecbf5e 981 cat <<\_ACEOF
252b5132 982
42ecbf5e
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
252b5132 987
42ecbf5e
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
252b5132 993fi
252b5132 994
42ecbf5e 995if test -n "$ac_init_help"; then
252b5132 996
42ecbf5e 997 cat <<\_ACEOF
e5a52504 998
42ecbf5e
DJ
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
ce2cded5
L
1004 --enable-targets alternative target configurations
1005 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1006 --enable-werror treat compile warnings as errors
1007 --enable-build-warnings enable build-time compiler warnings
d7040cdb
SE
1008 --enable-shared[=PKGS]
1009 build shared libraries [default=yes]
1010 --enable-static[=PKGS]
1011 build static libraries [default=yes]
1012 --enable-fast-install[=PKGS]
1013 optimize for fast installation [default=yes]
42ecbf5e 1014 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e
DJ
1015 --disable-nls do not use Native Language Support
1016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
1018
1019Optional Packages:
1020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1022 --with-lib-path=dir1:dir2... set default LIB_PATH
1023 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42ecbf5e
DJ
1027
1028Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
1036
1037Use these variables to override the choices made by `configure' or to help
1038it to find libraries and programs with nonstandard names/locations.
1039
1040_ACEOF
1041fi
1042
1043if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054else
1055 ac_dir_suffix= ac_top_builddir=
1056fi
1057
1058case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
1072esac
1073
42ecbf5e
DJ
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084esac
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111esac
a2d91340 1112
42ecbf5e
DJ
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
502bdb00 1128 cd $ac_popdir
42ecbf5e 1129 done
a2d91340
AC
1130fi
1131
42ecbf5e
DJ
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
a2d91340 1135
42ecbf5e
DJ
1136Copyright (C) 2003 Free Software Foundation, Inc.
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
a2d91340 1146
42ecbf5e
DJ
1147It was created by $as_me, which was
1148generated by GNU Autoconf 2.59. Invocation command line was
a2d91340 1149
42ecbf5e 1150 $ $0 $@
a2d91340 1151
42ecbf5e
DJ
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
252b5132 1185
42ecbf5e 1186} >&5
5d64ca4e 1187
42ecbf5e 1188cat >&5 <<_ACEOF
5d64ca4e 1189
5d64ca4e 1190
42ecbf5e
DJ
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
5d64ca4e 1194
42ecbf5e 1195_ACEOF
2469cfa2 1196
42ecbf5e
DJ
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
1200# Strip out --silent because we don't want to record it for future runs.
1201# Also quote any args containing shell meta-characters.
1202# Make two passes to allow for proper duplicate-argument suppression.
1203ac_configure_args=
1204ac_configure_args0=
1205ac_configure_args1=
1206ac_sep=
1207ac_must_keep_next=false
1208for ac_pass in 1 2
1209do
1210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
1245done
1246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249# When interrupted or exit'd, cleanup temporary files, and complete
1250# config.log. We remove comments because anyway the quotes in there
1251# would cause problems or look ugly.
1252# WARNING: Be sure not to use single quotes in there, as some shells,
1253# such as our DU 5.0 friend, will then `close' the trap.
1254trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266{
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273 ;;
1274 *)
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ;;
1278 esac;
1279}
1280 echo
1281
1282 cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297## ------------- ##
1298## Output files. ##
1299## ------------- ##
1300_ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312## ----------- ##
1313## confdefs.h. ##
1314## ----------- ##
1315_ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373fi
1374for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381done
1382
1383if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1424echo "$as_me: former value: $ac_old_val" >&2;}
1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1426echo "$as_me: current value: $ac_new_val" >&2;}
1427 ac_cache_corrupted=:
1428 fi;;
1429 esac
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1432 case $ac_new_val in
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1436 esac
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440 esac
1441 fi
1442done
1443if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1449fi
1450
1451ac_ext=c
1452ac_cpp='$CPP $CPPFLAGS'
1453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476ac_aux_dir=
1477for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1478 if test -f $ac_dir/install-sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install-sh -c"
1481 break
1482 elif test -f $ac_dir/install.sh; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/install.sh -c"
1485 break
1486 elif test -f $ac_dir/shtool; then
1487 ac_aux_dir=$ac_dir
1488 ac_install_sh="$ac_aux_dir/shtool install -c"
1489 break
1490 fi
1491done
1492if test -z "$ac_aux_dir"; then
1493 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1494echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1495 { (exit 1); exit 1; }; }
1496fi
1497ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1498ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1499ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1500
1501# Make sure we can run config.sub.
1502$ac_config_sub sun4 >/dev/null 2>&1 ||
1503 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1504echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1505 { (exit 1); exit 1; }; }
1506
1507echo "$as_me:$LINENO: checking build system type" >&5
1508echo $ECHO_N "checking build system type... $ECHO_C" >&6
1509if test "${ac_cv_build+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1511else
1512 ac_cv_build_alias=$build_alias
1513test -z "$ac_cv_build_alias" &&
1514 ac_cv_build_alias=`$ac_config_guess`
1515test -z "$ac_cv_build_alias" &&
1516 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1517echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1518 { (exit 1); exit 1; }; }
1519ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1520 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1521echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524fi
1525echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1526echo "${ECHO_T}$ac_cv_build" >&6
1527build=$ac_cv_build
1528build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1529build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1530build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1531
1532
1533echo "$as_me:$LINENO: checking host system type" >&5
1534echo $ECHO_N "checking host system type... $ECHO_C" >&6
1535if test "${ac_cv_host+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 ac_cv_host_alias=$host_alias
1539test -z "$ac_cv_host_alias" &&
1540 ac_cv_host_alias=$ac_cv_build_alias
1541ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1542 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1543echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1544 { (exit 1); exit 1; }; }
1545
1546fi
1547echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1548echo "${ECHO_T}$ac_cv_host" >&6
1549host=$ac_cv_host
1550host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1551host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1552host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1553
1554
1555echo "$as_me:$LINENO: checking target system type" >&5
1556echo $ECHO_N "checking target system type... $ECHO_C" >&6
1557if test "${ac_cv_target+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 ac_cv_target_alias=$target_alias
1561test "x$ac_cv_target_alias" = "x" &&
1562 ac_cv_target_alias=$ac_cv_host_alias
1563ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1564 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1565echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1566 { (exit 1); exit 1; }; }
1567
1568fi
1569echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1570echo "${ECHO_T}$ac_cv_target" >&6
1571target=$ac_cv_target
1572target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575
1576
1577# The aliases save the names the user supplied, while $host etc.
1578# will get canonicalized.
1579test -n "$target_alias" &&
1580 test "$program_prefix$program_suffix$program_transform_name" = \
1581 NONENONEs,x,x, &&
1582 program_prefix=${target_alias}-
1583ac_ext=c
1584ac_cpp='$CPP $CPPFLAGS'
1585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1587ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588if test -n "$ac_tool_prefix"; then
1589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1590set dummy ${ac_tool_prefix}gcc; ac_word=$2
1591echo "$as_me:$LINENO: checking for $ac_word" >&5
1592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598else
1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610done
1611done
1612
1613fi
1614fi
1615CC=$ac_cv_prog_CC
1616if test -n "$CC"; then
1617 echo "$as_me:$LINENO: result: $CC" >&5
1618echo "${ECHO_T}$CC" >&6
1619else
1620 echo "$as_me:$LINENO: result: no" >&5
1621echo "${ECHO_T}no" >&6
1622fi
1623
1624fi
1625if test -z "$ac_cv_prog_CC"; then
1626 ac_ct_CC=$CC
1627 # Extract the first word of "gcc", so it can be a program name with args.
1628set dummy gcc; ac_word=$2
1629echo "$as_me:$LINENO: checking for $ac_word" >&5
1630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633else
1634 if test -n "$ac_ct_CC"; then
1635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1636else
1637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_ac_ct_CC="gcc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 break 2
1647 fi
1648done
1649done
1650
1651fi
1652fi
1653ac_ct_CC=$ac_cv_prog_ac_ct_CC
1654if test -n "$ac_ct_CC"; then
1655 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1656echo "${ECHO_T}$ac_ct_CC" >&6
1657else
1658 echo "$as_me:$LINENO: result: no" >&5
1659echo "${ECHO_T}no" >&6
1660fi
1661
1662 CC=$ac_ct_CC
1663else
1664 CC="$ac_cv_prog_CC"
1665fi
1666
1667if test -z "$CC"; then
1668 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1670set dummy ${ac_tool_prefix}cc; ac_word=$2
1671echo "$as_me:$LINENO: checking for $ac_word" >&5
1672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673if test "${ac_cv_prog_CC+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676 if test -n "$CC"; then
1677 ac_cv_prog_CC="$CC" # Let the user override the test.
1678else
1679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680for as_dir in $PATH
1681do
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_CC="${ac_tool_prefix}cc"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1689 fi
1690done
1691done
1692
1693fi
1694fi
1695CC=$ac_cv_prog_CC
1696if test -n "$CC"; then
1697 echo "$as_me:$LINENO: result: $CC" >&5
1698echo "${ECHO_T}$CC" >&6
1699else
1700 echo "$as_me:$LINENO: result: no" >&5
1701echo "${ECHO_T}no" >&6
1702fi
1703
1704fi
1705if test -z "$ac_cv_prog_CC"; then
1706 ac_ct_CC=$CC
1707 # Extract the first word of "cc", so it can be a program name with args.
1708set dummy cc; ac_word=$2
1709echo "$as_me:$LINENO: checking for $ac_word" >&5
1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714 if test -n "$ac_ct_CC"; then
1715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1716else
1717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718for as_dir in $PATH
1719do
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_CC="cc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1727 fi
1728done
1729done
1730
1731fi
1732fi
1733ac_ct_CC=$ac_cv_prog_ac_ct_CC
1734if test -n "$ac_ct_CC"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1736echo "${ECHO_T}$ac_ct_CC" >&6
1737else
1738 echo "$as_me:$LINENO: result: no" >&5
1739echo "${ECHO_T}no" >&6
1740fi
1741
1742 CC=$ac_ct_CC
1743else
1744 CC="$ac_cv_prog_CC"
1745fi
1746
1747fi
1748if test -z "$CC"; then
1749 # Extract the first word of "cc", so it can be a program name with args.
1750set dummy cc; ac_word=$2
1751echo "$as_me:$LINENO: checking for $ac_word" >&5
1752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC="$CC" # Let the user override the test.
1758else
1759 ac_prog_rejected=no
1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1768 ac_prog_rejected=yes
1769 continue
1770 fi
1771 ac_cv_prog_CC="cc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 break 2
1774 fi
1775done
1776done
1777
1778if test $ac_prog_rejected = yes; then
1779 # We found a bogon in the path, so make sure we never use it.
1780 set dummy $ac_cv_prog_CC
1781 shift
1782 if test $# != 0; then
1783 # We chose a different compiler from the bogus one.
1784 # However, it has the same basename, so the bogon will be chosen
1785 # first if we set CC to just the basename; use the full file name.
1786 shift
1787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1788 fi
1789fi
1790fi
1791fi
1792CC=$ac_cv_prog_CC
1793if test -n "$CC"; then
1794 echo "$as_me:$LINENO: result: $CC" >&5
1795echo "${ECHO_T}$CC" >&6
1796else
1797 echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801fi
1802if test -z "$CC"; then
1803 if test -n "$ac_tool_prefix"; then
1804 for ac_prog in cl
1805 do
1806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1826 fi
1827done
1828done
1829
1830fi
1831fi
1832CC=$ac_cv_prog_CC
1833if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835echo "${ECHO_T}$CC" >&6
1836else
1837 echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841 test -n "$CC" && break
1842 done
1843fi
1844if test -z "$CC"; then
1845 ac_ct_CC=$CC
1846 for ac_prog in cl
1847do
1848 # Extract the first word of "$ac_prog", so it can be a program name with args.
1849set dummy $ac_prog; ac_word=$2
1850echo "$as_me:$LINENO: checking for $ac_word" >&5
1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857else
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="$ac_prog"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1868 fi
1869done
1870done
1871
1872fi
1873fi
1874ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877echo "${ECHO_T}$ac_ct_CC" >&6
1878else
1879 echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881fi
1882
1883 test -n "$ac_ct_CC" && break
1884done
1885
1886 CC=$ac_ct_CC
1887fi
1888
1889fi
1890
1891
1892test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1893See \`config.log' for more details." >&5
1894echo "$as_me: error: no acceptable C compiler found in \$PATH
1895See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
1897
1898# Provide some information about the compiler.
1899echo "$as_me:$LINENO:" \
1900 "checking for C compiler version" >&5
1901ac_compiler=`set X $ac_compile; echo $2`
1902{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1903 (eval $ac_compiler --version </dev/null >&5) 2>&5
1904 ac_status=$?
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }
1907{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1908 (eval $ac_compiler -v </dev/null >&5) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }
1912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1913 (eval $ac_compiler -V </dev/null >&5) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }
1917
1918cat >conftest.$ac_ext <<_ACEOF
1919/* confdefs.h. */
1920_ACEOF
1921cat confdefs.h >>conftest.$ac_ext
1922cat >>conftest.$ac_ext <<_ACEOF
1923/* end confdefs.h. */
1924
1925int
1926main ()
1927{
1928
1929 ;
1930 return 0;
1931}
1932_ACEOF
1933ac_clean_files_save=$ac_clean_files
1934ac_clean_files="$ac_clean_files a.out a.exe b.out"
1935# Try to create an executable without -o first, disregard a.out.
1936# It will help us diagnose broken compilers, and finding out an intuition
1937# of exeext.
1938echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1939echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1940ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1941if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1942 (eval $ac_link_default) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 # Find the output, starting from the most likely. This scheme is
1947# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1948# resort.
1949
1950# Be careful to initialize this variable, since it used to be cached.
1951# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1952ac_cv_exeext=
1953# b.out is created by i960 compilers.
1954for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1955do
1956 test -f "$ac_file" || continue
1957 case $ac_file in
1958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1959 ;;
1960 conftest.$ac_ext )
1961 # This is the source file.
1962 ;;
1963 [ab].out )
1964 # We found the default executable, but exeext='' is most
1965 # certainly right.
1966 break;;
1967 *.* )
1968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1969 # FIXME: I believe we export ac_cv_exeext for Libtool,
1970 # but it would be cool to find out if it's true. Does anybody
1971 # maintain Libtool? --akim.
1972 export ac_cv_exeext
1973 break;;
1974 * )
1975 break;;
1976 esac
1977done
1978else
1979 echo "$as_me: failed program was:" >&5
1980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1983See \`config.log' for more details." >&5
1984echo "$as_me: error: C compiler cannot create executables
1985See \`config.log' for more details." >&2;}
1986 { (exit 77); exit 77; }; }
1987fi
1988
1989ac_exeext=$ac_cv_exeext
1990echo "$as_me:$LINENO: result: $ac_file" >&5
1991echo "${ECHO_T}$ac_file" >&6
1992
1993# Check the compiler produces executables we can run. If not, either
1994# the compiler is broken, or we cross compile.
1995echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1996echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1997# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1998# If not cross compiling, check that we can run a simple program.
1999if test "$cross_compiling" != yes; then
2000 if { ac_try='./$ac_file'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2006 cross_compiling=no
2007 else
2008 if test "$cross_compiling" = maybe; then
2009 cross_compiling=yes
2010 else
2011 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2012If you meant to cross compile, use \`--host'.
2013See \`config.log' for more details." >&5
2014echo "$as_me: error: cannot run C compiled programs.
2015If you meant to cross compile, use \`--host'.
2016See \`config.log' for more details." >&2;}
2017 { (exit 1); exit 1; }; }
2018 fi
2019 fi
2020fi
2021echo "$as_me:$LINENO: result: yes" >&5
2022echo "${ECHO_T}yes" >&6
2023
2024rm -f a.out a.exe conftest$ac_cv_exeext b.out
2025ac_clean_files=$ac_clean_files_save
2026# Check the compiler produces executables we can run. If not, either
2027# the compiler is broken, or we cross compile.
2028echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2029echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2030echo "$as_me:$LINENO: result: $cross_compiling" >&5
2031echo "${ECHO_T}$cross_compiling" >&6
2032
2033echo "$as_me:$LINENO: checking for suffix of executables" >&5
2034echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2036 (eval $ac_link) 2>&5
2037 ac_status=$?
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; then
2040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2041# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2042# work properly (i.e., refer to `conftest.exe'), while it won't with
2043# `rm'.
2044for ac_file in conftest.exe conftest conftest.*; do
2045 test -f "$ac_file" || continue
2046 case $ac_file in
2047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049 export ac_cv_exeext
2050 break;;
2051 * ) break;;
2052 esac
2053done
2054else
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2056See \`config.log' for more details." >&5
2057echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2058See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }
2060fi
2061
2062rm -f conftest$ac_cv_exeext
2063echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2064echo "${ECHO_T}$ac_cv_exeext" >&6
2065
2066rm -f conftest.$ac_ext
2067EXEEXT=$ac_cv_exeext
2068ac_exeext=$EXEEXT
2069echo "$as_me:$LINENO: checking for suffix of object files" >&5
2070echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2071if test "${ac_cv_objext+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
2074 cat >conftest.$ac_ext <<_ACEOF
2075/* confdefs.h. */
2076_ACEOF
2077cat confdefs.h >>conftest.$ac_ext
2078cat >>conftest.$ac_ext <<_ACEOF
2079/* end confdefs.h. */
2080
2081int
2082main ()
2083{
2084
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089rm -f conftest.o conftest.obj
2090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2096 case $ac_file in
2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2099 break;;
2100 esac
2101done
2102else
2103 echo "$as_me: failed program was:" >&5
2104sed 's/^/| /' conftest.$ac_ext >&5
2105
2106{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2107See \`config.log' for more details." >&5
2108echo "$as_me: error: cannot compute suffix of object files: cannot compile
2109See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2111fi
2112
2113rm -f conftest.$ac_cv_objext conftest.$ac_ext
2114fi
2115echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2116echo "${ECHO_T}$ac_cv_objext" >&6
2117OBJEXT=$ac_cv_objext
2118ac_objext=$OBJEXT
2119echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2120echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2121if test "${ac_cv_c_compiler_gnu+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124 cat >conftest.$ac_ext <<_ACEOF
2125/* confdefs.h. */
2126_ACEOF
2127cat confdefs.h >>conftest.$ac_ext
2128cat >>conftest.$ac_ext <<_ACEOF
2129/* end confdefs.h. */
2130
2131int
2132main ()
2133{
2134#ifndef __GNUC__
2135 choke me
2136#endif
2137
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142rm -f conftest.$ac_objext
2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2145 ac_status=$?
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
502bdb00
JW
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
42ecbf5e
DJ
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 ac_compiler_gnu=yes
2165else
2166 echo "$as_me: failed program was:" >&5
2167sed 's/^/| /' conftest.$ac_ext >&5
2168
2169ac_compiler_gnu=no
2170fi
2171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172ac_cv_c_compiler_gnu=$ac_compiler_gnu
2173
2174fi
2175echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2176echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2177GCC=`test $ac_compiler_gnu = yes && echo yes`
2178ac_test_CFLAGS=${CFLAGS+set}
2179ac_save_CFLAGS=$CFLAGS
2180CFLAGS="-g"
2181echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2182echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2183if test "${ac_cv_prog_cc_g+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185else
2186 cat >conftest.$ac_ext <<_ACEOF
2187/* confdefs.h. */
2188_ACEOF
2189cat confdefs.h >>conftest.$ac_ext
2190cat >>conftest.$ac_ext <<_ACEOF
2191/* end confdefs.h. */
2192
2193int
2194main ()
2195{
2196
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201rm -f conftest.$ac_objext
2202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203 (eval $ac_compile) 2>conftest.er1
2204 ac_status=$?
2205 grep -v '^ *+' conftest.er1 >conftest.err
2206 rm -f conftest.er1
2207 cat conftest.err >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); } &&
502bdb00
JW
2210 { ac_try='test -z "$ac_c_werror_flag"
2211 || test ! -s conftest.err'
42ecbf5e
DJ
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; } &&
2217 { ac_try='test -s conftest.$ac_objext'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2223 ac_cv_prog_cc_g=yes
2224else
2225 echo "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228ac_cv_prog_cc_g=no
2229fi
2230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2231fi
2232echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2234if test "$ac_test_CFLAGS" = set; then
2235 CFLAGS=$ac_save_CFLAGS
2236elif test $ac_cv_prog_cc_g = yes; then
2237 if test "$GCC" = yes; then
2238 CFLAGS="-g -O2"
2239 else
2240 CFLAGS="-g"
2241 fi
2242else
2243 if test "$GCC" = yes; then
2244 CFLAGS="-O2"
2245 else
2246 CFLAGS=
2247 fi
2248fi
2249echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2250echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2251if test "${ac_cv_prog_cc_stdc+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 ac_cv_prog_cc_stdc=no
2255ac_save_CC=$CC
2256cat >conftest.$ac_ext <<_ACEOF
2257/* confdefs.h. */
2258_ACEOF
2259cat confdefs.h >>conftest.$ac_ext
2260cat >>conftest.$ac_ext <<_ACEOF
2261/* end confdefs.h. */
2262#include <stdarg.h>
2263#include <stdio.h>
2264#include <sys/types.h>
2265#include <sys/stat.h>
2266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2267struct buf { int x; };
2268FILE * (*rcsopen) (struct buf *, struct stat *, int);
2269static char *e (p, i)
2270 char **p;
2271 int i;
2272{
2273 return p[i];
2274}
2275static char *f (char * (*g) (char **, int), char **p, ...)
2276{
2277 char *s;
2278 va_list v;
2279 va_start (v,p);
2280 s = g (p, va_arg (v,int));
2281 va_end (v);
2282 return s;
2283}
2284
2285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2286 function prototypes and stuff, but not '\xHH' hex character constants.
2287 These don't provoke an error unfortunately, instead are silently treated
2288 as 'x'. The following induces an error, until -std1 is added to get
2289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2290 array size at least. It's necessary to write '\x00'==0 to get something
2291 that's true only with -std1. */
2292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2293
2294int test (int i, double x);
2295struct s1 {int (*f) (int a);};
2296struct s2 {int (*f) (double a);};
2297int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2298int argc;
2299char **argv;
2300int
2301main ()
2302{
2303return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2304 ;
2305 return 0;
2306}
2307_ACEOF
2308# Don't try gcc -ansi; that turns off useful extensions and
2309# breaks some systems' header files.
2310# AIX -qlanglvl=ansi
2311# Ultrix and OSF/1 -std1
2312# HP-UX 10.20 and later -Ae
2313# HP-UX older versions -Aa -D_HPUX_SOURCE
2314# SVR4 -Xc -D__EXTENSIONS__
2315for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2316do
2317 CC="$ac_save_CC $ac_arg"
2318 rm -f conftest.$ac_objext
2319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>conftest.er1
2321 ac_status=$?
2322 grep -v '^ *+' conftest.er1 >conftest.err
2323 rm -f conftest.er1
2324 cat conftest.err >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
502bdb00
JW
2327 { ac_try='test -z "$ac_c_werror_flag"
2328 || test ! -s conftest.err'
42ecbf5e
DJ
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 (eval $ac_try) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2340 ac_cv_prog_cc_stdc=$ac_arg
2341break
2342else
2343 echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346fi
2347rm -f conftest.err conftest.$ac_objext
2348done
2349rm -f conftest.$ac_ext conftest.$ac_objext
2350CC=$ac_save_CC
2351
2352fi
2353
2354case "x$ac_cv_prog_cc_stdc" in
2355 x|xno)
2356 echo "$as_me:$LINENO: result: none needed" >&5
2357echo "${ECHO_T}none needed" >&6 ;;
2358 *)
2359 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2360echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2361 CC="$CC $ac_cv_prog_cc_stdc" ;;
2362esac
2363
2364# Some people use a C++ compiler to compile C. Since we use `exit',
2365# in C++ we need to declare it. In case someone uses the same compiler
2366# for both compiling C and C++ we need to have the C++ compiler decide
2367# the declaration of exit, since it's the most demanding environment.
2368cat >conftest.$ac_ext <<_ACEOF
2369#ifndef __cplusplus
2370 choke me
2371#endif
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2376 ac_status=$?
2377 grep -v '^ *+' conftest.er1 >conftest.err
2378 rm -f conftest.er1
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
502bdb00
JW
2382 { ac_try='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
42ecbf5e
DJ
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 (eval $ac_try) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2395 for ac_declaration in \
2396 '' \
2397 'extern "C" void std::exit (int) throw (); using std::exit;' \
2398 'extern "C" void std::exit (int); using std::exit;' \
2399 'extern "C" void exit (int) throw ();' \
2400 'extern "C" void exit (int);' \
2401 'void exit (int);'
2402do
2403 cat >conftest.$ac_ext <<_ACEOF
2404/* confdefs.h. */
2405_ACEOF
2406cat confdefs.h >>conftest.$ac_ext
2407cat >>conftest.$ac_ext <<_ACEOF
2408/* end confdefs.h. */
2409$ac_declaration
2410#include <stdlib.h>
2411int
2412main ()
2413{
2414exit (42);
2415 ;
2416 return 0;
2417}
2418_ACEOF
2419rm -f conftest.$ac_objext
2420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2422 ac_status=$?
2423 grep -v '^ *+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
502bdb00
JW
2428 { ac_try='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
42ecbf5e
DJ
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 :
2442else
2443 echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
2445
2446continue
2447fi
2448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449 cat >conftest.$ac_ext <<_ACEOF
2450/* confdefs.h. */
2451_ACEOF
2452cat confdefs.h >>conftest.$ac_ext
2453cat >>conftest.$ac_ext <<_ACEOF
2454/* end confdefs.h. */
2455$ac_declaration
2456int
2457main ()
2458{
2459exit (42);
2460 ;
2461 return 0;
2462}
2463_ACEOF
2464rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>conftest.er1
2467 ac_status=$?
2468 grep -v '^ *+' conftest.er1 >conftest.err
2469 rm -f conftest.er1
2470 cat conftest.err >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
502bdb00
JW
2473 { ac_try='test -z "$ac_c_werror_flag"
2474 || test ! -s conftest.err'
42ecbf5e
DJ
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 break
2487else
2488 echo "$as_me: failed program was:" >&5
2489sed 's/^/| /' conftest.$ac_ext >&5
2490
2491fi
2492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493done
2494rm -f conftest*
2495if test -n "$ac_declaration"; then
2496 echo '#ifdef __cplusplus' >>confdefs.h
2497 echo $ac_declaration >>confdefs.h
2498 echo '#endif' >>confdefs.h
2499fi
2500
2501else
2502 echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505fi
2506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2507ac_ext=c
2508ac_cpp='$CPP $CPPFLAGS'
2509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512
2513
2514echo "$as_me:$LINENO: checking for library containing strerror" >&5
2515echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2516if test "${ac_cv_search_strerror+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519 ac_func_search_save_LIBS=$LIBS
2520ac_cv_search_strerror=no
2521cat >conftest.$ac_ext <<_ACEOF
2522/* confdefs.h. */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h. */
2527
2528/* Override any gcc2 internal prototype to avoid an error. */
2529#ifdef __cplusplus
2530extern "C"
2531#endif
2532/* We use char because int might match the return type of a gcc2
2533 builtin and then its argument prototype would still apply. */
2534char strerror ();
2535int
2536main ()
2537{
2538strerror ();
2539 ;
2540 return 0;
2541}
2542_ACEOF
2543rm -f conftest.$ac_objext conftest$ac_exeext
2544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2545 (eval $ac_link) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
502bdb00
JW
2552 { ac_try='test -z "$ac_c_werror_flag"
2553 || test ! -s conftest.err'
42ecbf5e
DJ
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest$ac_exeext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2565 ac_cv_search_strerror="none required"
2566else
2567 echo "$as_me: failed program was:" >&5
2568sed 's/^/| /' conftest.$ac_ext >&5
2569
2570fi
2571rm -f conftest.err conftest.$ac_objext \
2572 conftest$ac_exeext conftest.$ac_ext
2573if test "$ac_cv_search_strerror" = no; then
2574 for ac_lib in cposix; do
2575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2576 cat >conftest.$ac_ext <<_ACEOF
2577/* confdefs.h. */
2578_ACEOF
2579cat confdefs.h >>conftest.$ac_ext
2580cat >>conftest.$ac_ext <<_ACEOF
2581/* end confdefs.h. */
2582
2583/* Override any gcc2 internal prototype to avoid an error. */
2584#ifdef __cplusplus
2585extern "C"
2586#endif
2587/* We use char because int might match the return type of a gcc2
2588 builtin and then its argument prototype would still apply. */
2589char strerror ();
2590int
2591main ()
2592{
2593strerror ();
2594 ;
2595 return 0;
2596}
2597_ACEOF
2598rm -f conftest.$ac_objext conftest$ac_exeext
2599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2600 (eval $ac_link) 2>conftest.er1
2601 ac_status=$?
2602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
502bdb00
JW
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
42ecbf5e
DJ
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest$ac_exeext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 ac_cv_search_strerror="-l$ac_lib"
2621break
2622else
2623 echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626fi
2627rm -f conftest.err conftest.$ac_objext \
2628 conftest$ac_exeext conftest.$ac_ext
2629 done
2630fi
2631LIBS=$ac_func_search_save_LIBS
2632fi
2633echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2634echo "${ECHO_T}$ac_cv_search_strerror" >&6
2635if test "$ac_cv_search_strerror" != no; then
2636 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2637
2638fi
e5a52504
MM
2639
2640
2641BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
42ecbf5e 2642am__api_version="1.9"
e5a52504
MM
2643# Find a good install program. We prefer a C program (faster),
2644# so one script is as good as another. But avoid the broken or
2645# incompatible versions:
2646# SysV /etc/install, /usr/sbin/install
2647# SunOS /usr/etc/install
2648# IRIX /sbin/install
2649# AIX /bin/install
42ecbf5e 2650# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
2651# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2652# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 2654# OS/2's system install, which has a completely different semantic
e5a52504 2655# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2656# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2657echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2658echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5a52504 2659if test -z "$INSTALL"; then
42ecbf5e
DJ
2660if test "${ac_cv_path_install+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 2662else
42ecbf5e
DJ
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 # Account for people who put trailing slashes in PATH elements.
2669case $as_dir/ in
2670 ./ | .// | /cC/* | \
2671 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2672 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2673 /usr/ucb/* ) ;;
2674 *)
2675 # OSF1 and SCO ODT 3.0 have their own names for install.
2676 # Don't use installbsd from OSF since it installs stuff as root
2677 # by default.
2678 for ac_prog in ginstall scoinst install; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2681 if test $ac_prog = install &&
42ecbf5e 2682 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2683 # AIX install. It has an incompatible calling convention.
2684 :
42ecbf5e
DJ
2685 elif test $ac_prog = install &&
2686 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2687 # program-specific install script used by HP pwplus--don't use.
2688 :
252b5132 2689 else
58c85be7
RW
2690 rm -rf conftest.one conftest.two conftest.dir
2691 echo one > conftest.one
2692 echo two > conftest.two
2693 mkdir conftest.dir
2694 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2695 test -s conftest.one && test -s conftest.two &&
2696 test -s conftest.dir/conftest.one &&
2697 test -s conftest.dir/conftest.two
2698 then
2699 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2700 break 3
2701 fi
252b5132
RH
2702 fi
2703 fi
2704 done
42ecbf5e
DJ
2705 done
2706 ;;
2707esac
2708done
2709
58c85be7 2710rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2711
2712fi
2713 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2714 INSTALL=$ac_cv_path_install
252b5132 2715 else
58c85be7
RW
2716 # As a last resort, use the slow shell script. Don't cache a
2717 # value for INSTALL within a source directory, because that will
252b5132 2718 # break other packages using the cache if that directory is
58c85be7 2719 # removed, or if the value is a relative name.
42ecbf5e 2720 INSTALL=$ac_install_sh
252b5132
RH
2721 fi
2722fi
42ecbf5e
DJ
2723echo "$as_me:$LINENO: result: $INSTALL" >&5
2724echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2725
2726# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2727# It thinks the first close brace ends the variable substitution.
2728test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2729
42ecbf5e 2730test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2731
2732test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2733
42ecbf5e
DJ
2734echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2735echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2736# Just in case
2737sleep 1
42ecbf5e 2738echo timestamp > conftest.file
252b5132
RH
2739# Do `set' in a subshell so we don't clobber the current shell's
2740# arguments. Must try -L first in case configure is actually a
2741# symlink; some systems play weird games with the mod time of symlinks
2742# (eg FreeBSD returns the mod time of the symlink's containing
2743# directory).
2744if (
42ecbf5e 2745 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2746 if test "$*" = "X"; then
2747 # -L didn't work.
42ecbf5e 2748 set X `ls -t $srcdir/configure conftest.file`
252b5132 2749 fi
42ecbf5e
DJ
2750 rm -f conftest.file
2751 if test "$*" != "X $srcdir/configure conftest.file" \
2752 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2753
2754 # If neither matched, then we have a broken ls. This can happen
2755 # if, for instance, CONFIG_SHELL is bash and it inherits a
2756 # broken ls alias from the environment. This has actually
2757 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2758 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2759alias in your environment" >&5
2760echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2761alias in your environment" >&2;}
2762 { (exit 1); exit 1; }; }
252b5132
RH
2763 fi
2764
42ecbf5e 2765 test "$2" = conftest.file
252b5132
RH
2766 )
2767then
2768 # Ok.
2769 :
2770else
42ecbf5e
DJ
2771 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2772Check your system clock" >&5
2773echo "$as_me: error: newly created file is older than distributed files!
2774Check your system clock" >&2;}
2775 { (exit 1); exit 1; }; }
252b5132 2776fi
42ecbf5e
DJ
2777echo "$as_me:$LINENO: result: yes" >&5
2778echo "${ECHO_T}yes" >&6
252b5132 2779test "$program_prefix" != NONE &&
42ecbf5e 2780 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2781# Use a double $ so make ignores it.
2782test "$program_suffix" != NONE &&
42ecbf5e
DJ
2783 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2784# Double any \ or $. echo might interpret backslashes.
2785# By default was `s,x,x', remove it if useless.
2786cat <<\_ACEOF >conftest.sed
2787s/[\\$]/&&/g;s/;s,x,x,$//
2788_ACEOF
2789program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2790rm conftest.sed
2791
2792# expand $ac_aux_dir to an absolute path
2793am_aux_dir=`cd $ac_aux_dir && pwd`
2794
2795test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2796# Use eval to expand $SHELL
2797if eval "$MISSING --run true"; then
2798 am_missing_run="$MISSING --run "
2799else
2800 am_missing_run=
2801 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2802echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2803fi
2804
2805if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2806 # We used to keeping the `.' as first argument, in order to
2807 # allow $(mkdir_p) to be used without argument. As in
2808 # $(mkdir_p) $(somedir)
2809 # where $(somedir) is conditionally defined. However this is wrong
2810 # for two reasons:
2811 # 1. if the package is installed by a user who cannot write `.'
2812 # make install will fail,
2813 # 2. the above comment should most certainly read
2814 # $(mkdir_p) $(DESTDIR)$(somedir)
2815 # so it does not work when $(somedir) is undefined and
2816 # $(DESTDIR) is not.
2817 # To support the latter case, we have to write
2818 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2819 # so the `.' trick is pointless.
2820 mkdir_p='mkdir -p --'
2821else
2822 # On NextStep and OpenStep, the `mkdir' command does not
2823 # recognize any option. It will interpret all options as
2824 # directories to create, and then abort because `.' already
2825 # exists.
2826 for d in ./-p ./--version;
2827 do
2828 test -d $d && rmdir $d
2829 done
2830 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2831 if test -f "$ac_aux_dir/mkinstalldirs"; then
2832 mkdir_p='$(mkinstalldirs)'
2833 else
2834 mkdir_p='$(install_sh) -d'
2835 fi
2836fi
2837
2838for ac_prog in gawk mawk nawk awk
2839do
2840 # Extract the first word of "$ac_prog", so it can be a program name with args.
2841set dummy $ac_prog; ac_word=$2
2842echo "$as_me:$LINENO: checking for $ac_word" >&5
2843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2844if test "${ac_cv_prog_AWK+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2846else
2847 if test -n "$AWK"; then
2848 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857 ac_cv_prog_AWK="$ac_prog"
2858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861done
2862done
2863
2864fi
2865fi
2866AWK=$ac_cv_prog_AWK
2867if test -n "$AWK"; then
2868 echo "$as_me:$LINENO: result: $AWK" >&5
2869echo "${ECHO_T}$AWK" >&6
2870else
2871 echo "$as_me:$LINENO: result: no" >&5
2872echo "${ECHO_T}no" >&6
2873fi
252b5132 2874
42ecbf5e
DJ
2875 test -n "$AWK" && break
2876done
252b5132 2877
42ecbf5e
DJ
2878echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2879echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2880set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2881if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2883else
42ecbf5e 2884 cat >conftest.make <<\_ACEOF
252b5132 2885all:
42ecbf5e
DJ
2886 @echo 'ac_maketemp="$(MAKE)"'
2887_ACEOF
252b5132 2888# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42ecbf5e 2889eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2890if test -n "$ac_maketemp"; then
2891 eval ac_cv_prog_make_${ac_make}_set=yes
2892else
2893 eval ac_cv_prog_make_${ac_make}_set=no
2894fi
42ecbf5e 2895rm -f conftest.make
252b5132
RH
2896fi
2897if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42ecbf5e
DJ
2898 echo "$as_me:$LINENO: result: yes" >&5
2899echo "${ECHO_T}yes" >&6
252b5132
RH
2900 SET_MAKE=
2901else
42ecbf5e
DJ
2902 echo "$as_me:$LINENO: result: no" >&5
2903echo "${ECHO_T}no" >&6
252b5132
RH
2904 SET_MAKE="MAKE=${MAKE-make}"
2905fi
2906
42ecbf5e
DJ
2907rm -rf .tst 2>/dev/null
2908mkdir .tst 2>/dev/null
2909if test -d .tst; then
2910 am__leading_dot=.
2911else
2912 am__leading_dot=_
2913fi
2914rmdir .tst 2>/dev/null
2915
2916DEPDIR="${am__leading_dot}deps"
2917
2918 ac_config_commands="$ac_config_commands depfiles"
2919
2920
2921am_make=${MAKE-make}
2922cat > confinc << 'END'
2923am__doit:
2924 @echo done
2925.PHONY: am__doit
2926END
2927# If we don't find an include directive, just comment out the code.
2928echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2929echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2930am__include="#"
2931am__quote=
2932_am_result=none
2933# First try GNU make style include.
2934echo "include confinc" > confmf
2935# We grep out `Entering directory' and `Leaving directory'
2936# messages which can occur if `w' ends up in MAKEFLAGS.
2937# In particular we don't look at `^make:' because GNU make might
2938# be invoked under some other name (usually "gmake"), in which
2939# case it prints its new name instead of `make'.
2940if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2941 am__include=include
2942 am__quote=
2943 _am_result=GNU
2944fi
2945# Now try BSD make style include.
2946if test "$am__include" = "#"; then
2947 echo '.include "confinc"' > confmf
2948 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2949 am__include=.include
2950 am__quote="\""
2951 _am_result=BSD
2952 fi
2953fi
2954
2955
2956echo "$as_me:$LINENO: result: $_am_result" >&5
2957echo "${ECHO_T}$_am_result" >&6
2958rm -f confinc confmf
2959
2960# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2961if test "${enable_dependency_tracking+set}" = set; then
2962 enableval="$enable_dependency_tracking"
2963
2964fi;
2965if test "x$enable_dependency_tracking" != xno; then
2966 am_depcomp="$ac_aux_dir/depcomp"
2967 AMDEPBACKSLASH='\'
2968fi
2969
2970
2971if test "x$enable_dependency_tracking" != xno; then
2972 AMDEP_TRUE=
2973 AMDEP_FALSE='#'
2974else
2975 AMDEP_TRUE='#'
2976 AMDEP_FALSE=
2977fi
2978
e5a52504
MM
2979
2980
42ecbf5e
DJ
2981# test to see if srcdir already configured
2982if test "`cd $srcdir && pwd`" != "`pwd`" &&
2983 test -f $srcdir/config.status; then
2984 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2985echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2986 { (exit 1); exit 1; }; }
2987fi
252b5132 2988
42ecbf5e
DJ
2989# test whether we have cygpath
2990if test -z "$CYGPATH_W"; then
2991 if (cygpath --version) >/dev/null 2>/dev/null; then
2992 CYGPATH_W='cygpath -w'
2993 else
2994 CYGPATH_W=echo
2995 fi
252b5132 2996fi
42ecbf5e
DJ
2997
2998
2999# Define the identity of the package.
3000 PACKAGE=ld
3001 VERSION=${BFD_VERSION}
3002
3003
3004cat >>confdefs.h <<_ACEOF
e5a52504 3005#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3006_ACEOF
3007
252b5132 3008
42ecbf5e 3009cat >>confdefs.h <<_ACEOF
e5a52504 3010#define VERSION "$VERSION"
42ecbf5e
DJ
3011_ACEOF
3012
3013# Some tools Automake needs.
3014
3015ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3016
3017
3018AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3019
3020
3021AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3022
3023
3024AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3025
e5a52504 3026
42ecbf5e 3027MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3028
42ecbf5e 3029install_sh=${install_sh-"$am_aux_dir/install-sh"}
e5a52504 3030
42ecbf5e
DJ
3031# Installed binaries are usually stripped using `strip' when the user
3032# run `make install-strip'. However `strip' might not be the right
3033# tool to use in cross-compilation environments, therefore Automake
3034# will honor the `STRIP' environment variable to overrule this program.
3035if test "$cross_compiling" != no; then
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3038set dummy ${ac_tool_prefix}strip; ac_word=$2
3039echo "$as_me:$LINENO: checking for $ac_word" >&5
3040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3041if test "${ac_cv_prog_STRIP+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043else
3044 if test -n "$STRIP"; then
3045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3046else
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058done
3059done
3060
3061fi
3062fi
3063STRIP=$ac_cv_prog_STRIP
3064if test -n "$STRIP"; then
3065 echo "$as_me:$LINENO: result: $STRIP" >&5
3066echo "${ECHO_T}$STRIP" >&6
2469cfa2 3067else
42ecbf5e
DJ
3068 echo "$as_me:$LINENO: result: no" >&5
3069echo "${ECHO_T}no" >&6
3070fi
3071
e5a52504 3072fi
42ecbf5e
DJ
3073if test -z "$ac_cv_prog_STRIP"; then
3074 ac_ct_STRIP=$STRIP
3075 # Extract the first word of "strip", so it can be a program name with args.
3076set dummy strip; ac_word=$2
3077echo "$as_me:$LINENO: checking for $ac_word" >&5
3078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3079if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081else
3082 if test -n "$ac_ct_STRIP"; then
3083 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3084else
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_ac_ct_STRIP="strip"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096done
3097done
e5a52504 3098
42ecbf5e
DJ
3099 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3100fi
3101fi
3102ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3103if test -n "$ac_ct_STRIP"; then
3104 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3105echo "${ECHO_T}$ac_ct_STRIP" >&6
2469cfa2 3106else
42ecbf5e
DJ
3107 echo "$as_me:$LINENO: result: no" >&5
3108echo "${ECHO_T}no" >&6
2469cfa2
NC
3109fi
3110
42ecbf5e 3111 STRIP=$ac_ct_STRIP
2469cfa2 3112else
42ecbf5e
DJ
3113 STRIP="$ac_cv_prog_STRIP"
3114fi
3115
2469cfa2 3116fi
42ecbf5e
DJ
3117INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3118
3119# We need awk for the "check" target. The system "awk" is bad on
3120# some platforms.
3121# Always define AMTAR for backward compatibility.
3122
3123AMTAR=${AMTAR-"${am_missing_run}tar"}
3124
3125am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3126
3127
3128
3129
3130depcc="$CC" am_compiler_list=
3131
3132echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3133echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3134if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136else
3137 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3138 # We make a subdir and do the tests there. Otherwise we can end up
3139 # making bogus files that we don't know about and never remove. For
3140 # instance it was reported that on HP-UX the gcc test will end up
3141 # making a dummy file named `D' -- because `-MD' means `put the output
3142 # in D'.
3143 mkdir conftest.dir
3144 # Copy depcomp to subdir because otherwise we won't find it if we're
3145 # using a relative directory.
3146 cp "$am_depcomp" conftest.dir
3147 cd conftest.dir
3148 # We will build objects and dependencies in a subdirectory because
3149 # it helps to detect inapplicable dependency modes. For instance
3150 # both Tru64's cc and ICC support -MD to output dependencies as a
3151 # side effect of compilation, but ICC will put the dependencies in
3152 # the current directory while Tru64 will put them in the object
3153 # directory.
3154 mkdir sub
3155
3156 am_cv_CC_dependencies_compiler_type=none
3157 if test "$am_compiler_list" = ""; then
3158 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3159 fi
3160 for depmode in $am_compiler_list; do
3161 # Setup a source with many dependencies, because some compilers
3162 # like to wrap large dependency lists on column 80 (with \), and
3163 # we should not choose a depcomp mode which is confused by this.
3164 #
3165 # We need to recreate these files for each test, as the compiler may
3166 # overwrite some of them when testing with obscure command lines.
3167 # This happens at least with the AIX C compiler.
3168 : > sub/conftest.c
3169 for i in 1 2 3 4 5 6; do
3170 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3171 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3172 # Solaris 8's {/usr,}/bin/sh.
3173 touch sub/conftst$i.h
3174 done
3175 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3176
3177 case $depmode in
3178 nosideeffect)
3179 # after this tag, mechanisms are not by side-effect, so they'll
3180 # only be used when explicitly requested
3181 if test "x$enable_dependency_tracking" = xyes; then
3182 continue
3183 else
3184 break
3185 fi
3186 ;;
3187 none) break ;;
3188 esac
3189 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3190 # mode. It turns out that the SunPro C++ compiler does not properly
3191 # handle `-M -o', and we need to detect this.
3192 if depmode=$depmode \
3193 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3194 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3195 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3196 >/dev/null 2>conftest.err &&
3197 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3198 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3199 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3200 # icc doesn't choke on unknown options, it will just issue warnings
3201 # or remarks (even with -Werror). So we grep stderr for any message
3202 # that says an option was ignored or not supported.
3203 # When given -MP, icc 7.0 and 7.1 complain thusly:
3204 # icc: Command line warning: ignoring option '-M'; no argument required
3205 # The diagnosis changed in icc 8.0:
3206 # icc: Command line remark: option '-MP' not supported
3207 if (grep 'ignoring option' conftest.err ||
3208 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3209 am_cv_CC_dependencies_compiler_type=$depmode
3210 break
3211 fi
3212 fi
3213 done
2469cfa2 3214
42ecbf5e
DJ
3215 cd ..
3216 rm -rf conftest.dir
2469cfa2 3217else
42ecbf5e
DJ
3218 am_cv_CC_dependencies_compiler_type=none
3219fi
3220
2469cfa2 3221fi
42ecbf5e
DJ
3222echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3223echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3224CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3225
2469cfa2 3226
42ecbf5e
DJ
3227
3228if
3229 test "x$enable_dependency_tracking" != xno \
3230 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3231 am__fastdepCC_TRUE=
3232 am__fastdepCC_FALSE='#'
2469cfa2 3233else
42ecbf5e
DJ
3234 am__fastdepCC_TRUE='#'
3235 am__fastdepCC_FALSE=
2469cfa2 3236fi
2469cfa2 3237
2469cfa2 3238
e5a52504 3239
42ecbf5e 3240
d7040cdb 3241
ce2cded5
L
3242# Check whether --with-lib-path or --without-lib-path was given.
3243if test "${with_lib_path+set}" = set; then
3244 withval="$with_lib_path"
3245 LIB_PATH=$withval
3246fi;
3247# Check whether --enable-targets or --disable-targets was given.
3248if test "${enable_targets+set}" = set; then
3249 enableval="$enable_targets"
3250 case "${enableval}" in
3251 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3252echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3253 { (exit 1); exit 1; }; }
3254 ;;
3255 no) enable_targets= ;;
3256 *) enable_targets=$enableval ;;
3257esac
3258fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3259if test "${enable_64_bit_bfd+set}" = set; then
3260 enableval="$enable_64_bit_bfd"
3261 case "${enableval}" in
3262 yes) want64=true ;;
3263 no) want64=false ;;
3264 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3265echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3266 { (exit 1); exit 1; }; } ;;
3267esac
2469cfa2 3268else
ce2cded5 3269 want64=false
42ecbf5e 3270fi;
d7040cdb 3271
ce2cded5
L
3272# Check whether --with-sysroot or --without-sysroot was given.
3273if test "${with_sysroot+set}" = set; then
3274 withval="$with_sysroot"
d7040cdb 3275
ce2cded5
L
3276 case ${with_sysroot} in
3277 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3278 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3279 esac
d7040cdb 3280
ce2cded5
L
3281 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3282 use_sysroot=yes
d7040cdb 3283
ce2cded5
L
3284 if test "x$prefix" = xNONE; then
3285 test_prefix=/usr/local
3286 else
3287 test_prefix=$prefix
3288 fi
3289 if test "x$exec_prefix" = xNONE; then
3290 test_exec_prefix=$test_prefix
3291 else
3292 test_exec_prefix=$exec_prefix
3293 fi
3294 case ${TARGET_SYSTEM_ROOT} in
3295 "${test_prefix}"|"${test_prefix}/"*|\
3296 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3297 '${prefix}'|'${prefix}/'*|\
3298 '${exec_prefix}'|'${exec_prefix}/'*)
3299 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3300 TARGET_SYSTEM_ROOT_DEFINE="$t"
3301 ;;
3302 esac
d7040cdb 3303
e5a52504 3304else
d7040cdb 3305
ce2cded5
L
3306 use_sysroot=no
3307 TARGET_SYSTEM_ROOT=
3308 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 3309
ce2cded5 3310fi;
d7040cdb
SE
3311
3312
3313
3314
3315
ce2cded5 3316GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 3317
ce2cded5
L
3318# Check whether --enable-werror or --disable-werror was given.
3319if test "${enable_werror+set}" = set; then
3320 enableval="$enable_werror"
3321 case "${enableval}" in
3322 yes | y) ERROR_ON_WARNING="yes" ;;
3323 no | n) ERROR_ON_WARNING="no" ;;
3324 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3325echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3326 { (exit 1); exit 1; }; } ;;
3327 esac
d7040cdb
SE
3328fi;
3329
bb8541b9
L
3330# Enable -Wno-format by default when using gcc on mingw
3331case "${host}" in
3332 *-*-mingw32*)
3333 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3334 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
3335 fi
3336 ;;
3337 *) ;;
3338esac
3339
ce2cded5
L
3340# Enable -Werror by default when using gcc
3341if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3342 ERROR_ON_WARNING=yes
3343fi
d7040cdb 3344
ce2cded5
L
3345NO_WERROR=
3346if test "${ERROR_ON_WARNING}" = yes ; then
3347 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3348 NO_WERROR="-Wno-error"
3349fi
d7040cdb 3350
ce2cded5
L
3351if test "${GCC}" = yes ; then
3352 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3353fi
d7040cdb 3354
ce2cded5
L
3355# Check whether --enable-build-warnings or --disable-build-warnings was given.
3356if test "${enable_build_warnings+set}" = set; then
3357 enableval="$enable_build_warnings"
3358 case "${enableval}" in
3359 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3360 no) if test "${GCC}" = yes ; then
3361 WARN_CFLAGS="-w"
3362 fi;;
3363 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3364 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3365 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3366 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3367 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3368esac
3369fi;
d7040cdb 3370
ce2cded5
L
3371if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3372 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3373fi
d7040cdb 3374
2469cfa2 3375
d7040cdb
SE
3376
3377
3378
ce2cded5 3379 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
3380
3381
ce2cded5
L
3382if test -z "$target" ; then
3383 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3384echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3385 { (exit 1); exit 1; }; }
3386fi
3387if test -z "$host" ; then
3388 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3389echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3390 { (exit 1); exit 1; }; }
3391fi
d7040cdb 3392
ce2cded5 3393# host-specific stuff:
d7040cdb 3394
ce2cded5
L
3395ac_ext=c
3396ac_cpp='$CPP $CPPFLAGS'
3397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400if test -n "$ac_tool_prefix"; then
3401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3402set dummy ${ac_tool_prefix}gcc; ac_word=$2
3403echo "$as_me:$LINENO: checking for $ac_word" >&5
3404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
ce2cded5
L
3408 if test -n "$CC"; then
3409 ac_cv_prog_CC="$CC" # Let the user override the test.
3410else
d7040cdb
SE
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
ce2cded5
L
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 break 2
d7040cdb 3421 fi
ce2cded5 3422done
d7040cdb
SE
3423done
3424
3425fi
d7040cdb 3426fi
ce2cded5
L
3427CC=$ac_cv_prog_CC
3428if test -n "$CC"; then
3429 echo "$as_me:$LINENO: result: $CC" >&5
3430echo "${ECHO_T}$CC" >&6
d7040cdb 3431else
ce2cded5
L
3432 echo "$as_me:$LINENO: result: no" >&5
3433echo "${ECHO_T}no" >&6
d7040cdb 3434fi
d7040cdb 3435
252b5132 3436fi
ce2cded5
L
3437if test -z "$ac_cv_prog_CC"; then
3438 ac_ct_CC=$CC
3439 # Extract the first word of "gcc", so it can be a program name with args.
3440set dummy gcc; ac_word=$2
3441echo "$as_me:$LINENO: checking for $ac_word" >&5
3442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3444 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3445else
ce2cded5
L
3446 if test -n "$ac_ct_CC"; then
3447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3448else
ce2cded5
L
3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450for as_dir in $PATH
3451do
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_ac_ct_CC="gcc"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460done
3461done
3462
252b5132
RH
3463fi
3464fi
ce2cded5
L
3465ac_ct_CC=$ac_cv_prog_ac_ct_CC
3466if test -n "$ac_ct_CC"; then
3467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3468echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3469else
42ecbf5e
DJ
3470 echo "$as_me:$LINENO: result: no" >&5
3471echo "${ECHO_T}no" >&6
252b5132 3472fi
ce2cded5
L
3473
3474 CC=$ac_ct_CC
252b5132 3475else
ce2cded5 3476 CC="$ac_cv_prog_CC"
252b5132 3477fi
d7040cdb 3478
ce2cded5
L
3479if test -z "$CC"; then
3480 if test -n "$ac_tool_prefix"; then
3481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3482set dummy ${ac_tool_prefix}cc; ac_word=$2
3483echo "$as_me:$LINENO: checking for $ac_word" >&5
3484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3485if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3486 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3487else
ce2cded5
L
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3490else
ce2cded5
L
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_CC="${ac_tool_prefix}cc"
3499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502done
3503done
3504
252b5132
RH
3505fi
3506fi
ce2cded5
L
3507CC=$ac_cv_prog_CC
3508if test -n "$CC"; then
3509 echo "$as_me:$LINENO: result: $CC" >&5
3510echo "${ECHO_T}$CC" >&6
d15b04bd 3511else
ce2cded5
L
3512 echo "$as_me:$LINENO: result: no" >&5
3513echo "${ECHO_T}no" >&6
3514fi
3515
3516fi
3517if test -z "$ac_cv_prog_CC"; then
3518 ac_ct_CC=$CC
3519 # Extract the first word of "cc", so it can be a program name with args.
3520set dummy cc; ac_word=$2
3521echo "$as_me:$LINENO: checking for $ac_word" >&5
3522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3523if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525else
3526 if test -n "$ac_ct_CC"; then
3527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3528else
3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_ac_ct_CC="cc"
3537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540done
3541done
3542
3543fi
3544fi
3545ac_ct_CC=$ac_cv_prog_ac_ct_CC
3546if test -n "$ac_ct_CC"; then
3547 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3548echo "${ECHO_T}$ac_ct_CC" >&6
3549else
3550 echo "$as_me:$LINENO: result: no" >&5
3551echo "${ECHO_T}no" >&6
3552fi
3553
3554 CC=$ac_ct_CC
3555else
3556 CC="$ac_cv_prog_CC"
3557fi
3558
3559fi
3560if test -z "$CC"; then
3561 # Extract the first word of "cc", so it can be a program name with args.
3562set dummy cc; ac_word=$2
3563echo "$as_me:$LINENO: checking for $ac_word" >&5
3564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565if test "${ac_cv_prog_CC+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567else
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3570else
3571 ac_prog_rejected=no
3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH
3574do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3580 ac_prog_rejected=yes
3581 continue
3582 fi
3583 ac_cv_prog_CC="cc"
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587done
3588done
3589
3590if test $ac_prog_rejected = yes; then
3591 # We found a bogon in the path, so make sure we never use it.
3592 set dummy $ac_cv_prog_CC
3593 shift
3594 if test $# != 0; then
3595 # We chose a different compiler from the bogus one.
3596 # However, it has the same basename, so the bogon will be chosen
3597 # first if we set CC to just the basename; use the full file name.
3598 shift
3599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3600 fi
3601fi
3602fi
3603fi
3604CC=$ac_cv_prog_CC
3605if test -n "$CC"; then
3606 echo "$as_me:$LINENO: result: $CC" >&5
3607echo "${ECHO_T}$CC" >&6
3608else
3609 echo "$as_me:$LINENO: result: no" >&5
3610echo "${ECHO_T}no" >&6
3611fi
3612
3613fi
3614if test -z "$CC"; then
d7040cdb 3615 if test -n "$ac_tool_prefix"; then
ce2cded5 3616 for ac_prog in cl
d7040cdb
SE
3617 do
3618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3620echo "$as_me:$LINENO: checking for $ac_word" >&5
3621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3622if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
ce2cded5
L
3625 if test -n "$CC"; then
3626 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
3627else
3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629for as_dir in $PATH
3630do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d7040cdb
SE
3636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 break 2
3638 fi
3639done
3640done
3641
3642fi
3643fi
ce2cded5
L
3644CC=$ac_cv_prog_CC
3645if test -n "$CC"; then
3646 echo "$as_me:$LINENO: result: $CC" >&5
3647echo "${ECHO_T}$CC" >&6
d7040cdb
SE
3648else
3649 echo "$as_me:$LINENO: result: no" >&5
3650echo "${ECHO_T}no" >&6
3651fi
3652
ce2cded5 3653 test -n "$CC" && break
d7040cdb
SE
3654 done
3655fi
ce2cded5
L
3656if test -z "$CC"; then
3657 ac_ct_CC=$CC
3658 for ac_prog in cl
d7040cdb
SE
3659do
3660 # Extract the first word of "$ac_prog", so it can be a program name with args.
3661set dummy $ac_prog; ac_word=$2
3662echo "$as_me:$LINENO: checking for $ac_word" >&5
3663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3664if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
ce2cded5
L
3667 if test -n "$ac_ct_CC"; then
3668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3669else
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3677 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681done
3682done
3683
3684fi
3685fi
ce2cded5
L
3686ac_ct_CC=$ac_cv_prog_ac_ct_CC
3687if test -n "$ac_ct_CC"; then
3688 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3689echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3690else
3691 echo "$as_me:$LINENO: result: no" >&5
3692echo "${ECHO_T}no" >&6
3693fi
3694
ce2cded5 3695 test -n "$ac_ct_CC" && break
d7040cdb 3696done
d7040cdb 3697
ce2cded5 3698 CC=$ac_ct_CC
d7040cdb
SE
3699fi
3700
d7040cdb 3701fi
d7040cdb
SE
3702
3703
ce2cded5
L
3704test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3705See \`config.log' for more details." >&5
3706echo "$as_me: error: no acceptable C compiler found in \$PATH
3707See \`config.log' for more details." >&2;}
3708 { (exit 1); exit 1; }; }
d7040cdb 3709
ce2cded5
L
3710# Provide some information about the compiler.
3711echo "$as_me:$LINENO:" \
3712 "checking for C compiler version" >&5
3713ac_compiler=`set X $ac_compile; echo $2`
3714{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3715 (eval $ac_compiler --version </dev/null >&5) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }
3719{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3720 (eval $ac_compiler -v </dev/null >&5) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }
3724{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3725 (eval $ac_compiler -V </dev/null >&5) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }
d7040cdb 3729
ce2cded5
L
3730echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3731echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3732if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
ce2cded5
L
3735 cat >conftest.$ac_ext <<_ACEOF
3736/* confdefs.h. */
3737_ACEOF
3738cat confdefs.h >>conftest.$ac_ext
3739cat >>conftest.$ac_ext <<_ACEOF
3740/* end confdefs.h. */
d7040cdb 3741
ce2cded5
L
3742int
3743main ()
3744{
3745#ifndef __GNUC__
3746 choke me
3747#endif
3748
3749 ;
3750 return 0;
3751}
3752_ACEOF
3753rm -f conftest.$ac_objext
3754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755 (eval $ac_compile) 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } &&
3762 { ac_try='test -z "$ac_c_werror_flag"
3763 || test ! -s conftest.err'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 (eval $ac_try) 2>&5
3766 ac_status=$?
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; } &&
3769 { ac_try='test -s conftest.$ac_objext'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; }; then
3775 ac_compiler_gnu=yes
d7040cdb 3776else
ce2cded5
L
3777 echo "$as_me: failed program was:" >&5
3778sed 's/^/| /' conftest.$ac_ext >&5
3779
3780ac_compiler_gnu=no
d7040cdb 3781fi
ce2cded5
L
3782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3783ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3784
ce2cded5
L
3785fi
3786echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3787echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3788GCC=`test $ac_compiler_gnu = yes && echo yes`
3789ac_test_CFLAGS=${CFLAGS+set}
3790ac_save_CFLAGS=$CFLAGS
3791CFLAGS="-g"
3792echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3793echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3794if test "${ac_cv_prog_cc_g+set}" = set; then
d7040cdb
SE
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
ce2cded5
L
3797 cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h. */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h. */
d7040cdb 3803
ce2cded5
L
3804int
3805main ()
3806{
d7040cdb 3807
ce2cded5
L
3808 ;
3809 return 0;
3810}
3811_ACEOF
3812rm -f conftest.$ac_objext
3813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try='test -z "$ac_c_werror_flag"
3822 || test ! -s conftest.err'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; } &&
3828 { ac_try='test -s conftest.$ac_objext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_cv_prog_cc_g=yes
3835else
3836 echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3838
ce2cded5 3839ac_cv_prog_cc_g=no
d7040cdb 3840fi
ce2cded5
L
3841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3842fi
3843echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3844echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3845if test "$ac_test_CFLAGS" = set; then
3846 CFLAGS=$ac_save_CFLAGS
3847elif test $ac_cv_prog_cc_g = yes; then
3848 if test "$GCC" = yes; then
3849 CFLAGS="-g -O2"
3850 else
3851 CFLAGS="-g"
3852 fi
d7040cdb 3853else
ce2cded5
L
3854 if test "$GCC" = yes; then
3855 CFLAGS="-O2"
3856 else
3857 CFLAGS=
3858 fi
d7040cdb 3859fi
ce2cded5
L
3860echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3861echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3862if test "${ac_cv_prog_cc_stdc+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 3864else
ce2cded5
L
3865 ac_cv_prog_cc_stdc=no
3866ac_save_CC=$CC
3867cat >conftest.$ac_ext <<_ACEOF
3868/* confdefs.h. */
3869_ACEOF
3870cat confdefs.h >>conftest.$ac_ext
3871cat >>conftest.$ac_ext <<_ACEOF
3872/* end confdefs.h. */
3873#include <stdarg.h>
3874#include <stdio.h>
3875#include <sys/types.h>
3876#include <sys/stat.h>
3877/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3878struct buf { int x; };
3879FILE * (*rcsopen) (struct buf *, struct stat *, int);
3880static char *e (p, i)
3881 char **p;
3882 int i;
3883{
3884 return p[i];
3885}
3886static char *f (char * (*g) (char **, int), char **p, ...)
3887{
3888 char *s;
3889 va_list v;
3890 va_start (v,p);
3891 s = g (p, va_arg (v,int));
3892 va_end (v);
3893 return s;
3894}
d7040cdb 3895
ce2cded5
L
3896/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3897 function prototypes and stuff, but not '\xHH' hex character constants.
3898 These don't provoke an error unfortunately, instead are silently treated
3899 as 'x'. The following induces an error, until -std1 is added to get
3900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3901 array size at least. It's necessary to write '\x00'==0 to get something
3902 that's true only with -std1. */
3903int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3904
ce2cded5
L
3905int test (int i, double x);
3906struct s1 {int (*f) (int a);};
3907struct s2 {int (*f) (double a);};
3908int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3909int argc;
3910char **argv;
3911int
3912main ()
3913{
3914return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3915 ;
3916 return 0;
3917}
3918_ACEOF
3919# Don't try gcc -ansi; that turns off useful extensions and
3920# breaks some systems' header files.
3921# AIX -qlanglvl=ansi
3922# Ultrix and OSF/1 -std1
3923# HP-UX 10.20 and later -Ae
3924# HP-UX older versions -Aa -D_HPUX_SOURCE
3925# SVR4 -Xc -D__EXTENSIONS__
3926for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3927do
3928 CC="$ac_save_CC $ac_arg"
3929 rm -f conftest.$ac_objext
3930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>conftest.er1
3932 ac_status=$?
3933 grep -v '^ *+' conftest.er1 >conftest.err
3934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_c_werror_flag"
3939 || test ! -s conftest.err'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest.$ac_objext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 (eval $ac_try) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 ac_cv_prog_cc_stdc=$ac_arg
3952break
3953else
3954 echo "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3956
ce2cded5
L
3957fi
3958rm -f conftest.err conftest.$ac_objext
3959done
3960rm -f conftest.$ac_ext conftest.$ac_objext
3961CC=$ac_save_CC
d7040cdb 3962
ce2cded5 3963fi
d7040cdb 3964
ce2cded5
L
3965case "x$ac_cv_prog_cc_stdc" in
3966 x|xno)
3967 echo "$as_me:$LINENO: result: none needed" >&5
3968echo "${ECHO_T}none needed" >&6 ;;
3969 *)
3970 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3971echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3972 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
3973esac
3974
ce2cded5
L
3975# Some people use a C++ compiler to compile C. Since we use `exit',
3976# in C++ we need to declare it. In case someone uses the same compiler
3977# for both compiling C and C++ we need to have the C++ compiler decide
3978# the declaration of exit, since it's the most demanding environment.
3979cat >conftest.$ac_ext <<_ACEOF
3980#ifndef __cplusplus
3981 choke me
3982#endif
3983_ACEOF
3984rm -f conftest.$ac_objext
3985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 for ac_declaration in \
4007 '' \
4008 'extern "C" void std::exit (int) throw (); using std::exit;' \
4009 'extern "C" void std::exit (int); using std::exit;' \
4010 'extern "C" void exit (int) throw ();' \
4011 'extern "C" void exit (int);' \
4012 'void exit (int);'
4013do
4014 cat >conftest.$ac_ext <<_ACEOF
4015/* confdefs.h. */
4016_ACEOF
4017cat confdefs.h >>conftest.$ac_ext
4018cat >>conftest.$ac_ext <<_ACEOF
4019/* end confdefs.h. */
4020$ac_declaration
4021#include <stdlib.h>
4022int
4023main ()
4024{
4025exit (42);
4026 ;
4027 return 0;
4028}
4029_ACEOF
4030rm -f conftest.$ac_objext
4031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032 (eval $ac_compile) 2>conftest.er1
4033 ac_status=$?
4034 grep -v '^ *+' conftest.er1 >conftest.err
4035 rm -f conftest.er1
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -z "$ac_c_werror_flag"
4040 || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 :
d7040cdb 4053else
ce2cded5
L
4054 echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4056
ce2cded5
L
4057continue
4058fi
4059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060 cat >conftest.$ac_ext <<_ACEOF
4061/* confdefs.h. */
4062_ACEOF
4063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
4065/* end confdefs.h. */
4066$ac_declaration
4067int
4068main ()
4069{
4070exit (42);
4071 ;
4072 return 0;
4073}
4074_ACEOF
4075rm -f conftest.$ac_objext
4076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>conftest.er1
4078 ac_status=$?
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } &&
4084 { ac_try='test -z "$ac_c_werror_flag"
4085 || test ! -s conftest.err'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 break
4098else
4099 echo "$as_me: failed program was:" >&5
4100sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4101
ce2cded5
L
4102fi
4103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4104done
4105rm -f conftest*
4106if test -n "$ac_declaration"; then
4107 echo '#ifdef __cplusplus' >>confdefs.h
4108 echo $ac_declaration >>confdefs.h
4109 echo '#endif' >>confdefs.h
4110fi
d7040cdb 4111
ce2cded5
L
4112else
4113 echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4115
ce2cded5
L
4116fi
4117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4118ac_ext=c
4119ac_cpp='$CPP $CPPFLAGS'
4120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4123
4124
ce2cded5
L
4125cat >>confdefs.h <<\_ACEOF
4126#define _GNU_SOURCE 1
4127_ACEOF
4128
4129
4130# Find a good install program. We prefer a C program (faster),
4131# so one script is as good as another. But avoid the broken or
4132# incompatible versions:
4133# SysV /etc/install, /usr/sbin/install
4134# SunOS /usr/etc/install
4135# IRIX /sbin/install
4136# AIX /bin/install
4137# AmigaOS /C/install, which installs bootblocks on floppy discs
4138# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4139# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4140# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4141# OS/2's system install, which has a completely different semantic
4142# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 4143# Reject install programs that cannot install multiple files.
ce2cded5
L
4144echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4145echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4146if test -z "$INSTALL"; then
4147if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 4148 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4149else
ce2cded5
L
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH
4152do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 # Account for people who put trailing slashes in PATH elements.
4156case $as_dir/ in
4157 ./ | .// | /cC/* | \
4158 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4159 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4160 /usr/ucb/* ) ;;
4161 *)
4162 # OSF1 and SCO ODT 3.0 have their own names for install.
4163 # Don't use installbsd from OSF since it installs stuff as root
4164 # by default.
4165 for ac_prog in ginstall scoinst install; do
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4168 if test $ac_prog = install &&
4169 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4170 # AIX install. It has an incompatible calling convention.
4171 :
4172 elif test $ac_prog = install &&
4173 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4174 # program-specific install script used by HP pwplus--don't use.
4175 :
4176 else
58c85be7
RW
4177 rm -rf conftest.one conftest.two conftest.dir
4178 echo one > conftest.one
4179 echo two > conftest.two
4180 mkdir conftest.dir
4181 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4182 test -s conftest.one && test -s conftest.two &&
4183 test -s conftest.dir/conftest.one &&
4184 test -s conftest.dir/conftest.two
4185 then
4186 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4187 break 3
4188 fi
ce2cded5
L
4189 fi
4190 fi
4191 done
4192 done
4193 ;;
4194esac
4195done
ac48eca1 4196
58c85be7 4197rm -rf conftest.one conftest.two conftest.dir
ac48eca1 4198
ce2cded5
L
4199fi
4200 if test "${ac_cv_path_install+set}" = set; then
4201 INSTALL=$ac_cv_path_install
4202 else
58c85be7
RW
4203 # As a last resort, use the slow shell script. Don't cache a
4204 # value for INSTALL within a source directory, because that will
ce2cded5 4205 # break other packages using the cache if that directory is
58c85be7 4206 # removed, or if the value is a relative name.
ce2cded5
L
4207 INSTALL=$ac_install_sh
4208 fi
4209fi
4210echo "$as_me:$LINENO: result: $INSTALL" >&5
4211echo "${ECHO_T}$INSTALL" >&6
ac48eca1 4212
ce2cded5
L
4213# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4214# It thinks the first close brace ends the variable substitution.
4215test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ac48eca1 4216
ce2cded5 4217test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
d7040cdb 4218
ce2cded5 4219test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ac48eca1 4220
c7e40348 4221
ac48eca1 4222
ac48eca1 4223
ce2cded5
L
4224macro_version='2.1a'
4225macro_revision='1.2435'
d7040cdb 4226
d7040cdb 4227
ac48eca1 4228
ac48eca1 4229
ac48eca1 4230
c7e40348 4231
ac48eca1 4232
ac48eca1 4233
ac48eca1 4234
6be7c12c 4235
d7040cdb 4236
d7040cdb 4237
ce2cded5 4238ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4239
ce2cded5 4240# Set options
ac48eca1 4241
ce2cded5 4242enable_dlopen=no
ac48eca1 4243
d15b04bd 4244
ce2cded5 4245enable_win32_dll=no
d15b04bd 4246
ac48eca1 4247
ce2cded5
L
4248# Check whether --enable-shared or --disable-shared was given.
4249if test "${enable_shared+set}" = set; then
4250 enableval="$enable_shared"
4251 p=${PACKAGE-default}
4252 case $enableval in
4253 yes) enable_shared=yes ;;
4254 no) enable_shared=no ;;
4255 *)
4256 enable_shared=no
4257 # Look at the argument we got. We use all the common list separators.
4258 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4259 for pkg in $enableval; do
4260 IFS="$lt_save_ifs"
4261 if test "X$pkg" = "X$p"; then
4262 enable_shared=yes
4263 fi
4264 done
4265 IFS="$lt_save_ifs"
4266 ;;
4267 esac
4268else
4269 enable_shared=yes
4270fi;
ac48eca1 4271
ac48eca1 4272
ac48eca1 4273
ac48eca1 4274
ac48eca1 4275
ac48eca1 4276
252b5132
RH
4277
4278
ce2cded5
L
4279# Check whether --enable-static or --disable-static was given.
4280if test "${enable_static+set}" = set; then
4281 enableval="$enable_static"
4282 p=${PACKAGE-default}
4283 case $enableval in
4284 yes) enable_static=yes ;;
4285 no) enable_static=no ;;
4286 *)
4287 enable_static=no
4288 # Look at the argument we got. We use all the common list separators.
4289 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4290 for pkg in $enableval; do
4291 IFS="$lt_save_ifs"
4292 if test "X$pkg" = "X$p"; then
4293 enable_static=yes
4294 fi
4295 done
4296 IFS="$lt_save_ifs"
4297 ;;
4298 esac
ac48eca1 4299else
ce2cded5
L
4300 enable_static=yes
4301fi;
42ecbf5e 4302
ac48eca1 4303
42ecbf5e 4304
ac48eca1 4305
ce2cded5
L
4306
4307
4308
4309
4310
4311# Check whether --with-pic or --without-pic was given.
4312if test "${with_pic+set}" = set; then
4313 withval="$with_pic"
4314 pic_mode="$withval"
ac48eca1 4315else
ce2cded5
L
4316 pic_mode=default
4317fi;
4318
4319test -z "$pic_mode" && pic_mode=default
ac48eca1 4320
d7040cdb
SE
4321
4322
4323
4324
4325
4326
ce2cded5
L
4327# Check whether --enable-fast-install or --disable-fast-install was given.
4328if test "${enable_fast_install+set}" = set; then
4329 enableval="$enable_fast_install"
4330 p=${PACKAGE-default}
4331 case $enableval in
4332 yes) enable_fast_install=yes ;;
4333 no) enable_fast_install=no ;;
4334 *)
4335 enable_fast_install=no
4336 # Look at the argument we got. We use all the common list separators.
4337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4338 for pkg in $enableval; do
4339 IFS="$lt_save_ifs"
4340 if test "X$pkg" = "X$p"; then
4341 enable_fast_install=yes
4342 fi
4343 done
4344 IFS="$lt_save_ifs"
4345 ;;
4346 esac
4347else
4348 enable_fast_install=yes
4349fi;
d7040cdb
SE
4350
4351
4352
4353
4354
ce2cded5
L
4355
4356
4357
4358echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4359echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4360if test "${lt_cv_path_SED+set}" = set; then
42ecbf5e 4361 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4362else
ce2cded5
L
4363 # Loop through the user's path and test for sed and gsed.
4364# Then use that list of sed's as ones to test for truncation.
42ecbf5e
DJ
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
ce2cded5
L
4370 for lt_ac_prog in sed gsed; do
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4373 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4374 fi
4375 done
4376 done
42ecbf5e 4377done
ce2cded5
L
4378IFS=$as_save_IFS
4379lt_ac_max=0
4380lt_ac_count=0
4381# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4382# along with /bin/sed that truncates output.
4383for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4384 test ! -f $lt_ac_sed && continue
4385 cat /dev/null > conftest.in
4386 lt_ac_count=0
4387 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4388 # Check for GNU sed and select it if it is found.
4389 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4390 lt_cv_path_SED=$lt_ac_sed
4391 break
42ecbf5e 4392 fi
ce2cded5
L
4393 while true; do
4394 cat conftest.in conftest.in >conftest.tmp
4395 mv conftest.tmp conftest.in
4396 cp conftest.in conftest.nl
4397 echo >>conftest.nl
4398 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4399 cmp -s conftest.out conftest.nl || break
4400 # 10000 chars as input seems more than enough
4401 test $lt_ac_count -gt 10 && break
4402 lt_ac_count=`expr $lt_ac_count + 1`
4403 if test $lt_ac_count -gt $lt_ac_max; then
4404 lt_ac_max=$lt_ac_count
4405 lt_cv_path_SED=$lt_ac_sed
4406 fi
4407 done
42ecbf5e 4408done
ac48eca1 4409
ac48eca1
AO
4410fi
4411
ce2cded5 4412SED=$lt_cv_path_SED
42ecbf5e 4413
ce2cded5
L
4414echo "$as_me:$LINENO: result: $SED" >&5
4415echo "${ECHO_T}$SED" >&6
252b5132 4416
ce2cded5
L
4417test -z "$SED" && SED=sed
4418Xsed="$SED -e 1s/^X//"
4867be41 4419
32fba81d 4420
42ecbf5e
DJ
4421
4422
ac48eca1 4423
252b5132 4424
252b5132 4425
42ecbf5e 4426
ac48eca1 4427
d7040cdb 4428
d7040cdb 4429
ce2cded5
L
4430echo "$as_me:$LINENO: checking for egrep" >&5
4431echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4432if test "${ac_cv_prog_egrep+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434else
4435 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4436 then ac_cv_prog_egrep='grep -E'
4437 else ac_cv_prog_egrep='egrep'
4438 fi
252b5132 4439fi
ce2cded5
L
4440echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4441echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4442 EGREP=$ac_cv_prog_egrep
252b5132 4443
252b5132 4444
ce2cded5
L
4445echo "$as_me:$LINENO: checking for fgrep" >&5
4446echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4447if test "${ac_cv_prog_fgrep+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4451 then ac_cv_prog_fgrep='grep -F'
4452 else ac_cv_prog_fgrep='fgrep'
4453 fi
4454fi
4455echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4456echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4457 FGREP=$ac_cv_prog_fgrep
252b5132 4458
252b5132 4459
ce2cded5 4460test -z "$GREP" && GREP=grep
42ecbf5e 4461
42ecbf5e 4462
252b5132 4463
252b5132 4464
252b5132
RH
4465
4466
252b5132 4467
252b5132 4468
252b5132 4469
ac48eca1 4470
42ecbf5e
DJ
4471
4472
4473
4474
4475
ac48eca1 4476
252b5132 4477
42ecbf5e 4478
9c8ebd6a 4479
ce2cded5
L
4480# Check whether --with-gnu-ld or --without-gnu-ld was given.
4481if test "${with_gnu_ld+set}" = set; then
4482 withval="$with_gnu_ld"
4483 test "$withval" = no || with_gnu_ld=yes
d7040cdb 4484else
ce2cded5
L
4485 with_gnu_ld=no
4486fi;
4487ac_prog=ld
4488if test "$GCC" = yes; then
4489 # Check if gcc -print-prog-name=ld gives a path.
4490 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4491echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4492 case $host in
4493 *-*-mingw*)
4494 # gcc leaves a trailing carriage return which upsets mingw
4495 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4496 *)
4497 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4498 esac
4499 case $ac_prog in
4500 # Accept absolute paths.
4501 [\\/]* | ?:[\\/]*)
4502 re_direlt='/[^/][^/]*/\.\./'
4503 # Canonicalize the pathname of ld
4504 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4505 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4506 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4507 done
4508 test -z "$LD" && LD="$ac_prog"
4509 ;;
4510 "")
4511 # If it fails, then pretend we aren't using GCC.
4512 ac_prog=ld
4513 ;;
4514 *)
4515 # If it is relative, then search for the first ld in PATH.
4516 with_gnu_ld=unknown
4517 ;;
4518 esac
4519elif test "$with_gnu_ld" = yes; then
4520 echo "$as_me:$LINENO: checking for GNU ld" >&5
4521echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4522else
4523 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4524echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4525fi
4526if test "${lt_cv_path_LD+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528else
4529 if test -z "$LD"; then
4530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4531 for ac_dir in $PATH; do
4532 IFS="$lt_save_ifs"
4533 test -z "$ac_dir" && ac_dir=.
4534 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4535 lt_cv_path_LD="$ac_dir/$ac_prog"
4536 # Check to see if the program is GNU ld. I'd rather use --version,
4537 # but apparently some variants of GNU ld only accept -v.
4538 # Break only if it was the GNU/non-GNU ld that we prefer.
4539 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4540 *GNU* | *'with BFD'*)
4541 test "$with_gnu_ld" != no && break
4542 ;;
4543 *)
4544 test "$with_gnu_ld" != yes && break
4545 ;;
4546 esac
4547 fi
4548 done
4549 IFS="$lt_save_ifs"
4550else
4551 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4552fi
4553fi
9e9b66a9 4554
ce2cded5
L
4555LD="$lt_cv_path_LD"
4556if test -n "$LD"; then
4557 echo "$as_me:$LINENO: result: $LD" >&5
4558echo "${ECHO_T}$LD" >&6
4559else
4560 echo "$as_me:$LINENO: result: no" >&5
4561echo "${ECHO_T}no" >&6
4562fi
4563test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4564echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4565 { (exit 1); exit 1; }; }
4566echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4567echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4568if test "${lt_cv_prog_gnu_ld+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4572case `$LD -v 2>&1 </dev/null` in
d7040cdb 4573*GNU* | *'with BFD'*)
ce2cded5
L
4574 lt_cv_prog_gnu_ld=yes
4575 ;;
4576*)
4577 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4578 ;;
4579esac
ce2cded5
L
4580fi
4581echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4582echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4583with_gnu_ld=$lt_cv_prog_gnu_ld
42ecbf5e 4584
e5a52504 4585
d7040cdb 4586
d7040cdb 4587
d7040cdb 4588
d7040cdb 4589
d7040cdb 4590
d7040cdb 4591
d7040cdb 4592
d7040cdb 4593
ce2cded5
L
4594echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4595echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4596if test "${lt_cv_path_NM+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 if test -n "$NM"; then
4600 # Let the user override the test.
4601 lt_cv_path_NM="$NM"
4602else
4603 lt_nm_to_check="${ac_tool_prefix}nm"
4604 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4605 lt_nm_to_check="$lt_nm_to_check nm"
4606 fi
4607 for lt_tmp_nm in $lt_nm_to_check; do
4608 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4609 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4610 IFS="$lt_save_ifs"
4611 test -z "$ac_dir" && ac_dir=.
4612 tmp_nm="$ac_dir/$lt_tmp_nm"
4613 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4614 # Check to see if the nm accepts a BSD-compat flag.
4615 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4616 # nm: unknown option "B" ignored
4617 # Tru64's nm complains that /dev/null is an invalid object file
4618 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4619 */dev/null* | *'Invalid file or object type'*)
4620 lt_cv_path_NM="$tmp_nm -B"
4621 break
4622 ;;
4623 *)
4624 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4625 */dev/null*)
4626 lt_cv_path_NM="$tmp_nm -p"
4627 break
4628 ;;
4629 *)
4630 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4631 continue # so that we can try to find one that supports BSD flags
4632 ;;
4633 esac
4634 ;;
4635 esac
4636 fi
4637 done
4638 IFS="$lt_save_ifs"
4639 done
4640 : ${lt_cv_path_NM=no}
4641fi
4642fi
4643echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4644echo "${ECHO_T}$lt_cv_path_NM" >&6
4645if test "$lt_cv_path_NM" != "no"; then
4646 NM="$lt_cv_path_NM"
4647else
4648 # Didn't find any BSD compatible name lister, look for dumpbin.
4649 if test -n "$ac_tool_prefix"; then
4650 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4651 do
4652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4654echo "$as_me:$LINENO: checking for $ac_word" >&5
4655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4656if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659 if test -n "$DUMPBIN"; then
4660 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4661else
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
42ecbf5e 4672 fi
42ecbf5e 4673done
ce2cded5 4674done
d15b04bd 4675
ce2cded5
L
4676fi
4677fi
4678DUMPBIN=$ac_cv_prog_DUMPBIN
4679if test -n "$DUMPBIN"; then
4680 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4681echo "${ECHO_T}$DUMPBIN" >&6
4682else
4683 echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6
252b5132 4685fi
d7040cdb 4686
ce2cded5
L
4687 test -n "$DUMPBIN" && break
4688 done
42ecbf5e 4689fi
ce2cded5
L
4690if test -z "$DUMPBIN"; then
4691 ac_ct_DUMPBIN=$DUMPBIN
4692 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4693do
4694 # Extract the first word of "$ac_prog", so it can be a program name with args.
4695set dummy $ac_prog; ac_word=$2
4696echo "$as_me:$LINENO: checking for $ac_word" >&5
4697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 4700else
ce2cded5
L
4701 if test -n "$ac_ct_DUMPBIN"; then
4702 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4714 fi
4715done
4716done
4717
4718fi
4719fi
4720ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4721if test -n "$ac_ct_DUMPBIN"; then
4722 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4723echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4724else
4725 echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6
e5a52504
MM
4727fi
4728
ce2cded5
L
4729 test -n "$ac_ct_DUMPBIN" && break
4730done
4731test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d15b04bd 4732
ce2cded5
L
4733 DUMPBIN=$ac_ct_DUMPBIN
4734fi
42ecbf5e 4735
42ecbf5e 4736
ce2cded5
L
4737 if test "$DUMPBIN" != ":"; then
4738 NM="$DUMPBIN"
4739 fi
4740fi
4741test -z "$NM" && NM=nm
42ecbf5e 4742
252b5132 4743
42ecbf5e 4744
42ecbf5e 4745
252b5132 4746
42ecbf5e 4747
ce2cded5
L
4748echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4749echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4750if test "${lt_cv_nm_interface+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753 lt_cv_nm_interface="BSD nm"
4754 echo "int some_variable = 0;" > conftest.$ac_ext
58c85be7 4755 (eval echo "\"\$as_me:4755: $ac_compile\"" >&5)
ce2cded5
L
4756 (eval "$ac_compile" 2>conftest.err)
4757 cat conftest.err >&5
58c85be7 4758 (eval echo "\"\$as_me:4758: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
4759 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4760 cat conftest.err >&5
58c85be7 4761 (eval echo "\"\$as_me:4761: output\"" >&5)
ce2cded5
L
4762 cat conftest.out >&5
4763 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4764 lt_cv_nm_interface="MS dumpbin"
4765 fi
4766 rm -f conftest*
4767fi
4768echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4769echo "${ECHO_T}$lt_cv_nm_interface" >&6
d15b04bd 4770
ce2cded5
L
4771echo "$as_me:$LINENO: checking whether ln -s works" >&5
4772echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4773LN_S=$as_ln_s
4774if test "$LN_S" = "ln -s"; then
4775 echo "$as_me:$LINENO: result: yes" >&5
4776echo "${ECHO_T}yes" >&6
4777else
4778 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4779echo "${ECHO_T}no, using $LN_S" >&6
4780fi
42ecbf5e 4781
ce2cded5
L
4782# find the maximum length of command line arguments
4783echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4784echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4785if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788 i=0
4789 teststring="ABCD"
252b5132 4790
ce2cded5
L
4791 case $build_os in
4792 msdosdjgpp*)
4793 # On DJGPP, this test can blow up pretty badly due to problems in libc
4794 # (any single argument exceeding 2000 bytes causes a buffer overrun
4795 # during glob expansion). Even if it were fixed, the result of this
4796 # check would be larger than it should be.
4797 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4798 ;;
e5a52504 4799
ce2cded5
L
4800 gnu*)
4801 # Under GNU Hurd, this test is not required because there is
4802 # no limit to the length of command line arguments.
4803 # Libtool will interpret -1 as no limit whatsoever
4804 lt_cv_sys_max_cmd_len=-1;
4805 ;;
42ecbf5e 4806
ce2cded5
L
4807 cygwin* | mingw*)
4808 # On Win9x/ME, this test blows up -- it succeeds, but takes
4809 # about 5 minutes as the teststring grows exponentially.
4810 # Worse, since 9x/ME are not pre-emptively multitasking,
4811 # you end up with a "frozen" computer, even though with patience
4812 # the test eventually succeeds (with a max line length of 256k).
4813 # Instead, let's just punt: use the minimum linelength reported by
4814 # all of the supported platforms: 8192 (on NT/2K/XP).
4815 lt_cv_sys_max_cmd_len=8192;
4816 ;;
42ecbf5e 4817
ce2cded5
L
4818 amigaos*)
4819 # On AmigaOS with pdksh, this test takes hours, literally.
4820 # So we just punt and use a minimum line length of 8192.
4821 lt_cv_sys_max_cmd_len=8192;
4822 ;;
42ecbf5e 4823
ce2cded5
L
4824 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4825 # This has been around since 386BSD, at least. Likely further.
4826 if test -x /sbin/sysctl; then
4827 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4828 elif test -x /usr/sbin/sysctl; then
4829 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4830 else
4831 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4832 fi
4833 # And add a safety zone
4834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4836 ;;
42ecbf5e 4837
ce2cded5
L
4838 interix*)
4839 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4840 lt_cv_sys_max_cmd_len=196608
4841 ;;
d7040cdb 4842
ce2cded5
L
4843 osf*)
4844 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4845 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4846 # nice to cause kernel panics so lets avoid the loop below.
4847 # First set a reasonable default.
4848 lt_cv_sys_max_cmd_len=16384
4849 #
4850 if test -x /sbin/sysconfig; then
4851 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4852 *1*) lt_cv_sys_max_cmd_len=-1 ;;
d7040cdb 4853 esac
ce2cded5
L
4854 fi
4855 ;;
4856 sco3.2v5*)
4857 lt_cv_sys_max_cmd_len=102400
4858 ;;
4859 sysv5* | sco5v6* | sysv4.2uw2*)
4860 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4861 if test -n "$kargmax"; then
4862 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
d7040cdb 4863 else
ce2cded5 4864 lt_cv_sys_max_cmd_len=32768
d7040cdb 4865 fi
ce2cded5
L
4866 ;;
4867 *)
4868 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4869 if test -n $lt_cv_sys_max_cmd_len; then
4870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4872 else
4873 # Make teststring a little bigger before we do anything with it.
4874 # a 1K string should be a reasonable start.
4875 for i in 1 2 3 4 5 6 7 8 ; do
4876 teststring=$teststring$teststring
4877 done
4878 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4879 # If test is not a shell built-in, we'll probably end up computing a
4880 # maximum length that is only half of the actual maximum length, but
4881 # we can't tell.
4882 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4883 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4884 test $i != 17 # 1/2 MB should be enough
4885 do
4886 i=`expr $i + 1`
4887 teststring=$teststring$teststring
4888 done
4889 # Only check the string length outside the loop.
4890 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4891 teststring=
4892 # Add a significant safety factor because C++ compilers can tack on
4893 # massive amounts of additional arguments before passing them to the
4894 # linker. It appears as though 1/2 is a usable value.
4895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4896 fi
4897 ;;
4898 esac
d7040cdb 4899
ce2cded5 4900fi
d7040cdb 4901
ce2cded5
L
4902if test -n $lt_cv_sys_max_cmd_len ; then
4903 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4904echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
42ecbf5e 4905else
ce2cded5
L
4906 echo "$as_me:$LINENO: result: none" >&5
4907echo "${ECHO_T}none" >&6
4908fi
4909max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb 4910
42ecbf5e 4911
252b5132 4912
42ecbf5e 4913
42ecbf5e 4914
d7040cdb 4915
d7040cdb 4916
ce2cded5
L
4917: ${CP="cp -f"}
4918: ${MV="mv -f"}
4919: ${RM="rm -f"}
d7040cdb 4920
ce2cded5
L
4921echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4922echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4923# Try some XSI features
4924xsi_shell=no
4925( _lt_dummy="a/b/c"
4926 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4927 = c,a/b,, ) >/dev/null 2>&1 \
4928 && xsi_shell=yes
4929echo "$as_me:$LINENO: result: $xsi_shell" >&5
4930echo "${ECHO_T}$xsi_shell" >&6
d7040cdb 4931
ce2cded5
L
4932
4933echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4934echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4935lt_shell_append=no
4936( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4937 >/dev/null 2>&1 \
4938 && lt_shell_append=yes
4939echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4940echo "${ECHO_T}$lt_shell_append" >&6
4941
4942
4943if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4944 lt_unset=unset
d7040cdb 4945else
ce2cded5 4946 lt_unset=false
d7040cdb 4947fi
42ecbf5e 4948
42ecbf5e 4949
42ecbf5e 4950
42ecbf5e 4951
d7040cdb 4952
ce2cded5
L
4953# test EBCDIC or ASCII
4954case `echo X|tr X '\101'` in
4955 A) # ASCII based system
4956 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4957 lt_SP2NL='tr \040 \012'
4958 lt_NL2SP='tr \015\012 \040\040'
4959 ;;
4960 *) # EBCDIC based system
4961 lt_SP2NL='tr \100 \n'
4962 lt_NL2SP='tr \r\n \100\100'
4963 ;;
4964esac
d7040cdb 4965
42ecbf5e 4966
d7040cdb 4967
d7040cdb 4968
d7040cdb
SE
4969
4970
d7040cdb 4971
d7040cdb 4972
42ecbf5e 4973
ce2cded5
L
4974echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4975echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4976if test "${lt_cv_ld_reload_flag+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978else
4979 lt_cv_ld_reload_flag='-r'
42ecbf5e 4980fi
ce2cded5
L
4981echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4982echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4983reload_flag=$lt_cv_ld_reload_flag
4984case $reload_flag in
4985"" | " "*) ;;
4986*) reload_flag=" $reload_flag" ;;
4987esac
4988reload_cmds='$LD$reload_flag -o $output$reload_objs'
4989case $host_os in
4990 darwin*)
4991 if test "$GCC" = yes; then
4992 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4993 else
4994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4995 fi
4996 ;;
4997esac
42ecbf5e 4998
252b5132 4999
d7040cdb 5000
252b5132 5001
252b5132 5002
252b5132 5003
252b5132
RH
5004
5005
ce2cded5
L
5006
5007
5008echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5009echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5010if test "${lt_cv_deplibs_check_method+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5012else
ce2cded5
L
5013 lt_cv_file_magic_cmd='$MAGIC_CMD'
5014lt_cv_file_magic_test_file=
5015lt_cv_deplibs_check_method='unknown'
5016# Need to set the preceding variable on all platforms that support
5017# interlibrary dependencies.
5018# 'none' -- dependencies not supported.
5019# `unknown' -- same as none, but documents that we really don't know.
5020# 'pass_all' -- all dependencies passed with no checks.
5021# 'test_compile' -- check by making test program.
5022# 'file_magic [[regex]]' -- check by looking for files in library path
5023# which responds to the $file_magic_cmd with a given extended regex.
5024# If you have `file' or equivalent on your system and you're not sure
5025# whether `pass_all' will *always* work, you probably want this one.
b83ef3ee 5026
ce2cded5 5027case $host_os in
50e7d84b 5028aix[4-9]*)
ce2cded5
L
5029 lt_cv_deplibs_check_method=pass_all
5030 ;;
20e95c23 5031
ce2cded5
L
5032beos*)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
20e95c23 5035
ce2cded5
L
5036bsdi[45]*)
5037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5038 lt_cv_file_magic_cmd='/usr/bin/file -L'
5039 lt_cv_file_magic_test_file=/shlib/libc.so
5040 ;;
20e95c23 5041
ce2cded5
L
5042cygwin*)
5043 # func_win32_libid is a shell function defined in ltmain.sh
5044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5045 lt_cv_file_magic_cmd='func_win32_libid'
5046 ;;
20e95c23 5047
ce2cded5
L
5048mingw* | pw32*)
5049 # Base MSYS/MinGW do not provide the 'file' command needed by
5050 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5051 # unless we find 'file', for example because we are cross-compiling.
5052 if ( file / ) >/dev/null 2>&1; then
5053 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5054 lt_cv_file_magic_cmd='func_win32_libid'
5055 else
5056 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5057 lt_cv_file_magic_cmd='$OBJDUMP -f'
5058 fi
5059 ;;
20e95c23 5060
ce2cded5
L
5061darwin* | rhapsody*)
5062 lt_cv_deplibs_check_method=pass_all
5063 ;;
20e95c23 5064
ce2cded5
L
5065freebsd* | dragonfly*)
5066 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5067 case $host_cpu in
5068 i*86 )
5069 # Not sure whether the presence of OpenBSD here was a mistake.
5070 # Let's accept both of them until this is cleared up.
5071 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5072 lt_cv_file_magic_cmd=/usr/bin/file
5073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5074 ;;
5075 esac
5076 else
5077 lt_cv_deplibs_check_method=pass_all
5078 fi
5079 ;;
20e95c23 5080
ce2cded5
L
5081gnu*)
5082 lt_cv_deplibs_check_method=pass_all
5083 ;;
20e95c23 5084
ce2cded5
L
5085hpux10.20* | hpux11*)
5086 lt_cv_file_magic_cmd=/usr/bin/file
5087 case $host_cpu in
5088 ia64*)
5089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5090 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5091 ;;
5092 hppa*64*)
5093 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]'
5094 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5095 ;;
5096 *)
5097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5098 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5099 ;;
5100 esac
5101 ;;
20e95c23 5102
ce2cded5
L
5103interix[3-9]*)
5104 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5106 ;;
20e95c23 5107
ce2cded5
L
5108irix5* | irix6* | nonstopux*)
5109 case $LD in
5110 *-32|*"-32 ") libmagic=32-bit;;
5111 *-n32|*"-n32 ") libmagic=N32;;
5112 *-64|*"-64 ") libmagic=64-bit;;
5113 *) libmagic=never-match;;
5114 esac
5115 lt_cv_deplibs_check_method=pass_all
5116 ;;
20e95c23 5117
ce2cded5
L
5118# This must be Linux ELF.
5119linux* | k*bsd*-gnu)
5120 lt_cv_deplibs_check_method=pass_all
5121 ;;
20e95c23 5122
ce2cded5
L
5123netbsd*)
5124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5126 else
5127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5128 fi
5129 ;;
20e95c23 5130
ce2cded5
L
5131newos6*)
5132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5133 lt_cv_file_magic_cmd=/usr/bin/file
5134 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5135 ;;
20e95c23 5136
ce2cded5
L
5137*nto* | *qnx*)
5138 lt_cv_deplibs_check_method=pass_all
5139 ;;
20e95c23 5140
ce2cded5
L
5141openbsd*)
5142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5144 else
5145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5146 fi
5147 ;;
20e95c23 5148
ce2cded5
L
5149osf3* | osf4* | osf5*)
5150 lt_cv_deplibs_check_method=pass_all
5151 ;;
20e95c23 5152
ce2cded5
L
5153rdos*)
5154 lt_cv_deplibs_check_method=pass_all
5155 ;;
20e95c23 5156
ce2cded5
L
5157solaris*)
5158 lt_cv_deplibs_check_method=pass_all
5159 ;;
20e95c23 5160
ce2cded5
L
5161sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
20e95c23 5164
ce2cded5
L
5165sysv4 | sysv4.3*)
5166 case $host_vendor in
5167 motorola)
5168 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]'
5169 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5170 ;;
5171 ncr)
5172 lt_cv_deplibs_check_method=pass_all
5173 ;;
5174 sequent)
5175 lt_cv_file_magic_cmd='/bin/file'
5176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5177 ;;
5178 sni)
5179 lt_cv_file_magic_cmd='/bin/file'
5180 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5181 lt_cv_file_magic_test_file=/lib/libc.so
5182 ;;
5183 siemens)
5184 lt_cv_deplibs_check_method=pass_all
5185 ;;
5186 pc)
5187 lt_cv_deplibs_check_method=pass_all
5188 ;;
5189 esac
5190 ;;
d7040cdb 5191
ce2cded5
L
5192tpf*)
5193 lt_cv_deplibs_check_method=pass_all
5194 ;;
5195esac
d7040cdb 5196
20e95c23 5197fi
ce2cded5
L
5198echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5199echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5200file_magic_cmd=$lt_cv_file_magic_cmd
5201deplibs_check_method=$lt_cv_deplibs_check_method
5202test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
20e95c23 5214
ce2cded5
L
5215if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5217set dummy ${ac_tool_prefix}ar; ac_word=$2
5218echo "$as_me:$LINENO: checking for $ac_word" >&5
5219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5220if test "${ac_cv_prog_AR+set}" = set; then
d7040cdb 5221 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 5222else
ce2cded5
L
5223 if test -n "$AR"; then
5224 ac_cv_prog_AR="$AR" # Let the user override the test.
d7040cdb 5225else
ce2cded5
L
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_AR="${ac_tool_prefix}ar"
5234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5236 fi
5237done
5238done
5239
d7040cdb 5240fi
42ecbf5e 5241fi
ce2cded5
L
5242AR=$ac_cv_prog_AR
5243if test -n "$AR"; then
5244 echo "$as_me:$LINENO: result: $AR" >&5
5245echo "${ECHO_T}$AR" >&6
5246else
5247 echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
5249fi
d7040cdb 5250
ce2cded5
L
5251fi
5252if test -z "$ac_cv_prog_AR"; then
5253 ac_ct_AR=$AR
5254 # Extract the first word of "ar", so it can be a program name with args.
5255set dummy ar; ac_word=$2
5256echo "$as_me:$LINENO: checking for $ac_word" >&5
5257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5258if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260else
5261 if test -n "$ac_ct_AR"; then
5262 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5263else
5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271 ac_cv_prog_ac_ct_AR="ar"
5272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275done
5276done
d7040cdb 5277
ce2cded5
L
5278 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5279fi
5280fi
5281ac_ct_AR=$ac_cv_prog_ac_ct_AR
5282if test -n "$ac_ct_AR"; then
5283 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5284echo "${ECHO_T}$ac_ct_AR" >&6
5285else
5286 echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6
5288fi
d7040cdb 5289
ce2cded5
L
5290 AR=$ac_ct_AR
5291else
5292 AR="$ac_cv_prog_AR"
5293fi
d7040cdb 5294
ce2cded5
L
5295test -z "$AR" && AR=ar
5296test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
ce2cded5
L
5308if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5310set dummy ${ac_tool_prefix}strip; ac_word=$2
5311echo "$as_me:$LINENO: checking for $ac_word" >&5
5312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5313if test "${ac_cv_prog_STRIP+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315else
5316 if test -n "$STRIP"; then
5317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5318else
5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
20e95c23 5329 fi
d7040cdb 5330done
ce2cded5 5331done
d7040cdb 5332
ce2cded5
L
5333fi
5334fi
5335STRIP=$ac_cv_prog_STRIP
5336if test -n "$STRIP"; then
5337 echo "$as_me:$LINENO: result: $STRIP" >&5
5338echo "${ECHO_T}$STRIP" >&6
5339else
5340 echo "$as_me:$LINENO: result: no" >&5
5341echo "${ECHO_T}no" >&6
5342fi
d7040cdb 5343
ce2cded5
L
5344fi
5345if test -z "$ac_cv_prog_STRIP"; then
5346 ac_ct_STRIP=$STRIP
5347 # Extract the first word of "strip", so it can be a program name with args.
5348set dummy strip; ac_word=$2
5349echo "$as_me:$LINENO: checking for $ac_word" >&5
5350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5351if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20e95c23
DJ
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
ce2cded5
L
5354 if test -n "$ac_ct_STRIP"; then
5355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364 ac_cv_prog_ac_ct_STRIP="strip"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5367 fi
5368done
5369done
d7040cdb 5370
ce2cded5 5371 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
20e95c23 5372fi
ce2cded5
L
5373fi
5374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5375if test -n "$ac_ct_STRIP"; then
5376 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5377echo "${ECHO_T}$ac_ct_STRIP" >&6
42ecbf5e
DJ
5378else
5379 echo "$as_me:$LINENO: result: no" >&5
5380echo "${ECHO_T}no" >&6
5381fi
5382
ce2cded5
L
5383 STRIP=$ac_ct_STRIP
5384else
5385 STRIP="$ac_cv_prog_STRIP"
5386fi
20e95c23 5387
ce2cded5 5388test -z "$STRIP" && STRIP=:
20e95c23 5389
20e95c23 5390
20e95c23 5391
ce2cded5
L
5392
5393
5394
5395if test -n "$ac_tool_prefix"; then
5396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5397set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5398echo "$as_me:$LINENO: checking for $ac_word" >&5
5399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5400if test "${ac_cv_prog_RANLIB+set}" = set; then
42ecbf5e
DJ
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
ce2cded5
L
5403 if test -n "$RANLIB"; then
5404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417done
5418done
d7040cdb 5419
ce2cded5
L
5420fi
5421fi
5422RANLIB=$ac_cv_prog_RANLIB
5423if test -n "$RANLIB"; then
5424 echo "$as_me:$LINENO: result: $RANLIB" >&5
5425echo "${ECHO_T}$RANLIB" >&6
5426else
5427 echo "$as_me:$LINENO: result: no" >&5
5428echo "${ECHO_T}no" >&6
5429fi
d7040cdb 5430
20e95c23 5431fi
ce2cded5
L
5432if test -z "$ac_cv_prog_RANLIB"; then
5433 ac_ct_RANLIB=$RANLIB
5434 # Extract the first word of "ranlib", so it can be a program name with args.
5435set dummy ranlib; ac_word=$2
5436echo "$as_me:$LINENO: checking for $ac_word" >&5
5437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5438if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440else
5441 if test -n "$ac_ct_RANLIB"; then
5442 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_ac_ct_RANLIB="ranlib"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455done
5456done
d7040cdb 5457
ce2cded5
L
5458 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5459fi
5460fi
5461ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5462if test -n "$ac_ct_RANLIB"; then
5463 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5464echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23
DJ
5465else
5466 echo "$as_me:$LINENO: result: no" >&5
5467echo "${ECHO_T}no" >&6
5468fi
5469
ce2cded5
L
5470 RANLIB=$ac_ct_RANLIB
5471else
5472 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5473fi
20e95c23 5474
ce2cded5 5475test -z "$RANLIB" && RANLIB=:
20e95c23 5476
20e95c23
DJ
5477
5478
5479
5480
d7040cdb 5481
ce2cded5
L
5482# Determine commands to create old-style static archives.
5483old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5484old_postinstall_cmds='chmod 644 $oldlib'
5485old_postuninstall_cmds=
d7040cdb 5486
ce2cded5
L
5487if test -n "$RANLIB"; then
5488 case $host_os in
5489 openbsd*)
5490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5491 ;;
5492 *)
5493 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5494 ;;
5495 esac
5496 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5497fi
d7040cdb
SE
5498
5499
5500
5501
5502
5503
5504
d7040cdb 5505
d7040cdb 5506
d7040cdb 5507
d7040cdb 5508
d7040cdb 5509
d7040cdb
SE
5510
5511
d7040cdb 5512
d7040cdb 5513
d7040cdb 5514
d7040cdb 5515
d7040cdb 5516
42ecbf5e 5517
d7040cdb
SE
5518
5519
5520
5521
5522
5523
d7040cdb 5524
d7040cdb 5525
d7040cdb 5526
d7040cdb 5527
d7040cdb 5528
d7040cdb 5529
d7040cdb 5530
d7040cdb 5531
ce2cded5
L
5532# If no C compiler was specified, use CC.
5533LTCC=${LTCC-"$CC"}
d7040cdb 5534
ce2cded5
L
5535# If no C compiler flags were specified, use CFLAGS.
5536LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 5537
ce2cded5
L
5538# Allow CC to be a program name with arguments.
5539compiler=$CC
d7040cdb 5540
d7040cdb 5541
ce2cded5
L
5542# Check for command to grab the raw symbol name followed by C symbol from nm.
5543echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5544echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5545if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
d7040cdb 5548
ce2cded5
L
5549# These are sane defaults that work on at least a few old systems.
5550# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 5551
ce2cded5
L
5552# Character class describing NM global symbol codes.
5553symcode='[BCDEGRST]'
d7040cdb 5554
ce2cded5
L
5555# Regexp to match symbols that can be accessed directly from C.
5556sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 5557
ce2cded5
L
5558# Define system-specific variables.
5559case $host_os in
5560aix*)
5561 symcode='[BCDT]'
5562 ;;
5563cygwin* | mingw* | pw32*)
5564 symcode='[ABCDGISTW]'
5565 ;;
5566hpux*)
5567 if test "$host_cpu" = ia64; then
5568 symcode='[ABCDEGRST]'
5569 fi
5570 ;;
5571irix* | nonstopux*)
5572 symcode='[BCDEGRST]'
5573 ;;
5574osf*)
5575 symcode='[BCDEGQRST]'
5576 ;;
5577solaris*)
5578 symcode='[BDRT]'
5579 ;;
5580sco3.2v5*)
5581 symcode='[DT]'
5582 ;;
5583sysv4.2uw2*)
5584 symcode='[DT]'
5585 ;;
5586sysv5* | sco5v6* | unixware* | OpenUNIX*)
5587 symcode='[ABDT]'
5588 ;;
5589sysv4)
5590 symcode='[DFNSTU]'
5591 ;;
5592esac
d7040cdb 5593
ce2cded5
L
5594# If we're using GNU nm, then use its standard symbol codes.
5595case `$NM -V 2>&1` in
5596*GNU* | *'with BFD'*)
5597 symcode='[ABCDGIRSTW]' ;;
5598esac
d7040cdb 5599
ce2cded5
L
5600# Transform an extracted symbol line into a proper C declaration.
5601# Some systems (esp. on ia64) link data and code symbols differently,
5602# so use this general approach.
5603lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 5604
ce2cded5
L
5605# Transform an extracted symbol line into symbol name and symbol address
5606lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d7040cdb 5607
ce2cded5
L
5608# Handle CRLF in mingw tool chain
5609opt_cr=
5610case $build_os in
5611mingw*)
5612 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5613 ;;
5614esac
d7040cdb 5615
ce2cded5
L
5616# Try without a prefix underscore, then with it.
5617for ac_symprfx in "" "_"; do
d7040cdb 5618
ce2cded5
L
5619 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5620 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 5621
ce2cded5
L
5622 # Write the raw and C identifiers.
5623 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5624 # Fake it for dumpbin and say T for any non-static function
5625 # and D for any global variable.
5626 # Also find C++ and __fastcall symbols from MSVC++,
5627 # which start with @ or ?.
5628 lt_cv_sys_global_symbol_pipe="$AWK '"\
5629" {last_section=section; section=\$ 3};"\
5630" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5631" \$ 0!~/External *\|/{next};"\
5632" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5633" {if(hide[section]) next};"\
5634" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5635" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5636" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5637" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5638" ' prfx=^$ac_symprfx"
5639 else
5640 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5641 fi
d7040cdb 5642
ce2cded5
L
5643 # Check to see that the pipe works correctly.
5644 pipe_works=no
d7040cdb 5645
ce2cded5
L
5646 rm -f conftest*
5647 cat > conftest.$ac_ext <<_LT_EOF
5648#ifdef __cplusplus
5649extern "C" {
5650#endif
5651char nm_test_var;
5652void nm_test_func(void);
5653void nm_test_func(void){}
5654#ifdef __cplusplus
5655}
5656#endif
5657int main(){nm_test_var='a';nm_test_func();return(0);}
5658_LT_EOF
d7040cdb 5659
ce2cded5
L
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; then
5665 # Now try to grab the symbols.
5666 nlist=conftest.nm
5667 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5668 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } && test -s "$nlist"; then
5672 # Try sorting and uniquifying the output.
5673 if sort "$nlist" | uniq > "$nlist"T; then
5674 mv -f "$nlist"T "$nlist"
5675 else
5676 rm -f "$nlist"T
5677 fi
d7040cdb 5678
ce2cded5
L
5679 # Make sure that we snagged all the symbols we need.
5680 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5681 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5682 cat <<_LT_EOF > conftest.$ac_ext
5683#ifdef __cplusplus
5684extern "C" {
5685#endif
d7040cdb 5686
ce2cded5
L
5687_LT_EOF
5688 # Now generate the symbol file.
5689 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 5690
ce2cded5 5691 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 5692
ce2cded5
L
5693/* The mapping between symbol names and symbols. */
5694const struct {
5695 const char *name;
5696 void *address;
5697}
5698lt__PROGRAM__LTX_preloaded_symbols[] =
5699{
5700 { "@PROGRAM@", (void *) 0 },
5701_LT_EOF
5702 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5703 cat <<\_LT_EOF >> conftest.$ac_ext
5704 {0, (void *) 0}
5705};
d7040cdb 5706
ce2cded5
L
5707/* This works around a problem in FreeBSD linker */
5708#ifdef FREEBSD_WORKAROUND
5709static const void *lt_preloaded_setup() {
5710 return lt__PROGRAM__LTX_preloaded_symbols;
5711}
5712#endif
d7040cdb 5713
ce2cded5
L
5714#ifdef __cplusplus
5715}
5716#endif
5717_LT_EOF
5718 # Now try linking the two files.
5719 mv conftest.$ac_objext conftstm.$ac_objext
5720 lt_save_LIBS="$LIBS"
5721 lt_save_CFLAGS="$CFLAGS"
5722 LIBS="conftstm.$ac_objext"
5723 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725 (eval $ac_link) 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5729 pipe_works=yes
5730 fi
5731 LIBS="$lt_save_LIBS"
5732 CFLAGS="$lt_save_CFLAGS"
5733 else
5734 echo "cannot find nm_test_func in $nlist" >&5
5735 fi
5736 else
5737 echo "cannot find nm_test_var in $nlist" >&5
5738 fi
5739 else
5740 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5741 fi
5742 else
5743 echo "$progname: failed program was:" >&5
5744 cat conftest.$ac_ext >&5
5745 fi
5746 rm -f conftest* conftst*
d7040cdb 5747
ce2cded5
L
5748 # Do not use the global_symbol_pipe unless it works.
5749 if test "$pipe_works" = yes; then
5750 break
5751 else
5752 lt_cv_sys_global_symbol_pipe=
5753 fi
5754done
d7040cdb 5755
42ecbf5e 5756fi
d7040cdb 5757
ce2cded5
L
5758if test -z "$lt_cv_sys_global_symbol_pipe"; then
5759 lt_cv_sys_global_symbol_to_cdecl=
5760fi
5761if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5762 echo "$as_me:$LINENO: result: failed" >&5
5763echo "${ECHO_T}failed" >&6
42ecbf5e 5764else
ce2cded5
L
5765 echo "$as_me:$LINENO: result: ok" >&5
5766echo "${ECHO_T}ok" >&6
42ecbf5e
DJ
5767fi
5768
42ecbf5e 5769
d7040cdb
SE
5770
5771
5772
5773
5774
20e95c23 5775
d7040cdb 5776
d7040cdb
SE
5777
5778
5779
5780
5781
5782
5783
20e95c23 5784
ce2cded5
L
5785# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5786if test "${enable_libtool_lock+set}" = set; then
5787 enableval="$enable_libtool_lock"
d7040cdb 5788
ce2cded5
L
5789fi;
5790test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d7040cdb 5791
ce2cded5
L
5792# Some flags need to be propagated to the compiler or linker for good
5793# libtool support.
5794case $host in
5795ia64-*-hpux*)
5796 # Find out which ABI we are using.
5797 echo 'int i;' > conftest.$ac_ext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799 (eval $ac_compile) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; then
5803 case `/usr/bin/file conftest.$ac_objext` in
5804 *ELF-32*)
5805 HPUX_IA64_MODE="32"
5806 ;;
5807 *ELF-64*)
5808 HPUX_IA64_MODE="64"
5809 ;;
5810 esac
5811 fi
5812 rm -rf conftest*
5813 ;;
5814*-*-irix6*)
5815 # Find out which ABI we are using.
58c85be7 5816 echo '#line 5816 "configure"' > conftest.$ac_ext
ce2cded5
L
5817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818 (eval $ac_compile) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; then
5822 if test "$lt_cv_prog_gnu_ld" = yes; then
5823 case `/usr/bin/file conftest.$ac_objext` in
5824 *32-bit*)
5825 LD="${LD-ld} -melf32bsmip"
5826 ;;
5827 *N32*)
5828 LD="${LD-ld} -melf32bmipn32"
5829 ;;
5830 *64-bit*)
5831 LD="${LD-ld} -melf64bmip"
5832 ;;
5833 esac
5834 else
5835 case `/usr/bin/file conftest.$ac_objext` in
5836 *32-bit*)
5837 LD="${LD-ld} -32"
5838 ;;
5839 *N32*)
5840 LD="${LD-ld} -n32"
5841 ;;
5842 *64-bit*)
5843 LD="${LD-ld} -64"
5844 ;;
5845 esac
5846 fi
5847 fi
5848 rm -rf conftest*
5849 ;;
d7040cdb 5850
ce2cded5
L
5851x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5852s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5853 # Find out which ABI we are using.
5854 echo 'int i;' > conftest.$ac_ext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856 (eval $ac_compile) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; then
5860 case `/usr/bin/file conftest.o` in
5861 *32-bit*)
5862 case $host in
5863 x86_64-*kfreebsd*-gnu)
5864 LD="${LD-ld} -m elf_i386_fbsd"
5865 ;;
5866 x86_64-*linux*)
5867 LD="${LD-ld} -m elf_i386"
5868 ;;
5869 ppc64-*linux*|powerpc64-*linux*)
5870 LD="${LD-ld} -m elf32ppclinux"
5871 ;;
5872 s390x-*linux*)
5873 LD="${LD-ld} -m elf_s390"
5874 ;;
5875 sparc64-*linux*)
5876 LD="${LD-ld} -m elf32_sparc"
5877 ;;
5878 esac
5879 ;;
5880 *64-bit*)
5881 case $host in
5882 x86_64-*kfreebsd*-gnu)
5883 LD="${LD-ld} -m elf_x86_64_fbsd"
5884 ;;
5885 x86_64-*linux*)
5886 LD="${LD-ld} -m elf_x86_64"
5887 ;;
5888 ppc*-*linux*|powerpc*-*linux*)
5889 LD="${LD-ld} -m elf64ppc"
5890 ;;
5891 s390*-*linux*|s390*-*tpf*)
5892 LD="${LD-ld} -m elf64_s390"
5893 ;;
5894 sparc*-*linux*)
5895 LD="${LD-ld} -m elf64_sparc"
5896 ;;
5897 esac
5898 ;;
5899 esac
5900 fi
5901 rm -rf conftest*
5902 ;;
d7040cdb 5903
ce2cded5
L
5904*-*-sco3.2v5*)
5905 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5906 SAVE_CFLAGS="$CFLAGS"
5907 CFLAGS="$CFLAGS -belf"
5908 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5909echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5910if test "${lt_cv_cc_needs_belf+set}" = set; then
20e95c23
DJ
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
ce2cded5
L
5913 ac_ext=c
5914ac_cpp='$CPP $CPPFLAGS'
5915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5918
ce2cded5
L
5919 cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
d7040cdb 5925
ce2cded5
L
5926int
5927main ()
5928{
d7040cdb 5929
ce2cded5
L
5930 ;
5931 return 0;
5932}
5933_ACEOF
5934rm -f conftest.$ac_objext conftest$ac_exeext
5935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936 (eval $ac_link) 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } &&
5943 { ac_try='test -z "$ac_c_werror_flag"
5944 || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 lt_cv_cc_needs_belf=yes
d7040cdb 5957else
ce2cded5
L
5958 echo "$as_me: failed program was:" >&5
5959sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5960
ce2cded5
L
5961lt_cv_cc_needs_belf=no
5962fi
5963rm -f conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5965 ac_ext=c
5966ac_cpp='$CPP $CPPFLAGS'
5967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5969ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5970
ce2cded5
L
5971fi
5972echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5973echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5974 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5975 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5976 CFLAGS="$SAVE_CFLAGS"
5977 fi
5978 ;;
5979sparc*-*solaris*)
5980 # Find out which ABI we are using.
5981 echo 'int i;' > conftest.$ac_ext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; then
5987 case `/usr/bin/file conftest.o` in
5988 *64-bit*)
5989 case $lt_cv_prog_gnu_ld in
5990 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5991 *) LD="${LD-ld} -64" ;;
5992 esac
5993 ;;
5994 esac
5995 fi
5996 rm -rf conftest*
5997 ;;
5998esac
d7040cdb 5999
ce2cded5 6000need_locks="$enable_libtool_lock"
d7040cdb 6001
ce2cded5
L
6002ac_ext=c
6003ac_cpp='$CPP $CPPFLAGS'
6004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6008echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6009# On Suns, sometimes $CPP names a directory.
6010if test -n "$CPP" && test -d "$CPP"; then
6011 CPP=
6012fi
6013if test -z "$CPP"; then
6014 if test "${ac_cv_prog_CPP+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017 # Double quotes because CPP needs to be expanded
6018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6019 do
6020 ac_preproc_ok=false
6021for ac_c_preproc_warn_flag in '' yes
6022do
6023 # Use a header file that comes with gcc, so configuring glibc
6024 # with a fresh cross-compiler works.
6025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6026 # <limits.h> exists even on freestanding compilers.
6027 # On the NeXT, cc -E runs the code through the compiler's parser,
6028 # not just through cpp. "Syntax error" is here to catch this case.
6029 cat >conftest.$ac_ext <<_ACEOF
6030/* confdefs.h. */
6031_ACEOF
6032cat confdefs.h >>conftest.$ac_ext
6033cat >>conftest.$ac_ext <<_ACEOF
6034/* end confdefs.h. */
6035#ifdef __STDC__
6036# include <limits.h>
6037#else
6038# include <assert.h>
6039#endif
6040 Syntax error
6041_ACEOF
6042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6044 ac_status=$?
6045 grep -v '^ *+' conftest.er1 >conftest.err
6046 rm -f conftest.er1
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } >/dev/null; then
6050 if test -s conftest.err; then
6051 ac_cpp_err=$ac_c_preproc_warn_flag
6052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6053 else
6054 ac_cpp_err=
6055 fi
6056else
6057 ac_cpp_err=yes
6058fi
6059if test -z "$ac_cpp_err"; then
6060 :
6061else
6062 echo "$as_me: failed program was:" >&5
6063sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6064
ce2cded5
L
6065 # Broken: fails on valid input.
6066continue
6067fi
6068rm -f conftest.err conftest.$ac_ext
d7040cdb 6069
ce2cded5
L
6070 # OK, works on sane cases. Now check whether non-existent headers
6071 # can be detected and how.
6072 cat >conftest.$ac_ext <<_ACEOF
6073/* confdefs.h. */
6074_ACEOF
6075cat confdefs.h >>conftest.$ac_ext
6076cat >>conftest.$ac_ext <<_ACEOF
6077/* end confdefs.h. */
6078#include <ac_nonexistent.h>
6079_ACEOF
6080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } >/dev/null; then
6088 if test -s conftest.err; then
6089 ac_cpp_err=$ac_c_preproc_warn_flag
6090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6091 else
6092 ac_cpp_err=
6093 fi
6094else
6095 ac_cpp_err=yes
6096fi
6097if test -z "$ac_cpp_err"; then
6098 # Broken: success on invalid input.
6099continue
6100else
6101 echo "$as_me: failed program was:" >&5
6102sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6103
ce2cded5
L
6104 # Passes both tests.
6105ac_preproc_ok=:
6106break
6107fi
6108rm -f conftest.err conftest.$ac_ext
d7040cdb 6109
ce2cded5
L
6110done
6111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6112rm -f conftest.err conftest.$ac_ext
6113if $ac_preproc_ok; then
6114 break
6115fi
d7040cdb 6116
ce2cded5
L
6117 done
6118 ac_cv_prog_CPP=$CPP
d7040cdb 6119
ce2cded5
L
6120fi
6121 CPP=$ac_cv_prog_CPP
6122else
6123 ac_cv_prog_CPP=$CPP
6124fi
6125echo "$as_me:$LINENO: result: $CPP" >&5
6126echo "${ECHO_T}$CPP" >&6
6127ac_preproc_ok=false
6128for ac_c_preproc_warn_flag in '' yes
6129do
6130 # Use a header file that comes with gcc, so configuring glibc
6131 # with a fresh cross-compiler works.
6132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6133 # <limits.h> exists even on freestanding compilers.
6134 # On the NeXT, cc -E runs the code through the compiler's parser,
6135 # not just through cpp. "Syntax error" is here to catch this case.
6136 cat >conftest.$ac_ext <<_ACEOF
6137/* confdefs.h. */
6138_ACEOF
6139cat confdefs.h >>conftest.$ac_ext
6140cat >>conftest.$ac_ext <<_ACEOF
6141/* end confdefs.h. */
6142#ifdef __STDC__
6143# include <limits.h>
6144#else
6145# include <assert.h>
6146#endif
6147 Syntax error
6148_ACEOF
6149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } >/dev/null; then
6157 if test -s conftest.err; then
6158 ac_cpp_err=$ac_c_preproc_warn_flag
6159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6160 else
6161 ac_cpp_err=
6162 fi
6163else
6164 ac_cpp_err=yes
6165fi
6166if test -z "$ac_cpp_err"; then
6167 :
6168else
6169 echo "$as_me: failed program was:" >&5
6170sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6171
ce2cded5
L
6172 # Broken: fails on valid input.
6173continue
6174fi
6175rm -f conftest.err conftest.$ac_ext
d7040cdb 6176
ce2cded5
L
6177 # OK, works on sane cases. Now check whether non-existent headers
6178 # can be detected and how.
6179 cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h. */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h. */
6185#include <ac_nonexistent.h>
6186_ACEOF
6187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } >/dev/null; then
6195 if test -s conftest.err; then
6196 ac_cpp_err=$ac_c_preproc_warn_flag
6197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6198 else
6199 ac_cpp_err=
6200 fi
6201else
6202 ac_cpp_err=yes
6203fi
6204if test -z "$ac_cpp_err"; then
6205 # Broken: success on invalid input.
6206continue
6207else
6208 echo "$as_me: failed program was:" >&5
6209sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6210
ce2cded5
L
6211 # Passes both tests.
6212ac_preproc_ok=:
6213break
6214fi
6215rm -f conftest.err conftest.$ac_ext
d7040cdb 6216
ce2cded5
L
6217done
6218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6219rm -f conftest.err conftest.$ac_ext
6220if $ac_preproc_ok; then
6221 :
6222else
6223 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6224See \`config.log' for more details." >&5
6225echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6226See \`config.log' for more details." >&2;}
6227 { (exit 1); exit 1; }; }
6228fi
d7040cdb 6229
ce2cded5
L
6230ac_ext=c
6231ac_cpp='$CPP $CPPFLAGS'
6232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6234ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6235
d7040cdb 6236
ce2cded5
L
6237echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6238echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6239if test "${ac_cv_header_stdc+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241else
6242 cat >conftest.$ac_ext <<_ACEOF
6243/* confdefs.h. */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h. */
6248#include <stdlib.h>
6249#include <stdarg.h>
6250#include <string.h>
6251#include <float.h>
d7040cdb 6252
ce2cded5
L
6253int
6254main ()
6255{
d7040cdb 6256
20e95c23
DJ
6257 ;
6258 return 0;
6259}
42ecbf5e 6260_ACEOF
ce2cded5
L
6261rm -f conftest.$ac_objext
6262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6269 (exit $ac_status); } &&
6270 { ac_try='test -z "$ac_c_werror_flag"
6271 || test ! -s conftest.err'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 (eval $ac_try) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; } &&
ce2cded5 6277 { ac_try='test -s conftest.$ac_objext'
20e95c23
DJ
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
ce2cded5 6283 ac_cv_header_stdc=yes
42ecbf5e
DJ
6284else
6285 echo "$as_me: failed program was:" >&5
6286sed 's/^/| /' conftest.$ac_ext >&5
6287
ce2cded5 6288ac_cv_header_stdc=no
42ecbf5e 6289fi
ce2cded5 6290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 6291
ce2cded5
L
6292if test $ac_cv_header_stdc = yes; then
6293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6294 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6295/* confdefs.h. */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h. */
ce2cded5 6300#include <string.h>
20e95c23 6301
42ecbf5e 6302_ACEOF
ce2cded5
L
6303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304 $EGREP "memchr" >/dev/null 2>&1; then
6305 :
6306else
6307 ac_cv_header_stdc=no
6308fi
6309rm -f conftest*
d7040cdb 6310
d7040cdb 6311fi
ce2cded5
L
6312
6313if test $ac_cv_header_stdc = yes; then
6314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6315 cat >conftest.$ac_ext <<_ACEOF
6316/* confdefs.h. */
6317_ACEOF
6318cat confdefs.h >>conftest.$ac_ext
6319cat >>conftest.$ac_ext <<_ACEOF
6320/* end confdefs.h. */
6321#include <stdlib.h>
6322
6323_ACEOF
6324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6325 $EGREP "free" >/dev/null 2>&1; then
6326 :
252b5132 6327else
ce2cded5
L
6328 ac_cv_header_stdc=no
6329fi
6330rm -f conftest*
42ecbf5e 6331
20e95c23 6332fi
d7040cdb 6333
ce2cded5
L
6334if test $ac_cv_header_stdc = yes; then
6335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6336 if test "$cross_compiling" = yes; then
6337 :
6338else
6339 cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h. */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h. */
6345#include <ctype.h>
6346#if ((' ' & 0x0FF) == 0x020)
6347# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6348# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6349#else
6350# define ISLOWER(c) \
6351 (('a' <= (c) && (c) <= 'i') \
6352 || ('j' <= (c) && (c) <= 'r') \
6353 || ('s' <= (c) && (c) <= 'z'))
6354# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6355#endif
42ecbf5e 6356
ce2cded5
L
6357#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6358int
6359main ()
6360{
6361 int i;
6362 for (i = 0; i < 256; i++)
6363 if (XOR (islower (i), ISLOWER (i))
6364 || toupper (i) != TOUPPER (i))
6365 exit(2);
6366 exit (0);
6367}
6368_ACEOF
6369rm -f conftest$ac_exeext
6370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371 (eval $ac_link) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 (eval $ac_try) 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6380 :
6381else
6382 echo "$as_me: program exited with status $ac_status" >&5
6383echo "$as_me: failed program was:" >&5
6384sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 6385
ce2cded5
L
6386( exit $ac_status )
6387ac_cv_header_stdc=no
6388fi
6389rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6390fi
6391fi
6392fi
6393echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6394echo "${ECHO_T}$ac_cv_header_stdc" >&6
6395if test $ac_cv_header_stdc = yes; then
e5a52504 6396
ce2cded5
L
6397cat >>confdefs.h <<\_ACEOF
6398#define STDC_HEADERS 1
6399_ACEOF
d7040cdb 6400
ac48eca1 6401fi
e5a52504 6402
ce2cded5 6403# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6404
d7040cdb 6405
d7040cdb 6406
d7040cdb 6407
d7040cdb 6408
d7040cdb 6409
d7040cdb 6410
d7040cdb 6411
d7040cdb 6412
ce2cded5
L
6413for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6414 inttypes.h stdint.h unistd.h
6415do
6416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6417echo "$as_me:$LINENO: checking for $ac_header" >&5
6418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421else
6422 cat >conftest.$ac_ext <<_ACEOF
6423/* confdefs.h. */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h. */
6428$ac_includes_default
d7040cdb 6429
ce2cded5
L
6430#include <$ac_header>
6431_ACEOF
6432rm -f conftest.$ac_objext
6433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest.$ac_objext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 eval "$as_ac_Header=yes"
6455else
6456 echo "$as_me: failed program was:" >&5
6457sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6458
ce2cded5
L
6459eval "$as_ac_Header=no"
6460fi
6461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6462fi
6463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6465if test `eval echo '${'$as_ac_Header'}'` = yes; then
6466 cat >>confdefs.h <<_ACEOF
6467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6468_ACEOF
d7040cdb 6469
ce2cded5
L
6470fi
6471
6472done
6473
6474
6475
6476for ac_header in dlfcn.h
6477do
6478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6479echo "$as_me:$LINENO: checking for $ac_header" >&5
6480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6481if eval "test \"\${$as_ac_Header+set}\" = set"; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483else
6484 cat >conftest.$ac_ext <<_ACEOF
6485/* confdefs.h. */
42ecbf5e 6486_ACEOF
ce2cded5
L
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h. */
6490$ac_includes_default
6491
6492#include <$ac_header>
6493_ACEOF
6494rm -f conftest.$ac_objext
6495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6496 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
502bdb00
JW
6503 { ac_try='test -z "$ac_c_werror_flag"
6504 || test ! -s conftest.err'
42ecbf5e
DJ
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; } &&
ce2cded5 6510 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 (eval $ac_try) 2>&5
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; }; then
ce2cded5 6516 eval "$as_ac_Header=yes"
252b5132 6517else
42ecbf5e
DJ
6518 echo "$as_me: failed program was:" >&5
6519sed 's/^/| /' conftest.$ac_ext >&5
6520
ce2cded5 6521eval "$as_ac_Header=no"
252b5132 6522fi
ce2cded5
L
6523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6524fi
6525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6527if test `eval echo '${'$as_ac_Header'}'` = yes; then
6528 cat >>confdefs.h <<_ACEOF
6529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6530_ACEOF
d7040cdb 6531
ce2cded5 6532fi
d7040cdb 6533
ce2cded5 6534done
d7040cdb 6535
d7040cdb 6536
d7040cdb 6537
ce2cded5
L
6538# This can be used to rebuild libtool when needed
6539LIBTOOL_DEPS="$ltmain"
d7040cdb 6540
ce2cded5
L
6541# Always use our own libtool.
6542LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6543
d7040cdb 6544
d7040cdb 6545
d7040cdb 6546
d7040cdb 6547
d7040cdb 6548
d7040cdb 6549
d7040cdb 6550
d7040cdb 6551
d7040cdb 6552
d7040cdb 6553
d7040cdb 6554
d7040cdb 6555
d7040cdb 6556
d7040cdb 6557
d7040cdb 6558
d7040cdb
SE
6559
6560
6561
6562
6563
6564
6565
6566
6567
ce2cded5 6568test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6569
6570
6571
6572
6573
6574
d7040cdb
SE
6575
6576
6577
6578
6579
6580
6581
6582
ce2cded5
L
6583if test -n "${ZSH_VERSION+set}" ; then
6584 setopt NO_GLOB_SUBST
6585fi
d7040cdb 6586
ce2cded5
L
6587echo "$as_me:$LINENO: checking for objdir" >&5
6588echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6589if test "${lt_cv_objdir+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592 rm -f .libs 2>/dev/null
6593mkdir .libs 2>/dev/null
6594if test -d .libs; then
6595 lt_cv_objdir=.libs
6596else
6597 # MS-DOS does not allow filenames that begin with a dot.
6598 lt_cv_objdir=_libs
6599fi
6600rmdir .libs 2>/dev/null
6601fi
6602echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6603echo "${ECHO_T}$lt_cv_objdir" >&6
6604objdir=$lt_cv_objdir
d7040cdb
SE
6605
6606
6607
6608
6609
ce2cded5
L
6610cat >>confdefs.h <<_ACEOF
6611#define LT_OBJDIR "$lt_cv_objdir/"
6612_ACEOF
d7040cdb
SE
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
ce2cded5
L
6630case $host_os in
6631aix3*)
6632 # AIX sometimes has problems with the GCC collect2 program. For some
6633 # reason, if we set the COLLECT_NAMES environment variable, the problems
6634 # vanish in a puff of smoke.
6635 if test "X${COLLECT_NAMES+set}" != Xset; then
6636 COLLECT_NAMES=
6637 export COLLECT_NAMES
6638 fi
6639 ;;
6640esac
d7040cdb 6641
ce2cded5
L
6642# Sed substitution that helps us do robust quoting. It backslashifies
6643# metacharacters that are still active within double-quoted strings.
6644sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6645
ce2cded5
L
6646# Same as above, but do not quote variable references.
6647double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6648
ce2cded5
L
6649# Sed substitution to delay expansion of an escaped shell variable in a
6650# double_quote_subst'ed string.
6651delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6652
ce2cded5
L
6653# Sed substitution to delay expansion of an escaped single quote.
6654delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6655
ce2cded5
L
6656# Sed substitution to avoid accidental globbing in evaled expressions
6657no_glob_subst='s/\*/\\\*/g'
d7040cdb 6658
ce2cded5
L
6659# Global variables:
6660ofile=libtool
6661can_build_shared=yes
d7040cdb 6662
ce2cded5
L
6663# All known linkers require a `.a' archive for static linking (except MSVC,
6664# which needs '.lib').
6665libext=a
d7040cdb 6666
ce2cded5 6667with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6668
ce2cded5
L
6669old_CC="$CC"
6670old_CFLAGS="$CFLAGS"
d7040cdb 6671
ce2cded5
L
6672# Set sane defaults for various variables
6673test -z "$CC" && CC=cc
6674test -z "$LTCC" && LTCC=$CC
6675test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6676test -z "$LD" && LD=ld
6677test -z "$ac_objext" && ac_objext=o
d7040cdb 6678
ce2cded5
L
6679for cc_temp in $compiler""; do
6680 case $cc_temp in
6681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6683 \-*) ;;
6684 *) break;;
6685 esac
6686done
6687cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
6688
6689
ce2cded5
L
6690# Only perform the check for file, if the check method requires it
6691test -z "$MAGIC_CMD" && MAGIC_CMD=file
6692case $deplibs_check_method in
6693file_magic*)
6694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6695 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6696echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6697if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700 case $MAGIC_CMD in
6701[\\/*] | ?:[\\/]*)
6702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6703 ;;
6704*)
6705 lt_save_MAGIC_CMD="$MAGIC_CMD"
6706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6707 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6708 for ac_dir in $ac_dummy; do
6709 IFS="$lt_save_ifs"
6710 test -z "$ac_dir" && ac_dir=.
6711 if test -f $ac_dir/${ac_tool_prefix}file; then
6712 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6713 if test -n "$file_magic_test_file"; then
6714 case $deplibs_check_method in
6715 "file_magic "*)
6716 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6717 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6718 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6719 $EGREP "$file_magic_regex" > /dev/null; then
6720 :
6721 else
6722 cat <<_LT_EOF 1>&2
d7040cdb 6723
ce2cded5
L
6724*** Warning: the command libtool uses to detect shared libraries,
6725*** $file_magic_cmd, produces output that libtool cannot recognize.
6726*** The result is that libtool may fail to recognize shared libraries
6727*** as such. This will affect the creation of libtool libraries that
6728*** depend on shared libraries, but programs linked with such libtool
6729*** libraries will work regardless of this problem. Nevertheless, you
6730*** may want to report the problem to your system manager and/or to
6731*** bug-libtool@gnu.org
d7040cdb 6732
ce2cded5
L
6733_LT_EOF
6734 fi ;;
6735 esac
6736 fi
6737 break
6738 fi
6739 done
6740 IFS="$lt_save_ifs"
6741 MAGIC_CMD="$lt_save_MAGIC_CMD"
6742 ;;
6743esac
6744fi
d7040cdb 6745
ce2cded5
L
6746MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6747if test -n "$MAGIC_CMD"; then
6748 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6749echo "${ECHO_T}$MAGIC_CMD" >&6
6750else
6751 echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6
6753fi
d7040cdb
SE
6754
6755
6756
6757
6758
ce2cded5
L
6759if test -z "$lt_cv_path_MAGIC_CMD"; then
6760 if test -n "$ac_tool_prefix"; then
6761 echo "$as_me:$LINENO: checking for file" >&5
6762echo $ECHO_N "checking for file... $ECHO_C" >&6
6763if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765else
6766 case $MAGIC_CMD in
6767[\\/*] | ?:[\\/]*)
6768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6769 ;;
6770*)
6771 lt_save_MAGIC_CMD="$MAGIC_CMD"
6772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6773 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6774 for ac_dir in $ac_dummy; do
6775 IFS="$lt_save_ifs"
6776 test -z "$ac_dir" && ac_dir=.
6777 if test -f $ac_dir/file; then
6778 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6779 if test -n "$file_magic_test_file"; then
6780 case $deplibs_check_method in
6781 "file_magic "*)
6782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6785 $EGREP "$file_magic_regex" > /dev/null; then
6786 :
6787 else
6788 cat <<_LT_EOF 1>&2
d7040cdb 6789
ce2cded5
L
6790*** Warning: the command libtool uses to detect shared libraries,
6791*** $file_magic_cmd, produces output that libtool cannot recognize.
6792*** The result is that libtool may fail to recognize shared libraries
6793*** as such. This will affect the creation of libtool libraries that
6794*** depend on shared libraries, but programs linked with such libtool
6795*** libraries will work regardless of this problem. Nevertheless, you
6796*** may want to report the problem to your system manager and/or to
6797*** bug-libtool@gnu.org
d7040cdb 6798
ce2cded5
L
6799_LT_EOF
6800 fi ;;
6801 esac
6802 fi
6803 break
6804 fi
6805 done
6806 IFS="$lt_save_ifs"
6807 MAGIC_CMD="$lt_save_MAGIC_CMD"
6808 ;;
6809esac
6810fi
d7040cdb 6811
ce2cded5
L
6812MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6813if test -n "$MAGIC_CMD"; then
6814 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6815echo "${ECHO_T}$MAGIC_CMD" >&6
6816else
6817 echo "$as_me:$LINENO: result: no" >&5
6818echo "${ECHO_T}no" >&6
6819fi
d7040cdb
SE
6820
6821
ce2cded5
L
6822 else
6823 MAGIC_CMD=:
6824 fi
6825fi
d7040cdb 6826
ce2cded5
L
6827 fi
6828 ;;
6829esac
d7040cdb 6830
ce2cded5 6831# Use C for the default configuration in the libtool script
d7040cdb 6832
ce2cded5
L
6833lt_save_CC="$CC"
6834ac_ext=c
6835ac_cpp='$CPP $CPPFLAGS'
6836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
6839
6840
ce2cded5
L
6841# Source file extension for C test sources.
6842ac_ext=c
d7040cdb 6843
ce2cded5
L
6844# Object file extension for compiled C test sources.
6845objext=o
6846objext=$objext
d7040cdb 6847
ce2cded5
L
6848# Code to be used in simple compile tests
6849lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 6850
ce2cded5
L
6851# Code to be used in simple link tests
6852lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
6853
6854
6855
6856
6857
6858
6859
ce2cded5
L
6860# If no C compiler was specified, use CC.
6861LTCC=${LTCC-"$CC"}
d7040cdb 6862
ce2cded5
L
6863# If no C compiler flags were specified, use CFLAGS.
6864LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6865
ce2cded5
L
6866# Allow CC to be a program name with arguments.
6867compiler=$CC
d7040cdb 6868
ce2cded5
L
6869# Save the default compiler, since it gets overwritten when the other
6870# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6871compiler_DEFAULT=$CC
d7040cdb 6872
ce2cded5
L
6873# save warnings/boilerplate of simple test code
6874ac_outfile=conftest.$ac_objext
6875echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6876eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6877_lt_compiler_boilerplate=`cat conftest.err`
6878$RM conftest*
d7040cdb 6879
ce2cded5
L
6880ac_outfile=conftest.$ac_objext
6881echo "$lt_simple_link_test_code" >conftest.$ac_ext
6882eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6883_lt_linker_boilerplate=`cat conftest.err`
6884$RM conftest*
d7040cdb
SE
6885
6886
ce2cded5
L
6887## CAVEAT EMPTOR:
6888## There is no encapsulation within the following macros, do not change
6889## the running order or otherwise move them around unless you know exactly
6890## what you are doing...
6891if test -n "$compiler"; then
d7040cdb 6892
ce2cded5 6893lt_prog_compiler_no_builtin_flag=
d7040cdb 6894
ce2cded5
L
6895if test "$GCC" = yes; then
6896 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 6897
ce2cded5
L
6898 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6899echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6900if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
6903 lt_cv_prog_compiler_rtti_exceptions=no
6904 ac_outfile=conftest.$ac_objext
6905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6906 lt_compiler_flag="-fno-rtti -fno-exceptions"
6907 # Insert the option either (1) after the last *FLAGS variable, or
6908 # (2) before a word containing "conftest.", or (3) at the end.
6909 # Note that $ac_compile itself does not contain backslashes and begins
6910 # with a dollar sign (not a hyphen), so the echo should work correctly.
6911 # The option is referenced via a variable to avoid confusing sed.
6912 lt_compile=`echo "$ac_compile" | $SED \
6913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6915 -e 's:$: $lt_compiler_flag:'`
58c85be7 6916 (eval echo "\"\$as_me:6916: $lt_compile\"" >&5)
ce2cded5
L
6917 (eval "$lt_compile" 2>conftest.err)
6918 ac_status=$?
6919 cat conftest.err >&5
58c85be7 6920 echo "$as_me:6920: \$? = $ac_status" >&5
ce2cded5
L
6921 if (exit $ac_status) && test -s "$ac_outfile"; then
6922 # The compiler can only warn and ignore the option if not recognized
6923 # So say no if there are warnings other than the usual output.
6924 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6927 lt_cv_prog_compiler_rtti_exceptions=yes
6928 fi
6929 fi
6930 $RM conftest*
d7040cdb 6931
ce2cded5
L
6932fi
6933echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6934echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d7040cdb 6935
ce2cded5
L
6936if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6937 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6938else
6939 :
6940fi
d7040cdb 6941
ce2cded5 6942fi
d7040cdb
SE
6943
6944
6945
6946
6947
6948
ce2cded5
L
6949 lt_prog_compiler_wl=
6950lt_prog_compiler_pic=
6951lt_prog_compiler_static=
d7040cdb 6952
ce2cded5
L
6953echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6954echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d7040cdb 6955
ce2cded5
L
6956 if test "$GCC" = yes; then
6957 lt_prog_compiler_wl='-Wl,'
6958 lt_prog_compiler_static='-static'
d7040cdb 6959
ce2cded5
L
6960 case $host_os in
6961 aix*)
6962 # All AIX code is PIC.
6963 if test "$host_cpu" = ia64; then
6964 # AIX 5 now supports IA64 processor
6965 lt_prog_compiler_static='-Bstatic'
6966 fi
6967 ;;
d7040cdb 6968
ce2cded5
L
6969 amigaos*)
6970 if test "$host_cpu" = m68k; then
6971 # FIXME: we need at least 68020 code to build shared libraries, but
6972 # adding the `-m68020' flag to GCC prevents building anything better,
6973 # like `-m68040'.
6974 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6975 fi
6976 ;;
d7040cdb 6977
ce2cded5
L
6978 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6979 # PIC is the default for these OSes.
6980 ;;
d7040cdb 6981
ce2cded5
L
6982 mingw* | cygwin* | pw32* | os2*)
6983 # This hack is so that the source file can tell whether it is being
6984 # built for inclusion in a dll (and should export symbols for example).
6985 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6986 # (--disable-auto-import) libraries
6987 lt_prog_compiler_pic='-DDLL_EXPORT'
6988 ;;
d7040cdb 6989
ce2cded5
L
6990 darwin* | rhapsody*)
6991 # PIC is the default on this platform
6992 # Common symbols not allowed in MH_DYLIB files
6993 lt_prog_compiler_pic='-fno-common'
6994 ;;
d7040cdb 6995
ce2cded5
L
6996 hpux*)
6997 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6998 # not for PA HP-UX.
6999 case $host_cpu in
7000 hppa*64*|ia64*)
7001 # +Z the default
7002 ;;
7003 *)
7004 lt_prog_compiler_pic='-fPIC'
7005 ;;
7006 esac
7007 ;;
d7040cdb 7008
ce2cded5
L
7009 interix[3-9]*)
7010 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7011 # Instead, we relocate shared libraries at runtime.
7012 ;;
d7040cdb 7013
ce2cded5
L
7014 msdosdjgpp*)
7015 # Just because we use GCC doesn't mean we suddenly get shared libraries
7016 # on systems that don't support them.
7017 lt_prog_compiler_can_build_shared=no
7018 enable_shared=no
7019 ;;
d7040cdb 7020
ce2cded5
L
7021 *nto* | *qnx*)
7022 # QNX uses GNU C++, but need to define -shared option too, otherwise
7023 # it will coredump.
7024 lt_prog_compiler_pic='-fPIC -shared'
7025 ;;
d7040cdb 7026
ce2cded5
L
7027 sysv4*MP*)
7028 if test -d /usr/nec; then
7029 lt_prog_compiler_pic=-Kconform_pic
7030 fi
7031 ;;
d7040cdb 7032
ce2cded5
L
7033 *)
7034 lt_prog_compiler_pic='-fPIC'
7035 ;;
7036 esac
7037 else
7038 # PORTME Check for flag to pass linker flags through the system compiler.
7039 case $host_os in
7040 aix*)
7041 lt_prog_compiler_wl='-Wl,'
7042 if test "$host_cpu" = ia64; then
7043 # AIX 5 now supports IA64 processor
7044 lt_prog_compiler_static='-Bstatic'
7045 else
7046 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7047 fi
7048 ;;
7049 darwin*)
7050 # PIC is the default on this platform
7051 # Common symbols not allowed in MH_DYLIB files
7052 case $cc_basename in
7053 xlc*)
7054 lt_prog_compiler_pic='-qnocommon'
7055 lt_prog_compiler_wl='-Wl,'
7056 ;;
7057 esac
7058 ;;
d7040cdb 7059
ce2cded5
L
7060 mingw* | cygwin* | pw32* | os2*)
7061 # This hack is so that the source file can tell whether it is being
7062 # built for inclusion in a dll (and should export symbols for example).
7063 lt_prog_compiler_pic='-DDLL_EXPORT'
7064 ;;
d7040cdb 7065
ce2cded5
L
7066 hpux9* | hpux10* | hpux11*)
7067 lt_prog_compiler_wl='-Wl,'
7068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7069 # not for PA HP-UX.
7070 case $host_cpu in
7071 hppa*64*|ia64*)
7072 # +Z the default
7073 ;;
7074 *)
7075 lt_prog_compiler_pic='+Z'
7076 ;;
7077 esac
7078 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7079 lt_prog_compiler_static='${wl}-a ${wl}archive'
7080 ;;
d7040cdb 7081
ce2cded5
L
7082 irix5* | irix6* | nonstopux*)
7083 lt_prog_compiler_wl='-Wl,'
7084 # PIC (with -KPIC) is the default.
7085 lt_prog_compiler_static='-non_shared'
7086 ;;
d7040cdb 7087
ce2cded5
L
7088 linux* | k*bsd*-gnu)
7089 case $cc_basename in
7090 icc* | ecc*)
7091 lt_prog_compiler_wl='-Wl,'
7092 lt_prog_compiler_pic='-KPIC'
7093 lt_prog_compiler_static='-static'
7094 ;;
7095 pgcc* | pgf77* | pgf90* | pgf95*)
7096 # Portland Group compilers (*not* the Pentium gcc compiler,
7097 # which looks to be a dead project)
7098 lt_prog_compiler_wl='-Wl,'
7099 lt_prog_compiler_pic='-fpic'
7100 lt_prog_compiler_static='-Bstatic'
7101 ;;
7102 ccc*)
7103 lt_prog_compiler_wl='-Wl,'
7104 # All Alpha code is PIC.
7105 lt_prog_compiler_static='-non_shared'
7106 ;;
7107 *)
7108 case `$CC -V 2>&1 | sed 5q` in
7109 *Sun\ C*)
7110 # Sun C 5.9
7111 lt_prog_compiler_pic='-KPIC'
7112 lt_prog_compiler_static='-Bstatic'
7113 lt_prog_compiler_wl='-Wl,'
7114 ;;
7115 *Sun\ F*)
7116 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7117 lt_prog_compiler_pic='-KPIC'
7118 lt_prog_compiler_static='-Bstatic'
7119 lt_prog_compiler_wl=''
7120 ;;
7121 esac
7122 ;;
7123 esac
7124 ;;
d7040cdb 7125
ce2cded5
L
7126 newsos6)
7127 lt_prog_compiler_pic='-KPIC'
7128 lt_prog_compiler_static='-Bstatic'
7129 ;;
d7040cdb 7130
ce2cded5
L
7131 *nto* | *qnx*)
7132 # QNX uses GNU C++, but need to define -shared option too, otherwise
7133 # it will coredump.
7134 lt_prog_compiler_pic='-fPIC -shared'
7135 ;;
d7040cdb 7136
ce2cded5
L
7137 osf3* | osf4* | osf5*)
7138 lt_prog_compiler_wl='-Wl,'
7139 # All OSF/1 code is PIC.
7140 lt_prog_compiler_static='-non_shared'
7141 ;;
d7040cdb 7142
ce2cded5
L
7143 rdos*)
7144 lt_prog_compiler_static='-non_shared'
7145 ;;
d7040cdb 7146
ce2cded5
L
7147 solaris*)
7148 lt_prog_compiler_pic='-KPIC'
7149 lt_prog_compiler_static='-Bstatic'
7150 case $cc_basename in
7151 f77* | f90* | f95*)
7152 lt_prog_compiler_wl='-Qoption ld ';;
7153 *)
7154 lt_prog_compiler_wl='-Wl,';;
7155 esac
7156 ;;
d7040cdb 7157
ce2cded5
L
7158 sunos4*)
7159 lt_prog_compiler_wl='-Qoption ld '
7160 lt_prog_compiler_pic='-PIC'
7161 lt_prog_compiler_static='-Bstatic'
7162 ;;
d7040cdb 7163
ce2cded5
L
7164 sysv4 | sysv4.2uw2* | sysv4.3*)
7165 lt_prog_compiler_wl='-Wl,'
7166 lt_prog_compiler_pic='-KPIC'
7167 lt_prog_compiler_static='-Bstatic'
7168 ;;
d7040cdb 7169
ce2cded5
L
7170 sysv4*MP*)
7171 if test -d /usr/nec ;then
7172 lt_prog_compiler_pic='-Kconform_pic'
7173 lt_prog_compiler_static='-Bstatic'
7174 fi
7175 ;;
d7040cdb 7176
ce2cded5
L
7177 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7178 lt_prog_compiler_wl='-Wl,'
7179 lt_prog_compiler_pic='-KPIC'
7180 lt_prog_compiler_static='-Bstatic'
7181 ;;
d7040cdb 7182
ce2cded5
L
7183 unicos*)
7184 lt_prog_compiler_wl='-Wl,'
7185 lt_prog_compiler_can_build_shared=no
7186 ;;
d7040cdb 7187
ce2cded5
L
7188 uts4*)
7189 lt_prog_compiler_pic='-pic'
7190 lt_prog_compiler_static='-Bstatic'
7191 ;;
d7040cdb 7192
ce2cded5
L
7193 *)
7194 lt_prog_compiler_can_build_shared=no
7195 ;;
7196 esac
7197 fi
d7040cdb 7198
ce2cded5
L
7199case $host_os in
7200 # For platforms which do not support PIC, -DPIC is meaningless:
7201 *djgpp*)
7202 lt_prog_compiler_pic=
7203 ;;
7204 *)
7205 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7206 ;;
7207esac
7208echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7209echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7210
7211
7212
7213
7214
7215
ce2cded5
L
7216#
7217# Check to make sure the PIC flag actually works.
7218#
7219if test -n "$lt_prog_compiler_pic"; then
7220 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7221echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7222if test "${lt_prog_compiler_pic_works+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224else
7225 lt_prog_compiler_pic_works=no
7226 ac_outfile=conftest.$ac_objext
7227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7228 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7229 # Insert the option either (1) after the last *FLAGS variable, or
7230 # (2) before a word containing "conftest.", or (3) at the end.
7231 # Note that $ac_compile itself does not contain backslashes and begins
7232 # with a dollar sign (not a hyphen), so the echo should work correctly.
7233 # The option is referenced via a variable to avoid confusing sed.
7234 lt_compile=`echo "$ac_compile" | $SED \
7235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7237 -e 's:$: $lt_compiler_flag:'`
58c85be7 7238 (eval echo "\"\$as_me:7238: $lt_compile\"" >&5)
ce2cded5
L
7239 (eval "$lt_compile" 2>conftest.err)
7240 ac_status=$?
7241 cat conftest.err >&5
58c85be7 7242 echo "$as_me:7242: \$? = $ac_status" >&5
ce2cded5
L
7243 if (exit $ac_status) && test -s "$ac_outfile"; then
7244 # The compiler can only warn and ignore the option if not recognized
7245 # So say no if there are warnings other than the usual output.
7246 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7248 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7249 lt_prog_compiler_pic_works=yes
7250 fi
7251 fi
7252 $RM conftest*
d7040cdb 7253
ce2cded5
L
7254fi
7255echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7256echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7257
7258if test x"$lt_prog_compiler_pic_works" = xyes; then
7259 case $lt_prog_compiler_pic in
7260 "" | " "*) ;;
7261 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7262 esac
7263else
7264 lt_prog_compiler_pic=
7265 lt_prog_compiler_can_build_shared=no
7266fi
7267
7268fi
d7040cdb
SE
7269
7270
7271
7272
7273
7274
ce2cded5
L
7275#
7276# Check to make sure the static flag actually works.
7277#
7278wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7279echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7280echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7281if test "${lt_prog_compiler_static_works+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283else
7284 lt_prog_compiler_static_works=no
7285 save_LDFLAGS="$LDFLAGS"
7286 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7287 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7289 # The linker can only warn and ignore the option if not recognized
7290 # So say no if there are warnings
7291 if test -s conftest.err; then
7292 # Append any errors to the config.log.
7293 cat conftest.err 1>&5
7294 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7296 if diff conftest.exp conftest.er2 >/dev/null; then
7297 lt_prog_compiler_static_works=yes
7298 fi
7299 else
7300 lt_prog_compiler_static_works=yes
7301 fi
7302 fi
7303 $RM conftest*
7304 LDFLAGS="$save_LDFLAGS"
d7040cdb 7305
ce2cded5
L
7306fi
7307echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7308echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7309
ce2cded5
L
7310if test x"$lt_prog_compiler_static_works" = xyes; then
7311 :
7312else
7313 lt_prog_compiler_static=
7314fi
d7040cdb
SE
7315
7316
7317
7318
7319
7320
7321
ce2cded5
L
7322 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7323echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7324if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327 lt_cv_prog_compiler_c_o=no
7328 $RM -r conftest 2>/dev/null
7329 mkdir conftest
7330 cd conftest
7331 mkdir out
7332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7333
ce2cded5
L
7334 lt_compiler_flag="-o out/conftest2.$ac_objext"
7335 # Insert the option either (1) after the last *FLAGS variable, or
7336 # (2) before a word containing "conftest.", or (3) at the end.
7337 # Note that $ac_compile itself does not contain backslashes and begins
7338 # with a dollar sign (not a hyphen), so the echo should work correctly.
7339 lt_compile=`echo "$ac_compile" | $SED \
7340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7342 -e 's:$: $lt_compiler_flag:'`
58c85be7 7343 (eval echo "\"\$as_me:7343: $lt_compile\"" >&5)
ce2cded5
L
7344 (eval "$lt_compile" 2>out/conftest.err)
7345 ac_status=$?
7346 cat out/conftest.err >&5
58c85be7 7347 echo "$as_me:7347: \$? = $ac_status" >&5
ce2cded5
L
7348 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7349 then
7350 # The compiler can only warn and ignore the option if not recognized
7351 # So say no if there are warnings
7352 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7353 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7354 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7355 lt_cv_prog_compiler_c_o=yes
7356 fi
7357 fi
7358 chmod u+w . 2>&5
7359 $RM conftest*
7360 # SGI C++ compiler will create directory out/ii_files/ for
7361 # template instantiation
7362 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7363 $RM out/* && rmdir out
7364 cd ..
7365 $RM -r conftest
7366 $RM conftest*
d7040cdb 7367
ce2cded5
L
7368fi
7369echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7370echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7371
7372
7373
7374
7375
7376
ce2cded5
L
7377 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7378echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7379if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381else
7382 lt_cv_prog_compiler_c_o=no
7383 $RM -r conftest 2>/dev/null
7384 mkdir conftest
7385 cd conftest
7386 mkdir out
7387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7388
ce2cded5
L
7389 lt_compiler_flag="-o out/conftest2.$ac_objext"
7390 # Insert the option either (1) after the last *FLAGS variable, or
7391 # (2) before a word containing "conftest.", or (3) at the end.
7392 # Note that $ac_compile itself does not contain backslashes and begins
7393 # with a dollar sign (not a hyphen), so the echo should work correctly.
7394 lt_compile=`echo "$ac_compile" | $SED \
7395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7397 -e 's:$: $lt_compiler_flag:'`
58c85be7 7398 (eval echo "\"\$as_me:7398: $lt_compile\"" >&5)
ce2cded5
L
7399 (eval "$lt_compile" 2>out/conftest.err)
7400 ac_status=$?
7401 cat out/conftest.err >&5
58c85be7 7402 echo "$as_me:7402: \$? = $ac_status" >&5
ce2cded5
L
7403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7404 then
7405 # The compiler can only warn and ignore the option if not recognized
7406 # So say no if there are warnings
7407 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7408 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7409 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7410 lt_cv_prog_compiler_c_o=yes
7411 fi
7412 fi
7413 chmod u+w . 2>&5
7414 $RM conftest*
7415 # SGI C++ compiler will create directory out/ii_files/ for
7416 # template instantiation
7417 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7418 $RM out/* && rmdir out
7419 cd ..
7420 $RM -r conftest
7421 $RM conftest*
7422
7423fi
7424echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7425echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7426
7427
7428
7429
7430hard_links="nottested"
7431if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7432 # do not overwrite the value of need_locks provided by the user
7433 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7434echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7435 hard_links=yes
7436 $RM conftest*
7437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7438 touch conftest.a
7439 ln conftest.a conftest.b 2>&5 || hard_links=no
7440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7441 echo "$as_me:$LINENO: result: $hard_links" >&5
7442echo "${ECHO_T}$hard_links" >&6
7443 if test "$hard_links" = no; then
7444 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7445echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7446 need_locks=warn
d7040cdb 7447 fi
d7040cdb 7448else
ce2cded5 7449 need_locks=no
d7040cdb 7450fi
d7040cdb 7451
d7040cdb 7452
d7040cdb 7453
d7040cdb 7454
d7040cdb 7455
d7040cdb 7456
ce2cded5
L
7457 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7458echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7459
ce2cded5
L
7460 runpath_var=
7461 allow_undefined_flag=
7462 always_export_symbols=no
7463 archive_cmds=
7464 archive_expsym_cmds=
7465 compiler_needs_object=no
7466 enable_shared_with_static_runtimes=no
7467 export_dynamic_flag_spec=
7468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7469 hardcode_automatic=no
7470 hardcode_direct=no
7471 hardcode_direct_absolute=no
7472 hardcode_libdir_flag_spec=
7473 hardcode_libdir_flag_spec_ld=
7474 hardcode_libdir_separator=
7475 hardcode_minus_L=no
7476 hardcode_shlibpath_var=unsupported
7477 inherit_rpath=no
7478 link_all_deplibs=unknown
7479 module_cmds=
7480 module_expsym_cmds=
7481 old_archive_from_new_cmds=
7482 old_archive_from_expsyms_cmds=
7483 thread_safe_flag_spec=
7484 whole_archive_flag_spec=
7485 # include_expsyms should be a list of space-separated symbols to be *always*
7486 # included in the symbol list
7487 include_expsyms=
7488 # exclude_expsyms can be an extended regexp of symbols to exclude
7489 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7490 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7491 # as well as any symbol that contains `d'.
7492 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7493 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7494 # platforms (ab)use it in PIC code, but their linkers get confused if
7495 # the symbol is explicitly referenced. Since portable code cannot
7496 # rely on this symbol name, it's probably fine to never include it in
7497 # preloaded symbol tables.
7498 extract_expsyms_cmds=
d7040cdb 7499
ce2cded5
L
7500 case $host_os in
7501 cygwin* | mingw* | pw32*)
7502 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7503 # When not using gcc, we currently assume that we are using
7504 # Microsoft Visual C++.
7505 if test "$GCC" != yes; then
7506 with_gnu_ld=no
7507 fi
d7040cdb 7508 ;;
ce2cded5
L
7509 interix*)
7510 # we just hope/assume this is gcc and not c89 (= MSVC++)
7511 with_gnu_ld=yes
7512 ;;
7513 openbsd*)
7514 with_gnu_ld=no
d7040cdb
SE
7515 ;;
7516 esac
d7040cdb 7517
ce2cded5
L
7518 ld_shlibs=yes
7519 if test "$with_gnu_ld" = yes; then
7520 # If archive_cmds runs LD, not CC, wlarc should be empty
7521 wlarc='${wl}'
d7040cdb 7522
ce2cded5
L
7523 # Set some defaults for GNU ld with shared library support. These
7524 # are reset later if shared libraries are not supported. Putting them
7525 # here allows them to be overridden if necessary.
7526 runpath_var=LD_RUN_PATH
7527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7528 export_dynamic_flag_spec='${wl}--export-dynamic'
7529 # ancient GNU ld didn't support --whole-archive et. al.
7530 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7531 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7532 else
7533 whole_archive_flag_spec=
7534 fi
7535 supports_anon_versioning=no
7536 case `$LD -v 2>&1` in
7537 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7538 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7539 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7540 *\ 2.11.*) ;; # other 2.11 versions
7541 *) supports_anon_versioning=yes ;;
7542 esac
d7040cdb 7543
ce2cded5
L
7544 # See if GNU ld supports shared libraries.
7545 case $host_os in
50e7d84b 7546 aix[3-9]*)
ce2cded5
L
7547 # On AIX/PPC, the GNU linker is very broken
7548 if test "$host_cpu" != ia64; then
7549 ld_shlibs=no
7550 cat <<_LT_EOF 1>&2
d7040cdb 7551
ce2cded5
L
7552*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7553*** to be unable to reliably create shared libraries on AIX.
7554*** Therefore, libtool is disabling shared libraries support. If you
7555*** really care for shared libraries, you may want to modify your PATH
7556*** so that a non-GNU linker is found, and then restart.
d7040cdb 7557
ce2cded5
L
7558_LT_EOF
7559 fi
d7040cdb 7560 ;;
d7040cdb 7561
ce2cded5
L
7562 amigaos*)
7563 if test "$host_cpu" = m68k; then
7564 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)'
7565 hardcode_libdir_flag_spec='-L$libdir'
7566 hardcode_minus_L=yes
7567 fi
d7040cdb 7568
ce2cded5
L
7569 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7570 # that the semantics of dynamic libraries on AmigaOS, at least up
7571 # to version 4, is to share data among multiple programs linked
7572 # with the same dynamic library. Since this doesn't match the
7573 # behavior of shared libraries on other platforms, we can't use
7574 # them.
7575 ld_shlibs=no
7576 ;;
d7040cdb 7577
ce2cded5
L
7578 beos*)
7579 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7580 allow_undefined_flag=unsupported
7581 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7582 # support --undefined. This deserves some investigation. FIXME
7583 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7584 else
7585 ld_shlibs=no
7586 fi
7587 ;;
d7040cdb 7588
ce2cded5
L
7589 cygwin* | mingw* | pw32*)
7590 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7591 # as there is no search path for DLLs.
7592 hardcode_libdir_flag_spec='-L$libdir'
7593 allow_undefined_flag=unsupported
7594 always_export_symbols=no
7595 enable_shared_with_static_runtimes=yes
7596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7597
7598 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7600 # If the export-symbols file already is a .def file (1st line
7601 # is EXPORTS), use it as is; otherwise, prepend...
7602 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7603 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 7604 else
ce2cded5
L
7605 echo EXPORTS > $output_objdir/$soname.def;
7606 cat $export_symbols >> $output_objdir/$soname.def;
7607 fi~
7608 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7609 else
7610 ld_shlibs=no
7611 fi
7612 ;;
d7040cdb 7613
ce2cded5
L
7614 interix[3-9]*)
7615 hardcode_direct=no
7616 hardcode_shlibpath_var=no
7617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7618 export_dynamic_flag_spec='${wl}-E'
7619 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7620 # Instead, shared libraries are loaded at an image base (0x10000000 by
7621 # default) and relocated if they conflict, which is a slow very memory
7622 # consuming and fragmenting process. To avoid this, we pick a random,
7623 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7624 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7626 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'
7627 ;;
d7040cdb 7628
ce2cded5
L
7629 gnu* | linux* | tpf* | k*bsd*-gnu)
7630 tmp_diet=no
7631 if test "$host_os" = linux-dietlibc; then
7632 case $cc_basename in
7633 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7634 esac
7635 fi
7636 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7637 && test "$tmp_diet" = no
7638 then
7639 tmp_addflag=
7640 case $cc_basename,$host_cpu in
7641 pgcc*) # Portland Group C compiler
7642 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'
7643 tmp_addflag=' $pic_flag'
7644 ;;
7645 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7646 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'
7647 tmp_addflag=' $pic_flag -Mnomain' ;;
7648 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7649 tmp_addflag=' -i_dynamic' ;;
7650 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7651 tmp_addflag=' -i_dynamic -nofor_main' ;;
7652 ifc* | ifort*) # Intel Fortran compiler
7653 tmp_addflag=' -nofor_main' ;;
7654 esac
7655 case `$CC -V 2>&1 | sed 5q` in
7656 *Sun\ C*) # Sun C 5.9
7657 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'
7658 compiler_needs_object=yes
7659 tmp_sharedflag='-G' ;;
7660 *Sun\ F*) # Sun Fortran 8.3
7661 tmp_sharedflag='-G' ;;
7662 *)
7663 tmp_sharedflag='-shared' ;;
7664 esac
7665 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7666
ce2cded5
L
7667 if test "x$supports_anon_versioning" = xyes; then
7668 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7670 echo "local: *; };" >> $output_objdir/$libname.ver~
7671 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7672 fi
7673 else
7674 ld_shlibs=no
7675 fi
7676 ;;
d7040cdb 7677
ce2cded5
L
7678 netbsd*)
7679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7680 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7681 wlarc=
7682 else
7683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7684 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7685 fi
7686 ;;
7687
7688 solaris*)
7689 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7690 ld_shlibs=no
7691 cat <<_LT_EOF 1>&2
7692
7693*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7694*** create shared libraries on Solaris systems. Therefore, libtool
7695*** is disabling shared libraries support. We urge you to upgrade GNU
7696*** binutils to release 2.9.1 or newer. Another option is to modify
7697*** your PATH or compiler configuration so that the native linker is
7698*** used, and then restart.
7699
7700_LT_EOF
7701 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7703 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7704 else
7705 ld_shlibs=no
7706 fi
7707 ;;
7708
7709 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7710 case `$LD -v 2>&1` in
7711 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7712 ld_shlibs=no
7713 cat <<_LT_EOF 1>&2
7714
7715*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7716*** reliably create shared libraries on SCO systems. Therefore, libtool
7717*** is disabling shared libraries support. We urge you to upgrade GNU
7718*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7719*** your PATH or compiler configuration so that the native linker is
7720*** used, and then restart.
7721
7722_LT_EOF
7723 ;;
7724 *)
7725 # For security reasons, it is highly recommended that you always
7726 # use absolute paths for naming shared libraries, and exclude the
7727 # DT_RUNPATH tag from executables and libraries. But doing so
7728 # requires that you compile everything twice, which is a pain.
7729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7732 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7733 else
7734 ld_shlibs=no
7735 fi
7736 ;;
7737 esac
7738 ;;
7739
7740 sunos4*)
7741 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7742 wlarc=
7743 hardcode_direct=yes
7744 hardcode_shlibpath_var=no
7745 ;;
7746
7747 *)
7748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7750 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7751 else
7752 ld_shlibs=no
7753 fi
7754 ;;
7755 esac
7756
7757 if test "$ld_shlibs" = no; then
7758 runpath_var=
7759 hardcode_libdir_flag_spec=
7760 export_dynamic_flag_spec=
7761 whole_archive_flag_spec=
7762 fi
7763 else
7764 # PORTME fill in a description of your system's linker (not GNU ld)
7765 case $host_os in
7766 aix3*)
7767 allow_undefined_flag=unsupported
7768 always_export_symbols=yes
7769 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'
7770 # Note: this linker hardcodes the directories in LIBPATH if there
7771 # are no directories specified by -L.
7772 hardcode_minus_L=yes
7773 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7774 # Neither direct hardcoding nor static linking is supported with a
7775 # broken collect2.
7776 hardcode_direct=unsupported
7777 fi
7778 ;;
7779
50e7d84b 7780 aix[4-9]*)
ce2cded5
L
7781 if test "$host_cpu" = ia64; then
7782 # On IA64, the linker does run time linking by default, so we don't
7783 # have to do anything special.
7784 aix_use_runtimelinking=no
7785 exp_sym_flag='-Bexport'
7786 no_entry_flag=""
7787 else
7788 # If we're using GNU nm, then we don't want the "-C" option.
7789 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7790 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7791 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'
7792 else
7793 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'
7794 fi
7795 aix_use_runtimelinking=no
7796
7797 # Test if we are trying to use run time linking or normal
7798 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7799 # need to do runtime linking.
50e7d84b 7800 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
7801 for ld_flag in $LDFLAGS; do
7802 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7803 aix_use_runtimelinking=yes
7804 break
7805 fi
7806 done
7807 ;;
7808 esac
7809
7810 exp_sym_flag='-bexport'
7811 no_entry_flag='-bnoentry'
7812 fi
7813
7814 # When large executables or shared objects are built, AIX ld can
7815 # have problems creating the table of contents. If linking a library
7816 # or program results in "error TOC overflow" add -mminimal-toc to
7817 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7818 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7819
7820 archive_cmds=''
7821 hardcode_direct=yes
7822 hardcode_direct_absolute=yes
7823 hardcode_libdir_separator=':'
7824 link_all_deplibs=yes
7825 file_list_spec='${wl}-f,'
7826
7827 if test "$GCC" = yes; then
7828 case $host_os in aix4.[012]|aix4.[012].*)
7829 # We only want to do this on AIX 4.2 and lower, the check
7830 # below for broken collect2 doesn't work under 4.3+
7831 collect2name=`${CC} -print-prog-name=collect2`
7832 if test -f "$collect2name" &&
7833 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7834 then
7835 # We have reworked collect2
7836 :
7837 else
7838 # We have old collect2
7839 hardcode_direct=unsupported
7840 # It fails to find uninstalled libraries when the uninstalled
7841 # path is not listed in the libpath. Setting hardcode_minus_L
7842 # to unsupported forces relinking
7843 hardcode_minus_L=yes
7844 hardcode_libdir_flag_spec='-L$libdir'
7845 hardcode_libdir_separator=
7846 fi
7847 ;;
7848 esac
7849 shared_flag='-shared'
7850 if test "$aix_use_runtimelinking" = yes; then
7851 shared_flag="$shared_flag "'${wl}-G'
7852 fi
7853 else
7854 # not using gcc
7855 if test "$host_cpu" = ia64; then
7856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7857 # chokes on -Wl,-G. The following line is correct:
7858 shared_flag='-G'
7859 else
7860 if test "$aix_use_runtimelinking" = yes; then
7861 shared_flag='${wl}-G'
7862 else
7863 shared_flag='${wl}-bM:SRE'
7864 fi
7865 fi
7866 fi
7867
7868 # It seems that -bexpall does not export symbols beginning with
7869 # underscore (_), so it is better to generate a list of symbols to export.
7870 always_export_symbols=yes
7871 if test "$aix_use_runtimelinking" = yes; then
7872 # Warning - without using the other runtime loading flags (-brtl),
7873 # -berok will link without error, but may produce a broken library.
7874 allow_undefined_flag='-berok'
7875 # Determine the default libpath from the value encoded in an
7876 # empty executable.
7877 cat >conftest.$ac_ext <<_ACEOF
7878/* confdefs.h. */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h. */
7883
7884int
7885main ()
7886{
7887
7888 ;
7889 return 0;
7890}
7891_ACEOF
7892rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb
SE
7893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>conftest.er1
7895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -z "$ac_c_werror_flag"
7902 || test ! -s conftest.err'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
d7040cdb 7914
ce2cded5
L
7915lt_aix_libpath_sed='
7916 /Import File Strings/,/^$/ {
7917 /^0/ {
7918 s/^0 *\(.*\)$/\1/
7919 p
7920 }
7921 }'
7922aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7923# Check for a 64-bit object if we didn't find anything.
7924if test -z "$aix_libpath"; then
7925 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7926fi
d7040cdb
SE
7927else
7928 echo "$as_me: failed program was:" >&5
7929sed 's/^/| /' conftest.$ac_ext >&5
7930
7931fi
7932rm -f conftest.err conftest.$ac_objext \
7933 conftest$ac_exeext conftest.$ac_ext
ce2cded5 7934if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7935
ce2cded5
L
7936 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7937 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"
7938 else
7939 if test "$host_cpu" = ia64; then
7940 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7941 allow_undefined_flag="-z nodefs"
7942 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"
7943 else
7944 # Determine the default libpath from the value encoded in an
7945 # empty executable.
7946 cat >conftest.$ac_ext <<_ACEOF
7947/* confdefs.h. */
7948_ACEOF
7949cat confdefs.h >>conftest.$ac_ext
7950cat >>conftest.$ac_ext <<_ACEOF
7951/* end confdefs.h. */
d7040cdb 7952
ce2cded5
L
7953int
7954main ()
7955{
d7040cdb 7956
ce2cded5
L
7957 ;
7958 return 0;
7959}
7960_ACEOF
7961rm -f conftest.$ac_objext conftest$ac_exeext
7962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7963 (eval $ac_link) 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -z "$ac_c_werror_flag"
7971 || test ! -s conftest.err'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; } &&
7977 { ac_try='test -s conftest$ac_exeext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
d7040cdb 7983
ce2cded5
L
7984lt_aix_libpath_sed='
7985 /Import File Strings/,/^$/ {
7986 /^0/ {
7987 s/^0 *\(.*\)$/\1/
7988 p
7989 }
7990 }'
7991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7992# Check for a 64-bit object if we didn't find anything.
7993if test -z "$aix_libpath"; then
7994 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7995fi
7996else
7997 echo "$as_me: failed program was:" >&5
7998sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7999
ce2cded5
L
8000fi
8001rm -f conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8003if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8004
ce2cded5
L
8005 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8006 # Warning - without using the other run time loading flags,
8007 # -berok will link without error, but may produce a broken library.
8008 no_undefined_flag=' ${wl}-bernotok'
8009 allow_undefined_flag=' ${wl}-berok'
8010 # Exported symbols can be pulled into shared objects from archives
8011 whole_archive_flag_spec='$convenience'
8012 archive_cmds_need_lc=yes
8013 # This is similar to how AIX traditionally builds its shared libraries.
8014 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'
8015 fi
8016 fi
8017 ;;
d7040cdb 8018
ce2cded5
L
8019 amigaos*)
8020 if test "$host_cpu" = m68k; then
8021 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)'
8022 hardcode_libdir_flag_spec='-L$libdir'
8023 hardcode_minus_L=yes
8024 fi
8025 # see comment about different semantics on the GNU ld section
8026 ld_shlibs=no
8027 ;;
8028
8029 bsdi[45]*)
8030 export_dynamic_flag_spec=-rdynamic
8031 ;;
8032
8033 cygwin* | mingw* | pw32*)
8034 # When not using gcc, we currently assume that we are using
8035 # Microsoft Visual C++.
8036 # hardcode_libdir_flag_spec is actually meaningless, as there is
8037 # no search path for DLLs.
8038 hardcode_libdir_flag_spec=' '
8039 allow_undefined_flag=unsupported
8040 # Tell ltmain to make .lib files, not .a files.
8041 libext=lib
8042 # Tell ltmain to make .dll files, not .so files.
8043 shrext_cmds=".dll"
8044 # FIXME: Setting linknames here is a bad hack.
8045 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8046 # The linker will automatically build a .lib file if we build a DLL.
8047 old_archive_from_new_cmds='true'
8048 # FIXME: Should let the user specify the lib program.
8049 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8050 fix_srcfile_path='`cygpath -w "$srcfile"`'
8051 enable_shared_with_static_runtimes=yes
8052 ;;
8053
8054 darwin* | rhapsody*)
8055 case $host_os in
8056 rhapsody* | darwin1.[012])
8057 allow_undefined_flag='${wl}-undefined ${wl}suppress'
d7040cdb 8058 ;;
ce2cded5
L
8059 *) # Darwin 1.3 on
8060 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8061 10.[012])
8062 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8063 ;;
8064 10.*)
8065 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8066 ;;
8067 esac
d7040cdb
SE
8068 ;;
8069 esac
ce2cded5
L
8070 archive_cmds_need_lc=no
8071 hardcode_direct=no
8072 hardcode_automatic=yes
8073 hardcode_shlibpath_var=unsupported
8074 whole_archive_flag_spec=''
8075 link_all_deplibs=yes
8076 if test "$GCC" = yes ; then
8077 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079else
8080 lt_cv_apple_cc_single_mod=no
8081 if test -z "${LT_MULTI_MODULE}"; then
8082 # By default we will add the -single_module flag. You can override
8083 # by either setting the environment variable LT_MULTI_MODULE
8084 # non-empty at configure time, or by adding -multi-module to the
8085 # link flags.
8086 echo "int foo(void){return 1;}" > conftest.c
8087 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8088 -dynamiclib ${wl}-single_module conftest.c
8089 if test -f libconftest.dylib; then
8090 lt_cv_apple_cc_single_mod=yes
8091 rm libconftest.dylib
8092 fi
8093 rm conftest.$ac_ext
8094 fi
8095fi
d7040cdb 8096
ce2cded5
L
8097 output_verbose_link_cmd=echo
8098 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8099 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8100 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}'
8101 else
8102 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8103 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}'
8104 fi
8105 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8106 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}'
8107 else
8108 case $cc_basename in
8109 xlc*)
8110 output_verbose_link_cmd=echo
8111 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8112 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8113 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8114 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}'
8115 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}'
8116 ;;
8117 *)
8118 ld_shlibs=no
8119 ;;
8120 esac
8121 fi
8122 ;;
d7040cdb 8123
ce2cded5
L
8124 dgux*)
8125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8126 hardcode_libdir_flag_spec='-L$libdir'
8127 hardcode_shlibpath_var=no
8128 ;;
d7040cdb 8129
ce2cded5
L
8130 freebsd1*)
8131 ld_shlibs=no
8132 ;;
d7040cdb 8133
ce2cded5
L
8134 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8135 # support. Future versions do this automatically, but an explicit c++rt0.o
8136 # does not break anything, and helps significantly (at the cost of a little
8137 # extra space).
8138 freebsd2.2*)
8139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8140 hardcode_libdir_flag_spec='-R$libdir'
8141 hardcode_direct=yes
8142 hardcode_shlibpath_var=no
d7040cdb 8143 ;;
d7040cdb 8144
ce2cded5
L
8145 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8146 freebsd2*)
8147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8148 hardcode_direct=yes
8149 hardcode_minus_L=yes
8150 hardcode_shlibpath_var=no
8151 ;;
d7040cdb 8152
ce2cded5
L
8153 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8154 freebsd* | dragonfly*)
8155 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8156 hardcode_libdir_flag_spec='-R$libdir'
8157 hardcode_direct=yes
8158 hardcode_shlibpath_var=no
8159 ;;
d7040cdb 8160
ce2cded5
L
8161 hpux9*)
8162 if test "$GCC" = yes; then
8163 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'
8164 else
8165 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'
8166 fi
8167 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8168 hardcode_libdir_separator=:
8169 hardcode_direct=yes
d7040cdb 8170
ce2cded5
L
8171 # hardcode_minus_L: Not really in the search PATH,
8172 # but as the default location of the library.
8173 hardcode_minus_L=yes
8174 export_dynamic_flag_spec='${wl}-E'
8175 ;;
d7040cdb 8176
ce2cded5
L
8177 hpux10*)
8178 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8179 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8180 else
8181 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8182 fi
8183 if test "$with_gnu_ld" = no; then
8184 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8185 hardcode_libdir_flag_spec_ld='+b $libdir'
8186 hardcode_libdir_separator=:
8187 hardcode_direct=yes
8188 hardcode_direct_absolute=yes
8189 export_dynamic_flag_spec='${wl}-E'
8190 # hardcode_minus_L: Not really in the search PATH,
8191 # but as the default location of the library.
8192 hardcode_minus_L=yes
8193 fi
8194 ;;
d7040cdb 8195
ce2cded5
L
8196 hpux11*)
8197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8198 case $host_cpu in
8199 hppa*64*)
8200 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8201 ;;
8202 ia64*)
8203 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8204 ;;
8205 *)
8206 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8207 ;;
8208 esac
8209 else
8210 case $host_cpu in
8211 hppa*64*)
8212 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8213 ;;
8214 ia64*)
8215 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8216 ;;
8217 *)
8218 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8219 ;;
8220 esac
8221 fi
8222 if test "$with_gnu_ld" = no; then
8223 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8224 hardcode_libdir_separator=:
d7040cdb 8225
ce2cded5
L
8226 case $host_cpu in
8227 hppa*64*|ia64*)
8228 hardcode_direct=no
8229 hardcode_shlibpath_var=no
8230 ;;
8231 *)
8232 hardcode_direct=yes
8233 hardcode_direct_absolute=yes
8234 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8235
ce2cded5
L
8236 # hardcode_minus_L: Not really in the search PATH,
8237 # but as the default location of the library.
8238 hardcode_minus_L=yes
8239 ;;
8240 esac
8241 fi
8242 ;;
d7040cdb 8243
ce2cded5
L
8244 irix5* | irix6* | nonstopux*)
8245 if test "$GCC" = yes; then
8246 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'
8247 # Try to use the -exported_symbol ld option, if it does not
8248 # work, assume that -exports_file does not work either and
8249 # implicitly export all symbols.
8250 save_LDFLAGS="$LDFLAGS"
8251 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8252 cat >conftest.$ac_ext <<_ACEOF
8253int foo(void) {}
8254_ACEOF
8255rm -f conftest.$ac_objext conftest$ac_exeext
8256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8257 (eval $ac_link) 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } &&
8264 { ac_try='test -z "$ac_c_werror_flag"
8265 || test ! -s conftest.err'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; } &&
8271 { ac_try='test -s conftest$ac_exeext'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7040cdb 8278
ce2cded5
L
8279else
8280 echo "$as_me: failed program was:" >&5
8281sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8282
ce2cded5
L
8283fi
8284rm -f conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext conftest.$ac_ext
8286 LDFLAGS="$save_LDFLAGS"
8287 else
8288 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'
8289 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'
8290 fi
8291 archive_cmds_need_lc='no'
8292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8293 hardcode_libdir_separator=:
8294 inherit_rpath=yes
8295 link_all_deplibs=yes
8296 ;;
d7040cdb 8297
ce2cded5
L
8298 netbsd*)
8299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8301 else
8302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8303 fi
8304 hardcode_libdir_flag_spec='-R$libdir'
8305 hardcode_direct=yes
8306 hardcode_shlibpath_var=no
8307 ;;
d7040cdb 8308
ce2cded5
L
8309 newsos6)
8310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8311 hardcode_direct=yes
8312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8313 hardcode_libdir_separator=:
8314 hardcode_shlibpath_var=no
8315 ;;
d7040cdb 8316
ce2cded5
L
8317 *nto* | *qnx*)
8318 ;;
d7040cdb 8319
ce2cded5
L
8320 openbsd*)
8321 hardcode_direct=yes
8322 hardcode_shlibpath_var=no
8323 hardcode_direct_absolute=yes
8324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8326 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8328 export_dynamic_flag_spec='${wl}-E'
8329 else
8330 case $host_os in
8331 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8333 hardcode_libdir_flag_spec='-R$libdir'
8334 ;;
8335 *)
8336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8338 ;;
8339 esac
8340 fi
8341 ;;
d7040cdb 8342
ce2cded5
L
8343 os2*)
8344 hardcode_libdir_flag_spec='-L$libdir'
8345 hardcode_minus_L=yes
8346 allow_undefined_flag=unsupported
8347 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'
8348 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8349 ;;
d7040cdb 8350
ce2cded5
L
8351 osf3*)
8352 if test "$GCC" = yes; then
8353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8354 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'
8355 else
8356 allow_undefined_flag=' -expect_unresolved \*'
8357 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'
8358 fi
8359 archive_cmds_need_lc='no'
8360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8361 hardcode_libdir_separator=:
8362 ;;
d7040cdb 8363
ce2cded5
L
8364 osf4* | osf5*) # as osf3* with the addition of -msym flag
8365 if test "$GCC" = yes; then
8366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8367 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'
8368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8369 else
8370 allow_undefined_flag=' -expect_unresolved \*'
8371 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'
8372 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~
8373 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 8374
ce2cded5
L
8375 # Both c and cxx compiler support -rpath directly
8376 hardcode_libdir_flag_spec='-rpath $libdir'
8377 fi
8378 archive_cmds_need_lc='no'
8379 hardcode_libdir_separator=:
8380 ;;
d7040cdb 8381
ce2cded5
L
8382 solaris*)
8383 no_undefined_flag=' -z defs'
8384 if test "$GCC" = yes; then
8385 wlarc='${wl}'
8386 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8388 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8389 else
8390 case `$CC -V 2>&1` in
8391 *"Compilers 5.0"*)
8392 wlarc=''
8393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8396 ;;
8397 *)
8398 wlarc='${wl}'
8399 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8401 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8402 ;;
8403 esac
8404 fi
8405 hardcode_libdir_flag_spec='-R$libdir'
8406 hardcode_shlibpath_var=no
8407 case $host_os in
8408 solaris2.[0-5] | solaris2.[0-5].*) ;;
8409 *)
8410 # The compiler driver will combine and reorder linker options,
8411 # but understands `-z linker_flag'. GCC discards it without `$wl',
8412 # but is careful enough not to reorder.
8413 # Supported since Solaris 2.6 (maybe 2.5.1?)
8414 if test "$GCC" = yes; then
8415 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8416 else
8417 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8418 fi
8419 ;;
8420 esac
8421 link_all_deplibs=yes
8422 ;;
d7040cdb 8423
ce2cded5
L
8424 sunos4*)
8425 if test "x$host_vendor" = xsequent; then
8426 # Use $CC to link under sequent, because it throws in some extra .o
8427 # files that make .init and .fini sections work.
8428 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8429 else
8430 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8431 fi
8432 hardcode_libdir_flag_spec='-L$libdir'
8433 hardcode_direct=yes
8434 hardcode_minus_L=yes
8435 hardcode_shlibpath_var=no
8436 ;;
d7040cdb 8437
ce2cded5
L
8438 sysv4)
8439 case $host_vendor in
8440 sni)
8441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8442 hardcode_direct=yes # is this really true???
8443 ;;
8444 siemens)
8445 ## LD is ld it makes a PLAMLIB
8446 ## CC just makes a GrossModule.
8447 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8448 reload_cmds='$CC -r -o $output$reload_objs'
8449 hardcode_direct=no
8450 ;;
8451 motorola)
8452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8453 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8454 ;;
8455 esac
8456 runpath_var='LD_RUN_PATH'
8457 hardcode_shlibpath_var=no
8458 ;;
d7040cdb 8459
ce2cded5
L
8460 sysv4.3*)
8461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462 hardcode_shlibpath_var=no
8463 export_dynamic_flag_spec='-Bexport'
8464 ;;
d7040cdb 8465
ce2cded5
L
8466 sysv4*MP*)
8467 if test -d /usr/nec; then
8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_shlibpath_var=no
8470 runpath_var=LD_RUN_PATH
8471 hardcode_runpath_var=yes
8472 ld_shlibs=yes
8473 fi
8474 ;;
d7040cdb 8475
ce2cded5
L
8476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8477 no_undefined_flag='${wl}-z,text'
8478 archive_cmds_need_lc=no
8479 hardcode_shlibpath_var=no
8480 runpath_var='LD_RUN_PATH'
d7040cdb 8481
ce2cded5
L
8482 if test "$GCC" = yes; then
8483 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8484 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8485 else
8486 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8487 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8488 fi
8489 ;;
d7040cdb 8490
ce2cded5
L
8491 sysv5* | sco3.2v5* | sco5v6*)
8492 # Note: We can NOT use -z defs as we might desire, because we do not
8493 # link with -lc, and that would cause any symbols used from libc to
8494 # always be unresolved, which means just about no library would
8495 # ever link correctly. If we're not using GNU ld we use -z text
8496 # though, which does catch some bad symbols but isn't as heavy-handed
8497 # as -z defs.
8498 no_undefined_flag='${wl}-z,text'
8499 allow_undefined_flag='${wl}-z,nodefs'
8500 archive_cmds_need_lc=no
8501 hardcode_shlibpath_var=no
8502 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8503 hardcode_libdir_separator=':'
8504 link_all_deplibs=yes
8505 export_dynamic_flag_spec='${wl}-Bexport'
8506 runpath_var='LD_RUN_PATH'
d7040cdb 8507
ce2cded5
L
8508 if test "$GCC" = yes; then
8509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 else
8512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8514 fi
8515 ;;
d7040cdb 8516
ce2cded5
L
8517 uts4*)
8518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8519 hardcode_libdir_flag_spec='-L$libdir'
8520 hardcode_shlibpath_var=no
8521 ;;
d7040cdb 8522
ce2cded5
L
8523 *)
8524 ld_shlibs=no
8525 ;;
8526 esac
d7040cdb 8527
ce2cded5
L
8528 if test x$host_vendor = xsni; then
8529 case $host in
8530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8531 export_dynamic_flag_spec='${wl}-Blargedynsym'
8532 ;;
8533 esac
8534 fi
8535 fi
d7040cdb 8536
ce2cded5
L
8537echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8538echo "${ECHO_T}$ld_shlibs" >&6
8539test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8540
ce2cded5 8541with_gnu_ld=$with_gnu_ld
d7040cdb
SE
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
ce2cded5
L
8557#
8558# Do we need to explicitly link libc?
8559#
8560case "x$archive_cmds_need_lc" in
8561x|xyes)
8562 # Assume -lc should be added
8563 archive_cmds_need_lc=yes
d7040cdb 8564
ce2cded5
L
8565 if test "$enable_shared" = yes && test "$GCC" = yes; then
8566 case $archive_cmds in
8567 *'~'*)
8568 # FIXME: we may have to deal with multi-command sequences.
8569 ;;
8570 '$CC '*)
8571 # Test whether the compiler implicitly links with -lc since on some
8572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8573 # to ld, don't add -lc before -lgcc.
8574 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8575echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8576 $RM conftest*
8577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8578
ce2cded5
L
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } 2>conftest.err; then
8584 soname=conftest
8585 lib=conftest
8586 libobjs=conftest.$ac_objext
8587 deplibs=
8588 wl=$lt_prog_compiler_wl
8589 pic_flag=$lt_prog_compiler_pic
8590 compiler_flags=-v
8591 linker_flags=-v
8592 verstring=
8593 output_objdir=.
8594 libname=conftest
8595 lt_save_allow_undefined_flag=$allow_undefined_flag
8596 allow_undefined_flag=
8597 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8598 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }
8602 then
8603 archive_cmds_need_lc=no
8604 else
8605 archive_cmds_need_lc=yes
8606 fi
8607 allow_undefined_flag=$lt_save_allow_undefined_flag
8608 else
8609 cat conftest.err 1>&5
8610 fi
8611 $RM conftest*
8612 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8613echo "${ECHO_T}$archive_cmds_need_lc" >&6
8614 ;;
8615 esac
8616 fi
8617 ;;
8618esac
d7040cdb
SE
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
d7040cdb 8646
d7040cdb 8647
d7040cdb
SE
8648
8649
8650
8651
8652
8653
d7040cdb 8654
d7040cdb 8655
d7040cdb 8656
d7040cdb 8657
d7040cdb 8658
d7040cdb 8659
d7040cdb 8660
d7040cdb 8661
d7040cdb 8662
d7040cdb 8663
d7040cdb 8664
d7040cdb 8665
d7040cdb 8666
d7040cdb 8667
d7040cdb 8668
d7040cdb 8669
d7040cdb 8670
d7040cdb 8671
d7040cdb 8672
d7040cdb 8673
d7040cdb 8674
d7040cdb 8675
d7040cdb 8676
d7040cdb 8677
d7040cdb 8678
d7040cdb 8679
d7040cdb 8680
d7040cdb 8681
ce2cded5
L
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8777echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8778withGCC=$GCC
8779if test "$withGCC" = yes; then
8780 case $host_os in
8781 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8782 *) lt_awk_arg="/^libraries:/" ;;
8783 esac
8784 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8785 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8786 # if the path contains ";" then we assume it to be the separator
8787 # otherwise default to the standard path separator (i.e. ":") - it is
8788 # assumed that no part of a normal pathname contains ";" but that should
8789 # okay in the real world where ";" in dirpaths is itself problematic.
8790 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8791 else
8792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8793 fi
8794 # Ok, now we have the path, separated by spaces, we can step through it
8795 # and add multilib dir if necessary.
8796 lt_tmp_lt_search_path_spec=
8797 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8798 for lt_sys_path in $lt_search_path_spec; do
8799 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8800 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8801 else
8802 test -d "$lt_sys_path" && \
8803 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8804 fi
8805 done
8806 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8807BEGIN {RS=" "; FS="/|\n";} {
8808 lt_foo="";
8809 lt_count=0;
8810 for (lt_i = NF; lt_i > 0; lt_i--) {
8811 if ($lt_i != "" && $lt_i != ".") {
8812 if ($lt_i == "..") {
8813 lt_count++;
8814 } else {
8815 if (lt_count == 0) {
8816 lt_foo="/" $lt_i lt_foo;
8817 } else {
8818 lt_count--;
8819 }
8820 }
8821 }
8822 }
8823 if (lt_foo != "") { lt_freq[lt_foo]++; }
8824 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8825}'`
8826 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8827else
ce2cded5
L
8828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8829fi
8830library_names_spec=
8831libname_spec='lib$name'
8832soname_spec=
8833shrext_cmds=".so"
8834postinstall_cmds=
8835postuninstall_cmds=
8836finish_cmds=
8837finish_eval=
8838shlibpath_var=
8839shlibpath_overrides_runpath=unknown
8840version_type=none
8841dynamic_linker="$host_os ld.so"
8842sys_lib_dlsearch_path_spec="/lib /usr/lib"
8843need_lib_prefix=unknown
8844hardcode_into_libs=no
8845
8846# when you set need_version to no, make sure it does not cause -set_version
8847# flags to be left without arguments
8848need_version=unknown
8849
8850case $host_os in
8851aix3*)
8852 version_type=linux
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8854 shlibpath_var=LIBPATH
8855
8856 # AIX 3 has no versioning support, so we append a major version to the name.
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 ;;
8859
50e7d84b 8860aix[4-9]*)
ce2cded5
L
8861 version_type=linux
8862 need_lib_prefix=no
8863 need_version=no
8864 hardcode_into_libs=yes
8865 if test "$host_cpu" = ia64; then
8866 # AIX 5 supports IA64
8867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8868 shlibpath_var=LD_LIBRARY_PATH
8869 else
8870 # With GCC up to 2.95.x, collect2 would create an import file
8871 # for dependence libraries. The import file would start with
8872 # the line `#! .'. This would cause the generated library to
8873 # depend on `.', always an invalid library. This was fixed in
8874 # development snapshots of GCC prior to 3.0.
8875 case $host_os in
8876 aix4 | aix4.[01] | aix4.[01].*)
8877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8878 echo ' yes '
8879 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8880 :
8881 else
8882 can_build_shared=no
8883 fi
8884 ;;
8885 esac
8886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8887 # soname into executable. Probably we can add versioning support to
8888 # collect2, so additional links can be useful in future.
8889 if test "$aix_use_runtimelinking" = yes; then
8890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8891 # instead of lib<name>.a to let people know that these are not
8892 # typical AIX shared libraries.
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894 else
8895 # We preserve .a as extension for shared libraries through AIX4.2
8896 # and later when we are not doing run time linking.
8897 library_names_spec='${libname}${release}.a $libname.a'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 fi
8900 shlibpath_var=LIBPATH
8901 fi
8902 ;;
8903
8904amigaos*)
8905 if test "$host_cpu" = m68k; then
8906 library_names_spec='$libname.ixlibrary $libname.a'
8907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8908 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'
8909 else
8910 dynamic_linker=no
8911 fi
8912 ;;
8913
8914beos*)
8915 library_names_spec='${libname}${shared_ext}'
8916 dynamic_linker="$host_os ld.so"
8917 shlibpath_var=LIBRARY_PATH
8918 ;;
8919
8920bsdi[45]*)
8921 version_type=linux
8922 need_version=no
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8926 shlibpath_var=LD_LIBRARY_PATH
8927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8929 # the default ld.so.conf also contains /usr/contrib/lib and
8930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8931 # libtool to hard-code these into programs
8932 ;;
8933
8934cygwin* | mingw* | pw32*)
8935 version_type=windows
8936 shrext_cmds=".dll"
8937 need_version=no
8938 need_lib_prefix=no
8939
8940 case $withGCC,$host_os in
8941 yes,cygwin* | yes,mingw* | yes,pw32*)
8942 library_names_spec='$libname.dll.a'
8943 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8944 postinstall_cmds='base_file=`basename \${file}`~
8945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8946 dldir=$destdir/`dirname \$dlpath`~
8947 test -d \$dldir || mkdir -p \$dldir~
8948 $install_prog $dir/$dlname \$dldir/$dlname~
8949 chmod a+x \$dldir/$dlname~
8950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8952 fi'
8953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8954 dlpath=$dir/\$dldll~
8955 $RM \$dlpath'
8956 shlibpath_overrides_runpath=yes
8957
8958 case $host_os in
8959 cygwin*)
8960 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8961 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8962 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8963 ;;
8964 mingw*)
8965 # MinGW DLLs use traditional 'lib' prefix
8966 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8967 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8968 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8969 # It is most probably a Windows format PATH printed by
8970 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8971 # path with ; separators, and with drive letters. We can handle the
8972 # drive letters (cygwin fileutils understands them), so leave them,
8973 # especially as we might pass files found there to a mingw objdump,
8974 # which wouldn't understand a cygwinified path. Ahh.
8975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8976 else
8977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8978 fi
8979 ;;
8980 pw32*)
8981 # pw32 DLLs use 'pw' prefix rather than 'lib'
8982 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8983 ;;
8984 esac
8985 ;;
8986
8987 *)
8988 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8989 ;;
8990 esac
8991 dynamic_linker='Win32 ld.exe'
8992 # FIXME: first we should search . and the directory the executable is in
8993 shlibpath_var=PATH
8994 ;;
8995
8996darwin* | rhapsody*)
8997 dynamic_linker="$host_os dyld"
8998 version_type=darwin
8999 need_lib_prefix=no
9000 need_version=no
9001 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9002 soname_spec='${libname}${release}${major}$shared_ext'
9003 shlibpath_overrides_runpath=yes
9004 shlibpath_var=DYLD_LIBRARY_PATH
9005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9006
9007 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9009 ;;
9010
9011dgux*)
9012 version_type=linux
9013 need_lib_prefix=no
9014 need_version=no
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9016 soname_spec='${libname}${release}${shared_ext}$major'
9017 shlibpath_var=LD_LIBRARY_PATH
9018 ;;
9019
9020freebsd1*)
9021 dynamic_linker=no
9022 ;;
9023
9024freebsd* | dragonfly*)
9025 # DragonFly does not have aout. When/if they implement a new
9026 # versioning mechanism, adjust this.
9027 if test -x /usr/bin/objformat; then
9028 objformat=`/usr/bin/objformat`
9029 else
9030 case $host_os in
9031 freebsd[123]*) objformat=aout ;;
9032 *) objformat=elf ;;
9033 esac
9034 fi
9035 version_type=freebsd-$objformat
9036 case $version_type in
9037 freebsd-elf*)
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9039 need_version=no
9040 need_lib_prefix=no
9041 ;;
9042 freebsd-*)
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9044 need_version=yes
9045 ;;
9046 esac
9047 shlibpath_var=LD_LIBRARY_PATH
9048 case $host_os in
9049 freebsd2*)
9050 shlibpath_overrides_runpath=yes
9051 ;;
9052 freebsd3.[01]* | freebsdelf3.[01]*)
9053 shlibpath_overrides_runpath=yes
9054 hardcode_into_libs=yes
9055 ;;
9056 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9057 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9058 shlibpath_overrides_runpath=no
9059 hardcode_into_libs=yes
9060 ;;
9061 *) # from 4.6 on, and DragonFly
9062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9064 ;;
9065 esac
9066 ;;
9067
9068gnu*)
9069 version_type=linux
9070 need_lib_prefix=no
9071 need_version=no
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 hardcode_into_libs=yes
9076 ;;
9077
9078hpux9* | hpux10* | hpux11*)
9079 # Give a soname corresponding to the major version so that dld.sl refuses to
9080 # link against other versions.
9081 version_type=sunos
9082 need_lib_prefix=no
9083 need_version=no
9084 case $host_cpu in
9085 ia64*)
9086 shrext_cmds='.so'
9087 hardcode_into_libs=yes
9088 dynamic_linker="$host_os dld.so"
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 if test "X$HPUX_IA64_MODE" = X32; then
9094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9095 else
9096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9097 fi
9098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9099 ;;
9100 hppa*64*)
9101 shrext_cmds='.sl'
9102 hardcode_into_libs=yes
9103 dynamic_linker="$host_os dld.sl"
9104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107 soname_spec='${libname}${release}${shared_ext}$major'
9108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9110 ;;
9111 *)
9112 shrext_cmds='.sl'
9113 dynamic_linker="$host_os dld.sl"
9114 shlibpath_var=SHLIB_PATH
9115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 ;;
9119 esac
9120 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9121 postinstall_cmds='chmod 555 $lib'
9122 ;;
9123
9124interix[3-9]*)
9125 version_type=linux
9126 need_lib_prefix=no
9127 need_version=no
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=no
9133 hardcode_into_libs=yes
9134 ;;
9135
9136irix5* | irix6* | nonstopux*)
9137 case $host_os in
9138 nonstopux*) version_type=nonstopux ;;
9139 *)
9140 if test "$lt_cv_prog_gnu_ld" = yes; then
9141 version_type=linux
9142 else
9143 version_type=irix
9144 fi ;;
9145 esac
9146 need_lib_prefix=no
9147 need_version=no
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9150 case $host_os in
9151 irix5* | nonstopux*)
9152 libsuff= shlibsuff=
9153 ;;
9154 *)
9155 case $LD in # libtool.m4 will add one of these switches to LD
9156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9157 libsuff= shlibsuff= libmagic=32-bit;;
9158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9159 libsuff=32 shlibsuff=N32 libmagic=N32;;
9160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9161 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9162 *) libsuff= shlibsuff= libmagic=never-match;;
9163 esac
9164 ;;
9165 esac
9166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9167 shlibpath_overrides_runpath=no
9168 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9169 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9170 hardcode_into_libs=yes
9171 ;;
9172
9173# No shared lib support for Linux oldld, aout, or coff.
9174linux*oldld* | linux*aout* | linux*coff*)
9175 dynamic_linker=no
9176 ;;
9177
9178# This must be Linux ELF.
9179linux* | k*bsd*-gnu)
9180 version_type=linux
9181 need_lib_prefix=no
9182 need_version=no
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 shlibpath_overrides_runpath=no
9188 # Some binutils ld are patched to set DT_RUNPATH
9189 save_LDFLAGS=$LDFLAGS
9190 save_libdir=$libdir
9191 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9192 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9193 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9194/* confdefs.h. */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h. */
9199
d7040cdb
SE
9200int
9201main ()
9202{
ce2cded5 9203
d7040cdb
SE
9204 ;
9205 return 0;
9206}
9207_ACEOF
9208rm -f conftest.$ac_objext conftest$ac_exeext
9209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9210 (eval $ac_link) 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag"
9218 || test ! -s conftest.err'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 (eval $ac_try) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9223 (exit $ac_status); }; } &&
9224 { ac_try='test -s conftest$ac_exeext'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9231 shlibpath_overrides_runpath=yes
d7040cdb 9232fi
d7040cdb 9233
ce2cded5
L
9234else
9235 echo "$as_me: failed program was:" >&5
9236sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb
SE
9237
9238fi
ce2cded5
L
9239rm -f conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
9241 LDFLAGS=$save_LDFLAGS
9242 libdir=$save_libdir
d7040cdb 9243
ce2cded5
L
9244 # This implies no fast_install, which is unacceptable.
9245 # Some rework will be needed to allow for fast_install
9246 # before this can be enabled.
9247 hardcode_into_libs=yes
d7040cdb 9248
ce2cded5
L
9249 # Append ld.so.conf contents to the search path
9250 if test -f /etc/ld.so.conf; then
9251 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' ' '`
9252 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9253 fi
d7040cdb 9254
ce2cded5
L
9255 # We used to test for /lib/ld.so.1 and disable shared libraries on
9256 # powerpc, because MkLinux only supported shared libraries with the
9257 # GNU dynamic linker. Since this was broken with cross compilers,
9258 # most powerpc-linux boxes support dynamic linking these days and
9259 # people can always --disable-shared, the test was removed, and we
9260 # assume the GNU/Linux dynamic linker is in use.
9261 dynamic_linker='GNU/Linux ld.so'
9262 ;;
d7040cdb 9263
ce2cded5
L
9264netbsd*)
9265 version_type=sunos
9266 need_lib_prefix=no
9267 need_version=no
9268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9271 dynamic_linker='NetBSD (a.out) ld.so'
9272 else
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 dynamic_linker='NetBSD ld.elf_so'
9276 fi
9277 shlibpath_var=LD_LIBRARY_PATH
9278 shlibpath_overrides_runpath=yes
9279 hardcode_into_libs=yes
9280 ;;
d7040cdb 9281
ce2cded5
L
9282newsos6)
9283 version_type=linux
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=yes
9287 ;;
d7040cdb 9288
ce2cded5
L
9289*nto* | *qnx*)
9290 version_type=qnx
9291 need_lib_prefix=no
9292 need_version=no
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 shlibpath_overrides_runpath=no
9297 hardcode_into_libs=yes
9298 dynamic_linker='ldqnx.so'
9299 ;;
d7040cdb 9300
ce2cded5
L
9301openbsd*)
9302 version_type=sunos
9303 sys_lib_dlsearch_path_spec="/usr/lib"
9304 need_lib_prefix=no
9305 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9306 case $host_os in
9307 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9308 *) need_version=no ;;
9309 esac
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9314 case $host_os in
9315 openbsd2.[89] | openbsd2.[89].*)
9316 shlibpath_overrides_runpath=no
9317 ;;
9318 *)
9319 shlibpath_overrides_runpath=yes
9320 ;;
9321 esac
9322 else
9323 shlibpath_overrides_runpath=yes
9324 fi
9325 ;;
d7040cdb 9326
ce2cded5
L
9327os2*)
9328 libname_spec='$name'
9329 shrext_cmds=".dll"
9330 need_lib_prefix=no
9331 library_names_spec='$libname${shared_ext} $libname.a'
9332 dynamic_linker='OS/2 ld.exe'
9333 shlibpath_var=LIBPATH
9334 ;;
d7040cdb 9335
ce2cded5
L
9336osf3* | osf4* | osf5*)
9337 version_type=osf
9338 need_lib_prefix=no
9339 need_version=no
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9344 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9345 ;;
d7040cdb 9346
ce2cded5
L
9347rdos*)
9348 dynamic_linker=no
9349 ;;
d7040cdb 9350
ce2cded5
L
9351solaris*)
9352 version_type=linux
9353 need_lib_prefix=no
9354 need_version=no
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 shlibpath_var=LD_LIBRARY_PATH
9358 shlibpath_overrides_runpath=yes
9359 hardcode_into_libs=yes
9360 # ldd complains unless libraries are executable
9361 postinstall_cmds='chmod +x $lib'
9362 ;;
d7040cdb 9363
ce2cded5
L
9364sunos4*)
9365 version_type=sunos
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9367 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 shlibpath_overrides_runpath=yes
9370 if test "$with_gnu_ld" = yes; then
9371 need_lib_prefix=no
9372 fi
9373 need_version=yes
9374 ;;
d7040cdb 9375
ce2cded5
L
9376sysv4 | sysv4.3*)
9377 version_type=linux
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 case $host_vendor in
9382 sni)
9383 shlibpath_overrides_runpath=no
9384 need_lib_prefix=no
9385 runpath_var=LD_RUN_PATH
9386 ;;
9387 siemens)
9388 need_lib_prefix=no
9389 ;;
9390 motorola)
9391 need_lib_prefix=no
9392 need_version=no
9393 shlibpath_overrides_runpath=no
9394 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9395 ;;
9396 esac
9397 ;;
d7040cdb 9398
ce2cded5
L
9399sysv4*MP*)
9400 if test -d /usr/nec ;then
9401 version_type=linux
9402 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9403 soname_spec='$libname${shared_ext}.$major'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 fi
9406 ;;
d7040cdb 9407
ce2cded5
L
9408sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9409 version_type=freebsd-elf
9410 need_lib_prefix=no
9411 need_version=no
9412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9413 soname_spec='${libname}${release}${shared_ext}$major'
9414 shlibpath_var=LD_LIBRARY_PATH
9415 shlibpath_overrides_runpath=yes
9416 hardcode_into_libs=yes
9417 if test "$with_gnu_ld" = yes; then
9418 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9419 else
9420 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9421 case $host_os in
9422 sco3.2v5*)
9423 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9424 ;;
9425 esac
9426 fi
9427 sys_lib_dlsearch_path_spec='/usr/lib'
9428 ;;
d7040cdb 9429
ce2cded5
L
9430tpf*)
9431 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9432 version_type=linux
9433 need_lib_prefix=no
9434 need_version=no
9435 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436 shlibpath_var=LD_LIBRARY_PATH
9437 shlibpath_overrides_runpath=no
9438 hardcode_into_libs=yes
9439 ;;
d7040cdb 9440
ce2cded5
L
9441uts4*)
9442 version_type=linux
9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 shlibpath_var=LD_LIBRARY_PATH
9446 ;;
d7040cdb 9447
ce2cded5
L
9448*)
9449 dynamic_linker=no
9450 ;;
9451esac
9452echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9453echo "${ECHO_T}$dynamic_linker" >&6
9454test "$dynamic_linker" = no && can_build_shared=no
9455
9456variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9457if test "$GCC" = yes; then
9458 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
9459fi
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
d7040cdb 9472
d7040cdb 9473
d7040cdb 9474
d7040cdb 9475
d7040cdb
SE
9476
9477
9478
9479
d7040cdb 9480
d7040cdb
SE
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
d7040cdb
SE
9494
9495
9496
9497
d7040cdb
SE
9498
9499
9500
9501
d7040cdb 9502
d7040cdb 9503
d7040cdb 9504
d7040cdb 9505
d7040cdb 9506
d7040cdb 9507
d7040cdb 9508
d7040cdb
SE
9509
9510
9511
9512
9513
d7040cdb 9514
d7040cdb 9515
d7040cdb 9516
d7040cdb 9517
d7040cdb 9518
d7040cdb 9519
d7040cdb
SE
9520
9521
9522
9523
9524
d7040cdb
SE
9525
9526
d7040cdb 9527
d7040cdb 9528
d7040cdb 9529
d7040cdb 9530
ce2cded5
L
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9548echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9549hardcode_action=
9550if test -n "$hardcode_libdir_flag_spec" ||
9551 test -n "$runpath_var" ||
9552 test "X$hardcode_automatic" = "Xyes" ; then
9553
9554 # We can hardcode non-existent directories.
9555 if test "$hardcode_direct" != no &&
9556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9557 # have to relink, otherwise we might link with an installed library
9558 # when we should be linking with a yet-to-be-installed one
9559 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9560 test "$hardcode_minus_L" != no; then
9561 # Linking always hardcodes the temporary library directory.
9562 hardcode_action=relink
9563 else
9564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9565 hardcode_action=immediate
d7040cdb 9566 fi
d7040cdb 9567else
ce2cded5
L
9568 # We cannot hardcode anything, or else we can only hardcode existing
9569 # directories.
9570 hardcode_action=unsupported
d7040cdb 9571fi
ce2cded5
L
9572echo "$as_me:$LINENO: result: $hardcode_action" >&5
9573echo "${ECHO_T}$hardcode_action" >&6
d7040cdb 9574
ce2cded5
L
9575if test "$hardcode_action" = relink ||
9576 test "$inherit_rpath" = yes; then
9577 # Fast installation is not supported
9578 enable_fast_install=no
9579elif test "$shlibpath_overrides_runpath" = yes ||
9580 test "$enable_shared" = no; then
9581 # Fast installation is not necessary
9582 enable_fast_install=needless
d7040cdb
SE
9583fi
9584
d7040cdb 9585
d7040cdb 9586
d7040cdb 9587
d7040cdb 9588
d7040cdb 9589
ce2cded5
L
9590 if test "x$enable_dlopen" != xyes; then
9591 enable_dlopen=unknown
9592 enable_dlopen_self=unknown
9593 enable_dlopen_self_static=unknown
d7040cdb 9594else
ce2cded5
L
9595 lt_cv_dlopen=no
9596 lt_cv_dlopen_libs=
d7040cdb 9597
ce2cded5
L
9598 case $host_os in
9599 beos*)
9600 lt_cv_dlopen="load_add_on"
9601 lt_cv_dlopen_libs=
9602 lt_cv_dlopen_self=yes
9603 ;;
d7040cdb 9604
ce2cded5
L
9605 mingw* | pw32*)
9606 lt_cv_dlopen="LoadLibrary"
9607 lt_cv_dlopen_libs=
9608 ;;
9609
9610 cygwin*)
9611 lt_cv_dlopen="dlopen"
9612 lt_cv_dlopen_libs=
9613 ;;
9614
9615 darwin*)
9616 # if libdl is installed we need to link against it
9617 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9618echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9619if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621else
ce2cded5
L
9622 ac_check_lib_save_LIBS=$LIBS
9623LIBS="-ldl $LIBS"
9624cat >conftest.$ac_ext <<_ACEOF
9625/* confdefs.h. */
9626_ACEOF
9627cat confdefs.h >>conftest.$ac_ext
9628cat >>conftest.$ac_ext <<_ACEOF
9629/* end confdefs.h. */
9630
9631/* Override any gcc2 internal prototype to avoid an error. */
9632#ifdef __cplusplus
9633extern "C"
9634#endif
9635/* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9637char dlopen ();
9638int
9639main ()
9640{
9641dlopen ();
9642 ;
9643 return 0;
9644}
9645_ACEOF
9646rm -f conftest.$ac_objext conftest$ac_exeext
9647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648 (eval $ac_link) 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag"
9656 || test ! -s conftest.err'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 (eval $ac_try) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; } &&
9662 { ac_try='test -s conftest$ac_exeext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_cv_lib_dl_dlopen=yes
9669else
9670 echo "$as_me: failed program was:" >&5
9671sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9672
ce2cded5 9673ac_cv_lib_dl_dlopen=no
d7040cdb 9674fi
ce2cded5
L
9675rm -f conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext conftest.$ac_ext
9677LIBS=$ac_check_lib_save_LIBS
d7040cdb 9678fi
ce2cded5
L
9679echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9680echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9681if test $ac_cv_lib_dl_dlopen = yes; then
9682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 9683else
d7040cdb 9684
ce2cded5
L
9685 lt_cv_dlopen="dyld"
9686 lt_cv_dlopen_libs=
9687 lt_cv_dlopen_self=yes
9688
d7040cdb 9689fi
ce2cded5
L
9690
9691 ;;
9692
9693 *)
9694 echo "$as_me:$LINENO: checking for shl_load" >&5
9695echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9696if test "${ac_cv_func_shl_load+set}" = set; then
d7040cdb
SE
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9698else
ce2cded5
L
9699 cat >conftest.$ac_ext <<_ACEOF
9700/* confdefs.h. */
9701_ACEOF
9702cat confdefs.h >>conftest.$ac_ext
9703cat >>conftest.$ac_ext <<_ACEOF
9704/* end confdefs.h. */
9705/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9707#define shl_load innocuous_shl_load
d7040cdb 9708
ce2cded5
L
9709/* System header to define __stub macros and hopefully few prototypes,
9710 which can conflict with char shl_load (); below.
9711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9712 <limits.h> exists even on freestanding compilers. */
d7040cdb 9713
ce2cded5
L
9714#ifdef __STDC__
9715# include <limits.h>
9716#else
9717# include <assert.h>
9718#endif
d7040cdb 9719
ce2cded5 9720#undef shl_load
d7040cdb 9721
ce2cded5
L
9722/* Override any gcc2 internal prototype to avoid an error. */
9723#ifdef __cplusplus
9724extern "C"
9725{
9726#endif
9727/* We use char because int might match the return type of a gcc2
9728 builtin and then its argument prototype would still apply. */
9729char shl_load ();
9730/* The GNU C library defines this for functions which it implements
9731 to always fail with ENOSYS. Some functions are actually named
9732 something starting with __ and the normal name is an alias. */
9733#if defined (__stub_shl_load) || defined (__stub___shl_load)
9734choke me
9735#else
9736char (*f) () = shl_load;
9737#endif
9738#ifdef __cplusplus
9739}
9740#endif
d7040cdb 9741
ce2cded5
L
9742int
9743main ()
9744{
9745return f != shl_load;
9746 ;
9747 return 0;
9748}
9749_ACEOF
9750rm -f conftest.$ac_objext conftest$ac_exeext
9751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752 (eval $ac_link) 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -z "$ac_c_werror_flag"
9760 || test ! -s conftest.err'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 (eval $ac_try) 2>&5
9763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest$ac_exeext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 (eval $ac_try) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_func_shl_load=yes
9773else
9774 echo "$as_me: failed program was:" >&5
9775sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9776
ce2cded5
L
9777ac_cv_func_shl_load=no
9778fi
9779rm -f conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781fi
9782echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9783echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9784if test $ac_cv_func_shl_load = yes; then
9785 lt_cv_dlopen="shl_load"
9786else
9787 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9788echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9789if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791else
9792 ac_check_lib_save_LIBS=$LIBS
9793LIBS="-ldld $LIBS"
9794cat >conftest.$ac_ext <<_ACEOF
9795/* confdefs.h. */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
9799/* end confdefs.h. */
d7040cdb 9800
ce2cded5
L
9801/* Override any gcc2 internal prototype to avoid an error. */
9802#ifdef __cplusplus
9803extern "C"
9804#endif
9805/* We use char because int might match the return type of a gcc2
9806 builtin and then its argument prototype would still apply. */
9807char shl_load ();
9808int
9809main ()
9810{
9811shl_load ();
9812 ;
9813 return 0;
9814}
9815_ACEOF
9816rm -f conftest.$ac_objext conftest$ac_exeext
9817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818 (eval $ac_link) 2>conftest.er1
d7040cdb 9819 ac_status=$?
ce2cded5
L
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
d7040cdb 9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9824 (exit $ac_status); } &&
9825 { ac_try='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
d7040cdb
SE
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest$ac_exeext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
d7040cdb
SE
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9837 (exit $ac_status); }; }; then
9838 ac_cv_lib_dld_shl_load=yes
9839else
9840 echo "$as_me: failed program was:" >&5
9841sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9842
ce2cded5
L
9843ac_cv_lib_dld_shl_load=no
9844fi
9845rm -f conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9847LIBS=$ac_check_lib_save_LIBS
9848fi
9849echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9850echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9851if test $ac_cv_lib_dld_shl_load = yes; then
9852 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9853else
9854 echo "$as_me:$LINENO: checking for dlopen" >&5
9855echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9856if test "${ac_cv_func_dlopen+set}" = set; then
d7040cdb
SE
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9858else
9859 cat >conftest.$ac_ext <<_ACEOF
9860/* confdefs.h. */
9861_ACEOF
9862cat confdefs.h >>conftest.$ac_ext
9863cat >>conftest.$ac_ext <<_ACEOF
9864/* end confdefs.h. */
ce2cded5
L
9865/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9867#define dlopen innocuous_dlopen
9868
9869/* System header to define __stub macros and hopefully few prototypes,
9870 which can conflict with char dlopen (); below.
9871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9872 <limits.h> exists even on freestanding compilers. */
9873
9874#ifdef __STDC__
9875# include <limits.h>
9876#else
9877# include <assert.h>
9878#endif
9879
9880#undef dlopen
9881
9882/* Override any gcc2 internal prototype to avoid an error. */
9883#ifdef __cplusplus
9884extern "C"
9885{
9886#endif
9887/* We use char because int might match the return type of a gcc2
9888 builtin and then its argument prototype would still apply. */
9889char dlopen ();
9890/* The GNU C library defines this for functions which it implements
9891 to always fail with ENOSYS. Some functions are actually named
9892 something starting with __ and the normal name is an alias. */
9893#if defined (__stub_dlopen) || defined (__stub___dlopen)
9894choke me
9895#else
9896char (*f) () = dlopen;
9897#endif
9898#ifdef __cplusplus
9899}
9900#endif
d7040cdb
SE
9901
9902int
9903main ()
9904{
ce2cded5 9905return f != dlopen;
d7040cdb
SE
9906 ;
9907 return 0;
9908}
9909_ACEOF
ce2cded5
L
9910rm -f conftest.$ac_objext conftest$ac_exeext
9911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9913 ac_status=$?
9914 grep -v '^ *+' conftest.er1 >conftest.err
9915 rm -f conftest.er1
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -z "$ac_c_werror_flag"
9920 || test ! -s conftest.err'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
ce2cded5 9926 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
ce2cded5 9932 ac_cv_func_dlopen=yes
d7040cdb
SE
9933else
9934 echo "$as_me: failed program was:" >&5
9935sed 's/^/| /' conftest.$ac_ext >&5
9936
ce2cded5 9937ac_cv_func_dlopen=no
d7040cdb 9938fi
ce2cded5
L
9939rm -f conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9941fi
ce2cded5
L
9942echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9943echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9944if test $ac_cv_func_dlopen = yes; then
9945 lt_cv_dlopen="dlopen"
9946else
9947 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9948echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9949if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9951else
ce2cded5
L
9952 ac_check_lib_save_LIBS=$LIBS
9953LIBS="-ldl $LIBS"
9954cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9955/* confdefs.h. */
9956_ACEOF
9957cat confdefs.h >>conftest.$ac_ext
9958cat >>conftest.$ac_ext <<_ACEOF
9959/* end confdefs.h. */
9960
ce2cded5
L
9961/* Override any gcc2 internal prototype to avoid an error. */
9962#ifdef __cplusplus
9963extern "C"
9964#endif
9965/* We use char because int might match the return type of a gcc2
9966 builtin and then its argument prototype would still apply. */
9967char dlopen ();
d7040cdb
SE
9968int
9969main ()
9970{
ce2cded5 9971dlopen ();
d7040cdb
SE
9972 ;
9973 return 0;
9974}
9975_ACEOF
ce2cded5
L
9976rm -f conftest.$ac_objext conftest$ac_exeext
9977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9978 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9979 ac_status=$?
9980 grep -v '^ *+' conftest.er1 >conftest.err
9981 rm -f conftest.er1
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try='test -z "$ac_c_werror_flag"
9986 || test ! -s conftest.err'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 (eval $ac_try) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; } &&
ce2cded5 9992 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 (eval $ac_try) 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
ce2cded5 9998 ac_cv_lib_dl_dlopen=yes
d7040cdb
SE
9999else
10000 echo "$as_me: failed program was:" >&5
10001sed 's/^/| /' conftest.$ac_ext >&5
10002
ce2cded5 10003ac_cv_lib_dl_dlopen=no
d7040cdb 10004fi
ce2cded5
L
10005rm -f conftest.err conftest.$ac_objext \
10006 conftest$ac_exeext conftest.$ac_ext
10007LIBS=$ac_check_lib_save_LIBS
d7040cdb 10008fi
ce2cded5
L
10009echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10010echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10011if test $ac_cv_lib_dl_dlopen = yes; then
10012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10013else
ce2cded5
L
10014 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10015echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10016if test "${ac_cv_lib_svld_dlopen+set}" = set; then
d7040cdb
SE
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018else
ce2cded5
L
10019 ac_check_lib_save_LIBS=$LIBS
10020LIBS="-lsvld $LIBS"
d7040cdb
SE
10021cat >conftest.$ac_ext <<_ACEOF
10022/* confdefs.h. */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h. */
d7040cdb 10027
ce2cded5
L
10028/* Override any gcc2 internal prototype to avoid an error. */
10029#ifdef __cplusplus
10030extern "C"
10031#endif
10032/* We use char because int might match the return type of a gcc2
10033 builtin and then its argument prototype would still apply. */
10034char dlopen ();
d7040cdb
SE
10035int
10036main ()
10037{
ce2cded5 10038dlopen ();
d7040cdb
SE
10039 ;
10040 return 0;
10041}
10042_ACEOF
ce2cded5
L
10043rm -f conftest.$ac_objext conftest$ac_exeext
10044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10046 ac_status=$?
10047 grep -v '^ *+' conftest.er1 >conftest.err
10048 rm -f conftest.er1
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_c_werror_flag"
10053 || test ! -s conftest.err'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; } &&
ce2cded5 10059 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10062 ac_status=$?
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; }; then
ce2cded5 10065 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
10066else
10067 echo "$as_me: failed program was:" >&5
10068sed 's/^/| /' conftest.$ac_ext >&5
10069
ce2cded5 10070ac_cv_lib_svld_dlopen=no
d7040cdb 10071fi
ce2cded5
L
10072rm -f conftest.err conftest.$ac_objext \
10073 conftest$ac_exeext conftest.$ac_ext
10074LIBS=$ac_check_lib_save_LIBS
d7040cdb 10075fi
ce2cded5
L
10076echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10077echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10078if test $ac_cv_lib_svld_dlopen = yes; then
10079 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10080else
10081 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10082echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10083if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085else
10086 ac_check_lib_save_LIBS=$LIBS
10087LIBS="-ldld $LIBS"
d7040cdb 10088cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10089/* confdefs.h. */
10090_ACEOF
10091cat confdefs.h >>conftest.$ac_ext
10092cat >>conftest.$ac_ext <<_ACEOF
ce2cded5
L
10093/* end confdefs.h. */
10094
10095/* Override any gcc2 internal prototype to avoid an error. */
10096#ifdef __cplusplus
10097extern "C"
10098#endif
10099/* We use char because int might match the return type of a gcc2
10100 builtin and then its argument prototype would still apply. */
10101char dld_link ();
d7040cdb
SE
10102int
10103main ()
10104{
ce2cded5 10105dld_link ();
d7040cdb
SE
10106 ;
10107 return 0;
10108}
10109_ACEOF
ce2cded5
L
10110rm -f conftest.$ac_objext conftest$ac_exeext
10111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10112 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -z "$ac_c_werror_flag"
10120 || test ! -s conftest.err'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; } &&
ce2cded5 10126 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
ce2cded5 10132 ac_cv_lib_dld_dld_link=yes
d7040cdb
SE
10133else
10134 echo "$as_me: failed program was:" >&5
10135sed 's/^/| /' conftest.$ac_ext >&5
10136
ce2cded5 10137ac_cv_lib_dld_dld_link=no
d7040cdb 10138fi
ce2cded5
L
10139rm -f conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141LIBS=$ac_check_lib_save_LIBS
10142fi
10143echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10144echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10145if test $ac_cv_lib_dld_dld_link = yes; then
10146 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10147fi
10148
10149
10150fi
10151
10152
10153fi
10154
10155
10156fi
10157
10158
10159fi
10160
10161
10162fi
10163
10164 ;;
10165 esac
10166
10167 if test "x$lt_cv_dlopen" != xno; then
10168 enable_dlopen=yes
10169 else
10170 enable_dlopen=no
10171 fi
10172
10173 case $lt_cv_dlopen in
10174 dlopen)
10175 save_CPPFLAGS="$CPPFLAGS"
10176 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10177
10178 save_LDFLAGS="$LDFLAGS"
10179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10180
10181 save_LIBS="$LIBS"
10182 LIBS="$lt_cv_dlopen_libs $LIBS"
10183
10184 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10185echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10186if test "${lt_cv_dlopen_self+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10188else
10189 if test "$cross_compiling" = yes; then :
10190 lt_cv_dlopen_self=cross
10191else
10192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10193 lt_status=$lt_dlunknown
10194 cat > conftest.$ac_ext <<_LT_EOF
58c85be7 10195#line 10195 "configure"
ce2cded5
L
10196#include "confdefs.h"
10197
10198#if HAVE_DLFCN_H
10199#include <dlfcn.h>
10200#endif
10201
10202#include <stdio.h>
10203
10204#ifdef RTLD_GLOBAL
10205# define LT_DLGLOBAL RTLD_GLOBAL
10206#else
10207# ifdef DL_GLOBAL
10208# define LT_DLGLOBAL DL_GLOBAL
10209# else
10210# define LT_DLGLOBAL 0
10211# endif
10212#endif
10213
10214/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10215 find out it does not work in some platform. */
10216#ifndef LT_DLLAZY_OR_NOW
10217# ifdef RTLD_LAZY
10218# define LT_DLLAZY_OR_NOW RTLD_LAZY
10219# else
10220# ifdef DL_LAZY
10221# define LT_DLLAZY_OR_NOW DL_LAZY
10222# else
10223# ifdef RTLD_NOW
10224# define LT_DLLAZY_OR_NOW RTLD_NOW
10225# else
10226# ifdef DL_NOW
10227# define LT_DLLAZY_OR_NOW DL_NOW
10228# else
10229# define LT_DLLAZY_OR_NOW 0
10230# endif
10231# endif
10232# endif
10233# endif
10234#endif
10235
10236#ifdef __cplusplus
10237extern "C" void exit (int);
10238#endif
10239
10240void fnord() { int i=42;}
10241int main ()
d7040cdb 10242{
ce2cded5
L
10243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10244 int status = $lt_dlunknown;
10245
10246 if (self)
10247 {
10248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10250 /* dlclose (self); */
10251 }
10252 else
10253 puts (dlerror ());
10254
10255 exit (status);
d7040cdb 10256}
ce2cded5
L
10257_LT_EOF
10258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10259 (eval $ac_link) 2>&5
d7040cdb
SE
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10262 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10263 (./conftest; exit; ) >&5 2>/dev/null
10264 lt_status=$?
10265 case x$lt_status in
10266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10268 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10269 esac
10270 else :
10271 # compilation failed
10272 lt_cv_dlopen_self=no
10273 fi
10274fi
10275rm -fr conftest*
10276
10277
10278fi
10279echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10280echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10281
10282 if test "x$lt_cv_dlopen_self" = xyes; then
10283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10284 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10285echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10286if test "${lt_cv_dlopen_self_static+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288else
10289 if test "$cross_compiling" = yes; then :
10290 lt_cv_dlopen_self_static=cross
10291else
10292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10293 lt_status=$lt_dlunknown
10294 cat > conftest.$ac_ext <<_LT_EOF
58c85be7 10295#line 10295 "configure"
ce2cded5
L
10296#include "confdefs.h"
10297
10298#if HAVE_DLFCN_H
10299#include <dlfcn.h>
10300#endif
10301
10302#include <stdio.h>
10303
10304#ifdef RTLD_GLOBAL
10305# define LT_DLGLOBAL RTLD_GLOBAL
10306#else
10307# ifdef DL_GLOBAL
10308# define LT_DLGLOBAL DL_GLOBAL
10309# else
10310# define LT_DLGLOBAL 0
10311# endif
10312#endif
10313
10314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10315 find out it does not work in some platform. */
10316#ifndef LT_DLLAZY_OR_NOW
10317# ifdef RTLD_LAZY
10318# define LT_DLLAZY_OR_NOW RTLD_LAZY
10319# else
10320# ifdef DL_LAZY
10321# define LT_DLLAZY_OR_NOW DL_LAZY
10322# else
10323# ifdef RTLD_NOW
10324# define LT_DLLAZY_OR_NOW RTLD_NOW
10325# else
10326# ifdef DL_NOW
10327# define LT_DLLAZY_OR_NOW DL_NOW
10328# else
10329# define LT_DLLAZY_OR_NOW 0
10330# endif
10331# endif
10332# endif
10333# endif
10334#endif
10335
10336#ifdef __cplusplus
10337extern "C" void exit (int);
10338#endif
10339
10340void fnord() { int i=42;}
10341int main ()
10342{
10343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10344 int status = $lt_dlunknown;
10345
10346 if (self)
10347 {
10348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10349 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10350 /* dlclose (self); */
10351 }
10352 else
10353 puts (dlerror ());
10354
10355 exit (status);
10356}
10357_LT_EOF
10358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10359 (eval $ac_link) 2>&5
d7040cdb
SE
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10362 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10363 (./conftest; exit; ) >&5 2>/dev/null
10364 lt_status=$?
10365 case x$lt_status in
10366 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10367 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10368 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10369 esac
10370 else :
10371 # compilation failed
10372 lt_cv_dlopen_self_static=no
10373 fi
10374fi
10375rm -fr conftest*
10376
d7040cdb
SE
10377
10378fi
ce2cded5
L
10379echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10380echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10381 fi
10382
10383 CPPFLAGS="$save_CPPFLAGS"
10384 LDFLAGS="$save_LDFLAGS"
10385 LIBS="$save_LIBS"
10386 ;;
10387 esac
10388
10389 case $lt_cv_dlopen_self in
10390 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10391 *) enable_dlopen_self=unknown ;;
10392 esac
10393
10394 case $lt_cv_dlopen_self_static in
10395 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10396 *) enable_dlopen_self_static=unknown ;;
10397 esac
d7040cdb
SE
10398fi
10399
ce2cded5
L
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416striplib=
10417old_striplib=
10418echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10419echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10420if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10421 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10422 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10423 echo "$as_me:$LINENO: result: yes" >&5
10424echo "${ECHO_T}yes" >&6
d7040cdb 10425else
ce2cded5
L
10426# FIXME - insert some real tests, host_os isn't really good enough
10427 case $host_os in
10428 darwin*)
10429 if test -n "$STRIP" ; then
10430 striplib="$STRIP -x"
10431 old_striplib="$STRIP -S"
10432 echo "$as_me:$LINENO: result: yes" >&5
10433echo "${ECHO_T}yes" >&6
10434 else
10435 echo "$as_me:$LINENO: result: no" >&5
10436echo "${ECHO_T}no" >&6
10437 fi
10438 ;;
10439 *)
10440 echo "$as_me:$LINENO: result: no" >&5
10441echo "${ECHO_T}no" >&6
10442 ;;
10443 esac
10444fi
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457 # Report which library types will actually be built
10458 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10459echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10460 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10461echo "${ECHO_T}$can_build_shared" >&6
10462
10463 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10464echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10465 test "$can_build_shared" = "no" && enable_shared=no
10466
10467 # On AIX, shared libraries and static libraries use the same namespace, and
10468 # are all built from PIC.
10469 case $host_os in
10470 aix3*)
10471 test "$enable_shared" = yes && enable_static=no
10472 if test -n "$RANLIB"; then
10473 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10474 postinstall_cmds='$RANLIB $lib'
10475 fi
10476 ;;
10477
50e7d84b 10478 aix[4-9]*)
ce2cded5
L
10479 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10480 test "$enable_shared" = yes && enable_static=no
10481 fi
10482 ;;
10483 esac
10484 echo "$as_me:$LINENO: result: $enable_shared" >&5
10485echo "${ECHO_T}$enable_shared" >&6
10486
10487 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10488echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10489 # Make sure either enable_shared or enable_static is yes.
10490 test "$enable_shared" = yes || enable_static=yes
10491 echo "$as_me:$LINENO: result: $enable_static" >&5
10492echo "${ECHO_T}$enable_static" >&6
10493
10494
10495
d7040cdb
SE
10496
10497fi
d7040cdb
SE
10498ac_ext=c
10499ac_cpp='$CPP $CPPFLAGS'
10500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10502ac_compiler_gnu=$ac_cv_c_compiler_gnu
10503
ce2cded5 10504CC="$lt_save_CC"
67310ccd 10505
67310ccd
AM
10506
10507
d7040cdb
SE
10508
10509
d7040cdb 10510
d7040cdb 10511
d7040cdb 10512
ce2cded5
L
10513
10514
10515
10516
10517
10518 ac_config_commands="$ac_config_commands libtool"
10519
10520
10521
10522
10523# Only expand once:
10524
d7040cdb
SE
10525
10526
19aec961 10527ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
d7040cdb
SE
10528# If we haven't got the data from the intl directory,
10529# assume NLS is disabled.
10530USE_NLS=no
10531LIBINTL=
10532LIBINTL_DEP=
10533INCINTL=
10534XGETTEXT=
10535GMSGFMT=
10536POSUB=
10537
10538if test -f ../intl/config.intl; then
10539 . ../intl/config.intl
10540fi
10541echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10542echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10543if test x"$USE_NLS" != xyes; then
10544 echo "$as_me:$LINENO: result: no" >&5
10545echo "${ECHO_T}no" >&6
10546else
10547 echo "$as_me:$LINENO: result: yes" >&5
10548echo "${ECHO_T}yes" >&6
10549
10550cat >>confdefs.h <<\_ACEOF
10551#define ENABLE_NLS 1
10552_ACEOF
10553
10554
10555 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10556echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10557 # Look for .po and .gmo files in the source directory.
10558 CATALOGS=
10559 XLINGUAS=
10560 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10561 # If there aren't any .gmo files the shell will give us the
10562 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10563 # weeded out.
10564 case "$cat" in *\**)
10565 continue;;
10566 esac
10567 # The quadruple backslash is collapsed to a double backslash
10568 # by the backticks, then collapsed again by the double quotes,
10569 # leaving us with one backslash in the sed expression (right
10570 # before the dot that mustn't act as a wildcard).
10571 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10572 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10573 # The user is allowed to set LINGUAS to a list of languages to
10574 # install catalogs for. If it's empty that means "all of them."
10575 if test "x$LINGUAS" = x; then
10576 CATALOGS="$CATALOGS $cat"
10577 XLINGUAS="$XLINGUAS $lang"
10578 else
10579 case "$LINGUAS" in *$lang*)
10580 CATALOGS="$CATALOGS $cat"
10581 XLINGUAS="$XLINGUAS $lang"
10582 ;;
10583 esac
10584 fi
10585 done
10586 LINGUAS="$XLINGUAS"
10587 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10588echo "${ECHO_T}$LINGUAS" >&6
10589
10590
10591 DATADIRNAME=share
10592
10593 INSTOBJEXT=.mo
10594
10595 GENCAT=gencat
10596
10597 CATOBJEXT=.gmo
10598
10599fi
10600
10601 MKINSTALLDIRS=
10602 if test -n "$ac_aux_dir"; then
10603 case "$ac_aux_dir" in
10604 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10605 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10606 esac
10607 fi
10608 if test -z "$MKINSTALLDIRS"; then
10609 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10610 fi
10611
10612
10613
10614 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10615echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10616 # Check whether --enable-nls or --disable-nls was given.
10617if test "${enable_nls+set}" = set; then
10618 enableval="$enable_nls"
10619 USE_NLS=$enableval
10620else
10621 USE_NLS=yes
10622fi;
10623 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10624echo "${ECHO_T}$USE_NLS" >&6
10625
10626
10627
10628
10629
10630
10631# Prepare PATH_SEPARATOR.
10632# The user is always right.
10633if test "${PATH_SEPARATOR+set}" != set; then
10634 echo "#! /bin/sh" >conf$$.sh
10635 echo "exit 0" >>conf$$.sh
10636 chmod +x conf$$.sh
10637 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10638 PATH_SEPARATOR=';'
10639 else
10640 PATH_SEPARATOR=:
10641 fi
10642 rm -f conf$$.sh
10643fi
10644
10645# Find out how to test for executable files. Don't use a zero-byte file,
10646# as systems may use methods other than mode bits to determine executability.
10647cat >conf$$.file <<_ASEOF
10648#! /bin/sh
10649exit 0
10650_ASEOF
10651chmod +x conf$$.file
10652if test -x conf$$.file >/dev/null 2>&1; then
10653 ac_executable_p="test -x"
10654else
10655 ac_executable_p="test -f"
10656fi
10657rm -f conf$$.file
10658
10659# Extract the first word of "msgfmt", so it can be a program name with args.
10660set dummy msgfmt; ac_word=$2
10661echo "$as_me:$LINENO: checking for $ac_word" >&5
10662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10663if test "${ac_cv_path_MSGFMT+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665else
10666 case "$MSGFMT" in
10667 [\\/]* | ?:[\\/]*)
10668 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10669 ;;
10670 *)
10671 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10672 for ac_dir in $PATH; do
10673 IFS="$ac_save_IFS"
10674 test -z "$ac_dir" && ac_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10677 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10678 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10679 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10680 break 2
10681 fi
10682 fi
10683 done
10684 done
10685 IFS="$ac_save_IFS"
10686 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10687 ;;
10688esac
10689fi
10690MSGFMT="$ac_cv_path_MSGFMT"
10691if test "$MSGFMT" != ":"; then
10692 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10693echo "${ECHO_T}$MSGFMT" >&6
10694else
10695 echo "$as_me:$LINENO: result: no" >&5
10696echo "${ECHO_T}no" >&6
10697fi
10698
10699 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10700set dummy gmsgfmt; ac_word=$2
10701echo "$as_me:$LINENO: checking for $ac_word" >&5
10702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10703if test "${ac_cv_path_GMSGFMT+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705else
10706 case $GMSGFMT in
10707 [\\/]* | ?:[\\/]*)
10708 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10709 ;;
10710 *)
10711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10718 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10720 break 2
10721 fi
10722done
10723done
10724
10725 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10726 ;;
10727esac
10728fi
10729GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 10730
d7040cdb
SE
10731if test -n "$GMSGFMT"; then
10732 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10733echo "${ECHO_T}$GMSGFMT" >&6
10734else
10735 echo "$as_me:$LINENO: result: no" >&5
10736echo "${ECHO_T}no" >&6
20e95c23 10737fi
42ecbf5e 10738
20e95c23 10739
252b5132 10740
d7040cdb
SE
10741# Prepare PATH_SEPARATOR.
10742# The user is always right.
10743if test "${PATH_SEPARATOR+set}" != set; then
10744 echo "#! /bin/sh" >conf$$.sh
10745 echo "exit 0" >>conf$$.sh
10746 chmod +x conf$$.sh
10747 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10748 PATH_SEPARATOR=';'
10749 else
10750 PATH_SEPARATOR=:
10751 fi
10752 rm -f conf$$.sh
20e95c23 10753fi
252b5132 10754
d7040cdb
SE
10755# Find out how to test for executable files. Don't use a zero-byte file,
10756# as systems may use methods other than mode bits to determine executability.
10757cat >conf$$.file <<_ASEOF
10758#! /bin/sh
10759exit 0
10760_ASEOF
10761chmod +x conf$$.file
10762if test -x conf$$.file >/dev/null 2>&1; then
10763 ac_executable_p="test -x"
20e95c23 10764else
d7040cdb
SE
10765 ac_executable_p="test -f"
10766fi
10767rm -f conf$$.file
20e95c23 10768
d7040cdb
SE
10769# Extract the first word of "xgettext", so it can be a program name with args.
10770set dummy xgettext; ac_word=$2
10771echo "$as_me:$LINENO: checking for $ac_word" >&5
10772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10773if test "${ac_cv_path_XGETTEXT+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10775else
d7040cdb
SE
10776 case "$XGETTEXT" in
10777 [\\/]* | ?:[\\/]*)
10778 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10779 ;;
10780 *)
10781 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10782 for ac_dir in $PATH; do
10783 IFS="$ac_save_IFS"
10784 test -z "$ac_dir" && ac_dir=.
10785 for ac_exec_ext in '' $ac_executable_extensions; do
10786 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10787 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10788 (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
10789 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10790 break 2
10791 fi
10792 fi
10793 done
10794 done
10795 IFS="$ac_save_IFS"
10796 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10797 ;;
10798esac
252b5132 10799fi
d7040cdb
SE
10800XGETTEXT="$ac_cv_path_XGETTEXT"
10801if test "$XGETTEXT" != ":"; then
10802 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10803echo "${ECHO_T}$XGETTEXT" >&6
d5fbea21 10804else
d7040cdb
SE
10805 echo "$as_me:$LINENO: result: no" >&5
10806echo "${ECHO_T}no" >&6
d5fbea21
DJ
10807fi
10808
d7040cdb 10809 rm -f messages.po
d5fbea21 10810
20e95c23 10811
d7040cdb
SE
10812# Prepare PATH_SEPARATOR.
10813# The user is always right.
10814if test "${PATH_SEPARATOR+set}" != set; then
10815 echo "#! /bin/sh" >conf$$.sh
10816 echo "exit 0" >>conf$$.sh
10817 chmod +x conf$$.sh
10818 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10819 PATH_SEPARATOR=';'
10820 else
10821 PATH_SEPARATOR=:
10822 fi
10823 rm -f conf$$.sh
10824fi
20e95c23 10825
d7040cdb
SE
10826# Find out how to test for executable files. Don't use a zero-byte file,
10827# as systems may use methods other than mode bits to determine executability.
10828cat >conf$$.file <<_ASEOF
10829#! /bin/sh
10830exit 0
10831_ASEOF
10832chmod +x conf$$.file
10833if test -x conf$$.file >/dev/null 2>&1; then
10834 ac_executable_p="test -x"
10835else
10836 ac_executable_p="test -f"
10837fi
10838rm -f conf$$.file
20e95c23 10839
d7040cdb
SE
10840# Extract the first word of "msgmerge", so it can be a program name with args.
10841set dummy msgmerge; ac_word=$2
10842echo "$as_me:$LINENO: checking for $ac_word" >&5
10843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10844if test "${ac_cv_path_MSGMERGE+set}" = set; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10846else
10847 case "$MSGMERGE" in
10848 [\\/]* | ?:[\\/]*)
10849 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10850 ;;
10851 *)
10852 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10853 for ac_dir in $PATH; do
10854 IFS="$ac_save_IFS"
10855 test -z "$ac_dir" && ac_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10858 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10859 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10860 break 2
10861 fi
10862 fi
10863 done
10864 done
10865 IFS="$ac_save_IFS"
10866 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10867 ;;
10868esac
10869fi
10870MSGMERGE="$ac_cv_path_MSGMERGE"
10871if test "$MSGMERGE" != ":"; then
10872 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10873echo "${ECHO_T}$MSGMERGE" >&6
10874else
10875 echo "$as_me:$LINENO: result: no" >&5
10876echo "${ECHO_T}no" >&6
10877fi
20e95c23
DJ
10878
10879
d7040cdb
SE
10880 if test "$GMSGFMT" != ":"; then
10881 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10882 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10883 : ;
10884 else
10885 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10886 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10887echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10888 GMSGFMT=":"
10889 fi
10890 fi
20e95c23 10891
d7040cdb
SE
10892 if test "$XGETTEXT" != ":"; then
10893 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10894 (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
10895 : ;
10896 else
10897 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10898echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10899 XGETTEXT=":"
10900 fi
10901 rm -f messages.po
20e95c23 10902 fi
42ecbf5e 10903
d7040cdb 10904 ac_config_commands="$ac_config_commands default-1"
252b5132 10905
42ecbf5e 10906
252b5132 10907
42ecbf5e
DJ
10908
10909
d7040cdb 10910for ac_prog in 'bison -y' byacc
20e95c23 10911do
d7040cdb
SE
10912 # Extract the first word of "$ac_prog", so it can be a program name with args.
10913set dummy $ac_prog; ac_word=$2
10914echo "$as_me:$LINENO: checking for $ac_word" >&5
10915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10916if test "${ac_cv_prog_YACC+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10918else
d7040cdb
SE
10919 if test -n "$YACC"; then
10920 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 10921else
d7040cdb
SE
10922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $PATH
10924do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10929 ac_cv_prog_YACC="$ac_prog"
10930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10932 fi
10933done
10934done
42ecbf5e 10935
42ecbf5e 10936fi
e5a52504 10937fi
d7040cdb
SE
10938YACC=$ac_cv_prog_YACC
10939if test -n "$YACC"; then
10940 echo "$as_me:$LINENO: result: $YACC" >&5
10941echo "${ECHO_T}$YACC" >&6
42ecbf5e 10942else
d7040cdb
SE
10943 echo "$as_me:$LINENO: result: no" >&5
10944echo "${ECHO_T}no" >&6
42ecbf5e 10945fi
252b5132 10946
d7040cdb 10947 test -n "$YACC" && break
42ecbf5e 10948done
d7040cdb 10949test -n "$YACC" || YACC="yacc"
d15b04bd 10950
d7040cdb
SE
10951for ac_prog in flex lex
10952do
10953 # Extract the first word of "$ac_prog", so it can be a program name with args.
10954set dummy $ac_prog; ac_word=$2
10955echo "$as_me:$LINENO: checking for $ac_word" >&5
10956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10957if test "${ac_cv_prog_LEX+set}" = set; then
20e95c23 10958 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 10959else
d7040cdb
SE
10960 if test -n "$LEX"; then
10961 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10962else
10963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964for as_dir in $PATH
10965do
10966 IFS=$as_save_IFS
10967 test -z "$as_dir" && as_dir=.
10968 for ac_exec_ext in '' $ac_executable_extensions; do
10969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10970 ac_cv_prog_LEX="$ac_prog"
10971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10972 break 2
10973 fi
10974done
10975done
10976
10977fi
10978fi
10979LEX=$ac_cv_prog_LEX
10980if test -n "$LEX"; then
10981 echo "$as_me:$LINENO: result: $LEX" >&5
10982echo "${ECHO_T}$LEX" >&6
10983else
10984 echo "$as_me:$LINENO: result: no" >&5
10985echo "${ECHO_T}no" >&6
d15b04bd 10986fi
e5a52504 10987
d7040cdb
SE
10988 test -n "$LEX" && break
10989done
10990test -n "$LEX" || LEX=":"
42ecbf5e 10991
d7040cdb
SE
10992if test -z "$LEXLIB"
10993then
10994 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10995echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10996if test "${ac_cv_lib_fl_yywrap+set}" = set; then
42ecbf5e
DJ
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10998else
d7040cdb
SE
10999 ac_check_lib_save_LIBS=$LIBS
11000LIBS="-lfl $LIBS"
11001cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
11002/* confdefs.h. */
11003_ACEOF
11004cat confdefs.h >>conftest.$ac_ext
11005cat >>conftest.$ac_ext <<_ACEOF
11006/* end confdefs.h. */
11007
d7040cdb
SE
11008/* Override any gcc2 internal prototype to avoid an error. */
11009#ifdef __cplusplus
11010extern "C"
11011#endif
11012/* We use char because int might match the return type of a gcc2
11013 builtin and then its argument prototype would still apply. */
11014char yywrap ();
42ecbf5e
DJ
11015int
11016main ()
11017{
d7040cdb 11018yywrap ();
42ecbf5e
DJ
11019 ;
11020 return 0;
11021}
11022_ACEOF
d7040cdb
SE
11023rm -f conftest.$ac_objext conftest$ac_exeext
11024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11025 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11026 ac_status=$?
11027 grep -v '^ *+' conftest.er1 >conftest.err
11028 rm -f conftest.er1
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
502bdb00
JW
11032 { ac_try='test -z "$ac_c_werror_flag"
11033 || test ! -s conftest.err'
42ecbf5e
DJ
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; } &&
d7040cdb 11039 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
d7040cdb 11045 ac_cv_lib_fl_yywrap=yes
42ecbf5e
DJ
11046else
11047 echo "$as_me: failed program was:" >&5
11048sed 's/^/| /' conftest.$ac_ext >&5
11049
d7040cdb 11050ac_cv_lib_fl_yywrap=no
42ecbf5e 11051fi
d7040cdb
SE
11052rm -f conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054LIBS=$ac_check_lib_save_LIBS
42ecbf5e 11055fi
d7040cdb
SE
11056echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11057echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11058if test $ac_cv_lib_fl_yywrap = yes; then
11059 LEXLIB="-lfl"
20e95c23 11060else
d7040cdb
SE
11061 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11062echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11063if test "${ac_cv_lib_l_yywrap+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11065else
d7040cdb
SE
11066 ac_check_lib_save_LIBS=$LIBS
11067LIBS="-ll $LIBS"
11068cat >conftest.$ac_ext <<_ACEOF
20e95c23 11069/* confdefs.h. */
42ecbf5e 11070_ACEOF
20e95c23
DJ
11071cat confdefs.h >>conftest.$ac_ext
11072cat >>conftest.$ac_ext <<_ACEOF
11073/* end confdefs.h. */
20e95c23 11074
d7040cdb
SE
11075/* Override any gcc2 internal prototype to avoid an error. */
11076#ifdef __cplusplus
11077extern "C"
11078#endif
11079/* We use char because int might match the return type of a gcc2
11080 builtin and then its argument prototype would still apply. */
11081char yywrap ();
20e95c23
DJ
11082int
11083main ()
11084{
d7040cdb
SE
11085yywrap ();
11086 ;
11087 return 0;
20e95c23
DJ
11088}
11089_ACEOF
d7040cdb 11090rm -f conftest.$ac_objext conftest$ac_exeext
20e95c23 11091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb 11092 (eval $ac_link) 2>conftest.er1
42ecbf5e 11093 ac_status=$?
d7040cdb
SE
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
42ecbf5e 11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag"
11100 || test ! -s conftest.err'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try='test -s conftest$ac_exeext'
20e95c23
DJ
11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
d7040cdb 11112 ac_cv_lib_l_yywrap=yes
252b5132 11113else
d7040cdb 11114 echo "$as_me: failed program was:" >&5
20e95c23
DJ
11115sed 's/^/| /' conftest.$ac_ext >&5
11116
d7040cdb 11117ac_cv_lib_l_yywrap=no
252b5132 11118fi
d7040cdb
SE
11119rm -f conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
11121LIBS=$ac_check_lib_save_LIBS
20e95c23 11122fi
d7040cdb
SE
11123echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11124echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11125if test $ac_cv_lib_l_yywrap = yes; then
11126 LEXLIB="-ll"
20e95c23 11127fi
20e95c23
DJ
11128
11129fi
11130
d7040cdb 11131fi
20e95c23 11132
d7040cdb
SE
11133if test "x$LEX" != "x:"; then
11134 echo "$as_me:$LINENO: checking lex output file root" >&5
11135echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11136if test "${ac_cv_prog_lex_root+set}" = set; then
42ecbf5e 11137 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11138else
d7040cdb
SE
11139 # The minimal lex program is just a single line: %%. But some broken lexes
11140# (Solaris, I think it was) want two %% lines, so accommodate them.
11141cat >conftest.l <<_ACEOF
11142%%
11143%%
42ecbf5e 11144_ACEOF
d7040cdb
SE
11145{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11146 (eval $LEX conftest.l) 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }
11150if test -f lex.yy.c; then
11151 ac_cv_prog_lex_root=lex.yy
11152elif test -f lexyy.c; then
11153 ac_cv_prog_lex_root=lexyy
11154else
11155 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11156echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11157 { (exit 1); exit 1; }; }
11158fi
11159fi
11160echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11161echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11162rm -f conftest.l
11163LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 11164
d7040cdb
SE
11165echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11166echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11167if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169else
11170 # POSIX says lex can declare yytext either as a pointer or an array; the
11171# default is implementation-dependent. Figure out which it is, since
11172# not all implementations provide the %pointer and %array declarations.
11173ac_cv_prog_lex_yytext_pointer=no
11174echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11175ac_save_LIBS=$LIBS
11176LIBS="$LIBS $LEXLIB"
11177cat >conftest.$ac_ext <<_ACEOF
11178`cat $LEX_OUTPUT_ROOT.c`
20e95c23 11179_ACEOF
d7040cdb
SE
11180rm -f conftest.$ac_objext conftest$ac_exeext
11181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11182 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
502bdb00
JW
11189 { ac_try='test -z "$ac_c_werror_flag"
11190 || test ! -s conftest.err'
42ecbf5e
DJ
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
d7040cdb 11196 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
d7040cdb
SE
11202 ac_cv_prog_lex_yytext_pointer=yes
11203else
11204 echo "$as_me: failed program was:" >&5
11205sed 's/^/| /' conftest.$ac_ext >&5
11206
11207fi
11208rm -f conftest.err conftest.$ac_objext \
11209 conftest$ac_exeext conftest.$ac_ext
11210LIBS=$ac_save_LIBS
11211rm -f "${LEX_OUTPUT_ROOT}.c"
11212
11213fi
11214echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11215echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11216if test $ac_cv_prog_lex_yytext_pointer = yes; then
11217
11218cat >>confdefs.h <<\_ACEOF
11219#define YYTEXT_POINTER 1
11220_ACEOF
11221
11222fi
11223
11224fi
11225if test "$LEX" = :; then
11226 LEX=${am_missing_run}flex
11227fi
11228
11229echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11230echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11231 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11232if test "${enable_maintainer_mode+set}" = set; then
11233 enableval="$enable_maintainer_mode"
11234 USE_MAINTAINER_MODE=$enableval
252b5132 11235else
d7040cdb
SE
11236 USE_MAINTAINER_MODE=no
11237fi;
11238 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11239echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11240
d7040cdb
SE
11241
11242if test $USE_MAINTAINER_MODE = yes; then
11243 MAINTAINER_MODE_TRUE=
11244 MAINTAINER_MODE_FALSE='#'
11245else
11246 MAINTAINER_MODE_TRUE='#'
11247 MAINTAINER_MODE_FALSE=
252b5132 11248fi
252b5132 11249
d7040cdb
SE
11250 MAINT=$MAINTAINER_MODE_TRUE
11251
11252
11253
11254
11255if false; then
11256 GENINSRC_NEVER_TRUE=
11257 GENINSRC_NEVER_FALSE='#'
11258else
11259 GENINSRC_NEVER_TRUE='#'
11260 GENINSRC_NEVER_FALSE=
252b5132
RH
11261fi
11262
d7040cdb
SE
11263
11264. ${srcdir}/configure.host
11265
11266
11267
11268
252b5132
RH
11269
11270
42ecbf5e
DJ
11271
11272
11273
11274
ebe1fac1 11275
a3ffa599
L
11276
11277
11278for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
252b5132 11279do
42ecbf5e
DJ
11280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11281if eval "test \"\${$as_ac_Header+set}\" = set"; then
11282 echo "$as_me:$LINENO: checking for $ac_header" >&5
11283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11284if eval "test \"\${$as_ac_Header+set}\" = set"; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286fi
11287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11289else
11290 # Is the header compilable?
11291echo "$as_me:$LINENO: checking $ac_header usability" >&5
11292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11293cat >conftest.$ac_ext <<_ACEOF
11294/* confdefs.h. */
11295_ACEOF
11296cat confdefs.h >>conftest.$ac_ext
11297cat >>conftest.$ac_ext <<_ACEOF
11298/* end confdefs.h. */
11299$ac_includes_default
11300#include <$ac_header>
11301_ACEOF
11302rm -f conftest.$ac_objext
11303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304 (eval $ac_compile) 2>conftest.er1
11305 ac_status=$?
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
502bdb00
JW
11311 { ac_try='test -z "$ac_c_werror_flag"
11312 || test ! -s conftest.err'
42ecbf5e
DJ
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest.$ac_objext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_header_compiler=yes
11325else
11326 echo "$as_me: failed program was:" >&5
11327sed 's/^/| /' conftest.$ac_ext >&5
11328
11329ac_header_compiler=no
11330fi
11331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11332echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11333echo "${ECHO_T}$ac_header_compiler" >&6
11334
11335# Is the header present?
11336echo "$as_me:$LINENO: checking $ac_header presence" >&5
11337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11338cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
11344#include <$ac_header>
11345_ACEOF
11346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11348 ac_status=$?
11349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } >/dev/null; then
11354 if test -s conftest.err; then
11355 ac_cpp_err=$ac_c_preproc_warn_flag
11356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11357 else
11358 ac_cpp_err=
11359 fi
252b5132 11360else
42ecbf5e 11361 ac_cpp_err=yes
252b5132 11362fi
42ecbf5e
DJ
11363if test -z "$ac_cpp_err"; then
11364 ac_header_preproc=yes
11365else
11366 echo "$as_me: failed program was:" >&5
11367sed 's/^/| /' conftest.$ac_ext >&5
11368
11369 ac_header_preproc=no
252b5132 11370fi
42ecbf5e
DJ
11371rm -f conftest.err conftest.$ac_ext
11372echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11373echo "${ECHO_T}$ac_header_preproc" >&6
11374
11375# So? What about this header?
11376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11377 yes:no: )
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11382 ac_header_preproc=yes
11383 ;;
11384 no:yes:* )
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11397 (
11398 cat <<\_ASBOX
11399## ------------------------------------------ ##
11400## Report this to the AC_PACKAGE_NAME lists. ##
11401## ------------------------------------------ ##
11402_ASBOX
11403 ) |
11404 sed "s/^/$as_me: WARNING: /" >&2
11405 ;;
11406esac
11407echo "$as_me:$LINENO: checking for $ac_header" >&5
11408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11409if eval "test \"\${$as_ac_Header+set}\" = set"; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11411else
42ecbf5e
DJ
11412 eval "$as_ac_Header=\$ac_header_preproc"
11413fi
11414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11416
252b5132 11417fi
42ecbf5e
DJ
11418if test `eval echo '${'$as_ac_Header'}'` = yes; then
11419 cat >>confdefs.h <<_ACEOF
11420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11421_ACEOF
11422
11423fi
11424
252b5132
RH
11425done
11426
42ecbf5e
DJ
11427
11428
11429
dc27aea4
AM
11430
11431
11432for ac_func in glob mkstemp realpath sbrk waitpid
252b5132 11433do
42ecbf5e
DJ
11434as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11435echo "$as_me:$LINENO: checking for $ac_func" >&5
11436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11437if eval "test \"\${$as_ac_var+set}\" = set"; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439else
11440 cat >conftest.$ac_ext <<_ACEOF
11441/* confdefs.h. */
11442_ACEOF
11443cat confdefs.h >>conftest.$ac_ext
11444cat >>conftest.$ac_ext <<_ACEOF
11445/* end confdefs.h. */
11446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11448#define $ac_func innocuous_$ac_func
11449
252b5132 11450/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11451 which can conflict with char $ac_func (); below.
11452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11453 <limits.h> exists even on freestanding compilers. */
11454
11455#ifdef __STDC__
11456# include <limits.h>
11457#else
11458# include <assert.h>
11459#endif
d15b04bd 11460
42ecbf5e 11461#undef $ac_func
d15b04bd 11462
42ecbf5e
DJ
11463/* Override any gcc2 internal prototype to avoid an error. */
11464#ifdef __cplusplus
11465extern "C"
11466{
11467#endif
11468/* We use char because int might match the return type of a gcc2
11469 builtin and then its argument prototype would still apply. */
11470char $ac_func ();
252b5132
RH
11471/* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11475choke me
11476#else
42ecbf5e
DJ
11477char (*f) () = $ac_func;
11478#endif
11479#ifdef __cplusplus
11480}
252b5132
RH
11481#endif
11482
42ecbf5e
DJ
11483int
11484main ()
11485{
11486return f != $ac_func;
11487 ;
11488 return 0;
11489}
11490_ACEOF
11491rm -f conftest.$ac_objext conftest$ac_exeext
11492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11493 (eval $ac_link) 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
502bdb00
JW
11500 { ac_try='test -z "$ac_c_werror_flag"
11501 || test ! -s conftest.err'
42ecbf5e
DJ
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; } &&
11507 { ac_try='test -s conftest$ac_exeext'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; }; then
11513 eval "$as_ac_var=yes"
11514else
11515 echo "$as_me: failed program was:" >&5
11516sed 's/^/| /' conftest.$ac_ext >&5
11517
11518eval "$as_ac_var=no"
11519fi
11520rm -f conftest.err conftest.$ac_objext \
11521 conftest$ac_exeext conftest.$ac_ext
11522fi
11523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11524echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11525if test `eval echo '${'$as_ac_var'}'` = yes; then
11526 cat >>confdefs.h <<_ACEOF
11527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11528_ACEOF
252b5132 11529
252b5132
RH
11530fi
11531done
11532
42ecbf5e
DJ
11533
11534
11535
11536
11537
252b5132 11538ac_header_dirent=no
42ecbf5e
DJ
11539for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11540 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11541echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11542echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11543if eval "test \"\${$as_ac_Header+set}\" = set"; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11545else
11546 cat >conftest.$ac_ext <<_ACEOF
11547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
252b5132
RH
11552#include <sys/types.h>
11553#include <$ac_hdr>
42ecbf5e
DJ
11554
11555int
11556main ()
11557{
11558if ((DIR *) 0)
11559return 0;
11560 ;
11561 return 0;
11562}
11563_ACEOF
11564rm -f conftest.$ac_objext
11565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11566 (eval $ac_compile) 2>conftest.er1
11567 ac_status=$?
11568 grep -v '^ *+' conftest.er1 >conftest.err
11569 rm -f conftest.er1
11570 cat conftest.err >&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } &&
502bdb00
JW
11573 { ac_try='test -z "$ac_c_werror_flag"
11574 || test ! -s conftest.err'
42ecbf5e
DJ
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } &&
11580 { ac_try='test -s conftest.$ac_objext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 eval "$as_ac_Header=yes"
11587else
11588 echo "$as_me: failed program was:" >&5
11589sed 's/^/| /' conftest.$ac_ext >&5
11590
11591eval "$as_ac_Header=no"
11592fi
11593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11594fi
11595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11597if test `eval echo '${'$as_ac_Header'}'` = yes; then
11598 cat >>confdefs.h <<_ACEOF
11599#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11600_ACEOF
11601
11602ac_header_dirent=$ac_hdr; break
d15b04bd 11603fi
42ecbf5e 11604
d15b04bd
L
11605done
11606# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11607if test $ac_header_dirent = dirent.h; then
42ecbf5e
DJ
11608 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11609echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11610if test "${ac_cv_search_opendir+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11612else
11613 ac_func_search_save_LIBS=$LIBS
11614ac_cv_search_opendir=no
11615cat >conftest.$ac_ext <<_ACEOF
11616/* confdefs.h. */
11617_ACEOF
11618cat confdefs.h >>conftest.$ac_ext
11619cat >>conftest.$ac_ext <<_ACEOF
11620/* end confdefs.h. */
11621
e5a52504 11622/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11623#ifdef __cplusplus
11624extern "C"
11625#endif
e5a52504 11626/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11627 builtin and then its argument prototype would still apply. */
11628char opendir ();
11629int
11630main ()
11631{
11632opendir ();
11633 ;
11634 return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext conftest$ac_exeext
11638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>conftest.er1
11640 ac_status=$?
11641 grep -v '^ *+' conftest.er1 >conftest.err
11642 rm -f conftest.er1
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
502bdb00
JW
11646 { ac_try='test -z "$ac_c_werror_flag"
11647 || test ! -s conftest.err'
42ecbf5e
DJ
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest$ac_exeext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 ac_cv_search_opendir="none required"
11660else
11661 echo "$as_me: failed program was:" >&5
11662sed 's/^/| /' conftest.$ac_ext >&5
11663
11664fi
11665rm -f conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667if test "$ac_cv_search_opendir" = no; then
11668 for ac_lib in dir; do
11669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11670 cat >conftest.$ac_ext <<_ACEOF
11671/* confdefs.h. */
11672_ACEOF
11673cat confdefs.h >>conftest.$ac_ext
11674cat >>conftest.$ac_ext <<_ACEOF
11675/* end confdefs.h. */
e5a52504 11676
42ecbf5e
DJ
11677/* Override any gcc2 internal prototype to avoid an error. */
11678#ifdef __cplusplus
11679extern "C"
11680#endif
11681/* We use char because int might match the return type of a gcc2
11682 builtin and then its argument prototype would still apply. */
11683char opendir ();
11684int
11685main ()
11686{
11687opendir ();
11688 ;
11689 return 0;
11690}
11691_ACEOF
11692rm -f conftest.$ac_objext conftest$ac_exeext
11693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694 (eval $ac_link) 2>conftest.er1
11695 ac_status=$?
11696 grep -v '^ *+' conftest.er1 >conftest.err
11697 rm -f conftest.er1
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } &&
502bdb00
JW
11701 { ac_try='test -z "$ac_c_werror_flag"
11702 || test ! -s conftest.err'
42ecbf5e
DJ
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11705 ac_status=$?
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; } &&
11708 { ac_try='test -s conftest$ac_exeext'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 ac_cv_search_opendir="-l$ac_lib"
11715break
11716else
11717 echo "$as_me: failed program was:" >&5
11718sed 's/^/| /' conftest.$ac_ext >&5
11719
11720fi
11721rm -f conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723 done
252b5132 11724fi
42ecbf5e
DJ
11725LIBS=$ac_func_search_save_LIBS
11726fi
11727echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11728echo "${ECHO_T}$ac_cv_search_opendir" >&6
11729if test "$ac_cv_search_opendir" != no; then
11730 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11731
d15b04bd 11732fi
252b5132
RH
11733
11734else
42ecbf5e
DJ
11735 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11736echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11737if test "${ac_cv_search_opendir+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11739else
42ecbf5e
DJ
11740 ac_func_search_save_LIBS=$LIBS
11741ac_cv_search_opendir=no
11742cat >conftest.$ac_ext <<_ACEOF
11743/* confdefs.h. */
11744_ACEOF
11745cat confdefs.h >>conftest.$ac_ext
11746cat >>conftest.$ac_ext <<_ACEOF
11747/* end confdefs.h. */
11748
252b5132 11749/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11750#ifdef __cplusplus
11751extern "C"
11752#endif
252b5132 11753/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11754 builtin and then its argument prototype would still apply. */
11755char opendir ();
11756int
11757main ()
11758{
11759opendir ();
11760 ;
11761 return 0;
11762}
11763_ACEOF
11764rm -f conftest.$ac_objext conftest$ac_exeext
11765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11766 (eval $ac_link) 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
502bdb00
JW
11773 { ac_try='test -z "$ac_c_werror_flag"
11774 || test ! -s conftest.err'
42ecbf5e
DJ
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 ac_cv_search_opendir="none required"
11787else
11788 echo "$as_me: failed program was:" >&5
11789sed 's/^/| /' conftest.$ac_ext >&5
11790
11791fi
11792rm -f conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11794if test "$ac_cv_search_opendir" = no; then
11795 for ac_lib in x; do
11796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11797 cat >conftest.$ac_ext <<_ACEOF
11798/* confdefs.h. */
11799_ACEOF
11800cat confdefs.h >>conftest.$ac_ext
11801cat >>conftest.$ac_ext <<_ACEOF
11802/* end confdefs.h. */
252b5132 11803
42ecbf5e
DJ
11804/* Override any gcc2 internal prototype to avoid an error. */
11805#ifdef __cplusplus
11806extern "C"
11807#endif
11808/* We use char because int might match the return type of a gcc2
11809 builtin and then its argument prototype would still apply. */
11810char opendir ();
11811int
11812main ()
11813{
11814opendir ();
11815 ;
11816 return 0;
11817}
11818_ACEOF
11819rm -f conftest.$ac_objext conftest$ac_exeext
11820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11821 (eval $ac_link) 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
502bdb00
JW
11828 { ac_try='test -z "$ac_c_werror_flag"
11829 || test ! -s conftest.err'
42ecbf5e
DJ
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; } &&
11835 { ac_try='test -s conftest$ac_exeext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 ac_cv_search_opendir="-l$ac_lib"
11842break
11843else
11844 echo "$as_me: failed program was:" >&5
11845sed 's/^/| /' conftest.$ac_ext >&5
11846
11847fi
11848rm -f conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11850 done
252b5132 11851fi
42ecbf5e 11852LIBS=$ac_func_search_save_LIBS
252b5132 11853fi
42ecbf5e
DJ
11854echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11855echo "${ECHO_T}$ac_cv_search_opendir" >&6
11856if test "$ac_cv_search_opendir" != no; then
11857 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11858
d15b04bd 11859fi
252b5132
RH
11860
11861fi
11862
11863
42ecbf5e
DJ
11864echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11865echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11866if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
34875e64 11868else
42ecbf5e
DJ
11869 cat >conftest.$ac_ext <<_ACEOF
11870/* confdefs.h. */
11871_ACEOF
11872cat confdefs.h >>conftest.$ac_ext
11873cat >>conftest.$ac_ext <<_ACEOF
11874/* end confdefs.h. */
34875e64 11875#include <unistd.h>
42ecbf5e
DJ
11876int
11877main ()
11878{
34875e64 11879extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
11880 ;
11881 return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext
11885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11886 (eval $ac_compile) 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
502bdb00
JW
11893 { ac_try='test -z "$ac_c_werror_flag"
11894 || test ! -s conftest.err'
42ecbf5e
DJ
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; } &&
11900 { ac_try='test -s conftest.$ac_objext'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
34875e64
NC
11906 ld_cv_decl_getopt_unistd_h=yes
11907else
42ecbf5e
DJ
11908 echo "$as_me: failed program was:" >&5
11909sed 's/^/| /' conftest.$ac_ext >&5
11910
11911ld_cv_decl_getopt_unistd_h=no
34875e64 11912fi
42ecbf5e 11913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11914fi
11915
42ecbf5e
DJ
11916echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11917echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
34875e64 11918if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
11919
11920cat >>confdefs.h <<\_ACEOF
34875e64 11921#define HAVE_DECL_GETOPT 1
42ecbf5e 11922_ACEOF
34875e64
NC
11923
11924fi
42ecbf5e 11925
252b5132
RH
11926
11927case "${host}" in
a8100d5b 11928*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
11929
11930cat >>confdefs.h <<\_ACEOF
252b5132 11931#define USE_BINARY_FOPEN 1
42ecbf5e 11932_ACEOF
252b5132
RH
11933 ;;
11934esac
11935
502bdb00
JW
11936echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11937echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11938if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 11939 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11940else
42ecbf5e
DJ
11941 cat >conftest.$ac_ext <<_ACEOF
11942/* confdefs.h. */
11943_ACEOF
11944cat confdefs.h >>conftest.$ac_ext
11945cat >>conftest.$ac_ext <<_ACEOF
11946/* end confdefs.h. */
502bdb00 11947$ac_includes_default
42ecbf5e
DJ
11948int
11949main ()
11950{
502bdb00
JW
11951#ifndef strstr
11952 char *p = (char *) strstr;
11953#endif
11954
42ecbf5e
DJ
11955 ;
11956 return 0;
11957}
11958_ACEOF
11959rm -f conftest.$ac_objext
11960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11961 (eval $ac_compile) 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
502bdb00
JW
11968 { ac_try='test -z "$ac_c_werror_flag"
11969 || test ! -s conftest.err'
42ecbf5e
DJ
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest.$ac_objext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
502bdb00 11981 ac_cv_have_decl_strstr=yes
252b5132 11982else
42ecbf5e
DJ
11983 echo "$as_me: failed program was:" >&5
11984sed 's/^/| /' conftest.$ac_ext >&5
11985
502bdb00 11986ac_cv_have_decl_strstr=no
252b5132 11987fi
42ecbf5e 11988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11989fi
502bdb00
JW
11990echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11991echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11992if test $ac_cv_have_decl_strstr = yes; then
252b5132 11993
502bdb00
JW
11994cat >>confdefs.h <<_ACEOF
11995#define HAVE_DECL_STRSTR 1
11996_ACEOF
42ecbf5e 11997
502bdb00
JW
11998
11999else
12000 cat >>confdefs.h <<_ACEOF
12001#define HAVE_DECL_STRSTR 0
42ecbf5e 12002_ACEOF
252b5132 12003
252b5132 12004
502bdb00
JW
12005fi
12006echo "$as_me:$LINENO: checking whether free is declared" >&5
12007echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12008if test "${ac_cv_have_decl_free+set}" = set; then
42ecbf5e 12009 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12010else
42ecbf5e
DJ
12011 cat >conftest.$ac_ext <<_ACEOF
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
502bdb00 12017$ac_includes_default
42ecbf5e
DJ
12018int
12019main ()
12020{
502bdb00
JW
12021#ifndef free
12022 char *p = (char *) free;
12023#endif
12024
42ecbf5e
DJ
12025 ;
12026 return 0;
12027}
12028_ACEOF
12029rm -f conftest.$ac_objext
12030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031 (eval $ac_compile) 2>conftest.er1
12032 ac_status=$?
12033 grep -v '^ *+' conftest.er1 >conftest.err
12034 rm -f conftest.er1
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
502bdb00
JW
12038 { ac_try='test -z "$ac_c_werror_flag"
12039 || test ! -s conftest.err'
42ecbf5e
DJ
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest.$ac_objext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
502bdb00 12051 ac_cv_have_decl_free=yes
252b5132 12052else
42ecbf5e
DJ
12053 echo "$as_me: failed program was:" >&5
12054sed 's/^/| /' conftest.$ac_ext >&5
12055
502bdb00 12056ac_cv_have_decl_free=no
252b5132 12057fi
42ecbf5e 12058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12059fi
502bdb00
JW
12060echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12061echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12062if test $ac_cv_have_decl_free = yes; then
252b5132 12063
502bdb00
JW
12064cat >>confdefs.h <<_ACEOF
12065#define HAVE_DECL_FREE 1
12066_ACEOF
42ecbf5e 12067
502bdb00
JW
12068
12069else
12070 cat >>confdefs.h <<_ACEOF
12071#define HAVE_DECL_FREE 0
42ecbf5e 12072_ACEOF
252b5132 12073
252b5132 12074
502bdb00
JW
12075fi
12076echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12077echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12078if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 12079 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12080else
42ecbf5e
DJ
12081 cat >conftest.$ac_ext <<_ACEOF
12082/* confdefs.h. */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h. */
502bdb00 12087$ac_includes_default
42ecbf5e
DJ
12088int
12089main ()
12090{
502bdb00
JW
12091#ifndef sbrk
12092 char *p = (char *) sbrk;
12093#endif
12094
42ecbf5e
DJ
12095 ;
12096 return 0;
12097}
12098_ACEOF
12099rm -f conftest.$ac_objext
12100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101 (eval $ac_compile) 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
502bdb00
JW
12108 { ac_try='test -z "$ac_c_werror_flag"
12109 || test ! -s conftest.err'
42ecbf5e
DJ
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; } &&
12115 { ac_try='test -s conftest.$ac_objext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
502bdb00 12121 ac_cv_have_decl_sbrk=yes
252b5132 12122else
42ecbf5e
DJ
12123 echo "$as_me: failed program was:" >&5
12124sed 's/^/| /' conftest.$ac_ext >&5
12125
502bdb00 12126ac_cv_have_decl_sbrk=no
252b5132 12127fi
42ecbf5e 12128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12129fi
502bdb00
JW
12130echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12131echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12132if test $ac_cv_have_decl_sbrk = yes; then
12133
12134cat >>confdefs.h <<_ACEOF
12135#define HAVE_DECL_SBRK 1
12136_ACEOF
252b5132 12137
42ecbf5e 12138
502bdb00
JW
12139else
12140 cat >>confdefs.h <<_ACEOF
12141#define HAVE_DECL_SBRK 0
42ecbf5e 12142_ACEOF
252b5132 12143
252b5132 12144
502bdb00
JW
12145fi
12146echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12147echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12148if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 12149 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12150else
42ecbf5e
DJ
12151 cat >conftest.$ac_ext <<_ACEOF
12152/* confdefs.h. */
12153_ACEOF
12154cat confdefs.h >>conftest.$ac_ext
12155cat >>conftest.$ac_ext <<_ACEOF
12156/* end confdefs.h. */
502bdb00 12157$ac_includes_default
42ecbf5e
DJ
12158int
12159main ()
12160{
502bdb00
JW
12161#ifndef getenv
12162 char *p = (char *) getenv;
12163#endif
12164
42ecbf5e
DJ
12165 ;
12166 return 0;
12167}
12168_ACEOF
12169rm -f conftest.$ac_objext
12170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12171 (eval $ac_compile) 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
502bdb00
JW
12178 { ac_try='test -z "$ac_c_werror_flag"
12179 || test ! -s conftest.err'
42ecbf5e
DJ
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest.$ac_objext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
502bdb00 12191 ac_cv_have_decl_getenv=yes
252b5132 12192else
42ecbf5e
DJ
12193 echo "$as_me: failed program was:" >&5
12194sed 's/^/| /' conftest.$ac_ext >&5
12195
502bdb00 12196ac_cv_have_decl_getenv=no
252b5132 12197fi
42ecbf5e 12198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12199fi
502bdb00
JW
12200echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12201echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12202if test $ac_cv_have_decl_getenv = yes; then
252b5132 12203
502bdb00
JW
12204cat >>confdefs.h <<_ACEOF
12205#define HAVE_DECL_GETENV 1
12206_ACEOF
42ecbf5e 12207
502bdb00
JW
12208
12209else
12210 cat >>confdefs.h <<_ACEOF
12211#define HAVE_DECL_GETENV 0
42ecbf5e 12212_ACEOF
252b5132 12213
252b5132 12214
502bdb00
JW
12215fi
12216echo "$as_me:$LINENO: checking whether environ is declared" >&5
12217echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12218if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 12219 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12220else
42ecbf5e
DJ
12221 cat >conftest.$ac_ext <<_ACEOF
12222/* confdefs.h. */
12223_ACEOF
12224cat confdefs.h >>conftest.$ac_ext
12225cat >>conftest.$ac_ext <<_ACEOF
12226/* end confdefs.h. */
502bdb00 12227$ac_includes_default
42ecbf5e
DJ
12228int
12229main ()
12230{
502bdb00
JW
12231#ifndef environ
12232 char *p = (char *) environ;
12233#endif
12234
42ecbf5e
DJ
12235 ;
12236 return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext
12240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12241 (eval $ac_compile) 2>conftest.er1
12242 ac_status=$?
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
502bdb00
JW
12248 { ac_try='test -z "$ac_c_werror_flag"
12249 || test ! -s conftest.err'
42ecbf5e
DJ
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest.$ac_objext'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
502bdb00 12261 ac_cv_have_decl_environ=yes
252b5132 12262else
42ecbf5e
DJ
12263 echo "$as_me: failed program was:" >&5
12264sed 's/^/| /' conftest.$ac_ext >&5
12265
502bdb00 12266ac_cv_have_decl_environ=no
252b5132 12267fi
42ecbf5e 12268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12269fi
502bdb00
JW
12270echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12271echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12272if test $ac_cv_have_decl_environ = yes; then
252b5132 12273
502bdb00
JW
12274cat >>confdefs.h <<_ACEOF
12275#define HAVE_DECL_ENVIRON 1
12276_ACEOF
42ecbf5e 12277
502bdb00
JW
12278
12279else
12280 cat >>confdefs.h <<_ACEOF
12281#define HAVE_DECL_ENVIRON 0
42ecbf5e 12282_ACEOF
252b5132 12283
502bdb00 12284
252b5132
RH
12285fi
12286
12287
502bdb00 12288
597e2591
ILT
12289# When converting linker scripts into strings for use in emulation
12290# files, use astring.sed if the compiler supports ANSI string
12291# concatenation, or ostring.sed otherwise. This is to support the
12292# broken Microsoft MSVC compiler, which limits the length of string
12293# constants, while still supporting pre-ANSI compilers which do not
12294# support string concatenation.
42ecbf5e
DJ
12295echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12296echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12297if test "${ld_cv_string_concatenation+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299else
12300 cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
597e2591 12306
42ecbf5e
DJ
12307int
12308main ()
12309{
597e2591 12310char *a = "a" "a";
42ecbf5e
DJ
12311 ;
12312 return 0;
12313}
12314_ACEOF
12315rm -f conftest.$ac_objext
12316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12317 (eval $ac_compile) 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
502bdb00
JW
12324 { ac_try='test -z "$ac_c_werror_flag"
12325 || test ! -s conftest.err'
42ecbf5e
DJ
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try='test -s conftest.$ac_objext'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
e4dabd0e 12337 ld_cv_string_concatenation=yes
597e2591 12338else
42ecbf5e
DJ
12339 echo "$as_me: failed program was:" >&5
12340sed 's/^/| /' conftest.$ac_ext >&5
12341
12342ld_cv_string_concatenation=no
597e2591 12343fi
42ecbf5e 12344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
597e2591
ILT
12345fi
12346
42ecbf5e
DJ
12347echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12348echo "${ECHO_T}$ld_cv_string_concatenation" >&6
e4dabd0e 12349if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
12350 STRINGIFY=astring.sed
12351else
12352 STRINGIFY=ostring.sed
12353fi
12354
12355
252b5132
RH
12356# target-specific stuff:
12357
12358all_targets=
12359EMUL=
12360all_emuls=
12361all_emul_extras=
ba2be581 12362all_libpath=
252b5132
RH
12363
12364rm -f tdirs
12365
12366for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12367do
12368 if test "$targ_alias" = "all"; then
12369 all_targets=true
12370 else
12371 # Canonicalize the secondary target names.
42ecbf5e 12372 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
12373 if test -n "$result"; then
12374 targ=$result
12375 else
12376 targ=$targ_alias
12377 fi
12378
12379 . ${srcdir}/configure.tgt
12380
12381 if test "$targ" = "$target"; then
12382 EMUL=$targ_emul
12383 fi
12384
314e9a4e
L
12385 if test x${want64} = xfalse; then
12386 . ${srcdir}/../bfd/config.bfd
12387 fi
12388
534d3119
L
12389 if test x${want64} = xtrue; then
12390 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12391 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12392 fi
12393
3336653a 12394 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132
RH
12395 case " $all_emuls " in
12396 *" e${i}.o "*) ;;
12397 *)
12398 all_emuls="$all_emuls e${i}.o"
12399 eval result=\$tdir_$i
12400 test -z "$result" && result=$targ_alias
12401 echo tdir_$i=$result >> tdirs
12402 ;;
d15b04bd
L
12403 esac
12404 done
3336653a 12405
42ecbf5e
DJ
12406 for i in $targ_emul $targ_extra_libpath; do
12407 case " $all_libpath " in
12408 *" ${i} "*) ;;
12409 *)
12410 if test -z "$all_libpath"; then
12411 all_libpath=${i}
12412 else
12413 all_libpath="$all_libpath ${i}"
12414 fi
12415 ;;
12416 esac
12417 done
12418
12419 for i in $targ_extra_ofiles; do
12420 case " $all_emul_extras " in
12421 *" ${i} "*) ;;
12422 *)
12423 all_emul_extras="$all_emul_extras ${i}"
12424 ;;
12425 esac
12426 done
12427 fi
12428done
12429
12430
12431
12432TDIRS=tdirs
12433
12434
12435if test x${all_targets} = xtrue; then
314e9a4e
L
12436 if test x${want64} = xfalse; then
12437 echo "$as_me:$LINENO: checking for long" >&5
12438echo $ECHO_N "checking for long... $ECHO_C" >&6
12439if test "${ac_cv_type_long+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441else
12442 cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448$ac_includes_default
12449int
12450main ()
12451{
12452if ((long *) 0)
12453 return 0;
12454if (sizeof (long))
12455 return 0;
12456 ;
12457 return 0;
12458}
12459_ACEOF
12460rm -f conftest.$ac_objext
12461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>conftest.er1
12463 ac_status=$?
12464 grep -v '^ *+' conftest.er1 >conftest.err
12465 rm -f conftest.er1
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag"
12470 || test ! -s conftest.err'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest.$ac_objext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ac_cv_type_long=yes
12483else
12484 echo "$as_me: failed program was:" >&5
12485sed 's/^/| /' conftest.$ac_ext >&5
12486
12487ac_cv_type_long=no
12488fi
12489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12490fi
12491echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12492echo "${ECHO_T}$ac_cv_type_long" >&6
12493
12494echo "$as_me:$LINENO: checking size of long" >&5
12495echo $ECHO_N "checking size of long... $ECHO_C" >&6
12496if test "${ac_cv_sizeof_long+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498else
12499 if test "$ac_cv_type_long" = yes; then
12500 # The cast to unsigned long works around a bug in the HP C Compiler
12501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12503 # This bug is HP SR number 8606223364.
12504 if test "$cross_compiling" = yes; then
12505 # Depending upon the size, compute the lo and hi bounds.
12506cat >conftest.$ac_ext <<_ACEOF
12507/* confdefs.h. */
12508_ACEOF
12509cat confdefs.h >>conftest.$ac_ext
12510cat >>conftest.$ac_ext <<_ACEOF
12511/* end confdefs.h. */
12512$ac_includes_default
12513int
12514main ()
12515{
12516static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12517test_array [0] = 0
12518
12519 ;
12520 return 0;
12521}
12522_ACEOF
12523rm -f conftest.$ac_objext
12524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12525 (eval $ac_compile) 2>conftest.er1
12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest.$ac_objext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 ac_lo=0 ac_mid=0
12546 while :; do
12547 cat >conftest.$ac_ext <<_ACEOF
12548/* confdefs.h. */
12549_ACEOF
12550cat confdefs.h >>conftest.$ac_ext
12551cat >>conftest.$ac_ext <<_ACEOF
12552/* end confdefs.h. */
12553$ac_includes_default
12554int
12555main ()
12556{
12557static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12558test_array [0] = 0
12559
12560 ;
12561 return 0;
12562}
12563_ACEOF
12564rm -f conftest.$ac_objext
12565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12566 (eval $ac_compile) 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } &&
12573 { ac_try='test -z "$ac_c_werror_flag"
12574 || test ! -s conftest.err'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest.$ac_objext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 ac_hi=$ac_mid; break
12587else
12588 echo "$as_me: failed program was:" >&5
12589sed 's/^/| /' conftest.$ac_ext >&5
12590
12591ac_lo=`expr $ac_mid + 1`
12592 if test $ac_lo -le $ac_mid; then
12593 ac_lo= ac_hi=
12594 break
12595 fi
12596 ac_mid=`expr 2 '*' $ac_mid + 1`
12597fi
12598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12599 done
12600else
12601 echo "$as_me: failed program was:" >&5
12602sed 's/^/| /' conftest.$ac_ext >&5
12603
12604cat >conftest.$ac_ext <<_ACEOF
12605/* confdefs.h. */
12606_ACEOF
12607cat confdefs.h >>conftest.$ac_ext
12608cat >>conftest.$ac_ext <<_ACEOF
12609/* end confdefs.h. */
12610$ac_includes_default
12611int
12612main ()
12613{
12614static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12615test_array [0] = 0
12616
12617 ;
12618 return 0;
12619}
12620_ACEOF
12621rm -f conftest.$ac_objext
12622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12623 (eval $ac_compile) 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest.$ac_objext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_hi=-1 ac_mid=-1
12644 while :; do
12645 cat >conftest.$ac_ext <<_ACEOF
12646/* confdefs.h. */
12647_ACEOF
12648cat confdefs.h >>conftest.$ac_ext
12649cat >>conftest.$ac_ext <<_ACEOF
12650/* end confdefs.h. */
12651$ac_includes_default
12652int
12653main ()
12654{
12655static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12656test_array [0] = 0
12657
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext
12663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12664 (eval $ac_compile) 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -z "$ac_c_werror_flag"
12672 || test ! -s conftest.err'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try='test -s conftest.$ac_objext'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 ac_lo=$ac_mid; break
12685else
12686 echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
12689ac_hi=`expr '(' $ac_mid ')' - 1`
12690 if test $ac_mid -le $ac_hi; then
12691 ac_lo= ac_hi=
12692 break
12693 fi
12694 ac_mid=`expr 2 '*' $ac_mid`
12695fi
12696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12697 done
12698else
12699 echo "$as_me: failed program was:" >&5
12700sed 's/^/| /' conftest.$ac_ext >&5
12701
12702ac_lo= ac_hi=
12703fi
12704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12705fi
12706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12707# Binary search between lo and hi bounds.
12708while test "x$ac_lo" != "x$ac_hi"; do
12709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12710 cat >conftest.$ac_ext <<_ACEOF
12711/* confdefs.h. */
12712_ACEOF
12713cat confdefs.h >>conftest.$ac_ext
12714cat >>conftest.$ac_ext <<_ACEOF
12715/* end confdefs.h. */
12716$ac_includes_default
12717int
12718main ()
12719{
12720static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12721test_array [0] = 0
12722
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest.$ac_objext
12728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag"
12737 || test ! -s conftest.err'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_hi=$ac_mid
12750else
12751 echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
12754ac_lo=`expr '(' $ac_mid ')' + 1`
12755fi
12756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12757done
12758case $ac_lo in
12759?*) ac_cv_sizeof_long=$ac_lo;;
12760'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12761See \`config.log' for more details." >&5
12762echo "$as_me: error: cannot compute sizeof (long), 77
12763See \`config.log' for more details." >&2;}
12764 { (exit 1); exit 1; }; } ;;
12765esac
12766else
12767 if test "$cross_compiling" = yes; then
12768 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12769See \`config.log' for more details." >&5
12770echo "$as_me: error: cannot run test program while cross compiling
12771See \`config.log' for more details." >&2;}
12772 { (exit 1); exit 1; }; }
12773else
12774 cat >conftest.$ac_ext <<_ACEOF
12775/* confdefs.h. */
12776_ACEOF
12777cat confdefs.h >>conftest.$ac_ext
12778cat >>conftest.$ac_ext <<_ACEOF
12779/* end confdefs.h. */
12780$ac_includes_default
12781long longval () { return (long) (sizeof (long)); }
12782unsigned long ulongval () { return (long) (sizeof (long)); }
12783#include <stdio.h>
12784#include <stdlib.h>
12785int
12786main ()
12787{
12788
12789 FILE *f = fopen ("conftest.val", "w");
12790 if (! f)
12791 exit (1);
12792 if (((long) (sizeof (long))) < 0)
12793 {
12794 long i = longval ();
12795 if (i != ((long) (sizeof (long))))
12796 exit (1);
12797 fprintf (f, "%ld\n", i);
12798 }
12799 else
12800 {
12801 unsigned long i = ulongval ();
12802 if (i != ((long) (sizeof (long))))
12803 exit (1);
12804 fprintf (f, "%lu\n", i);
12805 }
12806 exit (ferror (f) || fclose (f) != 0);
12807
12808 ;
12809 return 0;
12810}
12811_ACEOF
12812rm -f conftest$ac_exeext
12813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12814 (eval $ac_link) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_cv_sizeof_long=`cat conftest.val`
12824else
12825 echo "$as_me: program exited with status $ac_status" >&5
12826echo "$as_me: failed program was:" >&5
12827sed 's/^/| /' conftest.$ac_ext >&5
12828
12829( exit $ac_status )
12830{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12831See \`config.log' for more details." >&5
12832echo "$as_me: error: cannot compute sizeof (long), 77
12833See \`config.log' for more details." >&2;}
12834 { (exit 1); exit 1; }; }
12835fi
12836rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12837fi
12838fi
12839rm -f conftest.val
12840else
12841 ac_cv_sizeof_long=0
12842fi
12843fi
12844echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12845echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12846cat >>confdefs.h <<_ACEOF
12847#define SIZEOF_LONG $ac_cv_sizeof_long
12848_ACEOF
12849
12850
12851 if test "x${ac_cv_sizeof_long}" = "x8"; then
12852 want64=true
12853 fi
12854 fi
42ecbf5e
DJ
12855 if test x${want64} = xtrue; then
12856 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12857 else
12858 EMULATION_OFILES='$(ALL_EMULATIONS)'
12859 fi
12860 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12861else
12862 EMULATION_OFILES=$all_emuls
12863 EMUL_EXTRA_OFILES=$all_emul_extras
12864fi
12865
12866
12867
12868
12869EMULATION_LIBPATH=$all_libpath
12870
12871
12872if test x${enable_static} = xno; then
12873 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12874else
12875 TESTBFDLIB="../bfd/.libs/libbfd.a"
12876fi
12877
12878
12879target_vendor=${target_vendor=$host_vendor}
12880case "$target_vendor" in
12881 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12882 *) EXTRA_SHLIB_EXTENSION= ;;
12883esac
12884
12885case "$target_os" in
12886 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12887esac
12888
12889if test x${EXTRA_SHLIB_EXTENSION} != x ; then
12890
12891cat >>confdefs.h <<_ACEOF
12892#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
12893_ACEOF
12894
12895fi
12896
108a6f8e
CD
12897
12898
12899
12900
42ecbf5e 12901 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
12902cat >confcache <<\_ACEOF
12903# This file is a shell script that caches the results of configure
12904# tests run on this system so they can be shared between configure
12905# scripts and configure runs, see configure's option --config-cache.
12906# It is not useful on other systems. If it contains results you don't
12907# want to keep, you may remove or edit it.
12908#
12909# config.status only pays attention to the cache file if you give it
12910# the --recheck option to rerun configure.
12911#
12912# `ac_cv_env_foo' variables (set or unset) will be overridden when
12913# loading this file, other *unset* `ac_cv_foo' will be assigned the
12914# following values.
12915
12916_ACEOF
12917
12918# The following way of writing the cache mishandles newlines in values,
12919# but we know of no workaround that is simple, portable, and efficient.
12920# So, don't put newlines in cache variables' values.
12921# Ultrix sh set writes to stderr and can't be redirected directly,
12922# and sets the high bit in the cache file unless we assign to the vars.
12923{
12924 (set) 2>&1 |
12925 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12926 *ac_space=\ *)
12927 # `set' does not quote correctly, so add quotes (double-quote
12928 # substitution turns \\\\ into \\, and sed turns \\ into \).
12929 sed -n \
12930 "s/'/'\\\\''/g;
12931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12932 ;;
12933 *)
12934 # `set' quotes correctly as required by POSIX, so do not add quotes.
12935 sed -n \
12936 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12937 ;;
12938 esac;
12939} |
12940 sed '
12941 t clear
12942 : clear
12943 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12944 t end
12945 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12946 : end' >>confcache
12947if diff $cache_file confcache >/dev/null 2>&1; then :; else
12948 if test -w $cache_file; then
12949 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12950 cat confcache >$cache_file
12951 else
12952 echo "not updating unwritable cache $cache_file"
12953 fi
12954fi
12955rm -f confcache
12956
12957test "x$prefix" = xNONE && prefix=$ac_default_prefix
12958# Let make expand exec_prefix.
12959test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12960
12961# VPATH may cause trouble with some makes, so we remove $(srcdir),
12962# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12963# trailing colons and then remove the whole line if VPATH becomes empty
12964# (actually we leave an empty line to preserve line numbers).
12965if test "x$srcdir" = x.; then
12966 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12967s/:*\$(srcdir):*/:/;
12968s/:*\${srcdir}:*/:/;
12969s/:*@srcdir@:*/:/;
12970s/^\([^=]*=[ ]*\):*/\1/;
12971s/:*$//;
12972s/^[^=]*=[ ]*$//;
12973}'
12974fi
12975
12976DEFS=-DHAVE_CONFIG_H
12977
12978ac_libobjs=
12979ac_ltlibobjs=
12980for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12981 # 1. Remove the extension, and $U if already installed.
12982 ac_i=`echo "$ac_i" |
12983 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12984 # 2. Add them.
12985 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12986 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12987done
12988LIBOBJS=$ac_libobjs
12989
12990LTLIBOBJS=$ac_ltlibobjs
12991
12992
12993if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12994 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12995Usually this means the macro was only invoked conditionally." >&5
12996echo "$as_me: error: conditional \"AMDEP\" was never defined.
12997Usually this means the macro was only invoked conditionally." >&2;}
12998 { (exit 1); exit 1; }; }
12999fi
13000if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13001 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13002Usually this means the macro was only invoked conditionally." >&5
13003echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13004Usually this means the macro was only invoked conditionally." >&2;}
13005 { (exit 1); exit 1; }; }
13006fi
13007if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13008 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13009Usually this means the macro was only invoked conditionally." >&5
13010echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13011Usually this means the macro was only invoked conditionally." >&2;}
13012 { (exit 1); exit 1; }; }
13013fi
d5fbea21
DJ
13014if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13015 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13016Usually this means the macro was only invoked conditionally." >&5
13017echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13018Usually this means the macro was only invoked conditionally." >&2;}
13019 { (exit 1); exit 1; }; }
13020fi
42ecbf5e
DJ
13021
13022: ${CONFIG_STATUS=./config.status}
13023ac_clean_files_save=$ac_clean_files
13024ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13025{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13026echo "$as_me: creating $CONFIG_STATUS" >&6;}
13027cat >$CONFIG_STATUS <<_ACEOF
13028#! $SHELL
13029# Generated by $as_me.
13030# Run this file to recreate the current configuration.
13031# Compiler output produced by configure, useful for debugging
13032# configure, is in config.log if it exists.
13033
13034debug=false
13035ac_cs_recheck=false
13036ac_cs_silent=false
13037SHELL=\${CONFIG_SHELL-$SHELL}
13038_ACEOF
13039
13040cat >>$CONFIG_STATUS <<\_ACEOF
13041## --------------------- ##
13042## M4sh Initialization. ##
13043## --------------------- ##
13044
13045# Be Bourne compatible
13046if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13047 emulate sh
13048 NULLCMD=:
13049 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13050 # is contrary to our usage. Disable this feature.
13051 alias -g '${1+"$@"}'='"$@"'
13052elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13053 set -o posix
13054fi
13055DUALCASE=1; export DUALCASE # for MKS sh
13056
13057# Support unset when possible.
13058if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13059 as_unset=unset
13060else
13061 as_unset=false
13062fi
13063
13064
13065# Work around bugs in pre-3.0 UWIN ksh.
13066$as_unset ENV MAIL MAILPATH
13067PS1='$ '
13068PS2='> '
13069PS4='+ '
13070
13071# NLS nuisances.
13072for as_var in \
13073 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13074 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13075 LC_TELEPHONE LC_TIME
13076do
13077 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13078 eval $as_var=C; export $as_var
13079 else
13080 $as_unset $as_var
13081 fi
13082done
13083
13084# Required to use basename.
13085if expr a : '\(a\)' >/dev/null 2>&1; then
13086 as_expr=expr
13087else
13088 as_expr=false
13089fi
13090
13091if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13092 as_basename=basename
13093else
13094 as_basename=false
13095fi
13096
13097
13098# Name of the executable.
13099as_me=`$as_basename "$0" ||
13100$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13101 X"$0" : 'X\(//\)$' \| \
13102 X"$0" : 'X\(/\)$' \| \
13103 . : '\(.\)' 2>/dev/null ||
13104echo X/"$0" |
13105 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13106 /^X\/\(\/\/\)$/{ s//\1/; q; }
13107 /^X\/\(\/\).*/{ s//\1/; q; }
13108 s/.*/./; q'`
13109
13110
13111# PATH needs CR, and LINENO needs CR and PATH.
13112# Avoid depending upon Character Ranges.
13113as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13114as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13115as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13116as_cr_digits='0123456789'
13117as_cr_alnum=$as_cr_Letters$as_cr_digits
13118
13119# The user is always right.
13120if test "${PATH_SEPARATOR+set}" != set; then
13121 echo "#! /bin/sh" >conf$$.sh
13122 echo "exit 0" >>conf$$.sh
13123 chmod +x conf$$.sh
13124 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13125 PATH_SEPARATOR=';'
13126 else
13127 PATH_SEPARATOR=:
13128 fi
13129 rm -f conf$$.sh
13130fi
13131
e5a52504 13132
42ecbf5e
DJ
13133 as_lineno_1=$LINENO
13134 as_lineno_2=$LINENO
13135 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13136 test "x$as_lineno_1" != "x$as_lineno_2" &&
13137 test "x$as_lineno_3" = "x$as_lineno_2" || {
13138 # Find who we are. Look in the path if we contain no path at all
13139 # relative or not.
13140 case $0 in
13141 *[\\/]* ) as_myself=$0 ;;
13142 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143for as_dir in $PATH
13144do
13145 IFS=$as_save_IFS
13146 test -z "$as_dir" && as_dir=.
13147 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13148done
13149
13150 ;;
13151 esac
13152 # We did not find ourselves, most probably we were run as `sh COMMAND'
13153 # in which case we are not to be found in the path.
13154 if test "x$as_myself" = x; then
13155 as_myself=$0
13156 fi
13157 if test ! -f "$as_myself"; then
13158 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13159echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13160 { (exit 1); exit 1; }; }
252b5132 13161 fi
42ecbf5e
DJ
13162 case $CONFIG_SHELL in
13163 '')
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for as_base in sh bash ksh sh5; do
13170 case $as_dir in
13171 /*)
13172 if ("$as_dir/$as_base" -c '
13173 as_lineno_1=$LINENO
13174 as_lineno_2=$LINENO
13175 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13176 test "x$as_lineno_1" != "x$as_lineno_2" &&
13177 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13178 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13179 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13180 CONFIG_SHELL=$as_dir/$as_base
13181 export CONFIG_SHELL
13182 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13183 fi;;
13184 esac
13185 done
252b5132 13186done
42ecbf5e
DJ
13187;;
13188 esac
252b5132 13189
42ecbf5e
DJ
13190 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13191 # uniformly replaced by the line number. The first 'sed' inserts a
13192 # line-number line before each line; the second 'sed' does the real
13193 # work. The second script uses 'N' to pair each line-number line
13194 # with the numbered line, and appends trailing '-' during
13195 # substitution so that $LINENO is not a special case at line end.
13196 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13197 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13198 sed '=' <$as_myself |
13199 sed '
13200 N
13201 s,$,-,
13202 : loop
13203 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13204 t loop
13205 s,-$,,
13206 s,^['$as_cr_digits']*\n,,
13207 ' >$as_me.lineno &&
13208 chmod +x $as_me.lineno ||
13209 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13210echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13211 { (exit 1); exit 1; }; }
13212
13213 # Don't try to exec as it changes $[0], causing all sort of problems
13214 # (the dirname of $[0] is not the place where we might find the
13215 # original and so on. Autoconf is especially sensible to this).
13216 . ./$as_me.lineno
13217 # Exit status is that of the last command.
13218 exit
13219}
252b5132
RH
13220
13221
42ecbf5e
DJ
13222case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13223 *c*,-n*) ECHO_N= ECHO_C='
13224' ECHO_T=' ' ;;
13225 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13226 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13227esac
252b5132 13228
42ecbf5e
DJ
13229if expr a : '\(a\)' >/dev/null 2>&1; then
13230 as_expr=expr
13231else
13232 as_expr=false
13233fi
252b5132 13234
42ecbf5e
DJ
13235rm -f conf$$ conf$$.exe conf$$.file
13236echo >conf$$.file
13237if ln -s conf$$.file conf$$ 2>/dev/null; then
13238 # We could just check for DJGPP; but this test a) works b) is more generic
13239 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13240 if test -f conf$$.exe; then
13241 # Don't use ln at all; we don't have any links
13242 as_ln_s='cp -p'
252b5132 13243 else
42ecbf5e 13244 as_ln_s='ln -s'
252b5132 13245 fi
42ecbf5e
DJ
13246elif ln conf$$.file conf$$ 2>/dev/null; then
13247 as_ln_s=ln
e5a52504 13248else
42ecbf5e 13249 as_ln_s='cp -p'
e5a52504 13250fi
42ecbf5e 13251rm -f conf$$ conf$$.exe conf$$.file
252b5132 13252
42ecbf5e
DJ
13253if mkdir -p . 2>/dev/null; then
13254 as_mkdir_p=:
13255else
13256 test -d ./-p && rmdir ./-p
13257 as_mkdir_p=false
13258fi
252b5132 13259
42ecbf5e 13260as_executable_p="test -f"
252b5132 13261
42ecbf5e
DJ
13262# Sed expression to map a string onto a valid CPP name.
13263as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 13264
42ecbf5e
DJ
13265# Sed expression to map a string onto a valid variable name.
13266as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 13267
e5a52504 13268
42ecbf5e
DJ
13269# IFS
13270# We need space, tab and new line, in precisely that order.
13271as_nl='
13272'
13273IFS=" $as_nl"
e5a52504 13274
42ecbf5e
DJ
13275# CDPATH.
13276$as_unset CDPATH
e5a52504 13277
42ecbf5e 13278exec 6>&1
e5a52504 13279
42ecbf5e
DJ
13280# Open the log real soon, to keep \$[0] and so on meaningful, and to
13281# report actual input values of CONFIG_FILES etc. instead of their
13282# values after options handling. Logging --version etc. is OK.
13283exec 5>>config.log
13284{
13285 echo
13286 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13287## Running $as_me. ##
13288_ASBOX
13289} >&5
13290cat >&5 <<_CSEOF
e5a52504 13291
42ecbf5e
DJ
13292This file was extended by $as_me, which was
13293generated by GNU Autoconf 2.59. Invocation command line was
13294
13295 CONFIG_FILES = $CONFIG_FILES
13296 CONFIG_HEADERS = $CONFIG_HEADERS
13297 CONFIG_LINKS = $CONFIG_LINKS
13298 CONFIG_COMMANDS = $CONFIG_COMMANDS
13299 $ $0 $@
e5a52504 13300
42ecbf5e
DJ
13301_CSEOF
13302echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13303echo >&5
13304_ACEOF
13305
13306# Files that config.status was made for.
13307if test -n "$ac_config_files"; then
13308 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
d15b04bd 13309fi
e5a52504 13310
42ecbf5e
DJ
13311if test -n "$ac_config_headers"; then
13312 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13313fi
13314
13315if test -n "$ac_config_links"; then
13316 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13317fi
13318
13319if test -n "$ac_config_commands"; then
13320 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13321fi
13322
13323cat >>$CONFIG_STATUS <<\_ACEOF
13324
13325ac_cs_usage="\
13326\`$as_me' instantiates files from templates according to the
13327current configuration.
13328
13329Usage: $0 [OPTIONS] [FILE]...
13330
13331 -h, --help print this help, then exit
13332 -V, --version print version number, then exit
13333 -q, --quiet do not print progress messages
13334 -d, --debug don't remove temporary files
13335 --recheck update $as_me by reconfiguring in the same conditions
13336 --file=FILE[:TEMPLATE]
13337 instantiate the configuration file FILE
13338 --header=FILE[:TEMPLATE]
13339 instantiate the configuration header FILE
13340
13341Configuration files:
13342$config_files
13343
13344Configuration headers:
13345$config_headers
13346
13347Configuration commands:
13348$config_commands
13349
13350Report bugs to <bug-autoconf@gnu.org>."
13351_ACEOF
13352
13353cat >>$CONFIG_STATUS <<_ACEOF
13354ac_cs_version="\\
13355config.status
13356configured by $0, generated by GNU Autoconf 2.59,
13357 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13358
13359Copyright (C) 2003 Free Software Foundation, Inc.
13360This config.status script is free software; the Free Software Foundation
13361gives unlimited permission to copy, distribute and modify it."
13362srcdir=$srcdir
13363INSTALL="$INSTALL"
13364_ACEOF
13365
13366cat >>$CONFIG_STATUS <<\_ACEOF
13367# If no file are specified by the user, then we need to provide default
13368# value. By we need to know if files were specified by the user.
13369ac_need_defaults=:
13370while test $# != 0
13371do
13372 case $1 in
13373 --*=*)
13374 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13375 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13376 ac_shift=:
252b5132 13377 ;;
42ecbf5e
DJ
13378 -*)
13379 ac_option=$1
13380 ac_optarg=$2
13381 ac_shift=shift
252b5132 13382 ;;
42ecbf5e
DJ
13383 *) # This is not an option, so the user has probably given explicit
13384 # arguments.
13385 ac_option=$1
13386 ac_need_defaults=false;;
13387 esac
252b5132 13388
42ecbf5e
DJ
13389 case $ac_option in
13390 # Handling of the options.
13391_ACEOF
13392cat >>$CONFIG_STATUS <<\_ACEOF
13393 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13394 ac_cs_recheck=: ;;
13395 --version | --vers* | -V )
13396 echo "$ac_cs_version"; exit 0 ;;
13397 --he | --h)
13398 # Conflict between --help and --header
13399 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13400Try \`$0 --help' for more information." >&5
13401echo "$as_me: error: ambiguous option: $1
13402Try \`$0 --help' for more information." >&2;}
13403 { (exit 1); exit 1; }; };;
13404 --help | --hel | -h )
13405 echo "$ac_cs_usage"; exit 0 ;;
13406 --debug | --d* | -d )
13407 debug=: ;;
13408 --file | --fil | --fi | --f )
13409 $ac_shift
13410 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13411 ac_need_defaults=false;;
13412 --header | --heade | --head | --hea )
13413 $ac_shift
13414 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13415 ac_need_defaults=false;;
13416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13417 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13418 ac_cs_silent=: ;;
252b5132 13419
42ecbf5e
DJ
13420 # This is an error.
13421 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13422Try \`$0 --help' for more information." >&5
13423echo "$as_me: error: unrecognized option: $1
13424Try \`$0 --help' for more information." >&2;}
13425 { (exit 1); exit 1; }; } ;;
252b5132 13426
42ecbf5e 13427 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 13428
42ecbf5e
DJ
13429 esac
13430 shift
13431done
d15b04bd 13432
42ecbf5e 13433ac_configure_extra_args=
e5a52504 13434
42ecbf5e
DJ
13435if $ac_cs_silent; then
13436 exec 6>/dev/null
13437 ac_configure_extra_args="$ac_configure_extra_args --silent"
13438fi
e5a52504 13439
42ecbf5e
DJ
13440_ACEOF
13441cat >>$CONFIG_STATUS <<_ACEOF
13442if \$ac_cs_recheck; then
13443 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13444 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13445fi
13446
13447_ACEOF
13448
13449cat >>$CONFIG_STATUS <<_ACEOF
252b5132 13450#
42ecbf5e 13451# INIT-COMMANDS section.
252b5132 13452#
252b5132 13453
42ecbf5e 13454AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13455
13456
13457# The HP-UX ksh and POSIX shell print the target directory to stdout
13458# if CDPATH is set.
13459(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13460
13461sed_quote_subst='$sed_quote_subst'
13462double_quote_subst='$double_quote_subst'
13463delay_variable_subst='$delay_variable_subst'
13464macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13465macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13466enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13467enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13468pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13469enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13470host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13471host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13472host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13473build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13474build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13475build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13476SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13477Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13478GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13479EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13480FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13481LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13482NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13483LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13484max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13485ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13486exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13487lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13488lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13489lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13490reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13491reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13492deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13493file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13494AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13495AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13496STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13497RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13498old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13499old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13500old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13501CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13502CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13503compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13504GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13505lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13506lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13507lt_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"`'
13508objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13509SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13510ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13511MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13512lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13513lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13514lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13515lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13516lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13517need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13518libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13519shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13520extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13521archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13522enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13523export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13524whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13525compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13526old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13527old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13528archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13529archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13530module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13531module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13532with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13533allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13534no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13535hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13536hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13537hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13538hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13539hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13540hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13541hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13542hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13543inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13544link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13545fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13546always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13547export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13548exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13549include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13550prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13551file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13552variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13553need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13554need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13555version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13556runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13557shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13558shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13559libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13560library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13561soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13562postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13563postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13564finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13565finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13566hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13567sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13568sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13569hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13570enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13571enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13572enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13573old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13574striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13575
13576LTCC='$LTCC'
13577LTCFLAGS='$LTCFLAGS'
13578compiler='$compiler_DEFAULT'
13579
13580# Quote evaled strings.
13581for var in SED \
13582GREP \
13583EGREP \
13584FGREP \
13585LD \
13586NM \
13587LN_S \
13588lt_SP2NL \
13589lt_NL2SP \
13590reload_flag \
13591deplibs_check_method \
13592file_magic_cmd \
13593AR \
13594AR_FLAGS \
13595STRIP \
13596RANLIB \
13597CC \
13598CFLAGS \
13599compiler \
13600lt_cv_sys_global_symbol_pipe \
13601lt_cv_sys_global_symbol_to_cdecl \
13602lt_cv_sys_global_symbol_to_c_name_address \
13603SHELL \
13604ECHO \
13605lt_prog_compiler_no_builtin_flag \
13606lt_prog_compiler_wl \
13607lt_prog_compiler_pic \
13608lt_prog_compiler_static \
13609lt_cv_prog_compiler_c_o \
13610need_locks \
13611shrext_cmds \
13612export_dynamic_flag_spec \
13613whole_archive_flag_spec \
13614compiler_needs_object \
13615with_gnu_ld \
13616allow_undefined_flag \
13617no_undefined_flag \
13618hardcode_libdir_flag_spec \
13619hardcode_libdir_flag_spec_ld \
13620hardcode_libdir_separator \
13621fix_srcfile_path \
13622exclude_expsyms \
13623include_expsyms \
13624file_list_spec \
13625variables_saved_for_relink \
13626libname_spec \
13627library_names_spec \
13628soname_spec \
13629finish_eval \
13630old_striplib \
13631striplib; do
13632 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13633 *[\\\\\\\`\\"\\\$]*)
13634 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13635 ;;
13636 *)
13637 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13638 ;;
13639 esac
13640done
13641
13642# Double-quote double-evaled strings.
13643for var in reload_cmds \
13644old_postinstall_cmds \
13645old_postuninstall_cmds \
13646old_archive_cmds \
13647extract_expsyms_cmds \
13648old_archive_from_new_cmds \
13649old_archive_from_expsyms_cmds \
13650archive_cmds \
13651archive_expsym_cmds \
13652module_cmds \
13653module_expsym_cmds \
13654export_symbols_cmds \
13655prelink_cmds \
13656postinstall_cmds \
13657postuninstall_cmds \
13658finish_cmds \
13659sys_lib_search_path_spec \
13660sys_lib_dlsearch_path_spec; do
13661 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13662 *[\\\\\\\`\\"\\\$]*)
13663 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13664 ;;
13665 *)
13666 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13667 ;;
13668 esac
13669done
13670
13671# Fix-up fallback echo if it was mangled by the above quoting rules.
13672case \$lt_ECHO in
13673*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13674 ;;
13675esac
13676
13677ac_aux_dir='$ac_aux_dir'
13678xsi_shell='$xsi_shell'
13679lt_shell_append='$lt_shell_append'
13680
13681# See if we are running on zsh, and set the options which allow our
13682# commands through without removal of \ escapes INIT.
13683if test -n "\${ZSH_VERSION+set}" ; then
13684 setopt NO_GLOB_SUBST
13685fi
13686
13687
13688 PACKAGE='$PACKAGE'
13689 VERSION='$VERSION'
13690 TIMESTAMP='$TIMESTAMP'
13691 RM='$RM'
13692 ofile='$ofile'
13693
13694
13695
20e95c23
DJ
13696# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13697 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13698 # from automake.
13699 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13700 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13701 LINGUAS="${LINGUAS-%UNSET%}"
13702
42ecbf5e
DJ
13703
13704_ACEOF
13705
13706
13707
13708cat >>$CONFIG_STATUS <<\_ACEOF
13709for ac_config_target in $ac_config_targets
252b5132 13710do
42ecbf5e
DJ
13711 case "$ac_config_target" in
13712 # Handling of arguments.
13713 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13714 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13715 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 13716 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 13717 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
13718 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13719 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13720echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13721 { (exit 1); exit 1; }; };;
252b5132
RH
13722 esac
13723done
13724
42ecbf5e
DJ
13725# If the user did not use the arguments to specify the items to instantiate,
13726# then the envvar interface is used. Set only those that are not.
13727# We use the long form for the default assignment because of an extremely
13728# bizarre bug on SunOS 4.1.3.
13729if $ac_need_defaults; then
13730 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13731 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13732 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13733fi
13734
13735# Have a temporary directory for convenience. Make it in the build tree
13736# simply because there is no reason to put it here, and in addition,
13737# creating and moving files from /tmp can sometimes cause problems.
13738# Create a temporary directory, and hook for its removal unless debugging.
13739$debug ||
13740{
13741 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13742 trap '{ (exit 1); exit 1; }' 1 2 13 15
13743}
13744
13745# Create a (secure) tmp directory for tmp files.
e5a52504 13746
42ecbf5e
DJ
13747{
13748 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13749 test -n "$tmp" && test -d "$tmp"
13750} ||
13751{
13752 tmp=./confstat$$-$RANDOM
13753 (umask 077 && mkdir $tmp)
13754} ||
13755{
13756 echo "$me: cannot create a temporary directory in ." >&2
13757 { (exit 1); exit 1; }
13758}
e5a52504 13759
42ecbf5e 13760_ACEOF
d15b04bd 13761
42ecbf5e
DJ
13762cat >>$CONFIG_STATUS <<_ACEOF
13763
13764#
13765# CONFIG_FILES section.
13766#
13767
13768# No need to generate the scripts if there are no CONFIG_FILES.
13769# This happens for instance when ./config.status config.h
13770if test -n "\$CONFIG_FILES"; then
13771 # Protect against being on the right side of a sed subst in config.status.
13772 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13773 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13774s,@SHELL@,$SHELL,;t t
13775s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13776s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13777s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13778s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13779s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13780s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13781s,@exec_prefix@,$exec_prefix,;t t
13782s,@prefix@,$prefix,;t t
13783s,@program_transform_name@,$program_transform_name,;t t
13784s,@bindir@,$bindir,;t t
13785s,@sbindir@,$sbindir,;t t
13786s,@libexecdir@,$libexecdir,;t t
13787s,@datadir@,$datadir,;t t
13788s,@sysconfdir@,$sysconfdir,;t t
13789s,@sharedstatedir@,$sharedstatedir,;t t
13790s,@localstatedir@,$localstatedir,;t t
13791s,@libdir@,$libdir,;t t
13792s,@includedir@,$includedir,;t t
13793s,@oldincludedir@,$oldincludedir,;t t
13794s,@infodir@,$infodir,;t t
13795s,@mandir@,$mandir,;t t
13796s,@build_alias@,$build_alias,;t t
13797s,@host_alias@,$host_alias,;t t
13798s,@target_alias@,$target_alias,;t t
13799s,@DEFS@,$DEFS,;t t
13800s,@ECHO_C@,$ECHO_C,;t t
13801s,@ECHO_N@,$ECHO_N,;t t
13802s,@ECHO_T@,$ECHO_T,;t t
13803s,@LIBS@,$LIBS,;t t
13804s,@build@,$build,;t t
13805s,@build_cpu@,$build_cpu,;t t
13806s,@build_vendor@,$build_vendor,;t t
13807s,@build_os@,$build_os,;t t
13808s,@host@,$host,;t t
13809s,@host_cpu@,$host_cpu,;t t
13810s,@host_vendor@,$host_vendor,;t t
13811s,@host_os@,$host_os,;t t
13812s,@target@,$target,;t t
13813s,@target_cpu@,$target_cpu,;t t
13814s,@target_vendor@,$target_vendor,;t t
13815s,@target_os@,$target_os,;t t
13816s,@CC@,$CC,;t t
13817s,@CFLAGS@,$CFLAGS,;t t
13818s,@LDFLAGS@,$LDFLAGS,;t t
13819s,@CPPFLAGS@,$CPPFLAGS,;t t
13820s,@ac_ct_CC@,$ac_ct_CC,;t t
13821s,@EXEEXT@,$EXEEXT,;t t
13822s,@OBJEXT@,$OBJEXT,;t t
13823s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13824s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13825s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13826s,@CYGPATH_W@,$CYGPATH_W,;t t
13827s,@PACKAGE@,$PACKAGE,;t t
13828s,@VERSION@,$VERSION,;t t
13829s,@ACLOCAL@,$ACLOCAL,;t t
13830s,@AUTOCONF@,$AUTOCONF,;t t
13831s,@AUTOMAKE@,$AUTOMAKE,;t t
13832s,@AUTOHEADER@,$AUTOHEADER,;t t
13833s,@MAKEINFO@,$MAKEINFO,;t t
13834s,@install_sh@,$install_sh,;t t
13835s,@STRIP@,$STRIP,;t t
13836s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13837s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13838s,@mkdir_p@,$mkdir_p,;t t
13839s,@AWK@,$AWK,;t t
13840s,@SET_MAKE@,$SET_MAKE,;t t
13841s,@am__leading_dot@,$am__leading_dot,;t t
13842s,@AMTAR@,$AMTAR,;t t
13843s,@am__tar@,$am__tar,;t t
13844s,@am__untar@,$am__untar,;t t
13845s,@DEPDIR@,$DEPDIR,;t t
13846s,@am__include@,$am__include,;t t
13847s,@am__quote@,$am__quote,;t t
13848s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13849s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13850s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13851s,@CCDEPMODE@,$CCDEPMODE,;t t
13852s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13853s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
ce2cded5
L
13854s,@use_sysroot@,$use_sysroot,;t t
13855s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13856s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13857s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13858s,@NO_WERROR@,$NO_WERROR,;t t
d7040cdb
SE
13859s,@LIBTOOL@,$LIBTOOL,;t t
13860s,@SED@,$SED,;t t
13861s,@EGREP@,$EGREP,;t t
13862s,@FGREP@,$FGREP,;t t
13863s,@GREP@,$GREP,;t t
13864s,@LD@,$LD,;t t
13865s,@DUMPBIN@,$DUMPBIN,;t t
13866s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13867s,@NM@,$NM,;t t
42ecbf5e 13868s,@LN_S@,$LN_S,;t t
d7040cdb
SE
13869s,@AR@,$AR,;t t
13870s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
13871s,@RANLIB@,$RANLIB,;t t
13872s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
13873s,@lt_ECHO@,$lt_ECHO,;t t
13874s,@CPP@,$CPP,;t t
42ecbf5e 13875s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13876s,@LIBINTL@,$LIBINTL,;t t
13877s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13878s,@INCINTL@,$INCINTL,;t t
42ecbf5e 13879s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13880s,@GMSGFMT@,$GMSGFMT,;t t
13881s,@POSUB@,$POSUB,;t t
42ecbf5e 13882s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 13883s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 13884s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13885s,@GENCAT@,$GENCAT,;t t
13886s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 13887s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13888s,@MSGFMT@,$MSGFMT,;t t
13889s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
13890s,@YACC@,$YACC,;t t
13891s,@LEX@,$LEX,;t t
13892s,@LEXLIB@,$LEXLIB,;t t
13893s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13894s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13895s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13896s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
13897s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13898s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e
DJ
13899s,@HDEFINES@,$HDEFINES,;t t
13900s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
13901s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
13902s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
13903s,@STRINGIFY@,$STRINGIFY,;t t
13904s,@EMUL@,$EMUL,;t t
13905s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
13906s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
13907s,@LIB_PATH@,$LIB_PATH,;t t
13908s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
13909s,@TESTBFDLIB@,$TESTBFDLIB,;t t
108a6f8e
CD
13910s,@datarootdir@,$datarootdir,;t t
13911s,@docdir@,$docdir,;t t
13912s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
13913s,@LIBOBJS@,$LIBOBJS,;t t
13914s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13915/@TDIRS@/r $TDIRS
13916s,@TDIRS@,,;t t
252b5132 13917CEOF
252b5132 13918
42ecbf5e
DJ
13919_ACEOF
13920
13921 cat >>$CONFIG_STATUS <<\_ACEOF
13922 # Split the substitutions into bite-sized pieces for seds with
13923 # small command number limits, like on Digital OSF/1 and HP-UX.
13924 ac_max_sed_lines=48
13925 ac_sed_frag=1 # Number of current file.
13926 ac_beg=1 # First line for current file.
13927 ac_end=$ac_max_sed_lines # Line after last line for current file.
13928 ac_more_lines=:
13929 ac_sed_cmds=
13930 while $ac_more_lines; do
13931 if test $ac_beg -gt 1; then
13932 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13933 else
13934 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13935 fi
13936 if test ! -s $tmp/subs.frag; then
13937 ac_more_lines=false
252b5132 13938 else
42ecbf5e
DJ
13939 # The purpose of the label and of the branching condition is to
13940 # speed up the sed processing (if there are no `@' at all, there
13941 # is no need to browse any of the substitutions).
13942 # These are the two extra sed commands mentioned above.
13943 (echo ':t
13944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13945 if test -z "$ac_sed_cmds"; then
13946 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13947 else
13948 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13949 fi
13950 ac_sed_frag=`expr $ac_sed_frag + 1`
13951 ac_beg=$ac_end
13952 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13953 fi
42ecbf5e
DJ
13954 done
13955 if test -z "$ac_sed_cmds"; then
13956 ac_sed_cmds=cat
252b5132 13957 fi
42ecbf5e 13958fi # test -n "$CONFIG_FILES"
252b5132 13959
42ecbf5e
DJ
13960_ACEOF
13961cat >>$CONFIG_STATUS <<\_ACEOF
13962for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13963 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
13964 case $ac_file in
13965 - | *:- | *:-:* ) # input from stdin
13966 cat >$tmp/stdin
13967 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13968 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13969 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13970 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13971 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13972 esac
13973
42ecbf5e
DJ
13974 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13975 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13976$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13977 X"$ac_file" : 'X\(//\)[^/]' \| \
13978 X"$ac_file" : 'X\(//\)$' \| \
13979 X"$ac_file" : 'X\(/\)' \| \
13980 . : '\(.\)' 2>/dev/null ||
13981echo X"$ac_file" |
13982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13984 /^X\(\/\/\)$/{ s//\1/; q; }
13985 /^X\(\/\).*/{ s//\1/; q; }
13986 s/.*/./; q'`
13987 { if $as_mkdir_p; then
13988 mkdir -p "$ac_dir"
d15b04bd 13989 else
42ecbf5e
DJ
13990 as_dir="$ac_dir"
13991 as_dirs=
13992 while test ! -d "$as_dir"; do
13993 as_dirs="$as_dir $as_dirs"
13994 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13995$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13996 X"$as_dir" : 'X\(//\)[^/]' \| \
13997 X"$as_dir" : 'X\(//\)$' \| \
13998 X"$as_dir" : 'X\(/\)' \| \
13999 . : '\(.\)' 2>/dev/null ||
14000echo X"$as_dir" |
14001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14003 /^X\(\/\/\)$/{ s//\1/; q; }
14004 /^X\(\/\).*/{ s//\1/; q; }
14005 s/.*/./; q'`
14006 done
14007 test ! -n "$as_dirs" || mkdir $as_dirs
14008 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14009echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14010 { (exit 1); exit 1; }; }; }
14011
14012 ac_builddir=.
14013
14014if test "$ac_dir" != .; then
14015 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14016 # A "../" for each directory in $ac_dir_suffix.
14017 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14018else
14019 ac_dir_suffix= ac_top_builddir=
14020fi
252b5132 14021
42ecbf5e
DJ
14022case $srcdir in
14023 .) # No --srcdir option. We are building in place.
14024 ac_srcdir=.
14025 if test -z "$ac_top_builddir"; then
14026 ac_top_srcdir=.
14027 else
14028 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14029 fi ;;
14030 [\\/]* | ?:[\\/]* ) # Absolute path.
14031 ac_srcdir=$srcdir$ac_dir_suffix;
14032 ac_top_srcdir=$srcdir ;;
252b5132 14033 *) # Relative path.
42ecbf5e
DJ
14034 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14035 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14036esac
14037
14038# Do not use `cd foo && pwd` to compute absolute paths, because
14039# the directories may not exist.
14040case `pwd` in
14041.) ac_abs_builddir="$ac_dir";;
14042*)
14043 case "$ac_dir" in
14044 .) ac_abs_builddir=`pwd`;;
14045 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14046 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14047 esac;;
14048esac
14049case $ac_abs_builddir in
14050.) ac_abs_top_builddir=${ac_top_builddir}.;;
14051*)
14052 case ${ac_top_builddir}. in
14053 .) ac_abs_top_builddir=$ac_abs_builddir;;
14054 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14055 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14056 esac;;
14057esac
14058case $ac_abs_builddir in
14059.) ac_abs_srcdir=$ac_srcdir;;
14060*)
14061 case $ac_srcdir in
14062 .) ac_abs_srcdir=$ac_abs_builddir;;
14063 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14064 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14065 esac;;
14066esac
14067case $ac_abs_builddir in
14068.) ac_abs_top_srcdir=$ac_top_srcdir;;
14069*)
14070 case $ac_top_srcdir in
14071 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14072 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14073 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14074 esac;;
14075esac
252b5132 14076
e5a52504 14077
42ecbf5e
DJ
14078 case $INSTALL in
14079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14080 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 14081 esac
e5a52504 14082
502bdb00
JW
14083 if test x"$ac_file" != x-; then
14084 { echo "$as_me:$LINENO: creating $ac_file" >&5
14085echo "$as_me: creating $ac_file" >&6;}
14086 rm -f "$ac_file"
14087 fi
42ecbf5e
DJ
14088 # Let's still pretend it is `configure' which instantiates (i.e., don't
14089 # use $as_me), people would be surprised to read:
14090 # /* config.h. Generated by config.status. */
14091 if test x"$ac_file" = x-; then
14092 configure_input=
14093 else
14094 configure_input="$ac_file. "
14095 fi
14096 configure_input=$configure_input"Generated from `echo $ac_file_in |
14097 sed 's,.*/,,'` by configure."
14098
14099 # First look for the input files in the build tree, otherwise in the
14100 # src tree.
14101 ac_file_inputs=`IFS=:
14102 for f in $ac_file_in; do
14103 case $f in
14104 -) echo $tmp/stdin ;;
14105 [\\/$]*)
14106 # Absolute (can't be DOS-style, as IFS=:)
14107 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14108echo "$as_me: error: cannot find input file: $f" >&2;}
14109 { (exit 1); exit 1; }; }
14110 echo "$f";;
14111 *) # Relative
14112 if test -f "$f"; then
14113 # Build tree
14114 echo "$f"
14115 elif test -f "$srcdir/$f"; then
14116 # Source tree
14117 echo "$srcdir/$f"
14118 else
14119 # /dev/null tree
14120 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14121echo "$as_me: error: cannot find input file: $f" >&2;}
14122 { (exit 1); exit 1; }; }
14123 fi;;
14124 esac
14125 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
14126_ACEOF
14127cat >>$CONFIG_STATUS <<_ACEOF
14128 sed "$ac_vpsub
14129$extrasub
14130_ACEOF
14131cat >>$CONFIG_STATUS <<\_ACEOF
14132:t
14133/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14134s,@configure_input@,$configure_input,;t t
14135s,@srcdir@,$ac_srcdir,;t t
14136s,@abs_srcdir@,$ac_abs_srcdir,;t t
14137s,@top_srcdir@,$ac_top_srcdir,;t t
14138s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14139s,@builddir@,$ac_builddir,;t t
14140s,@abs_builddir@,$ac_abs_builddir,;t t
14141s,@top_builddir@,$ac_top_builddir,;t t
14142s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14143s,@INSTALL@,$ac_INSTALL,;t t
14144" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14145 rm -f $tmp/stdin
14146 if test x"$ac_file" != x-; then
14147 mv $tmp/out $ac_file
14148 else
14149 cat $tmp/out
14150 rm -f $tmp/out
14151 fi
14152
14153done
14154_ACEOF
14155cat >>$CONFIG_STATUS <<\_ACEOF
14156
14157#
14158# CONFIG_HEADER section.
14159#
252b5132
RH
14160
14161# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14162# NAME is the cpp macro being defined and VALUE is the value it is being given.
14163#
14164# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
14165ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14166ac_dB='[ ].*$,\1#\2'
14167ac_dC=' '
14168ac_dD=',;t'
14169# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14170ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14171ac_uB='$,\1#\2define\3'
252b5132 14172ac_uC=' '
42ecbf5e
DJ
14173ac_uD=',;t'
14174
14175for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 14176 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14177 case $ac_file in
14178 - | *:- | *:-:* ) # input from stdin
14179 cat >$tmp/stdin
14180 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14182 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14184 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14185 esac
14186
42ecbf5e
DJ
14187 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14188echo "$as_me: creating $ac_file" >&6;}
14189
14190 # First look for the input files in the build tree, otherwise in the
14191 # src tree.
14192 ac_file_inputs=`IFS=:
14193 for f in $ac_file_in; do
14194 case $f in
14195 -) echo $tmp/stdin ;;
14196 [\\/$]*)
14197 # Absolute (can't be DOS-style, as IFS=:)
14198 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14199echo "$as_me: error: cannot find input file: $f" >&2;}
14200 { (exit 1); exit 1; }; }
14201 # Do quote $f, to prevent DOS paths from being IFS'd.
14202 echo "$f";;
14203 *) # Relative
14204 if test -f "$f"; then
14205 # Build tree
14206 echo "$f"
14207 elif test -f "$srcdir/$f"; then
14208 # Source tree
14209 echo "$srcdir/$f"
14210 else
14211 # /dev/null tree
14212 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14213echo "$as_me: error: cannot find input file: $f" >&2;}
14214 { (exit 1); exit 1; }; }
14215 fi;;
14216 esac
14217 done` || { (exit 1); exit 1; }
14218 # Remove the trailing spaces.
14219 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14220
14221_ACEOF
14222
14223# Transform confdefs.h into two sed scripts, `conftest.defines' and
14224# `conftest.undefs', that substitutes the proper values into
14225# config.h.in to produce config.h. The first handles `#define'
14226# templates, and the second `#undef' templates.
14227# And first: Protect against being on the right side of a sed subst in
14228# config.status. Protect against being in an unquoted here document
14229# in config.status.
14230rm -f conftest.defines conftest.undefs
14231# Using a here document instead of a string reduces the quoting nightmare.
14232# Putting comments in sed scripts is not portable.
14233#
14234# `end' is used to avoid that the second main sed command (meant for
14235# 0-ary CPP macros) applies to n-ary macro definitions.
14236# See the Autoconf documentation for `clear'.
14237cat >confdef2sed.sed <<\_ACEOF
14238s/[\\&,]/\\&/g
14239s,[\\$`],\\&,g
14240t clear
14241: clear
14242s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14243t end
14244s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14245: end
14246_ACEOF
14247# If some macros were called several times there might be several times
14248# the same #defines, which is useless. Nevertheless, we may not want to
14249# sort them, since we want the *last* AC-DEFINE to be honored.
14250uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14251sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14252rm -f confdef2sed.sed
252b5132
RH
14253
14254# This sed command replaces #undef with comments. This is necessary, for
14255# example, in the case of _POSIX_SOURCE, which is predefined and required
14256# on some systems where configure will not decide to define it.
42ecbf5e
DJ
14257cat >>conftest.undefs <<\_ACEOF
14258s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14259_ACEOF
14260
14261# Break up conftest.defines because some shells have a limit on the size
14262# of here documents, and old seds have small limits too (100 cmds).
14263echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14264echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14265echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14266echo ' :' >>$CONFIG_STATUS
14267rm -f conftest.tail
14268while grep . conftest.defines >/dev/null
14269do
14270 # Write a limited-size here document to $tmp/defines.sed.
14271 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14272 # Speed up: don't consider the non `#define' lines.
14273 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14274 # Work around the forget-to-reset-the-flag bug.
14275 echo 't clr' >>$CONFIG_STATUS
14276 echo ': clr' >>$CONFIG_STATUS
14277 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14278 echo 'CEOF
14279 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14280 rm -f $tmp/in
14281 mv $tmp/out $tmp/in
14282' >>$CONFIG_STATUS
14283 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14284 rm -f conftest.defines
14285 mv conftest.tail conftest.defines
14286done
14287rm -f conftest.defines
14288echo ' fi # grep' >>$CONFIG_STATUS
14289echo >>$CONFIG_STATUS
252b5132 14290
42ecbf5e
DJ
14291# Break up conftest.undefs because some shells have a limit on the size
14292# of here documents, and old seds have small limits too (100 cmds).
14293echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 14294rm -f conftest.tail
42ecbf5e 14295while grep . conftest.undefs >/dev/null
252b5132 14296do
42ecbf5e
DJ
14297 # Write a limited-size here document to $tmp/undefs.sed.
14298 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14299 # Speed up: don't consider the non `#undef'
14300 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14301 # Work around the forget-to-reset-the-flag bug.
14302 echo 't clr' >>$CONFIG_STATUS
14303 echo ': clr' >>$CONFIG_STATUS
14304 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 14305 echo 'CEOF
42ecbf5e
DJ
14306 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14307 rm -f $tmp/in
14308 mv $tmp/out $tmp/in
14309' >>$CONFIG_STATUS
14310 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14311 rm -f conftest.undefs
14312 mv conftest.tail conftest.undefs
252b5132 14313done
42ecbf5e
DJ
14314rm -f conftest.undefs
14315
14316cat >>$CONFIG_STATUS <<\_ACEOF
14317 # Let's still pretend it is `configure' which instantiates (i.e., don't
14318 # use $as_me), people would be surprised to read:
14319 # /* config.h. Generated by config.status. */
14320 if test x"$ac_file" = x-; then
14321 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 14322 else
42ecbf5e
DJ
14323 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14324 fi
14325 cat $tmp/in >>$tmp/config.h
14326 rm -f $tmp/in
14327 if test x"$ac_file" != x-; then
14328 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14329 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14330echo "$as_me: $ac_file is unchanged" >&6;}
14331 else
14332 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14333$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14334 X"$ac_file" : 'X\(//\)[^/]' \| \
14335 X"$ac_file" : 'X\(//\)$' \| \
14336 X"$ac_file" : 'X\(/\)' \| \
14337 . : '\(.\)' 2>/dev/null ||
14338echo X"$ac_file" |
14339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14341 /^X\(\/\/\)$/{ s//\1/; q; }
14342 /^X\(\/\).*/{ s//\1/; q; }
14343 s/.*/./; q'`
14344 { if $as_mkdir_p; then
14345 mkdir -p "$ac_dir"
14346 else
14347 as_dir="$ac_dir"
14348 as_dirs=
14349 while test ! -d "$as_dir"; do
14350 as_dirs="$as_dir $as_dirs"
14351 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14353 X"$as_dir" : 'X\(//\)[^/]' \| \
14354 X"$as_dir" : 'X\(//\)$' \| \
14355 X"$as_dir" : 'X\(/\)' \| \
14356 . : '\(.\)' 2>/dev/null ||
14357echo X"$as_dir" |
14358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14360 /^X\(\/\/\)$/{ s//\1/; q; }
14361 /^X\(\/\).*/{ s//\1/; q; }
14362 s/.*/./; q'`
14363 done
14364 test ! -n "$as_dirs" || mkdir $as_dirs
14365 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14366echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14367 { (exit 1); exit 1; }; }; }
14368
14369 rm -f $ac_file
14370 mv $tmp/config.h $ac_file
252b5132 14371 fi
42ecbf5e
DJ
14372 else
14373 cat $tmp/config.h
14374 rm -f $tmp/config.h
e5a52504 14375 fi
42ecbf5e
DJ
14376# Compute $ac_file's index in $config_headers.
14377_am_stamp_count=1
14378for _am_header in $config_headers :; do
14379 case $_am_header in
14380 $ac_file | $ac_file:* )
14381 break ;;
14382 * )
14383 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14384 esac
14385done
14386echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14387$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14388 X$ac_file : 'X\(//\)[^/]' \| \
14389 X$ac_file : 'X\(//\)$' \| \
14390 X$ac_file : 'X\(/\)' \| \
14391 . : '\(.\)' 2>/dev/null ||
14392echo X$ac_file |
14393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14395 /^X\(\/\/\)$/{ s//\1/; q; }
14396 /^X\(\/\).*/{ s//\1/; q; }
14397 s/.*/./; q'`/stamp-h$_am_stamp_count
14398done
14399_ACEOF
14400cat >>$CONFIG_STATUS <<\_ACEOF
e5a52504 14401
42ecbf5e
DJ
14402#
14403# CONFIG_COMMANDS section.
14404#
14405for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14406 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14407 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14408 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14409$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14410 X"$ac_dest" : 'X\(//\)[^/]' \| \
14411 X"$ac_dest" : 'X\(//\)$' \| \
14412 X"$ac_dest" : 'X\(/\)' \| \
14413 . : '\(.\)' 2>/dev/null ||
14414echo X"$ac_dest" |
14415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14417 /^X\(\/\/\)$/{ s//\1/; q; }
14418 /^X\(\/\).*/{ s//\1/; q; }
14419 s/.*/./; q'`
14420 { if $as_mkdir_p; then
14421 mkdir -p "$ac_dir"
14422 else
14423 as_dir="$ac_dir"
14424 as_dirs=
14425 while test ! -d "$as_dir"; do
14426 as_dirs="$as_dir $as_dirs"
14427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14429 X"$as_dir" : 'X\(//\)[^/]' \| \
14430 X"$as_dir" : 'X\(//\)$' \| \
14431 X"$as_dir" : 'X\(/\)' \| \
14432 . : '\(.\)' 2>/dev/null ||
14433echo X"$as_dir" |
14434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14436 /^X\(\/\/\)$/{ s//\1/; q; }
14437 /^X\(\/\).*/{ s//\1/; q; }
14438 s/.*/./; q'`
14439 done
14440 test ! -n "$as_dirs" || mkdir $as_dirs
14441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14442echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14443 { (exit 1); exit 1; }; }; }
e5a52504 14444
42ecbf5e 14445 ac_builddir=.
e5a52504 14446
42ecbf5e
DJ
14447if test "$ac_dir" != .; then
14448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14449 # A "../" for each directory in $ac_dir_suffix.
14450 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14451else
14452 ac_dir_suffix= ac_top_builddir=
14453fi
14454
14455case $srcdir in
14456 .) # No --srcdir option. We are building in place.
14457 ac_srcdir=.
14458 if test -z "$ac_top_builddir"; then
14459 ac_top_srcdir=.
14460 else
14461 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14462 fi ;;
14463 [\\/]* | ?:[\\/]* ) # Absolute path.
14464 ac_srcdir=$srcdir$ac_dir_suffix;
14465 ac_top_srcdir=$srcdir ;;
14466 *) # Relative path.
14467 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14468 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14469esac
14470
14471# Do not use `cd foo && pwd` to compute absolute paths, because
14472# the directories may not exist.
14473case `pwd` in
14474.) ac_abs_builddir="$ac_dir";;
14475*)
14476 case "$ac_dir" in
14477 .) ac_abs_builddir=`pwd`;;
14478 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14479 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14480 esac;;
14481esac
14482case $ac_abs_builddir in
14483.) ac_abs_top_builddir=${ac_top_builddir}.;;
14484*)
14485 case ${ac_top_builddir}. in
14486 .) ac_abs_top_builddir=$ac_abs_builddir;;
14487 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14488 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14489 esac;;
14490esac
14491case $ac_abs_builddir in
14492.) ac_abs_srcdir=$ac_srcdir;;
14493*)
14494 case $ac_srcdir in
14495 .) ac_abs_srcdir=$ac_abs_builddir;;
14496 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14497 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14498 esac;;
14499esac
14500case $ac_abs_builddir in
14501.) ac_abs_top_srcdir=$ac_top_srcdir;;
14502*)
14503 case $ac_top_srcdir in
14504 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14505 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14506 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14507 esac;;
14508esac
14509
14510
14511 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14512echo "$as_me: executing $ac_dest commands" >&6;}
14513 case $ac_dest in
14514 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14515 # Strip MF so we end up with the name of the file.
14516 mf=`echo "$mf" | sed -e 's/:.*$//'`
14517 # Check whether this is an Automake generated Makefile or not.
14518 # We used to match only the files named `Makefile.in', but
14519 # some people rename them; so instead we look at the file content.
14520 # Grep'ing the first line is not enough: some people post-process
14521 # each Makefile.in and add a new line on top of each file to say so.
14522 # So let's grep whole file.
14523 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14524 dirpart=`(dirname "$mf") 2>/dev/null ||
14525$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14526 X"$mf" : 'X\(//\)[^/]' \| \
14527 X"$mf" : 'X\(//\)$' \| \
14528 X"$mf" : 'X\(/\)' \| \
14529 . : '\(.\)' 2>/dev/null ||
14530echo X"$mf" |
14531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14533 /^X\(\/\/\)$/{ s//\1/; q; }
14534 /^X\(\/\).*/{ s//\1/; q; }
14535 s/.*/./; q'`
14536 else
14537 continue
14538 fi
14539 # Extract the definition of DEPDIR, am__include, and am__quote
14540 # from the Makefile without running `make'.
14541 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14542 test -z "$DEPDIR" && continue
14543 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14544 test -z "am__include" && continue
14545 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14546 # When using ansi2knr, U may be empty or an underscore; expand it
14547 U=`sed -n 's/^U = //p' < "$mf"`
14548 # Find all dependency output files, they are included files with
14549 # $(DEPDIR) in their names. We invoke sed twice because it is the
14550 # simplest approach to changing $(DEPDIR) to its actual value in the
14551 # expansion.
14552 for file in `sed -n "
14553 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14554 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14555 # Make sure the directory exists.
14556 test -f "$dirpart/$file" && continue
14557 fdir=`(dirname "$file") 2>/dev/null ||
14558$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14559 X"$file" : 'X\(//\)[^/]' \| \
14560 X"$file" : 'X\(//\)$' \| \
14561 X"$file" : 'X\(/\)' \| \
14562 . : '\(.\)' 2>/dev/null ||
14563echo X"$file" |
14564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14566 /^X\(\/\/\)$/{ s//\1/; q; }
14567 /^X\(\/\).*/{ s//\1/; q; }
14568 s/.*/./; q'`
14569 { if $as_mkdir_p; then
14570 mkdir -p $dirpart/$fdir
14571 else
14572 as_dir=$dirpart/$fdir
14573 as_dirs=
14574 while test ! -d "$as_dir"; do
14575 as_dirs="$as_dir $as_dirs"
14576 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14577$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14578 X"$as_dir" : 'X\(//\)[^/]' \| \
14579 X"$as_dir" : 'X\(//\)$' \| \
14580 X"$as_dir" : 'X\(/\)' \| \
14581 . : '\(.\)' 2>/dev/null ||
14582echo X"$as_dir" |
14583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14585 /^X\(\/\/\)$/{ s//\1/; q; }
14586 /^X\(\/\).*/{ s//\1/; q; }
14587 s/.*/./; q'`
14588 done
14589 test ! -n "$as_dirs" || mkdir $as_dirs
14590 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14591echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14592 { (exit 1); exit 1; }; }; }
14593
14594 # echo "creating $dirpart/$file"
14595 echo '# dummy' > "$dirpart/$file"
14596 done
14597done
d7040cdb
SE
14598 ;;
14599 libtool )
14600
14601 # See if we are running on zsh, and set the options which allow our
14602 # commands through without removal of \ escapes.
14603 if test -n "${ZSH_VERSION+set}" ; then
14604 setopt NO_GLOB_SUBST
14605 fi
14606
14607 cfgfile="${ofile}T"
14608 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14609 $RM "$cfgfile"
14610
14611 cat <<_LT_EOF >> "$cfgfile"
14612#! $SHELL
14613
14614# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14615# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14616# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14617# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14618#
14619# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14620# 2006, 2007 Free Software Foundation, Inc.
14621#
14622# This file is part of GNU Libtool:
14623# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14624#
14625# This program is free software; you can redistribute it and/or modify
14626# it under the terms of the GNU General Public License as published by
67310ccd 14627# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
14628# (at your option) any later version.
14629#
14630# This program is distributed in the hope that it will be useful, but
14631# WITHOUT ANY WARRANTY; without even the implied warranty of
14632# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14633# General Public License for more details.
14634#
14635# You should have received a copy of the GNU General Public License
14636# along with this program; if not, a copy can be downloaded from
14637# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14638# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14639# MA 02110-1301, USA.
14640#
14641# As a special exception to the GNU General Public License, if you
14642# distribute this file as part of a program that contains a
14643# configuration script generated by Autoconf, you may include it under
14644# the same distribution terms that you use for the rest of that program.
14645
14646
14647# The names of the tagged configurations supported by this script.
14648available_tags=""
14649
14650# ### BEGIN LIBTOOL CONFIG
14651
14652# Which release of libtool.m4 was used?
14653macro_version=$macro_version
14654macro_revision=$macro_revision
14655
14656# Whether or not to build shared libraries.
14657build_libtool_libs=$enable_shared
14658
14659# Whether or not to build static libraries.
14660build_old_libs=$enable_static
14661
14662# What type of objects to build.
14663pic_mode=$pic_mode
14664
14665# Whether or not to optimize for fast installation.
14666fast_install=$enable_fast_install
14667
14668# The host system.
14669host_alias=$host_alias
14670host=$host
14671host_os=$host_os
14672
14673# The build system.
14674build_alias=$build_alias
14675build=$build
14676build_os=$build_os
14677
14678# A sed program that does not truncate output.
14679SED=$lt_SED
14680
14681# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14682Xsed="\$SED -e 1s/^X//"
14683
14684# A grep program that handles long lines.
14685GREP=$lt_GREP
14686
14687# An ERE matcher.
14688EGREP=$lt_EGREP
14689
14690# A literal string matcher.
14691FGREP=$lt_FGREP
14692
14693# A BSD- or MS-compatible name lister.
14694NM=$lt_NM
14695
14696# Whether we need soft or hard links.
14697LN_S=$lt_LN_S
14698
14699# What is the maximum length of a command?
14700max_cmd_len=$max_cmd_len
14701
14702# Object file suffix (normally "o").
14703objext=$ac_objext
14704
14705# Executable file suffix (normally "").
14706exeext=$exeext
14707
14708# whether the shell understands "unset".
14709lt_unset=$lt_unset
14710
14711# turn spaces into newlines.
14712SP2NL=$lt_lt_SP2NL
14713
14714# turn newlines into spaces.
14715NL2SP=$lt_lt_NL2SP
14716
14717# How to create reloadable object files.
14718reload_flag=$lt_reload_flag
14719reload_cmds=$lt_reload_cmds
14720
14721# Method to check whether dependent libraries are shared objects.
14722deplibs_check_method=$lt_deplibs_check_method
14723
14724# Command to use when deplibs_check_method == "file_magic".
14725file_magic_cmd=$lt_file_magic_cmd
14726
14727# The archiver.
14728AR=$lt_AR
14729AR_FLAGS=$lt_AR_FLAGS
14730
14731# A symbol stripping program.
14732STRIP=$lt_STRIP
14733
14734# Commands used to install an old-style archive.
14735RANLIB=$lt_RANLIB
14736old_postinstall_cmds=$lt_old_postinstall_cmds
14737old_postuninstall_cmds=$lt_old_postuninstall_cmds
14738
14739# A C compiler.
14740LTCC=$lt_CC
14741
14742# LTCC compiler flags.
14743LTCFLAGS=$lt_CFLAGS
14744
14745# Take the output of nm and produce a listing of raw symbols and C names.
14746global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14747
14748# Transform the output of nm in a proper C declaration.
14749global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14750
14751# Transform the output of nm in a C name address pair.
14752global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14753
14754# The name of the directory that contains temporary libtool files.
14755objdir=$objdir
14756
14757# Shell to use when invoking shell scripts.
14758SHELL=$lt_SHELL
14759
14760# An echo program that does not interpret backslashes.
14761ECHO=$lt_ECHO
14762
14763# Used to examine libraries when file_magic_cmd begins with "file".
14764MAGIC_CMD=$MAGIC_CMD
14765
14766# Must we lock files when doing compilation?
14767need_locks=$lt_need_locks
14768
14769# Old archive suffix (normally "a").
14770libext=$libext
14771
14772# Shared library suffix (normally ".so").
14773shrext_cmds=$lt_shrext_cmds
14774
14775# The commands to extract the exported symbol list from a shared archive.
14776extract_expsyms_cmds=$lt_extract_expsyms_cmds
14777
14778# Variables whose values should be saved in libtool wrapper scripts and
14779# restored at link time.
14780variables_saved_for_relink=$lt_variables_saved_for_relink
14781
14782# Do we need the "lib" prefix for modules?
14783need_lib_prefix=$need_lib_prefix
14784
14785# Do we need a version for libraries?
14786need_version=$need_version
14787
14788# Library versioning type.
14789version_type=$version_type
14790
14791# Shared library runtime path variable.
14792runpath_var=$runpath_var
14793
14794# Shared library path variable.
14795shlibpath_var=$shlibpath_var
14796
14797# Is shlibpath searched before the hard-coded library search path?
14798shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14799
14800# Format of library name prefix.
14801libname_spec=$lt_libname_spec
14802
14803# List of archive names. First name is the real one, the rest are links.
14804# The last name is the one that the linker finds with -lNAME
14805library_names_spec=$lt_library_names_spec
14806
14807# The coded name of the library, if different from the real name.
14808soname_spec=$lt_soname_spec
14809
14810# Command to use after installation of a shared archive.
14811postinstall_cmds=$lt_postinstall_cmds
14812
14813# Command to use after uninstallation of a shared archive.
14814postuninstall_cmds=$lt_postuninstall_cmds
14815
14816# Commands used to finish a libtool library installation in a directory.
14817finish_cmds=$lt_finish_cmds
14818
14819# As "finish_cmds", except a single script fragment to be evaled but
14820# not shown.
14821finish_eval=$lt_finish_eval
14822
14823# Whether we should hardcode library paths into libraries.
14824hardcode_into_libs=$hardcode_into_libs
14825
14826# Compile-time system search path for libraries.
14827sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14828
14829# Run-time system search path for libraries.
14830sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14831
14832# Whether dlopen is supported.
14833dlopen_support=$enable_dlopen
14834
14835# Whether dlopen of programs is supported.
14836dlopen_self=$enable_dlopen_self
14837
14838# Whether dlopen of statically linked programs is supported.
14839dlopen_self_static=$enable_dlopen_self_static
14840
14841# Commands to strip libraries.
14842old_striplib=$lt_old_striplib
14843striplib=$lt_striplib
14844
14845
14846# The linker used to build libraries.
14847LD=$lt_LD
14848
14849# Commands used to build an old-style archive.
14850old_archive_cmds=$lt_old_archive_cmds
14851
14852# A language specific compiler.
14853CC=$lt_compiler
14854
14855# Is the compiler the GNU compiler?
14856with_gcc=$GCC
14857
14858# Compiler flag to turn off builtin functions.
14859no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14860
14861# How to pass a linker flag through the compiler.
14862wl=$lt_lt_prog_compiler_wl
14863
14864# Additional compiler flags for building library objects.
14865pic_flag=$lt_lt_prog_compiler_pic
14866
14867# Compiler flag to prevent dynamic linking.
14868link_static_flag=$lt_lt_prog_compiler_static
14869
14870# Does compiler simultaneously support -c and -o options?
14871compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14872
14873# Whether or not to add -lc for building shared libraries.
14874build_libtool_need_lc=$archive_cmds_need_lc
14875
14876# Whether or not to disallow shared libs when runtime libs are static.
14877allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14878
14879# Compiler flag to allow reflexive dlopens.
14880export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14881
14882# Compiler flag to generate shared objects directly from archives.
14883whole_archive_flag_spec=$lt_whole_archive_flag_spec
14884
14885# Whether the compiler copes with passing no objects directly.
14886compiler_needs_object=$lt_compiler_needs_object
14887
14888# Create an old-style archive from a shared archive.
14889old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14890
14891# Create a temporary old-style archive to link instead of a shared archive.
14892old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14893
14894# Commands used to build a shared archive.
14895archive_cmds=$lt_archive_cmds
14896archive_expsym_cmds=$lt_archive_expsym_cmds
14897
14898# Commands used to build a loadable module if different from building
14899# a shared archive.
14900module_cmds=$lt_module_cmds
14901module_expsym_cmds=$lt_module_expsym_cmds
14902
14903# Whether we are building with GNU ld or not.
14904with_gnu_ld=$lt_with_gnu_ld
14905
14906# Flag that allows shared libraries with undefined symbols to be built.
14907allow_undefined_flag=$lt_allow_undefined_flag
14908
14909# Flag that enforces no undefined symbols.
14910no_undefined_flag=$lt_no_undefined_flag
14911
14912# Flag to hardcode \$libdir into a binary during linking.
14913# This must work even if \$libdir does not exist
14914hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14915
14916# If ld is used when linking, flag to hardcode \$libdir into a binary
14917# during linking. This must work even if \$libdir does not exist.
14918hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14919
14920# Whether we need a single "-rpath" flag with a separated argument.
14921hardcode_libdir_separator=$lt_hardcode_libdir_separator
14922
14923# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14924# DIR into the resulting binary.
14925hardcode_direct=$hardcode_direct
14926
14927# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14928# DIR into the resulting binary and the resulting library dependency is
14929# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14930# library is relocated.
14931hardcode_direct_absolute=$hardcode_direct_absolute
14932
14933# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14934# into the resulting binary.
14935hardcode_minus_L=$hardcode_minus_L
14936
14937# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14938# into the resulting binary.
14939hardcode_shlibpath_var=$hardcode_shlibpath_var
14940
14941# Set to "yes" if building a shared library automatically hardcodes DIR
14942# into the library and all subsequent libraries and executables linked
14943# against it.
14944hardcode_automatic=$hardcode_automatic
14945
14946# Set to yes if linker adds runtime paths of dependent libraries
14947# to runtime path list.
14948inherit_rpath=$inherit_rpath
14949
14950# Whether libtool must link a program against all its dependency libraries.
14951link_all_deplibs=$link_all_deplibs
14952
14953# Fix the shell variable \$srcfile for the compiler.
14954fix_srcfile_path=$lt_fix_srcfile_path
14955
14956# Set to "yes" if exported symbols are required.
14957always_export_symbols=$always_export_symbols
14958
14959# The commands to list exported symbols.
14960export_symbols_cmds=$lt_export_symbols_cmds
14961
14962# Symbols that should not be listed in the preloaded symbols.
14963exclude_expsyms=$lt_exclude_expsyms
14964
14965# Symbols that must always be exported.
14966include_expsyms=$lt_include_expsyms
14967
14968# Commands necessary for linking programs (against libraries) with templates.
14969prelink_cmds=$lt_prelink_cmds
14970
14971# Specify filename containing input files.
14972file_list_spec=$lt_file_list_spec
14973
14974# How to hardcode a shared library path into an executable.
14975hardcode_action=$hardcode_action
14976
14977# ### END LIBTOOL CONFIG
14978
14979_LT_EOF
14980
14981 case $host_os in
14982 aix3*)
14983 cat <<\_LT_EOF >> "$cfgfile"
14984# AIX sometimes has problems with the GCC collect2 program. For some
14985# reason, if we set the COLLECT_NAMES environment variable, the problems
14986# vanish in a puff of smoke.
14987if test "X${COLLECT_NAMES+set}" != Xset; then
14988 COLLECT_NAMES=
14989 export COLLECT_NAMES
14990fi
14991_LT_EOF
14992 ;;
14993 esac
14994
14995
14996ltmain="$ac_aux_dir/ltmain.sh"
14997
14998
14999 # We use sed instead of cat because bash on DJGPP gets confused if
15000 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15001 # text mode, it properly converts lines to CR/LF. This bash problem
15002 # is reportedly fixed, but why not run on old versions too?
15003 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15004 || (rm -f "$cfgfile"; exit 1)
15005
15006 case $xsi_shell in
15007 yes)
15008 cat << \_LT_EOF >> "$cfgfile"
15009# func_dirname file append nondir_replacement
15010# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15011# otherwise set result to NONDIR_REPLACEMENT.
15012func_dirname ()
15013{
15014 case ${1} in
15015 */*) func_dirname_result="${1%/*}${2}" ;;
15016 * ) func_dirname_result="${3}" ;;
15017 esac
15018}
15019
15020# func_basename file
15021func_basename ()
15022{
15023 func_basename_result="${1##*/}"
15024}
15025
15026# func_stripname prefix suffix name
15027# strip PREFIX and SUFFIX off of NAME.
15028# PREFIX and SUFFIX must not contain globbing or regex special
15029# characters, hashes, percent signs, but SUFFIX may contain a leading
15030# dot (in which case that matches only a dot).
15031func_stripname ()
15032{
15033 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15034 # positional parameters, so assign one to ordinary parameter first.
15035 func_stripname_result=${3}
15036 func_stripname_result=${func_stripname_result#"${1}"}
15037 func_stripname_result=${func_stripname_result%"${2}"}
15038}
15039
15040# func_opt_split
15041func_opt_split ()
15042{
15043 func_opt_split_opt=${1%%=*}
15044 func_opt_split_arg=${1#*=}
15045}
15046
15047# func_lo2o object
15048func_lo2o ()
15049{
15050 case ${1} in
15051 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15052 *) func_lo2o_result=${1} ;;
15053 esac
15054}
15055_LT_EOF
15056 ;;
15057 *) # Bourne compatible functions.
15058 cat << \_LT_EOF >> "$cfgfile"
15059# func_dirname file append nondir_replacement
15060# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15061# otherwise set result to NONDIR_REPLACEMENT.
15062func_dirname ()
15063{
15064 # Extract subdirectory from the argument.
15065 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15066 if test "X$func_dirname_result" = "X${1}"; then
15067 func_dirname_result="${3}"
15068 else
15069 func_dirname_result="$func_dirname_result${2}"
15070 fi
15071}
15072
15073# func_basename file
15074func_basename ()
15075{
15076 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15077}
15078
15079# func_stripname prefix suffix name
15080# strip PREFIX and SUFFIX off of NAME.
15081# PREFIX and SUFFIX must not contain globbing or regex special
15082# characters, hashes, percent signs, but SUFFIX may contain a leading
15083# dot (in which case that matches only a dot).
15084# func_strip_suffix prefix name
15085func_stripname ()
15086{
15087 case ${2} in
15088 .*) func_stripname_result=`$ECHO "X${3}" \
15089 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15090 *) func_stripname_result=`$ECHO "X${3}" \
15091 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15092 esac
15093}
15094
15095# sed scripts:
15096my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15097my_sed_long_arg='1s/^-[^=]*=//'
15098
15099# func_opt_split
15100func_opt_split ()
15101{
15102 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15103 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15104}
15105
15106# func_lo2o object
15107func_lo2o ()
15108{
15109 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15110}
15111_LT_EOF
15112esac
15113
15114case $lt_shell_append in
15115 yes)
15116 cat << \_LT_EOF >> "$cfgfile"
15117
15118# func_append var value
15119# Append VALUE to the end of shell variable VAR.
15120func_append ()
15121{
15122 eval "$1+=\$2"
15123}
15124_LT_EOF
15125 ;;
15126 *)
15127 cat << \_LT_EOF >> "$cfgfile"
15128
15129# func_append var value
15130# Append VALUE to the end of shell variable VAR.
15131func_append ()
15132{
15133 eval "$1=\$$1\$2"
15134}
15135_LT_EOF
15136 ;;
15137 esac
15138
15139
15140 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15141 || (rm -f "$cfgfile"; exit 1)
15142
15143 mv -f "$cfgfile" "$ofile" ||
15144 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15145 chmod +x "$ofile"
15146
42ecbf5e 15147 ;;
20e95c23
DJ
15148 default-1 )
15149 for ac_file in $CONFIG_FILES; do
15150 # Support "outfile[:infile[:infile...]]"
15151 case "$ac_file" in
15152 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15153 esac
15154 # PO directories have a Makefile.in generated from Makefile.in.in.
15155 case "$ac_file" in */Makefile.in)
15156 # Adjust a relative srcdir.
15157 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15158 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15159 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15160 # In autoconf-2.13 it is called $ac_given_srcdir.
15161 # In autoconf-2.50 it is called $srcdir.
15162 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15163 case "$ac_given_srcdir" in
15164 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15165 /*) top_srcdir="$ac_given_srcdir" ;;
15166 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15167 esac
15168 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15169 rm -f "$ac_dir/POTFILES"
15170 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15171 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15172 POMAKEFILEDEPS="POTFILES.in"
15173 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15174 # on $ac_dir but don't depend on user-specified configuration
15175 # parameters.
15176 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15177 # The LINGUAS file contains the set of available languages.
15178 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15179 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15180 fi
15181 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15182 # Hide the ALL_LINGUAS assigment from automake.
15183 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15184 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15185 else
15186 # The set of available languages was given in configure.in.
15187 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15188 fi
15189 case "$ac_given_srcdir" in
15190 .) srcdirpre= ;;
15191 *) srcdirpre='$(srcdir)/' ;;
15192 esac
15193 POFILES=
15194 GMOFILES=
15195 UPDATEPOFILES=
15196 DUMMYPOFILES=
15197 for lang in $ALL_LINGUAS; do
15198 POFILES="$POFILES $srcdirpre$lang.po"
15199 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15200 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15201 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15202 done
15203 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15204 # environment variable.
15205 INST_LINGUAS=
15206 if test -n "$ALL_LINGUAS"; then
15207 for presentlang in $ALL_LINGUAS; do
15208 useit=no
15209 if test "%UNSET%" != "$LINGUAS"; then
15210 desiredlanguages="$LINGUAS"
15211 else
15212 desiredlanguages="$ALL_LINGUAS"
15213 fi
15214 for desiredlang in $desiredlanguages; do
15215 # Use the presentlang catalog if desiredlang is
15216 # a. equal to presentlang, or
15217 # b. a variant of presentlang (because in this case,
15218 # presentlang can be used as a fallback for messages
15219 # which are not translated in the desiredlang catalog).
15220 case "$desiredlang" in
15221 "$presentlang"*) useit=yes;;
15222 esac
15223 done
15224 if test $useit = yes; then
15225 INST_LINGUAS="$INST_LINGUAS $presentlang"
15226 fi
15227 done
15228 fi
15229 CATALOGS=
15230 if test -n "$INST_LINGUAS"; then
15231 for lang in $INST_LINGUAS; do
15232 CATALOGS="$CATALOGS $lang.gmo"
15233 done
15234 fi
15235 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15236 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"
15237 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15238 if test -f "$f"; then
15239 case "$f" in
15240 *.orig | *.bak | *~) ;;
15241 *) cat "$f" >> "$ac_dir/Makefile" ;;
15242 esac
15243 fi
15244 done
15245 fi
15246 ;;
15247 esac
15248 done ;;
42ecbf5e
DJ
15249 esac
15250done
15251_ACEOF
15252
15253cat >>$CONFIG_STATUS <<\_ACEOF
15254
15255{ (exit 0); exit 0; }
15256_ACEOF
252b5132 15257chmod +x $CONFIG_STATUS
42ecbf5e
DJ
15258ac_clean_files=$ac_clean_files_save
15259
15260
15261# configure is writing to config.log, and then calls config.status.
15262# config.status does its own redirection, appending to config.log.
15263# Unfortunately, on DOS this fails, as config.log is still kept open
15264# by configure, so config.status won't be able to write to it; its
15265# output is simply discarded. So we exec the FD to /dev/null,
15266# effectively closing config.log, so it can be properly (re)opened and
15267# appended to by config.status. When coming back to configure, we
15268# need to make the FD available again.
15269if test "$no_create" != yes; then
15270 ac_cs_success=:
15271 ac_config_status_args=
15272 test "$silent" = yes &&
15273 ac_config_status_args="$ac_config_status_args --quiet"
15274 exec 5>/dev/null
15275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15276 exec 5>>config.log
15277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15278 # would make configure fail if this is the last instruction.
15279 $ac_cs_success || { (exit 1); exit 1; }
15280fi
252b5132 15281
This page took 1.102993 seconds and 4 git commands to generate.