bfd/
[deliverable/binutils-gdb.git] / opcodes / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if 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
277 fi
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
283 if 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
381 fi
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.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${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.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="z8k-dis.c"
424 # Factoring default headers for most tests.
425 ac_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
461 ac_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 SHARED_LDFLAGS SHARED_LIBADD SHARED_DEPENDENCIES archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
544
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
553
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
748
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
791 *)
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797 ;;
798
799 esac
800 done
801
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822 do
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875 else
876 ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923
924 #
925 # Report the --help message.
926 #
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
932
933 Usage: $0 [OPTION]... [VAR=VALUE]...
934
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
937
938 Defaults for the options are specified in brackets.
939
940 Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951 _ACEOF
952
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
959
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
964
965 For better control, use the options below.
966
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980 _ACEOF
981
982 cat <<\_ACEOF
983
984 Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
988
989 System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993 _ACEOF
994 fi
995
996 if test -n "$ac_init_help"; then
997
998 cat <<\_ACEOF
999
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
1016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
1018 --enable-install-libbfd controls installation of libbfd and related headers
1019 --disable-nls do not use Native Language Support
1020 --enable-cgen-maint=dir build cgen generated files
1021
1022 Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028
1029 Some influential environment variables:
1030 CC C compiler command
1031 CFLAGS C compiler flags
1032 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1033 nonstandard directory <lib dir>
1034 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1035 headers in a nonstandard directory <include dir>
1036 CPP C preprocessor
1037
1038 Use these variables to override the choices made by `configure' or to help
1039 it to find libraries and programs with nonstandard names/locations.
1040
1041 _ACEOF
1042 fi
1043
1044 if test "$ac_init_help" = "recursive"; then
1045 # If there are subdirs, report their specific --help.
1046 ac_popdir=`pwd`
1047 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1048 test -d $ac_dir || continue
1049 ac_builddir=.
1050
1051 if test "$ac_dir" != .; then
1052 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1053 # A "../" for each directory in $ac_dir_suffix.
1054 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055 else
1056 ac_dir_suffix= ac_top_builddir=
1057 fi
1058
1059 case $srcdir in
1060 .) # No --srcdir option. We are building in place.
1061 ac_srcdir=.
1062 if test -z "$ac_top_builddir"; then
1063 ac_top_srcdir=.
1064 else
1065 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1066 fi ;;
1067 [\\/]* | ?:[\\/]* ) # Absolute path.
1068 ac_srcdir=$srcdir$ac_dir_suffix;
1069 ac_top_srcdir=$srcdir ;;
1070 *) # Relative path.
1071 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1072 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1073 esac
1074
1075 # Do not use `cd foo && pwd` to compute absolute paths, because
1076 # the directories may not exist.
1077 case `pwd` in
1078 .) ac_abs_builddir="$ac_dir";;
1079 *)
1080 case "$ac_dir" in
1081 .) ac_abs_builddir=`pwd`;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1083 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1084 esac;;
1085 esac
1086 case $ac_abs_builddir in
1087 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 *)
1089 case ${ac_top_builddir}. in
1090 .) ac_abs_top_builddir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1092 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1093 esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_srcdir=$ac_srcdir;;
1097 *)
1098 case $ac_srcdir in
1099 .) ac_abs_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1101 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1102 esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 *)
1107 case $ac_top_srcdir in
1108 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1110 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1111 esac;;
1112 esac
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
1129 cd $ac_popdir
1130 done
1131 fi
1132
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135 cat <<\_ACEOF
1136
1137 Copyright (C) 2003 Free Software Foundation, Inc.
1138 This configure script is free software; the Free Software Foundation
1139 gives unlimited permission to copy, distribute and modify it.
1140 _ACEOF
1141 exit 0
1142 fi
1143 exec 5>config.log
1144 cat >&5 <<_ACEOF
1145 This file contains any messages produced by compilers while
1146 running configure, to aid debugging if configure makes a mistake.
1147
1148 It was created by $as_me, which was
1149 generated by GNU Autoconf 2.59. Invocation command line was
1150
1151 $ $0 $@
1152
1153 _ACEOF
1154 {
1155 cat <<_ASUNAME
1156 ## --------- ##
1157 ## Platform. ##
1158 ## --------- ##
1159
1160 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165
1166 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168
1169 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1170 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1171 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1172 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1173 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1174 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1175 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1176
1177 _ASUNAME
1178
1179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180 for as_dir in $PATH
1181 do
1182 IFS=$as_save_IFS
1183 test -z "$as_dir" && as_dir=.
1184 echo "PATH: $as_dir"
1185 done
1186
1187 } >&5
1188
1189 cat >&5 <<_ACEOF
1190
1191
1192 ## ----------- ##
1193 ## Core tests. ##
1194 ## ----------- ##
1195
1196 _ACEOF
1197
1198
1199 # Keep a trace of the command line.
1200 # Strip out --no-create and --no-recursion so they do not pile up.
1201 # Strip out --silent because we don't want to record it for future runs.
1202 # Also quote any args containing shell meta-characters.
1203 # Make two passes to allow for proper duplicate-argument suppression.
1204 ac_configure_args=
1205 ac_configure_args0=
1206 ac_configure_args1=
1207 ac_sep=
1208 ac_must_keep_next=false
1209 for ac_pass in 1 2
1210 do
1211 for ac_arg
1212 do
1213 case $ac_arg in
1214 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 continue ;;
1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1220 esac
1221 case $ac_pass in
1222 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 2)
1224 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225 if test $ac_must_keep_next = true; then
1226 ac_must_keep_next=false # Got value, back to normal.
1227 else
1228 case $ac_arg in
1229 *=* | --config-cache | -C | -disable-* | --disable-* \
1230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232 | -with-* | --with-* | -without-* | --without-* | --x)
1233 case "$ac_configure_args0 " in
1234 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1235 esac
1236 ;;
1237 -* ) ac_must_keep_next=true ;;
1238 esac
1239 fi
1240 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241 # Get rid of the leading space.
1242 ac_sep=" "
1243 ;;
1244 esac
1245 done
1246 done
1247 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249
1250 # When interrupted or exit'd, cleanup temporary files, and complete
1251 # config.log. We remove comments because anyway the quotes in there
1252 # would cause problems or look ugly.
1253 # WARNING: Be sure not to use single quotes in there, as some shells,
1254 # such as our DU 5.0 friend, will then `close' the trap.
1255 trap 'exit_status=$?
1256 # Save into config.log some information that might help in debugging.
1257 {
1258 echo
1259
1260 cat <<\_ASBOX
1261 ## ---------------- ##
1262 ## Cache variables. ##
1263 ## ---------------- ##
1264 _ASBOX
1265 echo
1266 # The following way of writing the cache mishandles newlines in values,
1267 {
1268 (set) 2>&1 |
1269 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1270 *ac_space=\ *)
1271 sed -n \
1272 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1274 ;;
1275 *)
1276 sed -n \
1277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278 ;;
1279 esac;
1280 }
1281 echo
1282
1283 cat <<\_ASBOX
1284 ## ----------------- ##
1285 ## Output variables. ##
1286 ## ----------------- ##
1287 _ASBOX
1288 echo
1289 for ac_var in $ac_subst_vars
1290 do
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1293 done | sort
1294 echo
1295
1296 if test -n "$ac_subst_files"; then
1297 cat <<\_ASBOX
1298 ## ------------- ##
1299 ## Output files. ##
1300 ## ------------- ##
1301 _ASBOX
1302 echo
1303 for ac_var in $ac_subst_files
1304 do
1305 eval ac_val=$`echo $ac_var`
1306 echo "$ac_var='"'"'$ac_val'"'"'"
1307 done | sort
1308 echo
1309 fi
1310
1311 if test -s confdefs.h; then
1312 cat <<\_ASBOX
1313 ## ----------- ##
1314 ## confdefs.h. ##
1315 ## ----------- ##
1316 _ASBOX
1317 echo
1318 sed "/^$/d" confdefs.h | sort
1319 echo
1320 fi
1321 test "$ac_signal" != 0 &&
1322 echo "$as_me: caught signal $ac_signal"
1323 echo "$as_me: exit $exit_status"
1324 } >&5
1325 rm -f core *.core &&
1326 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1327 exit $exit_status
1328 ' 0
1329 for ac_signal in 1 2 13 15; do
1330 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1331 done
1332 ac_signal=0
1333
1334 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1335 rm -rf conftest* confdefs.h
1336 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1337 echo >confdefs.h
1338
1339 # Predefined preprocessor variables.
1340
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_NAME "$PACKAGE_NAME"
1343 _ACEOF
1344
1345
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1348 _ACEOF
1349
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_STRING "$PACKAGE_STRING"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1363 _ACEOF
1364
1365
1366 # Let the site file select an alternate cache file if it wants to.
1367 # Prefer explicitly selected file to automatically selected ones.
1368 if test -z "$CONFIG_SITE"; then
1369 if test "x$prefix" != xNONE; then
1370 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 else
1372 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373 fi
1374 fi
1375 for ac_site_file in $CONFIG_SITE; do
1376 if test -r "$ac_site_file"; then
1377 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378 echo "$as_me: loading site script $ac_site_file" >&6;}
1379 sed 's/^/| /' "$ac_site_file" >&5
1380 . "$ac_site_file"
1381 fi
1382 done
1383
1384 if test -r "$cache_file"; then
1385 # Some versions of bash will fail to source /dev/null (special
1386 # files actually), so we avoid doing that.
1387 if test -f "$cache_file"; then
1388 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389 echo "$as_me: loading cache $cache_file" >&6;}
1390 case $cache_file in
1391 [\\/]* | ?:[\\/]* ) . $cache_file;;
1392 *) . ./$cache_file;;
1393 esac
1394 fi
1395 else
1396 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397 echo "$as_me: creating cache $cache_file" >&6;}
1398 >$cache_file
1399 fi
1400
1401 # Check that the precious variables saved in the cache have kept the same
1402 # value.
1403 ac_cache_corrupted=false
1404 for ac_var in `(set) 2>&1 |
1405 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407 eval ac_new_set=\$ac_env_${ac_var}_set
1408 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409 eval ac_new_val="\$ac_env_${ac_var}_value"
1410 case $ac_old_set,$ac_new_set in
1411 set,)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,set)
1416 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1418 ac_cache_corrupted=: ;;
1419 ,);;
1420 *)
1421 if test "x$ac_old_val" != "x$ac_new_val"; then
1422 # differences in whitespace do not lead to failure.
1423 ac_old_val_w=`echo x $ac_old_val`
1424 ac_new_val_w=`echo x $ac_new_val`
1425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1426 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1427 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1428 ac_cache_corrupted=:
1429 else
1430 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1431 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1432 eval $ac_var=\$ac_old_val
1433 fi
1434 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1435 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1436 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1437 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1438 fi;;
1439 esac
1440 # Pass precious variables to config.status.
1441 if test "$ac_new_set" = set; then
1442 case $ac_new_val in
1443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445 *) ac_arg=$ac_var=$ac_new_val ;;
1446 esac
1447 case " $ac_configure_args " in
1448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1449 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450 esac
1451 fi
1452 done
1453 if $ac_cache_corrupted; then
1454 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1455 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1456 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1457 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1458 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1459 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1460 { (exit 1); exit 1; }; }
1461 fi
1462
1463 ac_ext=c
1464 ac_cpp='$CPP $CPPFLAGS'
1465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492 ac_aux_dir=
1493 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1494 if test -f $ac_dir/install-sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install-sh -c"
1497 break
1498 elif test -f $ac_dir/install.sh; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/install.sh -c"
1501 break
1502 elif test -f $ac_dir/shtool; then
1503 ac_aux_dir=$ac_dir
1504 ac_install_sh="$ac_aux_dir/shtool install -c"
1505 break
1506 fi
1507 done
1508 if test -z "$ac_aux_dir"; then
1509 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1510 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1511 { (exit 1); exit 1; }; }
1512 fi
1513 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1514 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1515 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1516
1517 # Make sure we can run config.sub.
1518 $ac_config_sub sun4 >/dev/null 2>&1 ||
1519 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1520 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1521 { (exit 1); exit 1; }; }
1522
1523 echo "$as_me:$LINENO: checking build system type" >&5
1524 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1525 if test "${ac_cv_build+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 ac_cv_build_alias=$build_alias
1529 test -z "$ac_cv_build_alias" &&
1530 ac_cv_build_alias=`$ac_config_guess`
1531 test -z "$ac_cv_build_alias" &&
1532 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1533 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1534 { (exit 1); exit 1; }; }
1535 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1536 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1537 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1538 { (exit 1); exit 1; }; }
1539
1540 fi
1541 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1542 echo "${ECHO_T}$ac_cv_build" >&6
1543 build=$ac_cv_build
1544 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
1548
1549 echo "$as_me:$LINENO: checking host system type" >&5
1550 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1551 if test "${ac_cv_host+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554 ac_cv_host_alias=$host_alias
1555 test -z "$ac_cv_host_alias" &&
1556 ac_cv_host_alias=$ac_cv_build_alias
1557 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1559 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1560 { (exit 1); exit 1; }; }
1561
1562 fi
1563 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1564 echo "${ECHO_T}$ac_cv_host" >&6
1565 host=$ac_cv_host
1566 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571 echo "$as_me:$LINENO: checking target system type" >&5
1572 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1573 if test "${ac_cv_target+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576 ac_cv_target_alias=$target_alias
1577 test "x$ac_cv_target_alias" = "x" &&
1578 ac_cv_target_alias=$ac_cv_host_alias
1579 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1581 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584 fi
1585 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1586 echo "${ECHO_T}$ac_cv_target" >&6
1587 target=$ac_cv_target
1588 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593 # The aliases save the names the user supplied, while $host etc.
1594 # will get canonicalized.
1595 test -n "$target_alias" &&
1596 test "$program_prefix$program_suffix$program_transform_name" = \
1597 NONENONEs,x,x, &&
1598 program_prefix=${target_alias}-
1599 ac_ext=c
1600 ac_cpp='$CPP $CPPFLAGS'
1601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1604 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 CC=$ac_cv_prog_CC
1632 if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1635 else
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640 fi
1641 if test -z "$ac_cv_prog_CC"; then
1642 ac_ct_CC=$CC
1643 # Extract the first word of "gcc", so it can be a program name with args.
1644 set dummy gcc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="gcc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1663 fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678 CC=$ac_ct_CC
1679 else
1680 CC="$ac_cv_prog_CC"
1681 fi
1682
1683 if test -z "$CC"; then
1684 if test -n "$ac_tool_prefix"; then
1685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1686 set dummy ${ac_tool_prefix}cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698 IFS=$as_save_IFS
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_CC="${ac_tool_prefix}cc"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 break 2
1705 fi
1706 done
1707 done
1708
1709 fi
1710 fi
1711 CC=$ac_cv_prog_CC
1712 if test -n "$CC"; then
1713 echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6
1715 else
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1718 fi
1719
1720 fi
1721 if test -z "$ac_cv_prog_CC"; then
1722 ac_ct_CC=$CC
1723 # Extract the first word of "cc", so it can be a program name with args.
1724 set dummy cc; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1735 do
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="cc"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1743 fi
1744 done
1745 done
1746
1747 fi
1748 fi
1749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1753 else
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758 CC=$ac_ct_CC
1759 else
1760 CC="$ac_cv_prog_CC"
1761 fi
1762
1763 fi
1764 if test -z "$CC"; then
1765 # Extract the first word of "cc", so it can be a program name with args.
1766 set dummy cc; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 else
1775 ac_prog_rejected=no
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1778 do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1784 ac_prog_rejected=yes
1785 continue
1786 fi
1787 ac_cv_prog_CC="cc"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 break 2
1790 fi
1791 done
1792 done
1793
1794 if test $ac_prog_rejected = yes; then
1795 # We found a bogon in the path, so make sure we never use it.
1796 set dummy $ac_cv_prog_CC
1797 shift
1798 if test $# != 0; then
1799 # We chose a different compiler from the bogus one.
1800 # However, it has the same basename, so the bogon will be chosen
1801 # first if we set CC to just the basename; use the full file name.
1802 shift
1803 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1804 fi
1805 fi
1806 fi
1807 fi
1808 CC=$ac_cv_prog_CC
1809 if test -n "$CC"; then
1810 echo "$as_me:$LINENO: result: $CC" >&5
1811 echo "${ECHO_T}$CC" >&6
1812 else
1813 echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1815 fi
1816
1817 fi
1818 if test -z "$CC"; then
1819 if test -n "$ac_tool_prefix"; then
1820 for ac_prog in cl
1821 do
1822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1831 else
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1834 do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1842 fi
1843 done
1844 done
1845
1846 fi
1847 fi
1848 CC=$ac_cv_prog_CC
1849 if test -n "$CC"; then
1850 echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6
1852 else
1853 echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855 fi
1856
1857 test -n "$CC" && break
1858 done
1859 fi
1860 if test -z "$CC"; then
1861 ac_ct_CC=$CC
1862 for ac_prog in cl
1863 do
1864 # Extract the first word of "$ac_prog", so it can be a program name with args.
1865 set dummy $ac_prog; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_ac_ct_CC="$ac_prog"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 break 2
1884 fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891 if test -n "$ac_ct_CC"; then
1892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893 echo "${ECHO_T}$ac_ct_CC" >&6
1894 else
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899 test -n "$ac_ct_CC" && break
1900 done
1901
1902 CC=$ac_ct_CC
1903 fi
1904
1905 fi
1906
1907
1908 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1909 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1910 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1911 See \`config.log' for more details." >&5
1912 echo "$as_me: error: no acceptable C compiler found in \$PATH
1913 See \`config.log' for more details." >&2;}
1914 { (exit 1); exit 1; }; }; }
1915
1916 # Provide some information about the compiler.
1917 echo "$as_me:$LINENO:" \
1918 "checking for C compiler version" >&5
1919 ac_compiler=`set X $ac_compile; echo $2`
1920 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1921 (eval $ac_compiler --version </dev/null >&5) 2>&5
1922 ac_status=$?
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }
1925 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1926 (eval $ac_compiler -v </dev/null >&5) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }
1930 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1931 (eval $ac_compiler -V </dev/null >&5) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935
1936 cat >conftest.$ac_ext <<_ACEOF
1937 /* confdefs.h. */
1938 _ACEOF
1939 cat confdefs.h >>conftest.$ac_ext
1940 cat >>conftest.$ac_ext <<_ACEOF
1941 /* end confdefs.h. */
1942
1943 int
1944 main ()
1945 {
1946
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 ac_clean_files_save=$ac_clean_files
1952 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1953 # Try to create an executable without -o first, disregard a.out.
1954 # It will help us diagnose broken compilers, and finding out an intuition
1955 # of exeext.
1956 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1957 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1958 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1959 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1960 (eval $ac_link_default) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; then
1964 # Find the output, starting from the most likely. This scheme is
1965 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1966 # resort.
1967
1968 # Be careful to initialize this variable, since it used to be cached.
1969 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1970 ac_cv_exeext=
1971 # b.out is created by i960 compilers.
1972 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1973 do
1974 test -f "$ac_file" || continue
1975 case $ac_file in
1976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1977 ;;
1978 conftest.$ac_ext )
1979 # This is the source file.
1980 ;;
1981 [ab].out )
1982 # We found the default executable, but exeext='' is most
1983 # certainly right.
1984 break;;
1985 *.* )
1986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987 # FIXME: I believe we export ac_cv_exeext for Libtool,
1988 # but it would be cool to find out if it's true. Does anybody
1989 # maintain Libtool? --akim.
1990 export ac_cv_exeext
1991 break;;
1992 * )
1993 break;;
1994 esac
1995 done
1996 else
1997 echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2003 See \`config.log' for more details." >&5
2004 echo "$as_me: error: C compiler cannot create executables
2005 See \`config.log' for more details." >&2;}
2006 { (exit 77); exit 77; }; }; }
2007 fi
2008
2009 ac_exeext=$ac_cv_exeext
2010 echo "$as_me:$LINENO: result: $ac_file" >&5
2011 echo "${ECHO_T}$ac_file" >&6
2012
2013 # Check the compiler produces executables we can run. If not, either
2014 # the compiler is broken, or we cross compile.
2015 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2016 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2017 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2018 # If not cross compiling, check that we can run a simple program.
2019 if test "$cross_compiling" != yes; then
2020 if { ac_try='./$ac_file'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 (eval $ac_try) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2026 cross_compiling=no
2027 else
2028 if test "$cross_compiling" = maybe; then
2029 cross_compiling=yes
2030 else
2031 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2032 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2033 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2034 If you meant to cross compile, use \`--host'.
2035 See \`config.log' for more details." >&5
2036 echo "$as_me: error: cannot run C compiled programs.
2037 If you meant to cross compile, use \`--host'.
2038 See \`config.log' for more details." >&2;}
2039 { (exit 1); exit 1; }; }; }
2040 fi
2041 fi
2042 fi
2043 echo "$as_me:$LINENO: result: yes" >&5
2044 echo "${ECHO_T}yes" >&6
2045
2046 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2047 ac_clean_files=$ac_clean_files_save
2048 # Check the compiler produces executables we can run. If not, either
2049 # the compiler is broken, or we cross compile.
2050 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2051 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2052 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2053 echo "${ECHO_T}$cross_compiling" >&6
2054
2055 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2056 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2058 (eval $ac_link) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; then
2062 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2063 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2064 # work properly (i.e., refer to `conftest.exe'), while it won't with
2065 # `rm'.
2066 for ac_file in conftest.exe conftest conftest.*; do
2067 test -f "$ac_file" || continue
2068 case $ac_file in
2069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2070 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2071 export ac_cv_exeext
2072 break;;
2073 * ) break;;
2074 esac
2075 done
2076 else
2077 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2078 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2079 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2082 See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }; }
2084 fi
2085
2086 rm -f conftest$ac_cv_exeext
2087 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2088 echo "${ECHO_T}$ac_cv_exeext" >&6
2089
2090 rm -f conftest.$ac_ext
2091 EXEEXT=$ac_cv_exeext
2092 ac_exeext=$EXEEXT
2093 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2094 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2095 if test "${ac_cv_objext+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 cat >conftest.$ac_ext <<_ACEOF
2099 /* confdefs.h. */
2100 _ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2104
2105 int
2106 main ()
2107 {
2108
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 rm -f conftest.o conftest.obj
2114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2120 case $ac_file in
2121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2123 break;;
2124 esac
2125 done
2126 else
2127 echo "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2129
2130 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2131 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }; }
2137 fi
2138
2139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2140 fi
2141 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142 echo "${ECHO_T}$ac_cv_objext" >&6
2143 OBJEXT=$ac_cv_objext
2144 ac_objext=$OBJEXT
2145 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150 cat >conftest.$ac_ext <<_ACEOF
2151 /* confdefs.h. */
2152 _ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h. */
2156
2157 int
2158 main ()
2159 {
2160 #ifndef __GNUC__
2161 choke me
2162 #endif
2163
2164 ;
2165 return 0;
2166 }
2167 _ACEOF
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_compiler_gnu=yes
2191 else
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 ac_compiler_gnu=no
2196 fi
2197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2199
2200 fi
2201 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203 GCC=`test $ac_compiler_gnu = yes && echo yes`
2204 ac_test_CFLAGS=${CFLAGS+set}
2205 ac_save_CFLAGS=$CFLAGS
2206 CFLAGS="-g"
2207 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h. */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2218
2219 int
2220 main ()
2221 {
2222
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2230 ac_status=$?
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag"
2237 || test ! -s conftest.err'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 ac_cv_prog_cc_g=yes
2250 else
2251 echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 ac_cv_prog_cc_g=no
2255 fi
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260 if test "$ac_test_CFLAGS" = set; then
2261 CFLAGS=$ac_save_CFLAGS
2262 elif test $ac_cv_prog_cc_g = yes; then
2263 if test "$GCC" = yes; then
2264 CFLAGS="-g -O2"
2265 else
2266 CFLAGS="-g"
2267 fi
2268 else
2269 if test "$GCC" = yes; then
2270 CFLAGS="-O2"
2271 else
2272 CFLAGS=
2273 fi
2274 fi
2275 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 ac_cv_prog_cc_stdc=no
2281 ac_save_CC=$CC
2282 cat >conftest.$ac_ext <<_ACEOF
2283 /* confdefs.h. */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2288 #include <stdarg.h>
2289 #include <stdio.h>
2290 #include <sys/types.h>
2291 #include <sys/stat.h>
2292 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2293 struct buf { int x; };
2294 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295 static char *e (p, i)
2296 char **p;
2297 int i;
2298 {
2299 return p[i];
2300 }
2301 static char *f (char * (*g) (char **, int), char **p, ...)
2302 {
2303 char *s;
2304 va_list v;
2305 va_start (v,p);
2306 s = g (p, va_arg (v,int));
2307 va_end (v);
2308 return s;
2309 }
2310
2311 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2312 function prototypes and stuff, but not '\xHH' hex character constants.
2313 These don't provoke an error unfortunately, instead are silently treated
2314 as 'x'. The following induces an error, until -std1 is added to get
2315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2316 array size at least. It's necessary to write '\x00'==0 to get something
2317 that's true only with -std1. */
2318 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319
2320 int test (int i, double x);
2321 struct s1 {int (*f) (int a);};
2322 struct s2 {int (*f) (double a);};
2323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324 int argc;
2325 char **argv;
2326 int
2327 main ()
2328 {
2329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2330 ;
2331 return 0;
2332 }
2333 _ACEOF
2334 # Don't try gcc -ansi; that turns off useful extensions and
2335 # breaks some systems' header files.
2336 # AIX -qlanglvl=ansi
2337 # Ultrix and OSF/1 -std1
2338 # HP-UX 10.20 and later -Ae
2339 # HP-UX older versions -Aa -D_HPUX_SOURCE
2340 # SVR4 -Xc -D__EXTENSIONS__
2341 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342 do
2343 CC="$ac_save_CC $ac_arg"
2344 rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -z "$ac_c_werror_flag"
2354 || test ! -s conftest.err'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 ac_cv_prog_cc_stdc=$ac_arg
2367 break
2368 else
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 fi
2373 rm -f conftest.err conftest.$ac_objext
2374 done
2375 rm -f conftest.$ac_ext conftest.$ac_objext
2376 CC=$ac_save_CC
2377
2378 fi
2379
2380 case "x$ac_cv_prog_cc_stdc" in
2381 x|xno)
2382 echo "$as_me:$LINENO: result: none needed" >&5
2383 echo "${ECHO_T}none needed" >&6 ;;
2384 *)
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2387 CC="$CC $ac_cv_prog_cc_stdc" ;;
2388 esac
2389
2390 # Some people use a C++ compiler to compile C. Since we use `exit',
2391 # in C++ we need to declare it. In case someone uses the same compiler
2392 # for both compiling C and C++ we need to have the C++ compiler decide
2393 # the declaration of exit, since it's the most demanding environment.
2394 cat >conftest.$ac_ext <<_ACEOF
2395 #ifndef __cplusplus
2396 choke me
2397 #endif
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2402 ac_status=$?
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 for ac_declaration in \
2422 '' \
2423 'extern "C" void std::exit (int) throw (); using std::exit;' \
2424 'extern "C" void std::exit (int); using std::exit;' \
2425 'extern "C" void exit (int) throw ();' \
2426 'extern "C" void exit (int);' \
2427 'void exit (int);'
2428 do
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2435 $ac_declaration
2436 #include <stdlib.h>
2437 int
2438 main ()
2439 {
2440 exit (42);
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 :
2468 else
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 continue
2473 fi
2474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h. */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2481 $ac_declaration
2482 int
2483 main ()
2484 {
2485 exit (42);
2486 ;
2487 return 0;
2488 }
2489 _ACEOF
2490 rm -f conftest.$ac_objext
2491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492 (eval $ac_compile) 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try='test -z "$ac_c_werror_flag"
2500 || test ! -s conftest.err'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2512 break
2513 else
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 fi
2518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519 done
2520 rm -f conftest*
2521 if test -n "$ac_declaration"; then
2522 echo '#ifdef __cplusplus' >>confdefs.h
2523 echo $ac_declaration >>confdefs.h
2524 echo '#endif' >>confdefs.h
2525 fi
2526
2527 else
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 fi
2532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2541 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2542 if test "${ac_cv_search_strerror+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 ac_func_search_save_LIBS=$LIBS
2546 ac_cv_search_strerror=no
2547 cat >conftest.$ac_ext <<_ACEOF
2548 /* confdefs.h. */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2553
2554 /* Override any gcc2 internal prototype to avoid an error. */
2555 #ifdef __cplusplus
2556 extern "C"
2557 #endif
2558 /* We use char because int might match the return type of a gcc2
2559 builtin and then its argument prototype would still apply. */
2560 char strerror ();
2561 int
2562 main ()
2563 {
2564 strerror ();
2565 ;
2566 return 0;
2567 }
2568 _ACEOF
2569 rm -f conftest.$ac_objext conftest$ac_exeext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2571 (eval $ac_link) 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag"
2579 || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest$ac_exeext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_cv_search_strerror="none required"
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 fi
2597 rm -f conftest.err conftest.$ac_objext \
2598 conftest$ac_exeext conftest.$ac_ext
2599 if test "$ac_cv_search_strerror" = no; then
2600 for ac_lib in cposix; do
2601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2602 cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h. */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2608
2609 /* Override any gcc2 internal prototype to avoid an error. */
2610 #ifdef __cplusplus
2611 extern "C"
2612 #endif
2613 /* We use char because int might match the return type of a gcc2
2614 builtin and then its argument prototype would still apply. */
2615 char strerror ();
2616 int
2617 main ()
2618 {
2619 strerror ();
2620 ;
2621 return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext conftest$ac_exeext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2626 (eval $ac_link) 2>conftest.er1
2627 ac_status=$?
2628 grep -v '^ *+' conftest.er1 >conftest.err
2629 rm -f conftest.er1
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -z "$ac_c_werror_flag"
2634 || test ! -s conftest.err'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try='test -s conftest$ac_exeext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 (eval $ac_try) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2646 ac_cv_search_strerror="-l$ac_lib"
2647 break
2648 else
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652 fi
2653 rm -f conftest.err conftest.$ac_objext \
2654 conftest$ac_exeext conftest.$ac_ext
2655 done
2656 fi
2657 LIBS=$ac_func_search_save_LIBS
2658 fi
2659 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2660 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2661 if test "$ac_cv_search_strerror" != no; then
2662 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2663
2664 fi
2665
2666
2667 # We currently only use the version number for the name of any shared
2668 # library. For user convenience, we always use the same version
2669 # number that BFD is using.
2670 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2671
2672 am__api_version="1.9"
2673 # Find a good install program. We prefer a C program (faster),
2674 # so one script is as good as another. But avoid the broken or
2675 # incompatible versions:
2676 # SysV /etc/install, /usr/sbin/install
2677 # SunOS /usr/etc/install
2678 # IRIX /sbin/install
2679 # AIX /bin/install
2680 # AmigaOS /C/install, which installs bootblocks on floppy discs
2681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2684 # OS/2's system install, which has a completely different semantic
2685 # ./install, which can be erroneously created by make from ./install.sh.
2686 # Reject install programs that cannot install multiple files.
2687 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2688 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2689 if test -z "$INSTALL"; then
2690 if test "${ac_cv_path_install+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 # Account for people who put trailing slashes in PATH elements.
2699 case $as_dir/ in
2700 ./ | .// | /cC/* | \
2701 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2702 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2703 /usr/ucb/* ) ;;
2704 *)
2705 # OSF1 and SCO ODT 3.0 have their own names for install.
2706 # Don't use installbsd from OSF since it installs stuff as root
2707 # by default.
2708 for ac_prog in ginstall scoinst install; do
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2711 if test $ac_prog = install &&
2712 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713 # AIX install. It has an incompatible calling convention.
2714 :
2715 elif test $ac_prog = install &&
2716 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717 # program-specific install script used by HP pwplus--don't use.
2718 :
2719 else
2720 rm -rf conftest.one conftest.two conftest.dir
2721 echo one > conftest.one
2722 echo two > conftest.two
2723 mkdir conftest.dir
2724 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2725 test -s conftest.one && test -s conftest.two &&
2726 test -s conftest.dir/conftest.one &&
2727 test -s conftest.dir/conftest.two
2728 then
2729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2730 break 3
2731 fi
2732 fi
2733 fi
2734 done
2735 done
2736 ;;
2737 esac
2738 done
2739
2740 rm -rf conftest.one conftest.two conftest.dir
2741
2742 fi
2743 if test "${ac_cv_path_install+set}" = set; then
2744 INSTALL=$ac_cv_path_install
2745 else
2746 # As a last resort, use the slow shell script. Don't cache a
2747 # value for INSTALL within a source directory, because that will
2748 # break other packages using the cache if that directory is
2749 # removed, or if the value is a relative name.
2750 INSTALL=$ac_install_sh
2751 fi
2752 fi
2753 echo "$as_me:$LINENO: result: $INSTALL" >&5
2754 echo "${ECHO_T}$INSTALL" >&6
2755
2756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2757 # It thinks the first close brace ends the variable substitution.
2758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2759
2760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2761
2762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2763
2764 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2765 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2766 # Just in case
2767 sleep 1
2768 echo timestamp > conftest.file
2769 # Do `set' in a subshell so we don't clobber the current shell's
2770 # arguments. Must try -L first in case configure is actually a
2771 # symlink; some systems play weird games with the mod time of symlinks
2772 # (eg FreeBSD returns the mod time of the symlink's containing
2773 # directory).
2774 if (
2775 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2776 if test "$*" = "X"; then
2777 # -L didn't work.
2778 set X `ls -t $srcdir/configure conftest.file`
2779 fi
2780 rm -f conftest.file
2781 if test "$*" != "X $srcdir/configure conftest.file" \
2782 && test "$*" != "X conftest.file $srcdir/configure"; then
2783
2784 # If neither matched, then we have a broken ls. This can happen
2785 # if, for instance, CONFIG_SHELL is bash and it inherits a
2786 # broken ls alias from the environment. This has actually
2787 # happened. Such a system could not be considered "sane".
2788 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2789 alias in your environment" >&5
2790 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2791 alias in your environment" >&2;}
2792 { (exit 1); exit 1; }; }
2793 fi
2794
2795 test "$2" = conftest.file
2796 )
2797 then
2798 # Ok.
2799 :
2800 else
2801 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2802 Check your system clock" >&5
2803 echo "$as_me: error: newly created file is older than distributed files!
2804 Check your system clock" >&2;}
2805 { (exit 1); exit 1; }; }
2806 fi
2807 echo "$as_me:$LINENO: result: yes" >&5
2808 echo "${ECHO_T}yes" >&6
2809 test "$program_prefix" != NONE &&
2810 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2811 # Use a double $ so make ignores it.
2812 test "$program_suffix" != NONE &&
2813 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2814 # Double any \ or $. echo might interpret backslashes.
2815 # By default was `s,x,x', remove it if useless.
2816 cat <<\_ACEOF >conftest.sed
2817 s/[\\$]/&&/g;s/;s,x,x,$//
2818 _ACEOF
2819 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2820 rm conftest.sed
2821
2822 # expand $ac_aux_dir to an absolute path
2823 am_aux_dir=`cd $ac_aux_dir && pwd`
2824
2825 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2826 # Use eval to expand $SHELL
2827 if eval "$MISSING --run true"; then
2828 am_missing_run="$MISSING --run "
2829 else
2830 am_missing_run=
2831 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2832 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2833 fi
2834
2835 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2836 # We used to keeping the `.' as first argument, in order to
2837 # allow $(mkdir_p) to be used without argument. As in
2838 # $(mkdir_p) $(somedir)
2839 # where $(somedir) is conditionally defined. However this is wrong
2840 # for two reasons:
2841 # 1. if the package is installed by a user who cannot write `.'
2842 # make install will fail,
2843 # 2. the above comment should most certainly read
2844 # $(mkdir_p) $(DESTDIR)$(somedir)
2845 # so it does not work when $(somedir) is undefined and
2846 # $(DESTDIR) is not.
2847 # To support the latter case, we have to write
2848 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2849 # so the `.' trick is pointless.
2850 mkdir_p='mkdir -p --'
2851 else
2852 # On NextStep and OpenStep, the `mkdir' command does not
2853 # recognize any option. It will interpret all options as
2854 # directories to create, and then abort because `.' already
2855 # exists.
2856 for d in ./-p ./--version;
2857 do
2858 test -d $d && rmdir $d
2859 done
2860 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2861 if test -f "$ac_aux_dir/mkinstalldirs"; then
2862 mkdir_p='$(mkinstalldirs)'
2863 else
2864 mkdir_p='$(install_sh) -d'
2865 fi
2866 fi
2867
2868 for ac_prog in gawk mawk nawk awk
2869 do
2870 # Extract the first word of "$ac_prog", so it can be a program name with args.
2871 set dummy $ac_prog; ac_word=$2
2872 echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874 if test "${ac_cv_prog_AWK+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 if test -n "$AWK"; then
2878 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_AWK="$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893
2894 fi
2895 fi
2896 AWK=$ac_cv_prog_AWK
2897 if test -n "$AWK"; then
2898 echo "$as_me:$LINENO: result: $AWK" >&5
2899 echo "${ECHO_T}$AWK" >&6
2900 else
2901 echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6
2903 fi
2904
2905 test -n "$AWK" && break
2906 done
2907
2908 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2909 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2910 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2911 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914 cat >conftest.make <<\_ACEOF
2915 all:
2916 @echo 'ac_maketemp="$(MAKE)"'
2917 _ACEOF
2918 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2919 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2920 if test -n "$ac_maketemp"; then
2921 eval ac_cv_prog_make_${ac_make}_set=yes
2922 else
2923 eval ac_cv_prog_make_${ac_make}_set=no
2924 fi
2925 rm -f conftest.make
2926 fi
2927 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2928 echo "$as_me:$LINENO: result: yes" >&5
2929 echo "${ECHO_T}yes" >&6
2930 SET_MAKE=
2931 else
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2934 SET_MAKE="MAKE=${MAKE-make}"
2935 fi
2936
2937 rm -rf .tst 2>/dev/null
2938 mkdir .tst 2>/dev/null
2939 if test -d .tst; then
2940 am__leading_dot=.
2941 else
2942 am__leading_dot=_
2943 fi
2944 rmdir .tst 2>/dev/null
2945
2946 DEPDIR="${am__leading_dot}deps"
2947
2948 ac_config_commands="$ac_config_commands depfiles"
2949
2950
2951 am_make=${MAKE-make}
2952 cat > confinc << 'END'
2953 am__doit:
2954 @echo done
2955 .PHONY: am__doit
2956 END
2957 # If we don't find an include directive, just comment out the code.
2958 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2959 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2960 am__include="#"
2961 am__quote=
2962 _am_result=none
2963 # First try GNU make style include.
2964 echo "include confinc" > confmf
2965 # We grep out `Entering directory' and `Leaving directory'
2966 # messages which can occur if `w' ends up in MAKEFLAGS.
2967 # In particular we don't look at `^make:' because GNU make might
2968 # be invoked under some other name (usually "gmake"), in which
2969 # case it prints its new name instead of `make'.
2970 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2971 am__include=include
2972 am__quote=
2973 _am_result=GNU
2974 fi
2975 # Now try BSD make style include.
2976 if test "$am__include" = "#"; then
2977 echo '.include "confinc"' > confmf
2978 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2979 am__include=.include
2980 am__quote="\""
2981 _am_result=BSD
2982 fi
2983 fi
2984
2985
2986 echo "$as_me:$LINENO: result: $_am_result" >&5
2987 echo "${ECHO_T}$_am_result" >&6
2988 rm -f confinc confmf
2989
2990 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2991 if test "${enable_dependency_tracking+set}" = set; then
2992 enableval="$enable_dependency_tracking"
2993
2994 fi;
2995 if test "x$enable_dependency_tracking" != xno; then
2996 am_depcomp="$ac_aux_dir/depcomp"
2997 AMDEPBACKSLASH='\'
2998 fi
2999
3000
3001 if test "x$enable_dependency_tracking" != xno; then
3002 AMDEP_TRUE=
3003 AMDEP_FALSE='#'
3004 else
3005 AMDEP_TRUE='#'
3006 AMDEP_FALSE=
3007 fi
3008
3009
3010
3011 # test to see if srcdir already configured
3012 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3013 test -f $srcdir/config.status; then
3014 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3015 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3016 { (exit 1); exit 1; }; }
3017 fi
3018
3019 # test whether we have cygpath
3020 if test -z "$CYGPATH_W"; then
3021 if (cygpath --version) >/dev/null 2>/dev/null; then
3022 CYGPATH_W='cygpath -w'
3023 else
3024 CYGPATH_W=echo
3025 fi
3026 fi
3027
3028
3029 # Define the identity of the package.
3030 PACKAGE=opcodes
3031 VERSION=${BFD_VERSION}
3032
3033
3034 cat >>confdefs.h <<_ACEOF
3035 #define PACKAGE "$PACKAGE"
3036 _ACEOF
3037
3038
3039 cat >>confdefs.h <<_ACEOF
3040 #define VERSION "$VERSION"
3041 _ACEOF
3042
3043 # Some tools Automake needs.
3044
3045 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3046
3047
3048 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3049
3050
3051 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3052
3053
3054 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3055
3056
3057 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3058
3059 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3060
3061 # Installed binaries are usually stripped using `strip' when the user
3062 # run `make install-strip'. However `strip' might not be the right
3063 # tool to use in cross-compilation environments, therefore Automake
3064 # will honor the `STRIP' environment variable to overrule this program.
3065 if test "$cross_compiling" != no; then
3066 if test -n "$ac_tool_prefix"; then
3067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3068 set dummy ${ac_tool_prefix}strip; ac_word=$2
3069 echo "$as_me:$LINENO: checking for $ac_word" >&5
3070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3071 if test "${ac_cv_prog_STRIP+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074 if test -n "$STRIP"; then
3075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088 done
3089 done
3090
3091 fi
3092 fi
3093 STRIP=$ac_cv_prog_STRIP
3094 if test -n "$STRIP"; then
3095 echo "$as_me:$LINENO: result: $STRIP" >&5
3096 echo "${ECHO_T}$STRIP" >&6
3097 else
3098 echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6
3100 fi
3101
3102 fi
3103 if test -z "$ac_cv_prog_STRIP"; then
3104 ac_ct_STRIP=$STRIP
3105 # Extract the first word of "strip", so it can be a program name with args.
3106 set dummy strip; ac_word=$2
3107 echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112 if test -n "$ac_ct_STRIP"; then
3113 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_STRIP="strip"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126 done
3127 done
3128
3129 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3130 fi
3131 fi
3132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3133 if test -n "$ac_ct_STRIP"; then
3134 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3135 echo "${ECHO_T}$ac_ct_STRIP" >&6
3136 else
3137 echo "$as_me:$LINENO: result: no" >&5
3138 echo "${ECHO_T}no" >&6
3139 fi
3140
3141 STRIP=$ac_ct_STRIP
3142 else
3143 STRIP="$ac_cv_prog_STRIP"
3144 fi
3145
3146 fi
3147 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3148
3149 # We need awk for the "check" target. The system "awk" is bad on
3150 # some platforms.
3151 # Always define AMTAR for backward compatibility.
3152
3153 AMTAR=${AMTAR-"${am_missing_run}tar"}
3154
3155 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3156
3157
3158
3159
3160 depcc="$CC" am_compiler_list=
3161
3162 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3163 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3164 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3168 # We make a subdir and do the tests there. Otherwise we can end up
3169 # making bogus files that we don't know about and never remove. For
3170 # instance it was reported that on HP-UX the gcc test will end up
3171 # making a dummy file named `D' -- because `-MD' means `put the output
3172 # in D'.
3173 mkdir conftest.dir
3174 # Copy depcomp to subdir because otherwise we won't find it if we're
3175 # using a relative directory.
3176 cp "$am_depcomp" conftest.dir
3177 cd conftest.dir
3178 # We will build objects and dependencies in a subdirectory because
3179 # it helps to detect inapplicable dependency modes. For instance
3180 # both Tru64's cc and ICC support -MD to output dependencies as a
3181 # side effect of compilation, but ICC will put the dependencies in
3182 # the current directory while Tru64 will put them in the object
3183 # directory.
3184 mkdir sub
3185
3186 am_cv_CC_dependencies_compiler_type=none
3187 if test "$am_compiler_list" = ""; then
3188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3189 fi
3190 for depmode in $am_compiler_list; do
3191 # Setup a source with many dependencies, because some compilers
3192 # like to wrap large dependency lists on column 80 (with \), and
3193 # we should not choose a depcomp mode which is confused by this.
3194 #
3195 # We need to recreate these files for each test, as the compiler may
3196 # overwrite some of them when testing with obscure command lines.
3197 # This happens at least with the AIX C compiler.
3198 : > sub/conftest.c
3199 for i in 1 2 3 4 5 6; do
3200 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3201 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3202 # Solaris 8's {/usr,}/bin/sh.
3203 touch sub/conftst$i.h
3204 done
3205 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3206
3207 case $depmode in
3208 nosideeffect)
3209 # after this tag, mechanisms are not by side-effect, so they'll
3210 # only be used when explicitly requested
3211 if test "x$enable_dependency_tracking" = xyes; then
3212 continue
3213 else
3214 break
3215 fi
3216 ;;
3217 none) break ;;
3218 esac
3219 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3220 # mode. It turns out that the SunPro C++ compiler does not properly
3221 # handle `-M -o', and we need to detect this.
3222 if depmode=$depmode \
3223 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3225 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3226 >/dev/null 2>conftest.err &&
3227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3228 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3230 # icc doesn't choke on unknown options, it will just issue warnings
3231 # or remarks (even with -Werror). So we grep stderr for any message
3232 # that says an option was ignored or not supported.
3233 # When given -MP, icc 7.0 and 7.1 complain thusly:
3234 # icc: Command line warning: ignoring option '-M'; no argument required
3235 # The diagnosis changed in icc 8.0:
3236 # icc: Command line remark: option '-MP' not supported
3237 if (grep 'ignoring option' conftest.err ||
3238 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3239 am_cv_CC_dependencies_compiler_type=$depmode
3240 break
3241 fi
3242 fi
3243 done
3244
3245 cd ..
3246 rm -rf conftest.dir
3247 else
3248 am_cv_CC_dependencies_compiler_type=none
3249 fi
3250
3251 fi
3252 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3253 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3254 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3255
3256
3257
3258 if
3259 test "x$enable_dependency_tracking" != xno \
3260 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3261 am__fastdepCC_TRUE=
3262 am__fastdepCC_FALSE='#'
3263 else
3264 am__fastdepCC_TRUE='#'
3265 am__fastdepCC_FALSE=
3266 fi
3267
3268
3269
3270
3271 ac_ext=c
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3279 echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281 if test "${ac_cv_prog_CC+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298 done
3299 done
3300
3301 fi
3302 fi
3303 CC=$ac_cv_prog_CC
3304 if test -n "$CC"; then
3305 echo "$as_me:$LINENO: result: $CC" >&5
3306 echo "${ECHO_T}$CC" >&6
3307 else
3308 echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3310 fi
3311
3312 fi
3313 if test -z "$ac_cv_prog_CC"; then
3314 ac_ct_CC=$CC
3315 # Extract the first word of "gcc", so it can be a program name with args.
3316 set dummy gcc; ac_word=$2
3317 echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 if test -n "$ac_ct_CC"; then
3323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_CC="gcc"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336 done
3337 done
3338
3339 fi
3340 fi
3341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342 if test -n "$ac_ct_CC"; then
3343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3344 echo "${ECHO_T}$ac_ct_CC" >&6
3345 else
3346 echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3348 fi
3349
3350 CC=$ac_ct_CC
3351 else
3352 CC="$ac_cv_prog_CC"
3353 fi
3354
3355 if test -z "$CC"; then
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}cc; ac_word=$2
3359 echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3361 if test "${ac_cv_prog_CC+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_CC="${ac_tool_prefix}cc"
3375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380
3381 fi
3382 fi
3383 CC=$ac_cv_prog_CC
3384 if test -n "$CC"; then
3385 echo "$as_me:$LINENO: result: $CC" >&5
3386 echo "${ECHO_T}$CC" >&6
3387 else
3388 echo "$as_me:$LINENO: result: no" >&5
3389 echo "${ECHO_T}no" >&6
3390 fi
3391
3392 fi
3393 if test -z "$ac_cv_prog_CC"; then
3394 ac_ct_CC=$CC
3395 # Extract the first word of "cc", so it can be a program name with args.
3396 set dummy cc; ac_word=$2
3397 echo "$as_me:$LINENO: checking for $ac_word" >&5
3398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 if test -n "$ac_ct_CC"; then
3403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_ac_ct_CC="cc"
3413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418
3419 fi
3420 fi
3421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3422 if test -n "$ac_ct_CC"; then
3423 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3424 echo "${ECHO_T}$ac_ct_CC" >&6
3425 else
3426 echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3428 fi
3429
3430 CC=$ac_ct_CC
3431 else
3432 CC="$ac_cv_prog_CC"
3433 fi
3434
3435 fi
3436 if test -z "$CC"; then
3437 # Extract the first word of "cc", so it can be a program name with args.
3438 set dummy cc; ac_word=$2
3439 echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441 if test "${ac_cv_prog_CC+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 ac_prog_rejected=no
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3456 ac_prog_rejected=yes
3457 continue
3458 fi
3459 ac_cv_prog_CC="cc"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463 done
3464 done
3465
3466 if test $ac_prog_rejected = yes; then
3467 # We found a bogon in the path, so make sure we never use it.
3468 set dummy $ac_cv_prog_CC
3469 shift
3470 if test $# != 0; then
3471 # We chose a different compiler from the bogus one.
3472 # However, it has the same basename, so the bogon will be chosen
3473 # first if we set CC to just the basename; use the full file name.
3474 shift
3475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476 fi
3477 fi
3478 fi
3479 fi
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482 echo "$as_me:$LINENO: result: $CC" >&5
3483 echo "${ECHO_T}$CC" >&6
3484 else
3485 echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3487 fi
3488
3489 fi
3490 if test -z "$CC"; then
3491 if test -n "$ac_tool_prefix"; then
3492 for ac_prog in cl
3493 do
3494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_prog_CC+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3514 fi
3515 done
3516 done
3517
3518 fi
3519 fi
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522 echo "$as_me:$LINENO: result: $CC" >&5
3523 echo "${ECHO_T}$CC" >&6
3524 else
3525 echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3527 fi
3528
3529 test -n "$CC" && break
3530 done
3531 fi
3532 if test -z "$CC"; then
3533 ac_ct_CC=$CC
3534 for ac_prog in cl
3535 do
3536 # Extract the first word of "$ac_prog", so it can be a program name with args.
3537 set dummy $ac_prog; ac_word=$2
3538 echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543 if test -n "$ac_ct_CC"; then
3544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_ac_ct_CC="$ac_prog"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557 done
3558 done
3559
3560 fi
3561 fi
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3565 echo "${ECHO_T}$ac_ct_CC" >&6
3566 else
3567 echo "$as_me:$LINENO: result: no" >&5
3568 echo "${ECHO_T}no" >&6
3569 fi
3570
3571 test -n "$ac_ct_CC" && break
3572 done
3573
3574 CC=$ac_ct_CC
3575 fi
3576
3577 fi
3578
3579
3580 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3581 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3583 See \`config.log' for more details." >&5
3584 echo "$as_me: error: no acceptable C compiler found in \$PATH
3585 See \`config.log' for more details." >&2;}
3586 { (exit 1); exit 1; }; }; }
3587
3588 # Provide some information about the compiler.
3589 echo "$as_me:$LINENO:" \
3590 "checking for C compiler version" >&5
3591 ac_compiler=`set X $ac_compile; echo $2`
3592 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3593 (eval $ac_compiler --version </dev/null >&5) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }
3597 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3598 (eval $ac_compiler -v </dev/null >&5) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3602 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3603 (eval $ac_compiler -V </dev/null >&5) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }
3607
3608 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3609 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3610 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619
3620 int
3621 main ()
3622 {
3623 #ifndef __GNUC__
3624 choke me
3625 #endif
3626
3627 ;
3628 return 0;
3629 }
3630 _ACEOF
3631 rm -f conftest.$ac_objext
3632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3633 (eval $ac_compile) 2>conftest.er1
3634 ac_status=$?
3635 grep -v '^ *+' conftest.er1 >conftest.err
3636 rm -f conftest.er1
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } &&
3640 { ac_try='test -z "$ac_c_werror_flag"
3641 || test ! -s conftest.err'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 (eval $ac_try) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; } &&
3647 { ac_try='test -s conftest.$ac_objext'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; }; then
3653 ac_compiler_gnu=yes
3654 else
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658 ac_compiler_gnu=no
3659 fi
3660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3662
3663 fi
3664 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3665 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3666 GCC=`test $ac_compiler_gnu = yes && echo yes`
3667 ac_test_CFLAGS=${CFLAGS+set}
3668 ac_save_CFLAGS=$CFLAGS
3669 CFLAGS="-g"
3670 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3671 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3672 if test "${ac_cv_prog_cc_g+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h. */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681
3682 int
3683 main ()
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 rm -f conftest.$ac_objext
3691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3692 (eval $ac_compile) 2>conftest.er1
3693 ac_status=$?
3694 grep -v '^ *+' conftest.er1 >conftest.err
3695 rm -f conftest.er1
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try='test -z "$ac_c_werror_flag"
3700 || test ! -s conftest.err'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; } &&
3706 { ac_try='test -s conftest.$ac_objext'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 ac_cv_prog_cc_g=yes
3713 else
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3716
3717 ac_cv_prog_cc_g=no
3718 fi
3719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3720 fi
3721 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3722 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3723 if test "$ac_test_CFLAGS" = set; then
3724 CFLAGS=$ac_save_CFLAGS
3725 elif test $ac_cv_prog_cc_g = yes; then
3726 if test "$GCC" = yes; then
3727 CFLAGS="-g -O2"
3728 else
3729 CFLAGS="-g"
3730 fi
3731 else
3732 if test "$GCC" = yes; then
3733 CFLAGS="-O2"
3734 else
3735 CFLAGS=
3736 fi
3737 fi
3738 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3739 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3740 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 ac_cv_prog_cc_stdc=no
3744 ac_save_CC=$CC
3745 cat >conftest.$ac_ext <<_ACEOF
3746 /* confdefs.h. */
3747 _ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3751 #include <stdarg.h>
3752 #include <stdio.h>
3753 #include <sys/types.h>
3754 #include <sys/stat.h>
3755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3756 struct buf { int x; };
3757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3758 static char *e (p, i)
3759 char **p;
3760 int i;
3761 {
3762 return p[i];
3763 }
3764 static char *f (char * (*g) (char **, int), char **p, ...)
3765 {
3766 char *s;
3767 va_list v;
3768 va_start (v,p);
3769 s = g (p, va_arg (v,int));
3770 va_end (v);
3771 return s;
3772 }
3773
3774 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3775 function prototypes and stuff, but not '\xHH' hex character constants.
3776 These don't provoke an error unfortunately, instead are silently treated
3777 as 'x'. The following induces an error, until -std1 is added to get
3778 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3779 array size at least. It's necessary to write '\x00'==0 to get something
3780 that's true only with -std1. */
3781 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3782
3783 int test (int i, double x);
3784 struct s1 {int (*f) (int a);};
3785 struct s2 {int (*f) (double a);};
3786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787 int argc;
3788 char **argv;
3789 int
3790 main ()
3791 {
3792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 # Don't try gcc -ansi; that turns off useful extensions and
3798 # breaks some systems' header files.
3799 # AIX -qlanglvl=ansi
3800 # Ultrix and OSF/1 -std1
3801 # HP-UX 10.20 and later -Ae
3802 # HP-UX older versions -Aa -D_HPUX_SOURCE
3803 # SVR4 -Xc -D__EXTENSIONS__
3804 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805 do
3806 CC="$ac_save_CC $ac_arg"
3807 rm -f conftest.$ac_objext
3808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3809 (eval $ac_compile) 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -z "$ac_c_werror_flag"
3817 || test ! -s conftest.err'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; } &&
3823 { ac_try='test -s conftest.$ac_objext'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 (eval $ac_try) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3829 ac_cv_prog_cc_stdc=$ac_arg
3830 break
3831 else
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 fi
3836 rm -f conftest.err conftest.$ac_objext
3837 done
3838 rm -f conftest.$ac_ext conftest.$ac_objext
3839 CC=$ac_save_CC
3840
3841 fi
3842
3843 case "x$ac_cv_prog_cc_stdc" in
3844 x|xno)
3845 echo "$as_me:$LINENO: result: none needed" >&5
3846 echo "${ECHO_T}none needed" >&6 ;;
3847 *)
3848 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3849 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3850 CC="$CC $ac_cv_prog_cc_stdc" ;;
3851 esac
3852
3853 # Some people use a C++ compiler to compile C. Since we use `exit',
3854 # in C++ we need to declare it. In case someone uses the same compiler
3855 # for both compiling C and C++ we need to have the C++ compiler decide
3856 # the declaration of exit, since it's the most demanding environment.
3857 cat >conftest.$ac_ext <<_ACEOF
3858 #ifndef __cplusplus
3859 choke me
3860 #endif
3861 _ACEOF
3862 rm -f conftest.$ac_objext
3863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try='test -z "$ac_c_werror_flag"
3872 || test ! -s conftest.err'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 (eval $ac_try) 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 for ac_declaration in \
3885 '' \
3886 'extern "C" void std::exit (int) throw (); using std::exit;' \
3887 'extern "C" void std::exit (int); using std::exit;' \
3888 'extern "C" void exit (int) throw ();' \
3889 'extern "C" void exit (int);' \
3890 'void exit (int);'
3891 do
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 $ac_declaration
3899 #include <stdlib.h>
3900 int
3901 main ()
3902 {
3903 exit (42);
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>conftest.er1
3911 ac_status=$?
3912 grep -v '^ *+' conftest.er1 >conftest.err
3913 rm -f conftest.er1
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -z "$ac_c_werror_flag"
3918 || test ! -s conftest.err'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try='test -s conftest.$ac_objext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 :
3931 else
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 continue
3936 fi
3937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h. */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 $ac_declaration
3945 int
3946 main ()
3947 {
3948 exit (42);
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.$ac_objext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955 (eval $ac_compile) 2>conftest.er1
3956 ac_status=$?
3957 grep -v '^ *+' conftest.er1 >conftest.err
3958 rm -f conftest.er1
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } &&
3962 { ac_try='test -z "$ac_c_werror_flag"
3963 || test ! -s conftest.err'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 (eval $ac_try) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; } &&
3969 { ac_try='test -s conftest.$ac_objext'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971 (eval $ac_try) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975 break
3976 else
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980 fi
3981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3982 done
3983 rm -f conftest*
3984 if test -n "$ac_declaration"; then
3985 echo '#ifdef __cplusplus' >>confdefs.h
3986 echo $ac_declaration >>confdefs.h
3987 echo '#endif' >>confdefs.h
3988 fi
3989
3990 else
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994 fi
3995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3996 ac_ext=c
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001
4002
4003 cat >>confdefs.h <<\_ACEOF
4004 #define _GNU_SOURCE 1
4005 _ACEOF
4006
4007
4008
4009 if test -n "$ac_tool_prefix"; then
4010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4011 set dummy ${ac_tool_prefix}ar; ac_word=$2
4012 echo "$as_me:$LINENO: checking for $ac_word" >&5
4013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4014 if test "${ac_cv_prog_AR+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017 if test -n "$AR"; then
4018 ac_cv_prog_AR="$AR" # Let the user override the test.
4019 else
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH
4022 do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027 ac_cv_prog_AR="${ac_tool_prefix}ar"
4028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 break 2
4030 fi
4031 done
4032 done
4033
4034 fi
4035 fi
4036 AR=$ac_cv_prog_AR
4037 if test -n "$AR"; then
4038 echo "$as_me:$LINENO: result: $AR" >&5
4039 echo "${ECHO_T}$AR" >&6
4040 else
4041 echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6
4043 fi
4044
4045 fi
4046 if test -z "$ac_cv_prog_AR"; then
4047 ac_ct_AR=$AR
4048 # Extract the first word of "ar", so it can be a program name with args.
4049 set dummy ar; ac_word=$2
4050 echo "$as_me:$LINENO: checking for $ac_word" >&5
4051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4052 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055 if test -n "$ac_ct_AR"; then
4056 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065 ac_cv_prog_ac_ct_AR="ar"
4066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 break 2
4068 fi
4069 done
4070 done
4071
4072 fi
4073 fi
4074 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4075 if test -n "$ac_ct_AR"; then
4076 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4077 echo "${ECHO_T}$ac_ct_AR" >&6
4078 else
4079 echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 fi
4082
4083 AR=$ac_ct_AR
4084 else
4085 AR="$ac_cv_prog_AR"
4086 fi
4087
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4091 echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4093 if test "${ac_cv_prog_RANLIB+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096 if test -n "$RANLIB"; then
4097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4109 fi
4110 done
4111 done
4112
4113 fi
4114 fi
4115 RANLIB=$ac_cv_prog_RANLIB
4116 if test -n "$RANLIB"; then
4117 echo "$as_me:$LINENO: result: $RANLIB" >&5
4118 echo "${ECHO_T}$RANLIB" >&6
4119 else
4120 echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4122 fi
4123
4124 fi
4125 if test -z "$ac_cv_prog_RANLIB"; then
4126 ac_ct_RANLIB=$RANLIB
4127 # Extract the first word of "ranlib", so it can be a program name with args.
4128 set dummy ranlib; ac_word=$2
4129 echo "$as_me:$LINENO: checking for $ac_word" >&5
4130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4131 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134 if test -n "$ac_ct_RANLIB"; then
4135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_ac_ct_RANLIB="ranlib"
4145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148 done
4149 done
4150
4151 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4152 fi
4153 fi
4154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4155 if test -n "$ac_ct_RANLIB"; then
4156 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4157 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4158 else
4159 echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4161 fi
4162
4163 RANLIB=$ac_ct_RANLIB
4164 else
4165 RANLIB="$ac_cv_prog_RANLIB"
4166 fi
4167
4168
4169 # Check whether --enable-shared or --disable-shared was given.
4170 if test "${enable_shared+set}" = set; then
4171 enableval="$enable_shared"
4172 p=${PACKAGE-default}
4173 case $enableval in
4174 yes) enable_shared=yes ;;
4175 no) enable_shared=no ;;
4176 *)
4177 enable_shared=no
4178 # Look at the argument we got. We use all the common list separators.
4179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4180 for pkg in $enableval; do
4181 IFS="$lt_save_ifs"
4182 if test "X$pkg" = "X$p"; then
4183 enable_shared=yes
4184 fi
4185 done
4186 IFS="$lt_save_ifs"
4187 ;;
4188 esac
4189 else
4190 enable_shared=no
4191 fi;
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203 macro_version='2.1a'
4204 macro_revision='1.2435'
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217 ltmain="$ac_aux_dir/ltmain.sh"
4218
4219 # Set options
4220
4221 enable_dlopen=no
4222
4223
4224 enable_win32_dll=no
4225
4226
4227
4228 # Check whether --enable-static or --disable-static was given.
4229 if test "${enable_static+set}" = set; then
4230 enableval="$enable_static"
4231 p=${PACKAGE-default}
4232 case $enableval in
4233 yes) enable_static=yes ;;
4234 no) enable_static=no ;;
4235 *)
4236 enable_static=no
4237 # Look at the argument we got. We use all the common list separators.
4238 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4239 for pkg in $enableval; do
4240 IFS="$lt_save_ifs"
4241 if test "X$pkg" = "X$p"; then
4242 enable_static=yes
4243 fi
4244 done
4245 IFS="$lt_save_ifs"
4246 ;;
4247 esac
4248 else
4249 enable_static=yes
4250 fi;
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260 # Check whether --with-pic or --without-pic was given.
4261 if test "${with_pic+set}" = set; then
4262 withval="$with_pic"
4263 pic_mode="$withval"
4264 else
4265 pic_mode=default
4266 fi;
4267
4268 test -z "$pic_mode" && pic_mode=default
4269
4270
4271
4272
4273
4274
4275
4276 # Check whether --enable-fast-install or --disable-fast-install was given.
4277 if test "${enable_fast_install+set}" = set; then
4278 enableval="$enable_fast_install"
4279 p=${PACKAGE-default}
4280 case $enableval in
4281 yes) enable_fast_install=yes ;;
4282 no) enable_fast_install=no ;;
4283 *)
4284 enable_fast_install=no
4285 # Look at the argument we got. We use all the common list separators.
4286 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4287 for pkg in $enableval; do
4288 IFS="$lt_save_ifs"
4289 if test "X$pkg" = "X$p"; then
4290 enable_fast_install=yes
4291 fi
4292 done
4293 IFS="$lt_save_ifs"
4294 ;;
4295 esac
4296 else
4297 enable_fast_install=yes
4298 fi;
4299
4300
4301
4302
4303
4304
4305
4306
4307 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4308 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4309 if test "${lt_cv_path_SED+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 # Loop through the user's path and test for sed and gsed.
4313 # Then use that list of sed's as ones to test for truncation.
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4316 do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for lt_ac_prog in sed gsed; do
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4322 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4323 fi
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 lt_ac_max=0
4329 lt_ac_count=0
4330 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4331 # along with /bin/sed that truncates output.
4332 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4333 test ! -f $lt_ac_sed && continue
4334 cat /dev/null > conftest.in
4335 lt_ac_count=0
4336 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4337 # Check for GNU sed and select it if it is found.
4338 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4339 lt_cv_path_SED=$lt_ac_sed
4340 break
4341 fi
4342 while true; do
4343 cat conftest.in conftest.in >conftest.tmp
4344 mv conftest.tmp conftest.in
4345 cp conftest.in conftest.nl
4346 echo >>conftest.nl
4347 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4348 cmp -s conftest.out conftest.nl || break
4349 # 10000 chars as input seems more than enough
4350 test $lt_ac_count -gt 10 && break
4351 lt_ac_count=`expr $lt_ac_count + 1`
4352 if test $lt_ac_count -gt $lt_ac_max; then
4353 lt_ac_max=$lt_ac_count
4354 lt_cv_path_SED=$lt_ac_sed
4355 fi
4356 done
4357 done
4358
4359 fi
4360
4361 SED=$lt_cv_path_SED
4362
4363 echo "$as_me:$LINENO: result: $SED" >&5
4364 echo "${ECHO_T}$SED" >&6
4365
4366 test -z "$SED" && SED=sed
4367 Xsed="$SED -e 1s/^X//"
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379 echo "$as_me:$LINENO: checking for egrep" >&5
4380 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4381 if test "${ac_cv_prog_egrep+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4385 then ac_cv_prog_egrep='grep -E'
4386 else ac_cv_prog_egrep='egrep'
4387 fi
4388 fi
4389 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4390 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4391 EGREP=$ac_cv_prog_egrep
4392
4393
4394 echo "$as_me:$LINENO: checking for fgrep" >&5
4395 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4396 if test "${ac_cv_prog_fgrep+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4400 then ac_cv_prog_fgrep='grep -F'
4401 else ac_cv_prog_fgrep='fgrep'
4402 fi
4403 fi
4404 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4405 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4406 FGREP=$ac_cv_prog_fgrep
4407
4408
4409 test -z "$GREP" && GREP=grep
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4430 if test "${with_gnu_ld+set}" = set; then
4431 withval="$with_gnu_ld"
4432 test "$withval" = no || with_gnu_ld=yes
4433 else
4434 with_gnu_ld=no
4435 fi;
4436 ac_prog=ld
4437 if test "$GCC" = yes; then
4438 # Check if gcc -print-prog-name=ld gives a path.
4439 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4440 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4441 case $host in
4442 *-*-mingw*)
4443 # gcc leaves a trailing carriage return which upsets mingw
4444 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4445 *)
4446 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4447 esac
4448 case $ac_prog in
4449 # Accept absolute paths.
4450 [\\/]* | ?:[\\/]*)
4451 re_direlt='/[^/][^/]*/\.\./'
4452 # Canonicalize the pathname of ld
4453 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4454 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4455 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4456 done
4457 test -z "$LD" && LD="$ac_prog"
4458 ;;
4459 "")
4460 # If it fails, then pretend we aren't using GCC.
4461 ac_prog=ld
4462 ;;
4463 *)
4464 # If it is relative, then search for the first ld in PATH.
4465 with_gnu_ld=unknown
4466 ;;
4467 esac
4468 elif test "$with_gnu_ld" = yes; then
4469 echo "$as_me:$LINENO: checking for GNU ld" >&5
4470 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4471 else
4472 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4473 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4474 fi
4475 if test "${lt_cv_path_LD+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478 if test -z "$LD"; then
4479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4480 for ac_dir in $PATH; do
4481 IFS="$lt_save_ifs"
4482 test -z "$ac_dir" && ac_dir=.
4483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4484 lt_cv_path_LD="$ac_dir/$ac_prog"
4485 # Check to see if the program is GNU ld. I'd rather use --version,
4486 # but apparently some variants of GNU ld only accept -v.
4487 # Break only if it was the GNU/non-GNU ld that we prefer.
4488 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4489 *GNU* | *'with BFD'*)
4490 test "$with_gnu_ld" != no && break
4491 ;;
4492 *)
4493 test "$with_gnu_ld" != yes && break
4494 ;;
4495 esac
4496 fi
4497 done
4498 IFS="$lt_save_ifs"
4499 else
4500 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4501 fi
4502 fi
4503
4504 LD="$lt_cv_path_LD"
4505 if test -n "$LD"; then
4506 echo "$as_me:$LINENO: result: $LD" >&5
4507 echo "${ECHO_T}$LD" >&6
4508 else
4509 echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4511 fi
4512 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4513 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4514 { (exit 1); exit 1; }; }
4515 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4516 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4517 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4521 case `$LD -v 2>&1 </dev/null` in
4522 *GNU* | *'with BFD'*)
4523 lt_cv_prog_gnu_ld=yes
4524 ;;
4525 *)
4526 lt_cv_prog_gnu_ld=no
4527 ;;
4528 esac
4529 fi
4530 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4531 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4532 with_gnu_ld=$lt_cv_prog_gnu_ld
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4544 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4545 if test "${lt_cv_path_NM+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 if test -n "$NM"; then
4549 # Let the user override the test.
4550 lt_cv_path_NM="$NM"
4551 else
4552 lt_nm_to_check="${ac_tool_prefix}nm"
4553 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4554 lt_nm_to_check="$lt_nm_to_check nm"
4555 fi
4556 for lt_tmp_nm in $lt_nm_to_check; do
4557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4558 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4559 IFS="$lt_save_ifs"
4560 test -z "$ac_dir" && ac_dir=.
4561 tmp_nm="$ac_dir/$lt_tmp_nm"
4562 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4563 # Check to see if the nm accepts a BSD-compat flag.
4564 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4565 # nm: unknown option "B" ignored
4566 # Tru64's nm complains that /dev/null is an invalid object file
4567 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4568 */dev/null* | *'Invalid file or object type'*)
4569 lt_cv_path_NM="$tmp_nm -B"
4570 break
4571 ;;
4572 *)
4573 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4574 */dev/null*)
4575 lt_cv_path_NM="$tmp_nm -p"
4576 break
4577 ;;
4578 *)
4579 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4580 continue # so that we can try to find one that supports BSD flags
4581 ;;
4582 esac
4583 ;;
4584 esac
4585 fi
4586 done
4587 IFS="$lt_save_ifs"
4588 done
4589 : ${lt_cv_path_NM=no}
4590 fi
4591 fi
4592 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4593 echo "${ECHO_T}$lt_cv_path_NM" >&6
4594 if test "$lt_cv_path_NM" != "no"; then
4595 NM="$lt_cv_path_NM"
4596 else
4597 # Didn't find any BSD compatible name lister, look for dumpbin.
4598 if test -n "$ac_tool_prefix"; then
4599 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4600 do
4601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4603 echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4605 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608 if test -n "$DUMPBIN"; then
4609 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622 done
4623 done
4624
4625 fi
4626 fi
4627 DUMPBIN=$ac_cv_prog_DUMPBIN
4628 if test -n "$DUMPBIN"; then
4629 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4630 echo "${ECHO_T}$DUMPBIN" >&6
4631 else
4632 echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6
4634 fi
4635
4636 test -n "$DUMPBIN" && break
4637 done
4638 fi
4639 if test -z "$DUMPBIN"; then
4640 ac_ct_DUMPBIN=$DUMPBIN
4641 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4642 do
4643 # Extract the first word of "$ac_prog", so it can be a program name with args.
4644 set dummy $ac_prog; ac_word=$2
4645 echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4647 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 if test -n "$ac_ct_DUMPBIN"; then
4651 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666
4667 fi
4668 fi
4669 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4670 if test -n "$ac_ct_DUMPBIN"; then
4671 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4672 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4673 else
4674 echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4676 fi
4677
4678 test -n "$ac_ct_DUMPBIN" && break
4679 done
4680 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4681
4682 DUMPBIN=$ac_ct_DUMPBIN
4683 fi
4684
4685
4686 if test "$DUMPBIN" != ":"; then
4687 NM="$DUMPBIN"
4688 fi
4689 fi
4690 test -z "$NM" && NM=nm
4691
4692
4693
4694
4695
4696
4697 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4698 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4699 if test "${lt_cv_nm_interface+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 lt_cv_nm_interface="BSD nm"
4703 echo "int some_variable = 0;" > conftest.$ac_ext
4704 (eval echo "\"\$as_me:4704: $ac_compile\"" >&5)
4705 (eval "$ac_compile" 2>conftest.err)
4706 cat conftest.err >&5
4707 (eval echo "\"\$as_me:4707: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4708 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4709 cat conftest.err >&5
4710 (eval echo "\"\$as_me:4710: output\"" >&5)
4711 cat conftest.out >&5
4712 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4713 lt_cv_nm_interface="MS dumpbin"
4714 fi
4715 rm -f conftest*
4716 fi
4717 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4718 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4719
4720 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4721 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4722 LN_S=$as_ln_s
4723 if test "$LN_S" = "ln -s"; then
4724 echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6
4726 else
4727 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4728 echo "${ECHO_T}no, using $LN_S" >&6
4729 fi
4730
4731 # find the maximum length of command line arguments
4732 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4733 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4734 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737 i=0
4738 teststring="ABCD"
4739
4740 case $build_os in
4741 msdosdjgpp*)
4742 # On DJGPP, this test can blow up pretty badly due to problems in libc
4743 # (any single argument exceeding 2000 bytes causes a buffer overrun
4744 # during glob expansion). Even if it were fixed, the result of this
4745 # check would be larger than it should be.
4746 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4747 ;;
4748
4749 gnu*)
4750 # Under GNU Hurd, this test is not required because there is
4751 # no limit to the length of command line arguments.
4752 # Libtool will interpret -1 as no limit whatsoever
4753 lt_cv_sys_max_cmd_len=-1;
4754 ;;
4755
4756 cygwin* | mingw*)
4757 # On Win9x/ME, this test blows up -- it succeeds, but takes
4758 # about 5 minutes as the teststring grows exponentially.
4759 # Worse, since 9x/ME are not pre-emptively multitasking,
4760 # you end up with a "frozen" computer, even though with patience
4761 # the test eventually succeeds (with a max line length of 256k).
4762 # Instead, let's just punt: use the minimum linelength reported by
4763 # all of the supported platforms: 8192 (on NT/2K/XP).
4764 lt_cv_sys_max_cmd_len=8192;
4765 ;;
4766
4767 amigaos*)
4768 # On AmigaOS with pdksh, this test takes hours, literally.
4769 # So we just punt and use a minimum line length of 8192.
4770 lt_cv_sys_max_cmd_len=8192;
4771 ;;
4772
4773 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4774 # This has been around since 386BSD, at least. Likely further.
4775 if test -x /sbin/sysctl; then
4776 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4777 elif test -x /usr/sbin/sysctl; then
4778 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4779 else
4780 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4781 fi
4782 # And add a safety zone
4783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4785 ;;
4786
4787 interix*)
4788 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4789 lt_cv_sys_max_cmd_len=196608
4790 ;;
4791
4792 osf*)
4793 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4794 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4795 # nice to cause kernel panics so lets avoid the loop below.
4796 # First set a reasonable default.
4797 lt_cv_sys_max_cmd_len=16384
4798 #
4799 if test -x /sbin/sysconfig; then
4800 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4801 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4802 esac
4803 fi
4804 ;;
4805 sco3.2v5*)
4806 lt_cv_sys_max_cmd_len=102400
4807 ;;
4808 sysv5* | sco5v6* | sysv4.2uw2*)
4809 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4810 if test -n "$kargmax"; then
4811 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4812 else
4813 lt_cv_sys_max_cmd_len=32768
4814 fi
4815 ;;
4816 *)
4817 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4818 if test -n $lt_cv_sys_max_cmd_len; then
4819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4821 else
4822 # Make teststring a little bigger before we do anything with it.
4823 # a 1K string should be a reasonable start.
4824 for i in 1 2 3 4 5 6 7 8 ; do
4825 teststring=$teststring$teststring
4826 done
4827 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4828 # If test is not a shell built-in, we'll probably end up computing a
4829 # maximum length that is only half of the actual maximum length, but
4830 # we can't tell.
4831 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4832 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4833 test $i != 17 # 1/2 MB should be enough
4834 do
4835 i=`expr $i + 1`
4836 teststring=$teststring$teststring
4837 done
4838 # Only check the string length outside the loop.
4839 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4840 teststring=
4841 # Add a significant safety factor because C++ compilers can tack on
4842 # massive amounts of additional arguments before passing them to the
4843 # linker. It appears as though 1/2 is a usable value.
4844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4845 fi
4846 ;;
4847 esac
4848
4849 fi
4850
4851 if test -n $lt_cv_sys_max_cmd_len ; then
4852 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4853 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4854 else
4855 echo "$as_me:$LINENO: result: none" >&5
4856 echo "${ECHO_T}none" >&6
4857 fi
4858 max_cmd_len=$lt_cv_sys_max_cmd_len
4859
4860
4861
4862
4863
4864
4865
4866 : ${CP="cp -f"}
4867 : ${MV="mv -f"}
4868 : ${RM="rm -f"}
4869
4870 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4871 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4872 # Try some XSI features
4873 xsi_shell=no
4874 ( _lt_dummy="a/b/c"
4875 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4876 = c,a/b,, ) >/dev/null 2>&1 \
4877 && xsi_shell=yes
4878 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4879 echo "${ECHO_T}$xsi_shell" >&6
4880
4881
4882 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4883 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4884 lt_shell_append=no
4885 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4886 >/dev/null 2>&1 \
4887 && lt_shell_append=yes
4888 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4889 echo "${ECHO_T}$lt_shell_append" >&6
4890
4891
4892 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4893 lt_unset=unset
4894 else
4895 lt_unset=false
4896 fi
4897
4898
4899
4900
4901
4902 # test EBCDIC or ASCII
4903 case `echo X|tr X '\101'` in
4904 A) # ASCII based system
4905 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4906 lt_SP2NL='tr \040 \012'
4907 lt_NL2SP='tr \015\012 \040\040'
4908 ;;
4909 *) # EBCDIC based system
4910 lt_SP2NL='tr \100 \n'
4911 lt_NL2SP='tr \r\n \100\100'
4912 ;;
4913 esac
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4924 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4925 if test "${lt_cv_ld_reload_flag+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 lt_cv_ld_reload_flag='-r'
4929 fi
4930 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4931 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4932 reload_flag=$lt_cv_ld_reload_flag
4933 case $reload_flag in
4934 "" | " "*) ;;
4935 *) reload_flag=" $reload_flag" ;;
4936 esac
4937 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4938 case $host_os in
4939 darwin*)
4940 if test "$GCC" = yes; then
4941 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4942 else
4943 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4944 fi
4945 ;;
4946 esac
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4958 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4959 if test "${lt_cv_deplibs_check_method+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 lt_cv_file_magic_cmd='$MAGIC_CMD'
4963 lt_cv_file_magic_test_file=
4964 lt_cv_deplibs_check_method='unknown'
4965 # Need to set the preceding variable on all platforms that support
4966 # interlibrary dependencies.
4967 # 'none' -- dependencies not supported.
4968 # `unknown' -- same as none, but documents that we really don't know.
4969 # 'pass_all' -- all dependencies passed with no checks.
4970 # 'test_compile' -- check by making test program.
4971 # 'file_magic [[regex]]' -- check by looking for files in library path
4972 # which responds to the $file_magic_cmd with a given extended regex.
4973 # If you have `file' or equivalent on your system and you're not sure
4974 # whether `pass_all' will *always* work, you probably want this one.
4975
4976 case $host_os in
4977 aix[4-9]*)
4978 lt_cv_deplibs_check_method=pass_all
4979 ;;
4980
4981 beos*)
4982 lt_cv_deplibs_check_method=pass_all
4983 ;;
4984
4985 bsdi[45]*)
4986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4987 lt_cv_file_magic_cmd='/usr/bin/file -L'
4988 lt_cv_file_magic_test_file=/shlib/libc.so
4989 ;;
4990
4991 cygwin*)
4992 # func_win32_libid is a shell function defined in ltmain.sh
4993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4994 lt_cv_file_magic_cmd='func_win32_libid'
4995 ;;
4996
4997 mingw* | pw32*)
4998 # Base MSYS/MinGW do not provide the 'file' command needed by
4999 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5000 # unless we find 'file', for example because we are cross-compiling.
5001 if ( file / ) >/dev/null 2>&1; then
5002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5003 lt_cv_file_magic_cmd='func_win32_libid'
5004 else
5005 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5006 lt_cv_file_magic_cmd='$OBJDUMP -f'
5007 fi
5008 ;;
5009
5010 darwin* | rhapsody*)
5011 lt_cv_deplibs_check_method=pass_all
5012 ;;
5013
5014 freebsd* | dragonfly*)
5015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5016 case $host_cpu in
5017 i*86 )
5018 # Not sure whether the presence of OpenBSD here was a mistake.
5019 # Let's accept both of them until this is cleared up.
5020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5021 lt_cv_file_magic_cmd=/usr/bin/file
5022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5023 ;;
5024 esac
5025 else
5026 lt_cv_deplibs_check_method=pass_all
5027 fi
5028 ;;
5029
5030 gnu*)
5031 lt_cv_deplibs_check_method=pass_all
5032 ;;
5033
5034 hpux10.20* | hpux11*)
5035 lt_cv_file_magic_cmd=/usr/bin/file
5036 case $host_cpu in
5037 ia64*)
5038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5039 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5040 ;;
5041 hppa*64*)
5042 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]'
5043 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5044 ;;
5045 *)
5046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5047 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5048 ;;
5049 esac
5050 ;;
5051
5052 interix[3-9]*)
5053 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5055 ;;
5056
5057 irix5* | irix6* | nonstopux*)
5058 case $LD in
5059 *-32|*"-32 ") libmagic=32-bit;;
5060 *-n32|*"-n32 ") libmagic=N32;;
5061 *-64|*"-64 ") libmagic=64-bit;;
5062 *) libmagic=never-match;;
5063 esac
5064 lt_cv_deplibs_check_method=pass_all
5065 ;;
5066
5067 # This must be Linux ELF.
5068 linux* | k*bsd*-gnu)
5069 lt_cv_deplibs_check_method=pass_all
5070 ;;
5071
5072 netbsd*)
5073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5075 else
5076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5077 fi
5078 ;;
5079
5080 newos6*)
5081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5082 lt_cv_file_magic_cmd=/usr/bin/file
5083 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5084 ;;
5085
5086 *nto* | *qnx*)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
5089
5090 openbsd*)
5091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5093 else
5094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5095 fi
5096 ;;
5097
5098 osf3* | osf4* | osf5*)
5099 lt_cv_deplibs_check_method=pass_all
5100 ;;
5101
5102 rdos*)
5103 lt_cv_deplibs_check_method=pass_all
5104 ;;
5105
5106 solaris*)
5107 lt_cv_deplibs_check_method=pass_all
5108 ;;
5109
5110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5111 lt_cv_deplibs_check_method=pass_all
5112 ;;
5113
5114 sysv4 | sysv4.3*)
5115 case $host_vendor in
5116 motorola)
5117 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]'
5118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5119 ;;
5120 ncr)
5121 lt_cv_deplibs_check_method=pass_all
5122 ;;
5123 sequent)
5124 lt_cv_file_magic_cmd='/bin/file'
5125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5126 ;;
5127 sni)
5128 lt_cv_file_magic_cmd='/bin/file'
5129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5130 lt_cv_file_magic_test_file=/lib/libc.so
5131 ;;
5132 siemens)
5133 lt_cv_deplibs_check_method=pass_all
5134 ;;
5135 pc)
5136 lt_cv_deplibs_check_method=pass_all
5137 ;;
5138 esac
5139 ;;
5140
5141 tpf*)
5142 lt_cv_deplibs_check_method=pass_all
5143 ;;
5144 esac
5145
5146 fi
5147 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5148 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5149 file_magic_cmd=$lt_cv_file_magic_cmd
5150 deplibs_check_method=$lt_cv_deplibs_check_method
5151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5166 set dummy ${ac_tool_prefix}ar; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_prog_AR+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 if test -n "$AR"; then
5173 ac_cv_prog_AR="$AR" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_prog_AR="${ac_tool_prefix}ar"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186 done
5187 done
5188
5189 fi
5190 fi
5191 AR=$ac_cv_prog_AR
5192 if test -n "$AR"; then
5193 echo "$as_me:$LINENO: result: $AR" >&5
5194 echo "${ECHO_T}$AR" >&6
5195 else
5196 echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6
5198 fi
5199
5200 fi
5201 if test -z "$ac_cv_prog_AR"; then
5202 ac_ct_AR=$AR
5203 # Extract the first word of "ar", so it can be a program name with args.
5204 set dummy ar; ac_word=$2
5205 echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 if test -n "$ac_ct_AR"; then
5211 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_ac_ct_AR="ar"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226
5227 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5228 fi
5229 fi
5230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5231 if test -n "$ac_ct_AR"; then
5232 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5233 echo "${ECHO_T}$ac_ct_AR" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5237 fi
5238
5239 AR=$ac_ct_AR
5240 else
5241 AR="$ac_cv_prog_AR"
5242 fi
5243
5244 test -z "$AR" && AR=ar
5245 test -z "$AR_FLAGS" && AR_FLAGS=cru
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257 if test -n "$ac_tool_prefix"; then
5258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5259 set dummy ${ac_tool_prefix}strip; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_prog_STRIP+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 if test -n "$STRIP"; then
5266 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
5279 done
5280 done
5281
5282 fi
5283 fi
5284 STRIP=$ac_cv_prog_STRIP
5285 if test -n "$STRIP"; then
5286 echo "$as_me:$LINENO: result: $STRIP" >&5
5287 echo "${ECHO_T}$STRIP" >&6
5288 else
5289 echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6
5291 fi
5292
5293 fi
5294 if test -z "$ac_cv_prog_STRIP"; then
5295 ac_ct_STRIP=$STRIP
5296 # Extract the first word of "strip", so it can be a program name with args.
5297 set dummy strip; ac_word=$2
5298 echo "$as_me:$LINENO: checking for $ac_word" >&5
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303 if test -n "$ac_ct_STRIP"; then
5304 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_STRIP="strip"
5314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317 done
5318 done
5319
5320 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5321 fi
5322 fi
5323 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5324 if test -n "$ac_ct_STRIP"; then
5325 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5326 echo "${ECHO_T}$ac_ct_STRIP" >&6
5327 else
5328 echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5330 fi
5331
5332 STRIP=$ac_ct_STRIP
5333 else
5334 STRIP="$ac_cv_prog_STRIP"
5335 fi
5336
5337 test -z "$STRIP" && STRIP=:
5338
5339
5340
5341
5342
5343
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5347 echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349 if test "${ac_cv_prog_RANLIB+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352 if test -n "$RANLIB"; then
5353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368
5369 fi
5370 fi
5371 RANLIB=$ac_cv_prog_RANLIB
5372 if test -n "$RANLIB"; then
5373 echo "$as_me:$LINENO: result: $RANLIB" >&5
5374 echo "${ECHO_T}$RANLIB" >&6
5375 else
5376 echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6
5378 fi
5379
5380 fi
5381 if test -z "$ac_cv_prog_RANLIB"; then
5382 ac_ct_RANLIB=$RANLIB
5383 # Extract the first word of "ranlib", so it can be a program name with args.
5384 set dummy ranlib; ac_word=$2
5385 echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5387 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390 if test -n "$ac_ct_RANLIB"; then
5391 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_ac_ct_RANLIB="ranlib"
5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5403 fi
5404 done
5405 done
5406
5407 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5408 fi
5409 fi
5410 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5411 if test -n "$ac_ct_RANLIB"; then
5412 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5413 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5414 else
5415 echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6
5417 fi
5418
5419 RANLIB=$ac_ct_RANLIB
5420 else
5421 RANLIB="$ac_cv_prog_RANLIB"
5422 fi
5423
5424 test -z "$RANLIB" && RANLIB=:
5425
5426
5427
5428
5429
5430
5431 # Determine commands to create old-style static archives.
5432 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5433 old_postinstall_cmds='chmod 644 $oldlib'
5434 old_postuninstall_cmds=
5435
5436 if test -n "$RANLIB"; then
5437 case $host_os in
5438 openbsd*)
5439 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5440 ;;
5441 *)
5442 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5443 ;;
5444 esac
5445 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5446 fi
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481 # If no C compiler was specified, use CC.
5482 LTCC=${LTCC-"$CC"}
5483
5484 # If no C compiler flags were specified, use CFLAGS.
5485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5486
5487 # Allow CC to be a program name with arguments.
5488 compiler=$CC
5489
5490
5491 # Check for command to grab the raw symbol name followed by C symbol from nm.
5492 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5493 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5494 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497
5498 # These are sane defaults that work on at least a few old systems.
5499 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5500
5501 # Character class describing NM global symbol codes.
5502 symcode='[BCDEGRST]'
5503
5504 # Regexp to match symbols that can be accessed directly from C.
5505 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5506
5507 # Define system-specific variables.
5508 case $host_os in
5509 aix*)
5510 symcode='[BCDT]'
5511 ;;
5512 cygwin* | mingw* | pw32*)
5513 symcode='[ABCDGISTW]'
5514 ;;
5515 hpux*)
5516 if test "$host_cpu" = ia64; then
5517 symcode='[ABCDEGRST]'
5518 fi
5519 ;;
5520 irix* | nonstopux*)
5521 symcode='[BCDEGRST]'
5522 ;;
5523 osf*)
5524 symcode='[BCDEGQRST]'
5525 ;;
5526 solaris*)
5527 symcode='[BDRT]'
5528 ;;
5529 sco3.2v5*)
5530 symcode='[DT]'
5531 ;;
5532 sysv4.2uw2*)
5533 symcode='[DT]'
5534 ;;
5535 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5536 symcode='[ABDT]'
5537 ;;
5538 sysv4)
5539 symcode='[DFNSTU]'
5540 ;;
5541 esac
5542
5543 # If we're using GNU nm, then use its standard symbol codes.
5544 case `$NM -V 2>&1` in
5545 *GNU* | *'with BFD'*)
5546 symcode='[ABCDGIRSTW]' ;;
5547 esac
5548
5549 # Transform an extracted symbol line into a proper C declaration.
5550 # Some systems (esp. on ia64) link data and code symbols differently,
5551 # so use this general approach.
5552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5553
5554 # Transform an extracted symbol line into symbol name and symbol address
5555 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5556
5557 # Handle CRLF in mingw tool chain
5558 opt_cr=
5559 case $build_os in
5560 mingw*)
5561 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5562 ;;
5563 esac
5564
5565 # Try without a prefix underscore, then with it.
5566 for ac_symprfx in "" "_"; do
5567
5568 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5569 symxfrm="\\1 $ac_symprfx\\2 \\2"
5570
5571 # Write the raw and C identifiers.
5572 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5573 # Fake it for dumpbin and say T for any non-static function
5574 # and D for any global variable.
5575 # Also find C++ and __fastcall symbols from MSVC++,
5576 # which start with @ or ?.
5577 lt_cv_sys_global_symbol_pipe="$AWK '"\
5578 " {last_section=section; section=\$ 3};"\
5579 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5580 " \$ 0!~/External *\|/{next};"\
5581 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5582 " {if(hide[section]) next};"\
5583 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5584 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5585 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5586 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5587 " ' prfx=^$ac_symprfx"
5588 else
5589 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5590 fi
5591
5592 # Check to see that the pipe works correctly.
5593 pipe_works=no
5594
5595 rm -f conftest*
5596 cat > conftest.$ac_ext <<_LT_EOF
5597 #ifdef __cplusplus
5598 extern "C" {
5599 #endif
5600 char nm_test_var;
5601 void nm_test_func(void);
5602 void nm_test_func(void){}
5603 #ifdef __cplusplus
5604 }
5605 #endif
5606 int main(){nm_test_var='a';nm_test_func();return(0);}
5607 _LT_EOF
5608
5609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 (eval $ac_compile) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; then
5614 # Now try to grab the symbols.
5615 nlist=conftest.nm
5616 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5617 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && test -s "$nlist"; then
5621 # Try sorting and uniquifying the output.
5622 if sort "$nlist" | uniq > "$nlist"T; then
5623 mv -f "$nlist"T "$nlist"
5624 else
5625 rm -f "$nlist"T
5626 fi
5627
5628 # Make sure that we snagged all the symbols we need.
5629 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5630 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5631 cat <<_LT_EOF > conftest.$ac_ext
5632 #ifdef __cplusplus
5633 extern "C" {
5634 #endif
5635
5636 _LT_EOF
5637 # Now generate the symbol file.
5638 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5639
5640 cat <<_LT_EOF >> conftest.$ac_ext
5641
5642 /* The mapping between symbol names and symbols. */
5643 const struct {
5644 const char *name;
5645 void *address;
5646 }
5647 lt__PROGRAM__LTX_preloaded_symbols[] =
5648 {
5649 { "@PROGRAM@", (void *) 0 },
5650 _LT_EOF
5651 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5652 cat <<\_LT_EOF >> conftest.$ac_ext
5653 {0, (void *) 0}
5654 };
5655
5656 /* This works around a problem in FreeBSD linker */
5657 #ifdef FREEBSD_WORKAROUND
5658 static const void *lt_preloaded_setup() {
5659 return lt__PROGRAM__LTX_preloaded_symbols;
5660 }
5661 #endif
5662
5663 #ifdef __cplusplus
5664 }
5665 #endif
5666 _LT_EOF
5667 # Now try linking the two files.
5668 mv conftest.$ac_objext conftstm.$ac_objext
5669 lt_save_LIBS="$LIBS"
5670 lt_save_CFLAGS="$CFLAGS"
5671 LIBS="conftstm.$ac_objext"
5672 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 (eval $ac_link) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5678 pipe_works=yes
5679 fi
5680 LIBS="$lt_save_LIBS"
5681 CFLAGS="$lt_save_CFLAGS"
5682 else
5683 echo "cannot find nm_test_func in $nlist" >&5
5684 fi
5685 else
5686 echo "cannot find nm_test_var in $nlist" >&5
5687 fi
5688 else
5689 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5690 fi
5691 else
5692 echo "$progname: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 fi
5695 rm -f conftest* conftst*
5696
5697 # Do not use the global_symbol_pipe unless it works.
5698 if test "$pipe_works" = yes; then
5699 break
5700 else
5701 lt_cv_sys_global_symbol_pipe=
5702 fi
5703 done
5704
5705 fi
5706
5707 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5708 lt_cv_sys_global_symbol_to_cdecl=
5709 fi
5710 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5711 echo "$as_me:$LINENO: result: failed" >&5
5712 echo "${ECHO_T}failed" >&6
5713 else
5714 echo "$as_me:$LINENO: result: ok" >&5
5715 echo "${ECHO_T}ok" >&6
5716 fi
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5735 if test "${enable_libtool_lock+set}" = set; then
5736 enableval="$enable_libtool_lock"
5737
5738 fi;
5739 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5740
5741 # Some flags need to be propagated to the compiler or linker for good
5742 # libtool support.
5743 case $host in
5744 ia64-*-hpux*)
5745 # Find out which ABI we are using.
5746 echo 'int i;' > conftest.$ac_ext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; then
5752 case `/usr/bin/file conftest.$ac_objext` in
5753 *ELF-32*)
5754 HPUX_IA64_MODE="32"
5755 ;;
5756 *ELF-64*)
5757 HPUX_IA64_MODE="64"
5758 ;;
5759 esac
5760 fi
5761 rm -rf conftest*
5762 ;;
5763 *-*-irix6*)
5764 # Find out which ABI we are using.
5765 echo '#line 5765 "configure"' > conftest.$ac_ext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; then
5771 if test "$lt_cv_prog_gnu_ld" = yes; then
5772 case `/usr/bin/file conftest.$ac_objext` in
5773 *32-bit*)
5774 LD="${LD-ld} -melf32bsmip"
5775 ;;
5776 *N32*)
5777 LD="${LD-ld} -melf32bmipn32"
5778 ;;
5779 *64-bit*)
5780 LD="${LD-ld} -melf64bmip"
5781 ;;
5782 esac
5783 else
5784 case `/usr/bin/file conftest.$ac_objext` in
5785 *32-bit*)
5786 LD="${LD-ld} -32"
5787 ;;
5788 *N32*)
5789 LD="${LD-ld} -n32"
5790 ;;
5791 *64-bit*)
5792 LD="${LD-ld} -64"
5793 ;;
5794 esac
5795 fi
5796 fi
5797 rm -rf conftest*
5798 ;;
5799
5800 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5801 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5802 # Find out which ABI we are using.
5803 echo 'int i;' > conftest.$ac_ext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; then
5809 case `/usr/bin/file conftest.o` in
5810 *32-bit*)
5811 case $host in
5812 x86_64-*kfreebsd*-gnu)
5813 LD="${LD-ld} -m elf_i386_fbsd"
5814 ;;
5815 x86_64-*linux*)
5816 LD="${LD-ld} -m elf_i386"
5817 ;;
5818 ppc64-*linux*|powerpc64-*linux*)
5819 LD="${LD-ld} -m elf32ppclinux"
5820 ;;
5821 s390x-*linux*)
5822 LD="${LD-ld} -m elf_s390"
5823 ;;
5824 sparc64-*linux*)
5825 LD="${LD-ld} -m elf32_sparc"
5826 ;;
5827 esac
5828 ;;
5829 *64-bit*)
5830 case $host in
5831 x86_64-*kfreebsd*-gnu)
5832 LD="${LD-ld} -m elf_x86_64_fbsd"
5833 ;;
5834 x86_64-*linux*)
5835 LD="${LD-ld} -m elf_x86_64"
5836 ;;
5837 ppc*-*linux*|powerpc*-*linux*)
5838 LD="${LD-ld} -m elf64ppc"
5839 ;;
5840 s390*-*linux*|s390*-*tpf*)
5841 LD="${LD-ld} -m elf64_s390"
5842 ;;
5843 sparc*-*linux*)
5844 LD="${LD-ld} -m elf64_sparc"
5845 ;;
5846 esac
5847 ;;
5848 esac
5849 fi
5850 rm -rf conftest*
5851 ;;
5852
5853 *-*-sco3.2v5*)
5854 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5855 SAVE_CFLAGS="$CFLAGS"
5856 CFLAGS="$CFLAGS -belf"
5857 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5858 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5859 if test "${lt_cv_cc_needs_belf+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862 ac_ext=c
5863 ac_cpp='$CPP $CPPFLAGS'
5864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5867
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h. */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874
5875 int
5876 main ()
5877 {
5878
5879 ;
5880 return 0;
5881 }
5882 _ACEOF
5883 rm -f conftest.$ac_objext conftest$ac_exeext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5885 (eval $ac_link) 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -z "$ac_c_werror_flag"
5893 || test ! -s conftest.err'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 (eval $ac_try) 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; } &&
5899 { ac_try='test -s conftest$ac_exeext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 (eval $ac_try) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 lt_cv_cc_needs_belf=yes
5906 else
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 lt_cv_cc_needs_belf=no
5911 fi
5912 rm -f conftest.err conftest.$ac_objext \
5913 conftest$ac_exeext conftest.$ac_ext
5914 ac_ext=c
5915 ac_cpp='$CPP $CPPFLAGS'
5916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5919
5920 fi
5921 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5922 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5923 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5924 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5925 CFLAGS="$SAVE_CFLAGS"
5926 fi
5927 ;;
5928 sparc*-*solaris*)
5929 # Find out which ABI we are using.
5930 echo 'int i;' > conftest.$ac_ext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5932 (eval $ac_compile) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; then
5936 case `/usr/bin/file conftest.o` in
5937 *64-bit*)
5938 case $lt_cv_prog_gnu_ld in
5939 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5940 *) LD="${LD-ld} -64" ;;
5941 esac
5942 ;;
5943 esac
5944 fi
5945 rm -rf conftest*
5946 ;;
5947 esac
5948
5949 need_locks="$enable_libtool_lock"
5950
5951 ac_ext=c
5952 ac_cpp='$CPP $CPPFLAGS'
5953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5956 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5957 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5958 # On Suns, sometimes $CPP names a directory.
5959 if test -n "$CPP" && test -d "$CPP"; then
5960 CPP=
5961 fi
5962 if test -z "$CPP"; then
5963 if test "${ac_cv_prog_CPP+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 # Double quotes because CPP needs to be expanded
5967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5968 do
5969 ac_preproc_ok=false
5970 for ac_c_preproc_warn_flag in '' yes
5971 do
5972 # Use a header file that comes with gcc, so configuring glibc
5973 # with a fresh cross-compiler works.
5974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5975 # <limits.h> exists even on freestanding compilers.
5976 # On the NeXT, cc -E runs the code through the compiler's parser,
5977 # not just through cpp. "Syntax error" is here to catch this case.
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #ifdef __STDC__
5985 # include <limits.h>
5986 #else
5987 # include <assert.h>
5988 #endif
5989 Syntax error
5990 _ACEOF
5991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } >/dev/null; then
5999 if test -s conftest.err; then
6000 ac_cpp_err=$ac_c_preproc_warn_flag
6001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6002 else
6003 ac_cpp_err=
6004 fi
6005 else
6006 ac_cpp_err=yes
6007 fi
6008 if test -z "$ac_cpp_err"; then
6009 :
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 # Broken: fails on valid input.
6015 continue
6016 fi
6017 rm -f conftest.err conftest.$ac_ext
6018
6019 # OK, works on sane cases. Now check whether non-existent headers
6020 # can be detected and how.
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <ac_nonexistent.h>
6028 _ACEOF
6029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } >/dev/null; then
6037 if test -s conftest.err; then
6038 ac_cpp_err=$ac_c_preproc_warn_flag
6039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6040 else
6041 ac_cpp_err=
6042 fi
6043 else
6044 ac_cpp_err=yes
6045 fi
6046 if test -z "$ac_cpp_err"; then
6047 # Broken: success on invalid input.
6048 continue
6049 else
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6052
6053 # Passes both tests.
6054 ac_preproc_ok=:
6055 break
6056 fi
6057 rm -f conftest.err conftest.$ac_ext
6058
6059 done
6060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6061 rm -f conftest.err conftest.$ac_ext
6062 if $ac_preproc_ok; then
6063 break
6064 fi
6065
6066 done
6067 ac_cv_prog_CPP=$CPP
6068
6069 fi
6070 CPP=$ac_cv_prog_CPP
6071 else
6072 ac_cv_prog_CPP=$CPP
6073 fi
6074 echo "$as_me:$LINENO: result: $CPP" >&5
6075 echo "${ECHO_T}$CPP" >&6
6076 ac_preproc_ok=false
6077 for ac_c_preproc_warn_flag in '' yes
6078 do
6079 # Use a header file that comes with gcc, so configuring glibc
6080 # with a fresh cross-compiler works.
6081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6082 # <limits.h> exists even on freestanding compilers.
6083 # On the NeXT, cc -E runs the code through the compiler's parser,
6084 # not just through cpp. "Syntax error" is here to catch this case.
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #ifdef __STDC__
6092 # include <limits.h>
6093 #else
6094 # include <assert.h>
6095 #endif
6096 Syntax error
6097 _ACEOF
6098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } >/dev/null; then
6106 if test -s conftest.err; then
6107 ac_cpp_err=$ac_c_preproc_warn_flag
6108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6109 else
6110 ac_cpp_err=
6111 fi
6112 else
6113 ac_cpp_err=yes
6114 fi
6115 if test -z "$ac_cpp_err"; then
6116 :
6117 else
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6120
6121 # Broken: fails on valid input.
6122 continue
6123 fi
6124 rm -f conftest.err conftest.$ac_ext
6125
6126 # OK, works on sane cases. Now check whether non-existent headers
6127 # can be detected and how.
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #include <ac_nonexistent.h>
6135 _ACEOF
6136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } >/dev/null; then
6144 if test -s conftest.err; then
6145 ac_cpp_err=$ac_c_preproc_warn_flag
6146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6147 else
6148 ac_cpp_err=
6149 fi
6150 else
6151 ac_cpp_err=yes
6152 fi
6153 if test -z "$ac_cpp_err"; then
6154 # Broken: success on invalid input.
6155 continue
6156 else
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160 # Passes both tests.
6161 ac_preproc_ok=:
6162 break
6163 fi
6164 rm -f conftest.err conftest.$ac_ext
6165
6166 done
6167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6168 rm -f conftest.err conftest.$ac_ext
6169 if $ac_preproc_ok; then
6170 :
6171 else
6172 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6173 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6174 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6175 See \`config.log' for more details." >&5
6176 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6177 See \`config.log' for more details." >&2;}
6178 { (exit 1); exit 1; }; }; }
6179 fi
6180
6181 ac_ext=c
6182 ac_cpp='$CPP $CPPFLAGS'
6183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186
6187
6188 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6189 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6190 if test "${ac_cv_header_stdc+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h. */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 #include <stdlib.h>
6200 #include <stdarg.h>
6201 #include <string.h>
6202 #include <float.h>
6203
6204 int
6205 main ()
6206 {
6207
6208 ;
6209 return 0;
6210 }
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214 (eval $ac_compile) 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -z "$ac_c_werror_flag"
6222 || test ! -s conftest.err'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 (eval $ac_try) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; } &&
6228 { ac_try='test -s conftest.$ac_objext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_header_stdc=yes
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 ac_cv_header_stdc=no
6240 fi
6241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6242
6243 if test $ac_cv_header_stdc = yes; then
6244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6245 cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h. */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251 #include <string.h>
6252
6253 _ACEOF
6254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6255 $EGREP "memchr" >/dev/null 2>&1; then
6256 :
6257 else
6258 ac_cv_header_stdc=no
6259 fi
6260 rm -f conftest*
6261
6262 fi
6263
6264 if test $ac_cv_header_stdc = yes; then
6265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 #include <stdlib.h>
6273
6274 _ACEOF
6275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6276 $EGREP "free" >/dev/null 2>&1; then
6277 :
6278 else
6279 ac_cv_header_stdc=no
6280 fi
6281 rm -f conftest*
6282
6283 fi
6284
6285 if test $ac_cv_header_stdc = yes; then
6286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6287 if test "$cross_compiling" = yes; then
6288 :
6289 else
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h. */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296 #include <ctype.h>
6297 #if ((' ' & 0x0FF) == 0x020)
6298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6300 #else
6301 # define ISLOWER(c) \
6302 (('a' <= (c) && (c) <= 'i') \
6303 || ('j' <= (c) && (c) <= 'r') \
6304 || ('s' <= (c) && (c) <= 'z'))
6305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6306 #endif
6307
6308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6309 int
6310 main ()
6311 {
6312 int i;
6313 for (i = 0; i < 256; i++)
6314 if (XOR (islower (i), ISLOWER (i))
6315 || toupper (i) != TOUPPER (i))
6316 exit(2);
6317 exit (0);
6318 }
6319 _ACEOF
6320 rm -f conftest$ac_exeext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6322 (eval $ac_link) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 :
6332 else
6333 echo "$as_me: program exited with status $ac_status" >&5
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 ( exit $ac_status )
6338 ac_cv_header_stdc=no
6339 fi
6340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6341 fi
6342 fi
6343 fi
6344 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6345 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6346 if test $ac_cv_header_stdc = yes; then
6347
6348 cat >>confdefs.h <<\_ACEOF
6349 #define STDC_HEADERS 1
6350 _ACEOF
6351
6352 fi
6353
6354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6365 inttypes.h stdint.h unistd.h
6366 do
6367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6368 echo "$as_me:$LINENO: checking for $ac_header" >&5
6369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 $ac_includes_default
6380
6381 #include <$ac_header>
6382 _ACEOF
6383 rm -f conftest.$ac_objext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try='test -s conftest.$ac_objext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 eval "$as_ac_Header=yes"
6406 else
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6409
6410 eval "$as_ac_Header=no"
6411 fi
6412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6413 fi
6414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6417 cat >>confdefs.h <<_ACEOF
6418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6419 _ACEOF
6420
6421 fi
6422
6423 done
6424
6425
6426
6427 for ac_header in dlfcn.h
6428 do
6429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6430 echo "$as_me:$LINENO: checking for $ac_header" >&5
6431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 $ac_includes_default
6442
6443 #include <$ac_header>
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6447 (eval $ac_compile) 2>conftest.er1
6448 ac_status=$?
6449 grep -v '^ *+' conftest.er1 >conftest.err
6450 rm -f conftest.er1
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try='test -z "$ac_c_werror_flag"
6455 || test ! -s conftest.err'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; } &&
6461 { ac_try='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6467 eval "$as_ac_Header=yes"
6468 else
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6471
6472 eval "$as_ac_Header=no"
6473 fi
6474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6475 fi
6476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6479 cat >>confdefs.h <<_ACEOF
6480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6481 _ACEOF
6482
6483 fi
6484
6485 done
6486
6487
6488
6489 # This can be used to rebuild libtool when needed
6490 LIBTOOL_DEPS="$ltmain"
6491
6492 # Always use our own libtool.
6493 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519 test -z "$LN_S" && LN_S="ln -s"
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534 if test -n "${ZSH_VERSION+set}" ; then
6535 setopt NO_GLOB_SUBST
6536 fi
6537
6538 echo "$as_me:$LINENO: checking for objdir" >&5
6539 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6540 if test "${lt_cv_objdir+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543 rm -f .libs 2>/dev/null
6544 mkdir .libs 2>/dev/null
6545 if test -d .libs; then
6546 lt_cv_objdir=.libs
6547 else
6548 # MS-DOS does not allow filenames that begin with a dot.
6549 lt_cv_objdir=_libs
6550 fi
6551 rmdir .libs 2>/dev/null
6552 fi
6553 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6554 echo "${ECHO_T}$lt_cv_objdir" >&6
6555 objdir=$lt_cv_objdir
6556
6557
6558
6559
6560
6561 cat >>confdefs.h <<_ACEOF
6562 #define LT_OBJDIR "$lt_cv_objdir/"
6563 _ACEOF
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581 case $host_os in
6582 aix3*)
6583 # AIX sometimes has problems with the GCC collect2 program. For some
6584 # reason, if we set the COLLECT_NAMES environment variable, the problems
6585 # vanish in a puff of smoke.
6586 if test "X${COLLECT_NAMES+set}" != Xset; then
6587 COLLECT_NAMES=
6588 export COLLECT_NAMES
6589 fi
6590 ;;
6591 esac
6592
6593 # Sed substitution that helps us do robust quoting. It backslashifies
6594 # metacharacters that are still active within double-quoted strings.
6595 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6596
6597 # Same as above, but do not quote variable references.
6598 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6599
6600 # Sed substitution to delay expansion of an escaped shell variable in a
6601 # double_quote_subst'ed string.
6602 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6603
6604 # Sed substitution to delay expansion of an escaped single quote.
6605 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6606
6607 # Sed substitution to avoid accidental globbing in evaled expressions
6608 no_glob_subst='s/\*/\\\*/g'
6609
6610 # Global variables:
6611 ofile=libtool
6612 can_build_shared=yes
6613
6614 # All known linkers require a `.a' archive for static linking (except MSVC,
6615 # which needs '.lib').
6616 libext=a
6617
6618 with_gnu_ld="$lt_cv_prog_gnu_ld"
6619
6620 old_CC="$CC"
6621 old_CFLAGS="$CFLAGS"
6622
6623 # Set sane defaults for various variables
6624 test -z "$CC" && CC=cc
6625 test -z "$LTCC" && LTCC=$CC
6626 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6627 test -z "$LD" && LD=ld
6628 test -z "$ac_objext" && ac_objext=o
6629
6630 for cc_temp in $compiler""; do
6631 case $cc_temp in
6632 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6633 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6634 \-*) ;;
6635 *) break;;
6636 esac
6637 done
6638 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6639
6640
6641 # Only perform the check for file, if the check method requires it
6642 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6643 case $deplibs_check_method in
6644 file_magic*)
6645 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6646 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6647 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6648 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 case $MAGIC_CMD in
6652 [\\/*] | ?:[\\/]*)
6653 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6654 ;;
6655 *)
6656 lt_save_MAGIC_CMD="$MAGIC_CMD"
6657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6658 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6659 for ac_dir in $ac_dummy; do
6660 IFS="$lt_save_ifs"
6661 test -z "$ac_dir" && ac_dir=.
6662 if test -f $ac_dir/${ac_tool_prefix}file; then
6663 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6664 if test -n "$file_magic_test_file"; then
6665 case $deplibs_check_method in
6666 "file_magic "*)
6667 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6669 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6670 $EGREP "$file_magic_regex" > /dev/null; then
6671 :
6672 else
6673 cat <<_LT_EOF 1>&2
6674
6675 *** Warning: the command libtool uses to detect shared libraries,
6676 *** $file_magic_cmd, produces output that libtool cannot recognize.
6677 *** The result is that libtool may fail to recognize shared libraries
6678 *** as such. This will affect the creation of libtool libraries that
6679 *** depend on shared libraries, but programs linked with such libtool
6680 *** libraries will work regardless of this problem. Nevertheless, you
6681 *** may want to report the problem to your system manager and/or to
6682 *** bug-libtool@gnu.org
6683
6684 _LT_EOF
6685 fi ;;
6686 esac
6687 fi
6688 break
6689 fi
6690 done
6691 IFS="$lt_save_ifs"
6692 MAGIC_CMD="$lt_save_MAGIC_CMD"
6693 ;;
6694 esac
6695 fi
6696
6697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6698 if test -n "$MAGIC_CMD"; then
6699 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6700 echo "${ECHO_T}$MAGIC_CMD" >&6
6701 else
6702 echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6
6704 fi
6705
6706
6707
6708
6709
6710 if test -z "$lt_cv_path_MAGIC_CMD"; then
6711 if test -n "$ac_tool_prefix"; then
6712 echo "$as_me:$LINENO: checking for file" >&5
6713 echo $ECHO_N "checking for file... $ECHO_C" >&6
6714 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 case $MAGIC_CMD in
6718 [\\/*] | ?:[\\/]*)
6719 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6720 ;;
6721 *)
6722 lt_save_MAGIC_CMD="$MAGIC_CMD"
6723 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6724 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6725 for ac_dir in $ac_dummy; do
6726 IFS="$lt_save_ifs"
6727 test -z "$ac_dir" && ac_dir=.
6728 if test -f $ac_dir/file; then
6729 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6730 if test -n "$file_magic_test_file"; then
6731 case $deplibs_check_method in
6732 "file_magic "*)
6733 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6734 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6735 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6736 $EGREP "$file_magic_regex" > /dev/null; then
6737 :
6738 else
6739 cat <<_LT_EOF 1>&2
6740
6741 *** Warning: the command libtool uses to detect shared libraries,
6742 *** $file_magic_cmd, produces output that libtool cannot recognize.
6743 *** The result is that libtool may fail to recognize shared libraries
6744 *** as such. This will affect the creation of libtool libraries that
6745 *** depend on shared libraries, but programs linked with such libtool
6746 *** libraries will work regardless of this problem. Nevertheless, you
6747 *** may want to report the problem to your system manager and/or to
6748 *** bug-libtool@gnu.org
6749
6750 _LT_EOF
6751 fi ;;
6752 esac
6753 fi
6754 break
6755 fi
6756 done
6757 IFS="$lt_save_ifs"
6758 MAGIC_CMD="$lt_save_MAGIC_CMD"
6759 ;;
6760 esac
6761 fi
6762
6763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6764 if test -n "$MAGIC_CMD"; then
6765 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6766 echo "${ECHO_T}$MAGIC_CMD" >&6
6767 else
6768 echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6
6770 fi
6771
6772
6773 else
6774 MAGIC_CMD=:
6775 fi
6776 fi
6777
6778 fi
6779 ;;
6780 esac
6781
6782 # Use C for the default configuration in the libtool script
6783
6784 lt_save_CC="$CC"
6785 ac_ext=c
6786 ac_cpp='$CPP $CPPFLAGS'
6787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6790
6791
6792 # Source file extension for C test sources.
6793 ac_ext=c
6794
6795 # Object file extension for compiled C test sources.
6796 objext=o
6797 objext=$objext
6798
6799 # Code to be used in simple compile tests
6800 lt_simple_compile_test_code="int some_variable = 0;"
6801
6802 # Code to be used in simple link tests
6803 lt_simple_link_test_code='int main(){return(0);}'
6804
6805
6806
6807
6808
6809
6810
6811 # If no C compiler was specified, use CC.
6812 LTCC=${LTCC-"$CC"}
6813
6814 # If no C compiler flags were specified, use CFLAGS.
6815 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6816
6817 # Allow CC to be a program name with arguments.
6818 compiler=$CC
6819
6820 # Save the default compiler, since it gets overwritten when the other
6821 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6822 compiler_DEFAULT=$CC
6823
6824 # save warnings/boilerplate of simple test code
6825 ac_outfile=conftest.$ac_objext
6826 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6827 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6828 _lt_compiler_boilerplate=`cat conftest.err`
6829 $RM conftest*
6830
6831 ac_outfile=conftest.$ac_objext
6832 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6833 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6834 _lt_linker_boilerplate=`cat conftest.err`
6835 $RM conftest*
6836
6837
6838 ## CAVEAT EMPTOR:
6839 ## There is no encapsulation within the following macros, do not change
6840 ## the running order or otherwise move them around unless you know exactly
6841 ## what you are doing...
6842 if test -n "$compiler"; then
6843
6844 lt_prog_compiler_no_builtin_flag=
6845
6846 if test "$GCC" = yes; then
6847 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6848
6849 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6850 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6851 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 lt_cv_prog_compiler_rtti_exceptions=no
6855 ac_outfile=conftest.$ac_objext
6856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6857 lt_compiler_flag="-fno-rtti -fno-exceptions"
6858 # Insert the option either (1) after the last *FLAGS variable, or
6859 # (2) before a word containing "conftest.", or (3) at the end.
6860 # Note that $ac_compile itself does not contain backslashes and begins
6861 # with a dollar sign (not a hyphen), so the echo should work correctly.
6862 # The option is referenced via a variable to avoid confusing sed.
6863 lt_compile=`echo "$ac_compile" | $SED \
6864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6866 -e 's:$: $lt_compiler_flag:'`
6867 (eval echo "\"\$as_me:6867: $lt_compile\"" >&5)
6868 (eval "$lt_compile" 2>conftest.err)
6869 ac_status=$?
6870 cat conftest.err >&5
6871 echo "$as_me:6871: \$? = $ac_status" >&5
6872 if (exit $ac_status) && test -s "$ac_outfile"; then
6873 # The compiler can only warn and ignore the option if not recognized
6874 # So say no if there are warnings other than the usual output.
6875 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6878 lt_cv_prog_compiler_rtti_exceptions=yes
6879 fi
6880 fi
6881 $RM conftest*
6882
6883 fi
6884 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6885 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6886
6887 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6888 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6889 else
6890 :
6891 fi
6892
6893 fi
6894
6895
6896
6897
6898
6899
6900 lt_prog_compiler_wl=
6901 lt_prog_compiler_pic=
6902 lt_prog_compiler_static=
6903
6904 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6905 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6906
6907 if test "$GCC" = yes; then
6908 lt_prog_compiler_wl='-Wl,'
6909 lt_prog_compiler_static='-static'
6910
6911 case $host_os in
6912 aix*)
6913 # All AIX code is PIC.
6914 if test "$host_cpu" = ia64; then
6915 # AIX 5 now supports IA64 processor
6916 lt_prog_compiler_static='-Bstatic'
6917 fi
6918 ;;
6919
6920 amigaos*)
6921 if test "$host_cpu" = m68k; then
6922 # FIXME: we need at least 68020 code to build shared libraries, but
6923 # adding the `-m68020' flag to GCC prevents building anything better,
6924 # like `-m68040'.
6925 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6926 fi
6927 ;;
6928
6929 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6930 # PIC is the default for these OSes.
6931 ;;
6932
6933 mingw* | cygwin* | pw32* | os2*)
6934 # This hack is so that the source file can tell whether it is being
6935 # built for inclusion in a dll (and should export symbols for example).
6936 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6937 # (--disable-auto-import) libraries
6938 lt_prog_compiler_pic='-DDLL_EXPORT'
6939 ;;
6940
6941 darwin* | rhapsody*)
6942 # PIC is the default on this platform
6943 # Common symbols not allowed in MH_DYLIB files
6944 lt_prog_compiler_pic='-fno-common'
6945 ;;
6946
6947 hpux*)
6948 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6949 # not for PA HP-UX.
6950 case $host_cpu in
6951 hppa*64*|ia64*)
6952 # +Z the default
6953 ;;
6954 *)
6955 lt_prog_compiler_pic='-fPIC'
6956 ;;
6957 esac
6958 ;;
6959
6960 interix[3-9]*)
6961 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6962 # Instead, we relocate shared libraries at runtime.
6963 ;;
6964
6965 msdosdjgpp*)
6966 # Just because we use GCC doesn't mean we suddenly get shared libraries
6967 # on systems that don't support them.
6968 lt_prog_compiler_can_build_shared=no
6969 enable_shared=no
6970 ;;
6971
6972 *nto* | *qnx*)
6973 # QNX uses GNU C++, but need to define -shared option too, otherwise
6974 # it will coredump.
6975 lt_prog_compiler_pic='-fPIC -shared'
6976 ;;
6977
6978 sysv4*MP*)
6979 if test -d /usr/nec; then
6980 lt_prog_compiler_pic=-Kconform_pic
6981 fi
6982 ;;
6983
6984 *)
6985 lt_prog_compiler_pic='-fPIC'
6986 ;;
6987 esac
6988 else
6989 # PORTME Check for flag to pass linker flags through the system compiler.
6990 case $host_os in
6991 aix*)
6992 lt_prog_compiler_wl='-Wl,'
6993 if test "$host_cpu" = ia64; then
6994 # AIX 5 now supports IA64 processor
6995 lt_prog_compiler_static='-Bstatic'
6996 else
6997 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6998 fi
6999 ;;
7000 darwin*)
7001 # PIC is the default on this platform
7002 # Common symbols not allowed in MH_DYLIB files
7003 case $cc_basename in
7004 xlc*)
7005 lt_prog_compiler_pic='-qnocommon'
7006 lt_prog_compiler_wl='-Wl,'
7007 ;;
7008 esac
7009 ;;
7010
7011 mingw* | cygwin* | pw32* | os2*)
7012 # This hack is so that the source file can tell whether it is being
7013 # built for inclusion in a dll (and should export symbols for example).
7014 lt_prog_compiler_pic='-DDLL_EXPORT'
7015 ;;
7016
7017 hpux9* | hpux10* | hpux11*)
7018 lt_prog_compiler_wl='-Wl,'
7019 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7020 # not for PA HP-UX.
7021 case $host_cpu in
7022 hppa*64*|ia64*)
7023 # +Z the default
7024 ;;
7025 *)
7026 lt_prog_compiler_pic='+Z'
7027 ;;
7028 esac
7029 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7030 lt_prog_compiler_static='${wl}-a ${wl}archive'
7031 ;;
7032
7033 irix5* | irix6* | nonstopux*)
7034 lt_prog_compiler_wl='-Wl,'
7035 # PIC (with -KPIC) is the default.
7036 lt_prog_compiler_static='-non_shared'
7037 ;;
7038
7039 linux* | k*bsd*-gnu)
7040 case $cc_basename in
7041 icc* | ecc*)
7042 lt_prog_compiler_wl='-Wl,'
7043 lt_prog_compiler_pic='-KPIC'
7044 lt_prog_compiler_static='-static'
7045 ;;
7046 pgcc* | pgf77* | pgf90* | pgf95*)
7047 # Portland Group compilers (*not* the Pentium gcc compiler,
7048 # which looks to be a dead project)
7049 lt_prog_compiler_wl='-Wl,'
7050 lt_prog_compiler_pic='-fpic'
7051 lt_prog_compiler_static='-Bstatic'
7052 ;;
7053 ccc*)
7054 lt_prog_compiler_wl='-Wl,'
7055 # All Alpha code is PIC.
7056 lt_prog_compiler_static='-non_shared'
7057 ;;
7058 *)
7059 case `$CC -V 2>&1 | sed 5q` in
7060 *Sun\ C*)
7061 # Sun C 5.9
7062 lt_prog_compiler_pic='-KPIC'
7063 lt_prog_compiler_static='-Bstatic'
7064 lt_prog_compiler_wl='-Wl,'
7065 ;;
7066 *Sun\ F*)
7067 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7068 lt_prog_compiler_pic='-KPIC'
7069 lt_prog_compiler_static='-Bstatic'
7070 lt_prog_compiler_wl=''
7071 ;;
7072 esac
7073 ;;
7074 esac
7075 ;;
7076
7077 newsos6)
7078 lt_prog_compiler_pic='-KPIC'
7079 lt_prog_compiler_static='-Bstatic'
7080 ;;
7081
7082 *nto* | *qnx*)
7083 # QNX uses GNU C++, but need to define -shared option too, otherwise
7084 # it will coredump.
7085 lt_prog_compiler_pic='-fPIC -shared'
7086 ;;
7087
7088 osf3* | osf4* | osf5*)
7089 lt_prog_compiler_wl='-Wl,'
7090 # All OSF/1 code is PIC.
7091 lt_prog_compiler_static='-non_shared'
7092 ;;
7093
7094 rdos*)
7095 lt_prog_compiler_static='-non_shared'
7096 ;;
7097
7098 solaris*)
7099 lt_prog_compiler_pic='-KPIC'
7100 lt_prog_compiler_static='-Bstatic'
7101 case $cc_basename in
7102 f77* | f90* | f95*)
7103 lt_prog_compiler_wl='-Qoption ld ';;
7104 *)
7105 lt_prog_compiler_wl='-Wl,';;
7106 esac
7107 ;;
7108
7109 sunos4*)
7110 lt_prog_compiler_wl='-Qoption ld '
7111 lt_prog_compiler_pic='-PIC'
7112 lt_prog_compiler_static='-Bstatic'
7113 ;;
7114
7115 sysv4 | sysv4.2uw2* | sysv4.3*)
7116 lt_prog_compiler_wl='-Wl,'
7117 lt_prog_compiler_pic='-KPIC'
7118 lt_prog_compiler_static='-Bstatic'
7119 ;;
7120
7121 sysv4*MP*)
7122 if test -d /usr/nec ;then
7123 lt_prog_compiler_pic='-Kconform_pic'
7124 lt_prog_compiler_static='-Bstatic'
7125 fi
7126 ;;
7127
7128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7129 lt_prog_compiler_wl='-Wl,'
7130 lt_prog_compiler_pic='-KPIC'
7131 lt_prog_compiler_static='-Bstatic'
7132 ;;
7133
7134 unicos*)
7135 lt_prog_compiler_wl='-Wl,'
7136 lt_prog_compiler_can_build_shared=no
7137 ;;
7138
7139 uts4*)
7140 lt_prog_compiler_pic='-pic'
7141 lt_prog_compiler_static='-Bstatic'
7142 ;;
7143
7144 *)
7145 lt_prog_compiler_can_build_shared=no
7146 ;;
7147 esac
7148 fi
7149
7150 case $host_os in
7151 # For platforms which do not support PIC, -DPIC is meaningless:
7152 *djgpp*)
7153 lt_prog_compiler_pic=
7154 ;;
7155 *)
7156 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7157 ;;
7158 esac
7159 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7160 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7161
7162
7163
7164
7165
7166
7167 #
7168 # Check to make sure the PIC flag actually works.
7169 #
7170 if test -n "$lt_prog_compiler_pic"; then
7171 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7172 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7173 if test "${lt_prog_compiler_pic_works+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176 lt_prog_compiler_pic_works=no
7177 ac_outfile=conftest.$ac_objext
7178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7179 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7180 # Insert the option either (1) after the last *FLAGS variable, or
7181 # (2) before a word containing "conftest.", or (3) at the end.
7182 # Note that $ac_compile itself does not contain backslashes and begins
7183 # with a dollar sign (not a hyphen), so the echo should work correctly.
7184 # The option is referenced via a variable to avoid confusing sed.
7185 lt_compile=`echo "$ac_compile" | $SED \
7186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7188 -e 's:$: $lt_compiler_flag:'`
7189 (eval echo "\"\$as_me:7189: $lt_compile\"" >&5)
7190 (eval "$lt_compile" 2>conftest.err)
7191 ac_status=$?
7192 cat conftest.err >&5
7193 echo "$as_me:7193: \$? = $ac_status" >&5
7194 if (exit $ac_status) && test -s "$ac_outfile"; then
7195 # The compiler can only warn and ignore the option if not recognized
7196 # So say no if there are warnings other than the usual output.
7197 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7200 lt_prog_compiler_pic_works=yes
7201 fi
7202 fi
7203 $RM conftest*
7204
7205 fi
7206 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7207 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7208
7209 if test x"$lt_prog_compiler_pic_works" = xyes; then
7210 case $lt_prog_compiler_pic in
7211 "" | " "*) ;;
7212 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7213 esac
7214 else
7215 lt_prog_compiler_pic=
7216 lt_prog_compiler_can_build_shared=no
7217 fi
7218
7219 fi
7220
7221
7222
7223
7224
7225
7226 #
7227 # Check to make sure the static flag actually works.
7228 #
7229 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7230 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7231 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7232 if test "${lt_prog_compiler_static_works+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235 lt_prog_compiler_static_works=no
7236 save_LDFLAGS="$LDFLAGS"
7237 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7238 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7239 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7240 # The linker can only warn and ignore the option if not recognized
7241 # So say no if there are warnings
7242 if test -s conftest.err; then
7243 # Append any errors to the config.log.
7244 cat conftest.err 1>&5
7245 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7247 if diff conftest.exp conftest.er2 >/dev/null; then
7248 lt_prog_compiler_static_works=yes
7249 fi
7250 else
7251 lt_prog_compiler_static_works=yes
7252 fi
7253 fi
7254 $RM conftest*
7255 LDFLAGS="$save_LDFLAGS"
7256
7257 fi
7258 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7259 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7260
7261 if test x"$lt_prog_compiler_static_works" = xyes; then
7262 :
7263 else
7264 lt_prog_compiler_static=
7265 fi
7266
7267
7268
7269
7270
7271
7272
7273 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7274 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7275 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 lt_cv_prog_compiler_c_o=no
7279 $RM -r conftest 2>/dev/null
7280 mkdir conftest
7281 cd conftest
7282 mkdir out
7283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7284
7285 lt_compiler_flag="-o out/conftest2.$ac_objext"
7286 # Insert the option either (1) after the last *FLAGS variable, or
7287 # (2) before a word containing "conftest.", or (3) at the end.
7288 # Note that $ac_compile itself does not contain backslashes and begins
7289 # with a dollar sign (not a hyphen), so the echo should work correctly.
7290 lt_compile=`echo "$ac_compile" | $SED \
7291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7293 -e 's:$: $lt_compiler_flag:'`
7294 (eval echo "\"\$as_me:7294: $lt_compile\"" >&5)
7295 (eval "$lt_compile" 2>out/conftest.err)
7296 ac_status=$?
7297 cat out/conftest.err >&5
7298 echo "$as_me:7298: \$? = $ac_status" >&5
7299 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7300 then
7301 # The compiler can only warn and ignore the option if not recognized
7302 # So say no if there are warnings
7303 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7304 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7305 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7306 lt_cv_prog_compiler_c_o=yes
7307 fi
7308 fi
7309 chmod u+w . 2>&5
7310 $RM conftest*
7311 # SGI C++ compiler will create directory out/ii_files/ for
7312 # template instantiation
7313 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7314 $RM out/* && rmdir out
7315 cd ..
7316 $RM -r conftest
7317 $RM conftest*
7318
7319 fi
7320 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7321 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7322
7323
7324
7325
7326
7327
7328 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7329 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7330 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 lt_cv_prog_compiler_c_o=no
7334 $RM -r conftest 2>/dev/null
7335 mkdir conftest
7336 cd conftest
7337 mkdir out
7338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7339
7340 lt_compiler_flag="-o out/conftest2.$ac_objext"
7341 # Insert the option either (1) after the last *FLAGS variable, or
7342 # (2) before a word containing "conftest.", or (3) at the end.
7343 # Note that $ac_compile itself does not contain backslashes and begins
7344 # with a dollar sign (not a hyphen), so the echo should work correctly.
7345 lt_compile=`echo "$ac_compile" | $SED \
7346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7348 -e 's:$: $lt_compiler_flag:'`
7349 (eval echo "\"\$as_me:7349: $lt_compile\"" >&5)
7350 (eval "$lt_compile" 2>out/conftest.err)
7351 ac_status=$?
7352 cat out/conftest.err >&5
7353 echo "$as_me:7353: \$? = $ac_status" >&5
7354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7355 then
7356 # The compiler can only warn and ignore the option if not recognized
7357 # So say no if there are warnings
7358 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7361 lt_cv_prog_compiler_c_o=yes
7362 fi
7363 fi
7364 chmod u+w . 2>&5
7365 $RM conftest*
7366 # SGI C++ compiler will create directory out/ii_files/ for
7367 # template instantiation
7368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7369 $RM out/* && rmdir out
7370 cd ..
7371 $RM -r conftest
7372 $RM conftest*
7373
7374 fi
7375 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7376 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7377
7378
7379
7380
7381 hard_links="nottested"
7382 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7383 # do not overwrite the value of need_locks provided by the user
7384 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7385 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7386 hard_links=yes
7387 $RM conftest*
7388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7389 touch conftest.a
7390 ln conftest.a conftest.b 2>&5 || hard_links=no
7391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7392 echo "$as_me:$LINENO: result: $hard_links" >&5
7393 echo "${ECHO_T}$hard_links" >&6
7394 if test "$hard_links" = no; then
7395 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7396 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7397 need_locks=warn
7398 fi
7399 else
7400 need_locks=no
7401 fi
7402
7403
7404
7405
7406
7407
7408 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7410
7411 runpath_var=
7412 allow_undefined_flag=
7413 always_export_symbols=no
7414 archive_cmds=
7415 archive_expsym_cmds=
7416 compiler_needs_object=no
7417 enable_shared_with_static_runtimes=no
7418 export_dynamic_flag_spec=
7419 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7420 hardcode_automatic=no
7421 hardcode_direct=no
7422 hardcode_direct_absolute=no
7423 hardcode_libdir_flag_spec=
7424 hardcode_libdir_flag_spec_ld=
7425 hardcode_libdir_separator=
7426 hardcode_minus_L=no
7427 hardcode_shlibpath_var=unsupported
7428 inherit_rpath=no
7429 link_all_deplibs=unknown
7430 module_cmds=
7431 module_expsym_cmds=
7432 old_archive_from_new_cmds=
7433 old_archive_from_expsyms_cmds=
7434 thread_safe_flag_spec=
7435 whole_archive_flag_spec=
7436 # include_expsyms should be a list of space-separated symbols to be *always*
7437 # included in the symbol list
7438 include_expsyms=
7439 # exclude_expsyms can be an extended regexp of symbols to exclude
7440 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7441 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7442 # as well as any symbol that contains `d'.
7443 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7444 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7445 # platforms (ab)use it in PIC code, but their linkers get confused if
7446 # the symbol is explicitly referenced. Since portable code cannot
7447 # rely on this symbol name, it's probably fine to never include it in
7448 # preloaded symbol tables.
7449 extract_expsyms_cmds=
7450
7451 case $host_os in
7452 cygwin* | mingw* | pw32*)
7453 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7454 # When not using gcc, we currently assume that we are using
7455 # Microsoft Visual C++.
7456 if test "$GCC" != yes; then
7457 with_gnu_ld=no
7458 fi
7459 ;;
7460 interix*)
7461 # we just hope/assume this is gcc and not c89 (= MSVC++)
7462 with_gnu_ld=yes
7463 ;;
7464 openbsd*)
7465 with_gnu_ld=no
7466 ;;
7467 esac
7468
7469 ld_shlibs=yes
7470 if test "$with_gnu_ld" = yes; then
7471 # If archive_cmds runs LD, not CC, wlarc should be empty
7472 wlarc='${wl}'
7473
7474 # Set some defaults for GNU ld with shared library support. These
7475 # are reset later if shared libraries are not supported. Putting them
7476 # here allows them to be overridden if necessary.
7477 runpath_var=LD_RUN_PATH
7478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7479 export_dynamic_flag_spec='${wl}--export-dynamic'
7480 # ancient GNU ld didn't support --whole-archive et. al.
7481 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7482 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7483 else
7484 whole_archive_flag_spec=
7485 fi
7486 supports_anon_versioning=no
7487 case `$LD -v 2>&1` in
7488 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7489 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7490 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7491 *\ 2.11.*) ;; # other 2.11 versions
7492 *) supports_anon_versioning=yes ;;
7493 esac
7494
7495 # See if GNU ld supports shared libraries.
7496 case $host_os in
7497 aix[3-9]*)
7498 # On AIX/PPC, the GNU linker is very broken
7499 if test "$host_cpu" != ia64; then
7500 ld_shlibs=no
7501 cat <<_LT_EOF 1>&2
7502
7503 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7504 *** to be unable to reliably create shared libraries on AIX.
7505 *** Therefore, libtool is disabling shared libraries support. If you
7506 *** really care for shared libraries, you may want to modify your PATH
7507 *** so that a non-GNU linker is found, and then restart.
7508
7509 _LT_EOF
7510 fi
7511 ;;
7512
7513 amigaos*)
7514 if test "$host_cpu" = m68k; then
7515 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)'
7516 hardcode_libdir_flag_spec='-L$libdir'
7517 hardcode_minus_L=yes
7518 fi
7519
7520 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7521 # that the semantics of dynamic libraries on AmigaOS, at least up
7522 # to version 4, is to share data among multiple programs linked
7523 # with the same dynamic library. Since this doesn't match the
7524 # behavior of shared libraries on other platforms, we can't use
7525 # them.
7526 ld_shlibs=no
7527 ;;
7528
7529 beos*)
7530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7531 allow_undefined_flag=unsupported
7532 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7533 # support --undefined. This deserves some investigation. FIXME
7534 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7535 else
7536 ld_shlibs=no
7537 fi
7538 ;;
7539
7540 cygwin* | mingw* | pw32*)
7541 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7542 # as there is no search path for DLLs.
7543 hardcode_libdir_flag_spec='-L$libdir'
7544 allow_undefined_flag=unsupported
7545 always_export_symbols=no
7546 enable_shared_with_static_runtimes=yes
7547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7548
7549 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7551 # If the export-symbols file already is a .def file (1st line
7552 # is EXPORTS), use it as is; otherwise, prepend...
7553 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7554 cp $export_symbols $output_objdir/$soname.def;
7555 else
7556 echo EXPORTS > $output_objdir/$soname.def;
7557 cat $export_symbols >> $output_objdir/$soname.def;
7558 fi~
7559 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7560 else
7561 ld_shlibs=no
7562 fi
7563 ;;
7564
7565 interix[3-9]*)
7566 hardcode_direct=no
7567 hardcode_shlibpath_var=no
7568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7569 export_dynamic_flag_spec='${wl}-E'
7570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7571 # Instead, shared libraries are loaded at an image base (0x10000000 by
7572 # default) and relocated if they conflict, which is a slow very memory
7573 # consuming and fragmenting process. To avoid this, we pick a random,
7574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7577 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'
7578 ;;
7579
7580 gnu* | linux* | tpf* | k*bsd*-gnu)
7581 tmp_diet=no
7582 if test "$host_os" = linux-dietlibc; then
7583 case $cc_basename in
7584 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7585 esac
7586 fi
7587 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7588 && test "$tmp_diet" = no
7589 then
7590 tmp_addflag=
7591 case $cc_basename,$host_cpu in
7592 pgcc*) # Portland Group C compiler
7593 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'
7594 tmp_addflag=' $pic_flag'
7595 ;;
7596 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7597 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'
7598 tmp_addflag=' $pic_flag -Mnomain' ;;
7599 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7600 tmp_addflag=' -i_dynamic' ;;
7601 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7602 tmp_addflag=' -i_dynamic -nofor_main' ;;
7603 ifc* | ifort*) # Intel Fortran compiler
7604 tmp_addflag=' -nofor_main' ;;
7605 esac
7606 case `$CC -V 2>&1 | sed 5q` in
7607 *Sun\ C*) # Sun C 5.9
7608 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'
7609 compiler_needs_object=yes
7610 tmp_sharedflag='-G' ;;
7611 *Sun\ F*) # Sun Fortran 8.3
7612 tmp_sharedflag='-G' ;;
7613 *)
7614 tmp_sharedflag='-shared' ;;
7615 esac
7616 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7617
7618 if test "x$supports_anon_versioning" = xyes; then
7619 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7621 echo "local: *; };" >> $output_objdir/$libname.ver~
7622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7623 fi
7624 else
7625 ld_shlibs=no
7626 fi
7627 ;;
7628
7629 netbsd*)
7630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7631 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7632 wlarc=
7633 else
7634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7636 fi
7637 ;;
7638
7639 solaris*)
7640 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7641 ld_shlibs=no
7642 cat <<_LT_EOF 1>&2
7643
7644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7645 *** create shared libraries on Solaris systems. Therefore, libtool
7646 *** is disabling shared libraries support. We urge you to upgrade GNU
7647 *** binutils to release 2.9.1 or newer. Another option is to modify
7648 *** your PATH or compiler configuration so that the native linker is
7649 *** used, and then restart.
7650
7651 _LT_EOF
7652 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7655 else
7656 ld_shlibs=no
7657 fi
7658 ;;
7659
7660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7661 case `$LD -v 2>&1` in
7662 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7663 ld_shlibs=no
7664 cat <<_LT_EOF 1>&2
7665
7666 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7667 *** reliably create shared libraries on SCO systems. Therefore, libtool
7668 *** is disabling shared libraries support. We urge you to upgrade GNU
7669 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7670 *** your PATH or compiler configuration so that the native linker is
7671 *** used, and then restart.
7672
7673 _LT_EOF
7674 ;;
7675 *)
7676 # For security reasons, it is highly recommended that you always
7677 # use absolute paths for naming shared libraries, and exclude the
7678 # DT_RUNPATH tag from executables and libraries. But doing so
7679 # requires that you compile everything twice, which is a pain.
7680 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7684 else
7685 ld_shlibs=no
7686 fi
7687 ;;
7688 esac
7689 ;;
7690
7691 sunos4*)
7692 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7693 wlarc=
7694 hardcode_direct=yes
7695 hardcode_shlibpath_var=no
7696 ;;
7697
7698 *)
7699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7702 else
7703 ld_shlibs=no
7704 fi
7705 ;;
7706 esac
7707
7708 if test "$ld_shlibs" = no; then
7709 runpath_var=
7710 hardcode_libdir_flag_spec=
7711 export_dynamic_flag_spec=
7712 whole_archive_flag_spec=
7713 fi
7714 else
7715 # PORTME fill in a description of your system's linker (not GNU ld)
7716 case $host_os in
7717 aix3*)
7718 allow_undefined_flag=unsupported
7719 always_export_symbols=yes
7720 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'
7721 # Note: this linker hardcodes the directories in LIBPATH if there
7722 # are no directories specified by -L.
7723 hardcode_minus_L=yes
7724 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7725 # Neither direct hardcoding nor static linking is supported with a
7726 # broken collect2.
7727 hardcode_direct=unsupported
7728 fi
7729 ;;
7730
7731 aix[4-9]*)
7732 if test "$host_cpu" = ia64; then
7733 # On IA64, the linker does run time linking by default, so we don't
7734 # have to do anything special.
7735 aix_use_runtimelinking=no
7736 exp_sym_flag='-Bexport'
7737 no_entry_flag=""
7738 else
7739 # If we're using GNU nm, then we don't want the "-C" option.
7740 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7741 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7742 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'
7743 else
7744 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'
7745 fi
7746 aix_use_runtimelinking=no
7747
7748 # Test if we are trying to use run time linking or normal
7749 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7750 # need to do runtime linking.
7751 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7752 for ld_flag in $LDFLAGS; do
7753 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7754 aix_use_runtimelinking=yes
7755 break
7756 fi
7757 done
7758 ;;
7759 esac
7760
7761 exp_sym_flag='-bexport'
7762 no_entry_flag='-bnoentry'
7763 fi
7764
7765 # When large executables or shared objects are built, AIX ld can
7766 # have problems creating the table of contents. If linking a library
7767 # or program results in "error TOC overflow" add -mminimal-toc to
7768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7770
7771 archive_cmds=''
7772 hardcode_direct=yes
7773 hardcode_direct_absolute=yes
7774 hardcode_libdir_separator=':'
7775 link_all_deplibs=yes
7776 file_list_spec='${wl}-f,'
7777
7778 if test "$GCC" = yes; then
7779 case $host_os in aix4.[012]|aix4.[012].*)
7780 # We only want to do this on AIX 4.2 and lower, the check
7781 # below for broken collect2 doesn't work under 4.3+
7782 collect2name=`${CC} -print-prog-name=collect2`
7783 if test -f "$collect2name" &&
7784 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7785 then
7786 # We have reworked collect2
7787 :
7788 else
7789 # We have old collect2
7790 hardcode_direct=unsupported
7791 # It fails to find uninstalled libraries when the uninstalled
7792 # path is not listed in the libpath. Setting hardcode_minus_L
7793 # to unsupported forces relinking
7794 hardcode_minus_L=yes
7795 hardcode_libdir_flag_spec='-L$libdir'
7796 hardcode_libdir_separator=
7797 fi
7798 ;;
7799 esac
7800 shared_flag='-shared'
7801 if test "$aix_use_runtimelinking" = yes; then
7802 shared_flag="$shared_flag "'${wl}-G'
7803 fi
7804 else
7805 # not using gcc
7806 if test "$host_cpu" = ia64; then
7807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7808 # chokes on -Wl,-G. The following line is correct:
7809 shared_flag='-G'
7810 else
7811 if test "$aix_use_runtimelinking" = yes; then
7812 shared_flag='${wl}-G'
7813 else
7814 shared_flag='${wl}-bM:SRE'
7815 fi
7816 fi
7817 fi
7818
7819 # It seems that -bexpall does not export symbols beginning with
7820 # underscore (_), so it is better to generate a list of symbols to export.
7821 always_export_symbols=yes
7822 if test "$aix_use_runtimelinking" = yes; then
7823 # Warning - without using the other runtime loading flags (-brtl),
7824 # -berok will link without error, but may produce a broken library.
7825 allow_undefined_flag='-berok'
7826 # Determine the default libpath from the value encoded in an
7827 # empty executable.
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h. */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834
7835 int
7836 main ()
7837 {
7838
7839 ;
7840 return 0;
7841 }
7842 _ACEOF
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7845 (eval $ac_link) 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -z "$ac_c_werror_flag"
7853 || test ! -s conftest.err'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; } &&
7859 { ac_try='test -s conftest$ac_exeext'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 (eval $ac_try) 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7865
7866 lt_aix_libpath_sed='
7867 /Import File Strings/,/^$/ {
7868 /^0/ {
7869 s/^0 *\(.*\)$/\1/
7870 p
7871 }
7872 }'
7873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7874 # Check for a 64-bit object if we didn't find anything.
7875 if test -z "$aix_libpath"; then
7876 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7877 fi
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 fi
7883 rm -f conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7886
7887 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7888 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"
7889 else
7890 if test "$host_cpu" = ia64; then
7891 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7892 allow_undefined_flag="-z nodefs"
7893 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"
7894 else
7895 # Determine the default libpath from the value encoded in an
7896 # empty executable.
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903
7904 int
7905 main ()
7906 {
7907
7908 ;
7909 return 0;
7910 }
7911 _ACEOF
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7914 (eval $ac_link) 2>conftest.er1
7915 ac_status=$?
7916 grep -v '^ *+' conftest.er1 >conftest.err
7917 rm -f conftest.er1
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } &&
7921 { ac_try='test -z "$ac_c_werror_flag"
7922 || test ! -s conftest.err'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 (eval $ac_try) 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; } &&
7928 { ac_try='test -s conftest$ac_exeext'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 (eval $ac_try) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; }; then
7934
7935 lt_aix_libpath_sed='
7936 /Import File Strings/,/^$/ {
7937 /^0/ {
7938 s/^0 *\(.*\)$/\1/
7939 p
7940 }
7941 }'
7942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7943 # Check for a 64-bit object if we didn't find anything.
7944 if test -z "$aix_libpath"; then
7945 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7946 fi
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 fi
7952 rm -f conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext conftest.$ac_ext
7954 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7955
7956 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7957 # Warning - without using the other run time loading flags,
7958 # -berok will link without error, but may produce a broken library.
7959 no_undefined_flag=' ${wl}-bernotok'
7960 allow_undefined_flag=' ${wl}-berok'
7961 # Exported symbols can be pulled into shared objects from archives
7962 whole_archive_flag_spec='$convenience'
7963 archive_cmds_need_lc=yes
7964 # This is similar to how AIX traditionally builds its shared libraries.
7965 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'
7966 fi
7967 fi
7968 ;;
7969
7970 amigaos*)
7971 if test "$host_cpu" = m68k; then
7972 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)'
7973 hardcode_libdir_flag_spec='-L$libdir'
7974 hardcode_minus_L=yes
7975 fi
7976 # see comment about different semantics on the GNU ld section
7977 ld_shlibs=no
7978 ;;
7979
7980 bsdi[45]*)
7981 export_dynamic_flag_spec=-rdynamic
7982 ;;
7983
7984 cygwin* | mingw* | pw32*)
7985 # When not using gcc, we currently assume that we are using
7986 # Microsoft Visual C++.
7987 # hardcode_libdir_flag_spec is actually meaningless, as there is
7988 # no search path for DLLs.
7989 hardcode_libdir_flag_spec=' '
7990 allow_undefined_flag=unsupported
7991 # Tell ltmain to make .lib files, not .a files.
7992 libext=lib
7993 # Tell ltmain to make .dll files, not .so files.
7994 shrext_cmds=".dll"
7995 # FIXME: Setting linknames here is a bad hack.
7996 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7997 # The linker will automatically build a .lib file if we build a DLL.
7998 old_archive_from_new_cmds='true'
7999 # FIXME: Should let the user specify the lib program.
8000 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8001 fix_srcfile_path='`cygpath -w "$srcfile"`'
8002 enable_shared_with_static_runtimes=yes
8003 ;;
8004
8005 darwin* | rhapsody*)
8006 case $host_os in
8007 rhapsody* | darwin1.[012])
8008 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8009 ;;
8010 *) # Darwin 1.3 on
8011 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8012 10.[012])
8013 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8014 ;;
8015 10.*)
8016 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8017 ;;
8018 esac
8019 ;;
8020 esac
8021 archive_cmds_need_lc=no
8022 hardcode_direct=no
8023 hardcode_automatic=yes
8024 hardcode_shlibpath_var=unsupported
8025 whole_archive_flag_spec=''
8026 link_all_deplibs=yes
8027 if test "$GCC" = yes ; then
8028 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031 lt_cv_apple_cc_single_mod=no
8032 if test -z "${LT_MULTI_MODULE}"; then
8033 # By default we will add the -single_module flag. You can override
8034 # by either setting the environment variable LT_MULTI_MODULE
8035 # non-empty at configure time, or by adding -multi-module to the
8036 # link flags.
8037 echo "int foo(void){return 1;}" > conftest.c
8038 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8039 -dynamiclib ${wl}-single_module conftest.c
8040 if test -f libconftest.dylib; then
8041 lt_cv_apple_cc_single_mod=yes
8042 rm libconftest.dylib
8043 fi
8044 rm conftest.$ac_ext
8045 fi
8046 fi
8047
8048 output_verbose_link_cmd=echo
8049 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8050 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8051 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}'
8052 else
8053 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8054 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}'
8055 fi
8056 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8057 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}'
8058 else
8059 case $cc_basename in
8060 xlc*)
8061 output_verbose_link_cmd=echo
8062 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8063 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8064 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8065 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}'
8066 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}'
8067 ;;
8068 *)
8069 ld_shlibs=no
8070 ;;
8071 esac
8072 fi
8073 ;;
8074
8075 dgux*)
8076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8077 hardcode_libdir_flag_spec='-L$libdir'
8078 hardcode_shlibpath_var=no
8079 ;;
8080
8081 freebsd1*)
8082 ld_shlibs=no
8083 ;;
8084
8085 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8086 # support. Future versions do this automatically, but an explicit c++rt0.o
8087 # does not break anything, and helps significantly (at the cost of a little
8088 # extra space).
8089 freebsd2.2*)
8090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8091 hardcode_libdir_flag_spec='-R$libdir'
8092 hardcode_direct=yes
8093 hardcode_shlibpath_var=no
8094 ;;
8095
8096 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8097 freebsd2*)
8098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8099 hardcode_direct=yes
8100 hardcode_minus_L=yes
8101 hardcode_shlibpath_var=no
8102 ;;
8103
8104 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8105 freebsd* | dragonfly*)
8106 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8107 hardcode_libdir_flag_spec='-R$libdir'
8108 hardcode_direct=yes
8109 hardcode_shlibpath_var=no
8110 ;;
8111
8112 hpux9*)
8113 if test "$GCC" = yes; then
8114 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'
8115 else
8116 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'
8117 fi
8118 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8119 hardcode_libdir_separator=:
8120 hardcode_direct=yes
8121
8122 # hardcode_minus_L: Not really in the search PATH,
8123 # but as the default location of the library.
8124 hardcode_minus_L=yes
8125 export_dynamic_flag_spec='${wl}-E'
8126 ;;
8127
8128 hpux10*)
8129 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8130 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8131 else
8132 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8133 fi
8134 if test "$with_gnu_ld" = no; then
8135 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8136 hardcode_libdir_flag_spec_ld='+b $libdir'
8137 hardcode_libdir_separator=:
8138 hardcode_direct=yes
8139 hardcode_direct_absolute=yes
8140 export_dynamic_flag_spec='${wl}-E'
8141 # hardcode_minus_L: Not really in the search PATH,
8142 # but as the default location of the library.
8143 hardcode_minus_L=yes
8144 fi
8145 ;;
8146
8147 hpux11*)
8148 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8149 case $host_cpu in
8150 hppa*64*)
8151 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8152 ;;
8153 ia64*)
8154 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8155 ;;
8156 *)
8157 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8158 ;;
8159 esac
8160 else
8161 case $host_cpu in
8162 hppa*64*)
8163 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8164 ;;
8165 ia64*)
8166 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8167 ;;
8168 *)
8169 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8170 ;;
8171 esac
8172 fi
8173 if test "$with_gnu_ld" = no; then
8174 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8175 hardcode_libdir_separator=:
8176
8177 case $host_cpu in
8178 hppa*64*|ia64*)
8179 hardcode_direct=no
8180 hardcode_shlibpath_var=no
8181 ;;
8182 *)
8183 hardcode_direct=yes
8184 hardcode_direct_absolute=yes
8185 export_dynamic_flag_spec='${wl}-E'
8186
8187 # hardcode_minus_L: Not really in the search PATH,
8188 # but as the default location of the library.
8189 hardcode_minus_L=yes
8190 ;;
8191 esac
8192 fi
8193 ;;
8194
8195 irix5* | irix6* | nonstopux*)
8196 if test "$GCC" = yes; then
8197 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'
8198 # Try to use the -exported_symbol ld option, if it does not
8199 # work, assume that -exports_file does not work either and
8200 # implicitly export all symbols.
8201 save_LDFLAGS="$LDFLAGS"
8202 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8203 cat >conftest.$ac_ext <<_ACEOF
8204 int foo(void) {}
8205 _ACEOF
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8208 (eval $ac_link) 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -z "$ac_c_werror_flag"
8216 || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 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'
8229
8230 else
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8233
8234 fi
8235 rm -f conftest.err conftest.$ac_objext \
8236 conftest$ac_exeext conftest.$ac_ext
8237 LDFLAGS="$save_LDFLAGS"
8238 else
8239 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'
8240 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'
8241 fi
8242 archive_cmds_need_lc='no'
8243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8244 hardcode_libdir_separator=:
8245 inherit_rpath=yes
8246 link_all_deplibs=yes
8247 ;;
8248
8249 netbsd*)
8250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8252 else
8253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8254 fi
8255 hardcode_libdir_flag_spec='-R$libdir'
8256 hardcode_direct=yes
8257 hardcode_shlibpath_var=no
8258 ;;
8259
8260 newsos6)
8261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8262 hardcode_direct=yes
8263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8264 hardcode_libdir_separator=:
8265 hardcode_shlibpath_var=no
8266 ;;
8267
8268 *nto* | *qnx*)
8269 ;;
8270
8271 openbsd*)
8272 hardcode_direct=yes
8273 hardcode_shlibpath_var=no
8274 hardcode_direct_absolute=yes
8275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8277 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8278 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8279 export_dynamic_flag_spec='${wl}-E'
8280 else
8281 case $host_os in
8282 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8284 hardcode_libdir_flag_spec='-R$libdir'
8285 ;;
8286 *)
8287 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8288 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8289 ;;
8290 esac
8291 fi
8292 ;;
8293
8294 os2*)
8295 hardcode_libdir_flag_spec='-L$libdir'
8296 hardcode_minus_L=yes
8297 allow_undefined_flag=unsupported
8298 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'
8299 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8300 ;;
8301
8302 osf3*)
8303 if test "$GCC" = yes; then
8304 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8305 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'
8306 else
8307 allow_undefined_flag=' -expect_unresolved \*'
8308 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'
8309 fi
8310 archive_cmds_need_lc='no'
8311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8312 hardcode_libdir_separator=:
8313 ;;
8314
8315 osf4* | osf5*) # as osf3* with the addition of -msym flag
8316 if test "$GCC" = yes; then
8317 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8318 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'
8319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8320 else
8321 allow_undefined_flag=' -expect_unresolved \*'
8322 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'
8323 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~
8324 $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'
8325
8326 # Both c and cxx compiler support -rpath directly
8327 hardcode_libdir_flag_spec='-rpath $libdir'
8328 fi
8329 archive_cmds_need_lc='no'
8330 hardcode_libdir_separator=:
8331 ;;
8332
8333 solaris*)
8334 no_undefined_flag=' -z defs'
8335 if test "$GCC" = yes; then
8336 wlarc='${wl}'
8337 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8338 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8339 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8340 else
8341 case `$CC -V 2>&1` in
8342 *"Compilers 5.0"*)
8343 wlarc=''
8344 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8346 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8347 ;;
8348 *)
8349 wlarc='${wl}'
8350 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8351 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8352 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8353 ;;
8354 esac
8355 fi
8356 hardcode_libdir_flag_spec='-R$libdir'
8357 hardcode_shlibpath_var=no
8358 case $host_os in
8359 solaris2.[0-5] | solaris2.[0-5].*) ;;
8360 *)
8361 # The compiler driver will combine and reorder linker options,
8362 # but understands `-z linker_flag'. GCC discards it without `$wl',
8363 # but is careful enough not to reorder.
8364 # Supported since Solaris 2.6 (maybe 2.5.1?)
8365 if test "$GCC" = yes; then
8366 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8367 else
8368 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8369 fi
8370 ;;
8371 esac
8372 link_all_deplibs=yes
8373 ;;
8374
8375 sunos4*)
8376 if test "x$host_vendor" = xsequent; then
8377 # Use $CC to link under sequent, because it throws in some extra .o
8378 # files that make .init and .fini sections work.
8379 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8380 else
8381 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8382 fi
8383 hardcode_libdir_flag_spec='-L$libdir'
8384 hardcode_direct=yes
8385 hardcode_minus_L=yes
8386 hardcode_shlibpath_var=no
8387 ;;
8388
8389 sysv4)
8390 case $host_vendor in
8391 sni)
8392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393 hardcode_direct=yes # is this really true???
8394 ;;
8395 siemens)
8396 ## LD is ld it makes a PLAMLIB
8397 ## CC just makes a GrossModule.
8398 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8399 reload_cmds='$CC -r -o $output$reload_objs'
8400 hardcode_direct=no
8401 ;;
8402 motorola)
8403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8404 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8405 ;;
8406 esac
8407 runpath_var='LD_RUN_PATH'
8408 hardcode_shlibpath_var=no
8409 ;;
8410
8411 sysv4.3*)
8412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8413 hardcode_shlibpath_var=no
8414 export_dynamic_flag_spec='-Bexport'
8415 ;;
8416
8417 sysv4*MP*)
8418 if test -d /usr/nec; then
8419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420 hardcode_shlibpath_var=no
8421 runpath_var=LD_RUN_PATH
8422 hardcode_runpath_var=yes
8423 ld_shlibs=yes
8424 fi
8425 ;;
8426
8427 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8428 no_undefined_flag='${wl}-z,text'
8429 archive_cmds_need_lc=no
8430 hardcode_shlibpath_var=no
8431 runpath_var='LD_RUN_PATH'
8432
8433 if test "$GCC" = yes; then
8434 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8435 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8436 else
8437 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8438 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8439 fi
8440 ;;
8441
8442 sysv5* | sco3.2v5* | sco5v6*)
8443 # Note: We can NOT use -z defs as we might desire, because we do not
8444 # link with -lc, and that would cause any symbols used from libc to
8445 # always be unresolved, which means just about no library would
8446 # ever link correctly. If we're not using GNU ld we use -z text
8447 # though, which does catch some bad symbols but isn't as heavy-handed
8448 # as -z defs.
8449 no_undefined_flag='${wl}-z,text'
8450 allow_undefined_flag='${wl}-z,nodefs'
8451 archive_cmds_need_lc=no
8452 hardcode_shlibpath_var=no
8453 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8454 hardcode_libdir_separator=':'
8455 link_all_deplibs=yes
8456 export_dynamic_flag_spec='${wl}-Bexport'
8457 runpath_var='LD_RUN_PATH'
8458
8459 if test "$GCC" = yes; then
8460 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8461 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8462 else
8463 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8464 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8465 fi
8466 ;;
8467
8468 uts4*)
8469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8470 hardcode_libdir_flag_spec='-L$libdir'
8471 hardcode_shlibpath_var=no
8472 ;;
8473
8474 *)
8475 ld_shlibs=no
8476 ;;
8477 esac
8478
8479 if test x$host_vendor = xsni; then
8480 case $host in
8481 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8482 export_dynamic_flag_spec='${wl}-Blargedynsym'
8483 ;;
8484 esac
8485 fi
8486 fi
8487
8488 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8489 echo "${ECHO_T}$ld_shlibs" >&6
8490 test "$ld_shlibs" = no && can_build_shared=no
8491
8492 with_gnu_ld=$with_gnu_ld
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508 #
8509 # Do we need to explicitly link libc?
8510 #
8511 case "x$archive_cmds_need_lc" in
8512 x|xyes)
8513 # Assume -lc should be added
8514 archive_cmds_need_lc=yes
8515
8516 if test "$enable_shared" = yes && test "$GCC" = yes; then
8517 case $archive_cmds in
8518 *'~'*)
8519 # FIXME: we may have to deal with multi-command sequences.
8520 ;;
8521 '$CC '*)
8522 # Test whether the compiler implicitly links with -lc since on some
8523 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8524 # to ld, don't add -lc before -lgcc.
8525 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8526 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8527 $RM conftest*
8528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8529
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531 (eval $ac_compile) 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } 2>conftest.err; then
8535 soname=conftest
8536 lib=conftest
8537 libobjs=conftest.$ac_objext
8538 deplibs=
8539 wl=$lt_prog_compiler_wl
8540 pic_flag=$lt_prog_compiler_pic
8541 compiler_flags=-v
8542 linker_flags=-v
8543 verstring=
8544 output_objdir=.
8545 libname=conftest
8546 lt_save_allow_undefined_flag=$allow_undefined_flag
8547 allow_undefined_flag=
8548 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8549 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }
8553 then
8554 archive_cmds_need_lc=no
8555 else
8556 archive_cmds_need_lc=yes
8557 fi
8558 allow_undefined_flag=$lt_save_allow_undefined_flag
8559 else
8560 cat conftest.err 1>&5
8561 fi
8562 $RM conftest*
8563 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8564 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8565 ;;
8566 esac
8567 fi
8568 ;;
8569 esac
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
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
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8728 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8729 withGCC=$GCC
8730 if test "$withGCC" = yes; then
8731 case $host_os in
8732 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8733 *) lt_awk_arg="/^libraries:/" ;;
8734 esac
8735 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8736 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8737 # if the path contains ";" then we assume it to be the separator
8738 # otherwise default to the standard path separator (i.e. ":") - it is
8739 # assumed that no part of a normal pathname contains ";" but that should
8740 # okay in the real world where ";" in dirpaths is itself problematic.
8741 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8742 else
8743 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8744 fi
8745 # Ok, now we have the path, separated by spaces, we can step through it
8746 # and add multilib dir if necessary.
8747 lt_tmp_lt_search_path_spec=
8748 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8749 for lt_sys_path in $lt_search_path_spec; do
8750 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8752 else
8753 test -d "$lt_sys_path" && \
8754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8755 fi
8756 done
8757 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8758 BEGIN {RS=" "; FS="/|\n";} {
8759 lt_foo="";
8760 lt_count=0;
8761 for (lt_i = NF; lt_i > 0; lt_i--) {
8762 if ($lt_i != "" && $lt_i != ".") {
8763 if ($lt_i == "..") {
8764 lt_count++;
8765 } else {
8766 if (lt_count == 0) {
8767 lt_foo="/" $lt_i lt_foo;
8768 } else {
8769 lt_count--;
8770 }
8771 }
8772 }
8773 }
8774 if (lt_foo != "") { lt_freq[lt_foo]++; }
8775 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8776 }'`
8777 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8778 else
8779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8780 fi
8781 library_names_spec=
8782 libname_spec='lib$name'
8783 soname_spec=
8784 shrext_cmds=".so"
8785 postinstall_cmds=
8786 postuninstall_cmds=
8787 finish_cmds=
8788 finish_eval=
8789 shlibpath_var=
8790 shlibpath_overrides_runpath=unknown
8791 version_type=none
8792 dynamic_linker="$host_os ld.so"
8793 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8794 need_lib_prefix=unknown
8795 hardcode_into_libs=no
8796
8797 # when you set need_version to no, make sure it does not cause -set_version
8798 # flags to be left without arguments
8799 need_version=unknown
8800
8801 case $host_os in
8802 aix3*)
8803 version_type=linux
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8805 shlibpath_var=LIBPATH
8806
8807 # AIX 3 has no versioning support, so we append a major version to the name.
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 ;;
8810
8811 aix[4-9]*)
8812 version_type=linux
8813 need_lib_prefix=no
8814 need_version=no
8815 hardcode_into_libs=yes
8816 if test "$host_cpu" = ia64; then
8817 # AIX 5 supports IA64
8818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 else
8821 # With GCC up to 2.95.x, collect2 would create an import file
8822 # for dependence libraries. The import file would start with
8823 # the line `#! .'. This would cause the generated library to
8824 # depend on `.', always an invalid library. This was fixed in
8825 # development snapshots of GCC prior to 3.0.
8826 case $host_os in
8827 aix4 | aix4.[01] | aix4.[01].*)
8828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8829 echo ' yes '
8830 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8831 :
8832 else
8833 can_build_shared=no
8834 fi
8835 ;;
8836 esac
8837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8838 # soname into executable. Probably we can add versioning support to
8839 # collect2, so additional links can be useful in future.
8840 if test "$aix_use_runtimelinking" = yes; then
8841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8842 # instead of lib<name>.a to let people know that these are not
8843 # typical AIX shared libraries.
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 else
8846 # We preserve .a as extension for shared libraries through AIX4.2
8847 # and later when we are not doing run time linking.
8848 library_names_spec='${libname}${release}.a $libname.a'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8850 fi
8851 shlibpath_var=LIBPATH
8852 fi
8853 ;;
8854
8855 amigaos*)
8856 if test "$host_cpu" = m68k; then
8857 library_names_spec='$libname.ixlibrary $libname.a'
8858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8859 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'
8860 else
8861 dynamic_linker=no
8862 fi
8863 ;;
8864
8865 beos*)
8866 library_names_spec='${libname}${shared_ext}'
8867 dynamic_linker="$host_os ld.so"
8868 shlibpath_var=LIBRARY_PATH
8869 ;;
8870
8871 bsdi[45]*)
8872 version_type=linux
8873 need_version=no
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8877 shlibpath_var=LD_LIBRARY_PATH
8878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8880 # the default ld.so.conf also contains /usr/contrib/lib and
8881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8882 # libtool to hard-code these into programs
8883 ;;
8884
8885 cygwin* | mingw* | pw32*)
8886 version_type=windows
8887 shrext_cmds=".dll"
8888 need_version=no
8889 need_lib_prefix=no
8890
8891 case $withGCC,$host_os in
8892 yes,cygwin* | yes,mingw* | yes,pw32*)
8893 library_names_spec='$libname.dll.a'
8894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8895 postinstall_cmds='base_file=`basename \${file}`~
8896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8897 dldir=$destdir/`dirname \$dlpath`~
8898 test -d \$dldir || mkdir -p \$dldir~
8899 $install_prog $dir/$dlname \$dldir/$dlname~
8900 chmod a+x \$dldir/$dlname~
8901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8903 fi'
8904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8905 dlpath=$dir/\$dldll~
8906 $RM \$dlpath'
8907 shlibpath_overrides_runpath=yes
8908
8909 case $host_os in
8910 cygwin*)
8911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8913 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8914 ;;
8915 mingw*)
8916 # MinGW DLLs use traditional 'lib' prefix
8917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8918 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8919 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8920 # It is most probably a Windows format PATH printed by
8921 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8922 # path with ; separators, and with drive letters. We can handle the
8923 # drive letters (cygwin fileutils understands them), so leave them,
8924 # especially as we might pass files found there to a mingw objdump,
8925 # which wouldn't understand a cygwinified path. Ahh.
8926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8927 else
8928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8929 fi
8930 ;;
8931 pw32*)
8932 # pw32 DLLs use 'pw' prefix rather than 'lib'
8933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934 ;;
8935 esac
8936 ;;
8937
8938 *)
8939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8940 ;;
8941 esac
8942 dynamic_linker='Win32 ld.exe'
8943 # FIXME: first we should search . and the directory the executable is in
8944 shlibpath_var=PATH
8945 ;;
8946
8947 darwin* | rhapsody*)
8948 dynamic_linker="$host_os dyld"
8949 version_type=darwin
8950 need_lib_prefix=no
8951 need_version=no
8952 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8953 soname_spec='${libname}${release}${major}$shared_ext'
8954 shlibpath_overrides_runpath=yes
8955 shlibpath_var=DYLD_LIBRARY_PATH
8956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8957
8958 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8960 ;;
8961
8962 dgux*)
8963 version_type=linux
8964 need_lib_prefix=no
8965 need_version=no
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 shlibpath_var=LD_LIBRARY_PATH
8969 ;;
8970
8971 freebsd1*)
8972 dynamic_linker=no
8973 ;;
8974
8975 freebsd* | dragonfly*)
8976 # DragonFly does not have aout. When/if they implement a new
8977 # versioning mechanism, adjust this.
8978 if test -x /usr/bin/objformat; then
8979 objformat=`/usr/bin/objformat`
8980 else
8981 case $host_os in
8982 freebsd[123]*) objformat=aout ;;
8983 *) objformat=elf ;;
8984 esac
8985 fi
8986 version_type=freebsd-$objformat
8987 case $version_type in
8988 freebsd-elf*)
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8990 need_version=no
8991 need_lib_prefix=no
8992 ;;
8993 freebsd-*)
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8995 need_version=yes
8996 ;;
8997 esac
8998 shlibpath_var=LD_LIBRARY_PATH
8999 case $host_os in
9000 freebsd2*)
9001 shlibpath_overrides_runpath=yes
9002 ;;
9003 freebsd3.[01]* | freebsdelf3.[01]*)
9004 shlibpath_overrides_runpath=yes
9005 hardcode_into_libs=yes
9006 ;;
9007 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9008 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9009 shlibpath_overrides_runpath=no
9010 hardcode_into_libs=yes
9011 ;;
9012 *) # from 4.6 on, and DragonFly
9013 shlibpath_overrides_runpath=yes
9014 hardcode_into_libs=yes
9015 ;;
9016 esac
9017 ;;
9018
9019 gnu*)
9020 version_type=linux
9021 need_lib_prefix=no
9022 need_version=no
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 hardcode_into_libs=yes
9027 ;;
9028
9029 hpux9* | hpux10* | hpux11*)
9030 # Give a soname corresponding to the major version so that dld.sl refuses to
9031 # link against other versions.
9032 version_type=sunos
9033 need_lib_prefix=no
9034 need_version=no
9035 case $host_cpu in
9036 ia64*)
9037 shrext_cmds='.so'
9038 hardcode_into_libs=yes
9039 dynamic_linker="$host_os dld.so"
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 if test "X$HPUX_IA64_MODE" = X32; then
9045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9046 else
9047 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9048 fi
9049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050 ;;
9051 hppa*64*)
9052 shrext_cmds='.sl'
9053 hardcode_into_libs=yes
9054 dynamic_linker="$host_os dld.sl"
9055 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9061 ;;
9062 *)
9063 shrext_cmds='.sl'
9064 dynamic_linker="$host_os dld.sl"
9065 shlibpath_var=SHLIB_PATH
9066 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 ;;
9070 esac
9071 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9072 postinstall_cmds='chmod 555 $lib'
9073 ;;
9074
9075 interix[3-9]*)
9076 version_type=linux
9077 need_lib_prefix=no
9078 need_version=no
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=no
9084 hardcode_into_libs=yes
9085 ;;
9086
9087 irix5* | irix6* | nonstopux*)
9088 case $host_os in
9089 nonstopux*) version_type=nonstopux ;;
9090 *)
9091 if test "$lt_cv_prog_gnu_ld" = yes; then
9092 version_type=linux
9093 else
9094 version_type=irix
9095 fi ;;
9096 esac
9097 need_lib_prefix=no
9098 need_version=no
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9101 case $host_os in
9102 irix5* | nonstopux*)
9103 libsuff= shlibsuff=
9104 ;;
9105 *)
9106 case $LD in # libtool.m4 will add one of these switches to LD
9107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9108 libsuff= shlibsuff= libmagic=32-bit;;
9109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9110 libsuff=32 shlibsuff=N32 libmagic=N32;;
9111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9112 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9113 *) libsuff= shlibsuff= libmagic=never-match;;
9114 esac
9115 ;;
9116 esac
9117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9118 shlibpath_overrides_runpath=no
9119 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9120 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9121 hardcode_into_libs=yes
9122 ;;
9123
9124 # No shared lib support for Linux oldld, aout, or coff.
9125 linux*oldld* | linux*aout* | linux*coff*)
9126 dynamic_linker=no
9127 ;;
9128
9129 # This must be Linux ELF.
9130 linux* | k*bsd*-gnu)
9131 version_type=linux
9132 need_lib_prefix=no
9133 need_version=no
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=no
9139 # Some binutils ld are patched to set DT_RUNPATH
9140 save_LDFLAGS=$LDFLAGS
9141 save_libdir=$libdir
9142 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9143 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9144 cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h. */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9150
9151 int
9152 main ()
9153 {
9154
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161 (eval $ac_link) 2>conftest.er1
9162 ac_status=$?
9163 grep -v '^ *+' conftest.er1 >conftest.err
9164 rm -f conftest.er1
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try='test -z "$ac_c_werror_flag"
9169 || test ! -s conftest.err'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; } &&
9175 { ac_try='test -s conftest$ac_exeext'
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 (eval $ac_try) 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; }; then
9181 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9182 shlibpath_overrides_runpath=yes
9183 fi
9184
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189 fi
9190 rm -f conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext conftest.$ac_ext
9192 LDFLAGS=$save_LDFLAGS
9193 libdir=$save_libdir
9194
9195 # This implies no fast_install, which is unacceptable.
9196 # Some rework will be needed to allow for fast_install
9197 # before this can be enabled.
9198 hardcode_into_libs=yes
9199
9200 # Append ld.so.conf contents to the search path
9201 if test -f /etc/ld.so.conf; then
9202 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' ' '`
9203 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9204 fi
9205
9206 # We used to test for /lib/ld.so.1 and disable shared libraries on
9207 # powerpc, because MkLinux only supported shared libraries with the
9208 # GNU dynamic linker. Since this was broken with cross compilers,
9209 # most powerpc-linux boxes support dynamic linking these days and
9210 # people can always --disable-shared, the test was removed, and we
9211 # assume the GNU/Linux dynamic linker is in use.
9212 dynamic_linker='GNU/Linux ld.so'
9213 ;;
9214
9215 netbsd*)
9216 version_type=sunos
9217 need_lib_prefix=no
9218 need_version=no
9219 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9222 dynamic_linker='NetBSD (a.out) ld.so'
9223 else
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 dynamic_linker='NetBSD ld.elf_so'
9227 fi
9228 shlibpath_var=LD_LIBRARY_PATH
9229 shlibpath_overrides_runpath=yes
9230 hardcode_into_libs=yes
9231 ;;
9232
9233 newsos6)
9234 version_type=linux
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 shlibpath_overrides_runpath=yes
9238 ;;
9239
9240 *nto* | *qnx*)
9241 version_type=qnx
9242 need_lib_prefix=no
9243 need_version=no
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 shlibpath_overrides_runpath=no
9248 hardcode_into_libs=yes
9249 dynamic_linker='ldqnx.so'
9250 ;;
9251
9252 openbsd*)
9253 version_type=sunos
9254 sys_lib_dlsearch_path_spec="/usr/lib"
9255 need_lib_prefix=no
9256 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9257 case $host_os in
9258 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9259 *) need_version=no ;;
9260 esac
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9265 case $host_os in
9266 openbsd2.[89] | openbsd2.[89].*)
9267 shlibpath_overrides_runpath=no
9268 ;;
9269 *)
9270 shlibpath_overrides_runpath=yes
9271 ;;
9272 esac
9273 else
9274 shlibpath_overrides_runpath=yes
9275 fi
9276 ;;
9277
9278 os2*)
9279 libname_spec='$name'
9280 shrext_cmds=".dll"
9281 need_lib_prefix=no
9282 library_names_spec='$libname${shared_ext} $libname.a'
9283 dynamic_linker='OS/2 ld.exe'
9284 shlibpath_var=LIBPATH
9285 ;;
9286
9287 osf3* | osf4* | osf5*)
9288 version_type=osf
9289 need_lib_prefix=no
9290 need_version=no
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9295 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9296 ;;
9297
9298 rdos*)
9299 dynamic_linker=no
9300 ;;
9301
9302 solaris*)
9303 version_type=linux
9304 need_lib_prefix=no
9305 need_version=no
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307 soname_spec='${libname}${release}${shared_ext}$major'
9308 shlibpath_var=LD_LIBRARY_PATH
9309 shlibpath_overrides_runpath=yes
9310 hardcode_into_libs=yes
9311 # ldd complains unless libraries are executable
9312 postinstall_cmds='chmod +x $lib'
9313 ;;
9314
9315 sunos4*)
9316 version_type=sunos
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9318 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 shlibpath_overrides_runpath=yes
9321 if test "$with_gnu_ld" = yes; then
9322 need_lib_prefix=no
9323 fi
9324 need_version=yes
9325 ;;
9326
9327 sysv4 | sysv4.3*)
9328 version_type=linux
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 case $host_vendor in
9333 sni)
9334 shlibpath_overrides_runpath=no
9335 need_lib_prefix=no
9336 runpath_var=LD_RUN_PATH
9337 ;;
9338 siemens)
9339 need_lib_prefix=no
9340 ;;
9341 motorola)
9342 need_lib_prefix=no
9343 need_version=no
9344 shlibpath_overrides_runpath=no
9345 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9346 ;;
9347 esac
9348 ;;
9349
9350 sysv4*MP*)
9351 if test -d /usr/nec ;then
9352 version_type=linux
9353 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9354 soname_spec='$libname${shared_ext}.$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 fi
9357 ;;
9358
9359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9360 version_type=freebsd-elf
9361 need_lib_prefix=no
9362 need_version=no
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 shlibpath_overrides_runpath=yes
9367 hardcode_into_libs=yes
9368 if test "$with_gnu_ld" = yes; then
9369 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9370 else
9371 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9372 case $host_os in
9373 sco3.2v5*)
9374 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9375 ;;
9376 esac
9377 fi
9378 sys_lib_dlsearch_path_spec='/usr/lib'
9379 ;;
9380
9381 tpf*)
9382 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9383 version_type=linux
9384 need_lib_prefix=no
9385 need_version=no
9386 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=no
9389 hardcode_into_libs=yes
9390 ;;
9391
9392 uts4*)
9393 version_type=linux
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 ;;
9398
9399 *)
9400 dynamic_linker=no
9401 ;;
9402 esac
9403 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9404 echo "${ECHO_T}$dynamic_linker" >&6
9405 test "$dynamic_linker" = no && can_build_shared=no
9406
9407 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9408 if test "$GCC" = yes; then
9409 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9410 fi
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9499 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9500 hardcode_action=
9501 if test -n "$hardcode_libdir_flag_spec" ||
9502 test -n "$runpath_var" ||
9503 test "X$hardcode_automatic" = "Xyes" ; then
9504
9505 # We can hardcode non-existent directories.
9506 if test "$hardcode_direct" != no &&
9507 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9508 # have to relink, otherwise we might link with an installed library
9509 # when we should be linking with a yet-to-be-installed one
9510 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9511 test "$hardcode_minus_L" != no; then
9512 # Linking always hardcodes the temporary library directory.
9513 hardcode_action=relink
9514 else
9515 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9516 hardcode_action=immediate
9517 fi
9518 else
9519 # We cannot hardcode anything, or else we can only hardcode existing
9520 # directories.
9521 hardcode_action=unsupported
9522 fi
9523 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9524 echo "${ECHO_T}$hardcode_action" >&6
9525
9526 if test "$hardcode_action" = relink ||
9527 test "$inherit_rpath" = yes; then
9528 # Fast installation is not supported
9529 enable_fast_install=no
9530 elif test "$shlibpath_overrides_runpath" = yes ||
9531 test "$enable_shared" = no; then
9532 # Fast installation is not necessary
9533 enable_fast_install=needless
9534 fi
9535
9536
9537
9538
9539
9540
9541 if test "x$enable_dlopen" != xyes; then
9542 enable_dlopen=unknown
9543 enable_dlopen_self=unknown
9544 enable_dlopen_self_static=unknown
9545 else
9546 lt_cv_dlopen=no
9547 lt_cv_dlopen_libs=
9548
9549 case $host_os in
9550 beos*)
9551 lt_cv_dlopen="load_add_on"
9552 lt_cv_dlopen_libs=
9553 lt_cv_dlopen_self=yes
9554 ;;
9555
9556 mingw* | pw32*)
9557 lt_cv_dlopen="LoadLibrary"
9558 lt_cv_dlopen_libs=
9559 ;;
9560
9561 cygwin*)
9562 lt_cv_dlopen="dlopen"
9563 lt_cv_dlopen_libs=
9564 ;;
9565
9566 darwin*)
9567 # if libdl is installed we need to link against it
9568 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 else
9573 ac_check_lib_save_LIBS=$LIBS
9574 LIBS="-ldl $LIBS"
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h. */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581
9582 /* Override any gcc2 internal prototype to avoid an error. */
9583 #ifdef __cplusplus
9584 extern "C"
9585 #endif
9586 /* We use char because int might match the return type of a gcc2
9587 builtin and then its argument prototype would still apply. */
9588 char dlopen ();
9589 int
9590 main ()
9591 {
9592 dlopen ();
9593 ;
9594 return 0;
9595 }
9596 _ACEOF
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>conftest.er1
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag"
9607 || test ! -s conftest.err'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 (eval $ac_try) 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try='test -s conftest$ac_exeext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_lib_dl_dlopen=yes
9620 else
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9623
9624 ac_cv_lib_dl_dlopen=no
9625 fi
9626 rm -f conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 LIBS=$ac_check_lib_save_LIBS
9629 fi
9630 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9632 if test $ac_cv_lib_dl_dlopen = yes; then
9633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9634 else
9635
9636 lt_cv_dlopen="dyld"
9637 lt_cv_dlopen_libs=
9638 lt_cv_dlopen_self=yes
9639
9640 fi
9641
9642 ;;
9643
9644 *)
9645 echo "$as_me:$LINENO: checking for shl_load" >&5
9646 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9647 if test "${ac_cv_func_shl_load+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9658 #define shl_load innocuous_shl_load
9659
9660 /* System header to define __stub macros and hopefully few prototypes,
9661 which can conflict with char shl_load (); below.
9662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9663 <limits.h> exists even on freestanding compilers. */
9664
9665 #ifdef __STDC__
9666 # include <limits.h>
9667 #else
9668 # include <assert.h>
9669 #endif
9670
9671 #undef shl_load
9672
9673 /* Override any gcc2 internal prototype to avoid an error. */
9674 #ifdef __cplusplus
9675 extern "C"
9676 {
9677 #endif
9678 /* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9680 char shl_load ();
9681 /* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
9684 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9685 choke me
9686 #else
9687 char (*f) () = shl_load;
9688 #endif
9689 #ifdef __cplusplus
9690 }
9691 #endif
9692
9693 int
9694 main ()
9695 {
9696 return f != shl_load;
9697 ;
9698 return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -z "$ac_c_werror_flag"
9711 || test ! -s conftest.err'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_cv_func_shl_load=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 ac_cv_func_shl_load=no
9729 fi
9730 rm -f conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732 fi
9733 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9734 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9735 if test $ac_cv_func_shl_load = yes; then
9736 lt_cv_dlopen="shl_load"
9737 else
9738 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9739 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9740 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743 ac_check_lib_save_LIBS=$LIBS
9744 LIBS="-ldld $LIBS"
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h. */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751
9752 /* Override any gcc2 internal prototype to avoid an error. */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 /* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9758 char shl_load ();
9759 int
9760 main ()
9761 {
9762 shl_load ();
9763 ;
9764 return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>conftest.er1
9770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try='test -z "$ac_c_werror_flag"
9777 || test ! -s conftest.err'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try='test -s conftest$ac_exeext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 ac_cv_lib_dld_shl_load=yes
9790 else
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9793
9794 ac_cv_lib_dld_shl_load=no
9795 fi
9796 rm -f conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798 LIBS=$ac_check_lib_save_LIBS
9799 fi
9800 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9801 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9802 if test $ac_cv_lib_dld_shl_load = yes; then
9803 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9804 else
9805 echo "$as_me:$LINENO: checking for dlopen" >&5
9806 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9807 if test "${ac_cv_func_dlopen+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9818 #define dlopen innocuous_dlopen
9819
9820 /* System header to define __stub macros and hopefully few prototypes,
9821 which can conflict with char dlopen (); below.
9822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9823 <limits.h> exists even on freestanding compilers. */
9824
9825 #ifdef __STDC__
9826 # include <limits.h>
9827 #else
9828 # include <assert.h>
9829 #endif
9830
9831 #undef dlopen
9832
9833 /* Override any gcc2 internal prototype to avoid an error. */
9834 #ifdef __cplusplus
9835 extern "C"
9836 {
9837 #endif
9838 /* We use char because int might match the return type of a gcc2
9839 builtin and then its argument prototype would still apply. */
9840 char dlopen ();
9841 /* The GNU C library defines this for functions which it implements
9842 to always fail with ENOSYS. Some functions are actually named
9843 something starting with __ and the normal name is an alias. */
9844 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9845 choke me
9846 #else
9847 char (*f) () = dlopen;
9848 #endif
9849 #ifdef __cplusplus
9850 }
9851 #endif
9852
9853 int
9854 main ()
9855 {
9856 return f != dlopen;
9857 ;
9858 return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9863 (eval $ac_link) 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -z "$ac_c_werror_flag"
9871 || test ! -s conftest.err'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 (eval $ac_try) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; } &&
9877 { ac_try='test -s conftest$ac_exeext'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_cv_func_dlopen=yes
9884 else
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888 ac_cv_func_dlopen=no
9889 fi
9890 rm -f conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9892 fi
9893 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9894 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9895 if test $ac_cv_func_dlopen = yes; then
9896 lt_cv_dlopen="dlopen"
9897 else
9898 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9899 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9900 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903 ac_check_lib_save_LIBS=$LIBS
9904 LIBS="-ldl $LIBS"
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h. */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911
9912 /* Override any gcc2 internal prototype to avoid an error. */
9913 #ifdef __cplusplus
9914 extern "C"
9915 #endif
9916 /* We use char because int might match the return type of a gcc2
9917 builtin and then its argument prototype would still apply. */
9918 char dlopen ();
9919 int
9920 main ()
9921 {
9922 dlopen ();
9923 ;
9924 return 0;
9925 }
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9929 (eval $ac_link) 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -z "$ac_c_werror_flag"
9937 || test ! -s conftest.err'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try='test -s conftest$ac_exeext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_lib_dl_dlopen=yes
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954 ac_cv_lib_dl_dlopen=no
9955 fi
9956 rm -f conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 LIBS=$ac_check_lib_save_LIBS
9959 fi
9960 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9961 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9962 if test $ac_cv_lib_dl_dlopen = yes; then
9963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9964 else
9965 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9966 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970 ac_check_lib_save_LIBS=$LIBS
9971 LIBS="-lsvld $LIBS"
9972 cat >conftest.$ac_ext <<_ACEOF
9973 /* confdefs.h. */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h. */
9978
9979 /* Override any gcc2 internal prototype to avoid an error. */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 /* We use char because int might match the return type of a gcc2
9984 builtin and then its argument prototype would still apply. */
9985 char dlopen ();
9986 int
9987 main ()
9988 {
9989 dlopen ();
9990 ;
9991 return 0;
9992 }
9993 _ACEOF
9994 rm -f conftest.$ac_objext conftest$ac_exeext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9996 (eval $ac_link) 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag"
10004 || test ! -s conftest.err'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; } &&
10010 { ac_try='test -s conftest$ac_exeext'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10013 ac_status=$?
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 ac_cv_lib_svld_dlopen=yes
10017 else
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 ac_cv_lib_svld_dlopen=no
10022 fi
10023 rm -f conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 LIBS=$ac_check_lib_save_LIBS
10026 fi
10027 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10028 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10029 if test $ac_cv_lib_svld_dlopen = yes; then
10030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10031 else
10032 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10033 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10034 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 else
10037 ac_check_lib_save_LIBS=$LIBS
10038 LIBS="-ldld $LIBS"
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045
10046 /* Override any gcc2 internal prototype to avoid an error. */
10047 #ifdef __cplusplus
10048 extern "C"
10049 #endif
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10052 char dld_link ();
10053 int
10054 main ()
10055 {
10056 dld_link ();
10057 ;
10058 return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10064 ac_status=$?
10065 grep -v '^ *+' conftest.er1 >conftest.err
10066 rm -f conftest.er1
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag"
10071 || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_lib_dld_dld_link=yes
10084 else
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 ac_cv_lib_dld_dld_link=no
10089 fi
10090 rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10093 fi
10094 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10095 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10096 if test $ac_cv_lib_dld_dld_link = yes; then
10097 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10098 fi
10099
10100
10101 fi
10102
10103
10104 fi
10105
10106
10107 fi
10108
10109
10110 fi
10111
10112
10113 fi
10114
10115 ;;
10116 esac
10117
10118 if test "x$lt_cv_dlopen" != xno; then
10119 enable_dlopen=yes
10120 else
10121 enable_dlopen=no
10122 fi
10123
10124 case $lt_cv_dlopen in
10125 dlopen)
10126 save_CPPFLAGS="$CPPFLAGS"
10127 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10128
10129 save_LDFLAGS="$LDFLAGS"
10130 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10131
10132 save_LIBS="$LIBS"
10133 LIBS="$lt_cv_dlopen_libs $LIBS"
10134
10135 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10136 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10137 if test "${lt_cv_dlopen_self+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140 if test "$cross_compiling" = yes; then :
10141 lt_cv_dlopen_self=cross
10142 else
10143 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10144 lt_status=$lt_dlunknown
10145 cat > conftest.$ac_ext <<_LT_EOF
10146 #line 10146 "configure"
10147 #include "confdefs.h"
10148
10149 #if HAVE_DLFCN_H
10150 #include <dlfcn.h>
10151 #endif
10152
10153 #include <stdio.h>
10154
10155 #ifdef RTLD_GLOBAL
10156 # define LT_DLGLOBAL RTLD_GLOBAL
10157 #else
10158 # ifdef DL_GLOBAL
10159 # define LT_DLGLOBAL DL_GLOBAL
10160 # else
10161 # define LT_DLGLOBAL 0
10162 # endif
10163 #endif
10164
10165 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10166 find out it does not work in some platform. */
10167 #ifndef LT_DLLAZY_OR_NOW
10168 # ifdef RTLD_LAZY
10169 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10170 # else
10171 # ifdef DL_LAZY
10172 # define LT_DLLAZY_OR_NOW DL_LAZY
10173 # else
10174 # ifdef RTLD_NOW
10175 # define LT_DLLAZY_OR_NOW RTLD_NOW
10176 # else
10177 # ifdef DL_NOW
10178 # define LT_DLLAZY_OR_NOW DL_NOW
10179 # else
10180 # define LT_DLLAZY_OR_NOW 0
10181 # endif
10182 # endif
10183 # endif
10184 # endif
10185 #endif
10186
10187 #ifdef __cplusplus
10188 extern "C" void exit (int);
10189 #endif
10190
10191 void fnord() { int i=42;}
10192 int main ()
10193 {
10194 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10195 int status = $lt_dlunknown;
10196
10197 if (self)
10198 {
10199 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10200 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10201 /* dlclose (self); */
10202 }
10203 else
10204 puts (dlerror ());
10205
10206 exit (status);
10207 }
10208 _LT_EOF
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10214 (./conftest; exit; ) >&5 2>/dev/null
10215 lt_status=$?
10216 case x$lt_status in
10217 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10218 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10219 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10220 esac
10221 else :
10222 # compilation failed
10223 lt_cv_dlopen_self=no
10224 fi
10225 fi
10226 rm -fr conftest*
10227
10228
10229 fi
10230 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10231 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10232
10233 if test "x$lt_cv_dlopen_self" = xyes; then
10234 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10235 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10236 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10237 if test "${lt_cv_dlopen_self_static+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 if test "$cross_compiling" = yes; then :
10241 lt_cv_dlopen_self_static=cross
10242 else
10243 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10244 lt_status=$lt_dlunknown
10245 cat > conftest.$ac_ext <<_LT_EOF
10246 #line 10246 "configure"
10247 #include "confdefs.h"
10248
10249 #if HAVE_DLFCN_H
10250 #include <dlfcn.h>
10251 #endif
10252
10253 #include <stdio.h>
10254
10255 #ifdef RTLD_GLOBAL
10256 # define LT_DLGLOBAL RTLD_GLOBAL
10257 #else
10258 # ifdef DL_GLOBAL
10259 # define LT_DLGLOBAL DL_GLOBAL
10260 # else
10261 # define LT_DLGLOBAL 0
10262 # endif
10263 #endif
10264
10265 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10266 find out it does not work in some platform. */
10267 #ifndef LT_DLLAZY_OR_NOW
10268 # ifdef RTLD_LAZY
10269 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10270 # else
10271 # ifdef DL_LAZY
10272 # define LT_DLLAZY_OR_NOW DL_LAZY
10273 # else
10274 # ifdef RTLD_NOW
10275 # define LT_DLLAZY_OR_NOW RTLD_NOW
10276 # else
10277 # ifdef DL_NOW
10278 # define LT_DLLAZY_OR_NOW DL_NOW
10279 # else
10280 # define LT_DLLAZY_OR_NOW 0
10281 # endif
10282 # endif
10283 # endif
10284 # endif
10285 #endif
10286
10287 #ifdef __cplusplus
10288 extern "C" void exit (int);
10289 #endif
10290
10291 void fnord() { int i=42;}
10292 int main ()
10293 {
10294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10295 int status = $lt_dlunknown;
10296
10297 if (self)
10298 {
10299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10300 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10301 /* dlclose (self); */
10302 }
10303 else
10304 puts (dlerror ());
10305
10306 exit (status);
10307 }
10308 _LT_EOF
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10314 (./conftest; exit; ) >&5 2>/dev/null
10315 lt_status=$?
10316 case x$lt_status in
10317 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10318 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10319 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10320 esac
10321 else :
10322 # compilation failed
10323 lt_cv_dlopen_self_static=no
10324 fi
10325 fi
10326 rm -fr conftest*
10327
10328
10329 fi
10330 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10331 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10332 fi
10333
10334 CPPFLAGS="$save_CPPFLAGS"
10335 LDFLAGS="$save_LDFLAGS"
10336 LIBS="$save_LIBS"
10337 ;;
10338 esac
10339
10340 case $lt_cv_dlopen_self in
10341 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10342 *) enable_dlopen_self=unknown ;;
10343 esac
10344
10345 case $lt_cv_dlopen_self_static in
10346 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10347 *) enable_dlopen_self_static=unknown ;;
10348 esac
10349 fi
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367 striplib=
10368 old_striplib=
10369 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10370 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10371 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10372 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10373 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10374 echo "$as_me:$LINENO: result: yes" >&5
10375 echo "${ECHO_T}yes" >&6
10376 else
10377 # FIXME - insert some real tests, host_os isn't really good enough
10378 case $host_os in
10379 darwin*)
10380 if test -n "$STRIP" ; then
10381 striplib="$STRIP -x"
10382 old_striplib="$STRIP -S"
10383 echo "$as_me:$LINENO: result: yes" >&5
10384 echo "${ECHO_T}yes" >&6
10385 else
10386 echo "$as_me:$LINENO: result: no" >&5
10387 echo "${ECHO_T}no" >&6
10388 fi
10389 ;;
10390 *)
10391 echo "$as_me:$LINENO: result: no" >&5
10392 echo "${ECHO_T}no" >&6
10393 ;;
10394 esac
10395 fi
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408 # Report which library types will actually be built
10409 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10410 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10411 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10412 echo "${ECHO_T}$can_build_shared" >&6
10413
10414 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10415 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10416 test "$can_build_shared" = "no" && enable_shared=no
10417
10418 # On AIX, shared libraries and static libraries use the same namespace, and
10419 # are all built from PIC.
10420 case $host_os in
10421 aix3*)
10422 test "$enable_shared" = yes && enable_static=no
10423 if test -n "$RANLIB"; then
10424 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10425 postinstall_cmds='$RANLIB $lib'
10426 fi
10427 ;;
10428
10429 aix[4-9]*)
10430 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10431 test "$enable_shared" = yes && enable_static=no
10432 fi
10433 ;;
10434 esac
10435 echo "$as_me:$LINENO: result: $enable_shared" >&5
10436 echo "${ECHO_T}$enable_shared" >&6
10437
10438 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10439 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10440 # Make sure either enable_shared or enable_static is yes.
10441 test "$enable_shared" = yes || enable_static=yes
10442 echo "$as_me:$LINENO: result: $enable_static" >&5
10443 echo "${ECHO_T}$enable_static" >&6
10444
10445
10446
10447
10448 fi
10449 ac_ext=c
10450 ac_cpp='$CPP $CPPFLAGS'
10451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10454
10455 CC="$lt_save_CC"
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469 ac_config_commands="$ac_config_commands libtool"
10470
10471
10472
10473
10474 # Only expand once:
10475
10476
10477
10478 # Check whether --enable-targets or --disable-targets was given.
10479 if test "${enable_targets+set}" = set; then
10480 enableval="$enable_targets"
10481 case "${enableval}" in
10482 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10483 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10484 { (exit 1); exit 1; }; }
10485 ;;
10486 no) enable_targets= ;;
10487 *) enable_targets=$enableval ;;
10488 esac
10489 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10490 if test "${enable_commonbfdlib+set}" = set; then
10491 enableval="$enable_commonbfdlib"
10492 case "${enableval}" in
10493 yes) commonbfdlib=true ;;
10494 no) commonbfdlib=false ;;
10495 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
10496 echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
10497 { (exit 1); exit 1; }; } ;;
10498 esac
10499 fi;
10500
10501 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10502
10503 # Check whether --enable-werror or --disable-werror was given.
10504 if test "${enable_werror+set}" = set; then
10505 enableval="$enable_werror"
10506 case "${enableval}" in
10507 yes | y) ERROR_ON_WARNING="yes" ;;
10508 no | n) ERROR_ON_WARNING="no" ;;
10509 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10510 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10511 { (exit 1); exit 1; }; } ;;
10512 esac
10513 fi;
10514
10515 # Enable -Wno-format by default when using gcc on mingw
10516 case "${host}" in
10517 *-*-mingw32*)
10518 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10519 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10520 fi
10521 ;;
10522 *) ;;
10523 esac
10524
10525 # Enable -Werror by default when using gcc
10526 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10527 ERROR_ON_WARNING=yes
10528 fi
10529
10530 NO_WERROR=
10531 if test "${ERROR_ON_WARNING}" = yes ; then
10532 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10533 NO_WERROR="-Wno-error"
10534 fi
10535
10536 if test "${GCC}" = yes ; then
10537 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10538 fi
10539
10540 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10541 if test "${enable_build_warnings+set}" = set; then
10542 enableval="$enable_build_warnings"
10543 case "${enableval}" in
10544 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10545 no) if test "${GCC}" = yes ; then
10546 WARN_CFLAGS="-w"
10547 fi;;
10548 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10549 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10550 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10551 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10552 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10553 esac
10554 fi;
10555
10556 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10557 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10558 fi
10559
10560
10561
10562
10563
10564 ac_config_headers="$ac_config_headers config.h:config.in"
10565
10566
10567 if test -z "$target" ; then
10568 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10569 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10570 { (exit 1); exit 1; }; }
10571 fi
10572
10573 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10574 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10575 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10576 if test "${enable_maintainer_mode+set}" = set; then
10577 enableval="$enable_maintainer_mode"
10578 USE_MAINTAINER_MODE=$enableval
10579 else
10580 USE_MAINTAINER_MODE=no
10581 fi;
10582 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10583 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10584
10585
10586 if test $USE_MAINTAINER_MODE = yes; then
10587 MAINTAINER_MODE_TRUE=
10588 MAINTAINER_MODE_FALSE='#'
10589 else
10590 MAINTAINER_MODE_TRUE='#'
10591 MAINTAINER_MODE_FALSE=
10592 fi
10593
10594 MAINT=$MAINTAINER_MODE_TRUE
10595
10596
10597 case ${build_alias} in
10598 "") build_noncanonical=${build} ;;
10599 *) build_noncanonical=${build_alias} ;;
10600 esac
10601
10602 case ${host_alias} in
10603 "") host_noncanonical=${build_noncanonical} ;;
10604 *) host_noncanonical=${host_alias} ;;
10605 esac
10606
10607 case ${target_alias} in
10608 "") target_noncanonical=${host_noncanonical} ;;
10609 *) target_noncanonical=${target_alias} ;;
10610 esac
10611
10612 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10613 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10614 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10615 if test "${enable_install_libbfd+set}" = set; then
10616 enableval="$enable_install_libbfd"
10617 install_libbfd_p=$enableval
10618 else
10619 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10620 install_libbfd_p=yes
10621 else
10622 install_libbfd_p=no
10623 fi
10624 fi;
10625 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10626 echo "${ECHO_T}$install_libbfd_p" >&6
10627
10628
10629 if test $install_libbfd_p = yes; then
10630 INSTALL_LIBBFD_TRUE=
10631 INSTALL_LIBBFD_FALSE='#'
10632 else
10633 INSTALL_LIBBFD_TRUE='#'
10634 INSTALL_LIBBFD_FALSE=
10635 fi
10636
10637 # Need _noncanonical variables for this.
10638
10639
10640
10641
10642 # libbfd.a is a host library containing target dependent code
10643 bfdlibdir='$(libdir)'
10644 bfdincludedir='$(includedir)'
10645 if test "${host}" != "${target}"; then
10646 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10647 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10648 fi
10649
10650
10651
10652
10653
10654
10655 # host-specific stuff:
10656
10657 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
10658 # If we haven't got the data from the intl directory,
10659 # assume NLS is disabled.
10660 USE_NLS=no
10661 LIBINTL=
10662 LIBINTL_DEP=
10663 INCINTL=
10664 XGETTEXT=
10665 GMSGFMT=
10666 POSUB=
10667
10668 if test -f ../intl/config.intl; then
10669 . ../intl/config.intl
10670 fi
10671 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10672 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10673 if test x"$USE_NLS" != xyes; then
10674 echo "$as_me:$LINENO: result: no" >&5
10675 echo "${ECHO_T}no" >&6
10676 else
10677 echo "$as_me:$LINENO: result: yes" >&5
10678 echo "${ECHO_T}yes" >&6
10679
10680 cat >>confdefs.h <<\_ACEOF
10681 #define ENABLE_NLS 1
10682 _ACEOF
10683
10684
10685 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10686 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10687 # Look for .po and .gmo files in the source directory.
10688 CATALOGS=
10689 XLINGUAS=
10690 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10691 # If there aren't any .gmo files the shell will give us the
10692 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10693 # weeded out.
10694 case "$cat" in *\**)
10695 continue;;
10696 esac
10697 # The quadruple backslash is collapsed to a double backslash
10698 # by the backticks, then collapsed again by the double quotes,
10699 # leaving us with one backslash in the sed expression (right
10700 # before the dot that mustn't act as a wildcard).
10701 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10702 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10703 # The user is allowed to set LINGUAS to a list of languages to
10704 # install catalogs for. If it's empty that means "all of them."
10705 if test "x$LINGUAS" = x; then
10706 CATALOGS="$CATALOGS $cat"
10707 XLINGUAS="$XLINGUAS $lang"
10708 else
10709 case "$LINGUAS" in *$lang*)
10710 CATALOGS="$CATALOGS $cat"
10711 XLINGUAS="$XLINGUAS $lang"
10712 ;;
10713 esac
10714 fi
10715 done
10716 LINGUAS="$XLINGUAS"
10717 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10718 echo "${ECHO_T}$LINGUAS" >&6
10719
10720
10721 DATADIRNAME=share
10722
10723 INSTOBJEXT=.mo
10724
10725 GENCAT=gencat
10726
10727 CATOBJEXT=.gmo
10728
10729 fi
10730
10731 MKINSTALLDIRS=
10732 if test -n "$ac_aux_dir"; then
10733 case "$ac_aux_dir" in
10734 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10735 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10736 esac
10737 fi
10738 if test -z "$MKINSTALLDIRS"; then
10739 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10740 fi
10741
10742
10743
10744 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10745 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10746 # Check whether --enable-nls or --disable-nls was given.
10747 if test "${enable_nls+set}" = set; then
10748 enableval="$enable_nls"
10749 USE_NLS=$enableval
10750 else
10751 USE_NLS=yes
10752 fi;
10753 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10754 echo "${ECHO_T}$USE_NLS" >&6
10755
10756
10757
10758
10759
10760
10761 # Prepare PATH_SEPARATOR.
10762 # The user is always right.
10763 if test "${PATH_SEPARATOR+set}" != set; then
10764 echo "#! /bin/sh" >conf$$.sh
10765 echo "exit 0" >>conf$$.sh
10766 chmod +x conf$$.sh
10767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10768 PATH_SEPARATOR=';'
10769 else
10770 PATH_SEPARATOR=:
10771 fi
10772 rm -f conf$$.sh
10773 fi
10774
10775 # Find out how to test for executable files. Don't use a zero-byte file,
10776 # as systems may use methods other than mode bits to determine executability.
10777 cat >conf$$.file <<_ASEOF
10778 #! /bin/sh
10779 exit 0
10780 _ASEOF
10781 chmod +x conf$$.file
10782 if test -x conf$$.file >/dev/null 2>&1; then
10783 ac_executable_p="test -x"
10784 else
10785 ac_executable_p="test -f"
10786 fi
10787 rm -f conf$$.file
10788
10789 # Extract the first word of "msgfmt", so it can be a program name with args.
10790 set dummy msgfmt; ac_word=$2
10791 echo "$as_me:$LINENO: checking for $ac_word" >&5
10792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10793 if test "${ac_cv_path_MSGFMT+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796 case "$MSGFMT" in
10797 [\\/]* | ?:[\\/]*)
10798 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10799 ;;
10800 *)
10801 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10802 for ac_dir in $PATH; do
10803 IFS="$ac_save_IFS"
10804 test -z "$ac_dir" && ac_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10807 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10808 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10809 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10810 break 2
10811 fi
10812 fi
10813 done
10814 done
10815 IFS="$ac_save_IFS"
10816 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10817 ;;
10818 esac
10819 fi
10820 MSGFMT="$ac_cv_path_MSGFMT"
10821 if test "$MSGFMT" != ":"; then
10822 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10823 echo "${ECHO_T}$MSGFMT" >&6
10824 else
10825 echo "$as_me:$LINENO: result: no" >&5
10826 echo "${ECHO_T}no" >&6
10827 fi
10828
10829 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10830 set dummy gmsgfmt; ac_word=$2
10831 echo "$as_me:$LINENO: checking for $ac_word" >&5
10832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10833 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836 case $GMSGFMT in
10837 [\\/]* | ?:[\\/]*)
10838 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10839 ;;
10840 *)
10841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842 for as_dir in $PATH
10843 do
10844 IFS=$as_save_IFS
10845 test -z "$as_dir" && as_dir=.
10846 for ac_exec_ext in '' $ac_executable_extensions; do
10847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10848 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10850 break 2
10851 fi
10852 done
10853 done
10854
10855 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10856 ;;
10857 esac
10858 fi
10859 GMSGFMT=$ac_cv_path_GMSGFMT
10860
10861 if test -n "$GMSGFMT"; then
10862 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10863 echo "${ECHO_T}$GMSGFMT" >&6
10864 else
10865 echo "$as_me:$LINENO: result: no" >&5
10866 echo "${ECHO_T}no" >&6
10867 fi
10868
10869
10870
10871 # Prepare PATH_SEPARATOR.
10872 # The user is always right.
10873 if test "${PATH_SEPARATOR+set}" != set; then
10874 echo "#! /bin/sh" >conf$$.sh
10875 echo "exit 0" >>conf$$.sh
10876 chmod +x conf$$.sh
10877 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10878 PATH_SEPARATOR=';'
10879 else
10880 PATH_SEPARATOR=:
10881 fi
10882 rm -f conf$$.sh
10883 fi
10884
10885 # Find out how to test for executable files. Don't use a zero-byte file,
10886 # as systems may use methods other than mode bits to determine executability.
10887 cat >conf$$.file <<_ASEOF
10888 #! /bin/sh
10889 exit 0
10890 _ASEOF
10891 chmod +x conf$$.file
10892 if test -x conf$$.file >/dev/null 2>&1; then
10893 ac_executable_p="test -x"
10894 else
10895 ac_executable_p="test -f"
10896 fi
10897 rm -f conf$$.file
10898
10899 # Extract the first word of "xgettext", so it can be a program name with args.
10900 set dummy xgettext; ac_word=$2
10901 echo "$as_me:$LINENO: checking for $ac_word" >&5
10902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10903 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906 case "$XGETTEXT" in
10907 [\\/]* | ?:[\\/]*)
10908 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10909 ;;
10910 *)
10911 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10912 for ac_dir in $PATH; do
10913 IFS="$ac_save_IFS"
10914 test -z "$ac_dir" && ac_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10917 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10918 (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
10919 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10920 break 2
10921 fi
10922 fi
10923 done
10924 done
10925 IFS="$ac_save_IFS"
10926 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10927 ;;
10928 esac
10929 fi
10930 XGETTEXT="$ac_cv_path_XGETTEXT"
10931 if test "$XGETTEXT" != ":"; then
10932 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10933 echo "${ECHO_T}$XGETTEXT" >&6
10934 else
10935 echo "$as_me:$LINENO: result: no" >&5
10936 echo "${ECHO_T}no" >&6
10937 fi
10938
10939 rm -f messages.po
10940
10941
10942 # Prepare PATH_SEPARATOR.
10943 # The user is always right.
10944 if test "${PATH_SEPARATOR+set}" != set; then
10945 echo "#! /bin/sh" >conf$$.sh
10946 echo "exit 0" >>conf$$.sh
10947 chmod +x conf$$.sh
10948 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10949 PATH_SEPARATOR=';'
10950 else
10951 PATH_SEPARATOR=:
10952 fi
10953 rm -f conf$$.sh
10954 fi
10955
10956 # Find out how to test for executable files. Don't use a zero-byte file,
10957 # as systems may use methods other than mode bits to determine executability.
10958 cat >conf$$.file <<_ASEOF
10959 #! /bin/sh
10960 exit 0
10961 _ASEOF
10962 chmod +x conf$$.file
10963 if test -x conf$$.file >/dev/null 2>&1; then
10964 ac_executable_p="test -x"
10965 else
10966 ac_executable_p="test -f"
10967 fi
10968 rm -f conf$$.file
10969
10970 # Extract the first word of "msgmerge", so it can be a program name with args.
10971 set dummy msgmerge; ac_word=$2
10972 echo "$as_me:$LINENO: checking for $ac_word" >&5
10973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10974 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977 case "$MSGMERGE" in
10978 [\\/]* | ?:[\\/]*)
10979 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10980 ;;
10981 *)
10982 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10983 for ac_dir in $PATH; do
10984 IFS="$ac_save_IFS"
10985 test -z "$ac_dir" && ac_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10988 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10989 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10990 break 2
10991 fi
10992 fi
10993 done
10994 done
10995 IFS="$ac_save_IFS"
10996 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10997 ;;
10998 esac
10999 fi
11000 MSGMERGE="$ac_cv_path_MSGMERGE"
11001 if test "$MSGMERGE" != ":"; then
11002 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11003 echo "${ECHO_T}$MSGMERGE" >&6
11004 else
11005 echo "$as_me:$LINENO: result: no" >&5
11006 echo "${ECHO_T}no" >&6
11007 fi
11008
11009
11010 if test "$GMSGFMT" != ":"; then
11011 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11012 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11013 : ;
11014 else
11015 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11016 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11017 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11018 GMSGFMT=":"
11019 fi
11020 fi
11021
11022 if test "$XGETTEXT" != ":"; then
11023 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11024 (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
11025 : ;
11026 else
11027 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11028 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11029 XGETTEXT=":"
11030 fi
11031 rm -f messages.po
11032 fi
11033
11034 ac_config_commands="$ac_config_commands default-1"
11035
11036
11037
11038 . ${srcdir}/../bfd/configure.host
11039
11040 # Put a plausible default for CC_FOR_BUILD in Makefile.
11041 if test -z "$CC_FOR_BUILD"; then
11042 if test "x$cross_compiling" = "xno"; then
11043 CC_FOR_BUILD='$(CC)'
11044 else
11045 CC_FOR_BUILD=gcc
11046 fi
11047 fi
11048
11049 # Also set EXEEXT_FOR_BUILD.
11050 if test "x$cross_compiling" = "xno"; then
11051 EXEEXT_FOR_BUILD='$(EXEEXT)'
11052 else
11053 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11054 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11055 if test "${bfd_cv_build_exeext+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058 rm -f conftest*
11059 echo 'int main () { return 0; }' > conftest.c
11060 bfd_cv_build_exeext=
11061 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11062 for file in conftest.*; do
11063 case $file in
11064 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11065 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11066 esac
11067 done
11068 rm -f conftest*
11069 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11070 fi
11071 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11072 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11073 EXEEXT_FOR_BUILD=""
11074 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11075 fi
11076
11077
11078
11079 # Find a good install program. We prefer a C program (faster),
11080 # so one script is as good as another. But avoid the broken or
11081 # incompatible versions:
11082 # SysV /etc/install, /usr/sbin/install
11083 # SunOS /usr/etc/install
11084 # IRIX /sbin/install
11085 # AIX /bin/install
11086 # AmigaOS /C/install, which installs bootblocks on floppy discs
11087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11090 # OS/2's system install, which has a completely different semantic
11091 # ./install, which can be erroneously created by make from ./install.sh.
11092 # Reject install programs that cannot install multiple files.
11093 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11094 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11095 if test -z "$INSTALL"; then
11096 if test "${ac_cv_path_install+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11101 do
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 # Account for people who put trailing slashes in PATH elements.
11105 case $as_dir/ in
11106 ./ | .// | /cC/* | \
11107 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11108 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11109 /usr/ucb/* ) ;;
11110 *)
11111 # OSF1 and SCO ODT 3.0 have their own names for install.
11112 # Don't use installbsd from OSF since it installs stuff as root
11113 # by default.
11114 for ac_prog in ginstall scoinst install; do
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11117 if test $ac_prog = install &&
11118 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11119 # AIX install. It has an incompatible calling convention.
11120 :
11121 elif test $ac_prog = install &&
11122 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11123 # program-specific install script used by HP pwplus--don't use.
11124 :
11125 else
11126 rm -rf conftest.one conftest.two conftest.dir
11127 echo one > conftest.one
11128 echo two > conftest.two
11129 mkdir conftest.dir
11130 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11131 test -s conftest.one && test -s conftest.two &&
11132 test -s conftest.dir/conftest.one &&
11133 test -s conftest.dir/conftest.two
11134 then
11135 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11136 break 3
11137 fi
11138 fi
11139 fi
11140 done
11141 done
11142 ;;
11143 esac
11144 done
11145
11146 rm -rf conftest.one conftest.two conftest.dir
11147
11148 fi
11149 if test "${ac_cv_path_install+set}" = set; then
11150 INSTALL=$ac_cv_path_install
11151 else
11152 # As a last resort, use the slow shell script. Don't cache a
11153 # value for INSTALL within a source directory, because that will
11154 # break other packages using the cache if that directory is
11155 # removed, or if the value is a relative name.
11156 INSTALL=$ac_install_sh
11157 fi
11158 fi
11159 echo "$as_me:$LINENO: result: $INSTALL" >&5
11160 echo "${ECHO_T}$INSTALL" >&6
11161
11162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11163 # It thinks the first close brace ends the variable substitution.
11164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11165
11166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11167
11168 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11169
11170
11171
11172
11173
11174
11175 for ac_header in string.h strings.h stdlib.h limits.h
11176 do
11177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11179 echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 fi
11184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11186 else
11187 # Is the header compilable?
11188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 $ac_includes_default
11197 #include <$ac_header>
11198 _ACEOF
11199 rm -f conftest.$ac_objext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201 (eval $ac_compile) 2>conftest.er1
11202 ac_status=$?
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } &&
11208 { ac_try='test -z "$ac_c_werror_flag"
11209 || test ! -s conftest.err'
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest.$ac_objext'
11216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 (eval $ac_try) 2>&5
11218 ac_status=$?
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; }; then
11221 ac_header_compiler=yes
11222 else
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11225
11226 ac_header_compiler=no
11227 fi
11228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11230 echo "${ECHO_T}$ac_header_compiler" >&6
11231
11232 # Is the header present?
11233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11235 cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h. */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 #include <$ac_header>
11242 _ACEOF
11243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } >/dev/null; then
11251 if test -s conftest.err; then
11252 ac_cpp_err=$ac_c_preproc_warn_flag
11253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11254 else
11255 ac_cpp_err=
11256 fi
11257 else
11258 ac_cpp_err=yes
11259 fi
11260 if test -z "$ac_cpp_err"; then
11261 ac_header_preproc=yes
11262 else
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266 ac_header_preproc=no
11267 fi
11268 rm -f conftest.err conftest.$ac_ext
11269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11270 echo "${ECHO_T}$ac_header_preproc" >&6
11271
11272 # So? What about this header?
11273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11274 yes:no: )
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11279 ac_header_preproc=yes
11280 ;;
11281 no:yes:* )
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11294 (
11295 cat <<\_ASBOX
11296 ## ------------------------------------------ ##
11297 ## Report this to the AC_PACKAGE_NAME lists. ##
11298 ## ------------------------------------------ ##
11299 _ASBOX
11300 ) |
11301 sed "s/^/$as_me: WARNING: /" >&2
11302 ;;
11303 esac
11304 echo "$as_me:$LINENO: checking for $ac_header" >&5
11305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309 eval "$as_ac_Header=\$ac_header_preproc"
11310 fi
11311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11313
11314 fi
11315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11316 cat >>confdefs.h <<_ACEOF
11317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11318 _ACEOF
11319
11320 fi
11321
11322 done
11323
11324
11325 echo "$as_me:$LINENO: checking whether basename is declared" >&5
11326 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11327 if test "${ac_cv_have_decl_basename+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11337 int
11338 main ()
11339 {
11340 #ifndef basename
11341 char *p = (char *) basename;
11342 #endif
11343
11344 ;
11345 return 0;
11346 }
11347 _ACEOF
11348 rm -f conftest.$ac_objext
11349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11350 (eval $ac_compile) 2>conftest.er1
11351 ac_status=$?
11352 grep -v '^ *+' conftest.er1 >conftest.err
11353 rm -f conftest.er1
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } &&
11357 { ac_try='test -z "$ac_c_werror_flag"
11358 || test ! -s conftest.err'
11359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11361 ac_status=$?
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; } &&
11364 { ac_try='test -s conftest.$ac_objext'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_cv_have_decl_basename=yes
11371 else
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_cv_have_decl_basename=no
11376 fi
11377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11378 fi
11379 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11380 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11381 if test $ac_cv_have_decl_basename = yes; then
11382
11383 cat >>confdefs.h <<_ACEOF
11384 #define HAVE_DECL_BASENAME 1
11385 _ACEOF
11386
11387
11388 else
11389 cat >>confdefs.h <<_ACEOF
11390 #define HAVE_DECL_BASENAME 0
11391 _ACEOF
11392
11393
11394 fi
11395 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11396 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11397 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h. */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 $ac_includes_default
11407 int
11408 main ()
11409 {
11410 #ifndef stpcpy
11411 char *p = (char *) stpcpy;
11412 #endif
11413
11414 ;
11415 return 0;
11416 }
11417 _ACEOF
11418 rm -f conftest.$ac_objext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11420 (eval $ac_compile) 2>conftest.er1
11421 ac_status=$?
11422 grep -v '^ *+' conftest.er1 >conftest.err
11423 rm -f conftest.er1
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -z "$ac_c_werror_flag"
11428 || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest.$ac_objext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_cv_have_decl_stpcpy=yes
11441 else
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11444
11445 ac_cv_have_decl_stpcpy=no
11446 fi
11447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11448 fi
11449 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11450 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11451 if test $ac_cv_have_decl_stpcpy = yes; then
11452
11453 cat >>confdefs.h <<_ACEOF
11454 #define HAVE_DECL_STPCPY 1
11455 _ACEOF
11456
11457
11458 else
11459 cat >>confdefs.h <<_ACEOF
11460 #define HAVE_DECL_STPCPY 0
11461 _ACEOF
11462
11463
11464 fi
11465
11466
11467
11468 cgen_maint=no
11469 cgendir='$(srcdir)/../cgen'
11470
11471 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
11472 if test "${enable_cgen_maint+set}" = set; then
11473 enableval="$enable_cgen_maint"
11474 case "${enableval}" in
11475 yes) cgen_maint=yes ;;
11476 no) cgen_maint=no ;;
11477 *)
11478 # argument is cgen install directory (not implemented yet).
11479 # Having a `share' directory might be more appropriate for the .scm,
11480 # .cpu, etc. files.
11481 cgen_maint=yes
11482 cgendir=${cgen_maint}/lib/cgen
11483 ;;
11484 esac
11485 fi;
11486
11487 if test x${cgen_maint} = xyes; then
11488 CGEN_MAINT_TRUE=
11489 CGEN_MAINT_FALSE='#'
11490 else
11491 CGEN_MAINT_TRUE='#'
11492 CGEN_MAINT_FALSE=
11493 fi
11494
11495
11496
11497 using_cgen=no
11498
11499 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
11500 SHARED_LDFLAGS=
11501 SHARED_LIBADD=
11502 SHARED_DEPENDENCIES=
11503 if test "$enable_shared" = "yes"; then
11504 case "${host}" in
11505 *-*-cygwin*)
11506 SHARED_LDFLAGS="-no-undefined"
11507 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
11508 ;;
11509 *-*-darwin*)
11510 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib"
11511 SHARED_DEPENDENCIES="../bfd/libbfd.la"
11512 ;;
11513 *)
11514 case "$host_vendor" in
11515 hp)
11516 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl"
11517 ;;
11518 *)
11519 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
11520 ;;
11521 esac
11522 SHARED_DEPENDENCIES="../bfd/libbfd.la"
11523 ;;
11524 esac
11525 fi
11526
11527
11528
11529
11530 # target-specific stuff:
11531
11532 # Canonicalize the secondary target names.
11533 if test -n "$enable_targets" ; then
11534 for targ in `echo $enable_targets | sed 's/,/ /g'`
11535 do
11536 result=`$ac_config_sub $targ 2>/dev/null`
11537 if test -n "$result" ; then
11538 canon_targets="$canon_targets $result"
11539 else
11540 # Allow targets that config.sub doesn't recognize, like "all".
11541 canon_targets="$canon_targets $targ"
11542 fi
11543 done
11544 fi
11545
11546 all_targets=false
11547 selarchs=
11548 for targ in $target $canon_targets
11549 do
11550 if test "x$targ" = "xall" ; then
11551 all_targets=true
11552 else
11553 . $srcdir/../bfd/config.bfd
11554 selarchs="$selarchs $targ_archs"
11555 fi
11556 done
11557
11558 # Utility var, documents generic cgen support files.
11559
11560 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
11561
11562 # We don't do any links based on the target system, just makefile config.
11563
11564 if test x${all_targets} = xfalse ; then
11565
11566 # Target architecture .o files.
11567 ta=
11568
11569 for arch in $selarchs
11570 do
11571 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
11572 archdefs="$archdefs -DARCH_$ad"
11573 case "$arch" in
11574 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
11575 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
11576 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
11577 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
11578 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
11579 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
11580 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
11581 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
11582 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
11583 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
11584 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
11585 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
11586 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
11587 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
11588 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
11589 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
11590 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
11591 bfd_i386_arch) ta="$ta i386-dis.lo i386-opc.lo" ;;
11592 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
11593 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
11594 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
11595 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
11596 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
11597 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
11598 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 ;;
11599 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11600 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11601 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
11602 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
11603 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
11604 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
11605 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
11606 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
11607 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
11608 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
11609 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
11610 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
11611 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
11612 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
11613 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
11614 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
11615 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
11616 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
11617 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11618 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11619 bfd_pyramid_arch) ;;
11620 bfd_romp_arch) ;;
11621 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11622 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
11623 bfd_score_arch) ta="$ta score-dis.lo" ;;
11624 bfd_sh_arch)
11625 # We can't decide what we want just from the CPU family.
11626 # We want SH5 support unless a specific version of sh is
11627 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
11628 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
11629 for t in $target $canon_targets; do
11630 case $t in
11631 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
11632 sh-*-linux* | shl-*-linux*)
11633 ta="$ta sh64-dis.lo sh64-opc.lo"
11634 archdefs="$archdefs -DINCLUDE_SHMEDIA"
11635 break;;
11636 esac;
11637 done
11638 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
11639 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
11640 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
11641 bfd_tahoe_arch) ;;
11642 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
11643 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
11644 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
11645 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
11646 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11647 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11648 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
11649 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
11650 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
11651 bfd_we32k_arch) ;;
11652 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
11653 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
11654 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
11655 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
11656 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
11657
11658 "") ;;
11659 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
11660 echo "$as_me: error: *** unknown target architecture $arch" >&2;}
11661 { (exit 1); exit 1; }; } ;;
11662 esac
11663 done
11664
11665 if test $using_cgen = yes ; then
11666 ta="$ta $cgen_files"
11667 fi
11668
11669 # Weed out duplicate .o files.
11670 f=""
11671 for i in $ta ; do
11672 case " $f " in
11673 *" $i "*) ;;
11674 *) f="$f $i" ;;
11675 esac
11676 done
11677 ta="$f"
11678
11679 # And duplicate -D flags.
11680 f=""
11681 for i in $archdefs ; do
11682 case " $f " in
11683 *" $i "*) ;;
11684 *) f="$f $i" ;;
11685 esac
11686 done
11687 archdefs="$f"
11688
11689 BFD_MACHINES="$ta"
11690
11691 else # all_targets is true
11692 archdefs=-DARCH_all
11693 BFD_MACHINES='$(ALL_MACHINES)'
11694 fi
11695
11696
11697
11698
11699 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11700
11701 cat >confcache <<\_ACEOF
11702 # This file is a shell script that caches the results of configure
11703 # tests run on this system so they can be shared between configure
11704 # scripts and configure runs, see configure's option --config-cache.
11705 # It is not useful on other systems. If it contains results you don't
11706 # want to keep, you may remove or edit it.
11707 #
11708 # config.status only pays attention to the cache file if you give it
11709 # the --recheck option to rerun configure.
11710 #
11711 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11712 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11713 # following values.
11714
11715 _ACEOF
11716
11717 # The following way of writing the cache mishandles newlines in values,
11718 # but we know of no workaround that is simple, portable, and efficient.
11719 # So, don't put newlines in cache variables' values.
11720 # Ultrix sh set writes to stderr and can't be redirected directly,
11721 # and sets the high bit in the cache file unless we assign to the vars.
11722 {
11723 (set) 2>&1 |
11724 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11725 *ac_space=\ *)
11726 # `set' does not quote correctly, so add quotes (double-quote
11727 # substitution turns \\\\ into \\, and sed turns \\ into \).
11728 sed -n \
11729 "s/'/'\\\\''/g;
11730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11731 ;;
11732 *)
11733 # `set' quotes correctly as required by POSIX, so do not add quotes.
11734 sed -n \
11735 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11736 ;;
11737 esac;
11738 } |
11739 sed '
11740 t clear
11741 : clear
11742 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11743 t end
11744 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11745 : end' >>confcache
11746 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11747 if test -w $cache_file; then
11748 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11749 cat confcache >$cache_file
11750 else
11751 echo "not updating unwritable cache $cache_file"
11752 fi
11753 fi
11754 rm -f confcache
11755
11756 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11757 # Let make expand exec_prefix.
11758 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11759
11760 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11761 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11762 # trailing colons and then remove the whole line if VPATH becomes empty
11763 # (actually we leave an empty line to preserve line numbers).
11764 if test "x$srcdir" = x.; then
11765 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11766 s/:*\$(srcdir):*/:/;
11767 s/:*\${srcdir}:*/:/;
11768 s/:*@srcdir@:*/:/;
11769 s/^\([^=]*=[ ]*\):*/\1/;
11770 s/:*$//;
11771 s/^[^=]*=[ ]*$//;
11772 }'
11773 fi
11774
11775 DEFS=-DHAVE_CONFIG_H
11776
11777 ac_libobjs=
11778 ac_ltlibobjs=
11779 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11780 # 1. Remove the extension, and $U if already installed.
11781 ac_i=`echo "$ac_i" |
11782 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11783 # 2. Add them.
11784 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11785 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11786 done
11787 LIBOBJS=$ac_libobjs
11788
11789 LTLIBOBJS=$ac_ltlibobjs
11790
11791
11792 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11793 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11794 Usually this means the macro was only invoked conditionally." >&5
11795 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11796 Usually this means the macro was only invoked conditionally." >&2;}
11797 { (exit 1); exit 1; }; }
11798 fi
11799 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11800 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11801 Usually this means the macro was only invoked conditionally." >&5
11802 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11803 Usually this means the macro was only invoked conditionally." >&2;}
11804 { (exit 1); exit 1; }; }
11805 fi
11806 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11807 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11808 Usually this means the macro was only invoked conditionally." >&5
11809 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11810 Usually this means the macro was only invoked conditionally." >&2;}
11811 { (exit 1); exit 1; }; }
11812 fi
11813 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
11814 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
11815 Usually this means the macro was only invoked conditionally." >&5
11816 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
11817 Usually this means the macro was only invoked conditionally." >&2;}
11818 { (exit 1); exit 1; }; }
11819 fi
11820 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
11821 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
11822 Usually this means the macro was only invoked conditionally." >&5
11823 echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
11824 Usually this means the macro was only invoked conditionally." >&2;}
11825 { (exit 1); exit 1; }; }
11826 fi
11827
11828 : ${CONFIG_STATUS=./config.status}
11829 ac_clean_files_save=$ac_clean_files
11830 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11831 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11832 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11833 cat >$CONFIG_STATUS <<_ACEOF
11834 #! $SHELL
11835 # Generated by $as_me.
11836 # Run this file to recreate the current configuration.
11837 # Compiler output produced by configure, useful for debugging
11838 # configure, is in config.log if it exists.
11839
11840 debug=false
11841 ac_cs_recheck=false
11842 ac_cs_silent=false
11843 SHELL=\${CONFIG_SHELL-$SHELL}
11844 _ACEOF
11845
11846 cat >>$CONFIG_STATUS <<\_ACEOF
11847 ## --------------------- ##
11848 ## M4sh Initialization. ##
11849 ## --------------------- ##
11850
11851 # Be Bourne compatible
11852 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11853 emulate sh
11854 NULLCMD=:
11855 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11856 # is contrary to our usage. Disable this feature.
11857 alias -g '${1+"$@"}'='"$@"'
11858 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11859 set -o posix
11860 fi
11861 DUALCASE=1; export DUALCASE # for MKS sh
11862
11863 # Support unset when possible.
11864 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11865 as_unset=unset
11866 else
11867 as_unset=false
11868 fi
11869
11870
11871 # Work around bugs in pre-3.0 UWIN ksh.
11872 $as_unset ENV MAIL MAILPATH
11873 PS1='$ '
11874 PS2='> '
11875 PS4='+ '
11876
11877 # NLS nuisances.
11878 for as_var in \
11879 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11880 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11881 LC_TELEPHONE LC_TIME
11882 do
11883 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11884 eval $as_var=C; export $as_var
11885 else
11886 $as_unset $as_var
11887 fi
11888 done
11889
11890 # Required to use basename.
11891 if expr a : '\(a\)' >/dev/null 2>&1; then
11892 as_expr=expr
11893 else
11894 as_expr=false
11895 fi
11896
11897 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11898 as_basename=basename
11899 else
11900 as_basename=false
11901 fi
11902
11903
11904 # Name of the executable.
11905 as_me=`$as_basename "$0" ||
11906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11907 X"$0" : 'X\(//\)$' \| \
11908 X"$0" : 'X\(/\)$' \| \
11909 . : '\(.\)' 2>/dev/null ||
11910 echo X/"$0" |
11911 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11912 /^X\/\(\/\/\)$/{ s//\1/; q; }
11913 /^X\/\(\/\).*/{ s//\1/; q; }
11914 s/.*/./; q'`
11915
11916
11917 # PATH needs CR, and LINENO needs CR and PATH.
11918 # Avoid depending upon Character Ranges.
11919 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11920 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11921 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11922 as_cr_digits='0123456789'
11923 as_cr_alnum=$as_cr_Letters$as_cr_digits
11924
11925 # The user is always right.
11926 if test "${PATH_SEPARATOR+set}" != set; then
11927 echo "#! /bin/sh" >conf$$.sh
11928 echo "exit 0" >>conf$$.sh
11929 chmod +x conf$$.sh
11930 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11931 PATH_SEPARATOR=';'
11932 else
11933 PATH_SEPARATOR=:
11934 fi
11935 rm -f conf$$.sh
11936 fi
11937
11938
11939 as_lineno_1=$LINENO
11940 as_lineno_2=$LINENO
11941 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11942 test "x$as_lineno_1" != "x$as_lineno_2" &&
11943 test "x$as_lineno_3" = "x$as_lineno_2" || {
11944 # Find who we are. Look in the path if we contain no path at all
11945 # relative or not.
11946 case $0 in
11947 *[\\/]* ) as_myself=$0 ;;
11948 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949 for as_dir in $PATH
11950 do
11951 IFS=$as_save_IFS
11952 test -z "$as_dir" && as_dir=.
11953 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11954 done
11955
11956 ;;
11957 esac
11958 # We did not find ourselves, most probably we were run as `sh COMMAND'
11959 # in which case we are not to be found in the path.
11960 if test "x$as_myself" = x; then
11961 as_myself=$0
11962 fi
11963 if test ! -f "$as_myself"; then
11964 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11965 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11966 { (exit 1); exit 1; }; }
11967 fi
11968 case $CONFIG_SHELL in
11969 '')
11970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11972 do
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
11975 for as_base in sh bash ksh sh5; do
11976 case $as_dir in
11977 /*)
11978 if ("$as_dir/$as_base" -c '
11979 as_lineno_1=$LINENO
11980 as_lineno_2=$LINENO
11981 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11982 test "x$as_lineno_1" != "x$as_lineno_2" &&
11983 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11984 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11985 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11986 CONFIG_SHELL=$as_dir/$as_base
11987 export CONFIG_SHELL
11988 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11989 fi;;
11990 esac
11991 done
11992 done
11993 ;;
11994 esac
11995
11996 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11997 # uniformly replaced by the line number. The first 'sed' inserts a
11998 # line-number line before each line; the second 'sed' does the real
11999 # work. The second script uses 'N' to pair each line-number line
12000 # with the numbered line, and appends trailing '-' during
12001 # substitution so that $LINENO is not a special case at line end.
12002 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12003 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12004 sed '=' <$as_myself |
12005 sed '
12006 N
12007 s,$,-,
12008 : loop
12009 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12010 t loop
12011 s,-$,,
12012 s,^['$as_cr_digits']*\n,,
12013 ' >$as_me.lineno &&
12014 chmod +x $as_me.lineno ||
12015 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12016 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12017 { (exit 1); exit 1; }; }
12018
12019 # Don't try to exec as it changes $[0], causing all sort of problems
12020 # (the dirname of $[0] is not the place where we might find the
12021 # original and so on. Autoconf is especially sensible to this).
12022 . ./$as_me.lineno
12023 # Exit status is that of the last command.
12024 exit
12025 }
12026
12027
12028 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12029 *c*,-n*) ECHO_N= ECHO_C='
12030 ' ECHO_T=' ' ;;
12031 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12032 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12033 esac
12034
12035 if expr a : '\(a\)' >/dev/null 2>&1; then
12036 as_expr=expr
12037 else
12038 as_expr=false
12039 fi
12040
12041 rm -f conf$$ conf$$.exe conf$$.file
12042 echo >conf$$.file
12043 if ln -s conf$$.file conf$$ 2>/dev/null; then
12044 # We could just check for DJGPP; but this test a) works b) is more generic
12045 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12046 if test -f conf$$.exe; then
12047 # Don't use ln at all; we don't have any links
12048 as_ln_s='cp -p'
12049 else
12050 as_ln_s='ln -s'
12051 fi
12052 elif ln conf$$.file conf$$ 2>/dev/null; then
12053 as_ln_s=ln
12054 else
12055 as_ln_s='cp -p'
12056 fi
12057 rm -f conf$$ conf$$.exe conf$$.file
12058
12059 if mkdir -p . 2>/dev/null; then
12060 as_mkdir_p=:
12061 else
12062 test -d ./-p && rmdir ./-p
12063 as_mkdir_p=false
12064 fi
12065
12066 as_executable_p="test -f"
12067
12068 # Sed expression to map a string onto a valid CPP name.
12069 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12070
12071 # Sed expression to map a string onto a valid variable name.
12072 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12073
12074
12075 # IFS
12076 # We need space, tab and new line, in precisely that order.
12077 as_nl='
12078 '
12079 IFS=" $as_nl"
12080
12081 # CDPATH.
12082 $as_unset CDPATH
12083
12084 exec 6>&1
12085
12086 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12087 # report actual input values of CONFIG_FILES etc. instead of their
12088 # values after options handling. Logging --version etc. is OK.
12089 exec 5>>config.log
12090 {
12091 echo
12092 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12093 ## Running $as_me. ##
12094 _ASBOX
12095 } >&5
12096 cat >&5 <<_CSEOF
12097
12098 This file was extended by $as_me, which was
12099 generated by GNU Autoconf 2.59. Invocation command line was
12100
12101 CONFIG_FILES = $CONFIG_FILES
12102 CONFIG_HEADERS = $CONFIG_HEADERS
12103 CONFIG_LINKS = $CONFIG_LINKS
12104 CONFIG_COMMANDS = $CONFIG_COMMANDS
12105 $ $0 $@
12106
12107 _CSEOF
12108 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12109 echo >&5
12110 _ACEOF
12111
12112 # Files that config.status was made for.
12113 if test -n "$ac_config_files"; then
12114 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12115 fi
12116
12117 if test -n "$ac_config_headers"; then
12118 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12119 fi
12120
12121 if test -n "$ac_config_links"; then
12122 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12123 fi
12124
12125 if test -n "$ac_config_commands"; then
12126 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12127 fi
12128
12129 cat >>$CONFIG_STATUS <<\_ACEOF
12130
12131 ac_cs_usage="\
12132 \`$as_me' instantiates files from templates according to the
12133 current configuration.
12134
12135 Usage: $0 [OPTIONS] [FILE]...
12136
12137 -h, --help print this help, then exit
12138 -V, --version print version number, then exit
12139 -q, --quiet do not print progress messages
12140 -d, --debug don't remove temporary files
12141 --recheck update $as_me by reconfiguring in the same conditions
12142 --file=FILE[:TEMPLATE]
12143 instantiate the configuration file FILE
12144 --header=FILE[:TEMPLATE]
12145 instantiate the configuration header FILE
12146
12147 Configuration files:
12148 $config_files
12149
12150 Configuration headers:
12151 $config_headers
12152
12153 Configuration commands:
12154 $config_commands
12155
12156 Report bugs to <bug-autoconf@gnu.org>."
12157 _ACEOF
12158
12159 cat >>$CONFIG_STATUS <<_ACEOF
12160 ac_cs_version="\\
12161 config.status
12162 configured by $0, generated by GNU Autoconf 2.59,
12163 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12164
12165 Copyright (C) 2003 Free Software Foundation, Inc.
12166 This config.status script is free software; the Free Software Foundation
12167 gives unlimited permission to copy, distribute and modify it."
12168 srcdir=$srcdir
12169 INSTALL="$INSTALL"
12170 _ACEOF
12171
12172 cat >>$CONFIG_STATUS <<\_ACEOF
12173 # If no file are specified by the user, then we need to provide default
12174 # value. By we need to know if files were specified by the user.
12175 ac_need_defaults=:
12176 while test $# != 0
12177 do
12178 case $1 in
12179 --*=*)
12180 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12181 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12182 ac_shift=:
12183 ;;
12184 -*)
12185 ac_option=$1
12186 ac_optarg=$2
12187 ac_shift=shift
12188 ;;
12189 *) # This is not an option, so the user has probably given explicit
12190 # arguments.
12191 ac_option=$1
12192 ac_need_defaults=false;;
12193 esac
12194
12195 case $ac_option in
12196 # Handling of the options.
12197 _ACEOF
12198 cat >>$CONFIG_STATUS <<\_ACEOF
12199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12200 ac_cs_recheck=: ;;
12201 --version | --vers* | -V )
12202 echo "$ac_cs_version"; exit 0 ;;
12203 --he | --h)
12204 # Conflict between --help and --header
12205 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12206 Try \`$0 --help' for more information." >&5
12207 echo "$as_me: error: ambiguous option: $1
12208 Try \`$0 --help' for more information." >&2;}
12209 { (exit 1); exit 1; }; };;
12210 --help | --hel | -h )
12211 echo "$ac_cs_usage"; exit 0 ;;
12212 --debug | --d* | -d )
12213 debug=: ;;
12214 --file | --fil | --fi | --f )
12215 $ac_shift
12216 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12217 ac_need_defaults=false;;
12218 --header | --heade | --head | --hea )
12219 $ac_shift
12220 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12221 ac_need_defaults=false;;
12222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12223 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12224 ac_cs_silent=: ;;
12225
12226 # This is an error.
12227 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12228 Try \`$0 --help' for more information." >&5
12229 echo "$as_me: error: unrecognized option: $1
12230 Try \`$0 --help' for more information." >&2;}
12231 { (exit 1); exit 1; }; } ;;
12232
12233 *) ac_config_targets="$ac_config_targets $1" ;;
12234
12235 esac
12236 shift
12237 done
12238
12239 ac_configure_extra_args=
12240
12241 if $ac_cs_silent; then
12242 exec 6>/dev/null
12243 ac_configure_extra_args="$ac_configure_extra_args --silent"
12244 fi
12245
12246 _ACEOF
12247 cat >>$CONFIG_STATUS <<_ACEOF
12248 if \$ac_cs_recheck; then
12249 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12250 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12251 fi
12252
12253 _ACEOF
12254
12255 cat >>$CONFIG_STATUS <<_ACEOF
12256 #
12257 # INIT-COMMANDS section.
12258 #
12259
12260 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12261
12262
12263 # The HP-UX ksh and POSIX shell print the target directory to stdout
12264 # if CDPATH is set.
12265 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12266
12267 sed_quote_subst='$sed_quote_subst'
12268 double_quote_subst='$double_quote_subst'
12269 delay_variable_subst='$delay_variable_subst'
12270 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12271 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12272 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12273 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12274 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12275 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12276 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12277 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12278 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12279 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12280 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12281 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12282 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12283 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12284 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12285 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12286 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12287 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12288 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12289 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12290 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12291 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12292 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12293 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12294 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12295 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12296 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12297 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12298 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12299 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12300 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12301 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12302 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12303 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12304 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12305 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12306 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12307 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12308 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12309 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12310 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12311 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12312 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12313 lt_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"`'
12314 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12315 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12316 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12317 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12318 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12319 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12320 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12321 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12322 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12323 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12324 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12325 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12326 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12327 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12328 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12329 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12330 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12331 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12332 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12333 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12334 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12335 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12336 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12337 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12338 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12339 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12340 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12341 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12342 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12343 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12344 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12345 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12346 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12347 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12348 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12349 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12350 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12351 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12352 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12353 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12354 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12355 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12356 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12357 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12358 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12359 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12360 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12361 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12362 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12363 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12364 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12365 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12366 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12367 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12368 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12369 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12370 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12371 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12372 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12373 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12374 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12375 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12376 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12377 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12378 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12379 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12380 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12381
12382 LTCC='$LTCC'
12383 LTCFLAGS='$LTCFLAGS'
12384 compiler='$compiler_DEFAULT'
12385
12386 # Quote evaled strings.
12387 for var in SED \
12388 GREP \
12389 EGREP \
12390 FGREP \
12391 LD \
12392 NM \
12393 LN_S \
12394 lt_SP2NL \
12395 lt_NL2SP \
12396 reload_flag \
12397 deplibs_check_method \
12398 file_magic_cmd \
12399 AR \
12400 AR_FLAGS \
12401 STRIP \
12402 RANLIB \
12403 CC \
12404 CFLAGS \
12405 compiler \
12406 lt_cv_sys_global_symbol_pipe \
12407 lt_cv_sys_global_symbol_to_cdecl \
12408 lt_cv_sys_global_symbol_to_c_name_address \
12409 SHELL \
12410 ECHO \
12411 lt_prog_compiler_no_builtin_flag \
12412 lt_prog_compiler_wl \
12413 lt_prog_compiler_pic \
12414 lt_prog_compiler_static \
12415 lt_cv_prog_compiler_c_o \
12416 need_locks \
12417 shrext_cmds \
12418 export_dynamic_flag_spec \
12419 whole_archive_flag_spec \
12420 compiler_needs_object \
12421 with_gnu_ld \
12422 allow_undefined_flag \
12423 no_undefined_flag \
12424 hardcode_libdir_flag_spec \
12425 hardcode_libdir_flag_spec_ld \
12426 hardcode_libdir_separator \
12427 fix_srcfile_path \
12428 exclude_expsyms \
12429 include_expsyms \
12430 file_list_spec \
12431 variables_saved_for_relink \
12432 libname_spec \
12433 library_names_spec \
12434 soname_spec \
12435 finish_eval \
12436 old_striplib \
12437 striplib; do
12438 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12439 *[\\\\\\\`\\"\\\$]*)
12440 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12441 ;;
12442 *)
12443 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12444 ;;
12445 esac
12446 done
12447
12448 # Double-quote double-evaled strings.
12449 for var in reload_cmds \
12450 old_postinstall_cmds \
12451 old_postuninstall_cmds \
12452 old_archive_cmds \
12453 extract_expsyms_cmds \
12454 old_archive_from_new_cmds \
12455 old_archive_from_expsyms_cmds \
12456 archive_cmds \
12457 archive_expsym_cmds \
12458 module_cmds \
12459 module_expsym_cmds \
12460 export_symbols_cmds \
12461 prelink_cmds \
12462 postinstall_cmds \
12463 postuninstall_cmds \
12464 finish_cmds \
12465 sys_lib_search_path_spec \
12466 sys_lib_dlsearch_path_spec; do
12467 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12468 *[\\\\\\\`\\"\\\$]*)
12469 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12470 ;;
12471 *)
12472 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12473 ;;
12474 esac
12475 done
12476
12477 # Fix-up fallback echo if it was mangled by the above quoting rules.
12478 case \$lt_ECHO in
12479 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12480 ;;
12481 esac
12482
12483 ac_aux_dir='$ac_aux_dir'
12484 xsi_shell='$xsi_shell'
12485 lt_shell_append='$lt_shell_append'
12486
12487 # See if we are running on zsh, and set the options which allow our
12488 # commands through without removal of \ escapes INIT.
12489 if test -n "\${ZSH_VERSION+set}" ; then
12490 setopt NO_GLOB_SUBST
12491 fi
12492
12493
12494 PACKAGE='$PACKAGE'
12495 VERSION='$VERSION'
12496 TIMESTAMP='$TIMESTAMP'
12497 RM='$RM'
12498 ofile='$ofile'
12499
12500
12501
12502 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12503 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12504 # from automake.
12505 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12506 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12507 LINGUAS="${LINGUAS-%UNSET%}"
12508
12509
12510 _ACEOF
12511
12512
12513
12514 cat >>$CONFIG_STATUS <<\_ACEOF
12515 for ac_config_target in $ac_config_targets
12516 do
12517 case "$ac_config_target" in
12518 # Handling of arguments.
12519 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12520 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12521 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12522 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12523 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12524 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12525 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12526 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12527 { (exit 1); exit 1; }; };;
12528 esac
12529 done
12530
12531 # If the user did not use the arguments to specify the items to instantiate,
12532 # then the envvar interface is used. Set only those that are not.
12533 # We use the long form for the default assignment because of an extremely
12534 # bizarre bug on SunOS 4.1.3.
12535 if $ac_need_defaults; then
12536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12537 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12538 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12539 fi
12540
12541 # Have a temporary directory for convenience. Make it in the build tree
12542 # simply because there is no reason to put it here, and in addition,
12543 # creating and moving files from /tmp can sometimes cause problems.
12544 # Create a temporary directory, and hook for its removal unless debugging.
12545 $debug ||
12546 {
12547 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12548 trap '{ (exit 1); exit 1; }' 1 2 13 15
12549 }
12550
12551 # Create a (secure) tmp directory for tmp files.
12552
12553 {
12554 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12555 test -n "$tmp" && test -d "$tmp"
12556 } ||
12557 {
12558 tmp=./confstat$$-$RANDOM
12559 (umask 077 && mkdir $tmp)
12560 } ||
12561 {
12562 echo "$me: cannot create a temporary directory in ." >&2
12563 { (exit 1); exit 1; }
12564 }
12565
12566 _ACEOF
12567
12568 cat >>$CONFIG_STATUS <<_ACEOF
12569
12570 #
12571 # CONFIG_FILES section.
12572 #
12573
12574 # No need to generate the scripts if there are no CONFIG_FILES.
12575 # This happens for instance when ./config.status config.h
12576 if test -n "\$CONFIG_FILES"; then
12577 # Protect against being on the right side of a sed subst in config.status.
12578 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12579 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12580 s,@SHELL@,$SHELL,;t t
12581 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12582 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12583 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12584 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12585 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12586 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12587 s,@exec_prefix@,$exec_prefix,;t t
12588 s,@prefix@,$prefix,;t t
12589 s,@program_transform_name@,$program_transform_name,;t t
12590 s,@bindir@,$bindir,;t t
12591 s,@sbindir@,$sbindir,;t t
12592 s,@libexecdir@,$libexecdir,;t t
12593 s,@datadir@,$datadir,;t t
12594 s,@sysconfdir@,$sysconfdir,;t t
12595 s,@sharedstatedir@,$sharedstatedir,;t t
12596 s,@localstatedir@,$localstatedir,;t t
12597 s,@libdir@,$libdir,;t t
12598 s,@includedir@,$includedir,;t t
12599 s,@oldincludedir@,$oldincludedir,;t t
12600 s,@infodir@,$infodir,;t t
12601 s,@mandir@,$mandir,;t t
12602 s,@build_alias@,$build_alias,;t t
12603 s,@host_alias@,$host_alias,;t t
12604 s,@target_alias@,$target_alias,;t t
12605 s,@DEFS@,$DEFS,;t t
12606 s,@ECHO_C@,$ECHO_C,;t t
12607 s,@ECHO_N@,$ECHO_N,;t t
12608 s,@ECHO_T@,$ECHO_T,;t t
12609 s,@LIBS@,$LIBS,;t t
12610 s,@build@,$build,;t t
12611 s,@build_cpu@,$build_cpu,;t t
12612 s,@build_vendor@,$build_vendor,;t t
12613 s,@build_os@,$build_os,;t t
12614 s,@host@,$host,;t t
12615 s,@host_cpu@,$host_cpu,;t t
12616 s,@host_vendor@,$host_vendor,;t t
12617 s,@host_os@,$host_os,;t t
12618 s,@target@,$target,;t t
12619 s,@target_cpu@,$target_cpu,;t t
12620 s,@target_vendor@,$target_vendor,;t t
12621 s,@target_os@,$target_os,;t t
12622 s,@CC@,$CC,;t t
12623 s,@CFLAGS@,$CFLAGS,;t t
12624 s,@LDFLAGS@,$LDFLAGS,;t t
12625 s,@CPPFLAGS@,$CPPFLAGS,;t t
12626 s,@ac_ct_CC@,$ac_ct_CC,;t t
12627 s,@EXEEXT@,$EXEEXT,;t t
12628 s,@OBJEXT@,$OBJEXT,;t t
12629 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12630 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12631 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12632 s,@CYGPATH_W@,$CYGPATH_W,;t t
12633 s,@PACKAGE@,$PACKAGE,;t t
12634 s,@VERSION@,$VERSION,;t t
12635 s,@ACLOCAL@,$ACLOCAL,;t t
12636 s,@AUTOCONF@,$AUTOCONF,;t t
12637 s,@AUTOMAKE@,$AUTOMAKE,;t t
12638 s,@AUTOHEADER@,$AUTOHEADER,;t t
12639 s,@MAKEINFO@,$MAKEINFO,;t t
12640 s,@install_sh@,$install_sh,;t t
12641 s,@STRIP@,$STRIP,;t t
12642 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12643 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12644 s,@mkdir_p@,$mkdir_p,;t t
12645 s,@AWK@,$AWK,;t t
12646 s,@SET_MAKE@,$SET_MAKE,;t t
12647 s,@am__leading_dot@,$am__leading_dot,;t t
12648 s,@AMTAR@,$AMTAR,;t t
12649 s,@am__tar@,$am__tar,;t t
12650 s,@am__untar@,$am__untar,;t t
12651 s,@DEPDIR@,$DEPDIR,;t t
12652 s,@am__include@,$am__include,;t t
12653 s,@am__quote@,$am__quote,;t t
12654 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12655 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12656 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12657 s,@CCDEPMODE@,$CCDEPMODE,;t t
12658 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12659 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12660 s,@AR@,$AR,;t t
12661 s,@ac_ct_AR@,$ac_ct_AR,;t t
12662 s,@RANLIB@,$RANLIB,;t t
12663 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12664 s,@LIBTOOL@,$LIBTOOL,;t t
12665 s,@SED@,$SED,;t t
12666 s,@EGREP@,$EGREP,;t t
12667 s,@FGREP@,$FGREP,;t t
12668 s,@GREP@,$GREP,;t t
12669 s,@LD@,$LD,;t t
12670 s,@DUMPBIN@,$DUMPBIN,;t t
12671 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12672 s,@NM@,$NM,;t t
12673 s,@LN_S@,$LN_S,;t t
12674 s,@lt_ECHO@,$lt_ECHO,;t t
12675 s,@CPP@,$CPP,;t t
12676 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12677 s,@NO_WERROR@,$NO_WERROR,;t t
12678 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12679 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12680 s,@MAINT@,$MAINT,;t t
12681 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12682 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12683 s,@host_noncanonical@,$host_noncanonical,;t t
12684 s,@target_noncanonical@,$target_noncanonical,;t t
12685 s,@bfdlibdir@,$bfdlibdir,;t t
12686 s,@bfdincludedir@,$bfdincludedir,;t t
12687 s,@USE_NLS@,$USE_NLS,;t t
12688 s,@LIBINTL@,$LIBINTL,;t t
12689 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12690 s,@INCINTL@,$INCINTL,;t t
12691 s,@XGETTEXT@,$XGETTEXT,;t t
12692 s,@GMSGFMT@,$GMSGFMT,;t t
12693 s,@POSUB@,$POSUB,;t t
12694 s,@CATALOGS@,$CATALOGS,;t t
12695 s,@DATADIRNAME@,$DATADIRNAME,;t t
12696 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12697 s,@GENCAT@,$GENCAT,;t t
12698 s,@CATOBJEXT@,$CATOBJEXT,;t t
12699 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12700 s,@MSGFMT@,$MSGFMT,;t t
12701 s,@MSGMERGE@,$MSGMERGE,;t t
12702 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12703 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12704 s,@HDEFINES@,$HDEFINES,;t t
12705 s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
12706 s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
12707 s,@cgendir@,$cgendir,;t t
12708 s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
12709 s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
12710 s,@SHARED_DEPENDENCIES@,$SHARED_DEPENDENCIES,;t t
12711 s,@archdefs@,$archdefs,;t t
12712 s,@BFD_MACHINES@,$BFD_MACHINES,;t t
12713 s,@LIBOBJS@,$LIBOBJS,;t t
12714 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12715 CEOF
12716
12717 _ACEOF
12718
12719 cat >>$CONFIG_STATUS <<\_ACEOF
12720 # Split the substitutions into bite-sized pieces for seds with
12721 # small command number limits, like on Digital OSF/1 and HP-UX.
12722 ac_max_sed_lines=48
12723 ac_sed_frag=1 # Number of current file.
12724 ac_beg=1 # First line for current file.
12725 ac_end=$ac_max_sed_lines # Line after last line for current file.
12726 ac_more_lines=:
12727 ac_sed_cmds=
12728 while $ac_more_lines; do
12729 if test $ac_beg -gt 1; then
12730 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12731 else
12732 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12733 fi
12734 if test ! -s $tmp/subs.frag; then
12735 ac_more_lines=false
12736 else
12737 # The purpose of the label and of the branching condition is to
12738 # speed up the sed processing (if there are no `@' at all, there
12739 # is no need to browse any of the substitutions).
12740 # These are the two extra sed commands mentioned above.
12741 (echo ':t
12742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12743 if test -z "$ac_sed_cmds"; then
12744 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12745 else
12746 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12747 fi
12748 ac_sed_frag=`expr $ac_sed_frag + 1`
12749 ac_beg=$ac_end
12750 ac_end=`expr $ac_end + $ac_max_sed_lines`
12751 fi
12752 done
12753 if test -z "$ac_sed_cmds"; then
12754 ac_sed_cmds=cat
12755 fi
12756 fi # test -n "$CONFIG_FILES"
12757
12758 _ACEOF
12759 cat >>$CONFIG_STATUS <<\_ACEOF
12760 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12761 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12762 case $ac_file in
12763 - | *:- | *:-:* ) # input from stdin
12764 cat >$tmp/stdin
12765 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12767 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12769 * ) ac_file_in=$ac_file.in ;;
12770 esac
12771
12772 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12773 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12775 X"$ac_file" : 'X\(//\)[^/]' \| \
12776 X"$ac_file" : 'X\(//\)$' \| \
12777 X"$ac_file" : 'X\(/\)' \| \
12778 . : '\(.\)' 2>/dev/null ||
12779 echo X"$ac_file" |
12780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12782 /^X\(\/\/\)$/{ s//\1/; q; }
12783 /^X\(\/\).*/{ s//\1/; q; }
12784 s/.*/./; q'`
12785 { if $as_mkdir_p; then
12786 mkdir -p "$ac_dir"
12787 else
12788 as_dir="$ac_dir"
12789 as_dirs=
12790 while test ! -d "$as_dir"; do
12791 as_dirs="$as_dir $as_dirs"
12792 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12794 X"$as_dir" : 'X\(//\)[^/]' \| \
12795 X"$as_dir" : 'X\(//\)$' \| \
12796 X"$as_dir" : 'X\(/\)' \| \
12797 . : '\(.\)' 2>/dev/null ||
12798 echo X"$as_dir" |
12799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12801 /^X\(\/\/\)$/{ s//\1/; q; }
12802 /^X\(\/\).*/{ s//\1/; q; }
12803 s/.*/./; q'`
12804 done
12805 test ! -n "$as_dirs" || mkdir $as_dirs
12806 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12807 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12808 { (exit 1); exit 1; }; }; }
12809
12810 ac_builddir=.
12811
12812 if test "$ac_dir" != .; then
12813 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12814 # A "../" for each directory in $ac_dir_suffix.
12815 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12816 else
12817 ac_dir_suffix= ac_top_builddir=
12818 fi
12819
12820 case $srcdir in
12821 .) # No --srcdir option. We are building in place.
12822 ac_srcdir=.
12823 if test -z "$ac_top_builddir"; then
12824 ac_top_srcdir=.
12825 else
12826 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12827 fi ;;
12828 [\\/]* | ?:[\\/]* ) # Absolute path.
12829 ac_srcdir=$srcdir$ac_dir_suffix;
12830 ac_top_srcdir=$srcdir ;;
12831 *) # Relative path.
12832 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12833 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12834 esac
12835
12836 # Do not use `cd foo && pwd` to compute absolute paths, because
12837 # the directories may not exist.
12838 case `pwd` in
12839 .) ac_abs_builddir="$ac_dir";;
12840 *)
12841 case "$ac_dir" in
12842 .) ac_abs_builddir=`pwd`;;
12843 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12844 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12845 esac;;
12846 esac
12847 case $ac_abs_builddir in
12848 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12849 *)
12850 case ${ac_top_builddir}. in
12851 .) ac_abs_top_builddir=$ac_abs_builddir;;
12852 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12853 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12854 esac;;
12855 esac
12856 case $ac_abs_builddir in
12857 .) ac_abs_srcdir=$ac_srcdir;;
12858 *)
12859 case $ac_srcdir in
12860 .) ac_abs_srcdir=$ac_abs_builddir;;
12861 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12862 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12863 esac;;
12864 esac
12865 case $ac_abs_builddir in
12866 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12867 *)
12868 case $ac_top_srcdir in
12869 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12870 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12871 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12872 esac;;
12873 esac
12874
12875
12876 case $INSTALL in
12877 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12878 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12879 esac
12880
12881 if test x"$ac_file" != x-; then
12882 { echo "$as_me:$LINENO: creating $ac_file" >&5
12883 echo "$as_me: creating $ac_file" >&6;}
12884 rm -f "$ac_file"
12885 fi
12886 # Let's still pretend it is `configure' which instantiates (i.e., don't
12887 # use $as_me), people would be surprised to read:
12888 # /* config.h. Generated by config.status. */
12889 if test x"$ac_file" = x-; then
12890 configure_input=
12891 else
12892 configure_input="$ac_file. "
12893 fi
12894 configure_input=$configure_input"Generated from `echo $ac_file_in |
12895 sed 's,.*/,,'` by configure."
12896
12897 # First look for the input files in the build tree, otherwise in the
12898 # src tree.
12899 ac_file_inputs=`IFS=:
12900 for f in $ac_file_in; do
12901 case $f in
12902 -) echo $tmp/stdin ;;
12903 [\\/$]*)
12904 # Absolute (can't be DOS-style, as IFS=:)
12905 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12906 echo "$as_me: error: cannot find input file: $f" >&2;}
12907 { (exit 1); exit 1; }; }
12908 echo "$f";;
12909 *) # Relative
12910 if test -f "$f"; then
12911 # Build tree
12912 echo "$f"
12913 elif test -f "$srcdir/$f"; then
12914 # Source tree
12915 echo "$srcdir/$f"
12916 else
12917 # /dev/null tree
12918 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12919 echo "$as_me: error: cannot find input file: $f" >&2;}
12920 { (exit 1); exit 1; }; }
12921 fi;;
12922 esac
12923 done` || { (exit 1); exit 1; }
12924 _ACEOF
12925 cat >>$CONFIG_STATUS <<_ACEOF
12926 sed "$ac_vpsub
12927 $extrasub
12928 _ACEOF
12929 cat >>$CONFIG_STATUS <<\_ACEOF
12930 :t
12931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12932 s,@configure_input@,$configure_input,;t t
12933 s,@srcdir@,$ac_srcdir,;t t
12934 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12935 s,@top_srcdir@,$ac_top_srcdir,;t t
12936 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12937 s,@builddir@,$ac_builddir,;t t
12938 s,@abs_builddir@,$ac_abs_builddir,;t t
12939 s,@top_builddir@,$ac_top_builddir,;t t
12940 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12941 s,@INSTALL@,$ac_INSTALL,;t t
12942 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12943 rm -f $tmp/stdin
12944 if test x"$ac_file" != x-; then
12945 mv $tmp/out $ac_file
12946 else
12947 cat $tmp/out
12948 rm -f $tmp/out
12949 fi
12950
12951 done
12952 _ACEOF
12953 cat >>$CONFIG_STATUS <<\_ACEOF
12954
12955 #
12956 # CONFIG_HEADER section.
12957 #
12958
12959 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12960 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12961 #
12962 # ac_d sets the value in "#define NAME VALUE" lines.
12963 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12964 ac_dB='[ ].*$,\1#\2'
12965 ac_dC=' '
12966 ac_dD=',;t'
12967 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12968 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12969 ac_uB='$,\1#\2define\3'
12970 ac_uC=' '
12971 ac_uD=',;t'
12972
12973 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12974 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12975 case $ac_file in
12976 - | *:- | *:-:* ) # input from stdin
12977 cat >$tmp/stdin
12978 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12980 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12981 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12982 * ) ac_file_in=$ac_file.in ;;
12983 esac
12984
12985 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12986 echo "$as_me: creating $ac_file" >&6;}
12987
12988 # First look for the input files in the build tree, otherwise in the
12989 # src tree.
12990 ac_file_inputs=`IFS=:
12991 for f in $ac_file_in; do
12992 case $f in
12993 -) echo $tmp/stdin ;;
12994 [\\/$]*)
12995 # Absolute (can't be DOS-style, as IFS=:)
12996 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12997 echo "$as_me: error: cannot find input file: $f" >&2;}
12998 { (exit 1); exit 1; }; }
12999 # Do quote $f, to prevent DOS paths from being IFS'd.
13000 echo "$f";;
13001 *) # Relative
13002 if test -f "$f"; then
13003 # Build tree
13004 echo "$f"
13005 elif test -f "$srcdir/$f"; then
13006 # Source tree
13007 echo "$srcdir/$f"
13008 else
13009 # /dev/null tree
13010 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13011 echo "$as_me: error: cannot find input file: $f" >&2;}
13012 { (exit 1); exit 1; }; }
13013 fi;;
13014 esac
13015 done` || { (exit 1); exit 1; }
13016 # Remove the trailing spaces.
13017 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13018
13019 _ACEOF
13020
13021 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13022 # `conftest.undefs', that substitutes the proper values into
13023 # config.h.in to produce config.h. The first handles `#define'
13024 # templates, and the second `#undef' templates.
13025 # And first: Protect against being on the right side of a sed subst in
13026 # config.status. Protect against being in an unquoted here document
13027 # in config.status.
13028 rm -f conftest.defines conftest.undefs
13029 # Using a here document instead of a string reduces the quoting nightmare.
13030 # Putting comments in sed scripts is not portable.
13031 #
13032 # `end' is used to avoid that the second main sed command (meant for
13033 # 0-ary CPP macros) applies to n-ary macro definitions.
13034 # See the Autoconf documentation for `clear'.
13035 cat >confdef2sed.sed <<\_ACEOF
13036 s/[\\&,]/\\&/g
13037 s,[\\$`],\\&,g
13038 t clear
13039 : clear
13040 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13041 t end
13042 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13043 : end
13044 _ACEOF
13045 # If some macros were called several times there might be several times
13046 # the same #defines, which is useless. Nevertheless, we may not want to
13047 # sort them, since we want the *last* AC-DEFINE to be honored.
13048 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13049 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13050 rm -f confdef2sed.sed
13051
13052 # This sed command replaces #undef with comments. This is necessary, for
13053 # example, in the case of _POSIX_SOURCE, which is predefined and required
13054 # on some systems where configure will not decide to define it.
13055 cat >>conftest.undefs <<\_ACEOF
13056 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13057 _ACEOF
13058
13059 # Break up conftest.defines because some shells have a limit on the size
13060 # of here documents, and old seds have small limits too (100 cmds).
13061 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13062 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13063 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13064 echo ' :' >>$CONFIG_STATUS
13065 rm -f conftest.tail
13066 while grep . conftest.defines >/dev/null
13067 do
13068 # Write a limited-size here document to $tmp/defines.sed.
13069 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13070 # Speed up: don't consider the non `#define' lines.
13071 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13072 # Work around the forget-to-reset-the-flag bug.
13073 echo 't clr' >>$CONFIG_STATUS
13074 echo ': clr' >>$CONFIG_STATUS
13075 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13076 echo 'CEOF
13077 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13078 rm -f $tmp/in
13079 mv $tmp/out $tmp/in
13080 ' >>$CONFIG_STATUS
13081 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13082 rm -f conftest.defines
13083 mv conftest.tail conftest.defines
13084 done
13085 rm -f conftest.defines
13086 echo ' fi # grep' >>$CONFIG_STATUS
13087 echo >>$CONFIG_STATUS
13088
13089 # Break up conftest.undefs because some shells have a limit on the size
13090 # of here documents, and old seds have small limits too (100 cmds).
13091 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13092 rm -f conftest.tail
13093 while grep . conftest.undefs >/dev/null
13094 do
13095 # Write a limited-size here document to $tmp/undefs.sed.
13096 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13097 # Speed up: don't consider the non `#undef'
13098 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13099 # Work around the forget-to-reset-the-flag bug.
13100 echo 't clr' >>$CONFIG_STATUS
13101 echo ': clr' >>$CONFIG_STATUS
13102 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13103 echo 'CEOF
13104 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13105 rm -f $tmp/in
13106 mv $tmp/out $tmp/in
13107 ' >>$CONFIG_STATUS
13108 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13109 rm -f conftest.undefs
13110 mv conftest.tail conftest.undefs
13111 done
13112 rm -f conftest.undefs
13113
13114 cat >>$CONFIG_STATUS <<\_ACEOF
13115 # Let's still pretend it is `configure' which instantiates (i.e., don't
13116 # use $as_me), people would be surprised to read:
13117 # /* config.h. Generated by config.status. */
13118 if test x"$ac_file" = x-; then
13119 echo "/* Generated by configure. */" >$tmp/config.h
13120 else
13121 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13122 fi
13123 cat $tmp/in >>$tmp/config.h
13124 rm -f $tmp/in
13125 if test x"$ac_file" != x-; then
13126 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13127 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13128 echo "$as_me: $ac_file is unchanged" >&6;}
13129 else
13130 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13132 X"$ac_file" : 'X\(//\)[^/]' \| \
13133 X"$ac_file" : 'X\(//\)$' \| \
13134 X"$ac_file" : 'X\(/\)' \| \
13135 . : '\(.\)' 2>/dev/null ||
13136 echo X"$ac_file" |
13137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13139 /^X\(\/\/\)$/{ s//\1/; q; }
13140 /^X\(\/\).*/{ s//\1/; q; }
13141 s/.*/./; q'`
13142 { if $as_mkdir_p; then
13143 mkdir -p "$ac_dir"
13144 else
13145 as_dir="$ac_dir"
13146 as_dirs=
13147 while test ! -d "$as_dir"; do
13148 as_dirs="$as_dir $as_dirs"
13149 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13151 X"$as_dir" : 'X\(//\)[^/]' \| \
13152 X"$as_dir" : 'X\(//\)$' \| \
13153 X"$as_dir" : 'X\(/\)' \| \
13154 . : '\(.\)' 2>/dev/null ||
13155 echo X"$as_dir" |
13156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13158 /^X\(\/\/\)$/{ s//\1/; q; }
13159 /^X\(\/\).*/{ s//\1/; q; }
13160 s/.*/./; q'`
13161 done
13162 test ! -n "$as_dirs" || mkdir $as_dirs
13163 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13164 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13165 { (exit 1); exit 1; }; }; }
13166
13167 rm -f $ac_file
13168 mv $tmp/config.h $ac_file
13169 fi
13170 else
13171 cat $tmp/config.h
13172 rm -f $tmp/config.h
13173 fi
13174 # Compute $ac_file's index in $config_headers.
13175 _am_stamp_count=1
13176 for _am_header in $config_headers :; do
13177 case $_am_header in
13178 $ac_file | $ac_file:* )
13179 break ;;
13180 * )
13181 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13182 esac
13183 done
13184 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13185 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13186 X$ac_file : 'X\(//\)[^/]' \| \
13187 X$ac_file : 'X\(//\)$' \| \
13188 X$ac_file : 'X\(/\)' \| \
13189 . : '\(.\)' 2>/dev/null ||
13190 echo X$ac_file |
13191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13193 /^X\(\/\/\)$/{ s//\1/; q; }
13194 /^X\(\/\).*/{ s//\1/; q; }
13195 s/.*/./; q'`/stamp-h$_am_stamp_count
13196 done
13197 _ACEOF
13198 cat >>$CONFIG_STATUS <<\_ACEOF
13199
13200 #
13201 # CONFIG_COMMANDS section.
13202 #
13203 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13204 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13205 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13206 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13207 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13208 X"$ac_dest" : 'X\(//\)[^/]' \| \
13209 X"$ac_dest" : 'X\(//\)$' \| \
13210 X"$ac_dest" : 'X\(/\)' \| \
13211 . : '\(.\)' 2>/dev/null ||
13212 echo X"$ac_dest" |
13213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13215 /^X\(\/\/\)$/{ s//\1/; q; }
13216 /^X\(\/\).*/{ s//\1/; q; }
13217 s/.*/./; q'`
13218 { if $as_mkdir_p; then
13219 mkdir -p "$ac_dir"
13220 else
13221 as_dir="$ac_dir"
13222 as_dirs=
13223 while test ! -d "$as_dir"; do
13224 as_dirs="$as_dir $as_dirs"
13225 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13227 X"$as_dir" : 'X\(//\)[^/]' \| \
13228 X"$as_dir" : 'X\(//\)$' \| \
13229 X"$as_dir" : 'X\(/\)' \| \
13230 . : '\(.\)' 2>/dev/null ||
13231 echo X"$as_dir" |
13232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13233 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13234 /^X\(\/\/\)$/{ s//\1/; q; }
13235 /^X\(\/\).*/{ s//\1/; q; }
13236 s/.*/./; q'`
13237 done
13238 test ! -n "$as_dirs" || mkdir $as_dirs
13239 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13240 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13241 { (exit 1); exit 1; }; }; }
13242
13243 ac_builddir=.
13244
13245 if test "$ac_dir" != .; then
13246 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13247 # A "../" for each directory in $ac_dir_suffix.
13248 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13249 else
13250 ac_dir_suffix= ac_top_builddir=
13251 fi
13252
13253 case $srcdir in
13254 .) # No --srcdir option. We are building in place.
13255 ac_srcdir=.
13256 if test -z "$ac_top_builddir"; then
13257 ac_top_srcdir=.
13258 else
13259 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13260 fi ;;
13261 [\\/]* | ?:[\\/]* ) # Absolute path.
13262 ac_srcdir=$srcdir$ac_dir_suffix;
13263 ac_top_srcdir=$srcdir ;;
13264 *) # Relative path.
13265 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13266 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13267 esac
13268
13269 # Do not use `cd foo && pwd` to compute absolute paths, because
13270 # the directories may not exist.
13271 case `pwd` in
13272 .) ac_abs_builddir="$ac_dir";;
13273 *)
13274 case "$ac_dir" in
13275 .) ac_abs_builddir=`pwd`;;
13276 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13277 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13278 esac;;
13279 esac
13280 case $ac_abs_builddir in
13281 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13282 *)
13283 case ${ac_top_builddir}. in
13284 .) ac_abs_top_builddir=$ac_abs_builddir;;
13285 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13286 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13287 esac;;
13288 esac
13289 case $ac_abs_builddir in
13290 .) ac_abs_srcdir=$ac_srcdir;;
13291 *)
13292 case $ac_srcdir in
13293 .) ac_abs_srcdir=$ac_abs_builddir;;
13294 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13295 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13296 esac;;
13297 esac
13298 case $ac_abs_builddir in
13299 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13300 *)
13301 case $ac_top_srcdir in
13302 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13303 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13304 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13305 esac;;
13306 esac
13307
13308
13309 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13310 echo "$as_me: executing $ac_dest commands" >&6;}
13311 case $ac_dest in
13312 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13313 # Strip MF so we end up with the name of the file.
13314 mf=`echo "$mf" | sed -e 's/:.*$//'`
13315 # Check whether this is an Automake generated Makefile or not.
13316 # We used to match only the files named `Makefile.in', but
13317 # some people rename them; so instead we look at the file content.
13318 # Grep'ing the first line is not enough: some people post-process
13319 # each Makefile.in and add a new line on top of each file to say so.
13320 # So let's grep whole file.
13321 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13322 dirpart=`(dirname "$mf") 2>/dev/null ||
13323 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13324 X"$mf" : 'X\(//\)[^/]' \| \
13325 X"$mf" : 'X\(//\)$' \| \
13326 X"$mf" : 'X\(/\)' \| \
13327 . : '\(.\)' 2>/dev/null ||
13328 echo X"$mf" |
13329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13331 /^X\(\/\/\)$/{ s//\1/; q; }
13332 /^X\(\/\).*/{ s//\1/; q; }
13333 s/.*/./; q'`
13334 else
13335 continue
13336 fi
13337 # Extract the definition of DEPDIR, am__include, and am__quote
13338 # from the Makefile without running `make'.
13339 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13340 test -z "$DEPDIR" && continue
13341 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13342 test -z "am__include" && continue
13343 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13344 # When using ansi2knr, U may be empty or an underscore; expand it
13345 U=`sed -n 's/^U = //p' < "$mf"`
13346 # Find all dependency output files, they are included files with
13347 # $(DEPDIR) in their names. We invoke sed twice because it is the
13348 # simplest approach to changing $(DEPDIR) to its actual value in the
13349 # expansion.
13350 for file in `sed -n "
13351 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13352 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13353 # Make sure the directory exists.
13354 test -f "$dirpart/$file" && continue
13355 fdir=`(dirname "$file") 2>/dev/null ||
13356 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13357 X"$file" : 'X\(//\)[^/]' \| \
13358 X"$file" : 'X\(//\)$' \| \
13359 X"$file" : 'X\(/\)' \| \
13360 . : '\(.\)' 2>/dev/null ||
13361 echo X"$file" |
13362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13364 /^X\(\/\/\)$/{ s//\1/; q; }
13365 /^X\(\/\).*/{ s//\1/; q; }
13366 s/.*/./; q'`
13367 { if $as_mkdir_p; then
13368 mkdir -p $dirpart/$fdir
13369 else
13370 as_dir=$dirpart/$fdir
13371 as_dirs=
13372 while test ! -d "$as_dir"; do
13373 as_dirs="$as_dir $as_dirs"
13374 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13376 X"$as_dir" : 'X\(//\)[^/]' \| \
13377 X"$as_dir" : 'X\(//\)$' \| \
13378 X"$as_dir" : 'X\(/\)' \| \
13379 . : '\(.\)' 2>/dev/null ||
13380 echo X"$as_dir" |
13381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13383 /^X\(\/\/\)$/{ s//\1/; q; }
13384 /^X\(\/\).*/{ s//\1/; q; }
13385 s/.*/./; q'`
13386 done
13387 test ! -n "$as_dirs" || mkdir $as_dirs
13388 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13389 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13390 { (exit 1); exit 1; }; }; }
13391
13392 # echo "creating $dirpart/$file"
13393 echo '# dummy' > "$dirpart/$file"
13394 done
13395 done
13396 ;;
13397 libtool )
13398
13399 # See if we are running on zsh, and set the options which allow our
13400 # commands through without removal of \ escapes.
13401 if test -n "${ZSH_VERSION+set}" ; then
13402 setopt NO_GLOB_SUBST
13403 fi
13404
13405 cfgfile="${ofile}T"
13406 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13407 $RM "$cfgfile"
13408
13409 cat <<_LT_EOF >> "$cfgfile"
13410 #! $SHELL
13411
13412 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13413 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13414 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13415 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13416 #
13417 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13418 # 2006, 2007 Free Software Foundation, Inc.
13419 #
13420 # This file is part of GNU Libtool:
13421 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13422 #
13423 # This program is free software; you can redistribute it and/or modify
13424 # it under the terms of the GNU General Public License as published by
13425 # the Free Software Foundation; either version 2 of the License, or
13426 # (at your option) any later version.
13427 #
13428 # This program is distributed in the hope that it will be useful, but
13429 # WITHOUT ANY WARRANTY; without even the implied warranty of
13430 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13431 # General Public License for more details.
13432 #
13433 # You should have received a copy of the GNU General Public License
13434 # along with this program; if not, a copy can be downloaded from
13435 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13436 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13437 # MA 02110-1301, USA.
13438 #
13439 # As a special exception to the GNU General Public License, if you
13440 # distribute this file as part of a program that contains a
13441 # configuration script generated by Autoconf, you may include it under
13442 # the same distribution terms that you use for the rest of that program.
13443
13444
13445 # The names of the tagged configurations supported by this script.
13446 available_tags=""
13447
13448 # ### BEGIN LIBTOOL CONFIG
13449
13450 # Whether or not to build shared libraries.
13451 build_libtool_libs=$enable_shared
13452
13453 # Which release of libtool.m4 was used?
13454 macro_version=$macro_version
13455 macro_revision=$macro_revision
13456
13457 # Whether or not to build static libraries.
13458 build_old_libs=$enable_static
13459
13460 # What type of objects to build.
13461 pic_mode=$pic_mode
13462
13463 # Whether or not to optimize for fast installation.
13464 fast_install=$enable_fast_install
13465
13466 # The host system.
13467 host_alias=$host_alias
13468 host=$host
13469 host_os=$host_os
13470
13471 # The build system.
13472 build_alias=$build_alias
13473 build=$build
13474 build_os=$build_os
13475
13476 # A sed program that does not truncate output.
13477 SED=$lt_SED
13478
13479 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13480 Xsed="\$SED -e 1s/^X//"
13481
13482 # A grep program that handles long lines.
13483 GREP=$lt_GREP
13484
13485 # An ERE matcher.
13486 EGREP=$lt_EGREP
13487
13488 # A literal string matcher.
13489 FGREP=$lt_FGREP
13490
13491 # A BSD- or MS-compatible name lister.
13492 NM=$lt_NM
13493
13494 # Whether we need soft or hard links.
13495 LN_S=$lt_LN_S
13496
13497 # What is the maximum length of a command?
13498 max_cmd_len=$max_cmd_len
13499
13500 # Object file suffix (normally "o").
13501 objext=$ac_objext
13502
13503 # Executable file suffix (normally "").
13504 exeext=$exeext
13505
13506 # whether the shell understands "unset".
13507 lt_unset=$lt_unset
13508
13509 # turn spaces into newlines.
13510 SP2NL=$lt_lt_SP2NL
13511
13512 # turn newlines into spaces.
13513 NL2SP=$lt_lt_NL2SP
13514
13515 # How to create reloadable object files.
13516 reload_flag=$lt_reload_flag
13517 reload_cmds=$lt_reload_cmds
13518
13519 # Method to check whether dependent libraries are shared objects.
13520 deplibs_check_method=$lt_deplibs_check_method
13521
13522 # Command to use when deplibs_check_method == "file_magic".
13523 file_magic_cmd=$lt_file_magic_cmd
13524
13525 # The archiver.
13526 AR=$lt_AR
13527 AR_FLAGS=$lt_AR_FLAGS
13528
13529 # A symbol stripping program.
13530 STRIP=$lt_STRIP
13531
13532 # Commands used to install an old-style archive.
13533 RANLIB=$lt_RANLIB
13534 old_postinstall_cmds=$lt_old_postinstall_cmds
13535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13536
13537 # A C compiler.
13538 LTCC=$lt_CC
13539
13540 # LTCC compiler flags.
13541 LTCFLAGS=$lt_CFLAGS
13542
13543 # Take the output of nm and produce a listing of raw symbols and C names.
13544 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13545
13546 # Transform the output of nm in a proper C declaration.
13547 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13548
13549 # Transform the output of nm in a C name address pair.
13550 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13551
13552 # The name of the directory that contains temporary libtool files.
13553 objdir=$objdir
13554
13555 # Shell to use when invoking shell scripts.
13556 SHELL=$lt_SHELL
13557
13558 # An echo program that does not interpret backslashes.
13559 ECHO=$lt_ECHO
13560
13561 # Used to examine libraries when file_magic_cmd begins with "file".
13562 MAGIC_CMD=$MAGIC_CMD
13563
13564 # Must we lock files when doing compilation?
13565 need_locks=$lt_need_locks
13566
13567 # Old archive suffix (normally "a").
13568 libext=$libext
13569
13570 # Shared library suffix (normally ".so").
13571 shrext_cmds=$lt_shrext_cmds
13572
13573 # The commands to extract the exported symbol list from a shared archive.
13574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13575
13576 # Variables whose values should be saved in libtool wrapper scripts and
13577 # restored at link time.
13578 variables_saved_for_relink=$lt_variables_saved_for_relink
13579
13580 # Do we need the "lib" prefix for modules?
13581 need_lib_prefix=$need_lib_prefix
13582
13583 # Do we need a version for libraries?
13584 need_version=$need_version
13585
13586 # Library versioning type.
13587 version_type=$version_type
13588
13589 # Shared library runtime path variable.
13590 runpath_var=$runpath_var
13591
13592 # Shared library path variable.
13593 shlibpath_var=$shlibpath_var
13594
13595 # Is shlibpath searched before the hard-coded library search path?
13596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13597
13598 # Format of library name prefix.
13599 libname_spec=$lt_libname_spec
13600
13601 # List of archive names. First name is the real one, the rest are links.
13602 # The last name is the one that the linker finds with -lNAME
13603 library_names_spec=$lt_library_names_spec
13604
13605 # The coded name of the library, if different from the real name.
13606 soname_spec=$lt_soname_spec
13607
13608 # Command to use after installation of a shared archive.
13609 postinstall_cmds=$lt_postinstall_cmds
13610
13611 # Command to use after uninstallation of a shared archive.
13612 postuninstall_cmds=$lt_postuninstall_cmds
13613
13614 # Commands used to finish a libtool library installation in a directory.
13615 finish_cmds=$lt_finish_cmds
13616
13617 # As "finish_cmds", except a single script fragment to be evaled but
13618 # not shown.
13619 finish_eval=$lt_finish_eval
13620
13621 # Whether we should hardcode library paths into libraries.
13622 hardcode_into_libs=$hardcode_into_libs
13623
13624 # Compile-time system search path for libraries.
13625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13626
13627 # Run-time system search path for libraries.
13628 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13629
13630 # Whether dlopen is supported.
13631 dlopen_support=$enable_dlopen
13632
13633 # Whether dlopen of programs is supported.
13634 dlopen_self=$enable_dlopen_self
13635
13636 # Whether dlopen of statically linked programs is supported.
13637 dlopen_self_static=$enable_dlopen_self_static
13638
13639 # Commands to strip libraries.
13640 old_striplib=$lt_old_striplib
13641 striplib=$lt_striplib
13642
13643
13644 # The linker used to build libraries.
13645 LD=$lt_LD
13646
13647 # Commands used to build an old-style archive.
13648 old_archive_cmds=$lt_old_archive_cmds
13649
13650 # A language specific compiler.
13651 CC=$lt_compiler
13652
13653 # Is the compiler the GNU compiler?
13654 with_gcc=$GCC
13655
13656 # Compiler flag to turn off builtin functions.
13657 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13658
13659 # How to pass a linker flag through the compiler.
13660 wl=$lt_lt_prog_compiler_wl
13661
13662 # Additional compiler flags for building library objects.
13663 pic_flag=$lt_lt_prog_compiler_pic
13664
13665 # Compiler flag to prevent dynamic linking.
13666 link_static_flag=$lt_lt_prog_compiler_static
13667
13668 # Does compiler simultaneously support -c and -o options?
13669 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13670
13671 # Whether or not to add -lc for building shared libraries.
13672 build_libtool_need_lc=$archive_cmds_need_lc
13673
13674 # Whether or not to disallow shared libs when runtime libs are static.
13675 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13676
13677 # Compiler flag to allow reflexive dlopens.
13678 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13679
13680 # Compiler flag to generate shared objects directly from archives.
13681 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13682
13683 # Whether the compiler copes with passing no objects directly.
13684 compiler_needs_object=$lt_compiler_needs_object
13685
13686 # Create an old-style archive from a shared archive.
13687 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13688
13689 # Create a temporary old-style archive to link instead of a shared archive.
13690 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13691
13692 # Commands used to build a shared archive.
13693 archive_cmds=$lt_archive_cmds
13694 archive_expsym_cmds=$lt_archive_expsym_cmds
13695
13696 # Commands used to build a loadable module if different from building
13697 # a shared archive.
13698 module_cmds=$lt_module_cmds
13699 module_expsym_cmds=$lt_module_expsym_cmds
13700
13701 # Whether we are building with GNU ld or not.
13702 with_gnu_ld=$lt_with_gnu_ld
13703
13704 # Flag that allows shared libraries with undefined symbols to be built.
13705 allow_undefined_flag=$lt_allow_undefined_flag
13706
13707 # Flag that enforces no undefined symbols.
13708 no_undefined_flag=$lt_no_undefined_flag
13709
13710 # Flag to hardcode \$libdir into a binary during linking.
13711 # This must work even if \$libdir does not exist
13712 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13713
13714 # If ld is used when linking, flag to hardcode \$libdir into a binary
13715 # during linking. This must work even if \$libdir does not exist.
13716 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13717
13718 # Whether we need a single "-rpath" flag with a separated argument.
13719 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13720
13721 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13722 # DIR into the resulting binary.
13723 hardcode_direct=$hardcode_direct
13724
13725 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13726 # DIR into the resulting binary and the resulting library dependency is
13727 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13728 # library is relocated.
13729 hardcode_direct_absolute=$hardcode_direct_absolute
13730
13731 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13732 # into the resulting binary.
13733 hardcode_minus_L=$hardcode_minus_L
13734
13735 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13736 # into the resulting binary.
13737 hardcode_shlibpath_var=$hardcode_shlibpath_var
13738
13739 # Set to "yes" if building a shared library automatically hardcodes DIR
13740 # into the library and all subsequent libraries and executables linked
13741 # against it.
13742 hardcode_automatic=$hardcode_automatic
13743
13744 # Set to yes if linker adds runtime paths of dependent libraries
13745 # to runtime path list.
13746 inherit_rpath=$inherit_rpath
13747
13748 # Whether libtool must link a program against all its dependency libraries.
13749 link_all_deplibs=$link_all_deplibs
13750
13751 # Fix the shell variable \$srcfile for the compiler.
13752 fix_srcfile_path=$lt_fix_srcfile_path
13753
13754 # Set to "yes" if exported symbols are required.
13755 always_export_symbols=$always_export_symbols
13756
13757 # The commands to list exported symbols.
13758 export_symbols_cmds=$lt_export_symbols_cmds
13759
13760 # Symbols that should not be listed in the preloaded symbols.
13761 exclude_expsyms=$lt_exclude_expsyms
13762
13763 # Symbols that must always be exported.
13764 include_expsyms=$lt_include_expsyms
13765
13766 # Commands necessary for linking programs (against libraries) with templates.
13767 prelink_cmds=$lt_prelink_cmds
13768
13769 # Specify filename containing input files.
13770 file_list_spec=$lt_file_list_spec
13771
13772 # How to hardcode a shared library path into an executable.
13773 hardcode_action=$hardcode_action
13774
13775 # ### END LIBTOOL CONFIG
13776
13777 _LT_EOF
13778
13779 case $host_os in
13780 aix3*)
13781 cat <<\_LT_EOF >> "$cfgfile"
13782 # AIX sometimes has problems with the GCC collect2 program. For some
13783 # reason, if we set the COLLECT_NAMES environment variable, the problems
13784 # vanish in a puff of smoke.
13785 if test "X${COLLECT_NAMES+set}" != Xset; then
13786 COLLECT_NAMES=
13787 export COLLECT_NAMES
13788 fi
13789 _LT_EOF
13790 ;;
13791 esac
13792
13793
13794 ltmain="$ac_aux_dir/ltmain.sh"
13795
13796
13797 # We use sed instead of cat because bash on DJGPP gets confused if
13798 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13799 # text mode, it properly converts lines to CR/LF. This bash problem
13800 # is reportedly fixed, but why not run on old versions too?
13801 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13802 || (rm -f "$cfgfile"; exit 1)
13803
13804 case $xsi_shell in
13805 yes)
13806 cat << \_LT_EOF >> "$cfgfile"
13807 # func_dirname file append nondir_replacement
13808 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13809 # otherwise set result to NONDIR_REPLACEMENT.
13810 func_dirname ()
13811 {
13812 case ${1} in
13813 */*) func_dirname_result="${1%/*}${2}" ;;
13814 * ) func_dirname_result="${3}" ;;
13815 esac
13816 }
13817
13818 # func_basename file
13819 func_basename ()
13820 {
13821 func_basename_result="${1##*/}"
13822 }
13823
13824 # func_stripname prefix suffix name
13825 # strip PREFIX and SUFFIX off of NAME.
13826 # PREFIX and SUFFIX must not contain globbing or regex special
13827 # characters, hashes, percent signs, but SUFFIX may contain a leading
13828 # dot (in which case that matches only a dot).
13829 func_stripname ()
13830 {
13831 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13832 # positional parameters, so assign one to ordinary parameter first.
13833 func_stripname_result=${3}
13834 func_stripname_result=${func_stripname_result#"${1}"}
13835 func_stripname_result=${func_stripname_result%"${2}"}
13836 }
13837
13838 # func_opt_split
13839 func_opt_split ()
13840 {
13841 func_opt_split_opt=${1%%=*}
13842 func_opt_split_arg=${1#*=}
13843 }
13844
13845 # func_lo2o object
13846 func_lo2o ()
13847 {
13848 case ${1} in
13849 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13850 *) func_lo2o_result=${1} ;;
13851 esac
13852 }
13853 _LT_EOF
13854 ;;
13855 *) # Bourne compatible functions.
13856 cat << \_LT_EOF >> "$cfgfile"
13857 # func_dirname file append nondir_replacement
13858 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13859 # otherwise set result to NONDIR_REPLACEMENT.
13860 func_dirname ()
13861 {
13862 # Extract subdirectory from the argument.
13863 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13864 if test "X$func_dirname_result" = "X${1}"; then
13865 func_dirname_result="${3}"
13866 else
13867 func_dirname_result="$func_dirname_result${2}"
13868 fi
13869 }
13870
13871 # func_basename file
13872 func_basename ()
13873 {
13874 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13875 }
13876
13877 # func_stripname prefix suffix name
13878 # strip PREFIX and SUFFIX off of NAME.
13879 # PREFIX and SUFFIX must not contain globbing or regex special
13880 # characters, hashes, percent signs, but SUFFIX may contain a leading
13881 # dot (in which case that matches only a dot).
13882 # func_strip_suffix prefix name
13883 func_stripname ()
13884 {
13885 case ${2} in
13886 .*) func_stripname_result=`$ECHO "X${3}" \
13887 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13888 *) func_stripname_result=`$ECHO "X${3}" \
13889 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13890 esac
13891 }
13892
13893 # sed scripts:
13894 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13895 my_sed_long_arg='1s/^-[^=]*=//'
13896
13897 # func_opt_split
13898 func_opt_split ()
13899 {
13900 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13901 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13902 }
13903
13904 # func_lo2o object
13905 func_lo2o ()
13906 {
13907 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13908 }
13909 _LT_EOF
13910 esac
13911
13912 case $lt_shell_append in
13913 yes)
13914 cat << \_LT_EOF >> "$cfgfile"
13915
13916 # func_append var value
13917 # Append VALUE to the end of shell variable VAR.
13918 func_append ()
13919 {
13920 eval "$1+=\$2"
13921 }
13922 _LT_EOF
13923 ;;
13924 *)
13925 cat << \_LT_EOF >> "$cfgfile"
13926
13927 # func_append var value
13928 # Append VALUE to the end of shell variable VAR.
13929 func_append ()
13930 {
13931 eval "$1=\$$1\$2"
13932 }
13933 _LT_EOF
13934 ;;
13935 esac
13936
13937
13938 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13939 || (rm -f "$cfgfile"; exit 1)
13940
13941 mv -f "$cfgfile" "$ofile" ||
13942 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13943 chmod +x "$ofile"
13944
13945 ;;
13946 default-1 )
13947 for ac_file in $CONFIG_FILES; do
13948 # Support "outfile[:infile[:infile...]]"
13949 case "$ac_file" in
13950 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13951 esac
13952 # PO directories have a Makefile.in generated from Makefile.in.in.
13953 case "$ac_file" in */Makefile.in)
13954 # Adjust a relative srcdir.
13955 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13956 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13957 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13958 # In autoconf-2.13 it is called $ac_given_srcdir.
13959 # In autoconf-2.50 it is called $srcdir.
13960 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13961 case "$ac_given_srcdir" in
13962 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13963 /*) top_srcdir="$ac_given_srcdir" ;;
13964 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13965 esac
13966 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13967 rm -f "$ac_dir/POTFILES"
13968 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13969 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13970 POMAKEFILEDEPS="POTFILES.in"
13971 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13972 # on $ac_dir but don't depend on user-specified configuration
13973 # parameters.
13974 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13975 # The LINGUAS file contains the set of available languages.
13976 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13977 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13978 fi
13979 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13980 # Hide the ALL_LINGUAS assigment from automake.
13981 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13982 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13983 else
13984 # The set of available languages was given in configure.in.
13985 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13986 fi
13987 case "$ac_given_srcdir" in
13988 .) srcdirpre= ;;
13989 *) srcdirpre='$(srcdir)/' ;;
13990 esac
13991 POFILES=
13992 GMOFILES=
13993 UPDATEPOFILES=
13994 DUMMYPOFILES=
13995 for lang in $ALL_LINGUAS; do
13996 POFILES="$POFILES $srcdirpre$lang.po"
13997 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13998 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13999 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14000 done
14001 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14002 # environment variable.
14003 INST_LINGUAS=
14004 if test -n "$ALL_LINGUAS"; then
14005 for presentlang in $ALL_LINGUAS; do
14006 useit=no
14007 if test "%UNSET%" != "$LINGUAS"; then
14008 desiredlanguages="$LINGUAS"
14009 else
14010 desiredlanguages="$ALL_LINGUAS"
14011 fi
14012 for desiredlang in $desiredlanguages; do
14013 # Use the presentlang catalog if desiredlang is
14014 # a. equal to presentlang, or
14015 # b. a variant of presentlang (because in this case,
14016 # presentlang can be used as a fallback for messages
14017 # which are not translated in the desiredlang catalog).
14018 case "$desiredlang" in
14019 "$presentlang"*) useit=yes;;
14020 esac
14021 done
14022 if test $useit = yes; then
14023 INST_LINGUAS="$INST_LINGUAS $presentlang"
14024 fi
14025 done
14026 fi
14027 CATALOGS=
14028 if test -n "$INST_LINGUAS"; then
14029 for lang in $INST_LINGUAS; do
14030 CATALOGS="$CATALOGS $lang.gmo"
14031 done
14032 fi
14033 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14034 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"
14035 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14036 if test -f "$f"; then
14037 case "$f" in
14038 *.orig | *.bak | *~) ;;
14039 *) cat "$f" >> "$ac_dir/Makefile" ;;
14040 esac
14041 fi
14042 done
14043 fi
14044 ;;
14045 esac
14046 done ;;
14047 esac
14048 done
14049 _ACEOF
14050
14051 cat >>$CONFIG_STATUS <<\_ACEOF
14052
14053 { (exit 0); exit 0; }
14054 _ACEOF
14055 chmod +x $CONFIG_STATUS
14056 ac_clean_files=$ac_clean_files_save
14057
14058
14059 # configure is writing to config.log, and then calls config.status.
14060 # config.status does its own redirection, appending to config.log.
14061 # Unfortunately, on DOS this fails, as config.log is still kept open
14062 # by configure, so config.status won't be able to write to it; its
14063 # output is simply discarded. So we exec the FD to /dev/null,
14064 # effectively closing config.log, so it can be properly (re)opened and
14065 # appended to by config.status. When coming back to configure, we
14066 # need to make the FD available again.
14067 if test "$no_create" != yes; then
14068 ac_cs_success=:
14069 ac_config_status_args=
14070 test "$silent" = yes &&
14071 ac_config_status_args="$ac_config_status_args --quiet"
14072 exec 5>/dev/null
14073 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14074 exec 5>>config.log
14075 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14076 # would make configure fail if this is the last instruction.
14077 $ac_cs_success || { (exit 1); exit 1; }
14078 fi
14079
This page took 0.375669 seconds and 4 git commands to generate.