2007-06-14 Paolo Bonzini <bonzini@gnu.org>
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
979273e3 3# Generated by GNU Autoconf 2.59.
252b5132 4#
979273e3 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.
979273e3
NN
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
979273e3
NN
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
979273e3
NN
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
979273e3
NN
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="z8k-dis.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
d7040cdb 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
979273e3 462ac_subst_files=''
252b5132
RH
463
464# Initialize some variables set by options.
979273e3
NN
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.
979273e3 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
979273e3
NN
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
979273e3 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
979273e3 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=*)
979273e3 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
979273e3 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 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=*)
979273e3
NN
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=*)
979273e3 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
979273e3 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
979273e3
NN
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-*)
979273e3 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
979273e3
NN
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
979273e3 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=*)
979273e3 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
979273e3
NN
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)
979273e3 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
979273e3 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=*)
979273e3 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=*)
979273e3 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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 \
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
979273e3 710 site=$ac_optarg ;;
1fe1f39c 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 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=*)
979273e3 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
979273e3
NN
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
979273e3 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
979273e3
NN
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'`
979273e3
NN
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
979273e3 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
979273e3 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
979273e3
NN
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=*)
979273e3 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=*)
979273e3 773 x_libraries=$ac_optarg ;;
252b5132 774
979273e3
NN
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
979273e3
NN
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 *)
979273e3
NN
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
979273e3
NN
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
979273e3
NN
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
979273e3
NN
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
979273e3
NN
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
979273e3
NN
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
252b5132 847
979273e3
NN
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.
979273e3
NN
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
979273e3
NN
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
979273e3
NN
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
979273e3
NN
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
979273e3
NN
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
979273e3 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
979273e3
NN
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
979273e3 937Defaults for the options are specified in brackets.
ac48eca1 938
979273e3
NN
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
979273e3
NN
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
979273e3 964For better control, use the options below.
ac48eca1 965
979273e3
NN
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
979273e3 981 cat <<\_ACEOF
252b5132 982
979273e3
NN
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
979273e3
NN
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
979273e3 995if test -n "$ac_init_help"; then
252b5132 996
979273e3 997 cat <<\_ACEOF
252b5132 998
979273e3
NN
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8ae85421
AM
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=no]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
979273e3
NN
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-targets alternative target configurations
1012 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
1013 --enable-werror treat compile warnings as errors
1014 --enable-build-warnings enable build-time compiler warnings
8ae85421
AM
1015 --enable-maintainer-mode enable make rules and dependencies not useful
1016 (and sometimes confusing) to the casual installer
979273e3
NN
1017 --enable-install-libbfd controls installation of libbfd and related headers
1018 --disable-nls do not use Native Language Support
1019 --enable-cgen-maint=dir build cgen generated files
1020
1021Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
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]
252b5132 1027
979273e3
NN
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
a2d91340 1036
979273e3
NN
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
a2d91340
AC
1041fi
1042
979273e3
NN
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
a2d91340 1057
979273e3
NN
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,/$,,'`
a2d91340 1065 fi ;;
979273e3
NN
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 ;;
a2d91340
AC
1072esac
1073
979273e3
NN
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;;
a2d91340 1084esac
979273e3
NN
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;;
a2d91340
AC
1111esac
1112
979273e3
NN
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
8ae85421 1128 cd $ac_popdir
979273e3
NN
1129 done
1130fi
a2d91340 1131
979273e3
NN
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
252b5132 1135
979273e3
NN
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.
2c73f9d8 1146
979273e3
NN
1147It was created by $as_me, which was
1148generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1149
979273e3 1150 $ $0 $@
252b5132 1151
979273e3
NN
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
979273e3 1186} >&5
75798298 1187
979273e3 1188cat >&5 <<_ACEOF
252b5132 1189
252b5132 1190
979273e3
NN
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
1194
1195_ACEOF
1196
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
1476
1477ac_aux_dir=
1478for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1479 if test -f $ac_dir/install-sh; then
1480 ac_aux_dir=$ac_dir
1481 ac_install_sh="$ac_aux_dir/install-sh -c"
1482 break
1483 elif test -f $ac_dir/install.sh; then
1484 ac_aux_dir=$ac_dir
1485 ac_install_sh="$ac_aux_dir/install.sh -c"
1486 break
1487 elif test -f $ac_dir/shtool; then
1488 ac_aux_dir=$ac_dir
1489 ac_install_sh="$ac_aux_dir/shtool install -c"
1490 break
1491 fi
1492done
1493if test -z "$ac_aux_dir"; then
1494 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1495echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1496 { (exit 1); exit 1; }; }
1497fi
1498ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1499ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1500ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1501
1502# Make sure we can run config.sub.
1503$ac_config_sub sun4 >/dev/null 2>&1 ||
1504 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1505echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1506 { (exit 1); exit 1; }; }
1507
1508echo "$as_me:$LINENO: checking build system type" >&5
1509echo $ECHO_N "checking build system type... $ECHO_C" >&6
1510if test "${ac_cv_build+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1512else
1513 ac_cv_build_alias=$build_alias
1514test -z "$ac_cv_build_alias" &&
1515 ac_cv_build_alias=`$ac_config_guess`
1516test -z "$ac_cv_build_alias" &&
1517 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1518echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1519 { (exit 1); exit 1; }; }
1520ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1522echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1523 { (exit 1); exit 1; }; }
1524
1525fi
1526echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1527echo "${ECHO_T}$ac_cv_build" >&6
1528build=$ac_cv_build
1529build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532
1533
1534echo "$as_me:$LINENO: checking host system type" >&5
1535echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536if test "${ac_cv_host+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
1539 ac_cv_host_alias=$host_alias
1540test -z "$ac_cv_host_alias" &&
1541 ac_cv_host_alias=$ac_cv_build_alias
1542ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1543 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545 { (exit 1); exit 1; }; }
1546
1547fi
1548echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1549echo "${ECHO_T}$ac_cv_host" >&6
1550host=$ac_cv_host
1551host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554
1555
1556echo "$as_me:$LINENO: checking target system type" >&5
1557echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558if test "${ac_cv_target+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560else
1561 ac_cv_target_alias=$target_alias
1562test "x$ac_cv_target_alias" = "x" &&
1563 ac_cv_target_alias=$ac_cv_host_alias
1564ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1568
1569fi
1570echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1571echo "${ECHO_T}$ac_cv_target" >&6
1572target=$ac_cv_target
1573target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578# The aliases save the names the user supplied, while $host etc.
1579# will get canonicalized.
1580test -n "$target_alias" &&
1581 test "$program_prefix$program_suffix$program_transform_name" = \
1582 NONENONEs,x,x, &&
1583 program_prefix=${target_alias}-
1584ac_ext=c
1585ac_cpp='$CPP $CPPFLAGS'
1586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589if test -n "$ac_tool_prefix"; then
1590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1591set dummy ${ac_tool_prefix}gcc; ac_word=$2
1592echo "$as_me:$LINENO: checking for $ac_word" >&5
1593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594if test "${ac_cv_prog_CC+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1596else
1597 if test -n "$CC"; then
1598 ac_cv_prog_CC="$CC" # Let the user override the test.
1599else
1600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601for as_dir in $PATH
1602do
1603 IFS=$as_save_IFS
1604 test -z "$as_dir" && as_dir=.
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609 break 2
1610 fi
1611done
1612done
1613
1614fi
1615fi
1616CC=$ac_cv_prog_CC
1617if test -n "$CC"; then
1618 echo "$as_me:$LINENO: result: $CC" >&5
1619echo "${ECHO_T}$CC" >&6
1620else
1621 echo "$as_me:$LINENO: result: no" >&5
1622echo "${ECHO_T}no" >&6
1623fi
1624
1625fi
1626if test -z "$ac_cv_prog_CC"; then
1627 ac_ct_CC=$CC
1628 # Extract the first word of "gcc", so it can be a program name with args.
1629set dummy gcc; ac_word=$2
1630echo "$as_me:$LINENO: checking for $ac_word" >&5
1631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 if test -n "$ac_ct_CC"; then
1636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1637else
1638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639for as_dir in $PATH
1640do
1641 IFS=$as_save_IFS
1642 test -z "$as_dir" && as_dir=.
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645 ac_cv_prog_ac_ct_CC="gcc"
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647 break 2
1648 fi
1649done
1650done
1651
1652fi
1653fi
1654ac_ct_CC=$ac_cv_prog_ac_ct_CC
1655if test -n "$ac_ct_CC"; then
1656 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1657echo "${ECHO_T}$ac_ct_CC" >&6
1658else
1659 echo "$as_me:$LINENO: result: no" >&5
1660echo "${ECHO_T}no" >&6
1661fi
1662
1663 CC=$ac_ct_CC
1664else
1665 CC="$ac_cv_prog_CC"
1666fi
1667
1668if test -z "$CC"; then
1669 if test -n "$ac_tool_prefix"; then
1670 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1671set dummy ${ac_tool_prefix}cc; ac_word=$2
1672echo "$as_me:$LINENO: checking for $ac_word" >&5
1673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1679else
1680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681for as_dir in $PATH
1682do
1683 IFS=$as_save_IFS
1684 test -z "$as_dir" && as_dir=.
1685 for ac_exec_ext in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687 ac_cv_prog_CC="${ac_tool_prefix}cc"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 break 2
1690 fi
1691done
1692done
1693
1694fi
1695fi
1696CC=$ac_cv_prog_CC
1697if test -n "$CC"; then
1698 echo "$as_me:$LINENO: result: $CC" >&5
1699echo "${ECHO_T}$CC" >&6
1700else
1701 echo "$as_me:$LINENO: result: no" >&5
1702echo "${ECHO_T}no" >&6
1703fi
1704
1705fi
1706if test -z "$ac_cv_prog_CC"; then
1707 ac_ct_CC=$CC
1708 # Extract the first word of "cc", so it can be a program name with args.
1709set dummy cc; ac_word=$2
1710echo "$as_me:$LINENO: checking for $ac_word" >&5
1711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714else
1715 if test -n "$ac_ct_CC"; then
1716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1717else
1718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719for as_dir in $PATH
1720do
1721 IFS=$as_save_IFS
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_ac_ct_CC="cc"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 break 2
1728 fi
1729done
1730done
1731
1732fi
1733fi
1734ac_ct_CC=$ac_cv_prog_ac_ct_CC
1735if test -n "$ac_ct_CC"; then
1736 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1737echo "${ECHO_T}$ac_ct_CC" >&6
1738else
1739 echo "$as_me:$LINENO: result: no" >&5
1740echo "${ECHO_T}no" >&6
1741fi
1742
1743 CC=$ac_ct_CC
1744else
1745 CC="$ac_cv_prog_CC"
1746fi
1747
1748fi
1749if test -z "$CC"; then
1750 # Extract the first word of "cc", so it can be a program name with args.
1751set dummy cc; ac_word=$2
1752echo "$as_me:$LINENO: checking for $ac_word" >&5
1753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754if test "${ac_cv_prog_CC+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757 if test -n "$CC"; then
1758 ac_cv_prog_CC="$CC" # Let the user override the test.
1759else
1760 ac_prog_rejected=no
1761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762for as_dir in $PATH
1763do
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1769 ac_prog_rejected=yes
1770 continue
1771 fi
1772 ac_cv_prog_CC="cc"
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774 break 2
1775 fi
1776done
1777done
1778
1779if test $ac_prog_rejected = yes; then
1780 # We found a bogon in the path, so make sure we never use it.
1781 set dummy $ac_cv_prog_CC
1782 shift
1783 if test $# != 0; then
1784 # We chose a different compiler from the bogus one.
1785 # However, it has the same basename, so the bogon will be chosen
1786 # first if we set CC to just the basename; use the full file name.
1787 shift
1788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1789 fi
1790fi
1791fi
1792fi
1793CC=$ac_cv_prog_CC
1794if test -n "$CC"; then
1795 echo "$as_me:$LINENO: result: $CC" >&5
1796echo "${ECHO_T}$CC" >&6
1797else
1798 echo "$as_me:$LINENO: result: no" >&5
1799echo "${ECHO_T}no" >&6
1800fi
1801
1802fi
1803if test -z "$CC"; then
1804 if test -n "$ac_tool_prefix"; then
1805 for ac_prog in cl
1806 do
1807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC="$CC" # Let the user override the test.
1816else
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1827 fi
1828done
1829done
1830
1831fi
1832fi
1833CC=$ac_cv_prog_CC
1834if test -n "$CC"; then
1835 echo "$as_me:$LINENO: result: $CC" >&5
1836echo "${ECHO_T}$CC" >&6
1837else
1838 echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842 test -n "$CC" && break
1843 done
1844fi
1845if test -z "$CC"; then
1846 ac_ct_CC=$CC
1847 for ac_prog in cl
1848do
1849 # Extract the first word of "$ac_prog", so it can be a program name with args.
1850set dummy $ac_prog; ac_word=$2
1851echo "$as_me:$LINENO: checking for $ac_word" >&5
1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856 if test -n "$ac_ct_CC"; then
1857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_ac_ct_CC="$ac_prog"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1869 fi
1870done
1871done
1872
1873fi
1874fi
1875ac_ct_CC=$ac_cv_prog_ac_ct_CC
1876if test -n "$ac_ct_CC"; then
1877 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1878echo "${ECHO_T}$ac_ct_CC" >&6
1879else
1880 echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6
1882fi
1883
1884 test -n "$ac_ct_CC" && break
1885done
1886
1887 CC=$ac_ct_CC
1888fi
1889
1890fi
1891
1892
1893test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1894See \`config.log' for more details." >&5
1895echo "$as_me: error: no acceptable C compiler found in \$PATH
1896See \`config.log' for more details." >&2;}
1897 { (exit 1); exit 1; }; }
1898
1899# Provide some information about the compiler.
1900echo "$as_me:$LINENO:" \
1901 "checking for C compiler version" >&5
1902ac_compiler=`set X $ac_compile; echo $2`
1903{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1904 (eval $ac_compiler --version </dev/null >&5) 2>&5
1905 ac_status=$?
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }
1908{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1909 (eval $ac_compiler -v </dev/null >&5) 2>&5
1910 ac_status=$?
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }
1913{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1914 (eval $ac_compiler -V </dev/null >&5) 2>&5
1915 ac_status=$?
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }
1918
1919cat >conftest.$ac_ext <<_ACEOF
1920/* confdefs.h. */
1921_ACEOF
1922cat confdefs.h >>conftest.$ac_ext
1923cat >>conftest.$ac_ext <<_ACEOF
1924/* end confdefs.h. */
1925
1926int
1927main ()
1928{
1929
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934ac_clean_files_save=$ac_clean_files
1935ac_clean_files="$ac_clean_files a.out a.exe b.out"
1936# Try to create an executable without -o first, disregard a.out.
1937# It will help us diagnose broken compilers, and finding out an intuition
1938# of exeext.
1939echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1940echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1941ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1942if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1943 (eval $ac_link_default) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; then
1947 # Find the output, starting from the most likely. This scheme is
1948# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1949# resort.
1950
1951# Be careful to initialize this variable, since it used to be cached.
1952# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1953ac_cv_exeext=
1954# b.out is created by i960 compilers.
1955for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1956do
1957 test -f "$ac_file" || continue
1958 case $ac_file in
1959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1960 ;;
1961 conftest.$ac_ext )
1962 # This is the source file.
1963 ;;
1964 [ab].out )
1965 # We found the default executable, but exeext='' is most
1966 # certainly right.
1967 break;;
1968 *.* )
1969 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1970 # FIXME: I believe we export ac_cv_exeext for Libtool,
1971 # but it would be cool to find out if it's true. Does anybody
1972 # maintain Libtool? --akim.
1973 export ac_cv_exeext
1974 break;;
1975 * )
1976 break;;
1977 esac
1978done
1979else
1980 echo "$as_me: failed program was:" >&5
1981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1984See \`config.log' for more details." >&5
1985echo "$as_me: error: C compiler cannot create executables
1986See \`config.log' for more details." >&2;}
1987 { (exit 77); exit 77; }; }
1988fi
1989
1990ac_exeext=$ac_cv_exeext
1991echo "$as_me:$LINENO: result: $ac_file" >&5
1992echo "${ECHO_T}$ac_file" >&6
1993
1994# Check the compiler produces executables we can run. If not, either
1995# the compiler is broken, or we cross compile.
1996echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1997echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1998# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1999# If not cross compiling, check that we can run a simple program.
2000if test "$cross_compiling" != yes; then
2001 if { ac_try='./$ac_file'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
2007 cross_compiling=no
2008 else
2009 if test "$cross_compiling" = maybe; then
2010 cross_compiling=yes
2011 else
2012 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2013If you meant to cross compile, use \`--host'.
2014See \`config.log' for more details." >&5
2015echo "$as_me: error: cannot run C compiled programs.
2016If you meant to cross compile, use \`--host'.
2017See \`config.log' for more details." >&2;}
2018 { (exit 1); exit 1; }; }
2019 fi
2020 fi
2021fi
2022echo "$as_me:$LINENO: result: yes" >&5
2023echo "${ECHO_T}yes" >&6
2024
2025rm -f a.out a.exe conftest$ac_cv_exeext b.out
2026ac_clean_files=$ac_clean_files_save
2027# Check the compiler produces executables we can run. If not, either
2028# the compiler is broken, or we cross compile.
2029echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2030echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2031echo "$as_me:$LINENO: result: $cross_compiling" >&5
2032echo "${ECHO_T}$cross_compiling" >&6
2033
2034echo "$as_me:$LINENO: checking for suffix of executables" >&5
2035echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2037 (eval $ac_link) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; then
2041 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2042# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2043# work properly (i.e., refer to `conftest.exe'), while it won't with
2044# `rm'.
2045for ac_file in conftest.exe conftest conftest.*; do
2046 test -f "$ac_file" || continue
2047 case $ac_file in
2048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2049 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2050 export ac_cv_exeext
2051 break;;
2052 * ) break;;
2053 esac
2054done
2055else
2056 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2057See \`config.log' for more details." >&5
2058echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2059See \`config.log' for more details." >&2;}
2060 { (exit 1); exit 1; }; }
2061fi
2062
2063rm -f conftest$ac_cv_exeext
2064echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065echo "${ECHO_T}$ac_cv_exeext" >&6
2066
2067rm -f conftest.$ac_ext
2068EXEEXT=$ac_cv_exeext
2069ac_exeext=$EXEEXT
2070echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072if test "${ac_cv_objext+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075 cat >conftest.$ac_ext <<_ACEOF
2076/* confdefs.h. */
2077_ACEOF
2078cat confdefs.h >>conftest.$ac_ext
2079cat >>conftest.$ac_ext <<_ACEOF
2080/* end confdefs.h. */
2081
2082int
2083main ()
2084{
2085
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090rm -f conftest.o conftest.obj
2091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; then
2096 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2097 case $ac_file in
2098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2100 break;;
2101 esac
2102done
2103else
2104 echo "$as_me: failed program was:" >&5
2105sed 's/^/| /' conftest.$ac_ext >&5
2106
2107{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2108See \`config.log' for more details." >&5
2109echo "$as_me: error: cannot compute suffix of object files: cannot compile
2110See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2112fi
2113
2114rm -f conftest.$ac_cv_objext conftest.$ac_ext
2115fi
2116echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117echo "${ECHO_T}$ac_cv_objext" >&6
2118OBJEXT=$ac_cv_objext
2119ac_objext=$OBJEXT
2120echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125 cat >conftest.$ac_ext <<_ACEOF
2126/* confdefs.h. */
2127_ACEOF
2128cat confdefs.h >>conftest.$ac_ext
2129cat >>conftest.$ac_ext <<_ACEOF
2130/* end confdefs.h. */
2131
2132int
2133main ()
2134{
2135#ifndef __GNUC__
2136 choke me
2137#endif
2138
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143rm -f conftest.$ac_objext
2144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>conftest.er1
2146 ac_status=$?
2147 grep -v '^ *+' conftest.er1 >conftest.err
2148 rm -f conftest.er1
2149 cat conftest.err >&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
8ae85421
AM
2152 { ac_try='test -z "$ac_c_werror_flag"
2153 || test ! -s conftest.err'
979273e3
NN
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 (eval $ac_try) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; } &&
2159 { ac_try='test -s conftest.$ac_objext'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2165 ac_compiler_gnu=yes
2166else
2167 echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170ac_compiler_gnu=no
2171fi
2172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2173ac_cv_c_compiler_gnu=$ac_compiler_gnu
2174
2175fi
2176echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2177echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2178GCC=`test $ac_compiler_gnu = yes && echo yes`
2179ac_test_CFLAGS=${CFLAGS+set}
2180ac_save_CFLAGS=$CFLAGS
2181CFLAGS="-g"
2182echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2183echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2184if test "${ac_cv_prog_cc_g+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186else
2187 cat >conftest.$ac_ext <<_ACEOF
2188/* confdefs.h. */
2189_ACEOF
2190cat confdefs.h >>conftest.$ac_ext
2191cat >>conftest.$ac_ext <<_ACEOF
2192/* end confdefs.h. */
2193
2194int
2195main ()
2196{
2197
2198 ;
2199 return 0;
2200}
2201_ACEOF
2202rm -f conftest.$ac_objext
2203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204 (eval $ac_compile) 2>conftest.er1
2205 ac_status=$?
2206 grep -v '^ *+' conftest.er1 >conftest.err
2207 rm -f conftest.er1
2208 cat conftest.err >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); } &&
8ae85421
AM
2211 { ac_try='test -z "$ac_c_werror_flag"
2212 || test ! -s conftest.err'
979273e3
NN
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; } &&
2218 { ac_try='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 ac_cv_prog_cc_g=yes
2225else
2226 echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229ac_cv_prog_cc_g=no
2230fi
2231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2234echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2235if test "$ac_test_CFLAGS" = set; then
2236 CFLAGS=$ac_save_CFLAGS
2237elif test $ac_cv_prog_cc_g = yes; then
2238 if test "$GCC" = yes; then
2239 CFLAGS="-g -O2"
2240 else
2241 CFLAGS="-g"
2242 fi
2243else
2244 if test "$GCC" = yes; then
2245 CFLAGS="-O2"
2246 else
2247 CFLAGS=
2248 fi
2249fi
2250echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2251echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2252if test "${ac_cv_prog_cc_stdc+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2254else
2255 ac_cv_prog_cc_stdc=no
2256ac_save_CC=$CC
2257cat >conftest.$ac_ext <<_ACEOF
2258/* confdefs.h. */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h. */
2263#include <stdarg.h>
2264#include <stdio.h>
2265#include <sys/types.h>
2266#include <sys/stat.h>
2267/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2268struct buf { int x; };
2269FILE * (*rcsopen) (struct buf *, struct stat *, int);
2270static char *e (p, i)
2271 char **p;
2272 int i;
2273{
2274 return p[i];
2275}
2276static char *f (char * (*g) (char **, int), char **p, ...)
2277{
2278 char *s;
2279 va_list v;
2280 va_start (v,p);
2281 s = g (p, va_arg (v,int));
2282 va_end (v);
2283 return s;
2284}
2285
2286/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2287 function prototypes and stuff, but not '\xHH' hex character constants.
2288 These don't provoke an error unfortunately, instead are silently treated
2289 as 'x'. The following induces an error, until -std1 is added to get
2290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2291 array size at least. It's necessary to write '\x00'==0 to get something
2292 that's true only with -std1. */
2293int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2294
2295int test (int i, double x);
2296struct s1 {int (*f) (int a);};
2297struct s2 {int (*f) (double a);};
2298int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2299int argc;
2300char **argv;
2301int
2302main ()
2303{
2304return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2305 ;
2306 return 0;
2307}
2308_ACEOF
2309# Don't try gcc -ansi; that turns off useful extensions and
2310# breaks some systems' header files.
2311# AIX -qlanglvl=ansi
2312# Ultrix and OSF/1 -std1
2313# HP-UX 10.20 and later -Ae
2314# HP-UX older versions -Aa -D_HPUX_SOURCE
2315# SVR4 -Xc -D__EXTENSIONS__
2316for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2317do
2318 CC="$ac_save_CC $ac_arg"
2319 rm -f conftest.$ac_objext
2320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>conftest.er1
2322 ac_status=$?
2323 grep -v '^ *+' conftest.er1 >conftest.err
2324 rm -f conftest.er1
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
8ae85421
AM
2328 { ac_try='test -z "$ac_c_werror_flag"
2329 || test ! -s conftest.err'
979273e3
NN
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2341 ac_cv_prog_cc_stdc=$ac_arg
2342break
2343else
2344 echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347fi
2348rm -f conftest.err conftest.$ac_objext
2349done
2350rm -f conftest.$ac_ext conftest.$ac_objext
2351CC=$ac_save_CC
2352
2353fi
2354
2355case "x$ac_cv_prog_cc_stdc" in
2356 x|xno)
2357 echo "$as_me:$LINENO: result: none needed" >&5
2358echo "${ECHO_T}none needed" >&6 ;;
2359 *)
2360 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2361echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2362 CC="$CC $ac_cv_prog_cc_stdc" ;;
2363esac
2364
2365# Some people use a C++ compiler to compile C. Since we use `exit',
2366# in C++ we need to declare it. In case someone uses the same compiler
2367# for both compiling C and C++ we need to have the C++ compiler decide
2368# the declaration of exit, since it's the most demanding environment.
2369cat >conftest.$ac_ext <<_ACEOF
2370#ifndef __cplusplus
2371 choke me
2372#endif
2373_ACEOF
2374rm -f conftest.$ac_objext
2375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2377 ac_status=$?
2378 grep -v '^ *+' conftest.er1 >conftest.err
2379 rm -f conftest.er1
2380 cat conftest.err >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
8ae85421
AM
2383 { ac_try='test -z "$ac_c_werror_flag"
2384 || test ! -s conftest.err'
979273e3
NN
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 for ac_declaration in \
2397 '' \
2398 'extern "C" void std::exit (int) throw (); using std::exit;' \
2399 'extern "C" void std::exit (int); using std::exit;' \
2400 'extern "C" void exit (int) throw ();' \
2401 'extern "C" void exit (int);' \
2402 'void exit (int);'
2403do
2404 cat >conftest.$ac_ext <<_ACEOF
2405/* confdefs.h. */
2406_ACEOF
2407cat confdefs.h >>conftest.$ac_ext
2408cat >>conftest.$ac_ext <<_ACEOF
2409/* end confdefs.h. */
2410$ac_declaration
2411#include <stdlib.h>
2412int
2413main ()
2414{
2415exit (42);
2416 ;
2417 return 0;
2418}
2419_ACEOF
2420rm -f conftest.$ac_objext
2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>conftest.er1
2423 ac_status=$?
2424 grep -v '^ *+' conftest.er1 >conftest.err
2425 rm -f conftest.er1
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
8ae85421
AM
2429 { ac_try='test -z "$ac_c_werror_flag"
2430 || test ! -s conftest.err'
979273e3
NN
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 (eval $ac_try) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; } &&
2436 { ac_try='test -s conftest.$ac_objext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2442 :
2443else
2444 echo "$as_me: failed program was:" >&5
2445sed 's/^/| /' conftest.$ac_ext >&5
2446
2447continue
2448fi
2449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450 cat >conftest.$ac_ext <<_ACEOF
2451/* confdefs.h. */
2452_ACEOF
2453cat confdefs.h >>conftest.$ac_ext
2454cat >>conftest.$ac_ext <<_ACEOF
2455/* end confdefs.h. */
2456$ac_declaration
2457int
2458main ()
2459{
2460exit (42);
2461 ;
2462 return 0;
2463}
2464_ACEOF
2465rm -f conftest.$ac_objext
2466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2468 ac_status=$?
2469 grep -v '^ *+' conftest.er1 >conftest.err
2470 rm -f conftest.er1
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
8ae85421
AM
2474 { ac_try='test -z "$ac_c_werror_flag"
2475 || test ! -s conftest.err'
979273e3
NN
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 (eval $ac_try) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 (eval $ac_try) 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2487 break
2488else
2489 echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492fi
2493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494done
2495rm -f conftest*
2496if test -n "$ac_declaration"; then
2497 echo '#ifdef __cplusplus' >>confdefs.h
2498 echo $ac_declaration >>confdefs.h
2499 echo '#endif' >>confdefs.h
2500fi
2501
2502else
2503 echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506fi
2507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508ac_ext=c
2509ac_cpp='$CPP $CPPFLAGS'
2510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
2514
8ae85421
AM
2515echo "$as_me:$LINENO: checking for library containing strerror" >&5
2516echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2517if test "${ac_cv_search_strerror+set}" = set; then
979273e3
NN
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
8ae85421
AM
2520 ac_func_search_save_LIBS=$LIBS
2521ac_cv_search_strerror=no
979273e3
NN
2522cat >conftest.$ac_ext <<_ACEOF
2523/* confdefs.h. */
2524_ACEOF
2525cat confdefs.h >>conftest.$ac_ext
2526cat >>conftest.$ac_ext <<_ACEOF
2527/* end confdefs.h. */
2528
2529/* Override any gcc2 internal prototype to avoid an error. */
2530#ifdef __cplusplus
2531extern "C"
2532#endif
2533/* We use char because int might match the return type of a gcc2
2534 builtin and then its argument prototype would still apply. */
2535char strerror ();
2536int
2537main ()
2538{
2539strerror ();
2540 ;
2541 return 0;
2542}
2543_ACEOF
2544rm -f conftest.$ac_objext conftest$ac_exeext
2545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
8ae85421
AM
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
979273e3
NN
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest$ac_exeext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
8ae85421 2566 ac_cv_search_strerror="none required"
979273e3
NN
2567else
2568 echo "$as_me: failed program was:" >&5
2569sed 's/^/| /' conftest.$ac_ext >&5
2570
979273e3
NN
2571fi
2572rm -f conftest.err conftest.$ac_objext \
2573 conftest$ac_exeext conftest.$ac_ext
8ae85421
AM
2574if test "$ac_cv_search_strerror" = no; then
2575 for ac_lib in cposix; do
2576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2577 cat >conftest.$ac_ext <<_ACEOF
2578/* confdefs.h. */
2579_ACEOF
2580cat confdefs.h >>conftest.$ac_ext
2581cat >>conftest.$ac_ext <<_ACEOF
2582/* end confdefs.h. */
2583
2584/* Override any gcc2 internal prototype to avoid an error. */
2585#ifdef __cplusplus
2586extern "C"
2587#endif
2588/* We use char because int might match the return type of a gcc2
2589 builtin and then its argument prototype would still apply. */
2590char strerror ();
2591int
2592main ()
2593{
2594strerror ();
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext conftest$ac_exeext
2600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2601 (eval $ac_link) 2>conftest.er1
2602 ac_status=$?
2603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest$ac_exeext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 ac_cv_search_strerror="-l$ac_lib"
2622break
2623else
2624 echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
979273e3 2627fi
8ae85421
AM
2628rm -f conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2630 done
979273e3 2631fi
8ae85421
AM
2632LIBS=$ac_func_search_save_LIBS
2633fi
2634echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2635echo "${ECHO_T}$ac_cv_search_strerror" >&6
2636if test "$ac_cv_search_strerror" != no; then
2637 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
979273e3 2638
8ae85421 2639fi
979273e3
NN
2640
2641
2642# We currently only use the version number for the name of any shared
2643# library. For user convenience, we always use the same version
2644# number that BFD is using.
2645BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2646
8ae85421 2647am__api_version="1.9"
979273e3
NN
2648# Find a good install program. We prefer a C program (faster),
2649# so one script is as good as another. But avoid the broken or
2650# incompatible versions:
2651# SysV /etc/install, /usr/sbin/install
2652# SunOS /usr/etc/install
2653# IRIX /sbin/install
2654# AIX /bin/install
2655# AmigaOS /C/install, which installs bootblocks on floppy discs
2656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2657# AFS /usr/afsws/bin/install, which mishandles nonexistent args
252b5132 2658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 2659# OS/2's system install, which has a completely different semantic
252b5132 2660# ./install, which can be erroneously created by make from ./install.sh.
979273e3
NN
2661echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2662echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2663if test -z "$INSTALL"; then
979273e3
NN
2664if test "${ac_cv_path_install+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2666else
979273e3
NN
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 # Account for people who put trailing slashes in PATH elements.
2673case $as_dir/ in
2674 ./ | .// | /cC/* | \
2675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2676 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2677 /usr/ucb/* ) ;;
2678 *)
2679 # OSF1 and SCO ODT 3.0 have their own names for install.
2680 # Don't use installbsd from OSF since it installs stuff as root
2681 # by default.
2682 for ac_prog in ginstall scoinst install; do
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2685 if test $ac_prog = install &&
979273e3 2686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2687 # AIX install. It has an incompatible calling convention.
2688 :
979273e3
NN
2689 elif test $ac_prog = install &&
2690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # program-specific install script used by HP pwplus--don't use.
2692 :
252b5132 2693 else
979273e3
NN
2694 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2695 break 3
252b5132
RH
2696 fi
2697 fi
2698 done
979273e3
NN
2699 done
2700 ;;
2701esac
2702done
2703
252b5132
RH
2704
2705fi
2706 if test "${ac_cv_path_install+set}" = set; then
979273e3 2707 INSTALL=$ac_cv_path_install
252b5132
RH
2708 else
2709 # As a last resort, use the slow shell script. We don't cache a
2710 # path for INSTALL within a source directory, because that will
2711 # break other packages using the cache if that directory is
2712 # removed, or if the path is relative.
979273e3 2713 INSTALL=$ac_install_sh
252b5132
RH
2714 fi
2715fi
979273e3
NN
2716echo "$as_me:$LINENO: result: $INSTALL" >&5
2717echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2718
2719# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720# It thinks the first close brace ends the variable substitution.
2721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722
979273e3 2723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2724
2725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726
979273e3
NN
2727echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2728echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2729# Just in case
2730sleep 1
8ae85421 2731echo timestamp > conftest.file
252b5132
RH
2732# Do `set' in a subshell so we don't clobber the current shell's
2733# arguments. Must try -L first in case configure is actually a
2734# symlink; some systems play weird games with the mod time of symlinks
2735# (eg FreeBSD returns the mod time of the symlink's containing
2736# directory).
2737if (
8ae85421 2738 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2739 if test "$*" = "X"; then
2740 # -L didn't work.
8ae85421 2741 set X `ls -t $srcdir/configure conftest.file`
252b5132 2742 fi
8ae85421
AM
2743 rm -f conftest.file
2744 if test "$*" != "X $srcdir/configure conftest.file" \
2745 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2746
2747 # If neither matched, then we have a broken ls. This can happen
2748 # if, for instance, CONFIG_SHELL is bash and it inherits a
2749 # broken ls alias from the environment. This has actually
2750 # happened. Such a system could not be considered "sane".
979273e3
NN
2751 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2752alias in your environment" >&5
2753echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2754alias in your environment" >&2;}
2755 { (exit 1); exit 1; }; }
252b5132
RH
2756 fi
2757
8ae85421 2758 test "$2" = conftest.file
252b5132
RH
2759 )
2760then
2761 # Ok.
2762 :
2763else
979273e3
NN
2764 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2765Check your system clock" >&5
2766echo "$as_me: error: newly created file is older than distributed files!
2767Check your system clock" >&2;}
2768 { (exit 1); exit 1; }; }
252b5132 2769fi
979273e3
NN
2770echo "$as_me:$LINENO: result: yes" >&5
2771echo "${ECHO_T}yes" >&6
252b5132 2772test "$program_prefix" != NONE &&
979273e3 2773 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2774# Use a double $ so make ignores it.
2775test "$program_suffix" != NONE &&
979273e3
NN
2776 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2777# Double any \ or $. echo might interpret backslashes.
2778# By default was `s,x,x', remove it if useless.
2779cat <<\_ACEOF >conftest.sed
2780s/[\\$]/&&/g;s/;s,x,x,$//
2781_ACEOF
2782program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2783rm conftest.sed
2784
8ae85421
AM
2785# expand $ac_aux_dir to an absolute path
2786am_aux_dir=`cd $ac_aux_dir && pwd`
2787
2788test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2789# Use eval to expand $SHELL
2790if eval "$MISSING --run true"; then
2791 am_missing_run="$MISSING --run "
2792else
2793 am_missing_run=
2794 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2795echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2796fi
2797
2798if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2799 # We used to keeping the `.' as first argument, in order to
2800 # allow $(mkdir_p) to be used without argument. As in
2801 # $(mkdir_p) $(somedir)
2802 # where $(somedir) is conditionally defined. However this is wrong
2803 # for two reasons:
2804 # 1. if the package is installed by a user who cannot write `.'
2805 # make install will fail,
2806 # 2. the above comment should most certainly read
2807 # $(mkdir_p) $(DESTDIR)$(somedir)
2808 # so it does not work when $(somedir) is undefined and
2809 # $(DESTDIR) is not.
2810 # To support the latter case, we have to write
2811 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2812 # so the `.' trick is pointless.
2813 mkdir_p='mkdir -p --'
2814else
2815 # On NextStep and OpenStep, the `mkdir' command does not
2816 # recognize any option. It will interpret all options as
2817 # directories to create, and then abort because `.' already
2818 # exists.
2819 for d in ./-p ./--version;
2820 do
2821 test -d $d && rmdir $d
2822 done
2823 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2824 if test -f "$ac_aux_dir/mkinstalldirs"; then
2825 mkdir_p='$(mkinstalldirs)'
2826 else
2827 mkdir_p='$(install_sh) -d'
2828 fi
2829fi
2830
2831for ac_prog in gawk mawk nawk awk
2832do
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
2835echo "$as_me:$LINENO: checking for $ac_word" >&5
2836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837if test "${ac_cv_prog_AWK+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839else
2840 if test -n "$AWK"; then
2841 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_AWK="$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854done
2855done
2856
2857fi
2858fi
2859AWK=$ac_cv_prog_AWK
2860if test -n "$AWK"; then
2861 echo "$as_me:$LINENO: result: $AWK" >&5
2862echo "${ECHO_T}$AWK" >&6
2863else
2864 echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6
2866fi
2867
2868 test -n "$AWK" && break
2869done
2870
979273e3
NN
2871echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2873set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2874if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877 cat >conftest.make <<\_ACEOF
252b5132 2878all:
979273e3
NN
2879 @echo 'ac_maketemp="$(MAKE)"'
2880_ACEOF
252b5132 2881# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979273e3 2882eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2883if test -n "$ac_maketemp"; then
2884 eval ac_cv_prog_make_${ac_make}_set=yes
2885else
2886 eval ac_cv_prog_make_${ac_make}_set=no
2887fi
979273e3 2888rm -f conftest.make
252b5132
RH
2889fi
2890if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
979273e3
NN
2891 echo "$as_me:$LINENO: result: yes" >&5
2892echo "${ECHO_T}yes" >&6
252b5132
RH
2893 SET_MAKE=
2894else
979273e3
NN
2895 echo "$as_me:$LINENO: result: no" >&5
2896echo "${ECHO_T}no" >&6
252b5132
RH
2897 SET_MAKE="MAKE=${MAKE-make}"
2898fi
2899
8ae85421
AM
2900rm -rf .tst 2>/dev/null
2901mkdir .tst 2>/dev/null
2902if test -d .tst; then
2903 am__leading_dot=.
2904else
2905 am__leading_dot=_
2906fi
2907rmdir .tst 2>/dev/null
2908
2909DEPDIR="${am__leading_dot}deps"
2910
2911 ac_config_commands="$ac_config_commands depfiles"
2912
2913
2914am_make=${MAKE-make}
2915cat > confinc << 'END'
2916am__doit:
2917 @echo done
2918.PHONY: am__doit
2919END
2920# If we don't find an include directive, just comment out the code.
2921echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2922echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2923am__include="#"
2924am__quote=
2925_am_result=none
2926# First try GNU make style include.
2927echo "include confinc" > confmf
2928# We grep out `Entering directory' and `Leaving directory'
2929# messages which can occur if `w' ends up in MAKEFLAGS.
2930# In particular we don't look at `^make:' because GNU make might
2931# be invoked under some other name (usually "gmake"), in which
2932# case it prints its new name instead of `make'.
2933if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2934 am__include=include
2935 am__quote=
2936 _am_result=GNU
2937fi
2938# Now try BSD make style include.
2939if test "$am__include" = "#"; then
2940 echo '.include "confinc"' > confmf
2941 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2942 am__include=.include
2943 am__quote="\""
2944 _am_result=BSD
2945 fi
2946fi
2947
2948
2949echo "$as_me:$LINENO: result: $_am_result" >&5
2950echo "${ECHO_T}$_am_result" >&6
2951rm -f confinc confmf
2952
2953# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2954if test "${enable_dependency_tracking+set}" = set; then
2955 enableval="$enable_dependency_tracking"
2956
2957fi;
2958if test "x$enable_dependency_tracking" != xno; then
2959 am_depcomp="$ac_aux_dir/depcomp"
2960 AMDEPBACKSLASH='\'
2961fi
2962
2963
2964if test "x$enable_dependency_tracking" != xno; then
2965 AMDEP_TRUE=
2966 AMDEP_FALSE='#'
2967else
2968 AMDEP_TRUE='#'
2969 AMDEP_FALSE=
2970fi
252b5132 2971
252b5132 2972
252b5132 2973
8ae85421
AM
2974# test to see if srcdir already configured
2975if test "`cd $srcdir && pwd`" != "`pwd`" &&
2976 test -f $srcdir/config.status; then
979273e3
NN
2977 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2978echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2979 { (exit 1); exit 1; }; }
252b5132 2980fi
979273e3 2981
8ae85421
AM
2982# test whether we have cygpath
2983if test -z "$CYGPATH_W"; then
2984 if (cygpath --version) >/dev/null 2>/dev/null; then
2985 CYGPATH_W='cygpath -w'
2986 else
2987 CYGPATH_W=echo
2988 fi
2989fi
2990
2991
2992# Define the identity of the package.
2993 PACKAGE=opcodes
2994 VERSION=${BFD_VERSION}
2995
2996
979273e3 2997cat >>confdefs.h <<_ACEOF
252b5132 2998#define PACKAGE "$PACKAGE"
979273e3 2999_ACEOF
252b5132 3000
979273e3
NN
3001
3002cat >>confdefs.h <<_ACEOF
252b5132 3003#define VERSION "$VERSION"
979273e3 3004_ACEOF
252b5132 3005
8ae85421 3006# Some tools Automake needs.
252b5132 3007
8ae85421 3008ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 3009
8ae85421
AM
3010
3011AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3012
3013
3014AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3015
3016
3017AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3018
3019
3020MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3021
3022install_sh=${install_sh-"$am_aux_dir/install-sh"}
3023
3024# Installed binaries are usually stripped using `strip' when the user
3025# run `make install-strip'. However `strip' might not be the right
3026# tool to use in cross-compilation environments, therefore Automake
3027# will honor the `STRIP' environment variable to overrule this program.
3028if test "$cross_compiling" != no; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3031set dummy ${ac_tool_prefix}strip; ac_word=$2
3032echo "$as_me:$LINENO: checking for $ac_word" >&5
3033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034if test "${ac_cv_prog_STRIP+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037 if test -n "$STRIP"; then
3038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051done
3052done
3053
3054fi
3055fi
3056STRIP=$ac_cv_prog_STRIP
3057if test -n "$STRIP"; then
3058 echo "$as_me:$LINENO: result: $STRIP" >&5
3059echo "${ECHO_T}$STRIP" >&6
252b5132 3060else
8ae85421
AM
3061 echo "$as_me:$LINENO: result: no" >&5
3062echo "${ECHO_T}no" >&6
252b5132
RH
3063fi
3064
8ae85421
AM
3065fi
3066if test -z "$ac_cv_prog_STRIP"; then
3067 ac_ct_STRIP=$STRIP
3068 # Extract the first word of "strip", so it can be a program name with args.
3069set dummy strip; ac_word=$2
3070echo "$as_me:$LINENO: checking for $ac_word" >&5
3071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3072if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075 if test -n "$ac_ct_STRIP"; then
3076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3077else
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_ac_ct_STRIP="strip"
3086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089done
3090done
3091
3092 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3093fi
3094fi
3095ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3096if test -n "$ac_ct_STRIP"; then
3097 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3098echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3099else
8ae85421
AM
3100 echo "$as_me:$LINENO: result: no" >&5
3101echo "${ECHO_T}no" >&6
252b5132
RH
3102fi
3103
8ae85421 3104 STRIP=$ac_ct_STRIP
252b5132 3105else
8ae85421 3106 STRIP="$ac_cv_prog_STRIP"
252b5132
RH
3107fi
3108
8ae85421
AM
3109fi
3110INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3111
3112# We need awk for the "check" target. The system "awk" is bad on
3113# some platforms.
3114# Always define AMTAR for backward compatibility.
3115
3116AMTAR=${AMTAR-"${am_missing_run}tar"}
3117
3118am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3119
3120
3121
3122
3123depcc="$CC" am_compiler_list=
3124
3125echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3126echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3127if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3129else
8ae85421
AM
3130 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3131 # We make a subdir and do the tests there. Otherwise we can end up
3132 # making bogus files that we don't know about and never remove. For
3133 # instance it was reported that on HP-UX the gcc test will end up
3134 # making a dummy file named `D' -- because `-MD' means `put the output
3135 # in D'.
3136 mkdir conftest.dir
3137 # Copy depcomp to subdir because otherwise we won't find it if we're
3138 # using a relative directory.
3139 cp "$am_depcomp" conftest.dir
3140 cd conftest.dir
3141 # We will build objects and dependencies in a subdirectory because
3142 # it helps to detect inapplicable dependency modes. For instance
3143 # both Tru64's cc and ICC support -MD to output dependencies as a
3144 # side effect of compilation, but ICC will put the dependencies in
3145 # the current directory while Tru64 will put them in the object
3146 # directory.
3147 mkdir sub
3148
3149 am_cv_CC_dependencies_compiler_type=none
3150 if test "$am_compiler_list" = ""; then
3151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152 fi
3153 for depmode in $am_compiler_list; do
3154 # Setup a source with many dependencies, because some compilers
3155 # like to wrap large dependency lists on column 80 (with \), and
3156 # we should not choose a depcomp mode which is confused by this.
3157 #
3158 # We need to recreate these files for each test, as the compiler may
3159 # overwrite some of them when testing with obscure command lines.
3160 # This happens at least with the AIX C compiler.
3161 : > sub/conftest.c
3162 for i in 1 2 3 4 5 6; do
3163 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3164 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3165 # Solaris 8's {/usr,}/bin/sh.
3166 touch sub/conftst$i.h
3167 done
3168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3169
3170 case $depmode in
3171 nosideeffect)
3172 # after this tag, mechanisms are not by side-effect, so they'll
3173 # only be used when explicitly requested
3174 if test "x$enable_dependency_tracking" = xyes; then
3175 continue
3176 else
3177 break
3178 fi
3179 ;;
3180 none) break ;;
3181 esac
3182 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183 # mode. It turns out that the SunPro C++ compiler does not properly
3184 # handle `-M -o', and we need to detect this.
3185 if depmode=$depmode \
3186 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3188 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3189 >/dev/null 2>conftest.err &&
3190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3191 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3193 # icc doesn't choke on unknown options, it will just issue warnings
3194 # or remarks (even with -Werror). So we grep stderr for any message
3195 # that says an option was ignored or not supported.
3196 # When given -MP, icc 7.0 and 7.1 complain thusly:
3197 # icc: Command line warning: ignoring option '-M'; no argument required
3198 # The diagnosis changed in icc 8.0:
3199 # icc: Command line remark: option '-MP' not supported
3200 if (grep 'ignoring option' conftest.err ||
3201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3202 am_cv_CC_dependencies_compiler_type=$depmode
3203 break
3204 fi
3205 fi
3206 done
3207
3208 cd ..
3209 rm -rf conftest.dir
3210else
3211 am_cv_CC_dependencies_compiler_type=none
3212fi
3213
252b5132 3214fi
8ae85421
AM
3215echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3216echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3217CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3218
3219
252b5132 3220
8ae85421
AM
3221if
3222 test "x$enable_dependency_tracking" != xno \
3223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3224 am__fastdepCC_TRUE=
3225 am__fastdepCC_FALSE='#'
252b5132 3226else
8ae85421
AM
3227 am__fastdepCC_TRUE='#'
3228 am__fastdepCC_FALSE=
252b5132
RH
3229fi
3230
3231
3232
8ae85421 3233
979273e3
NN
3234if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3236set dummy ${ac_tool_prefix}ar; ac_word=$2
979273e3
NN
3237echo "$as_me:$LINENO: checking for $ac_word" >&5
3238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239if test "${ac_cv_prog_AR+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3241else
3242 if test -n "$AR"; then
3243 ac_cv_prog_AR="$AR" # Let the user override the test.
3244else
979273e3
NN
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_AR="${ac_tool_prefix}ar"
3253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256done
3257done
3258
252b5132
RH
3259fi
3260fi
979273e3 3261AR=$ac_cv_prog_AR
252b5132 3262if test -n "$AR"; then
979273e3
NN
3263 echo "$as_me:$LINENO: result: $AR" >&5
3264echo "${ECHO_T}$AR" >&6
252b5132 3265else
979273e3
NN
3266 echo "$as_me:$LINENO: result: no" >&5
3267echo "${ECHO_T}no" >&6
3268fi
3269
252b5132 3270fi
979273e3
NN
3271if test -z "$ac_cv_prog_AR"; then
3272 ac_ct_AR=$AR
3273 # Extract the first word of "ar", so it can be a program name with args.
3274set dummy ar; ac_word=$2
3275echo "$as_me:$LINENO: checking for $ac_word" >&5
3276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280 if test -n "$ac_ct_AR"; then
3281 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_AR="ar"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294done
3295done
252b5132 3296
979273e3
NN
3297fi
3298fi
3299ac_ct_AR=$ac_cv_prog_ac_ct_AR
3300if test -n "$ac_ct_AR"; then
3301 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3302echo "${ECHO_T}$ac_ct_AR" >&6
3303else
3304 echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306fi
252b5132 3307
979273e3
NN
3308 AR=$ac_ct_AR
3309else
3310 AR="$ac_cv_prog_AR"
3311fi
252b5132 3312
979273e3
NN
3313if test -n "$ac_tool_prefix"; then
3314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3315set dummy ${ac_tool_prefix}ranlib; ac_word=$2
979273e3
NN
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_RANLIB+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3320else
3321 if test -n "$RANLIB"; then
3322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3323else
979273e3
NN
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336done
3337
252b5132
RH
3338fi
3339fi
979273e3 3340RANLIB=$ac_cv_prog_RANLIB
252b5132 3341if test -n "$RANLIB"; then
979273e3
NN
3342 echo "$as_me:$LINENO: result: $RANLIB" >&5
3343echo "${ECHO_T}$RANLIB" >&6
252b5132 3344else
979273e3
NN
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
252b5132
RH
3347fi
3348
979273e3 3349fi
252b5132 3350if test -z "$ac_cv_prog_RANLIB"; then
979273e3 3351 ac_ct_RANLIB=$RANLIB
252b5132
RH
3352 # Extract the first word of "ranlib", so it can be a program name with args.
3353set dummy ranlib; ac_word=$2
979273e3
NN
3354echo "$as_me:$LINENO: checking for $ac_word" >&5
3355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3358else
979273e3
NN
3359 if test -n "$ac_ct_RANLIB"; then
3360 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 3361else
979273e3
NN
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_ac_ct_RANLIB="ranlib"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373done
3374done
3375
3376 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3377fi
3378fi
979273e3
NN
3379ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3380if test -n "$ac_ct_RANLIB"; then
3381 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3382echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3383else
979273e3
NN
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
252b5132
RH
3386fi
3387
979273e3 3388 RANLIB=$ac_ct_RANLIB
252b5132 3389else
979273e3 3390 RANLIB="$ac_cv_prog_RANLIB"
252b5132
RH
3391fi
3392
3393
3394# Check whether --enable-shared or --disable-shared was given.
3395if test "${enable_shared+set}" = set; then
3396 enableval="$enable_shared"
3397 p=${PACKAGE-default}
d7040cdb
SE
3398 case $enableval in
3399 yes) enable_shared=yes ;;
3400 no) enable_shared=no ;;
3401 *)
3402 enable_shared=no
3403 # Look at the argument we got. We use all the common list separators.
3404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3405 for pkg in $enableval; do
3406 IFS="$lt_save_ifs"
3407 if test "X$pkg" = "X$p"; then
3408 enable_shared=yes
3409 fi
3410 done
3411 IFS="$lt_save_ifs"
3412 ;;
3413 esac
252b5132
RH
3414else
3415 enable_shared=no
979273e3 3416fi;
252b5132 3417
d7040cdb
SE
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428macro_version='2.1a'
3429macro_revision='1.2435'
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442ltmain="$ac_aux_dir/ltmain.sh"
3443
3444# Set options
3445
3446enable_dlopen=no
3447
3448
3449enable_win32_dll=no
3450
3451
3452
252b5132
RH
3453# Check whether --enable-static or --disable-static was given.
3454if test "${enable_static+set}" = set; then
3455 enableval="$enable_static"
3456 p=${PACKAGE-default}
d7040cdb
SE
3457 case $enableval in
3458 yes) enable_static=yes ;;
3459 no) enable_static=no ;;
3460 *)
3461 enable_static=no
3462 # Look at the argument we got. We use all the common list separators.
3463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3464 for pkg in $enableval; do
3465 IFS="$lt_save_ifs"
3466 if test "X$pkg" = "X$p"; then
3467 enable_static=yes
3468 fi
3469 done
3470 IFS="$lt_save_ifs"
3471 ;;
3472 esac
252b5132
RH
3473else
3474 enable_static=yes
979273e3 3475fi;
d7040cdb
SE
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485# Check whether --with-pic or --without-pic was given.
3486if test "${with_pic+set}" = set; then
3487 withval="$with_pic"
3488 pic_mode="$withval"
3489else
3490 pic_mode=default
3491fi;
3492
3493test -z "$pic_mode" && pic_mode=default
3494
3495
3496
3497
3498
3499
3500
252b5132
RH
3501# Check whether --enable-fast-install or --disable-fast-install was given.
3502if test "${enable_fast_install+set}" = set; then
3503 enableval="$enable_fast_install"
3504 p=${PACKAGE-default}
d7040cdb
SE
3505 case $enableval in
3506 yes) enable_fast_install=yes ;;
3507 no) enable_fast_install=no ;;
3508 *)
3509 enable_fast_install=no
3510 # Look at the argument we got. We use all the common list separators.
3511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3512 for pkg in $enableval; do
3513 IFS="$lt_save_ifs"
3514 if test "X$pkg" = "X$p"; then
3515 enable_fast_install=yes
3516 fi
3517 done
3518 IFS="$lt_save_ifs"
3519 ;;
3520 esac
252b5132
RH
3521else
3522 enable_fast_install=yes
979273e3 3523fi;
75798298 3524
d7040cdb
SE
3525
3526
3527
3528
3529
3530
3531
3532echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3533echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3534if test "${lt_cv_path_SED+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536else
3537 # Loop through the user's path and test for sed and gsed.
3538# Then use that list of sed's as ones to test for truncation.
3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for lt_ac_prog in sed gsed; do
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3547 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3548 fi
3549 done
3550 done
3551done
3552IFS=$as_save_IFS
3553lt_ac_max=0
3554lt_ac_count=0
3555# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3556# along with /bin/sed that truncates output.
3557for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3558 test ! -f $lt_ac_sed && continue
3559 cat /dev/null > conftest.in
3560 lt_ac_count=0
3561 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3562 # Check for GNU sed and select it if it is found.
3563 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3564 lt_cv_path_SED=$lt_ac_sed
3565 break
3566 fi
3567 while true; do
3568 cat conftest.in conftest.in >conftest.tmp
3569 mv conftest.tmp conftest.in
3570 cp conftest.in conftest.nl
3571 echo >>conftest.nl
3572 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3573 cmp -s conftest.out conftest.nl || break
3574 # 10000 chars as input seems more than enough
3575 test $lt_ac_count -gt 10 && break
3576 lt_ac_count=`expr $lt_ac_count + 1`
3577 if test $lt_ac_count -gt $lt_ac_max; then
3578 lt_ac_max=$lt_ac_count
3579 lt_cv_path_SED=$lt_ac_sed
3580 fi
3581 done
3582done
3583
3584fi
3585
3586SED=$lt_cv_path_SED
3587
3588echo "$as_me:$LINENO: result: $SED" >&5
3589echo "${ECHO_T}$SED" >&6
3590
3591test -z "$SED" && SED=sed
3592Xsed="$SED -e 1s/^X//"
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604echo "$as_me:$LINENO: checking for egrep" >&5
3605echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606if test "${ac_cv_prog_egrep+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610 then ac_cv_prog_egrep='grep -E'
3611 else ac_cv_prog_egrep='egrep'
3612 fi
3613fi
3614echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616 EGREP=$ac_cv_prog_egrep
3617
3618
3619echo "$as_me:$LINENO: checking for fgrep" >&5
3620echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3621if test "${ac_cv_prog_fgrep+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
3624 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3625 then ac_cv_prog_fgrep='grep -F'
3626 else ac_cv_prog_fgrep='fgrep'
3627 fi
3628fi
3629echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3630echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3631 FGREP=$ac_cv_prog_fgrep
3632
3633
3634test -z "$GREP" && GREP=grep
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
252b5132
RH
3654# Check whether --with-gnu-ld or --without-gnu-ld was given.
3655if test "${with_gnu_ld+set}" = set; then
3656 withval="$with_gnu_ld"
3657 test "$withval" = no || with_gnu_ld=yes
3658else
3659 with_gnu_ld=no
979273e3 3660fi;
252b5132 3661ac_prog=ld
87e6d782 3662if test "$GCC" = yes; then
252b5132 3663 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
3664 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3665echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
ac48eca1
AO
3666 case $host in
3667 *-*-mingw*)
3668 # gcc leaves a trailing carriage return which upsets mingw
3669 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3670 *)
3671 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3672 esac
87e6d782 3673 case $ac_prog in
252b5132 3674 # Accept absolute paths.
d7040cdb 3675 [\\/]* | ?:[\\/]*)
252b5132 3676 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
3677 # Canonicalize the pathname of ld
3678 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3679 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3680 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
252b5132
RH
3681 done
3682 test -z "$LD" && LD="$ac_prog"
3683 ;;
3684 "")
3685 # If it fails, then pretend we aren't using GCC.
3686 ac_prog=ld
3687 ;;
3688 *)
3689 # If it is relative, then search for the first ld in PATH.
3690 with_gnu_ld=unknown
3691 ;;
3692 esac
3693elif test "$with_gnu_ld" = yes; then
979273e3
NN
3694 echo "$as_me:$LINENO: checking for GNU ld" >&5
3695echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3696else
979273e3
NN
3697 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3698echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3699fi
979273e3
NN
3700if test "${lt_cv_path_LD+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3702else
3703 if test -z "$LD"; then
d7040cdb 3704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
252b5132 3705 for ac_dir in $PATH; do
d7040cdb 3706 IFS="$lt_save_ifs"
252b5132 3707 test -z "$ac_dir" && ac_dir=.
a74801ba 3708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
87e6d782 3709 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132 3710 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 3711 # but apparently some variants of GNU ld only accept -v.
252b5132 3712 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
3713 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3714 *GNU* | *'with BFD'*)
252b5132 3715 test "$with_gnu_ld" != no && break
d7040cdb
SE
3716 ;;
3717 *)
252b5132 3718 test "$with_gnu_ld" != yes && break
d7040cdb
SE
3719 ;;
3720 esac
252b5132
RH
3721 fi
3722 done
d7040cdb 3723 IFS="$lt_save_ifs"
252b5132 3724else
87e6d782 3725 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3726fi
3727fi
3728
87e6d782 3729LD="$lt_cv_path_LD"
252b5132 3730if test -n "$LD"; then
979273e3
NN
3731 echo "$as_me:$LINENO: result: $LD" >&5
3732echo "${ECHO_T}$LD" >&6
252b5132 3733else
979273e3
NN
3734 echo "$as_me:$LINENO: result: no" >&5
3735echo "${ECHO_T}no" >&6
252b5132 3736fi
979273e3
NN
3737test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3738echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3739 { (exit 1); exit 1; }; }
3740echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3741echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3742if test "${lt_cv_prog_gnu_ld+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3744else
d7040cdb
SE
3745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3746case `$LD -v 2>&1 </dev/null` in
3747*GNU* | *'with BFD'*)
87e6d782 3748 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
3749 ;;
3750*)
87e6d782 3751 lt_cv_prog_gnu_ld=no
d7040cdb
SE
3752 ;;
3753esac
252b5132 3754fi
979273e3
NN
3755echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3756echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
87e6d782 3757with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1
AO
3758
3759
252b5132 3760
d7040cdb
SE
3761
3762
3763
3764
3765
3766
3767
3768echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3769echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
979273e3
NN
3770if test "${lt_cv_path_NM+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3772else
3773 if test -n "$NM"; then
3774 # Let the user override the test.
87e6d782 3775 lt_cv_path_NM="$NM"
252b5132 3776else
d7040cdb
SE
3777 lt_nm_to_check="${ac_tool_prefix}nm"
3778 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3779 lt_nm_to_check="$lt_nm_to_check nm"
3780 fi
3781 for lt_tmp_nm in $lt_nm_to_check; do
3782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3783 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3784 IFS="$lt_save_ifs"
3785 test -z "$ac_dir" && ac_dir=.
3786 tmp_nm="$ac_dir/$lt_tmp_nm"
3787 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3788 # Check to see if the nm accepts a BSD-compat flag.
3789 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3790 # nm: unknown option "B" ignored
3791 # Tru64's nm complains that /dev/null is an invalid object file
3792 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3793 */dev/null* | *'Invalid file or object type'*)
3794 lt_cv_path_NM="$tmp_nm -B"
3795 break
3796 ;;
3797 *)
3798 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3799 */dev/null*)
3800 lt_cv_path_NM="$tmp_nm -p"
3801 break
3802 ;;
3803 *)
3804 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3805 continue # so that we can try to find one that supports BSD flags
3806 ;;
3807 esac
3808 ;;
3809 esac
252b5132 3810 fi
d7040cdb
SE
3811 done
3812 IFS="$lt_save_ifs"
252b5132 3813 done
d7040cdb 3814 : ${lt_cv_path_NM=no}
252b5132
RH
3815fi
3816fi
d7040cdb
SE
3817echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3818echo "${ECHO_T}$lt_cv_path_NM" >&6
3819if test "$lt_cv_path_NM" != "no"; then
3820 NM="$lt_cv_path_NM"
252b5132 3821else
d7040cdb
SE
3822 # Didn't find any BSD compatible name lister, look for dumpbin.
3823 if test -n "$ac_tool_prefix"; then
3824 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3825 do
3826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3828echo "$as_me:$LINENO: checking for $ac_word" >&5
3829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 if test -n "$DUMPBIN"; then
3834 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847done
3848done
3849
3850fi
3851fi
3852DUMPBIN=$ac_cv_prog_DUMPBIN
3853if test -n "$DUMPBIN"; then
3854 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3855echo "${ECHO_T}$DUMPBIN" >&6
3856else
3857 echo "$as_me:$LINENO: result: no" >&5
3858echo "${ECHO_T}no" >&6
3859fi
3860
3861 test -n "$DUMPBIN" && break
3862 done
3863fi
3864if test -z "$DUMPBIN"; then
3865 ac_ct_DUMPBIN=$DUMPBIN
3866 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3867do
3868 # Extract the first word of "$ac_prog", so it can be a program name with args.
3869set dummy $ac_prog; ac_word=$2
3870echo "$as_me:$LINENO: checking for $ac_word" >&5
3871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3872if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874else
3875 if test -n "$ac_ct_DUMPBIN"; then
3876 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889done
3890done
3891
3892fi
3893fi
3894ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3895if test -n "$ac_ct_DUMPBIN"; then
3896 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3897echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3898else
3899 echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6
3901fi
3902
3903 test -n "$ac_ct_DUMPBIN" && break
3904done
3905test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3906
3907 DUMPBIN=$ac_ct_DUMPBIN
3908fi
3909
3910
3911 if test "$DUMPBIN" != ":"; then
3912 NM="$DUMPBIN"
3913 fi
3914fi
3915test -z "$NM" && NM=nm
3916
3917
3918
3919
3920
3921
3922echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3923echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3924if test "${lt_cv_nm_interface+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927 lt_cv_nm_interface="BSD nm"
3928 echo "int some_variable = 0;" > conftest.$ac_ext
3929 (eval echo "\"\$as_me:3929: $ac_compile\"" >&5)
3930 (eval "$ac_compile" 2>conftest.err)
3931 cat conftest.err >&5
3932 (eval echo "\"\$as_me:3932: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3933 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3934 cat conftest.err >&5
3935 (eval echo "\"\$as_me:3935: output\"" >&5)
3936 cat conftest.out >&5
3937 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3938 lt_cv_nm_interface="MS dumpbin"
3939 fi
3940 rm -f conftest*
3941fi
3942echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3943echo "${ECHO_T}$lt_cv_nm_interface" >&6
3944
3945echo "$as_me:$LINENO: checking whether ln -s works" >&5
3946echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3947LN_S=$as_ln_s
3948if test "$LN_S" = "ln -s"; then
3949 echo "$as_me:$LINENO: result: yes" >&5
3950echo "${ECHO_T}yes" >&6
3951else
3952 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3953echo "${ECHO_T}no, using $LN_S" >&6
3954fi
3955
3956# find the maximum length of command line arguments
3957echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3958echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3959if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961else
3962 i=0
3963 teststring="ABCD"
3964
3965 case $build_os in
3966 msdosdjgpp*)
3967 # On DJGPP, this test can blow up pretty badly due to problems in libc
3968 # (any single argument exceeding 2000 bytes causes a buffer overrun
3969 # during glob expansion). Even if it were fixed, the result of this
3970 # check would be larger than it should be.
3971 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3972 ;;
3973
3974 gnu*)
3975 # Under GNU Hurd, this test is not required because there is
3976 # no limit to the length of command line arguments.
3977 # Libtool will interpret -1 as no limit whatsoever
3978 lt_cv_sys_max_cmd_len=-1;
3979 ;;
3980
3981 cygwin* | mingw*)
3982 # On Win9x/ME, this test blows up -- it succeeds, but takes
3983 # about 5 minutes as the teststring grows exponentially.
3984 # Worse, since 9x/ME are not pre-emptively multitasking,
3985 # you end up with a "frozen" computer, even though with patience
3986 # the test eventually succeeds (with a max line length of 256k).
3987 # Instead, let's just punt: use the minimum linelength reported by
3988 # all of the supported platforms: 8192 (on NT/2K/XP).
3989 lt_cv_sys_max_cmd_len=8192;
3990 ;;
3991
3992 amigaos*)
3993 # On AmigaOS with pdksh, this test takes hours, literally.
3994 # So we just punt and use a minimum line length of 8192.
3995 lt_cv_sys_max_cmd_len=8192;
3996 ;;
3997
3998 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3999 # This has been around since 386BSD, at least. Likely further.
4000 if test -x /sbin/sysctl; then
4001 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4002 elif test -x /usr/sbin/sysctl; then
4003 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4004 else
4005 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4006 fi
4007 # And add a safety zone
4008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4010 ;;
4011
4012 interix*)
4013 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4014 lt_cv_sys_max_cmd_len=196608
4015 ;;
4016
4017 osf*)
4018 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4019 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4020 # nice to cause kernel panics so lets avoid the loop below.
4021 # First set a reasonable default.
4022 lt_cv_sys_max_cmd_len=16384
4023 #
4024 if test -x /sbin/sysconfig; then
4025 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4026 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4027 esac
4028 fi
4029 ;;
4030 sco3.2v5*)
4031 lt_cv_sys_max_cmd_len=102400
4032 ;;
4033 sysv5* | sco5v6* | sysv4.2uw2*)
4034 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4035 if test -n "$kargmax"; then
4036 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4037 else
4038 lt_cv_sys_max_cmd_len=32768
4039 fi
4040 ;;
4041 *)
4042 # Make teststring a little bigger before we do anything with it.
4043 # a 1K string should be a reasonable start.
4044 for i in 1 2 3 4 5 6 7 8 ; do
4045 teststring=$teststring$teststring
4046 done
4047 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4048 # If test is not a shell built-in, we'll probably end up computing a
4049 # maximum length that is only half of the actual maximum length, but
4050 # we can't tell.
4051 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4052 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4053 test $i != 17 # 1/2 MB should be enough
4054 do
4055 i=`expr $i + 1`
4056 teststring=$teststring$teststring
4057 done
4058 # Only check the string length outside the loop.
4059 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4060 teststring=
4061 # Add a significant safety factor because C++ compilers can tack on massive
4062 # amounts of additional arguments before passing them to the linker.
4063 # It appears as though 1/2 is a usable value.
4064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4065 ;;
4066 esac
4067
4068fi
4069
4070if test -n $lt_cv_sys_max_cmd_len ; then
4071 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4072echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4073else
4074 echo "$as_me:$LINENO: result: none" >&5
4075echo "${ECHO_T}none" >&6
4076fi
4077max_cmd_len=$lt_cv_sys_max_cmd_len
4078
4079
4080
4081
4082
4083
4084
4085: ${CP="cp -f"}
4086: ${MV="mv -f"}
4087: ${RM="rm -f"}
4088
4089echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4090echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4091# Try some XSI features
4092xsi_shell=no
4093( _lt_dummy="a/b/c"
4094 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4095 = c,a/b,, ) >/dev/null 2>&1 \
4096 && xsi_shell=yes
4097echo "$as_me:$LINENO: result: $xsi_shell" >&5
4098echo "${ECHO_T}$xsi_shell" >&6
4099
4100
4101echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4102echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4103lt_shell_append=no
4104( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4105 >/dev/null 2>&1 \
4106 && lt_shell_append=yes
4107echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4108echo "${ECHO_T}$lt_shell_append" >&6
4109
4110
4111if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4112 lt_unset=unset
4113else
4114 lt_unset=false
4115fi
4116
4117
4118
4119
4120
4121# test EBCDIC or ASCII
4122case `echo X|tr X '\101'` in
4123 A) # ASCII based system
4124 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4125 lt_SP2NL='tr \040 \012'
4126 lt_NL2SP='tr \015\012 \040\040'
4127 ;;
4128 *) # EBCDIC based system
4129 lt_SP2NL='tr \100 \n'
4130 lt_NL2SP='tr \r\n \100\100'
4131 ;;
4132esac
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4143echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4144if test "${lt_cv_ld_reload_flag+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4147 lt_cv_ld_reload_flag='-r'
252b5132 4148fi
d7040cdb
SE
4149echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4150echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4151reload_flag=$lt_cv_ld_reload_flag
4152case $reload_flag in
4153"" | " "*) ;;
4154*) reload_flag=" $reload_flag" ;;
4155esac
4156reload_cmds='$LD$reload_flag -o $output$reload_objs'
4157case $host_os in
4158 darwin*)
4159 if test "$GCC" = yes; then
4160 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4161 else
4162 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4163 fi
4164 ;;
4165esac
4166
4167
4168
252b5132 4169
d7040cdb
SE
4170
4171
4172
4173
4174
4175
4176echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4177echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
979273e3
NN
4178if test "${lt_cv_deplibs_check_method+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4180else
d64552c5 4181 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
4182lt_cv_file_magic_test_file=
4183lt_cv_deplibs_check_method='unknown'
4184# Need to set the preceding variable on all platforms that support
4185# interlibrary dependencies.
4186# 'none' -- dependencies not supported.
4187# `unknown' -- same as none, but documents that we really don't know.
4188# 'pass_all' -- all dependencies passed with no checks.
4189# 'test_compile' -- check by making test program.
d7040cdb
SE
4190# 'file_magic [[regex]]' -- check by looking for files in library path
4191# which responds to the $file_magic_cmd with a given extended regex.
ac48eca1
AO
4192# If you have `file' or equivalent on your system and you're not sure
4193# whether `pass_all' will *always* work, you probably want this one.
4194
87e6d782 4195case $host_os in
d7040cdb 4196aix4* | aix5*)
ac48eca1
AO
4197 lt_cv_deplibs_check_method=pass_all
4198 ;;
4199
4200beos*)
4201 lt_cv_deplibs_check_method=pass_all
4202 ;;
4203
d7040cdb 4204bsdi[45]*)
87e6d782
NC
4205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4206 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
4207 lt_cv_file_magic_test_file=/shlib/libc.so
4208 ;;
4209
d7040cdb
SE
4210cygwin*)
4211 # func_win32_libid is a shell function defined in ltmain.sh
4212 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4213 lt_cv_file_magic_cmd='func_win32_libid'
4214 ;;
4215
4216mingw* | pw32*)
4217 # Base MSYS/MinGW do not provide the 'file' command needed by
4218 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4219 # unless we find 'file', for example because we are cross-compiling.
4220 if ( file / ) >/dev/null 2>&1; then
4221 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4222 lt_cv_file_magic_cmd='func_win32_libid'
4223 else
4224 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4225 lt_cv_file_magic_cmd='$OBJDUMP -f'
4226 fi
ac48eca1
AO
4227 ;;
4228
87e6d782 4229darwin* | rhapsody*)
32fba81d 4230 lt_cv_deplibs_check_method=pass_all
87e6d782
NC
4231 ;;
4232
d7040cdb
SE
4233freebsd* | dragonfly*)
4234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
87e6d782 4235 case $host_cpu in
ac48eca1 4236 i*86 )
90f2472a
AO
4237 # Not sure whether the presence of OpenBSD here was a mistake.
4238 # Let's accept both of them until this is cleared up.
d7040cdb 4239 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
87e6d782 4240 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
4241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4242 ;;
4243 esac
4244 else
4245 lt_cv_deplibs_check_method=pass_all
4246 fi
4247 ;;
4248
4249gnu*)
4250 lt_cv_deplibs_check_method=pass_all
4251 ;;
4252
d7040cdb
SE
4253hpux10.20* | hpux11*)
4254 lt_cv_file_magic_cmd=/usr/bin/file
4867be41 4255 case $host_cpu in
4867be41
DJ
4256 ia64*)
4257 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4867be41
DJ
4258 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4259 ;;
d7040cdb
SE
4260 hppa*64*)
4261 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]'
4262 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
ac48eca1
AO
4263 ;;
4264 *)
d7040cdb
SE
4265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4266 lt_cv_file_magic_test_file=/usr/lib/libc.sl
87e6d782 4267 ;;
ac48eca1 4268 esac
d7040cdb
SE
4269 ;;
4270
4271interix[3-9]*)
4272 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4274 ;;
4275
4276irix5* | irix6* | nonstopux*)
4277 case $LD in
4278 *-32|*"-32 ") libmagic=32-bit;;
4279 *-n32|*"-n32 ") libmagic=N32;;
4280 *-64|*"-64 ") libmagic=64-bit;;
4281 *) libmagic=never-match;;
4282 esac
ac48eca1
AO
4283 lt_cv_deplibs_check_method=pass_all
4284 ;;
4285
4286# This must be Linux ELF.
d7040cdb 4287linux* | k*bsd*-gnu)
32fba81d 4288 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
4289 ;;
4290
d7040cdb
SE
4291netbsd*)
4292 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ac48eca1 4294 else
d7040cdb 4295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ac48eca1
AO
4296 fi
4297 ;;
4298
d7040cdb 4299newos6*)
87e6d782
NC
4300 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4301 lt_cv_file_magic_cmd=/usr/bin/file
4302 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4303 ;;
4304
d7040cdb 4305*nto* | *qnx*)
ac48eca1
AO
4306 lt_cv_deplibs_check_method=pass_all
4307 ;;
4308
d7040cdb
SE
4309openbsd*)
4310 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4312 else
4313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4314 fi
ac48eca1
AO
4315 ;;
4316
d7040cdb 4317osf3* | osf4* | osf5*)
ac48eca1 4318 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
4319 ;;
4320
d7040cdb 4321rdos*)
6be7c12c
AO
4322 lt_cv_deplibs_check_method=pass_all
4323 ;;
4324
d7040cdb
SE
4325solaris*)
4326 lt_cv_deplibs_check_method=pass_all
4327 ;;
4328
4329sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4330 lt_cv_deplibs_check_method=pass_all
4331 ;;
4332
4333sysv4 | sysv4.3*)
87e6d782 4334 case $host_vendor in
ac48eca1 4335 motorola)
87e6d782
NC
4336 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]'
4337 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
979273e3 4338 ;;
d7040cdb
SE
4339 ncr)
4340 lt_cv_deplibs_check_method=pass_all
4341 ;;
4342 sequent)
4343 lt_cv_file_magic_cmd='/bin/file'
4344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4345 ;;
4346 sni)
4347 lt_cv_file_magic_cmd='/bin/file'
4348 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4349 lt_cv_file_magic_test_file=/lib/libc.so
4350 ;;
4351 siemens)
4352 lt_cv_deplibs_check_method=pass_all
4353 ;;
4354 pc)
4355 lt_cv_deplibs_check_method=pass_all
4356 ;;
979273e3
NN
4357 esac
4358 ;;
d7040cdb
SE
4359
4360tpf*)
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
979273e3 4363esac
ac48eca1 4364
979273e3
NN
4365fi
4366echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4367echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4368file_magic_cmd=$lt_cv_file_magic_cmd
4369deplibs_check_method=$lt_cv_deplibs_check_method
d7040cdb 4370test -z "$deplibs_check_method" && deplibs_check_method=unknown
ac48eca1
AO
4371
4372
ac48eca1 4373
ac48eca1 4374
ac48eca1 4375
ac48eca1 4376
ac48eca1 4377
ac48eca1 4378
ac48eca1 4379
ac48eca1 4380
ac48eca1 4381
ac48eca1 4382
979273e3 4383if test -n "$ac_tool_prefix"; then
d7040cdb
SE
4384 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4385set dummy ${ac_tool_prefix}ar; ac_word=$2
979273e3
NN
4386echo "$as_me:$LINENO: checking for $ac_word" >&5
4387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4388if test "${ac_cv_prog_AR+set}" = set; then
979273e3 4389 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4390else
d7040cdb
SE
4391 if test -n "$AR"; then
4392 ac_cv_prog_AR="$AR" # Let the user override the test.
ac48eca1 4393else
979273e3
NN
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4401 ac_cv_prog_AR="${ac_tool_prefix}ar"
979273e3
NN
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4404 fi
4405done
4406done
4407
ac48eca1
AO
4408fi
4409fi
d7040cdb
SE
4410AR=$ac_cv_prog_AR
4411if test -n "$AR"; then
4412 echo "$as_me:$LINENO: result: $AR" >&5
4413echo "${ECHO_T}$AR" >&6
ac48eca1 4414else
979273e3
NN
4415 echo "$as_me:$LINENO: result: no" >&5
4416echo "${ECHO_T}no" >&6
ac48eca1
AO
4417fi
4418
979273e3 4419fi
d7040cdb
SE
4420if test -z "$ac_cv_prog_AR"; then
4421 ac_ct_AR=$AR
4422 # Extract the first word of "ar", so it can be a program name with args.
4423set dummy ar; ac_word=$2
979273e3
NN
4424echo "$as_me:$LINENO: checking for $ac_word" >&5
4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4426if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
979273e3 4427 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4428else
d7040cdb
SE
4429 if test -n "$ac_ct_AR"; then
4430 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
ac48eca1 4431else
979273e3
NN
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4439 ac_cv_prog_ac_ct_AR="ar"
979273e3
NN
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4442 fi
4443done
4444done
4445
d7040cdb 4446 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
ac48eca1
AO
4447fi
4448fi
d7040cdb
SE
4449ac_ct_AR=$ac_cv_prog_ac_ct_AR
4450if test -n "$ac_ct_AR"; then
4451 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4452echo "${ECHO_T}$ac_ct_AR" >&6
ac48eca1 4453else
979273e3
NN
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
ac48eca1
AO
4456fi
4457
d7040cdb 4458 AR=$ac_ct_AR
ac48eca1 4459else
d7040cdb 4460 AR="$ac_cv_prog_AR"
ac48eca1
AO
4461fi
4462
d7040cdb
SE
4463test -z "$AR" && AR=ar
4464test -z "$AR_FLAGS" && AR_FLAGS=cru
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
979273e3
NN
4476if test -n "$ac_tool_prefix"; then
4477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 4478set dummy ${ac_tool_prefix}strip; ac_word=$2
979273e3
NN
4479echo "$as_me:$LINENO: checking for $ac_word" >&5
4480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4481if test "${ac_cv_prog_STRIP+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
4483else
4484 if test -n "$STRIP"; then
4485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4486else
979273e3
NN
4487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH
4489do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498done
4499done
4500
ac48eca1
AO
4501fi
4502fi
979273e3 4503STRIP=$ac_cv_prog_STRIP
ac48eca1 4504if test -n "$STRIP"; then
979273e3
NN
4505 echo "$as_me:$LINENO: result: $STRIP" >&5
4506echo "${ECHO_T}$STRIP" >&6
ac48eca1 4507else
979273e3
NN
4508 echo "$as_me:$LINENO: result: no" >&5
4509echo "${ECHO_T}no" >&6
ac48eca1
AO
4510fi
4511
979273e3 4512fi
ac48eca1 4513if test -z "$ac_cv_prog_STRIP"; then
979273e3 4514 ac_ct_STRIP=$STRIP
ac48eca1
AO
4515 # Extract the first word of "strip", so it can be a program name with args.
4516set dummy strip; ac_word=$2
979273e3
NN
4517echo "$as_me:$LINENO: checking for $ac_word" >&5
4518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4521else
979273e3
NN
4522 if test -n "$ac_ct_STRIP"; then
4523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 4524else
979273e3
NN
4525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH
4527do
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_prog_ac_ct_STRIP="strip"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4535 fi
4536done
4537done
4538
4539 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
4540fi
4541fi
979273e3
NN
4542ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4543if test -n "$ac_ct_STRIP"; then
4544 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4545echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 4546else
979273e3
NN
4547 echo "$as_me:$LINENO: result: no" >&5
4548echo "${ECHO_T}no" >&6
ac48eca1
AO
4549fi
4550
979273e3 4551 STRIP=$ac_ct_STRIP
ac48eca1 4552else
979273e3 4553 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
4554fi
4555
d7040cdb 4556test -z "$STRIP" && STRIP=:
252b5132 4557
252b5132 4558
a74801ba 4559
a74801ba 4560
a74801ba 4561
979273e3 4562
d7040cdb
SE
4563if test -n "$ac_tool_prefix"; then
4564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4565set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4566echo "$as_me:$LINENO: checking for $ac_word" >&5
4567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4568if test "${ac_cv_prog_RANLIB+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4570else
d7040cdb
SE
4571 if test -n "$RANLIB"; then
4572 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
252b5132 4584 fi
d7040cdb
SE
4585done
4586done
252b5132 4587
d7040cdb
SE
4588fi
4589fi
4590RANLIB=$ac_cv_prog_RANLIB
4591if test -n "$RANLIB"; then
4592 echo "$as_me:$LINENO: result: $RANLIB" >&5
4593echo "${ECHO_T}$RANLIB" >&6
4594else
4595 echo "$as_me:$LINENO: result: no" >&5
4596echo "${ECHO_T}no" >&6
4597fi
4867be41 4598
d7040cdb
SE
4599fi
4600if test -z "$ac_cv_prog_RANLIB"; then
4601 ac_ct_RANLIB=$RANLIB
4602 # Extract the first word of "ranlib", so it can be a program name with args.
4603set dummy ranlib; ac_word=$2
4604echo "$as_me:$LINENO: checking for $ac_word" >&5
4605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608else
4609 if test -n "$ac_ct_RANLIB"; then
4610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4611else
4612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_ac_ct_RANLIB="ranlib"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
32fba81d 4622 fi
d7040cdb
SE
4623done
4624done
32fba81d 4625
d7040cdb
SE
4626 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4627fi
4628fi
4629ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4630if test -n "$ac_ct_RANLIB"; then
4631 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4632echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 4633else
d7040cdb
SE
4634 echo "$as_me:$LINENO: result: no" >&5
4635echo "${ECHO_T}no" >&6
4636fi
979273e3 4637
d7040cdb
SE
4638 RANLIB=$ac_ct_RANLIB
4639else
4640 RANLIB="$ac_cv_prog_RANLIB"
4641fi
979273e3 4642
d7040cdb 4643test -z "$RANLIB" && RANLIB=:
ac48eca1 4644
252b5132 4645
252b5132 4646
979273e3 4647
ac48eca1 4648
d7040cdb
SE
4649
4650# Determine commands to create old-style static archives.
4651old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4652old_postinstall_cmds='chmod 644 $oldlib'
4653old_postuninstall_cmds=
4654
4655if test -n "$RANLIB"; then
4656 case $host_os in
4657 openbsd*)
4658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4659 ;;
4660 *)
4661 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4662 ;;
4663 esac
4664 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
252b5132 4665fi
252b5132 4666
252b5132 4667
252b5132 4668
252b5132 4669
979273e3 4670
979273e3 4671
252b5132 4672
252b5132 4673
252b5132
RH
4674
4675
252b5132 4676
252b5132 4677
252b5132 4678
ac48eca1 4679
979273e3
NN
4680
4681
4682
4683
ac48eca1 4684
9e9b66a9 4685
1ad12f97 4686
1ad12f97 4687
9e9b66a9 4688
1ad12f97 4689
a541e3ce 4690
9e9b66a9 4691
a2d91340
AC
4692
4693
9e9b66a9
AM
4694
4695
4696
252b5132 4697
252b5132 4698
252b5132 4699
d7040cdb
SE
4700# If no C compiler was specified, use CC.
4701LTCC=${LTCC-"$CC"}
252b5132 4702
d7040cdb
SE
4703# If no C compiler flags were specified, use CFLAGS.
4704LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 4705
d7040cdb
SE
4706# Allow CC to be a program name with arguments.
4707compiler=$CC
4708
4709
4710# Check for command to grab the raw symbol name followed by C symbol from nm.
4711echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4712echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4713if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4715else
8ae85421 4716
d7040cdb
SE
4717# These are sane defaults that work on at least a few old systems.
4718# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 4719
d7040cdb
SE
4720# Character class describing NM global symbol codes.
4721symcode='[BCDEGRST]'
979273e3 4722
d7040cdb
SE
4723# Regexp to match symbols that can be accessed directly from C.
4724sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
24443139 4725
d7040cdb
SE
4726# Define system-specific variables.
4727case $host_os in
4728aix*)
4729 symcode='[BCDT]'
4730 ;;
4731cygwin* | mingw* | pw32*)
4732 symcode='[ABCDGISTW]'
4733 ;;
4734hpux*)
4735 if test "$host_cpu" = ia64; then
4736 symcode='[ABCDEGRST]'
4737 fi
4738 ;;
4739irix* | nonstopux*)
4740 symcode='[BCDEGRST]'
4741 ;;
4742osf*)
4743 symcode='[BCDEGQRST]'
4744 ;;
4745solaris*)
4746 symcode='[BDRT]'
4747 ;;
4748sco3.2v5*)
4749 symcode='[DT]'
4750 ;;
4751sysv4.2uw2*)
4752 symcode='[DT]'
4753 ;;
4754sysv5* | sco5v6* | unixware* | OpenUNIX*)
4755 symcode='[ABDT]'
4756 ;;
4757sysv4)
4758 symcode='[DFNSTU]'
4759 ;;
24443139
AS
4760esac
4761
d7040cdb
SE
4762# If we're using GNU nm, then use its standard symbol codes.
4763case `$NM -V 2>&1` in
4764*GNU* | *'with BFD'*)
4765 symcode='[ABCDGIRSTW]' ;;
24443139
AS
4766esac
4767
d7040cdb
SE
4768# Transform an extracted symbol line into a proper C declaration.
4769# Some systems (esp. on ia64) link data and code symbols differently,
4770# so use this general approach.
4771lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8ae85421 4772
d7040cdb
SE
4773# Transform an extracted symbol line into symbol name and symbol address
4774lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
24443139 4775
d7040cdb
SE
4776# Handle CRLF in mingw tool chain
4777opt_cr=
4778case $build_os in
4779mingw*)
4780 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4781 ;;
4782esac
24443139 4783
d7040cdb
SE
4784# Try without a prefix underscore, then with it.
4785for ac_symprfx in "" "_"; do
4786
4787 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4788 symxfrm="\\1 $ac_symprfx\\2 \\2"
4789
4790 # Write the raw and C identifiers.
4791 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4792 # Fake it for dumpbin and say T for any non-static function
4793 # and D for any global variable.
4794 # Also find C++ and __fastcall symbols from MSVC++,
4795 # which start with @ or ?.
4796 lt_cv_sys_global_symbol_pipe="$AWK '"\
4797" {last_section=section; section=\$ 3};"\
4798" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4799" \$ 0!~/External *\|/{next};"\
4800" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4801" {if(hide[section]) next};"\
4802" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4803" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4804" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4805" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4806" ' prfx=^$ac_symprfx"
4807 else
4808 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4809 fi
24443139 4810
d7040cdb
SE
4811 # Check to see that the pipe works correctly.
4812 pipe_works=no
24443139 4813
d7040cdb
SE
4814 rm -f conftest*
4815 cat > conftest.$ac_ext <<_LT_EOF
4816#ifdef __cplusplus
4817extern "C" {
4818#endif
4819char nm_test_var;
4820void nm_test_func(void);
4821void nm_test_func(void){}
4822#ifdef __cplusplus
4823}
4824#endif
4825int main(){nm_test_var='a';nm_test_func();return(0);}
4826_LT_EOF
81172ff2 4827
d7040cdb
SE
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; then
4833 # Now try to grab the symbols.
4834 nlist=conftest.nm
4835 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4836 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } && test -s "$nlist"; then
4840 # Try sorting and uniquifying the output.
4841 if sort "$nlist" | uniq > "$nlist"T; then
4842 mv -f "$nlist"T "$nlist"
4843 else
4844 rm -f "$nlist"T
4845 fi
81172ff2 4846
d7040cdb
SE
4847 # Make sure that we snagged all the symbols we need.
4848 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4849 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4850 cat <<_LT_EOF > conftest.$ac_ext
4851#ifdef __cplusplus
4852extern "C" {
4853#endif
252b5132 4854
d7040cdb
SE
4855_LT_EOF
4856 # Now generate the symbol file.
4857 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
252b5132 4858
d7040cdb 4859 cat <<_LT_EOF >> conftest.$ac_ext
979273e3 4860
d7040cdb
SE
4861/* The mapping between symbol names and symbols. */
4862const struct {
4863 const char *name;
4864 void *address;
4865}
4866lt__PROGRAM__LTX_preloaded_symbols[] =
4867{
4868 { "@PROGRAM@", (void *) 0 },
4869_LT_EOF
4870 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4871 cat <<\_LT_EOF >> conftest.$ac_ext
4872 {0, (void *) 0}
4873};
4874
4875/* This works around a problem in FreeBSD linker */
4876#ifdef FREEBSD_WORKAROUND
4877static const void *lt_preloaded_setup() {
4878 return lt__PROGRAM__LTX_preloaded_symbols;
4879}
4880#endif
979273e3 4881
d7040cdb
SE
4882#ifdef __cplusplus
4883}
4884#endif
4885_LT_EOF
4886 # Now try linking the two files.
4887 mv conftest.$ac_objext conftstm.$ac_objext
4888 lt_save_LIBS="$LIBS"
4889 lt_save_CFLAGS="$CFLAGS"
4890 LIBS="conftstm.$ac_objext"
4891 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4893 (eval $ac_link) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4897 pipe_works=yes
4898 fi
4899 LIBS="$lt_save_LIBS"
4900 CFLAGS="$lt_save_CFLAGS"
4901 else
4902 echo "cannot find nm_test_func in $nlist" >&5
4903 fi
4904 else
4905 echo "cannot find nm_test_var in $nlist" >&5
4906 fi
4907 else
4908 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4909 fi
4910 else
4911 echo "$progname: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4913 fi
4914 rm -f conftest* conftst*
979273e3 4915
d7040cdb
SE
4916 # Do not use the global_symbol_pipe unless it works.
4917 if test "$pipe_works" = yes; then
4918 break
4919 else
4920 lt_cv_sys_global_symbol_pipe=
252b5132 4921 fi
979273e3 4922done
979273e3
NN
4923
4924fi
d7040cdb
SE
4925
4926if test -z "$lt_cv_sys_global_symbol_pipe"; then
4927 lt_cv_sys_global_symbol_to_cdecl=
252b5132 4928fi
d7040cdb
SE
4929if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4930 echo "$as_me:$LINENO: result: failed" >&5
4931echo "${ECHO_T}failed" >&6
979273e3 4932else
d7040cdb
SE
4933 echo "$as_me:$LINENO: result: ok" >&5
4934echo "${ECHO_T}ok" >&6
252b5132
RH
4935fi
4936
252b5132 4937
252b5132 4938
979273e3 4939
979273e3 4940
979273e3 4941
252b5132 4942
979273e3 4943
979273e3 4944
252b5132 4945
979273e3 4946
979273e3 4947
979273e3 4948
979273e3 4949
979273e3 4950
979273e3 4951
979273e3 4952
d7040cdb
SE
4953# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4954if test "${enable_libtool_lock+set}" = set; then
4955 enableval="$enable_libtool_lock"
979273e3 4956
d7040cdb
SE
4957fi;
4958test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
979273e3 4959
d7040cdb
SE
4960# Some flags need to be propagated to the compiler or linker for good
4961# libtool support.
4962case $host in
4963ia64-*-hpux*)
4964 # Find out which ABI we are using.
4965 echo 'int i;' > conftest.$ac_ext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>&5
979273e3
NN
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4970 (exit $ac_status); }; then
4971 case `/usr/bin/file conftest.$ac_objext` in
4972 *ELF-32*)
4973 HPUX_IA64_MODE="32"
4974 ;;
4975 *ELF-64*)
4976 HPUX_IA64_MODE="64"
4977 ;;
4978 esac
4979 fi
4980 rm -rf conftest*
4981 ;;
4982*-*-irix6*)
4983 # Find out which ABI we are using.
4984 echo '#line 4984 "configure"' > conftest.$ac_ext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986 (eval $ac_compile) 2>&5
979273e3
NN
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4989 (exit $ac_status); }; then
4990 if test "$lt_cv_prog_gnu_ld" = yes; then
4991 case `/usr/bin/file conftest.$ac_objext` in
4992 *32-bit*)
4993 LD="${LD-ld} -melf32bsmip"
4994 ;;
4995 *N32*)
4996 LD="${LD-ld} -melf32bmipn32"
4997 ;;
4998 *64-bit*)
4999 LD="${LD-ld} -melf64bmip"
5000 ;;
5001 esac
5002 else
5003 case `/usr/bin/file conftest.$ac_objext` in
5004 *32-bit*)
5005 LD="${LD-ld} -32"
5006 ;;
5007 *N32*)
5008 LD="${LD-ld} -n32"
5009 ;;
5010 *64-bit*)
5011 LD="${LD-ld} -64"
5012 ;;
5013 esac
5014 fi
5015 fi
5016 rm -rf conftest*
5017 ;;
5018
5019x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5020s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5021 # Find out which ABI we are using.
5022 echo 'int i;' > conftest.$ac_ext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>&5
979273e3
NN
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5027 (exit $ac_status); }; then
5028 case `/usr/bin/file conftest.o` in
5029 *32-bit*)
5030 case $host in
5031 x86_64-*kfreebsd*-gnu)
5032 LD="${LD-ld} -m elf_i386_fbsd"
5033 ;;
5034 x86_64-*linux*)
5035 LD="${LD-ld} -m elf_i386"
5036 ;;
5037 ppc64-*linux*|powerpc64-*linux*)
5038 LD="${LD-ld} -m elf32ppclinux"
5039 ;;
5040 s390x-*linux*)
5041 LD="${LD-ld} -m elf_s390"
5042 ;;
5043 sparc64-*linux*)
5044 LD="${LD-ld} -m elf32_sparc"
5045 ;;
5046 esac
5047 ;;
5048 *64-bit*)
5049 case $host in
5050 x86_64-*kfreebsd*-gnu)
5051 LD="${LD-ld} -m elf_x86_64_fbsd"
5052 ;;
5053 x86_64-*linux*)
5054 LD="${LD-ld} -m elf_x86_64"
5055 ;;
5056 ppc*-*linux*|powerpc*-*linux*)
5057 LD="${LD-ld} -m elf64ppc"
5058 ;;
5059 s390*-*linux*|s390*-*tpf*)
5060 LD="${LD-ld} -m elf64_s390"
5061 ;;
5062 sparc*-*linux*)
5063 LD="${LD-ld} -m elf64_sparc"
5064 ;;
5065 esac
5066 ;;
5067 esac
5068 fi
5069 rm -rf conftest*
5070 ;;
979273e3 5071
d7040cdb
SE
5072*-*-sco3.2v5*)
5073 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5074 SAVE_CFLAGS="$CFLAGS"
5075 CFLAGS="$CFLAGS -belf"
5076 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5077echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5078if test "${lt_cv_cc_needs_belf+set}" = set; then
979273e3
NN
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080else
d7040cdb
SE
5081 ac_ext=c
5082ac_cpp='$CPP $CPPFLAGS'
5083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086
5087 cat >conftest.$ac_ext <<_ACEOF
979273e3
NN
5088/* confdefs.h. */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h. */
5093
5094int
5095main ()
5096{
979273e3
NN
5097
5098 ;
5099 return 0;
5100}
5101_ACEOF
d7040cdb
SE
5102rm -f conftest.$ac_objext conftest$ac_exeext
5103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>conftest.er1
979273e3
NN
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
8ae85421
AM
5111 { ac_try='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
979273e3
NN
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
d7040cdb 5118 { ac_try='test -s conftest$ac_exeext'
979273e3
NN
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
d7040cdb 5124 lt_cv_cc_needs_belf=yes
979273e3
NN
5125else
5126 echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
d7040cdb 5129lt_cv_cc_needs_belf=no
979273e3 5130fi
d7040cdb
SE
5131rm -f conftest.err conftest.$ac_objext \
5132 conftest$ac_exeext conftest.$ac_ext
5133 ac_ext=c
5134ac_cpp='$CPP $CPPFLAGS'
5135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137ac_compiler_gnu=$ac_cv_c_compiler_gnu
979273e3
NN
5138
5139fi
d7040cdb
SE
5140echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5141echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5142 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5143 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5144 CFLAGS="$SAVE_CFLAGS"
5145 fi
5146 ;;
5147sparc*-*solaris*)
5148 # Find out which ABI we are using.
5149 echo 'int i;' > conftest.$ac_ext
5150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5151 (eval $ac_compile) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; then
5155 case `/usr/bin/file conftest.o` in
5156 *64-bit*)
5157 case $lt_cv_prog_gnu_ld in
5158 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5159 *) LD="${LD-ld} -64" ;;
5160 esac
5161 ;;
5162 esac
5163 fi
5164 rm -rf conftest*
5165 ;;
5166esac
5167
5168need_locks="$enable_libtool_lock"
5169
5170ac_ext=c
5171ac_cpp='$CPP $CPPFLAGS'
5172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5176echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5177# On Suns, sometimes $CPP names a directory.
5178if test -n "$CPP" && test -d "$CPP"; then
5179 CPP=
5180fi
5181if test -z "$CPP"; then
5182 if test "${ac_cv_prog_CPP+set}" = set; then
979273e3
NN
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
d7040cdb
SE
5185 # Double quotes because CPP needs to be expanded
5186 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5187 do
5188 ac_preproc_ok=false
5189for ac_c_preproc_warn_flag in '' yes
5190do
5191 # Use a header file that comes with gcc, so configuring glibc
5192 # with a fresh cross-compiler works.
5193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 # <limits.h> exists even on freestanding compilers.
5195 # On the NeXT, cc -E runs the code through the compiler's parser,
5196 # not just through cpp. "Syntax error" is here to catch this case.
979273e3
NN
5197 cat >conftest.$ac_ext <<_ACEOF
5198/* confdefs.h. */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h. */
d7040cdb
SE
5203#ifdef __STDC__
5204# include <limits.h>
5205#else
5206# include <assert.h>
5207#endif
5208 Syntax error
979273e3 5209_ACEOF
d7040cdb
SE
5210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
979273e3
NN
5212 ac_status=$?
5213 grep -v '^ *+' conftest.er1 >conftest.err
5214 rm -f conftest.er1
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5217 (exit $ac_status); } >/dev/null; then
5218 if test -s conftest.err; then
5219 ac_cpp_err=$ac_c_preproc_warn_flag
5220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
979273e3 5221 else
d7040cdb 5222 ac_cpp_err=
979273e3 5223 fi
252b5132 5224else
d7040cdb 5225 ac_cpp_err=yes
979273e3 5226fi
d7040cdb
SE
5227if test -z "$ac_cpp_err"; then
5228 :
979273e3 5229else
d7040cdb
SE
5230 echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233 # Broken: fails on valid input.
5234continue
5235fi
5236rm -f conftest.err conftest.$ac_ext
5237
5238 # OK, works on sane cases. Now check whether non-existent headers
5239 # can be detected and how.
5240 cat >conftest.$ac_ext <<_ACEOF
979273e3
NN
5241/* confdefs.h. */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h. */
d7040cdb 5246#include <ac_nonexistent.h>
979273e3 5247_ACEOF
d7040cdb
SE
5248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
979273e3
NN
5250 ac_status=$?
5251 grep -v '^ *+' conftest.er1 >conftest.err
5252 rm -f conftest.er1
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5255 (exit $ac_status); } >/dev/null; then
5256 if test -s conftest.err; then
5257 ac_cpp_err=$ac_c_preproc_warn_flag
5258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5259 else
5260 ac_cpp_err=
5261 fi
5262else
5263 ac_cpp_err=yes
5264fi
5265if test -z "$ac_cpp_err"; then
5266 # Broken: success on invalid input.
5267continue
979273e3
NN
5268else
5269 echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
d7040cdb
SE
5272 # Passes both tests.
5273ac_preproc_ok=:
5274break
979273e3 5275fi
d7040cdb 5276rm -f conftest.err conftest.$ac_ext
979273e3 5277
d7040cdb
SE
5278done
5279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5280rm -f conftest.err conftest.$ac_ext
5281if $ac_preproc_ok; then
5282 break
252b5132
RH
5283fi
5284
d7040cdb
SE
5285 done
5286 ac_cv_prog_CPP=$CPP
252b5132 5287
d7040cdb
SE
5288fi
5289 CPP=$ac_cv_prog_CPP
5290else
5291 ac_cv_prog_CPP=$CPP
5292fi
5293echo "$as_me:$LINENO: result: $CPP" >&5
5294echo "${ECHO_T}$CPP" >&6
5295ac_preproc_ok=false
5296for ac_c_preproc_warn_flag in '' yes
5297do
5298 # Use a header file that comes with gcc, so configuring glibc
5299 # with a fresh cross-compiler works.
5300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5301 # <limits.h> exists even on freestanding compilers.
5302 # On the NeXT, cc -E runs the code through the compiler's parser,
5303 # not just through cpp. "Syntax error" is here to catch this case.
5304 cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h. */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h. */
5310#ifdef __STDC__
5311# include <limits.h>
5312#else
5313# include <assert.h>
979273e3 5314#endif
d7040cdb 5315 Syntax error
979273e3 5316_ACEOF
d7040cdb
SE
5317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
979273e3
NN
5319 ac_status=$?
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5324 (exit $ac_status); } >/dev/null; then
5325 if test -s conftest.err; then
5326 ac_cpp_err=$ac_c_preproc_warn_flag
5327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5328 else
5329 ac_cpp_err=
5330 fi
5331else
5332 ac_cpp_err=yes
5333fi
5334if test -z "$ac_cpp_err"; then
5335 :
5336else
5337 echo "$as_me: failed program was:" >&5
5338sed 's/^/| /' conftest.$ac_ext >&5
5339
5340 # Broken: fails on valid input.
5341continue
5342fi
5343rm -f conftest.err conftest.$ac_ext
5344
5345 # OK, works on sane cases. Now check whether non-existent headers
5346 # can be detected and how.
5347 cat >conftest.$ac_ext <<_ACEOF
5348/* confdefs.h. */
5349_ACEOF
5350cat confdefs.h >>conftest.$ac_ext
5351cat >>conftest.$ac_ext <<_ACEOF
5352/* end confdefs.h. */
5353#include <ac_nonexistent.h>
5354_ACEOF
5355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
979273e3 5357 ac_status=$?
d7040cdb
SE
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
979273e3 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5362 (exit $ac_status); } >/dev/null; then
5363 if test -s conftest.err; then
5364 ac_cpp_err=$ac_c_preproc_warn_flag
5365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5366 else
5367 ac_cpp_err=
5368 fi
5369else
5370 ac_cpp_err=yes
5371fi
5372if test -z "$ac_cpp_err"; then
5373 # Broken: success on invalid input.
5374continue
5375else
5376 echo "$as_me: failed program was:" >&5
5377sed 's/^/| /' conftest.$ac_ext >&5
5378
5379 # Passes both tests.
5380ac_preproc_ok=:
5381break
5382fi
5383rm -f conftest.err conftest.$ac_ext
5384
5385done
5386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5387rm -f conftest.err conftest.$ac_ext
5388if $ac_preproc_ok; then
5389 :
5390else
5391 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5392See \`config.log' for more details." >&5
5393echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5394See \`config.log' for more details." >&2;}
5395 { (exit 1); exit 1; }; }
5396fi
5397
5398ac_ext=c
5399ac_cpp='$CPP $CPPFLAGS'
5400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403
5404
5405echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5406echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5407if test "${ac_cv_header_stdc+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409else
979273e3
NN
5410 cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h. */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h. */
979273e3 5416#include <stdlib.h>
d7040cdb
SE
5417#include <stdarg.h>
5418#include <string.h>
5419#include <float.h>
5420
979273e3
NN
5421int
5422main ()
5423{
d7040cdb 5424
979273e3
NN
5425 ;
5426 return 0;
5427}
5428_ACEOF
5429rm -f conftest.$ac_objext
5430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431 (eval $ac_compile) 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
8ae85421
AM
5438 { ac_try='test -z "$ac_c_werror_flag"
5439 || test ! -s conftest.err'
979273e3
NN
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; } &&
5445 { ac_try='test -s conftest.$ac_objext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 (eval $ac_try) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
d7040cdb 5451 ac_cv_header_stdc=yes
979273e3
NN
5452else
5453 echo "$as_me: failed program was:" >&5
5454sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5455
d7040cdb 5456ac_cv_header_stdc=no
979273e3
NN
5457fi
5458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb
SE
5459
5460if test $ac_cv_header_stdc = yes; then
5461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5462 cat >conftest.$ac_ext <<_ACEOF
979273e3
NN
5463/* confdefs.h. */
5464_ACEOF
5465cat confdefs.h >>conftest.$ac_ext
5466cat >>conftest.$ac_ext <<_ACEOF
5467/* end confdefs.h. */
d7040cdb
SE
5468#include <string.h>
5469
5470_ACEOF
5471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5472 $EGREP "memchr" >/dev/null 2>&1; then
5473 :
5474else
5475 ac_cv_header_stdc=no
5476fi
5477rm -f conftest*
5478
5479fi
5480
5481if test $ac_cv_header_stdc = yes; then
5482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5483 cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h. */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h. */
5489#include <stdlib.h>
5490
5491_ACEOF
5492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5493 $EGREP "free" >/dev/null 2>&1; then
5494 :
5495else
5496 ac_cv_header_stdc=no
5497fi
5498rm -f conftest*
5499
5500fi
5501
5502if test $ac_cv_header_stdc = yes; then
5503 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5504 if test "$cross_compiling" = yes; then
5505 :
5506else
5507 cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h. */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h. */
5513#include <ctype.h>
5514#if ((' ' & 0x0FF) == 0x020)
5515# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5516# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5517#else
5518# define ISLOWER(c) \
5519 (('a' <= (c) && (c) <= 'i') \
5520 || ('j' <= (c) && (c) <= 'r') \
5521 || ('s' <= (c) && (c) <= 'z'))
5522# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5523#endif
5524
5525#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
979273e3
NN
5526int
5527main ()
5528{
d7040cdb
SE
5529 int i;
5530 for (i = 0; i < 256; i++)
5531 if (XOR (islower (i), ISLOWER (i))
5532 || toupper (i) != TOUPPER (i))
5533 exit(2);
5534 exit (0);
979273e3
NN
5535}
5536_ACEOF
d7040cdb
SE
5537rm -f conftest$ac_exeext
5538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539 (eval $ac_link) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 (eval $ac_try) 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5548 :
5549else
5550 echo "$as_me: program exited with status $ac_status" >&5
5551echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
5554( exit $ac_status )
5555ac_cv_header_stdc=no
5556fi
5557rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5558fi
5559fi
5560fi
5561echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5562echo "${ECHO_T}$ac_cv_header_stdc" >&6
5563if test $ac_cv_header_stdc = yes; then
5564
5565cat >>confdefs.h <<\_ACEOF
5566#define STDC_HEADERS 1
5567_ACEOF
5568
5569fi
5570
5571# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5582 inttypes.h stdint.h unistd.h
5583do
5584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5585echo "$as_me:$LINENO: checking for $ac_header" >&5
5586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5587if eval "test \"\${$as_ac_Header+set}\" = set"; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590 cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h. */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h. */
5596$ac_includes_default
5597
5598#include <$ac_header>
5599_ACEOF
979273e3
NN
5600rm -f conftest.$ac_objext
5601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
8ae85421
AM
5609 { ac_try='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
979273e3
NN
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
d7040cdb 5622 eval "$as_ac_Header=yes"
979273e3
NN
5623else
5624 echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5626
d7040cdb 5627eval "$as_ac_Header=no"
979273e3
NN
5628fi
5629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb
SE
5630fi
5631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5633if test `eval echo '${'$as_ac_Header'}'` = yes; then
5634 cat >>confdefs.h <<_ACEOF
5635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5636_ACEOF
5637
5638fi
5639
979273e3 5640done
d7040cdb
SE
5641
5642
5643
5644for ac_header in dlfcn.h
5645do
5646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647echo "$as_me:$LINENO: checking for $ac_header" >&5
5648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5649if eval "test \"\${$as_ac_Header+set}\" = set"; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651else
5652 cat >conftest.$ac_ext <<_ACEOF
5653/* confdefs.h. */
5654_ACEOF
5655cat confdefs.h >>conftest.$ac_ext
5656cat >>conftest.$ac_ext <<_ACEOF
5657/* end confdefs.h. */
5658$ac_includes_default
5659
5660#include <$ac_header>
5661_ACEOF
5662rm -f conftest.$ac_objext
5663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 eval "$as_ac_Header=yes"
5685else
5686 echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689eval "$as_ac_Header=no"
5690fi
5691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5692fi
5693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5695if test `eval echo '${'$as_ac_Header'}'` = yes; then
5696 cat >>confdefs.h <<_ACEOF
5697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5698_ACEOF
5699
979273e3 5700fi
252b5132 5701
d7040cdb
SE
5702done
5703
5704
5705
5706# This can be used to rebuild libtool when needed
5707LIBTOOL_DEPS="$ltmain"
5708
5709# Always use our own libtool.
5710LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736test -z "$LN_S" && LN_S="ln -s"
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751if test -n "${ZSH_VERSION+set}" ; then
5752 setopt NO_GLOB_SUBST
5753fi
5754
5755echo "$as_me:$LINENO: checking for objdir" >&5
5756echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5757if test "${lt_cv_objdir+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760 rm -f .libs 2>/dev/null
5761mkdir .libs 2>/dev/null
5762if test -d .libs; then
5763 lt_cv_objdir=.libs
5764else
5765 # MS-DOS does not allow filenames that begin with a dot.
5766 lt_cv_objdir=_libs
5767fi
5768rmdir .libs 2>/dev/null
5769fi
5770echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5771echo "${ECHO_T}$lt_cv_objdir" >&6
5772objdir=$lt_cv_objdir
5773
5774
5775
5776
5777
5778cat >>confdefs.h <<_ACEOF
5779#define LT_OBJDIR "$lt_cv_objdir/"
5780_ACEOF
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798case $host_os in
5799aix3*)
5800 # AIX sometimes has problems with the GCC collect2 program. For some
5801 # reason, if we set the COLLECT_NAMES environment variable, the problems
5802 # vanish in a puff of smoke.
5803 if test "X${COLLECT_NAMES+set}" != Xset; then
5804 COLLECT_NAMES=
5805 export COLLECT_NAMES
5806 fi
5807 ;;
5808esac
5809
5810# Sed substitution that helps us do robust quoting. It backslashifies
5811# metacharacters that are still active within double-quoted strings.
5812sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5813
5814# Same as above, but do not quote variable references.
5815double_quote_subst='s/\(["`\\]\)/\\\1/g'
5816
5817# Sed substitution to delay expansion of an escaped shell variable in a
5818# double_quote_subst'ed string.
5819delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5820
5821# Sed substitution to delay expansion of an escaped single quote.
5822delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5823
5824# Sed substitution to avoid accidental globbing in evaled expressions
5825no_glob_subst='s/\*/\\\*/g'
5826
5827# Global variables:
5828ofile=libtool
5829can_build_shared=yes
5830
5831# All known linkers require a `.a' archive for static linking (except MSVC,
5832# which needs '.lib').
5833libext=a
5834
5835with_gnu_ld="$lt_cv_prog_gnu_ld"
5836
5837old_CC="$CC"
5838old_CFLAGS="$CFLAGS"
5839
5840# Set sane defaults for various variables
5841test -z "$CC" && CC=cc
5842test -z "$LTCC" && LTCC=$CC
5843test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5844test -z "$LD" && LD=ld
5845test -z "$ac_objext" && ac_objext=o
5846
5847for cc_temp in $compiler""; do
5848 case $cc_temp in
5849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5851 \-*) ;;
5852 *) break;;
5853 esac
5854done
5855cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5856
5857
5858# Only perform the check for file, if the check method requires it
5859test -z "$MAGIC_CMD" && MAGIC_CMD=file
5860case $deplibs_check_method in
5861file_magic*)
5862 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5863 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5864echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5865if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868 case $MAGIC_CMD in
5869[\\/*] | ?:[\\/]*)
5870 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5871 ;;
5872*)
5873 lt_save_MAGIC_CMD="$MAGIC_CMD"
5874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5875 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5876 for ac_dir in $ac_dummy; do
5877 IFS="$lt_save_ifs"
5878 test -z "$ac_dir" && ac_dir=.
5879 if test -f $ac_dir/${ac_tool_prefix}file; then
5880 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5881 if test -n "$file_magic_test_file"; then
5882 case $deplibs_check_method in
5883 "file_magic "*)
5884 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5885 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5886 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5887 $EGREP "$file_magic_regex" > /dev/null; then
5888 :
5889 else
5890 cat <<_LT_EOF 1>&2
5891
5892*** Warning: the command libtool uses to detect shared libraries,
5893*** $file_magic_cmd, produces output that libtool cannot recognize.
5894*** The result is that libtool may fail to recognize shared libraries
5895*** as such. This will affect the creation of libtool libraries that
5896*** depend on shared libraries, but programs linked with such libtool
5897*** libraries will work regardless of this problem. Nevertheless, you
5898*** may want to report the problem to your system manager and/or to
5899*** bug-libtool@gnu.org
5900
5901_LT_EOF
5902 fi ;;
5903 esac
5904 fi
5905 break
5906 fi
5907 done
5908 IFS="$lt_save_ifs"
5909 MAGIC_CMD="$lt_save_MAGIC_CMD"
5910 ;;
5911esac
5912fi
5913
5914MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5915if test -n "$MAGIC_CMD"; then
5916 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5917echo "${ECHO_T}$MAGIC_CMD" >&6
5918else
5919 echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
5921fi
5922
5923
5924
5925
5926
5927if test -z "$lt_cv_path_MAGIC_CMD"; then
5928 if test -n "$ac_tool_prefix"; then
5929 echo "$as_me:$LINENO: checking for file" >&5
5930echo $ECHO_N "checking for file... $ECHO_C" >&6
5931if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933else
5934 case $MAGIC_CMD in
5935[\\/*] | ?:[\\/]*)
5936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5937 ;;
5938*)
5939 lt_save_MAGIC_CMD="$MAGIC_CMD"
5940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5941 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5942 for ac_dir in $ac_dummy; do
5943 IFS="$lt_save_ifs"
5944 test -z "$ac_dir" && ac_dir=.
5945 if test -f $ac_dir/file; then
5946 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5947 if test -n "$file_magic_test_file"; then
5948 case $deplibs_check_method in
5949 "file_magic "*)
5950 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5952 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5953 $EGREP "$file_magic_regex" > /dev/null; then
5954 :
5955 else
5956 cat <<_LT_EOF 1>&2
5957
5958*** Warning: the command libtool uses to detect shared libraries,
5959*** $file_magic_cmd, produces output that libtool cannot recognize.
5960*** The result is that libtool may fail to recognize shared libraries
5961*** as such. This will affect the creation of libtool libraries that
5962*** depend on shared libraries, but programs linked with such libtool
5963*** libraries will work regardless of this problem. Nevertheless, you
5964*** may want to report the problem to your system manager and/or to
5965*** bug-libtool@gnu.org
5966
5967_LT_EOF
5968 fi ;;
5969 esac
5970 fi
5971 break
5972 fi
5973 done
5974 IFS="$lt_save_ifs"
5975 MAGIC_CMD="$lt_save_MAGIC_CMD"
5976 ;;
5977esac
5978fi
5979
5980MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5981if test -n "$MAGIC_CMD"; then
5982 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5983echo "${ECHO_T}$MAGIC_CMD" >&6
5984else
5985 echo "$as_me:$LINENO: result: no" >&5
5986echo "${ECHO_T}no" >&6
5987fi
5988
5989
5990 else
5991 MAGIC_CMD=:
5992 fi
5993fi
5994
5995 fi
5996 ;;
5997esac
5998
5999# Use C for the default configuration in the libtool script
6000
6001lt_save_CC="$CC"
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
6007
6008
6009# Source file extension for C test sources.
6010ac_ext=c
6011
6012# Object file extension for compiled C test sources.
6013objext=o
6014objext=$objext
6015
6016# Code to be used in simple compile tests
6017lt_simple_compile_test_code="int some_variable = 0;"
6018
6019# Code to be used in simple link tests
6020lt_simple_link_test_code='int main(){return(0);}'
6021
6022
6023
6024
6025
6026
6027
6028# If no C compiler was specified, use CC.
6029LTCC=${LTCC-"$CC"}
6030
6031# If no C compiler flags were specified, use CFLAGS.
6032LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6033
6034# Allow CC to be a program name with arguments.
6035compiler=$CC
6036
6037# Save the default compiler, since it gets overwritten when the other
6038# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6039compiler_DEFAULT=$CC
6040
6041# save warnings/boilerplate of simple test code
6042ac_outfile=conftest.$ac_objext
6043echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6044eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6045_lt_compiler_boilerplate=`cat conftest.err`
6046$RM conftest*
6047
6048ac_outfile=conftest.$ac_objext
6049echo "$lt_simple_link_test_code" >conftest.$ac_ext
6050eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6051_lt_linker_boilerplate=`cat conftest.err`
6052$RM conftest*
6053
6054
6055## CAVEAT EMPTOR:
6056## There is no encapsulation within the following macros, do not change
6057## the running order or otherwise move them around unless you know exactly
6058## what you are doing...
6059if test -n "$compiler"; then
6060
6061lt_prog_compiler_no_builtin_flag=
6062
6063if test "$GCC" = yes; then
6064 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6065
6066 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6067echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6068if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071 lt_cv_prog_compiler_rtti_exceptions=no
6072 ac_outfile=conftest.$ac_objext
6073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6074 lt_compiler_flag="-fno-rtti -fno-exceptions"
6075 # Insert the option either (1) after the last *FLAGS variable, or
6076 # (2) before a word containing "conftest.", or (3) at the end.
6077 # Note that $ac_compile itself does not contain backslashes and begins
6078 # with a dollar sign (not a hyphen), so the echo should work correctly.
6079 # The option is referenced via a variable to avoid confusing sed.
6080 lt_compile=`echo "$ac_compile" | $SED \
6081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6083 -e 's:$: $lt_compiler_flag:'`
6084 (eval echo "\"\$as_me:6084: $lt_compile\"" >&5)
6085 (eval "$lt_compile" 2>conftest.err)
6086 ac_status=$?
6087 cat conftest.err >&5
6088 echo "$as_me:6088: \$? = $ac_status" >&5
6089 if (exit $ac_status) && test -s "$ac_outfile"; then
6090 # The compiler can only warn and ignore the option if not recognized
6091 # So say no if there are warnings other than the usual output.
6092 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6095 lt_cv_prog_compiler_rtti_exceptions=yes
6096 fi
6097 fi
6098 $RM conftest*
6099
6100fi
6101echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6102echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6103
6104if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6105 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6106else
6107 :
6108fi
6109
6110fi
6111
6112
6113
6114
6115
6116
6117 lt_prog_compiler_wl=
6118lt_prog_compiler_pic=
6119lt_prog_compiler_static=
6120
6121echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6122echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6123
6124 if test "$GCC" = yes; then
6125 lt_prog_compiler_wl='-Wl,'
6126 lt_prog_compiler_static='-static'
6127
6128 case $host_os in
6129 aix*)
6130 # All AIX code is PIC.
6131 if test "$host_cpu" = ia64; then
6132 # AIX 5 now supports IA64 processor
6133 lt_prog_compiler_static='-Bstatic'
6134 fi
6135 ;;
6136
6137 amigaos*)
6138 if test "$host_cpu" = m68k; then
6139 # FIXME: we need at least 68020 code to build shared libraries, but
6140 # adding the `-m68020' flag to GCC prevents building anything better,
6141 # like `-m68040'.
6142 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6143 fi
6144 ;;
6145
6146 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6147 # PIC is the default for these OSes.
6148 ;;
6149
6150 mingw* | cygwin* | pw32* | os2*)
6151 # This hack is so that the source file can tell whether it is being
6152 # built for inclusion in a dll (and should export symbols for example).
6153 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6154 # (--disable-auto-import) libraries
6155 lt_prog_compiler_pic='-DDLL_EXPORT'
6156 ;;
6157
6158 darwin* | rhapsody*)
6159 # PIC is the default on this platform
6160 # Common symbols not allowed in MH_DYLIB files
6161 lt_prog_compiler_pic='-fno-common'
6162 ;;
6163
6164 hpux*)
6165 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6166 # not for PA HP-UX.
6167 case $host_cpu in
6168 hppa*64*|ia64*)
6169 # +Z the default
6170 ;;
6171 *)
6172 lt_prog_compiler_pic='-fPIC'
6173 ;;
6174 esac
6175 ;;
6176
6177 interix[3-9]*)
6178 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6179 # Instead, we relocate shared libraries at runtime.
6180 ;;
6181
6182 msdosdjgpp*)
6183 # Just because we use GCC doesn't mean we suddenly get shared libraries
6184 # on systems that don't support them.
6185 lt_prog_compiler_can_build_shared=no
6186 enable_shared=no
6187 ;;
6188
6189 *nto* | *qnx*)
6190 # QNX uses GNU C++, but need to define -shared option too, otherwise
6191 # it will coredump.
6192 lt_prog_compiler_pic='-fPIC -shared'
6193 ;;
6194
6195 sysv4*MP*)
6196 if test -d /usr/nec; then
6197 lt_prog_compiler_pic=-Kconform_pic
6198 fi
6199 ;;
6200
6201 *)
6202 lt_prog_compiler_pic='-fPIC'
6203 ;;
6204 esac
6205 else
6206 # PORTME Check for flag to pass linker flags through the system compiler.
6207 case $host_os in
6208 aix*)
6209 lt_prog_compiler_wl='-Wl,'
6210 if test "$host_cpu" = ia64; then
6211 # AIX 5 now supports IA64 processor
6212 lt_prog_compiler_static='-Bstatic'
6213 else
6214 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6215 fi
6216 ;;
6217 darwin*)
6218 # PIC is the default on this platform
6219 # Common symbols not allowed in MH_DYLIB files
6220 case $cc_basename in
6221 xlc*)
6222 lt_prog_compiler_pic='-qnocommon'
6223 lt_prog_compiler_wl='-Wl,'
6224 ;;
6225 esac
6226 ;;
6227
6228 mingw* | cygwin* | pw32* | os2*)
6229 # This hack is so that the source file can tell whether it is being
6230 # built for inclusion in a dll (and should export symbols for example).
6231 lt_prog_compiler_pic='-DDLL_EXPORT'
6232 ;;
6233
6234 hpux9* | hpux10* | hpux11*)
6235 lt_prog_compiler_wl='-Wl,'
6236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6237 # not for PA HP-UX.
6238 case $host_cpu in
6239 hppa*64*|ia64*)
6240 # +Z the default
6241 ;;
6242 *)
6243 lt_prog_compiler_pic='+Z'
6244 ;;
6245 esac
6246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6247 lt_prog_compiler_static='${wl}-a ${wl}archive'
6248 ;;
6249
6250 irix5* | irix6* | nonstopux*)
6251 lt_prog_compiler_wl='-Wl,'
6252 # PIC (with -KPIC) is the default.
6253 lt_prog_compiler_static='-non_shared'
6254 ;;
6255
6256 linux* | k*bsd*-gnu)
6257 case $cc_basename in
6258 icc* | ecc*)
6259 lt_prog_compiler_wl='-Wl,'
6260 lt_prog_compiler_pic='-KPIC'
6261 lt_prog_compiler_static='-static'
6262 ;;
6263 pgcc* | pgf77* | pgf90* | pgf95*)
6264 # Portland Group compilers (*not* the Pentium gcc compiler,
6265 # which looks to be a dead project)
6266 lt_prog_compiler_wl='-Wl,'
6267 lt_prog_compiler_pic='-fpic'
6268 lt_prog_compiler_static='-Bstatic'
6269 ;;
6270 ccc*)
6271 lt_prog_compiler_wl='-Wl,'
6272 # All Alpha code is PIC.
6273 lt_prog_compiler_static='-non_shared'
6274 ;;
6275 *)
6276 case `$CC -V 2>&1 | sed 5q` in
6277 *Sun\ C*)
6278 # Sun C 5.9
6279 lt_prog_compiler_pic='-KPIC'
6280 lt_prog_compiler_static='-Bstatic'
6281 lt_prog_compiler_wl='-Wl,'
6282 ;;
6283 *Sun\ F*)
6284 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6285 lt_prog_compiler_pic='-KPIC'
6286 lt_prog_compiler_static='-Bstatic'
6287 lt_prog_compiler_wl=''
6288 ;;
6289 esac
6290 ;;
6291 esac
6292 ;;
6293
6294 newsos6)
6295 lt_prog_compiler_pic='-KPIC'
6296 lt_prog_compiler_static='-Bstatic'
6297 ;;
6298
6299 *nto* | *qnx*)
6300 # QNX uses GNU C++, but need to define -shared option too, otherwise
6301 # it will coredump.
6302 lt_prog_compiler_pic='-fPIC -shared'
6303 ;;
6304
6305 osf3* | osf4* | osf5*)
6306 lt_prog_compiler_wl='-Wl,'
6307 # All OSF/1 code is PIC.
6308 lt_prog_compiler_static='-non_shared'
6309 ;;
6310
6311 rdos*)
6312 lt_prog_compiler_static='-non_shared'
6313 ;;
6314
6315 solaris*)
6316 lt_prog_compiler_pic='-KPIC'
6317 lt_prog_compiler_static='-Bstatic'
6318 case $cc_basename in
6319 f77* | f90* | f95*)
6320 lt_prog_compiler_wl='-Qoption ld ';;
6321 *)
6322 lt_prog_compiler_wl='-Wl,';;
6323 esac
6324 ;;
6325
6326 sunos4*)
6327 lt_prog_compiler_wl='-Qoption ld '
6328 lt_prog_compiler_pic='-PIC'
6329 lt_prog_compiler_static='-Bstatic'
6330 ;;
6331
6332 sysv4 | sysv4.2uw2* | sysv4.3*)
6333 lt_prog_compiler_wl='-Wl,'
6334 lt_prog_compiler_pic='-KPIC'
6335 lt_prog_compiler_static='-Bstatic'
6336 ;;
6337
6338 sysv4*MP*)
6339 if test -d /usr/nec ;then
6340 lt_prog_compiler_pic='-Kconform_pic'
6341 lt_prog_compiler_static='-Bstatic'
6342 fi
6343 ;;
6344
6345 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6346 lt_prog_compiler_wl='-Wl,'
6347 lt_prog_compiler_pic='-KPIC'
6348 lt_prog_compiler_static='-Bstatic'
6349 ;;
6350
6351 unicos*)
6352 lt_prog_compiler_wl='-Wl,'
6353 lt_prog_compiler_can_build_shared=no
6354 ;;
6355
6356 uts4*)
6357 lt_prog_compiler_pic='-pic'
6358 lt_prog_compiler_static='-Bstatic'
6359 ;;
6360
6361 *)
6362 lt_prog_compiler_can_build_shared=no
6363 ;;
6364 esac
6365 fi
6366
6367case $host_os in
6368 # For platforms which do not support PIC, -DPIC is meaningless:
6369 *djgpp*)
6370 lt_prog_compiler_pic=
6371 ;;
6372 *)
6373 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6374 ;;
6375esac
6376echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6377echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6378
6379
6380
6381
6382
6383
6384#
6385# Check to make sure the PIC flag actually works.
6386#
6387if test -n "$lt_prog_compiler_pic"; then
6388 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6389echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6390if test "${lt_prog_compiler_pic_works+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393 lt_prog_compiler_pic_works=no
6394 ac_outfile=conftest.$ac_objext
6395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6396 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6397 # Insert the option either (1) after the last *FLAGS variable, or
6398 # (2) before a word containing "conftest.", or (3) at the end.
6399 # Note that $ac_compile itself does not contain backslashes and begins
6400 # with a dollar sign (not a hyphen), so the echo should work correctly.
6401 # The option is referenced via a variable to avoid confusing sed.
6402 lt_compile=`echo "$ac_compile" | $SED \
6403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6405 -e 's:$: $lt_compiler_flag:'`
6406 (eval echo "\"\$as_me:6406: $lt_compile\"" >&5)
6407 (eval "$lt_compile" 2>conftest.err)
6408 ac_status=$?
6409 cat conftest.err >&5
6410 echo "$as_me:6410: \$? = $ac_status" >&5
6411 if (exit $ac_status) && test -s "$ac_outfile"; then
6412 # The compiler can only warn and ignore the option if not recognized
6413 # So say no if there are warnings other than the usual output.
6414 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6417 lt_prog_compiler_pic_works=yes
6418 fi
6419 fi
6420 $RM conftest*
6421
6422fi
6423echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6424echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6425
6426if test x"$lt_prog_compiler_pic_works" = xyes; then
6427 case $lt_prog_compiler_pic in
6428 "" | " "*) ;;
6429 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6430 esac
6431else
6432 lt_prog_compiler_pic=
6433 lt_prog_compiler_can_build_shared=no
6434fi
6435
6436fi
6437
6438
6439
6440
6441
6442
6443#
6444# Check to make sure the static flag actually works.
6445#
6446wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6447echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6448echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6449if test "${lt_prog_compiler_static_works+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451else
6452 lt_prog_compiler_static_works=no
6453 save_LDFLAGS="$LDFLAGS"
6454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6455 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6457 # The linker can only warn and ignore the option if not recognized
6458 # So say no if there are warnings
6459 if test -s conftest.err; then
6460 # Append any errors to the config.log.
6461 cat conftest.err 1>&5
6462 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6464 if diff conftest.exp conftest.er2 >/dev/null; then
6465 lt_prog_compiler_static_works=yes
6466 fi
6467 else
6468 lt_prog_compiler_static_works=yes
6469 fi
6470 fi
6471 $RM conftest*
6472 LDFLAGS="$save_LDFLAGS"
6473
6474fi
6475echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6476echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6477
6478if test x"$lt_prog_compiler_static_works" = xyes; then
6479 :
6480else
6481 lt_prog_compiler_static=
6482fi
6483
6484
6485
6486
6487
6488
6489
6490 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6491echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6492if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494else
6495 lt_cv_prog_compiler_c_o=no
6496 $RM -r conftest 2>/dev/null
6497 mkdir conftest
6498 cd conftest
6499 mkdir out
6500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6501
6502 lt_compiler_flag="-o out/conftest2.$ac_objext"
6503 # Insert the option either (1) after the last *FLAGS variable, or
6504 # (2) before a word containing "conftest.", or (3) at the end.
6505 # Note that $ac_compile itself does not contain backslashes and begins
6506 # with a dollar sign (not a hyphen), so the echo should work correctly.
6507 lt_compile=`echo "$ac_compile" | $SED \
6508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6510 -e 's:$: $lt_compiler_flag:'`
6511 (eval echo "\"\$as_me:6511: $lt_compile\"" >&5)
6512 (eval "$lt_compile" 2>out/conftest.err)
6513 ac_status=$?
6514 cat out/conftest.err >&5
6515 echo "$as_me:6515: \$? = $ac_status" >&5
6516 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6517 then
6518 # The compiler can only warn and ignore the option if not recognized
6519 # So say no if there are warnings
6520 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6521 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6522 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6523 lt_cv_prog_compiler_c_o=yes
6524 fi
6525 fi
6526 chmod u+w . 2>&5
6527 $RM conftest*
6528 # SGI C++ compiler will create directory out/ii_files/ for
6529 # template instantiation
6530 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6531 $RM out/* && rmdir out
6532 cd ..
6533 $RM -r conftest
6534 $RM conftest*
6535
6536fi
6537echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6538echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6539
6540
6541
6542
6543
6544
6545 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6546echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6547if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549else
6550 lt_cv_prog_compiler_c_o=no
6551 $RM -r conftest 2>/dev/null
6552 mkdir conftest
6553 cd conftest
6554 mkdir out
6555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6556
6557 lt_compiler_flag="-o out/conftest2.$ac_objext"
6558 # Insert the option either (1) after the last *FLAGS variable, or
6559 # (2) before a word containing "conftest.", or (3) at the end.
6560 # Note that $ac_compile itself does not contain backslashes and begins
6561 # with a dollar sign (not a hyphen), so the echo should work correctly.
6562 lt_compile=`echo "$ac_compile" | $SED \
6563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6565 -e 's:$: $lt_compiler_flag:'`
6566 (eval echo "\"\$as_me:6566: $lt_compile\"" >&5)
6567 (eval "$lt_compile" 2>out/conftest.err)
6568 ac_status=$?
6569 cat out/conftest.err >&5
6570 echo "$as_me:6570: \$? = $ac_status" >&5
6571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6572 then
6573 # The compiler can only warn and ignore the option if not recognized
6574 # So say no if there are warnings
6575 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6578 lt_cv_prog_compiler_c_o=yes
6579 fi
6580 fi
6581 chmod u+w . 2>&5
6582 $RM conftest*
6583 # SGI C++ compiler will create directory out/ii_files/ for
6584 # template instantiation
6585 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6586 $RM out/* && rmdir out
6587 cd ..
6588 $RM -r conftest
6589 $RM conftest*
6590
6591fi
6592echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6593echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6594
6595
6596
6597
6598hard_links="nottested"
6599if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6600 # do not overwrite the value of need_locks provided by the user
6601 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6602echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6603 hard_links=yes
6604 $RM conftest*
6605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6606 touch conftest.a
6607 ln conftest.a conftest.b 2>&5 || hard_links=no
6608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6609 echo "$as_me:$LINENO: result: $hard_links" >&5
6610echo "${ECHO_T}$hard_links" >&6
6611 if test "$hard_links" = no; then
6612 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6613echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6614 need_locks=warn
6615 fi
6616else
6617 need_locks=no
6618fi
6619
6620
6621
6622
6623
6624
6625 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6626echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6627
6628 runpath_var=
6629 allow_undefined_flag=
6630 always_export_symbols=no
6631 archive_cmds=
6632 archive_expsym_cmds=
6633 compiler_needs_object=no
6634 enable_shared_with_static_runtimes=no
6635 export_dynamic_flag_spec=
6636 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6637 hardcode_automatic=no
6638 hardcode_direct=no
6639 hardcode_direct_absolute=no
6640 hardcode_libdir_flag_spec=
6641 hardcode_libdir_flag_spec_ld=
6642 hardcode_libdir_separator=
6643 hardcode_minus_L=no
6644 hardcode_shlibpath_var=unsupported
6645 inherit_rpath=no
6646 link_all_deplibs=unknown
6647 module_cmds=
6648 module_expsym_cmds=
6649 old_archive_from_new_cmds=
6650 old_archive_from_expsyms_cmds=
6651 thread_safe_flag_spec=
6652 whole_archive_flag_spec=
6653 # include_expsyms should be a list of space-separated symbols to be *always*
6654 # included in the symbol list
6655 include_expsyms=
6656 # exclude_expsyms can be an extended regexp of symbols to exclude
6657 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6659 # as well as any symbol that contains `d'.
6660 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6662 # platforms (ab)use it in PIC code, but their linkers get confused if
6663 # the symbol is explicitly referenced. Since portable code cannot
6664 # rely on this symbol name, it's probably fine to never include it in
6665 # preloaded symbol tables.
6666 extract_expsyms_cmds=
6667
6668 case $host_os in
6669 cygwin* | mingw* | pw32*)
6670 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6671 # When not using gcc, we currently assume that we are using
6672 # Microsoft Visual C++.
6673 if test "$GCC" != yes; then
6674 with_gnu_ld=no
6675 fi
6676 ;;
6677 interix*)
6678 # we just hope/assume this is gcc and not c89 (= MSVC++)
6679 with_gnu_ld=yes
6680 ;;
6681 openbsd*)
6682 with_gnu_ld=no
6683 ;;
6684 esac
6685
6686 ld_shlibs=yes
6687 if test "$with_gnu_ld" = yes; then
6688 # If archive_cmds runs LD, not CC, wlarc should be empty
6689 wlarc='${wl}'
6690
6691 # Set some defaults for GNU ld with shared library support. These
6692 # are reset later if shared libraries are not supported. Putting them
6693 # here allows them to be overridden if necessary.
6694 runpath_var=LD_RUN_PATH
6695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6696 export_dynamic_flag_spec='${wl}--export-dynamic'
6697 # ancient GNU ld didn't support --whole-archive et. al.
6698 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6699 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6700 else
6701 whole_archive_flag_spec=
6702 fi
6703 supports_anon_versioning=no
6704 case `$LD -v 2>&1` in
6705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6708 *\ 2.11.*) ;; # other 2.11 versions
6709 *) supports_anon_versioning=yes ;;
6710 esac
6711
6712 # See if GNU ld supports shared libraries.
6713 case $host_os in
6714 aix3* | aix4* | aix5*)
6715 # On AIX/PPC, the GNU linker is very broken
6716 if test "$host_cpu" != ia64; then
6717 ld_shlibs=no
6718 cat <<_LT_EOF 1>&2
6719
6720*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6721*** to be unable to reliably create shared libraries on AIX.
6722*** Therefore, libtool is disabling shared libraries support. If you
6723*** really care for shared libraries, you may want to modify your PATH
6724*** so that a non-GNU linker is found, and then restart.
6725
6726_LT_EOF
6727 fi
6728 ;;
6729
6730 amigaos*)
6731 if test "$host_cpu" = m68k; then
6732 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)'
6733 hardcode_libdir_flag_spec='-L$libdir'
6734 hardcode_minus_L=yes
6735 fi
6736
6737 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6738 # that the semantics of dynamic libraries on AmigaOS, at least up
6739 # to version 4, is to share data among multiple programs linked
6740 # with the same dynamic library. Since this doesn't match the
6741 # behavior of shared libraries on other platforms, we can't use
6742 # them.
6743 ld_shlibs=no
6744 ;;
6745
6746 beos*)
6747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6748 allow_undefined_flag=unsupported
6749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6750 # support --undefined. This deserves some investigation. FIXME
6751 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752 else
6753 ld_shlibs=no
6754 fi
6755 ;;
6756
6757 cygwin* | mingw* | pw32*)
6758 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6759 # as there is no search path for DLLs.
6760 hardcode_libdir_flag_spec='-L$libdir'
6761 allow_undefined_flag=unsupported
6762 always_export_symbols=no
6763 enable_shared_with_static_runtimes=yes
6764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6765
6766 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6768 # If the export-symbols file already is a .def file (1st line
6769 # is EXPORTS), use it as is; otherwise, prepend...
6770 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6771 cp $export_symbols $output_objdir/$soname.def;
6772 else
6773 echo EXPORTS > $output_objdir/$soname.def;
6774 cat $export_symbols >> $output_objdir/$soname.def;
6775 fi~
6776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6777 else
6778 ld_shlibs=no
6779 fi
6780 ;;
6781
6782 interix[3-9]*)
6783 hardcode_direct=no
6784 hardcode_shlibpath_var=no
6785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6786 export_dynamic_flag_spec='${wl}-E'
6787 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6788 # Instead, shared libraries are loaded at an image base (0x10000000 by
6789 # default) and relocated if they conflict, which is a slow very memory
6790 # consuming and fragmenting process. To avoid this, we pick a random,
6791 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6792 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6793 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6794 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'
6795 ;;
6796
6797 gnu* | linux* | tpf* | k*bsd*-gnu)
6798 tmp_diet=no
6799 if test "$host_os" = linux-dietlibc; then
6800 case $cc_basename in
6801 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6802 esac
6803 fi
6804 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6805 && test "$tmp_diet" = no
6806 then
6807 tmp_addflag=
6808 case $cc_basename,$host_cpu in
6809 pgcc*) # Portland Group C compiler
6810 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'
6811 tmp_addflag=' $pic_flag'
6812 ;;
6813 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6814 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'
6815 tmp_addflag=' $pic_flag -Mnomain' ;;
6816 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6817 tmp_addflag=' -i_dynamic' ;;
6818 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6819 tmp_addflag=' -i_dynamic -nofor_main' ;;
6820 ifc* | ifort*) # Intel Fortran compiler
6821 tmp_addflag=' -nofor_main' ;;
6822 esac
6823 case `$CC -V 2>&1 | sed 5q` in
6824 *Sun\ C*) # Sun C 5.9
6825 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'
6826 compiler_needs_object=yes
6827 tmp_sharedflag='-G' ;;
6828 *Sun\ F*) # Sun Fortran 8.3
6829 tmp_sharedflag='-G' ;;
6830 *)
6831 tmp_sharedflag='-shared' ;;
6832 esac
6833 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6834
6835 if test "x$supports_anon_versioning" = xyes; then
6836 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6838 echo "local: *; };" >> $output_objdir/$libname.ver~
6839 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6840 fi
6841 else
6842 ld_shlibs=no
6843 fi
6844 ;;
6845
6846 netbsd*)
6847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6848 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6849 wlarc=
6850 else
6851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6853 fi
6854 ;;
6855
6856 solaris*)
6857 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6858 ld_shlibs=no
6859 cat <<_LT_EOF 1>&2
6860
6861*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6862*** create shared libraries on Solaris systems. Therefore, libtool
6863*** is disabling shared libraries support. We urge you to upgrade GNU
6864*** binutils to release 2.9.1 or newer. Another option is to modify
6865*** your PATH or compiler configuration so that the native linker is
6866*** used, and then restart.
6867
6868_LT_EOF
6869 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6872 else
6873 ld_shlibs=no
6874 fi
6875 ;;
6876
6877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6878 case `$LD -v 2>&1` in
6879 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6880 ld_shlibs=no
6881 cat <<_LT_EOF 1>&2
6882
6883*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6884*** reliably create shared libraries on SCO systems. Therefore, libtool
6885*** is disabling shared libraries support. We urge you to upgrade GNU
6886*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6887*** your PATH or compiler configuration so that the native linker is
6888*** used, and then restart.
6889
6890_LT_EOF
6891 ;;
6892 *)
6893 # For security reasons, it is highly recommended that you always
6894 # use absolute paths for naming shared libraries, and exclude the
6895 # DT_RUNPATH tag from executables and libraries. But doing so
6896 # requires that you compile everything twice, which is a pain.
6897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6901 else
6902 ld_shlibs=no
6903 fi
6904 ;;
6905 esac
6906 ;;
6907
6908 sunos4*)
6909 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6910 wlarc=
6911 hardcode_direct=yes
6912 hardcode_shlibpath_var=no
6913 ;;
6914
6915 *)
6916 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6918 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6919 else
6920 ld_shlibs=no
6921 fi
6922 ;;
6923 esac
6924
6925 if test "$ld_shlibs" = no; then
6926 runpath_var=
6927 hardcode_libdir_flag_spec=
6928 export_dynamic_flag_spec=
6929 whole_archive_flag_spec=
6930 fi
6931 else
6932 # PORTME fill in a description of your system's linker (not GNU ld)
6933 case $host_os in
6934 aix3*)
6935 allow_undefined_flag=unsupported
6936 always_export_symbols=yes
6937 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'
6938 # Note: this linker hardcodes the directories in LIBPATH if there
6939 # are no directories specified by -L.
6940 hardcode_minus_L=yes
6941 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6942 # Neither direct hardcoding nor static linking is supported with a
6943 # broken collect2.
6944 hardcode_direct=unsupported
6945 fi
6946 ;;
6947
6948 aix4* | aix5*)
6949 if test "$host_cpu" = ia64; then
6950 # On IA64, the linker does run time linking by default, so we don't
6951 # have to do anything special.
6952 aix_use_runtimelinking=no
6953 exp_sym_flag='-Bexport'
6954 no_entry_flag=""
6955 else
6956 # If we're using GNU nm, then we don't want the "-C" option.
6957 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6958 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6959 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'
6960 else
6961 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'
6962 fi
6963 aix_use_runtimelinking=no
6964
6965 # Test if we are trying to use run time linking or normal
6966 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6967 # need to do runtime linking.
6968 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6969 for ld_flag in $LDFLAGS; do
6970 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6971 aix_use_runtimelinking=yes
6972 break
6973 fi
6974 done
6975 ;;
6976 esac
6977
6978 exp_sym_flag='-bexport'
6979 no_entry_flag='-bnoentry'
6980 fi
6981
6982 # When large executables or shared objects are built, AIX ld can
6983 # have problems creating the table of contents. If linking a library
6984 # or program results in "error TOC overflow" add -mminimal-toc to
6985 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6986 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6987
6988 archive_cmds=''
6989 hardcode_direct=yes
6990 hardcode_direct_absolute=yes
6991 hardcode_libdir_separator=':'
6992 link_all_deplibs=yes
6993 file_list_spec='${wl}-f,'
6994
6995 if test "$GCC" = yes; then
6996 case $host_os in aix4.[012]|aix4.[012].*)
6997 # We only want to do this on AIX 4.2 and lower, the check
6998 # below for broken collect2 doesn't work under 4.3+
6999 collect2name=`${CC} -print-prog-name=collect2`
7000 if test -f "$collect2name" &&
7001 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7002 then
7003 # We have reworked collect2
7004 :
7005 else
7006 # We have old collect2
7007 hardcode_direct=unsupported
7008 # It fails to find uninstalled libraries when the uninstalled
7009 # path is not listed in the libpath. Setting hardcode_minus_L
7010 # to unsupported forces relinking
7011 hardcode_minus_L=yes
7012 hardcode_libdir_flag_spec='-L$libdir'
7013 hardcode_libdir_separator=
7014 fi
7015 ;;
7016 esac
7017 shared_flag='-shared'
7018 if test "$aix_use_runtimelinking" = yes; then
7019 shared_flag="$shared_flag "'${wl}-G'
7020 fi
7021 else
7022 # not using gcc
7023 if test "$host_cpu" = ia64; then
7024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7025 # chokes on -Wl,-G. The following line is correct:
7026 shared_flag='-G'
7027 else
7028 if test "$aix_use_runtimelinking" = yes; then
7029 shared_flag='${wl}-G'
7030 else
7031 shared_flag='${wl}-bM:SRE'
7032 fi
7033 fi
7034 fi
7035
7036 # It seems that -bexpall does not export symbols beginning with
7037 # underscore (_), so it is better to generate a list of symbols to export.
7038 always_export_symbols=yes
7039 if test "$aix_use_runtimelinking" = yes; then
7040 # Warning - without using the other runtime loading flags (-brtl),
7041 # -berok will link without error, but may produce a broken library.
7042 allow_undefined_flag='-berok'
7043 # Determine the default libpath from the value encoded in an
7044 # empty executable.
7045 cat >conftest.$ac_ext <<_ACEOF
7046/* confdefs.h. */
7047_ACEOF
7048cat confdefs.h >>conftest.$ac_ext
7049cat >>conftest.$ac_ext <<_ACEOF
7050/* end confdefs.h. */
7051
7052int
7053main ()
7054{
7055
7056 ;
7057 return 0;
7058}
7059_ACEOF
7060rm -f conftest.$ac_objext conftest$ac_exeext
7061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062 (eval $ac_link) 2>conftest.er1
7063 ac_status=$?
7064 grep -v '^ *+' conftest.er1 >conftest.err
7065 rm -f conftest.er1
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } &&
7069 { ac_try='test -z "$ac_c_werror_flag"
7070 || test ! -s conftest.err'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; } &&
7076 { ac_try='test -s conftest$ac_exeext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082
7083lt_aix_libpath_sed='
7084 /Import File Strings/,/^$/ {
7085 /^0/ {
7086 s/^0 *\(.*\)$/\1/
7087 p
7088 }
7089 }'
7090aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7091# Check for a 64-bit object if we didn't find anything.
7092if test -z "$aix_libpath"; then
7093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7094fi
7095else
7096 echo "$as_me: failed program was:" >&5
7097sed 's/^/| /' conftest.$ac_ext >&5
7098
7099fi
7100rm -f conftest.err conftest.$ac_objext \
7101 conftest$ac_exeext conftest.$ac_ext
7102if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7103
7104 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7105 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"
7106 else
7107 if test "$host_cpu" = ia64; then
7108 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7109 allow_undefined_flag="-z nodefs"
7110 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"
7111 else
7112 # Determine the default libpath from the value encoded in an
7113 # empty executable.
7114 cat >conftest.$ac_ext <<_ACEOF
7115/* confdefs.h. */
7116_ACEOF
7117cat confdefs.h >>conftest.$ac_ext
7118cat >>conftest.$ac_ext <<_ACEOF
7119/* end confdefs.h. */
7120
7121int
7122main ()
7123{
7124
7125 ;
7126 return 0;
7127}
7128_ACEOF
7129rm -f conftest.$ac_objext conftest$ac_exeext
7130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7131 (eval $ac_link) 2>conftest.er1
7132 ac_status=$?
7133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -z "$ac_c_werror_flag"
7139 || test ! -s conftest.err'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 (eval $ac_try) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; } &&
7145 { ac_try='test -s conftest$ac_exeext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151
7152lt_aix_libpath_sed='
7153 /Import File Strings/,/^$/ {
7154 /^0/ {
7155 s/^0 *\(.*\)$/\1/
7156 p
7157 }
7158 }'
7159aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7160# Check for a 64-bit object if we didn't find anything.
7161if test -z "$aix_libpath"; then
7162 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7163fi
7164else
7165 echo "$as_me: failed program was:" >&5
7166sed 's/^/| /' conftest.$ac_ext >&5
7167
7168fi
7169rm -f conftest.err conftest.$ac_objext \
7170 conftest$ac_exeext conftest.$ac_ext
7171if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7172
7173 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7174 # Warning - without using the other run time loading flags,
7175 # -berok will link without error, but may produce a broken library.
7176 no_undefined_flag=' ${wl}-bernotok'
7177 allow_undefined_flag=' ${wl}-berok'
7178 # Exported symbols can be pulled into shared objects from archives
7179 whole_archive_flag_spec='$convenience'
7180 archive_cmds_need_lc=yes
7181 # This is similar to how AIX traditionally builds its shared libraries.
7182 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'
7183 fi
7184 fi
7185 ;;
7186
7187 amigaos*)
7188 if test "$host_cpu" = m68k; then
7189 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)'
7190 hardcode_libdir_flag_spec='-L$libdir'
7191 hardcode_minus_L=yes
7192 fi
7193 # see comment about different semantics on the GNU ld section
7194 ld_shlibs=no
7195 ;;
7196
7197 bsdi[45]*)
7198 export_dynamic_flag_spec=-rdynamic
7199 ;;
7200
7201 cygwin* | mingw* | pw32*)
7202 # When not using gcc, we currently assume that we are using
7203 # Microsoft Visual C++.
7204 # hardcode_libdir_flag_spec is actually meaningless, as there is
7205 # no search path for DLLs.
7206 hardcode_libdir_flag_spec=' '
7207 allow_undefined_flag=unsupported
7208 # Tell ltmain to make .lib files, not .a files.
7209 libext=lib
7210 # Tell ltmain to make .dll files, not .so files.
7211 shrext_cmds=".dll"
7212 # FIXME: Setting linknames here is a bad hack.
7213 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7214 # The linker will automatically build a .lib file if we build a DLL.
7215 old_archive_from_new_cmds='true'
7216 # FIXME: Should let the user specify the lib program.
7217 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7218 fix_srcfile_path='`cygpath -w "$srcfile"`'
7219 enable_shared_with_static_runtimes=yes
7220 ;;
7221
7222 darwin* | rhapsody*)
7223 case $host_os in
7224 rhapsody* | darwin1.[012])
7225 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7226 ;;
7227 *) # Darwin 1.3 on
7228 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7229 10.[012])
7230 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7231 ;;
7232 10.*)
7233 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7234 ;;
7235 esac
7236 ;;
7237 esac
7238 archive_cmds_need_lc=no
7239 hardcode_direct=no
7240 hardcode_automatic=yes
7241 hardcode_shlibpath_var=unsupported
7242 whole_archive_flag_spec=''
7243 link_all_deplibs=yes
7244 if test "$GCC" = yes ; then
7245 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248 lt_cv_apple_cc_single_mod=no
7249 if test -z "${LT_MULTI_MODULE}"; then
7250 # By default we will add the -single_module flag. You can override
7251 # by either setting the environment variable LT_MULTI_MODULE
7252 # non-empty at configure time, or by adding -multi-module to the
7253 # link flags.
7254 echo "int foo(void){return 1;}" > conftest.c
7255 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7256 -dynamiclib ${wl}-single_module conftest.c
7257 if test -f libconftest.dylib; then
7258 lt_cv_apple_cc_single_mod=yes
7259 rm libconftest.dylib
7260 fi
7261 rm conftest.$ac_ext
7262 fi
7263fi
7264
7265 output_verbose_link_cmd=echo
7266 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7267 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7268 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}'
7269 else
7270 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7271 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}'
7272 fi
7273 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7274 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}'
7275 else
7276 case $cc_basename in
7277 xlc*)
7278 output_verbose_link_cmd=echo
7279 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7280 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7281 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7282 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}'
7283 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}'
7284 ;;
7285 *)
7286 ld_shlibs=no
7287 ;;
7288 esac
7289 fi
7290 ;;
7291
7292 dgux*)
7293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7294 hardcode_libdir_flag_spec='-L$libdir'
7295 hardcode_shlibpath_var=no
7296 ;;
7297
7298 freebsd1*)
7299 ld_shlibs=no
7300 ;;
7301
7302 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7303 # support. Future versions do this automatically, but an explicit c++rt0.o
7304 # does not break anything, and helps significantly (at the cost of a little
7305 # extra space).
7306 freebsd2.2*)
7307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7308 hardcode_libdir_flag_spec='-R$libdir'
7309 hardcode_direct=yes
7310 hardcode_shlibpath_var=no
7311 ;;
7312
7313 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7314 freebsd2*)
7315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7316 hardcode_direct=yes
7317 hardcode_minus_L=yes
7318 hardcode_shlibpath_var=no
7319 ;;
7320
7321 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7322 freebsd* | dragonfly*)
7323 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7324 hardcode_libdir_flag_spec='-R$libdir'
7325 hardcode_direct=yes
7326 hardcode_shlibpath_var=no
7327 ;;
7328
7329 hpux9*)
7330 if test "$GCC" = yes; then
7331 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'
7332 else
7333 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'
7334 fi
7335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7336 hardcode_libdir_separator=:
7337 hardcode_direct=yes
7338
7339 # hardcode_minus_L: Not really in the search PATH,
7340 # but as the default location of the library.
7341 hardcode_minus_L=yes
7342 export_dynamic_flag_spec='${wl}-E'
7343 ;;
7344
7345 hpux10*)
7346 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7347 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7348 else
7349 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7350 fi
7351 if test "$with_gnu_ld" = no; then
7352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7353 hardcode_libdir_flag_spec_ld='+b $libdir'
7354 hardcode_libdir_separator=:
7355 hardcode_direct=yes
7356 hardcode_direct_absolute=yes
7357 export_dynamic_flag_spec='${wl}-E'
7358 # hardcode_minus_L: Not really in the search PATH,
7359 # but as the default location of the library.
7360 hardcode_minus_L=yes
7361 fi
7362 ;;
7363
7364 hpux11*)
7365 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7366 case $host_cpu in
7367 hppa*64*)
7368 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7369 ;;
7370 ia64*)
7371 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7372 ;;
7373 *)
7374 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7375 ;;
7376 esac
7377 else
7378 case $host_cpu in
7379 hppa*64*)
7380 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7381 ;;
7382 ia64*)
7383 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7384 ;;
7385 *)
7386 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7387 ;;
7388 esac
7389 fi
7390 if test "$with_gnu_ld" = no; then
7391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7392 hardcode_libdir_separator=:
7393
7394 case $host_cpu in
7395 hppa*64*|ia64*)
7396 hardcode_direct=no
7397 hardcode_shlibpath_var=no
7398 ;;
7399 *)
7400 hardcode_direct=yes
7401 hardcode_direct_absolute=yes
7402 export_dynamic_flag_spec='${wl}-E'
7403
7404 # hardcode_minus_L: Not really in the search PATH,
7405 # but as the default location of the library.
7406 hardcode_minus_L=yes
7407 ;;
7408 esac
7409 fi
7410 ;;
7411
7412 irix5* | irix6* | nonstopux*)
7413 if test "$GCC" = yes; then
7414 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'
7415 # Try to use the -exported_symbol ld option, if it does not
7416 # work, assume that -exports_file does not work either and
7417 # implicitly export all symbols.
7418 save_LDFLAGS="$LDFLAGS"
7419 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7420 cat >conftest.$ac_ext <<_ACEOF
7421int foo(void) {}
7422_ACEOF
7423rm -f conftest.$ac_objext conftest$ac_exeext
7424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>conftest.er1
7426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } &&
7432 { ac_try='test -z "$ac_c_werror_flag"
7433 || test ! -s conftest.err'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 (eval $ac_try) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; } &&
7439 { ac_try='test -s conftest$ac_exeext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 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'
7446
7447else
7448 echo "$as_me: failed program was:" >&5
7449sed 's/^/| /' conftest.$ac_ext >&5
7450
7451fi
7452rm -f conftest.err conftest.$ac_objext \
7453 conftest$ac_exeext conftest.$ac_ext
7454 LDFLAGS="$save_LDFLAGS"
7455 else
7456 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'
7457 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'
7458 fi
7459 archive_cmds_need_lc='no'
7460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7461 hardcode_libdir_separator=:
7462 inherit_rpath=yes
7463 link_all_deplibs=yes
7464 ;;
7465
7466 netbsd*)
7467 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7469 else
7470 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7471 fi
7472 hardcode_libdir_flag_spec='-R$libdir'
7473 hardcode_direct=yes
7474 hardcode_shlibpath_var=no
7475 ;;
7476
7477 newsos6)
7478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7479 hardcode_direct=yes
7480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7481 hardcode_libdir_separator=:
7482 hardcode_shlibpath_var=no
7483 ;;
7484
7485 *nto* | *qnx*)
7486 ;;
7487
7488 openbsd*)
7489 hardcode_direct=yes
7490 hardcode_shlibpath_var=no
7491 hardcode_direct_absolute=yes
7492 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7494 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7495 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7496 export_dynamic_flag_spec='${wl}-E'
7497 else
7498 case $host_os in
7499 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7500 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7501 hardcode_libdir_flag_spec='-R$libdir'
7502 ;;
7503 *)
7504 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7505 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7506 ;;
7507 esac
7508 fi
7509 ;;
7510
7511 os2*)
7512 hardcode_libdir_flag_spec='-L$libdir'
7513 hardcode_minus_L=yes
7514 allow_undefined_flag=unsupported
7515 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'
7516 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7517 ;;
7518
7519 osf3*)
7520 if test "$GCC" = yes; then
7521 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7522 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'
7523 else
7524 allow_undefined_flag=' -expect_unresolved \*'
7525 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'
7526 fi
7527 archive_cmds_need_lc='no'
7528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7529 hardcode_libdir_separator=:
7530 ;;
7531
7532 osf4* | osf5*) # as osf3* with the addition of -msym flag
7533 if test "$GCC" = yes; then
7534 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7535 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'
7536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7537 else
7538 allow_undefined_flag=' -expect_unresolved \*'
7539 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'
7540 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~
7541 $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'
7542
7543 # Both c and cxx compiler support -rpath directly
7544 hardcode_libdir_flag_spec='-rpath $libdir'
7545 fi
7546 archive_cmds_need_lc='no'
7547 hardcode_libdir_separator=:
7548 ;;
7549
7550 solaris*)
7551 no_undefined_flag=' -z defs'
7552 if test "$GCC" = yes; then
7553 wlarc='${wl}'
7554 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7555 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7556 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7557 else
7558 case `$CC -V 2>&1` in
7559 *"Compilers 5.0"*)
7560 wlarc=''
7561 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7562 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7564 ;;
7565 *)
7566 wlarc='${wl}'
7567 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7569 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7570 ;;
7571 esac
7572 fi
7573 hardcode_libdir_flag_spec='-R$libdir'
7574 hardcode_shlibpath_var=no
7575 case $host_os in
7576 solaris2.[0-5] | solaris2.[0-5].*) ;;
7577 *)
7578 # The compiler driver will combine and reorder linker options,
7579 # but understands `-z linker_flag'. GCC discards it without `$wl',
7580 # but is careful enough not to reorder.
7581 # Supported since Solaris 2.6 (maybe 2.5.1?)
7582 if test "$GCC" = yes; then
7583 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7584 else
7585 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7586 fi
7587 ;;
7588 esac
7589 link_all_deplibs=yes
7590 ;;
7591
7592 sunos4*)
7593 if test "x$host_vendor" = xsequent; then
7594 # Use $CC to link under sequent, because it throws in some extra .o
7595 # files that make .init and .fini sections work.
7596 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7597 else
7598 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7599 fi
7600 hardcode_libdir_flag_spec='-L$libdir'
7601 hardcode_direct=yes
7602 hardcode_minus_L=yes
7603 hardcode_shlibpath_var=no
7604 ;;
7605
7606 sysv4)
7607 case $host_vendor in
7608 sni)
7609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7610 hardcode_direct=yes # is this really true???
7611 ;;
7612 siemens)
7613 ## LD is ld it makes a PLAMLIB
7614 ## CC just makes a GrossModule.
7615 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7616 reload_cmds='$CC -r -o $output$reload_objs'
7617 hardcode_direct=no
7618 ;;
7619 motorola)
7620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7621 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7622 ;;
7623 esac
7624 runpath_var='LD_RUN_PATH'
7625 hardcode_shlibpath_var=no
7626 ;;
7627
7628 sysv4.3*)
7629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630 hardcode_shlibpath_var=no
7631 export_dynamic_flag_spec='-Bexport'
7632 ;;
7633
7634 sysv4*MP*)
7635 if test -d /usr/nec; then
7636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7637 hardcode_shlibpath_var=no
7638 runpath_var=LD_RUN_PATH
7639 hardcode_runpath_var=yes
7640 ld_shlibs=yes
7641 fi
7642 ;;
7643
7644 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7645 no_undefined_flag='${wl}-z,text'
7646 archive_cmds_need_lc=no
7647 hardcode_shlibpath_var=no
7648 runpath_var='LD_RUN_PATH'
7649
7650 if test "$GCC" = yes; then
7651 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7652 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7653 else
7654 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7655 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7656 fi
7657 ;;
7658
7659 sysv5* | sco3.2v5* | sco5v6*)
7660 # Note: We can NOT use -z defs as we might desire, because we do not
7661 # link with -lc, and that would cause any symbols used from libc to
7662 # always be unresolved, which means just about no library would
7663 # ever link correctly. If we're not using GNU ld we use -z text
7664 # though, which does catch some bad symbols but isn't as heavy-handed
7665 # as -z defs.
7666 no_undefined_flag='${wl}-z,text'
7667 allow_undefined_flag='${wl}-z,nodefs'
7668 archive_cmds_need_lc=no
7669 hardcode_shlibpath_var=no
7670 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7671 hardcode_libdir_separator=':'
7672 link_all_deplibs=yes
7673 export_dynamic_flag_spec='${wl}-Bexport'
7674 runpath_var='LD_RUN_PATH'
7675
7676 if test "$GCC" = yes; then
7677 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7678 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7679 else
7680 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7681 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7682 fi
7683 ;;
7684
7685 uts4*)
7686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7687 hardcode_libdir_flag_spec='-L$libdir'
7688 hardcode_shlibpath_var=no
7689 ;;
7690
7691 *)
7692 ld_shlibs=no
7693 ;;
7694 esac
7695
7696 if test x$host_vendor = xsni; then
7697 case $host in
7698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7699 export_dynamic_flag_spec='${wl}-Blargedynsym'
7700 ;;
7701 esac
7702 fi
7703 fi
7704
7705echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7706echo "${ECHO_T}$ld_shlibs" >&6
7707test "$ld_shlibs" = no && can_build_shared=no
7708
7709with_gnu_ld=$with_gnu_ld
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725#
7726# Do we need to explicitly link libc?
7727#
7728case "x$archive_cmds_need_lc" in
7729x|xyes)
7730 # Assume -lc should be added
7731 archive_cmds_need_lc=yes
7732
7733 if test "$enable_shared" = yes && test "$GCC" = yes; then
7734 case $archive_cmds in
7735 *'~'*)
7736 # FIXME: we may have to deal with multi-command sequences.
7737 ;;
7738 '$CC '*)
7739 # Test whether the compiler implicitly links with -lc since on some
7740 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7741 # to ld, don't add -lc before -lgcc.
7742 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7743echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7744 $RM conftest*
7745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7746
7747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7748 (eval $ac_compile) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } 2>conftest.err; then
7752 soname=conftest
7753 lib=conftest
7754 libobjs=conftest.$ac_objext
7755 deplibs=
7756 wl=$lt_prog_compiler_wl
7757 pic_flag=$lt_prog_compiler_pic
7758 compiler_flags=-v
7759 linker_flags=-v
7760 verstring=
7761 output_objdir=.
7762 libname=conftest
7763 lt_save_allow_undefined_flag=$allow_undefined_flag
7764 allow_undefined_flag=
7765 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7766 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }
7770 then
7771 archive_cmds_need_lc=no
7772 else
7773 archive_cmds_need_lc=yes
7774 fi
7775 allow_undefined_flag=$lt_save_allow_undefined_flag
7776 else
7777 cat conftest.err 1>&5
7778 fi
7779 $RM conftest*
7780 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7781echo "${ECHO_T}$archive_cmds_need_lc" >&6
7782 ;;
7783 esac
7784 fi
7785 ;;
7786esac
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7945echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7946withGCC=$GCC
7947if test "$withGCC" = yes; then
7948 case $host_os in
7949 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7950 *) lt_awk_arg="/^libraries:/" ;;
7951 esac
7952 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7953 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7954 # if the path contains ";" then we assume it to be the separator
7955 # otherwise default to the standard path separator (i.e. ":") - it is
7956 # assumed that no part of a normal pathname contains ";" but that should
7957 # okay in the real world where ";" in dirpaths is itself problematic.
7958 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7959 else
7960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7961 fi
7962 # Ok, now we have the path, separated by spaces, we can step through it
7963 # and add multilib dir if necessary.
7964 lt_tmp_lt_search_path_spec=
7965 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7966 for lt_sys_path in $lt_search_path_spec; do
7967 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7969 else
7970 test -d "$lt_sys_path" && \
7971 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7972 fi
7973 done
7974 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7975BEGIN {RS=" "; FS="/|\n";} {
7976 lt_foo="";
7977 lt_count=0;
7978 for (lt_i = NF; lt_i > 0; lt_i--) {
7979 if ($lt_i != "" && $lt_i != ".") {
7980 if ($lt_i == "..") {
7981 lt_count++;
7982 } else {
7983 if (lt_count == 0) {
7984 lt_foo="/" $lt_i lt_foo;
7985 } else {
7986 lt_count--;
7987 }
7988 }
7989 }
7990 }
7991 if (lt_foo != "") { lt_freq[lt_foo]++; }
7992 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7993}'`
7994 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7995else
7996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7997fi
7998library_names_spec=
7999libname_spec='lib$name'
8000soname_spec=
8001shrext_cmds=".so"
8002postinstall_cmds=
8003postuninstall_cmds=
8004finish_cmds=
8005finish_eval=
8006shlibpath_var=
8007shlibpath_overrides_runpath=unknown
8008version_type=none
8009dynamic_linker="$host_os ld.so"
8010sys_lib_dlsearch_path_spec="/lib /usr/lib"
8011need_lib_prefix=unknown
8012hardcode_into_libs=no
8013
8014# when you set need_version to no, make sure it does not cause -set_version
8015# flags to be left without arguments
8016need_version=unknown
8017
8018case $host_os in
8019aix3*)
8020 version_type=linux
8021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8022 shlibpath_var=LIBPATH
8023
8024 # AIX 3 has no versioning support, so we append a major version to the name.
8025 soname_spec='${libname}${release}${shared_ext}$major'
8026 ;;
8027
8028aix4* | aix5*)
8029 version_type=linux
8030 need_lib_prefix=no
8031 need_version=no
8032 hardcode_into_libs=yes
8033 if test "$host_cpu" = ia64; then
8034 # AIX 5 supports IA64
8035 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8036 shlibpath_var=LD_LIBRARY_PATH
8037 else
8038 # With GCC up to 2.95.x, collect2 would create an import file
8039 # for dependence libraries. The import file would start with
8040 # the line `#! .'. This would cause the generated library to
8041 # depend on `.', always an invalid library. This was fixed in
8042 # development snapshots of GCC prior to 3.0.
8043 case $host_os in
8044 aix4 | aix4.[01] | aix4.[01].*)
8045 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8046 echo ' yes '
8047 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8048 :
8049 else
8050 can_build_shared=no
8051 fi
8052 ;;
8053 esac
8054 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8055 # soname into executable. Probably we can add versioning support to
8056 # collect2, so additional links can be useful in future.
8057 if test "$aix_use_runtimelinking" = yes; then
8058 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8059 # instead of lib<name>.a to let people know that these are not
8060 # typical AIX shared libraries.
8061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8062 else
8063 # We preserve .a as extension for shared libraries through AIX4.2
8064 # and later when we are not doing run time linking.
8065 library_names_spec='${libname}${release}.a $libname.a'
8066 soname_spec='${libname}${release}${shared_ext}$major'
8067 fi
8068 shlibpath_var=LIBPATH
8069 fi
8070 ;;
8071
8072amigaos*)
8073 if test "$host_cpu" = m68k; then
8074 library_names_spec='$libname.ixlibrary $libname.a'
8075 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8076 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'
8077 else
8078 dynamic_linker=no
8079 fi
8080 ;;
8081
8082beos*)
8083 library_names_spec='${libname}${shared_ext}'
8084 dynamic_linker="$host_os ld.so"
8085 shlibpath_var=LIBRARY_PATH
8086 ;;
8087
8088bsdi[45]*)
8089 version_type=linux
8090 need_version=no
8091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8092 soname_spec='${libname}${release}${shared_ext}$major'
8093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8094 shlibpath_var=LD_LIBRARY_PATH
8095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8097 # the default ld.so.conf also contains /usr/contrib/lib and
8098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8099 # libtool to hard-code these into programs
8100 ;;
8101
8102cygwin* | mingw* | pw32*)
8103 version_type=windows
8104 shrext_cmds=".dll"
8105 need_version=no
8106 need_lib_prefix=no
8107
8108 case $withGCC,$host_os in
8109 yes,cygwin* | yes,mingw* | yes,pw32*)
8110 library_names_spec='$libname.dll.a'
8111 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8112 postinstall_cmds='base_file=`basename \${file}`~
8113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8114 dldir=$destdir/`dirname \$dlpath`~
8115 test -d \$dldir || mkdir -p \$dldir~
8116 $install_prog $dir/$dlname \$dldir/$dlname~
8117 chmod a+x \$dldir/$dlname~
8118 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8119 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8120 fi'
8121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8122 dlpath=$dir/\$dldll~
8123 $RM \$dlpath'
8124 shlibpath_overrides_runpath=yes
8125
8126 case $host_os in
8127 cygwin*)
8128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8131 ;;
8132 mingw*)
8133 # MinGW DLLs use traditional 'lib' prefix
8134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8135 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8136 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8137 # It is most probably a Windows format PATH printed by
8138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8139 # path with ; separators, and with drive letters. We can handle the
8140 # drive letters (cygwin fileutils understands them), so leave them,
8141 # especially as we might pass files found there to a mingw objdump,
8142 # which wouldn't understand a cygwinified path. Ahh.
8143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8144 else
8145 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8146 fi
8147 ;;
8148 pw32*)
8149 # pw32 DLLs use 'pw' prefix rather than 'lib'
8150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8151 ;;
8152 esac
8153 ;;
8154
8155 *)
8156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8157 ;;
8158 esac
8159 dynamic_linker='Win32 ld.exe'
8160 # FIXME: first we should search . and the directory the executable is in
8161 shlibpath_var=PATH
8162 ;;
8163
8164darwin* | rhapsody*)
8165 dynamic_linker="$host_os dyld"
8166 version_type=darwin
8167 need_lib_prefix=no
8168 need_version=no
8169 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8170 soname_spec='${libname}${release}${major}$shared_ext'
8171 shlibpath_overrides_runpath=yes
8172 shlibpath_var=DYLD_LIBRARY_PATH
8173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8174
8175 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8177 ;;
8178
8179dgux*)
8180 version_type=linux
8181 need_lib_prefix=no
8182 need_version=no
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8184 soname_spec='${libname}${release}${shared_ext}$major'
8185 shlibpath_var=LD_LIBRARY_PATH
8186 ;;
8187
8188freebsd1*)
8189 dynamic_linker=no
8190 ;;
8191
8192freebsd* | dragonfly*)
8193 # DragonFly does not have aout. When/if they implement a new
8194 # versioning mechanism, adjust this.
8195 if test -x /usr/bin/objformat; then
8196 objformat=`/usr/bin/objformat`
8197 else
8198 case $host_os in
8199 freebsd[123]*) objformat=aout ;;
8200 *) objformat=elf ;;
8201 esac
8202 fi
8203 version_type=freebsd-$objformat
8204 case $version_type in
8205 freebsd-elf*)
8206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8207 need_version=no
8208 need_lib_prefix=no
8209 ;;
8210 freebsd-*)
8211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8212 need_version=yes
8213 ;;
8214 esac
8215 shlibpath_var=LD_LIBRARY_PATH
8216 case $host_os in
8217 freebsd2*)
8218 shlibpath_overrides_runpath=yes
8219 ;;
8220 freebsd3.[01]* | freebsdelf3.[01]*)
8221 shlibpath_overrides_runpath=yes
8222 hardcode_into_libs=yes
8223 ;;
8224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8226 shlibpath_overrides_runpath=no
8227 hardcode_into_libs=yes
8228 ;;
8229 *) # from 4.6 on, and DragonFly
8230 shlibpath_overrides_runpath=yes
8231 hardcode_into_libs=yes
8232 ;;
8233 esac
8234 ;;
8235
8236gnu*)
8237 version_type=linux
8238 need_lib_prefix=no
8239 need_version=no
8240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8241 soname_spec='${libname}${release}${shared_ext}$major'
8242 shlibpath_var=LD_LIBRARY_PATH
8243 hardcode_into_libs=yes
8244 ;;
8245
8246hpux9* | hpux10* | hpux11*)
8247 # Give a soname corresponding to the major version so that dld.sl refuses to
8248 # link against other versions.
8249 version_type=sunos
8250 need_lib_prefix=no
8251 need_version=no
8252 case $host_cpu in
8253 ia64*)
8254 shrext_cmds='.so'
8255 hardcode_into_libs=yes
8256 dynamic_linker="$host_os dld.so"
8257 shlibpath_var=LD_LIBRARY_PATH
8258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8260 soname_spec='${libname}${release}${shared_ext}$major'
8261 if test "X$HPUX_IA64_MODE" = X32; then
8262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8263 else
8264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8265 fi
8266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8267 ;;
8268 hppa*64*)
8269 shrext_cmds='.sl'
8270 hardcode_into_libs=yes
8271 dynamic_linker="$host_os dld.sl"
8272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8275 soname_spec='${libname}${release}${shared_ext}$major'
8276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8278 ;;
8279 *)
8280 shrext_cmds='.sl'
8281 dynamic_linker="$host_os dld.sl"
8282 shlibpath_var=SHLIB_PATH
8283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 ;;
8287 esac
8288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8289 postinstall_cmds='chmod 555 $lib'
8290 ;;
8291
8292interix[3-9]*)
8293 version_type=linux
8294 need_lib_prefix=no
8295 need_version=no
8296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8297 soname_spec='${libname}${release}${shared_ext}$major'
8298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath=no
8301 hardcode_into_libs=yes
8302 ;;
8303
8304irix5* | irix6* | nonstopux*)
8305 case $host_os in
8306 nonstopux*) version_type=nonstopux ;;
8307 *)
8308 if test "$lt_cv_prog_gnu_ld" = yes; then
8309 version_type=linux
8310 else
8311 version_type=irix
8312 fi ;;
8313 esac
8314 need_lib_prefix=no
8315 need_version=no
8316 soname_spec='${libname}${release}${shared_ext}$major'
8317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8318 case $host_os in
8319 irix5* | nonstopux*)
8320 libsuff= shlibsuff=
8321 ;;
8322 *)
8323 case $LD in # libtool.m4 will add one of these switches to LD
8324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8325 libsuff= shlibsuff= libmagic=32-bit;;
8326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8327 libsuff=32 shlibsuff=N32 libmagic=N32;;
8328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8330 *) libsuff= shlibsuff= libmagic=never-match;;
8331 esac
8332 ;;
8333 esac
8334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8335 shlibpath_overrides_runpath=no
8336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8338 hardcode_into_libs=yes
8339 ;;
8340
8341# No shared lib support for Linux oldld, aout, or coff.
8342linux*oldld* | linux*aout* | linux*coff*)
8343 dynamic_linker=no
8344 ;;
8345
8346# This must be Linux ELF.
8347linux* | k*bsd*-gnu)
8348 version_type=linux
8349 need_lib_prefix=no
8350 need_version=no
8351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8352 soname_spec='${libname}${release}${shared_ext}$major'
8353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8354 shlibpath_var=LD_LIBRARY_PATH
8355 shlibpath_overrides_runpath=no
8356 # Some binutils ld are patched to set DT_RUNPATH
8357 save_LDFLAGS=$LDFLAGS
8358 save_libdir=$libdir
8359 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8360 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8361 cat >conftest.$ac_ext <<_ACEOF
8362/* confdefs.h. */
8363_ACEOF
8364cat confdefs.h >>conftest.$ac_ext
8365cat >>conftest.$ac_ext <<_ACEOF
8366/* end confdefs.h. */
8367
8368int
8369main ()
8370{
8371
8372 ;
8373 return 0;
8374}
8375_ACEOF
8376rm -f conftest.$ac_objext conftest$ac_exeext
8377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378 (eval $ac_link) 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -z "$ac_c_werror_flag"
8386 || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest$ac_exeext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8399 shlibpath_overrides_runpath=yes
8400fi
8401
8402else
8403 echo "$as_me: failed program was:" >&5
8404sed 's/^/| /' conftest.$ac_ext >&5
8405
8406fi
8407rm -f conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
8409 LDFLAGS=$save_LDFLAGS
8410 libdir=$save_libdir
8411
8412 # This implies no fast_install, which is unacceptable.
8413 # Some rework will be needed to allow for fast_install
8414 # before this can be enabled.
8415 hardcode_into_libs=yes
8416
8417 # Append ld.so.conf contents to the search path
8418 if test -f /etc/ld.so.conf; then
8419 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' ' '`
8420 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8421 fi
8422
8423 # We used to test for /lib/ld.so.1 and disable shared libraries on
8424 # powerpc, because MkLinux only supported shared libraries with the
8425 # GNU dynamic linker. Since this was broken with cross compilers,
8426 # most powerpc-linux boxes support dynamic linking these days and
8427 # people can always --disable-shared, the test was removed, and we
8428 # assume the GNU/Linux dynamic linker is in use.
8429 dynamic_linker='GNU/Linux ld.so'
8430 ;;
8431
8432netbsd*)
8433 version_type=sunos
8434 need_lib_prefix=no
8435 need_version=no
8436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8439 dynamic_linker='NetBSD (a.out) ld.so'
8440 else
8441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8442 soname_spec='${libname}${release}${shared_ext}$major'
8443 dynamic_linker='NetBSD ld.elf_so'
8444 fi
8445 shlibpath_var=LD_LIBRARY_PATH
8446 shlibpath_overrides_runpath=yes
8447 hardcode_into_libs=yes
8448 ;;
8449
8450newsos6)
8451 version_type=linux
8452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8453 shlibpath_var=LD_LIBRARY_PATH
8454 shlibpath_overrides_runpath=yes
8455 ;;
8456
8457*nto* | *qnx*)
8458 version_type=qnx
8459 need_lib_prefix=no
8460 need_version=no
8461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8462 soname_spec='${libname}${release}${shared_ext}$major'
8463 shlibpath_var=LD_LIBRARY_PATH
8464 shlibpath_overrides_runpath=no
8465 hardcode_into_libs=yes
8466 dynamic_linker='ldqnx.so'
8467 ;;
8468
8469openbsd*)
8470 version_type=sunos
8471 sys_lib_dlsearch_path_spec="/usr/lib"
8472 need_lib_prefix=no
8473 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8474 case $host_os in
8475 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8476 *) need_version=no ;;
8477 esac
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8480 shlibpath_var=LD_LIBRARY_PATH
8481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8482 case $host_os in
8483 openbsd2.[89] | openbsd2.[89].*)
8484 shlibpath_overrides_runpath=no
8485 ;;
8486 *)
8487 shlibpath_overrides_runpath=yes
8488 ;;
8489 esac
8490 else
8491 shlibpath_overrides_runpath=yes
8492 fi
8493 ;;
8494
8495os2*)
8496 libname_spec='$name'
8497 shrext_cmds=".dll"
8498 need_lib_prefix=no
8499 library_names_spec='$libname${shared_ext} $libname.a'
8500 dynamic_linker='OS/2 ld.exe'
8501 shlibpath_var=LIBPATH
8502 ;;
8503
8504osf3* | osf4* | osf5*)
8505 version_type=osf
8506 need_lib_prefix=no
8507 need_version=no
8508 soname_spec='${libname}${release}${shared_ext}$major'
8509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8510 shlibpath_var=LD_LIBRARY_PATH
8511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8513 ;;
8514
8515rdos*)
8516 dynamic_linker=no
8517 ;;
8518
8519solaris*)
8520 version_type=linux
8521 need_lib_prefix=no
8522 need_version=no
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8524 soname_spec='${libname}${release}${shared_ext}$major'
8525 shlibpath_var=LD_LIBRARY_PATH
8526 shlibpath_overrides_runpath=yes
8527 hardcode_into_libs=yes
8528 # ldd complains unless libraries are executable
8529 postinstall_cmds='chmod +x $lib'
8530 ;;
8531
8532sunos4*)
8533 version_type=sunos
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8536 shlibpath_var=LD_LIBRARY_PATH
8537 shlibpath_overrides_runpath=yes
8538 if test "$with_gnu_ld" = yes; then
8539 need_lib_prefix=no
8540 fi
8541 need_version=yes
8542 ;;
8543
8544sysv4 | sysv4.3*)
8545 version_type=linux
8546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8547 soname_spec='${libname}${release}${shared_ext}$major'
8548 shlibpath_var=LD_LIBRARY_PATH
8549 case $host_vendor in
8550 sni)
8551 shlibpath_overrides_runpath=no
8552 need_lib_prefix=no
8553 runpath_var=LD_RUN_PATH
8554 ;;
8555 siemens)
8556 need_lib_prefix=no
8557 ;;
8558 motorola)
8559 need_lib_prefix=no
8560 need_version=no
8561 shlibpath_overrides_runpath=no
8562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8563 ;;
8564 esac
8565 ;;
8566
8567sysv4*MP*)
8568 if test -d /usr/nec ;then
8569 version_type=linux
8570 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8571 soname_spec='$libname${shared_ext}.$major'
8572 shlibpath_var=LD_LIBRARY_PATH
8573 fi
8574 ;;
8575
8576sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8577 version_type=freebsd-elf
8578 need_lib_prefix=no
8579 need_version=no
8580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8581 soname_spec='${libname}${release}${shared_ext}$major'
8582 shlibpath_var=LD_LIBRARY_PATH
8583 shlibpath_overrides_runpath=yes
8584 hardcode_into_libs=yes
8585 if test "$with_gnu_ld" = yes; then
8586 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8587 else
8588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8589 case $host_os in
8590 sco3.2v5*)
8591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8592 ;;
8593 esac
8594 fi
8595 sys_lib_dlsearch_path_spec='/usr/lib'
8596 ;;
8597
8598tpf*)
8599 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8600 version_type=linux
8601 need_lib_prefix=no
8602 need_version=no
8603 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604 shlibpath_var=LD_LIBRARY_PATH
8605 shlibpath_overrides_runpath=no
8606 hardcode_into_libs=yes
8607 ;;
8608
8609uts4*)
8610 version_type=linux
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8612 soname_spec='${libname}${release}${shared_ext}$major'
8613 shlibpath_var=LD_LIBRARY_PATH
8614 ;;
8615
8616*)
8617 dynamic_linker=no
8618 ;;
8619esac
8620echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8621echo "${ECHO_T}$dynamic_linker" >&6
8622test "$dynamic_linker" = no && can_build_shared=no
8623
8624variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8625if test "$GCC" = yes; then
8626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8627fi
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8716echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8717hardcode_action=
8718if test -n "$hardcode_libdir_flag_spec" ||
8719 test -n "$runpath_var" ||
8720 test "X$hardcode_automatic" = "Xyes" ; then
8721
8722 # We can hardcode non-existent directories.
8723 if test "$hardcode_direct" != no &&
8724 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8725 # have to relink, otherwise we might link with an installed library
8726 # when we should be linking with a yet-to-be-installed one
8727 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8728 test "$hardcode_minus_L" != no; then
8729 # Linking always hardcodes the temporary library directory.
8730 hardcode_action=relink
8731 else
8732 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8733 hardcode_action=immediate
8734 fi
8735else
8736 # We cannot hardcode anything, or else we can only hardcode existing
8737 # directories.
8738 hardcode_action=unsupported
8739fi
8740echo "$as_me:$LINENO: result: $hardcode_action" >&5
8741echo "${ECHO_T}$hardcode_action" >&6
8742
8743if test "$hardcode_action" = relink ||
8744 test "$inherit_rpath" = yes; then
8745 # Fast installation is not supported
8746 enable_fast_install=no
8747elif test "$shlibpath_overrides_runpath" = yes ||
8748 test "$enable_shared" = no; then
8749 # Fast installation is not necessary
8750 enable_fast_install=needless
8751fi
8752
8753
8754
8755
8756
8757
8758 if test "x$enable_dlopen" != xyes; then
8759 enable_dlopen=unknown
8760 enable_dlopen_self=unknown
8761 enable_dlopen_self_static=unknown
8762else
8763 lt_cv_dlopen=no
8764 lt_cv_dlopen_libs=
8765
8766 case $host_os in
8767 beos*)
8768 lt_cv_dlopen="load_add_on"
8769 lt_cv_dlopen_libs=
8770 lt_cv_dlopen_self=yes
8771 ;;
8772
8773 mingw* | pw32*)
8774 lt_cv_dlopen="LoadLibrary"
8775 lt_cv_dlopen_libs=
8776 ;;
8777
8778 cygwin*)
8779 lt_cv_dlopen="dlopen"
8780 lt_cv_dlopen_libs=
8781 ;;
8782
8783 darwin*)
8784 # if libdl is installed we need to link against it
8785 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8786echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8787if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789else
8790 ac_check_lib_save_LIBS=$LIBS
8791LIBS="-ldl $LIBS"
8792cat >conftest.$ac_ext <<_ACEOF
8793/* confdefs.h. */
8794_ACEOF
8795cat confdefs.h >>conftest.$ac_ext
8796cat >>conftest.$ac_ext <<_ACEOF
8797/* end confdefs.h. */
8798
8799/* Override any gcc2 internal prototype to avoid an error. */
8800#ifdef __cplusplus
8801extern "C"
8802#endif
8803/* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8805char dlopen ();
8806int
8807main ()
8808{
8809dlopen ();
8810 ;
8811 return 0;
8812}
8813_ACEOF
8814rm -f conftest.$ac_objext conftest$ac_exeext
8815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 (eval $ac_try) 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_lib_dl_dlopen=yes
8837else
8838 echo "$as_me: failed program was:" >&5
8839sed 's/^/| /' conftest.$ac_ext >&5
8840
8841ac_cv_lib_dl_dlopen=no
8842fi
8843rm -f conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845LIBS=$ac_check_lib_save_LIBS
8846fi
8847echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8848echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8849if test $ac_cv_lib_dl_dlopen = yes; then
8850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8851else
8852
8853 lt_cv_dlopen="dyld"
8854 lt_cv_dlopen_libs=
8855 lt_cv_dlopen_self=yes
8856
8857fi
8858
8859 ;;
8860
8861 *)
8862 echo "$as_me:$LINENO: checking for shl_load" >&5
8863echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8864if test "${ac_cv_func_shl_load+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8866else
8867 cat >conftest.$ac_ext <<_ACEOF
8868/* confdefs.h. */
8869_ACEOF
8870cat confdefs.h >>conftest.$ac_ext
8871cat >>conftest.$ac_ext <<_ACEOF
8872/* end confdefs.h. */
8873/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8875#define shl_load innocuous_shl_load
8876
8877/* System header to define __stub macros and hopefully few prototypes,
8878 which can conflict with char shl_load (); below.
8879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8880 <limits.h> exists even on freestanding compilers. */
8881
8882#ifdef __STDC__
8883# include <limits.h>
8884#else
8885# include <assert.h>
8886#endif
8887
8888#undef shl_load
8889
8890/* Override any gcc2 internal prototype to avoid an error. */
8891#ifdef __cplusplus
8892extern "C"
8893{
8894#endif
8895/* We use char because int might match the return type of a gcc2
8896 builtin and then its argument prototype would still apply. */
8897char shl_load ();
8898/* The GNU C library defines this for functions which it implements
8899 to always fail with ENOSYS. Some functions are actually named
8900 something starting with __ and the normal name is an alias. */
8901#if defined (__stub_shl_load) || defined (__stub___shl_load)
8902choke me
8903#else
8904char (*f) () = shl_load;
8905#endif
8906#ifdef __cplusplus
8907}
8908#endif
8909
8910int
8911main ()
8912{
8913return f != shl_load;
8914 ;
8915 return 0;
8916}
8917_ACEOF
8918rm -f conftest.$ac_objext conftest$ac_exeext
8919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920 (eval $ac_link) 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
8927 { ac_try='test -z "$ac_c_werror_flag"
8928 || test ! -s conftest.err'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest$ac_exeext'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 (eval $ac_try) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 ac_cv_func_shl_load=yes
8941else
8942 echo "$as_me: failed program was:" >&5
8943sed 's/^/| /' conftest.$ac_ext >&5
8944
8945ac_cv_func_shl_load=no
8946fi
8947rm -f conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949fi
8950echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8951echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8952if test $ac_cv_func_shl_load = yes; then
8953 lt_cv_dlopen="shl_load"
8954else
8955 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8956echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8957if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959else
8960 ac_check_lib_save_LIBS=$LIBS
8961LIBS="-ldld $LIBS"
8962cat >conftest.$ac_ext <<_ACEOF
8963/* confdefs.h. */
8964_ACEOF
8965cat confdefs.h >>conftest.$ac_ext
8966cat >>conftest.$ac_ext <<_ACEOF
8967/* end confdefs.h. */
8968
8969/* Override any gcc2 internal prototype to avoid an error. */
8970#ifdef __cplusplus
8971extern "C"
8972#endif
8973/* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8975char shl_load ();
8976int
8977main ()
8978{
8979shl_load ();
8980 ;
8981 return 0;
8982}
8983_ACEOF
8984rm -f conftest.$ac_objext conftest$ac_exeext
8985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986 (eval $ac_link) 2>conftest.er1
8987 ac_status=$?
8988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 (eval $ac_try) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_lib_dld_shl_load=yes
9007else
9008 echo "$as_me: failed program was:" >&5
9009sed 's/^/| /' conftest.$ac_ext >&5
9010
9011ac_cv_lib_dld_shl_load=no
9012fi
9013rm -f conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
9015LIBS=$ac_check_lib_save_LIBS
9016fi
9017echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9018echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9019if test $ac_cv_lib_dld_shl_load = yes; then
9020 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9021else
9022 echo "$as_me:$LINENO: checking for dlopen" >&5
9023echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9024if test "${ac_cv_func_dlopen+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9026else
9027 cat >conftest.$ac_ext <<_ACEOF
9028/* confdefs.h. */
9029_ACEOF
9030cat confdefs.h >>conftest.$ac_ext
9031cat >>conftest.$ac_ext <<_ACEOF
9032/* end confdefs.h. */
9033/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9035#define dlopen innocuous_dlopen
9036
9037/* System header to define __stub macros and hopefully few prototypes,
9038 which can conflict with char dlopen (); below.
9039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040 <limits.h> exists even on freestanding compilers. */
9041
9042#ifdef __STDC__
9043# include <limits.h>
9044#else
9045# include <assert.h>
9046#endif
9047
9048#undef dlopen
9049
9050/* Override any gcc2 internal prototype to avoid an error. */
9051#ifdef __cplusplus
9052extern "C"
9053{
9054#endif
9055/* We use char because int might match the return type of a gcc2
9056 builtin and then its argument prototype would still apply. */
9057char dlopen ();
9058/* The GNU C library defines this for functions which it implements
9059 to always fail with ENOSYS. Some functions are actually named
9060 something starting with __ and the normal name is an alias. */
9061#if defined (__stub_dlopen) || defined (__stub___dlopen)
9062choke me
9063#else
9064char (*f) () = dlopen;
9065#endif
9066#ifdef __cplusplus
9067}
9068#endif
9069
9070int
9071main ()
9072{
9073return f != dlopen;
9074 ;
9075 return 0;
9076}
9077_ACEOF
9078rm -f conftest.$ac_objext conftest$ac_exeext
9079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>conftest.er1
9081 ac_status=$?
9082 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -f conftest.er1
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_func_dlopen=yes
9101else
9102 echo "$as_me: failed program was:" >&5
9103sed 's/^/| /' conftest.$ac_ext >&5
9104
9105ac_cv_func_dlopen=no
9106fi
9107rm -f conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9109fi
9110echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9111echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9112if test $ac_cv_func_dlopen = yes; then
9113 lt_cv_dlopen="dlopen"
9114else
9115 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9116echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9117if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119else
9120 ac_check_lib_save_LIBS=$LIBS
9121LIBS="-ldl $LIBS"
9122cat >conftest.$ac_ext <<_ACEOF
9123/* confdefs.h. */
9124_ACEOF
9125cat confdefs.h >>conftest.$ac_ext
9126cat >>conftest.$ac_ext <<_ACEOF
9127/* end confdefs.h. */
9128
9129/* Override any gcc2 internal prototype to avoid an error. */
9130#ifdef __cplusplus
9131extern "C"
9132#endif
9133/* We use char because int might match the return type of a gcc2
9134 builtin and then its argument prototype would still apply. */
9135char dlopen ();
9136int
9137main ()
9138{
9139dlopen ();
9140 ;
9141 return 0;
9142}
9143_ACEOF
9144rm -f conftest.$ac_objext conftest$ac_exeext
9145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146 (eval $ac_link) 2>conftest.er1
9147 ac_status=$?
9148 grep -v '^ *+' conftest.er1 >conftest.err
9149 rm -f conftest.er1
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag"
9154 || test ! -s conftest.err'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest$ac_exeext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_lib_dl_dlopen=yes
9167else
9168 echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
9171ac_cv_lib_dl_dlopen=no
9172fi
9173rm -f conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
9175LIBS=$ac_check_lib_save_LIBS
9176fi
9177echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9178echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9179if test $ac_cv_lib_dl_dlopen = yes; then
9180 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9181else
9182 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9183echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9184if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9186else
9187 ac_check_lib_save_LIBS=$LIBS
9188LIBS="-lsvld $LIBS"
9189cat >conftest.$ac_ext <<_ACEOF
9190/* confdefs.h. */
9191_ACEOF
9192cat confdefs.h >>conftest.$ac_ext
9193cat >>conftest.$ac_ext <<_ACEOF
9194/* end confdefs.h. */
9195
9196/* Override any gcc2 internal prototype to avoid an error. */
9197#ifdef __cplusplus
9198extern "C"
9199#endif
9200/* We use char because int might match the return type of a gcc2
9201 builtin and then its argument prototype would still apply. */
9202char dlopen ();
9203int
9204main ()
9205{
9206dlopen ();
9207 ;
9208 return 0;
9209}
9210_ACEOF
9211rm -f conftest.$ac_objext conftest$ac_exeext
9212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9213 (eval $ac_link) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest$ac_exeext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_cv_lib_svld_dlopen=yes
9234else
9235 echo "$as_me: failed program was:" >&5
9236sed 's/^/| /' conftest.$ac_ext >&5
9237
9238ac_cv_lib_svld_dlopen=no
9239fi
9240rm -f conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242LIBS=$ac_check_lib_save_LIBS
9243fi
9244echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9245echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9246if test $ac_cv_lib_svld_dlopen = yes; then
9247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9248else
9249 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9250echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9251if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9253else
9254 ac_check_lib_save_LIBS=$LIBS
9255LIBS="-ldld $LIBS"
9256cat >conftest.$ac_ext <<_ACEOF
9257/* confdefs.h. */
9258_ACEOF
9259cat confdefs.h >>conftest.$ac_ext
9260cat >>conftest.$ac_ext <<_ACEOF
9261/* end confdefs.h. */
9262
9263/* Override any gcc2 internal prototype to avoid an error. */
9264#ifdef __cplusplus
9265extern "C"
9266#endif
9267/* We use char because int might match the return type of a gcc2
9268 builtin and then its argument prototype would still apply. */
9269char dld_link ();
9270int
9271main ()
9272{
9273dld_link ();
9274 ;
9275 return 0;
9276}
9277_ACEOF
9278rm -f conftest.$ac_objext conftest$ac_exeext
9279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280 (eval $ac_link) 2>conftest.er1
9281 ac_status=$?
9282 grep -v '^ *+' conftest.er1 >conftest.err
9283 rm -f conftest.er1
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } &&
9287 { ac_try='test -z "$ac_c_werror_flag"
9288 || test ! -s conftest.err'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try='test -s conftest$ac_exeext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 ac_cv_lib_dld_dld_link=yes
9301else
9302 echo "$as_me: failed program was:" >&5
9303sed 's/^/| /' conftest.$ac_ext >&5
9304
9305ac_cv_lib_dld_dld_link=no
9306fi
9307rm -f conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9309LIBS=$ac_check_lib_save_LIBS
9310fi
9311echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9312echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9313if test $ac_cv_lib_dld_dld_link = yes; then
9314 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9315fi
9316
9317
9318fi
9319
9320
9321fi
9322
9323
9324fi
9325
9326
9327fi
9328
9329
9330fi
9331
9332 ;;
9333 esac
9334
9335 if test "x$lt_cv_dlopen" != xno; then
9336 enable_dlopen=yes
9337 else
9338 enable_dlopen=no
9339 fi
9340
9341 case $lt_cv_dlopen in
9342 dlopen)
9343 save_CPPFLAGS="$CPPFLAGS"
9344 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9345
9346 save_LDFLAGS="$LDFLAGS"
9347 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9348
9349 save_LIBS="$LIBS"
9350 LIBS="$lt_cv_dlopen_libs $LIBS"
9351
9352 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9353echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9354if test "${lt_cv_dlopen_self+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9356else
9357 if test "$cross_compiling" = yes; then :
9358 lt_cv_dlopen_self=cross
9359else
9360 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9361 lt_status=$lt_dlunknown
9362 cat > conftest.$ac_ext <<_LT_EOF
9363#line 9363 "configure"
9364#include "confdefs.h"
9365
9366#if HAVE_DLFCN_H
9367#include <dlfcn.h>
9368#endif
9369
9370#include <stdio.h>
9371
9372#ifdef RTLD_GLOBAL
9373# define LT_DLGLOBAL RTLD_GLOBAL
9374#else
9375# ifdef DL_GLOBAL
9376# define LT_DLGLOBAL DL_GLOBAL
9377# else
9378# define LT_DLGLOBAL 0
9379# endif
9380#endif
9381
9382/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9383 find out it does not work in some platform. */
9384#ifndef LT_DLLAZY_OR_NOW
9385# ifdef RTLD_LAZY
9386# define LT_DLLAZY_OR_NOW RTLD_LAZY
9387# else
9388# ifdef DL_LAZY
9389# define LT_DLLAZY_OR_NOW DL_LAZY
9390# else
9391# ifdef RTLD_NOW
9392# define LT_DLLAZY_OR_NOW RTLD_NOW
9393# else
9394# ifdef DL_NOW
9395# define LT_DLLAZY_OR_NOW DL_NOW
9396# else
9397# define LT_DLLAZY_OR_NOW 0
9398# endif
9399# endif
9400# endif
9401# endif
9402#endif
9403
9404#ifdef __cplusplus
9405extern "C" void exit (int);
9406#endif
9407
9408void fnord() { int i=42;}
9409int main ()
9410{
9411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9412 int status = $lt_dlunknown;
9413
9414 if (self)
9415 {
9416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9417 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9418 /* dlclose (self); */
9419 }
9420 else
9421 puts (dlerror ());
9422
9423 exit (status);
9424}
9425_LT_EOF
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9431 (./conftest; exit; ) >&5 2>/dev/null
9432 lt_status=$?
9433 case x$lt_status in
9434 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9435 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9436 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9437 esac
9438 else :
9439 # compilation failed
9440 lt_cv_dlopen_self=no
9441 fi
9442fi
9443rm -fr conftest*
9444
9445
9446fi
9447echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9448echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9449
9450 if test "x$lt_cv_dlopen_self" = xyes; then
9451 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9452 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9453echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9454if test "${lt_cv_dlopen_self_static+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
9457 if test "$cross_compiling" = yes; then :
9458 lt_cv_dlopen_self_static=cross
9459else
9460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9461 lt_status=$lt_dlunknown
9462 cat > conftest.$ac_ext <<_LT_EOF
9463#line 9463 "configure"
9464#include "confdefs.h"
9465
9466#if HAVE_DLFCN_H
9467#include <dlfcn.h>
9468#endif
9469
9470#include <stdio.h>
9471
9472#ifdef RTLD_GLOBAL
9473# define LT_DLGLOBAL RTLD_GLOBAL
9474#else
9475# ifdef DL_GLOBAL
9476# define LT_DLGLOBAL DL_GLOBAL
9477# else
9478# define LT_DLGLOBAL 0
9479# endif
9480#endif
9481
9482/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9483 find out it does not work in some platform. */
9484#ifndef LT_DLLAZY_OR_NOW
9485# ifdef RTLD_LAZY
9486# define LT_DLLAZY_OR_NOW RTLD_LAZY
9487# else
9488# ifdef DL_LAZY
9489# define LT_DLLAZY_OR_NOW DL_LAZY
9490# else
9491# ifdef RTLD_NOW
9492# define LT_DLLAZY_OR_NOW RTLD_NOW
9493# else
9494# ifdef DL_NOW
9495# define LT_DLLAZY_OR_NOW DL_NOW
9496# else
9497# define LT_DLLAZY_OR_NOW 0
9498# endif
9499# endif
9500# endif
9501# endif
9502#endif
9503
9504#ifdef __cplusplus
9505extern "C" void exit (int);
9506#endif
9507
9508void fnord() { int i=42;}
9509int main ()
9510{
9511 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9512 int status = $lt_dlunknown;
9513
9514 if (self)
9515 {
9516 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9517 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9518 /* dlclose (self); */
9519 }
9520 else
9521 puts (dlerror ());
9522
9523 exit (status);
9524}
9525_LT_EOF
9526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527 (eval $ac_link) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9531 (./conftest; exit; ) >&5 2>/dev/null
9532 lt_status=$?
9533 case x$lt_status in
9534 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9535 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9536 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9537 esac
9538 else :
9539 # compilation failed
9540 lt_cv_dlopen_self_static=no
9541 fi
9542fi
9543rm -fr conftest*
9544
9545
9546fi
9547echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9548echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9549 fi
9550
9551 CPPFLAGS="$save_CPPFLAGS"
9552 LDFLAGS="$save_LDFLAGS"
9553 LIBS="$save_LIBS"
9554 ;;
9555 esac
9556
9557 case $lt_cv_dlopen_self in
9558 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9559 *) enable_dlopen_self=unknown ;;
9560 esac
9561
9562 case $lt_cv_dlopen_self_static in
9563 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9564 *) enable_dlopen_self_static=unknown ;;
9565 esac
9566fi
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584striplib=
9585old_striplib=
9586echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9587echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9588if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9589 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9590 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9591 echo "$as_me:$LINENO: result: yes" >&5
9592echo "${ECHO_T}yes" >&6
9593else
9594# FIXME - insert some real tests, host_os isn't really good enough
9595 case $host_os in
9596 darwin*)
9597 if test -n "$STRIP" ; then
9598 striplib="$STRIP -x"
9599 old_striplib="$STRIP -S"
9600 echo "$as_me:$LINENO: result: yes" >&5
9601echo "${ECHO_T}yes" >&6
9602 else
9603 echo "$as_me:$LINENO: result: no" >&5
9604echo "${ECHO_T}no" >&6
9605 fi
9606 ;;
9607 *)
9608 echo "$as_me:$LINENO: result: no" >&5
9609echo "${ECHO_T}no" >&6
9610 ;;
9611 esac
9612fi
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625 # Report which library types will actually be built
9626 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9627echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9628 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9629echo "${ECHO_T}$can_build_shared" >&6
9630
9631 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9632echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9633 test "$can_build_shared" = "no" && enable_shared=no
9634
9635 # On AIX, shared libraries and static libraries use the same namespace, and
9636 # are all built from PIC.
9637 case $host_os in
9638 aix3*)
9639 test "$enable_shared" = yes && enable_static=no
9640 if test -n "$RANLIB"; then
9641 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9642 postinstall_cmds='$RANLIB $lib'
9643 fi
9644 ;;
9645
9646 aix4* | aix5*)
9647 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9648 test "$enable_shared" = yes && enable_static=no
9649 fi
9650 ;;
9651 esac
9652 echo "$as_me:$LINENO: result: $enable_shared" >&5
9653echo "${ECHO_T}$enable_shared" >&6
9654
9655 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9656echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9657 # Make sure either enable_shared or enable_static is yes.
9658 test "$enable_shared" = yes || enable_static=yes
9659 echo "$as_me:$LINENO: result: $enable_static" >&5
9660echo "${ECHO_T}$enable_static" >&6
9661
9662
9663
9664
9665fi
9666ac_ext=c
9667ac_cpp='$CPP $CPPFLAGS'
9668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9670ac_compiler_gnu=$ac_cv_c_compiler_gnu
9671
9672CC="$lt_save_CC"
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686 ac_config_commands="$ac_config_commands libtool"
9687
9688
9689
9690
9691# Only expand once:
9692
9693
9694
9695# Check whether --enable-targets or --disable-targets was given.
9696if test "${enable_targets+set}" = set; then
9697 enableval="$enable_targets"
9698 case "${enableval}" in
9699 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
9700echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
9701 { (exit 1); exit 1; }; }
9702 ;;
9703 no) enable_targets= ;;
9704 *) enable_targets=$enableval ;;
9705esac
9706fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
9707if test "${enable_commonbfdlib+set}" = set; then
9708 enableval="$enable_commonbfdlib"
9709 case "${enableval}" in
9710 yes) commonbfdlib=true ;;
9711 no) commonbfdlib=false ;;
9712 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
9713echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
9714 { (exit 1); exit 1; }; } ;;
9715esac
9716fi;
9717
9718GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9719
9720# Check whether --enable-werror or --disable-werror was given.
9721if test "${enable_werror+set}" = set; then
9722 enableval="$enable_werror"
9723 case "${enableval}" in
9724 yes | y) ERROR_ON_WARNING="yes" ;;
9725 no | n) ERROR_ON_WARNING="no" ;;
9726 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
9727echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
9728 { (exit 1); exit 1; }; } ;;
9729 esac
9730fi;
9731
9732# Enable -Werror by default when using gcc
9733if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9734 ERROR_ON_WARNING=yes
9735fi
9736
9737NO_WERROR=
9738if test "${ERROR_ON_WARNING}" = yes ; then
9739 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9740 NO_WERROR="-Wno-error"
9741fi
9742
9743if test "${GCC}" = yes ; then
9744 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9745fi
9746
9747# Check whether --enable-build-warnings or --disable-build-warnings was given.
9748if test "${enable_build_warnings+set}" = set; then
9749 enableval="$enable_build_warnings"
9750 case "${enableval}" in
9751 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
9752 no) if test "${GCC}" = yes ; then
9753 WARN_CFLAGS="-w"
9754 fi;;
9755 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9756 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
9757 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9758 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9759 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9760esac
9761fi;
9762
9763if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9764 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9765fi
9766
9767
9768
9769
9770
9771 ac_config_headers="$ac_config_headers config.h:config.in"
9772
9773
9774if test -z "$target" ; then
9775 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
9776echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
9777 { (exit 1); exit 1; }; }
9778fi
9779
9780echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9781echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9782 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9783if test "${enable_maintainer_mode+set}" = set; then
9784 enableval="$enable_maintainer_mode"
9785 USE_MAINTAINER_MODE=$enableval
9786else
9787 USE_MAINTAINER_MODE=no
9788fi;
9789 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9790echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9791
979273e3 9792
d7040cdb
SE
9793if test $USE_MAINTAINER_MODE = yes; then
9794 MAINTAINER_MODE_TRUE=
9795 MAINTAINER_MODE_FALSE='#'
9796else
9797 MAINTAINER_MODE_TRUE='#'
9798 MAINTAINER_MODE_FALSE=
252b5132 9799fi
252b5132 9800
d7040cdb 9801 MAINT=$MAINTAINER_MODE_TRUE
252b5132 9802
1c0d3aa6 9803
d7040cdb
SE
9804 case ${build_alias} in
9805 "") build_noncanonical=${build} ;;
9806 *) build_noncanonical=${build_alias} ;;
9807esac
20e95c23 9808
d7040cdb
SE
9809 case ${host_alias} in
9810 "") host_noncanonical=${build_noncanonical} ;;
9811 *) host_noncanonical=${host_alias} ;;
9812esac
20e95c23 9813
d7040cdb
SE
9814 case ${target_alias} in
9815 "") target_noncanonical=${host_noncanonical} ;;
9816 *) target_noncanonical=${target_alias} ;;
9817esac
20e95c23 9818
d7040cdb
SE
9819echo "$as_me:$LINENO: checking whether to install libbfd" >&5
9820echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
9821 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
9822if test "${enable_install_libbfd+set}" = set; then
9823 enableval="$enable_install_libbfd"
9824 install_libbfd_p=$enableval
9825else
9826 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
9827 install_libbfd_p=yes
9828 else
9829 install_libbfd_p=no
9830 fi
9831fi;
9832 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
9833echo "${ECHO_T}$install_libbfd_p" >&6
20e95c23
DJ
9834
9835
d7040cdb
SE
9836if test $install_libbfd_p = yes; then
9837 INSTALL_LIBBFD_TRUE=
9838 INSTALL_LIBBFD_FALSE='#'
9839else
9840 INSTALL_LIBBFD_TRUE='#'
9841 INSTALL_LIBBFD_FALSE=
9842fi
20e95c23 9843
d7040cdb 9844 # Need _noncanonical variables for this.
20e95c23 9845
20e95c23 9846
20e95c23 9847
20e95c23 9848
d7040cdb
SE
9849 # libbfd.a is a host library containing target dependent code
9850 bfdlibdir='$(libdir)'
9851 bfdincludedir='$(includedir)'
9852 if test "${host}" != "${target}"; then
9853 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
9854 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23
DJ
9855 fi
9856
9857
9858
20e95c23
DJ
9859
9860
9861
d7040cdb 9862# host-specific stuff:
20e95c23 9863
d7040cdb
SE
9864ac_ext=c
9865ac_cpp='$CPP $CPPFLAGS'
9866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868ac_compiler_gnu=$ac_cv_c_compiler_gnu
9869if test -n "$ac_tool_prefix"; then
9870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9871set dummy ${ac_tool_prefix}gcc; ac_word=$2
9872echo "$as_me:$LINENO: checking for $ac_word" >&5
9873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9874if test "${ac_cv_prog_CC+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9876else
9877 if test -n "$CC"; then
9878 ac_cv_prog_CC="$CC" # Let the user override the test.
9879else
9880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881for as_dir in $PATH
9882do
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9889 break 2
979273e3 9890 fi
d7040cdb
SE
9891done
9892done
979273e3 9893
d7040cdb
SE
9894fi
9895fi
9896CC=$ac_cv_prog_CC
9897if test -n "$CC"; then
9898 echo "$as_me:$LINENO: result: $CC" >&5
9899echo "${ECHO_T}$CC" >&6
20e95c23 9900else
d7040cdb
SE
9901 echo "$as_me:$LINENO: result: no" >&5
9902echo "${ECHO_T}no" >&6
252b5132 9903fi
20e95c23 9904
d7040cdb
SE
9905fi
9906if test -z "$ac_cv_prog_CC"; then
9907 ac_ct_CC=$CC
9908 # Extract the first word of "gcc", so it can be a program name with args.
9909set dummy gcc; ac_word=$2
20e95c23
DJ
9910echo "$as_me:$LINENO: checking for $ac_word" >&5
9911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 9912if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20e95c23
DJ
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9914else
d7040cdb
SE
9915 if test -n "$ac_ct_CC"; then
9916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9917else
9918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919for as_dir in $PATH
9920do
9921 IFS=$as_save_IFS
9922 test -z "$as_dir" && as_dir=.
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9925 ac_cv_prog_ac_ct_CC="gcc"
9926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9927 break 2
9928 fi
9929done
9930done
9931
9932fi
9933fi
9934ac_ct_CC=$ac_cv_prog_ac_ct_CC
9935if test -n "$ac_ct_CC"; then
9936 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9937echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 9938else
979273e3
NN
9939 echo "$as_me:$LINENO: result: no" >&5
9940echo "${ECHO_T}no" >&6
252b5132
RH
9941fi
9942
d7040cdb
SE
9943 CC=$ac_ct_CC
9944else
9945 CC="$ac_cv_prog_CC"
9946fi
9947
9948if test -z "$CC"; then
9949 if test -n "$ac_tool_prefix"; then
9950 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9951set dummy ${ac_tool_prefix}cc; ac_word=$2
979273e3
NN
9952echo "$as_me:$LINENO: checking for $ac_word" >&5
9953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 9954if test "${ac_cv_prog_CC+set}" = set; then
979273e3 9955 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9956else
d7040cdb
SE
9957 if test -n "$CC"; then
9958 ac_cv_prog_CC="$CC" # Let the user override the test.
9959else
9960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979273e3
NN
9961for as_dir in $PATH
9962do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 9967 ac_cv_prog_CC="${ac_tool_prefix}cc"
979273e3
NN
9968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 break 2
9970 fi
9971done
9972done
252b5132 9973
979273e3 9974fi
d7040cdb
SE
9975fi
9976CC=$ac_cv_prog_CC
9977if test -n "$CC"; then
9978 echo "$as_me:$LINENO: result: $CC" >&5
9979echo "${ECHO_T}$CC" >&6
252b5132 9980else
979273e3
NN
9981 echo "$as_me:$LINENO: result: no" >&5
9982echo "${ECHO_T}no" >&6
252b5132
RH
9983fi
9984
252b5132 9985fi
d7040cdb
SE
9986if test -z "$ac_cv_prog_CC"; then
9987 ac_ct_CC=$CC
9988 # Extract the first word of "cc", so it can be a program name with args.
9989set dummy cc; ac_word=$2
20e95c23
DJ
9990echo "$as_me:$LINENO: checking for $ac_word" >&5
9991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 9992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
979273e3 9993 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9994else
d7040cdb
SE
9995 if test -n "$ac_ct_CC"; then
9996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9997else
9998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999for as_dir in $PATH
10000do
10001 IFS=$as_save_IFS
10002 test -z "$as_dir" && as_dir=.
10003 for ac_exec_ext in '' $ac_executable_extensions; do
10004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10005 ac_cv_prog_ac_ct_CC="cc"
10006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10007 break 2
10008 fi
10009done
10010done
10011
20e95c23 10012fi
d7040cdb
SE
10013fi
10014ac_ct_CC=$ac_cv_prog_ac_ct_CC
10015if test -n "$ac_ct_CC"; then
10016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10017echo "${ECHO_T}$ac_ct_CC" >&6
20e95c23
DJ
10018else
10019 echo "$as_me:$LINENO: result: no" >&5
10020echo "${ECHO_T}no" >&6
10021fi
10022
d7040cdb 10023 CC=$ac_ct_CC
20e95c23 10024else
d7040cdb 10025 CC="$ac_cv_prog_CC"
979273e3 10026fi
979273e3 10027
d7040cdb
SE
10028fi
10029if test -z "$CC"; then
10030 # Extract the first word of "cc", so it can be a program name with args.
10031set dummy cc; ac_word=$2
20e95c23
DJ
10032echo "$as_me:$LINENO: checking for $ac_word" >&5
10033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 10034if test "${ac_cv_prog_CC+set}" = set; then
20e95c23 10035 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10036else
d7040cdb
SE
10037 if test -n "$CC"; then
10038 ac_cv_prog_CC="$CC" # Let the user override the test.
979273e3 10039else
d7040cdb
SE
10040 ac_prog_rejected=no
10041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042for as_dir in $PATH
10043do
10044 IFS=$as_save_IFS
10045 test -z "$as_dir" && as_dir=.
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10049 ac_prog_rejected=yes
10050 continue
10051 fi
10052 ac_cv_prog_CC="cc"
10053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10054 break 2
20e95c23 10055 fi
d7040cdb
SE
10056done
10057done
20e95c23 10058
d7040cdb
SE
10059if test $ac_prog_rejected = yes; then
10060 # We found a bogon in the path, so make sure we never use it.
10061 set dummy $ac_cv_prog_CC
10062 shift
10063 if test $# != 0; then
10064 # We chose a different compiler from the bogus one.
10065 # However, it has the same basename, so the bogon will be chosen
10066 # first if we set CC to just the basename; use the full file name.
10067 shift
10068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20e95c23 10069 fi
252b5132 10070fi
d7040cdb
SE
10071fi
10072fi
10073CC=$ac_cv_prog_CC
10074if test -n "$CC"; then
10075 echo "$as_me:$LINENO: result: $CC" >&5
10076echo "${ECHO_T}$CC" >&6
20e95c23 10077else
d7040cdb
SE
10078 echo "$as_me:$LINENO: result: no" >&5
10079echo "${ECHO_T}no" >&6
10080fi
10081
10082fi
10083if test -z "$CC"; then
10084 if test -n "$ac_tool_prefix"; then
10085 for ac_prog in cl
10086 do
10087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10089echo "$as_me:$LINENO: checking for $ac_word" >&5
10090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10091if test "${ac_cv_prog_CC+set}" = set; then
20e95c23
DJ
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10093else
d7040cdb
SE
10094 if test -n "$CC"; then
10095 ac_cv_prog_CC="$CC" # Let the user override the test.
10096else
10097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098for as_dir in $PATH
10099do
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10107 fi
10108done
10109done
10110
20e95c23 10111fi
d7040cdb
SE
10112fi
10113CC=$ac_cv_prog_CC
10114if test -n "$CC"; then
10115 echo "$as_me:$LINENO: result: $CC" >&5
10116echo "${ECHO_T}$CC" >&6
10117else
10118 echo "$as_me:$LINENO: result: no" >&5
10119echo "${ECHO_T}no" >&6
252b5132 10120fi
979273e3 10121
d7040cdb
SE
10122 test -n "$CC" && break
10123 done
10124fi
10125if test -z "$CC"; then
10126 ac_ct_CC=$CC
10127 for ac_prog in cl
10128do
10129 # Extract the first word of "$ac_prog", so it can be a program name with args.
10130set dummy $ac_prog; ac_word=$2
10131echo "$as_me:$LINENO: checking for $ac_word" >&5
10132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10133if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20e95c23
DJ
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135else
d7040cdb
SE
10136 if test -n "$ac_ct_CC"; then
10137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10138else
10139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20e95c23
DJ
10140for as_dir in $PATH
10141do
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
d7040cdb
SE
10144 for ac_exec_ext in '' $ac_executable_extensions; do
10145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10146 ac_cv_prog_ac_ct_CC="$ac_prog"
10147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10148 break 2
10149 fi
20e95c23 10150done
d7040cdb
SE
10151done
10152
10153fi
10154fi
10155ac_ct_CC=$ac_cv_prog_ac_ct_CC
10156if test -n "$ac_ct_CC"; then
10157 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10158echo "${ECHO_T}$ac_ct_CC" >&6
10159else
10160 echo "$as_me:$LINENO: result: no" >&5
10161echo "${ECHO_T}no" >&6
10162fi
20e95c23 10163
d7040cdb
SE
10164 test -n "$ac_ct_CC" && break
10165done
979273e3 10166
d7040cdb 10167 CC=$ac_ct_CC
252b5132 10168fi
d7040cdb 10169
252b5132 10170fi
20e95c23 10171
20e95c23 10172
d7040cdb
SE
10173test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10174See \`config.log' for more details." >&5
10175echo "$as_me: error: no acceptable C compiler found in \$PATH
10176See \`config.log' for more details." >&2;}
10177 { (exit 1); exit 1; }; }
20e95c23 10178
d7040cdb
SE
10179# Provide some information about the compiler.
10180echo "$as_me:$LINENO:" \
10181 "checking for C compiler version" >&5
10182ac_compiler=`set X $ac_compile; echo $2`
10183{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10184 (eval $ac_compiler --version </dev/null >&5) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }
10188{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10189 (eval $ac_compiler -v </dev/null >&5) 2>&5
10190 ac_status=$?
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }
10193{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10194 (eval $ac_compiler -V </dev/null >&5) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }
10198
10199echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10200echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10201if test "${ac_cv_c_compiler_gnu+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203else
10204 cat >conftest.$ac_ext <<_ACEOF
10205/* confdefs.h. */
10206_ACEOF
10207cat confdefs.h >>conftest.$ac_ext
10208cat >>conftest.$ac_ext <<_ACEOF
10209/* end confdefs.h. */
10210
10211int
10212main ()
10213{
10214#ifndef __GNUC__
10215 choke me
10216#endif
10217
10218 ;
10219 return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext
10223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10224 (eval $ac_compile) 2>conftest.er1
10225 ac_status=$?
10226 grep -v '^ *+' conftest.er1 >conftest.err
10227 rm -f conftest.er1
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag"
10232 || test ! -s conftest.err'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest.$ac_objext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_compiler_gnu=yes
10245else
10246 echo "$as_me: failed program was:" >&5
10247sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 10248
d7040cdb
SE
10249ac_compiler_gnu=no
10250fi
10251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10252ac_cv_c_compiler_gnu=$ac_compiler_gnu
20e95c23 10253
20e95c23 10254fi
d7040cdb
SE
10255echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10256echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10257GCC=`test $ac_compiler_gnu = yes && echo yes`
10258ac_test_CFLAGS=${CFLAGS+set}
10259ac_save_CFLAGS=$CFLAGS
10260CFLAGS="-g"
10261echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10262echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10263if test "${ac_cv_prog_cc_g+set}" = set; then
20e95c23
DJ
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265else
979273e3
NN
10266 cat >conftest.$ac_ext <<_ACEOF
10267/* confdefs.h. */
10268_ACEOF
10269cat confdefs.h >>conftest.$ac_ext
10270cat >>conftest.$ac_ext <<_ACEOF
10271/* end confdefs.h. */
d7040cdb
SE
10272
10273int
10274main ()
10275{
10276
10277 ;
10278 return 0;
10279}
979273e3 10280_ACEOF
d7040cdb
SE
10281rm -f conftest.$ac_objext
10282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283 (eval $ac_compile) 2>conftest.er1
979273e3
NN
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest.$ac_objext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_prog_cc_g=yes
ac48eca1 10304else
979273e3
NN
10305 echo "$as_me: failed program was:" >&5
10306sed 's/^/| /' conftest.$ac_ext >&5
10307
d7040cdb 10308ac_cv_prog_cc_g=no
979273e3 10309fi
d7040cdb
SE
10310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10311fi
10312echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10313echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10314if test "$ac_test_CFLAGS" = set; then
10315 CFLAGS=$ac_save_CFLAGS
10316elif test $ac_cv_prog_cc_g = yes; then
10317 if test "$GCC" = yes; then
10318 CFLAGS="-g -O2"
10319 else
10320 CFLAGS="-g"
10321 fi
10322else
10323 if test "$GCC" = yes; then
10324 CFLAGS="-O2"
10325 else
10326 CFLAGS=
10327 fi
10328fi
10329echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10330echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10331if test "${ac_cv_prog_cc_stdc+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333else
10334 ac_cv_prog_cc_stdc=no
10335ac_save_CC=$CC
10336cat >conftest.$ac_ext <<_ACEOF
979273e3
NN
10337/* confdefs.h. */
10338_ACEOF
10339cat confdefs.h >>conftest.$ac_ext
10340cat >>conftest.$ac_ext <<_ACEOF
10341/* end confdefs.h. */
d7040cdb
SE
10342#include <stdarg.h>
10343#include <stdio.h>
10344#include <sys/types.h>
10345#include <sys/stat.h>
10346/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10347struct buf { int x; };
10348FILE * (*rcsopen) (struct buf *, struct stat *, int);
10349static char *e (p, i)
10350 char **p;
10351 int i;
10352{
10353 return p[i];
10354}
10355static char *f (char * (*g) (char **, int), char **p, ...)
10356{
10357 char *s;
10358 va_list v;
10359 va_start (v,p);
10360 s = g (p, va_arg (v,int));
10361 va_end (v);
10362 return s;
10363}
10364
10365/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10366 function prototypes and stuff, but not '\xHH' hex character constants.
10367 These don't provoke an error unfortunately, instead are silently treated
10368 as 'x'. The following induces an error, until -std1 is added to get
10369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10370 array size at least. It's necessary to write '\x00'==0 to get something
10371 that's true only with -std1. */
10372int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10373
10374int test (int i, double x);
10375struct s1 {int (*f) (int a);};
10376struct s2 {int (*f) (double a);};
10377int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10378int argc;
10379char **argv;
10380int
10381main ()
10382{
10383return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10384 ;
10385 return 0;
10386}
979273e3 10387_ACEOF
d7040cdb
SE
10388# Don't try gcc -ansi; that turns off useful extensions and
10389# breaks some systems' header files.
10390# AIX -qlanglvl=ansi
10391# Ultrix and OSF/1 -std1
10392# HP-UX 10.20 and later -Ae
10393# HP-UX older versions -Aa -D_HPUX_SOURCE
10394# SVR4 -Xc -D__EXTENSIONS__
10395for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10396do
10397 CC="$ac_save_CC $ac_arg"
10398 rm -f conftest.$ac_objext
10399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400 (eval $ac_compile) 2>conftest.er1
979273e3
NN
10401 ac_status=$?
10402 grep -v '^ *+' conftest.er1 >conftest.err
10403 rm -f conftest.er1
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
10406 (exit $ac_status); } &&
10407 { ac_try='test -z "$ac_c_werror_flag"
10408 || test ! -s conftest.err'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; } &&
10414 { ac_try='test -s conftest.$ac_objext'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10420 ac_cv_prog_cc_stdc=$ac_arg
10421break
252b5132 10422else
979273e3
NN
10423 echo "$as_me: failed program was:" >&5
10424sed 's/^/| /' conftest.$ac_ext >&5
10425
252b5132 10426fi
d7040cdb 10427rm -f conftest.err conftest.$ac_objext
20e95c23 10428done
d7040cdb
SE
10429rm -f conftest.$ac_ext conftest.$ac_objext
10430CC=$ac_save_CC
10431
20e95c23 10432fi
979273e3 10433
d7040cdb
SE
10434case "x$ac_cv_prog_cc_stdc" in
10435 x|xno)
10436 echo "$as_me:$LINENO: result: none needed" >&5
10437echo "${ECHO_T}none needed" >&6 ;;
10438 *)
10439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10440echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10441 CC="$CC $ac_cv_prog_cc_stdc" ;;
10442esac
252b5132 10443
d7040cdb
SE
10444# Some people use a C++ compiler to compile C. Since we use `exit',
10445# in C++ we need to declare it. In case someone uses the same compiler
10446# for both compiling C and C++ we need to have the C++ compiler decide
10447# the declaration of exit, since it's the most demanding environment.
10448cat >conftest.$ac_ext <<_ACEOF
10449#ifndef __cplusplus
10450 choke me
10451#endif
10452_ACEOF
10453rm -f conftest.$ac_objext
10454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10455 (eval $ac_compile) 2>conftest.er1
10456 ac_status=$?
10457 grep -v '^ *+' conftest.er1 >conftest.err
10458 rm -f conftest.er1
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } &&
10462 { ac_try='test -z "$ac_c_werror_flag"
10463 || test ! -s conftest.err'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; } &&
10469 { ac_try='test -s conftest.$ac_objext'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; }; then
10475 for ac_declaration in \
10476 '' \
10477 'extern "C" void std::exit (int) throw (); using std::exit;' \
10478 'extern "C" void std::exit (int); using std::exit;' \
10479 'extern "C" void exit (int) throw ();' \
10480 'extern "C" void exit (int);' \
10481 'void exit (int);'
252b5132 10482do
979273e3
NN
10483 cat >conftest.$ac_ext <<_ACEOF
10484/* confdefs.h. */
10485_ACEOF
10486cat confdefs.h >>conftest.$ac_ext
10487cat >>conftest.$ac_ext <<_ACEOF
10488/* end confdefs.h. */
d7040cdb
SE
10489$ac_declaration
10490#include <stdlib.h>
10491int
10492main ()
10493{
10494exit (42);
10495 ;
10496 return 0;
10497}
979273e3 10498_ACEOF
d7040cdb
SE
10499rm -f conftest.$ac_objext
10500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
979273e3
NN
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
20e95c23 10521 :
979273e3
NN
10522else
10523 echo "$as_me: failed program was:" >&5
10524sed 's/^/| /' conftest.$ac_ext >&5
10525
20e95c23 10526continue
979273e3 10527fi
d7040cdb 10528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23
DJ
10529 cat >conftest.$ac_ext <<_ACEOF
10530/* confdefs.h. */
10531_ACEOF
10532cat confdefs.h >>conftest.$ac_ext
10533cat >>conftest.$ac_ext <<_ACEOF
10534/* end confdefs.h. */
d7040cdb
SE
10535$ac_declaration
10536int
10537main ()
10538{
10539exit (42);
10540 ;
10541 return 0;
10542}
20e95c23 10543_ACEOF
d7040cdb
SE
10544rm -f conftest.$ac_objext
10545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>conftest.er1
20e95c23
DJ
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
10552 (exit $ac_status); } &&
10553 { ac_try='test -z "$ac_c_werror_flag"
10554 || test ! -s conftest.err'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest.$ac_objext'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10566 break
20e95c23 10567else
d7040cdb
SE
10568 echo "$as_me: failed program was:" >&5
10569sed 's/^/| /' conftest.$ac_ext >&5
10570
252b5132 10571fi
d7040cdb
SE
10572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10573done
10574rm -f conftest*
10575if test -n "$ac_declaration"; then
10576 echo '#ifdef __cplusplus' >>confdefs.h
10577 echo $ac_declaration >>confdefs.h
10578 echo '#endif' >>confdefs.h
10579fi
10580
252b5132 10581else
20e95c23
DJ
10582 echo "$as_me: failed program was:" >&5
10583sed 's/^/| /' conftest.$ac_ext >&5
979273e3 10584
252b5132 10585fi
d7040cdb
SE
10586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10587ac_ext=c
10588ac_cpp='$CPP $CPPFLAGS'
10589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10591ac_compiler_gnu=$ac_cv_c_compiler_gnu
10592
10593
10594ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
10595# If we haven't got the data from the intl directory,
10596# assume NLS is disabled.
10597USE_NLS=no
10598LIBINTL=
10599LIBINTL_DEP=
10600INCINTL=
10601XGETTEXT=
10602GMSGFMT=
10603POSUB=
10604
10605if test -f ../intl/config.intl; then
10606 . ../intl/config.intl
10607fi
10608echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10609echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10610if test x"$USE_NLS" != xyes; then
10611 echo "$as_me:$LINENO: result: no" >&5
10612echo "${ECHO_T}no" >&6
10613else
10614 echo "$as_me:$LINENO: result: yes" >&5
10615echo "${ECHO_T}yes" >&6
10616
10617cat >>confdefs.h <<\_ACEOF
10618#define ENABLE_NLS 1
10619_ACEOF
10620
10621
10622 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10623echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10624 # Look for .po and .gmo files in the source directory.
10625 CATALOGS=
10626 XLINGUAS=
10627 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10628 # If there aren't any .gmo files the shell will give us the
10629 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10630 # weeded out.
10631 case "$cat" in *\**)
10632 continue;;
10633 esac
10634 # The quadruple backslash is collapsed to a double backslash
10635 # by the backticks, then collapsed again by the double quotes,
10636 # leaving us with one backslash in the sed expression (right
10637 # before the dot that mustn't act as a wildcard).
10638 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10639 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10640 # The user is allowed to set LINGUAS to a list of languages to
10641 # install catalogs for. If it's empty that means "all of them."
10642 if test "x$LINGUAS" = x; then
10643 CATALOGS="$CATALOGS $cat"
10644 XLINGUAS="$XLINGUAS $lang"
10645 else
10646 case "$LINGUAS" in *$lang*)
10647 CATALOGS="$CATALOGS $cat"
10648 XLINGUAS="$XLINGUAS $lang"
10649 ;;
10650 esac
10651 fi
10652 done
10653 LINGUAS="$XLINGUAS"
10654 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10655echo "${ECHO_T}$LINGUAS" >&6
10656
10657
10658 DATADIRNAME=share
10659
10660 INSTOBJEXT=.mo
10661
10662 GENCAT=gencat
10663
10664 CATOBJEXT=.gmo
10665
10666fi
10667
10668 MKINSTALLDIRS=
10669 if test -n "$ac_aux_dir"; then
10670 case "$ac_aux_dir" in
10671 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10672 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10673 esac
10674 fi
10675 if test -z "$MKINSTALLDIRS"; then
10676 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10677 fi
10678
10679
10680
10681 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10682echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10683 # Check whether --enable-nls or --disable-nls was given.
10684if test "${enable_nls+set}" = set; then
10685 enableval="$enable_nls"
10686 USE_NLS=$enableval
10687else
10688 USE_NLS=yes
10689fi;
10690 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10691echo "${ECHO_T}$USE_NLS" >&6
10692
10693
10694
10695
10696
10697
10698# Prepare PATH_SEPARATOR.
10699# The user is always right.
10700if test "${PATH_SEPARATOR+set}" != set; then
10701 echo "#! /bin/sh" >conf$$.sh
10702 echo "exit 0" >>conf$$.sh
10703 chmod +x conf$$.sh
10704 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10705 PATH_SEPARATOR=';'
10706 else
10707 PATH_SEPARATOR=:
10708 fi
10709 rm -f conf$$.sh
10710fi
979273e3 10711
d7040cdb
SE
10712# Find out how to test for executable files. Don't use a zero-byte file,
10713# as systems may use methods other than mode bits to determine executability.
10714cat >conf$$.file <<_ASEOF
10715#! /bin/sh
10716exit 0
10717_ASEOF
10718chmod +x conf$$.file
10719if test -x conf$$.file >/dev/null 2>&1; then
10720 ac_executable_p="test -x"
252b5132 10721else
d7040cdb 10722 ac_executable_p="test -f"
252b5132 10723fi
d7040cdb 10724rm -f conf$$.file
252b5132 10725
d7040cdb
SE
10726# Extract the first word of "msgfmt", so it can be a program name with args.
10727set dummy msgfmt; ac_word=$2
10728echo "$as_me:$LINENO: checking for $ac_word" >&5
10729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10730if test "${ac_cv_path_MSGFMT+set}" = set; then
979273e3 10731 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10732else
d7040cdb
SE
10733 case "$MSGFMT" in
10734 [\\/]* | ?:[\\/]*)
10735 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10736 ;;
10737 *)
10738 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10739 for ac_dir in $PATH; do
10740 IFS="$ac_save_IFS"
10741 test -z "$ac_dir" && ac_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10744 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10745 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10746 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10747 break 2
10748 fi
10749 fi
10750 done
10751 done
10752 IFS="$ac_save_IFS"
10753 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10754 ;;
10755esac
10756fi
10757MSGFMT="$ac_cv_path_MSGFMT"
10758if test "$MSGFMT" != ":"; then
10759 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10760echo "${ECHO_T}$MSGFMT" >&6
10761else
10762 echo "$as_me:$LINENO: result: no" >&5
10763echo "${ECHO_T}no" >&6
252b5132
RH
10764fi
10765
d7040cdb
SE
10766 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10767set dummy gmsgfmt; ac_word=$2
10768echo "$as_me:$LINENO: checking for $ac_word" >&5
10769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10770if test "${ac_cv_path_GMSGFMT+set}" = set; then
20e95c23
DJ
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772else
d7040cdb
SE
10773 case $GMSGFMT in
10774 [\\/]* | ?:[\\/]*)
10775 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10776 ;;
10777 *)
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779for as_dir in $PATH
10780do
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 break 2
10788 fi
10789done
10790done
252b5132 10791
d7040cdb
SE
10792 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10793 ;;
10794esac
10795fi
10796GMSGFMT=$ac_cv_path_GMSGFMT
20e95c23 10797
d7040cdb
SE
10798if test -n "$GMSGFMT"; then
10799 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10800echo "${ECHO_T}$GMSGFMT" >&6
252b5132 10801else
d7040cdb
SE
10802 echo "$as_me:$LINENO: result: no" >&5
10803echo "${ECHO_T}no" >&6
252b5132
RH
10804fi
10805
10806
20e95c23 10807
d7040cdb
SE
10808# Prepare PATH_SEPARATOR.
10809# The user is always right.
10810if test "${PATH_SEPARATOR+set}" != set; then
10811 echo "#! /bin/sh" >conf$$.sh
10812 echo "exit 0" >>conf$$.sh
10813 chmod +x conf$$.sh
10814 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10815 PATH_SEPARATOR=';'
10816 else
10817 PATH_SEPARATOR=:
10818 fi
10819 rm -f conf$$.sh
252b5132
RH
10820fi
10821
d7040cdb
SE
10822# Find out how to test for executable files. Don't use a zero-byte file,
10823# as systems may use methods other than mode bits to determine executability.
10824cat >conf$$.file <<_ASEOF
10825#! /bin/sh
10826exit 0
10827_ASEOF
10828chmod +x conf$$.file
10829if test -x conf$$.file >/dev/null 2>&1; then
10830 ac_executable_p="test -x"
10831else
10832 ac_executable_p="test -f"
10833fi
10834rm -f conf$$.file
20e95c23 10835
d7040cdb
SE
10836# Extract the first word of "xgettext", so it can be a program name with args.
10837set dummy xgettext; ac_word=$2
10838echo "$as_me:$LINENO: checking for $ac_word" >&5
10839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10840if test "${ac_cv_path_XGETTEXT+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10842else
d7040cdb
SE
10843 case "$XGETTEXT" in
10844 [\\/]* | ?:[\\/]*)
10845 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10846 ;;
10847 *)
10848 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10849 for ac_dir in $PATH; do
10850 IFS="$ac_save_IFS"
10851 test -z "$ac_dir" && ac_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10854 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10855 (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
10856 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10857 break 2
10858 fi
10859 fi
10860 done
10861 done
10862 IFS="$ac_save_IFS"
10863 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10864 ;;
10865esac
20e95c23 10866fi
d7040cdb
SE
10867XGETTEXT="$ac_cv_path_XGETTEXT"
10868if test "$XGETTEXT" != ":"; then
10869 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10870echo "${ECHO_T}$XGETTEXT" >&6
10871else
10872 echo "$as_me:$LINENO: result: no" >&5
10873echo "${ECHO_T}no" >&6
10874fi
10875
10876 rm -f messages.po
10877
979273e3 10878
d7040cdb
SE
10879# Prepare PATH_SEPARATOR.
10880# The user is always right.
10881if test "${PATH_SEPARATOR+set}" != set; then
10882 echo "#! /bin/sh" >conf$$.sh
10883 echo "exit 0" >>conf$$.sh
10884 chmod +x conf$$.sh
10885 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10886 PATH_SEPARATOR=';'
10887 else
10888 PATH_SEPARATOR=:
10889 fi
10890 rm -f conf$$.sh
252b5132 10891fi
979273e3 10892
d7040cdb
SE
10893# Find out how to test for executable files. Don't use a zero-byte file,
10894# as systems may use methods other than mode bits to determine executability.
10895cat >conf$$.file <<_ASEOF
10896#! /bin/sh
10897exit 0
10898_ASEOF
10899chmod +x conf$$.file
10900if test -x conf$$.file >/dev/null 2>&1; then
10901 ac_executable_p="test -x"
252b5132 10902else
d7040cdb
SE
10903 ac_executable_p="test -f"
10904fi
10905rm -f conf$$.file
252b5132 10906
d7040cdb
SE
10907# Extract the first word of "msgmerge", so it can be a program name with args.
10908set dummy msgmerge; ac_word=$2
10909echo "$as_me:$LINENO: checking for $ac_word" >&5
10910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10911if test "${ac_cv_path_MSGMERGE+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10913else
d7040cdb
SE
10914 case "$MSGMERGE" in
10915 [\\/]* | ?:[\\/]*)
10916 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10917 ;;
10918 *)
10919 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10920 for ac_dir in $PATH; do
10921 IFS="$ac_save_IFS"
10922 test -z "$ac_dir" && ac_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10925 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10926 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10927 break 2
10928 fi
10929 fi
10930 done
10931 done
10932 IFS="$ac_save_IFS"
10933 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10934 ;;
10935esac
20e95c23 10936fi
d7040cdb
SE
10937MSGMERGE="$ac_cv_path_MSGMERGE"
10938if test "$MSGMERGE" != ":"; then
10939 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10940echo "${ECHO_T}$MSGMERGE" >&6
10941else
10942 echo "$as_me:$LINENO: result: no" >&5
10943echo "${ECHO_T}no" >&6
20e95c23 10944fi
252b5132 10945
979273e3 10946
d7040cdb
SE
10947 if test "$GMSGFMT" != ":"; then
10948 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10949 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10950 : ;
10951 else
10952 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10953 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10954echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10955 GMSGFMT=":"
10956 fi
10957 fi
979273e3 10958
d7040cdb
SE
10959 if test "$XGETTEXT" != ":"; then
10960 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10961 (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
10962 : ;
10963 else
10964 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10965echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10966 XGETTEXT=":"
10967 fi
10968 rm -f messages.po
10969 fi
979273e3 10970
d7040cdb 10971 ac_config_commands="$ac_config_commands default-1"
c46f8c51 10972
c46f8c51 10973
979273e3 10974
d7040cdb 10975. ${srcdir}/../bfd/configure.host
252b5132 10976
d7040cdb
SE
10977# Put a plausible default for CC_FOR_BUILD in Makefile.
10978if test -z "$CC_FOR_BUILD"; then
10979 if test "x$cross_compiling" = "xno"; then
10980 CC_FOR_BUILD='$(CC)'
10981 else
10982 CC_FOR_BUILD=gcc
10983 fi
10984fi
252b5132 10985
d7040cdb
SE
10986# Also set EXEEXT_FOR_BUILD.
10987if test "x$cross_compiling" = "xno"; then
10988 EXEEXT_FOR_BUILD='$(EXEEXT)'
10989else
10990 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
10991echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
10992if test "${bfd_cv_build_exeext+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 rm -f conftest*
10996 echo 'int main () { return 0; }' > conftest.c
10997 bfd_cv_build_exeext=
10998 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
10999 for file in conftest.*; do
11000 case $file in
11001 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11002 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11003 esac
11004 done
11005 rm -f conftest*
11006 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11007fi
11008echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11009echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11010 EXEEXT_FOR_BUILD=""
11011 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11012fi
252b5132 11013
979273e3 11014
252b5132 11015
d7040cdb
SE
11016# Find a good install program. We prefer a C program (faster),
11017# so one script is as good as another. But avoid the broken or
11018# incompatible versions:
11019# SysV /etc/install, /usr/sbin/install
11020# SunOS /usr/etc/install
11021# IRIX /sbin/install
11022# AIX /bin/install
11023# AmigaOS /C/install, which installs bootblocks on floppy discs
11024# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11025# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11026# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11027# OS/2's system install, which has a completely different semantic
11028# ./install, which can be erroneously created by make from ./install.sh.
11029echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11030echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11031if test -z "$INSTALL"; then
11032if test "${ac_cv_path_install+set}" = set; then
979273e3 11033 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 11034else
d7040cdb
SE
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036for as_dir in $PATH
11037do
11038 IFS=$as_save_IFS
11039 test -z "$as_dir" && as_dir=.
11040 # Account for people who put trailing slashes in PATH elements.
11041case $as_dir/ in
11042 ./ | .// | /cC/* | \
11043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11044 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11045 /usr/ucb/* ) ;;
11046 *)
11047 # OSF1 and SCO ODT 3.0 have their own names for install.
11048 # Don't use installbsd from OSF since it installs stuff as root
11049 # by default.
11050 for ac_prog in ginstall scoinst install; do
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11053 if test $ac_prog = install &&
11054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11055 # AIX install. It has an incompatible calling convention.
11056 :
11057 elif test $ac_prog = install &&
11058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11059 # program-specific install script used by HP pwplus--don't use.
11060 :
11061 else
11062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11063 break 3
11064 fi
11065 fi
11066 done
11067 done
11068 ;;
11069esac
11070done
11071
979273e3 11072
979273e3 11073fi
d7040cdb
SE
11074 if test "${ac_cv_path_install+set}" = set; then
11075 INSTALL=$ac_cv_path_install
11076 else
11077 # As a last resort, use the slow shell script. We don't cache a
11078 # path for INSTALL within a source directory, because that will
11079 # break other packages using the cache if that directory is
11080 # removed, or if the path is relative.
11081 INSTALL=$ac_install_sh
11082 fi
b6849f55 11083fi
d7040cdb
SE
11084echo "$as_me:$LINENO: result: $INSTALL" >&5
11085echo "${ECHO_T}$INSTALL" >&6
b6849f55 11086
d7040cdb
SE
11087# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11088# It thinks the first close brace ends the variable substitution.
11089test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b6849f55 11090
d7040cdb
SE
11091test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11092
11093test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
979273e3 11094
252b5132 11095
979273e3
NN
11096
11097
11098
11099for ac_header in string.h strings.h stdlib.h
252b5132 11100do
979273e3
NN
11101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11102if eval "test \"\${$as_ac_Header+set}\" = set"; then
11103 echo "$as_me:$LINENO: checking for $ac_header" >&5
11104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11105if eval "test \"\${$as_ac_Header+set}\" = set"; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107fi
11108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11110else
11111 # Is the header compilable?
11112echo "$as_me:$LINENO: checking $ac_header usability" >&5
11113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11114cat >conftest.$ac_ext <<_ACEOF
11115/* confdefs.h. */
11116_ACEOF
11117cat confdefs.h >>conftest.$ac_ext
11118cat >>conftest.$ac_ext <<_ACEOF
11119/* end confdefs.h. */
11120$ac_includes_default
11121#include <$ac_header>
11122_ACEOF
11123rm -f conftest.$ac_objext
11124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11125 (eval $ac_compile) 2>conftest.er1
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
8ae85421
AM
11132 { ac_try='test -z "$ac_c_werror_flag"
11133 || test ! -s conftest.err'
979273e3
NN
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; } &&
11139 { ac_try='test -s conftest.$ac_objext'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
11145 ac_header_compiler=yes
11146else
11147 echo "$as_me: failed program was:" >&5
11148sed 's/^/| /' conftest.$ac_ext >&5
11149
11150ac_header_compiler=no
11151fi
11152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11153echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11154echo "${ECHO_T}$ac_header_compiler" >&6
11155
11156# Is the header present?
11157echo "$as_me:$LINENO: checking $ac_header presence" >&5
11158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11159cat >conftest.$ac_ext <<_ACEOF
11160/* confdefs.h. */
11161_ACEOF
11162cat confdefs.h >>conftest.$ac_ext
11163cat >>conftest.$ac_ext <<_ACEOF
11164/* end confdefs.h. */
11165#include <$ac_header>
11166_ACEOF
11167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } >/dev/null; then
11175 if test -s conftest.err; then
11176 ac_cpp_err=$ac_c_preproc_warn_flag
11177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11178 else
11179 ac_cpp_err=
11180 fi
252b5132 11181else
979273e3 11182 ac_cpp_err=yes
252b5132 11183fi
979273e3
NN
11184if test -z "$ac_cpp_err"; then
11185 ac_header_preproc=yes
11186else
11187 echo "$as_me: failed program was:" >&5
11188sed 's/^/| /' conftest.$ac_ext >&5
11189
11190 ac_header_preproc=no
252b5132 11191fi
979273e3
NN
11192rm -f conftest.err conftest.$ac_ext
11193echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194echo "${ECHO_T}$ac_header_preproc" >&6
11195
11196# So? What about this header?
11197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11198 yes:no: )
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203 ac_header_preproc=yes
11204 ;;
11205 no:yes:* )
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11209echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11213echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11218 (
11219 cat <<\_ASBOX
11220## ------------------------------------------ ##
11221## Report this to the AC_PACKAGE_NAME lists. ##
11222## ------------------------------------------ ##
11223_ASBOX
11224 ) |
11225 sed "s/^/$as_me: WARNING: /" >&2
11226 ;;
11227esac
11228echo "$as_me:$LINENO: checking for $ac_header" >&5
11229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11230if eval "test \"\${$as_ac_Header+set}\" = set"; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11232else
979273e3
NN
11233 eval "$as_ac_Header=\$ac_header_preproc"
11234fi
11235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11237
11238fi
11239if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11242_ACEOF
11243
252b5132 11244fi
979273e3 11245
252b5132
RH
11246done
11247
11248
4bd60896
JG
11249echo "$as_me:$LINENO: checking whether basename is declared" >&5
11250echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11251if test "${ac_cv_have_decl_basename+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11253else
11254 cat >conftest.$ac_ext <<_ACEOF
11255/* confdefs.h. */
11256_ACEOF
11257cat confdefs.h >>conftest.$ac_ext
11258cat >>conftest.$ac_ext <<_ACEOF
11259/* end confdefs.h. */
db5152b4 11260$ac_includes_default
4bd60896
JG
11261int
11262main ()
11263{
11264#ifndef basename
11265 char *p = (char *) basename;
11266#endif
11267
11268 ;
11269 return 0;
11270}
11271_ACEOF
11272rm -f conftest.$ac_objext
11273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274 (eval $ac_compile) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest.$ac_objext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 ac_cv_have_decl_basename=yes
11295else
11296 echo "$as_me: failed program was:" >&5
11297sed 's/^/| /' conftest.$ac_ext >&5
11298
11299ac_cv_have_decl_basename=no
11300fi
11301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11302fi
11303echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11304echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11305if test $ac_cv_have_decl_basename = yes; then
11306
11307cat >>confdefs.h <<_ACEOF
11308#define HAVE_DECL_BASENAME 1
11309_ACEOF
11310
11311
11312else
11313 cat >>confdefs.h <<_ACEOF
11314#define HAVE_DECL_BASENAME 0
11315_ACEOF
11316
11317
11318fi
11319
11320
11321
6e31aea3
BE
11322cgen_maint=no
11323cgendir='$(srcdir)/../cgen'
11324
11325# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
11326if test "${enable_cgen_maint+set}" = set; then
11327 enableval="$enable_cgen_maint"
11328 case "${enableval}" in
11329 yes) cgen_maint=yes ;;
11330 no) cgen_maint=no ;;
11331 *)
11332 # argument is cgen install directory (not implemented yet).
11333 # Having a `share' directory might be more appropriate for the .scm,
11334 # .cpu, etc. files.
11335 cgen_maint=yes
11336 cgendir=${cgen_maint}/lib/cgen
11337 ;;
11338esac
979273e3 11339fi;
6e31aea3
BE
11340
11341if test x${cgen_maint} = xyes; then
11342 CGEN_MAINT_TRUE=
11343 CGEN_MAINT_FALSE='#'
11344else
11345 CGEN_MAINT_TRUE='#'
11346 CGEN_MAINT_FALSE=
11347fi
11348
252b5132 11349
8ae85421 11350
252b5132
RH
11351using_cgen=no
11352
11353# Horrible hacks to build DLLs on Windows.
11354WIN32LDFLAGS=
11355WIN32LIBADD=
11356case "${host}" in
11357*-*-cygwin*)
11358 if test "$enable_shared" = "yes"; then
11359 WIN32LDFLAGS="-no-undefined"
11360 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
11361 fi
11362 ;;
11363esac
11364
11365
11366
11367# target-specific stuff:
11368
11369# Canonicalize the secondary target names.
11370if test -n "$enable_targets" ; then
11371 for targ in `echo $enable_targets | sed 's/,/ /g'`
11372 do
6d83c84b 11373 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
11374 if test -n "$result" ; then
11375 canon_targets="$canon_targets $result"
11376 else
11377 # Allow targets that config.sub doesn't recognize, like "all".
11378 canon_targets="$canon_targets $targ"
11379 fi
11380 done
11381fi
11382
11383all_targets=false
11384selarchs=
11385for targ in $target $canon_targets
11386do
11387 if test "x$targ" = "xall" ; then
11388 all_targets=true
11389 else
11390 . $srcdir/../bfd/config.bfd
11391 selarchs="$selarchs $targ_archs"
11392 fi
979273e3 11393done
252b5132
RH
11394
11395# Utility var, documents generic cgen support files.
11396
3609e0fe 11397cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
252b5132
RH
11398
11399# We don't do any links based on the target system, just makefile config.
11400
11401if test x${all_targets} = xfalse ; then
11402
11403 # Target architecture .o files.
11404 ta=
11405
11406 for arch in $selarchs
11407 do
11408 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
11409 archdefs="$archdefs -DARCH_$ad"
11410 case "$arch" in
252b5132 11411 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 11412 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 11413 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 11414 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4b7f6baa 11415 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
3609e0fe 11416 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
1fe1f39c 11417 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
252b5132
RH
11418 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
11419 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 11420 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
252b5132 11421 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
c5f5f1f4 11422 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
252b5132
RH
11423 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
11424 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
11425 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
5b93d8bb 11426 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
0b1cf022 11427 bfd_i386_arch) ta="$ta i386-dis.lo i386-opc.lo" ;;
9d751335 11428 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
252b5132 11429 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
800eeca4 11430 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 11431 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
47b1a55a 11432 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
c5f5f1f4 11433 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
252b5132 11434 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
60bcf0fa
NC
11435 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11436 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
252b5132
RH
11437 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
11438 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
7499d566 11439 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
252b5132 11440 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
bd2f2e55 11441 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
252b5132 11442 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3c3bdf30 11443 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
11444 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
11445 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
d031aafb 11446 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
2469cfa2 11447 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
252b5132 11448 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
87e6d782 11449 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
3b16e843 11450 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
e135f41b 11451 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
1e608f98 11452 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 11453 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 11454 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
5dd0794d 11455 bfd_pyramid_arch) ;;
252b5132
RH
11456 bfd_romp_arch) ;;
11457 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 11458 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
1c0d3aa6 11459 bfd_score_arch) ta="$ta score-dis.lo" ;;
09919455 11460 bfd_sh_arch)
d28847ce 11461 # We can't decide what we want just from the CPU family.
e8b872bb
AO
11462 # We want SH5 support unless a specific version of sh is
11463 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
ca0f2ed6
HPN
11464 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
11465 for t in $target $canon_targets; do
11466 case $t in
5b0e55b6 11467 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
942e7dd9 11468 sh-*-linux* | shl-*-linux*)
d28847ce 11469 ta="$ta sh64-dis.lo sh64-opc.lo"
ca0f2ed6
HPN
11470 archdefs="$archdefs -DINCLUDE_SHMEDIA"
11471 break;;
11472 esac;
11473 done
d3f1a427 11474 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
252b5132 11475 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
e9f53129 11476 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
252b5132
RH
11477 bfd_tahoe_arch) ;;
11478 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
026df7c5 11479 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 11480 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
252b5132
RH
11481 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
11482 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11483 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11484 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11485 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
11486 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
11487 bfd_we32k_arch) ;;
d70c5fc7 11488 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
93fbbb04 11489 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 11490 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
3c9b82ba 11491 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
252b5132
RH
11492 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
11493
11494 "") ;;
979273e3
NN
11495 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
11496echo "$as_me: error: *** unknown target architecture $arch" >&2;}
11497 { (exit 1); exit 1; }; } ;;
252b5132
RH
11498 esac
11499 done
11500
11501 if test $using_cgen = yes ; then
11502 ta="$ta $cgen_files"
11503 fi
11504
11505 # Weed out duplicate .o files.
11506 f=""
11507 for i in $ta ; do
11508 case " $f " in
11509 *" $i "*) ;;
11510 *) f="$f $i" ;;
11511 esac
11512 done
11513 ta="$f"
11514
11515 # And duplicate -D flags.
11516 f=""
11517 for i in $archdefs ; do
11518 case " $f " in
11519 *" $i "*) ;;
11520 *) f="$f $i" ;;
11521 esac
11522 done
11523 archdefs="$f"
11524
11525 BFD_MACHINES="$ta"
11526
11527else # all_targets is true
11528 archdefs=-DARCH_all
11529 BFD_MACHINES='$(ALL_MACHINES)'
11530fi
11531
11532
11533
11534
979273e3
NN
11535 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11536
979273e3 11537cat >confcache <<\_ACEOF
252b5132
RH
11538# This file is a shell script that caches the results of configure
11539# tests run on this system so they can be shared between configure
979273e3
NN
11540# scripts and configure runs, see configure's option --config-cache.
11541# It is not useful on other systems. If it contains results you don't
11542# want to keep, you may remove or edit it.
252b5132 11543#
979273e3
NN
11544# config.status only pays attention to the cache file if you give it
11545# the --recheck option to rerun configure.
252b5132 11546#
979273e3
NN
11547# `ac_cv_env_foo' variables (set or unset) will be overridden when
11548# loading this file, other *unset* `ac_cv_foo' will be assigned the
11549# following values.
11550
11551_ACEOF
11552
252b5132
RH
11553# The following way of writing the cache mishandles newlines in values,
11554# but we know of no workaround that is simple, portable, and efficient.
11555# So, don't put newlines in cache variables' values.
11556# Ultrix sh set writes to stderr and can't be redirected directly,
11557# and sets the high bit in the cache file unless we assign to the vars.
979273e3
NN
11558{
11559 (set) 2>&1 |
11560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11561 *ac_space=\ *)
11562 # `set' does not quote correctly, so add quotes (double-quote
11563 # substitution turns \\\\ into \\, and sed turns \\ into \).
11564 sed -n \
11565 "s/'/'\\\\''/g;
11566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11567 ;;
11568 *)
11569 # `set' quotes correctly as required by POSIX, so do not add quotes.
11570 sed -n \
11571 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11572 ;;
11573 esac;
11574} |
11575 sed '
11576 t clear
11577 : clear
11578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11579 t end
11580 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11581 : end' >>confcache
11582if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 11583 if test -w $cache_file; then
979273e3
NN
11584 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11585 cat confcache >$cache_file
252b5132
RH
11586 else
11587 echo "not updating unwritable cache $cache_file"
11588 fi
11589fi
11590rm -f confcache
11591
252b5132
RH
11592test "x$prefix" = xNONE && prefix=$ac_default_prefix
11593# Let make expand exec_prefix.
11594test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11595
979273e3
NN
11596# VPATH may cause trouble with some makes, so we remove $(srcdir),
11597# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11598# trailing colons and then remove the whole line if VPATH becomes empty
11599# (actually we leave an empty line to preserve line numbers).
252b5132 11600if test "x$srcdir" = x.; then
979273e3
NN
11601 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11602s/:*\$(srcdir):*/:/;
11603s/:*\${srcdir}:*/:/;
11604s/:*@srcdir@:*/:/;
11605s/^\([^=]*=[ ]*\):*/\1/;
11606s/:*$//;
11607s/^[^=]*=[ ]*$//;
11608}'
252b5132
RH
11609fi
11610
252b5132
RH
11611DEFS=-DHAVE_CONFIG_H
11612
979273e3
NN
11613ac_libobjs=
11614ac_ltlibobjs=
11615for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11616 # 1. Remove the extension, and $U if already installed.
11617 ac_i=`echo "$ac_i" |
11618 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11619 # 2. Add them.
11620 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11621 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11622done
11623LIBOBJS=$ac_libobjs
252b5132 11624
979273e3
NN
11625LTLIBOBJS=$ac_ltlibobjs
11626
11627
8ae85421
AM
11628if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11629 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11630Usually this means the macro was only invoked conditionally." >&5
11631echo "$as_me: error: conditional \"AMDEP\" was never defined.
11632Usually this means the macro was only invoked conditionally." >&2;}
11633 { (exit 1); exit 1; }; }
11634fi
11635if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11636 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11637Usually this means the macro was only invoked conditionally." >&5
11638echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11639Usually this means the macro was only invoked conditionally." >&2;}
11640 { (exit 1); exit 1; }; }
11641fi
11642if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11643 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11644Usually this means the macro was only invoked conditionally." >&5
11645echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11646Usually this means the macro was only invoked conditionally." >&2;}
11647 { (exit 1); exit 1; }; }
11648fi
11649if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
11650 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
11651Usually this means the macro was only invoked conditionally." >&5
11652echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
11653Usually this means the macro was only invoked conditionally." >&2;}
11654 { (exit 1); exit 1; }; }
11655fi
11656if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
11657 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
11658Usually this means the macro was only invoked conditionally." >&5
11659echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
11660Usually this means the macro was only invoked conditionally." >&2;}
11661 { (exit 1); exit 1; }; }
11662fi
979273e3
NN
11663
11664: ${CONFIG_STATUS=./config.status}
11665ac_clean_files_save=$ac_clean_files
11666ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11667{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11668echo "$as_me: creating $CONFIG_STATUS" >&6;}
11669cat >$CONFIG_STATUS <<_ACEOF
11670#! $SHELL
11671# Generated by $as_me.
252b5132 11672# Run this file to recreate the current configuration.
252b5132 11673# Compiler output produced by configure, useful for debugging
979273e3 11674# configure, is in config.log if it exists.
252b5132 11675
979273e3
NN
11676debug=false
11677ac_cs_recheck=false
11678ac_cs_silent=false
11679SHELL=\${CONFIG_SHELL-$SHELL}
11680_ACEOF
11681
11682cat >>$CONFIG_STATUS <<\_ACEOF
11683## --------------------- ##
11684## M4sh Initialization. ##
11685## --------------------- ##
11686
11687# Be Bourne compatible
11688if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11689 emulate sh
11690 NULLCMD=:
11691 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11692 # is contrary to our usage. Disable this feature.
11693 alias -g '${1+"$@"}'='"$@"'
11694elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11695 set -o posix
11696fi
11697DUALCASE=1; export DUALCASE # for MKS sh
11698
11699# Support unset when possible.
11700if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11701 as_unset=unset
11702else
11703 as_unset=false
11704fi
11705
11706
11707# Work around bugs in pre-3.0 UWIN ksh.
11708$as_unset ENV MAIL MAILPATH
11709PS1='$ '
11710PS2='> '
11711PS4='+ '
11712
11713# NLS nuisances.
11714for as_var in \
11715 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11716 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11717 LC_TELEPHONE LC_TIME
252b5132 11718do
979273e3
NN
11719 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11720 eval $as_var=C; export $as_var
11721 else
11722 $as_unset $as_var
11723 fi
252b5132
RH
11724done
11725
979273e3
NN
11726# Required to use basename.
11727if expr a : '\(a\)' >/dev/null 2>&1; then
11728 as_expr=expr
11729else
11730 as_expr=false
11731fi
11732
11733if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11734 as_basename=basename
11735else
11736 as_basename=false
11737fi
252b5132 11738
252b5132 11739
979273e3
NN
11740# Name of the executable.
11741as_me=`$as_basename "$0" ||
11742$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11743 X"$0" : 'X\(//\)$' \| \
11744 X"$0" : 'X\(/\)$' \| \
11745 . : '\(.\)' 2>/dev/null ||
11746echo X/"$0" |
11747 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11748 /^X\/\(\/\/\)$/{ s//\1/; q; }
11749 /^X\/\(\/\).*/{ s//\1/; q; }
11750 s/.*/./; q'`
252b5132 11751
252b5132 11752
979273e3
NN
11753# PATH needs CR, and LINENO needs CR and PATH.
11754# Avoid depending upon Character Ranges.
11755as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11756as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11757as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11758as_cr_digits='0123456789'
11759as_cr_alnum=$as_cr_Letters$as_cr_digits
11760
11761# The user is always right.
11762if test "${PATH_SEPARATOR+set}" != set; then
11763 echo "#! /bin/sh" >conf$$.sh
11764 echo "exit 0" >>conf$$.sh
11765 chmod +x conf$$.sh
11766 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11767 PATH_SEPARATOR=';'
252b5132 11768 else
979273e3
NN
11769 PATH_SEPARATOR=:
11770 fi
11771 rm -f conf$$.sh
11772fi
11773
11774
11775 as_lineno_1=$LINENO
11776 as_lineno_2=$LINENO
11777 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11778 test "x$as_lineno_1" != "x$as_lineno_2" &&
11779 test "x$as_lineno_3" = "x$as_lineno_2" || {
11780 # Find who we are. Look in the path if we contain no path at all
11781 # relative or not.
11782 case $0 in
11783 *[\\/]* ) as_myself=$0 ;;
11784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785for as_dir in $PATH
11786do
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
11789 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11790done
11791
11792 ;;
11793 esac
11794 # We did not find ourselves, most probably we were run as `sh COMMAND'
11795 # in which case we are not to be found in the path.
11796 if test "x$as_myself" = x; then
11797 as_myself=$0
11798 fi
11799 if test ! -f "$as_myself"; then
11800 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11801echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11802 { (exit 1); exit 1; }; }
252b5132 11803 fi
979273e3
NN
11804 case $CONFIG_SHELL in
11805 '')
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11808do
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
11811 for as_base in sh bash ksh sh5; do
11812 case $as_dir in
11813 /*)
11814 if ("$as_dir/$as_base" -c '
11815 as_lineno_1=$LINENO
11816 as_lineno_2=$LINENO
11817 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11818 test "x$as_lineno_1" != "x$as_lineno_2" &&
11819 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11820 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11821 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11822 CONFIG_SHELL=$as_dir/$as_base
11823 export CONFIG_SHELL
11824 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11825 fi;;
11826 esac
11827 done
11828done
11829;;
11830 esac
11831
11832 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11833 # uniformly replaced by the line number. The first 'sed' inserts a
11834 # line-number line before each line; the second 'sed' does the real
11835 # work. The second script uses 'N' to pair each line-number line
11836 # with the numbered line, and appends trailing '-' during
11837 # substitution so that $LINENO is not a special case at line end.
11838 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11839 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11840 sed '=' <$as_myself |
11841 sed '
11842 N
11843 s,$,-,
11844 : loop
11845 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11846 t loop
11847 s,-$,,
11848 s,^['$as_cr_digits']*\n,,
11849 ' >$as_me.lineno &&
11850 chmod +x $as_me.lineno ||
11851 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11852echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11853 { (exit 1); exit 1; }; }
11854
11855 # Don't try to exec as it changes $[0], causing all sort of problems
11856 # (the dirname of $[0] is not the place where we might find the
11857 # original and so on. Autoconf is especially sensible to this).
11858 . ./$as_me.lineno
11859 # Exit status is that of the last command.
11860 exit
11861}
11862
11863
11864case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11865 *c*,-n*) ECHO_N= ECHO_C='
11866' ECHO_T=' ' ;;
11867 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11868 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11869esac
11870
11871if expr a : '\(a\)' >/dev/null 2>&1; then
11872 as_expr=expr
11873else
11874 as_expr=false
11875fi
11876
11877rm -f conf$$ conf$$.exe conf$$.file
11878echo >conf$$.file
11879if ln -s conf$$.file conf$$ 2>/dev/null; then
11880 # We could just check for DJGPP; but this test a) works b) is more generic
11881 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11882 if test -f conf$$.exe; then
11883 # Don't use ln at all; we don't have any links
11884 as_ln_s='cp -p'
252b5132 11885 else
979273e3 11886 as_ln_s='ln -s'
252b5132 11887 fi
979273e3
NN
11888elif ln conf$$.file conf$$ 2>/dev/null; then
11889 as_ln_s=ln
11890else
11891 as_ln_s='cp -p'
11892fi
11893rm -f conf$$ conf$$.exe conf$$.file
11894
11895if mkdir -p . 2>/dev/null; then
11896 as_mkdir_p=:
11897else
11898 test -d ./-p && rmdir ./-p
11899 as_mkdir_p=false
11900fi
11901
11902as_executable_p="test -f"
11903
11904# Sed expression to map a string onto a valid CPP name.
11905as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11906
11907# Sed expression to map a string onto a valid variable name.
11908as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11909
11910
11911# IFS
11912# We need space, tab and new line, in precisely that order.
11913as_nl='
11914'
11915IFS=" $as_nl"
11916
11917# CDPATH.
11918$as_unset CDPATH
11919
11920exec 6>&1
11921
11922# Open the log real soon, to keep \$[0] and so on meaningful, and to
11923# report actual input values of CONFIG_FILES etc. instead of their
11924# values after options handling. Logging --version etc. is OK.
11925exec 5>>config.log
11926{
11927 echo
11928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11929## Running $as_me. ##
11930_ASBOX
11931} >&5
11932cat >&5 <<_CSEOF
11933
11934This file was extended by $as_me, which was
11935generated by GNU Autoconf 2.59. Invocation command line was
11936
11937 CONFIG_FILES = $CONFIG_FILES
11938 CONFIG_HEADERS = $CONFIG_HEADERS
11939 CONFIG_LINKS = $CONFIG_LINKS
11940 CONFIG_COMMANDS = $CONFIG_COMMANDS
11941 $ $0 $@
11942
11943_CSEOF
11944echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11945echo >&5
11946_ACEOF
11947
11948# Files that config.status was made for.
11949if test -n "$ac_config_files"; then
11950 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11951fi
11952
11953if test -n "$ac_config_headers"; then
11954 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11955fi
11956
11957if test -n "$ac_config_links"; then
11958 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11959fi
11960
11961if test -n "$ac_config_commands"; then
11962 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11963fi
11964
11965cat >>$CONFIG_STATUS <<\_ACEOF
11966
11967ac_cs_usage="\
11968\`$as_me' instantiates files from templates according to the
11969current configuration.
11970
11971Usage: $0 [OPTIONS] [FILE]...
11972
11973 -h, --help print this help, then exit
11974 -V, --version print version number, then exit
11975 -q, --quiet do not print progress messages
11976 -d, --debug don't remove temporary files
11977 --recheck update $as_me by reconfiguring in the same conditions
11978 --file=FILE[:TEMPLATE]
11979 instantiate the configuration file FILE
11980 --header=FILE[:TEMPLATE]
11981 instantiate the configuration header FILE
11982
11983Configuration files:
11984$config_files
11985
11986Configuration headers:
11987$config_headers
11988
11989Configuration commands:
11990$config_commands
11991
11992Report bugs to <bug-autoconf@gnu.org>."
11993_ACEOF
11994
11995cat >>$CONFIG_STATUS <<_ACEOF
11996ac_cs_version="\\
11997config.status
11998configured by $0, generated by GNU Autoconf 2.59,
11999 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12000
12001Copyright (C) 2003 Free Software Foundation, Inc.
12002This config.status script is free software; the Free Software Foundation
12003gives unlimited permission to copy, distribute and modify it."
12004srcdir=$srcdir
12005INSTALL="$INSTALL"
12006_ACEOF
12007
12008cat >>$CONFIG_STATUS <<\_ACEOF
12009# If no file are specified by the user, then we need to provide default
12010# value. By we need to know if files were specified by the user.
12011ac_need_defaults=:
12012while test $# != 0
12013do
12014 case $1 in
12015 --*=*)
12016 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12017 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12018 ac_shift=:
12019 ;;
12020 -*)
12021 ac_option=$1
12022 ac_optarg=$2
12023 ac_shift=shift
12024 ;;
12025 *) # This is not an option, so the user has probably given explicit
12026 # arguments.
12027 ac_option=$1
12028 ac_need_defaults=false;;
12029 esac
12030
12031 case $ac_option in
12032 # Handling of the options.
12033_ACEOF
12034cat >>$CONFIG_STATUS <<\_ACEOF
12035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12036 ac_cs_recheck=: ;;
12037 --version | --vers* | -V )
12038 echo "$ac_cs_version"; exit 0 ;;
12039 --he | --h)
12040 # Conflict between --help and --header
12041 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12042Try \`$0 --help' for more information." >&5
12043echo "$as_me: error: ambiguous option: $1
12044Try \`$0 --help' for more information." >&2;}
12045 { (exit 1); exit 1; }; };;
12046 --help | --hel | -h )
12047 echo "$ac_cs_usage"; exit 0 ;;
12048 --debug | --d* | -d )
12049 debug=: ;;
12050 --file | --fil | --fi | --f )
12051 $ac_shift
12052 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12053 ac_need_defaults=false;;
12054 --header | --heade | --head | --hea )
12055 $ac_shift
12056 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12057 ac_need_defaults=false;;
12058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12060 ac_cs_silent=: ;;
12061
12062 # This is an error.
12063 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12064Try \`$0 --help' for more information." >&5
12065echo "$as_me: error: unrecognized option: $1
12066Try \`$0 --help' for more information." >&2;}
12067 { (exit 1); exit 1; }; } ;;
12068
12069 *) ac_config_targets="$ac_config_targets $1" ;;
12070
12071 esac
12072 shift
252b5132 12073done
979273e3
NN
12074
12075ac_configure_extra_args=
12076
12077if $ac_cs_silent; then
12078 exec 6>/dev/null
12079 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 12080fi
252b5132 12081
979273e3
NN
12082_ACEOF
12083cat >>$CONFIG_STATUS <<_ACEOF
12084if \$ac_cs_recheck; then
12085 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12086 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12087fi
252b5132 12088
979273e3
NN
12089_ACEOF
12090
12091cat >>$CONFIG_STATUS <<_ACEOF
12092#
12093# INIT-COMMANDS section.
12094#
12095
8ae85421 12096AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
12097
12098
12099# The HP-UX ksh and POSIX shell print the target directory to stdout
12100# if CDPATH is set.
12101(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12102
12103sed_quote_subst='$sed_quote_subst'
12104double_quote_subst='$double_quote_subst'
12105delay_variable_subst='$delay_variable_subst'
12106enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12107macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12108macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12109enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12110pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12111enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12112host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12113host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12114host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12115build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12116build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12117build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12118SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12119Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12120GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12121EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12122FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12123LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12124NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12125LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12126max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12127ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12128exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12129lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12130lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12131lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12132reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12133reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12134deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12135file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12136AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12137AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12138STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12139RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12140old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12141old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12142old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12143CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12144CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12145compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12146GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12147lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12148lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12149lt_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"`'
12150objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12151SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12152ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12153MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12154lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12155lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12156lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12157lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12158lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12159need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12160libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12161shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12162extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12163archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12164enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12165export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12166whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12167compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12168old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12169old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12170archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12171archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12172module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12173module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12174with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12175allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12176no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12177hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12178hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12179hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12180hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12181hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12182hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12183hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12184hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12185inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12186link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12187fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12188always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12189export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12190exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12191include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12192prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12193file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12194variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12195need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12196need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12197version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12198runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12199shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12200shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12201libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12202library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12203soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12204postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12205postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12206finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12207finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12208hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12209sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12210sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12211hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12212enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12213enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12214enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12215old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12216striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12217
12218LTCC='$LTCC'
12219LTCFLAGS='$LTCFLAGS'
12220compiler='$compiler_DEFAULT'
12221
12222# Quote evaled strings.
12223for var in SED \
12224GREP \
12225EGREP \
12226FGREP \
12227LD \
12228NM \
12229LN_S \
12230lt_SP2NL \
12231lt_NL2SP \
12232reload_flag \
12233deplibs_check_method \
12234file_magic_cmd \
12235AR \
12236AR_FLAGS \
12237STRIP \
12238RANLIB \
12239CC \
12240CFLAGS \
12241compiler \
12242lt_cv_sys_global_symbol_pipe \
12243lt_cv_sys_global_symbol_to_cdecl \
12244lt_cv_sys_global_symbol_to_c_name_address \
12245SHELL \
12246ECHO \
12247lt_prog_compiler_no_builtin_flag \
12248lt_prog_compiler_wl \
12249lt_prog_compiler_pic \
12250lt_prog_compiler_static \
12251lt_cv_prog_compiler_c_o \
12252need_locks \
12253shrext_cmds \
12254export_dynamic_flag_spec \
12255whole_archive_flag_spec \
12256compiler_needs_object \
12257with_gnu_ld \
12258allow_undefined_flag \
12259no_undefined_flag \
12260hardcode_libdir_flag_spec \
12261hardcode_libdir_flag_spec_ld \
12262hardcode_libdir_separator \
12263fix_srcfile_path \
12264exclude_expsyms \
12265include_expsyms \
12266file_list_spec \
12267variables_saved_for_relink \
12268libname_spec \
12269library_names_spec \
12270soname_spec \
12271finish_eval \
12272old_striplib \
12273striplib; do
12274 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12275 *[\\\\\\\`\\"\\\$]*)
12276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12277 ;;
12278 *)
12279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12280 ;;
12281 esac
12282done
12283
12284# Double-quote double-evaled strings.
12285for var in reload_cmds \
12286old_postinstall_cmds \
12287old_postuninstall_cmds \
12288old_archive_cmds \
12289extract_expsyms_cmds \
12290old_archive_from_new_cmds \
12291old_archive_from_expsyms_cmds \
12292archive_cmds \
12293archive_expsym_cmds \
12294module_cmds \
12295module_expsym_cmds \
12296export_symbols_cmds \
12297prelink_cmds \
12298postinstall_cmds \
12299postuninstall_cmds \
12300finish_cmds \
12301sys_lib_search_path_spec \
12302sys_lib_dlsearch_path_spec; do
12303 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12304 *[\\\\\\\`\\"\\\$]*)
12305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12306 ;;
12307 *)
12308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12309 ;;
12310 esac
12311done
12312
12313# Fix-up fallback echo if it was mangled by the above quoting rules.
12314case \$lt_ECHO in
12315*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12316 ;;
12317esac
12318
12319ac_aux_dir='$ac_aux_dir'
12320xsi_shell='$xsi_shell'
12321lt_shell_append='$lt_shell_append'
12322
12323# See if we are running on zsh, and set the options which allow our
12324# commands through without removal of \ escapes INIT.
12325if test -n "\${ZSH_VERSION+set}" ; then
12326 setopt NO_GLOB_SUBST
12327fi
12328
12329
12330 PACKAGE='$PACKAGE'
12331 VERSION='$VERSION'
12332 TIMESTAMP='$TIMESTAMP'
12333 RM='$RM'
12334 ofile='$ofile'
12335
12336
12337
20e95c23
DJ
12338# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12339 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12340 # from automake.
12341 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12342 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12343 LINGUAS="${LINGUAS-%UNSET%}"
979273e3
NN
12344
12345
12346_ACEOF
12347
12348
12349
12350cat >>$CONFIG_STATUS <<\_ACEOF
12351for ac_config_target in $ac_config_targets
12352do
12353 case "$ac_config_target" in
12354 # Handling of arguments.
12355 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12356 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8ae85421 12357 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 12358 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 12359 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
979273e3
NN
12360 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12361 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12362echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12363 { (exit 1); exit 1; }; };;
252b5132 12364 esac
979273e3 12365done
252b5132 12366
979273e3
NN
12367# If the user did not use the arguments to specify the items to instantiate,
12368# then the envvar interface is used. Set only those that are not.
12369# We use the long form for the default assignment because of an extremely
12370# bizarre bug on SunOS 4.1.3.
12371if $ac_need_defaults; then
12372 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12373 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12374 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12375fi
12376
12377# Have a temporary directory for convenience. Make it in the build tree
12378# simply because there is no reason to put it here, and in addition,
12379# creating and moving files from /tmp can sometimes cause problems.
12380# Create a temporary directory, and hook for its removal unless debugging.
12381$debug ||
12382{
12383 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12384 trap '{ (exit 1); exit 1; }' 1 2 13 15
12385}
252b5132 12386
979273e3
NN
12387# Create a (secure) tmp directory for tmp files.
12388
12389{
12390 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12391 test -n "$tmp" && test -d "$tmp"
12392} ||
12393{
12394 tmp=./confstat$$-$RANDOM
12395 (umask 077 && mkdir $tmp)
12396} ||
12397{
12398 echo "$me: cannot create a temporary directory in ." >&2
12399 { (exit 1); exit 1; }
12400}
12401
12402_ACEOF
12403
12404cat >>$CONFIG_STATUS <<_ACEOF
12405
12406#
12407# CONFIG_FILES section.
12408#
12409
12410# No need to generate the scripts if there are no CONFIG_FILES.
12411# This happens for instance when ./config.status config.h
12412if test -n "\$CONFIG_FILES"; then
12413 # Protect against being on the right side of a sed subst in config.status.
12414 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12415 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12416s,@SHELL@,$SHELL,;t t
12417s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12418s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12419s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12420s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12421s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12422s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12423s,@exec_prefix@,$exec_prefix,;t t
12424s,@prefix@,$prefix,;t t
12425s,@program_transform_name@,$program_transform_name,;t t
12426s,@bindir@,$bindir,;t t
12427s,@sbindir@,$sbindir,;t t
12428s,@libexecdir@,$libexecdir,;t t
12429s,@datadir@,$datadir,;t t
12430s,@sysconfdir@,$sysconfdir,;t t
12431s,@sharedstatedir@,$sharedstatedir,;t t
12432s,@localstatedir@,$localstatedir,;t t
12433s,@libdir@,$libdir,;t t
12434s,@includedir@,$includedir,;t t
12435s,@oldincludedir@,$oldincludedir,;t t
12436s,@infodir@,$infodir,;t t
12437s,@mandir@,$mandir,;t t
12438s,@build_alias@,$build_alias,;t t
12439s,@host_alias@,$host_alias,;t t
12440s,@target_alias@,$target_alias,;t t
12441s,@DEFS@,$DEFS,;t t
12442s,@ECHO_C@,$ECHO_C,;t t
12443s,@ECHO_N@,$ECHO_N,;t t
12444s,@ECHO_T@,$ECHO_T,;t t
12445s,@LIBS@,$LIBS,;t t
12446s,@build@,$build,;t t
12447s,@build_cpu@,$build_cpu,;t t
12448s,@build_vendor@,$build_vendor,;t t
12449s,@build_os@,$build_os,;t t
12450s,@host@,$host,;t t
12451s,@host_cpu@,$host_cpu,;t t
12452s,@host_vendor@,$host_vendor,;t t
12453s,@host_os@,$host_os,;t t
12454s,@target@,$target,;t t
12455s,@target_cpu@,$target_cpu,;t t
12456s,@target_vendor@,$target_vendor,;t t
12457s,@target_os@,$target_os,;t t
12458s,@CC@,$CC,;t t
12459s,@CFLAGS@,$CFLAGS,;t t
12460s,@LDFLAGS@,$LDFLAGS,;t t
12461s,@CPPFLAGS@,$CPPFLAGS,;t t
12462s,@ac_ct_CC@,$ac_ct_CC,;t t
12463s,@EXEEXT@,$EXEEXT,;t t
12464s,@OBJEXT@,$OBJEXT,;t t
12465s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12466s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12467s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8ae85421 12468s,@CYGPATH_W@,$CYGPATH_W,;t t
979273e3
NN
12469s,@PACKAGE@,$PACKAGE,;t t
12470s,@VERSION@,$VERSION,;t t
12471s,@ACLOCAL@,$ACLOCAL,;t t
12472s,@AUTOCONF@,$AUTOCONF,;t t
12473s,@AUTOMAKE@,$AUTOMAKE,;t t
12474s,@AUTOHEADER@,$AUTOHEADER,;t t
12475s,@MAKEINFO@,$MAKEINFO,;t t
8ae85421
AM
12476s,@install_sh@,$install_sh,;t t
12477s,@STRIP@,$STRIP,;t t
12478s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12479s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12480s,@mkdir_p@,$mkdir_p,;t t
12481s,@AWK@,$AWK,;t t
979273e3 12482s,@SET_MAKE@,$SET_MAKE,;t t
8ae85421
AM
12483s,@am__leading_dot@,$am__leading_dot,;t t
12484s,@AMTAR@,$AMTAR,;t t
12485s,@am__tar@,$am__tar,;t t
12486s,@am__untar@,$am__untar,;t t
12487s,@DEPDIR@,$DEPDIR,;t t
12488s,@am__include@,$am__include,;t t
12489s,@am__quote@,$am__quote,;t t
12490s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12491s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12492s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12493s,@CCDEPMODE@,$CCDEPMODE,;t t
12494s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12495s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
979273e3
NN
12496s,@AR@,$AR,;t t
12497s,@ac_ct_AR@,$ac_ct_AR,;t t
12498s,@RANLIB@,$RANLIB,;t t
12499s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
979273e3 12500s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb
SE
12501s,@SED@,$SED,;t t
12502s,@EGREP@,$EGREP,;t t
12503s,@FGREP@,$FGREP,;t t
12504s,@GREP@,$GREP,;t t
12505s,@LD@,$LD,;t t
12506s,@DUMPBIN@,$DUMPBIN,;t t
12507s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12508s,@NM@,$NM,;t t
12509s,@LN_S@,$LN_S,;t t
12510s,@lt_ECHO@,$lt_ECHO,;t t
12511s,@CPP@,$CPP,;t t
979273e3 12512s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 12513s,@NO_WERROR@,$NO_WERROR,;t t
979273e3
NN
12514s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12515s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12516s,@MAINT@,$MAINT,;t t
12517s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12518s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
12519s,@host_noncanonical@,$host_noncanonical,;t t
12520s,@target_noncanonical@,$target_noncanonical,;t t
979273e3
NN
12521s,@bfdlibdir@,$bfdlibdir,;t t
12522s,@bfdincludedir@,$bfdincludedir,;t t
979273e3 12523s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
12524s,@LIBINTL@,$LIBINTL,;t t
12525s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12526s,@INCINTL@,$INCINTL,;t t
979273e3 12527s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
12528s,@GMSGFMT@,$GMSGFMT,;t t
12529s,@POSUB@,$POSUB,;t t
979273e3 12530s,@CATALOGS@,$CATALOGS,;t t
979273e3 12531s,@DATADIRNAME@,$DATADIRNAME,;t t
979273e3 12532s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
12533s,@GENCAT@,$GENCAT,;t t
12534s,@CATOBJEXT@,$CATOBJEXT,;t t
979273e3 12535s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
12536s,@MSGFMT@,$MSGFMT,;t t
12537s,@MSGMERGE@,$MSGMERGE,;t t
979273e3
NN
12538s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12539s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12540s,@HDEFINES@,$HDEFINES,;t t
12541s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
12542s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
12543s,@cgendir@,$cgendir,;t t
12544s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
12545s,@WIN32LIBADD@,$WIN32LIBADD,;t t
12546s,@archdefs@,$archdefs,;t t
12547s,@BFD_MACHINES@,$BFD_MACHINES,;t t
12548s,@LIBOBJS@,$LIBOBJS,;t t
12549s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12550CEOF
12551
12552_ACEOF
12553
12554 cat >>$CONFIG_STATUS <<\_ACEOF
12555 # Split the substitutions into bite-sized pieces for seds with
12556 # small command number limits, like on Digital OSF/1 and HP-UX.
12557 ac_max_sed_lines=48
12558 ac_sed_frag=1 # Number of current file.
12559 ac_beg=1 # First line for current file.
12560 ac_end=$ac_max_sed_lines # Line after last line for current file.
12561 ac_more_lines=:
12562 ac_sed_cmds=
12563 while $ac_more_lines; do
12564 if test $ac_beg -gt 1; then
12565 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12566 else
12567 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12568 fi
12569 if test ! -s $tmp/subs.frag; then
12570 ac_more_lines=false
12571 else
12572 # The purpose of the label and of the branching condition is to
12573 # speed up the sed processing (if there are no `@' at all, there
12574 # is no need to browse any of the substitutions).
12575 # These are the two extra sed commands mentioned above.
12576 (echo ':t
12577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12578 if test -z "$ac_sed_cmds"; then
12579 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12580 else
12581 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12582 fi
12583 ac_sed_frag=`expr $ac_sed_frag + 1`
12584 ac_beg=$ac_end
12585 ac_end=`expr $ac_end + $ac_max_sed_lines`
12586 fi
12587 done
12588 if test -z "$ac_sed_cmds"; then
12589 ac_sed_cmds=cat
252b5132 12590 fi
979273e3 12591fi # test -n "$CONFIG_FILES"
252b5132 12592
979273e3
NN
12593_ACEOF
12594cat >>$CONFIG_STATUS <<\_ACEOF
12595for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12597 case $ac_file in
12598 - | *:- | *:-:* ) # input from stdin
12599 cat >$tmp/stdin
12600 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12602 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12604 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12605 esac
12606
979273e3
NN
12607 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12608 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12609$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12610 X"$ac_file" : 'X\(//\)[^/]' \| \
12611 X"$ac_file" : 'X\(//\)$' \| \
12612 X"$ac_file" : 'X\(/\)' \| \
12613 . : '\(.\)' 2>/dev/null ||
12614echo X"$ac_file" |
12615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12617 /^X\(\/\/\)$/{ s//\1/; q; }
12618 /^X\(\/\).*/{ s//\1/; q; }
12619 s/.*/./; q'`
12620 { if $as_mkdir_p; then
12621 mkdir -p "$ac_dir"
12622 else
12623 as_dir="$ac_dir"
12624 as_dirs=
12625 while test ! -d "$as_dir"; do
12626 as_dirs="$as_dir $as_dirs"
12627 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12628$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12629 X"$as_dir" : 'X\(//\)[^/]' \| \
12630 X"$as_dir" : 'X\(//\)$' \| \
12631 X"$as_dir" : 'X\(/\)' \| \
12632 . : '\(.\)' 2>/dev/null ||
12633echo X"$as_dir" |
12634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12636 /^X\(\/\/\)$/{ s//\1/; q; }
12637 /^X\(\/\).*/{ s//\1/; q; }
12638 s/.*/./; q'`
12639 done
12640 test ! -n "$as_dirs" || mkdir $as_dirs
12641 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12642echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12643 { (exit 1); exit 1; }; }; }
12644
12645 ac_builddir=.
12646
12647if test "$ac_dir" != .; then
12648 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12649 # A "../" for each directory in $ac_dir_suffix.
12650 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12651else
12652 ac_dir_suffix= ac_top_builddir=
12653fi
12654
12655case $srcdir in
12656 .) # No --srcdir option. We are building in place.
12657 ac_srcdir=.
12658 if test -z "$ac_top_builddir"; then
12659 ac_top_srcdir=.
12660 else
12661 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12662 fi ;;
12663 [\\/]* | ?:[\\/]* ) # Absolute path.
12664 ac_srcdir=$srcdir$ac_dir_suffix;
12665 ac_top_srcdir=$srcdir ;;
12666 *) # Relative path.
12667 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12668 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12669esac
12670
12671# Do not use `cd foo && pwd` to compute absolute paths, because
12672# the directories may not exist.
12673case `pwd` in
12674.) ac_abs_builddir="$ac_dir";;
12675*)
12676 case "$ac_dir" in
12677 .) ac_abs_builddir=`pwd`;;
12678 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12679 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12680 esac;;
12681esac
12682case $ac_abs_builddir in
12683.) ac_abs_top_builddir=${ac_top_builddir}.;;
12684*)
12685 case ${ac_top_builddir}. in
12686 .) ac_abs_top_builddir=$ac_abs_builddir;;
12687 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12688 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12689 esac;;
12690esac
12691case $ac_abs_builddir in
12692.) ac_abs_srcdir=$ac_srcdir;;
12693*)
12694 case $ac_srcdir in
12695 .) ac_abs_srcdir=$ac_abs_builddir;;
12696 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12697 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12698 esac;;
12699esac
12700case $ac_abs_builddir in
12701.) ac_abs_top_srcdir=$ac_top_srcdir;;
12702*)
12703 case $ac_top_srcdir in
12704 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12705 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12706 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12707 esac;;
12708esac
252b5132 12709
979273e3
NN
12710
12711 case $INSTALL in
12712 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12713 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132
RH
12714 esac
12715
8ae85421
AM
12716 if test x"$ac_file" != x-; then
12717 { echo "$as_me:$LINENO: creating $ac_file" >&5
12718echo "$as_me: creating $ac_file" >&6;}
12719 rm -f "$ac_file"
12720 fi
979273e3
NN
12721 # Let's still pretend it is `configure' which instantiates (i.e., don't
12722 # use $as_me), people would be surprised to read:
12723 # /* config.h. Generated by config.status. */
12724 if test x"$ac_file" = x-; then
12725 configure_input=
12726 else
12727 configure_input="$ac_file. "
12728 fi
12729 configure_input=$configure_input"Generated from `echo $ac_file_in |
12730 sed 's,.*/,,'` by configure."
12731
12732 # First look for the input files in the build tree, otherwise in the
12733 # src tree.
12734 ac_file_inputs=`IFS=:
12735 for f in $ac_file_in; do
12736 case $f in
12737 -) echo $tmp/stdin ;;
12738 [\\/$]*)
12739 # Absolute (can't be DOS-style, as IFS=:)
12740 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12741echo "$as_me: error: cannot find input file: $f" >&2;}
12742 { (exit 1); exit 1; }; }
12743 echo "$f";;
12744 *) # Relative
12745 if test -f "$f"; then
12746 # Build tree
12747 echo "$f"
12748 elif test -f "$srcdir/$f"; then
12749 # Source tree
12750 echo "$srcdir/$f"
12751 else
12752 # /dev/null tree
12753 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12754echo "$as_me: error: cannot find input file: $f" >&2;}
12755 { (exit 1); exit 1; }; }
12756 fi;;
12757 esac
12758 done` || { (exit 1); exit 1; }
979273e3
NN
12759_ACEOF
12760cat >>$CONFIG_STATUS <<_ACEOF
12761 sed "$ac_vpsub
12762$extrasub
12763_ACEOF
12764cat >>$CONFIG_STATUS <<\_ACEOF
12765:t
12766/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12767s,@configure_input@,$configure_input,;t t
12768s,@srcdir@,$ac_srcdir,;t t
12769s,@abs_srcdir@,$ac_abs_srcdir,;t t
12770s,@top_srcdir@,$ac_top_srcdir,;t t
12771s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12772s,@builddir@,$ac_builddir,;t t
12773s,@abs_builddir@,$ac_abs_builddir,;t t
12774s,@top_builddir@,$ac_top_builddir,;t t
12775s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12776s,@INSTALL@,$ac_INSTALL,;t t
12777" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12778 rm -f $tmp/stdin
12779 if test x"$ac_file" != x-; then
12780 mv $tmp/out $ac_file
12781 else
12782 cat $tmp/out
12783 rm -f $tmp/out
12784 fi
12785
12786done
12787_ACEOF
12788cat >>$CONFIG_STATUS <<\_ACEOF
12789
12790#
12791# CONFIG_HEADER section.
12792#
252b5132
RH
12793
12794# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12795# NAME is the cpp macro being defined and VALUE is the value it is being given.
12796#
12797# ac_d sets the value in "#define NAME VALUE" lines.
979273e3
NN
12798ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12799ac_dB='[ ].*$,\1#\2'
12800ac_dC=' '
12801ac_dD=',;t'
12802# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12803ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12804ac_uB='$,\1#\2define\3'
252b5132 12805ac_uC=' '
979273e3
NN
12806ac_uD=',;t'
12807
12808for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 12809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
979273e3
NN
12810 case $ac_file in
12811 - | *:- | *:-:* ) # input from stdin
12812 cat >$tmp/stdin
12813 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12815 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12817 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12818 esac
12819
979273e3
NN
12820 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12821echo "$as_me: creating $ac_file" >&6;}
12822
12823 # First look for the input files in the build tree, otherwise in the
12824 # src tree.
12825 ac_file_inputs=`IFS=:
12826 for f in $ac_file_in; do
12827 case $f in
12828 -) echo $tmp/stdin ;;
12829 [\\/$]*)
12830 # Absolute (can't be DOS-style, as IFS=:)
12831 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12832echo "$as_me: error: cannot find input file: $f" >&2;}
12833 { (exit 1); exit 1; }; }
12834 # Do quote $f, to prevent DOS paths from being IFS'd.
12835 echo "$f";;
12836 *) # Relative
12837 if test -f "$f"; then
12838 # Build tree
12839 echo "$f"
12840 elif test -f "$srcdir/$f"; then
12841 # Source tree
12842 echo "$srcdir/$f"
12843 else
12844 # /dev/null tree
12845 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12846echo "$as_me: error: cannot find input file: $f" >&2;}
12847 { (exit 1); exit 1; }; }
12848 fi;;
12849 esac
12850 done` || { (exit 1); exit 1; }
12851 # Remove the trailing spaces.
12852 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12853
12854_ACEOF
12855
12856# Transform confdefs.h into two sed scripts, `conftest.defines' and
12857# `conftest.undefs', that substitutes the proper values into
12858# config.h.in to produce config.h. The first handles `#define'
12859# templates, and the second `#undef' templates.
12860# And first: Protect against being on the right side of a sed subst in
12861# config.status. Protect against being in an unquoted here document
12862# in config.status.
12863rm -f conftest.defines conftest.undefs
12864# Using a here document instead of a string reduces the quoting nightmare.
12865# Putting comments in sed scripts is not portable.
12866#
12867# `end' is used to avoid that the second main sed command (meant for
12868# 0-ary CPP macros) applies to n-ary macro definitions.
12869# See the Autoconf documentation for `clear'.
12870cat >confdef2sed.sed <<\_ACEOF
12871s/[\\&,]/\\&/g
12872s,[\\$`],\\&,g
12873t clear
12874: clear
12875s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12876t end
12877s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12878: end
12879_ACEOF
12880# If some macros were called several times there might be several times
12881# the same #defines, which is useless. Nevertheless, we may not want to
12882# sort them, since we want the *last* AC-DEFINE to be honored.
12883uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12884sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12885rm -f confdef2sed.sed
252b5132
RH
12886
12887# This sed command replaces #undef with comments. This is necessary, for
12888# example, in the case of _POSIX_SOURCE, which is predefined and required
12889# on some systems where configure will not decide to define it.
979273e3
NN
12890cat >>conftest.undefs <<\_ACEOF
12891s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12892_ACEOF
12893
12894# Break up conftest.defines because some shells have a limit on the size
12895# of here documents, and old seds have small limits too (100 cmds).
12896echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12897echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12898echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12899echo ' :' >>$CONFIG_STATUS
12900rm -f conftest.tail
12901while grep . conftest.defines >/dev/null
12902do
12903 # Write a limited-size here document to $tmp/defines.sed.
12904 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12905 # Speed up: don't consider the non `#define' lines.
12906 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12907 # Work around the forget-to-reset-the-flag bug.
12908 echo 't clr' >>$CONFIG_STATUS
12909 echo ': clr' >>$CONFIG_STATUS
12910 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12911 echo 'CEOF
12912 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12913 rm -f $tmp/in
12914 mv $tmp/out $tmp/in
12915' >>$CONFIG_STATUS
12916 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12917 rm -f conftest.defines
12918 mv conftest.tail conftest.defines
12919done
12920rm -f conftest.defines
12921echo ' fi # grep' >>$CONFIG_STATUS
12922echo >>$CONFIG_STATUS
252b5132 12923
979273e3
NN
12924# Break up conftest.undefs because some shells have a limit on the size
12925# of here documents, and old seds have small limits too (100 cmds).
12926echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 12927rm -f conftest.tail
979273e3 12928while grep . conftest.undefs >/dev/null
252b5132 12929do
979273e3
NN
12930 # Write a limited-size here document to $tmp/undefs.sed.
12931 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12932 # Speed up: don't consider the non `#undef'
12933 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12934 # Work around the forget-to-reset-the-flag bug.
12935 echo 't clr' >>$CONFIG_STATUS
12936 echo ': clr' >>$CONFIG_STATUS
12937 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 12938 echo 'CEOF
979273e3
NN
12939 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12940 rm -f $tmp/in
12941 mv $tmp/out $tmp/in
12942' >>$CONFIG_STATUS
12943 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12944 rm -f conftest.undefs
12945 mv conftest.tail conftest.undefs
252b5132 12946done
979273e3
NN
12947rm -f conftest.undefs
12948
12949cat >>$CONFIG_STATUS <<\_ACEOF
12950 # Let's still pretend it is `configure' which instantiates (i.e., don't
12951 # use $as_me), people would be surprised to read:
12952 # /* config.h. Generated by config.status. */
12953 if test x"$ac_file" = x-; then
12954 echo "/* Generated by configure. */" >$tmp/config.h
12955 else
12956 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12957 fi
12958 cat $tmp/in >>$tmp/config.h
12959 rm -f $tmp/in
12960 if test x"$ac_file" != x-; then
12961 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12962 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12963echo "$as_me: $ac_file is unchanged" >&6;}
12964 else
12965 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12966$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12967 X"$ac_file" : 'X\(//\)[^/]' \| \
12968 X"$ac_file" : 'X\(//\)$' \| \
12969 X"$ac_file" : 'X\(/\)' \| \
12970 . : '\(.\)' 2>/dev/null ||
12971echo X"$ac_file" |
12972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12974 /^X\(\/\/\)$/{ s//\1/; q; }
12975 /^X\(\/\).*/{ s//\1/; q; }
12976 s/.*/./; q'`
12977 { if $as_mkdir_p; then
12978 mkdir -p "$ac_dir"
252b5132 12979 else
979273e3
NN
12980 as_dir="$ac_dir"
12981 as_dirs=
12982 while test ! -d "$as_dir"; do
12983 as_dirs="$as_dir $as_dirs"
12984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12985$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12986 X"$as_dir" : 'X\(//\)[^/]' \| \
12987 X"$as_dir" : 'X\(//\)$' \| \
12988 X"$as_dir" : 'X\(/\)' \| \
12989 . : '\(.\)' 2>/dev/null ||
12990echo X"$as_dir" |
12991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12993 /^X\(\/\/\)$/{ s//\1/; q; }
12994 /^X\(\/\).*/{ s//\1/; q; }
12995 s/.*/./; q'`
12996 done
12997 test ! -n "$as_dirs" || mkdir $as_dirs
12998 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12999echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13000 { (exit 1); exit 1; }; }; }
13001
13002 rm -f $ac_file
13003 mv $tmp/config.h $ac_file
252b5132 13004 fi
979273e3
NN
13005 else
13006 cat $tmp/config.h
13007 rm -f $tmp/config.h
252b5132 13008 fi
8ae85421
AM
13009# Compute $ac_file's index in $config_headers.
13010_am_stamp_count=1
13011for _am_header in $config_headers :; do
13012 case $_am_header in
13013 $ac_file | $ac_file:* )
13014 break ;;
13015 * )
13016 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13017 esac
13018done
13019echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13020$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13021 X$ac_file : 'X\(//\)[^/]' \| \
13022 X$ac_file : 'X\(//\)$' \| \
13023 X$ac_file : 'X\(/\)' \| \
13024 . : '\(.\)' 2>/dev/null ||
13025echo X$ac_file |
13026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13028 /^X\(\/\/\)$/{ s//\1/; q; }
13029 /^X\(\/\).*/{ s//\1/; q; }
13030 s/.*/./; q'`/stamp-h$_am_stamp_count
979273e3
NN
13031done
13032_ACEOF
13033cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13034
979273e3
NN
13035#
13036# CONFIG_COMMANDS section.
13037#
13038for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13039 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13040 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13041 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13042$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13043 X"$ac_dest" : 'X\(//\)[^/]' \| \
13044 X"$ac_dest" : 'X\(//\)$' \| \
13045 X"$ac_dest" : 'X\(/\)' \| \
13046 . : '\(.\)' 2>/dev/null ||
13047echo X"$ac_dest" |
13048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13049 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13050 /^X\(\/\/\)$/{ s//\1/; q; }
13051 /^X\(\/\).*/{ s//\1/; q; }
13052 s/.*/./; q'`
13053 { if $as_mkdir_p; then
13054 mkdir -p "$ac_dir"
13055 else
13056 as_dir="$ac_dir"
13057 as_dirs=
13058 while test ! -d "$as_dir"; do
13059 as_dirs="$as_dir $as_dirs"
13060 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13062 X"$as_dir" : 'X\(//\)[^/]' \| \
13063 X"$as_dir" : 'X\(//\)$' \| \
13064 X"$as_dir" : 'X\(/\)' \| \
13065 . : '\(.\)' 2>/dev/null ||
13066echo X"$as_dir" |
13067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13069 /^X\(\/\/\)$/{ s//\1/; q; }
13070 /^X\(\/\).*/{ s//\1/; q; }
13071 s/.*/./; q'`
13072 done
13073 test ! -n "$as_dirs" || mkdir $as_dirs
13074 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13075echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13076 { (exit 1); exit 1; }; }; }
252b5132 13077
979273e3 13078 ac_builddir=.
252b5132 13079
979273e3
NN
13080if test "$ac_dir" != .; then
13081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13082 # A "../" for each directory in $ac_dir_suffix.
13083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13084else
13085 ac_dir_suffix= ac_top_builddir=
13086fi
13087
13088case $srcdir in
13089 .) # No --srcdir option. We are building in place.
13090 ac_srcdir=.
13091 if test -z "$ac_top_builddir"; then
13092 ac_top_srcdir=.
13093 else
13094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13095 fi ;;
13096 [\\/]* | ?:[\\/]* ) # Absolute path.
13097 ac_srcdir=$srcdir$ac_dir_suffix;
13098 ac_top_srcdir=$srcdir ;;
13099 *) # Relative path.
13100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13102esac
13103
13104# Do not use `cd foo && pwd` to compute absolute paths, because
13105# the directories may not exist.
13106case `pwd` in
13107.) ac_abs_builddir="$ac_dir";;
13108*)
13109 case "$ac_dir" in
13110 .) ac_abs_builddir=`pwd`;;
13111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13113 esac;;
13114esac
13115case $ac_abs_builddir in
13116.) ac_abs_top_builddir=${ac_top_builddir}.;;
13117*)
13118 case ${ac_top_builddir}. in
13119 .) ac_abs_top_builddir=$ac_abs_builddir;;
13120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13122 esac;;
13123esac
13124case $ac_abs_builddir in
13125.) ac_abs_srcdir=$ac_srcdir;;
13126*)
13127 case $ac_srcdir in
13128 .) ac_abs_srcdir=$ac_abs_builddir;;
13129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13131 esac;;
13132esac
13133case $ac_abs_builddir in
13134.) ac_abs_top_srcdir=$ac_top_srcdir;;
13135*)
13136 case $ac_top_srcdir in
13137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13140 esac;;
13141esac
13142
13143
13144 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13145echo "$as_me: executing $ac_dest commands" >&6;}
13146 case $ac_dest in
8ae85421
AM
13147 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13148 # Strip MF so we end up with the name of the file.
13149 mf=`echo "$mf" | sed -e 's/:.*$//'`
13150 # Check whether this is an Automake generated Makefile or not.
13151 # We used to match only the files named `Makefile.in', but
13152 # some people rename them; so instead we look at the file content.
13153 # Grep'ing the first line is not enough: some people post-process
13154 # each Makefile.in and add a new line on top of each file to say so.
13155 # So let's grep whole file.
13156 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13157 dirpart=`(dirname "$mf") 2>/dev/null ||
13158$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13159 X"$mf" : 'X\(//\)[^/]' \| \
13160 X"$mf" : 'X\(//\)$' \| \
13161 X"$mf" : 'X\(/\)' \| \
13162 . : '\(.\)' 2>/dev/null ||
13163echo X"$mf" |
13164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13166 /^X\(\/\/\)$/{ s//\1/; q; }
13167 /^X\(\/\).*/{ s//\1/; q; }
13168 s/.*/./; q'`
13169 else
13170 continue
13171 fi
13172 # Extract the definition of DEPDIR, am__include, and am__quote
13173 # from the Makefile without running `make'.
13174 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13175 test -z "$DEPDIR" && continue
13176 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13177 test -z "am__include" && continue
13178 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13179 # When using ansi2knr, U may be empty or an underscore; expand it
13180 U=`sed -n 's/^U = //p' < "$mf"`
13181 # Find all dependency output files, they are included files with
13182 # $(DEPDIR) in their names. We invoke sed twice because it is the
13183 # simplest approach to changing $(DEPDIR) to its actual value in the
13184 # expansion.
13185 for file in `sed -n "
13186 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13187 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13188 # Make sure the directory exists.
13189 test -f "$dirpart/$file" && continue
13190 fdir=`(dirname "$file") 2>/dev/null ||
13191$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13192 X"$file" : 'X\(//\)[^/]' \| \
13193 X"$file" : 'X\(//\)$' \| \
13194 X"$file" : 'X\(/\)' \| \
13195 . : '\(.\)' 2>/dev/null ||
13196echo X"$file" |
13197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13199 /^X\(\/\/\)$/{ s//\1/; q; }
13200 /^X\(\/\).*/{ s//\1/; q; }
13201 s/.*/./; q'`
13202 { if $as_mkdir_p; then
13203 mkdir -p $dirpart/$fdir
13204 else
13205 as_dir=$dirpart/$fdir
13206 as_dirs=
13207 while test ! -d "$as_dir"; do
13208 as_dirs="$as_dir $as_dirs"
13209 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13210$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13211 X"$as_dir" : 'X\(//\)[^/]' \| \
13212 X"$as_dir" : 'X\(//\)$' \| \
13213 X"$as_dir" : 'X\(/\)' \| \
13214 . : '\(.\)' 2>/dev/null ||
13215echo X"$as_dir" |
13216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13218 /^X\(\/\/\)$/{ s//\1/; q; }
13219 /^X\(\/\).*/{ s//\1/; q; }
13220 s/.*/./; q'`
13221 done
13222 test ! -n "$as_dirs" || mkdir $as_dirs
13223 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13224echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13225 { (exit 1); exit 1; }; }; }
13226
13227 # echo "creating $dirpart/$file"
13228 echo '# dummy' > "$dirpart/$file"
13229 done
13230done
d7040cdb
SE
13231 ;;
13232 libtool )
13233
13234 # See if we are running on zsh, and set the options which allow our
13235 # commands through without removal of \ escapes.
13236 if test -n "${ZSH_VERSION+set}" ; then
13237 setopt NO_GLOB_SUBST
13238 fi
13239
13240 cfgfile="${ofile}T"
13241 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13242 $RM "$cfgfile"
13243
13244 cat <<_LT_EOF >> "$cfgfile"
13245#! $SHELL
13246
13247# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13248# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13249# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13250# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13251#
13252# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13253# 2006, 2007 Free Software Foundation, Inc.
13254#
13255# This file is part of GNU Libtool:
13256# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13257#
13258# This program is free software; you can redistribute it and/or modify
13259# it under the terms of the GNU General Public License as published by
13260# the Free Software Foundation; either version 2 of the License, or
13261# (at your option) any later version.
13262#
13263# This program is distributed in the hope that it will be useful, but
13264# WITHOUT ANY WARRANTY; without even the implied warranty of
13265# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13266# General Public License for more details.
13267#
13268# You should have received a copy of the GNU General Public License
13269# along with this program; if not, a copy can be downloaded from
13270# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13271# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13272# MA 02110-1301, USA.
13273#
13274# As a special exception to the GNU General Public License, if you
13275# distribute this file as part of a program that contains a
13276# configuration script generated by Autoconf, you may include it under
13277# the same distribution terms that you use for the rest of that program.
13278
13279
13280# The names of the tagged configurations supported by this script.
13281available_tags=""
13282
13283# ### BEGIN LIBTOOL CONFIG
13284
13285# Whether or not to build shared libraries.
13286build_libtool_libs=$enable_shared
13287
13288# Which release of libtool.m4 was used?
13289macro_version=$macro_version
13290macro_revision=$macro_revision
13291
13292# Whether or not to build static libraries.
13293build_old_libs=$enable_static
13294
13295# What type of objects to build.
13296pic_mode=$pic_mode
13297
13298# Whether or not to optimize for fast installation.
13299fast_install=$enable_fast_install
13300
13301# The host system.
13302host_alias=$host_alias
13303host=$host
13304host_os=$host_os
13305
13306# The build system.
13307build_alias=$build_alias
13308build=$build
13309build_os=$build_os
13310
13311# A sed program that does not truncate output.
13312SED=$lt_SED
13313
13314# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13315Xsed="\$SED -e 1s/^X//"
13316
13317# A grep program that handles long lines.
13318GREP=$lt_GREP
13319
13320# An ERE matcher.
13321EGREP=$lt_EGREP
13322
13323# A literal string matcher.
13324FGREP=$lt_FGREP
13325
13326# A BSD- or MS-compatible name lister.
13327NM=$lt_NM
13328
13329# Whether we need soft or hard links.
13330LN_S=$lt_LN_S
13331
13332# What is the maximum length of a command?
13333max_cmd_len=$max_cmd_len
13334
13335# Object file suffix (normally "o").
13336objext=$ac_objext
13337
13338# Executable file suffix (normally "").
13339exeext=$exeext
13340
13341# whether the shell understands "unset".
13342lt_unset=$lt_unset
13343
13344# turn spaces into newlines.
13345SP2NL=$lt_lt_SP2NL
13346
13347# turn newlines into spaces.
13348NL2SP=$lt_lt_NL2SP
13349
13350# How to create reloadable object files.
13351reload_flag=$lt_reload_flag
13352reload_cmds=$lt_reload_cmds
13353
13354# Method to check whether dependent libraries are shared objects.
13355deplibs_check_method=$lt_deplibs_check_method
13356
13357# Command to use when deplibs_check_method == "file_magic".
13358file_magic_cmd=$lt_file_magic_cmd
13359
13360# The archiver.
13361AR=$lt_AR
13362AR_FLAGS=$lt_AR_FLAGS
13363
13364# A symbol stripping program.
13365STRIP=$lt_STRIP
13366
13367# Commands used to install an old-style archive.
13368RANLIB=$lt_RANLIB
13369old_postinstall_cmds=$lt_old_postinstall_cmds
13370old_postuninstall_cmds=$lt_old_postuninstall_cmds
13371
13372# A C compiler.
13373LTCC=$lt_CC
13374
13375# LTCC compiler flags.
13376LTCFLAGS=$lt_CFLAGS
13377
13378# Take the output of nm and produce a listing of raw symbols and C names.
13379global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13380
13381# Transform the output of nm in a proper C declaration.
13382global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13383
13384# Transform the output of nm in a C name address pair.
13385global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13386
13387# The name of the directory that contains temporary libtool files.
13388objdir=$objdir
13389
13390# Shell to use when invoking shell scripts.
13391SHELL=$lt_SHELL
13392
13393# An echo program that does not interpret backslashes.
13394ECHO=$lt_ECHO
13395
13396# Used to examine libraries when file_magic_cmd begins with "file".
13397MAGIC_CMD=$MAGIC_CMD
13398
13399# Must we lock files when doing compilation?
13400need_locks=$lt_need_locks
13401
13402# Old archive suffix (normally "a").
13403libext=$libext
13404
13405# Shared library suffix (normally ".so").
13406shrext_cmds=$lt_shrext_cmds
13407
13408# The commands to extract the exported symbol list from a shared archive.
13409extract_expsyms_cmds=$lt_extract_expsyms_cmds
13410
13411# Variables whose values should be saved in libtool wrapper scripts and
13412# restored at link time.
13413variables_saved_for_relink=$lt_variables_saved_for_relink
13414
13415# Do we need the "lib" prefix for modules?
13416need_lib_prefix=$need_lib_prefix
13417
13418# Do we need a version for libraries?
13419need_version=$need_version
13420
13421# Library versioning type.
13422version_type=$version_type
13423
13424# Shared library runtime path variable.
13425runpath_var=$runpath_var
13426
13427# Shared library path variable.
13428shlibpath_var=$shlibpath_var
13429
13430# Is shlibpath searched before the hard-coded library search path?
13431shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13432
13433# Format of library name prefix.
13434libname_spec=$lt_libname_spec
13435
13436# List of archive names. First name is the real one, the rest are links.
13437# The last name is the one that the linker finds with -lNAME
13438library_names_spec=$lt_library_names_spec
13439
13440# The coded name of the library, if different from the real name.
13441soname_spec=$lt_soname_spec
13442
13443# Command to use after installation of a shared archive.
13444postinstall_cmds=$lt_postinstall_cmds
13445
13446# Command to use after uninstallation of a shared archive.
13447postuninstall_cmds=$lt_postuninstall_cmds
13448
13449# Commands used to finish a libtool library installation in a directory.
13450finish_cmds=$lt_finish_cmds
13451
13452# As "finish_cmds", except a single script fragment to be evaled but
13453# not shown.
13454finish_eval=$lt_finish_eval
13455
13456# Whether we should hardcode library paths into libraries.
13457hardcode_into_libs=$hardcode_into_libs
13458
13459# Compile-time system search path for libraries.
13460sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13461
13462# Run-time system search path for libraries.
13463sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13464
13465# Whether dlopen is supported.
13466dlopen_support=$enable_dlopen
13467
13468# Whether dlopen of programs is supported.
13469dlopen_self=$enable_dlopen_self
13470
13471# Whether dlopen of statically linked programs is supported.
13472dlopen_self_static=$enable_dlopen_self_static
13473
13474# Commands to strip libraries.
13475old_striplib=$lt_old_striplib
13476striplib=$lt_striplib
13477
13478
13479# The linker used to build libraries.
13480LD=$lt_LD
13481
13482# Commands used to build an old-style archive.
13483old_archive_cmds=$lt_old_archive_cmds
13484
13485# A language specific compiler.
13486CC=$lt_compiler
13487
13488# Is the compiler the GNU compiler?
13489with_gcc=$GCC
13490
13491# Compiler flag to turn off builtin functions.
13492no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13493
13494# How to pass a linker flag through the compiler.
13495wl=$lt_lt_prog_compiler_wl
13496
13497# Additional compiler flags for building library objects.
13498pic_flag=$lt_lt_prog_compiler_pic
13499
13500# Compiler flag to prevent dynamic linking.
13501link_static_flag=$lt_lt_prog_compiler_static
13502
13503# Does compiler simultaneously support -c and -o options?
13504compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13505
13506# Whether or not to add -lc for building shared libraries.
13507build_libtool_need_lc=$archive_cmds_need_lc
13508
13509# Whether or not to disallow shared libs when runtime libs are static.
13510allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13511
13512# Compiler flag to allow reflexive dlopens.
13513export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13514
13515# Compiler flag to generate shared objects directly from archives.
13516whole_archive_flag_spec=$lt_whole_archive_flag_spec
13517
13518# Whether the compiler copes with passing no objects directly.
13519compiler_needs_object=$lt_compiler_needs_object
13520
13521# Create an old-style archive from a shared archive.
13522old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13523
13524# Create a temporary old-style archive to link instead of a shared archive.
13525old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13526
13527# Commands used to build a shared archive.
13528archive_cmds=$lt_archive_cmds
13529archive_expsym_cmds=$lt_archive_expsym_cmds
13530
13531# Commands used to build a loadable module if different from building
13532# a shared archive.
13533module_cmds=$lt_module_cmds
13534module_expsym_cmds=$lt_module_expsym_cmds
13535
13536# Whether we are building with GNU ld or not.
13537with_gnu_ld=$lt_with_gnu_ld
13538
13539# Flag that allows shared libraries with undefined symbols to be built.
13540allow_undefined_flag=$lt_allow_undefined_flag
13541
13542# Flag that enforces no undefined symbols.
13543no_undefined_flag=$lt_no_undefined_flag
13544
13545# Flag to hardcode \$libdir into a binary during linking.
13546# This must work even if \$libdir does not exist
13547hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13548
13549# If ld is used when linking, flag to hardcode \$libdir into a binary
13550# during linking. This must work even if \$libdir does not exist.
13551hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13552
13553# Whether we need a single "-rpath" flag with a separated argument.
13554hardcode_libdir_separator=$lt_hardcode_libdir_separator
13555
13556# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13557# DIR into the resulting binary.
13558hardcode_direct=$hardcode_direct
13559
13560# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13561# DIR into the resulting binary and the resulting library dependency is
13562# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13563# library is relocated.
13564hardcode_direct_absolute=$hardcode_direct_absolute
13565
13566# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13567# into the resulting binary.
13568hardcode_minus_L=$hardcode_minus_L
13569
13570# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13571# into the resulting binary.
13572hardcode_shlibpath_var=$hardcode_shlibpath_var
13573
13574# Set to "yes" if building a shared library automatically hardcodes DIR
13575# into the library and all subsequent libraries and executables linked
13576# against it.
13577hardcode_automatic=$hardcode_automatic
13578
13579# Set to yes if linker adds runtime paths of dependent libraries
13580# to runtime path list.
13581inherit_rpath=$inherit_rpath
13582
13583# Whether libtool must link a program against all its dependency libraries.
13584link_all_deplibs=$link_all_deplibs
13585
13586# Fix the shell variable \$srcfile for the compiler.
13587fix_srcfile_path=$lt_fix_srcfile_path
13588
13589# Set to "yes" if exported symbols are required.
13590always_export_symbols=$always_export_symbols
13591
13592# The commands to list exported symbols.
13593export_symbols_cmds=$lt_export_symbols_cmds
13594
13595# Symbols that should not be listed in the preloaded symbols.
13596exclude_expsyms=$lt_exclude_expsyms
13597
13598# Symbols that must always be exported.
13599include_expsyms=$lt_include_expsyms
13600
13601# Commands necessary for linking programs (against libraries) with templates.
13602prelink_cmds=$lt_prelink_cmds
13603
13604# Specify filename containing input files.
13605file_list_spec=$lt_file_list_spec
13606
13607# How to hardcode a shared library path into an executable.
13608hardcode_action=$hardcode_action
13609
13610# ### END LIBTOOL CONFIG
13611
13612_LT_EOF
13613
13614 case $host_os in
13615 aix3*)
13616 cat <<\_LT_EOF >> "$cfgfile"
13617# AIX sometimes has problems with the GCC collect2 program. For some
13618# reason, if we set the COLLECT_NAMES environment variable, the problems
13619# vanish in a puff of smoke.
13620if test "X${COLLECT_NAMES+set}" != Xset; then
13621 COLLECT_NAMES=
13622 export COLLECT_NAMES
13623fi
13624_LT_EOF
13625 ;;
13626 esac
13627
13628
13629ltmain="$ac_aux_dir/ltmain.sh"
13630
13631
13632 # We use sed instead of cat because bash on DJGPP gets confused if
13633 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13634 # text mode, it properly converts lines to CR/LF. This bash problem
13635 # is reportedly fixed, but why not run on old versions too?
13636 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13637 || (rm -f "$cfgfile"; exit 1)
13638
13639 case $xsi_shell in
13640 yes)
13641 cat << \_LT_EOF >> "$cfgfile"
13642# func_dirname file append nondir_replacement
13643# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13644# otherwise set result to NONDIR_REPLACEMENT.
13645func_dirname ()
13646{
13647 case ${1} in
13648 */*) func_dirname_result="${1%/*}${2}" ;;
13649 * ) func_dirname_result="${3}" ;;
13650 esac
13651}
13652
13653# func_basename file
13654func_basename ()
13655{
13656 func_basename_result="${1##*/}"
13657}
13658
13659# func_stripname prefix suffix name
13660# strip PREFIX and SUFFIX off of NAME.
13661# PREFIX and SUFFIX must not contain globbing or regex special
13662# characters, hashes, percent signs, but SUFFIX may contain a leading
13663# dot (in which case that matches only a dot).
13664func_stripname ()
13665{
13666 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13667 # positional parameters, so assign one to ordinary parameter first.
13668 func_stripname_result=${3}
13669 func_stripname_result=${func_stripname_result#"${1}"}
13670 func_stripname_result=${func_stripname_result%"${2}"}
13671}
13672
13673# func_opt_split
13674func_opt_split ()
13675{
13676 func_opt_split_opt=${1%%=*}
13677 func_opt_split_arg=${1#*=}
13678}
13679
13680# func_lo2o object
13681func_lo2o ()
13682{
13683 case ${1} in
13684 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13685 *) func_lo2o_result=${1} ;;
13686 esac
13687}
13688_LT_EOF
13689 ;;
13690 *) # Bourne compatible functions.
13691 cat << \_LT_EOF >> "$cfgfile"
13692# func_dirname file append nondir_replacement
13693# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13694# otherwise set result to NONDIR_REPLACEMENT.
13695func_dirname ()
13696{
13697 # Extract subdirectory from the argument.
13698 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13699 if test "X$func_dirname_result" = "X${1}"; then
13700 func_dirname_result="${3}"
13701 else
13702 func_dirname_result="$func_dirname_result${2}"
13703 fi
13704}
13705
13706# func_basename file
13707func_basename ()
13708{
13709 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13710}
13711
13712# func_stripname prefix suffix name
13713# strip PREFIX and SUFFIX off of NAME.
13714# PREFIX and SUFFIX must not contain globbing or regex special
13715# characters, hashes, percent signs, but SUFFIX may contain a leading
13716# dot (in which case that matches only a dot).
13717# func_strip_suffix prefix name
13718func_stripname ()
13719{
13720 case ${2} in
13721 .*) func_stripname_result=`$ECHO "X${3}" \
13722 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13723 *) func_stripname_result=`$ECHO "X${3}" \
13724 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13725 esac
13726}
13727
13728# sed scripts:
13729my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13730my_sed_long_arg='1s/^-[^=]*=//'
13731
13732# func_opt_split
13733func_opt_split ()
13734{
13735 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13736 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13737}
13738
13739# func_lo2o object
13740func_lo2o ()
13741{
13742 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13743}
13744_LT_EOF
13745esac
13746
13747case $lt_shell_append in
13748 yes)
13749 cat << \_LT_EOF >> "$cfgfile"
13750
13751# func_append var value
13752# Append VALUE to the end of shell variable VAR.
13753func_append ()
13754{
13755 eval "$1+=\$2"
13756}
13757_LT_EOF
13758 ;;
13759 *)
13760 cat << \_LT_EOF >> "$cfgfile"
13761
13762# func_append var value
13763# Append VALUE to the end of shell variable VAR.
13764func_append ()
13765{
13766 eval "$1=\$$1\$2"
13767}
13768_LT_EOF
13769 ;;
13770 esac
13771
13772
13773 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13774 || (rm -f "$cfgfile"; exit 1)
13775
13776 mv -f "$cfgfile" "$ofile" ||
13777 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13778 chmod +x "$ofile"
13779
8ae85421 13780 ;;
20e95c23
DJ
13781 default-1 )
13782 for ac_file in $CONFIG_FILES; do
13783 # Support "outfile[:infile[:infile...]]"
13784 case "$ac_file" in
13785 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13786 esac
13787 # PO directories have a Makefile.in generated from Makefile.in.in.
13788 case "$ac_file" in */Makefile.in)
13789 # Adjust a relative srcdir.
13790 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13791 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13792 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13793 # In autoconf-2.13 it is called $ac_given_srcdir.
13794 # In autoconf-2.50 it is called $srcdir.
13795 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13796 case "$ac_given_srcdir" in
13797 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13798 /*) top_srcdir="$ac_given_srcdir" ;;
13799 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13800 esac
13801 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13802 rm -f "$ac_dir/POTFILES"
13803 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13804 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13805 POMAKEFILEDEPS="POTFILES.in"
13806 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13807 # on $ac_dir but don't depend on user-specified configuration
13808 # parameters.
13809 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13810 # The LINGUAS file contains the set of available languages.
13811 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13812 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13813 fi
13814 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13815 # Hide the ALL_LINGUAS assigment from automake.
13816 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13817 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13818 else
13819 # The set of available languages was given in configure.in.
13820 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13821 fi
13822 case "$ac_given_srcdir" in
13823 .) srcdirpre= ;;
13824 *) srcdirpre='$(srcdir)/' ;;
13825 esac
13826 POFILES=
13827 GMOFILES=
13828 UPDATEPOFILES=
13829 DUMMYPOFILES=
13830 for lang in $ALL_LINGUAS; do
13831 POFILES="$POFILES $srcdirpre$lang.po"
13832 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13833 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13834 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13835 done
13836 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13837 # environment variable.
13838 INST_LINGUAS=
13839 if test -n "$ALL_LINGUAS"; then
13840 for presentlang in $ALL_LINGUAS; do
13841 useit=no
13842 if test "%UNSET%" != "$LINGUAS"; then
13843 desiredlanguages="$LINGUAS"
13844 else
13845 desiredlanguages="$ALL_LINGUAS"
13846 fi
13847 for desiredlang in $desiredlanguages; do
13848 # Use the presentlang catalog if desiredlang is
13849 # a. equal to presentlang, or
13850 # b. a variant of presentlang (because in this case,
13851 # presentlang can be used as a fallback for messages
13852 # which are not translated in the desiredlang catalog).
13853 case "$desiredlang" in
13854 "$presentlang"*) useit=yes;;
13855 esac
13856 done
13857 if test $useit = yes; then
13858 INST_LINGUAS="$INST_LINGUAS $presentlang"
13859 fi
13860 done
13861 fi
13862 CATALOGS=
13863 if test -n "$INST_LINGUAS"; then
13864 for lang in $INST_LINGUAS; do
13865 CATALOGS="$CATALOGS $lang.gmo"
13866 done
13867 fi
13868 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13869 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"
13870 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13871 if test -f "$f"; then
13872 case "$f" in
13873 *.orig | *.bak | *~) ;;
13874 *) cat "$f" >> "$ac_dir/Makefile" ;;
13875 esac
13876 fi
13877 done
13878 fi
13879 ;;
13880 esac
13881 done ;;
979273e3
NN
13882 esac
13883done
13884_ACEOF
13885
13886cat >>$CONFIG_STATUS <<\_ACEOF
13887
13888{ (exit 0); exit 0; }
13889_ACEOF
252b5132 13890chmod +x $CONFIG_STATUS
979273e3
NN
13891ac_clean_files=$ac_clean_files_save
13892
13893
13894# configure is writing to config.log, and then calls config.status.
13895# config.status does its own redirection, appending to config.log.
13896# Unfortunately, on DOS this fails, as config.log is still kept open
13897# by configure, so config.status won't be able to write to it; its
13898# output is simply discarded. So we exec the FD to /dev/null,
13899# effectively closing config.log, so it can be properly (re)opened and
13900# appended to by config.status. When coming back to configure, we
13901# need to make the FD available again.
13902if test "$no_create" != yes; then
13903 ac_cs_success=:
13904 ac_config_status_args=
13905 test "$silent" = yes &&
13906 ac_config_status_args="$ac_config_status_args --quiet"
13907 exec 5>/dev/null
13908 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13909 exec 5>>config.log
13910 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13911 # would make configure fail if this is the last instruction.
13912 $ac_cs_success || { (exit 1); exit 1; }
13913fi
252b5132 13914
This page took 1.330361 seconds and 4 git commands to generate.