]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/configure
e8cbfab3db9413270f0b97c2b0f43f7877a5401a
[thirdparty/binutils-gdb.git] / ld / 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="ldmain.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 use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files='TDIRS'
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-targets alternative target configurations
1006 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1007 --enable-got=<type> GOT handling scheme (target, single, negative,
1008 multigot)
1009 --enable-werror treat compile warnings as errors
1010 --enable-build-warnings enable build-time compiler warnings
1011 --enable-shared[=PKGS]
1012 build shared libraries [default=yes]
1013 --enable-static[=PKGS]
1014 build static libraries [default=yes]
1015 --enable-fast-install[=PKGS]
1016 optimize for fast installation [default=yes]
1017 --disable-libtool-lock avoid locking (might break parallel builds)
1018 --disable-nls do not use Native Language Support
1019 --enable-maintainer-mode enable make rules and dependencies not useful
1020 (and sometimes confusing) to the casual installer
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-lib-path=dir1:dir2... set default LIB_PATH
1026 --with-sysroot=DIR Search for usr/lib et al within DIR.
1027 --with-pic try to use only PIC/non-PIC objects [default=use
1028 both]
1029 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1030
1031 Some influential environment variables:
1032 CC C compiler command
1033 CFLAGS C compiler flags
1034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1035 nonstandard directory <lib dir>
1036 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037 headers in a nonstandard directory <include dir>
1038 CPP C preprocessor
1039
1040 Use these variables to override the choices made by `configure' or to help
1041 it to find libraries and programs with nonstandard names/locations.
1042
1043 _ACEOF
1044 fi
1045
1046 if test "$ac_init_help" = "recursive"; then
1047 # If there are subdirs, report their specific --help.
1048 ac_popdir=`pwd`
1049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1050 test -d $ac_dir || continue
1051 ac_builddir=.
1052
1053 if test "$ac_dir" != .; then
1054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1055 # A "../" for each directory in $ac_dir_suffix.
1056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1057 else
1058 ac_dir_suffix= ac_top_builddir=
1059 fi
1060
1061 case $srcdir in
1062 .) # No --srcdir option. We are building in place.
1063 ac_srcdir=.
1064 if test -z "$ac_top_builddir"; then
1065 ac_top_srcdir=.
1066 else
1067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1068 fi ;;
1069 [\\/]* | ?:[\\/]* ) # Absolute path.
1070 ac_srcdir=$srcdir$ac_dir_suffix;
1071 ac_top_srcdir=$srcdir ;;
1072 *) # Relative path.
1073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1075 esac
1076
1077 # Do not use `cd foo && pwd` to compute absolute paths, because
1078 # the directories may not exist.
1079 case `pwd` in
1080 .) ac_abs_builddir="$ac_dir";;
1081 *)
1082 case "$ac_dir" in
1083 .) ac_abs_builddir=`pwd`;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1086 esac;;
1087 esac
1088 case $ac_abs_builddir in
1089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1090 *)
1091 case ${ac_top_builddir}. in
1092 .) ac_abs_top_builddir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1095 esac;;
1096 esac
1097 case $ac_abs_builddir in
1098 .) ac_abs_srcdir=$ac_srcdir;;
1099 *)
1100 case $ac_srcdir in
1101 .) ac_abs_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1104 esac;;
1105 esac
1106 case $ac_abs_builddir in
1107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1108 *)
1109 case $ac_top_srcdir in
1110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1113 esac;;
1114 esac
1115
1116 cd $ac_dir
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1119 echo
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1122 echo
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1126 echo
1127 $ac_configure --help
1128 else
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1130 fi
1131 cd "$ac_popdir"
1132 done
1133 fi
1134
1135 test -n "$ac_init_help" && exit 0
1136 if $ac_init_version; then
1137 cat <<\_ACEOF
1138
1139 Copyright (C) 2003 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1142 _ACEOF
1143 exit 0
1144 fi
1145 exec 5>config.log
1146 cat >&5 <<_ACEOF
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1149
1150 It was created by $as_me, which was
1151 generated by GNU Autoconf 2.59. Invocation command line was
1152
1153 $ $0 $@
1154
1155 _ACEOF
1156 {
1157 cat <<_ASUNAME
1158 ## --------- ##
1159 ## Platform. ##
1160 ## --------- ##
1161
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179 _ASUNAME
1180
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 for as_dir in $PATH
1183 do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187 done
1188
1189 } >&5
1190
1191 cat >&5 <<_ACEOF
1192
1193
1194 ## ----------- ##
1195 ## Core tests. ##
1196 ## ----------- ##
1197
1198 _ACEOF
1199
1200
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1206 ac_configure_args=
1207 ac_configure_args0=
1208 ac_configure_args1=
1209 ac_sep=
1210 ac_must_keep_next=false
1211 for ac_pass in 1 2
1212 do
1213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
1248 done
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log. We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
1261
1262 cat <<\_ASBOX
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1266 _ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269 {
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282 }
1283 echo
1284
1285 cat <<\_ASBOX
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1289 _ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300 ## ------------- ##
1301 ## Output files. ##
1302 ## ------------- ##
1303 _ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315 ## ----------- ##
1316 ## confdefs.h. ##
1317 ## ----------- ##
1318 _ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331 for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 done
1334 ac_signal=0
1335
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 echo >confdefs.h
1340
1341 # Predefined preprocessor variables.
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 _ACEOF
1361
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 _ACEOF
1366
1367
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376 fi
1377 for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384 done
1385
1386 if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397 else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401 fi
1402
1403 # Check that the precious variables saved in the cache have kept the same
1404 # value.
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 ac_cache_corrupted=:
1431 else
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1435 fi
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1440 fi;;
1441 esac
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1444 case $ac_new_val in
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1448 esac
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 esac
1453 fi
1454 done
1455 if $ac_cache_corrupted; then
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1463 fi
1464
1465 ac_ext=c
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493 ac_aux_dir=
1494 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1498 break
1499 elif test -f $ac_dir/install.sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1502 break
1503 elif test -f $ac_dir/shtool; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 break
1507 fi
1508 done
1509 if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1513 fi
1514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1517
1518 # Make sure we can run config.sub.
1519 $ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524 echo "$as_me:$LINENO: checking build system type" >&5
1525 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526 if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 ac_cv_build_alias=$build_alias
1530 test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532 test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541 fi
1542 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543 echo "${ECHO_T}$ac_cv_build" >&6
1544 build=$ac_cv_build
1545 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550 echo "$as_me:$LINENO: checking host system type" >&5
1551 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552 if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555 ac_cv_host_alias=$host_alias
1556 test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563 fi
1564 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565 echo "${ECHO_T}$ac_cv_host" >&6
1566 host=$ac_cv_host
1567 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572 echo "$as_me:$LINENO: checking target system type" >&5
1573 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574 if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 ac_cv_target_alias=$target_alias
1578 test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585 fi
1586 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587 echo "${ECHO_T}$ac_cv_target" >&6
1588 target=$ac_cv_target
1589 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594 # The aliases save the names the user supplied, while $host etc.
1595 # will get canonicalized.
1596 test -n "$target_alias" &&
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1598 NONENONEs,x,x, &&
1599 program_prefix=${target_alias}-
1600 ac_ext=c
1601 ac_cpp='$CPP $CPPFLAGS'
1602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605 if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1626 fi
1627 done
1628 done
1629
1630 fi
1631 fi
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641 fi
1642 if test -z "$ac_cv_prog_CC"; then
1643 ac_ct_CC=$CC
1644 # Extract the first word of "gcc", so it can be a program name with args.
1645 set dummy gcc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="gcc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1664 fi
1665 done
1666 done
1667
1668 fi
1669 fi
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1674 else
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1677 fi
1678
1679 CC=$ac_ct_CC
1680 else
1681 CC="$ac_cv_prog_CC"
1682 fi
1683
1684 if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1687 set dummy ${ac_tool_prefix}cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_CC="${ac_tool_prefix}cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1706 fi
1707 done
1708 done
1709
1710 fi
1711 fi
1712 CC=$ac_cv_prog_CC
1713 if test -n "$CC"; then
1714 echo "$as_me:$LINENO: result: $CC" >&5
1715 echo "${ECHO_T}$CC" >&6
1716 else
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1719 fi
1720
1721 fi
1722 if test -z "$ac_cv_prog_CC"; then
1723 ac_ct_CC=$CC
1724 # Extract the first word of "cc", so it can be a program name with args.
1725 set dummy cc; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733 else
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 for as_dir in $PATH
1736 do
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC="cc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 break 2
1744 fi
1745 done
1746 done
1747
1748 fi
1749 fi
1750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751 if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753 echo "${ECHO_T}$ac_ct_CC" >&6
1754 else
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1757 fi
1758
1759 CC=$ac_ct_CC
1760 else
1761 CC="$ac_cv_prog_CC"
1762 fi
1763
1764 fi
1765 if test -z "$CC"; then
1766 # Extract the first word of "cc", so it can be a program name with args.
1767 set dummy cc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775 else
1776 ac_prog_rejected=no
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1779 do
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1785 ac_prog_rejected=yes
1786 continue
1787 fi
1788 ac_cv_prog_CC="cc"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1791 fi
1792 done
1793 done
1794
1795 if test $ac_prog_rejected = yes; then
1796 # We found a bogon in the path, so make sure we never use it.
1797 set dummy $ac_cv_prog_CC
1798 shift
1799 if test $# != 0; then
1800 # We chose a different compiler from the bogus one.
1801 # However, it has the same basename, so the bogon will be chosen
1802 # first if we set CC to just the basename; use the full file name.
1803 shift
1804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1805 fi
1806 fi
1807 fi
1808 fi
1809 CC=$ac_cv_prog_CC
1810 if test -n "$CC"; then
1811 echo "$as_me:$LINENO: result: $CC" >&5
1812 echo "${ECHO_T}$CC" >&6
1813 else
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818 fi
1819 if test -z "$CC"; then
1820 if test -n "$ac_tool_prefix"; then
1821 for ac_prog in cl
1822 do
1823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 else
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1835 do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1843 fi
1844 done
1845 done
1846
1847 fi
1848 fi
1849 CC=$ac_cv_prog_CC
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1853 else
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1856 fi
1857
1858 test -n "$CC" && break
1859 done
1860 fi
1861 if test -z "$CC"; then
1862 ac_ct_CC=$CC
1863 for ac_prog in cl
1864 do
1865 # Extract the first word of "$ac_prog", so it can be a program name with args.
1866 set dummy $ac_prog; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874 else
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1877 do
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_CC="$ac_prog"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1885 fi
1886 done
1887 done
1888
1889 fi
1890 fi
1891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892 if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894 echo "${ECHO_T}$ac_ct_CC" >&6
1895 else
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1898 fi
1899
1900 test -n "$ac_ct_CC" && break
1901 done
1902
1903 CC=$ac_ct_CC
1904 fi
1905
1906 fi
1907
1908
1909 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1910 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1911 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&2;}
1915 { (exit 1); exit 1; }; }; }
1916
1917 # Provide some information about the compiler.
1918 echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920 ac_compiler=`set X $ac_compile; echo $2`
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1936
1937 cat >conftest.$ac_ext <<_ACEOF
1938 /* confdefs.h. */
1939 _ACEOF
1940 cat confdefs.h >>conftest.$ac_ext
1941 cat >>conftest.$ac_ext <<_ACEOF
1942 /* end confdefs.h. */
1943
1944 int
1945 main ()
1946 {
1947
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1956 # of exeext.
1957 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967 # resort.
1968
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971 ac_cv_exeext=
1972 # b.out is created by i960 compilers.
1973 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1974 do
1975 test -f "$ac_file" || continue
1976 case $ac_file in
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1978 ;;
1979 conftest.$ac_ext )
1980 # This is the source file.
1981 ;;
1982 [ab].out )
1983 # We found the default executable, but exeext='' is most
1984 # certainly right.
1985 break;;
1986 *.* )
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1991 export ac_cv_exeext
1992 break;;
1993 * )
1994 break;;
1995 esac
1996 done
1997 else
1998 echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2000
2001 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&5
2005 echo "$as_me: error: C compiler cannot create executables
2006 See \`config.log' for more details." >&2;}
2007 { (exit 77); exit 77; }; }; }
2008 fi
2009
2010 ac_exeext=$ac_cv_exeext
2011 echo "$as_me:$LINENO: result: $ac_file" >&5
2012 echo "${ECHO_T}$ac_file" >&6
2013
2014 # Check the compiler produces executables we can run. If not, either
2015 # the compiler is broken, or we cross compile.
2016 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2017 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2018 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2019 # If not cross compiling, check that we can run a simple program.
2020 if test "$cross_compiling" != yes; then
2021 if { ac_try='./$ac_file'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 (eval $ac_try) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2027 cross_compiling=no
2028 else
2029 if test "$cross_compiling" = maybe; then
2030 cross_compiling=yes
2031 else
2032 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2033 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'.
2036 See \`config.log' for more details." >&5
2037 echo "$as_me: error: cannot run C compiled programs.
2038 If you meant to cross compile, use \`--host'.
2039 See \`config.log' for more details." >&2;}
2040 { (exit 1); exit 1; }; }; }
2041 fi
2042 fi
2043 fi
2044 echo "$as_me:$LINENO: result: yes" >&5
2045 echo "${ECHO_T}yes" >&6
2046
2047 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2048 ac_clean_files=$ac_clean_files_save
2049 # Check the compiler produces executables we can run. If not, either
2050 # the compiler is broken, or we cross compile.
2051 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2052 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2053 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2054 echo "${ECHO_T}$cross_compiling" >&6
2055
2056 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2057 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2059 (eval $ac_link) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2064 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2065 # work properly (i.e., refer to `conftest.exe'), while it won't with
2066 # `rm'.
2067 for ac_file in conftest.exe conftest conftest.*; do
2068 test -f "$ac_file" || continue
2069 case $ac_file in
2070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072 export ac_cv_exeext
2073 break;;
2074 * ) break;;
2075 esac
2076 done
2077 else
2078 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2079 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }; }
2085 fi
2086
2087 rm -f conftest$ac_cv_exeext
2088 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2089 echo "${ECHO_T}$ac_cv_exeext" >&6
2090
2091 rm -f conftest.$ac_ext
2092 EXEEXT=$ac_cv_exeext
2093 ac_exeext=$EXEEXT
2094 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2095 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2096 if test "${ac_cv_objext+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 cat >conftest.$ac_ext <<_ACEOF
2100 /* confdefs.h. */
2101 _ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2105
2106 int
2107 main ()
2108 {
2109
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 rm -f conftest.o conftest.obj
2115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2121 case $ac_file in
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2124 break;;
2125 esac
2126 done
2127 else
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2130
2131 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2132 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }; }
2138 fi
2139
2140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2141 fi
2142 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2143 echo "${ECHO_T}$ac_cv_objext" >&6
2144 OBJEXT=$ac_cv_objext
2145 ac_objext=$OBJEXT
2146 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2147 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2148 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 cat >conftest.$ac_ext <<_ACEOF
2152 /* confdefs.h. */
2153 _ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2157
2158 int
2159 main ()
2160 {
2161 #ifndef __GNUC__
2162 choke me
2163 #endif
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_g=yes
2249 else
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 ac_cv_prog_cc_g=no
2254 fi
2255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256 fi
2257 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259 if test "$ac_test_CFLAGS" = set; then
2260 CFLAGS=$ac_save_CFLAGS
2261 elif test $ac_cv_prog_cc_g = yes; then
2262 if test "$GCC" = yes; then
2263 CFLAGS="-g -O2"
2264 else
2265 CFLAGS="-g"
2266 fi
2267 else
2268 if test "$GCC" = yes; then
2269 CFLAGS="-O2"
2270 else
2271 CFLAGS=
2272 fi
2273 fi
2274 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 ac_cv_prog_cc_stdc=no
2280 ac_save_CC=$CC
2281 cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h. */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2287 #include <stdarg.h>
2288 #include <stdio.h>
2289 #include <sys/types.h>
2290 #include <sys/stat.h>
2291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2292 struct buf { int x; };
2293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294 static char *e (p, i)
2295 char **p;
2296 int i;
2297 {
2298 return p[i];
2299 }
2300 static char *f (char * (*g) (char **, int), char **p, ...)
2301 {
2302 char *s;
2303 va_list v;
2304 va_start (v,p);
2305 s = g (p, va_arg (v,int));
2306 va_end (v);
2307 return s;
2308 }
2309
2310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2311 function prototypes and stuff, but not '\xHH' hex character constants.
2312 These don't provoke an error unfortunately, instead are silently treated
2313 as 'x'. The following induces an error, until -std1 is added to get
2314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2315 array size at least. It's necessary to write '\x00'==0 to get something
2316 that's true only with -std1. */
2317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2318
2319 int test (int i, double x);
2320 struct s1 {int (*f) (int a);};
2321 struct s2 {int (*f) (double a);};
2322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2323 int argc;
2324 char **argv;
2325 int
2326 main ()
2327 {
2328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2329 ;
2330 return 0;
2331 }
2332 _ACEOF
2333 # Don't try gcc -ansi; that turns off useful extensions and
2334 # breaks some systems' header files.
2335 # AIX -qlanglvl=ansi
2336 # Ultrix and OSF/1 -std1
2337 # HP-UX 10.20 and later -Ae
2338 # HP-UX older versions -Aa -D_HPUX_SOURCE
2339 # SVR4 -Xc -D__EXTENSIONS__
2340 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341 do
2342 CC="$ac_save_CC $ac_arg"
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2346 ac_status=$?
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_cv_prog_cc_stdc=$ac_arg
2365 break
2366 else
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 fi
2371 rm -f conftest.err conftest.$ac_objext
2372 done
2373 rm -f conftest.$ac_ext conftest.$ac_objext
2374 CC=$ac_save_CC
2375
2376 fi
2377
2378 case "x$ac_cv_prog_cc_stdc" in
2379 x|xno)
2380 echo "$as_me:$LINENO: result: none needed" >&5
2381 echo "${ECHO_T}none needed" >&6 ;;
2382 *)
2383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2384 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2385 CC="$CC $ac_cv_prog_cc_stdc" ;;
2386 esac
2387
2388 # Some people use a C++ compiler to compile C. Since we use `exit',
2389 # in C++ we need to declare it. In case someone uses the same compiler
2390 # for both compiling C and C++ we need to have the C++ compiler decide
2391 # the declaration of exit, since it's the most demanding environment.
2392 cat >conftest.$ac_ext <<_ACEOF
2393 #ifndef __cplusplus
2394 choke me
2395 #endif
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2400 ac_status=$?
2401 grep -v '^ *+' conftest.er1 >conftest.err
2402 rm -f conftest.er1
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 for ac_declaration in \
2419 '' \
2420 'extern "C" void std::exit (int) throw (); using std::exit;' \
2421 'extern "C" void std::exit (int); using std::exit;' \
2422 'extern "C" void exit (int) throw ();' \
2423 'extern "C" void exit (int);' \
2424 'void exit (int);'
2425 do
2426 cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h. */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2432 $ac_declaration
2433 #include <stdlib.h>
2434 int
2435 main ()
2436 {
2437 exit (42);
2438 ;
2439 return 0;
2440 }
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2463 :
2464 else
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2467
2468 continue
2469 fi
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 cat >conftest.$ac_ext <<_ACEOF
2472 /* confdefs.h. */
2473 _ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2477 $ac_declaration
2478 int
2479 main ()
2480 {
2481 exit (42);
2482 ;
2483 return 0;
2484 }
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 break
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 fi
2513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514 done
2515 rm -f conftest*
2516 if test -n "$ac_declaration"; then
2517 echo '#ifdef __cplusplus' >>confdefs.h
2518 echo $ac_declaration >>confdefs.h
2519 echo '#endif' >>confdefs.h
2520 fi
2521
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 fi
2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528 ac_ext=c
2529 ac_cpp='$CPP $CPPFLAGS'
2530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533
2534
2535 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2536 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2537 if test "${ac_cv_search_strerror+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 ac_func_search_save_LIBS=$LIBS
2541 ac_cv_search_strerror=no
2542 cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h. */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2548
2549 /* Override any gcc2 internal prototype to avoid an error. */
2550 #ifdef __cplusplus
2551 extern "C"
2552 #endif
2553 /* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2555 char strerror ();
2556 int
2557 main ()
2558 {
2559 strerror ();
2560 ;
2561 return 0;
2562 }
2563 _ACEOF
2564 rm -f conftest.$ac_objext conftest$ac_exeext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2566 (eval $ac_link) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2585 ac_cv_search_strerror="none required"
2586 else
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 fi
2591 rm -f conftest.err conftest.$ac_objext \
2592 conftest$ac_exeext conftest.$ac_ext
2593 if test "$ac_cv_search_strerror" = no; then
2594 for ac_lib in cposix; do
2595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2602
2603 /* Override any gcc2 internal prototype to avoid an error. */
2604 #ifdef __cplusplus
2605 extern "C"
2606 #endif
2607 /* We use char because int might match the return type of a gcc2
2608 builtin and then its argument prototype would still apply. */
2609 char strerror ();
2610 int
2611 main ()
2612 {
2613 strerror ();
2614 ;
2615 return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext conftest$ac_exeext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620 (eval $ac_link) 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_cv_search_strerror="-l$ac_lib"
2640 break
2641 else
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 fi
2646 rm -f conftest.err conftest.$ac_objext \
2647 conftest$ac_exeext conftest.$ac_ext
2648 done
2649 fi
2650 LIBS=$ac_func_search_save_LIBS
2651 fi
2652 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2653 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2654 if test "$ac_cv_search_strerror" != no; then
2655 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2656
2657 fi
2658
2659
2660 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2661 am__api_version="1.9"
2662 # Find a good install program. We prefer a C program (faster),
2663 # so one script is as good as another. But avoid the broken or
2664 # incompatible versions:
2665 # SysV /etc/install, /usr/sbin/install
2666 # SunOS /usr/etc/install
2667 # IRIX /sbin/install
2668 # AIX /bin/install
2669 # AmigaOS /C/install, which installs bootblocks on floppy discs
2670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673 # OS/2's system install, which has a completely different semantic
2674 # ./install, which can be erroneously created by make from ./install.sh.
2675 # Reject install programs that cannot install multiple files.
2676 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2677 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2678 if test -z "$INSTALL"; then
2679 if test "${ac_cv_path_install+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 # Account for people who put trailing slashes in PATH elements.
2688 case $as_dir/ in
2689 ./ | .// | /cC/* | \
2690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2692 /usr/ucb/* ) ;;
2693 *)
2694 # OSF1 and SCO ODT 3.0 have their own names for install.
2695 # Don't use installbsd from OSF since it installs stuff as root
2696 # by default.
2697 for ac_prog in ginstall scoinst install; do
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2700 if test $ac_prog = install &&
2701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702 # AIX install. It has an incompatible calling convention.
2703 :
2704 elif test $ac_prog = install &&
2705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # program-specific install script used by HP pwplus--don't use.
2707 :
2708 else
2709 rm -rf conftest.one conftest.two conftest.dir
2710 echo one > conftest.one
2711 echo two > conftest.two
2712 mkdir conftest.dir
2713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2714 test -s conftest.one && test -s conftest.two &&
2715 test -s conftest.dir/conftest.one &&
2716 test -s conftest.dir/conftest.two
2717 then
2718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2719 break 3
2720 fi
2721 fi
2722 fi
2723 done
2724 done
2725 ;;
2726 esac
2727 done
2728
2729 rm -rf conftest.one conftest.two conftest.dir
2730
2731 fi
2732 if test "${ac_cv_path_install+set}" = set; then
2733 INSTALL=$ac_cv_path_install
2734 else
2735 # As a last resort, use the slow shell script. Don't cache a
2736 # value for INSTALL within a source directory, because that will
2737 # break other packages using the cache if that directory is
2738 # removed, or if the value is a relative name.
2739 INSTALL=$ac_install_sh
2740 fi
2741 fi
2742 echo "$as_me:$LINENO: result: $INSTALL" >&5
2743 echo "${ECHO_T}$INSTALL" >&6
2744
2745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2746 # It thinks the first close brace ends the variable substitution.
2747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2748
2749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2750
2751 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2752
2753 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2754 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2755 # Just in case
2756 sleep 1
2757 echo timestamp > conftest.file
2758 # Do `set' in a subshell so we don't clobber the current shell's
2759 # arguments. Must try -L first in case configure is actually a
2760 # symlink; some systems play weird games with the mod time of symlinks
2761 # (eg FreeBSD returns the mod time of the symlink's containing
2762 # directory).
2763 if (
2764 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2765 if test "$*" = "X"; then
2766 # -L didn't work.
2767 set X `ls -t $srcdir/configure conftest.file`
2768 fi
2769 rm -f conftest.file
2770 if test "$*" != "X $srcdir/configure conftest.file" \
2771 && test "$*" != "X conftest.file $srcdir/configure"; then
2772
2773 # If neither matched, then we have a broken ls. This can happen
2774 # if, for instance, CONFIG_SHELL is bash and it inherits a
2775 # broken ls alias from the environment. This has actually
2776 # happened. Such a system could not be considered "sane".
2777 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2778 alias in your environment" >&5
2779 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2780 alias in your environment" >&2;}
2781 { (exit 1); exit 1; }; }
2782 fi
2783
2784 test "$2" = conftest.file
2785 )
2786 then
2787 # Ok.
2788 :
2789 else
2790 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2791 Check your system clock" >&5
2792 echo "$as_me: error: newly created file is older than distributed files!
2793 Check your system clock" >&2;}
2794 { (exit 1); exit 1; }; }
2795 fi
2796 echo "$as_me:$LINENO: result: yes" >&5
2797 echo "${ECHO_T}yes" >&6
2798 test "$program_prefix" != NONE &&
2799 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2800 # Use a double $ so make ignores it.
2801 test "$program_suffix" != NONE &&
2802 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2803 # Double any \ or $. echo might interpret backslashes.
2804 # By default was `s,x,x', remove it if useless.
2805 cat <<\_ACEOF >conftest.sed
2806 s/[\\$]/&&/g;s/;s,x,x,$//
2807 _ACEOF
2808 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2809 rm conftest.sed
2810
2811 # expand $ac_aux_dir to an absolute path
2812 am_aux_dir=`cd $ac_aux_dir && pwd`
2813
2814 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2815 # Use eval to expand $SHELL
2816 if eval "$MISSING --run true"; then
2817 am_missing_run="$MISSING --run "
2818 else
2819 am_missing_run=
2820 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2821 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2822 fi
2823
2824 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2825 # We used to keeping the `.' as first argument, in order to
2826 # allow $(mkdir_p) to be used without argument. As in
2827 # $(mkdir_p) $(somedir)
2828 # where $(somedir) is conditionally defined. However this is wrong
2829 # for two reasons:
2830 # 1. if the package is installed by a user who cannot write `.'
2831 # make install will fail,
2832 # 2. the above comment should most certainly read
2833 # $(mkdir_p) $(DESTDIR)$(somedir)
2834 # so it does not work when $(somedir) is undefined and
2835 # $(DESTDIR) is not.
2836 # To support the latter case, we have to write
2837 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2838 # so the `.' trick is pointless.
2839 mkdir_p='mkdir -p --'
2840 else
2841 # On NextStep and OpenStep, the `mkdir' command does not
2842 # recognize any option. It will interpret all options as
2843 # directories to create, and then abort because `.' already
2844 # exists.
2845 for d in ./-p ./--version;
2846 do
2847 test -d $d && rmdir $d
2848 done
2849 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2850 if test -f "$ac_aux_dir/mkinstalldirs"; then
2851 mkdir_p='$(mkinstalldirs)'
2852 else
2853 mkdir_p='$(install_sh) -d'
2854 fi
2855 fi
2856
2857 for ac_prog in gawk mawk nawk awk
2858 do
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863 if test "${ac_cv_prog_AWK+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 if test -n "$AWK"; then
2867 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_AWK="$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882
2883 fi
2884 fi
2885 AWK=$ac_cv_prog_AWK
2886 if test -n "$AWK"; then
2887 echo "$as_me:$LINENO: result: $AWK" >&5
2888 echo "${ECHO_T}$AWK" >&6
2889 else
2890 echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6
2892 fi
2893
2894 test -n "$AWK" && break
2895 done
2896
2897 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2898 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2899 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2900 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 cat >conftest.make <<\_ACEOF
2904 all:
2905 @echo 'ac_maketemp="$(MAKE)"'
2906 _ACEOF
2907 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2908 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2909 if test -n "$ac_maketemp"; then
2910 eval ac_cv_prog_make_${ac_make}_set=yes
2911 else
2912 eval ac_cv_prog_make_${ac_make}_set=no
2913 fi
2914 rm -f conftest.make
2915 fi
2916 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2917 echo "$as_me:$LINENO: result: yes" >&5
2918 echo "${ECHO_T}yes" >&6
2919 SET_MAKE=
2920 else
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2923 SET_MAKE="MAKE=${MAKE-make}"
2924 fi
2925
2926 rm -rf .tst 2>/dev/null
2927 mkdir .tst 2>/dev/null
2928 if test -d .tst; then
2929 am__leading_dot=.
2930 else
2931 am__leading_dot=_
2932 fi
2933 rmdir .tst 2>/dev/null
2934
2935 DEPDIR="${am__leading_dot}deps"
2936
2937 ac_config_commands="$ac_config_commands depfiles"
2938
2939
2940 am_make=${MAKE-make}
2941 cat > confinc << 'END'
2942 am__doit:
2943 @echo done
2944 .PHONY: am__doit
2945 END
2946 # If we don't find an include directive, just comment out the code.
2947 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2948 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2949 am__include="#"
2950 am__quote=
2951 _am_result=none
2952 # First try GNU make style include.
2953 echo "include confinc" > confmf
2954 # We grep out `Entering directory' and `Leaving directory'
2955 # messages which can occur if `w' ends up in MAKEFLAGS.
2956 # In particular we don't look at `^make:' because GNU make might
2957 # be invoked under some other name (usually "gmake"), in which
2958 # case it prints its new name instead of `make'.
2959 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2960 am__include=include
2961 am__quote=
2962 _am_result=GNU
2963 fi
2964 # Now try BSD make style include.
2965 if test "$am__include" = "#"; then
2966 echo '.include "confinc"' > confmf
2967 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2968 am__include=.include
2969 am__quote="\""
2970 _am_result=BSD
2971 fi
2972 fi
2973
2974
2975 echo "$as_me:$LINENO: result: $_am_result" >&5
2976 echo "${ECHO_T}$_am_result" >&6
2977 rm -f confinc confmf
2978
2979 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2980 if test "${enable_dependency_tracking+set}" = set; then
2981 enableval="$enable_dependency_tracking"
2982
2983 fi;
2984 if test "x$enable_dependency_tracking" != xno; then
2985 am_depcomp="$ac_aux_dir/depcomp"
2986 AMDEPBACKSLASH='\'
2987 fi
2988
2989
2990 if test "x$enable_dependency_tracking" != xno; then
2991 AMDEP_TRUE=
2992 AMDEP_FALSE='#'
2993 else
2994 AMDEP_TRUE='#'
2995 AMDEP_FALSE=
2996 fi
2997
2998
2999
3000 # test to see if srcdir already configured
3001 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3002 test -f $srcdir/config.status; then
3003 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3004 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3005 { (exit 1); exit 1; }; }
3006 fi
3007
3008 # test whether we have cygpath
3009 if test -z "$CYGPATH_W"; then
3010 if (cygpath --version) >/dev/null 2>/dev/null; then
3011 CYGPATH_W='cygpath -w'
3012 else
3013 CYGPATH_W=echo
3014 fi
3015 fi
3016
3017
3018 # Define the identity of the package.
3019 PACKAGE=ld
3020 VERSION=${BFD_VERSION}
3021
3022
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE "$PACKAGE"
3025 _ACEOF
3026
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define VERSION "$VERSION"
3030 _ACEOF
3031
3032 # Some tools Automake needs.
3033
3034 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3035
3036
3037 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3038
3039
3040 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3041
3042
3043 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3044
3045
3046 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3047
3048 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3049
3050 # Installed binaries are usually stripped using `strip' when the user
3051 # run `make install-strip'. However `strip' might not be the right
3052 # tool to use in cross-compilation environments, therefore Automake
3053 # will honor the `STRIP' environment variable to overrule this program.
3054 if test "$cross_compiling" != no; then
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}strip; ac_word=$2
3058 echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060 if test "${ac_cv_prog_STRIP+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 if test -n "$STRIP"; then
3064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077 done
3078 done
3079
3080 fi
3081 fi
3082 STRIP=$ac_cv_prog_STRIP
3083 if test -n "$STRIP"; then
3084 echo "$as_me:$LINENO: result: $STRIP" >&5
3085 echo "${ECHO_T}$STRIP" >&6
3086 else
3087 echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6
3089 fi
3090
3091 fi
3092 if test -z "$ac_cv_prog_STRIP"; then
3093 ac_ct_STRIP=$STRIP
3094 # Extract the first word of "strip", so it can be a program name with args.
3095 set dummy strip; ac_word=$2
3096 echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101 if test -n "$ac_ct_STRIP"; then
3102 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_STRIP="strip"
3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117
3118 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3119 fi
3120 fi
3121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3122 if test -n "$ac_ct_STRIP"; then
3123 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3124 echo "${ECHO_T}$ac_ct_STRIP" >&6
3125 else
3126 echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3128 fi
3129
3130 STRIP=$ac_ct_STRIP
3131 else
3132 STRIP="$ac_cv_prog_STRIP"
3133 fi
3134
3135 fi
3136 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3137
3138 # We need awk for the "check" target. The system "awk" is bad on
3139 # some platforms.
3140 # Always define AMTAR for backward compatibility.
3141
3142 AMTAR=${AMTAR-"${am_missing_run}tar"}
3143
3144 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3145
3146
3147
3148
3149 depcc="$CC" am_compiler_list=
3150
3151 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3152 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3153 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3157 # We make a subdir and do the tests there. Otherwise we can end up
3158 # making bogus files that we don't know about and never remove. For
3159 # instance it was reported that on HP-UX the gcc test will end up
3160 # making a dummy file named `D' -- because `-MD' means `put the output
3161 # in D'.
3162 mkdir conftest.dir
3163 # Copy depcomp to subdir because otherwise we won't find it if we're
3164 # using a relative directory.
3165 cp "$am_depcomp" conftest.dir
3166 cd conftest.dir
3167 # We will build objects and dependencies in a subdirectory because
3168 # it helps to detect inapplicable dependency modes. For instance
3169 # both Tru64's cc and ICC support -MD to output dependencies as a
3170 # side effect of compilation, but ICC will put the dependencies in
3171 # the current directory while Tru64 will put them in the object
3172 # directory.
3173 mkdir sub
3174
3175 am_cv_CC_dependencies_compiler_type=none
3176 if test "$am_compiler_list" = ""; then
3177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3178 fi
3179 for depmode in $am_compiler_list; do
3180 # Setup a source with many dependencies, because some compilers
3181 # like to wrap large dependency lists on column 80 (with \), and
3182 # we should not choose a depcomp mode which is confused by this.
3183 #
3184 # We need to recreate these files for each test, as the compiler may
3185 # overwrite some of them when testing with obscure command lines.
3186 # This happens at least with the AIX C compiler.
3187 : > sub/conftest.c
3188 for i in 1 2 3 4 5 6; do
3189 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3190 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3191 # Solaris 8's {/usr,}/bin/sh.
3192 touch sub/conftst$i.h
3193 done
3194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3195
3196 case $depmode in
3197 nosideeffect)
3198 # after this tag, mechanisms are not by side-effect, so they'll
3199 # only be used when explicitly requested
3200 if test "x$enable_dependency_tracking" = xyes; then
3201 continue
3202 else
3203 break
3204 fi
3205 ;;
3206 none) break ;;
3207 esac
3208 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3209 # mode. It turns out that the SunPro C++ compiler does not properly
3210 # handle `-M -o', and we need to detect this.
3211 if depmode=$depmode \
3212 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3213 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3214 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3215 >/dev/null 2>conftest.err &&
3216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3217 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3219 # icc doesn't choke on unknown options, it will just issue warnings
3220 # or remarks (even with -Werror). So we grep stderr for any message
3221 # that says an option was ignored or not supported.
3222 # When given -MP, icc 7.0 and 7.1 complain thusly:
3223 # icc: Command line warning: ignoring option '-M'; no argument required
3224 # The diagnosis changed in icc 8.0:
3225 # icc: Command line remark: option '-MP' not supported
3226 if (grep 'ignoring option' conftest.err ||
3227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3228 am_cv_CC_dependencies_compiler_type=$depmode
3229 break
3230 fi
3231 fi
3232 done
3233
3234 cd ..
3235 rm -rf conftest.dir
3236 else
3237 am_cv_CC_dependencies_compiler_type=none
3238 fi
3239
3240 fi
3241 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3242 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3243 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3244
3245
3246
3247 if
3248 test "x$enable_dependency_tracking" != xno \
3249 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3250 am__fastdepCC_TRUE=
3251 am__fastdepCC_FALSE='#'
3252 else
3253 am__fastdepCC_TRUE='#'
3254 am__fastdepCC_FALSE=
3255 fi
3256
3257
3258
3259
3260
3261 # Check whether --with-lib-path or --without-lib-path was given.
3262 if test "${with_lib_path+set}" = set; then
3263 withval="$with_lib_path"
3264 LIB_PATH=$withval
3265 fi;
3266 # Check whether --enable-targets or --disable-targets was given.
3267 if test "${enable_targets+set}" = set; then
3268 enableval="$enable_targets"
3269 case "${enableval}" in
3270 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3271 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3272 { (exit 1); exit 1; }; }
3273 ;;
3274 no) enable_targets= ;;
3275 *) enable_targets=$enableval ;;
3276 esac
3277 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3278 if test "${enable_64_bit_bfd+set}" = set; then
3279 enableval="$enable_64_bit_bfd"
3280 case "${enableval}" in
3281 yes) want64=true ;;
3282 no) want64=false ;;
3283 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3284 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3285 { (exit 1); exit 1; }; } ;;
3286 esac
3287 else
3288 want64=false
3289 fi;
3290
3291 # Check whether --with-sysroot or --without-sysroot was given.
3292 if test "${with_sysroot+set}" = set; then
3293 withval="$with_sysroot"
3294
3295 case ${with_sysroot} in
3296 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3297 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3298 esac
3299
3300 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3301 use_sysroot=yes
3302
3303 if test "x$prefix" = xNONE; then
3304 test_prefix=/usr/local
3305 else
3306 test_prefix=$prefix
3307 fi
3308 if test "x$exec_prefix" = xNONE; then
3309 test_exec_prefix=$test_prefix
3310 else
3311 test_exec_prefix=$exec_prefix
3312 fi
3313 case ${TARGET_SYSTEM_ROOT} in
3314 "${test_prefix}"|"${test_prefix}/"*|\
3315 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3316 '${prefix}'|'${prefix}/'*|\
3317 '${exec_prefix}'|'${exec_prefix}/'*)
3318 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3319 TARGET_SYSTEM_ROOT_DEFINE="$t"
3320 ;;
3321 esac
3322
3323 else
3324
3325 use_sysroot=no
3326 TARGET_SYSTEM_ROOT=
3327 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
3328
3329 fi;
3330
3331
3332
3333
3334 # Check whether --enable-got or --disable-got was given.
3335 if test "${enable_got+set}" = set; then
3336 enableval="$enable_got"
3337 case "${enableval}" in
3338 target | single | negative | multigot) got_handling=$enableval ;;
3339 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-got option" >&5
3340 echo "$as_me: error: bad value ${enableval} for --enable-got option" >&2;}
3341 { (exit 1); exit 1; }; } ;;
3342 esac
3343 else
3344 got_handling=target
3345 fi;
3346
3347 case "${got_handling}" in
3348 target)
3349
3350 cat >>confdefs.h <<\_ACEOF
3351 #define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT
3352 _ACEOF
3353 ;;
3354 single)
3355
3356 cat >>confdefs.h <<\_ACEOF
3357 #define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE
3358 _ACEOF
3359 ;;
3360 negative)
3361
3362 cat >>confdefs.h <<\_ACEOF
3363 #define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE
3364 _ACEOF
3365 ;;
3366 multigot)
3367
3368 cat >>confdefs.h <<\_ACEOF
3369 #define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT
3370 _ACEOF
3371 ;;
3372 *) { { echo "$as_me:$LINENO: error: bad value ${got_handling} for --enable-got option" >&5
3373 echo "$as_me: error: bad value ${got_handling} for --enable-got option" >&2;}
3374 { (exit 1); exit 1; }; } ;;
3375 esac
3376
3377
3378 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3379
3380 # Check whether --enable-werror or --disable-werror was given.
3381 if test "${enable_werror+set}" = set; then
3382 enableval="$enable_werror"
3383 case "${enableval}" in
3384 yes | y) ERROR_ON_WARNING="yes" ;;
3385 no | n) ERROR_ON_WARNING="no" ;;
3386 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3387 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3388 { (exit 1); exit 1; }; } ;;
3389 esac
3390 fi;
3391
3392 # Enable -Wno-format by default when using gcc on mingw
3393 case "${host}" in
3394 *-*-mingw32*)
3395 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3396 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
3397 fi
3398 ;;
3399 *) ;;
3400 esac
3401
3402 # Enable -Werror by default when using gcc
3403 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3404 ERROR_ON_WARNING=yes
3405 fi
3406
3407 NO_WERROR=
3408 if test "${ERROR_ON_WARNING}" = yes ; then
3409 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3410 NO_WERROR="-Wno-error"
3411 fi
3412
3413 if test "${GCC}" = yes ; then
3414 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3415 fi
3416
3417 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3418 if test "${enable_build_warnings+set}" = set; then
3419 enableval="$enable_build_warnings"
3420 case "${enableval}" in
3421 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3422 no) if test "${GCC}" = yes ; then
3423 WARN_CFLAGS="-w"
3424 fi;;
3425 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3426 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3427 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3428 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3429 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3430 esac
3431 fi;
3432
3433 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3434 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3435 fi
3436
3437
3438
3439
3440
3441 ac_config_headers="$ac_config_headers config.h:config.in"
3442
3443
3444 if test -z "$target" ; then
3445 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3446 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3447 { (exit 1); exit 1; }; }
3448 fi
3449 if test -z "$host" ; then
3450 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3451 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3452 { (exit 1); exit 1; }; }
3453 fi
3454
3455 # host-specific stuff:
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462 if test -n "$ac_tool_prefix"; then
3463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_prog_CC+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484 done
3485 done
3486
3487 fi
3488 fi
3489 CC=$ac_cv_prog_CC
3490 if test -n "$CC"; then
3491 echo "$as_me:$LINENO: result: $CC" >&5
3492 echo "${ECHO_T}$CC" >&6
3493 else
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 fi
3499 if test -z "$ac_cv_prog_CC"; then
3500 ac_ct_CC=$CC
3501 # Extract the first word of "gcc", so it can be a program name with args.
3502 set dummy gcc; ac_word=$2
3503 echo "$as_me:$LINENO: checking for $ac_word" >&5
3504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508 if test -n "$ac_ct_CC"; then
3509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_ac_ct_CC="gcc"
3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3521 fi
3522 done
3523 done
3524
3525 fi
3526 fi
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3530 echo "${ECHO_T}$ac_ct_CC" >&6
3531 else
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3534 fi
3535
3536 CC=$ac_ct_CC
3537 else
3538 CC="$ac_cv_prog_CC"
3539 fi
3540
3541 if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}cc; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_prog_CC+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_CC="${ac_tool_prefix}cc"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564 done
3565 done
3566
3567 fi
3568 fi
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571 echo "$as_me:$LINENO: result: $CC" >&5
3572 echo "${ECHO_T}$CC" >&6
3573 else
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 fi
3579 if test -z "$ac_cv_prog_CC"; then
3580 ac_ct_CC=$CC
3581 # Extract the first word of "cc", so it can be a program name with args.
3582 set dummy cc; ac_word=$2
3583 echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_CC="cc"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602 done
3603 done
3604
3605 fi
3606 fi
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3610 echo "${ECHO_T}$ac_ct_CC" >&6
3611 else
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3614 fi
3615
3616 CC=$ac_ct_CC
3617 else
3618 CC="$ac_cv_prog_CC"
3619 fi
3620
3621 fi
3622 if test -z "$CC"; then
3623 # Extract the first word of "cc", so it can be a program name with args.
3624 set dummy cc; ac_word=$2
3625 echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627 if test "${ac_cv_prog_CC+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC="$CC" # Let the user override the test.
3632 else
3633 ac_prog_rejected=no
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3642 ac_prog_rejected=yes
3643 continue
3644 fi
3645 ac_cv_prog_CC="cc"
3646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649 done
3650 done
3651
3652 if test $ac_prog_rejected = yes; then
3653 # We found a bogon in the path, so make sure we never use it.
3654 set dummy $ac_cv_prog_CC
3655 shift
3656 if test $# != 0; then
3657 # We chose a different compiler from the bogus one.
3658 # However, it has the same basename, so the bogon will be chosen
3659 # first if we set CC to just the basename; use the full file name.
3660 shift
3661 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3662 fi
3663 fi
3664 fi
3665 fi
3666 CC=$ac_cv_prog_CC
3667 if test -n "$CC"; then
3668 echo "$as_me:$LINENO: result: $CC" >&5
3669 echo "${ECHO_T}$CC" >&6
3670 else
3671 echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3673 fi
3674
3675 fi
3676 if test -z "$CC"; then
3677 if test -n "$ac_tool_prefix"; then
3678 for ac_prog in cl
3679 do
3680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3682 echo "$as_me:$LINENO: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3684 if test "${ac_cv_prog_CC+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701 done
3702 done
3703
3704 fi
3705 fi
3706 CC=$ac_cv_prog_CC
3707 if test -n "$CC"; then
3708 echo "$as_me:$LINENO: result: $CC" >&5
3709 echo "${ECHO_T}$CC" >&6
3710 else
3711 echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6
3713 fi
3714
3715 test -n "$CC" && break
3716 done
3717 fi
3718 if test -z "$CC"; then
3719 ac_ct_CC=$CC
3720 for ac_prog in cl
3721 do
3722 # Extract the first word of "$ac_prog", so it can be a program name with args.
3723 set dummy $ac_prog; ac_word=$2
3724 echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 if test -n "$ac_ct_CC"; then
3730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_CC="$ac_prog"
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745
3746 fi
3747 fi
3748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3749 if test -n "$ac_ct_CC"; then
3750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3751 echo "${ECHO_T}$ac_ct_CC" >&6
3752 else
3753 echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6
3755 fi
3756
3757 test -n "$ac_ct_CC" && break
3758 done
3759
3760 CC=$ac_ct_CC
3761 fi
3762
3763 fi
3764
3765
3766 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3769 See \`config.log' for more details." >&5
3770 echo "$as_me: error: no acceptable C compiler found in \$PATH
3771 See \`config.log' for more details." >&2;}
3772 { (exit 1); exit 1; }; }; }
3773
3774 # Provide some information about the compiler.
3775 echo "$as_me:$LINENO:" \
3776 "checking for C compiler version" >&5
3777 ac_compiler=`set X $ac_compile; echo $2`
3778 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3779 (eval $ac_compiler --version </dev/null >&5) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }
3783 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3784 (eval $ac_compiler -v </dev/null >&5) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }
3788 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3789 (eval $ac_compiler -V </dev/null >&5) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }
3793
3794 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3795 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3796 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805
3806 int
3807 main ()
3808 {
3809 #ifndef __GNUC__
3810 choke me
3811 #endif
3812
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 rm -f conftest.$ac_objext
3818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3819 (eval $ac_compile) 2>conftest.er1
3820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
3826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; } &&
3832 { ac_try='test -s conftest.$ac_objext'
3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 (eval $ac_try) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; }; then
3838 ac_compiler_gnu=yes
3839 else
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843 ac_compiler_gnu=no
3844 fi
3845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3847
3848 fi
3849 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3850 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3851 GCC=`test $ac_compiler_gnu = yes && echo yes`
3852 ac_test_CFLAGS=${CFLAGS+set}
3853 ac_save_CFLAGS=$CFLAGS
3854 CFLAGS="-g"
3855 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3856 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3857 if test "${ac_cv_prog_cc_g+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866
3867 int
3868 main ()
3869 {
3870
3871 ;
3872 return 0;
3873 }
3874 _ACEOF
3875 rm -f conftest.$ac_objext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886 (eval $ac_try) 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 ac_cv_prog_cc_g=yes
3897 else
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 ac_cv_prog_cc_g=no
3902 fi
3903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3904 fi
3905 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3906 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3907 if test "$ac_test_CFLAGS" = set; then
3908 CFLAGS=$ac_save_CFLAGS
3909 elif test $ac_cv_prog_cc_g = yes; then
3910 if test "$GCC" = yes; then
3911 CFLAGS="-g -O2"
3912 else
3913 CFLAGS="-g"
3914 fi
3915 else
3916 if test "$GCC" = yes; then
3917 CFLAGS="-O2"
3918 else
3919 CFLAGS=
3920 fi
3921 fi
3922 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3923 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3924 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 ac_cv_prog_cc_stdc=no
3928 ac_save_CC=$CC
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 #include <stdarg.h>
3936 #include <stdio.h>
3937 #include <sys/types.h>
3938 #include <sys/stat.h>
3939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3940 struct buf { int x; };
3941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3942 static char *e (p, i)
3943 char **p;
3944 int i;
3945 {
3946 return p[i];
3947 }
3948 static char *f (char * (*g) (char **, int), char **p, ...)
3949 {
3950 char *s;
3951 va_list v;
3952 va_start (v,p);
3953 s = g (p, va_arg (v,int));
3954 va_end (v);
3955 return s;
3956 }
3957
3958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3959 function prototypes and stuff, but not '\xHH' hex character constants.
3960 These don't provoke an error unfortunately, instead are silently treated
3961 as 'x'. The following induces an error, until -std1 is added to get
3962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3963 array size at least. It's necessary to write '\x00'==0 to get something
3964 that's true only with -std1. */
3965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3966
3967 int test (int i, double x);
3968 struct s1 {int (*f) (int a);};
3969 struct s2 {int (*f) (double a);};
3970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3971 int argc;
3972 char **argv;
3973 int
3974 main ()
3975 {
3976 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3977 ;
3978 return 0;
3979 }
3980 _ACEOF
3981 # Don't try gcc -ansi; that turns off useful extensions and
3982 # breaks some systems' header files.
3983 # AIX -qlanglvl=ansi
3984 # Ultrix and OSF/1 -std1
3985 # HP-UX 10.20 and later -Ae
3986 # HP-UX older versions -Aa -D_HPUX_SOURCE
3987 # SVR4 -Xc -D__EXTENSIONS__
3988 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3989 do
3990 CC="$ac_save_CC $ac_arg"
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
3994 ac_status=$?
3995 grep -v '^ *+' conftest.er1 >conftest.err
3996 rm -f conftest.er1
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; } &&
4006 { ac_try='test -s conftest.$ac_objext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 (eval $ac_try) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4012 ac_cv_prog_cc_stdc=$ac_arg
4013 break
4014 else
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4017
4018 fi
4019 rm -f conftest.err conftest.$ac_objext
4020 done
4021 rm -f conftest.$ac_ext conftest.$ac_objext
4022 CC=$ac_save_CC
4023
4024 fi
4025
4026 case "x$ac_cv_prog_cc_stdc" in
4027 x|xno)
4028 echo "$as_me:$LINENO: result: none needed" >&5
4029 echo "${ECHO_T}none needed" >&6 ;;
4030 *)
4031 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4032 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4033 CC="$CC $ac_cv_prog_cc_stdc" ;;
4034 esac
4035
4036 # Some people use a C++ compiler to compile C. Since we use `exit',
4037 # in C++ we need to declare it. In case someone uses the same compiler
4038 # for both compiling C and C++ we need to have the C++ compiler decide
4039 # the declaration of exit, since it's the most demanding environment.
4040 cat >conftest.$ac_ext <<_ACEOF
4041 #ifndef __cplusplus
4042 choke me
4043 #endif
4044 _ACEOF
4045 rm -f conftest.$ac_objext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 (eval $ac_try) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066 for ac_declaration in \
4067 '' \
4068 'extern "C" void std::exit (int) throw (); using std::exit;' \
4069 'extern "C" void std::exit (int); using std::exit;' \
4070 'extern "C" void exit (int) throw ();' \
4071 'extern "C" void exit (int);' \
4072 'void exit (int);'
4073 do
4074 cat >conftest.$ac_ext <<_ACEOF
4075 /* confdefs.h. */
4076 _ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4080 $ac_declaration
4081 #include <stdlib.h>
4082 int
4083 main ()
4084 {
4085 exit (42);
4086 ;
4087 return 0;
4088 }
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 :
4112 else
4113 echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4115
4116 continue
4117 fi
4118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h. */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4125 $ac_declaration
4126 int
4127 main ()
4128 {
4129 exit (42);
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 break
4156 else
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160 fi
4161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4162 done
4163 rm -f conftest*
4164 if test -n "$ac_declaration"; then
4165 echo '#ifdef __cplusplus' >>confdefs.h
4166 echo $ac_declaration >>confdefs.h
4167 echo '#endif' >>confdefs.h
4168 fi
4169
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 fi
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181
4182
4183 cat >>confdefs.h <<\_ACEOF
4184 #define _GNU_SOURCE 1
4185 _ACEOF
4186
4187
4188 # Find a good install program. We prefer a C program (faster),
4189 # so one script is as good as another. But avoid the broken or
4190 # incompatible versions:
4191 # SysV /etc/install, /usr/sbin/install
4192 # SunOS /usr/etc/install
4193 # IRIX /sbin/install
4194 # AIX /bin/install
4195 # AmigaOS /C/install, which installs bootblocks on floppy discs
4196 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4197 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4198 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4199 # OS/2's system install, which has a completely different semantic
4200 # ./install, which can be erroneously created by make from ./install.sh.
4201 # Reject install programs that cannot install multiple files.
4202 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4203 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4204 if test -z "$INSTALL"; then
4205 if test "${ac_cv_path_install+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 # Account for people who put trailing slashes in PATH elements.
4214 case $as_dir/ in
4215 ./ | .// | /cC/* | \
4216 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4217 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4218 /usr/ucb/* ) ;;
4219 *)
4220 # OSF1 and SCO ODT 3.0 have their own names for install.
4221 # Don't use installbsd from OSF since it installs stuff as root
4222 # by default.
4223 for ac_prog in ginstall scoinst install; do
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4226 if test $ac_prog = install &&
4227 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4228 # AIX install. It has an incompatible calling convention.
4229 :
4230 elif test $ac_prog = install &&
4231 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4232 # program-specific install script used by HP pwplus--don't use.
4233 :
4234 else
4235 rm -rf conftest.one conftest.two conftest.dir
4236 echo one > conftest.one
4237 echo two > conftest.two
4238 mkdir conftest.dir
4239 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4240 test -s conftest.one && test -s conftest.two &&
4241 test -s conftest.dir/conftest.one &&
4242 test -s conftest.dir/conftest.two
4243 then
4244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4245 break 3
4246 fi
4247 fi
4248 fi
4249 done
4250 done
4251 ;;
4252 esac
4253 done
4254
4255 rm -rf conftest.one conftest.two conftest.dir
4256
4257 fi
4258 if test "${ac_cv_path_install+set}" = set; then
4259 INSTALL=$ac_cv_path_install
4260 else
4261 # As a last resort, use the slow shell script. Don't cache a
4262 # value for INSTALL within a source directory, because that will
4263 # break other packages using the cache if that directory is
4264 # removed, or if the value is a relative name.
4265 INSTALL=$ac_install_sh
4266 fi
4267 fi
4268 echo "$as_me:$LINENO: result: $INSTALL" >&5
4269 echo "${ECHO_T}$INSTALL" >&6
4270
4271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4272 # It thinks the first close brace ends the variable substitution.
4273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4274
4275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4276
4277 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4278
4279
4280
4281
4282 macro_version='2.1a'
4283 macro_revision='1.2435'
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296 ltmain="$ac_aux_dir/ltmain.sh"
4297
4298 # Set options
4299
4300 enable_dlopen=no
4301
4302
4303 enable_win32_dll=no
4304
4305
4306 # Check whether --enable-shared or --disable-shared was given.
4307 if test "${enable_shared+set}" = set; then
4308 enableval="$enable_shared"
4309 p=${PACKAGE-default}
4310 case $enableval in
4311 yes) enable_shared=yes ;;
4312 no) enable_shared=no ;;
4313 *)
4314 enable_shared=no
4315 # Look at the argument we got. We use all the common list separators.
4316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4317 for pkg in $enableval; do
4318 IFS="$lt_save_ifs"
4319 if test "X$pkg" = "X$p"; then
4320 enable_shared=yes
4321 fi
4322 done
4323 IFS="$lt_save_ifs"
4324 ;;
4325 esac
4326 else
4327 enable_shared=yes
4328 fi;
4329
4330
4331
4332
4333
4334
4335
4336
4337 # Check whether --enable-static or --disable-static was given.
4338 if test "${enable_static+set}" = set; then
4339 enableval="$enable_static"
4340 p=${PACKAGE-default}
4341 case $enableval in
4342 yes) enable_static=yes ;;
4343 no) enable_static=no ;;
4344 *)
4345 enable_static=no
4346 # Look at the argument we got. We use all the common list separators.
4347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4348 for pkg in $enableval; do
4349 IFS="$lt_save_ifs"
4350 if test "X$pkg" = "X$p"; then
4351 enable_static=yes
4352 fi
4353 done
4354 IFS="$lt_save_ifs"
4355 ;;
4356 esac
4357 else
4358 enable_static=yes
4359 fi;
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369 # Check whether --with-pic or --without-pic was given.
4370 if test "${with_pic+set}" = set; then
4371 withval="$with_pic"
4372 pic_mode="$withval"
4373 else
4374 pic_mode=default
4375 fi;
4376
4377 test -z "$pic_mode" && pic_mode=default
4378
4379
4380
4381
4382
4383
4384
4385 # Check whether --enable-fast-install or --disable-fast-install was given.
4386 if test "${enable_fast_install+set}" = set; then
4387 enableval="$enable_fast_install"
4388 p=${PACKAGE-default}
4389 case $enableval in
4390 yes) enable_fast_install=yes ;;
4391 no) enable_fast_install=no ;;
4392 *)
4393 enable_fast_install=no
4394 # Look at the argument we got. We use all the common list separators.
4395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4396 for pkg in $enableval; do
4397 IFS="$lt_save_ifs"
4398 if test "X$pkg" = "X$p"; then
4399 enable_fast_install=yes
4400 fi
4401 done
4402 IFS="$lt_save_ifs"
4403 ;;
4404 esac
4405 else
4406 enable_fast_install=yes
4407 fi;
4408
4409
4410
4411
4412
4413
4414
4415
4416 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4417 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4418 if test "${lt_cv_path_SED+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421 # Loop through the user's path and test for sed and gsed.
4422 # Then use that list of sed's as ones to test for truncation.
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for lt_ac_prog in sed gsed; do
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4431 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4432 fi
4433 done
4434 done
4435 done
4436 IFS=$as_save_IFS
4437 lt_ac_max=0
4438 lt_ac_count=0
4439 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4440 # along with /bin/sed that truncates output.
4441 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4442 test ! -f $lt_ac_sed && continue
4443 cat /dev/null > conftest.in
4444 lt_ac_count=0
4445 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4446 # Check for GNU sed and select it if it is found.
4447 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4448 lt_cv_path_SED=$lt_ac_sed
4449 break
4450 fi
4451 while true; do
4452 cat conftest.in conftest.in >conftest.tmp
4453 mv conftest.tmp conftest.in
4454 cp conftest.in conftest.nl
4455 echo >>conftest.nl
4456 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4457 cmp -s conftest.out conftest.nl || break
4458 # 10000 chars as input seems more than enough
4459 test $lt_ac_count -gt 10 && break
4460 lt_ac_count=`expr $lt_ac_count + 1`
4461 if test $lt_ac_count -gt $lt_ac_max; then
4462 lt_ac_max=$lt_ac_count
4463 lt_cv_path_SED=$lt_ac_sed
4464 fi
4465 done
4466 done
4467
4468 fi
4469
4470 SED=$lt_cv_path_SED
4471
4472 echo "$as_me:$LINENO: result: $SED" >&5
4473 echo "${ECHO_T}$SED" >&6
4474
4475 test -z "$SED" && SED=sed
4476 Xsed="$SED -e 1s/^X//"
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488 echo "$as_me:$LINENO: checking for egrep" >&5
4489 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4490 if test "${ac_cv_prog_egrep+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4494 then ac_cv_prog_egrep='grep -E'
4495 else ac_cv_prog_egrep='egrep'
4496 fi
4497 fi
4498 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4499 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4500 EGREP=$ac_cv_prog_egrep
4501
4502
4503 echo "$as_me:$LINENO: checking for fgrep" >&5
4504 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4505 if test "${ac_cv_prog_fgrep+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4509 then ac_cv_prog_fgrep='grep -F'
4510 else ac_cv_prog_fgrep='fgrep'
4511 fi
4512 fi
4513 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4514 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4515 FGREP=$ac_cv_prog_fgrep
4516
4517
4518 test -z "$GREP" && GREP=grep
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4539 if test "${with_gnu_ld+set}" = set; then
4540 withval="$with_gnu_ld"
4541 test "$withval" = no || with_gnu_ld=yes
4542 else
4543 with_gnu_ld=no
4544 fi;
4545 ac_prog=ld
4546 if test "$GCC" = yes; then
4547 # Check if gcc -print-prog-name=ld gives a path.
4548 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4549 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4550 case $host in
4551 *-*-mingw*)
4552 # gcc leaves a trailing carriage return which upsets mingw
4553 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4554 *)
4555 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4556 esac
4557 case $ac_prog in
4558 # Accept absolute paths.
4559 [\\/]* | ?:[\\/]*)
4560 re_direlt='/[^/][^/]*/\.\./'
4561 # Canonicalize the pathname of ld
4562 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4563 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4564 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4565 done
4566 test -z "$LD" && LD="$ac_prog"
4567 ;;
4568 "")
4569 # If it fails, then pretend we aren't using GCC.
4570 ac_prog=ld
4571 ;;
4572 *)
4573 # If it is relative, then search for the first ld in PATH.
4574 with_gnu_ld=unknown
4575 ;;
4576 esac
4577 elif test "$with_gnu_ld" = yes; then
4578 echo "$as_me:$LINENO: checking for GNU ld" >&5
4579 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4580 else
4581 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4582 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4583 fi
4584 if test "${lt_cv_path_LD+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 if test -z "$LD"; then
4588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4589 for ac_dir in $PATH; do
4590 IFS="$lt_save_ifs"
4591 test -z "$ac_dir" && ac_dir=.
4592 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4593 lt_cv_path_LD="$ac_dir/$ac_prog"
4594 # Check to see if the program is GNU ld. I'd rather use --version,
4595 # but apparently some variants of GNU ld only accept -v.
4596 # Break only if it was the GNU/non-GNU ld that we prefer.
4597 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4598 *GNU* | *'with BFD'*)
4599 test "$with_gnu_ld" != no && break
4600 ;;
4601 *)
4602 test "$with_gnu_ld" != yes && break
4603 ;;
4604 esac
4605 fi
4606 done
4607 IFS="$lt_save_ifs"
4608 else
4609 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4610 fi
4611 fi
4612
4613 LD="$lt_cv_path_LD"
4614 if test -n "$LD"; then
4615 echo "$as_me:$LINENO: result: $LD" >&5
4616 echo "${ECHO_T}$LD" >&6
4617 else
4618 echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4620 fi
4621 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4622 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4623 { (exit 1); exit 1; }; }
4624 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4625 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4626 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4630 case `$LD -v 2>&1 </dev/null` in
4631 *GNU* | *'with BFD'*)
4632 lt_cv_prog_gnu_ld=yes
4633 ;;
4634 *)
4635 lt_cv_prog_gnu_ld=no
4636 ;;
4637 esac
4638 fi
4639 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4640 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4641 with_gnu_ld=$lt_cv_prog_gnu_ld
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4653 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4654 if test "${lt_cv_path_NM+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657 if test -n "$NM"; then
4658 # Let the user override the test.
4659 lt_cv_path_NM="$NM"
4660 else
4661 lt_nm_to_check="${ac_tool_prefix}nm"
4662 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4663 lt_nm_to_check="$lt_nm_to_check nm"
4664 fi
4665 for lt_tmp_nm in $lt_nm_to_check; do
4666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4667 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4668 IFS="$lt_save_ifs"
4669 test -z "$ac_dir" && ac_dir=.
4670 tmp_nm="$ac_dir/$lt_tmp_nm"
4671 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4672 # Check to see if the nm accepts a BSD-compat flag.
4673 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4674 # nm: unknown option "B" ignored
4675 # Tru64's nm complains that /dev/null is an invalid object file
4676 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4677 */dev/null* | *'Invalid file or object type'*)
4678 lt_cv_path_NM="$tmp_nm -B"
4679 break
4680 ;;
4681 *)
4682 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4683 */dev/null*)
4684 lt_cv_path_NM="$tmp_nm -p"
4685 break
4686 ;;
4687 *)
4688 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4689 continue # so that we can try to find one that supports BSD flags
4690 ;;
4691 esac
4692 ;;
4693 esac
4694 fi
4695 done
4696 IFS="$lt_save_ifs"
4697 done
4698 : ${lt_cv_path_NM=no}
4699 fi
4700 fi
4701 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4702 echo "${ECHO_T}$lt_cv_path_NM" >&6
4703 if test "$lt_cv_path_NM" != "no"; then
4704 NM="$lt_cv_path_NM"
4705 else
4706 # Didn't find any BSD compatible name lister, look for dumpbin.
4707 if test -n "$ac_tool_prefix"; then
4708 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4709 do
4710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717 if test -n "$DUMPBIN"; then
4718 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731 done
4732 done
4733
4734 fi
4735 fi
4736 DUMPBIN=$ac_cv_prog_DUMPBIN
4737 if test -n "$DUMPBIN"; then
4738 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4739 echo "${ECHO_T}$DUMPBIN" >&6
4740 else
4741 echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6
4743 fi
4744
4745 test -n "$DUMPBIN" && break
4746 done
4747 fi
4748 if test -z "$DUMPBIN"; then
4749 ac_ct_DUMPBIN=$DUMPBIN
4750 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4751 do
4752 # Extract the first word of "$ac_prog", so it can be a program name with args.
4753 set dummy $ac_prog; ac_word=$2
4754 echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4756 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759 if test -n "$ac_ct_DUMPBIN"; then
4760 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4772 fi
4773 done
4774 done
4775
4776 fi
4777 fi
4778 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4779 if test -n "$ac_ct_DUMPBIN"; then
4780 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4781 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4782 else
4783 echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6
4785 fi
4786
4787 test -n "$ac_ct_DUMPBIN" && break
4788 done
4789 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4790
4791 DUMPBIN=$ac_ct_DUMPBIN
4792 fi
4793
4794
4795 if test "$DUMPBIN" != ":"; then
4796 NM="$DUMPBIN"
4797 fi
4798 fi
4799 test -z "$NM" && NM=nm
4800
4801
4802
4803
4804
4805
4806 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4807 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4808 if test "${lt_cv_nm_interface+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811 lt_cv_nm_interface="BSD nm"
4812 echo "int some_variable = 0;" > conftest.$ac_ext
4813 (eval echo "\"\$as_me:4813: $ac_compile\"" >&5)
4814 (eval "$ac_compile" 2>conftest.err)
4815 cat conftest.err >&5
4816 (eval echo "\"\$as_me:4816: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4817 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4818 cat conftest.err >&5
4819 (eval echo "\"\$as_me:4819: output\"" >&5)
4820 cat conftest.out >&5
4821 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4822 lt_cv_nm_interface="MS dumpbin"
4823 fi
4824 rm -f conftest*
4825 fi
4826 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4827 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4828
4829 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4830 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4831 LN_S=$as_ln_s
4832 if test "$LN_S" = "ln -s"; then
4833 echo "$as_me:$LINENO: result: yes" >&5
4834 echo "${ECHO_T}yes" >&6
4835 else
4836 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4837 echo "${ECHO_T}no, using $LN_S" >&6
4838 fi
4839
4840 # find the maximum length of command line arguments
4841 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4842 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4843 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 i=0
4847 teststring="ABCD"
4848
4849 case $build_os in
4850 msdosdjgpp*)
4851 # On DJGPP, this test can blow up pretty badly due to problems in libc
4852 # (any single argument exceeding 2000 bytes causes a buffer overrun
4853 # during glob expansion). Even if it were fixed, the result of this
4854 # check would be larger than it should be.
4855 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4856 ;;
4857
4858 gnu*)
4859 # Under GNU Hurd, this test is not required because there is
4860 # no limit to the length of command line arguments.
4861 # Libtool will interpret -1 as no limit whatsoever
4862 lt_cv_sys_max_cmd_len=-1;
4863 ;;
4864
4865 cygwin* | mingw*)
4866 # On Win9x/ME, this test blows up -- it succeeds, but takes
4867 # about 5 minutes as the teststring grows exponentially.
4868 # Worse, since 9x/ME are not pre-emptively multitasking,
4869 # you end up with a "frozen" computer, even though with patience
4870 # the test eventually succeeds (with a max line length of 256k).
4871 # Instead, let's just punt: use the minimum linelength reported by
4872 # all of the supported platforms: 8192 (on NT/2K/XP).
4873 lt_cv_sys_max_cmd_len=8192;
4874 ;;
4875
4876 amigaos*)
4877 # On AmigaOS with pdksh, this test takes hours, literally.
4878 # So we just punt and use a minimum line length of 8192.
4879 lt_cv_sys_max_cmd_len=8192;
4880 ;;
4881
4882 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4883 # This has been around since 386BSD, at least. Likely further.
4884 if test -x /sbin/sysctl; then
4885 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4886 elif test -x /usr/sbin/sysctl; then
4887 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4888 else
4889 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4890 fi
4891 # And add a safety zone
4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894 ;;
4895
4896 interix*)
4897 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4898 lt_cv_sys_max_cmd_len=196608
4899 ;;
4900
4901 osf*)
4902 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4903 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4904 # nice to cause kernel panics so lets avoid the loop below.
4905 # First set a reasonable default.
4906 lt_cv_sys_max_cmd_len=16384
4907 #
4908 if test -x /sbin/sysconfig; then
4909 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4910 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4911 esac
4912 fi
4913 ;;
4914 sco3.2v5*)
4915 lt_cv_sys_max_cmd_len=102400
4916 ;;
4917 sysv5* | sco5v6* | sysv4.2uw2*)
4918 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4919 if test -n "$kargmax"; then
4920 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4921 else
4922 lt_cv_sys_max_cmd_len=32768
4923 fi
4924 ;;
4925 *)
4926 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4927 if test -n $lt_cv_sys_max_cmd_len; then
4928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4930 else
4931 # Make teststring a little bigger before we do anything with it.
4932 # a 1K string should be a reasonable start.
4933 for i in 1 2 3 4 5 6 7 8 ; do
4934 teststring=$teststring$teststring
4935 done
4936 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4937 # If test is not a shell built-in, we'll probably end up computing a
4938 # maximum length that is only half of the actual maximum length, but
4939 # we can't tell.
4940 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4941 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4942 test $i != 17 # 1/2 MB should be enough
4943 do
4944 i=`expr $i + 1`
4945 teststring=$teststring$teststring
4946 done
4947 # Only check the string length outside the loop.
4948 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4949 teststring=
4950 # Add a significant safety factor because C++ compilers can tack on
4951 # massive amounts of additional arguments before passing them to the
4952 # linker. It appears as though 1/2 is a usable value.
4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4954 fi
4955 ;;
4956 esac
4957
4958 fi
4959
4960 if test -n $lt_cv_sys_max_cmd_len ; then
4961 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4962 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4963 else
4964 echo "$as_me:$LINENO: result: none" >&5
4965 echo "${ECHO_T}none" >&6
4966 fi
4967 max_cmd_len=$lt_cv_sys_max_cmd_len
4968
4969
4970
4971
4972
4973
4974
4975 : ${CP="cp -f"}
4976 : ${MV="mv -f"}
4977 : ${RM="rm -f"}
4978
4979 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4980 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4981 # Try some XSI features
4982 xsi_shell=no
4983 ( _lt_dummy="a/b/c"
4984 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4985 = c,a/b,, ) >/dev/null 2>&1 \
4986 && xsi_shell=yes
4987 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4988 echo "${ECHO_T}$xsi_shell" >&6
4989
4990
4991 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4992 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4993 lt_shell_append=no
4994 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4995 >/dev/null 2>&1 \
4996 && lt_shell_append=yes
4997 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4998 echo "${ECHO_T}$lt_shell_append" >&6
4999
5000
5001 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5002 lt_unset=unset
5003 else
5004 lt_unset=false
5005 fi
5006
5007
5008
5009
5010
5011 # test EBCDIC or ASCII
5012 case `echo X|tr X '\101'` in
5013 A) # ASCII based system
5014 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5015 lt_SP2NL='tr \040 \012'
5016 lt_NL2SP='tr \015\012 \040\040'
5017 ;;
5018 *) # EBCDIC based system
5019 lt_SP2NL='tr \100 \n'
5020 lt_NL2SP='tr \r\n \100\100'
5021 ;;
5022 esac
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5033 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5034 if test "${lt_cv_ld_reload_flag+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037 lt_cv_ld_reload_flag='-r'
5038 fi
5039 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5040 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5041 reload_flag=$lt_cv_ld_reload_flag
5042 case $reload_flag in
5043 "" | " "*) ;;
5044 *) reload_flag=" $reload_flag" ;;
5045 esac
5046 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5047 case $host_os in
5048 darwin*)
5049 if test "$GCC" = yes; then
5050 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5051 else
5052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5053 fi
5054 ;;
5055 esac
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5067 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5068 if test "${lt_cv_deplibs_check_method+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 lt_cv_file_magic_cmd='$MAGIC_CMD'
5072 lt_cv_file_magic_test_file=
5073 lt_cv_deplibs_check_method='unknown'
5074 # Need to set the preceding variable on all platforms that support
5075 # interlibrary dependencies.
5076 # 'none' -- dependencies not supported.
5077 # `unknown' -- same as none, but documents that we really don't know.
5078 # 'pass_all' -- all dependencies passed with no checks.
5079 # 'test_compile' -- check by making test program.
5080 # 'file_magic [[regex]]' -- check by looking for files in library path
5081 # which responds to the $file_magic_cmd with a given extended regex.
5082 # If you have `file' or equivalent on your system and you're not sure
5083 # whether `pass_all' will *always* work, you probably want this one.
5084
5085 case $host_os in
5086 aix[4-9]*)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
5089
5090 beos*)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093
5094 bsdi[45]*)
5095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5096 lt_cv_file_magic_cmd='/usr/bin/file -L'
5097 lt_cv_file_magic_test_file=/shlib/libc.so
5098 ;;
5099
5100 cygwin*)
5101 # func_win32_libid is a shell function defined in ltmain.sh
5102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5103 lt_cv_file_magic_cmd='func_win32_libid'
5104 ;;
5105
5106 mingw* | pw32*)
5107 # Base MSYS/MinGW do not provide the 'file' command needed by
5108 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5109 # unless we find 'file', for example because we are cross-compiling.
5110 if ( file / ) >/dev/null 2>&1; then
5111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5112 lt_cv_file_magic_cmd='func_win32_libid'
5113 else
5114 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5115 lt_cv_file_magic_cmd='$OBJDUMP -f'
5116 fi
5117 ;;
5118
5119 darwin* | rhapsody*)
5120 lt_cv_deplibs_check_method=pass_all
5121 ;;
5122
5123 freebsd* | dragonfly*)
5124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5125 case $host_cpu in
5126 i*86 )
5127 # Not sure whether the presence of OpenBSD here was a mistake.
5128 # Let's accept both of them until this is cleared up.
5129 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5130 lt_cv_file_magic_cmd=/usr/bin/file
5131 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5132 ;;
5133 esac
5134 else
5135 lt_cv_deplibs_check_method=pass_all
5136 fi
5137 ;;
5138
5139 gnu*)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142
5143 hpux10.20* | hpux11*)
5144 lt_cv_file_magic_cmd=/usr/bin/file
5145 case $host_cpu in
5146 ia64*)
5147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5148 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5149 ;;
5150 hppa*64*)
5151 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]'
5152 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5153 ;;
5154 *)
5155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5156 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5157 ;;
5158 esac
5159 ;;
5160
5161 interix[3-9]*)
5162 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5164 ;;
5165
5166 irix5* | irix6* | nonstopux*)
5167 case $LD in
5168 *-32|*"-32 ") libmagic=32-bit;;
5169 *-n32|*"-n32 ") libmagic=N32;;
5170 *-64|*"-64 ") libmagic=64-bit;;
5171 *) libmagic=never-match;;
5172 esac
5173 lt_cv_deplibs_check_method=pass_all
5174 ;;
5175
5176 # This must be Linux ELF.
5177 linux* | k*bsd*-gnu)
5178 lt_cv_deplibs_check_method=pass_all
5179 ;;
5180
5181 netbsd*)
5182 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5184 else
5185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5186 fi
5187 ;;
5188
5189 newos6*)
5190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5191 lt_cv_file_magic_cmd=/usr/bin/file
5192 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5193 ;;
5194
5195 *nto* | *qnx*)
5196 lt_cv_deplibs_check_method=pass_all
5197 ;;
5198
5199 openbsd*)
5200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5202 else
5203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5204 fi
5205 ;;
5206
5207 osf3* | osf4* | osf5*)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210
5211 rdos*)
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
5214
5215 solaris*)
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
5218
5219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5220 lt_cv_deplibs_check_method=pass_all
5221 ;;
5222
5223 sysv4 | sysv4.3*)
5224 case $host_vendor in
5225 motorola)
5226 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]'
5227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5228 ;;
5229 ncr)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232 sequent)
5233 lt_cv_file_magic_cmd='/bin/file'
5234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5235 ;;
5236 sni)
5237 lt_cv_file_magic_cmd='/bin/file'
5238 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5239 lt_cv_file_magic_test_file=/lib/libc.so
5240 ;;
5241 siemens)
5242 lt_cv_deplibs_check_method=pass_all
5243 ;;
5244 pc)
5245 lt_cv_deplibs_check_method=pass_all
5246 ;;
5247 esac
5248 ;;
5249
5250 tpf*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253 esac
5254
5255 fi
5256 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5257 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5258 file_magic_cmd=$lt_cv_file_magic_cmd
5259 deplibs_check_method=$lt_cv_deplibs_check_method
5260 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 if test -n "$ac_tool_prefix"; then
5274 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5275 set dummy ${ac_tool_prefix}ar; ac_word=$2
5276 echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5278 if test "${ac_cv_prog_AR+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 if test -n "$AR"; then
5282 ac_cv_prog_AR="$AR" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_prog_AR="${ac_tool_prefix}ar"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5294 fi
5295 done
5296 done
5297
5298 fi
5299 fi
5300 AR=$ac_cv_prog_AR
5301 if test -n "$AR"; then
5302 echo "$as_me:$LINENO: result: $AR" >&5
5303 echo "${ECHO_T}$AR" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6
5307 fi
5308
5309 fi
5310 if test -z "$ac_cv_prog_AR"; then
5311 ac_ct_AR=$AR
5312 # Extract the first word of "ar", so it can be a program name with args.
5313 set dummy ar; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 if test -n "$ac_ct_AR"; then
5320 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_ac_ct_AR="ar"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333 done
5334 done
5335
5336 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5337 fi
5338 fi
5339 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5340 if test -n "$ac_ct_AR"; then
5341 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5342 echo "${ECHO_T}$ac_ct_AR" >&6
5343 else
5344 echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5346 fi
5347
5348 AR=$ac_ct_AR
5349 else
5350 AR="$ac_cv_prog_AR"
5351 fi
5352
5353 test -z "$AR" && AR=ar
5354 test -z "$AR_FLAGS" && AR_FLAGS=cru
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366 if test -n "$ac_tool_prefix"; then
5367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5368 set dummy ${ac_tool_prefix}strip; ac_word=$2
5369 echo "$as_me:$LINENO: checking for $ac_word" >&5
5370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5371 if test "${ac_cv_prog_STRIP+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 if test -n "$STRIP"; then
5375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5387 fi
5388 done
5389 done
5390
5391 fi
5392 fi
5393 STRIP=$ac_cv_prog_STRIP
5394 if test -n "$STRIP"; then
5395 echo "$as_me:$LINENO: result: $STRIP" >&5
5396 echo "${ECHO_T}$STRIP" >&6
5397 else
5398 echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5400 fi
5401
5402 fi
5403 if test -z "$ac_cv_prog_STRIP"; then
5404 ac_ct_STRIP=$STRIP
5405 # Extract the first word of "strip", so it can be a program name with args.
5406 set dummy strip; ac_word=$2
5407 echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412 if test -n "$ac_ct_STRIP"; then
5413 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_ac_ct_STRIP="strip"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426 done
5427 done
5428
5429 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5430 fi
5431 fi
5432 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5433 if test -n "$ac_ct_STRIP"; then
5434 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5435 echo "${ECHO_T}$ac_ct_STRIP" >&6
5436 else
5437 echo "$as_me:$LINENO: result: no" >&5
5438 echo "${ECHO_T}no" >&6
5439 fi
5440
5441 STRIP=$ac_ct_STRIP
5442 else
5443 STRIP="$ac_cv_prog_STRIP"
5444 fi
5445
5446 test -z "$STRIP" && STRIP=:
5447
5448
5449
5450
5451
5452
5453 if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_prog_RANLIB+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461 if test -n "$RANLIB"; then
5462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475 done
5476 done
5477
5478 fi
5479 fi
5480 RANLIB=$ac_cv_prog_RANLIB
5481 if test -n "$RANLIB"; then
5482 echo "$as_me:$LINENO: result: $RANLIB" >&5
5483 echo "${ECHO_T}$RANLIB" >&6
5484 else
5485 echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6
5487 fi
5488
5489 fi
5490 if test -z "$ac_cv_prog_RANLIB"; then
5491 ac_ct_RANLIB=$RANLIB
5492 # Extract the first word of "ranlib", so it can be a program name with args.
5493 set dummy ranlib; ac_word=$2
5494 echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499 if test -n "$ac_ct_RANLIB"; then
5500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_ac_ct_RANLIB="ranlib"
5510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513 done
5514 done
5515
5516 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5517 fi
5518 fi
5519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5520 if test -n "$ac_ct_RANLIB"; then
5521 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5522 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5523 else
5524 echo "$as_me:$LINENO: result: no" >&5
5525 echo "${ECHO_T}no" >&6
5526 fi
5527
5528 RANLIB=$ac_ct_RANLIB
5529 else
5530 RANLIB="$ac_cv_prog_RANLIB"
5531 fi
5532
5533 test -z "$RANLIB" && RANLIB=:
5534
5535
5536
5537
5538
5539
5540 # Determine commands to create old-style static archives.
5541 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5542 old_postinstall_cmds='chmod 644 $oldlib'
5543 old_postuninstall_cmds=
5544
5545 if test -n "$RANLIB"; then
5546 case $host_os in
5547 openbsd*)
5548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5549 ;;
5550 *)
5551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5552 ;;
5553 esac
5554 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5555 fi
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590 # If no C compiler was specified, use CC.
5591 LTCC=${LTCC-"$CC"}
5592
5593 # If no C compiler flags were specified, use CFLAGS.
5594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5595
5596 # Allow CC to be a program name with arguments.
5597 compiler=$CC
5598
5599
5600 # Check for command to grab the raw symbol name followed by C symbol from nm.
5601 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5602 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5603 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606
5607 # These are sane defaults that work on at least a few old systems.
5608 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5609
5610 # Character class describing NM global symbol codes.
5611 symcode='[BCDEGRST]'
5612
5613 # Regexp to match symbols that can be accessed directly from C.
5614 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5615
5616 # Define system-specific variables.
5617 case $host_os in
5618 aix*)
5619 symcode='[BCDT]'
5620 ;;
5621 cygwin* | mingw* | pw32*)
5622 symcode='[ABCDGISTW]'
5623 ;;
5624 hpux*)
5625 if test "$host_cpu" = ia64; then
5626 symcode='[ABCDEGRST]'
5627 fi
5628 ;;
5629 irix* | nonstopux*)
5630 symcode='[BCDEGRST]'
5631 ;;
5632 osf*)
5633 symcode='[BCDEGQRST]'
5634 ;;
5635 solaris*)
5636 symcode='[BDRT]'
5637 ;;
5638 sco3.2v5*)
5639 symcode='[DT]'
5640 ;;
5641 sysv4.2uw2*)
5642 symcode='[DT]'
5643 ;;
5644 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5645 symcode='[ABDT]'
5646 ;;
5647 sysv4)
5648 symcode='[DFNSTU]'
5649 ;;
5650 esac
5651
5652 # If we're using GNU nm, then use its standard symbol codes.
5653 case `$NM -V 2>&1` in
5654 *GNU* | *'with BFD'*)
5655 symcode='[ABCDGIRSTW]' ;;
5656 esac
5657
5658 # Transform an extracted symbol line into a proper C declaration.
5659 # Some systems (esp. on ia64) link data and code symbols differently,
5660 # so use this general approach.
5661 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5662
5663 # Transform an extracted symbol line into symbol name and symbol address
5664 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5665
5666 # Handle CRLF in mingw tool chain
5667 opt_cr=
5668 case $build_os in
5669 mingw*)
5670 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5671 ;;
5672 esac
5673
5674 # Try without a prefix underscore, then with it.
5675 for ac_symprfx in "" "_"; do
5676
5677 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5678 symxfrm="\\1 $ac_symprfx\\2 \\2"
5679
5680 # Write the raw and C identifiers.
5681 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5682 # Fake it for dumpbin and say T for any non-static function
5683 # and D for any global variable.
5684 # Also find C++ and __fastcall symbols from MSVC++,
5685 # which start with @ or ?.
5686 lt_cv_sys_global_symbol_pipe="$AWK '"\
5687 " {last_section=section; section=\$ 3};"\
5688 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5689 " \$ 0!~/External *\|/{next};"\
5690 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5691 " {if(hide[section]) next};"\
5692 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5693 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5694 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5695 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5696 " ' prfx=^$ac_symprfx"
5697 else
5698 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5699 fi
5700
5701 # Check to see that the pipe works correctly.
5702 pipe_works=no
5703
5704 rm -f conftest*
5705 cat > conftest.$ac_ext <<_LT_EOF
5706 #ifdef __cplusplus
5707 extern "C" {
5708 #endif
5709 char nm_test_var;
5710 void nm_test_func(void);
5711 void nm_test_func(void){}
5712 #ifdef __cplusplus
5713 }
5714 #endif
5715 int main(){nm_test_var='a';nm_test_func();return(0);}
5716 _LT_EOF
5717
5718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5719 (eval $ac_compile) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; then
5723 # Now try to grab the symbols.
5724 nlist=conftest.nm
5725 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5726 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && test -s "$nlist"; then
5730 # Try sorting and uniquifying the output.
5731 if sort "$nlist" | uniq > "$nlist"T; then
5732 mv -f "$nlist"T "$nlist"
5733 else
5734 rm -f "$nlist"T
5735 fi
5736
5737 # Make sure that we snagged all the symbols we need.
5738 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5739 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5740 cat <<_LT_EOF > conftest.$ac_ext
5741 #ifdef __cplusplus
5742 extern "C" {
5743 #endif
5744
5745 _LT_EOF
5746 # Now generate the symbol file.
5747 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5748
5749 cat <<_LT_EOF >> conftest.$ac_ext
5750
5751 /* The mapping between symbol names and symbols. */
5752 const struct {
5753 const char *name;
5754 void *address;
5755 }
5756 lt__PROGRAM__LTX_preloaded_symbols[] =
5757 {
5758 { "@PROGRAM@", (void *) 0 },
5759 _LT_EOF
5760 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5761 cat <<\_LT_EOF >> conftest.$ac_ext
5762 {0, (void *) 0}
5763 };
5764
5765 /* This works around a problem in FreeBSD linker */
5766 #ifdef FREEBSD_WORKAROUND
5767 static const void *lt_preloaded_setup() {
5768 return lt__PROGRAM__LTX_preloaded_symbols;
5769 }
5770 #endif
5771
5772 #ifdef __cplusplus
5773 }
5774 #endif
5775 _LT_EOF
5776 # Now try linking the two files.
5777 mv conftest.$ac_objext conftstm.$ac_objext
5778 lt_save_LIBS="$LIBS"
5779 lt_save_CFLAGS="$CFLAGS"
5780 LIBS="conftstm.$ac_objext"
5781 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783 (eval $ac_link) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5787 pipe_works=yes
5788 fi
5789 LIBS="$lt_save_LIBS"
5790 CFLAGS="$lt_save_CFLAGS"
5791 else
5792 echo "cannot find nm_test_func in $nlist" >&5
5793 fi
5794 else
5795 echo "cannot find nm_test_var in $nlist" >&5
5796 fi
5797 else
5798 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5799 fi
5800 else
5801 echo "$progname: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5803 fi
5804 rm -f conftest* conftst*
5805
5806 # Do not use the global_symbol_pipe unless it works.
5807 if test "$pipe_works" = yes; then
5808 break
5809 else
5810 lt_cv_sys_global_symbol_pipe=
5811 fi
5812 done
5813
5814 fi
5815
5816 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5817 lt_cv_sys_global_symbol_to_cdecl=
5818 fi
5819 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5820 echo "$as_me:$LINENO: result: failed" >&5
5821 echo "${ECHO_T}failed" >&6
5822 else
5823 echo "$as_me:$LINENO: result: ok" >&5
5824 echo "${ECHO_T}ok" >&6
5825 fi
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5844 if test "${enable_libtool_lock+set}" = set; then
5845 enableval="$enable_libtool_lock"
5846
5847 fi;
5848 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5849
5850 # Some flags need to be propagated to the compiler or linker for good
5851 # libtool support.
5852 case $host in
5853 ia64-*-hpux*)
5854 # Find out which ABI we are using.
5855 echo 'int i;' > conftest.$ac_ext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; then
5861 case `/usr/bin/file conftest.$ac_objext` in
5862 *ELF-32*)
5863 HPUX_IA64_MODE="32"
5864 ;;
5865 *ELF-64*)
5866 HPUX_IA64_MODE="64"
5867 ;;
5868 esac
5869 fi
5870 rm -rf conftest*
5871 ;;
5872 *-*-irix6*)
5873 # Find out which ABI we are using.
5874 echo '#line 5874 "configure"' > conftest.$ac_ext
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; then
5880 if test "$lt_cv_prog_gnu_ld" = yes; then
5881 case `/usr/bin/file conftest.$ac_objext` in
5882 *32-bit*)
5883 LD="${LD-ld} -melf32bsmip"
5884 ;;
5885 *N32*)
5886 LD="${LD-ld} -melf32bmipn32"
5887 ;;
5888 *64-bit*)
5889 LD="${LD-ld} -melf64bmip"
5890 ;;
5891 esac
5892 else
5893 case `/usr/bin/file conftest.$ac_objext` in
5894 *32-bit*)
5895 LD="${LD-ld} -32"
5896 ;;
5897 *N32*)
5898 LD="${LD-ld} -n32"
5899 ;;
5900 *64-bit*)
5901 LD="${LD-ld} -64"
5902 ;;
5903 esac
5904 fi
5905 fi
5906 rm -rf conftest*
5907 ;;
5908
5909 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5910 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5911 # Find out which ABI we are using.
5912 echo 'int i;' > conftest.$ac_ext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914 (eval $ac_compile) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; then
5918 case `/usr/bin/file conftest.o` in
5919 *32-bit*)
5920 case $host in
5921 x86_64-*kfreebsd*-gnu)
5922 LD="${LD-ld} -m elf_i386_fbsd"
5923 ;;
5924 x86_64-*linux*)
5925 LD="${LD-ld} -m elf_i386"
5926 ;;
5927 ppc64-*linux*|powerpc64-*linux*)
5928 LD="${LD-ld} -m elf32ppclinux"
5929 ;;
5930 s390x-*linux*)
5931 LD="${LD-ld} -m elf_s390"
5932 ;;
5933 sparc64-*linux*)
5934 LD="${LD-ld} -m elf32_sparc"
5935 ;;
5936 esac
5937 ;;
5938 *64-bit*)
5939 case $host in
5940 x86_64-*kfreebsd*-gnu)
5941 LD="${LD-ld} -m elf_x86_64_fbsd"
5942 ;;
5943 x86_64-*linux*)
5944 LD="${LD-ld} -m elf_x86_64"
5945 ;;
5946 ppc*-*linux*|powerpc*-*linux*)
5947 LD="${LD-ld} -m elf64ppc"
5948 ;;
5949 s390*-*linux*|s390*-*tpf*)
5950 LD="${LD-ld} -m elf64_s390"
5951 ;;
5952 sparc*-*linux*)
5953 LD="${LD-ld} -m elf64_sparc"
5954 ;;
5955 esac
5956 ;;
5957 esac
5958 fi
5959 rm -rf conftest*
5960 ;;
5961
5962 *-*-sco3.2v5*)
5963 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5964 SAVE_CFLAGS="$CFLAGS"
5965 CFLAGS="$CFLAGS -belf"
5966 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5967 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5968 if test "${lt_cv_cc_needs_belf+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971 ac_ext=c
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983
5984 int
5985 main ()
5986 {
5987
5988 ;
5989 return 0;
5990 }
5991 _ACEOF
5992 rm -f conftest.$ac_objext conftest$ac_exeext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5994 (eval $ac_link) 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; } &&
6007 { ac_try='test -s conftest$ac_exeext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 lt_cv_cc_needs_belf=yes
6014 else
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 lt_cv_cc_needs_belf=no
6019 fi
6020 rm -f conftest.err conftest.$ac_objext \
6021 conftest$ac_exeext conftest.$ac_ext
6022 ac_ext=c
6023 ac_cpp='$CPP $CPPFLAGS'
6024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6027
6028 fi
6029 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6030 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6031 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6032 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6033 CFLAGS="$SAVE_CFLAGS"
6034 fi
6035 ;;
6036 sparc*-*solaris*)
6037 # Find out which ABI we are using.
6038 echo 'int i;' > conftest.$ac_ext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; then
6044 case `/usr/bin/file conftest.o` in
6045 *64-bit*)
6046 case $lt_cv_prog_gnu_ld in
6047 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6048 *) LD="${LD-ld} -64" ;;
6049 esac
6050 ;;
6051 esac
6052 fi
6053 rm -rf conftest*
6054 ;;
6055 esac
6056
6057 need_locks="$enable_libtool_lock"
6058
6059 ac_ext=c
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6065 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6066 # On Suns, sometimes $CPP names a directory.
6067 if test -n "$CPP" && test -d "$CPP"; then
6068 CPP=
6069 fi
6070 if test -z "$CPP"; then
6071 if test "${ac_cv_prog_CPP+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074 # Double quotes because CPP needs to be expanded
6075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6076 do
6077 ac_preproc_ok=false
6078 for ac_c_preproc_warn_flag in '' yes
6079 do
6080 # Use a header file that comes with gcc, so configuring glibc
6081 # with a fresh cross-compiler works.
6082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083 # <limits.h> exists even on freestanding compilers.
6084 # On the NeXT, cc -E runs the code through the compiler's parser,
6085 # not just through cpp. "Syntax error" is here to catch this case.
6086 cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h. */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #ifdef __STDC__
6093 # include <limits.h>
6094 #else
6095 # include <assert.h>
6096 #endif
6097 Syntax error
6098 _ACEOF
6099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } >/dev/null; then
6107 if test -s conftest.err; then
6108 ac_cpp_err=$ac_c_preproc_warn_flag
6109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6110 else
6111 ac_cpp_err=
6112 fi
6113 else
6114 ac_cpp_err=yes
6115 fi
6116 if test -z "$ac_cpp_err"; then
6117 :
6118 else
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122 # Broken: fails on valid input.
6123 continue
6124 fi
6125 rm -f conftest.err conftest.$ac_ext
6126
6127 # OK, works on sane cases. Now check whether non-existent headers
6128 # can be detected and how.
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 #include <ac_nonexistent.h>
6136 _ACEOF
6137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } >/dev/null; then
6145 if test -s conftest.err; then
6146 ac_cpp_err=$ac_c_preproc_warn_flag
6147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6148 else
6149 ac_cpp_err=
6150 fi
6151 else
6152 ac_cpp_err=yes
6153 fi
6154 if test -z "$ac_cpp_err"; then
6155 # Broken: success on invalid input.
6156 continue
6157 else
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 # Passes both tests.
6162 ac_preproc_ok=:
6163 break
6164 fi
6165 rm -f conftest.err conftest.$ac_ext
6166
6167 done
6168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6169 rm -f conftest.err conftest.$ac_ext
6170 if $ac_preproc_ok; then
6171 break
6172 fi
6173
6174 done
6175 ac_cv_prog_CPP=$CPP
6176
6177 fi
6178 CPP=$ac_cv_prog_CPP
6179 else
6180 ac_cv_prog_CPP=$CPP
6181 fi
6182 echo "$as_me:$LINENO: result: $CPP" >&5
6183 echo "${ECHO_T}$CPP" >&6
6184 ac_preproc_ok=false
6185 for ac_c_preproc_warn_flag in '' yes
6186 do
6187 # Use a header file that comes with gcc, so configuring glibc
6188 # with a fresh cross-compiler works.
6189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6190 # <limits.h> exists even on freestanding compilers.
6191 # On the NeXT, cc -E runs the code through the compiler's parser,
6192 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
6200 # include <limits.h>
6201 #else
6202 # include <assert.h>
6203 #endif
6204 Syntax error
6205 _ACEOF
6206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } >/dev/null; then
6214 if test -s conftest.err; then
6215 ac_cpp_err=$ac_c_preproc_warn_flag
6216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6217 else
6218 ac_cpp_err=
6219 fi
6220 else
6221 ac_cpp_err=yes
6222 fi
6223 if test -z "$ac_cpp_err"; then
6224 :
6225 else
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 # Broken: fails on valid input.
6230 continue
6231 fi
6232 rm -f conftest.err conftest.$ac_ext
6233
6234 # OK, works on sane cases. Now check whether non-existent headers
6235 # can be detected and how.
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 #include <ac_nonexistent.h>
6243 _ACEOF
6244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } >/dev/null; then
6252 if test -s conftest.err; then
6253 ac_cpp_err=$ac_c_preproc_warn_flag
6254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6255 else
6256 ac_cpp_err=
6257 fi
6258 else
6259 ac_cpp_err=yes
6260 fi
6261 if test -z "$ac_cpp_err"; then
6262 # Broken: success on invalid input.
6263 continue
6264 else
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6267
6268 # Passes both tests.
6269 ac_preproc_ok=:
6270 break
6271 fi
6272 rm -f conftest.err conftest.$ac_ext
6273
6274 done
6275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6276 rm -f conftest.err conftest.$ac_ext
6277 if $ac_preproc_ok; then
6278 :
6279 else
6280 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6281 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6282 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6283 See \`config.log' for more details." >&5
6284 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6285 See \`config.log' for more details." >&2;}
6286 { (exit 1); exit 1; }; }; }
6287 fi
6288
6289 ac_ext=c
6290 ac_cpp='$CPP $CPPFLAGS'
6291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6294
6295
6296 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6297 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6298 if test "${ac_cv_header_stdc+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301 cat >conftest.$ac_ext <<_ACEOF
6302 /* confdefs.h. */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 #include <stdlib.h>
6308 #include <stdarg.h>
6309 #include <string.h>
6310 #include <float.h>
6311
6312 int
6313 main ()
6314 {
6315
6316 ;
6317 return 0;
6318 }
6319 _ACEOF
6320 rm -f conftest.$ac_objext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322 (eval $ac_compile) 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_header_stdc=yes
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346 ac_cv_header_stdc=no
6347 fi
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6349
6350 if test $ac_cv_header_stdc = yes; then
6351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6352 cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h. */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 #include <string.h>
6359
6360 _ACEOF
6361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6362 $EGREP "memchr" >/dev/null 2>&1; then
6363 :
6364 else
6365 ac_cv_header_stdc=no
6366 fi
6367 rm -f conftest*
6368
6369 fi
6370
6371 if test $ac_cv_header_stdc = yes; then
6372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 #include <stdlib.h>
6380
6381 _ACEOF
6382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6383 $EGREP "free" >/dev/null 2>&1; then
6384 :
6385 else
6386 ac_cv_header_stdc=no
6387 fi
6388 rm -f conftest*
6389
6390 fi
6391
6392 if test $ac_cv_header_stdc = yes; then
6393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6394 if test "$cross_compiling" = yes; then
6395 :
6396 else
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 #include <ctype.h>
6404 #if ((' ' & 0x0FF) == 0x020)
6405 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6406 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6407 #else
6408 # define ISLOWER(c) \
6409 (('a' <= (c) && (c) <= 'i') \
6410 || ('j' <= (c) && (c) <= 'r') \
6411 || ('s' <= (c) && (c) <= 'z'))
6412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6413 #endif
6414
6415 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6416 int
6417 main ()
6418 {
6419 int i;
6420 for (i = 0; i < 256; i++)
6421 if (XOR (islower (i), ISLOWER (i))
6422 || toupper (i) != TOUPPER (i))
6423 exit(2);
6424 exit (0);
6425 }
6426 _ACEOF
6427 rm -f conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 :
6439 else
6440 echo "$as_me: program exited with status $ac_status" >&5
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 ( exit $ac_status )
6445 ac_cv_header_stdc=no
6446 fi
6447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6448 fi
6449 fi
6450 fi
6451 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6452 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6453 if test $ac_cv_header_stdc = yes; then
6454
6455 cat >>confdefs.h <<\_ACEOF
6456 #define STDC_HEADERS 1
6457 _ACEOF
6458
6459 fi
6460
6461 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6472 inttypes.h stdint.h unistd.h
6473 do
6474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6475 echo "$as_me:$LINENO: checking for $ac_header" >&5
6476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h. */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 $ac_includes_default
6487
6488 #include <$ac_header>
6489 _ACEOF
6490 rm -f conftest.$ac_objext
6491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492 (eval $ac_compile) 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
6499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 eval "$as_ac_Header=yes"
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 eval "$as_ac_Header=no"
6517 fi
6518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6519 fi
6520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6523 cat >>confdefs.h <<_ACEOF
6524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6525 _ACEOF
6526
6527 fi
6528
6529 done
6530
6531
6532
6533 for ac_header in dlfcn.h
6534 do
6535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6536 echo "$as_me:$LINENO: checking for $ac_header" >&5
6537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541 cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h. */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 $ac_includes_default
6548
6549 #include <$ac_header>
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6553 (eval $ac_compile) 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 eval "$as_ac_Header=yes"
6573 else
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 eval "$as_ac_Header=no"
6578 fi
6579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580 fi
6581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6584 cat >>confdefs.h <<_ACEOF
6585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6586 _ACEOF
6587
6588 fi
6589
6590 done
6591
6592
6593
6594 # This can be used to rebuild libtool when needed
6595 LIBTOOL_DEPS="$ltmain"
6596
6597 # Always use our own libtool.
6598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624 test -z "$LN_S" && LN_S="ln -s"
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639 if test -n "${ZSH_VERSION+set}" ; then
6640 setopt NO_GLOB_SUBST
6641 fi
6642
6643 echo "$as_me:$LINENO: checking for objdir" >&5
6644 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6645 if test "${lt_cv_objdir+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648 rm -f .libs 2>/dev/null
6649 mkdir .libs 2>/dev/null
6650 if test -d .libs; then
6651 lt_cv_objdir=.libs
6652 else
6653 # MS-DOS does not allow filenames that begin with a dot.
6654 lt_cv_objdir=_libs
6655 fi
6656 rmdir .libs 2>/dev/null
6657 fi
6658 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6659 echo "${ECHO_T}$lt_cv_objdir" >&6
6660 objdir=$lt_cv_objdir
6661
6662
6663
6664
6665
6666 cat >>confdefs.h <<_ACEOF
6667 #define LT_OBJDIR "$lt_cv_objdir/"
6668 _ACEOF
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686 case $host_os in
6687 aix3*)
6688 # AIX sometimes has problems with the GCC collect2 program. For some
6689 # reason, if we set the COLLECT_NAMES environment variable, the problems
6690 # vanish in a puff of smoke.
6691 if test "X${COLLECT_NAMES+set}" != Xset; then
6692 COLLECT_NAMES=
6693 export COLLECT_NAMES
6694 fi
6695 ;;
6696 esac
6697
6698 # Sed substitution that helps us do robust quoting. It backslashifies
6699 # metacharacters that are still active within double-quoted strings.
6700 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6701
6702 # Same as above, but do not quote variable references.
6703 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6704
6705 # Sed substitution to delay expansion of an escaped shell variable in a
6706 # double_quote_subst'ed string.
6707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6708
6709 # Sed substitution to delay expansion of an escaped single quote.
6710 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6711
6712 # Sed substitution to avoid accidental globbing in evaled expressions
6713 no_glob_subst='s/\*/\\\*/g'
6714
6715 # Global variables:
6716 ofile=libtool
6717 can_build_shared=yes
6718
6719 # All known linkers require a `.a' archive for static linking (except MSVC,
6720 # which needs '.lib').
6721 libext=a
6722
6723 with_gnu_ld="$lt_cv_prog_gnu_ld"
6724
6725 old_CC="$CC"
6726 old_CFLAGS="$CFLAGS"
6727
6728 # Set sane defaults for various variables
6729 test -z "$CC" && CC=cc
6730 test -z "$LTCC" && LTCC=$CC
6731 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6732 test -z "$LD" && LD=ld
6733 test -z "$ac_objext" && ac_objext=o
6734
6735 for cc_temp in $compiler""; do
6736 case $cc_temp in
6737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6739 \-*) ;;
6740 *) break;;
6741 esac
6742 done
6743 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6744
6745
6746 # Only perform the check for file, if the check method requires it
6747 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6748 case $deplibs_check_method in
6749 file_magic*)
6750 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6751 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6752 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6753 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 case $MAGIC_CMD in
6757 [\\/*] | ?:[\\/]*)
6758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6759 ;;
6760 *)
6761 lt_save_MAGIC_CMD="$MAGIC_CMD"
6762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6764 for ac_dir in $ac_dummy; do
6765 IFS="$lt_save_ifs"
6766 test -z "$ac_dir" && ac_dir=.
6767 if test -f $ac_dir/${ac_tool_prefix}file; then
6768 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6769 if test -n "$file_magic_test_file"; then
6770 case $deplibs_check_method in
6771 "file_magic "*)
6772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6775 $EGREP "$file_magic_regex" > /dev/null; then
6776 :
6777 else
6778 cat <<_LT_EOF 1>&2
6779
6780 *** Warning: the command libtool uses to detect shared libraries,
6781 *** $file_magic_cmd, produces output that libtool cannot recognize.
6782 *** The result is that libtool may fail to recognize shared libraries
6783 *** as such. This will affect the creation of libtool libraries that
6784 *** depend on shared libraries, but programs linked with such libtool
6785 *** libraries will work regardless of this problem. Nevertheless, you
6786 *** may want to report the problem to your system manager and/or to
6787 *** bug-libtool@gnu.org
6788
6789 _LT_EOF
6790 fi ;;
6791 esac
6792 fi
6793 break
6794 fi
6795 done
6796 IFS="$lt_save_ifs"
6797 MAGIC_CMD="$lt_save_MAGIC_CMD"
6798 ;;
6799 esac
6800 fi
6801
6802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6803 if test -n "$MAGIC_CMD"; then
6804 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6805 echo "${ECHO_T}$MAGIC_CMD" >&6
6806 else
6807 echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6
6809 fi
6810
6811
6812
6813
6814
6815 if test -z "$lt_cv_path_MAGIC_CMD"; then
6816 if test -n "$ac_tool_prefix"; then
6817 echo "$as_me:$LINENO: checking for file" >&5
6818 echo $ECHO_N "checking for file... $ECHO_C" >&6
6819 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 case $MAGIC_CMD in
6823 [\\/*] | ?:[\\/]*)
6824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6825 ;;
6826 *)
6827 lt_save_MAGIC_CMD="$MAGIC_CMD"
6828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6830 for ac_dir in $ac_dummy; do
6831 IFS="$lt_save_ifs"
6832 test -z "$ac_dir" && ac_dir=.
6833 if test -f $ac_dir/file; then
6834 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6835 if test -n "$file_magic_test_file"; then
6836 case $deplibs_check_method in
6837 "file_magic "*)
6838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6841 $EGREP "$file_magic_regex" > /dev/null; then
6842 :
6843 else
6844 cat <<_LT_EOF 1>&2
6845
6846 *** Warning: the command libtool uses to detect shared libraries,
6847 *** $file_magic_cmd, produces output that libtool cannot recognize.
6848 *** The result is that libtool may fail to recognize shared libraries
6849 *** as such. This will affect the creation of libtool libraries that
6850 *** depend on shared libraries, but programs linked with such libtool
6851 *** libraries will work regardless of this problem. Nevertheless, you
6852 *** may want to report the problem to your system manager and/or to
6853 *** bug-libtool@gnu.org
6854
6855 _LT_EOF
6856 fi ;;
6857 esac
6858 fi
6859 break
6860 fi
6861 done
6862 IFS="$lt_save_ifs"
6863 MAGIC_CMD="$lt_save_MAGIC_CMD"
6864 ;;
6865 esac
6866 fi
6867
6868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6869 if test -n "$MAGIC_CMD"; then
6870 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6871 echo "${ECHO_T}$MAGIC_CMD" >&6
6872 else
6873 echo "$as_me:$LINENO: result: no" >&5
6874 echo "${ECHO_T}no" >&6
6875 fi
6876
6877
6878 else
6879 MAGIC_CMD=:
6880 fi
6881 fi
6882
6883 fi
6884 ;;
6885 esac
6886
6887 # Use C for the default configuration in the libtool script
6888
6889 lt_save_CC="$CC"
6890 ac_ext=c
6891 ac_cpp='$CPP $CPPFLAGS'
6892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6895
6896
6897 # Source file extension for C test sources.
6898 ac_ext=c
6899
6900 # Object file extension for compiled C test sources.
6901 objext=o
6902 objext=$objext
6903
6904 # Code to be used in simple compile tests
6905 lt_simple_compile_test_code="int some_variable = 0;"
6906
6907 # Code to be used in simple link tests
6908 lt_simple_link_test_code='int main(){return(0);}'
6909
6910
6911
6912
6913
6914
6915
6916 # If no C compiler was specified, use CC.
6917 LTCC=${LTCC-"$CC"}
6918
6919 # If no C compiler flags were specified, use CFLAGS.
6920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6921
6922 # Allow CC to be a program name with arguments.
6923 compiler=$CC
6924
6925 # Save the default compiler, since it gets overwritten when the other
6926 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6927 compiler_DEFAULT=$CC
6928
6929 # save warnings/boilerplate of simple test code
6930 ac_outfile=conftest.$ac_objext
6931 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6932 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6933 _lt_compiler_boilerplate=`cat conftest.err`
6934 $RM conftest*
6935
6936 ac_outfile=conftest.$ac_objext
6937 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6938 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6939 _lt_linker_boilerplate=`cat conftest.err`
6940 $RM conftest*
6941
6942
6943 ## CAVEAT EMPTOR:
6944 ## There is no encapsulation within the following macros, do not change
6945 ## the running order or otherwise move them around unless you know exactly
6946 ## what you are doing...
6947 if test -n "$compiler"; then
6948
6949 lt_prog_compiler_no_builtin_flag=
6950
6951 if test "$GCC" = yes; then
6952 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6953
6954 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6955 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6956 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959 lt_cv_prog_compiler_rtti_exceptions=no
6960 ac_outfile=conftest.$ac_objext
6961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6962 lt_compiler_flag="-fno-rtti -fno-exceptions"
6963 # Insert the option either (1) after the last *FLAGS variable, or
6964 # (2) before a word containing "conftest.", or (3) at the end.
6965 # Note that $ac_compile itself does not contain backslashes and begins
6966 # with a dollar sign (not a hyphen), so the echo should work correctly.
6967 # The option is referenced via a variable to avoid confusing sed.
6968 lt_compile=`echo "$ac_compile" | $SED \
6969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6971 -e 's:$: $lt_compiler_flag:'`
6972 (eval echo "\"\$as_me:6972: $lt_compile\"" >&5)
6973 (eval "$lt_compile" 2>conftest.err)
6974 ac_status=$?
6975 cat conftest.err >&5
6976 echo "$as_me:6976: \$? = $ac_status" >&5
6977 if (exit $ac_status) && test -s "$ac_outfile"; then
6978 # The compiler can only warn and ignore the option if not recognized
6979 # So say no if there are warnings other than the usual output.
6980 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6983 lt_cv_prog_compiler_rtti_exceptions=yes
6984 fi
6985 fi
6986 $RM conftest*
6987
6988 fi
6989 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6990 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6991
6992 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6993 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6994 else
6995 :
6996 fi
6997
6998 fi
6999
7000
7001
7002
7003
7004
7005 lt_prog_compiler_wl=
7006 lt_prog_compiler_pic=
7007 lt_prog_compiler_static=
7008
7009 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7010 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7011
7012 if test "$GCC" = yes; then
7013 lt_prog_compiler_wl='-Wl,'
7014 lt_prog_compiler_static='-static'
7015
7016 case $host_os in
7017 aix*)
7018 # All AIX code is PIC.
7019 if test "$host_cpu" = ia64; then
7020 # AIX 5 now supports IA64 processor
7021 lt_prog_compiler_static='-Bstatic'
7022 fi
7023 ;;
7024
7025 amigaos*)
7026 if test "$host_cpu" = m68k; then
7027 # FIXME: we need at least 68020 code to build shared libraries, but
7028 # adding the `-m68020' flag to GCC prevents building anything better,
7029 # like `-m68040'.
7030 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7031 fi
7032 ;;
7033
7034 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7035 # PIC is the default for these OSes.
7036 ;;
7037
7038 mingw* | cygwin* | pw32* | os2*)
7039 # This hack is so that the source file can tell whether it is being
7040 # built for inclusion in a dll (and should export symbols for example).
7041 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7042 # (--disable-auto-import) libraries
7043 lt_prog_compiler_pic='-DDLL_EXPORT'
7044 ;;
7045
7046 darwin* | rhapsody*)
7047 # PIC is the default on this platform
7048 # Common symbols not allowed in MH_DYLIB files
7049 lt_prog_compiler_pic='-fno-common'
7050 ;;
7051
7052 hpux*)
7053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7054 # not for PA HP-UX.
7055 case $host_cpu in
7056 hppa*64*|ia64*)
7057 # +Z the default
7058 ;;
7059 *)
7060 lt_prog_compiler_pic='-fPIC'
7061 ;;
7062 esac
7063 ;;
7064
7065 interix[3-9]*)
7066 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7067 # Instead, we relocate shared libraries at runtime.
7068 ;;
7069
7070 msdosdjgpp*)
7071 # Just because we use GCC doesn't mean we suddenly get shared libraries
7072 # on systems that don't support them.
7073 lt_prog_compiler_can_build_shared=no
7074 enable_shared=no
7075 ;;
7076
7077 *nto* | *qnx*)
7078 # QNX uses GNU C++, but need to define -shared option too, otherwise
7079 # it will coredump.
7080 lt_prog_compiler_pic='-fPIC -shared'
7081 ;;
7082
7083 sysv4*MP*)
7084 if test -d /usr/nec; then
7085 lt_prog_compiler_pic=-Kconform_pic
7086 fi
7087 ;;
7088
7089 *)
7090 lt_prog_compiler_pic='-fPIC'
7091 ;;
7092 esac
7093 else
7094 # PORTME Check for flag to pass linker flags through the system compiler.
7095 case $host_os in
7096 aix*)
7097 lt_prog_compiler_wl='-Wl,'
7098 if test "$host_cpu" = ia64; then
7099 # AIX 5 now supports IA64 processor
7100 lt_prog_compiler_static='-Bstatic'
7101 else
7102 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7103 fi
7104 ;;
7105 darwin*)
7106 # PIC is the default on this platform
7107 # Common symbols not allowed in MH_DYLIB files
7108 case $cc_basename in
7109 xlc*)
7110 lt_prog_compiler_pic='-qnocommon'
7111 lt_prog_compiler_wl='-Wl,'
7112 ;;
7113 esac
7114 ;;
7115
7116 mingw* | cygwin* | pw32* | os2*)
7117 # This hack is so that the source file can tell whether it is being
7118 # built for inclusion in a dll (and should export symbols for example).
7119 lt_prog_compiler_pic='-DDLL_EXPORT'
7120 ;;
7121
7122 hpux9* | hpux10* | hpux11*)
7123 lt_prog_compiler_wl='-Wl,'
7124 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7125 # not for PA HP-UX.
7126 case $host_cpu in
7127 hppa*64*|ia64*)
7128 # +Z the default
7129 ;;
7130 *)
7131 lt_prog_compiler_pic='+Z'
7132 ;;
7133 esac
7134 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7135 lt_prog_compiler_static='${wl}-a ${wl}archive'
7136 ;;
7137
7138 irix5* | irix6* | nonstopux*)
7139 lt_prog_compiler_wl='-Wl,'
7140 # PIC (with -KPIC) is the default.
7141 lt_prog_compiler_static='-non_shared'
7142 ;;
7143
7144 linux* | k*bsd*-gnu)
7145 case $cc_basename in
7146 icc* | ecc*)
7147 lt_prog_compiler_wl='-Wl,'
7148 lt_prog_compiler_pic='-KPIC'
7149 lt_prog_compiler_static='-static'
7150 ;;
7151 pgcc* | pgf77* | pgf90* | pgf95*)
7152 # Portland Group compilers (*not* the Pentium gcc compiler,
7153 # which looks to be a dead project)
7154 lt_prog_compiler_wl='-Wl,'
7155 lt_prog_compiler_pic='-fpic'
7156 lt_prog_compiler_static='-Bstatic'
7157 ;;
7158 ccc*)
7159 lt_prog_compiler_wl='-Wl,'
7160 # All Alpha code is PIC.
7161 lt_prog_compiler_static='-non_shared'
7162 ;;
7163 *)
7164 case `$CC -V 2>&1 | sed 5q` in
7165 *Sun\ C*)
7166 # Sun C 5.9
7167 lt_prog_compiler_pic='-KPIC'
7168 lt_prog_compiler_static='-Bstatic'
7169 lt_prog_compiler_wl='-Wl,'
7170 ;;
7171 *Sun\ F*)
7172 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7173 lt_prog_compiler_pic='-KPIC'
7174 lt_prog_compiler_static='-Bstatic'
7175 lt_prog_compiler_wl=''
7176 ;;
7177 esac
7178 ;;
7179 esac
7180 ;;
7181
7182 newsos6)
7183 lt_prog_compiler_pic='-KPIC'
7184 lt_prog_compiler_static='-Bstatic'
7185 ;;
7186
7187 *nto* | *qnx*)
7188 # QNX uses GNU C++, but need to define -shared option too, otherwise
7189 # it will coredump.
7190 lt_prog_compiler_pic='-fPIC -shared'
7191 ;;
7192
7193 osf3* | osf4* | osf5*)
7194 lt_prog_compiler_wl='-Wl,'
7195 # All OSF/1 code is PIC.
7196 lt_prog_compiler_static='-non_shared'
7197 ;;
7198
7199 rdos*)
7200 lt_prog_compiler_static='-non_shared'
7201 ;;
7202
7203 solaris*)
7204 lt_prog_compiler_pic='-KPIC'
7205 lt_prog_compiler_static='-Bstatic'
7206 case $cc_basename in
7207 f77* | f90* | f95*)
7208 lt_prog_compiler_wl='-Qoption ld ';;
7209 *)
7210 lt_prog_compiler_wl='-Wl,';;
7211 esac
7212 ;;
7213
7214 sunos4*)
7215 lt_prog_compiler_wl='-Qoption ld '
7216 lt_prog_compiler_pic='-PIC'
7217 lt_prog_compiler_static='-Bstatic'
7218 ;;
7219
7220 sysv4 | sysv4.2uw2* | sysv4.3*)
7221 lt_prog_compiler_wl='-Wl,'
7222 lt_prog_compiler_pic='-KPIC'
7223 lt_prog_compiler_static='-Bstatic'
7224 ;;
7225
7226 sysv4*MP*)
7227 if test -d /usr/nec ;then
7228 lt_prog_compiler_pic='-Kconform_pic'
7229 lt_prog_compiler_static='-Bstatic'
7230 fi
7231 ;;
7232
7233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7234 lt_prog_compiler_wl='-Wl,'
7235 lt_prog_compiler_pic='-KPIC'
7236 lt_prog_compiler_static='-Bstatic'
7237 ;;
7238
7239 unicos*)
7240 lt_prog_compiler_wl='-Wl,'
7241 lt_prog_compiler_can_build_shared=no
7242 ;;
7243
7244 uts4*)
7245 lt_prog_compiler_pic='-pic'
7246 lt_prog_compiler_static='-Bstatic'
7247 ;;
7248
7249 *)
7250 lt_prog_compiler_can_build_shared=no
7251 ;;
7252 esac
7253 fi
7254
7255 case $host_os in
7256 # For platforms which do not support PIC, -DPIC is meaningless:
7257 *djgpp*)
7258 lt_prog_compiler_pic=
7259 ;;
7260 *)
7261 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7262 ;;
7263 esac
7264 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7265 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7266
7267
7268
7269
7270
7271
7272 #
7273 # Check to make sure the PIC flag actually works.
7274 #
7275 if test -n "$lt_prog_compiler_pic"; then
7276 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7277 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7278 if test "${lt_prog_compiler_pic_works+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281 lt_prog_compiler_pic_works=no
7282 ac_outfile=conftest.$ac_objext
7283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7284 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7285 # Insert the option either (1) after the last *FLAGS variable, or
7286 # (2) before a word containing "conftest.", or (3) at the end.
7287 # Note that $ac_compile itself does not contain backslashes and begins
7288 # with a dollar sign (not a hyphen), so the echo should work correctly.
7289 # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
7296 ac_status=$?
7297 cat conftest.err >&5
7298 echo "$as_me:7298: \$? = $ac_status" >&5
7299 if (exit $ac_status) && test -s "$ac_outfile"; then
7300 # The compiler can only warn and ignore the option if not recognized
7301 # So say no if there are warnings other than the usual output.
7302 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7305 lt_prog_compiler_pic_works=yes
7306 fi
7307 fi
7308 $RM conftest*
7309
7310 fi
7311 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7312 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7313
7314 if test x"$lt_prog_compiler_pic_works" = xyes; then
7315 case $lt_prog_compiler_pic in
7316 "" | " "*) ;;
7317 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7318 esac
7319 else
7320 lt_prog_compiler_pic=
7321 lt_prog_compiler_can_build_shared=no
7322 fi
7323
7324 fi
7325
7326
7327
7328
7329
7330
7331 #
7332 # Check to make sure the static flag actually works.
7333 #
7334 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7335 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7336 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7337 if test "${lt_prog_compiler_static_works+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 lt_prog_compiler_static_works=no
7341 save_LDFLAGS="$LDFLAGS"
7342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7345 # The linker can only warn and ignore the option if not recognized
7346 # So say no if there are warnings
7347 if test -s conftest.err; then
7348 # Append any errors to the config.log.
7349 cat conftest.err 1>&5
7350 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7352 if diff conftest.exp conftest.er2 >/dev/null; then
7353 lt_prog_compiler_static_works=yes
7354 fi
7355 else
7356 lt_prog_compiler_static_works=yes
7357 fi
7358 fi
7359 $RM conftest*
7360 LDFLAGS="$save_LDFLAGS"
7361
7362 fi
7363 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7364 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7365
7366 if test x"$lt_prog_compiler_static_works" = xyes; then
7367 :
7368 else
7369 lt_prog_compiler_static=
7370 fi
7371
7372
7373
7374
7375
7376
7377
7378 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7379 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7380 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 lt_cv_prog_compiler_c_o=no
7384 $RM -r conftest 2>/dev/null
7385 mkdir conftest
7386 cd conftest
7387 mkdir out
7388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7389
7390 lt_compiler_flag="-o out/conftest2.$ac_objext"
7391 # Insert the option either (1) after the last *FLAGS variable, or
7392 # (2) before a word containing "conftest.", or (3) at the end.
7393 # Note that $ac_compile itself does not contain backslashes and begins
7394 # with a dollar sign (not a hyphen), so the echo should work correctly.
7395 lt_compile=`echo "$ac_compile" | $SED \
7396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7398 -e 's:$: $lt_compiler_flag:'`
7399 (eval echo "\"\$as_me:7399: $lt_compile\"" >&5)
7400 (eval "$lt_compile" 2>out/conftest.err)
7401 ac_status=$?
7402 cat out/conftest.err >&5
7403 echo "$as_me:7403: \$? = $ac_status" >&5
7404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7405 then
7406 # The compiler can only warn and ignore the option if not recognized
7407 # So say no if there are warnings
7408 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7411 lt_cv_prog_compiler_c_o=yes
7412 fi
7413 fi
7414 chmod u+w . 2>&5
7415 $RM conftest*
7416 # SGI C++ compiler will create directory out/ii_files/ for
7417 # template instantiation
7418 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7419 $RM out/* && rmdir out
7420 cd ..
7421 $RM -r conftest
7422 $RM conftest*
7423
7424 fi
7425 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7426 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7427
7428
7429
7430
7431
7432
7433 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7434 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7435 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 lt_cv_prog_compiler_c_o=no
7439 $RM -r conftest 2>/dev/null
7440 mkdir conftest
7441 cd conftest
7442 mkdir out
7443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7444
7445 lt_compiler_flag="-o out/conftest2.$ac_objext"
7446 # Insert the option either (1) after the last *FLAGS variable, or
7447 # (2) before a word containing "conftest.", or (3) at the end.
7448 # Note that $ac_compile itself does not contain backslashes and begins
7449 # with a dollar sign (not a hyphen), so the echo should work correctly.
7450 lt_compile=`echo "$ac_compile" | $SED \
7451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7453 -e 's:$: $lt_compiler_flag:'`
7454 (eval echo "\"\$as_me:7454: $lt_compile\"" >&5)
7455 (eval "$lt_compile" 2>out/conftest.err)
7456 ac_status=$?
7457 cat out/conftest.err >&5
7458 echo "$as_me:7458: \$? = $ac_status" >&5
7459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7460 then
7461 # The compiler can only warn and ignore the option if not recognized
7462 # So say no if there are warnings
7463 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7466 lt_cv_prog_compiler_c_o=yes
7467 fi
7468 fi
7469 chmod u+w . 2>&5
7470 $RM conftest*
7471 # SGI C++ compiler will create directory out/ii_files/ for
7472 # template instantiation
7473 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7474 $RM out/* && rmdir out
7475 cd ..
7476 $RM -r conftest
7477 $RM conftest*
7478
7479 fi
7480 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7481 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7482
7483
7484
7485
7486 hard_links="nottested"
7487 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7488 # do not overwrite the value of need_locks provided by the user
7489 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7490 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7491 hard_links=yes
7492 $RM conftest*
7493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7494 touch conftest.a
7495 ln conftest.a conftest.b 2>&5 || hard_links=no
7496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7497 echo "$as_me:$LINENO: result: $hard_links" >&5
7498 echo "${ECHO_T}$hard_links" >&6
7499 if test "$hard_links" = no; then
7500 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7501 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7502 need_locks=warn
7503 fi
7504 else
7505 need_locks=no
7506 fi
7507
7508
7509
7510
7511
7512
7513 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7514 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7515
7516 runpath_var=
7517 allow_undefined_flag=
7518 always_export_symbols=no
7519 archive_cmds=
7520 archive_expsym_cmds=
7521 compiler_needs_object=no
7522 enable_shared_with_static_runtimes=no
7523 export_dynamic_flag_spec=
7524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7525 hardcode_automatic=no
7526 hardcode_direct=no
7527 hardcode_direct_absolute=no
7528 hardcode_libdir_flag_spec=
7529 hardcode_libdir_flag_spec_ld=
7530 hardcode_libdir_separator=
7531 hardcode_minus_L=no
7532 hardcode_shlibpath_var=unsupported
7533 inherit_rpath=no
7534 link_all_deplibs=unknown
7535 module_cmds=
7536 module_expsym_cmds=
7537 old_archive_from_new_cmds=
7538 old_archive_from_expsyms_cmds=
7539 thread_safe_flag_spec=
7540 whole_archive_flag_spec=
7541 # include_expsyms should be a list of space-separated symbols to be *always*
7542 # included in the symbol list
7543 include_expsyms=
7544 # exclude_expsyms can be an extended regexp of symbols to exclude
7545 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7546 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7547 # as well as any symbol that contains `d'.
7548 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7549 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7550 # platforms (ab)use it in PIC code, but their linkers get confused if
7551 # the symbol is explicitly referenced. Since portable code cannot
7552 # rely on this symbol name, it's probably fine to never include it in
7553 # preloaded symbol tables.
7554 extract_expsyms_cmds=
7555
7556 case $host_os in
7557 cygwin* | mingw* | pw32*)
7558 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7559 # When not using gcc, we currently assume that we are using
7560 # Microsoft Visual C++.
7561 if test "$GCC" != yes; then
7562 with_gnu_ld=no
7563 fi
7564 ;;
7565 interix*)
7566 # we just hope/assume this is gcc and not c89 (= MSVC++)
7567 with_gnu_ld=yes
7568 ;;
7569 openbsd*)
7570 with_gnu_ld=no
7571 ;;
7572 esac
7573
7574 ld_shlibs=yes
7575 if test "$with_gnu_ld" = yes; then
7576 # If archive_cmds runs LD, not CC, wlarc should be empty
7577 wlarc='${wl}'
7578
7579 # Set some defaults for GNU ld with shared library support. These
7580 # are reset later if shared libraries are not supported. Putting them
7581 # here allows them to be overridden if necessary.
7582 runpath_var=LD_RUN_PATH
7583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7584 export_dynamic_flag_spec='${wl}--export-dynamic'
7585 # ancient GNU ld didn't support --whole-archive et. al.
7586 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7587 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7588 else
7589 whole_archive_flag_spec=
7590 fi
7591 supports_anon_versioning=no
7592 case `$LD -v 2>&1` in
7593 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7594 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7595 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7596 *\ 2.11.*) ;; # other 2.11 versions
7597 *) supports_anon_versioning=yes ;;
7598 esac
7599
7600 # See if GNU ld supports shared libraries.
7601 case $host_os in
7602 aix[3-9]*)
7603 # On AIX/PPC, the GNU linker is very broken
7604 if test "$host_cpu" != ia64; then
7605 ld_shlibs=no
7606 cat <<_LT_EOF 1>&2
7607
7608 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7609 *** to be unable to reliably create shared libraries on AIX.
7610 *** Therefore, libtool is disabling shared libraries support. If you
7611 *** really care for shared libraries, you may want to modify your PATH
7612 *** so that a non-GNU linker is found, and then restart.
7613
7614 _LT_EOF
7615 fi
7616 ;;
7617
7618 amigaos*)
7619 if test "$host_cpu" = m68k; then
7620 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)'
7621 hardcode_libdir_flag_spec='-L$libdir'
7622 hardcode_minus_L=yes
7623 fi
7624
7625 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7626 # that the semantics of dynamic libraries on AmigaOS, at least up
7627 # to version 4, is to share data among multiple programs linked
7628 # with the same dynamic library. Since this doesn't match the
7629 # behavior of shared libraries on other platforms, we can't use
7630 # them.
7631 ld_shlibs=no
7632 ;;
7633
7634 beos*)
7635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7636 allow_undefined_flag=unsupported
7637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7638 # support --undefined. This deserves some investigation. FIXME
7639 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7640 else
7641 ld_shlibs=no
7642 fi
7643 ;;
7644
7645 cygwin* | mingw* | pw32*)
7646 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7647 # as there is no search path for DLLs.
7648 hardcode_libdir_flag_spec='-L$libdir'
7649 allow_undefined_flag=unsupported
7650 always_export_symbols=no
7651 enable_shared_with_static_runtimes=yes
7652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7653
7654 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7656 # If the export-symbols file already is a .def file (1st line
7657 # is EXPORTS), use it as is; otherwise, prepend...
7658 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7659 cp $export_symbols $output_objdir/$soname.def;
7660 else
7661 echo EXPORTS > $output_objdir/$soname.def;
7662 cat $export_symbols >> $output_objdir/$soname.def;
7663 fi~
7664 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7665 else
7666 ld_shlibs=no
7667 fi
7668 ;;
7669
7670 interix[3-9]*)
7671 hardcode_direct=no
7672 hardcode_shlibpath_var=no
7673 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7674 export_dynamic_flag_spec='${wl}-E'
7675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7676 # Instead, shared libraries are loaded at an image base (0x10000000 by
7677 # default) and relocated if they conflict, which is a slow very memory
7678 # consuming and fragmenting process. To avoid this, we pick a random,
7679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7682 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'
7683 ;;
7684
7685 gnu* | linux* | tpf* | k*bsd*-gnu)
7686 tmp_diet=no
7687 if test "$host_os" = linux-dietlibc; then
7688 case $cc_basename in
7689 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7690 esac
7691 fi
7692 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7693 && test "$tmp_diet" = no
7694 then
7695 tmp_addflag=
7696 case $cc_basename,$host_cpu in
7697 pgcc*) # Portland Group C compiler
7698 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'
7699 tmp_addflag=' $pic_flag'
7700 ;;
7701 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7702 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'
7703 tmp_addflag=' $pic_flag -Mnomain' ;;
7704 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7705 tmp_addflag=' -i_dynamic' ;;
7706 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7707 tmp_addflag=' -i_dynamic -nofor_main' ;;
7708 ifc* | ifort*) # Intel Fortran compiler
7709 tmp_addflag=' -nofor_main' ;;
7710 esac
7711 case `$CC -V 2>&1 | sed 5q` in
7712 *Sun\ C*) # Sun C 5.9
7713 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'
7714 compiler_needs_object=yes
7715 tmp_sharedflag='-G' ;;
7716 *Sun\ F*) # Sun Fortran 8.3
7717 tmp_sharedflag='-G' ;;
7718 *)
7719 tmp_sharedflag='-shared' ;;
7720 esac
7721 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7722
7723 if test "x$supports_anon_versioning" = xyes; then
7724 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7725 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7726 echo "local: *; };" >> $output_objdir/$libname.ver~
7727 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7728 fi
7729 else
7730 ld_shlibs=no
7731 fi
7732 ;;
7733
7734 netbsd*)
7735 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7736 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7737 wlarc=
7738 else
7739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7741 fi
7742 ;;
7743
7744 solaris*)
7745 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7746 ld_shlibs=no
7747 cat <<_LT_EOF 1>&2
7748
7749 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7750 *** create shared libraries on Solaris systems. Therefore, libtool
7751 *** is disabling shared libraries support. We urge you to upgrade GNU
7752 *** binutils to release 2.9.1 or newer. Another option is to modify
7753 *** your PATH or compiler configuration so that the native linker is
7754 *** used, and then restart.
7755
7756 _LT_EOF
7757 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7760 else
7761 ld_shlibs=no
7762 fi
7763 ;;
7764
7765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7766 case `$LD -v 2>&1` in
7767 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7768 ld_shlibs=no
7769 cat <<_LT_EOF 1>&2
7770
7771 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7772 *** reliably create shared libraries on SCO systems. Therefore, libtool
7773 *** is disabling shared libraries support. We urge you to upgrade GNU
7774 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7775 *** your PATH or compiler configuration so that the native linker is
7776 *** used, and then restart.
7777
7778 _LT_EOF
7779 ;;
7780 *)
7781 # For security reasons, it is highly recommended that you always
7782 # use absolute paths for naming shared libraries, and exclude the
7783 # DT_RUNPATH tag from executables and libraries. But doing so
7784 # requires that you compile everything twice, which is a pain.
7785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7789 else
7790 ld_shlibs=no
7791 fi
7792 ;;
7793 esac
7794 ;;
7795
7796 sunos4*)
7797 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7798 wlarc=
7799 hardcode_direct=yes
7800 hardcode_shlibpath_var=no
7801 ;;
7802
7803 *)
7804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7807 else
7808 ld_shlibs=no
7809 fi
7810 ;;
7811 esac
7812
7813 if test "$ld_shlibs" = no; then
7814 runpath_var=
7815 hardcode_libdir_flag_spec=
7816 export_dynamic_flag_spec=
7817 whole_archive_flag_spec=
7818 fi
7819 else
7820 # PORTME fill in a description of your system's linker (not GNU ld)
7821 case $host_os in
7822 aix3*)
7823 allow_undefined_flag=unsupported
7824 always_export_symbols=yes
7825 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'
7826 # Note: this linker hardcodes the directories in LIBPATH if there
7827 # are no directories specified by -L.
7828 hardcode_minus_L=yes
7829 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7830 # Neither direct hardcoding nor static linking is supported with a
7831 # broken collect2.
7832 hardcode_direct=unsupported
7833 fi
7834 ;;
7835
7836 aix[4-9]*)
7837 if test "$host_cpu" = ia64; then
7838 # On IA64, the linker does run time linking by default, so we don't
7839 # have to do anything special.
7840 aix_use_runtimelinking=no
7841 exp_sym_flag='-Bexport'
7842 no_entry_flag=""
7843 else
7844 # If we're using GNU nm, then we don't want the "-C" option.
7845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7846 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7847 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'
7848 else
7849 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'
7850 fi
7851 aix_use_runtimelinking=no
7852
7853 # Test if we are trying to use run time linking or normal
7854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7855 # need to do runtime linking.
7856 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7857 for ld_flag in $LDFLAGS; do
7858 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7859 aix_use_runtimelinking=yes
7860 break
7861 fi
7862 done
7863 ;;
7864 esac
7865
7866 exp_sym_flag='-bexport'
7867 no_entry_flag='-bnoentry'
7868 fi
7869
7870 # When large executables or shared objects are built, AIX ld can
7871 # have problems creating the table of contents. If linking a library
7872 # or program results in "error TOC overflow" add -mminimal-toc to
7873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7875
7876 archive_cmds=''
7877 hardcode_direct=yes
7878 hardcode_direct_absolute=yes
7879 hardcode_libdir_separator=':'
7880 link_all_deplibs=yes
7881 file_list_spec='${wl}-f,'
7882
7883 if test "$GCC" = yes; then
7884 case $host_os in aix4.[012]|aix4.[012].*)
7885 # We only want to do this on AIX 4.2 and lower, the check
7886 # below for broken collect2 doesn't work under 4.3+
7887 collect2name=`${CC} -print-prog-name=collect2`
7888 if test -f "$collect2name" &&
7889 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7890 then
7891 # We have reworked collect2
7892 :
7893 else
7894 # We have old collect2
7895 hardcode_direct=unsupported
7896 # It fails to find uninstalled libraries when the uninstalled
7897 # path is not listed in the libpath. Setting hardcode_minus_L
7898 # to unsupported forces relinking
7899 hardcode_minus_L=yes
7900 hardcode_libdir_flag_spec='-L$libdir'
7901 hardcode_libdir_separator=
7902 fi
7903 ;;
7904 esac
7905 shared_flag='-shared'
7906 if test "$aix_use_runtimelinking" = yes; then
7907 shared_flag="$shared_flag "'${wl}-G'
7908 fi
7909 else
7910 # not using gcc
7911 if test "$host_cpu" = ia64; then
7912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7913 # chokes on -Wl,-G. The following line is correct:
7914 shared_flag='-G'
7915 else
7916 if test "$aix_use_runtimelinking" = yes; then
7917 shared_flag='${wl}-G'
7918 else
7919 shared_flag='${wl}-bM:SRE'
7920 fi
7921 fi
7922 fi
7923
7924 # It seems that -bexpall does not export symbols beginning with
7925 # underscore (_), so it is better to generate a list of symbols to export.
7926 always_export_symbols=yes
7927 if test "$aix_use_runtimelinking" = yes; then
7928 # Warning - without using the other runtime loading flags (-brtl),
7929 # -berok will link without error, but may produce a broken library.
7930 allow_undefined_flag='-berok'
7931 # Determine the default libpath from the value encoded in an
7932 # empty executable.
7933 cat >conftest.$ac_ext <<_ACEOF
7934 /* confdefs.h. */
7935 _ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7939
7940 int
7941 main ()
7942 {
7943
7944 ;
7945 return 0;
7946 }
7947 _ACEOF
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 (eval $ac_try) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969
7970 lt_aix_libpath_sed='
7971 /Import File Strings/,/^$/ {
7972 /^0/ {
7973 s/^0 *\(.*\)$/\1/
7974 p
7975 }
7976 }'
7977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7978 # Check for a 64-bit object if we didn't find anything.
7979 if test -z "$aix_libpath"; then
7980 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7981 fi
7982 else
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7985
7986 fi
7987 rm -f conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7990
7991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7992 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"
7993 else
7994 if test "$host_cpu" = ia64; then
7995 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7996 allow_undefined_flag="-z nodefs"
7997 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"
7998 else
7999 # Determine the default libpath from the value encoded in an
8000 # empty executable.
8001 cat >conftest.$ac_ext <<_ACEOF
8002 /* confdefs.h. */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8007
8008 int
8009 main ()
8010 {
8011
8012 ;
8013 return 0;
8014 }
8015 _ACEOF
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8018 (eval $ac_link) 2>conftest.er1
8019 ac_status=$?
8020 grep -v '^ *+' conftest.er1 >conftest.err
8021 rm -f conftest.er1
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } &&
8025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; } &&
8031 { ac_try='test -s conftest$ac_exeext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037
8038 lt_aix_libpath_sed='
8039 /Import File Strings/,/^$/ {
8040 /^0/ {
8041 s/^0 *\(.*\)$/\1/
8042 p
8043 }
8044 }'
8045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8046 # Check for a 64-bit object if we didn't find anything.
8047 if test -z "$aix_libpath"; then
8048 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8049 fi
8050 else
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054 fi
8055 rm -f conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8058
8059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8060 # Warning - without using the other run time loading flags,
8061 # -berok will link without error, but may produce a broken library.
8062 no_undefined_flag=' ${wl}-bernotok'
8063 allow_undefined_flag=' ${wl}-berok'
8064 # Exported symbols can be pulled into shared objects from archives
8065 whole_archive_flag_spec='$convenience'
8066 archive_cmds_need_lc=yes
8067 # This is similar to how AIX traditionally builds its shared libraries.
8068 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'
8069 fi
8070 fi
8071 ;;
8072
8073 amigaos*)
8074 if test "$host_cpu" = m68k; then
8075 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)'
8076 hardcode_libdir_flag_spec='-L$libdir'
8077 hardcode_minus_L=yes
8078 fi
8079 # see comment about different semantics on the GNU ld section
8080 ld_shlibs=no
8081 ;;
8082
8083 bsdi[45]*)
8084 export_dynamic_flag_spec=-rdynamic
8085 ;;
8086
8087 cygwin* | mingw* | pw32*)
8088 # When not using gcc, we currently assume that we are using
8089 # Microsoft Visual C++.
8090 # hardcode_libdir_flag_spec is actually meaningless, as there is
8091 # no search path for DLLs.
8092 hardcode_libdir_flag_spec=' '
8093 allow_undefined_flag=unsupported
8094 # Tell ltmain to make .lib files, not .a files.
8095 libext=lib
8096 # Tell ltmain to make .dll files, not .so files.
8097 shrext_cmds=".dll"
8098 # FIXME: Setting linknames here is a bad hack.
8099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8100 # The linker will automatically build a .lib file if we build a DLL.
8101 old_archive_from_new_cmds='true'
8102 # FIXME: Should let the user specify the lib program.
8103 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8104 fix_srcfile_path='`cygpath -w "$srcfile"`'
8105 enable_shared_with_static_runtimes=yes
8106 ;;
8107
8108 darwin* | rhapsody*)
8109 case $host_os in
8110 rhapsody* | darwin1.[012])
8111 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8112 ;;
8113 *) # Darwin 1.3 on
8114 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8115 10.[012])
8116 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8117 ;;
8118 10.*)
8119 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8120 ;;
8121 esac
8122 ;;
8123 esac
8124 archive_cmds_need_lc=no
8125 hardcode_direct=no
8126 hardcode_automatic=yes
8127 hardcode_shlibpath_var=unsupported
8128 whole_archive_flag_spec=''
8129 link_all_deplibs=yes
8130 if test "$GCC" = yes ; then
8131 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134 lt_cv_apple_cc_single_mod=no
8135 if test -z "${LT_MULTI_MODULE}"; then
8136 # By default we will add the -single_module flag. You can override
8137 # by either setting the environment variable LT_MULTI_MODULE
8138 # non-empty at configure time, or by adding -multi-module to the
8139 # link flags.
8140 echo "int foo(void){return 1;}" > conftest.c
8141 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8142 -dynamiclib ${wl}-single_module conftest.c
8143 if test -f libconftest.dylib; then
8144 lt_cv_apple_cc_single_mod=yes
8145 rm libconftest.dylib
8146 fi
8147 rm conftest.$ac_ext
8148 fi
8149 fi
8150
8151 output_verbose_link_cmd=echo
8152 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8153 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8154 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}'
8155 else
8156 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8157 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}'
8158 fi
8159 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8160 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}'
8161 else
8162 case $cc_basename in
8163 xlc*)
8164 output_verbose_link_cmd=echo
8165 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8166 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8167 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8168 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}'
8169 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}'
8170 ;;
8171 *)
8172 ld_shlibs=no
8173 ;;
8174 esac
8175 fi
8176 ;;
8177
8178 dgux*)
8179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8180 hardcode_libdir_flag_spec='-L$libdir'
8181 hardcode_shlibpath_var=no
8182 ;;
8183
8184 freebsd1*)
8185 ld_shlibs=no
8186 ;;
8187
8188 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8189 # support. Future versions do this automatically, but an explicit c++rt0.o
8190 # does not break anything, and helps significantly (at the cost of a little
8191 # extra space).
8192 freebsd2.2*)
8193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8194 hardcode_libdir_flag_spec='-R$libdir'
8195 hardcode_direct=yes
8196 hardcode_shlibpath_var=no
8197 ;;
8198
8199 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8200 freebsd2*)
8201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8202 hardcode_direct=yes
8203 hardcode_minus_L=yes
8204 hardcode_shlibpath_var=no
8205 ;;
8206
8207 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8208 freebsd* | dragonfly*)
8209 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8210 hardcode_libdir_flag_spec='-R$libdir'
8211 hardcode_direct=yes
8212 hardcode_shlibpath_var=no
8213 ;;
8214
8215 hpux9*)
8216 if test "$GCC" = yes; then
8217 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'
8218 else
8219 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'
8220 fi
8221 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8222 hardcode_libdir_separator=:
8223 hardcode_direct=yes
8224
8225 # hardcode_minus_L: Not really in the search PATH,
8226 # but as the default location of the library.
8227 hardcode_minus_L=yes
8228 export_dynamic_flag_spec='${wl}-E'
8229 ;;
8230
8231 hpux10*)
8232 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8233 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8234 else
8235 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8236 fi
8237 if test "$with_gnu_ld" = no; then
8238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8239 hardcode_libdir_flag_spec_ld='+b $libdir'
8240 hardcode_libdir_separator=:
8241 hardcode_direct=yes
8242 hardcode_direct_absolute=yes
8243 export_dynamic_flag_spec='${wl}-E'
8244 # hardcode_minus_L: Not really in the search PATH,
8245 # but as the default location of the library.
8246 hardcode_minus_L=yes
8247 fi
8248 ;;
8249
8250 hpux11*)
8251 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8252 case $host_cpu in
8253 hppa*64*)
8254 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8255 ;;
8256 ia64*)
8257 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8258 ;;
8259 *)
8260 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8261 ;;
8262 esac
8263 else
8264 case $host_cpu in
8265 hppa*64*)
8266 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8267 ;;
8268 ia64*)
8269 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8270 ;;
8271 *)
8272 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8273 ;;
8274 esac
8275 fi
8276 if test "$with_gnu_ld" = no; then
8277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8278 hardcode_libdir_separator=:
8279
8280 case $host_cpu in
8281 hppa*64*|ia64*)
8282 hardcode_direct=no
8283 hardcode_shlibpath_var=no
8284 ;;
8285 *)
8286 hardcode_direct=yes
8287 hardcode_direct_absolute=yes
8288 export_dynamic_flag_spec='${wl}-E'
8289
8290 # hardcode_minus_L: Not really in the search PATH,
8291 # but as the default location of the library.
8292 hardcode_minus_L=yes
8293 ;;
8294 esac
8295 fi
8296 ;;
8297
8298 irix5* | irix6* | nonstopux*)
8299 if test "$GCC" = yes; then
8300 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'
8301 # Try to use the -exported_symbol ld option, if it does not
8302 # work, assume that -exports_file does not work either and
8303 # implicitly export all symbols.
8304 save_LDFLAGS="$LDFLAGS"
8305 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8306 cat >conftest.$ac_ext <<_ACEOF
8307 int foo(void) {}
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 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'
8331
8332 else
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336 fi
8337 rm -f conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8339 LDFLAGS="$save_LDFLAGS"
8340 else
8341 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'
8342 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'
8343 fi
8344 archive_cmds_need_lc='no'
8345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8346 hardcode_libdir_separator=:
8347 inherit_rpath=yes
8348 link_all_deplibs=yes
8349 ;;
8350
8351 netbsd*)
8352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8354 else
8355 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8356 fi
8357 hardcode_libdir_flag_spec='-R$libdir'
8358 hardcode_direct=yes
8359 hardcode_shlibpath_var=no
8360 ;;
8361
8362 newsos6)
8363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8364 hardcode_direct=yes
8365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8366 hardcode_libdir_separator=:
8367 hardcode_shlibpath_var=no
8368 ;;
8369
8370 *nto* | *qnx*)
8371 ;;
8372
8373 openbsd*)
8374 hardcode_direct=yes
8375 hardcode_shlibpath_var=no
8376 hardcode_direct_absolute=yes
8377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8379 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8380 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8381 export_dynamic_flag_spec='${wl}-E'
8382 else
8383 case $host_os in
8384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8386 hardcode_libdir_flag_spec='-R$libdir'
8387 ;;
8388 *)
8389 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8391 ;;
8392 esac
8393 fi
8394 ;;
8395
8396 os2*)
8397 hardcode_libdir_flag_spec='-L$libdir'
8398 hardcode_minus_L=yes
8399 allow_undefined_flag=unsupported
8400 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'
8401 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8402 ;;
8403
8404 osf3*)
8405 if test "$GCC" = yes; then
8406 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8407 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'
8408 else
8409 allow_undefined_flag=' -expect_unresolved \*'
8410 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'
8411 fi
8412 archive_cmds_need_lc='no'
8413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8414 hardcode_libdir_separator=:
8415 ;;
8416
8417 osf4* | osf5*) # as osf3* with the addition of -msym flag
8418 if test "$GCC" = yes; then
8419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8420 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'
8421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8422 else
8423 allow_undefined_flag=' -expect_unresolved \*'
8424 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'
8425 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~
8426 $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'
8427
8428 # Both c and cxx compiler support -rpath directly
8429 hardcode_libdir_flag_spec='-rpath $libdir'
8430 fi
8431 archive_cmds_need_lc='no'
8432 hardcode_libdir_separator=:
8433 ;;
8434
8435 solaris*)
8436 no_undefined_flag=' -z defs'
8437 if test "$GCC" = yes; then
8438 wlarc='${wl}'
8439 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8440 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8441 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8442 else
8443 case `$CC -V 2>&1` in
8444 *"Compilers 5.0"*)
8445 wlarc=''
8446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8449 ;;
8450 *)
8451 wlarc='${wl}'
8452 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8454 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8455 ;;
8456 esac
8457 fi
8458 hardcode_libdir_flag_spec='-R$libdir'
8459 hardcode_shlibpath_var=no
8460 case $host_os in
8461 solaris2.[0-5] | solaris2.[0-5].*) ;;
8462 *)
8463 # The compiler driver will combine and reorder linker options,
8464 # but understands `-z linker_flag'. GCC discards it without `$wl',
8465 # but is careful enough not to reorder.
8466 # Supported since Solaris 2.6 (maybe 2.5.1?)
8467 if test "$GCC" = yes; then
8468 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8469 else
8470 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8471 fi
8472 ;;
8473 esac
8474 link_all_deplibs=yes
8475 ;;
8476
8477 sunos4*)
8478 if test "x$host_vendor" = xsequent; then
8479 # Use $CC to link under sequent, because it throws in some extra .o
8480 # files that make .init and .fini sections work.
8481 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8482 else
8483 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8484 fi
8485 hardcode_libdir_flag_spec='-L$libdir'
8486 hardcode_direct=yes
8487 hardcode_minus_L=yes
8488 hardcode_shlibpath_var=no
8489 ;;
8490
8491 sysv4)
8492 case $host_vendor in
8493 sni)
8494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495 hardcode_direct=yes # is this really true???
8496 ;;
8497 siemens)
8498 ## LD is ld it makes a PLAMLIB
8499 ## CC just makes a GrossModule.
8500 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8501 reload_cmds='$CC -r -o $output$reload_objs'
8502 hardcode_direct=no
8503 ;;
8504 motorola)
8505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8506 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8507 ;;
8508 esac
8509 runpath_var='LD_RUN_PATH'
8510 hardcode_shlibpath_var=no
8511 ;;
8512
8513 sysv4.3*)
8514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8515 hardcode_shlibpath_var=no
8516 export_dynamic_flag_spec='-Bexport'
8517 ;;
8518
8519 sysv4*MP*)
8520 if test -d /usr/nec; then
8521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8522 hardcode_shlibpath_var=no
8523 runpath_var=LD_RUN_PATH
8524 hardcode_runpath_var=yes
8525 ld_shlibs=yes
8526 fi
8527 ;;
8528
8529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8530 no_undefined_flag='${wl}-z,text'
8531 archive_cmds_need_lc=no
8532 hardcode_shlibpath_var=no
8533 runpath_var='LD_RUN_PATH'
8534
8535 if test "$GCC" = yes; then
8536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 else
8539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8541 fi
8542 ;;
8543
8544 sysv5* | sco3.2v5* | sco5v6*)
8545 # Note: We can NOT use -z defs as we might desire, because we do not
8546 # link with -lc, and that would cause any symbols used from libc to
8547 # always be unresolved, which means just about no library would
8548 # ever link correctly. If we're not using GNU ld we use -z text
8549 # though, which does catch some bad symbols but isn't as heavy-handed
8550 # as -z defs.
8551 no_undefined_flag='${wl}-z,text'
8552 allow_undefined_flag='${wl}-z,nodefs'
8553 archive_cmds_need_lc=no
8554 hardcode_shlibpath_var=no
8555 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8556 hardcode_libdir_separator=':'
8557 link_all_deplibs=yes
8558 export_dynamic_flag_spec='${wl}-Bexport'
8559 runpath_var='LD_RUN_PATH'
8560
8561 if test "$GCC" = yes; then
8562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8564 else
8565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8567 fi
8568 ;;
8569
8570 uts4*)
8571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8572 hardcode_libdir_flag_spec='-L$libdir'
8573 hardcode_shlibpath_var=no
8574 ;;
8575
8576 *)
8577 ld_shlibs=no
8578 ;;
8579 esac
8580
8581 if test x$host_vendor = xsni; then
8582 case $host in
8583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8584 export_dynamic_flag_spec='${wl}-Blargedynsym'
8585 ;;
8586 esac
8587 fi
8588 fi
8589
8590 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8591 echo "${ECHO_T}$ld_shlibs" >&6
8592 test "$ld_shlibs" = no && can_build_shared=no
8593
8594 with_gnu_ld=$with_gnu_ld
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610 #
8611 # Do we need to explicitly link libc?
8612 #
8613 case "x$archive_cmds_need_lc" in
8614 x|xyes)
8615 # Assume -lc should be added
8616 archive_cmds_need_lc=yes
8617
8618 if test "$enable_shared" = yes && test "$GCC" = yes; then
8619 case $archive_cmds in
8620 *'~'*)
8621 # FIXME: we may have to deal with multi-command sequences.
8622 ;;
8623 '$CC '*)
8624 # Test whether the compiler implicitly links with -lc since on some
8625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8626 # to ld, don't add -lc before -lgcc.
8627 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8628 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8629 $RM conftest*
8630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8631
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } 2>conftest.err; then
8637 soname=conftest
8638 lib=conftest
8639 libobjs=conftest.$ac_objext
8640 deplibs=
8641 wl=$lt_prog_compiler_wl
8642 pic_flag=$lt_prog_compiler_pic
8643 compiler_flags=-v
8644 linker_flags=-v
8645 verstring=
8646 output_objdir=.
8647 libname=conftest
8648 lt_save_allow_undefined_flag=$allow_undefined_flag
8649 allow_undefined_flag=
8650 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8651 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }
8655 then
8656 archive_cmds_need_lc=no
8657 else
8658 archive_cmds_need_lc=yes
8659 fi
8660 allow_undefined_flag=$lt_save_allow_undefined_flag
8661 else
8662 cat conftest.err 1>&5
8663 fi
8664 $RM conftest*
8665 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8666 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8667 ;;
8668 esac
8669 fi
8670 ;;
8671 esac
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
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8830 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8831 withGCC=$GCC
8832 if test "$withGCC" = yes; then
8833 case $host_os in
8834 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8835 *) lt_awk_arg="/^libraries:/" ;;
8836 esac
8837 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8838 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8839 # if the path contains ";" then we assume it to be the separator
8840 # otherwise default to the standard path separator (i.e. ":") - it is
8841 # assumed that no part of a normal pathname contains ";" but that should
8842 # okay in the real world where ";" in dirpaths is itself problematic.
8843 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8844 else
8845 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8846 fi
8847 # Ok, now we have the path, separated by spaces, we can step through it
8848 # and add multilib dir if necessary.
8849 lt_tmp_lt_search_path_spec=
8850 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8851 for lt_sys_path in $lt_search_path_spec; do
8852 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8854 else
8855 test -d "$lt_sys_path" && \
8856 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8857 fi
8858 done
8859 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8860 BEGIN {RS=" "; FS="/|\n";} {
8861 lt_foo="";
8862 lt_count=0;
8863 for (lt_i = NF; lt_i > 0; lt_i--) {
8864 if ($lt_i != "" && $lt_i != ".") {
8865 if ($lt_i == "..") {
8866 lt_count++;
8867 } else {
8868 if (lt_count == 0) {
8869 lt_foo="/" $lt_i lt_foo;
8870 } else {
8871 lt_count--;
8872 }
8873 }
8874 }
8875 }
8876 if (lt_foo != "") { lt_freq[lt_foo]++; }
8877 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8878 }'`
8879 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8880 else
8881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8882 fi
8883 library_names_spec=
8884 libname_spec='lib$name'
8885 soname_spec=
8886 shrext_cmds=".so"
8887 postinstall_cmds=
8888 postuninstall_cmds=
8889 finish_cmds=
8890 finish_eval=
8891 shlibpath_var=
8892 shlibpath_overrides_runpath=unknown
8893 version_type=none
8894 dynamic_linker="$host_os ld.so"
8895 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8896 need_lib_prefix=unknown
8897 hardcode_into_libs=no
8898
8899 # when you set need_version to no, make sure it does not cause -set_version
8900 # flags to be left without arguments
8901 need_version=unknown
8902
8903 case $host_os in
8904 aix3*)
8905 version_type=linux
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8907 shlibpath_var=LIBPATH
8908
8909 # AIX 3 has no versioning support, so we append a major version to the name.
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 ;;
8912
8913 aix[4-9]*)
8914 version_type=linux
8915 need_lib_prefix=no
8916 need_version=no
8917 hardcode_into_libs=yes
8918 if test "$host_cpu" = ia64; then
8919 # AIX 5 supports IA64
8920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8921 shlibpath_var=LD_LIBRARY_PATH
8922 else
8923 # With GCC up to 2.95.x, collect2 would create an import file
8924 # for dependence libraries. The import file would start with
8925 # the line `#! .'. This would cause the generated library to
8926 # depend on `.', always an invalid library. This was fixed in
8927 # development snapshots of GCC prior to 3.0.
8928 case $host_os in
8929 aix4 | aix4.[01] | aix4.[01].*)
8930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8931 echo ' yes '
8932 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8933 :
8934 else
8935 can_build_shared=no
8936 fi
8937 ;;
8938 esac
8939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8940 # soname into executable. Probably we can add versioning support to
8941 # collect2, so additional links can be useful in future.
8942 if test "$aix_use_runtimelinking" = yes; then
8943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8944 # instead of lib<name>.a to let people know that these are not
8945 # typical AIX shared libraries.
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 else
8948 # We preserve .a as extension for shared libraries through AIX4.2
8949 # and later when we are not doing run time linking.
8950 library_names_spec='${libname}${release}.a $libname.a'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 fi
8953 shlibpath_var=LIBPATH
8954 fi
8955 ;;
8956
8957 amigaos*)
8958 if test "$host_cpu" = m68k; then
8959 library_names_spec='$libname.ixlibrary $libname.a'
8960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8961 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'
8962 else
8963 dynamic_linker=no
8964 fi
8965 ;;
8966
8967 beos*)
8968 library_names_spec='${libname}${shared_ext}'
8969 dynamic_linker="$host_os ld.so"
8970 shlibpath_var=LIBRARY_PATH
8971 ;;
8972
8973 bsdi[45]*)
8974 version_type=linux
8975 need_version=no
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8981 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8982 # the default ld.so.conf also contains /usr/contrib/lib and
8983 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8984 # libtool to hard-code these into programs
8985 ;;
8986
8987 cygwin* | mingw* | pw32*)
8988 version_type=windows
8989 shrext_cmds=".dll"
8990 need_version=no
8991 need_lib_prefix=no
8992
8993 case $withGCC,$host_os in
8994 yes,cygwin* | yes,mingw* | yes,pw32*)
8995 library_names_spec='$libname.dll.a'
8996 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8997 postinstall_cmds='base_file=`basename \${file}`~
8998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8999 dldir=$destdir/`dirname \$dlpath`~
9000 test -d \$dldir || mkdir -p \$dldir~
9001 $install_prog $dir/$dlname \$dldir/$dlname~
9002 chmod a+x \$dldir/$dlname~
9003 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9004 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9005 fi'
9006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9007 dlpath=$dir/\$dldll~
9008 $RM \$dlpath'
9009 shlibpath_overrides_runpath=yes
9010
9011 case $host_os in
9012 cygwin*)
9013 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9014 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9015 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9016 ;;
9017 mingw*)
9018 # MinGW DLLs use traditional 'lib' prefix
9019 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9020 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9021 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9022 # It is most probably a Windows format PATH printed by
9023 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9024 # path with ; separators, and with drive letters. We can handle the
9025 # drive letters (cygwin fileutils understands them), so leave them,
9026 # especially as we might pass files found there to a mingw objdump,
9027 # which wouldn't understand a cygwinified path. Ahh.
9028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9029 else
9030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9031 fi
9032 ;;
9033 pw32*)
9034 # pw32 DLLs use 'pw' prefix rather than 'lib'
9035 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9036 ;;
9037 esac
9038 ;;
9039
9040 *)
9041 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9042 ;;
9043 esac
9044 dynamic_linker='Win32 ld.exe'
9045 # FIXME: first we should search . and the directory the executable is in
9046 shlibpath_var=PATH
9047 ;;
9048
9049 darwin* | rhapsody*)
9050 dynamic_linker="$host_os dyld"
9051 version_type=darwin
9052 need_lib_prefix=no
9053 need_version=no
9054 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9055 soname_spec='${libname}${release}${major}$shared_ext'
9056 shlibpath_overrides_runpath=yes
9057 shlibpath_var=DYLD_LIBRARY_PATH
9058 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9059
9060 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9061 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9062 ;;
9063
9064 dgux*)
9065 version_type=linux
9066 need_lib_prefix=no
9067 need_version=no
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 ;;
9072
9073 freebsd1*)
9074 dynamic_linker=no
9075 ;;
9076
9077 freebsd* | dragonfly*)
9078 # DragonFly does not have aout. When/if they implement a new
9079 # versioning mechanism, adjust this.
9080 if test -x /usr/bin/objformat; then
9081 objformat=`/usr/bin/objformat`
9082 else
9083 case $host_os in
9084 freebsd[123]*) objformat=aout ;;
9085 *) objformat=elf ;;
9086 esac
9087 fi
9088 version_type=freebsd-$objformat
9089 case $version_type in
9090 freebsd-elf*)
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9092 need_version=no
9093 need_lib_prefix=no
9094 ;;
9095 freebsd-*)
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9097 need_version=yes
9098 ;;
9099 esac
9100 shlibpath_var=LD_LIBRARY_PATH
9101 case $host_os in
9102 freebsd2*)
9103 shlibpath_overrides_runpath=yes
9104 ;;
9105 freebsd3.[01]* | freebsdelf3.[01]*)
9106 shlibpath_overrides_runpath=yes
9107 hardcode_into_libs=yes
9108 ;;
9109 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9110 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9111 shlibpath_overrides_runpath=no
9112 hardcode_into_libs=yes
9113 ;;
9114 *) # from 4.6 on, and DragonFly
9115 shlibpath_overrides_runpath=yes
9116 hardcode_into_libs=yes
9117 ;;
9118 esac
9119 ;;
9120
9121 gnu*)
9122 version_type=linux
9123 need_lib_prefix=no
9124 need_version=no
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 hardcode_into_libs=yes
9129 ;;
9130
9131 hpux9* | hpux10* | hpux11*)
9132 # Give a soname corresponding to the major version so that dld.sl refuses to
9133 # link against other versions.
9134 version_type=sunos
9135 need_lib_prefix=no
9136 need_version=no
9137 case $host_cpu in
9138 ia64*)
9139 shrext_cmds='.so'
9140 hardcode_into_libs=yes
9141 dynamic_linker="$host_os dld.so"
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 if test "X$HPUX_IA64_MODE" = X32; then
9147 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9148 else
9149 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9150 fi
9151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9152 ;;
9153 hppa*64*)
9154 shrext_cmds='.sl'
9155 hardcode_into_libs=yes
9156 dynamic_linker="$host_os dld.sl"
9157 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9163 ;;
9164 *)
9165 shrext_cmds='.sl'
9166 dynamic_linker="$host_os dld.sl"
9167 shlibpath_var=SHLIB_PATH
9168 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 ;;
9172 esac
9173 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9174 postinstall_cmds='chmod 555 $lib'
9175 ;;
9176
9177 interix[3-9]*)
9178 version_type=linux
9179 need_lib_prefix=no
9180 need_version=no
9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9182 soname_spec='${libname}${release}${shared_ext}$major'
9183 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 shlibpath_overrides_runpath=no
9186 hardcode_into_libs=yes
9187 ;;
9188
9189 irix5* | irix6* | nonstopux*)
9190 case $host_os in
9191 nonstopux*) version_type=nonstopux ;;
9192 *)
9193 if test "$lt_cv_prog_gnu_ld" = yes; then
9194 version_type=linux
9195 else
9196 version_type=irix
9197 fi ;;
9198 esac
9199 need_lib_prefix=no
9200 need_version=no
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9203 case $host_os in
9204 irix5* | nonstopux*)
9205 libsuff= shlibsuff=
9206 ;;
9207 *)
9208 case $LD in # libtool.m4 will add one of these switches to LD
9209 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9210 libsuff= shlibsuff= libmagic=32-bit;;
9211 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9212 libsuff=32 shlibsuff=N32 libmagic=N32;;
9213 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9214 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9215 *) libsuff= shlibsuff= libmagic=never-match;;
9216 esac
9217 ;;
9218 esac
9219 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9220 shlibpath_overrides_runpath=no
9221 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9222 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9223 hardcode_into_libs=yes
9224 ;;
9225
9226 # No shared lib support for Linux oldld, aout, or coff.
9227 linux*oldld* | linux*aout* | linux*coff*)
9228 dynamic_linker=no
9229 ;;
9230
9231 # This must be Linux ELF.
9232 linux* | k*bsd*-gnu)
9233 version_type=linux
9234 need_lib_prefix=no
9235 need_version=no
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 shlibpath_overrides_runpath=no
9241 # Some binutils ld are patched to set DT_RUNPATH
9242 save_LDFLAGS=$LDFLAGS
9243 save_libdir=$libdir
9244 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9245 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9246 cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h. */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252
9253 int
9254 main ()
9255 {
9256
9257 ;
9258 return 0;
9259 }
9260 _ACEOF
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 (eval $ac_try) 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; } &&
9276 { ac_try='test -s conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9283 shlibpath_overrides_runpath=yes
9284 fi
9285
9286 else
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9289
9290 fi
9291 rm -f conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293 LDFLAGS=$save_LDFLAGS
9294 libdir=$save_libdir
9295
9296 # This implies no fast_install, which is unacceptable.
9297 # Some rework will be needed to allow for fast_install
9298 # before this can be enabled.
9299 hardcode_into_libs=yes
9300
9301 # Append ld.so.conf contents to the search path
9302 if test -f /etc/ld.so.conf; then
9303 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' ' '`
9304 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9305 fi
9306
9307 # We used to test for /lib/ld.so.1 and disable shared libraries on
9308 # powerpc, because MkLinux only supported shared libraries with the
9309 # GNU dynamic linker. Since this was broken with cross compilers,
9310 # most powerpc-linux boxes support dynamic linking these days and
9311 # people can always --disable-shared, the test was removed, and we
9312 # assume the GNU/Linux dynamic linker is in use.
9313 dynamic_linker='GNU/Linux ld.so'
9314 ;;
9315
9316 netbsd*)
9317 version_type=sunos
9318 need_lib_prefix=no
9319 need_version=no
9320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9323 dynamic_linker='NetBSD (a.out) ld.so'
9324 else
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 dynamic_linker='NetBSD ld.elf_so'
9328 fi
9329 shlibpath_var=LD_LIBRARY_PATH
9330 shlibpath_overrides_runpath=yes
9331 hardcode_into_libs=yes
9332 ;;
9333
9334 newsos6)
9335 version_type=linux
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337 shlibpath_var=LD_LIBRARY_PATH
9338 shlibpath_overrides_runpath=yes
9339 ;;
9340
9341 *nto* | *qnx*)
9342 version_type=qnx
9343 need_lib_prefix=no
9344 need_version=no
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 shlibpath_overrides_runpath=no
9349 hardcode_into_libs=yes
9350 dynamic_linker='ldqnx.so'
9351 ;;
9352
9353 openbsd*)
9354 version_type=sunos
9355 sys_lib_dlsearch_path_spec="/usr/lib"
9356 need_lib_prefix=no
9357 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9358 case $host_os in
9359 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9360 *) need_version=no ;;
9361 esac
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9366 case $host_os in
9367 openbsd2.[89] | openbsd2.[89].*)
9368 shlibpath_overrides_runpath=no
9369 ;;
9370 *)
9371 shlibpath_overrides_runpath=yes
9372 ;;
9373 esac
9374 else
9375 shlibpath_overrides_runpath=yes
9376 fi
9377 ;;
9378
9379 os2*)
9380 libname_spec='$name'
9381 shrext_cmds=".dll"
9382 need_lib_prefix=no
9383 library_names_spec='$libname${shared_ext} $libname.a'
9384 dynamic_linker='OS/2 ld.exe'
9385 shlibpath_var=LIBPATH
9386 ;;
9387
9388 osf3* | osf4* | osf5*)
9389 version_type=osf
9390 need_lib_prefix=no
9391 need_version=no
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9396 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9397 ;;
9398
9399 rdos*)
9400 dynamic_linker=no
9401 ;;
9402
9403 solaris*)
9404 version_type=linux
9405 need_lib_prefix=no
9406 need_version=no
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath=yes
9411 hardcode_into_libs=yes
9412 # ldd complains unless libraries are executable
9413 postinstall_cmds='chmod +x $lib'
9414 ;;
9415
9416 sunos4*)
9417 version_type=sunos
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9420 shlibpath_var=LD_LIBRARY_PATH
9421 shlibpath_overrides_runpath=yes
9422 if test "$with_gnu_ld" = yes; then
9423 need_lib_prefix=no
9424 fi
9425 need_version=yes
9426 ;;
9427
9428 sysv4 | sysv4.3*)
9429 version_type=linux
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 case $host_vendor in
9434 sni)
9435 shlibpath_overrides_runpath=no
9436 need_lib_prefix=no
9437 runpath_var=LD_RUN_PATH
9438 ;;
9439 siemens)
9440 need_lib_prefix=no
9441 ;;
9442 motorola)
9443 need_lib_prefix=no
9444 need_version=no
9445 shlibpath_overrides_runpath=no
9446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9447 ;;
9448 esac
9449 ;;
9450
9451 sysv4*MP*)
9452 if test -d /usr/nec ;then
9453 version_type=linux
9454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9455 soname_spec='$libname${shared_ext}.$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9457 fi
9458 ;;
9459
9460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9461 version_type=freebsd-elf
9462 need_lib_prefix=no
9463 need_version=no
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=yes
9468 hardcode_into_libs=yes
9469 if test "$with_gnu_ld" = yes; then
9470 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9471 else
9472 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9473 case $host_os in
9474 sco3.2v5*)
9475 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9476 ;;
9477 esac
9478 fi
9479 sys_lib_dlsearch_path_spec='/usr/lib'
9480 ;;
9481
9482 tpf*)
9483 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9484 version_type=linux
9485 need_lib_prefix=no
9486 need_version=no
9487 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=no
9490 hardcode_into_libs=yes
9491 ;;
9492
9493 uts4*)
9494 version_type=linux
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 ;;
9499
9500 *)
9501 dynamic_linker=no
9502 ;;
9503 esac
9504 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9505 echo "${ECHO_T}$dynamic_linker" >&6
9506 test "$dynamic_linker" = no && can_build_shared=no
9507
9508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9509 if test "$GCC" = yes; then
9510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9511 fi
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9600 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9601 hardcode_action=
9602 if test -n "$hardcode_libdir_flag_spec" ||
9603 test -n "$runpath_var" ||
9604 test "X$hardcode_automatic" = "Xyes" ; then
9605
9606 # We can hardcode non-existent directories.
9607 if test "$hardcode_direct" != no &&
9608 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9609 # have to relink, otherwise we might link with an installed library
9610 # when we should be linking with a yet-to-be-installed one
9611 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9612 test "$hardcode_minus_L" != no; then
9613 # Linking always hardcodes the temporary library directory.
9614 hardcode_action=relink
9615 else
9616 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9617 hardcode_action=immediate
9618 fi
9619 else
9620 # We cannot hardcode anything, or else we can only hardcode existing
9621 # directories.
9622 hardcode_action=unsupported
9623 fi
9624 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9625 echo "${ECHO_T}$hardcode_action" >&6
9626
9627 if test "$hardcode_action" = relink ||
9628 test "$inherit_rpath" = yes; then
9629 # Fast installation is not supported
9630 enable_fast_install=no
9631 elif test "$shlibpath_overrides_runpath" = yes ||
9632 test "$enable_shared" = no; then
9633 # Fast installation is not necessary
9634 enable_fast_install=needless
9635 fi
9636
9637
9638
9639
9640
9641
9642 if test "x$enable_dlopen" != xyes; then
9643 enable_dlopen=unknown
9644 enable_dlopen_self=unknown
9645 enable_dlopen_self_static=unknown
9646 else
9647 lt_cv_dlopen=no
9648 lt_cv_dlopen_libs=
9649
9650 case $host_os in
9651 beos*)
9652 lt_cv_dlopen="load_add_on"
9653 lt_cv_dlopen_libs=
9654 lt_cv_dlopen_self=yes
9655 ;;
9656
9657 mingw* | pw32*)
9658 lt_cv_dlopen="LoadLibrary"
9659 lt_cv_dlopen_libs=
9660 ;;
9661
9662 cygwin*)
9663 lt_cv_dlopen="dlopen"
9664 lt_cv_dlopen_libs=
9665 ;;
9666
9667 darwin*)
9668 # if libdl is installed we need to link against it
9669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674 ac_check_lib_save_LIBS=$LIBS
9675 LIBS="-ldl $LIBS"
9676 cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h. */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682
9683 /* Override any gcc2 internal prototype to avoid an error. */
9684 #ifdef __cplusplus
9685 extern "C"
9686 #endif
9687 /* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9689 char dlopen ();
9690 int
9691 main ()
9692 {
9693 dlopen ();
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; } &&
9713 { ac_try='test -s conftest$ac_exeext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_lib_dl_dlopen=yes
9720 else
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 ac_cv_lib_dl_dlopen=no
9725 fi
9726 rm -f conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9729 fi
9730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9732 if test $ac_cv_lib_dl_dlopen = yes; then
9733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9734 else
9735
9736 lt_cv_dlopen="dyld"
9737 lt_cv_dlopen_libs=
9738 lt_cv_dlopen_self=yes
9739
9740 fi
9741
9742 ;;
9743
9744 *)
9745 echo "$as_me:$LINENO: checking for shl_load" >&5
9746 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9747 if test "${ac_cv_func_shl_load+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750 cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h. */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9758 #define shl_load innocuous_shl_load
9759
9760 /* System header to define __stub macros and hopefully few prototypes,
9761 which can conflict with char shl_load (); below.
9762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9763 <limits.h> exists even on freestanding compilers. */
9764
9765 #ifdef __STDC__
9766 # include <limits.h>
9767 #else
9768 # include <assert.h>
9769 #endif
9770
9771 #undef shl_load
9772
9773 /* Override any gcc2 internal prototype to avoid an error. */
9774 #ifdef __cplusplus
9775 extern "C"
9776 {
9777 #endif
9778 /* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780 char shl_load ();
9781 /* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9785 choke me
9786 #else
9787 char (*f) () = shl_load;
9788 #endif
9789 #ifdef __cplusplus
9790 }
9791 #endif
9792
9793 int
9794 main ()
9795 {
9796 return f != shl_load;
9797 ;
9798 return 0;
9799 }
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 (eval $ac_try) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_cv_func_shl_load=yes
9823 else
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9826
9827 ac_cv_func_shl_load=no
9828 fi
9829 rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831 fi
9832 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9833 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9834 if test $ac_cv_func_shl_load = yes; then
9835 lt_cv_dlopen="shl_load"
9836 else
9837 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9838 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9839 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842 ac_check_lib_save_LIBS=$LIBS
9843 LIBS="-ldld $LIBS"
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850
9851 /* Override any gcc2 internal prototype to avoid an error. */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 /* We use char because int might match the return type of a gcc2
9856 builtin and then its argument prototype would still apply. */
9857 char shl_load ();
9858 int
9859 main ()
9860 {
9861 shl_load ();
9862 ;
9863 return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>conftest.er1
9869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest$ac_exeext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 (eval $ac_try) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 ac_cv_lib_dld_shl_load=yes
9888 else
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9891
9892 ac_cv_lib_dld_shl_load=no
9893 fi
9894 rm -f conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9896 LIBS=$ac_check_lib_save_LIBS
9897 fi
9898 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9899 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9900 if test $ac_cv_lib_dld_shl_load = yes; then
9901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9902 else
9903 echo "$as_me:$LINENO: checking for dlopen" >&5
9904 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9905 if test "${ac_cv_func_dlopen+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9916 #define dlopen innocuous_dlopen
9917
9918 /* System header to define __stub macros and hopefully few prototypes,
9919 which can conflict with char dlopen (); below.
9920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9921 <limits.h> exists even on freestanding compilers. */
9922
9923 #ifdef __STDC__
9924 # include <limits.h>
9925 #else
9926 # include <assert.h>
9927 #endif
9928
9929 #undef dlopen
9930
9931 /* Override any gcc2 internal prototype to avoid an error. */
9932 #ifdef __cplusplus
9933 extern "C"
9934 {
9935 #endif
9936 /* We use char because int might match the return type of a gcc2
9937 builtin and then its argument prototype would still apply. */
9938 char dlopen ();
9939 /* The GNU C library defines this for functions which it implements
9940 to always fail with ENOSYS. Some functions are actually named
9941 something starting with __ and the normal name is an alias. */
9942 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9943 choke me
9944 #else
9945 char (*f) () = dlopen;
9946 #endif
9947 #ifdef __cplusplus
9948 }
9949 #endif
9950
9951 int
9952 main ()
9953 {
9954 return f != dlopen;
9955 ;
9956 return 0;
9957 }
9958 _ACEOF
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961 (eval $ac_link) 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_func_dlopen=yes
9981 else
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_cv_func_dlopen=no
9986 fi
9987 rm -f conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9989 fi
9990 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9991 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9992 if test $ac_cv_func_dlopen = yes; then
9993 lt_cv_dlopen="dlopen"
9994 else
9995 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000 ac_check_lib_save_LIBS=$LIBS
10001 LIBS="-ldl $LIBS"
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h. */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008
10009 /* Override any gcc2 internal prototype to avoid an error. */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 /* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
10015 char dlopen ();
10016 int
10017 main ()
10018 {
10019 dlopen ();
10020 ;
10021 return 0;
10022 }
10023 _ACEOF
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_lib_dl_dlopen=yes
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 ac_cv_lib_dl_dlopen=no
10051 fi
10052 rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10055 fi
10056 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10057 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10058 if test $ac_cv_lib_dl_dlopen = yes; then
10059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10060 else
10061 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10062 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10063 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 ac_check_lib_save_LIBS=$LIBS
10067 LIBS="-lsvld $LIBS"
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074
10075 /* Override any gcc2 internal prototype to avoid an error. */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10081 char dlopen ();
10082 int
10083 main ()
10084 {
10085 dlopen ();
10086 ;
10087 return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest$ac_exeext'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 ac_cv_lib_svld_dlopen=yes
10112 else
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116 ac_cv_lib_svld_dlopen=no
10117 fi
10118 rm -f conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10121 fi
10122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10124 if test $ac_cv_lib_svld_dlopen = yes; then
10125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10126 else
10127 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132 ac_check_lib_save_LIBS=$LIBS
10133 LIBS="-ldld $LIBS"
10134 cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h. */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140
10141 /* Override any gcc2 internal prototype to avoid an error. */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 /* We use char because int might match the return type of a gcc2
10146 builtin and then its argument prototype would still apply. */
10147 char dld_link ();
10148 int
10149 main ()
10150 {
10151 dld_link ();
10152 ;
10153 return 0;
10154 }
10155 _ACEOF
10156 rm -f conftest.$ac_objext conftest$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>conftest.er1
10159 ac_status=$?
10160 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } &&
10171 { ac_try='test -s conftest$ac_exeext'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 ac_cv_lib_dld_dld_link=yes
10178 else
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10181
10182 ac_cv_lib_dld_dld_link=no
10183 fi
10184 rm -f conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10186 LIBS=$ac_check_lib_save_LIBS
10187 fi
10188 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10189 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10190 if test $ac_cv_lib_dld_dld_link = yes; then
10191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10192 fi
10193
10194
10195 fi
10196
10197
10198 fi
10199
10200
10201 fi
10202
10203
10204 fi
10205
10206
10207 fi
10208
10209 ;;
10210 esac
10211
10212 if test "x$lt_cv_dlopen" != xno; then
10213 enable_dlopen=yes
10214 else
10215 enable_dlopen=no
10216 fi
10217
10218 case $lt_cv_dlopen in
10219 dlopen)
10220 save_CPPFLAGS="$CPPFLAGS"
10221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10222
10223 save_LDFLAGS="$LDFLAGS"
10224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10225
10226 save_LIBS="$LIBS"
10227 LIBS="$lt_cv_dlopen_libs $LIBS"
10228
10229 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10230 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10231 if test "${lt_cv_dlopen_self+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234 if test "$cross_compiling" = yes; then :
10235 lt_cv_dlopen_self=cross
10236 else
10237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10238 lt_status=$lt_dlunknown
10239 cat > conftest.$ac_ext <<_LT_EOF
10240 #line 10240 "configure"
10241 #include "confdefs.h"
10242
10243 #if HAVE_DLFCN_H
10244 #include <dlfcn.h>
10245 #endif
10246
10247 #include <stdio.h>
10248
10249 #ifdef RTLD_GLOBAL
10250 # define LT_DLGLOBAL RTLD_GLOBAL
10251 #else
10252 # ifdef DL_GLOBAL
10253 # define LT_DLGLOBAL DL_GLOBAL
10254 # else
10255 # define LT_DLGLOBAL 0
10256 # endif
10257 #endif
10258
10259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10260 find out it does not work in some platform. */
10261 #ifndef LT_DLLAZY_OR_NOW
10262 # ifdef RTLD_LAZY
10263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10264 # else
10265 # ifdef DL_LAZY
10266 # define LT_DLLAZY_OR_NOW DL_LAZY
10267 # else
10268 # ifdef RTLD_NOW
10269 # define LT_DLLAZY_OR_NOW RTLD_NOW
10270 # else
10271 # ifdef DL_NOW
10272 # define LT_DLLAZY_OR_NOW DL_NOW
10273 # else
10274 # define LT_DLLAZY_OR_NOW 0
10275 # endif
10276 # endif
10277 # endif
10278 # endif
10279 #endif
10280
10281 #ifdef __cplusplus
10282 extern "C" void exit (int);
10283 #endif
10284
10285 void fnord() { int i=42;}
10286 int main ()
10287 {
10288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10289 int status = $lt_dlunknown;
10290
10291 if (self)
10292 {
10293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10295 /* dlclose (self); */
10296 }
10297 else
10298 puts (dlerror ());
10299
10300 exit (status);
10301 }
10302 _LT_EOF
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10308 (./conftest; exit; ) >&5 2>/dev/null
10309 lt_status=$?
10310 case x$lt_status in
10311 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10312 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10313 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10314 esac
10315 else :
10316 # compilation failed
10317 lt_cv_dlopen_self=no
10318 fi
10319 fi
10320 rm -fr conftest*
10321
10322
10323 fi
10324 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10325 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10326
10327 if test "x$lt_cv_dlopen_self" = xyes; then
10328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10329 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10330 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10331 if test "${lt_cv_dlopen_self_static+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 if test "$cross_compiling" = yes; then :
10335 lt_cv_dlopen_self_static=cross
10336 else
10337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10338 lt_status=$lt_dlunknown
10339 cat > conftest.$ac_ext <<_LT_EOF
10340 #line 10340 "configure"
10341 #include "confdefs.h"
10342
10343 #if HAVE_DLFCN_H
10344 #include <dlfcn.h>
10345 #endif
10346
10347 #include <stdio.h>
10348
10349 #ifdef RTLD_GLOBAL
10350 # define LT_DLGLOBAL RTLD_GLOBAL
10351 #else
10352 # ifdef DL_GLOBAL
10353 # define LT_DLGLOBAL DL_GLOBAL
10354 # else
10355 # define LT_DLGLOBAL 0
10356 # endif
10357 #endif
10358
10359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10360 find out it does not work in some platform. */
10361 #ifndef LT_DLLAZY_OR_NOW
10362 # ifdef RTLD_LAZY
10363 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10364 # else
10365 # ifdef DL_LAZY
10366 # define LT_DLLAZY_OR_NOW DL_LAZY
10367 # else
10368 # ifdef RTLD_NOW
10369 # define LT_DLLAZY_OR_NOW RTLD_NOW
10370 # else
10371 # ifdef DL_NOW
10372 # define LT_DLLAZY_OR_NOW DL_NOW
10373 # else
10374 # define LT_DLLAZY_OR_NOW 0
10375 # endif
10376 # endif
10377 # endif
10378 # endif
10379 #endif
10380
10381 #ifdef __cplusplus
10382 extern "C" void exit (int);
10383 #endif
10384
10385 void fnord() { int i=42;}
10386 int main ()
10387 {
10388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10389 int status = $lt_dlunknown;
10390
10391 if (self)
10392 {
10393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10394 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10395 /* dlclose (self); */
10396 }
10397 else
10398 puts (dlerror ());
10399
10400 exit (status);
10401 }
10402 _LT_EOF
10403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404 (eval $ac_link) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10408 (./conftest; exit; ) >&5 2>/dev/null
10409 lt_status=$?
10410 case x$lt_status in
10411 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10412 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10413 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10414 esac
10415 else :
10416 # compilation failed
10417 lt_cv_dlopen_self_static=no
10418 fi
10419 fi
10420 rm -fr conftest*
10421
10422
10423 fi
10424 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10425 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10426 fi
10427
10428 CPPFLAGS="$save_CPPFLAGS"
10429 LDFLAGS="$save_LDFLAGS"
10430 LIBS="$save_LIBS"
10431 ;;
10432 esac
10433
10434 case $lt_cv_dlopen_self in
10435 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10436 *) enable_dlopen_self=unknown ;;
10437 esac
10438
10439 case $lt_cv_dlopen_self_static in
10440 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10441 *) enable_dlopen_self_static=unknown ;;
10442 esac
10443 fi
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461 striplib=
10462 old_striplib=
10463 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10464 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10465 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10466 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10467 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10468 echo "$as_me:$LINENO: result: yes" >&5
10469 echo "${ECHO_T}yes" >&6
10470 else
10471 # FIXME - insert some real tests, host_os isn't really good enough
10472 case $host_os in
10473 darwin*)
10474 if test -n "$STRIP" ; then
10475 striplib="$STRIP -x"
10476 old_striplib="$STRIP -S"
10477 echo "$as_me:$LINENO: result: yes" >&5
10478 echo "${ECHO_T}yes" >&6
10479 else
10480 echo "$as_me:$LINENO: result: no" >&5
10481 echo "${ECHO_T}no" >&6
10482 fi
10483 ;;
10484 *)
10485 echo "$as_me:$LINENO: result: no" >&5
10486 echo "${ECHO_T}no" >&6
10487 ;;
10488 esac
10489 fi
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502 # Report which library types will actually be built
10503 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10504 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10505 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10506 echo "${ECHO_T}$can_build_shared" >&6
10507
10508 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10509 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10510 test "$can_build_shared" = "no" && enable_shared=no
10511
10512 # On AIX, shared libraries and static libraries use the same namespace, and
10513 # are all built from PIC.
10514 case $host_os in
10515 aix3*)
10516 test "$enable_shared" = yes && enable_static=no
10517 if test -n "$RANLIB"; then
10518 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10519 postinstall_cmds='$RANLIB $lib'
10520 fi
10521 ;;
10522
10523 aix[4-9]*)
10524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10525 test "$enable_shared" = yes && enable_static=no
10526 fi
10527 ;;
10528 esac
10529 echo "$as_me:$LINENO: result: $enable_shared" >&5
10530 echo "${ECHO_T}$enable_shared" >&6
10531
10532 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10533 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10534 # Make sure either enable_shared or enable_static is yes.
10535 test "$enable_shared" = yes || enable_static=yes
10536 echo "$as_me:$LINENO: result: $enable_static" >&5
10537 echo "${ECHO_T}$enable_static" >&6
10538
10539
10540
10541
10542 fi
10543 ac_ext=c
10544 ac_cpp='$CPP $CPPFLAGS'
10545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10548
10549 CC="$lt_save_CC"
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563 ac_config_commands="$ac_config_commands libtool"
10564
10565
10566
10567
10568 # Only expand once:
10569
10570
10571
10572 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
10573 # If we haven't got the data from the intl directory,
10574 # assume NLS is disabled.
10575 USE_NLS=no
10576 LIBINTL=
10577 LIBINTL_DEP=
10578 INCINTL=
10579 XGETTEXT=
10580 GMSGFMT=
10581 POSUB=
10582
10583 if test -f ../intl/config.intl; then
10584 . ../intl/config.intl
10585 fi
10586 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10587 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10588 if test x"$USE_NLS" != xyes; then
10589 echo "$as_me:$LINENO: result: no" >&5
10590 echo "${ECHO_T}no" >&6
10591 else
10592 echo "$as_me:$LINENO: result: yes" >&5
10593 echo "${ECHO_T}yes" >&6
10594
10595 cat >>confdefs.h <<\_ACEOF
10596 #define ENABLE_NLS 1
10597 _ACEOF
10598
10599
10600 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10601 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10602 # Look for .po and .gmo files in the source directory.
10603 CATALOGS=
10604 XLINGUAS=
10605 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10606 # If there aren't any .gmo files the shell will give us the
10607 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10608 # weeded out.
10609 case "$cat" in *\**)
10610 continue;;
10611 esac
10612 # The quadruple backslash is collapsed to a double backslash
10613 # by the backticks, then collapsed again by the double quotes,
10614 # leaving us with one backslash in the sed expression (right
10615 # before the dot that mustn't act as a wildcard).
10616 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10617 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10618 # The user is allowed to set LINGUAS to a list of languages to
10619 # install catalogs for. If it's empty that means "all of them."
10620 if test "x$LINGUAS" = x; then
10621 CATALOGS="$CATALOGS $cat"
10622 XLINGUAS="$XLINGUAS $lang"
10623 else
10624 case "$LINGUAS" in *$lang*)
10625 CATALOGS="$CATALOGS $cat"
10626 XLINGUAS="$XLINGUAS $lang"
10627 ;;
10628 esac
10629 fi
10630 done
10631 LINGUAS="$XLINGUAS"
10632 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10633 echo "${ECHO_T}$LINGUAS" >&6
10634
10635
10636 DATADIRNAME=share
10637
10638 INSTOBJEXT=.mo
10639
10640 GENCAT=gencat
10641
10642 CATOBJEXT=.gmo
10643
10644 fi
10645
10646 MKINSTALLDIRS=
10647 if test -n "$ac_aux_dir"; then
10648 case "$ac_aux_dir" in
10649 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10650 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10651 esac
10652 fi
10653 if test -z "$MKINSTALLDIRS"; then
10654 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10655 fi
10656
10657
10658
10659 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10660 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10661 # Check whether --enable-nls or --disable-nls was given.
10662 if test "${enable_nls+set}" = set; then
10663 enableval="$enable_nls"
10664 USE_NLS=$enableval
10665 else
10666 USE_NLS=yes
10667 fi;
10668 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10669 echo "${ECHO_T}$USE_NLS" >&6
10670
10671
10672
10673
10674
10675
10676 # Prepare PATH_SEPARATOR.
10677 # The user is always right.
10678 if test "${PATH_SEPARATOR+set}" != set; then
10679 echo "#! /bin/sh" >conf$$.sh
10680 echo "exit 0" >>conf$$.sh
10681 chmod +x conf$$.sh
10682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10683 PATH_SEPARATOR=';'
10684 else
10685 PATH_SEPARATOR=:
10686 fi
10687 rm -f conf$$.sh
10688 fi
10689
10690 # Find out how to test for executable files. Don't use a zero-byte file,
10691 # as systems may use methods other than mode bits to determine executability.
10692 cat >conf$$.file <<_ASEOF
10693 #! /bin/sh
10694 exit 0
10695 _ASEOF
10696 chmod +x conf$$.file
10697 if test -x conf$$.file >/dev/null 2>&1; then
10698 ac_executable_p="test -x"
10699 else
10700 ac_executable_p="test -f"
10701 fi
10702 rm -f conf$$.file
10703
10704 # Extract the first word of "msgfmt", so it can be a program name with args.
10705 set dummy msgfmt; ac_word=$2
10706 echo "$as_me:$LINENO: checking for $ac_word" >&5
10707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10708 if test "${ac_cv_path_MSGFMT+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711 case "$MSGFMT" in
10712 [\\/]* | ?:[\\/]*)
10713 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10714 ;;
10715 *)
10716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10717 for ac_dir in $PATH; do
10718 IFS="$ac_save_IFS"
10719 test -z "$ac_dir" && ac_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10722 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10723 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10724 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10725 break 2
10726 fi
10727 fi
10728 done
10729 done
10730 IFS="$ac_save_IFS"
10731 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10732 ;;
10733 esac
10734 fi
10735 MSGFMT="$ac_cv_path_MSGFMT"
10736 if test "$MSGFMT" != ":"; then
10737 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10738 echo "${ECHO_T}$MSGFMT" >&6
10739 else
10740 echo "$as_me:$LINENO: result: no" >&5
10741 echo "${ECHO_T}no" >&6
10742 fi
10743
10744 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10745 set dummy gmsgfmt; ac_word=$2
10746 echo "$as_me:$LINENO: checking for $ac_word" >&5
10747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10748 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751 case $GMSGFMT in
10752 [\\/]* | ?:[\\/]*)
10753 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10754 ;;
10755 *)
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10758 do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767 done
10768 done
10769
10770 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10771 ;;
10772 esac
10773 fi
10774 GMSGFMT=$ac_cv_path_GMSGFMT
10775
10776 if test -n "$GMSGFMT"; then
10777 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10778 echo "${ECHO_T}$GMSGFMT" >&6
10779 else
10780 echo "$as_me:$LINENO: result: no" >&5
10781 echo "${ECHO_T}no" >&6
10782 fi
10783
10784
10785
10786 # Prepare PATH_SEPARATOR.
10787 # The user is always right.
10788 if test "${PATH_SEPARATOR+set}" != set; then
10789 echo "#! /bin/sh" >conf$$.sh
10790 echo "exit 0" >>conf$$.sh
10791 chmod +x conf$$.sh
10792 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10793 PATH_SEPARATOR=';'
10794 else
10795 PATH_SEPARATOR=:
10796 fi
10797 rm -f conf$$.sh
10798 fi
10799
10800 # Find out how to test for executable files. Don't use a zero-byte file,
10801 # as systems may use methods other than mode bits to determine executability.
10802 cat >conf$$.file <<_ASEOF
10803 #! /bin/sh
10804 exit 0
10805 _ASEOF
10806 chmod +x conf$$.file
10807 if test -x conf$$.file >/dev/null 2>&1; then
10808 ac_executable_p="test -x"
10809 else
10810 ac_executable_p="test -f"
10811 fi
10812 rm -f conf$$.file
10813
10814 # Extract the first word of "xgettext", so it can be a program name with args.
10815 set dummy xgettext; ac_word=$2
10816 echo "$as_me:$LINENO: checking for $ac_word" >&5
10817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10818 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821 case "$XGETTEXT" in
10822 [\\/]* | ?:[\\/]*)
10823 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10824 ;;
10825 *)
10826 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10827 for ac_dir in $PATH; do
10828 IFS="$ac_save_IFS"
10829 test -z "$ac_dir" && ac_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10832 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10833 (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
10834 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10835 break 2
10836 fi
10837 fi
10838 done
10839 done
10840 IFS="$ac_save_IFS"
10841 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10842 ;;
10843 esac
10844 fi
10845 XGETTEXT="$ac_cv_path_XGETTEXT"
10846 if test "$XGETTEXT" != ":"; then
10847 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10848 echo "${ECHO_T}$XGETTEXT" >&6
10849 else
10850 echo "$as_me:$LINENO: result: no" >&5
10851 echo "${ECHO_T}no" >&6
10852 fi
10853
10854 rm -f messages.po
10855
10856
10857 # Prepare PATH_SEPARATOR.
10858 # The user is always right.
10859 if test "${PATH_SEPARATOR+set}" != set; then
10860 echo "#! /bin/sh" >conf$$.sh
10861 echo "exit 0" >>conf$$.sh
10862 chmod +x conf$$.sh
10863 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10864 PATH_SEPARATOR=';'
10865 else
10866 PATH_SEPARATOR=:
10867 fi
10868 rm -f conf$$.sh
10869 fi
10870
10871 # Find out how to test for executable files. Don't use a zero-byte file,
10872 # as systems may use methods other than mode bits to determine executability.
10873 cat >conf$$.file <<_ASEOF
10874 #! /bin/sh
10875 exit 0
10876 _ASEOF
10877 chmod +x conf$$.file
10878 if test -x conf$$.file >/dev/null 2>&1; then
10879 ac_executable_p="test -x"
10880 else
10881 ac_executable_p="test -f"
10882 fi
10883 rm -f conf$$.file
10884
10885 # Extract the first word of "msgmerge", so it can be a program name with args.
10886 set dummy msgmerge; ac_word=$2
10887 echo "$as_me:$LINENO: checking for $ac_word" >&5
10888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10889 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892 case "$MSGMERGE" in
10893 [\\/]* | ?:[\\/]*)
10894 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10895 ;;
10896 *)
10897 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10898 for ac_dir in $PATH; do
10899 IFS="$ac_save_IFS"
10900 test -z "$ac_dir" && ac_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10903 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10904 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10905 break 2
10906 fi
10907 fi
10908 done
10909 done
10910 IFS="$ac_save_IFS"
10911 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10912 ;;
10913 esac
10914 fi
10915 MSGMERGE="$ac_cv_path_MSGMERGE"
10916 if test "$MSGMERGE" != ":"; then
10917 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10918 echo "${ECHO_T}$MSGMERGE" >&6
10919 else
10920 echo "$as_me:$LINENO: result: no" >&5
10921 echo "${ECHO_T}no" >&6
10922 fi
10923
10924
10925 if test "$GMSGFMT" != ":"; then
10926 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10927 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10928 : ;
10929 else
10930 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10931 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10932 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10933 GMSGFMT=":"
10934 fi
10935 fi
10936
10937 if test "$XGETTEXT" != ":"; then
10938 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10939 (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
10940 : ;
10941 else
10942 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10943 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10944 XGETTEXT=":"
10945 fi
10946 rm -f messages.po
10947 fi
10948
10949 ac_config_commands="$ac_config_commands default-1"
10950
10951
10952
10953
10954
10955 for ac_prog in 'bison -y' byacc
10956 do
10957 # Extract the first word of "$ac_prog", so it can be a program name with args.
10958 set dummy $ac_prog; ac_word=$2
10959 echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10961 if test "${ac_cv_prog_YACC+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964 if test -n "$YACC"; then
10965 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10966 else
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10969 do
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974 ac_cv_prog_YACC="$ac_prog"
10975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 break 2
10977 fi
10978 done
10979 done
10980
10981 fi
10982 fi
10983 YACC=$ac_cv_prog_YACC
10984 if test -n "$YACC"; then
10985 echo "$as_me:$LINENO: result: $YACC" >&5
10986 echo "${ECHO_T}$YACC" >&6
10987 else
10988 echo "$as_me:$LINENO: result: no" >&5
10989 echo "${ECHO_T}no" >&6
10990 fi
10991
10992 test -n "$YACC" && break
10993 done
10994 test -n "$YACC" || YACC="yacc"
10995
10996 for ac_prog in flex lex
10997 do
10998 # Extract the first word of "$ac_prog", so it can be a program name with args.
10999 set dummy $ac_prog; ac_word=$2
11000 echo "$as_me:$LINENO: checking for $ac_word" >&5
11001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11002 if test "${ac_cv_prog_LEX+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005 if test -n "$LEX"; then
11006 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11007 else
11008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in $PATH
11010 do
11011 IFS=$as_save_IFS
11012 test -z "$as_dir" && as_dir=.
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11015 ac_cv_prog_LEX="$ac_prog"
11016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11017 break 2
11018 fi
11019 done
11020 done
11021
11022 fi
11023 fi
11024 LEX=$ac_cv_prog_LEX
11025 if test -n "$LEX"; then
11026 echo "$as_me:$LINENO: result: $LEX" >&5
11027 echo "${ECHO_T}$LEX" >&6
11028 else
11029 echo "$as_me:$LINENO: result: no" >&5
11030 echo "${ECHO_T}no" >&6
11031 fi
11032
11033 test -n "$LEX" && break
11034 done
11035 test -n "$LEX" || LEX=":"
11036
11037 if test -z "$LEXLIB"
11038 then
11039 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11040 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11041 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 else
11044 ac_check_lib_save_LIBS=$LIBS
11045 LIBS="-lfl $LIBS"
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h. */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052
11053 /* Override any gcc2 internal prototype to avoid an error. */
11054 #ifdef __cplusplus
11055 extern "C"
11056 #endif
11057 /* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11059 char yywrap ();
11060 int
11061 main ()
11062 {
11063 yywrap ();
11064 ;
11065 return 0;
11066 }
11067 _ACEOF
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; } &&
11083 { ac_try='test -s conftest$ac_exeext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 ac_cv_lib_fl_yywrap=yes
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 ac_cv_lib_fl_yywrap=no
11095 fi
11096 rm -f conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
11098 LIBS=$ac_check_lib_save_LIBS
11099 fi
11100 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11101 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11102 if test $ac_cv_lib_fl_yywrap = yes; then
11103 LEXLIB="-lfl"
11104 else
11105 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11106 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11107 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110 ac_check_lib_save_LIBS=$LIBS
11111 LIBS="-ll $LIBS"
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h. */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118
11119 /* Override any gcc2 internal prototype to avoid an error. */
11120 #ifdef __cplusplus
11121 extern "C"
11122 #endif
11123 /* We use char because int might match the return type of a gcc2
11124 builtin and then its argument prototype would still apply. */
11125 char yywrap ();
11126 int
11127 main ()
11128 {
11129 yywrap ();
11130 ;
11131 return 0;
11132 }
11133 _ACEOF
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_lib_l_yywrap=yes
11156 else
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11159
11160 ac_cv_lib_l_yywrap=no
11161 fi
11162 rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164 LIBS=$ac_check_lib_save_LIBS
11165 fi
11166 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11167 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11168 if test $ac_cv_lib_l_yywrap = yes; then
11169 LEXLIB="-ll"
11170 fi
11171
11172 fi
11173
11174 fi
11175
11176 if test "x$LEX" != "x:"; then
11177 echo "$as_me:$LINENO: checking lex output file root" >&5
11178 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11179 if test "${ac_cv_prog_lex_root+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 else
11182 # The minimal lex program is just a single line: %%. But some broken lexes
11183 # (Solaris, I think it was) want two %% lines, so accommodate them.
11184 cat >conftest.l <<_ACEOF
11185 %%
11186 %%
11187 _ACEOF
11188 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11189 (eval $LEX conftest.l) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }
11193 if test -f lex.yy.c; then
11194 ac_cv_prog_lex_root=lex.yy
11195 elif test -f lexyy.c; then
11196 ac_cv_prog_lex_root=lexyy
11197 else
11198 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11199 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11200 { (exit 1); exit 1; }; }
11201 fi
11202 fi
11203 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11204 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11205 rm -f conftest.l
11206 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11207
11208 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11209 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11210 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213 # POSIX says lex can declare yytext either as a pointer or an array; the
11214 # default is implementation-dependent. Figure out which it is, since
11215 # not all implementations provide the %pointer and %array declarations.
11216 ac_cv_prog_lex_yytext_pointer=no
11217 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11218 ac_save_LIBS=$LIBS
11219 LIBS="$LIBS $LEXLIB"
11220 cat >conftest.$ac_ext <<_ACEOF
11221 `cat $LEX_OUTPUT_ROOT.c`
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try='test -s conftest$ac_exeext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
11244 ac_cv_prog_lex_yytext_pointer=yes
11245 else
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11248
11249 fi
11250 rm -f conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
11252 LIBS=$ac_save_LIBS
11253 rm -f "${LEX_OUTPUT_ROOT}.c"
11254
11255 fi
11256 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11257 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11258 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11259
11260 cat >>confdefs.h <<\_ACEOF
11261 #define YYTEXT_POINTER 1
11262 _ACEOF
11263
11264 fi
11265
11266 fi
11267 if test "$LEX" = :; then
11268 LEX=${am_missing_run}flex
11269 fi
11270
11271 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11272 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11273 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11274 if test "${enable_maintainer_mode+set}" = set; then
11275 enableval="$enable_maintainer_mode"
11276 USE_MAINTAINER_MODE=$enableval
11277 else
11278 USE_MAINTAINER_MODE=no
11279 fi;
11280 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11281 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11282
11283
11284 if test $USE_MAINTAINER_MODE = yes; then
11285 MAINTAINER_MODE_TRUE=
11286 MAINTAINER_MODE_FALSE='#'
11287 else
11288 MAINTAINER_MODE_TRUE='#'
11289 MAINTAINER_MODE_FALSE=
11290 fi
11291
11292 MAINT=$MAINTAINER_MODE_TRUE
11293
11294
11295
11296
11297 if false; then
11298 GENINSRC_NEVER_TRUE=
11299 GENINSRC_NEVER_FALSE='#'
11300 else
11301 GENINSRC_NEVER_TRUE='#'
11302 GENINSRC_NEVER_FALSE=
11303 fi
11304
11305
11306 . ${srcdir}/configure.host
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
11321 do
11322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11324 echo "$as_me:$LINENO: checking for $ac_header" >&5
11325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 fi
11329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11331 else
11332 # Is the header compilable?
11333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11335 cat >conftest.$ac_ext <<_ACEOF
11336 /* confdefs.h. */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 $ac_includes_default
11342 #include <$ac_header>
11343 _ACEOF
11344 rm -f conftest.$ac_objext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11346 (eval $ac_compile) 2>conftest.er1
11347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 ac_header_compiler=yes
11366 else
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370 ac_header_compiler=no
11371 fi
11372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11374 echo "${ECHO_T}$ac_header_compiler" >&6
11375
11376 # Is the header present?
11377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h. */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385 #include <$ac_header>
11386 _ACEOF
11387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11389 ac_status=$?
11390 grep -v '^ *+' conftest.er1 >conftest.err
11391 rm -f conftest.er1
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } >/dev/null; then
11395 if test -s conftest.err; then
11396 ac_cpp_err=$ac_c_preproc_warn_flag
11397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11398 else
11399 ac_cpp_err=
11400 fi
11401 else
11402 ac_cpp_err=yes
11403 fi
11404 if test -z "$ac_cpp_err"; then
11405 ac_header_preproc=yes
11406 else
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410 ac_header_preproc=no
11411 fi
11412 rm -f conftest.err conftest.$ac_ext
11413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11414 echo "${ECHO_T}$ac_header_preproc" >&6
11415
11416 # So? What about this header?
11417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11418 yes:no: )
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11423 ac_header_preproc=yes
11424 ;;
11425 no:yes:* )
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11438 (
11439 cat <<\_ASBOX
11440 ## ------------------------------------------ ##
11441 ## Report this to the AC_PACKAGE_NAME lists. ##
11442 ## ------------------------------------------ ##
11443 _ASBOX
11444 ) |
11445 sed "s/^/$as_me: WARNING: /" >&2
11446 ;;
11447 esac
11448 echo "$as_me:$LINENO: checking for $ac_header" >&5
11449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453 eval "$as_ac_Header=\$ac_header_preproc"
11454 fi
11455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11457
11458 fi
11459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11460 cat >>confdefs.h <<_ACEOF
11461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11462 _ACEOF
11463
11464 fi
11465
11466 done
11467
11468
11469
11470
11471
11472
11473 for ac_func in glob mkstemp realpath sbrk waitpid
11474 do
11475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476 echo "$as_me:$LINENO: checking for $ac_func" >&5
11477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11478 if eval "test \"\${$as_ac_var+set}\" = set"; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481 cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h. */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11489 #define $ac_func innocuous_$ac_func
11490
11491 /* System header to define __stub macros and hopefully few prototypes,
11492 which can conflict with char $ac_func (); below.
11493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494 <limits.h> exists even on freestanding compilers. */
11495
11496 #ifdef __STDC__
11497 # include <limits.h>
11498 #else
11499 # include <assert.h>
11500 #endif
11501
11502 #undef $ac_func
11503
11504 /* Override any gcc2 internal prototype to avoid an error. */
11505 #ifdef __cplusplus
11506 extern "C"
11507 {
11508 #endif
11509 /* We use char because int might match the return type of a gcc2
11510 builtin and then its argument prototype would still apply. */
11511 char $ac_func ();
11512 /* The GNU C library defines this for functions which it implements
11513 to always fail with ENOSYS. Some functions are actually named
11514 something starting with __ and the normal name is an alias. */
11515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11516 choke me
11517 #else
11518 char (*f) () = $ac_func;
11519 #endif
11520 #ifdef __cplusplus
11521 }
11522 #endif
11523
11524 int
11525 main ()
11526 {
11527 return f != $ac_func;
11528 ;
11529 return 0;
11530 }
11531 _ACEOF
11532 rm -f conftest.$ac_objext conftest$ac_exeext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534 (eval $ac_link) 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest$ac_exeext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 eval "$as_ac_var=yes"
11554 else
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558 eval "$as_ac_var=no"
11559 fi
11560 rm -f conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562 fi
11563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11565 if test `eval echo '${'$as_ac_var'}'` = yes; then
11566 cat >>confdefs.h <<_ACEOF
11567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11568 _ACEOF
11569
11570 fi
11571 done
11572
11573
11574
11575
11576
11577
11578 ac_header_dirent=no
11579 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11580 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11581 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11582 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 else
11586 cat >conftest.$ac_ext <<_ACEOF
11587 /* confdefs.h. */
11588 _ACEOF
11589 cat confdefs.h >>conftest.$ac_ext
11590 cat >>conftest.$ac_ext <<_ACEOF
11591 /* end confdefs.h. */
11592 #include <sys/types.h>
11593 #include <$ac_hdr>
11594
11595 int
11596 main ()
11597 {
11598 if ((DIR *) 0)
11599 return 0;
11600 ;
11601 return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
11613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 eval "$as_ac_Header=yes"
11626 else
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 eval "$as_ac_Header=no"
11631 fi
11632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11633 fi
11634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11637 cat >>confdefs.h <<_ACEOF
11638 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11639 _ACEOF
11640
11641 ac_header_dirent=$ac_hdr; break
11642 fi
11643
11644 done
11645 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11646 if test $ac_header_dirent = dirent.h; then
11647 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11648 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11649 if test "${ac_cv_search_opendir+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 else
11652 ac_func_search_save_LIBS=$LIBS
11653 ac_cv_search_opendir=no
11654 cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h. */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660
11661 /* Override any gcc2 internal prototype to avoid an error. */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 /* We use char because int might match the return type of a gcc2
11666 builtin and then its argument prototype would still apply. */
11667 char opendir ();
11668 int
11669 main ()
11670 {
11671 opendir ();
11672 ;
11673 return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678 (eval $ac_link) 2>conftest.er1
11679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } &&
11685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest$ac_exeext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_cv_search_opendir="none required"
11698 else
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702 fi
11703 rm -f conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 if test "$ac_cv_search_opendir" = no; then
11706 for ac_lib in dir; do
11707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714
11715 /* Override any gcc2 internal prototype to avoid an error. */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 /* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11721 char opendir ();
11722 int
11723 main ()
11724 {
11725 opendir ();
11726 ;
11727 return 0;
11728 }
11729 _ACEOF
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest$ac_exeext'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_cv_search_opendir="-l$ac_lib"
11752 break
11753 else
11754 echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11756
11757 fi
11758 rm -f conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11760 done
11761 fi
11762 LIBS=$ac_func_search_save_LIBS
11763 fi
11764 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11765 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11766 if test "$ac_cv_search_opendir" != no; then
11767 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11768
11769 fi
11770
11771 else
11772 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11773 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11774 if test "${ac_cv_search_opendir+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 else
11777 ac_func_search_save_LIBS=$LIBS
11778 ac_cv_search_opendir=no
11779 cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h. */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785
11786 /* Override any gcc2 internal prototype to avoid an error. */
11787 #ifdef __cplusplus
11788 extern "C"
11789 #endif
11790 /* We use char because int might match the return type of a gcc2
11791 builtin and then its argument prototype would still apply. */
11792 char opendir ();
11793 int
11794 main ()
11795 {
11796 opendir ();
11797 ;
11798 return 0;
11799 }
11800 _ACEOF
11801 rm -f conftest.$ac_objext conftest$ac_exeext
11802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11803 (eval $ac_link) 2>conftest.er1
11804 ac_status=$?
11805 grep -v '^ *+' conftest.er1 >conftest.err
11806 rm -f conftest.er1
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
11810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; } &&
11816 { ac_try='test -s conftest$ac_exeext'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 ac_cv_search_opendir="none required"
11823 else
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827 fi
11828 rm -f conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
11830 if test "$ac_cv_search_opendir" = no; then
11831 for ac_lib in x; do
11832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11833 cat >conftest.$ac_ext <<_ACEOF
11834 /* confdefs.h. */
11835 _ACEOF
11836 cat confdefs.h >>conftest.$ac_ext
11837 cat >>conftest.$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11839
11840 /* Override any gcc2 internal prototype to avoid an error. */
11841 #ifdef __cplusplus
11842 extern "C"
11843 #endif
11844 /* We use char because int might match the return type of a gcc2
11845 builtin and then its argument prototype would still apply. */
11846 char opendir ();
11847 int
11848 main ()
11849 {
11850 opendir ();
11851 ;
11852 return 0;
11853 }
11854 _ACEOF
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11857 (eval $ac_link) 2>conftest.er1
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_search_opendir="-l$ac_lib"
11877 break
11878 else
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882 fi
11883 rm -f conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11885 done
11886 fi
11887 LIBS=$ac_func_search_save_LIBS
11888 fi
11889 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11890 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11891 if test "$ac_cv_search_opendir" != no; then
11892 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11893
11894 fi
11895
11896 fi
11897
11898
11899 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11900 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11901 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904 cat >conftest.$ac_ext <<_ACEOF
11905 /* confdefs.h. */
11906 _ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h. */
11910 #include <unistd.h>
11911 int
11912 main ()
11913 {
11914 extern int getopt (int, char *const*, const char *);
11915 ;
11916 return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11921 (eval $ac_compile) 2>conftest.er1
11922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest.$ac_objext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 ld_cv_decl_getopt_unistd_h=yes
11941 else
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 ld_cv_decl_getopt_unistd_h=no
11946 fi
11947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11948 fi
11949
11950 echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11951 echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
11952 if test $ld_cv_decl_getopt_unistd_h = yes; then
11953
11954 cat >>confdefs.h <<\_ACEOF
11955 #define HAVE_DECL_GETOPT 1
11956 _ACEOF
11957
11958 fi
11959
11960
11961 case "${host}" in
11962 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
11963
11964 cat >>confdefs.h <<\_ACEOF
11965 #define USE_BINARY_FOPEN 1
11966 _ACEOF
11967 ;;
11968 esac
11969
11970 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11971 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11972 if test "${ac_cv_have_decl_strstr+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975 cat >conftest.$ac_ext <<_ACEOF
11976 /* confdefs.h. */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 $ac_includes_default
11982 int
11983 main ()
11984 {
11985 #ifndef strstr
11986 char *p = (char *) strstr;
11987 #endif
11988
11989 ;
11990 return 0;
11991 }
11992 _ACEOF
11993 rm -f conftest.$ac_objext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_have_decl_strstr=yes
12015 else
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 ac_cv_have_decl_strstr=no
12020 fi
12021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12022 fi
12023 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12024 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12025 if test $ac_cv_have_decl_strstr = yes; then
12026
12027 cat >>confdefs.h <<_ACEOF
12028 #define HAVE_DECL_STRSTR 1
12029 _ACEOF
12030
12031
12032 else
12033 cat >>confdefs.h <<_ACEOF
12034 #define HAVE_DECL_STRSTR 0
12035 _ACEOF
12036
12037
12038 fi
12039 echo "$as_me:$LINENO: checking whether free is declared" >&5
12040 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12041 if test "${ac_cv_have_decl_free+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044 cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h. */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 $ac_includes_default
12051 int
12052 main ()
12053 {
12054 #ifndef free
12055 char *p = (char *) free;
12056 #endif
12057
12058 ;
12059 return 0;
12060 }
12061 _ACEOF
12062 rm -f conftest.$ac_objext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>conftest.er1
12065 ac_status=$?
12066 grep -v '^ *+' conftest.er1 >conftest.err
12067 rm -f conftest.er1
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest.$ac_objext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 ac_cv_have_decl_free=yes
12084 else
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 ac_cv_have_decl_free=no
12089 fi
12090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12091 fi
12092 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12093 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12094 if test $ac_cv_have_decl_free = yes; then
12095
12096 cat >>confdefs.h <<_ACEOF
12097 #define HAVE_DECL_FREE 1
12098 _ACEOF
12099
12100
12101 else
12102 cat >>confdefs.h <<_ACEOF
12103 #define HAVE_DECL_FREE 0
12104 _ACEOF
12105
12106
12107 fi
12108 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12109 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12110 if test "${ac_cv_have_decl_sbrk+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h. */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 $ac_includes_default
12120 int
12121 main ()
12122 {
12123 #ifndef sbrk
12124 char *p = (char *) sbrk;
12125 #endif
12126
12127 ;
12128 return 0;
12129 }
12130 _ACEOF
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest.$ac_objext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 ac_cv_have_decl_sbrk=yes
12153 else
12154 echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12156
12157 ac_cv_have_decl_sbrk=no
12158 fi
12159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12160 fi
12161 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12162 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12163 if test $ac_cv_have_decl_sbrk = yes; then
12164
12165 cat >>confdefs.h <<_ACEOF
12166 #define HAVE_DECL_SBRK 1
12167 _ACEOF
12168
12169
12170 else
12171 cat >>confdefs.h <<_ACEOF
12172 #define HAVE_DECL_SBRK 0
12173 _ACEOF
12174
12175
12176 fi
12177 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12178 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12179 if test "${ac_cv_have_decl_getenv+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 $ac_includes_default
12189 int
12190 main ()
12191 {
12192 #ifndef getenv
12193 char *p = (char *) getenv;
12194 #endif
12195
12196 ;
12197 return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_have_decl_getenv=yes
12222 else
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 ac_cv_have_decl_getenv=no
12227 fi
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 fi
12230 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12231 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12232 if test $ac_cv_have_decl_getenv = yes; then
12233
12234 cat >>confdefs.h <<_ACEOF
12235 #define HAVE_DECL_GETENV 1
12236 _ACEOF
12237
12238
12239 else
12240 cat >>confdefs.h <<_ACEOF
12241 #define HAVE_DECL_GETENV 0
12242 _ACEOF
12243
12244
12245 fi
12246 echo "$as_me:$LINENO: checking whether environ is declared" >&5
12247 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12248 if test "${ac_cv_have_decl_environ+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h. */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257 $ac_includes_default
12258 int
12259 main ()
12260 {
12261 #ifndef environ
12262 char *p = (char *) environ;
12263 #endif
12264
12265 ;
12266 return 0;
12267 }
12268 _ACEOF
12269 rm -f conftest.$ac_objext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12271 (eval $ac_compile) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest.$ac_objext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_cv_have_decl_environ=yes
12291 else
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12294
12295 ac_cv_have_decl_environ=no
12296 fi
12297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12298 fi
12299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12300 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12301 if test $ac_cv_have_decl_environ = yes; then
12302
12303 cat >>confdefs.h <<_ACEOF
12304 #define HAVE_DECL_ENVIRON 1
12305 _ACEOF
12306
12307
12308 else
12309 cat >>confdefs.h <<_ACEOF
12310 #define HAVE_DECL_ENVIRON 0
12311 _ACEOF
12312
12313
12314 fi
12315
12316
12317
12318 # Link in zlib if we can. This is needed only for the bootstrap tests
12319 # right now, since those tests use libbfd, which depends on zlib.
12320 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
12321 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
12322 if test "${ac_cv_search_zlibVersion+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325 ac_func_search_save_LIBS=$LIBS
12326 ac_cv_search_zlibVersion=no
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333
12334 /* Override any gcc2 internal prototype to avoid an error. */
12335 #ifdef __cplusplus
12336 extern "C"
12337 #endif
12338 /* We use char because int might match the return type of a gcc2
12339 builtin and then its argument prototype would still apply. */
12340 char zlibVersion ();
12341 int
12342 main ()
12343 {
12344 zlibVersion ();
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest$ac_exeext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_cv_search_zlibVersion="none required"
12371 else
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 fi
12376 rm -f conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 if test "$ac_cv_search_zlibVersion" = no; then
12379 for ac_lib in z; do
12380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12381 cat >conftest.$ac_ext <<_ACEOF
12382 /* confdefs.h. */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12387
12388 /* Override any gcc2 internal prototype to avoid an error. */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char zlibVersion ();
12395 int
12396 main ()
12397 {
12398 zlibVersion ();
12399 ;
12400 return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>conftest.er1
12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_search_zlibVersion="-l$ac_lib"
12425 break
12426 else
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12429
12430 fi
12431 rm -f conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433 done
12434 fi
12435 LIBS=$ac_func_search_save_LIBS
12436 fi
12437 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
12438 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
12439 if test "$ac_cv_search_zlibVersion" != no; then
12440 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
12441
12442 for ac_header in zlib.h
12443 do
12444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12446 echo "$as_me:$LINENO: checking for $ac_header" >&5
12447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 fi
12451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12453 else
12454 # Is the header compilable?
12455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h. */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 $ac_includes_default
12464 #include <$ac_header>
12465 _ACEOF
12466 rm -f conftest.$ac_objext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12468 (eval $ac_compile) 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest.$ac_objext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_header_compiler=yes
12488 else
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12491
12492 ac_header_compiler=no
12493 fi
12494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12496 echo "${ECHO_T}$ac_header_compiler" >&6
12497
12498 # Is the header present?
12499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12501 cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h. */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 #include <$ac_header>
12508 _ACEOF
12509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } >/dev/null; then
12517 if test -s conftest.err; then
12518 ac_cpp_err=$ac_c_preproc_warn_flag
12519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12520 else
12521 ac_cpp_err=
12522 fi
12523 else
12524 ac_cpp_err=yes
12525 fi
12526 if test -z "$ac_cpp_err"; then
12527 ac_header_preproc=yes
12528 else
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532 ac_header_preproc=no
12533 fi
12534 rm -f conftest.err conftest.$ac_ext
12535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12536 echo "${ECHO_T}$ac_header_preproc" >&6
12537
12538 # So? What about this header?
12539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12540 yes:no: )
12541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12545 ac_header_preproc=yes
12546 ;;
12547 no:yes:* )
12548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12560 (
12561 cat <<\_ASBOX
12562 ## ------------------------------------------ ##
12563 ## Report this to the AC_PACKAGE_NAME lists. ##
12564 ## ------------------------------------------ ##
12565 _ASBOX
12566 ) |
12567 sed "s/^/$as_me: WARNING: /" >&2
12568 ;;
12569 esac
12570 echo "$as_me:$LINENO: checking for $ac_header" >&5
12571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 else
12575 eval "$as_ac_Header=\$ac_header_preproc"
12576 fi
12577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12579
12580 fi
12581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12584 _ACEOF
12585
12586 fi
12587
12588 done
12589
12590 fi
12591
12592
12593 # When converting linker scripts into strings for use in emulation
12594 # files, use astring.sed if the compiler supports ANSI string
12595 # concatenation, or ostring.sed otherwise. This is to support the
12596 # broken Microsoft MSVC compiler, which limits the length of string
12597 # constants, while still supporting pre-ANSI compilers which do not
12598 # support string concatenation.
12599 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12600 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12601 if test "${ld_cv_string_concatenation+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604 cat >conftest.$ac_ext <<_ACEOF
12605 /* confdefs.h. */
12606 _ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12610
12611 int
12612 main ()
12613 {
12614 char *a = "a" "a";
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
12628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest.$ac_objext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ld_cv_string_concatenation=yes
12641 else
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645 ld_cv_string_concatenation=no
12646 fi
12647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12648 fi
12649
12650 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12651 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
12652 if test "$ld_cv_string_concatenation" = "yes"; then
12653 STRINGIFY=astring.sed
12654 else
12655 STRINGIFY=ostring.sed
12656 fi
12657
12658
12659 # target-specific stuff:
12660
12661 all_targets=
12662 EMUL=
12663 all_emuls=
12664 all_emul_extras=
12665 all_libpath=
12666
12667 rm -f tdirs
12668
12669 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12670 do
12671 if test "$targ_alias" = "all"; then
12672 all_targets=true
12673 else
12674 # Canonicalize the secondary target names.
12675 result=`$ac_config_sub $targ_alias 2>/dev/null`
12676 if test -n "$result"; then
12677 targ=$result
12678 else
12679 targ=$targ_alias
12680 fi
12681
12682 . ${srcdir}/configure.tgt
12683
12684 if test "$targ" = "$target"; then
12685 EMUL=$targ_emul
12686 fi
12687
12688 if test x${want64} = xfalse; then
12689 . ${srcdir}/../bfd/config.bfd
12690 fi
12691
12692 if test x${want64} = xtrue; then
12693 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12694 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12695 fi
12696
12697 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
12698 case " $all_emuls " in
12699 *" e${i}.o "*) ;;
12700 *)
12701 all_emuls="$all_emuls e${i}.o"
12702 eval result=\$tdir_$i
12703 test -z "$result" && result=$targ_alias
12704 echo tdir_$i=$result >> tdirs
12705 ;;
12706 esac
12707 done
12708
12709 for i in $targ_emul $targ_extra_libpath; do
12710 case " $all_libpath " in
12711 *" ${i} "*) ;;
12712 *)
12713 if test -z "$all_libpath"; then
12714 all_libpath=${i}
12715 else
12716 all_libpath="$all_libpath ${i}"
12717 fi
12718 ;;
12719 esac
12720 done
12721
12722 for i in $targ_extra_ofiles; do
12723 case " $all_emul_extras " in
12724 *" ${i} "*) ;;
12725 *)
12726 all_emul_extras="$all_emul_extras ${i}"
12727 ;;
12728 esac
12729 done
12730 fi
12731 done
12732
12733
12734
12735 TDIRS=tdirs
12736
12737
12738 if test x${all_targets} = xtrue; then
12739 if test x${want64} = xfalse; then
12740 echo "$as_me:$LINENO: checking for long" >&5
12741 echo $ECHO_N "checking for long... $ECHO_C" >&6
12742 if test "${ac_cv_type_long+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 $ac_includes_default
12752 int
12753 main ()
12754 {
12755 if ((long *) 0)
12756 return 0;
12757 if (sizeof (long))
12758 return 0;
12759 ;
12760 return 0;
12761 }
12762 _ACEOF
12763 rm -f conftest.$ac_objext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12765 (eval $ac_compile) 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_cv_type_long=yes
12785 else
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12788
12789 ac_cv_type_long=no
12790 fi
12791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12792 fi
12793 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12794 echo "${ECHO_T}$ac_cv_type_long" >&6
12795
12796 echo "$as_me:$LINENO: checking size of long" >&5
12797 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12798 if test "${ac_cv_sizeof_long+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801 if test "$ac_cv_type_long" = yes; then
12802 # The cast to unsigned long works around a bug in the HP C Compiler
12803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12805 # This bug is HP SR number 8606223364.
12806 if test "$cross_compiling" = yes; then
12807 # Depending upon the size, compute the lo and hi bounds.
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 $ac_includes_default
12815 int
12816 main ()
12817 {
12818 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12819 test_array [0] = 0
12820
12821 ;
12822 return 0;
12823 }
12824 _ACEOF
12825 rm -f conftest.$ac_objext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827 (eval $ac_compile) 2>conftest.er1
12828 ac_status=$?
12829 grep -v '^ *+' conftest.er1 >conftest.err
12830 rm -f conftest.er1
12831 cat conftest.err >&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } &&
12834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; } &&
12840 { ac_try='test -s conftest.$ac_objext'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846 ac_lo=0 ac_mid=0
12847 while :; do
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h. */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 $ac_includes_default
12855 int
12856 main ()
12857 {
12858 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12859 test_array [0] = 0
12860
12861 ;
12862 return 0;
12863 }
12864 _ACEOF
12865 rm -f conftest.$ac_objext
12866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12867 (eval $ac_compile) 2>conftest.er1
12868 ac_status=$?
12869 grep -v '^ *+' conftest.er1 >conftest.err
12870 rm -f conftest.er1
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest.$ac_objext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_hi=$ac_mid; break
12887 else
12888 echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12890
12891 ac_lo=`expr $ac_mid + 1`
12892 if test $ac_lo -le $ac_mid; then
12893 ac_lo= ac_hi=
12894 break
12895 fi
12896 ac_mid=`expr 2 '*' $ac_mid + 1`
12897 fi
12898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12899 done
12900 else
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h. */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 $ac_includes_default
12911 int
12912 main ()
12913 {
12914 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12915 test_array [0] = 0
12916
12917 ;
12918 return 0;
12919 }
12920 _ACEOF
12921 rm -f conftest.$ac_objext
12922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923 (eval $ac_compile) 2>conftest.er1
12924 ac_status=$?
12925 grep -v '^ *+' conftest.er1 >conftest.err
12926 rm -f conftest.er1
12927 cat conftest.err >&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; } &&
12936 { ac_try='test -s conftest.$ac_objext'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; }; then
12942 ac_hi=-1 ac_mid=-1
12943 while :; do
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h. */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12950 $ac_includes_default
12951 int
12952 main ()
12953 {
12954 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12955 test_array [0] = 0
12956
12957 ;
12958 return 0;
12959 }
12960 _ACEOF
12961 rm -f conftest.$ac_objext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>conftest.er1
12964 ac_status=$?
12965 grep -v '^ *+' conftest.er1 >conftest.err
12966 rm -f conftest.er1
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
12970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; } &&
12976 { ac_try='test -s conftest.$ac_objext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 ac_lo=$ac_mid; break
12983 else
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12986
12987 ac_hi=`expr '(' $ac_mid ')' - 1`
12988 if test $ac_mid -le $ac_hi; then
12989 ac_lo= ac_hi=
12990 break
12991 fi
12992 ac_mid=`expr 2 '*' $ac_mid`
12993 fi
12994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12995 done
12996 else
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
12999
13000 ac_lo= ac_hi=
13001 fi
13002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13003 fi
13004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13005 # Binary search between lo and hi bounds.
13006 while test "x$ac_lo" != "x$ac_hi"; do
13007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13008 cat >conftest.$ac_ext <<_ACEOF
13009 /* confdefs.h. */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13014 $ac_includes_default
13015 int
13016 main ()
13017 {
13018 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13019 test_array [0] = 0
13020
13021 ;
13022 return 0;
13023 }
13024 _ACEOF
13025 rm -f conftest.$ac_objext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027 (eval $ac_compile) 2>conftest.er1
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; } &&
13040 { ac_try='test -s conftest.$ac_objext'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
13046 ac_hi=$ac_mid
13047 else
13048 echo "$as_me: failed program was:" >&5
13049 sed 's/^/| /' conftest.$ac_ext >&5
13050
13051 ac_lo=`expr '(' $ac_mid ')' + 1`
13052 fi
13053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13054 done
13055 case $ac_lo in
13056 ?*) ac_cv_sizeof_long=$ac_lo;;
13057 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13058 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13059 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13060 See \`config.log' for more details." >&5
13061 echo "$as_me: error: cannot compute sizeof (long), 77
13062 See \`config.log' for more details." >&2;}
13063 { (exit 1); exit 1; }; }; } ;;
13064 esac
13065 else
13066 if test "$cross_compiling" = yes; then
13067 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13068 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13069 { (exit 1); exit 1; }; }
13070 else
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h. */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 $ac_includes_default
13078 long longval () { return (long) (sizeof (long)); }
13079 unsigned long ulongval () { return (long) (sizeof (long)); }
13080 #include <stdio.h>
13081 #include <stdlib.h>
13082 int
13083 main ()
13084 {
13085
13086 FILE *f = fopen ("conftest.val", "w");
13087 if (! f)
13088 exit (1);
13089 if (((long) (sizeof (long))) < 0)
13090 {
13091 long i = longval ();
13092 if (i != ((long) (sizeof (long))))
13093 exit (1);
13094 fprintf (f, "%ld\n", i);
13095 }
13096 else
13097 {
13098 unsigned long i = ulongval ();
13099 if (i != ((long) (sizeof (long))))
13100 exit (1);
13101 fprintf (f, "%lu\n", i);
13102 }
13103 exit (ferror (f) || fclose (f) != 0);
13104
13105 ;
13106 return 0;
13107 }
13108 _ACEOF
13109 rm -f conftest$ac_exeext
13110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13111 (eval $ac_link) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; }; then
13120 ac_cv_sizeof_long=`cat conftest.val`
13121 else
13122 echo "$as_me: program exited with status $ac_status" >&5
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ( exit $ac_status )
13127 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13128 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13130 See \`config.log' for more details." >&5
13131 echo "$as_me: error: cannot compute sizeof (long), 77
13132 See \`config.log' for more details." >&2;}
13133 { (exit 1); exit 1; }; }; }
13134 fi
13135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13136 fi
13137 fi
13138 rm -f conftest.val
13139 else
13140 ac_cv_sizeof_long=0
13141 fi
13142 fi
13143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13144 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13145 cat >>confdefs.h <<_ACEOF
13146 #define SIZEOF_LONG $ac_cv_sizeof_long
13147 _ACEOF
13148
13149
13150 if test "x${ac_cv_sizeof_long}" = "x8"; then
13151 want64=true
13152 fi
13153 fi
13154 if test x${want64} = xtrue; then
13155 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
13156 else
13157 EMULATION_OFILES='$(ALL_EMULATIONS)'
13158 fi
13159 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
13160 else
13161 EMULATION_OFILES=$all_emuls
13162 EMUL_EXTRA_OFILES=$all_emul_extras
13163 fi
13164
13165
13166
13167
13168 EMULATION_LIBPATH=$all_libpath
13169
13170
13171 if test x${enable_static} = xno; then
13172 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
13173 else
13174 TESTBFDLIB="../bfd/.libs/libbfd.a"
13175 fi
13176
13177
13178 target_vendor=${target_vendor=$host_vendor}
13179 case "$target_vendor" in
13180 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
13181 *) EXTRA_SHLIB_EXTENSION= ;;
13182 esac
13183
13184 case "$target_os" in
13185 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13186 esac
13187
13188 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13189
13190 cat >>confdefs.h <<_ACEOF
13191 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13192 _ACEOF
13193
13194 fi
13195
13196
13197
13198
13199
13200 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
13201 cat >confcache <<\_ACEOF
13202 # This file is a shell script that caches the results of configure
13203 # tests run on this system so they can be shared between configure
13204 # scripts and configure runs, see configure's option --config-cache.
13205 # It is not useful on other systems. If it contains results you don't
13206 # want to keep, you may remove or edit it.
13207 #
13208 # config.status only pays attention to the cache file if you give it
13209 # the --recheck option to rerun configure.
13210 #
13211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13213 # following values.
13214
13215 _ACEOF
13216
13217 # The following way of writing the cache mishandles newlines in values,
13218 # but we know of no workaround that is simple, portable, and efficient.
13219 # So, don't put newlines in cache variables' values.
13220 # Ultrix sh set writes to stderr and can't be redirected directly,
13221 # and sets the high bit in the cache file unless we assign to the vars.
13222 {
13223 (set) 2>&1 |
13224 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13225 *ac_space=\ *)
13226 # `set' does not quote correctly, so add quotes (double-quote
13227 # substitution turns \\\\ into \\, and sed turns \\ into \).
13228 sed -n \
13229 "s/'/'\\\\''/g;
13230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13231 ;;
13232 *)
13233 # `set' quotes correctly as required by POSIX, so do not add quotes.
13234 sed -n \
13235 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13236 ;;
13237 esac;
13238 } |
13239 sed '
13240 t clear
13241 : clear
13242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13243 t end
13244 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13245 : end' >>confcache
13246 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13247 if test -w $cache_file; then
13248 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13249 cat confcache >$cache_file
13250 else
13251 echo "not updating unwritable cache $cache_file"
13252 fi
13253 fi
13254 rm -f confcache
13255
13256 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13257 # Let make expand exec_prefix.
13258 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13259
13260 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13261 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13262 # trailing colons and then remove the whole line if VPATH becomes empty
13263 # (actually we leave an empty line to preserve line numbers).
13264 if test "x$srcdir" = x.; then
13265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13266 s/:*\$(srcdir):*/:/;
13267 s/:*\${srcdir}:*/:/;
13268 s/:*@srcdir@:*/:/;
13269 s/^\([^=]*=[ ]*\):*/\1/;
13270 s/:*$//;
13271 s/^[^=]*=[ ]*$//;
13272 }'
13273 fi
13274
13275 DEFS=-DHAVE_CONFIG_H
13276
13277 ac_libobjs=
13278 ac_ltlibobjs=
13279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13280 # 1. Remove the extension, and $U if already installed.
13281 ac_i=`echo "$ac_i" |
13282 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13283 # 2. Add them.
13284 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13285 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13286 done
13287 LIBOBJS=$ac_libobjs
13288
13289 LTLIBOBJS=$ac_ltlibobjs
13290
13291
13292 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13293 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13294 Usually this means the macro was only invoked conditionally." >&5
13295 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13296 Usually this means the macro was only invoked conditionally." >&2;}
13297 { (exit 1); exit 1; }; }
13298 fi
13299 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13300 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13301 Usually this means the macro was only invoked conditionally." >&5
13302 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13303 Usually this means the macro was only invoked conditionally." >&2;}
13304 { (exit 1); exit 1; }; }
13305 fi
13306 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13307 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13308 Usually this means the macro was only invoked conditionally." >&5
13309 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13310 Usually this means the macro was only invoked conditionally." >&2;}
13311 { (exit 1); exit 1; }; }
13312 fi
13313 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13314 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13315 Usually this means the macro was only invoked conditionally." >&5
13316 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13317 Usually this means the macro was only invoked conditionally." >&2;}
13318 { (exit 1); exit 1; }; }
13319 fi
13320
13321 : ${CONFIG_STATUS=./config.status}
13322 ac_clean_files_save=$ac_clean_files
13323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13324 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13325 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13326 cat >$CONFIG_STATUS <<_ACEOF
13327 #! $SHELL
13328 # Generated by $as_me.
13329 # Run this file to recreate the current configuration.
13330 # Compiler output produced by configure, useful for debugging
13331 # configure, is in config.log if it exists.
13332
13333 debug=false
13334 ac_cs_recheck=false
13335 ac_cs_silent=false
13336 SHELL=\${CONFIG_SHELL-$SHELL}
13337 _ACEOF
13338
13339 cat >>$CONFIG_STATUS <<\_ACEOF
13340 ## --------------------- ##
13341 ## M4sh Initialization. ##
13342 ## --------------------- ##
13343
13344 # Be Bourne compatible
13345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13346 emulate sh
13347 NULLCMD=:
13348 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13349 # is contrary to our usage. Disable this feature.
13350 alias -g '${1+"$@"}'='"$@"'
13351 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13352 set -o posix
13353 fi
13354 DUALCASE=1; export DUALCASE # for MKS sh
13355
13356 # Support unset when possible.
13357 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13358 as_unset=unset
13359 else
13360 as_unset=false
13361 fi
13362
13363
13364 # Work around bugs in pre-3.0 UWIN ksh.
13365 $as_unset ENV MAIL MAILPATH
13366 PS1='$ '
13367 PS2='> '
13368 PS4='+ '
13369
13370 # NLS nuisances.
13371 for as_var in \
13372 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13373 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13374 LC_TELEPHONE LC_TIME
13375 do
13376 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13377 eval $as_var=C; export $as_var
13378 else
13379 $as_unset $as_var
13380 fi
13381 done
13382
13383 # Required to use basename.
13384 if expr a : '\(a\)' >/dev/null 2>&1; then
13385 as_expr=expr
13386 else
13387 as_expr=false
13388 fi
13389
13390 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13391 as_basename=basename
13392 else
13393 as_basename=false
13394 fi
13395
13396
13397 # Name of the executable.
13398 as_me=`$as_basename "$0" ||
13399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13400 X"$0" : 'X\(//\)$' \| \
13401 X"$0" : 'X\(/\)$' \| \
13402 . : '\(.\)' 2>/dev/null ||
13403 echo X/"$0" |
13404 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13405 /^X\/\(\/\/\)$/{ s//\1/; q; }
13406 /^X\/\(\/\).*/{ s//\1/; q; }
13407 s/.*/./; q'`
13408
13409
13410 # PATH needs CR, and LINENO needs CR and PATH.
13411 # Avoid depending upon Character Ranges.
13412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13415 as_cr_digits='0123456789'
13416 as_cr_alnum=$as_cr_Letters$as_cr_digits
13417
13418 # The user is always right.
13419 if test "${PATH_SEPARATOR+set}" != set; then
13420 echo "#! /bin/sh" >conf$$.sh
13421 echo "exit 0" >>conf$$.sh
13422 chmod +x conf$$.sh
13423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13424 PATH_SEPARATOR=';'
13425 else
13426 PATH_SEPARATOR=:
13427 fi
13428 rm -f conf$$.sh
13429 fi
13430
13431
13432 as_lineno_1=$LINENO
13433 as_lineno_2=$LINENO
13434 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13435 test "x$as_lineno_1" != "x$as_lineno_2" &&
13436 test "x$as_lineno_3" = "x$as_lineno_2" || {
13437 # Find who we are. Look in the path if we contain no path at all
13438 # relative or not.
13439 case $0 in
13440 *[\\/]* ) as_myself=$0 ;;
13441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13443 do
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13447 done
13448
13449 ;;
13450 esac
13451 # We did not find ourselves, most probably we were run as `sh COMMAND'
13452 # in which case we are not to be found in the path.
13453 if test "x$as_myself" = x; then
13454 as_myself=$0
13455 fi
13456 if test ! -f "$as_myself"; then
13457 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13458 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13459 { (exit 1); exit 1; }; }
13460 fi
13461 case $CONFIG_SHELL in
13462 '')
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13465 do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for as_base in sh bash ksh sh5; do
13469 case $as_dir in
13470 /*)
13471 if ("$as_dir/$as_base" -c '
13472 as_lineno_1=$LINENO
13473 as_lineno_2=$LINENO
13474 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13475 test "x$as_lineno_1" != "x$as_lineno_2" &&
13476 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13477 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13478 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13479 CONFIG_SHELL=$as_dir/$as_base
13480 export CONFIG_SHELL
13481 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13482 fi;;
13483 esac
13484 done
13485 done
13486 ;;
13487 esac
13488
13489 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13490 # uniformly replaced by the line number. The first 'sed' inserts a
13491 # line-number line before each line; the second 'sed' does the real
13492 # work. The second script uses 'N' to pair each line-number line
13493 # with the numbered line, and appends trailing '-' during
13494 # substitution so that $LINENO is not a special case at line end.
13495 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13496 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13497 sed '=' <$as_myself |
13498 sed '
13499 N
13500 s,$,-,
13501 : loop
13502 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13503 t loop
13504 s,-$,,
13505 s,^['$as_cr_digits']*\n,,
13506 ' >$as_me.lineno &&
13507 chmod +x $as_me.lineno ||
13508 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13509 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13510 { (exit 1); exit 1; }; }
13511
13512 # Don't try to exec as it changes $[0], causing all sort of problems
13513 # (the dirname of $[0] is not the place where we might find the
13514 # original and so on. Autoconf is especially sensible to this).
13515 . ./$as_me.lineno
13516 # Exit status is that of the last command.
13517 exit
13518 }
13519
13520
13521 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13522 *c*,-n*) ECHO_N= ECHO_C='
13523 ' ECHO_T=' ' ;;
13524 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13525 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13526 esac
13527
13528 if expr a : '\(a\)' >/dev/null 2>&1; then
13529 as_expr=expr
13530 else
13531 as_expr=false
13532 fi
13533
13534 rm -f conf$$ conf$$.exe conf$$.file
13535 echo >conf$$.file
13536 if ln -s conf$$.file conf$$ 2>/dev/null; then
13537 # We could just check for DJGPP; but this test a) works b) is more generic
13538 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13539 if test -f conf$$.exe; then
13540 # Don't use ln at all; we don't have any links
13541 as_ln_s='cp -p'
13542 else
13543 as_ln_s='ln -s'
13544 fi
13545 elif ln conf$$.file conf$$ 2>/dev/null; then
13546 as_ln_s=ln
13547 else
13548 as_ln_s='cp -p'
13549 fi
13550 rm -f conf$$ conf$$.exe conf$$.file
13551
13552 if mkdir -p . 2>/dev/null; then
13553 as_mkdir_p=:
13554 else
13555 test -d ./-p && rmdir ./-p
13556 as_mkdir_p=false
13557 fi
13558
13559 as_executable_p="test -f"
13560
13561 # Sed expression to map a string onto a valid CPP name.
13562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13563
13564 # Sed expression to map a string onto a valid variable name.
13565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13566
13567
13568 # IFS
13569 # We need space, tab and new line, in precisely that order.
13570 as_nl='
13571 '
13572 IFS=" $as_nl"
13573
13574 # CDPATH.
13575 $as_unset CDPATH
13576
13577 exec 6>&1
13578
13579 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13580 # report actual input values of CONFIG_FILES etc. instead of their
13581 # values after options handling. Logging --version etc. is OK.
13582 exec 5>>config.log
13583 {
13584 echo
13585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13586 ## Running $as_me. ##
13587 _ASBOX
13588 } >&5
13589 cat >&5 <<_CSEOF
13590
13591 This file was extended by $as_me, which was
13592 generated by GNU Autoconf 2.59. Invocation command line was
13593
13594 CONFIG_FILES = $CONFIG_FILES
13595 CONFIG_HEADERS = $CONFIG_HEADERS
13596 CONFIG_LINKS = $CONFIG_LINKS
13597 CONFIG_COMMANDS = $CONFIG_COMMANDS
13598 $ $0 $@
13599
13600 _CSEOF
13601 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13602 echo >&5
13603 _ACEOF
13604
13605 # Files that config.status was made for.
13606 if test -n "$ac_config_files"; then
13607 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13608 fi
13609
13610 if test -n "$ac_config_headers"; then
13611 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13612 fi
13613
13614 if test -n "$ac_config_links"; then
13615 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13616 fi
13617
13618 if test -n "$ac_config_commands"; then
13619 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13620 fi
13621
13622 cat >>$CONFIG_STATUS <<\_ACEOF
13623
13624 ac_cs_usage="\
13625 \`$as_me' instantiates files from templates according to the
13626 current configuration.
13627
13628 Usage: $0 [OPTIONS] [FILE]...
13629
13630 -h, --help print this help, then exit
13631 -V, --version print version number, then exit
13632 -q, --quiet do not print progress messages
13633 -d, --debug don't remove temporary files
13634 --recheck update $as_me by reconfiguring in the same conditions
13635 --file=FILE[:TEMPLATE]
13636 instantiate the configuration file FILE
13637 --header=FILE[:TEMPLATE]
13638 instantiate the configuration header FILE
13639
13640 Configuration files:
13641 $config_files
13642
13643 Configuration headers:
13644 $config_headers
13645
13646 Configuration commands:
13647 $config_commands
13648
13649 Report bugs to <bug-autoconf@gnu.org>."
13650 _ACEOF
13651
13652 cat >>$CONFIG_STATUS <<_ACEOF
13653 ac_cs_version="\\
13654 config.status
13655 configured by $0, generated by GNU Autoconf 2.59,
13656 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13657
13658 Copyright (C) 2003 Free Software Foundation, Inc.
13659 This config.status script is free software; the Free Software Foundation
13660 gives unlimited permission to copy, distribute and modify it."
13661 srcdir=$srcdir
13662 INSTALL="$INSTALL"
13663 _ACEOF
13664
13665 cat >>$CONFIG_STATUS <<\_ACEOF
13666 # If no file are specified by the user, then we need to provide default
13667 # value. By we need to know if files were specified by the user.
13668 ac_need_defaults=:
13669 while test $# != 0
13670 do
13671 case $1 in
13672 --*=*)
13673 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13674 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13675 ac_shift=:
13676 ;;
13677 -*)
13678 ac_option=$1
13679 ac_optarg=$2
13680 ac_shift=shift
13681 ;;
13682 *) # This is not an option, so the user has probably given explicit
13683 # arguments.
13684 ac_option=$1
13685 ac_need_defaults=false;;
13686 esac
13687
13688 case $ac_option in
13689 # Handling of the options.
13690 _ACEOF
13691 cat >>$CONFIG_STATUS <<\_ACEOF
13692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13693 ac_cs_recheck=: ;;
13694 --version | --vers* | -V )
13695 echo "$ac_cs_version"; exit 0 ;;
13696 --he | --h)
13697 # Conflict between --help and --header
13698 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13699 Try \`$0 --help' for more information." >&5
13700 echo "$as_me: error: ambiguous option: $1
13701 Try \`$0 --help' for more information." >&2;}
13702 { (exit 1); exit 1; }; };;
13703 --help | --hel | -h )
13704 echo "$ac_cs_usage"; exit 0 ;;
13705 --debug | --d* | -d )
13706 debug=: ;;
13707 --file | --fil | --fi | --f )
13708 $ac_shift
13709 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13710 ac_need_defaults=false;;
13711 --header | --heade | --head | --hea )
13712 $ac_shift
13713 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13714 ac_need_defaults=false;;
13715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13716 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13717 ac_cs_silent=: ;;
13718
13719 # This is an error.
13720 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13721 Try \`$0 --help' for more information." >&5
13722 echo "$as_me: error: unrecognized option: $1
13723 Try \`$0 --help' for more information." >&2;}
13724 { (exit 1); exit 1; }; } ;;
13725
13726 *) ac_config_targets="$ac_config_targets $1" ;;
13727
13728 esac
13729 shift
13730 done
13731
13732 ac_configure_extra_args=
13733
13734 if $ac_cs_silent; then
13735 exec 6>/dev/null
13736 ac_configure_extra_args="$ac_configure_extra_args --silent"
13737 fi
13738
13739 _ACEOF
13740 cat >>$CONFIG_STATUS <<_ACEOF
13741 if \$ac_cs_recheck; then
13742 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13743 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13744 fi
13745
13746 _ACEOF
13747
13748 cat >>$CONFIG_STATUS <<_ACEOF
13749 #
13750 # INIT-COMMANDS section.
13751 #
13752
13753 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13754
13755
13756 # The HP-UX ksh and POSIX shell print the target directory to stdout
13757 # if CDPATH is set.
13758 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13759
13760 sed_quote_subst='$sed_quote_subst'
13761 double_quote_subst='$double_quote_subst'
13762 delay_variable_subst='$delay_variable_subst'
13763 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13764 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13765 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13766 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13767 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13768 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13769 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13770 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13771 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13772 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13773 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13774 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13775 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13776 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13777 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13778 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13779 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13780 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13781 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13782 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13783 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13784 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13785 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13786 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13787 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13788 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13789 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13790 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13791 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13792 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13793 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13794 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13795 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13796 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13797 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13798 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13799 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13800 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13801 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13802 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13803 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13804 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13805 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13806 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"`'
13807 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13808 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13809 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13810 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13811 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13812 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13813 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13814 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13815 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13816 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13817 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13818 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13819 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13820 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13821 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13822 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13823 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13824 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13825 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13826 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13827 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13828 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13829 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13830 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13831 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13832 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13833 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13834 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13835 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13836 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13837 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13838 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13839 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13840 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13841 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13842 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13843 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13844 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13845 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13846 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13847 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13848 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13849 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13850 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13851 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13852 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13853 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13854 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13855 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13856 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13857 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13858 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13859 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13860 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13861 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13862 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13863 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13864 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13865 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13866 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13867 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13868 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13869 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13870 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13871 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13872 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13873 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13874
13875 LTCC='$LTCC'
13876 LTCFLAGS='$LTCFLAGS'
13877 compiler='$compiler_DEFAULT'
13878
13879 # Quote evaled strings.
13880 for var in SED \
13881 GREP \
13882 EGREP \
13883 FGREP \
13884 LD \
13885 NM \
13886 LN_S \
13887 lt_SP2NL \
13888 lt_NL2SP \
13889 reload_flag \
13890 deplibs_check_method \
13891 file_magic_cmd \
13892 AR \
13893 AR_FLAGS \
13894 STRIP \
13895 RANLIB \
13896 CC \
13897 CFLAGS \
13898 compiler \
13899 lt_cv_sys_global_symbol_pipe \
13900 lt_cv_sys_global_symbol_to_cdecl \
13901 lt_cv_sys_global_symbol_to_c_name_address \
13902 SHELL \
13903 ECHO \
13904 lt_prog_compiler_no_builtin_flag \
13905 lt_prog_compiler_wl \
13906 lt_prog_compiler_pic \
13907 lt_prog_compiler_static \
13908 lt_cv_prog_compiler_c_o \
13909 need_locks \
13910 shrext_cmds \
13911 export_dynamic_flag_spec \
13912 whole_archive_flag_spec \
13913 compiler_needs_object \
13914 with_gnu_ld \
13915 allow_undefined_flag \
13916 no_undefined_flag \
13917 hardcode_libdir_flag_spec \
13918 hardcode_libdir_flag_spec_ld \
13919 hardcode_libdir_separator \
13920 fix_srcfile_path \
13921 exclude_expsyms \
13922 include_expsyms \
13923 file_list_spec \
13924 variables_saved_for_relink \
13925 libname_spec \
13926 library_names_spec \
13927 soname_spec \
13928 finish_eval \
13929 old_striplib \
13930 striplib; do
13931 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13932 *[\\\\\\\`\\"\\\$]*)
13933 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13934 ;;
13935 *)
13936 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13937 ;;
13938 esac
13939 done
13940
13941 # Double-quote double-evaled strings.
13942 for var in reload_cmds \
13943 old_postinstall_cmds \
13944 old_postuninstall_cmds \
13945 old_archive_cmds \
13946 extract_expsyms_cmds \
13947 old_archive_from_new_cmds \
13948 old_archive_from_expsyms_cmds \
13949 archive_cmds \
13950 archive_expsym_cmds \
13951 module_cmds \
13952 module_expsym_cmds \
13953 export_symbols_cmds \
13954 prelink_cmds \
13955 postinstall_cmds \
13956 postuninstall_cmds \
13957 finish_cmds \
13958 sys_lib_search_path_spec \
13959 sys_lib_dlsearch_path_spec; do
13960 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13961 *[\\\\\\\`\\"\\\$]*)
13962 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13963 ;;
13964 *)
13965 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13966 ;;
13967 esac
13968 done
13969
13970 # Fix-up fallback echo if it was mangled by the above quoting rules.
13971 case \$lt_ECHO in
13972 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13973 ;;
13974 esac
13975
13976 ac_aux_dir='$ac_aux_dir'
13977 xsi_shell='$xsi_shell'
13978 lt_shell_append='$lt_shell_append'
13979
13980 # See if we are running on zsh, and set the options which allow our
13981 # commands through without removal of \ escapes INIT.
13982 if test -n "\${ZSH_VERSION+set}" ; then
13983 setopt NO_GLOB_SUBST
13984 fi
13985
13986
13987 PACKAGE='$PACKAGE'
13988 VERSION='$VERSION'
13989 TIMESTAMP='$TIMESTAMP'
13990 RM='$RM'
13991 ofile='$ofile'
13992
13993
13994
13995 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13996 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13997 # from automake.
13998 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13999 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14000 LINGUAS="${LINGUAS-%UNSET%}"
14001
14002
14003 _ACEOF
14004
14005
14006
14007 cat >>$CONFIG_STATUS <<\_ACEOF
14008 for ac_config_target in $ac_config_targets
14009 do
14010 case "$ac_config_target" in
14011 # Handling of arguments.
14012 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14013 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14014 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14015 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14016 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14017 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14018 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14019 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14020 { (exit 1); exit 1; }; };;
14021 esac
14022 done
14023
14024 # If the user did not use the arguments to specify the items to instantiate,
14025 # then the envvar interface is used. Set only those that are not.
14026 # We use the long form for the default assignment because of an extremely
14027 # bizarre bug on SunOS 4.1.3.
14028 if $ac_need_defaults; then
14029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14032 fi
14033
14034 # Have a temporary directory for convenience. Make it in the build tree
14035 # simply because there is no reason to put it here, and in addition,
14036 # creating and moving files from /tmp can sometimes cause problems.
14037 # Create a temporary directory, and hook for its removal unless debugging.
14038 $debug ||
14039 {
14040 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14041 trap '{ (exit 1); exit 1; }' 1 2 13 15
14042 }
14043
14044 # Create a (secure) tmp directory for tmp files.
14045
14046 {
14047 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14048 test -n "$tmp" && test -d "$tmp"
14049 } ||
14050 {
14051 tmp=./confstat$$-$RANDOM
14052 (umask 077 && mkdir $tmp)
14053 } ||
14054 {
14055 echo "$me: cannot create a temporary directory in ." >&2
14056 { (exit 1); exit 1; }
14057 }
14058
14059 _ACEOF
14060
14061 cat >>$CONFIG_STATUS <<_ACEOF
14062
14063 #
14064 # CONFIG_FILES section.
14065 #
14066
14067 # No need to generate the scripts if there are no CONFIG_FILES.
14068 # This happens for instance when ./config.status config.h
14069 if test -n "\$CONFIG_FILES"; then
14070 # Protect against being on the right side of a sed subst in config.status.
14071 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14072 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14073 s,@SHELL@,$SHELL,;t t
14074 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14075 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14076 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14077 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14078 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14079 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14080 s,@exec_prefix@,$exec_prefix,;t t
14081 s,@prefix@,$prefix,;t t
14082 s,@program_transform_name@,$program_transform_name,;t t
14083 s,@bindir@,$bindir,;t t
14084 s,@sbindir@,$sbindir,;t t
14085 s,@libexecdir@,$libexecdir,;t t
14086 s,@datadir@,$datadir,;t t
14087 s,@sysconfdir@,$sysconfdir,;t t
14088 s,@sharedstatedir@,$sharedstatedir,;t t
14089 s,@localstatedir@,$localstatedir,;t t
14090 s,@libdir@,$libdir,;t t
14091 s,@includedir@,$includedir,;t t
14092 s,@oldincludedir@,$oldincludedir,;t t
14093 s,@infodir@,$infodir,;t t
14094 s,@mandir@,$mandir,;t t
14095 s,@build_alias@,$build_alias,;t t
14096 s,@host_alias@,$host_alias,;t t
14097 s,@target_alias@,$target_alias,;t t
14098 s,@DEFS@,$DEFS,;t t
14099 s,@ECHO_C@,$ECHO_C,;t t
14100 s,@ECHO_N@,$ECHO_N,;t t
14101 s,@ECHO_T@,$ECHO_T,;t t
14102 s,@LIBS@,$LIBS,;t t
14103 s,@build@,$build,;t t
14104 s,@build_cpu@,$build_cpu,;t t
14105 s,@build_vendor@,$build_vendor,;t t
14106 s,@build_os@,$build_os,;t t
14107 s,@host@,$host,;t t
14108 s,@host_cpu@,$host_cpu,;t t
14109 s,@host_vendor@,$host_vendor,;t t
14110 s,@host_os@,$host_os,;t t
14111 s,@target@,$target,;t t
14112 s,@target_cpu@,$target_cpu,;t t
14113 s,@target_vendor@,$target_vendor,;t t
14114 s,@target_os@,$target_os,;t t
14115 s,@CC@,$CC,;t t
14116 s,@CFLAGS@,$CFLAGS,;t t
14117 s,@LDFLAGS@,$LDFLAGS,;t t
14118 s,@CPPFLAGS@,$CPPFLAGS,;t t
14119 s,@ac_ct_CC@,$ac_ct_CC,;t t
14120 s,@EXEEXT@,$EXEEXT,;t t
14121 s,@OBJEXT@,$OBJEXT,;t t
14122 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14123 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14124 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14125 s,@CYGPATH_W@,$CYGPATH_W,;t t
14126 s,@PACKAGE@,$PACKAGE,;t t
14127 s,@VERSION@,$VERSION,;t t
14128 s,@ACLOCAL@,$ACLOCAL,;t t
14129 s,@AUTOCONF@,$AUTOCONF,;t t
14130 s,@AUTOMAKE@,$AUTOMAKE,;t t
14131 s,@AUTOHEADER@,$AUTOHEADER,;t t
14132 s,@MAKEINFO@,$MAKEINFO,;t t
14133 s,@install_sh@,$install_sh,;t t
14134 s,@STRIP@,$STRIP,;t t
14135 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14136 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14137 s,@mkdir_p@,$mkdir_p,;t t
14138 s,@AWK@,$AWK,;t t
14139 s,@SET_MAKE@,$SET_MAKE,;t t
14140 s,@am__leading_dot@,$am__leading_dot,;t t
14141 s,@AMTAR@,$AMTAR,;t t
14142 s,@am__tar@,$am__tar,;t t
14143 s,@am__untar@,$am__untar,;t t
14144 s,@DEPDIR@,$DEPDIR,;t t
14145 s,@am__include@,$am__include,;t t
14146 s,@am__quote@,$am__quote,;t t
14147 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14148 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14149 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14150 s,@CCDEPMODE@,$CCDEPMODE,;t t
14151 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14152 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14153 s,@use_sysroot@,$use_sysroot,;t t
14154 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
14155 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
14156 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
14157 s,@NO_WERROR@,$NO_WERROR,;t t
14158 s,@LIBTOOL@,$LIBTOOL,;t t
14159 s,@SED@,$SED,;t t
14160 s,@EGREP@,$EGREP,;t t
14161 s,@FGREP@,$FGREP,;t t
14162 s,@GREP@,$GREP,;t t
14163 s,@LD@,$LD,;t t
14164 s,@DUMPBIN@,$DUMPBIN,;t t
14165 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14166 s,@NM@,$NM,;t t
14167 s,@LN_S@,$LN_S,;t t
14168 s,@AR@,$AR,;t t
14169 s,@ac_ct_AR@,$ac_ct_AR,;t t
14170 s,@RANLIB@,$RANLIB,;t t
14171 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14172 s,@lt_ECHO@,$lt_ECHO,;t t
14173 s,@CPP@,$CPP,;t t
14174 s,@USE_NLS@,$USE_NLS,;t t
14175 s,@LIBINTL@,$LIBINTL,;t t
14176 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14177 s,@INCINTL@,$INCINTL,;t t
14178 s,@XGETTEXT@,$XGETTEXT,;t t
14179 s,@GMSGFMT@,$GMSGFMT,;t t
14180 s,@POSUB@,$POSUB,;t t
14181 s,@CATALOGS@,$CATALOGS,;t t
14182 s,@DATADIRNAME@,$DATADIRNAME,;t t
14183 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14184 s,@GENCAT@,$GENCAT,;t t
14185 s,@CATOBJEXT@,$CATOBJEXT,;t t
14186 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14187 s,@MSGFMT@,$MSGFMT,;t t
14188 s,@MSGMERGE@,$MSGMERGE,;t t
14189 s,@YACC@,$YACC,;t t
14190 s,@LEX@,$LEX,;t t
14191 s,@LEXLIB@,$LEXLIB,;t t
14192 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14193 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14194 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14195 s,@MAINT@,$MAINT,;t t
14196 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14197 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
14198 s,@HDEFINES@,$HDEFINES,;t t
14199 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
14200 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
14201 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
14202 s,@STRINGIFY@,$STRINGIFY,;t t
14203 s,@EMUL@,$EMUL,;t t
14204 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
14205 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
14206 s,@LIB_PATH@,$LIB_PATH,;t t
14207 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
14208 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
14209 s,@datarootdir@,$datarootdir,;t t
14210 s,@docdir@,$docdir,;t t
14211 s,@htmldir@,$htmldir,;t t
14212 s,@LIBOBJS@,$LIBOBJS,;t t
14213 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14214 /@TDIRS@/r $TDIRS
14215 s,@TDIRS@,,;t t
14216 CEOF
14217
14218 _ACEOF
14219
14220 cat >>$CONFIG_STATUS <<\_ACEOF
14221 # Split the substitutions into bite-sized pieces for seds with
14222 # small command number limits, like on Digital OSF/1 and HP-UX.
14223 ac_max_sed_lines=48
14224 ac_sed_frag=1 # Number of current file.
14225 ac_beg=1 # First line for current file.
14226 ac_end=$ac_max_sed_lines # Line after last line for current file.
14227 ac_more_lines=:
14228 ac_sed_cmds=
14229 while $ac_more_lines; do
14230 if test $ac_beg -gt 1; then
14231 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14232 else
14233 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14234 fi
14235 if test ! -s $tmp/subs.frag; then
14236 ac_more_lines=false
14237 else
14238 # The purpose of the label and of the branching condition is to
14239 # speed up the sed processing (if there are no `@' at all, there
14240 # is no need to browse any of the substitutions).
14241 # These are the two extra sed commands mentioned above.
14242 (echo ':t
14243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14244 if test -z "$ac_sed_cmds"; then
14245 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14246 else
14247 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14248 fi
14249 ac_sed_frag=`expr $ac_sed_frag + 1`
14250 ac_beg=$ac_end
14251 ac_end=`expr $ac_end + $ac_max_sed_lines`
14252 fi
14253 done
14254 if test -z "$ac_sed_cmds"; then
14255 ac_sed_cmds=cat
14256 fi
14257 fi # test -n "$CONFIG_FILES"
14258
14259 _ACEOF
14260 cat >>$CONFIG_STATUS <<\_ACEOF
14261 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14263 case $ac_file in
14264 - | *:- | *:-:* ) # input from stdin
14265 cat >$tmp/stdin
14266 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14268 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14270 * ) ac_file_in=$ac_file.in ;;
14271 esac
14272
14273 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14274 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14275 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14276 X"$ac_file" : 'X\(//\)[^/]' \| \
14277 X"$ac_file" : 'X\(//\)$' \| \
14278 X"$ac_file" : 'X\(/\)' \| \
14279 . : '\(.\)' 2>/dev/null ||
14280 echo X"$ac_file" |
14281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14282 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14283 /^X\(\/\/\)$/{ s//\1/; q; }
14284 /^X\(\/\).*/{ s//\1/; q; }
14285 s/.*/./; q'`
14286 { if $as_mkdir_p; then
14287 mkdir -p "$ac_dir"
14288 else
14289 as_dir="$ac_dir"
14290 as_dirs=
14291 while test ! -d "$as_dir"; do
14292 as_dirs="$as_dir $as_dirs"
14293 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14295 X"$as_dir" : 'X\(//\)[^/]' \| \
14296 X"$as_dir" : 'X\(//\)$' \| \
14297 X"$as_dir" : 'X\(/\)' \| \
14298 . : '\(.\)' 2>/dev/null ||
14299 echo X"$as_dir" |
14300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14302 /^X\(\/\/\)$/{ s//\1/; q; }
14303 /^X\(\/\).*/{ s//\1/; q; }
14304 s/.*/./; q'`
14305 done
14306 test ! -n "$as_dirs" || mkdir $as_dirs
14307 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14308 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14309 { (exit 1); exit 1; }; }; }
14310
14311 ac_builddir=.
14312
14313 if test "$ac_dir" != .; then
14314 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14315 # A "../" for each directory in $ac_dir_suffix.
14316 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14317 else
14318 ac_dir_suffix= ac_top_builddir=
14319 fi
14320
14321 case $srcdir in
14322 .) # No --srcdir option. We are building in place.
14323 ac_srcdir=.
14324 if test -z "$ac_top_builddir"; then
14325 ac_top_srcdir=.
14326 else
14327 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14328 fi ;;
14329 [\\/]* | ?:[\\/]* ) # Absolute path.
14330 ac_srcdir=$srcdir$ac_dir_suffix;
14331 ac_top_srcdir=$srcdir ;;
14332 *) # Relative path.
14333 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14334 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14335 esac
14336
14337 # Do not use `cd foo && pwd` to compute absolute paths, because
14338 # the directories may not exist.
14339 case `pwd` in
14340 .) ac_abs_builddir="$ac_dir";;
14341 *)
14342 case "$ac_dir" in
14343 .) ac_abs_builddir=`pwd`;;
14344 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14345 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14346 esac;;
14347 esac
14348 case $ac_abs_builddir in
14349 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14350 *)
14351 case ${ac_top_builddir}. in
14352 .) ac_abs_top_builddir=$ac_abs_builddir;;
14353 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14354 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14355 esac;;
14356 esac
14357 case $ac_abs_builddir in
14358 .) ac_abs_srcdir=$ac_srcdir;;
14359 *)
14360 case $ac_srcdir in
14361 .) ac_abs_srcdir=$ac_abs_builddir;;
14362 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14363 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14364 esac;;
14365 esac
14366 case $ac_abs_builddir in
14367 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14368 *)
14369 case $ac_top_srcdir in
14370 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14371 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14372 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14373 esac;;
14374 esac
14375
14376
14377 case $INSTALL in
14378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14379 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14380 esac
14381
14382 # Let's still pretend it is `configure' which instantiates (i.e., don't
14383 # use $as_me), people would be surprised to read:
14384 # /* config.h. Generated by config.status. */
14385 if test x"$ac_file" = x-; then
14386 configure_input=
14387 else
14388 configure_input="$ac_file. "
14389 fi
14390 configure_input=$configure_input"Generated from `echo $ac_file_in |
14391 sed 's,.*/,,'` by configure."
14392
14393 # First look for the input files in the build tree, otherwise in the
14394 # src tree.
14395 ac_file_inputs=`IFS=:
14396 for f in $ac_file_in; do
14397 case $f in
14398 -) echo $tmp/stdin ;;
14399 [\\/$]*)
14400 # Absolute (can't be DOS-style, as IFS=:)
14401 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14402 echo "$as_me: error: cannot find input file: $f" >&2;}
14403 { (exit 1); exit 1; }; }
14404 echo "$f";;
14405 *) # Relative
14406 if test -f "$f"; then
14407 # Build tree
14408 echo "$f"
14409 elif test -f "$srcdir/$f"; then
14410 # Source tree
14411 echo "$srcdir/$f"
14412 else
14413 # /dev/null tree
14414 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14415 echo "$as_me: error: cannot find input file: $f" >&2;}
14416 { (exit 1); exit 1; }; }
14417 fi;;
14418 esac
14419 done` || { (exit 1); exit 1; }
14420
14421 if test x"$ac_file" != x-; then
14422 { echo "$as_me:$LINENO: creating $ac_file" >&5
14423 echo "$as_me: creating $ac_file" >&6;}
14424 rm -f "$ac_file"
14425 fi
14426 _ACEOF
14427 cat >>$CONFIG_STATUS <<_ACEOF
14428 sed "$ac_vpsub
14429 $extrasub
14430 _ACEOF
14431 cat >>$CONFIG_STATUS <<\_ACEOF
14432 :t
14433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14434 s,@configure_input@,$configure_input,;t t
14435 s,@srcdir@,$ac_srcdir,;t t
14436 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14437 s,@top_srcdir@,$ac_top_srcdir,;t t
14438 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14439 s,@builddir@,$ac_builddir,;t t
14440 s,@abs_builddir@,$ac_abs_builddir,;t t
14441 s,@top_builddir@,$ac_top_builddir,;t t
14442 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14443 s,@INSTALL@,$ac_INSTALL,;t t
14444 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14445 rm -f $tmp/stdin
14446 if test x"$ac_file" != x-; then
14447 mv $tmp/out $ac_file
14448 else
14449 cat $tmp/out
14450 rm -f $tmp/out
14451 fi
14452
14453 done
14454 _ACEOF
14455 cat >>$CONFIG_STATUS <<\_ACEOF
14456
14457 #
14458 # CONFIG_HEADER section.
14459 #
14460
14461 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14462 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14463 #
14464 # ac_d sets the value in "#define NAME VALUE" lines.
14465 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14466 ac_dB='[ ].*$,\1#\2'
14467 ac_dC=' '
14468 ac_dD=',;t'
14469 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14470 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14471 ac_uB='$,\1#\2define\3'
14472 ac_uC=' '
14473 ac_uD=',;t'
14474
14475 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14476 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14477 case $ac_file in
14478 - | *:- | *:-:* ) # input from stdin
14479 cat >$tmp/stdin
14480 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14481 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14482 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14483 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14484 * ) ac_file_in=$ac_file.in ;;
14485 esac
14486
14487 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14488 echo "$as_me: creating $ac_file" >&6;}
14489
14490 # First look for the input files in the build tree, otherwise in the
14491 # src tree.
14492 ac_file_inputs=`IFS=:
14493 for f in $ac_file_in; do
14494 case $f in
14495 -) echo $tmp/stdin ;;
14496 [\\/$]*)
14497 # Absolute (can't be DOS-style, as IFS=:)
14498 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14499 echo "$as_me: error: cannot find input file: $f" >&2;}
14500 { (exit 1); exit 1; }; }
14501 # Do quote $f, to prevent DOS paths from being IFS'd.
14502 echo "$f";;
14503 *) # Relative
14504 if test -f "$f"; then
14505 # Build tree
14506 echo "$f"
14507 elif test -f "$srcdir/$f"; then
14508 # Source tree
14509 echo "$srcdir/$f"
14510 else
14511 # /dev/null tree
14512 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14513 echo "$as_me: error: cannot find input file: $f" >&2;}
14514 { (exit 1); exit 1; }; }
14515 fi;;
14516 esac
14517 done` || { (exit 1); exit 1; }
14518 # Remove the trailing spaces.
14519 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14520
14521 _ACEOF
14522
14523 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14524 # `conftest.undefs', that substitutes the proper values into
14525 # config.h.in to produce config.h. The first handles `#define'
14526 # templates, and the second `#undef' templates.
14527 # And first: Protect against being on the right side of a sed subst in
14528 # config.status. Protect against being in an unquoted here document
14529 # in config.status.
14530 rm -f conftest.defines conftest.undefs
14531 # Using a here document instead of a string reduces the quoting nightmare.
14532 # Putting comments in sed scripts is not portable.
14533 #
14534 # `end' is used to avoid that the second main sed command (meant for
14535 # 0-ary CPP macros) applies to n-ary macro definitions.
14536 # See the Autoconf documentation for `clear'.
14537 cat >confdef2sed.sed <<\_ACEOF
14538 s/[\\&,]/\\&/g
14539 s,[\\$`],\\&,g
14540 t clear
14541 : clear
14542 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14543 t end
14544 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14545 : end
14546 _ACEOF
14547 # If some macros were called several times there might be several times
14548 # the same #defines, which is useless. Nevertheless, we may not want to
14549 # sort them, since we want the *last* AC-DEFINE to be honored.
14550 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14551 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14552 rm -f confdef2sed.sed
14553
14554 # This sed command replaces #undef with comments. This is necessary, for
14555 # example, in the case of _POSIX_SOURCE, which is predefined and required
14556 # on some systems where configure will not decide to define it.
14557 cat >>conftest.undefs <<\_ACEOF
14558 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14559 _ACEOF
14560
14561 # Break up conftest.defines because some shells have a limit on the size
14562 # of here documents, and old seds have small limits too (100 cmds).
14563 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14564 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14565 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14566 echo ' :' >>$CONFIG_STATUS
14567 rm -f conftest.tail
14568 while grep . conftest.defines >/dev/null
14569 do
14570 # Write a limited-size here document to $tmp/defines.sed.
14571 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14572 # Speed up: don't consider the non `#define' lines.
14573 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14574 # Work around the forget-to-reset-the-flag bug.
14575 echo 't clr' >>$CONFIG_STATUS
14576 echo ': clr' >>$CONFIG_STATUS
14577 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14578 echo 'CEOF
14579 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14580 rm -f $tmp/in
14581 mv $tmp/out $tmp/in
14582 ' >>$CONFIG_STATUS
14583 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14584 rm -f conftest.defines
14585 mv conftest.tail conftest.defines
14586 done
14587 rm -f conftest.defines
14588 echo ' fi # grep' >>$CONFIG_STATUS
14589 echo >>$CONFIG_STATUS
14590
14591 # Break up conftest.undefs because some shells have a limit on the size
14592 # of here documents, and old seds have small limits too (100 cmds).
14593 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14594 rm -f conftest.tail
14595 while grep . conftest.undefs >/dev/null
14596 do
14597 # Write a limited-size here document to $tmp/undefs.sed.
14598 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14599 # Speed up: don't consider the non `#undef'
14600 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14601 # Work around the forget-to-reset-the-flag bug.
14602 echo 't clr' >>$CONFIG_STATUS
14603 echo ': clr' >>$CONFIG_STATUS
14604 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14605 echo 'CEOF
14606 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14607 rm -f $tmp/in
14608 mv $tmp/out $tmp/in
14609 ' >>$CONFIG_STATUS
14610 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14611 rm -f conftest.undefs
14612 mv conftest.tail conftest.undefs
14613 done
14614 rm -f conftest.undefs
14615
14616 cat >>$CONFIG_STATUS <<\_ACEOF
14617 # Let's still pretend it is `configure' which instantiates (i.e., don't
14618 # use $as_me), people would be surprised to read:
14619 # /* config.h. Generated by config.status. */
14620 if test x"$ac_file" = x-; then
14621 echo "/* Generated by configure. */" >$tmp/config.h
14622 else
14623 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14624 fi
14625 cat $tmp/in >>$tmp/config.h
14626 rm -f $tmp/in
14627 if test x"$ac_file" != x-; then
14628 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14629 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14630 echo "$as_me: $ac_file is unchanged" >&6;}
14631 else
14632 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14633 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14634 X"$ac_file" : 'X\(//\)[^/]' \| \
14635 X"$ac_file" : 'X\(//\)$' \| \
14636 X"$ac_file" : 'X\(/\)' \| \
14637 . : '\(.\)' 2>/dev/null ||
14638 echo X"$ac_file" |
14639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14641 /^X\(\/\/\)$/{ s//\1/; q; }
14642 /^X\(\/\).*/{ s//\1/; q; }
14643 s/.*/./; q'`
14644 { if $as_mkdir_p; then
14645 mkdir -p "$ac_dir"
14646 else
14647 as_dir="$ac_dir"
14648 as_dirs=
14649 while test ! -d "$as_dir"; do
14650 as_dirs="$as_dir $as_dirs"
14651 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14653 X"$as_dir" : 'X\(//\)[^/]' \| \
14654 X"$as_dir" : 'X\(//\)$' \| \
14655 X"$as_dir" : 'X\(/\)' \| \
14656 . : '\(.\)' 2>/dev/null ||
14657 echo X"$as_dir" |
14658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14660 /^X\(\/\/\)$/{ s//\1/; q; }
14661 /^X\(\/\).*/{ s//\1/; q; }
14662 s/.*/./; q'`
14663 done
14664 test ! -n "$as_dirs" || mkdir $as_dirs
14665 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14666 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14667 { (exit 1); exit 1; }; }; }
14668
14669 rm -f $ac_file
14670 mv $tmp/config.h $ac_file
14671 fi
14672 else
14673 cat $tmp/config.h
14674 rm -f $tmp/config.h
14675 fi
14676 # Compute $ac_file's index in $config_headers.
14677 _am_stamp_count=1
14678 for _am_header in $config_headers :; do
14679 case $_am_header in
14680 $ac_file | $ac_file:* )
14681 break ;;
14682 * )
14683 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14684 esac
14685 done
14686 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14687 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14688 X$ac_file : 'X\(//\)[^/]' \| \
14689 X$ac_file : 'X\(//\)$' \| \
14690 X$ac_file : 'X\(/\)' \| \
14691 . : '\(.\)' 2>/dev/null ||
14692 echo X$ac_file |
14693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14695 /^X\(\/\/\)$/{ s//\1/; q; }
14696 /^X\(\/\).*/{ s//\1/; q; }
14697 s/.*/./; q'`/stamp-h$_am_stamp_count
14698 done
14699 _ACEOF
14700 cat >>$CONFIG_STATUS <<\_ACEOF
14701
14702 #
14703 # CONFIG_COMMANDS section.
14704 #
14705 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14706 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14707 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14708 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14709 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14710 X"$ac_dest" : 'X\(//\)[^/]' \| \
14711 X"$ac_dest" : 'X\(//\)$' \| \
14712 X"$ac_dest" : 'X\(/\)' \| \
14713 . : '\(.\)' 2>/dev/null ||
14714 echo X"$ac_dest" |
14715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14717 /^X\(\/\/\)$/{ s//\1/; q; }
14718 /^X\(\/\).*/{ s//\1/; q; }
14719 s/.*/./; q'`
14720 { if $as_mkdir_p; then
14721 mkdir -p "$ac_dir"
14722 else
14723 as_dir="$ac_dir"
14724 as_dirs=
14725 while test ! -d "$as_dir"; do
14726 as_dirs="$as_dir $as_dirs"
14727 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14729 X"$as_dir" : 'X\(//\)[^/]' \| \
14730 X"$as_dir" : 'X\(//\)$' \| \
14731 X"$as_dir" : 'X\(/\)' \| \
14732 . : '\(.\)' 2>/dev/null ||
14733 echo X"$as_dir" |
14734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14736 /^X\(\/\/\)$/{ s//\1/; q; }
14737 /^X\(\/\).*/{ s//\1/; q; }
14738 s/.*/./; q'`
14739 done
14740 test ! -n "$as_dirs" || mkdir $as_dirs
14741 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14742 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14743 { (exit 1); exit 1; }; }; }
14744
14745 ac_builddir=.
14746
14747 if test "$ac_dir" != .; then
14748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14749 # A "../" for each directory in $ac_dir_suffix.
14750 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14751 else
14752 ac_dir_suffix= ac_top_builddir=
14753 fi
14754
14755 case $srcdir in
14756 .) # No --srcdir option. We are building in place.
14757 ac_srcdir=.
14758 if test -z "$ac_top_builddir"; then
14759 ac_top_srcdir=.
14760 else
14761 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14762 fi ;;
14763 [\\/]* | ?:[\\/]* ) # Absolute path.
14764 ac_srcdir=$srcdir$ac_dir_suffix;
14765 ac_top_srcdir=$srcdir ;;
14766 *) # Relative path.
14767 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14768 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14769 esac
14770
14771 # Do not use `cd foo && pwd` to compute absolute paths, because
14772 # the directories may not exist.
14773 case `pwd` in
14774 .) ac_abs_builddir="$ac_dir";;
14775 *)
14776 case "$ac_dir" in
14777 .) ac_abs_builddir=`pwd`;;
14778 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14779 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14780 esac;;
14781 esac
14782 case $ac_abs_builddir in
14783 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14784 *)
14785 case ${ac_top_builddir}. in
14786 .) ac_abs_top_builddir=$ac_abs_builddir;;
14787 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14788 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14789 esac;;
14790 esac
14791 case $ac_abs_builddir in
14792 .) ac_abs_srcdir=$ac_srcdir;;
14793 *)
14794 case $ac_srcdir in
14795 .) ac_abs_srcdir=$ac_abs_builddir;;
14796 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14797 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14798 esac;;
14799 esac
14800 case $ac_abs_builddir in
14801 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14802 *)
14803 case $ac_top_srcdir in
14804 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14805 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14806 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14807 esac;;
14808 esac
14809
14810
14811 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14812 echo "$as_me: executing $ac_dest commands" >&6;}
14813 case $ac_dest in
14814 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14815 # Strip MF so we end up with the name of the file.
14816 mf=`echo "$mf" | sed -e 's/:.*$//'`
14817 # Check whether this is an Automake generated Makefile or not.
14818 # We used to match only the files named `Makefile.in', but
14819 # some people rename them; so instead we look at the file content.
14820 # Grep'ing the first line is not enough: some people post-process
14821 # each Makefile.in and add a new line on top of each file to say so.
14822 # So let's grep whole file.
14823 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14824 dirpart=`(dirname "$mf") 2>/dev/null ||
14825 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14826 X"$mf" : 'X\(//\)[^/]' \| \
14827 X"$mf" : 'X\(//\)$' \| \
14828 X"$mf" : 'X\(/\)' \| \
14829 . : '\(.\)' 2>/dev/null ||
14830 echo X"$mf" |
14831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14833 /^X\(\/\/\)$/{ s//\1/; q; }
14834 /^X\(\/\).*/{ s//\1/; q; }
14835 s/.*/./; q'`
14836 else
14837 continue
14838 fi
14839 # Extract the definition of DEPDIR, am__include, and am__quote
14840 # from the Makefile without running `make'.
14841 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14842 test -z "$DEPDIR" && continue
14843 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14844 test -z "am__include" && continue
14845 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14846 # When using ansi2knr, U may be empty or an underscore; expand it
14847 U=`sed -n 's/^U = //p' < "$mf"`
14848 # Find all dependency output files, they are included files with
14849 # $(DEPDIR) in their names. We invoke sed twice because it is the
14850 # simplest approach to changing $(DEPDIR) to its actual value in the
14851 # expansion.
14852 for file in `sed -n "
14853 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14854 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14855 # Make sure the directory exists.
14856 test -f "$dirpart/$file" && continue
14857 fdir=`(dirname "$file") 2>/dev/null ||
14858 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14859 X"$file" : 'X\(//\)[^/]' \| \
14860 X"$file" : 'X\(//\)$' \| \
14861 X"$file" : 'X\(/\)' \| \
14862 . : '\(.\)' 2>/dev/null ||
14863 echo X"$file" |
14864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14866 /^X\(\/\/\)$/{ s//\1/; q; }
14867 /^X\(\/\).*/{ s//\1/; q; }
14868 s/.*/./; q'`
14869 { if $as_mkdir_p; then
14870 mkdir -p $dirpart/$fdir
14871 else
14872 as_dir=$dirpart/$fdir
14873 as_dirs=
14874 while test ! -d "$as_dir"; do
14875 as_dirs="$as_dir $as_dirs"
14876 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14877 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14878 X"$as_dir" : 'X\(//\)[^/]' \| \
14879 X"$as_dir" : 'X\(//\)$' \| \
14880 X"$as_dir" : 'X\(/\)' \| \
14881 . : '\(.\)' 2>/dev/null ||
14882 echo X"$as_dir" |
14883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14885 /^X\(\/\/\)$/{ s//\1/; q; }
14886 /^X\(\/\).*/{ s//\1/; q; }
14887 s/.*/./; q'`
14888 done
14889 test ! -n "$as_dirs" || mkdir $as_dirs
14890 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14891 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14892 { (exit 1); exit 1; }; }; }
14893
14894 # echo "creating $dirpart/$file"
14895 echo '# dummy' > "$dirpart/$file"
14896 done
14897 done
14898 ;;
14899 libtool )
14900
14901 # See if we are running on zsh, and set the options which allow our
14902 # commands through without removal of \ escapes.
14903 if test -n "${ZSH_VERSION+set}" ; then
14904 setopt NO_GLOB_SUBST
14905 fi
14906
14907 cfgfile="${ofile}T"
14908 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14909 $RM "$cfgfile"
14910
14911 cat <<_LT_EOF >> "$cfgfile"
14912 #! $SHELL
14913
14914 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14915 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14916 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14917 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14918 #
14919 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14920 # 2006, 2007 Free Software Foundation, Inc.
14921 #
14922 # This file is part of GNU Libtool:
14923 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14924 #
14925 # This program is free software; you can redistribute it and/or modify
14926 # it under the terms of the GNU General Public License as published by
14927 # the Free Software Foundation; either version 2 of the License, or
14928 # (at your option) any later version.
14929 #
14930 # This program is distributed in the hope that it will be useful, but
14931 # WITHOUT ANY WARRANTY; without even the implied warranty of
14932 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14933 # General Public License for more details.
14934 #
14935 # You should have received a copy of the GNU General Public License
14936 # along with this program; if not, a copy can be downloaded from
14937 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14938 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14939 # MA 02110-1301, USA.
14940 #
14941 # As a special exception to the GNU General Public License, if you
14942 # distribute this file as part of a program that contains a
14943 # configuration script generated by Autoconf, you may include it under
14944 # the same distribution terms that you use for the rest of that program.
14945
14946
14947 # The names of the tagged configurations supported by this script.
14948 available_tags=""
14949
14950 # ### BEGIN LIBTOOL CONFIG
14951
14952 # Which release of libtool.m4 was used?
14953 macro_version=$macro_version
14954 macro_revision=$macro_revision
14955
14956 # Whether or not to build shared libraries.
14957 build_libtool_libs=$enable_shared
14958
14959 # Whether or not to build static libraries.
14960 build_old_libs=$enable_static
14961
14962 # What type of objects to build.
14963 pic_mode=$pic_mode
14964
14965 # Whether or not to optimize for fast installation.
14966 fast_install=$enable_fast_install
14967
14968 # The host system.
14969 host_alias=$host_alias
14970 host=$host
14971 host_os=$host_os
14972
14973 # The build system.
14974 build_alias=$build_alias
14975 build=$build
14976 build_os=$build_os
14977
14978 # A sed program that does not truncate output.
14979 SED=$lt_SED
14980
14981 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14982 Xsed="\$SED -e 1s/^X//"
14983
14984 # A grep program that handles long lines.
14985 GREP=$lt_GREP
14986
14987 # An ERE matcher.
14988 EGREP=$lt_EGREP
14989
14990 # A literal string matcher.
14991 FGREP=$lt_FGREP
14992
14993 # A BSD- or MS-compatible name lister.
14994 NM=$lt_NM
14995
14996 # Whether we need soft or hard links.
14997 LN_S=$lt_LN_S
14998
14999 # What is the maximum length of a command?
15000 max_cmd_len=$max_cmd_len
15001
15002 # Object file suffix (normally "o").
15003 objext=$ac_objext
15004
15005 # Executable file suffix (normally "").
15006 exeext=$exeext
15007
15008 # whether the shell understands "unset".
15009 lt_unset=$lt_unset
15010
15011 # turn spaces into newlines.
15012 SP2NL=$lt_lt_SP2NL
15013
15014 # turn newlines into spaces.
15015 NL2SP=$lt_lt_NL2SP
15016
15017 # How to create reloadable object files.
15018 reload_flag=$lt_reload_flag
15019 reload_cmds=$lt_reload_cmds
15020
15021 # Method to check whether dependent libraries are shared objects.
15022 deplibs_check_method=$lt_deplibs_check_method
15023
15024 # Command to use when deplibs_check_method == "file_magic".
15025 file_magic_cmd=$lt_file_magic_cmd
15026
15027 # The archiver.
15028 AR=$lt_AR
15029 AR_FLAGS=$lt_AR_FLAGS
15030
15031 # A symbol stripping program.
15032 STRIP=$lt_STRIP
15033
15034 # Commands used to install an old-style archive.
15035 RANLIB=$lt_RANLIB
15036 old_postinstall_cmds=$lt_old_postinstall_cmds
15037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15038
15039 # A C compiler.
15040 LTCC=$lt_CC
15041
15042 # LTCC compiler flags.
15043 LTCFLAGS=$lt_CFLAGS
15044
15045 # Take the output of nm and produce a listing of raw symbols and C names.
15046 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15047
15048 # Transform the output of nm in a proper C declaration.
15049 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15050
15051 # Transform the output of nm in a C name address pair.
15052 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15053
15054 # The name of the directory that contains temporary libtool files.
15055 objdir=$objdir
15056
15057 # Shell to use when invoking shell scripts.
15058 SHELL=$lt_SHELL
15059
15060 # An echo program that does not interpret backslashes.
15061 ECHO=$lt_ECHO
15062
15063 # Used to examine libraries when file_magic_cmd begins with "file".
15064 MAGIC_CMD=$MAGIC_CMD
15065
15066 # Must we lock files when doing compilation?
15067 need_locks=$lt_need_locks
15068
15069 # Old archive suffix (normally "a").
15070 libext=$libext
15071
15072 # Shared library suffix (normally ".so").
15073 shrext_cmds=$lt_shrext_cmds
15074
15075 # The commands to extract the exported symbol list from a shared archive.
15076 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15077
15078 # Variables whose values should be saved in libtool wrapper scripts and
15079 # restored at link time.
15080 variables_saved_for_relink=$lt_variables_saved_for_relink
15081
15082 # Do we need the "lib" prefix for modules?
15083 need_lib_prefix=$need_lib_prefix
15084
15085 # Do we need a version for libraries?
15086 need_version=$need_version
15087
15088 # Library versioning type.
15089 version_type=$version_type
15090
15091 # Shared library runtime path variable.
15092 runpath_var=$runpath_var
15093
15094 # Shared library path variable.
15095 shlibpath_var=$shlibpath_var
15096
15097 # Is shlibpath searched before the hard-coded library search path?
15098 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15099
15100 # Format of library name prefix.
15101 libname_spec=$lt_libname_spec
15102
15103 # List of archive names. First name is the real one, the rest are links.
15104 # The last name is the one that the linker finds with -lNAME
15105 library_names_spec=$lt_library_names_spec
15106
15107 # The coded name of the library, if different from the real name.
15108 soname_spec=$lt_soname_spec
15109
15110 # Command to use after installation of a shared archive.
15111 postinstall_cmds=$lt_postinstall_cmds
15112
15113 # Command to use after uninstallation of a shared archive.
15114 postuninstall_cmds=$lt_postuninstall_cmds
15115
15116 # Commands used to finish a libtool library installation in a directory.
15117 finish_cmds=$lt_finish_cmds
15118
15119 # As "finish_cmds", except a single script fragment to be evaled but
15120 # not shown.
15121 finish_eval=$lt_finish_eval
15122
15123 # Whether we should hardcode library paths into libraries.
15124 hardcode_into_libs=$hardcode_into_libs
15125
15126 # Compile-time system search path for libraries.
15127 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15128
15129 # Run-time system search path for libraries.
15130 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15131
15132 # Whether dlopen is supported.
15133 dlopen_support=$enable_dlopen
15134
15135 # Whether dlopen of programs is supported.
15136 dlopen_self=$enable_dlopen_self
15137
15138 # Whether dlopen of statically linked programs is supported.
15139 dlopen_self_static=$enable_dlopen_self_static
15140
15141 # Commands to strip libraries.
15142 old_striplib=$lt_old_striplib
15143 striplib=$lt_striplib
15144
15145
15146 # The linker used to build libraries.
15147 LD=$lt_LD
15148
15149 # Commands used to build an old-style archive.
15150 old_archive_cmds=$lt_old_archive_cmds
15151
15152 # A language specific compiler.
15153 CC=$lt_compiler
15154
15155 # Is the compiler the GNU compiler?
15156 with_gcc=$GCC
15157
15158 # Compiler flag to turn off builtin functions.
15159 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15160
15161 # How to pass a linker flag through the compiler.
15162 wl=$lt_lt_prog_compiler_wl
15163
15164 # Additional compiler flags for building library objects.
15165 pic_flag=$lt_lt_prog_compiler_pic
15166
15167 # Compiler flag to prevent dynamic linking.
15168 link_static_flag=$lt_lt_prog_compiler_static
15169
15170 # Does compiler simultaneously support -c and -o options?
15171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15172
15173 # Whether or not to add -lc for building shared libraries.
15174 build_libtool_need_lc=$archive_cmds_need_lc
15175
15176 # Whether or not to disallow shared libs when runtime libs are static.
15177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15178
15179 # Compiler flag to allow reflexive dlopens.
15180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15181
15182 # Compiler flag to generate shared objects directly from archives.
15183 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15184
15185 # Whether the compiler copes with passing no objects directly.
15186 compiler_needs_object=$lt_compiler_needs_object
15187
15188 # Create an old-style archive from a shared archive.
15189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15190
15191 # Create a temporary old-style archive to link instead of a shared archive.
15192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15193
15194 # Commands used to build a shared archive.
15195 archive_cmds=$lt_archive_cmds
15196 archive_expsym_cmds=$lt_archive_expsym_cmds
15197
15198 # Commands used to build a loadable module if different from building
15199 # a shared archive.
15200 module_cmds=$lt_module_cmds
15201 module_expsym_cmds=$lt_module_expsym_cmds
15202
15203 # Whether we are building with GNU ld or not.
15204 with_gnu_ld=$lt_with_gnu_ld
15205
15206 # Flag that allows shared libraries with undefined symbols to be built.
15207 allow_undefined_flag=$lt_allow_undefined_flag
15208
15209 # Flag that enforces no undefined symbols.
15210 no_undefined_flag=$lt_no_undefined_flag
15211
15212 # Flag to hardcode \$libdir into a binary during linking.
15213 # This must work even if \$libdir does not exist
15214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15215
15216 # If ld is used when linking, flag to hardcode \$libdir into a binary
15217 # during linking. This must work even if \$libdir does not exist.
15218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15219
15220 # Whether we need a single "-rpath" flag with a separated argument.
15221 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15222
15223 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15224 # DIR into the resulting binary.
15225 hardcode_direct=$hardcode_direct
15226
15227 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15228 # DIR into the resulting binary and the resulting library dependency is
15229 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15230 # library is relocated.
15231 hardcode_direct_absolute=$hardcode_direct_absolute
15232
15233 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15234 # into the resulting binary.
15235 hardcode_minus_L=$hardcode_minus_L
15236
15237 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15238 # into the resulting binary.
15239 hardcode_shlibpath_var=$hardcode_shlibpath_var
15240
15241 # Set to "yes" if building a shared library automatically hardcodes DIR
15242 # into the library and all subsequent libraries and executables linked
15243 # against it.
15244 hardcode_automatic=$hardcode_automatic
15245
15246 # Set to yes if linker adds runtime paths of dependent libraries
15247 # to runtime path list.
15248 inherit_rpath=$inherit_rpath
15249
15250 # Whether libtool must link a program against all its dependency libraries.
15251 link_all_deplibs=$link_all_deplibs
15252
15253 # Fix the shell variable \$srcfile for the compiler.
15254 fix_srcfile_path=$lt_fix_srcfile_path
15255
15256 # Set to "yes" if exported symbols are required.
15257 always_export_symbols=$always_export_symbols
15258
15259 # The commands to list exported symbols.
15260 export_symbols_cmds=$lt_export_symbols_cmds
15261
15262 # Symbols that should not be listed in the preloaded symbols.
15263 exclude_expsyms=$lt_exclude_expsyms
15264
15265 # Symbols that must always be exported.
15266 include_expsyms=$lt_include_expsyms
15267
15268 # Commands necessary for linking programs (against libraries) with templates.
15269 prelink_cmds=$lt_prelink_cmds
15270
15271 # Specify filename containing input files.
15272 file_list_spec=$lt_file_list_spec
15273
15274 # How to hardcode a shared library path into an executable.
15275 hardcode_action=$hardcode_action
15276
15277 # ### END LIBTOOL CONFIG
15278
15279 _LT_EOF
15280
15281 case $host_os in
15282 aix3*)
15283 cat <<\_LT_EOF >> "$cfgfile"
15284 # AIX sometimes has problems with the GCC collect2 program. For some
15285 # reason, if we set the COLLECT_NAMES environment variable, the problems
15286 # vanish in a puff of smoke.
15287 if test "X${COLLECT_NAMES+set}" != Xset; then
15288 COLLECT_NAMES=
15289 export COLLECT_NAMES
15290 fi
15291 _LT_EOF
15292 ;;
15293 esac
15294
15295
15296 ltmain="$ac_aux_dir/ltmain.sh"
15297
15298
15299 # We use sed instead of cat because bash on DJGPP gets confused if
15300 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15301 # text mode, it properly converts lines to CR/LF. This bash problem
15302 # is reportedly fixed, but why not run on old versions too?
15303 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15304 || (rm -f "$cfgfile"; exit 1)
15305
15306 case $xsi_shell in
15307 yes)
15308 cat << \_LT_EOF >> "$cfgfile"
15309 # func_dirname file append nondir_replacement
15310 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15311 # otherwise set result to NONDIR_REPLACEMENT.
15312 func_dirname ()
15313 {
15314 case ${1} in
15315 */*) func_dirname_result="${1%/*}${2}" ;;
15316 * ) func_dirname_result="${3}" ;;
15317 esac
15318 }
15319
15320 # func_basename file
15321 func_basename ()
15322 {
15323 func_basename_result="${1##*/}"
15324 }
15325
15326 # func_stripname prefix suffix name
15327 # strip PREFIX and SUFFIX off of NAME.
15328 # PREFIX and SUFFIX must not contain globbing or regex special
15329 # characters, hashes, percent signs, but SUFFIX may contain a leading
15330 # dot (in which case that matches only a dot).
15331 func_stripname ()
15332 {
15333 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15334 # positional parameters, so assign one to ordinary parameter first.
15335 func_stripname_result=${3}
15336 func_stripname_result=${func_stripname_result#"${1}"}
15337 func_stripname_result=${func_stripname_result%"${2}"}
15338 }
15339
15340 # func_opt_split
15341 func_opt_split ()
15342 {
15343 func_opt_split_opt=${1%%=*}
15344 func_opt_split_arg=${1#*=}
15345 }
15346
15347 # func_lo2o object
15348 func_lo2o ()
15349 {
15350 case ${1} in
15351 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15352 *) func_lo2o_result=${1} ;;
15353 esac
15354 }
15355 _LT_EOF
15356 ;;
15357 *) # Bourne compatible functions.
15358 cat << \_LT_EOF >> "$cfgfile"
15359 # func_dirname file append nondir_replacement
15360 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15361 # otherwise set result to NONDIR_REPLACEMENT.
15362 func_dirname ()
15363 {
15364 # Extract subdirectory from the argument.
15365 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15366 if test "X$func_dirname_result" = "X${1}"; then
15367 func_dirname_result="${3}"
15368 else
15369 func_dirname_result="$func_dirname_result${2}"
15370 fi
15371 }
15372
15373 # func_basename file
15374 func_basename ()
15375 {
15376 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15377 }
15378
15379 # func_stripname prefix suffix name
15380 # strip PREFIX and SUFFIX off of NAME.
15381 # PREFIX and SUFFIX must not contain globbing or regex special
15382 # characters, hashes, percent signs, but SUFFIX may contain a leading
15383 # dot (in which case that matches only a dot).
15384 # func_strip_suffix prefix name
15385 func_stripname ()
15386 {
15387 case ${2} in
15388 .*) func_stripname_result=`$ECHO "X${3}" \
15389 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15390 *) func_stripname_result=`$ECHO "X${3}" \
15391 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15392 esac
15393 }
15394
15395 # sed scripts:
15396 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15397 my_sed_long_arg='1s/^-[^=]*=//'
15398
15399 # func_opt_split
15400 func_opt_split ()
15401 {
15402 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15403 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15404 }
15405
15406 # func_lo2o object
15407 func_lo2o ()
15408 {
15409 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15410 }
15411 _LT_EOF
15412 esac
15413
15414 case $lt_shell_append in
15415 yes)
15416 cat << \_LT_EOF >> "$cfgfile"
15417
15418 # func_append var value
15419 # Append VALUE to the end of shell variable VAR.
15420 func_append ()
15421 {
15422 eval "$1+=\$2"
15423 }
15424 _LT_EOF
15425 ;;
15426 *)
15427 cat << \_LT_EOF >> "$cfgfile"
15428
15429 # func_append var value
15430 # Append VALUE to the end of shell variable VAR.
15431 func_append ()
15432 {
15433 eval "$1=\$$1\$2"
15434 }
15435 _LT_EOF
15436 ;;
15437 esac
15438
15439
15440 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15441 || (rm -f "$cfgfile"; exit 1)
15442
15443 mv -f "$cfgfile" "$ofile" ||
15444 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15445 chmod +x "$ofile"
15446
15447 ;;
15448 default-1 )
15449 for ac_file in $CONFIG_FILES; do
15450 # Support "outfile[:infile[:infile...]]"
15451 case "$ac_file" in
15452 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15453 esac
15454 # PO directories have a Makefile.in generated from Makefile.in.in.
15455 case "$ac_file" in */Makefile.in)
15456 # Adjust a relative srcdir.
15457 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15458 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15459 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15460 # In autoconf-2.13 it is called $ac_given_srcdir.
15461 # In autoconf-2.50 it is called $srcdir.
15462 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15463 case "$ac_given_srcdir" in
15464 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15465 /*) top_srcdir="$ac_given_srcdir" ;;
15466 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15467 esac
15468 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15469 rm -f "$ac_dir/POTFILES"
15470 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15471 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15472 POMAKEFILEDEPS="POTFILES.in"
15473 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15474 # on $ac_dir but don't depend on user-specified configuration
15475 # parameters.
15476 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15477 # The LINGUAS file contains the set of available languages.
15478 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15479 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15480 fi
15481 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15482 # Hide the ALL_LINGUAS assigment from automake.
15483 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15484 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15485 else
15486 # The set of available languages was given in configure.in.
15487 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15488 fi
15489 case "$ac_given_srcdir" in
15490 .) srcdirpre= ;;
15491 *) srcdirpre='$(srcdir)/' ;;
15492 esac
15493 POFILES=
15494 GMOFILES=
15495 UPDATEPOFILES=
15496 DUMMYPOFILES=
15497 for lang in $ALL_LINGUAS; do
15498 POFILES="$POFILES $srcdirpre$lang.po"
15499 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15500 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15501 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15502 done
15503 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15504 # environment variable.
15505 INST_LINGUAS=
15506 if test -n "$ALL_LINGUAS"; then
15507 for presentlang in $ALL_LINGUAS; do
15508 useit=no
15509 if test "%UNSET%" != "$LINGUAS"; then
15510 desiredlanguages="$LINGUAS"
15511 else
15512 desiredlanguages="$ALL_LINGUAS"
15513 fi
15514 for desiredlang in $desiredlanguages; do
15515 # Use the presentlang catalog if desiredlang is
15516 # a. equal to presentlang, or
15517 # b. a variant of presentlang (because in this case,
15518 # presentlang can be used as a fallback for messages
15519 # which are not translated in the desiredlang catalog).
15520 case "$desiredlang" in
15521 "$presentlang"*) useit=yes;;
15522 esac
15523 done
15524 if test $useit = yes; then
15525 INST_LINGUAS="$INST_LINGUAS $presentlang"
15526 fi
15527 done
15528 fi
15529 CATALOGS=
15530 if test -n "$INST_LINGUAS"; then
15531 for lang in $INST_LINGUAS; do
15532 CATALOGS="$CATALOGS $lang.gmo"
15533 done
15534 fi
15535 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15536 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"
15537 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15538 if test -f "$f"; then
15539 case "$f" in
15540 *.orig | *.bak | *~) ;;
15541 *) cat "$f" >> "$ac_dir/Makefile" ;;
15542 esac
15543 fi
15544 done
15545 fi
15546 ;;
15547 esac
15548 done ;;
15549 esac
15550 done
15551 _ACEOF
15552
15553 cat >>$CONFIG_STATUS <<\_ACEOF
15554
15555 { (exit 0); exit 0; }
15556 _ACEOF
15557 chmod +x $CONFIG_STATUS
15558 ac_clean_files=$ac_clean_files_save
15559
15560
15561 # configure is writing to config.log, and then calls config.status.
15562 # config.status does its own redirection, appending to config.log.
15563 # Unfortunately, on DOS this fails, as config.log is still kept open
15564 # by configure, so config.status won't be able to write to it; its
15565 # output is simply discarded. So we exec the FD to /dev/null,
15566 # effectively closing config.log, so it can be properly (re)opened and
15567 # appended to by config.status. When coming back to configure, we
15568 # need to make the FD available again.
15569 if test "$no_create" != yes; then
15570 ac_cs_success=:
15571 ac_config_status_args=
15572 test "$silent" = yes &&
15573 ac_config_status_args="$ac_config_status_args --quiet"
15574 exec 5>/dev/null
15575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15576 exec 5>>config.log
15577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15578 # would make configure fail if this is the last instruction.
15579 $ac_cs_success || { (exit 1); exit 1; }
15580 fi
15581