* linux-nat.c (linux_child_follow_fork): If following the child,
[deliverable/binutils-gdb.git] / gas / 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="as.h"
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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
544
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
553
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
748
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
791 *)
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797 ;;
798
799 esac
800 done
801
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822 do
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875 else
876 ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923
924 #
925 # Report the --help message.
926 #
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
932
933 Usage: $0 [OPTION]... [VAR=VALUE]...
934
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
937
938 Defaults for the options are specified in brackets.
939
940 Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951 _ACEOF
952
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
959
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
964
965 For better control, use the options below.
966
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980 _ACEOF
981
982 cat <<\_ACEOF
983
984 Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
988
989 System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993 _ACEOF
994 fi
995
996 if test -n "$ac_init_help"; then
997
998 cat <<\_ACEOF
999
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --disable-largefile omit support for large files
1006 --enable-shared[=PKGS]
1007 build shared libraries [default=yes]
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-targets alternative target configurations besides the primary
1014 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1015 --enable-checking enable run-time checks
1016 --enable-werror treat compile warnings as errors
1017 --enable-build-warnings enable build-time compiler warnings
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-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028
1029 Some influential environment variables:
1030 CC C compiler command
1031 CFLAGS C compiler flags
1032 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1033 nonstandard directory <lib dir>
1034 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1035 headers in a nonstandard directory <include dir>
1036 CPP C preprocessor
1037
1038 Use these variables to override the choices made by `configure' or to help
1039 it to find libraries and programs with nonstandard names/locations.
1040
1041 _ACEOF
1042 fi
1043
1044 if test "$ac_init_help" = "recursive"; then
1045 # If there are subdirs, report their specific --help.
1046 ac_popdir=`pwd`
1047 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1048 test -d $ac_dir || continue
1049 ac_builddir=.
1050
1051 if test "$ac_dir" != .; then
1052 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1053 # A "../" for each directory in $ac_dir_suffix.
1054 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055 else
1056 ac_dir_suffix= ac_top_builddir=
1057 fi
1058
1059 case $srcdir in
1060 .) # No --srcdir option. We are building in place.
1061 ac_srcdir=.
1062 if test -z "$ac_top_builddir"; then
1063 ac_top_srcdir=.
1064 else
1065 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1066 fi ;;
1067 [\\/]* | ?:[\\/]* ) # Absolute path.
1068 ac_srcdir=$srcdir$ac_dir_suffix;
1069 ac_top_srcdir=$srcdir ;;
1070 *) # Relative path.
1071 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1072 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1073 esac
1074
1075 # Do not use `cd foo && pwd` to compute absolute paths, because
1076 # the directories may not exist.
1077 case `pwd` in
1078 .) ac_abs_builddir="$ac_dir";;
1079 *)
1080 case "$ac_dir" in
1081 .) ac_abs_builddir=`pwd`;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1083 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1084 esac;;
1085 esac
1086 case $ac_abs_builddir in
1087 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 *)
1089 case ${ac_top_builddir}. in
1090 .) ac_abs_top_builddir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1092 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1093 esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_srcdir=$ac_srcdir;;
1097 *)
1098 case $ac_srcdir in
1099 .) ac_abs_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1101 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1102 esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 *)
1107 case $ac_top_srcdir in
1108 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1110 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1111 esac;;
1112 esac
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
1129 cd $ac_popdir
1130 done
1131 fi
1132
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135 cat <<\_ACEOF
1136
1137 Copyright (C) 2003 Free Software Foundation, Inc.
1138 This configure script is free software; the Free Software Foundation
1139 gives unlimited permission to copy, distribute and modify it.
1140 _ACEOF
1141 exit 0
1142 fi
1143 exec 5>config.log
1144 cat >&5 <<_ACEOF
1145 This file contains any messages produced by compilers while
1146 running configure, to aid debugging if configure makes a mistake.
1147
1148 It was created by $as_me, which was
1149 generated by GNU Autoconf 2.59. Invocation command line was
1150
1151 $ $0 $@
1152
1153 _ACEOF
1154 {
1155 cat <<_ASUNAME
1156 ## --------- ##
1157 ## Platform. ##
1158 ## --------- ##
1159
1160 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165
1166 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168
1169 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1170 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1171 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1172 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1173 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1174 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1175 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1176
1177 _ASUNAME
1178
1179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180 for as_dir in $PATH
1181 do
1182 IFS=$as_save_IFS
1183 test -z "$as_dir" && as_dir=.
1184 echo "PATH: $as_dir"
1185 done
1186
1187 } >&5
1188
1189 cat >&5 <<_ACEOF
1190
1191
1192 ## ----------- ##
1193 ## Core tests. ##
1194 ## ----------- ##
1195
1196 _ACEOF
1197
1198
1199 # Keep a trace of the command line.
1200 # Strip out --no-create and --no-recursion so they do not pile up.
1201 # Strip out --silent because we don't want to record it for future runs.
1202 # Also quote any args containing shell meta-characters.
1203 # Make two passes to allow for proper duplicate-argument suppression.
1204 ac_configure_args=
1205 ac_configure_args0=
1206 ac_configure_args1=
1207 ac_sep=
1208 ac_must_keep_next=false
1209 for ac_pass in 1 2
1210 do
1211 for ac_arg
1212 do
1213 case $ac_arg in
1214 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 continue ;;
1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1220 esac
1221 case $ac_pass in
1222 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 2)
1224 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225 if test $ac_must_keep_next = true; then
1226 ac_must_keep_next=false # Got value, back to normal.
1227 else
1228 case $ac_arg in
1229 *=* | --config-cache | -C | -disable-* | --disable-* \
1230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232 | -with-* | --with-* | -without-* | --without-* | --x)
1233 case "$ac_configure_args0 " in
1234 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1235 esac
1236 ;;
1237 -* ) ac_must_keep_next=true ;;
1238 esac
1239 fi
1240 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241 # Get rid of the leading space.
1242 ac_sep=" "
1243 ;;
1244 esac
1245 done
1246 done
1247 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249
1250 # When interrupted or exit'd, cleanup temporary files, and complete
1251 # config.log. We remove comments because anyway the quotes in there
1252 # would cause problems or look ugly.
1253 # WARNING: Be sure not to use single quotes in there, as some shells,
1254 # such as our DU 5.0 friend, will then `close' the trap.
1255 trap 'exit_status=$?
1256 # Save into config.log some information that might help in debugging.
1257 {
1258 echo
1259
1260 cat <<\_ASBOX
1261 ## ---------------- ##
1262 ## Cache variables. ##
1263 ## ---------------- ##
1264 _ASBOX
1265 echo
1266 # The following way of writing the cache mishandles newlines in values,
1267 {
1268 (set) 2>&1 |
1269 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1270 *ac_space=\ *)
1271 sed -n \
1272 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1274 ;;
1275 *)
1276 sed -n \
1277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278 ;;
1279 esac;
1280 }
1281 echo
1282
1283 cat <<\_ASBOX
1284 ## ----------------- ##
1285 ## Output variables. ##
1286 ## ----------------- ##
1287 _ASBOX
1288 echo
1289 for ac_var in $ac_subst_vars
1290 do
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1293 done | sort
1294 echo
1295
1296 if test -n "$ac_subst_files"; then
1297 cat <<\_ASBOX
1298 ## ------------- ##
1299 ## Output files. ##
1300 ## ------------- ##
1301 _ASBOX
1302 echo
1303 for ac_var in $ac_subst_files
1304 do
1305 eval ac_val=$`echo $ac_var`
1306 echo "$ac_var='"'"'$ac_val'"'"'"
1307 done | sort
1308 echo
1309 fi
1310
1311 if test -s confdefs.h; then
1312 cat <<\_ASBOX
1313 ## ----------- ##
1314 ## confdefs.h. ##
1315 ## ----------- ##
1316 _ASBOX
1317 echo
1318 sed "/^$/d" confdefs.h | sort
1319 echo
1320 fi
1321 test "$ac_signal" != 0 &&
1322 echo "$as_me: caught signal $ac_signal"
1323 echo "$as_me: exit $exit_status"
1324 } >&5
1325 rm -f core *.core &&
1326 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1327 exit $exit_status
1328 ' 0
1329 for ac_signal in 1 2 13 15; do
1330 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1331 done
1332 ac_signal=0
1333
1334 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1335 rm -rf conftest* confdefs.h
1336 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1337 echo >confdefs.h
1338
1339 # Predefined preprocessor variables.
1340
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_NAME "$PACKAGE_NAME"
1343 _ACEOF
1344
1345
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1348 _ACEOF
1349
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_STRING "$PACKAGE_STRING"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1363 _ACEOF
1364
1365
1366 # Let the site file select an alternate cache file if it wants to.
1367 # Prefer explicitly selected file to automatically selected ones.
1368 if test -z "$CONFIG_SITE"; then
1369 if test "x$prefix" != xNONE; then
1370 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 else
1372 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373 fi
1374 fi
1375 for ac_site_file in $CONFIG_SITE; do
1376 if test -r "$ac_site_file"; then
1377 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378 echo "$as_me: loading site script $ac_site_file" >&6;}
1379 sed 's/^/| /' "$ac_site_file" >&5
1380 . "$ac_site_file"
1381 fi
1382 done
1383
1384 if test -r "$cache_file"; then
1385 # Some versions of bash will fail to source /dev/null (special
1386 # files actually), so we avoid doing that.
1387 if test -f "$cache_file"; then
1388 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389 echo "$as_me: loading cache $cache_file" >&6;}
1390 case $cache_file in
1391 [\\/]* | ?:[\\/]* ) . $cache_file;;
1392 *) . ./$cache_file;;
1393 esac
1394 fi
1395 else
1396 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397 echo "$as_me: creating cache $cache_file" >&6;}
1398 >$cache_file
1399 fi
1400
1401 # Check that the precious variables saved in the cache have kept the same
1402 # value.
1403 ac_cache_corrupted=false
1404 for ac_var in `(set) 2>&1 |
1405 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407 eval ac_new_set=\$ac_env_${ac_var}_set
1408 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409 eval ac_new_val="\$ac_env_${ac_var}_value"
1410 case $ac_old_set,$ac_new_set in
1411 set,)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,set)
1416 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1418 ac_cache_corrupted=: ;;
1419 ,);;
1420 *)
1421 if test "x$ac_old_val" != "x$ac_new_val"; then
1422 # differences in whitespace do not lead to failure.
1423 ac_old_val_w=`echo x $ac_old_val`
1424 ac_new_val_w=`echo x $ac_new_val`
1425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1426 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1427 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1428 ac_cache_corrupted=:
1429 else
1430 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1431 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1432 eval $ac_var=\$ac_old_val
1433 fi
1434 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1435 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1436 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1437 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1438 fi;;
1439 esac
1440 # Pass precious variables to config.status.
1441 if test "$ac_new_set" = set; then
1442 case $ac_new_val in
1443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445 *) ac_arg=$ac_var=$ac_new_val ;;
1446 esac
1447 case " $ac_configure_args " in
1448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1449 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450 esac
1451 fi
1452 done
1453 if $ac_cache_corrupted; then
1454 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1455 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1456 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1457 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1458 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1459 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1460 { (exit 1); exit 1; }; }
1461 fi
1462
1463 ac_ext=c
1464 ac_cpp='$CPP $CPPFLAGS'
1465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492 ac_aux_dir=
1493 for ac_dir in .. $srcdir/..; do
1494 if test -f $ac_dir/install-sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install-sh -c"
1497 break
1498 elif test -f $ac_dir/install.sh; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/install.sh -c"
1501 break
1502 elif test -f $ac_dir/shtool; then
1503 ac_aux_dir=$ac_dir
1504 ac_install_sh="$ac_aux_dir/shtool install -c"
1505 break
1506 fi
1507 done
1508 if test -z "$ac_aux_dir"; then
1509 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1510 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1511 { (exit 1); exit 1; }; }
1512 fi
1513 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1514 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1515 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1516
1517 # Make sure we can run config.sub.
1518 $ac_config_sub sun4 >/dev/null 2>&1 ||
1519 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1520 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1521 { (exit 1); exit 1; }; }
1522
1523 echo "$as_me:$LINENO: checking build system type" >&5
1524 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1525 if test "${ac_cv_build+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 ac_cv_build_alias=$build_alias
1529 test -z "$ac_cv_build_alias" &&
1530 ac_cv_build_alias=`$ac_config_guess`
1531 test -z "$ac_cv_build_alias" &&
1532 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1533 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1534 { (exit 1); exit 1; }; }
1535 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1536 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1537 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1538 { (exit 1); exit 1; }; }
1539
1540 fi
1541 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1542 echo "${ECHO_T}$ac_cv_build" >&6
1543 build=$ac_cv_build
1544 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
1548
1549 echo "$as_me:$LINENO: checking host system type" >&5
1550 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1551 if test "${ac_cv_host+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554 ac_cv_host_alias=$host_alias
1555 test -z "$ac_cv_host_alias" &&
1556 ac_cv_host_alias=$ac_cv_build_alias
1557 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1559 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1560 { (exit 1); exit 1; }; }
1561
1562 fi
1563 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1564 echo "${ECHO_T}$ac_cv_host" >&6
1565 host=$ac_cv_host
1566 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571 echo "$as_me:$LINENO: checking target system type" >&5
1572 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1573 if test "${ac_cv_target+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576 ac_cv_target_alias=$target_alias
1577 test "x$ac_cv_target_alias" = "x" &&
1578 ac_cv_target_alias=$ac_cv_host_alias
1579 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1581 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584 fi
1585 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1586 echo "${ECHO_T}$ac_cv_target" >&6
1587 target=$ac_cv_target
1588 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593 # The aliases save the names the user supplied, while $host etc.
1594 # will get canonicalized.
1595 test -n "$target_alias" &&
1596 test "$program_prefix$program_suffix$program_transform_name" = \
1597 NONENONEs,x,x, &&
1598 program_prefix=${target_alias}-
1599 ac_ext=c
1600 ac_cpp='$CPP $CPPFLAGS'
1601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1604 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 CC=$ac_cv_prog_CC
1632 if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1635 else
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640 fi
1641 if test -z "$ac_cv_prog_CC"; then
1642 ac_ct_CC=$CC
1643 # Extract the first word of "gcc", so it can be a program name with args.
1644 set dummy gcc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="gcc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1663 fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678 CC=$ac_ct_CC
1679 else
1680 CC="$ac_cv_prog_CC"
1681 fi
1682
1683 if test -z "$CC"; then
1684 if test -n "$ac_tool_prefix"; then
1685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1686 set dummy ${ac_tool_prefix}cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698 IFS=$as_save_IFS
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_CC="${ac_tool_prefix}cc"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 break 2
1705 fi
1706 done
1707 done
1708
1709 fi
1710 fi
1711 CC=$ac_cv_prog_CC
1712 if test -n "$CC"; then
1713 echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6
1715 else
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1718 fi
1719
1720 fi
1721 if test -z "$ac_cv_prog_CC"; then
1722 ac_ct_CC=$CC
1723 # Extract the first word of "cc", so it can be a program name with args.
1724 set dummy cc; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1735 do
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="cc"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1743 fi
1744 done
1745 done
1746
1747 fi
1748 fi
1749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1753 else
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758 CC=$ac_ct_CC
1759 else
1760 CC="$ac_cv_prog_CC"
1761 fi
1762
1763 fi
1764 if test -z "$CC"; then
1765 # Extract the first word of "cc", so it can be a program name with args.
1766 set dummy cc; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 else
1775 ac_prog_rejected=no
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1778 do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1784 ac_prog_rejected=yes
1785 continue
1786 fi
1787 ac_cv_prog_CC="cc"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 break 2
1790 fi
1791 done
1792 done
1793
1794 if test $ac_prog_rejected = yes; then
1795 # We found a bogon in the path, so make sure we never use it.
1796 set dummy $ac_cv_prog_CC
1797 shift
1798 if test $# != 0; then
1799 # We chose a different compiler from the bogus one.
1800 # However, it has the same basename, so the bogon will be chosen
1801 # first if we set CC to just the basename; use the full file name.
1802 shift
1803 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1804 fi
1805 fi
1806 fi
1807 fi
1808 CC=$ac_cv_prog_CC
1809 if test -n "$CC"; then
1810 echo "$as_me:$LINENO: result: $CC" >&5
1811 echo "${ECHO_T}$CC" >&6
1812 else
1813 echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1815 fi
1816
1817 fi
1818 if test -z "$CC"; then
1819 if test -n "$ac_tool_prefix"; then
1820 for ac_prog in cl
1821 do
1822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1831 else
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1834 do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1842 fi
1843 done
1844 done
1845
1846 fi
1847 fi
1848 CC=$ac_cv_prog_CC
1849 if test -n "$CC"; then
1850 echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6
1852 else
1853 echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855 fi
1856
1857 test -n "$CC" && break
1858 done
1859 fi
1860 if test -z "$CC"; then
1861 ac_ct_CC=$CC
1862 for ac_prog in cl
1863 do
1864 # Extract the first word of "$ac_prog", so it can be a program name with args.
1865 set dummy $ac_prog; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_ac_ct_CC="$ac_prog"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 break 2
1884 fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891 if test -n "$ac_ct_CC"; then
1892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893 echo "${ECHO_T}$ac_ct_CC" >&6
1894 else
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899 test -n "$ac_ct_CC" && break
1900 done
1901
1902 CC=$ac_ct_CC
1903 fi
1904
1905 fi
1906
1907
1908 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1909 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1910 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1911 See \`config.log' for more details." >&5
1912 echo "$as_me: error: no acceptable C compiler found in \$PATH
1913 See \`config.log' for more details." >&2;}
1914 { (exit 1); exit 1; }; }; }
1915
1916 # Provide some information about the compiler.
1917 echo "$as_me:$LINENO:" \
1918 "checking for C compiler version" >&5
1919 ac_compiler=`set X $ac_compile; echo $2`
1920 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1921 (eval $ac_compiler --version </dev/null >&5) 2>&5
1922 ac_status=$?
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }
1925 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1926 (eval $ac_compiler -v </dev/null >&5) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }
1930 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1931 (eval $ac_compiler -V </dev/null >&5) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935
1936 cat >conftest.$ac_ext <<_ACEOF
1937 /* confdefs.h. */
1938 _ACEOF
1939 cat confdefs.h >>conftest.$ac_ext
1940 cat >>conftest.$ac_ext <<_ACEOF
1941 /* end confdefs.h. */
1942
1943 int
1944 main ()
1945 {
1946
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 ac_clean_files_save=$ac_clean_files
1952 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1953 # Try to create an executable without -o first, disregard a.out.
1954 # It will help us diagnose broken compilers, and finding out an intuition
1955 # of exeext.
1956 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1957 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1958 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1959 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1960 (eval $ac_link_default) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; then
1964 # Find the output, starting from the most likely. This scheme is
1965 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1966 # resort.
1967
1968 # Be careful to initialize this variable, since it used to be cached.
1969 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1970 ac_cv_exeext=
1971 # b.out is created by i960 compilers.
1972 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1973 do
1974 test -f "$ac_file" || continue
1975 case $ac_file in
1976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1977 ;;
1978 conftest.$ac_ext )
1979 # This is the source file.
1980 ;;
1981 [ab].out )
1982 # We found the default executable, but exeext='' is most
1983 # certainly right.
1984 break;;
1985 *.* )
1986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987 # FIXME: I believe we export ac_cv_exeext for Libtool,
1988 # but it would be cool to find out if it's true. Does anybody
1989 # maintain Libtool? --akim.
1990 export ac_cv_exeext
1991 break;;
1992 * )
1993 break;;
1994 esac
1995 done
1996 else
1997 echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2003 See \`config.log' for more details." >&5
2004 echo "$as_me: error: C compiler cannot create executables
2005 See \`config.log' for more details." >&2;}
2006 { (exit 77); exit 77; }; }; }
2007 fi
2008
2009 ac_exeext=$ac_cv_exeext
2010 echo "$as_me:$LINENO: result: $ac_file" >&5
2011 echo "${ECHO_T}$ac_file" >&6
2012
2013 # Check the compiler produces executables we can run. If not, either
2014 # the compiler is broken, or we cross compile.
2015 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2016 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2017 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2018 # If not cross compiling, check that we can run a simple program.
2019 if test "$cross_compiling" != yes; then
2020 if { ac_try='./$ac_file'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 (eval $ac_try) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2026 cross_compiling=no
2027 else
2028 if test "$cross_compiling" = maybe; then
2029 cross_compiling=yes
2030 else
2031 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2032 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2033 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2034 If you meant to cross compile, use \`--host'.
2035 See \`config.log' for more details." >&5
2036 echo "$as_me: error: cannot run C compiled programs.
2037 If you meant to cross compile, use \`--host'.
2038 See \`config.log' for more details." >&2;}
2039 { (exit 1); exit 1; }; }; }
2040 fi
2041 fi
2042 fi
2043 echo "$as_me:$LINENO: result: yes" >&5
2044 echo "${ECHO_T}yes" >&6
2045
2046 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2047 ac_clean_files=$ac_clean_files_save
2048 # Check the compiler produces executables we can run. If not, either
2049 # the compiler is broken, or we cross compile.
2050 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2051 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2052 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2053 echo "${ECHO_T}$cross_compiling" >&6
2054
2055 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2056 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2058 (eval $ac_link) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; then
2062 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2063 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2064 # work properly (i.e., refer to `conftest.exe'), while it won't with
2065 # `rm'.
2066 for ac_file in conftest.exe conftest conftest.*; do
2067 test -f "$ac_file" || continue
2068 case $ac_file in
2069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2070 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2071 export ac_cv_exeext
2072 break;;
2073 * ) break;;
2074 esac
2075 done
2076 else
2077 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2078 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2079 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2082 See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }; }
2084 fi
2085
2086 rm -f conftest$ac_cv_exeext
2087 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2088 echo "${ECHO_T}$ac_cv_exeext" >&6
2089
2090 rm -f conftest.$ac_ext
2091 EXEEXT=$ac_cv_exeext
2092 ac_exeext=$EXEEXT
2093 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2094 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2095 if test "${ac_cv_objext+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 cat >conftest.$ac_ext <<_ACEOF
2099 /* confdefs.h. */
2100 _ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2104
2105 int
2106 main ()
2107 {
2108
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 rm -f conftest.o conftest.obj
2114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2120 case $ac_file in
2121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2123 break;;
2124 esac
2125 done
2126 else
2127 echo "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2129
2130 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2131 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }; }
2137 fi
2138
2139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2140 fi
2141 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142 echo "${ECHO_T}$ac_cv_objext" >&6
2143 OBJEXT=$ac_cv_objext
2144 ac_objext=$OBJEXT
2145 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150 cat >conftest.$ac_ext <<_ACEOF
2151 /* confdefs.h. */
2152 _ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h. */
2156
2157 int
2158 main ()
2159 {
2160 #ifndef __GNUC__
2161 choke me
2162 #endif
2163
2164 ;
2165 return 0;
2166 }
2167 _ACEOF
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_compiler_gnu=yes
2191 else
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 ac_compiler_gnu=no
2196 fi
2197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2199
2200 fi
2201 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203 GCC=`test $ac_compiler_gnu = yes && echo yes`
2204 ac_test_CFLAGS=${CFLAGS+set}
2205 ac_save_CFLAGS=$CFLAGS
2206 CFLAGS="-g"
2207 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h. */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2218
2219 int
2220 main ()
2221 {
2222
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2230 ac_status=$?
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag"
2237 || test ! -s conftest.err'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 ac_cv_prog_cc_g=yes
2250 else
2251 echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 ac_cv_prog_cc_g=no
2255 fi
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260 if test "$ac_test_CFLAGS" = set; then
2261 CFLAGS=$ac_save_CFLAGS
2262 elif test $ac_cv_prog_cc_g = yes; then
2263 if test "$GCC" = yes; then
2264 CFLAGS="-g -O2"
2265 else
2266 CFLAGS="-g"
2267 fi
2268 else
2269 if test "$GCC" = yes; then
2270 CFLAGS="-O2"
2271 else
2272 CFLAGS=
2273 fi
2274 fi
2275 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 ac_cv_prog_cc_stdc=no
2281 ac_save_CC=$CC
2282 cat >conftest.$ac_ext <<_ACEOF
2283 /* confdefs.h. */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2288 #include <stdarg.h>
2289 #include <stdio.h>
2290 #include <sys/types.h>
2291 #include <sys/stat.h>
2292 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2293 struct buf { int x; };
2294 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295 static char *e (p, i)
2296 char **p;
2297 int i;
2298 {
2299 return p[i];
2300 }
2301 static char *f (char * (*g) (char **, int), char **p, ...)
2302 {
2303 char *s;
2304 va_list v;
2305 va_start (v,p);
2306 s = g (p, va_arg (v,int));
2307 va_end (v);
2308 return s;
2309 }
2310
2311 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2312 function prototypes and stuff, but not '\xHH' hex character constants.
2313 These don't provoke an error unfortunately, instead are silently treated
2314 as 'x'. The following induces an error, until -std1 is added to get
2315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2316 array size at least. It's necessary to write '\x00'==0 to get something
2317 that's true only with -std1. */
2318 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319
2320 int test (int i, double x);
2321 struct s1 {int (*f) (int a);};
2322 struct s2 {int (*f) (double a);};
2323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324 int argc;
2325 char **argv;
2326 int
2327 main ()
2328 {
2329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2330 ;
2331 return 0;
2332 }
2333 _ACEOF
2334 # Don't try gcc -ansi; that turns off useful extensions and
2335 # breaks some systems' header files.
2336 # AIX -qlanglvl=ansi
2337 # Ultrix and OSF/1 -std1
2338 # HP-UX 10.20 and later -Ae
2339 # HP-UX older versions -Aa -D_HPUX_SOURCE
2340 # SVR4 -Xc -D__EXTENSIONS__
2341 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342 do
2343 CC="$ac_save_CC $ac_arg"
2344 rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -z "$ac_c_werror_flag"
2354 || test ! -s conftest.err'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 ac_cv_prog_cc_stdc=$ac_arg
2367 break
2368 else
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 fi
2373 rm -f conftest.err conftest.$ac_objext
2374 done
2375 rm -f conftest.$ac_ext conftest.$ac_objext
2376 CC=$ac_save_CC
2377
2378 fi
2379
2380 case "x$ac_cv_prog_cc_stdc" in
2381 x|xno)
2382 echo "$as_me:$LINENO: result: none needed" >&5
2383 echo "${ECHO_T}none needed" >&6 ;;
2384 *)
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2387 CC="$CC $ac_cv_prog_cc_stdc" ;;
2388 esac
2389
2390 # Some people use a C++ compiler to compile C. Since we use `exit',
2391 # in C++ we need to declare it. In case someone uses the same compiler
2392 # for both compiling C and C++ we need to have the C++ compiler decide
2393 # the declaration of exit, since it's the most demanding environment.
2394 cat >conftest.$ac_ext <<_ACEOF
2395 #ifndef __cplusplus
2396 choke me
2397 #endif
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2402 ac_status=$?
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 for ac_declaration in \
2422 '' \
2423 'extern "C" void std::exit (int) throw (); using std::exit;' \
2424 'extern "C" void std::exit (int); using std::exit;' \
2425 'extern "C" void exit (int) throw ();' \
2426 'extern "C" void exit (int);' \
2427 'void exit (int);'
2428 do
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2435 $ac_declaration
2436 #include <stdlib.h>
2437 int
2438 main ()
2439 {
2440 exit (42);
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 :
2468 else
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 continue
2473 fi
2474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h. */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2481 $ac_declaration
2482 int
2483 main ()
2484 {
2485 exit (42);
2486 ;
2487 return 0;
2488 }
2489 _ACEOF
2490 rm -f conftest.$ac_objext
2491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492 (eval $ac_compile) 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try='test -z "$ac_c_werror_flag"
2500 || test ! -s conftest.err'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2512 break
2513 else
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 fi
2518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519 done
2520 rm -f conftest*
2521 if test -n "$ac_declaration"; then
2522 echo '#ifdef __cplusplus' >>confdefs.h
2523 echo $ac_declaration >>confdefs.h
2524 echo '#endif' >>confdefs.h
2525 fi
2526
2527 else
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 fi
2532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2541 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2542 if test "${ac_cv_search_strerror+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 ac_func_search_save_LIBS=$LIBS
2546 ac_cv_search_strerror=no
2547 cat >conftest.$ac_ext <<_ACEOF
2548 /* confdefs.h. */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2553
2554 /* Override any gcc2 internal prototype to avoid an error. */
2555 #ifdef __cplusplus
2556 extern "C"
2557 #endif
2558 /* We use char because int might match the return type of a gcc2
2559 builtin and then its argument prototype would still apply. */
2560 char strerror ();
2561 int
2562 main ()
2563 {
2564 strerror ();
2565 ;
2566 return 0;
2567 }
2568 _ACEOF
2569 rm -f conftest.$ac_objext conftest$ac_exeext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2571 (eval $ac_link) 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag"
2579 || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest$ac_exeext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_cv_search_strerror="none required"
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 fi
2597 rm -f conftest.err conftest.$ac_objext \
2598 conftest$ac_exeext conftest.$ac_ext
2599 if test "$ac_cv_search_strerror" = no; then
2600 for ac_lib in cposix; do
2601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2602 cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h. */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2608
2609 /* Override any gcc2 internal prototype to avoid an error. */
2610 #ifdef __cplusplus
2611 extern "C"
2612 #endif
2613 /* We use char because int might match the return type of a gcc2
2614 builtin and then its argument prototype would still apply. */
2615 char strerror ();
2616 int
2617 main ()
2618 {
2619 strerror ();
2620 ;
2621 return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext conftest$ac_exeext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2626 (eval $ac_link) 2>conftest.er1
2627 ac_status=$?
2628 grep -v '^ *+' conftest.er1 >conftest.err
2629 rm -f conftest.er1
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -z "$ac_c_werror_flag"
2634 || test ! -s conftest.err'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try='test -s conftest$ac_exeext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 (eval $ac_try) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2646 ac_cv_search_strerror="-l$ac_lib"
2647 break
2648 else
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652 fi
2653 rm -f conftest.err conftest.$ac_objext \
2654 conftest$ac_exeext conftest.$ac_ext
2655 done
2656 fi
2657 LIBS=$ac_func_search_save_LIBS
2658 fi
2659 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2660 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2661 if test "$ac_cv_search_strerror" != no; then
2662 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2663
2664 fi
2665
2666
2667 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2668 am__api_version="1.9"
2669 # Find a good install program. We prefer a C program (faster),
2670 # so one script is as good as another. But avoid the broken or
2671 # incompatible versions:
2672 # SysV /etc/install, /usr/sbin/install
2673 # SunOS /usr/etc/install
2674 # IRIX /sbin/install
2675 # AIX /bin/install
2676 # AmigaOS /C/install, which installs bootblocks on floppy discs
2677 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2678 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2679 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2680 # OS/2's system install, which has a completely different semantic
2681 # ./install, which can be erroneously created by make from ./install.sh.
2682 # Reject install programs that cannot install multiple files.
2683 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2684 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2685 if test -z "$INSTALL"; then
2686 if test "${ac_cv_path_install+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 # Account for people who put trailing slashes in PATH elements.
2695 case $as_dir/ in
2696 ./ | .// | /cC/* | \
2697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2698 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2699 /usr/ucb/* ) ;;
2700 *)
2701 # OSF1 and SCO ODT 3.0 have their own names for install.
2702 # Don't use installbsd from OSF since it installs stuff as root
2703 # by default.
2704 for ac_prog in ginstall scoinst install; do
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2707 if test $ac_prog = install &&
2708 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2709 # AIX install. It has an incompatible calling convention.
2710 :
2711 elif test $ac_prog = install &&
2712 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713 # program-specific install script used by HP pwplus--don't use.
2714 :
2715 else
2716 rm -rf conftest.one conftest.two conftest.dir
2717 echo one > conftest.one
2718 echo two > conftest.two
2719 mkdir conftest.dir
2720 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2721 test -s conftest.one && test -s conftest.two &&
2722 test -s conftest.dir/conftest.one &&
2723 test -s conftest.dir/conftest.two
2724 then
2725 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2726 break 3
2727 fi
2728 fi
2729 fi
2730 done
2731 done
2732 ;;
2733 esac
2734 done
2735
2736 rm -rf conftest.one conftest.two conftest.dir
2737
2738 fi
2739 if test "${ac_cv_path_install+set}" = set; then
2740 INSTALL=$ac_cv_path_install
2741 else
2742 # As a last resort, use the slow shell script. Don't cache a
2743 # value for INSTALL within a source directory, because that will
2744 # break other packages using the cache if that directory is
2745 # removed, or if the value is a relative name.
2746 INSTALL=$ac_install_sh
2747 fi
2748 fi
2749 echo "$as_me:$LINENO: result: $INSTALL" >&5
2750 echo "${ECHO_T}$INSTALL" >&6
2751
2752 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2753 # It thinks the first close brace ends the variable substitution.
2754 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2755
2756 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2757
2758 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2759
2760 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2761 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2762 # Just in case
2763 sleep 1
2764 echo timestamp > conftest.file
2765 # Do `set' in a subshell so we don't clobber the current shell's
2766 # arguments. Must try -L first in case configure is actually a
2767 # symlink; some systems play weird games with the mod time of symlinks
2768 # (eg FreeBSD returns the mod time of the symlink's containing
2769 # directory).
2770 if (
2771 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2772 if test "$*" = "X"; then
2773 # -L didn't work.
2774 set X `ls -t $srcdir/configure conftest.file`
2775 fi
2776 rm -f conftest.file
2777 if test "$*" != "X $srcdir/configure conftest.file" \
2778 && test "$*" != "X conftest.file $srcdir/configure"; then
2779
2780 # If neither matched, then we have a broken ls. This can happen
2781 # if, for instance, CONFIG_SHELL is bash and it inherits a
2782 # broken ls alias from the environment. This has actually
2783 # happened. Such a system could not be considered "sane".
2784 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2785 alias in your environment" >&5
2786 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2787 alias in your environment" >&2;}
2788 { (exit 1); exit 1; }; }
2789 fi
2790
2791 test "$2" = conftest.file
2792 )
2793 then
2794 # Ok.
2795 :
2796 else
2797 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2798 Check your system clock" >&5
2799 echo "$as_me: error: newly created file is older than distributed files!
2800 Check your system clock" >&2;}
2801 { (exit 1); exit 1; }; }
2802 fi
2803 echo "$as_me:$LINENO: result: yes" >&5
2804 echo "${ECHO_T}yes" >&6
2805 test "$program_prefix" != NONE &&
2806 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2807 # Use a double $ so make ignores it.
2808 test "$program_suffix" != NONE &&
2809 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2810 # Double any \ or $. echo might interpret backslashes.
2811 # By default was `s,x,x', remove it if useless.
2812 cat <<\_ACEOF >conftest.sed
2813 s/[\\$]/&&/g;s/;s,x,x,$//
2814 _ACEOF
2815 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2816 rm conftest.sed
2817
2818 # expand $ac_aux_dir to an absolute path
2819 am_aux_dir=`cd $ac_aux_dir && pwd`
2820
2821 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2822 # Use eval to expand $SHELL
2823 if eval "$MISSING --run true"; then
2824 am_missing_run="$MISSING --run "
2825 else
2826 am_missing_run=
2827 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2828 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2829 fi
2830
2831 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2832 # We used to keeping the `.' as first argument, in order to
2833 # allow $(mkdir_p) to be used without argument. As in
2834 # $(mkdir_p) $(somedir)
2835 # where $(somedir) is conditionally defined. However this is wrong
2836 # for two reasons:
2837 # 1. if the package is installed by a user who cannot write `.'
2838 # make install will fail,
2839 # 2. the above comment should most certainly read
2840 # $(mkdir_p) $(DESTDIR)$(somedir)
2841 # so it does not work when $(somedir) is undefined and
2842 # $(DESTDIR) is not.
2843 # To support the latter case, we have to write
2844 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2845 # so the `.' trick is pointless.
2846 mkdir_p='mkdir -p --'
2847 else
2848 # On NextStep and OpenStep, the `mkdir' command does not
2849 # recognize any option. It will interpret all options as
2850 # directories to create, and then abort because `.' already
2851 # exists.
2852 for d in ./-p ./--version;
2853 do
2854 test -d $d && rmdir $d
2855 done
2856 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2857 if test -f "$ac_aux_dir/mkinstalldirs"; then
2858 mkdir_p='$(mkinstalldirs)'
2859 else
2860 mkdir_p='$(install_sh) -d'
2861 fi
2862 fi
2863
2864 for ac_prog in gawk mawk nawk awk
2865 do
2866 # Extract the first word of "$ac_prog", so it can be a program name with args.
2867 set dummy $ac_prog; ac_word=$2
2868 echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2870 if test "${ac_cv_prog_AWK+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873 if test -n "$AWK"; then
2874 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_AWK="$ac_prog"
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887 done
2888 done
2889
2890 fi
2891 fi
2892 AWK=$ac_cv_prog_AWK
2893 if test -n "$AWK"; then
2894 echo "$as_me:$LINENO: result: $AWK" >&5
2895 echo "${ECHO_T}$AWK" >&6
2896 else
2897 echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6
2899 fi
2900
2901 test -n "$AWK" && break
2902 done
2903
2904 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2905 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2906 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2907 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 cat >conftest.make <<\_ACEOF
2911 all:
2912 @echo 'ac_maketemp="$(MAKE)"'
2913 _ACEOF
2914 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2915 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2916 if test -n "$ac_maketemp"; then
2917 eval ac_cv_prog_make_${ac_make}_set=yes
2918 else
2919 eval ac_cv_prog_make_${ac_make}_set=no
2920 fi
2921 rm -f conftest.make
2922 fi
2923 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2924 echo "$as_me:$LINENO: result: yes" >&5
2925 echo "${ECHO_T}yes" >&6
2926 SET_MAKE=
2927 else
2928 echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6
2930 SET_MAKE="MAKE=${MAKE-make}"
2931 fi
2932
2933 rm -rf .tst 2>/dev/null
2934 mkdir .tst 2>/dev/null
2935 if test -d .tst; then
2936 am__leading_dot=.
2937 else
2938 am__leading_dot=_
2939 fi
2940 rmdir .tst 2>/dev/null
2941
2942 DEPDIR="${am__leading_dot}deps"
2943
2944 ac_config_commands="$ac_config_commands depfiles"
2945
2946
2947 am_make=${MAKE-make}
2948 cat > confinc << 'END'
2949 am__doit:
2950 @echo done
2951 .PHONY: am__doit
2952 END
2953 # If we don't find an include directive, just comment out the code.
2954 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2955 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2956 am__include="#"
2957 am__quote=
2958 _am_result=none
2959 # First try GNU make style include.
2960 echo "include confinc" > confmf
2961 # We grep out `Entering directory' and `Leaving directory'
2962 # messages which can occur if `w' ends up in MAKEFLAGS.
2963 # In particular we don't look at `^make:' because GNU make might
2964 # be invoked under some other name (usually "gmake"), in which
2965 # case it prints its new name instead of `make'.
2966 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2967 am__include=include
2968 am__quote=
2969 _am_result=GNU
2970 fi
2971 # Now try BSD make style include.
2972 if test "$am__include" = "#"; then
2973 echo '.include "confinc"' > confmf
2974 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2975 am__include=.include
2976 am__quote="\""
2977 _am_result=BSD
2978 fi
2979 fi
2980
2981
2982 echo "$as_me:$LINENO: result: $_am_result" >&5
2983 echo "${ECHO_T}$_am_result" >&6
2984 rm -f confinc confmf
2985
2986 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2987 if test "${enable_dependency_tracking+set}" = set; then
2988 enableval="$enable_dependency_tracking"
2989
2990 fi;
2991 if test "x$enable_dependency_tracking" != xno; then
2992 am_depcomp="$ac_aux_dir/depcomp"
2993 AMDEPBACKSLASH='\'
2994 fi
2995
2996
2997 if test "x$enable_dependency_tracking" != xno; then
2998 AMDEP_TRUE=
2999 AMDEP_FALSE='#'
3000 else
3001 AMDEP_TRUE='#'
3002 AMDEP_FALSE=
3003 fi
3004
3005
3006
3007 # test to see if srcdir already configured
3008 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3009 test -f $srcdir/config.status; then
3010 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3011 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3012 { (exit 1); exit 1; }; }
3013 fi
3014
3015 # test whether we have cygpath
3016 if test -z "$CYGPATH_W"; then
3017 if (cygpath --version) >/dev/null 2>/dev/null; then
3018 CYGPATH_W='cygpath -w'
3019 else
3020 CYGPATH_W=echo
3021 fi
3022 fi
3023
3024
3025 # Define the identity of the package.
3026 PACKAGE=gas
3027 VERSION=${BFD_VERSION}
3028
3029
3030 cat >>confdefs.h <<_ACEOF
3031 #define PACKAGE "$PACKAGE"
3032 _ACEOF
3033
3034
3035 cat >>confdefs.h <<_ACEOF
3036 #define VERSION "$VERSION"
3037 _ACEOF
3038
3039 # Some tools Automake needs.
3040
3041 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3042
3043
3044 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3045
3046
3047 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3048
3049
3050 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3051
3052
3053 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3054
3055 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3056
3057 # Installed binaries are usually stripped using `strip' when the user
3058 # run `make install-strip'. However `strip' might not be the right
3059 # tool to use in cross-compilation environments, therefore Automake
3060 # will honor the `STRIP' environment variable to overrule this program.
3061 if test "$cross_compiling" != no; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}strip; ac_word=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_STRIP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 if test -n "$STRIP"; then
3071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084 done
3085 done
3086
3087 fi
3088 fi
3089 STRIP=$ac_cv_prog_STRIP
3090 if test -n "$STRIP"; then
3091 echo "$as_me:$LINENO: result: $STRIP" >&5
3092 echo "${ECHO_T}$STRIP" >&6
3093 else
3094 echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3096 fi
3097
3098 fi
3099 if test -z "$ac_cv_prog_STRIP"; then
3100 ac_ct_STRIP=$STRIP
3101 # Extract the first word of "strip", so it can be a program name with args.
3102 set dummy strip; ac_word=$2
3103 echo "$as_me:$LINENO: checking for $ac_word" >&5
3104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3105 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 if test -n "$ac_ct_STRIP"; then
3109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_STRIP="strip"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122 done
3123 done
3124
3125 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3126 fi
3127 fi
3128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3129 if test -n "$ac_ct_STRIP"; then
3130 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3131 echo "${ECHO_T}$ac_ct_STRIP" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3135 fi
3136
3137 STRIP=$ac_ct_STRIP
3138 else
3139 STRIP="$ac_cv_prog_STRIP"
3140 fi
3141
3142 fi
3143 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3144
3145 # We need awk for the "check" target. The system "awk" is bad on
3146 # some platforms.
3147 # Always define AMTAR for backward compatibility.
3148
3149 AMTAR=${AMTAR-"${am_missing_run}tar"}
3150
3151 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3152
3153
3154
3155
3156 depcc="$CC" am_compiler_list=
3157
3158 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3159 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3160 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3164 # We make a subdir and do the tests there. Otherwise we can end up
3165 # making bogus files that we don't know about and never remove. For
3166 # instance it was reported that on HP-UX the gcc test will end up
3167 # making a dummy file named `D' -- because `-MD' means `put the output
3168 # in D'.
3169 mkdir conftest.dir
3170 # Copy depcomp to subdir because otherwise we won't find it if we're
3171 # using a relative directory.
3172 cp "$am_depcomp" conftest.dir
3173 cd conftest.dir
3174 # We will build objects and dependencies in a subdirectory because
3175 # it helps to detect inapplicable dependency modes. For instance
3176 # both Tru64's cc and ICC support -MD to output dependencies as a
3177 # side effect of compilation, but ICC will put the dependencies in
3178 # the current directory while Tru64 will put them in the object
3179 # directory.
3180 mkdir sub
3181
3182 am_cv_CC_dependencies_compiler_type=none
3183 if test "$am_compiler_list" = ""; then
3184 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3185 fi
3186 for depmode in $am_compiler_list; do
3187 # Setup a source with many dependencies, because some compilers
3188 # like to wrap large dependency lists on column 80 (with \), and
3189 # we should not choose a depcomp mode which is confused by this.
3190 #
3191 # We need to recreate these files for each test, as the compiler may
3192 # overwrite some of them when testing with obscure command lines.
3193 # This happens at least with the AIX C compiler.
3194 : > sub/conftest.c
3195 for i in 1 2 3 4 5 6; do
3196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3197 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3198 # Solaris 8's {/usr,}/bin/sh.
3199 touch sub/conftst$i.h
3200 done
3201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3202
3203 case $depmode in
3204 nosideeffect)
3205 # after this tag, mechanisms are not by side-effect, so they'll
3206 # only be used when explicitly requested
3207 if test "x$enable_dependency_tracking" = xyes; then
3208 continue
3209 else
3210 break
3211 fi
3212 ;;
3213 none) break ;;
3214 esac
3215 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3216 # mode. It turns out that the SunPro C++ compiler does not properly
3217 # handle `-M -o', and we need to detect this.
3218 if depmode=$depmode \
3219 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3220 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3221 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3222 >/dev/null 2>conftest.err &&
3223 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3224 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3225 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3226 # icc doesn't choke on unknown options, it will just issue warnings
3227 # or remarks (even with -Werror). So we grep stderr for any message
3228 # that says an option was ignored or not supported.
3229 # When given -MP, icc 7.0 and 7.1 complain thusly:
3230 # icc: Command line warning: ignoring option '-M'; no argument required
3231 # The diagnosis changed in icc 8.0:
3232 # icc: Command line remark: option '-MP' not supported
3233 if (grep 'ignoring option' conftest.err ||
3234 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3235 am_cv_CC_dependencies_compiler_type=$depmode
3236 break
3237 fi
3238 fi
3239 done
3240
3241 cd ..
3242 rm -rf conftest.dir
3243 else
3244 am_cv_CC_dependencies_compiler_type=none
3245 fi
3246
3247 fi
3248 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3249 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3250 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3251
3252
3253
3254 if
3255 test "x$enable_dependency_tracking" != xno \
3256 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3257 am__fastdepCC_TRUE=
3258 am__fastdepCC_FALSE='#'
3259 else
3260 am__fastdepCC_TRUE='#'
3261 am__fastdepCC_FALSE=
3262 fi
3263
3264
3265
3266
3267 ac_ext=c
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296
3297 fi
3298 fi
3299 CC=$ac_cv_prog_CC
3300 if test -n "$CC"; then
3301 echo "$as_me:$LINENO: result: $CC" >&5
3302 echo "${ECHO_T}$CC" >&6
3303 else
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 fi
3307
3308 fi
3309 if test -z "$ac_cv_prog_CC"; then
3310 ac_ct_CC=$CC
3311 # Extract the first word of "gcc", so it can be a program name with args.
3312 set dummy gcc; ac_word=$2
3313 echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_ac_ct_CC="gcc"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332 done
3333 done
3334
3335 fi
3336 fi
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3340 echo "${ECHO_T}$ac_ct_CC" >&6
3341 else
3342 echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3344 fi
3345
3346 CC=$ac_ct_CC
3347 else
3348 CC="$ac_cv_prog_CC"
3349 fi
3350
3351 if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3354 set dummy ${ac_tool_prefix}cc; ac_word=$2
3355 echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3357 if test "${ac_cv_prog_CC+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_CC="${ac_tool_prefix}cc"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381 echo "$as_me:$LINENO: result: $CC" >&5
3382 echo "${ECHO_T}$CC" >&6
3383 else
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386 fi
3387
3388 fi
3389 if test -z "$ac_cv_prog_CC"; then
3390 ac_ct_CC=$CC
3391 # Extract the first word of "cc", so it can be a program name with args.
3392 set dummy cc; ac_word=$2
3393 echo "$as_me:$LINENO: checking for $ac_word" >&5
3394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3395 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 if test -n "$ac_ct_CC"; then
3399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_ac_ct_CC="cc"
3409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414
3415 fi
3416 fi
3417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418 if test -n "$ac_ct_CC"; then
3419 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3420 echo "${ECHO_T}$ac_ct_CC" >&6
3421 else
3422 echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3424 fi
3425
3426 CC=$ac_ct_CC
3427 else
3428 CC="$ac_cv_prog_CC"
3429 fi
3430
3431 fi
3432 if test -z "$CC"; then
3433 # Extract the first word of "cc", so it can be a program name with args.
3434 set dummy cc; ac_word=$2
3435 echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437 if test "${ac_cv_prog_CC+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 ac_prog_rejected=no
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3446 do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3452 ac_prog_rejected=yes
3453 continue
3454 fi
3455 ac_cv_prog_CC="cc"
3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459 done
3460 done
3461
3462 if test $ac_prog_rejected = yes; then
3463 # We found a bogon in the path, so make sure we never use it.
3464 set dummy $ac_cv_prog_CC
3465 shift
3466 if test $# != 0; then
3467 # We chose a different compiler from the bogus one.
3468 # However, it has the same basename, so the bogon will be chosen
3469 # first if we set CC to just the basename; use the full file name.
3470 shift
3471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3472 fi
3473 fi
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478 echo "$as_me:$LINENO: result: $CC" >&5
3479 echo "${ECHO_T}$CC" >&6
3480 else
3481 echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3483 fi
3484
3485 fi
3486 if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in cl
3489 do
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494 if test "${ac_cv_prog_CC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511 done
3512 done
3513
3514 fi
3515 fi
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518 echo "$as_me:$LINENO: result: $CC" >&5
3519 echo "${ECHO_T}$CC" >&6
3520 else
3521 echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6
3523 fi
3524
3525 test -n "$CC" && break
3526 done
3527 fi
3528 if test -z "$CC"; then
3529 ac_ct_CC=$CC
3530 for ac_prog in cl
3531 do
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549 ac_cv_prog_ac_ct_CC="$ac_prog"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3552 fi
3553 done
3554 done
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3561 echo "${ECHO_T}$ac_ct_CC" >&6
3562 else
3563 echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6
3565 fi
3566
3567 test -n "$ac_ct_CC" && break
3568 done
3569
3570 CC=$ac_ct_CC
3571 fi
3572
3573 fi
3574
3575
3576 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3577 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3579 See \`config.log' for more details." >&5
3580 echo "$as_me: error: no acceptable C compiler found in \$PATH
3581 See \`config.log' for more details." >&2;}
3582 { (exit 1); exit 1; }; }; }
3583
3584 # Provide some information about the compiler.
3585 echo "$as_me:$LINENO:" \
3586 "checking for C compiler version" >&5
3587 ac_compiler=`set X $ac_compile; echo $2`
3588 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3589 (eval $ac_compiler --version </dev/null >&5) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }
3593 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3594 (eval $ac_compiler -v </dev/null >&5) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }
3598 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3599 (eval $ac_compiler -V </dev/null >&5) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }
3603
3604 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3605 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3606 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615
3616 int
3617 main ()
3618 {
3619 #ifndef __GNUC__
3620 choke me
3621 #endif
3622
3623 ;
3624 return 0;
3625 }
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629 (eval $ac_compile) 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_c_werror_flag"
3637 || test ! -s conftest.err'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; } &&
3643 { ac_try='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_compiler_gnu=yes
3650 else
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 ac_compiler_gnu=no
3655 fi
3656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3657 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3658
3659 fi
3660 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3661 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3662 GCC=`test $ac_compiler_gnu = yes && echo yes`
3663 ac_test_CFLAGS=${CFLAGS+set}
3664 ac_save_CFLAGS=$CFLAGS
3665 CFLAGS="-g"
3666 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3667 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3668 if test "${ac_cv_prog_cc_g+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671 cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h. */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677
3678 int
3679 main ()
3680 {
3681
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 rm -f conftest.$ac_objext
3687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688 (eval $ac_compile) 2>conftest.er1
3689 ac_status=$?
3690 grep -v '^ *+' conftest.er1 >conftest.err
3691 rm -f conftest.er1
3692 cat conftest.err >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } &&
3695 { ac_try='test -z "$ac_c_werror_flag"
3696 || test ! -s conftest.err'
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 (eval $ac_try) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; } &&
3702 { ac_try='test -s conftest.$ac_objext'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3708 ac_cv_prog_cc_g=yes
3709 else
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 ac_cv_prog_cc_g=no
3714 fi
3715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716 fi
3717 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3718 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3719 if test "$ac_test_CFLAGS" = set; then
3720 CFLAGS=$ac_save_CFLAGS
3721 elif test $ac_cv_prog_cc_g = yes; then
3722 if test "$GCC" = yes; then
3723 CFLAGS="-g -O2"
3724 else
3725 CFLAGS="-g"
3726 fi
3727 else
3728 if test "$GCC" = yes; then
3729 CFLAGS="-O2"
3730 else
3731 CFLAGS=
3732 fi
3733 fi
3734 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3735 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3736 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 ac_cv_prog_cc_stdc=no
3740 ac_save_CC=$CC
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3747 #include <stdarg.h>
3748 #include <stdio.h>
3749 #include <sys/types.h>
3750 #include <sys/stat.h>
3751 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3752 struct buf { int x; };
3753 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3754 static char *e (p, i)
3755 char **p;
3756 int i;
3757 {
3758 return p[i];
3759 }
3760 static char *f (char * (*g) (char **, int), char **p, ...)
3761 {
3762 char *s;
3763 va_list v;
3764 va_start (v,p);
3765 s = g (p, va_arg (v,int));
3766 va_end (v);
3767 return s;
3768 }
3769
3770 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3771 function prototypes and stuff, but not '\xHH' hex character constants.
3772 These don't provoke an error unfortunately, instead are silently treated
3773 as 'x'. The following induces an error, until -std1 is added to get
3774 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3775 array size at least. It's necessary to write '\x00'==0 to get something
3776 that's true only with -std1. */
3777 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3778
3779 int test (int i, double x);
3780 struct s1 {int (*f) (int a);};
3781 struct s2 {int (*f) (double a);};
3782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3783 int argc;
3784 char **argv;
3785 int
3786 main ()
3787 {
3788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 # Don't try gcc -ansi; that turns off useful extensions and
3794 # breaks some systems' header files.
3795 # AIX -qlanglvl=ansi
3796 # Ultrix and OSF/1 -std1
3797 # HP-UX 10.20 and later -Ae
3798 # HP-UX older versions -Aa -D_HPUX_SOURCE
3799 # SVR4 -Xc -D__EXTENSIONS__
3800 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3801 do
3802 CC="$ac_save_CC $ac_arg"
3803 rm -f conftest.$ac_objext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3805 (eval $ac_compile) 2>conftest.er1
3806 ac_status=$?
3807 grep -v '^ *+' conftest.er1 >conftest.err
3808 rm -f conftest.er1
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } &&
3812 { ac_try='test -z "$ac_c_werror_flag"
3813 || test ! -s conftest.err'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; } &&
3819 { ac_try='test -s conftest.$ac_objext'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 (eval $ac_try) 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 ac_cv_prog_cc_stdc=$ac_arg
3826 break
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 fi
3832 rm -f conftest.err conftest.$ac_objext
3833 done
3834 rm -f conftest.$ac_ext conftest.$ac_objext
3835 CC=$ac_save_CC
3836
3837 fi
3838
3839 case "x$ac_cv_prog_cc_stdc" in
3840 x|xno)
3841 echo "$as_me:$LINENO: result: none needed" >&5
3842 echo "${ECHO_T}none needed" >&6 ;;
3843 *)
3844 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3845 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3846 CC="$CC $ac_cv_prog_cc_stdc" ;;
3847 esac
3848
3849 # Some people use a C++ compiler to compile C. Since we use `exit',
3850 # in C++ we need to declare it. In case someone uses the same compiler
3851 # for both compiling C and C++ we need to have the C++ compiler decide
3852 # the declaration of exit, since it's the most demanding environment.
3853 cat >conftest.$ac_ext <<_ACEOF
3854 #ifndef __cplusplus
3855 choke me
3856 #endif
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 for ac_declaration in \
3881 '' \
3882 'extern "C" void std::exit (int) throw (); using std::exit;' \
3883 'extern "C" void std::exit (int); using std::exit;' \
3884 'extern "C" void exit (int) throw ();' \
3885 'extern "C" void exit (int);' \
3886 'void exit (int);'
3887 do
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h. */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894 $ac_declaration
3895 #include <stdlib.h>
3896 int
3897 main ()
3898 {
3899 exit (42);
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 rm -f conftest.$ac_objext
3905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>conftest.er1
3907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -z "$ac_c_werror_flag"
3914 || test ! -s conftest.err'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; } &&
3920 { ac_try='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 :
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 continue
3932 fi
3933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3934 cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h. */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 $ac_declaration
3941 int
3942 main ()
3943 {
3944 exit (42);
3945 ;
3946 return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_c_werror_flag"
3959 || test ! -s conftest.err'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 (eval $ac_try) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; } &&
3965 { ac_try='test -s conftest.$ac_objext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 break
3972 else
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976 fi
3977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3978 done
3979 rm -f conftest*
3980 if test -n "$ac_declaration"; then
3981 echo '#ifdef __cplusplus' >>confdefs.h
3982 echo $ac_declaration >>confdefs.h
3983 echo '#endif' >>confdefs.h
3984 fi
3985
3986 else
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 fi
3991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3992 ac_ext=c
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define _GNU_SOURCE 1
4001 _ACEOF
4002
4003
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4010 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4011 # On Suns, sometimes $CPP names a directory.
4012 if test -n "$CPP" && test -d "$CPP"; then
4013 CPP=
4014 fi
4015 if test -z "$CPP"; then
4016 if test "${ac_cv_prog_CPP+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 # Double quotes because CPP needs to be expanded
4020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4021 do
4022 ac_preproc_ok=false
4023 for ac_c_preproc_warn_flag in '' yes
4024 do
4025 # Use a header file that comes with gcc, so configuring glibc
4026 # with a fresh cross-compiler works.
4027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028 # <limits.h> exists even on freestanding compilers.
4029 # On the NeXT, cc -E runs the code through the compiler's parser,
4030 # not just through cpp. "Syntax error" is here to catch this case.
4031 cat >conftest.$ac_ext <<_ACEOF
4032 /* confdefs.h. */
4033 _ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h. */
4037 #ifdef __STDC__
4038 # include <limits.h>
4039 #else
4040 # include <assert.h>
4041 #endif
4042 Syntax error
4043 _ACEOF
4044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } >/dev/null; then
4052 if test -s conftest.err; then
4053 ac_cpp_err=$ac_c_preproc_warn_flag
4054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4055 else
4056 ac_cpp_err=
4057 fi
4058 else
4059 ac_cpp_err=yes
4060 fi
4061 if test -z "$ac_cpp_err"; then
4062 :
4063 else
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 # Broken: fails on valid input.
4068 continue
4069 fi
4070 rm -f conftest.err conftest.$ac_ext
4071
4072 # OK, works on sane cases. Now check whether non-existent headers
4073 # can be detected and how.
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 #include <ac_nonexistent.h>
4081 _ACEOF
4082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } >/dev/null; then
4090 if test -s conftest.err; then
4091 ac_cpp_err=$ac_c_preproc_warn_flag
4092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4093 else
4094 ac_cpp_err=
4095 fi
4096 else
4097 ac_cpp_err=yes
4098 fi
4099 if test -z "$ac_cpp_err"; then
4100 # Broken: success on invalid input.
4101 continue
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 # Passes both tests.
4107 ac_preproc_ok=:
4108 break
4109 fi
4110 rm -f conftest.err conftest.$ac_ext
4111
4112 done
4113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4114 rm -f conftest.err conftest.$ac_ext
4115 if $ac_preproc_ok; then
4116 break
4117 fi
4118
4119 done
4120 ac_cv_prog_CPP=$CPP
4121
4122 fi
4123 CPP=$ac_cv_prog_CPP
4124 else
4125 ac_cv_prog_CPP=$CPP
4126 fi
4127 echo "$as_me:$LINENO: result: $CPP" >&5
4128 echo "${ECHO_T}$CPP" >&6
4129 ac_preproc_ok=false
4130 for ac_c_preproc_warn_flag in '' yes
4131 do
4132 # Use a header file that comes with gcc, so configuring glibc
4133 # with a fresh cross-compiler works.
4134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4135 # <limits.h> exists even on freestanding compilers.
4136 # On the NeXT, cc -E runs the code through the compiler's parser,
4137 # not just through cpp. "Syntax error" is here to catch this case.
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #ifdef __STDC__
4145 # include <limits.h>
4146 #else
4147 # include <assert.h>
4148 #endif
4149 Syntax error
4150 _ACEOF
4151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } >/dev/null; then
4159 if test -s conftest.err; then
4160 ac_cpp_err=$ac_c_preproc_warn_flag
4161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4162 else
4163 ac_cpp_err=
4164 fi
4165 else
4166 ac_cpp_err=yes
4167 fi
4168 if test -z "$ac_cpp_err"; then
4169 :
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 # Broken: fails on valid input.
4175 continue
4176 fi
4177 rm -f conftest.err conftest.$ac_ext
4178
4179 # OK, works on sane cases. Now check whether non-existent headers
4180 # can be detected and how.
4181 cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h. */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4187 #include <ac_nonexistent.h>
4188 _ACEOF
4189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } >/dev/null; then
4197 if test -s conftest.err; then
4198 ac_cpp_err=$ac_c_preproc_warn_flag
4199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4200 else
4201 ac_cpp_err=
4202 fi
4203 else
4204 ac_cpp_err=yes
4205 fi
4206 if test -z "$ac_cpp_err"; then
4207 # Broken: success on invalid input.
4208 continue
4209 else
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 # Passes both tests.
4214 ac_preproc_ok=:
4215 break
4216 fi
4217 rm -f conftest.err conftest.$ac_ext
4218
4219 done
4220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4221 rm -f conftest.err conftest.$ac_ext
4222 if $ac_preproc_ok; then
4223 :
4224 else
4225 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4226 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4228 See \`config.log' for more details." >&5
4229 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4230 See \`config.log' for more details." >&2;}
4231 { (exit 1); exit 1; }; }; }
4232 fi
4233
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241 echo "$as_me:$LINENO: checking for egrep" >&5
4242 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4243 if test "${ac_cv_prog_egrep+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4247 then ac_cv_prog_egrep='grep -E'
4248 else ac_cv_prog_egrep='egrep'
4249 fi
4250 fi
4251 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4252 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4253 EGREP=$ac_cv_prog_egrep
4254
4255
4256 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4257 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4258 if test "${ac_cv_header_stdc+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #include <stdlib.h>
4268 #include <stdarg.h>
4269 #include <string.h>
4270 #include <float.h>
4271
4272 int
4273 main ()
4274 {
4275
4276 ;
4277 return 0;
4278 }
4279 _ACEOF
4280 rm -f conftest.$ac_objext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282 (eval $ac_compile) 2>conftest.er1
4283 ac_status=$?
4284 grep -v '^ *+' conftest.er1 >conftest.err
4285 rm -f conftest.er1
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -z "$ac_c_werror_flag"
4290 || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 (eval $ac_try) 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest.$ac_objext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 ac_cv_header_stdc=yes
4303 else
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 ac_cv_header_stdc=no
4308 fi
4309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4310
4311 if test $ac_cv_header_stdc = yes; then
4312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #include <string.h>
4320
4321 _ACEOF
4322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323 $EGREP "memchr" >/dev/null 2>&1; then
4324 :
4325 else
4326 ac_cv_header_stdc=no
4327 fi
4328 rm -f conftest*
4329
4330 fi
4331
4332 if test $ac_cv_header_stdc = yes; then
4333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <stdlib.h>
4341
4342 _ACEOF
4343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4344 $EGREP "free" >/dev/null 2>&1; then
4345 :
4346 else
4347 ac_cv_header_stdc=no
4348 fi
4349 rm -f conftest*
4350
4351 fi
4352
4353 if test $ac_cv_header_stdc = yes; then
4354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4355 if test "$cross_compiling" = yes; then
4356 :
4357 else
4358 cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h. */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4364 #include <ctype.h>
4365 #if ((' ' & 0x0FF) == 0x020)
4366 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4367 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4368 #else
4369 # define ISLOWER(c) \
4370 (('a' <= (c) && (c) <= 'i') \
4371 || ('j' <= (c) && (c) <= 'r') \
4372 || ('s' <= (c) && (c) <= 'z'))
4373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4374 #endif
4375
4376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4377 int
4378 main ()
4379 {
4380 int i;
4381 for (i = 0; i < 256; i++)
4382 if (XOR (islower (i), ISLOWER (i))
4383 || toupper (i) != TOUPPER (i))
4384 exit(2);
4385 exit (0);
4386 }
4387 _ACEOF
4388 rm -f conftest$ac_exeext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4390 (eval $ac_link) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 :
4400 else
4401 echo "$as_me: program exited with status $ac_status" >&5
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 ( exit $ac_status )
4406 ac_cv_header_stdc=no
4407 fi
4408 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4409 fi
4410 fi
4411 fi
4412 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4413 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4414 if test $ac_cv_header_stdc = yes; then
4415
4416 cat >>confdefs.h <<\_ACEOF
4417 #define STDC_HEADERS 1
4418 _ACEOF
4419
4420 fi
4421
4422 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4433 inttypes.h stdint.h unistd.h
4434 do
4435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4436 echo "$as_me:$LINENO: checking for $ac_header" >&5
4437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h. */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 $ac_includes_default
4448
4449 #include <$ac_header>
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -z "$ac_c_werror_flag"
4461 || test ! -s conftest.err'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 eval "$as_ac_Header=yes"
4474 else
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 eval "$as_ac_Header=no"
4479 fi
4480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 fi
4482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4485 cat >>confdefs.h <<_ACEOF
4486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487 _ACEOF
4488
4489 fi
4490
4491 done
4492
4493
4494
4495 if test "${ac_cv_header_minix_config_h+set}" = set; then
4496 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4497 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4498 if test "${ac_cv_header_minix_config_h+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 fi
4501 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4502 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4503 else
4504 # Is the header compilable?
4505 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4506 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 $ac_includes_default
4514 #include <minix/config.h>
4515 _ACEOF
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4519 ac_status=$?
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_header_compiler=yes
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 ac_header_compiler=no
4544 fi
4545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4547 echo "${ECHO_T}$ac_header_compiler" >&6
4548
4549 # Is the header present?
4550 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4551 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4552 cat >conftest.$ac_ext <<_ACEOF
4553 /* confdefs.h. */
4554 _ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4558 #include <minix/config.h>
4559 _ACEOF
4560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } >/dev/null; then
4568 if test -s conftest.err; then
4569 ac_cpp_err=$ac_c_preproc_warn_flag
4570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4571 else
4572 ac_cpp_err=
4573 fi
4574 else
4575 ac_cpp_err=yes
4576 fi
4577 if test -z "$ac_cpp_err"; then
4578 ac_header_preproc=yes
4579 else
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 ac_header_preproc=no
4584 fi
4585 rm -f conftest.err conftest.$ac_ext
4586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4587 echo "${ECHO_T}$ac_header_preproc" >&6
4588
4589 # So? What about this header?
4590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4591 yes:no: )
4592 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4593 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4595 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4596 ac_header_preproc=yes
4597 ;;
4598 no:yes:* )
4599 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4600 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4602 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4604 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4606 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4608 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4609 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4610 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4611 (
4612 cat <<\_ASBOX
4613 ## ------------------------------------------ ##
4614 ## Report this to the AC_PACKAGE_NAME lists. ##
4615 ## ------------------------------------------ ##
4616 _ASBOX
4617 ) |
4618 sed "s/^/$as_me: WARNING: /" >&2
4619 ;;
4620 esac
4621 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4622 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4623 if test "${ac_cv_header_minix_config_h+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 ac_cv_header_minix_config_h=$ac_header_preproc
4627 fi
4628 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4629 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4630
4631 fi
4632 if test $ac_cv_header_minix_config_h = yes; then
4633 MINIX=yes
4634 else
4635 MINIX=
4636 fi
4637
4638
4639 if test "$MINIX" = yes; then
4640
4641 cat >>confdefs.h <<\_ACEOF
4642 #define _POSIX_SOURCE 1
4643 _ACEOF
4644
4645
4646 cat >>confdefs.h <<\_ACEOF
4647 #define _POSIX_1_SOURCE 2
4648 _ACEOF
4649
4650
4651 cat >>confdefs.h <<\_ACEOF
4652 #define _MINIX 1
4653 _ACEOF
4654
4655 fi
4656
4657
4658
4659 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4660 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4661 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664 cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670
4671 # define __EXTENSIONS__ 1
4672 $ac_includes_default
4673 int
4674 main ()
4675 {
4676
4677 ;
4678 return 0;
4679 }
4680 _ACEOF
4681 rm -f conftest.$ac_objext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4683 (eval $ac_compile) 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -z "$ac_c_werror_flag"
4691 || test ! -s conftest.err'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; } &&
4697 { ac_try='test -s conftest.$ac_objext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_cv_safe_to_define___extensions__=yes
4704 else
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708 ac_cv_safe_to_define___extensions__=no
4709 fi
4710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4711 fi
4712 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4713 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4714 test $ac_cv_safe_to_define___extensions__ = yes &&
4715 cat >>confdefs.h <<\_ACEOF
4716 #define __EXTENSIONS__ 1
4717 _ACEOF
4718
4719 cat >>confdefs.h <<\_ACEOF
4720 #define _ALL_SOURCE 1
4721 _ACEOF
4722
4723 cat >>confdefs.h <<\_ACEOF
4724 #define _GNU_SOURCE 1
4725 _ACEOF
4726
4727 cat >>confdefs.h <<\_ACEOF
4728 #define _POSIX_PTHREAD_SEMANTICS 1
4729 _ACEOF
4730
4731 cat >>confdefs.h <<\_ACEOF
4732 #define _TANDEM_SOURCE 1
4733 _ACEOF
4734
4735
4736 # Check whether --enable-largefile or --disable-largefile was given.
4737 if test "${enable_largefile+set}" = set; then
4738 enableval="$enable_largefile"
4739
4740 fi;
4741 if test "$enable_largefile" != no; then
4742
4743 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4744 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4745 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 ac_cv_sys_largefile_CC=no
4749 if test "$GCC" != yes; then
4750 ac_save_CC=$CC
4751 while :; do
4752 # IRIX 6.2 and later do not support large files by default,
4753 # so use the C compiler's -n32 option if that helps.
4754 cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h. */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 #include <sys/types.h>
4761 /* Check that off_t can represent 2**63 - 1 correctly.
4762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4763 since some C++ compilers masquerading as C compilers
4764 incorrectly reject 9223372036854775807. */
4765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4767 && LARGE_OFF_T % 2147483647 == 1)
4768 ? 1 : -1];
4769 int
4770 main ()
4771 {
4772
4773 ;
4774 return 0;
4775 }
4776 _ACEOF
4777 rm -f conftest.$ac_objext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>conftest.er1
4780 ac_status=$?
4781 grep -v '^ *+' conftest.er1 >conftest.err
4782 rm -f conftest.er1
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -z "$ac_c_werror_flag"
4787 || test ! -s conftest.err'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 (eval $ac_try) 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; } &&
4793 { ac_try='test -s conftest.$ac_objext'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; }; then
4799 break
4800 else
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4803
4804 fi
4805 rm -f conftest.err conftest.$ac_objext
4806 CC="$CC -n32"
4807 rm -f conftest.$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_sys_largefile_CC=' -n32'; break
4830 else
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 fi
4835 rm -f conftest.err conftest.$ac_objext
4836 break
4837 done
4838 CC=$ac_save_CC
4839 rm -f conftest.$ac_ext
4840 fi
4841 fi
4842 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4843 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4844 if test "$ac_cv_sys_largefile_CC" != no; then
4845 CC=$CC$ac_cv_sys_largefile_CC
4846 fi
4847
4848 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4849 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4850 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853 while :; do
4854 ac_cv_sys_file_offset_bits=no
4855 cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h. */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4861 #include <sys/types.h>
4862 /* Check that off_t can represent 2**63 - 1 correctly.
4863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4864 since some C++ compilers masquerading as C compilers
4865 incorrectly reject 9223372036854775807. */
4866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4868 && LARGE_OFF_T % 2147483647 == 1)
4869 ? 1 : -1];
4870 int
4871 main ()
4872 {
4873
4874 ;
4875 return 0;
4876 }
4877 _ACEOF
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 break
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4904
4905 fi
4906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 #define _FILE_OFFSET_BITS 64
4914 #include <sys/types.h>
4915 /* Check that off_t can represent 2**63 - 1 correctly.
4916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4917 since some C++ compilers masquerading as C compilers
4918 incorrectly reject 9223372036854775807. */
4919 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4921 && LARGE_OFF_T % 2147483647 == 1)
4922 ? 1 : -1];
4923 int
4924 main ()
4925 {
4926
4927 ;
4928 return 0;
4929 }
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -z "$ac_c_werror_flag"
4941 || test ! -s conftest.err'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 (eval $ac_try) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; } &&
4947 { ac_try='test -s conftest.$ac_objext'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 (eval $ac_try) 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 ac_cv_sys_file_offset_bits=64; break
4954 else
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 fi
4959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960 break
4961 done
4962 fi
4963 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4964 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4965 if test "$ac_cv_sys_file_offset_bits" != no; then
4966
4967 cat >>confdefs.h <<_ACEOF
4968 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4969 _ACEOF
4970
4971 fi
4972 rm -f conftest*
4973 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4974 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4975 if test "${ac_cv_sys_large_files+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 while :; do
4979 ac_cv_sys_large_files=no
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 #include <sys/types.h>
4987 /* Check that off_t can represent 2**63 - 1 correctly.
4988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4989 since some C++ compilers masquerading as C compilers
4990 incorrectly reject 9223372036854775807. */
4991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4993 && LARGE_OFF_T % 2147483647 == 1)
4994 ? 1 : -1];
4995 int
4996 main ()
4997 {
4998
4999 ;
5000 return 0;
5001 }
5002 _ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 break
5026 else
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 fi
5031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032 cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h. */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 #define _LARGE_FILES 1
5039 #include <sys/types.h>
5040 /* Check that off_t can represent 2**63 - 1 correctly.
5041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5042 since some C++ compilers masquerading as C compilers
5043 incorrectly reject 9223372036854775807. */
5044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5046 && LARGE_OFF_T % 2147483647 == 1)
5047 ? 1 : -1];
5048 int
5049 main ()
5050 {
5051
5052 ;
5053 return 0;
5054 }
5055 _ACEOF
5056 rm -f conftest.$ac_objext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>conftest.er1
5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -z "$ac_c_werror_flag"
5066 || test ! -s conftest.err'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; } &&
5072 { ac_try='test -s conftest.$ac_objext'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 ac_cv_sys_large_files=1; break
5079 else
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5082
5083 fi
5084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5085 break
5086 done
5087 fi
5088 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5089 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5090 if test "$ac_cv_sys_large_files" != no; then
5091
5092 cat >>confdefs.h <<_ACEOF
5093 #define _LARGE_FILES $ac_cv_sys_large_files
5094 _ACEOF
5095
5096 fi
5097 rm -f conftest*
5098 fi
5099
5100
5101 case `pwd` in
5102 *\ * | *\ *)
5103 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5104 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5105 esac
5106
5107
5108
5109 macro_version='2.2.6'
5110 macro_revision='1.3012'
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124 ltmain="$ac_aux_dir/ltmain.sh"
5125
5126 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5127 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5128 if test "${lt_cv_path_SED+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 # Loop through the user's path and test for sed and gsed.
5132 # Then use that list of sed's as ones to test for truncation.
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for lt_ac_prog in sed gsed; do
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5141 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5142 fi
5143 done
5144 done
5145 done
5146 IFS=$as_save_IFS
5147 lt_ac_max=0
5148 lt_ac_count=0
5149 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5150 # along with /bin/sed that truncates output.
5151 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5152 test ! -f $lt_ac_sed && continue
5153 cat /dev/null > conftest.in
5154 lt_ac_count=0
5155 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5156 # Check for GNU sed and select it if it is found.
5157 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5158 lt_cv_path_SED=$lt_ac_sed
5159 break
5160 fi
5161 while true; do
5162 cat conftest.in conftest.in >conftest.tmp
5163 mv conftest.tmp conftest.in
5164 cp conftest.in conftest.nl
5165 echo >>conftest.nl
5166 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5167 cmp -s conftest.out conftest.nl || break
5168 # 10000 chars as input seems more than enough
5169 test $lt_ac_count -gt 10 && break
5170 lt_ac_count=`expr $lt_ac_count + 1`
5171 if test $lt_ac_count -gt $lt_ac_max; then
5172 lt_ac_max=$lt_ac_count
5173 lt_cv_path_SED=$lt_ac_sed
5174 fi
5175 done
5176 done
5177
5178 fi
5179
5180 SED=$lt_cv_path_SED
5181
5182 echo "$as_me:$LINENO: result: $SED" >&5
5183 echo "${ECHO_T}$SED" >&6
5184
5185 test -z "$SED" && SED=sed
5186 Xsed="$SED -e 1s/^X//"
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198 echo "$as_me:$LINENO: checking for fgrep" >&5
5199 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5200 if test "${ac_cv_prog_fgrep+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5204 then ac_cv_prog_fgrep='grep -F'
5205 else ac_cv_prog_fgrep='fgrep'
5206 fi
5207 fi
5208 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5209 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5210 FGREP=$ac_cv_prog_fgrep
5211
5212
5213 test -z "$GREP" && GREP=grep
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5234 if test "${with_gnu_ld+set}" = set; then
5235 withval="$with_gnu_ld"
5236 test "$withval" = no || with_gnu_ld=yes
5237 else
5238 with_gnu_ld=no
5239 fi;
5240 ac_prog=ld
5241 if test "$GCC" = yes; then
5242 # Check if gcc -print-prog-name=ld gives a path.
5243 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5244 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5245 case $host in
5246 *-*-mingw*)
5247 # gcc leaves a trailing carriage return which upsets mingw
5248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5249 *)
5250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5251 esac
5252 case $ac_prog in
5253 # Accept absolute paths.
5254 [\\/]* | ?:[\\/]*)
5255 re_direlt='/[^/][^/]*/\.\./'
5256 # Canonicalize the pathname of ld
5257 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5258 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5259 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5260 done
5261 test -z "$LD" && LD="$ac_prog"
5262 ;;
5263 "")
5264 # If it fails, then pretend we aren't using GCC.
5265 ac_prog=ld
5266 ;;
5267 *)
5268 # If it is relative, then search for the first ld in PATH.
5269 with_gnu_ld=unknown
5270 ;;
5271 esac
5272 elif test "$with_gnu_ld" = yes; then
5273 echo "$as_me:$LINENO: checking for GNU ld" >&5
5274 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5275 else
5276 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5277 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5278 fi
5279 if test "${lt_cv_path_LD+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282 if test -z "$LD"; then
5283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5284 for ac_dir in $PATH; do
5285 IFS="$lt_save_ifs"
5286 test -z "$ac_dir" && ac_dir=.
5287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5288 lt_cv_path_LD="$ac_dir/$ac_prog"
5289 # Check to see if the program is GNU ld. I'd rather use --version,
5290 # but apparently some variants of GNU ld only accept -v.
5291 # Break only if it was the GNU/non-GNU ld that we prefer.
5292 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5293 *GNU* | *'with BFD'*)
5294 test "$with_gnu_ld" != no && break
5295 ;;
5296 *)
5297 test "$with_gnu_ld" != yes && break
5298 ;;
5299 esac
5300 fi
5301 done
5302 IFS="$lt_save_ifs"
5303 else
5304 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5305 fi
5306 fi
5307
5308 LD="$lt_cv_path_LD"
5309 if test -n "$LD"; then
5310 echo "$as_me:$LINENO: result: $LD" >&5
5311 echo "${ECHO_T}$LD" >&6
5312 else
5313 echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6
5315 fi
5316 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5317 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5318 { (exit 1); exit 1; }; }
5319 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5320 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5321 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5325 case `$LD -v 2>&1 </dev/null` in
5326 *GNU* | *'with BFD'*)
5327 lt_cv_prog_gnu_ld=yes
5328 ;;
5329 *)
5330 lt_cv_prog_gnu_ld=no
5331 ;;
5332 esac
5333 fi
5334 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5335 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5336 with_gnu_ld=$lt_cv_prog_gnu_ld
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5347 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5348 if test "${lt_cv_path_NM+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 if test -n "$NM"; then
5352 # Let the user override the test.
5353 lt_cv_path_NM="$NM"
5354 else
5355 lt_nm_to_check="${ac_tool_prefix}nm"
5356 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5357 lt_nm_to_check="$lt_nm_to_check nm"
5358 fi
5359 for lt_tmp_nm in $lt_nm_to_check; do
5360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5361 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5362 IFS="$lt_save_ifs"
5363 test -z "$ac_dir" && ac_dir=.
5364 tmp_nm="$ac_dir/$lt_tmp_nm"
5365 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5366 # Check to see if the nm accepts a BSD-compat flag.
5367 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5368 # nm: unknown option "B" ignored
5369 # Tru64's nm complains that /dev/null is an invalid object file
5370 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5371 */dev/null* | *'Invalid file or object type'*)
5372 lt_cv_path_NM="$tmp_nm -B"
5373 break
5374 ;;
5375 *)
5376 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5377 */dev/null*)
5378 lt_cv_path_NM="$tmp_nm -p"
5379 break
5380 ;;
5381 *)
5382 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5383 continue # so that we can try to find one that supports BSD flags
5384 ;;
5385 esac
5386 ;;
5387 esac
5388 fi
5389 done
5390 IFS="$lt_save_ifs"
5391 done
5392 : ${lt_cv_path_NM=no}
5393 fi
5394 fi
5395 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5396 echo "${ECHO_T}$lt_cv_path_NM" >&6
5397 if test "$lt_cv_path_NM" != "no"; then
5398 NM="$lt_cv_path_NM"
5399 else
5400 # Didn't find any BSD compatible name lister, look for dumpbin.
5401 if test -n "$ac_tool_prefix"; then
5402 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5403 do
5404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5406 echo "$as_me:$LINENO: checking for $ac_word" >&5
5407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5408 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 if test -n "$DUMPBIN"; then
5412 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425 done
5426 done
5427
5428 fi
5429 fi
5430 DUMPBIN=$ac_cv_prog_DUMPBIN
5431 if test -n "$DUMPBIN"; then
5432 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5433 echo "${ECHO_T}$DUMPBIN" >&6
5434 else
5435 echo "$as_me:$LINENO: result: no" >&5
5436 echo "${ECHO_T}no" >&6
5437 fi
5438
5439 test -n "$DUMPBIN" && break
5440 done
5441 fi
5442 if test -z "$DUMPBIN"; then
5443 ac_ct_DUMPBIN=$DUMPBIN
5444 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5445 do
5446 # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453 if test -n "$ac_ct_DUMPBIN"; then
5454 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5466 fi
5467 done
5468 done
5469
5470 fi
5471 fi
5472 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5473 if test -n "$ac_ct_DUMPBIN"; then
5474 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5475 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5476 else
5477 echo "$as_me:$LINENO: result: no" >&5
5478 echo "${ECHO_T}no" >&6
5479 fi
5480
5481 test -n "$ac_ct_DUMPBIN" && break
5482 done
5483 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5484
5485 DUMPBIN=$ac_ct_DUMPBIN
5486 fi
5487
5488
5489 if test "$DUMPBIN" != ":"; then
5490 NM="$DUMPBIN"
5491 fi
5492 fi
5493 test -z "$NM" && NM=nm
5494
5495
5496
5497
5498
5499
5500 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5501 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5502 if test "${lt_cv_nm_interface+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5505 lt_cv_nm_interface="BSD nm"
5506 echo "int some_variable = 0;" > conftest.$ac_ext
5507 (eval echo "\"\$as_me:5507: $ac_compile\"" >&5)
5508 (eval "$ac_compile" 2>conftest.err)
5509 cat conftest.err >&5
5510 (eval echo "\"\$as_me:5510: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5511 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5512 cat conftest.err >&5
5513 (eval echo "\"\$as_me:5513: output\"" >&5)
5514 cat conftest.out >&5
5515 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5516 lt_cv_nm_interface="MS dumpbin"
5517 fi
5518 rm -f conftest*
5519 fi
5520 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5521 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5522
5523 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5524 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5525 LN_S=$as_ln_s
5526 if test "$LN_S" = "ln -s"; then
5527 echo "$as_me:$LINENO: result: yes" >&5
5528 echo "${ECHO_T}yes" >&6
5529 else
5530 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5531 echo "${ECHO_T}no, using $LN_S" >&6
5532 fi
5533
5534 # find the maximum length of command line arguments
5535 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5536 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5537 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540 i=0
5541 teststring="ABCD"
5542
5543 case $build_os in
5544 msdosdjgpp*)
5545 # On DJGPP, this test can blow up pretty badly due to problems in libc
5546 # (any single argument exceeding 2000 bytes causes a buffer overrun
5547 # during glob expansion). Even if it were fixed, the result of this
5548 # check would be larger than it should be.
5549 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5550 ;;
5551
5552 gnu*)
5553 # Under GNU Hurd, this test is not required because there is
5554 # no limit to the length of command line arguments.
5555 # Libtool will interpret -1 as no limit whatsoever
5556 lt_cv_sys_max_cmd_len=-1;
5557 ;;
5558
5559 cygwin* | mingw* | cegcc*)
5560 # On Win9x/ME, this test blows up -- it succeeds, but takes
5561 # about 5 minutes as the teststring grows exponentially.
5562 # Worse, since 9x/ME are not pre-emptively multitasking,
5563 # you end up with a "frozen" computer, even though with patience
5564 # the test eventually succeeds (with a max line length of 256k).
5565 # Instead, let's just punt: use the minimum linelength reported by
5566 # all of the supported platforms: 8192 (on NT/2K/XP).
5567 lt_cv_sys_max_cmd_len=8192;
5568 ;;
5569
5570 amigaos*)
5571 # On AmigaOS with pdksh, this test takes hours, literally.
5572 # So we just punt and use a minimum line length of 8192.
5573 lt_cv_sys_max_cmd_len=8192;
5574 ;;
5575
5576 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5577 # This has been around since 386BSD, at least. Likely further.
5578 if test -x /sbin/sysctl; then
5579 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5580 elif test -x /usr/sbin/sysctl; then
5581 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5582 else
5583 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5584 fi
5585 # And add a safety zone
5586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5588 ;;
5589
5590 interix*)
5591 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5592 lt_cv_sys_max_cmd_len=196608
5593 ;;
5594
5595 osf*)
5596 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5597 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5598 # nice to cause kernel panics so lets avoid the loop below.
5599 # First set a reasonable default.
5600 lt_cv_sys_max_cmd_len=16384
5601 #
5602 if test -x /sbin/sysconfig; then
5603 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5604 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5605 esac
5606 fi
5607 ;;
5608 sco3.2v5*)
5609 lt_cv_sys_max_cmd_len=102400
5610 ;;
5611 sysv5* | sco5v6* | sysv4.2uw2*)
5612 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5613 if test -n "$kargmax"; then
5614 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5615 else
5616 lt_cv_sys_max_cmd_len=32768
5617 fi
5618 ;;
5619 *)
5620 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5621 if test -n "$lt_cv_sys_max_cmd_len"; then
5622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5624 else
5625 # Make teststring a little bigger before we do anything with it.
5626 # a 1K string should be a reasonable start.
5627 for i in 1 2 3 4 5 6 7 8 ; do
5628 teststring=$teststring$teststring
5629 done
5630 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5631 # If test is not a shell built-in, we'll probably end up computing a
5632 # maximum length that is only half of the actual maximum length, but
5633 # we can't tell.
5634 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5635 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5636 test $i != 17 # 1/2 MB should be enough
5637 do
5638 i=`expr $i + 1`
5639 teststring=$teststring$teststring
5640 done
5641 # Only check the string length outside the loop.
5642 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5643 teststring=
5644 # Add a significant safety factor because C++ compilers can tack on
5645 # massive amounts of additional arguments before passing them to the
5646 # linker. It appears as though 1/2 is a usable value.
5647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5648 fi
5649 ;;
5650 esac
5651
5652 fi
5653
5654 if test -n $lt_cv_sys_max_cmd_len ; then
5655 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5656 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5657 else
5658 echo "$as_me:$LINENO: result: none" >&5
5659 echo "${ECHO_T}none" >&6
5660 fi
5661 max_cmd_len=$lt_cv_sys_max_cmd_len
5662
5663
5664
5665
5666
5667
5668 : ${CP="cp -f"}
5669 : ${MV="mv -f"}
5670 : ${RM="rm -f"}
5671
5672 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5673 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5674 # Try some XSI features
5675 xsi_shell=no
5676 ( _lt_dummy="a/b/c"
5677 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5678 = c,a/b,, \
5679 && eval 'test $(( 1 + 1 )) -eq 2 \
5680 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5681 && xsi_shell=yes
5682 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5683 echo "${ECHO_T}$xsi_shell" >&6
5684
5685
5686 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5687 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5688 lt_shell_append=no
5689 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5690 >/dev/null 2>&1 \
5691 && lt_shell_append=yes
5692 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5693 echo "${ECHO_T}$lt_shell_append" >&6
5694
5695
5696 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5697 lt_unset=unset
5698 else
5699 lt_unset=false
5700 fi
5701
5702
5703
5704
5705
5706 # test EBCDIC or ASCII
5707 case `echo X|tr X '\101'` in
5708 A) # ASCII based system
5709 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5710 lt_SP2NL='tr \040 \012'
5711 lt_NL2SP='tr \015\012 \040\040'
5712 ;;
5713 *) # EBCDIC based system
5714 lt_SP2NL='tr \100 \n'
5715 lt_NL2SP='tr \r\n \100\100'
5716 ;;
5717 esac
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5728 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5729 if test "${lt_cv_ld_reload_flag+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732 lt_cv_ld_reload_flag='-r'
5733 fi
5734 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5735 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5736 reload_flag=$lt_cv_ld_reload_flag
5737 case $reload_flag in
5738 "" | " "*) ;;
5739 *) reload_flag=" $reload_flag" ;;
5740 esac
5741 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5742 case $host_os in
5743 darwin*)
5744 if test "$GCC" = yes; then
5745 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5746 else
5747 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5748 fi
5749 ;;
5750 esac
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 if test -n "$ac_tool_prefix"; then
5761 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5762 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5763 echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5765 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 if test -n "$OBJDUMP"; then
5769 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782 done
5783 done
5784
5785 fi
5786 fi
5787 OBJDUMP=$ac_cv_prog_OBJDUMP
5788 if test -n "$OBJDUMP"; then
5789 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5790 echo "${ECHO_T}$OBJDUMP" >&6
5791 else
5792 echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6
5794 fi
5795
5796 fi
5797 if test -z "$ac_cv_prog_OBJDUMP"; then
5798 ac_ct_OBJDUMP=$OBJDUMP
5799 # Extract the first word of "objdump", so it can be a program name with args.
5800 set dummy objdump; ac_word=$2
5801 echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5803 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 if test -n "$ac_ct_OBJDUMP"; then
5807 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820 done
5821 done
5822
5823 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5824 fi
5825 fi
5826 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5827 if test -n "$ac_ct_OBJDUMP"; then
5828 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5829 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5830 else
5831 echo "$as_me:$LINENO: result: no" >&5
5832 echo "${ECHO_T}no" >&6
5833 fi
5834
5835 OBJDUMP=$ac_ct_OBJDUMP
5836 else
5837 OBJDUMP="$ac_cv_prog_OBJDUMP"
5838 fi
5839
5840 test -z "$OBJDUMP" && OBJDUMP=objdump
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5851 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5852 if test "${lt_cv_deplibs_check_method+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855 lt_cv_file_magic_cmd='$MAGIC_CMD'
5856 lt_cv_file_magic_test_file=
5857 lt_cv_deplibs_check_method='unknown'
5858 # Need to set the preceding variable on all platforms that support
5859 # interlibrary dependencies.
5860 # 'none' -- dependencies not supported.
5861 # `unknown' -- same as none, but documents that we really don't know.
5862 # 'pass_all' -- all dependencies passed with no checks.
5863 # 'test_compile' -- check by making test program.
5864 # 'file_magic [[regex]]' -- check by looking for files in library path
5865 # which responds to the $file_magic_cmd with a given extended regex.
5866 # If you have `file' or equivalent on your system and you're not sure
5867 # whether `pass_all' will *always* work, you probably want this one.
5868
5869 case $host_os in
5870 aix[4-9]*)
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
5873
5874 beos*)
5875 lt_cv_deplibs_check_method=pass_all
5876 ;;
5877
5878 bsdi[45]*)
5879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5880 lt_cv_file_magic_cmd='/usr/bin/file -L'
5881 lt_cv_file_magic_test_file=/shlib/libc.so
5882 ;;
5883
5884 cygwin*)
5885 # func_win32_libid is a shell function defined in ltmain.sh
5886 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5887 lt_cv_file_magic_cmd='func_win32_libid'
5888 ;;
5889
5890 mingw* | pw32*)
5891 # Base MSYS/MinGW do not provide the 'file' command needed by
5892 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5893 # unless we find 'file', for example because we are cross-compiling.
5894 if ( file / ) >/dev/null 2>&1; then
5895 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5896 lt_cv_file_magic_cmd='func_win32_libid'
5897 else
5898 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5899 lt_cv_file_magic_cmd='$OBJDUMP -f'
5900 fi
5901 ;;
5902
5903 cegcc)
5904 # use the weaker test based on 'objdump'. See mingw*.
5905 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5906 lt_cv_file_magic_cmd='$OBJDUMP -f'
5907 ;;
5908
5909 darwin* | rhapsody*)
5910 lt_cv_deplibs_check_method=pass_all
5911 ;;
5912
5913 freebsd* | dragonfly*)
5914 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5915 case $host_cpu in
5916 i*86 )
5917 # Not sure whether the presence of OpenBSD here was a mistake.
5918 # Let's accept both of them until this is cleared up.
5919 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5920 lt_cv_file_magic_cmd=/usr/bin/file
5921 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5922 ;;
5923 esac
5924 else
5925 lt_cv_deplibs_check_method=pass_all
5926 fi
5927 ;;
5928
5929 gnu*)
5930 lt_cv_deplibs_check_method=pass_all
5931 ;;
5932
5933 hpux10.20* | hpux11*)
5934 lt_cv_file_magic_cmd=/usr/bin/file
5935 case $host_cpu in
5936 ia64*)
5937 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5938 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5939 ;;
5940 hppa*64*)
5941 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]'
5942 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5943 ;;
5944 *)
5945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5946 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5947 ;;
5948 esac
5949 ;;
5950
5951 interix[3-9]*)
5952 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5954 ;;
5955
5956 irix5* | irix6* | nonstopux*)
5957 case $LD in
5958 *-32|*"-32 ") libmagic=32-bit;;
5959 *-n32|*"-n32 ") libmagic=N32;;
5960 *-64|*"-64 ") libmagic=64-bit;;
5961 *) libmagic=never-match;;
5962 esac
5963 lt_cv_deplibs_check_method=pass_all
5964 ;;
5965
5966 # This must be Linux ELF.
5967 linux* | k*bsd*-gnu)
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
5970
5971 netbsd*)
5972 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5974 else
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5976 fi
5977 ;;
5978
5979 newos6*)
5980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5981 lt_cv_file_magic_cmd=/usr/bin/file
5982 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5983 ;;
5984
5985 *nto* | *qnx*)
5986 lt_cv_deplibs_check_method=pass_all
5987 ;;
5988
5989 openbsd*)
5990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5992 else
5993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5994 fi
5995 ;;
5996
5997 osf3* | osf4* | osf5*)
5998 lt_cv_deplibs_check_method=pass_all
5999 ;;
6000
6001 rdos*)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004
6005 solaris*)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008
6009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6010 lt_cv_deplibs_check_method=pass_all
6011 ;;
6012
6013 sysv4 | sysv4.3*)
6014 case $host_vendor in
6015 motorola)
6016 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]'
6017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6018 ;;
6019 ncr)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022 sequent)
6023 lt_cv_file_magic_cmd='/bin/file'
6024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6025 ;;
6026 sni)
6027 lt_cv_file_magic_cmd='/bin/file'
6028 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6029 lt_cv_file_magic_test_file=/lib/libc.so
6030 ;;
6031 siemens)
6032 lt_cv_deplibs_check_method=pass_all
6033 ;;
6034 pc)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037 esac
6038 ;;
6039
6040 tpf*)
6041 lt_cv_deplibs_check_method=pass_all
6042 ;;
6043 esac
6044
6045 fi
6046 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6047 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6048 file_magic_cmd=$lt_cv_file_magic_cmd
6049 deplibs_check_method=$lt_cv_deplibs_check_method
6050 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063 if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6065 set dummy ${ac_tool_prefix}ar; ac_word=$2
6066 echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068 if test "${ac_cv_prog_AR+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071 if test -n "$AR"; then
6072 ac_cv_prog_AR="$AR" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081 ac_cv_prog_AR="${ac_tool_prefix}ar"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6084 fi
6085 done
6086 done
6087
6088 fi
6089 fi
6090 AR=$ac_cv_prog_AR
6091 if test -n "$AR"; then
6092 echo "$as_me:$LINENO: result: $AR" >&5
6093 echo "${ECHO_T}$AR" >&6
6094 else
6095 echo "$as_me:$LINENO: result: no" >&5
6096 echo "${ECHO_T}no" >&6
6097 fi
6098
6099 fi
6100 if test -z "$ac_cv_prog_AR"; then
6101 ac_ct_AR=$AR
6102 # Extract the first word of "ar", so it can be a program name with args.
6103 set dummy ar; ac_word=$2
6104 echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6106 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109 if test -n "$ac_ct_AR"; then
6110 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119 ac_cv_prog_ac_ct_AR="ar"
6120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6122 fi
6123 done
6124 done
6125
6126 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6127 fi
6128 fi
6129 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6130 if test -n "$ac_ct_AR"; then
6131 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6132 echo "${ECHO_T}$ac_ct_AR" >&6
6133 else
6134 echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6
6136 fi
6137
6138 AR=$ac_ct_AR
6139 else
6140 AR="$ac_cv_prog_AR"
6141 fi
6142
6143 test -z "$AR" && AR=ar
6144 test -z "$AR_FLAGS" && AR_FLAGS=cru
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156 if test -n "$ac_tool_prefix"; then
6157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6158 set dummy ${ac_tool_prefix}strip; ac_word=$2
6159 echo "$as_me:$LINENO: checking for $ac_word" >&5
6160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6161 if test "${ac_cv_prog_STRIP+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 if test -n "$STRIP"; then
6165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178 done
6179 done
6180
6181 fi
6182 fi
6183 STRIP=$ac_cv_prog_STRIP
6184 if test -n "$STRIP"; then
6185 echo "$as_me:$LINENO: result: $STRIP" >&5
6186 echo "${ECHO_T}$STRIP" >&6
6187 else
6188 echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6
6190 fi
6191
6192 fi
6193 if test -z "$ac_cv_prog_STRIP"; then
6194 ac_ct_STRIP=$STRIP
6195 # Extract the first word of "strip", so it can be a program name with args.
6196 set dummy strip; ac_word=$2
6197 echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6199 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 if test -n "$ac_ct_STRIP"; then
6203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_ac_ct_STRIP="strip"
6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218
6219 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6220 fi
6221 fi
6222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6223 if test -n "$ac_ct_STRIP"; then
6224 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6225 echo "${ECHO_T}$ac_ct_STRIP" >&6
6226 else
6227 echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6
6229 fi
6230
6231 STRIP=$ac_ct_STRIP
6232 else
6233 STRIP="$ac_cv_prog_STRIP"
6234 fi
6235
6236 test -z "$STRIP" && STRIP=:
6237
6238
6239
6240
6241
6242
6243 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6245 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6246 echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6248 if test "${ac_cv_prog_RANLIB+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251 if test -n "$RANLIB"; then
6252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265 done
6266 done
6267
6268 fi
6269 fi
6270 RANLIB=$ac_cv_prog_RANLIB
6271 if test -n "$RANLIB"; then
6272 echo "$as_me:$LINENO: result: $RANLIB" >&5
6273 echo "${ECHO_T}$RANLIB" >&6
6274 else
6275 echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6
6277 fi
6278
6279 fi
6280 if test -z "$ac_cv_prog_RANLIB"; then
6281 ac_ct_RANLIB=$RANLIB
6282 # Extract the first word of "ranlib", so it can be a program name with args.
6283 set dummy ranlib; ac_word=$2
6284 echo "$as_me:$LINENO: checking for $ac_word" >&5
6285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6286 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289 if test -n "$ac_ct_RANLIB"; then
6290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_ac_ct_RANLIB="ranlib"
6300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303 done
6304 done
6305
6306 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6307 fi
6308 fi
6309 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6310 if test -n "$ac_ct_RANLIB"; then
6311 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6312 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6313 else
6314 echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6
6316 fi
6317
6318 RANLIB=$ac_ct_RANLIB
6319 else
6320 RANLIB="$ac_cv_prog_RANLIB"
6321 fi
6322
6323 test -z "$RANLIB" && RANLIB=:
6324
6325
6326
6327
6328
6329
6330 # Determine commands to create old-style static archives.
6331 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6332 old_postinstall_cmds='chmod 644 $oldlib'
6333 old_postuninstall_cmds=
6334
6335 if test -n "$RANLIB"; then
6336 case $host_os in
6337 openbsd*)
6338 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6339 ;;
6340 *)
6341 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6342 ;;
6343 esac
6344 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6345 fi
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380 # If no C compiler was specified, use CC.
6381 LTCC=${LTCC-"$CC"}
6382
6383 # If no C compiler flags were specified, use CFLAGS.
6384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6385
6386 # Allow CC to be a program name with arguments.
6387 compiler=$CC
6388
6389
6390 # Check for command to grab the raw symbol name followed by C symbol from nm.
6391 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6392 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6393 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396
6397 # These are sane defaults that work on at least a few old systems.
6398 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6399
6400 # Character class describing NM global symbol codes.
6401 symcode='[BCDEGRST]'
6402
6403 # Regexp to match symbols that can be accessed directly from C.
6404 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6405
6406 # Define system-specific variables.
6407 case $host_os in
6408 aix*)
6409 symcode='[BCDT]'
6410 ;;
6411 cygwin* | mingw* | pw32* | cegcc*)
6412 symcode='[ABCDGISTW]'
6413 ;;
6414 hpux*)
6415 if test "$host_cpu" = ia64; then
6416 symcode='[ABCDEGRST]'
6417 fi
6418 ;;
6419 irix* | nonstopux*)
6420 symcode='[BCDEGRST]'
6421 ;;
6422 osf*)
6423 symcode='[BCDEGQRST]'
6424 ;;
6425 solaris*)
6426 symcode='[BDRT]'
6427 ;;
6428 sco3.2v5*)
6429 symcode='[DT]'
6430 ;;
6431 sysv4.2uw2*)
6432 symcode='[DT]'
6433 ;;
6434 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6435 symcode='[ABDT]'
6436 ;;
6437 sysv4)
6438 symcode='[DFNSTU]'
6439 ;;
6440 esac
6441
6442 # If we're using GNU nm, then use its standard symbol codes.
6443 case `$NM -V 2>&1` in
6444 *GNU* | *'with BFD'*)
6445 symcode='[ABCDGIRSTW]' ;;
6446 esac
6447
6448 # Transform an extracted symbol line into a proper C declaration.
6449 # Some systems (esp. on ia64) link data and code symbols differently,
6450 # so use this general approach.
6451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6452
6453 # Transform an extracted symbol line into symbol name and symbol address
6454 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6455 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6456
6457 # Handle CRLF in mingw tool chain
6458 opt_cr=
6459 case $build_os in
6460 mingw*)
6461 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6462 ;;
6463 esac
6464
6465 # Try without a prefix underscore, then with it.
6466 for ac_symprfx in "" "_"; do
6467
6468 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6469 symxfrm="\\1 $ac_symprfx\\2 \\2"
6470
6471 # Write the raw and C identifiers.
6472 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6473 # Fake it for dumpbin and say T for any non-static function
6474 # and D for any global variable.
6475 # Also find C++ and __fastcall symbols from MSVC++,
6476 # which start with @ or ?.
6477 lt_cv_sys_global_symbol_pipe="$AWK '"\
6478 " {last_section=section; section=\$ 3};"\
6479 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6480 " \$ 0!~/External *\|/{next};"\
6481 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6482 " {if(hide[section]) next};"\
6483 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6484 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6485 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6486 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6487 " ' prfx=^$ac_symprfx"
6488 else
6489 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6490 fi
6491
6492 # Check to see that the pipe works correctly.
6493 pipe_works=no
6494
6495 rm -f conftest*
6496 cat > conftest.$ac_ext <<_LT_EOF
6497 #ifdef __cplusplus
6498 extern "C" {
6499 #endif
6500 char nm_test_var;
6501 void nm_test_func(void);
6502 void nm_test_func(void){}
6503 #ifdef __cplusplus
6504 }
6505 #endif
6506 int main(){nm_test_var='a';nm_test_func();return(0);}
6507 _LT_EOF
6508
6509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510 (eval $ac_compile) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; then
6514 # Now try to grab the symbols.
6515 nlist=conftest.nm
6516 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6517 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && test -s "$nlist"; then
6521 # Try sorting and uniquifying the output.
6522 if sort "$nlist" | uniq > "$nlist"T; then
6523 mv -f "$nlist"T "$nlist"
6524 else
6525 rm -f "$nlist"T
6526 fi
6527
6528 # Make sure that we snagged all the symbols we need.
6529 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6530 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6531 cat <<_LT_EOF > conftest.$ac_ext
6532 #ifdef __cplusplus
6533 extern "C" {
6534 #endif
6535
6536 _LT_EOF
6537 # Now generate the symbol file.
6538 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6539
6540 cat <<_LT_EOF >> conftest.$ac_ext
6541
6542 /* The mapping between symbol names and symbols. */
6543 const struct {
6544 const char *name;
6545 void *address;
6546 }
6547 lt__PROGRAM__LTX_preloaded_symbols[] =
6548 {
6549 { "@PROGRAM@", (void *) 0 },
6550 _LT_EOF
6551 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6552 cat <<\_LT_EOF >> conftest.$ac_ext
6553 {0, (void *) 0}
6554 };
6555
6556 /* This works around a problem in FreeBSD linker */
6557 #ifdef FREEBSD_WORKAROUND
6558 static const void *lt_preloaded_setup() {
6559 return lt__PROGRAM__LTX_preloaded_symbols;
6560 }
6561 #endif
6562
6563 #ifdef __cplusplus
6564 }
6565 #endif
6566 _LT_EOF
6567 # Now try linking the two files.
6568 mv conftest.$ac_objext conftstm.$ac_objext
6569 lt_save_LIBS="$LIBS"
6570 lt_save_CFLAGS="$CFLAGS"
6571 LIBS="conftstm.$ac_objext"
6572 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6578 pipe_works=yes
6579 fi
6580 LIBS="$lt_save_LIBS"
6581 CFLAGS="$lt_save_CFLAGS"
6582 else
6583 echo "cannot find nm_test_func in $nlist" >&5
6584 fi
6585 else
6586 echo "cannot find nm_test_var in $nlist" >&5
6587 fi
6588 else
6589 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6590 fi
6591 else
6592 echo "$progname: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6594 fi
6595 rm -rf conftest* conftst*
6596
6597 # Do not use the global_symbol_pipe unless it works.
6598 if test "$pipe_works" = yes; then
6599 break
6600 else
6601 lt_cv_sys_global_symbol_pipe=
6602 fi
6603 done
6604
6605 fi
6606
6607 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6608 lt_cv_sys_global_symbol_to_cdecl=
6609 fi
6610 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6611 echo "$as_me:$LINENO: result: failed" >&5
6612 echo "${ECHO_T}failed" >&6
6613 else
6614 echo "$as_me:$LINENO: result: ok" >&5
6615 echo "${ECHO_T}ok" >&6
6616 fi
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6640 if test "${enable_libtool_lock+set}" = set; then
6641 enableval="$enable_libtool_lock"
6642
6643 fi;
6644 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6645
6646 # Some flags need to be propagated to the compiler or linker for good
6647 # libtool support.
6648 case $host in
6649 ia64-*-hpux*)
6650 # Find out which ABI we are using.
6651 echo 'int i;' > conftest.$ac_ext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; then
6657 case `/usr/bin/file conftest.$ac_objext` in
6658 *ELF-32*)
6659 HPUX_IA64_MODE="32"
6660 ;;
6661 *ELF-64*)
6662 HPUX_IA64_MODE="64"
6663 ;;
6664 esac
6665 fi
6666 rm -rf conftest*
6667 ;;
6668 *-*-irix6*)
6669 # Find out which ABI we are using.
6670 echo '#line 6670 "configure"' > conftest.$ac_ext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672 (eval $ac_compile) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; then
6676 if test "$lt_cv_prog_gnu_ld" = yes; then
6677 case `/usr/bin/file conftest.$ac_objext` in
6678 *32-bit*)
6679 LD="${LD-ld} -melf32bsmip"
6680 ;;
6681 *N32*)
6682 LD="${LD-ld} -melf32bmipn32"
6683 ;;
6684 *64-bit*)
6685 LD="${LD-ld} -melf64bmip"
6686 ;;
6687 esac
6688 else
6689 case `/usr/bin/file conftest.$ac_objext` in
6690 *32-bit*)
6691 LD="${LD-ld} -32"
6692 ;;
6693 *N32*)
6694 LD="${LD-ld} -n32"
6695 ;;
6696 *64-bit*)
6697 LD="${LD-ld} -64"
6698 ;;
6699 esac
6700 fi
6701 fi
6702 rm -rf conftest*
6703 ;;
6704
6705 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6706 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6707 # Find out which ABI we are using.
6708 echo 'int i;' > conftest.$ac_ext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; then
6714 case `/usr/bin/file conftest.o` in
6715 *32-bit*)
6716 case $host in
6717 x86_64-*kfreebsd*-gnu)
6718 LD="${LD-ld} -m elf_i386_fbsd"
6719 ;;
6720 x86_64-*linux*)
6721 LD="${LD-ld} -m elf_i386"
6722 ;;
6723 ppc64-*linux*|powerpc64-*linux*)
6724 LD="${LD-ld} -m elf32ppclinux"
6725 ;;
6726 s390x-*linux*)
6727 LD="${LD-ld} -m elf_s390"
6728 ;;
6729 sparc64-*linux*)
6730 LD="${LD-ld} -m elf32_sparc"
6731 ;;
6732 esac
6733 ;;
6734 *64-bit*)
6735 case $host in
6736 x86_64-*kfreebsd*-gnu)
6737 LD="${LD-ld} -m elf_x86_64_fbsd"
6738 ;;
6739 x86_64-*linux*)
6740 LD="${LD-ld} -m elf_x86_64"
6741 ;;
6742 ppc*-*linux*|powerpc*-*linux*)
6743 LD="${LD-ld} -m elf64ppc"
6744 ;;
6745 s390*-*linux*|s390*-*tpf*)
6746 LD="${LD-ld} -m elf64_s390"
6747 ;;
6748 sparc*-*linux*)
6749 LD="${LD-ld} -m elf64_sparc"
6750 ;;
6751 esac
6752 ;;
6753 esac
6754 fi
6755 rm -rf conftest*
6756 ;;
6757
6758 *-*-sco3.2v5*)
6759 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6760 SAVE_CFLAGS="$CFLAGS"
6761 CFLAGS="$CFLAGS -belf"
6762 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6763 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6764 if test "${lt_cv_cc_needs_belf+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 ac_ext=c
6768 ac_cpp='$CPP $CPPFLAGS'
6769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6772
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h. */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779
6780 int
6781 main ()
6782 {
6783
6784 ;
6785 return 0;
6786 }
6787 _ACEOF
6788 rm -f conftest.$ac_objext conftest$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag"
6798 || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest$ac_exeext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 lt_cv_cc_needs_belf=yes
6811 else
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815 lt_cv_cc_needs_belf=no
6816 fi
6817 rm -f conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819 ac_ext=c
6820 ac_cpp='$CPP $CPPFLAGS'
6821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6824
6825 fi
6826 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6827 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6828 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6829 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6830 CFLAGS="$SAVE_CFLAGS"
6831 fi
6832 ;;
6833 sparc*-*solaris*)
6834 # Find out which ABI we are using.
6835 echo 'int i;' > conftest.$ac_ext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6837 (eval $ac_compile) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; then
6841 case `/usr/bin/file conftest.o` in
6842 *64-bit*)
6843 case $lt_cv_prog_gnu_ld in
6844 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6845 *)
6846 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6847 LD="${LD-ld} -64"
6848 fi
6849 ;;
6850 esac
6851 ;;
6852 esac
6853 fi
6854 rm -rf conftest*
6855 ;;
6856 esac
6857
6858 need_locks="$enable_libtool_lock"
6859
6860
6861 case $host_os in
6862 rhapsody* | darwin*)
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6866 echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6868 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 if test -n "$DSYMUTIL"; then
6872 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885 done
6886 done
6887
6888 fi
6889 fi
6890 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6891 if test -n "$DSYMUTIL"; then
6892 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6893 echo "${ECHO_T}$DSYMUTIL" >&6
6894 else
6895 echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6
6897 fi
6898
6899 fi
6900 if test -z "$ac_cv_prog_DSYMUTIL"; then
6901 ac_ct_DSYMUTIL=$DSYMUTIL
6902 # Extract the first word of "dsymutil", so it can be a program name with args.
6903 set dummy dsymutil; ac_word=$2
6904 echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6906 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909 if test -n "$ac_ct_DSYMUTIL"; then
6910 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923 done
6924 done
6925
6926 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6927 fi
6928 fi
6929 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6930 if test -n "$ac_ct_DSYMUTIL"; then
6931 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6932 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6933 else
6934 echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6
6936 fi
6937
6938 DSYMUTIL=$ac_ct_DSYMUTIL
6939 else
6940 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6941 fi
6942
6943 if test -n "$ac_tool_prefix"; then
6944 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6945 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6946 echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6948 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951 if test -n "$NMEDIT"; then
6952 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965 done
6966 done
6967
6968 fi
6969 fi
6970 NMEDIT=$ac_cv_prog_NMEDIT
6971 if test -n "$NMEDIT"; then
6972 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6973 echo "${ECHO_T}$NMEDIT" >&6
6974 else
6975 echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6
6977 fi
6978
6979 fi
6980 if test -z "$ac_cv_prog_NMEDIT"; then
6981 ac_ct_NMEDIT=$NMEDIT
6982 # Extract the first word of "nmedit", so it can be a program name with args.
6983 set dummy nmedit; ac_word=$2
6984 echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6986 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 if test -n "$ac_ct_NMEDIT"; then
6990 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003 done
7004 done
7005
7006 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7007 fi
7008 fi
7009 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7010 if test -n "$ac_ct_NMEDIT"; then
7011 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7012 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7013 else
7014 echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6
7016 fi
7017
7018 NMEDIT=$ac_ct_NMEDIT
7019 else
7020 NMEDIT="$ac_cv_prog_NMEDIT"
7021 fi
7022
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7025 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7026 echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7028 if test "${ac_cv_prog_LIPO+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031 if test -n "$LIPO"; then
7032 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045 done
7046 done
7047
7048 fi
7049 fi
7050 LIPO=$ac_cv_prog_LIPO
7051 if test -n "$LIPO"; then
7052 echo "$as_me:$LINENO: result: $LIPO" >&5
7053 echo "${ECHO_T}$LIPO" >&6
7054 else
7055 echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6
7057 fi
7058
7059 fi
7060 if test -z "$ac_cv_prog_LIPO"; then
7061 ac_ct_LIPO=$LIPO
7062 # Extract the first word of "lipo", so it can be a program name with args.
7063 set dummy lipo; ac_word=$2
7064 echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7066 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 if test -n "$ac_ct_LIPO"; then
7070 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_ac_ct_LIPO="lipo"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083 done
7084 done
7085
7086 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7087 fi
7088 fi
7089 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7090 if test -n "$ac_ct_LIPO"; then
7091 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7092 echo "${ECHO_T}$ac_ct_LIPO" >&6
7093 else
7094 echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6
7096 fi
7097
7098 LIPO=$ac_ct_LIPO
7099 else
7100 LIPO="$ac_cv_prog_LIPO"
7101 fi
7102
7103 if test -n "$ac_tool_prefix"; then
7104 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7105 set dummy ${ac_tool_prefix}otool; ac_word=$2
7106 echo "$as_me:$LINENO: checking for $ac_word" >&5
7107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7108 if test "${ac_cv_prog_OTOOL+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111 if test -n "$OTOOL"; then
7112 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125 done
7126 done
7127
7128 fi
7129 fi
7130 OTOOL=$ac_cv_prog_OTOOL
7131 if test -n "$OTOOL"; then
7132 echo "$as_me:$LINENO: result: $OTOOL" >&5
7133 echo "${ECHO_T}$OTOOL" >&6
7134 else
7135 echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6
7137 fi
7138
7139 fi
7140 if test -z "$ac_cv_prog_OTOOL"; then
7141 ac_ct_OTOOL=$OTOOL
7142 # Extract the first word of "otool", so it can be a program name with args.
7143 set dummy otool; ac_word=$2
7144 echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7146 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 if test -n "$ac_ct_OTOOL"; then
7150 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7151 else
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_ac_ct_OTOOL="otool"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163 done
7164 done
7165
7166 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7167 fi
7168 fi
7169 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7170 if test -n "$ac_ct_OTOOL"; then
7171 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7172 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7173 else
7174 echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6
7176 fi
7177
7178 OTOOL=$ac_ct_OTOOL
7179 else
7180 OTOOL="$ac_cv_prog_OTOOL"
7181 fi
7182
7183 if test -n "$ac_tool_prefix"; then
7184 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7185 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7186 echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7188 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 if test -n "$OTOOL64"; then
7192 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 break 2
7204 fi
7205 done
7206 done
7207
7208 fi
7209 fi
7210 OTOOL64=$ac_cv_prog_OTOOL64
7211 if test -n "$OTOOL64"; then
7212 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7213 echo "${ECHO_T}$OTOOL64" >&6
7214 else
7215 echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7217 fi
7218
7219 fi
7220 if test -z "$ac_cv_prog_OTOOL64"; then
7221 ac_ct_OTOOL64=$OTOOL64
7222 # Extract the first word of "otool64", so it can be a program name with args.
7223 set dummy otool64; ac_word=$2
7224 echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 if test -n "$ac_ct_OTOOL64"; then
7230 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_ac_ct_OTOOL64="otool64"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243 done
7244 done
7245
7246 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7247 fi
7248 fi
7249 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7250 if test -n "$ac_ct_OTOOL64"; then
7251 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7252 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7253 else
7254 echo "$as_me:$LINENO: result: no" >&5
7255 echo "${ECHO_T}no" >&6
7256 fi
7257
7258 OTOOL64=$ac_ct_OTOOL64
7259 else
7260 OTOOL64="$ac_cv_prog_OTOOL64"
7261 fi
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7290 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7291 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294 lt_cv_apple_cc_single_mod=no
7295 if test -z "${LT_MULTI_MODULE}"; then
7296 # By default we will add the -single_module flag. You can override
7297 # by either setting the environment variable LT_MULTI_MODULE
7298 # non-empty at configure time, or by adding -multi_module to the
7299 # link flags.
7300 rm -rf libconftest.dylib*
7301 echo "int foo(void){return 1;}" > conftest.c
7302 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7303 -dynamiclib -Wl,-single_module conftest.c" >&5
7304 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7305 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7306 _lt_result=$?
7307 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7308 lt_cv_apple_cc_single_mod=yes
7309 else
7310 cat conftest.err >&5
7311 fi
7312 rm -rf libconftest.dylib*
7313 rm -f conftest.*
7314 fi
7315 fi
7316 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7317 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7318 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7319 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7320 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323 lt_cv_ld_exported_symbols_list=no
7324 save_LDFLAGS=$LDFLAGS
7325 echo "_main" > conftest.sym
7326 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333
7334 int
7335 main ()
7336 {
7337
7338 ;
7339 return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext conftest$ac_exeext
7343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7344 (eval $ac_link) 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } &&
7351 { ac_try='test -z "$ac_c_werror_flag"
7352 || test ! -s conftest.err'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 (eval $ac_try) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; } &&
7358 { ac_try='test -s conftest$ac_exeext'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 (eval $ac_try) 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; }; then
7364 lt_cv_ld_exported_symbols_list=yes
7365 else
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7368
7369 lt_cv_ld_exported_symbols_list=no
7370 fi
7371 rm -f conftest.err conftest.$ac_objext \
7372 conftest$ac_exeext conftest.$ac_ext
7373 LDFLAGS="$save_LDFLAGS"
7374
7375 fi
7376 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7377 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7378 case $host_os in
7379 rhapsody* | darwin1.[012])
7380 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7381 darwin1.*)
7382 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7383 darwin*) # darwin 5.x on
7384 # if running on 10.5 or later, the deployment target defaults
7385 # to the OS version, if on x86, and 10.4, the deployment
7386 # target defaults to 10.4. Don't you love it?
7387 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7388 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7389 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7390 10.[012]*)
7391 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7392 10.*)
7393 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7394 esac
7395 ;;
7396 esac
7397 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7398 _lt_dar_single_mod='$single_module'
7399 fi
7400 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7401 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7402 else
7403 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7404 fi
7405 if test "$DSYMUTIL" != ":"; then
7406 _lt_dsymutil='~$DSYMUTIL $lib || :'
7407 else
7408 _lt_dsymutil=
7409 fi
7410 ;;
7411 esac
7412
7413
7414 for ac_header in dlfcn.h
7415 do
7416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7417 echo "$as_me:$LINENO: checking for $ac_header" >&5
7418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429
7430 #include <$ac_header>
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7434 (eval $ac_compile) 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
7441 { ac_try='test -z "$ac_c_werror_flag"
7442 || test ! -s conftest.err'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; } &&
7448 { ac_try='test -s conftest.$ac_objext'
7449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 (eval $ac_try) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; }; then
7454 eval "$as_ac_Header=yes"
7455 else
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7458
7459 eval "$as_ac_Header=no"
7460 fi
7461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7462 fi
7463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466 cat >>confdefs.h <<_ACEOF
7467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468 _ACEOF
7469
7470 fi
7471
7472 done
7473
7474
7475
7476 # Set options
7477
7478
7479
7480 enable_dlopen=no
7481
7482
7483 enable_win32_dll=no
7484
7485
7486 # Check whether --enable-shared or --disable-shared was given.
7487 if test "${enable_shared+set}" = set; then
7488 enableval="$enable_shared"
7489 p=${PACKAGE-default}
7490 case $enableval in
7491 yes) enable_shared=yes ;;
7492 no) enable_shared=no ;;
7493 *)
7494 enable_shared=no
7495 # Look at the argument we got. We use all the common list separators.
7496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7497 for pkg in $enableval; do
7498 IFS="$lt_save_ifs"
7499 if test "X$pkg" = "X$p"; then
7500 enable_shared=yes
7501 fi
7502 done
7503 IFS="$lt_save_ifs"
7504 ;;
7505 esac
7506 else
7507 enable_shared=yes
7508 fi;
7509
7510
7511
7512
7513
7514
7515
7516
7517 # Check whether --enable-static or --disable-static was given.
7518 if test "${enable_static+set}" = set; then
7519 enableval="$enable_static"
7520 p=${PACKAGE-default}
7521 case $enableval in
7522 yes) enable_static=yes ;;
7523 no) enable_static=no ;;
7524 *)
7525 enable_static=no
7526 # Look at the argument we got. We use all the common list separators.
7527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7528 for pkg in $enableval; do
7529 IFS="$lt_save_ifs"
7530 if test "X$pkg" = "X$p"; then
7531 enable_static=yes
7532 fi
7533 done
7534 IFS="$lt_save_ifs"
7535 ;;
7536 esac
7537 else
7538 enable_static=yes
7539 fi;
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549 # Check whether --with-pic or --without-pic was given.
7550 if test "${with_pic+set}" = set; then
7551 withval="$with_pic"
7552 pic_mode="$withval"
7553 else
7554 pic_mode=default
7555 fi;
7556
7557 test -z "$pic_mode" && pic_mode=default
7558
7559
7560
7561
7562
7563
7564
7565 # Check whether --enable-fast-install or --disable-fast-install was given.
7566 if test "${enable_fast_install+set}" = set; then
7567 enableval="$enable_fast_install"
7568 p=${PACKAGE-default}
7569 case $enableval in
7570 yes) enable_fast_install=yes ;;
7571 no) enable_fast_install=no ;;
7572 *)
7573 enable_fast_install=no
7574 # Look at the argument we got. We use all the common list separators.
7575 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7576 for pkg in $enableval; do
7577 IFS="$lt_save_ifs"
7578 if test "X$pkg" = "X$p"; then
7579 enable_fast_install=yes
7580 fi
7581 done
7582 IFS="$lt_save_ifs"
7583 ;;
7584 esac
7585 else
7586 enable_fast_install=yes
7587 fi;
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598 # This can be used to rebuild libtool when needed
7599 LIBTOOL_DEPS="$ltmain"
7600
7601 # Always use our own libtool.
7602 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628 test -z "$LN_S" && LN_S="ln -s"
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643 if test -n "${ZSH_VERSION+set}" ; then
7644 setopt NO_GLOB_SUBST
7645 fi
7646
7647 echo "$as_me:$LINENO: checking for objdir" >&5
7648 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7649 if test "${lt_cv_objdir+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 rm -f .libs 2>/dev/null
7653 mkdir .libs 2>/dev/null
7654 if test -d .libs; then
7655 lt_cv_objdir=.libs
7656 else
7657 # MS-DOS does not allow filenames that begin with a dot.
7658 lt_cv_objdir=_libs
7659 fi
7660 rmdir .libs 2>/dev/null
7661 fi
7662 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7663 echo "${ECHO_T}$lt_cv_objdir" >&6
7664 objdir=$lt_cv_objdir
7665
7666
7667
7668
7669
7670 cat >>confdefs.h <<_ACEOF
7671 #define LT_OBJDIR "$lt_cv_objdir/"
7672 _ACEOF
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690 case $host_os in
7691 aix3*)
7692 # AIX sometimes has problems with the GCC collect2 program. For some
7693 # reason, if we set the COLLECT_NAMES environment variable, the problems
7694 # vanish in a puff of smoke.
7695 if test "X${COLLECT_NAMES+set}" != Xset; then
7696 COLLECT_NAMES=
7697 export COLLECT_NAMES
7698 fi
7699 ;;
7700 esac
7701
7702 # Sed substitution that helps us do robust quoting. It backslashifies
7703 # metacharacters that are still active within double-quoted strings.
7704 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7705
7706 # Same as above, but do not quote variable references.
7707 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7708
7709 # Sed substitution to delay expansion of an escaped shell variable in a
7710 # double_quote_subst'ed string.
7711 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7712
7713 # Sed substitution to delay expansion of an escaped single quote.
7714 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7715
7716 # Sed substitution to avoid accidental globbing in evaled expressions
7717 no_glob_subst='s/\*/\\\*/g'
7718
7719 # Global variables:
7720 ofile=libtool
7721 can_build_shared=yes
7722
7723 # All known linkers require a `.a' archive for static linking (except MSVC,
7724 # which needs '.lib').
7725 libext=a
7726
7727 with_gnu_ld="$lt_cv_prog_gnu_ld"
7728
7729 old_CC="$CC"
7730 old_CFLAGS="$CFLAGS"
7731
7732 # Set sane defaults for various variables
7733 test -z "$CC" && CC=cc
7734 test -z "$LTCC" && LTCC=$CC
7735 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7736 test -z "$LD" && LD=ld
7737 test -z "$ac_objext" && ac_objext=o
7738
7739 for cc_temp in $compiler""; do
7740 case $cc_temp in
7741 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7742 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7743 \-*) ;;
7744 *) break;;
7745 esac
7746 done
7747 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7748
7749
7750 # Only perform the check for file, if the check method requires it
7751 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7752 case $deplibs_check_method in
7753 file_magic*)
7754 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7755 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7756 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7757 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760 case $MAGIC_CMD in
7761 [\\/*] | ?:[\\/]*)
7762 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7763 ;;
7764 *)
7765 lt_save_MAGIC_CMD="$MAGIC_CMD"
7766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7767 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7768 for ac_dir in $ac_dummy; do
7769 IFS="$lt_save_ifs"
7770 test -z "$ac_dir" && ac_dir=.
7771 if test -f $ac_dir/${ac_tool_prefix}file; then
7772 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7773 if test -n "$file_magic_test_file"; then
7774 case $deplibs_check_method in
7775 "file_magic "*)
7776 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7778 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7779 $EGREP "$file_magic_regex" > /dev/null; then
7780 :
7781 else
7782 cat <<_LT_EOF 1>&2
7783
7784 *** Warning: the command libtool uses to detect shared libraries,
7785 *** $file_magic_cmd, produces output that libtool cannot recognize.
7786 *** The result is that libtool may fail to recognize shared libraries
7787 *** as such. This will affect the creation of libtool libraries that
7788 *** depend on shared libraries, but programs linked with such libtool
7789 *** libraries will work regardless of this problem. Nevertheless, you
7790 *** may want to report the problem to your system manager and/or to
7791 *** bug-libtool@gnu.org
7792
7793 _LT_EOF
7794 fi ;;
7795 esac
7796 fi
7797 break
7798 fi
7799 done
7800 IFS="$lt_save_ifs"
7801 MAGIC_CMD="$lt_save_MAGIC_CMD"
7802 ;;
7803 esac
7804 fi
7805
7806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7807 if test -n "$MAGIC_CMD"; then
7808 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7809 echo "${ECHO_T}$MAGIC_CMD" >&6
7810 else
7811 echo "$as_me:$LINENO: result: no" >&5
7812 echo "${ECHO_T}no" >&6
7813 fi
7814
7815
7816
7817
7818
7819 if test -z "$lt_cv_path_MAGIC_CMD"; then
7820 if test -n "$ac_tool_prefix"; then
7821 echo "$as_me:$LINENO: checking for file" >&5
7822 echo $ECHO_N "checking for file... $ECHO_C" >&6
7823 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826 case $MAGIC_CMD in
7827 [\\/*] | ?:[\\/]*)
7828 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7829 ;;
7830 *)
7831 lt_save_MAGIC_CMD="$MAGIC_CMD"
7832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7833 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7834 for ac_dir in $ac_dummy; do
7835 IFS="$lt_save_ifs"
7836 test -z "$ac_dir" && ac_dir=.
7837 if test -f $ac_dir/file; then
7838 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7839 if test -n "$file_magic_test_file"; then
7840 case $deplibs_check_method in
7841 "file_magic "*)
7842 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7844 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7845 $EGREP "$file_magic_regex" > /dev/null; then
7846 :
7847 else
7848 cat <<_LT_EOF 1>&2
7849
7850 *** Warning: the command libtool uses to detect shared libraries,
7851 *** $file_magic_cmd, produces output that libtool cannot recognize.
7852 *** The result is that libtool may fail to recognize shared libraries
7853 *** as such. This will affect the creation of libtool libraries that
7854 *** depend on shared libraries, but programs linked with such libtool
7855 *** libraries will work regardless of this problem. Nevertheless, you
7856 *** may want to report the problem to your system manager and/or to
7857 *** bug-libtool@gnu.org
7858
7859 _LT_EOF
7860 fi ;;
7861 esac
7862 fi
7863 break
7864 fi
7865 done
7866 IFS="$lt_save_ifs"
7867 MAGIC_CMD="$lt_save_MAGIC_CMD"
7868 ;;
7869 esac
7870 fi
7871
7872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7873 if test -n "$MAGIC_CMD"; then
7874 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7875 echo "${ECHO_T}$MAGIC_CMD" >&6
7876 else
7877 echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6
7879 fi
7880
7881
7882 else
7883 MAGIC_CMD=:
7884 fi
7885 fi
7886
7887 fi
7888 ;;
7889 esac
7890
7891 # Use C for the default configuration in the libtool script
7892
7893 lt_save_CC="$CC"
7894 ac_ext=c
7895 ac_cpp='$CPP $CPPFLAGS'
7896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7899
7900
7901 # Source file extension for C test sources.
7902 ac_ext=c
7903
7904 # Object file extension for compiled C test sources.
7905 objext=o
7906 objext=$objext
7907
7908 # Code to be used in simple compile tests
7909 lt_simple_compile_test_code="int some_variable = 0;"
7910
7911 # Code to be used in simple link tests
7912 lt_simple_link_test_code='int main(){return(0);}'
7913
7914
7915
7916
7917
7918
7919
7920 # If no C compiler was specified, use CC.
7921 LTCC=${LTCC-"$CC"}
7922
7923 # If no C compiler flags were specified, use CFLAGS.
7924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7925
7926 # Allow CC to be a program name with arguments.
7927 compiler=$CC
7928
7929 # Save the default compiler, since it gets overwritten when the other
7930 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7931 compiler_DEFAULT=$CC
7932
7933 # save warnings/boilerplate of simple test code
7934 ac_outfile=conftest.$ac_objext
7935 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7936 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7937 _lt_compiler_boilerplate=`cat conftest.err`
7938 $RM conftest*
7939
7940 ac_outfile=conftest.$ac_objext
7941 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7942 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7943 _lt_linker_boilerplate=`cat conftest.err`
7944 $RM -r conftest*
7945
7946
7947 ## CAVEAT EMPTOR:
7948 ## There is no encapsulation within the following macros, do not change
7949 ## the running order or otherwise move them around unless you know exactly
7950 ## what you are doing...
7951 if test -n "$compiler"; then
7952
7953 lt_prog_compiler_no_builtin_flag=
7954
7955 if test "$GCC" = yes; then
7956 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7957
7958 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7959 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7960 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963 lt_cv_prog_compiler_rtti_exceptions=no
7964 ac_outfile=conftest.$ac_objext
7965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7966 lt_compiler_flag="-fno-rtti -fno-exceptions"
7967 # Insert the option either (1) after the last *FLAGS variable, or
7968 # (2) before a word containing "conftest.", or (3) at the end.
7969 # Note that $ac_compile itself does not contain backslashes and begins
7970 # with a dollar sign (not a hyphen), so the echo should work correctly.
7971 # The option is referenced via a variable to avoid confusing sed.
7972 lt_compile=`echo "$ac_compile" | $SED \
7973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7975 -e 's:$: $lt_compiler_flag:'`
7976 (eval echo "\"\$as_me:7976: $lt_compile\"" >&5)
7977 (eval "$lt_compile" 2>conftest.err)
7978 ac_status=$?
7979 cat conftest.err >&5
7980 echo "$as_me:7980: \$? = $ac_status" >&5
7981 if (exit $ac_status) && test -s "$ac_outfile"; then
7982 # The compiler can only warn and ignore the option if not recognized
7983 # So say no if there are warnings other than the usual output.
7984 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7987 lt_cv_prog_compiler_rtti_exceptions=yes
7988 fi
7989 fi
7990 $RM conftest*
7991
7992 fi
7993 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7994 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7995
7996 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7997 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7998 else
7999 :
8000 fi
8001
8002 fi
8003
8004
8005
8006
8007
8008
8009 lt_prog_compiler_wl=
8010 lt_prog_compiler_pic=
8011 lt_prog_compiler_static=
8012
8013 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8014 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8015
8016 if test "$GCC" = yes; then
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_static='-static'
8019
8020 case $host_os in
8021 aix*)
8022 # All AIX code is PIC.
8023 if test "$host_cpu" = ia64; then
8024 # AIX 5 now supports IA64 processor
8025 lt_prog_compiler_static='-Bstatic'
8026 fi
8027 ;;
8028
8029 amigaos*)
8030 case $host_cpu in
8031 powerpc)
8032 # see comment about AmigaOS4 .so support
8033 lt_prog_compiler_pic='-fPIC'
8034 ;;
8035 m68k)
8036 # FIXME: we need at least 68020 code to build shared libraries, but
8037 # adding the `-m68020' flag to GCC prevents building anything better,
8038 # like `-m68040'.
8039 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8040 ;;
8041 esac
8042 ;;
8043
8044 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8045 # PIC is the default for these OSes.
8046 ;;
8047
8048 mingw* | cygwin* | pw32* | os2* | cegcc*)
8049 # This hack is so that the source file can tell whether it is being
8050 # built for inclusion in a dll (and should export symbols for example).
8051 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8052 # (--disable-auto-import) libraries
8053 lt_prog_compiler_pic='-DDLL_EXPORT'
8054 ;;
8055
8056 darwin* | rhapsody*)
8057 # PIC is the default on this platform
8058 # Common symbols not allowed in MH_DYLIB files
8059 lt_prog_compiler_pic='-fno-common'
8060 ;;
8061
8062 hpux*)
8063 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8064 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8065 # sets the default TLS model and affects inlining.
8066 case $host_cpu in
8067 hppa*64*)
8068 # +Z the default
8069 ;;
8070 *)
8071 lt_prog_compiler_pic='-fPIC'
8072 ;;
8073 esac
8074 ;;
8075
8076 interix[3-9]*)
8077 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8078 # Instead, we relocate shared libraries at runtime.
8079 ;;
8080
8081 msdosdjgpp*)
8082 # Just because we use GCC doesn't mean we suddenly get shared libraries
8083 # on systems that don't support them.
8084 lt_prog_compiler_can_build_shared=no
8085 enable_shared=no
8086 ;;
8087
8088 *nto* | *qnx*)
8089 # QNX uses GNU C++, but need to define -shared option too, otherwise
8090 # it will coredump.
8091 lt_prog_compiler_pic='-fPIC -shared'
8092 ;;
8093
8094 sysv4*MP*)
8095 if test -d /usr/nec; then
8096 lt_prog_compiler_pic=-Kconform_pic
8097 fi
8098 ;;
8099
8100 *)
8101 lt_prog_compiler_pic='-fPIC'
8102 ;;
8103 esac
8104 else
8105 # PORTME Check for flag to pass linker flags through the system compiler.
8106 case $host_os in
8107 aix*)
8108 lt_prog_compiler_wl='-Wl,'
8109 if test "$host_cpu" = ia64; then
8110 # AIX 5 now supports IA64 processor
8111 lt_prog_compiler_static='-Bstatic'
8112 else
8113 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8114 fi
8115 ;;
8116
8117 mingw* | cygwin* | pw32* | os2* | cegcc*)
8118 # This hack is so that the source file can tell whether it is being
8119 # built for inclusion in a dll (and should export symbols for example).
8120 lt_prog_compiler_pic='-DDLL_EXPORT'
8121 ;;
8122
8123 hpux9* | hpux10* | hpux11*)
8124 lt_prog_compiler_wl='-Wl,'
8125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8126 # not for PA HP-UX.
8127 case $host_cpu in
8128 hppa*64*|ia64*)
8129 # +Z the default
8130 ;;
8131 *)
8132 lt_prog_compiler_pic='+Z'
8133 ;;
8134 esac
8135 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8136 lt_prog_compiler_static='${wl}-a ${wl}archive'
8137 ;;
8138
8139 irix5* | irix6* | nonstopux*)
8140 lt_prog_compiler_wl='-Wl,'
8141 # PIC (with -KPIC) is the default.
8142 lt_prog_compiler_static='-non_shared'
8143 ;;
8144
8145 linux* | k*bsd*-gnu)
8146 case $cc_basename in
8147 # old Intel for x86_64 which still supported -KPIC.
8148 ecc*)
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_pic='-KPIC'
8151 lt_prog_compiler_static='-static'
8152 ;;
8153 # icc used to be incompatible with GCC.
8154 # ICC 10 doesn't accept -KPIC any more.
8155 icc* | ifort*)
8156 lt_prog_compiler_wl='-Wl,'
8157 lt_prog_compiler_pic='-fPIC'
8158 lt_prog_compiler_static='-static'
8159 ;;
8160 # Lahey Fortran 8.1.
8161 lf95*)
8162 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_pic='--shared'
8164 lt_prog_compiler_static='--static'
8165 ;;
8166 pgcc* | pgf77* | pgf90* | pgf95*)
8167 # Portland Group compilers (*not* the Pentium gcc compiler,
8168 # which looks to be a dead project)
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_pic='-fpic'
8171 lt_prog_compiler_static='-Bstatic'
8172 ;;
8173 ccc*)
8174 lt_prog_compiler_wl='-Wl,'
8175 # All Alpha code is PIC.
8176 lt_prog_compiler_static='-non_shared'
8177 ;;
8178 xl*)
8179 # IBM XL C 8.0/Fortran 10.1 on PPC
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_pic='-qpic'
8182 lt_prog_compiler_static='-qstaticlink'
8183 ;;
8184 *)
8185 case `$CC -V 2>&1 | sed 5q` in
8186 *Sun\ C*)
8187 # Sun C 5.9
8188 lt_prog_compiler_pic='-KPIC'
8189 lt_prog_compiler_static='-Bstatic'
8190 lt_prog_compiler_wl='-Wl,'
8191 ;;
8192 *Sun\ F*)
8193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8194 lt_prog_compiler_pic='-KPIC'
8195 lt_prog_compiler_static='-Bstatic'
8196 lt_prog_compiler_wl=''
8197 ;;
8198 esac
8199 ;;
8200 esac
8201 ;;
8202
8203 newsos6)
8204 lt_prog_compiler_pic='-KPIC'
8205 lt_prog_compiler_static='-Bstatic'
8206 ;;
8207
8208 *nto* | *qnx*)
8209 # QNX uses GNU C++, but need to define -shared option too, otherwise
8210 # it will coredump.
8211 lt_prog_compiler_pic='-fPIC -shared'
8212 ;;
8213
8214 osf3* | osf4* | osf5*)
8215 lt_prog_compiler_wl='-Wl,'
8216 # All OSF/1 code is PIC.
8217 lt_prog_compiler_static='-non_shared'
8218 ;;
8219
8220 rdos*)
8221 lt_prog_compiler_static='-non_shared'
8222 ;;
8223
8224 solaris*)
8225 lt_prog_compiler_pic='-KPIC'
8226 lt_prog_compiler_static='-Bstatic'
8227 case $cc_basename in
8228 f77* | f90* | f95*)
8229 lt_prog_compiler_wl='-Qoption ld ';;
8230 *)
8231 lt_prog_compiler_wl='-Wl,';;
8232 esac
8233 ;;
8234
8235 sunos4*)
8236 lt_prog_compiler_wl='-Qoption ld '
8237 lt_prog_compiler_pic='-PIC'
8238 lt_prog_compiler_static='-Bstatic'
8239 ;;
8240
8241 sysv4 | sysv4.2uw2* | sysv4.3*)
8242 lt_prog_compiler_wl='-Wl,'
8243 lt_prog_compiler_pic='-KPIC'
8244 lt_prog_compiler_static='-Bstatic'
8245 ;;
8246
8247 sysv4*MP*)
8248 if test -d /usr/nec ;then
8249 lt_prog_compiler_pic='-Kconform_pic'
8250 lt_prog_compiler_static='-Bstatic'
8251 fi
8252 ;;
8253
8254 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8255 lt_prog_compiler_wl='-Wl,'
8256 lt_prog_compiler_pic='-KPIC'
8257 lt_prog_compiler_static='-Bstatic'
8258 ;;
8259
8260 unicos*)
8261 lt_prog_compiler_wl='-Wl,'
8262 lt_prog_compiler_can_build_shared=no
8263 ;;
8264
8265 uts4*)
8266 lt_prog_compiler_pic='-pic'
8267 lt_prog_compiler_static='-Bstatic'
8268 ;;
8269
8270 *)
8271 lt_prog_compiler_can_build_shared=no
8272 ;;
8273 esac
8274 fi
8275
8276 case $host_os in
8277 # For platforms which do not support PIC, -DPIC is meaningless:
8278 *djgpp*)
8279 lt_prog_compiler_pic=
8280 ;;
8281 *)
8282 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8283 ;;
8284 esac
8285 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8286 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8287
8288
8289
8290
8291
8292
8293 #
8294 # Check to make sure the PIC flag actually works.
8295 #
8296 if test -n "$lt_prog_compiler_pic"; then
8297 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8298 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8299 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302 lt_cv_prog_compiler_pic_works=no
8303 ac_outfile=conftest.$ac_objext
8304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8305 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8306 # Insert the option either (1) after the last *FLAGS variable, or
8307 # (2) before a word containing "conftest.", or (3) at the end.
8308 # Note that $ac_compile itself does not contain backslashes and begins
8309 # with a dollar sign (not a hyphen), so the echo should work correctly.
8310 # The option is referenced via a variable to avoid confusing sed.
8311 lt_compile=`echo "$ac_compile" | $SED \
8312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8314 -e 's:$: $lt_compiler_flag:'`
8315 (eval echo "\"\$as_me:8315: $lt_compile\"" >&5)
8316 (eval "$lt_compile" 2>conftest.err)
8317 ac_status=$?
8318 cat conftest.err >&5
8319 echo "$as_me:8319: \$? = $ac_status" >&5
8320 if (exit $ac_status) && test -s "$ac_outfile"; then
8321 # The compiler can only warn and ignore the option if not recognized
8322 # So say no if there are warnings other than the usual output.
8323 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8326 lt_cv_prog_compiler_pic_works=yes
8327 fi
8328 fi
8329 $RM conftest*
8330
8331 fi
8332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8333 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8334
8335 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8336 case $lt_prog_compiler_pic in
8337 "" | " "*) ;;
8338 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8339 esac
8340 else
8341 lt_prog_compiler_pic=
8342 lt_prog_compiler_can_build_shared=no
8343 fi
8344
8345 fi
8346
8347
8348
8349
8350
8351
8352 #
8353 # Check to make sure the static flag actually works.
8354 #
8355 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8356 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8357 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8358 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361 lt_cv_prog_compiler_static_works=no
8362 save_LDFLAGS="$LDFLAGS"
8363 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8364 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8366 # The linker can only warn and ignore the option if not recognized
8367 # So say no if there are warnings
8368 if test -s conftest.err; then
8369 # Append any errors to the config.log.
8370 cat conftest.err 1>&5
8371 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8373 if diff conftest.exp conftest.er2 >/dev/null; then
8374 lt_cv_prog_compiler_static_works=yes
8375 fi
8376 else
8377 lt_cv_prog_compiler_static_works=yes
8378 fi
8379 fi
8380 $RM -r conftest*
8381 LDFLAGS="$save_LDFLAGS"
8382
8383 fi
8384 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8385 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8386
8387 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8388 :
8389 else
8390 lt_prog_compiler_static=
8391 fi
8392
8393
8394
8395
8396
8397
8398
8399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8401 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404 lt_cv_prog_compiler_c_o=no
8405 $RM -r conftest 2>/dev/null
8406 mkdir conftest
8407 cd conftest
8408 mkdir out
8409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8410
8411 lt_compiler_flag="-o out/conftest2.$ac_objext"
8412 # Insert the option either (1) after the last *FLAGS variable, or
8413 # (2) before a word containing "conftest.", or (3) at the end.
8414 # Note that $ac_compile itself does not contain backslashes and begins
8415 # with a dollar sign (not a hyphen), so the echo should work correctly.
8416 lt_compile=`echo "$ac_compile" | $SED \
8417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8419 -e 's:$: $lt_compiler_flag:'`
8420 (eval echo "\"\$as_me:8420: $lt_compile\"" >&5)
8421 (eval "$lt_compile" 2>out/conftest.err)
8422 ac_status=$?
8423 cat out/conftest.err >&5
8424 echo "$as_me:8424: \$? = $ac_status" >&5
8425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8426 then
8427 # The compiler can only warn and ignore the option if not recognized
8428 # So say no if there are warnings
8429 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8432 lt_cv_prog_compiler_c_o=yes
8433 fi
8434 fi
8435 chmod u+w . 2>&5
8436 $RM conftest*
8437 # SGI C++ compiler will create directory out/ii_files/ for
8438 # template instantiation
8439 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8440 $RM out/* && rmdir out
8441 cd ..
8442 $RM -r conftest
8443 $RM conftest*
8444
8445 fi
8446 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8447 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8448
8449
8450
8451
8452
8453
8454 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8455 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8456 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 else
8459 lt_cv_prog_compiler_c_o=no
8460 $RM -r conftest 2>/dev/null
8461 mkdir conftest
8462 cd conftest
8463 mkdir out
8464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8465
8466 lt_compiler_flag="-o out/conftest2.$ac_objext"
8467 # Insert the option either (1) after the last *FLAGS variable, or
8468 # (2) before a word containing "conftest.", or (3) at the end.
8469 # Note that $ac_compile itself does not contain backslashes and begins
8470 # with a dollar sign (not a hyphen), so the echo should work correctly.
8471 lt_compile=`echo "$ac_compile" | $SED \
8472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8474 -e 's:$: $lt_compiler_flag:'`
8475 (eval echo "\"\$as_me:8475: $lt_compile\"" >&5)
8476 (eval "$lt_compile" 2>out/conftest.err)
8477 ac_status=$?
8478 cat out/conftest.err >&5
8479 echo "$as_me:8479: \$? = $ac_status" >&5
8480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8481 then
8482 # The compiler can only warn and ignore the option if not recognized
8483 # So say no if there are warnings
8484 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8487 lt_cv_prog_compiler_c_o=yes
8488 fi
8489 fi
8490 chmod u+w . 2>&5
8491 $RM conftest*
8492 # SGI C++ compiler will create directory out/ii_files/ for
8493 # template instantiation
8494 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8495 $RM out/* && rmdir out
8496 cd ..
8497 $RM -r conftest
8498 $RM conftest*
8499
8500 fi
8501 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8502 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8503
8504
8505
8506
8507 hard_links="nottested"
8508 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8509 # do not overwrite the value of need_locks provided by the user
8510 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8511 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8512 hard_links=yes
8513 $RM conftest*
8514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8515 touch conftest.a
8516 ln conftest.a conftest.b 2>&5 || hard_links=no
8517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8518 echo "$as_me:$LINENO: result: $hard_links" >&5
8519 echo "${ECHO_T}$hard_links" >&6
8520 if test "$hard_links" = no; then
8521 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8522 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8523 need_locks=warn
8524 fi
8525 else
8526 need_locks=no
8527 fi
8528
8529
8530
8531
8532
8533
8534 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8535 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8536
8537 runpath_var=
8538 allow_undefined_flag=
8539 always_export_symbols=no
8540 archive_cmds=
8541 archive_expsym_cmds=
8542 compiler_needs_object=no
8543 enable_shared_with_static_runtimes=no
8544 export_dynamic_flag_spec=
8545 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8546 hardcode_automatic=no
8547 hardcode_direct=no
8548 hardcode_direct_absolute=no
8549 hardcode_libdir_flag_spec=
8550 hardcode_libdir_flag_spec_ld=
8551 hardcode_libdir_separator=
8552 hardcode_minus_L=no
8553 hardcode_shlibpath_var=unsupported
8554 inherit_rpath=no
8555 link_all_deplibs=unknown
8556 module_cmds=
8557 module_expsym_cmds=
8558 old_archive_from_new_cmds=
8559 old_archive_from_expsyms_cmds=
8560 thread_safe_flag_spec=
8561 whole_archive_flag_spec=
8562 # include_expsyms should be a list of space-separated symbols to be *always*
8563 # included in the symbol list
8564 include_expsyms=
8565 # exclude_expsyms can be an extended regexp of symbols to exclude
8566 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8567 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8568 # as well as any symbol that contains `d'.
8569 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8570 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8571 # platforms (ab)use it in PIC code, but their linkers get confused if
8572 # the symbol is explicitly referenced. Since portable code cannot
8573 # rely on this symbol name, it's probably fine to never include it in
8574 # preloaded symbol tables.
8575 # Exclude shared library initialization/finalization symbols.
8576 extract_expsyms_cmds=
8577
8578 case $host_os in
8579 cygwin* | mingw* | pw32* | cegcc*)
8580 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8581 # When not using gcc, we currently assume that we are using
8582 # Microsoft Visual C++.
8583 if test "$GCC" != yes; then
8584 with_gnu_ld=no
8585 fi
8586 ;;
8587 interix*)
8588 # we just hope/assume this is gcc and not c89 (= MSVC++)
8589 with_gnu_ld=yes
8590 ;;
8591 openbsd*)
8592 with_gnu_ld=no
8593 ;;
8594 esac
8595
8596 ld_shlibs=yes
8597 if test "$with_gnu_ld" = yes; then
8598 # If archive_cmds runs LD, not CC, wlarc should be empty
8599 wlarc='${wl}'
8600
8601 # Set some defaults for GNU ld with shared library support. These
8602 # are reset later if shared libraries are not supported. Putting them
8603 # here allows them to be overridden if necessary.
8604 runpath_var=LD_RUN_PATH
8605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8606 export_dynamic_flag_spec='${wl}--export-dynamic'
8607 # ancient GNU ld didn't support --whole-archive et. al.
8608 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8609 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8610 else
8611 whole_archive_flag_spec=
8612 fi
8613 supports_anon_versioning=no
8614 case `$LD -v 2>&1` in
8615 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8616 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8617 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8618 *\ 2.11.*) ;; # other 2.11 versions
8619 *) supports_anon_versioning=yes ;;
8620 esac
8621
8622 # See if GNU ld supports shared libraries.
8623 case $host_os in
8624 aix[3-9]*)
8625 # On AIX/PPC, the GNU linker is very broken
8626 if test "$host_cpu" != ia64; then
8627 ld_shlibs=no
8628 cat <<_LT_EOF 1>&2
8629
8630 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8631 *** to be unable to reliably create shared libraries on AIX.
8632 *** Therefore, libtool is disabling shared libraries support. If you
8633 *** really care for shared libraries, you may want to modify your PATH
8634 *** so that a non-GNU linker is found, and then restart.
8635
8636 _LT_EOF
8637 fi
8638 ;;
8639
8640 amigaos*)
8641 case $host_cpu in
8642 powerpc)
8643 # see comment about AmigaOS4 .so support
8644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645 archive_expsym_cmds=''
8646 ;;
8647 m68k)
8648 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)'
8649 hardcode_libdir_flag_spec='-L$libdir'
8650 hardcode_minus_L=yes
8651 ;;
8652 esac
8653 ;;
8654
8655 beos*)
8656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657 allow_undefined_flag=unsupported
8658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8659 # support --undefined. This deserves some investigation. FIXME
8660 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 else
8662 ld_shlibs=no
8663 fi
8664 ;;
8665
8666 cygwin* | mingw* | pw32* | cegcc*)
8667 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8668 # as there is no search path for DLLs.
8669 hardcode_libdir_flag_spec='-L$libdir'
8670 allow_undefined_flag=unsupported
8671 always_export_symbols=no
8672 enable_shared_with_static_runtimes=yes
8673 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8674
8675 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8677 # If the export-symbols file already is a .def file (1st line
8678 # is EXPORTS), use it as is; otherwise, prepend...
8679 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8680 cp $export_symbols $output_objdir/$soname.def;
8681 else
8682 echo EXPORTS > $output_objdir/$soname.def;
8683 cat $export_symbols >> $output_objdir/$soname.def;
8684 fi~
8685 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8686 else
8687 ld_shlibs=no
8688 fi
8689 ;;
8690
8691 interix[3-9]*)
8692 hardcode_direct=no
8693 hardcode_shlibpath_var=no
8694 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8695 export_dynamic_flag_spec='${wl}-E'
8696 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8697 # Instead, shared libraries are loaded at an image base (0x10000000 by
8698 # default) and relocated if they conflict, which is a slow very memory
8699 # consuming and fragmenting process. To avoid this, we pick a random,
8700 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8701 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8702 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8703 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'
8704 ;;
8705
8706 gnu* | linux* | tpf* | k*bsd*-gnu)
8707 tmp_diet=no
8708 if test "$host_os" = linux-dietlibc; then
8709 case $cc_basename in
8710 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8711 esac
8712 fi
8713 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8714 && test "$tmp_diet" = no
8715 then
8716 tmp_addflag=
8717 tmp_sharedflag='-shared'
8718 case $cc_basename,$host_cpu in
8719 pgcc*) # Portland Group C compiler
8720 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'
8721 tmp_addflag=' $pic_flag'
8722 ;;
8723 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8724 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'
8725 tmp_addflag=' $pic_flag -Mnomain' ;;
8726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8727 tmp_addflag=' -i_dynamic' ;;
8728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8729 tmp_addflag=' -i_dynamic -nofor_main' ;;
8730 ifc* | ifort*) # Intel Fortran compiler
8731 tmp_addflag=' -nofor_main' ;;
8732 lf95*) # Lahey Fortran 8.1
8733 whole_archive_flag_spec=
8734 tmp_sharedflag='--shared' ;;
8735 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8736 tmp_sharedflag='-qmkshrobj'
8737 tmp_addflag= ;;
8738 esac
8739 case `$CC -V 2>&1 | sed 5q` in
8740 *Sun\ C*) # Sun C 5.9
8741 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'
8742 compiler_needs_object=yes
8743 tmp_sharedflag='-G' ;;
8744 *Sun\ F*) # Sun Fortran 8.3
8745 tmp_sharedflag='-G' ;;
8746 esac
8747 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748
8749 if test "x$supports_anon_versioning" = xyes; then
8750 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8752 echo "local: *; };" >> $output_objdir/$libname.ver~
8753 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8754 fi
8755
8756 case $cc_basename in
8757 xlf*)
8758 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8759 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8760 hardcode_libdir_flag_spec=
8761 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8762 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8763 if test "x$supports_anon_versioning" = xyes; then
8764 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8766 echo "local: *; };" >> $output_objdir/$libname.ver~
8767 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8768 fi
8769 ;;
8770 esac
8771 else
8772 ld_shlibs=no
8773 fi
8774 ;;
8775
8776 netbsd*)
8777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8778 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8779 wlarc=
8780 else
8781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8783 fi
8784 ;;
8785
8786 solaris*)
8787 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8788 ld_shlibs=no
8789 cat <<_LT_EOF 1>&2
8790
8791 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8792 *** create shared libraries on Solaris systems. Therefore, libtool
8793 *** is disabling shared libraries support. We urge you to upgrade GNU
8794 *** binutils to release 2.9.1 or newer. Another option is to modify
8795 *** your PATH or compiler configuration so that the native linker is
8796 *** used, and then restart.
8797
8798 _LT_EOF
8799 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8802 else
8803 ld_shlibs=no
8804 fi
8805 ;;
8806
8807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8808 case `$LD -v 2>&1` in
8809 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8810 ld_shlibs=no
8811 cat <<_LT_EOF 1>&2
8812
8813 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8814 *** reliably create shared libraries on SCO systems. Therefore, libtool
8815 *** is disabling shared libraries support. We urge you to upgrade GNU
8816 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8817 *** your PATH or compiler configuration so that the native linker is
8818 *** used, and then restart.
8819
8820 _LT_EOF
8821 ;;
8822 *)
8823 # For security reasons, it is highly recommended that you always
8824 # use absolute paths for naming shared libraries, and exclude the
8825 # DT_RUNPATH tag from executables and libraries. But doing so
8826 # requires that you compile everything twice, which is a pain.
8827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8831 else
8832 ld_shlibs=no
8833 fi
8834 ;;
8835 esac
8836 ;;
8837
8838 sunos4*)
8839 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8840 wlarc=
8841 hardcode_direct=yes
8842 hardcode_shlibpath_var=no
8843 ;;
8844
8845 *)
8846 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8849 else
8850 ld_shlibs=no
8851 fi
8852 ;;
8853 esac
8854
8855 if test "$ld_shlibs" = no; then
8856 runpath_var=
8857 hardcode_libdir_flag_spec=
8858 export_dynamic_flag_spec=
8859 whole_archive_flag_spec=
8860 fi
8861 else
8862 # PORTME fill in a description of your system's linker (not GNU ld)
8863 case $host_os in
8864 aix3*)
8865 allow_undefined_flag=unsupported
8866 always_export_symbols=yes
8867 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'
8868 # Note: this linker hardcodes the directories in LIBPATH if there
8869 # are no directories specified by -L.
8870 hardcode_minus_L=yes
8871 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8872 # Neither direct hardcoding nor static linking is supported with a
8873 # broken collect2.
8874 hardcode_direct=unsupported
8875 fi
8876 ;;
8877
8878 aix[4-9]*)
8879 if test "$host_cpu" = ia64; then
8880 # On IA64, the linker does run time linking by default, so we don't
8881 # have to do anything special.
8882 aix_use_runtimelinking=no
8883 exp_sym_flag='-Bexport'
8884 no_entry_flag=""
8885 else
8886 # If we're using GNU nm, then we don't want the "-C" option.
8887 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8888 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8889 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'
8890 else
8891 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'
8892 fi
8893 aix_use_runtimelinking=no
8894
8895 # Test if we are trying to use run time linking or normal
8896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8897 # need to do runtime linking.
8898 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8899 for ld_flag in $LDFLAGS; do
8900 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8901 aix_use_runtimelinking=yes
8902 break
8903 fi
8904 done
8905 ;;
8906 esac
8907
8908 exp_sym_flag='-bexport'
8909 no_entry_flag='-bnoentry'
8910 fi
8911
8912 # When large executables or shared objects are built, AIX ld can
8913 # have problems creating the table of contents. If linking a library
8914 # or program results in "error TOC overflow" add -mminimal-toc to
8915 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8916 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8917
8918 archive_cmds=''
8919 hardcode_direct=yes
8920 hardcode_direct_absolute=yes
8921 hardcode_libdir_separator=':'
8922 link_all_deplibs=yes
8923 file_list_spec='${wl}-f,'
8924
8925 if test "$GCC" = yes; then
8926 case $host_os in aix4.[012]|aix4.[012].*)
8927 # We only want to do this on AIX 4.2 and lower, the check
8928 # below for broken collect2 doesn't work under 4.3+
8929 collect2name=`${CC} -print-prog-name=collect2`
8930 if test -f "$collect2name" &&
8931 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8932 then
8933 # We have reworked collect2
8934 :
8935 else
8936 # We have old collect2
8937 hardcode_direct=unsupported
8938 # It fails to find uninstalled libraries when the uninstalled
8939 # path is not listed in the libpath. Setting hardcode_minus_L
8940 # to unsupported forces relinking
8941 hardcode_minus_L=yes
8942 hardcode_libdir_flag_spec='-L$libdir'
8943 hardcode_libdir_separator=
8944 fi
8945 ;;
8946 esac
8947 shared_flag='-shared'
8948 if test "$aix_use_runtimelinking" = yes; then
8949 shared_flag="$shared_flag "'${wl}-G'
8950 fi
8951 else
8952 # not using gcc
8953 if test "$host_cpu" = ia64; then
8954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8955 # chokes on -Wl,-G. The following line is correct:
8956 shared_flag='-G'
8957 else
8958 if test "$aix_use_runtimelinking" = yes; then
8959 shared_flag='${wl}-G'
8960 else
8961 shared_flag='${wl}-bM:SRE'
8962 fi
8963 fi
8964 fi
8965
8966 export_dynamic_flag_spec='${wl}-bexpall'
8967 # It seems that -bexpall does not export symbols beginning with
8968 # underscore (_), so it is better to generate a list of symbols to export.
8969 always_export_symbols=yes
8970 if test "$aix_use_runtimelinking" = yes; then
8971 # Warning - without using the other runtime loading flags (-brtl),
8972 # -berok will link without error, but may produce a broken library.
8973 allow_undefined_flag='-berok'
8974 # Determine the default libpath from the value encoded in an
8975 # empty executable.
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982
8983 int
8984 main ()
8985 {
8986
8987 ;
8988 return 0;
8989 }
8990 _ACEOF
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993 (eval $ac_link) 2>conftest.er1
8994 ac_status=$?
8995 grep -v '^ *+' conftest.er1 >conftest.err
8996 rm -f conftest.er1
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try='test -z "$ac_c_werror_flag"
9001 || test ! -s conftest.err'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013
9014 lt_aix_libpath_sed='
9015 /Import File Strings/,/^$/ {
9016 /^0/ {
9017 s/^0 *\(.*\)$/\1/
9018 p
9019 }
9020 }'
9021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9022 # Check for a 64-bit object if we didn't find anything.
9023 if test -z "$aix_libpath"; then
9024 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9025 fi
9026 else
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9029
9030 fi
9031 rm -f conftest.err conftest.$ac_objext \
9032 conftest$ac_exeext conftest.$ac_ext
9033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9034
9035 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9036 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"
9037 else
9038 if test "$host_cpu" = ia64; then
9039 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9040 allow_undefined_flag="-z nodefs"
9041 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"
9042 else
9043 # Determine the default libpath from the value encoded in an
9044 # empty executable.
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h. */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051
9052 int
9053 main ()
9054 {
9055
9056 ;
9057 return 0;
9058 }
9059 _ACEOF
9060 rm -f conftest.$ac_objext conftest$ac_exeext
9061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062 (eval $ac_link) 2>conftest.er1
9063 ac_status=$?
9064 grep -v '^ *+' conftest.er1 >conftest.err
9065 rm -f conftest.er1
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -z "$ac_c_werror_flag"
9070 || test ! -s conftest.err'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; } &&
9076 { ac_try='test -s conftest$ac_exeext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 (eval $ac_try) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
9082
9083 lt_aix_libpath_sed='
9084 /Import File Strings/,/^$/ {
9085 /^0/ {
9086 s/^0 *\(.*\)$/\1/
9087 p
9088 }
9089 }'
9090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9091 # Check for a 64-bit object if we didn't find anything.
9092 if test -z "$aix_libpath"; then
9093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9094 fi
9095 else
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 fi
9100 rm -f conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9103
9104 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9105 # Warning - without using the other run time loading flags,
9106 # -berok will link without error, but may produce a broken library.
9107 no_undefined_flag=' ${wl}-bernotok'
9108 allow_undefined_flag=' ${wl}-berok'
9109 # Exported symbols can be pulled into shared objects from archives
9110 whole_archive_flag_spec='$convenience'
9111 archive_cmds_need_lc=yes
9112 # This is similar to how AIX traditionally builds its shared libraries.
9113 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'
9114 fi
9115 fi
9116 ;;
9117
9118 amigaos*)
9119 case $host_cpu in
9120 powerpc)
9121 # see comment about AmigaOS4 .so support
9122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9123 archive_expsym_cmds=''
9124 ;;
9125 m68k)
9126 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)'
9127 hardcode_libdir_flag_spec='-L$libdir'
9128 hardcode_minus_L=yes
9129 ;;
9130 esac
9131 ;;
9132
9133 bsdi[45]*)
9134 export_dynamic_flag_spec=-rdynamic
9135 ;;
9136
9137 cygwin* | mingw* | pw32* | cegcc*)
9138 # When not using gcc, we currently assume that we are using
9139 # Microsoft Visual C++.
9140 # hardcode_libdir_flag_spec is actually meaningless, as there is
9141 # no search path for DLLs.
9142 hardcode_libdir_flag_spec=' '
9143 allow_undefined_flag=unsupported
9144 # Tell ltmain to make .lib files, not .a files.
9145 libext=lib
9146 # Tell ltmain to make .dll files, not .so files.
9147 shrext_cmds=".dll"
9148 # FIXME: Setting linknames here is a bad hack.
9149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9150 # The linker will automatically build a .lib file if we build a DLL.
9151 old_archive_from_new_cmds='true'
9152 # FIXME: Should let the user specify the lib program.
9153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9154 fix_srcfile_path='`cygpath -w "$srcfile"`'
9155 enable_shared_with_static_runtimes=yes
9156 ;;
9157
9158 darwin* | rhapsody*)
9159
9160
9161 archive_cmds_need_lc=no
9162 hardcode_direct=no
9163 hardcode_automatic=yes
9164 hardcode_shlibpath_var=unsupported
9165 whole_archive_flag_spec=''
9166 link_all_deplibs=yes
9167 allow_undefined_flag="$_lt_dar_allow_undefined"
9168 case $cc_basename in
9169 ifort*) _lt_dar_can_shared=yes ;;
9170 *) _lt_dar_can_shared=$GCC ;;
9171 esac
9172 if test "$_lt_dar_can_shared" = "yes"; then
9173 output_verbose_link_cmd=echo
9174 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9175 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9176 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9177 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9178
9179 else
9180 ld_shlibs=no
9181 fi
9182
9183 ;;
9184
9185 dgux*)
9186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187 hardcode_libdir_flag_spec='-L$libdir'
9188 hardcode_shlibpath_var=no
9189 ;;
9190
9191 freebsd1*)
9192 ld_shlibs=no
9193 ;;
9194
9195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9196 # support. Future versions do this automatically, but an explicit c++rt0.o
9197 # does not break anything, and helps significantly (at the cost of a little
9198 # extra space).
9199 freebsd2.2*)
9200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9201 hardcode_libdir_flag_spec='-R$libdir'
9202 hardcode_direct=yes
9203 hardcode_shlibpath_var=no
9204 ;;
9205
9206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9207 freebsd2*)
9208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_direct=yes
9210 hardcode_minus_L=yes
9211 hardcode_shlibpath_var=no
9212 ;;
9213
9214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9215 freebsd* | dragonfly*)
9216 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9217 hardcode_libdir_flag_spec='-R$libdir'
9218 hardcode_direct=yes
9219 hardcode_shlibpath_var=no
9220 ;;
9221
9222 hpux9*)
9223 if test "$GCC" = yes; then
9224 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'
9225 else
9226 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'
9227 fi
9228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9229 hardcode_libdir_separator=:
9230 hardcode_direct=yes
9231
9232 # hardcode_minus_L: Not really in the search PATH,
9233 # but as the default location of the library.
9234 hardcode_minus_L=yes
9235 export_dynamic_flag_spec='${wl}-E'
9236 ;;
9237
9238 hpux10*)
9239 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9240 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9241 else
9242 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9243 fi
9244 if test "$with_gnu_ld" = no; then
9245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9246 hardcode_libdir_flag_spec_ld='+b $libdir'
9247 hardcode_libdir_separator=:
9248 hardcode_direct=yes
9249 hardcode_direct_absolute=yes
9250 export_dynamic_flag_spec='${wl}-E'
9251 # hardcode_minus_L: Not really in the search PATH,
9252 # but as the default location of the library.
9253 hardcode_minus_L=yes
9254 fi
9255 ;;
9256
9257 hpux11*)
9258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9259 case $host_cpu in
9260 hppa*64*)
9261 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9262 ;;
9263 ia64*)
9264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9265 ;;
9266 *)
9267 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9268 ;;
9269 esac
9270 else
9271 case $host_cpu in
9272 hppa*64*)
9273 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9274 ;;
9275 ia64*)
9276 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9277 ;;
9278 *)
9279 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9280 ;;
9281 esac
9282 fi
9283 if test "$with_gnu_ld" = no; then
9284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9285 hardcode_libdir_separator=:
9286
9287 case $host_cpu in
9288 hppa*64*|ia64*)
9289 hardcode_direct=no
9290 hardcode_shlibpath_var=no
9291 ;;
9292 *)
9293 hardcode_direct=yes
9294 hardcode_direct_absolute=yes
9295 export_dynamic_flag_spec='${wl}-E'
9296
9297 # hardcode_minus_L: Not really in the search PATH,
9298 # but as the default location of the library.
9299 hardcode_minus_L=yes
9300 ;;
9301 esac
9302 fi
9303 ;;
9304
9305 irix5* | irix6* | nonstopux*)
9306 if test "$GCC" = yes; then
9307 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'
9308 # Try to use the -exported_symbol ld option, if it does not
9309 # work, assume that -exports_file does not work either and
9310 # implicitly export all symbols.
9311 save_LDFLAGS="$LDFLAGS"
9312 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9313 cat >conftest.$ac_ext <<_ACEOF
9314 int foo(void) {}
9315 _ACEOF
9316 rm -f conftest.$ac_objext conftest$ac_exeext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318 (eval $ac_link) 2>conftest.er1
9319 ac_status=$?
9320 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -f conftest.er1
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try='test -z "$ac_c_werror_flag"
9326 || test ! -s conftest.err'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 (eval $ac_try) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; } &&
9332 { ac_try='test -s conftest$ac_exeext'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 (eval $ac_try) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; }; then
9338 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'
9339
9340 else
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9343
9344 fi
9345 rm -f conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 LDFLAGS="$save_LDFLAGS"
9348 else
9349 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'
9350 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'
9351 fi
9352 archive_cmds_need_lc='no'
9353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354 hardcode_libdir_separator=:
9355 inherit_rpath=yes
9356 link_all_deplibs=yes
9357 ;;
9358
9359 netbsd*)
9360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9362 else
9363 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9364 fi
9365 hardcode_libdir_flag_spec='-R$libdir'
9366 hardcode_direct=yes
9367 hardcode_shlibpath_var=no
9368 ;;
9369
9370 newsos6)
9371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_direct=yes
9373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374 hardcode_libdir_separator=:
9375 hardcode_shlibpath_var=no
9376 ;;
9377
9378 *nto* | *qnx*)
9379 ;;
9380
9381 openbsd*)
9382 if test -f /usr/libexec/ld.so; then
9383 hardcode_direct=yes
9384 hardcode_shlibpath_var=no
9385 hardcode_direct_absolute=yes
9386 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9388 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9390 export_dynamic_flag_spec='${wl}-E'
9391 else
9392 case $host_os in
9393 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9395 hardcode_libdir_flag_spec='-R$libdir'
9396 ;;
9397 *)
9398 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9400 ;;
9401 esac
9402 fi
9403 else
9404 ld_shlibs=no
9405 fi
9406 ;;
9407
9408 os2*)
9409 hardcode_libdir_flag_spec='-L$libdir'
9410 hardcode_minus_L=yes
9411 allow_undefined_flag=unsupported
9412 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'
9413 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9414 ;;
9415
9416 osf3*)
9417 if test "$GCC" = yes; then
9418 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9419 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'
9420 else
9421 allow_undefined_flag=' -expect_unresolved \*'
9422 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'
9423 fi
9424 archive_cmds_need_lc='no'
9425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9426 hardcode_libdir_separator=:
9427 ;;
9428
9429 osf4* | osf5*) # as osf3* with the addition of -msym flag
9430 if test "$GCC" = yes; then
9431 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9432 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'
9433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9434 else
9435 allow_undefined_flag=' -expect_unresolved \*'
9436 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'
9437 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~
9438 $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'
9439
9440 # Both c and cxx compiler support -rpath directly
9441 hardcode_libdir_flag_spec='-rpath $libdir'
9442 fi
9443 archive_cmds_need_lc='no'
9444 hardcode_libdir_separator=:
9445 ;;
9446
9447 solaris*)
9448 no_undefined_flag=' -z defs'
9449 if test "$GCC" = yes; then
9450 wlarc='${wl}'
9451 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9453 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9454 else
9455 case `$CC -V 2>&1` in
9456 *"Compilers 5.0"*)
9457 wlarc=''
9458 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9460 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9461 ;;
9462 *)
9463 wlarc='${wl}'
9464 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9466 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9467 ;;
9468 esac
9469 fi
9470 hardcode_libdir_flag_spec='-R$libdir'
9471 hardcode_shlibpath_var=no
9472 case $host_os in
9473 solaris2.[0-5] | solaris2.[0-5].*) ;;
9474 *)
9475 # The compiler driver will combine and reorder linker options,
9476 # but understands `-z linker_flag'. GCC discards it without `$wl',
9477 # but is careful enough not to reorder.
9478 # Supported since Solaris 2.6 (maybe 2.5.1?)
9479 if test "$GCC" = yes; then
9480 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9481 else
9482 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9483 fi
9484 ;;
9485 esac
9486 link_all_deplibs=yes
9487 ;;
9488
9489 sunos4*)
9490 if test "x$host_vendor" = xsequent; then
9491 # Use $CC to link under sequent, because it throws in some extra .o
9492 # files that make .init and .fini sections work.
9493 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9494 else
9495 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9496 fi
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_direct=yes
9499 hardcode_minus_L=yes
9500 hardcode_shlibpath_var=no
9501 ;;
9502
9503 sysv4)
9504 case $host_vendor in
9505 sni)
9506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507 hardcode_direct=yes # is this really true???
9508 ;;
9509 siemens)
9510 ## LD is ld it makes a PLAMLIB
9511 ## CC just makes a GrossModule.
9512 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9513 reload_cmds='$CC -r -o $output$reload_objs'
9514 hardcode_direct=no
9515 ;;
9516 motorola)
9517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9519 ;;
9520 esac
9521 runpath_var='LD_RUN_PATH'
9522 hardcode_shlibpath_var=no
9523 ;;
9524
9525 sysv4.3*)
9526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9527 hardcode_shlibpath_var=no
9528 export_dynamic_flag_spec='-Bexport'
9529 ;;
9530
9531 sysv4*MP*)
9532 if test -d /usr/nec; then
9533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_shlibpath_var=no
9535 runpath_var=LD_RUN_PATH
9536 hardcode_runpath_var=yes
9537 ld_shlibs=yes
9538 fi
9539 ;;
9540
9541 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9542 no_undefined_flag='${wl}-z,text'
9543 archive_cmds_need_lc=no
9544 hardcode_shlibpath_var=no
9545 runpath_var='LD_RUN_PATH'
9546
9547 if test "$GCC" = yes; then
9548 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9549 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9550 else
9551 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9553 fi
9554 ;;
9555
9556 sysv5* | sco3.2v5* | sco5v6*)
9557 # Note: We can NOT use -z defs as we might desire, because we do not
9558 # link with -lc, and that would cause any symbols used from libc to
9559 # always be unresolved, which means just about no library would
9560 # ever link correctly. If we're not using GNU ld we use -z text
9561 # though, which does catch some bad symbols but isn't as heavy-handed
9562 # as -z defs.
9563 no_undefined_flag='${wl}-z,text'
9564 allow_undefined_flag='${wl}-z,nodefs'
9565 archive_cmds_need_lc=no
9566 hardcode_shlibpath_var=no
9567 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9568 hardcode_libdir_separator=':'
9569 link_all_deplibs=yes
9570 export_dynamic_flag_spec='${wl}-Bexport'
9571 runpath_var='LD_RUN_PATH'
9572
9573 if test "$GCC" = yes; then
9574 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9575 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 else
9577 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9578 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9579 fi
9580 ;;
9581
9582 uts4*)
9583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584 hardcode_libdir_flag_spec='-L$libdir'
9585 hardcode_shlibpath_var=no
9586 ;;
9587
9588 *)
9589 ld_shlibs=no
9590 ;;
9591 esac
9592
9593 if test x$host_vendor = xsni; then
9594 case $host in
9595 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9596 export_dynamic_flag_spec='${wl}-Blargedynsym'
9597 ;;
9598 esac
9599 fi
9600 fi
9601
9602 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9603 echo "${ECHO_T}$ld_shlibs" >&6
9604 test "$ld_shlibs" = no && can_build_shared=no
9605
9606 with_gnu_ld=$with_gnu_ld
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622 #
9623 # Do we need to explicitly link libc?
9624 #
9625 case "x$archive_cmds_need_lc" in
9626 x|xyes)
9627 # Assume -lc should be added
9628 archive_cmds_need_lc=yes
9629
9630 if test "$enable_shared" = yes && test "$GCC" = yes; then
9631 case $archive_cmds in
9632 *'~'*)
9633 # FIXME: we may have to deal with multi-command sequences.
9634 ;;
9635 '$CC '*)
9636 # Test whether the compiler implicitly links with -lc since on some
9637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9638 # to ld, don't add -lc before -lgcc.
9639 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9640 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9641 $RM conftest*
9642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9643
9644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9645 (eval $ac_compile) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } 2>conftest.err; then
9649 soname=conftest
9650 lib=conftest
9651 libobjs=conftest.$ac_objext
9652 deplibs=
9653 wl=$lt_prog_compiler_wl
9654 pic_flag=$lt_prog_compiler_pic
9655 compiler_flags=-v
9656 linker_flags=-v
9657 verstring=
9658 output_objdir=.
9659 libname=conftest
9660 lt_save_allow_undefined_flag=$allow_undefined_flag
9661 allow_undefined_flag=
9662 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9663 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }
9667 then
9668 archive_cmds_need_lc=no
9669 else
9670 archive_cmds_need_lc=yes
9671 fi
9672 allow_undefined_flag=$lt_save_allow_undefined_flag
9673 else
9674 cat conftest.err 1>&5
9675 fi
9676 $RM conftest*
9677 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9678 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9679 ;;
9680 esac
9681 fi
9682 ;;
9683 esac
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9843
9844 if test "$GCC" = yes; then
9845 case $host_os in
9846 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9847 *) lt_awk_arg="/^libraries:/" ;;
9848 esac
9849 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9850 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9851 # if the path contains ";" then we assume it to be the separator
9852 # otherwise default to the standard path separator (i.e. ":") - it is
9853 # assumed that no part of a normal pathname contains ";" but that should
9854 # okay in the real world where ";" in dirpaths is itself problematic.
9855 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9856 else
9857 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9858 fi
9859 # Ok, now we have the path, separated by spaces, we can step through it
9860 # and add multilib dir if necessary.
9861 lt_tmp_lt_search_path_spec=
9862 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9863 for lt_sys_path in $lt_search_path_spec; do
9864 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9865 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9866 else
9867 test -d "$lt_sys_path" && \
9868 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9869 fi
9870 done
9871 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9872 BEGIN {RS=" "; FS="/|\n";} {
9873 lt_foo="";
9874 lt_count=0;
9875 for (lt_i = NF; lt_i > 0; lt_i--) {
9876 if ($lt_i != "" && $lt_i != ".") {
9877 if ($lt_i == "..") {
9878 lt_count++;
9879 } else {
9880 if (lt_count == 0) {
9881 lt_foo="/" $lt_i lt_foo;
9882 } else {
9883 lt_count--;
9884 }
9885 }
9886 }
9887 }
9888 if (lt_foo != "") { lt_freq[lt_foo]++; }
9889 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9890 }'`
9891 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9892 else
9893 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9894 fi
9895 library_names_spec=
9896 libname_spec='lib$name'
9897 soname_spec=
9898 shrext_cmds=".so"
9899 postinstall_cmds=
9900 postuninstall_cmds=
9901 finish_cmds=
9902 finish_eval=
9903 shlibpath_var=
9904 shlibpath_overrides_runpath=unknown
9905 version_type=none
9906 dynamic_linker="$host_os ld.so"
9907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9908 need_lib_prefix=unknown
9909 hardcode_into_libs=no
9910
9911 # when you set need_version to no, make sure it does not cause -set_version
9912 # flags to be left without arguments
9913 need_version=unknown
9914
9915 case $host_os in
9916 aix3*)
9917 version_type=linux
9918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9919 shlibpath_var=LIBPATH
9920
9921 # AIX 3 has no versioning support, so we append a major version to the name.
9922 soname_spec='${libname}${release}${shared_ext}$major'
9923 ;;
9924
9925 aix[4-9]*)
9926 version_type=linux
9927 need_lib_prefix=no
9928 need_version=no
9929 hardcode_into_libs=yes
9930 if test "$host_cpu" = ia64; then
9931 # AIX 5 supports IA64
9932 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 else
9935 # With GCC up to 2.95.x, collect2 would create an import file
9936 # for dependence libraries. The import file would start with
9937 # the line `#! .'. This would cause the generated library to
9938 # depend on `.', always an invalid library. This was fixed in
9939 # development snapshots of GCC prior to 3.0.
9940 case $host_os in
9941 aix4 | aix4.[01] | aix4.[01].*)
9942 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9943 echo ' yes '
9944 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9945 :
9946 else
9947 can_build_shared=no
9948 fi
9949 ;;
9950 esac
9951 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9952 # soname into executable. Probably we can add versioning support to
9953 # collect2, so additional links can be useful in future.
9954 if test "$aix_use_runtimelinking" = yes; then
9955 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9956 # instead of lib<name>.a to let people know that these are not
9957 # typical AIX shared libraries.
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959 else
9960 # We preserve .a as extension for shared libraries through AIX4.2
9961 # and later when we are not doing run time linking.
9962 library_names_spec='${libname}${release}.a $libname.a'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 fi
9965 shlibpath_var=LIBPATH
9966 fi
9967 ;;
9968
9969 amigaos*)
9970 case $host_cpu in
9971 powerpc)
9972 # Since July 2007 AmigaOS4 officially supports .so libraries.
9973 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975 ;;
9976 m68k)
9977 library_names_spec='$libname.ixlibrary $libname.a'
9978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9979 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'
9980 ;;
9981 esac
9982 ;;
9983
9984 beos*)
9985 library_names_spec='${libname}${shared_ext}'
9986 dynamic_linker="$host_os ld.so"
9987 shlibpath_var=LIBRARY_PATH
9988 ;;
9989
9990 bsdi[45]*)
9991 version_type=linux
9992 need_version=no
9993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994 soname_spec='${libname}${release}${shared_ext}$major'
9995 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9996 shlibpath_var=LD_LIBRARY_PATH
9997 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9998 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9999 # the default ld.so.conf also contains /usr/contrib/lib and
10000 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10001 # libtool to hard-code these into programs
10002 ;;
10003
10004 cygwin* | mingw* | pw32* | cegcc*)
10005 version_type=windows
10006 shrext_cmds=".dll"
10007 need_version=no
10008 need_lib_prefix=no
10009
10010 case $GCC,$host_os in
10011 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10012 library_names_spec='$libname.dll.a'
10013 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10014 postinstall_cmds='base_file=`basename \${file}`~
10015 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10016 dldir=$destdir/`dirname \$dlpath`~
10017 test -d \$dldir || mkdir -p \$dldir~
10018 $install_prog $dir/$dlname \$dldir/$dlname~
10019 chmod a+x \$dldir/$dlname~
10020 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10021 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10022 fi'
10023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10024 dlpath=$dir/\$dldll~
10025 $RM \$dlpath'
10026 shlibpath_overrides_runpath=yes
10027
10028 case $host_os in
10029 cygwin*)
10030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10033 ;;
10034 mingw* | cegcc*)
10035 # MinGW DLLs use traditional 'lib' prefix
10036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10037 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10038 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10039 # It is most probably a Windows format PATH printed by
10040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10041 # path with ; separators, and with drive letters. We can handle the
10042 # drive letters (cygwin fileutils understands them), so leave them,
10043 # especially as we might pass files found there to a mingw objdump,
10044 # which wouldn't understand a cygwinified path. Ahh.
10045 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10046 else
10047 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10048 fi
10049 ;;
10050 pw32*)
10051 # pw32 DLLs use 'pw' prefix rather than 'lib'
10052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10053 ;;
10054 esac
10055 ;;
10056
10057 *)
10058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10059 ;;
10060 esac
10061 dynamic_linker='Win32 ld.exe'
10062 # FIXME: first we should search . and the directory the executable is in
10063 shlibpath_var=PATH
10064 ;;
10065
10066 darwin* | rhapsody*)
10067 dynamic_linker="$host_os dyld"
10068 version_type=darwin
10069 need_lib_prefix=no
10070 need_version=no
10071 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10072 soname_spec='${libname}${release}${major}$shared_ext'
10073 shlibpath_overrides_runpath=yes
10074 shlibpath_var=DYLD_LIBRARY_PATH
10075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10076
10077 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10079 ;;
10080
10081 dgux*)
10082 version_type=linux
10083 need_lib_prefix=no
10084 need_version=no
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 ;;
10089
10090 freebsd1*)
10091 dynamic_linker=no
10092 ;;
10093
10094 freebsd* | dragonfly*)
10095 # DragonFly does not have aout. When/if they implement a new
10096 # versioning mechanism, adjust this.
10097 if test -x /usr/bin/objformat; then
10098 objformat=`/usr/bin/objformat`
10099 else
10100 case $host_os in
10101 freebsd[123]*) objformat=aout ;;
10102 *) objformat=elf ;;
10103 esac
10104 fi
10105 version_type=freebsd-$objformat
10106 case $version_type in
10107 freebsd-elf*)
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10109 need_version=no
10110 need_lib_prefix=no
10111 ;;
10112 freebsd-*)
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10114 need_version=yes
10115 ;;
10116 esac
10117 shlibpath_var=LD_LIBRARY_PATH
10118 case $host_os in
10119 freebsd2*)
10120 shlibpath_overrides_runpath=yes
10121 ;;
10122 freebsd3.[01]* | freebsdelf3.[01]*)
10123 shlibpath_overrides_runpath=yes
10124 hardcode_into_libs=yes
10125 ;;
10126 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10127 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10128 shlibpath_overrides_runpath=no
10129 hardcode_into_libs=yes
10130 ;;
10131 *) # from 4.6 on, and DragonFly
10132 shlibpath_overrides_runpath=yes
10133 hardcode_into_libs=yes
10134 ;;
10135 esac
10136 ;;
10137
10138 gnu*)
10139 version_type=linux
10140 need_lib_prefix=no
10141 need_version=no
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 hardcode_into_libs=yes
10146 ;;
10147
10148 hpux9* | hpux10* | hpux11*)
10149 # Give a soname corresponding to the major version so that dld.sl refuses to
10150 # link against other versions.
10151 version_type=sunos
10152 need_lib_prefix=no
10153 need_version=no
10154 case $host_cpu in
10155 ia64*)
10156 shrext_cmds='.so'
10157 hardcode_into_libs=yes
10158 dynamic_linker="$host_os dld.so"
10159 shlibpath_var=LD_LIBRARY_PATH
10160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 if test "X$HPUX_IA64_MODE" = X32; then
10164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10165 else
10166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10167 fi
10168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10169 ;;
10170 hppa*64*)
10171 shrext_cmds='.sl'
10172 hardcode_into_libs=yes
10173 dynamic_linker="$host_os dld.sl"
10174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10180 ;;
10181 *)
10182 shrext_cmds='.sl'
10183 dynamic_linker="$host_os dld.sl"
10184 shlibpath_var=SHLIB_PATH
10185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 soname_spec='${libname}${release}${shared_ext}$major'
10188 ;;
10189 esac
10190 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10191 postinstall_cmds='chmod 555 $lib'
10192 ;;
10193
10194 interix[3-9]*)
10195 version_type=linux
10196 need_lib_prefix=no
10197 need_version=no
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 shlibpath_overrides_runpath=no
10203 hardcode_into_libs=yes
10204 ;;
10205
10206 irix5* | irix6* | nonstopux*)
10207 case $host_os in
10208 nonstopux*) version_type=nonstopux ;;
10209 *)
10210 if test "$lt_cv_prog_gnu_ld" = yes; then
10211 version_type=linux
10212 else
10213 version_type=irix
10214 fi ;;
10215 esac
10216 need_lib_prefix=no
10217 need_version=no
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10220 case $host_os in
10221 irix5* | nonstopux*)
10222 libsuff= shlibsuff=
10223 ;;
10224 *)
10225 case $LD in # libtool.m4 will add one of these switches to LD
10226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10227 libsuff= shlibsuff= libmagic=32-bit;;
10228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10229 libsuff=32 shlibsuff=N32 libmagic=N32;;
10230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10232 *) libsuff= shlibsuff= libmagic=never-match;;
10233 esac
10234 ;;
10235 esac
10236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10237 shlibpath_overrides_runpath=no
10238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10240 hardcode_into_libs=yes
10241 ;;
10242
10243 # No shared lib support for Linux oldld, aout, or coff.
10244 linux*oldld* | linux*aout* | linux*coff*)
10245 dynamic_linker=no
10246 ;;
10247
10248 # This must be Linux ELF.
10249 linux* | k*bsd*-gnu)
10250 version_type=linux
10251 need_lib_prefix=no
10252 need_version=no
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=no
10258 # Some binutils ld are patched to set DT_RUNPATH
10259 save_LDFLAGS=$LDFLAGS
10260 save_libdir=$libdir
10261 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10262 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h. */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269
10270 int
10271 main ()
10272 {
10273
10274 ;
10275 return 0;
10276 }
10277 _ACEOF
10278 rm -f conftest.$ac_objext conftest$ac_exeext
10279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10280 (eval $ac_link) 2>conftest.er1
10281 ac_status=$?
10282 grep -v '^ *+' conftest.er1 >conftest.err
10283 rm -f conftest.er1
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } &&
10287 { ac_try='test -z "$ac_c_werror_flag"
10288 || test ! -s conftest.err'
10289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10290 (eval $ac_try) 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; } &&
10294 { ac_try='test -s conftest$ac_exeext'
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10301 shlibpath_overrides_runpath=yes
10302 fi
10303
10304 else
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 fi
10309 rm -f conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10311 LDFLAGS=$save_LDFLAGS
10312 libdir=$save_libdir
10313
10314 # This implies no fast_install, which is unacceptable.
10315 # Some rework will be needed to allow for fast_install
10316 # before this can be enabled.
10317 hardcode_into_libs=yes
10318
10319 # Append ld.so.conf contents to the search path
10320 if test -f /etc/ld.so.conf; then
10321 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10322 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10323 fi
10324
10325 # We used to test for /lib/ld.so.1 and disable shared libraries on
10326 # powerpc, because MkLinux only supported shared libraries with the
10327 # GNU dynamic linker. Since this was broken with cross compilers,
10328 # most powerpc-linux boxes support dynamic linking these days and
10329 # people can always --disable-shared, the test was removed, and we
10330 # assume the GNU/Linux dynamic linker is in use.
10331 dynamic_linker='GNU/Linux ld.so'
10332 ;;
10333
10334 netbsd*)
10335 version_type=sunos
10336 need_lib_prefix=no
10337 need_version=no
10338 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10341 dynamic_linker='NetBSD (a.out) ld.so'
10342 else
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 dynamic_linker='NetBSD ld.elf_so'
10346 fi
10347 shlibpath_var=LD_LIBRARY_PATH
10348 shlibpath_overrides_runpath=yes
10349 hardcode_into_libs=yes
10350 ;;
10351
10352 newsos6)
10353 version_type=linux
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355 shlibpath_var=LD_LIBRARY_PATH
10356 shlibpath_overrides_runpath=yes
10357 ;;
10358
10359 *nto* | *qnx*)
10360 version_type=qnx
10361 need_lib_prefix=no
10362 need_version=no
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=no
10367 hardcode_into_libs=yes
10368 dynamic_linker='ldqnx.so'
10369 ;;
10370
10371 openbsd*)
10372 version_type=sunos
10373 sys_lib_dlsearch_path_spec="/usr/lib"
10374 need_lib_prefix=no
10375 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10376 case $host_os in
10377 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10378 *) need_version=no ;;
10379 esac
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10384 case $host_os in
10385 openbsd2.[89] | openbsd2.[89].*)
10386 shlibpath_overrides_runpath=no
10387 ;;
10388 *)
10389 shlibpath_overrides_runpath=yes
10390 ;;
10391 esac
10392 else
10393 shlibpath_overrides_runpath=yes
10394 fi
10395 ;;
10396
10397 os2*)
10398 libname_spec='$name'
10399 shrext_cmds=".dll"
10400 need_lib_prefix=no
10401 library_names_spec='$libname${shared_ext} $libname.a'
10402 dynamic_linker='OS/2 ld.exe'
10403 shlibpath_var=LIBPATH
10404 ;;
10405
10406 osf3* | osf4* | osf5*)
10407 version_type=osf
10408 need_lib_prefix=no
10409 need_version=no
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10414 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10415 ;;
10416
10417 rdos*)
10418 dynamic_linker=no
10419 ;;
10420
10421 solaris*)
10422 version_type=linux
10423 need_lib_prefix=no
10424 need_version=no
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=yes
10429 hardcode_into_libs=yes
10430 # ldd complains unless libraries are executable
10431 postinstall_cmds='chmod +x $lib'
10432 ;;
10433
10434 sunos4*)
10435 version_type=sunos
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10437 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 shlibpath_overrides_runpath=yes
10440 if test "$with_gnu_ld" = yes; then
10441 need_lib_prefix=no
10442 fi
10443 need_version=yes
10444 ;;
10445
10446 sysv4 | sysv4.3*)
10447 version_type=linux
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 soname_spec='${libname}${release}${shared_ext}$major'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 case $host_vendor in
10452 sni)
10453 shlibpath_overrides_runpath=no
10454 need_lib_prefix=no
10455 runpath_var=LD_RUN_PATH
10456 ;;
10457 siemens)
10458 need_lib_prefix=no
10459 ;;
10460 motorola)
10461 need_lib_prefix=no
10462 need_version=no
10463 shlibpath_overrides_runpath=no
10464 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10465 ;;
10466 esac
10467 ;;
10468
10469 sysv4*MP*)
10470 if test -d /usr/nec ;then
10471 version_type=linux
10472 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10473 soname_spec='$libname${shared_ext}.$major'
10474 shlibpath_var=LD_LIBRARY_PATH
10475 fi
10476 ;;
10477
10478 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10479 version_type=freebsd-elf
10480 need_lib_prefix=no
10481 need_version=no
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 shlibpath_overrides_runpath=yes
10486 hardcode_into_libs=yes
10487 if test "$with_gnu_ld" = yes; then
10488 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10489 else
10490 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10491 case $host_os in
10492 sco3.2v5*)
10493 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10494 ;;
10495 esac
10496 fi
10497 sys_lib_dlsearch_path_spec='/usr/lib'
10498 ;;
10499
10500 tpf*)
10501 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10502 version_type=linux
10503 need_lib_prefix=no
10504 need_version=no
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=no
10508 hardcode_into_libs=yes
10509 ;;
10510
10511 uts4*)
10512 version_type=linux
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 ;;
10517
10518 *)
10519 dynamic_linker=no
10520 ;;
10521 esac
10522 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10523 echo "${ECHO_T}$dynamic_linker" >&6
10524 test "$dynamic_linker" = no && can_build_shared=no
10525
10526 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10527 if test "$GCC" = yes; then
10528 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10529 fi
10530
10531 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10532 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10533 fi
10534 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10535 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10536 fi
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10625 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10626 hardcode_action=
10627 if test -n "$hardcode_libdir_flag_spec" ||
10628 test -n "$runpath_var" ||
10629 test "X$hardcode_automatic" = "Xyes" ; then
10630
10631 # We can hardcode non-existent directories.
10632 if test "$hardcode_direct" != no &&
10633 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10634 # have to relink, otherwise we might link with an installed library
10635 # when we should be linking with a yet-to-be-installed one
10636 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10637 test "$hardcode_minus_L" != no; then
10638 # Linking always hardcodes the temporary library directory.
10639 hardcode_action=relink
10640 else
10641 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10642 hardcode_action=immediate
10643 fi
10644 else
10645 # We cannot hardcode anything, or else we can only hardcode existing
10646 # directories.
10647 hardcode_action=unsupported
10648 fi
10649 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10650 echo "${ECHO_T}$hardcode_action" >&6
10651
10652 if test "$hardcode_action" = relink ||
10653 test "$inherit_rpath" = yes; then
10654 # Fast installation is not supported
10655 enable_fast_install=no
10656 elif test "$shlibpath_overrides_runpath" = yes ||
10657 test "$enable_shared" = no; then
10658 # Fast installation is not necessary
10659 enable_fast_install=needless
10660 fi
10661
10662
10663
10664
10665
10666
10667 if test "x$enable_dlopen" != xyes; then
10668 enable_dlopen=unknown
10669 enable_dlopen_self=unknown
10670 enable_dlopen_self_static=unknown
10671 else
10672 lt_cv_dlopen=no
10673 lt_cv_dlopen_libs=
10674
10675 case $host_os in
10676 beos*)
10677 lt_cv_dlopen="load_add_on"
10678 lt_cv_dlopen_libs=
10679 lt_cv_dlopen_self=yes
10680 ;;
10681
10682 mingw* | pw32* | cegcc*)
10683 lt_cv_dlopen="LoadLibrary"
10684 lt_cv_dlopen_libs=
10685 ;;
10686
10687 cygwin*)
10688 lt_cv_dlopen="dlopen"
10689 lt_cv_dlopen_libs=
10690 ;;
10691
10692 darwin*)
10693 # if libdl is installed we need to link against it
10694 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10695 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10696 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699 ac_check_lib_save_LIBS=$LIBS
10700 LIBS="-ldl $LIBS"
10701 cat >conftest.$ac_ext <<_ACEOF
10702 /* confdefs.h. */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707
10708 /* Override any gcc2 internal prototype to avoid an error. */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 /* We use char because int might match the return type of a gcc2
10713 builtin and then its argument prototype would still apply. */
10714 char dlopen ();
10715 int
10716 main ()
10717 {
10718 dlopen ();
10719 ;
10720 return 0;
10721 }
10722 _ACEOF
10723 rm -f conftest.$ac_objext conftest$ac_exeext
10724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10725 (eval $ac_link) 2>conftest.er1
10726 ac_status=$?
10727 grep -v '^ *+' conftest.er1 >conftest.err
10728 rm -f conftest.er1
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try='test -z "$ac_c_werror_flag"
10733 || test ! -s conftest.err'
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; } &&
10739 { ac_try='test -s conftest$ac_exeext'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 ac_cv_lib_dl_dlopen=yes
10746 else
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10749
10750 ac_cv_lib_dl_dlopen=no
10751 fi
10752 rm -f conftest.err conftest.$ac_objext \
10753 conftest$ac_exeext conftest.$ac_ext
10754 LIBS=$ac_check_lib_save_LIBS
10755 fi
10756 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10757 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10758 if test $ac_cv_lib_dl_dlopen = yes; then
10759 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10760 else
10761
10762 lt_cv_dlopen="dyld"
10763 lt_cv_dlopen_libs=
10764 lt_cv_dlopen_self=yes
10765
10766 fi
10767
10768 ;;
10769
10770 *)
10771 echo "$as_me:$LINENO: checking for shl_load" >&5
10772 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10773 if test "${ac_cv_func_shl_load+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776 cat >conftest.$ac_ext <<_ACEOF
10777 /* confdefs.h. */
10778 _ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10784 #define shl_load innocuous_shl_load
10785
10786 /* System header to define __stub macros and hopefully few prototypes,
10787 which can conflict with char shl_load (); below.
10788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10789 <limits.h> exists even on freestanding compilers. */
10790
10791 #ifdef __STDC__
10792 # include <limits.h>
10793 #else
10794 # include <assert.h>
10795 #endif
10796
10797 #undef shl_load
10798
10799 /* Override any gcc2 internal prototype to avoid an error. */
10800 #ifdef __cplusplus
10801 extern "C"
10802 {
10803 #endif
10804 /* We use char because int might match the return type of a gcc2
10805 builtin and then its argument prototype would still apply. */
10806 char shl_load ();
10807 /* The GNU C library defines this for functions which it implements
10808 to always fail with ENOSYS. Some functions are actually named
10809 something starting with __ and the normal name is an alias. */
10810 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10811 choke me
10812 #else
10813 char (*f) () = shl_load;
10814 #endif
10815 #ifdef __cplusplus
10816 }
10817 #endif
10818
10819 int
10820 main ()
10821 {
10822 return f != shl_load;
10823 ;
10824 return 0;
10825 }
10826 _ACEOF
10827 rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10829 (eval $ac_link) 2>conftest.er1
10830 ac_status=$?
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -z "$ac_c_werror_flag"
10837 || test ! -s conftest.err'
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; } &&
10843 { ac_try='test -s conftest$ac_exeext'
10844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_cv_func_shl_load=yes
10850 else
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854 ac_cv_func_shl_load=no
10855 fi
10856 rm -f conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10858 fi
10859 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10860 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10861 if test $ac_cv_func_shl_load = yes; then
10862 lt_cv_dlopen="shl_load"
10863 else
10864 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10865 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10866 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869 ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-ldld $LIBS"
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h. */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877
10878 /* Override any gcc2 internal prototype to avoid an error. */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 /* We use char because int might match the return type of a gcc2
10883 builtin and then its argument prototype would still apply. */
10884 char shl_load ();
10885 int
10886 main ()
10887 {
10888 shl_load ();
10889 ;
10890 return 0;
10891 }
10892 _ACEOF
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10895 (eval $ac_link) 2>conftest.er1
10896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -z "$ac_c_werror_flag"
10903 || test ! -s conftest.err'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest$ac_exeext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_lib_dld_shl_load=yes
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920 ac_cv_lib_dld_shl_load=no
10921 fi
10922 rm -f conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924 LIBS=$ac_check_lib_save_LIBS
10925 fi
10926 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10927 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10928 if test $ac_cv_lib_dld_shl_load = yes; then
10929 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10930 else
10931 echo "$as_me:$LINENO: checking for dlopen" >&5
10932 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10933 if test "${ac_cv_func_dlopen+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936 cat >conftest.$ac_ext <<_ACEOF
10937 /* confdefs.h. */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10944 #define dlopen innocuous_dlopen
10945
10946 /* System header to define __stub macros and hopefully few prototypes,
10947 which can conflict with char dlopen (); below.
10948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10949 <limits.h> exists even on freestanding compilers. */
10950
10951 #ifdef __STDC__
10952 # include <limits.h>
10953 #else
10954 # include <assert.h>
10955 #endif
10956
10957 #undef dlopen
10958
10959 /* Override any gcc2 internal prototype to avoid an error. */
10960 #ifdef __cplusplus
10961 extern "C"
10962 {
10963 #endif
10964 /* We use char because int might match the return type of a gcc2
10965 builtin and then its argument prototype would still apply. */
10966 char dlopen ();
10967 /* The GNU C library defines this for functions which it implements
10968 to always fail with ENOSYS. Some functions are actually named
10969 something starting with __ and the normal name is an alias. */
10970 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10971 choke me
10972 #else
10973 char (*f) () = dlopen;
10974 #endif
10975 #ifdef __cplusplus
10976 }
10977 #endif
10978
10979 int
10980 main ()
10981 {
10982 return f != dlopen;
10983 ;
10984 return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10989 (eval $ac_link) 2>conftest.er1
10990 ac_status=$?
10991 grep -v '^ *+' conftest.er1 >conftest.err
10992 rm -f conftest.er1
10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } &&
10996 { ac_try='test -z "$ac_c_werror_flag"
10997 || test ! -s conftest.err'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; } &&
11003 { ac_try='test -s conftest$ac_exeext'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 ac_cv_func_dlopen=yes
11010 else
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11013
11014 ac_cv_func_dlopen=no
11015 fi
11016 rm -f conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11018 fi
11019 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11020 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11021 if test $ac_cv_func_dlopen = yes; then
11022 lt_cv_dlopen="dlopen"
11023 else
11024 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11025 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11026 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029 ac_check_lib_save_LIBS=$LIBS
11030 LIBS="-ldl $LIBS"
11031 cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h. */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11037
11038 /* Override any gcc2 internal prototype to avoid an error. */
11039 #ifdef __cplusplus
11040 extern "C"
11041 #endif
11042 /* We use char because int might match the return type of a gcc2
11043 builtin and then its argument prototype would still apply. */
11044 char dlopen ();
11045 int
11046 main ()
11047 {
11048 dlopen ();
11049 ;
11050 return 0;
11051 }
11052 _ACEOF
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -z "$ac_c_werror_flag"
11063 || test ! -s conftest.err'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_lib_dl_dlopen=yes
11076 else
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11079
11080 ac_cv_lib_dl_dlopen=no
11081 fi
11082 rm -f conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
11084 LIBS=$ac_check_lib_save_LIBS
11085 fi
11086 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11087 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11088 if test $ac_cv_lib_dl_dlopen = yes; then
11089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11090 else
11091 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11092 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11093 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096 ac_check_lib_save_LIBS=$LIBS
11097 LIBS="-lsvld $LIBS"
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h. */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104
11105 /* Override any gcc2 internal prototype to avoid an error. */
11106 #ifdef __cplusplus
11107 extern "C"
11108 #endif
11109 /* We use char because int might match the return type of a gcc2
11110 builtin and then its argument prototype would still apply. */
11111 char dlopen ();
11112 int
11113 main ()
11114 {
11115 dlopen ();
11116 ;
11117 return 0;
11118 }
11119 _ACEOF
11120 rm -f conftest.$ac_objext conftest$ac_exeext
11121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11122 (eval $ac_link) 2>conftest.er1
11123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } &&
11129 { ac_try='test -z "$ac_c_werror_flag"
11130 || test ! -s conftest.err'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; } &&
11136 { ac_try='test -s conftest$ac_exeext'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_cv_lib_svld_dlopen=yes
11143 else
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 ac_cv_lib_svld_dlopen=no
11148 fi
11149 rm -f conftest.err conftest.$ac_objext \
11150 conftest$ac_exeext conftest.$ac_ext
11151 LIBS=$ac_check_lib_save_LIBS
11152 fi
11153 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11154 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11155 if test $ac_cv_lib_svld_dlopen = yes; then
11156 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11157 else
11158 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11159 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11160 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163 ac_check_lib_save_LIBS=$LIBS
11164 LIBS="-ldld $LIBS"
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h. */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171
11172 /* Override any gcc2 internal prototype to avoid an error. */
11173 #ifdef __cplusplus
11174 extern "C"
11175 #endif
11176 /* We use char because int might match the return type of a gcc2
11177 builtin and then its argument prototype would still apply. */
11178 char dld_link ();
11179 int
11180 main ()
11181 {
11182 dld_link ();
11183 ;
11184 return 0;
11185 }
11186 _ACEOF
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189 (eval $ac_link) 2>conftest.er1
11190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -z "$ac_c_werror_flag"
11197 || test ! -s conftest.err'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } &&
11203 { ac_try='test -s conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 ac_cv_lib_dld_dld_link=yes
11210 else
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214 ac_cv_lib_dld_dld_link=no
11215 fi
11216 rm -f conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11218 LIBS=$ac_check_lib_save_LIBS
11219 fi
11220 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11221 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11222 if test $ac_cv_lib_dld_dld_link = yes; then
11223 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11224 fi
11225
11226
11227 fi
11228
11229
11230 fi
11231
11232
11233 fi
11234
11235
11236 fi
11237
11238
11239 fi
11240
11241 ;;
11242 esac
11243
11244 if test "x$lt_cv_dlopen" != xno; then
11245 enable_dlopen=yes
11246 else
11247 enable_dlopen=no
11248 fi
11249
11250 case $lt_cv_dlopen in
11251 dlopen)
11252 save_CPPFLAGS="$CPPFLAGS"
11253 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11254
11255 save_LDFLAGS="$LDFLAGS"
11256 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11257
11258 save_LIBS="$LIBS"
11259 LIBS="$lt_cv_dlopen_libs $LIBS"
11260
11261 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11262 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11263 if test "${lt_cv_dlopen_self+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 if test "$cross_compiling" = yes; then :
11267 lt_cv_dlopen_self=cross
11268 else
11269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11270 lt_status=$lt_dlunknown
11271 cat > conftest.$ac_ext <<_LT_EOF
11272 #line 11272 "configure"
11273 #include "confdefs.h"
11274
11275 #if HAVE_DLFCN_H
11276 #include <dlfcn.h>
11277 #endif
11278
11279 #include <stdio.h>
11280
11281 #ifdef RTLD_GLOBAL
11282 # define LT_DLGLOBAL RTLD_GLOBAL
11283 #else
11284 # ifdef DL_GLOBAL
11285 # define LT_DLGLOBAL DL_GLOBAL
11286 # else
11287 # define LT_DLGLOBAL 0
11288 # endif
11289 #endif
11290
11291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11292 find out it does not work in some platform. */
11293 #ifndef LT_DLLAZY_OR_NOW
11294 # ifdef RTLD_LAZY
11295 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11296 # else
11297 # ifdef DL_LAZY
11298 # define LT_DLLAZY_OR_NOW DL_LAZY
11299 # else
11300 # ifdef RTLD_NOW
11301 # define LT_DLLAZY_OR_NOW RTLD_NOW
11302 # else
11303 # ifdef DL_NOW
11304 # define LT_DLLAZY_OR_NOW DL_NOW
11305 # else
11306 # define LT_DLLAZY_OR_NOW 0
11307 # endif
11308 # endif
11309 # endif
11310 # endif
11311 #endif
11312
11313 void fnord() { int i=42;}
11314 int main ()
11315 {
11316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11317 int status = $lt_dlunknown;
11318
11319 if (self)
11320 {
11321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11322 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11323 /* dlclose (self); */
11324 }
11325 else
11326 puts (dlerror ());
11327
11328 return status;
11329 }
11330 _LT_EOF
11331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11332 (eval $ac_link) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11336 (./conftest; exit; ) >&5 2>/dev/null
11337 lt_status=$?
11338 case x$lt_status in
11339 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11340 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11341 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11342 esac
11343 else :
11344 # compilation failed
11345 lt_cv_dlopen_self=no
11346 fi
11347 fi
11348 rm -fr conftest*
11349
11350
11351 fi
11352 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11353 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11354
11355 if test "x$lt_cv_dlopen_self" = xyes; then
11356 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11357 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11358 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11359 if test "${lt_cv_dlopen_self_static+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362 if test "$cross_compiling" = yes; then :
11363 lt_cv_dlopen_self_static=cross
11364 else
11365 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11366 lt_status=$lt_dlunknown
11367 cat > conftest.$ac_ext <<_LT_EOF
11368 #line 11368 "configure"
11369 #include "confdefs.h"
11370
11371 #if HAVE_DLFCN_H
11372 #include <dlfcn.h>
11373 #endif
11374
11375 #include <stdio.h>
11376
11377 #ifdef RTLD_GLOBAL
11378 # define LT_DLGLOBAL RTLD_GLOBAL
11379 #else
11380 # ifdef DL_GLOBAL
11381 # define LT_DLGLOBAL DL_GLOBAL
11382 # else
11383 # define LT_DLGLOBAL 0
11384 # endif
11385 #endif
11386
11387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11388 find out it does not work in some platform. */
11389 #ifndef LT_DLLAZY_OR_NOW
11390 # ifdef RTLD_LAZY
11391 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11392 # else
11393 # ifdef DL_LAZY
11394 # define LT_DLLAZY_OR_NOW DL_LAZY
11395 # else
11396 # ifdef RTLD_NOW
11397 # define LT_DLLAZY_OR_NOW RTLD_NOW
11398 # else
11399 # ifdef DL_NOW
11400 # define LT_DLLAZY_OR_NOW DL_NOW
11401 # else
11402 # define LT_DLLAZY_OR_NOW 0
11403 # endif
11404 # endif
11405 # endif
11406 # endif
11407 #endif
11408
11409 void fnord() { int i=42;}
11410 int main ()
11411 {
11412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11413 int status = $lt_dlunknown;
11414
11415 if (self)
11416 {
11417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11418 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11419 /* dlclose (self); */
11420 }
11421 else
11422 puts (dlerror ());
11423
11424 return status;
11425 }
11426 _LT_EOF
11427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11428 (eval $ac_link) 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11432 (./conftest; exit; ) >&5 2>/dev/null
11433 lt_status=$?
11434 case x$lt_status in
11435 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11436 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11437 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11438 esac
11439 else :
11440 # compilation failed
11441 lt_cv_dlopen_self_static=no
11442 fi
11443 fi
11444 rm -fr conftest*
11445
11446
11447 fi
11448 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11449 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11450 fi
11451
11452 CPPFLAGS="$save_CPPFLAGS"
11453 LDFLAGS="$save_LDFLAGS"
11454 LIBS="$save_LIBS"
11455 ;;
11456 esac
11457
11458 case $lt_cv_dlopen_self in
11459 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11460 *) enable_dlopen_self=unknown ;;
11461 esac
11462
11463 case $lt_cv_dlopen_self_static in
11464 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11465 *) enable_dlopen_self_static=unknown ;;
11466 esac
11467 fi
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485 striplib=
11486 old_striplib=
11487 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11488 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11489 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11490 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11491 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11492 echo "$as_me:$LINENO: result: yes" >&5
11493 echo "${ECHO_T}yes" >&6
11494 else
11495 # FIXME - insert some real tests, host_os isn't really good enough
11496 case $host_os in
11497 darwin*)
11498 if test -n "$STRIP" ; then
11499 striplib="$STRIP -x"
11500 old_striplib="$STRIP -S"
11501 echo "$as_me:$LINENO: result: yes" >&5
11502 echo "${ECHO_T}yes" >&6
11503 else
11504 echo "$as_me:$LINENO: result: no" >&5
11505 echo "${ECHO_T}no" >&6
11506 fi
11507 ;;
11508 *)
11509 echo "$as_me:$LINENO: result: no" >&5
11510 echo "${ECHO_T}no" >&6
11511 ;;
11512 esac
11513 fi
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526 # Report which library types will actually be built
11527 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11528 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11529 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11530 echo "${ECHO_T}$can_build_shared" >&6
11531
11532 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11533 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11534 test "$can_build_shared" = "no" && enable_shared=no
11535
11536 # On AIX, shared libraries and static libraries use the same namespace, and
11537 # are all built from PIC.
11538 case $host_os in
11539 aix3*)
11540 test "$enable_shared" = yes && enable_static=no
11541 if test -n "$RANLIB"; then
11542 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11543 postinstall_cmds='$RANLIB $lib'
11544 fi
11545 ;;
11546
11547 aix[4-9]*)
11548 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11549 test "$enable_shared" = yes && enable_static=no
11550 fi
11551 ;;
11552 esac
11553 echo "$as_me:$LINENO: result: $enable_shared" >&5
11554 echo "${ECHO_T}$enable_shared" >&6
11555
11556 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11557 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11558 # Make sure either enable_shared or enable_static is yes.
11559 test "$enable_shared" = yes || enable_static=yes
11560 echo "$as_me:$LINENO: result: $enable_static" >&5
11561 echo "${ECHO_T}$enable_static" >&6
11562
11563
11564
11565
11566 fi
11567 ac_ext=c
11568 ac_cpp='$CPP $CPPFLAGS'
11569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11572
11573 CC="$lt_save_CC"
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587 ac_config_commands="$ac_config_commands libtool"
11588
11589
11590
11591
11592 # Only expand once:
11593
11594
11595
11596 # Check whether --enable-targets or --disable-targets was given.
11597 if test "${enable_targets+set}" = set; then
11598 enableval="$enable_targets"
11599 case "${enableval}" in
11600 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11601 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11602 { (exit 1); exit 1; }; }
11603 ;;
11604 no) enable_targets= ;;
11605 *) enable_targets=$enableval ;;
11606 esac
11607 fi;
11608 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
11609 if test "${enable_commonbfdlib+set}" = set; then
11610 enableval="$enable_commonbfdlib"
11611 case "${enableval}" in
11612 yes) commonbfdlib=true ;;
11613 no) commonbfdlib=false ;;
11614 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11615 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11616 { (exit 1); exit 1; }; } ;;
11617 esac
11618 fi;
11619 ac_checking=yes
11620 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11621 ac_checking=
11622 fi
11623 # Check whether --enable-checking or --disable-checking was given.
11624 if test "${enable_checking+set}" = set; then
11625 enableval="$enable_checking"
11626 case "${enableval}" in
11627 no|none) ac_checking= ;;
11628 *) ac_checking=yes ;;
11629 esac
11630 fi; if test x$ac_checking != x ; then
11631
11632 cat >>confdefs.h <<\_ACEOF
11633 #define ENABLE_CHECKING 1
11634 _ACEOF
11635
11636 fi
11637
11638 using_cgen=no
11639
11640
11641 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11642
11643 # Check whether --enable-werror or --disable-werror was given.
11644 if test "${enable_werror+set}" = set; then
11645 enableval="$enable_werror"
11646 case "${enableval}" in
11647 yes | y) ERROR_ON_WARNING="yes" ;;
11648 no | n) ERROR_ON_WARNING="no" ;;
11649 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11650 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11651 { (exit 1); exit 1; }; } ;;
11652 esac
11653 fi;
11654
11655 # Enable -Wno-format by default when using gcc on mingw
11656 case "${host}" in
11657 *-*-mingw32*)
11658 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11659 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11660 fi
11661 ;;
11662 *) ;;
11663 esac
11664
11665 # Enable -Werror by default when using gcc
11666 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11667 ERROR_ON_WARNING=yes
11668 fi
11669
11670 NO_WERROR=
11671 if test "${ERROR_ON_WARNING}" = yes ; then
11672 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11673 NO_WERROR="-Wno-error"
11674 fi
11675
11676 if test "${GCC}" = yes ; then
11677 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11678 fi
11679
11680 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11681 if test "${enable_build_warnings+set}" = set; then
11682 enableval="$enable_build_warnings"
11683 case "${enableval}" in
11684 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11685 no) if test "${GCC}" = yes ; then
11686 WARN_CFLAGS="-w"
11687 fi;;
11688 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11689 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11690 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11691 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11692 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11693 esac
11694 fi;
11695
11696 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11697 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11698 fi
11699
11700
11701
11702
11703
11704 # Generate a header file
11705 ac_config_headers="$ac_config_headers config.h:config.in"
11706
11707
11708 # If we are on a DOS filesystem, we must use gdb.ini rather than
11709 # .gdbinit.
11710 case "${host}" in
11711 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11712 GDBINIT="gdb.ini"
11713 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11714
11715 ;;
11716 *)
11717 GDBINIT=".gdbinit"
11718 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11719
11720 ;;
11721 esac
11722
11723
11724 #We need this for the host. BOUT header is in host order.
11725 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11726 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
11727 if test "${ac_cv_c_bigendian+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730 # See if sys/param.h defines the BYTE_ORDER macro.
11731 cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h. */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 #include <sys/types.h>
11738 #include <sys/param.h>
11739
11740 int
11741 main ()
11742 {
11743 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11744 bogus endian macros
11745 #endif
11746
11747 ;
11748 return 0;
11749 }
11750 _ACEOF
11751 rm -f conftest.$ac_objext
11752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11753 (eval $ac_compile) 2>conftest.er1
11754 ac_status=$?
11755 grep -v '^ *+' conftest.er1 >conftest.err
11756 rm -f conftest.er1
11757 cat conftest.err >&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -z "$ac_c_werror_flag"
11761 || test ! -s conftest.err'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; } &&
11767 { ac_try='test -s conftest.$ac_objext'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 # It does; now see whether it defined to BIG_ENDIAN or not.
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 #include <sys/types.h>
11781 #include <sys/param.h>
11782
11783 int
11784 main ()
11785 {
11786 #if BYTE_ORDER != BIG_ENDIAN
11787 not big endian
11788 #endif
11789
11790 ;
11791 return 0;
11792 }
11793 _ACEOF
11794 rm -f conftest.$ac_objext
11795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11796 (eval $ac_compile) 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try='test -z "$ac_c_werror_flag"
11804 || test ! -s conftest.err'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; } &&
11810 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11816 ac_cv_c_bigendian=yes
11817 else
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 ac_cv_c_bigendian=no
11822 fi
11823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11824 else
11825 echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11827
11828 # It does not; compile a test program.
11829 if test "$cross_compiling" = yes; then
11830 # try to guess the endianness by grepping values into an object file
11831 ac_cv_c_bigendian=unknown
11832 cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h. */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11839 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11840 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11841 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11842 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11843 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11844 int
11845 main ()
11846 {
11847 _ascii (); _ebcdic ();
11848 ;
11849 return 0;
11850 }
11851 _ACEOF
11852 rm -f conftest.$ac_objext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854 (eval $ac_compile) 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -z "$ac_c_werror_flag"
11862 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest.$ac_objext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11875 ac_cv_c_bigendian=yes
11876 fi
11877 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11878 if test "$ac_cv_c_bigendian" = unknown; then
11879 ac_cv_c_bigendian=no
11880 else
11881 # finding both strings is unlikely to happen, but who knows?
11882 ac_cv_c_bigendian=unknown
11883 fi
11884 fi
11885 else
11886 echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11888
11889 fi
11890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11891 else
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 int
11899 main ()
11900 {
11901 /* Are we little or big endian? From Harbison&Steele. */
11902 union
11903 {
11904 long l;
11905 char c[sizeof (long)];
11906 } u;
11907 u.l = 1;
11908 exit (u.c[sizeof (long) - 1] == 1);
11909 }
11910 _ACEOF
11911 rm -f conftest$ac_exeext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_cv_c_bigendian=no
11923 else
11924 echo "$as_me: program exited with status $ac_status" >&5
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11927
11928 ( exit $ac_status )
11929 ac_cv_c_bigendian=yes
11930 fi
11931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11932 fi
11933 fi
11934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11935 fi
11936 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11937 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11938 case $ac_cv_c_bigendian in
11939 yes)
11940
11941 cat >>confdefs.h <<\_ACEOF
11942 #define WORDS_BIGENDIAN 1
11943 _ACEOF
11944 ;;
11945 no)
11946 ;;
11947 *)
11948 { { echo "$as_me:$LINENO: error: unknown endianness
11949 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11950 echo "$as_me: error: unknown endianness
11951 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11952 { (exit 1); exit 1; }; } ;;
11953 esac
11954
11955
11956 te_file=generic
11957
11958 # Makefile target for installing gas in $(tooldir)/bin.
11959 install_tooldir=install-exec-tooldir
11960
11961 canon_targets=""
11962 all_targets=no
11963 if test -n "$enable_targets" ; then
11964 for t in `echo $enable_targets | sed 's/,/ /g'`; do
11965 if test $t = "all"; then
11966 all_targets=yes
11967 continue
11968 fi
11969 result=`$ac_config_sub $t 2>/dev/null`
11970 if test -n "$result" ; then
11971 canon_targets="$canon_targets $result"
11972 # else
11973 # # Permit "all", etc. We don't support it yet though.
11974 # canon_targets="$canon_targets $t"
11975 fi
11976 done
11977 _gas_uniq_list="$canon_targets"
11978 _gas_uniq_newlist=""
11979 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11980 case $_gas_uniq_i in
11981 _gas_uniq_dummy) ;;
11982 *) case " $_gas_uniq_newlist " in
11983 *" $_gas_uniq_i "*) ;;
11984 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11985 esac ;;
11986 esac
11987 done
11988 canon_targets=$_gas_uniq_newlist
11989
11990 fi
11991
11992 emulations=""
11993
11994 for this_target in $target $canon_targets ; do
11995
11996 targ=${this_target}
11997 . ${srcdir}/configure.tgt
11998
11999 case ${target_cpu} in
12000 crisv32)
12001
12002 cat >>confdefs.h <<_ACEOF
12003 #define DEFAULT_CRIS_ARCH $arch
12004 _ACEOF
12005
12006 ;;
12007 esac
12008
12009 if test ${this_target} = $target ; then
12010 target_cpu_type=${cpu_type}
12011 elif test ${target_cpu_type} != ${cpu_type} ; then
12012 continue
12013 fi
12014
12015 generic_target=${cpu_type}-${target_vendor}-${target_os}
12016 case ${generic_target} in
12017 i386-*-sco3.2v5*)
12018 if test ${this_target} = $target; then
12019
12020 cat >>confdefs.h <<\_ACEOF
12021 #define SCO_ELF 1
12022 _ACEOF
12023
12024 fi
12025 ;;
12026
12027 i386-*-msdosdjgpp* \
12028 | i386-*-go32* \
12029 | i386-go32-rtems*)
12030
12031 cat >>confdefs.h <<\_ACEOF
12032 #define STRICTCOFF 1
12033 _ACEOF
12034
12035 ;;
12036
12037 i860-*-*)
12038 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12039 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12040 ;;
12041
12042 mips-sony-bsd*)
12043 ;;
12044 mips-*-bsd*)
12045 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
12046 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
12047 { (exit 1); exit 1; }; }
12048 ;;
12049
12050 ppc-*-aix5.*)
12051
12052 cat >>confdefs.h <<\_ACEOF
12053 #define AIX_WEAK_SUPPORT 1
12054 _ACEOF
12055
12056 ;;
12057 ppc-*-linux-*)
12058 case "$endian" in
12059 big) ;;
12060 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
12061 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
12062 { (exit 1); exit 1; }; } ;;
12063 esac
12064 ;;
12065 ppc-*-solaris*)
12066 if test ${this_target} = $target; then
12067
12068 cat >>confdefs.h <<\_ACEOF
12069 #define TARGET_SOLARIS_COMMENT 1
12070 _ACEOF
12071
12072 fi
12073 if test x${endian} = xbig; then
12074 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
12075 echo "$as_me: error: Solaris must be configured little endian" >&2;}
12076 { (exit 1); exit 1; }; }
12077 fi
12078 ;;
12079
12080 sh*-*-symbianelf*)
12081
12082 cat >>confdefs.h <<\_ACEOF
12083 #define TARGET_SYMBIAN 1
12084 _ACEOF
12085
12086 ;;
12087 esac
12088
12089 if test ${this_target} = $target ; then
12090 endian_def=
12091 if test x${endian} = xbig; then
12092 endian_def=1
12093 elif test x${endian} = xlittle; then
12094 endian_def=0
12095 fi
12096 if test x${endian_def} != x; then
12097
12098 cat >>confdefs.h <<_ACEOF
12099 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12100 _ACEOF
12101
12102 fi
12103 fi
12104
12105 # Other random stuff.
12106
12107 case ${cpu_type} in
12108 mips)
12109 # Set mips_cpu to the name of the default CPU.
12110 case ${target_cpu} in
12111 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12112 mips_cpu=from-abi
12113 ;;
12114 mipsisa32 | mipsisa32el)
12115 mips_cpu=mips32
12116 ;;
12117 mipsisa32r2 | mipsisa32r2el)
12118 mips_cpu=mips32r2
12119 ;;
12120 mipsisa64 | mipsisa64el)
12121 mips_cpu=mips64
12122 ;;
12123 mipsisa64r2 | mipsisa64r2el)
12124 mips_cpu=mips64r2
12125 ;;
12126 mipstx39 | mipstx39el)
12127 mips_cpu=r3900
12128 ;;
12129 mips64vr | mips64vrel)
12130 mips_cpu=vr4100
12131 ;;
12132 mipsisa32r2* | mipsisa64r2*)
12133 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12134 ;;
12135 mips64* | mipsisa64* | mipsisa32*)
12136 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12137 ;;
12138 *)
12139 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
12140 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
12141 { (exit 1); exit 1; }; }
12142 ;;
12143 esac
12144 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12145 # binaries. It's a GNU extension that some OSes don't understand.
12146 # The value only matters on ELF targets.
12147 case ${target} in
12148 *-*-irix*)
12149 use_e_mips_abi_o32=0
12150 ;;
12151 *)
12152 use_e_mips_abi_o32=1
12153 ;;
12154 esac
12155 # Decide whether to generate 32-bit or 64-bit code by default.
12156 # Used to resolve -march=from-abi when an embedded ABI is selected.
12157 case ${target} in
12158 mips64*-*-* | mipsisa64*-*-*)
12159 mips_default_64bit=1
12160 ;;
12161 *)
12162 mips_default_64bit=0
12163 ;;
12164 esac
12165 # Decide which ABI to target by default.
12166 case ${target} in
12167 mips64*-linux* | mips-sgi-irix6*)
12168 mips_default_abi=N32_ABI
12169 ;;
12170 mips*-linux*)
12171 mips_default_abi=O32_ABI
12172 ;;
12173 mips64*-openbsd*)
12174 mips_default_abi=N64_ABI
12175 ;;
12176 *)
12177 mips_default_abi=NO_ABI
12178 ;;
12179 esac
12180
12181 cat >>confdefs.h <<_ACEOF
12182 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12183 _ACEOF
12184
12185
12186 cat >>confdefs.h <<_ACEOF
12187 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12188 _ACEOF
12189
12190
12191 cat >>confdefs.h <<_ACEOF
12192 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12193 _ACEOF
12194
12195
12196 cat >>confdefs.h <<_ACEOF
12197 #define MIPS_DEFAULT_ABI $mips_default_abi
12198 _ACEOF
12199
12200 ;;
12201 esac
12202
12203 # Do we need the opcodes library?
12204 case ${cpu_type} in
12205 vax | tic30)
12206 ;;
12207
12208 *)
12209 need_opcodes=yes
12210
12211 case "${enable_shared}" in
12212 yes) shared_opcodes=true ;;
12213 *opcodes*) shared_opcodes=true ;;
12214 *) shared_opcodes=false ;;
12215 esac
12216 ;;
12217 esac
12218
12219 # Any other special object files needed ?
12220 case ${cpu_type} in
12221
12222 bfin)
12223 echo ${extra_objects} | grep -s "bfin-parse.o"
12224 if test $? -ne 0 ; then
12225 extra_objects="$extra_objects bfin-parse.o"
12226 fi
12227
12228 echo ${extra_objects} | grep -s "bfin-lex.o"
12229 if test $? -ne 0 ; then
12230 extra_objects="$extra_objects bfin-lex.o"
12231 fi
12232 ;;
12233
12234 fr30 | ip2k | iq2000 | m32r | openrisc)
12235 using_cgen=yes
12236 ;;
12237
12238 m32c)
12239 using_cgen=yes
12240 ;;
12241 frv)
12242 using_cgen=yes
12243 ;;
12244 m68k)
12245 case ${extra_objects} in
12246 *m68k-parse.o*) ;;
12247 *) extra_objects="$extra_objects m68k-parse.o" ;;
12248 esac
12249 ;;
12250
12251 mep)
12252 using_cgen=yes
12253 ;;
12254
12255 mips)
12256 echo ${extra_objects} | grep -s "itbl-parse.o"
12257 if test $? -ne 0 ; then
12258 extra_objects="$extra_objects itbl-parse.o"
12259 fi
12260
12261 echo ${extra_objects} | grep -s "itbl-lex.o"
12262 if test $? -ne 0 ; then
12263 extra_objects="$extra_objects itbl-lex.o"
12264 fi
12265
12266 echo ${extra_objects} | grep -s "itbl-ops.o"
12267 if test $? -ne 0 ; then
12268 extra_objects="$extra_objects itbl-ops.o"
12269 fi
12270 ;;
12271
12272 mt)
12273 using_cgen=yes
12274 ;;
12275
12276 i386 | s390 | sparc)
12277 if test $this_target = $target ; then
12278
12279 cat >>confdefs.h <<_ACEOF
12280 #define DEFAULT_ARCH "${arch}"
12281 _ACEOF
12282
12283 fi
12284 ;;
12285
12286 xstormy16)
12287 using_cgen=yes
12288 ;;
12289
12290 xc16x)
12291 using_cgen=yes
12292 ;;
12293
12294 xtensa)
12295 echo ${extra_objects} | grep -s "xtensa-relax.o"
12296 if test $? -ne 0 ; then
12297 extra_objects="$extra_objects xtensa-relax.o"
12298 fi
12299 ;;
12300
12301 *)
12302 ;;
12303 esac
12304
12305 if test $using_cgen = yes ; then
12306 case "x${extra_objects}" in
12307 *cgen.o*) ;;
12308 *) extra_objects="$extra_objects cgen.o" ;;
12309 esac
12310 fi
12311
12312 # See if we really can support this configuration with the emulation code.
12313
12314 if test $this_target = $target ; then
12315 obj_format=$fmt
12316 te_file=$em
12317 fi
12318
12319 # From target name and format, produce a list of supported emulations.
12320
12321 case ${generic_target}-${fmt} in
12322 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12323 mips*-*-linux*-*) case "$endian" in
12324 big) emulation="mipsbelf mipslelf mipself" ;;
12325 *) emulation="mipslelf mipsbelf mipself" ;;
12326 esac ;;
12327 mips-*-lnews*-ecoff) ;;
12328 mips-*-*-ecoff) case "$endian" in
12329 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
12330 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
12331 esac ;;
12332 mips-*-*-elf) case "$endian" in
12333 big) emulation="mipsbelf mipslelf mipself" ;;
12334 *) emulation="mipslelf mipsbelf mipself" ;;
12335 esac ;;
12336 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12337 # i386-pc-pe-coff != i386-pc-coff.
12338 i386-*-pe-coff) ;;
12339 # Uncommenting the next line will turn on support for i386 AOUT
12340 # for the default linux configuration
12341 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12342 #
12343 i386-*-aout) emulation="i386aout" ;;
12344 i386-*-coff) emulation="i386coff" ;;
12345 i386-*-elf) emulation="i386elf" ;;
12346
12347 # Always all formats. The first stated emulation becomes the default.
12348 cris-*-*aout*) emulation="crisaout criself" ;;
12349 cris-*-*) emulation="criself crisaout" ;;
12350 esac
12351
12352 emulations="$emulations $emulation"
12353
12354 done
12355
12356 # Turn on all targets if possible
12357 if test ${all_targets} = "yes"; then
12358 case ${target_cpu_type} in
12359 i386)
12360 case ${obj_format} in
12361 aout)
12362 emulations="$emulations i386coff i386elf"
12363 ;;
12364 coff)
12365 emulations="$emulations i386aout i386elf"
12366 ;;
12367 elf)
12368 emulations="$emulations i386aout i386coff"
12369 ;;
12370 esac
12371 ;;
12372 x86_64)
12373 case ${obj_format} in
12374 aout)
12375 emulations="$emulations i386coff i386elf"
12376 ;;
12377 coff)
12378 emulations="$emulations i386aout i386elf"
12379 ;;
12380 elf)
12381 emulations="$emulations i386aout i386coff"
12382 ;;
12383 esac
12384 ;;
12385 esac
12386 fi
12387
12388 # Assign floating point type. Most processors with FP support
12389 # IEEE FP. On those that don't support FP at all, usually IEEE
12390 # is emulated.
12391 case ${target_cpu} in
12392 vax | pdp11 ) atof=vax ;;
12393 *) atof=ieee ;;
12394 esac
12395
12396 case "${obj_format}" in
12397 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
12398 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
12399 { (exit 1); exit 1; }; } ;;
12400 esac
12401
12402 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12403 cgen_cpu_prefix=""
12404 if test $using_cgen = yes ; then
12405 case ${target_cpu} in
12406 *) cgen_cpu_prefix=${target_cpu} ;;
12407 esac
12408
12409
12410 cat >>confdefs.h <<\_ACEOF
12411 #define USING_CGEN 1
12412 _ACEOF
12413
12414 fi
12415
12416
12417 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12418 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
12419 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
12420 { (exit 1); exit 1; }; }
12421 fi
12422
12423 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12424 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
12425 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
12426 { (exit 1); exit 1; }; }
12427 fi
12428
12429 # Some COFF configurations want these random other flags set.
12430 case ${obj_format} in
12431 coff)
12432 case ${target_cpu_type} in
12433 i386)
12434 cat >>confdefs.h <<\_ACEOF
12435 #define I386COFF 1
12436 _ACEOF
12437 ;;
12438 m68k)
12439 cat >>confdefs.h <<\_ACEOF
12440 #define M68KCOFF 1
12441 _ACEOF
12442 ;;
12443 m88k)
12444 cat >>confdefs.h <<\_ACEOF
12445 #define M88KCOFF 1
12446 _ACEOF
12447 ;;
12448 x86_64)
12449 cat >>confdefs.h <<\_ACEOF
12450 #define I386COFF 1
12451 _ACEOF
12452 ;;
12453 esac
12454 ;;
12455 esac
12456
12457 # Getting this done right is going to be a bitch. Each configuration specified
12458 # with --enable-targets=... should be checked for environment, format, cpu
12459 # setting.
12460 #
12461 # For each configuration, the necessary object file support code must be linked
12462 # in. This might be only one, it might be up to four. The necessary emulation
12463 # code needs to be provided, too.
12464 #
12465 # And then there's "--enable-targets=all"....
12466 #
12467 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
12468
12469 formats="${obj_format}"
12470 emfiles=""
12471 EMULATIONS=""
12472 _gas_uniq_list="$emulations"
12473 _gas_uniq_newlist=""
12474 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12475 case $_gas_uniq_i in
12476 _gas_uniq_dummy) ;;
12477 *) case " $_gas_uniq_newlist " in
12478 *" $_gas_uniq_i "*) ;;
12479 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12480 esac ;;
12481 esac
12482 done
12483 emulations=$_gas_uniq_newlist
12484
12485 for em in . $emulations ; do
12486 case $em in
12487 .) continue ;;
12488 mipsbelf | mipslelf | mipself)
12489 fmt=elf file=mipself ;;
12490 mipsbecoff | mipslecoff | mipsecoff)
12491 fmt=ecoff file=mipsecoff ;;
12492 *coff)
12493 fmt=coff file=$em ;;
12494 *aout)
12495 fmt=aout file=$em ;;
12496 *elf)
12497 fmt=elf file=$em ;;
12498 esac
12499 formats="$formats $fmt"
12500 emfiles="$emfiles e-$file.o"
12501 EMULATIONS="$EMULATIONS &$em,"
12502 done
12503 _gas_uniq_list="$formats"
12504 _gas_uniq_newlist=""
12505 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12506 case $_gas_uniq_i in
12507 _gas_uniq_dummy) ;;
12508 *) case " $_gas_uniq_newlist " in
12509 *" $_gas_uniq_i "*) ;;
12510 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12511 esac ;;
12512 esac
12513 done
12514 formats=$_gas_uniq_newlist
12515
12516 _gas_uniq_list="$emfiles"
12517 _gas_uniq_newlist=""
12518 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12519 case $_gas_uniq_i in
12520 _gas_uniq_dummy) ;;
12521 *) case " $_gas_uniq_newlist " in
12522 *" $_gas_uniq_i "*) ;;
12523 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12524 esac ;;
12525 esac
12526 done
12527 emfiles=$_gas_uniq_newlist
12528
12529 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12530 for fmt in $formats ; do
12531 case $fmt in
12532 aout)
12533 cat >>confdefs.h <<\_ACEOF
12534 #define OBJ_MAYBE_AOUT 1
12535 _ACEOF
12536 ;;
12537 bout)
12538 cat >>confdefs.h <<\_ACEOF
12539 #define OBJ_MAYBE_BOUT 1
12540 _ACEOF
12541 ;;
12542 coff)
12543 cat >>confdefs.h <<\_ACEOF
12544 #define OBJ_MAYBE_COFF 1
12545 _ACEOF
12546 ;;
12547 ecoff)
12548 cat >>confdefs.h <<\_ACEOF
12549 #define OBJ_MAYBE_ECOFF 1
12550 _ACEOF
12551 ;;
12552 elf)
12553 cat >>confdefs.h <<\_ACEOF
12554 #define OBJ_MAYBE_ELF 1
12555 _ACEOF
12556 ;;
12557 generic)
12558 cat >>confdefs.h <<\_ACEOF
12559 #define OBJ_MAYBE_GENERIC 1
12560 _ACEOF
12561 ;;
12562 som)
12563 cat >>confdefs.h <<\_ACEOF
12564 #define OBJ_MAYBE_SOM 1
12565 _ACEOF
12566 ;;
12567 esac
12568 extra_objects="$extra_objects obj-$fmt.o"
12569 done
12570 obj_format=multi
12571 fi
12572 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12573 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12574 # e-mips* has more than one emulation per file, e-i386* has just one at the
12575 # moment. If only one emulation is specified, then don't define
12576 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12577 case "${obj_format}${emfiles}" in
12578 multi* | *mips*)
12579 extra_objects="$extra_objects $emfiles"
12580
12581 cat >>confdefs.h <<\_ACEOF
12582 #define USE_EMULATIONS 1
12583 _ACEOF
12584 ;;
12585 esac
12586 fi
12587
12588
12589 cat >>confdefs.h <<_ACEOF
12590 #define EMULATIONS $EMULATIONS
12591 _ACEOF
12592
12593
12594 cat >>confdefs.h <<_ACEOF
12595 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12596 _ACEOF
12597
12598
12599 reject_dev_configs=yes
12600
12601 case ${reject_dev_configs}-${dev} in
12602 yes-yes) # Oops.
12603 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
12604 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
12605 { (exit 1); exit 1; }; }
12606 ;;
12607 esac
12608
12609
12610
12611
12612
12613
12614
12615 # do we need the opcodes library?
12616 case "${need_opcodes}" in
12617 yes)
12618 OPCODES_LIB=../opcodes/libopcodes.la
12619 ;;
12620 esac
12621
12622
12623
12624
12625 cat >>confdefs.h <<_ACEOF
12626 #define TARGET_ALIAS "${target_alias}"
12627 _ACEOF
12628
12629
12630 cat >>confdefs.h <<_ACEOF
12631 #define TARGET_CANONICAL "${target}"
12632 _ACEOF
12633
12634
12635 cat >>confdefs.h <<_ACEOF
12636 #define TARGET_CPU "${target_cpu}"
12637 _ACEOF
12638
12639
12640 cat >>confdefs.h <<_ACEOF
12641 #define TARGET_VENDOR "${target_vendor}"
12642 _ACEOF
12643
12644
12645 cat >>confdefs.h <<_ACEOF
12646 #define TARGET_OS "${target_os}"
12647 _ACEOF
12648
12649
12650 for ac_prog in 'bison -y' byacc
12651 do
12652 # Extract the first word of "$ac_prog", so it can be a program name with args.
12653 set dummy $ac_prog; ac_word=$2
12654 echo "$as_me:$LINENO: checking for $ac_word" >&5
12655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12656 if test "${ac_cv_prog_YACC+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659 if test -n "$YACC"; then
12660 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12661 else
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12664 do
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669 ac_cv_prog_YACC="$ac_prog"
12670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12672 fi
12673 done
12674 done
12675
12676 fi
12677 fi
12678 YACC=$ac_cv_prog_YACC
12679 if test -n "$YACC"; then
12680 echo "$as_me:$LINENO: result: $YACC" >&5
12681 echo "${ECHO_T}$YACC" >&6
12682 else
12683 echo "$as_me:$LINENO: result: no" >&5
12684 echo "${ECHO_T}no" >&6
12685 fi
12686
12687 test -n "$YACC" && break
12688 done
12689 test -n "$YACC" || YACC="yacc"
12690
12691 for ac_prog in flex lex
12692 do
12693 # Extract the first word of "$ac_prog", so it can be a program name with args.
12694 set dummy $ac_prog; ac_word=$2
12695 echo "$as_me:$LINENO: checking for $ac_word" >&5
12696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12697 if test "${ac_cv_prog_LEX+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 if test -n "$LEX"; then
12701 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12702 else
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12705 do
12706 IFS=$as_save_IFS
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12710 ac_cv_prog_LEX="$ac_prog"
12711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 break 2
12713 fi
12714 done
12715 done
12716
12717 fi
12718 fi
12719 LEX=$ac_cv_prog_LEX
12720 if test -n "$LEX"; then
12721 echo "$as_me:$LINENO: result: $LEX" >&5
12722 echo "${ECHO_T}$LEX" >&6
12723 else
12724 echo "$as_me:$LINENO: result: no" >&5
12725 echo "${ECHO_T}no" >&6
12726 fi
12727
12728 test -n "$LEX" && break
12729 done
12730 test -n "$LEX" || LEX=":"
12731
12732 if test -z "$LEXLIB"
12733 then
12734 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
12735 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
12736 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 else
12739 ac_check_lib_save_LIBS=$LIBS
12740 LIBS="-lfl $LIBS"
12741 cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h. */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12747
12748 /* Override any gcc2 internal prototype to avoid an error. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 /* We use char because int might match the return type of a gcc2
12753 builtin and then its argument prototype would still apply. */
12754 char yywrap ();
12755 int
12756 main ()
12757 {
12758 yywrap ();
12759 ;
12760 return 0;
12761 }
12762 _ACEOF
12763 rm -f conftest.$ac_objext conftest$ac_exeext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12765 (eval $ac_link) 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"
12773 || test ! -s conftest.err'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; } &&
12779 { ac_try='test -s conftest$ac_exeext'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; }; then
12785 ac_cv_lib_fl_yywrap=yes
12786 else
12787 echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.$ac_ext >&5
12789
12790 ac_cv_lib_fl_yywrap=no
12791 fi
12792 rm -f conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12794 LIBS=$ac_check_lib_save_LIBS
12795 fi
12796 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
12797 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
12798 if test $ac_cv_lib_fl_yywrap = yes; then
12799 LEXLIB="-lfl"
12800 else
12801 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
12802 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
12803 if test "${ac_cv_lib_l_yywrap+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 else
12806 ac_check_lib_save_LIBS=$LIBS
12807 LIBS="-ll $LIBS"
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
12815 /* Override any gcc2 internal prototype to avoid an error. */
12816 #ifdef __cplusplus
12817 extern "C"
12818 #endif
12819 /* We use char because int might match the return type of a gcc2
12820 builtin and then its argument prototype would still apply. */
12821 char yywrap ();
12822 int
12823 main ()
12824 {
12825 yywrap ();
12826 ;
12827 return 0;
12828 }
12829 _ACEOF
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12832 (eval $ac_link) 2>conftest.er1
12833 ac_status=$?
12834 grep -v '^ *+' conftest.er1 >conftest.err
12835 rm -f conftest.er1
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
12839 { ac_try='test -z "$ac_c_werror_flag"
12840 || test ! -s conftest.err'
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); }; } &&
12846 { ac_try='test -s conftest$ac_exeext'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12852 ac_cv_lib_l_yywrap=yes
12853 else
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857 ac_cv_lib_l_yywrap=no
12858 fi
12859 rm -f conftest.err conftest.$ac_objext \
12860 conftest$ac_exeext conftest.$ac_ext
12861 LIBS=$ac_check_lib_save_LIBS
12862 fi
12863 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
12864 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
12865 if test $ac_cv_lib_l_yywrap = yes; then
12866 LEXLIB="-ll"
12867 fi
12868
12869 fi
12870
12871 fi
12872
12873 if test "x$LEX" != "x:"; then
12874 echo "$as_me:$LINENO: checking lex output file root" >&5
12875 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
12876 if test "${ac_cv_prog_lex_root+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 else
12879 # The minimal lex program is just a single line: %%. But some broken lexes
12880 # (Solaris, I think it was) want two %% lines, so accommodate them.
12881 cat >conftest.l <<_ACEOF
12882 %%
12883 %%
12884 _ACEOF
12885 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
12886 (eval $LEX conftest.l) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }
12890 if test -f lex.yy.c; then
12891 ac_cv_prog_lex_root=lex.yy
12892 elif test -f lexyy.c; then
12893 ac_cv_prog_lex_root=lexyy
12894 else
12895 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
12896 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
12897 { (exit 1); exit 1; }; }
12898 fi
12899 fi
12900 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
12901 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
12902 rm -f conftest.l
12903 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12904
12905 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
12906 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
12907 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 else
12910 # POSIX says lex can declare yytext either as a pointer or an array; the
12911 # default is implementation-dependent. Figure out which it is, since
12912 # not all implementations provide the %pointer and %array declarations.
12913 ac_cv_prog_lex_yytext_pointer=no
12914 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
12915 ac_save_LIBS=$LIBS
12916 LIBS="$LIBS $LEXLIB"
12917 cat >conftest.$ac_ext <<_ACEOF
12918 `cat $LEX_OUTPUT_ROOT.c`
12919 _ACEOF
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12922 (eval $ac_link) 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -z "$ac_c_werror_flag"
12930 || 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_exeext'
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_cv_prog_lex_yytext_pointer=yes
12943 else
12944 echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12946
12947 fi
12948 rm -f conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_save_LIBS
12951 rm -f "${LEX_OUTPUT_ROOT}.c"
12952
12953 fi
12954 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12955 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
12956 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12957
12958 cat >>confdefs.h <<\_ACEOF
12959 #define YYTEXT_POINTER 1
12960 _ACEOF
12961
12962 fi
12963
12964 fi
12965 if test "$LEX" = :; then
12966 LEX=${am_missing_run}flex
12967 fi
12968
12969 ALL_LINGUAS="fr tr es rw id"
12970 # If we haven't got the data from the intl directory,
12971 # assume NLS is disabled.
12972 USE_NLS=no
12973 LIBINTL=
12974 LIBINTL_DEP=
12975 INCINTL=
12976 XGETTEXT=
12977 GMSGFMT=
12978 POSUB=
12979
12980 if test -f ../intl/config.intl; then
12981 . ../intl/config.intl
12982 fi
12983 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12984 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12985 if test x"$USE_NLS" != xyes; then
12986 echo "$as_me:$LINENO: result: no" >&5
12987 echo "${ECHO_T}no" >&6
12988 else
12989 echo "$as_me:$LINENO: result: yes" >&5
12990 echo "${ECHO_T}yes" >&6
12991
12992 cat >>confdefs.h <<\_ACEOF
12993 #define ENABLE_NLS 1
12994 _ACEOF
12995
12996
12997 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12998 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12999 # Look for .po and .gmo files in the source directory.
13000 CATALOGS=
13001 XLINGUAS=
13002 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13003 # If there aren't any .gmo files the shell will give us the
13004 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13005 # weeded out.
13006 case "$cat" in *\**)
13007 continue;;
13008 esac
13009 # The quadruple backslash is collapsed to a double backslash
13010 # by the backticks, then collapsed again by the double quotes,
13011 # leaving us with one backslash in the sed expression (right
13012 # before the dot that mustn't act as a wildcard).
13013 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13014 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13015 # The user is allowed to set LINGUAS to a list of languages to
13016 # install catalogs for. If it's empty that means "all of them."
13017 if test "x$LINGUAS" = x; then
13018 CATALOGS="$CATALOGS $cat"
13019 XLINGUAS="$XLINGUAS $lang"
13020 else
13021 case "$LINGUAS" in *$lang*)
13022 CATALOGS="$CATALOGS $cat"
13023 XLINGUAS="$XLINGUAS $lang"
13024 ;;
13025 esac
13026 fi
13027 done
13028 LINGUAS="$XLINGUAS"
13029 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13030 echo "${ECHO_T}$LINGUAS" >&6
13031
13032
13033 DATADIRNAME=share
13034
13035 INSTOBJEXT=.mo
13036
13037 GENCAT=gencat
13038
13039 CATOBJEXT=.gmo
13040
13041 fi
13042
13043 MKINSTALLDIRS=
13044 if test -n "$ac_aux_dir"; then
13045 case "$ac_aux_dir" in
13046 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13047 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13048 esac
13049 fi
13050 if test -z "$MKINSTALLDIRS"; then
13051 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13052 fi
13053
13054
13055
13056 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13057 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13058 # Check whether --enable-nls or --disable-nls was given.
13059 if test "${enable_nls+set}" = set; then
13060 enableval="$enable_nls"
13061 USE_NLS=$enableval
13062 else
13063 USE_NLS=yes
13064 fi;
13065 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13066 echo "${ECHO_T}$USE_NLS" >&6
13067
13068
13069
13070
13071
13072
13073 # Prepare PATH_SEPARATOR.
13074 # The user is always right.
13075 if test "${PATH_SEPARATOR+set}" != set; then
13076 echo "#! /bin/sh" >conf$$.sh
13077 echo "exit 0" >>conf$$.sh
13078 chmod +x conf$$.sh
13079 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13080 PATH_SEPARATOR=';'
13081 else
13082 PATH_SEPARATOR=:
13083 fi
13084 rm -f conf$$.sh
13085 fi
13086
13087 # Find out how to test for executable files. Don't use a zero-byte file,
13088 # as systems may use methods other than mode bits to determine executability.
13089 cat >conf$$.file <<_ASEOF
13090 #! /bin/sh
13091 exit 0
13092 _ASEOF
13093 chmod +x conf$$.file
13094 if test -x conf$$.file >/dev/null 2>&1; then
13095 ac_executable_p="test -x"
13096 else
13097 ac_executable_p="test -f"
13098 fi
13099 rm -f conf$$.file
13100
13101 # Extract the first word of "msgfmt", so it can be a program name with args.
13102 set dummy msgfmt; ac_word=$2
13103 echo "$as_me:$LINENO: checking for $ac_word" >&5
13104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13105 if test "${ac_cv_path_MSGFMT+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108 case "$MSGFMT" in
13109 [\\/]* | ?:[\\/]*)
13110 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13111 ;;
13112 *)
13113 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13114 for ac_dir in $PATH; do
13115 IFS="$ac_save_IFS"
13116 test -z "$ac_dir" && ac_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13119 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13120 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13121 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13122 break 2
13123 fi
13124 fi
13125 done
13126 done
13127 IFS="$ac_save_IFS"
13128 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13129 ;;
13130 esac
13131 fi
13132 MSGFMT="$ac_cv_path_MSGFMT"
13133 if test "$MSGFMT" != ":"; then
13134 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13135 echo "${ECHO_T}$MSGFMT" >&6
13136 else
13137 echo "$as_me:$LINENO: result: no" >&5
13138 echo "${ECHO_T}no" >&6
13139 fi
13140
13141 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13142 set dummy gmsgfmt; ac_word=$2
13143 echo "$as_me:$LINENO: checking for $ac_word" >&5
13144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13145 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 else
13148 case $GMSGFMT in
13149 [\\/]* | ?:[\\/]*)
13150 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13151 ;;
13152 *)
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13155 do
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13160 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 break 2
13163 fi
13164 done
13165 done
13166
13167 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13168 ;;
13169 esac
13170 fi
13171 GMSGFMT=$ac_cv_path_GMSGFMT
13172
13173 if test -n "$GMSGFMT"; then
13174 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13175 echo "${ECHO_T}$GMSGFMT" >&6
13176 else
13177 echo "$as_me:$LINENO: result: no" >&5
13178 echo "${ECHO_T}no" >&6
13179 fi
13180
13181
13182
13183 # Prepare PATH_SEPARATOR.
13184 # The user is always right.
13185 if test "${PATH_SEPARATOR+set}" != set; then
13186 echo "#! /bin/sh" >conf$$.sh
13187 echo "exit 0" >>conf$$.sh
13188 chmod +x conf$$.sh
13189 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13190 PATH_SEPARATOR=';'
13191 else
13192 PATH_SEPARATOR=:
13193 fi
13194 rm -f conf$$.sh
13195 fi
13196
13197 # Find out how to test for executable files. Don't use a zero-byte file,
13198 # as systems may use methods other than mode bits to determine executability.
13199 cat >conf$$.file <<_ASEOF
13200 #! /bin/sh
13201 exit 0
13202 _ASEOF
13203 chmod +x conf$$.file
13204 if test -x conf$$.file >/dev/null 2>&1; then
13205 ac_executable_p="test -x"
13206 else
13207 ac_executable_p="test -f"
13208 fi
13209 rm -f conf$$.file
13210
13211 # Extract the first word of "xgettext", so it can be a program name with args.
13212 set dummy xgettext; ac_word=$2
13213 echo "$as_me:$LINENO: checking for $ac_word" >&5
13214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13215 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218 case "$XGETTEXT" in
13219 [\\/]* | ?:[\\/]*)
13220 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13221 ;;
13222 *)
13223 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13224 for ac_dir in $PATH; do
13225 IFS="$ac_save_IFS"
13226 test -z "$ac_dir" && ac_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13229 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13230 (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
13231 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13232 break 2
13233 fi
13234 fi
13235 done
13236 done
13237 IFS="$ac_save_IFS"
13238 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13239 ;;
13240 esac
13241 fi
13242 XGETTEXT="$ac_cv_path_XGETTEXT"
13243 if test "$XGETTEXT" != ":"; then
13244 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13245 echo "${ECHO_T}$XGETTEXT" >&6
13246 else
13247 echo "$as_me:$LINENO: result: no" >&5
13248 echo "${ECHO_T}no" >&6
13249 fi
13250
13251 rm -f messages.po
13252
13253
13254 # Prepare PATH_SEPARATOR.
13255 # The user is always right.
13256 if test "${PATH_SEPARATOR+set}" != set; then
13257 echo "#! /bin/sh" >conf$$.sh
13258 echo "exit 0" >>conf$$.sh
13259 chmod +x conf$$.sh
13260 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13261 PATH_SEPARATOR=';'
13262 else
13263 PATH_SEPARATOR=:
13264 fi
13265 rm -f conf$$.sh
13266 fi
13267
13268 # Find out how to test for executable files. Don't use a zero-byte file,
13269 # as systems may use methods other than mode bits to determine executability.
13270 cat >conf$$.file <<_ASEOF
13271 #! /bin/sh
13272 exit 0
13273 _ASEOF
13274 chmod +x conf$$.file
13275 if test -x conf$$.file >/dev/null 2>&1; then
13276 ac_executable_p="test -x"
13277 else
13278 ac_executable_p="test -f"
13279 fi
13280 rm -f conf$$.file
13281
13282 # Extract the first word of "msgmerge", so it can be a program name with args.
13283 set dummy msgmerge; ac_word=$2
13284 echo "$as_me:$LINENO: checking for $ac_word" >&5
13285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13286 if test "${ac_cv_path_MSGMERGE+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289 case "$MSGMERGE" in
13290 [\\/]* | ?:[\\/]*)
13291 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13292 ;;
13293 *)
13294 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13295 for ac_dir in $PATH; do
13296 IFS="$ac_save_IFS"
13297 test -z "$ac_dir" && ac_dir=.
13298 for ac_exec_ext in '' $ac_executable_extensions; do
13299 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13300 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13301 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13302 break 2
13303 fi
13304 fi
13305 done
13306 done
13307 IFS="$ac_save_IFS"
13308 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13309 ;;
13310 esac
13311 fi
13312 MSGMERGE="$ac_cv_path_MSGMERGE"
13313 if test "$MSGMERGE" != ":"; then
13314 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
13315 echo "${ECHO_T}$MSGMERGE" >&6
13316 else
13317 echo "$as_me:$LINENO: result: no" >&5
13318 echo "${ECHO_T}no" >&6
13319 fi
13320
13321
13322 if test "$GMSGFMT" != ":"; then
13323 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13324 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13325 : ;
13326 else
13327 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13328 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13329 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
13330 GMSGFMT=":"
13331 fi
13332 fi
13333
13334 if test "$XGETTEXT" != ":"; then
13335 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13336 (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
13337 : ;
13338 else
13339 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13340 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13341 XGETTEXT=":"
13342 fi
13343 rm -f messages.po
13344 fi
13345
13346 ac_config_commands="$ac_config_commands default-1"
13347
13348
13349
13350 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
13351 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
13352 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
13353 if test "${enable_maintainer_mode+set}" = set; then
13354 enableval="$enable_maintainer_mode"
13355 USE_MAINTAINER_MODE=$enableval
13356 else
13357 USE_MAINTAINER_MODE=no
13358 fi;
13359 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
13360 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13361
13362
13363 if test $USE_MAINTAINER_MODE = yes; then
13364 MAINTAINER_MODE_TRUE=
13365 MAINTAINER_MODE_FALSE='#'
13366 else
13367 MAINTAINER_MODE_TRUE='#'
13368 MAINTAINER_MODE_FALSE=
13369 fi
13370
13371 MAINT=$MAINTAINER_MODE_TRUE
13372
13373
13374
13375
13376 if false; then
13377 GENINSRC_NEVER_TRUE=
13378 GENINSRC_NEVER_FALSE='#'
13379 else
13380 GENINSRC_NEVER_TRUE='#'
13381 GENINSRC_NEVER_FALSE=
13382 fi
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h
13397 do
13398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13400 echo "$as_me:$LINENO: checking for $ac_header" >&5
13401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 fi
13405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13407 else
13408 # Is the header compilable?
13409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h. */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 $ac_includes_default
13418 #include <$ac_header>
13419 _ACEOF
13420 rm -f conftest.$ac_objext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422 (eval $ac_compile) 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -z "$ac_c_werror_flag"
13430 || test ! -s conftest.err'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_header_compiler=yes
13443 else
13444 echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13446
13447 ac_header_compiler=no
13448 fi
13449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13451 echo "${ECHO_T}$ac_header_compiler" >&6
13452
13453 # Is the header present?
13454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 #include <$ac_header>
13463 _ACEOF
13464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } >/dev/null; then
13472 if test -s conftest.err; then
13473 ac_cpp_err=$ac_c_preproc_warn_flag
13474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13475 else
13476 ac_cpp_err=
13477 fi
13478 else
13479 ac_cpp_err=yes
13480 fi
13481 if test -z "$ac_cpp_err"; then
13482 ac_header_preproc=yes
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13486
13487 ac_header_preproc=no
13488 fi
13489 rm -f conftest.err conftest.$ac_ext
13490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13491 echo "${ECHO_T}$ac_header_preproc" >&6
13492
13493 # So? What about this header?
13494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13495 yes:no: )
13496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13500 ac_header_preproc=yes
13501 ;;
13502 no:yes:* )
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13515 (
13516 cat <<\_ASBOX
13517 ## ------------------------------------------ ##
13518 ## Report this to the AC_PACKAGE_NAME lists. ##
13519 ## ------------------------------------------ ##
13520 _ASBOX
13521 ) |
13522 sed "s/^/$as_me: WARNING: /" >&2
13523 ;;
13524 esac
13525 echo "$as_me:$LINENO: checking for $ac_header" >&5
13526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 else
13530 eval "$as_ac_Header=\$ac_header_preproc"
13531 fi
13532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13534
13535 fi
13536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13537 cat >>confdefs.h <<_ACEOF
13538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13539 _ACEOF
13540
13541 fi
13542
13543 done
13544
13545
13546 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13547 # people who are not cross-compiling but are compiling cross-assemblers.
13548 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
13549 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
13550 if test "${host}" = "${target}"; then
13551 cross_gas=no
13552 else
13553 cross_gas=yes
13554
13555 cat >>confdefs.h <<\_ACEOF
13556 #define CROSS_COMPILE 1
13557 _ACEOF
13558
13559 fi
13560 echo "$as_me:$LINENO: result: $cross_gas" >&5
13561 echo "${ECHO_T}$cross_gas" >&6
13562
13563 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13564 # for constant arguments. Useless!
13565 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13566 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13567 if test "${ac_cv_working_alloca_h+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570 cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h. */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13576 #include <alloca.h>
13577 int
13578 main ()
13579 {
13580 char *p = (char *) alloca (2 * sizeof (int));
13581 ;
13582 return 0;
13583 }
13584 _ACEOF
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13587 (eval $ac_link) 2>conftest.er1
13588 ac_status=$?
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } &&
13594 { ac_try='test -z "$ac_c_werror_flag"
13595 || test ! -s conftest.err'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; } &&
13601 { ac_try='test -s conftest$ac_exeext'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_cv_working_alloca_h=yes
13608 else
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13611
13612 ac_cv_working_alloca_h=no
13613 fi
13614 rm -f conftest.err conftest.$ac_objext \
13615 conftest$ac_exeext conftest.$ac_ext
13616 fi
13617 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13618 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13619 if test $ac_cv_working_alloca_h = yes; then
13620
13621 cat >>confdefs.h <<\_ACEOF
13622 #define HAVE_ALLOCA_H 1
13623 _ACEOF
13624
13625 fi
13626
13627 echo "$as_me:$LINENO: checking for alloca" >&5
13628 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13629 if test "${ac_cv_func_alloca_works+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 else
13632 cat >conftest.$ac_ext <<_ACEOF
13633 /* confdefs.h. */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 #ifdef __GNUC__
13639 # define alloca __builtin_alloca
13640 #else
13641 # ifdef _MSC_VER
13642 # include <malloc.h>
13643 # define alloca _alloca
13644 # else
13645 # if HAVE_ALLOCA_H
13646 # include <alloca.h>
13647 # else
13648 # ifdef _AIX
13649 #pragma alloca
13650 # else
13651 # ifndef alloca /* predefined by HP cc +Olibcalls */
13652 char *alloca ();
13653 # endif
13654 # endif
13655 # endif
13656 # endif
13657 #endif
13658
13659 int
13660 main ()
13661 {
13662 char *p = (char *) alloca (1);
13663 ;
13664 return 0;
13665 }
13666 _ACEOF
13667 rm -f conftest.$ac_objext conftest$ac_exeext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13669 (eval $ac_link) 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
13676 { ac_try='test -z "$ac_c_werror_flag"
13677 || test ! -s conftest.err'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } &&
13683 { ac_try='test -s conftest$ac_exeext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_cv_func_alloca_works=yes
13690 else
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694 ac_cv_func_alloca_works=no
13695 fi
13696 rm -f conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
13698 fi
13699 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13700 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13701
13702 if test $ac_cv_func_alloca_works = yes; then
13703
13704 cat >>confdefs.h <<\_ACEOF
13705 #define HAVE_ALLOCA 1
13706 _ACEOF
13707
13708 else
13709 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13710 # that cause trouble. Some versions do not even contain alloca or
13711 # contain a buggy version. If you still want to use their alloca,
13712 # use ar to extract alloca.o from them instead of compiling alloca.c.
13713
13714 ALLOCA=alloca.$ac_objext
13715
13716 cat >>confdefs.h <<\_ACEOF
13717 #define C_ALLOCA 1
13718 _ACEOF
13719
13720
13721 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13722 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13723 if test "${ac_cv_os_cray+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726 cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h. */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 #if defined(CRAY) && ! defined(CRAY2)
13733 webecray
13734 #else
13735 wenotbecray
13736 #endif
13737
13738 _ACEOF
13739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13740 $EGREP "webecray" >/dev/null 2>&1; then
13741 ac_cv_os_cray=yes
13742 else
13743 ac_cv_os_cray=no
13744 fi
13745 rm -f conftest*
13746
13747 fi
13748 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13749 echo "${ECHO_T}$ac_cv_os_cray" >&6
13750 if test $ac_cv_os_cray = yes; then
13751 for ac_func in _getb67 GETB67 getb67; do
13752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13753 echo "$as_me:$LINENO: checking for $ac_func" >&5
13754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13755 if eval "test \"\${$as_ac_var+set}\" = set"; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758 cat >conftest.$ac_ext <<_ACEOF
13759 /* confdefs.h. */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13766 #define $ac_func innocuous_$ac_func
13767
13768 /* System header to define __stub macros and hopefully few prototypes,
13769 which can conflict with char $ac_func (); below.
13770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13771 <limits.h> exists even on freestanding compilers. */
13772
13773 #ifdef __STDC__
13774 # include <limits.h>
13775 #else
13776 # include <assert.h>
13777 #endif
13778
13779 #undef $ac_func
13780
13781 /* Override any gcc2 internal prototype to avoid an error. */
13782 #ifdef __cplusplus
13783 extern "C"
13784 {
13785 #endif
13786 /* We use char because int might match the return type of a gcc2
13787 builtin and then its argument prototype would still apply. */
13788 char $ac_func ();
13789 /* The GNU C library defines this for functions which it implements
13790 to always fail with ENOSYS. Some functions are actually named
13791 something starting with __ and the normal name is an alias. */
13792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13793 choke me
13794 #else
13795 char (*f) () = $ac_func;
13796 #endif
13797 #ifdef __cplusplus
13798 }
13799 #endif
13800
13801 int
13802 main ()
13803 {
13804 return f != $ac_func;
13805 ;
13806 return 0;
13807 }
13808 _ACEOF
13809 rm -f conftest.$ac_objext conftest$ac_exeext
13810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13811 (eval $ac_link) 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_c_werror_flag"
13819 || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest$ac_exeext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 eval "$as_ac_var=yes"
13832 else
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13835
13836 eval "$as_ac_var=no"
13837 fi
13838 rm -f conftest.err conftest.$ac_objext \
13839 conftest$ac_exeext conftest.$ac_ext
13840 fi
13841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13843 if test `eval echo '${'$as_ac_var'}'` = yes; then
13844
13845 cat >>confdefs.h <<_ACEOF
13846 #define CRAY_STACKSEG_END $ac_func
13847 _ACEOF
13848
13849 break
13850 fi
13851
13852 done
13853 fi
13854
13855 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13856 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13857 if test "${ac_cv_c_stack_direction+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860 if test "$cross_compiling" = yes; then
13861 ac_cv_c_stack_direction=0
13862 else
13863 cat >conftest.$ac_ext <<_ACEOF
13864 /* confdefs.h. */
13865 _ACEOF
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h. */
13869 int
13870 find_stack_direction ()
13871 {
13872 static char *addr = 0;
13873 auto char dummy;
13874 if (addr == 0)
13875 {
13876 addr = &dummy;
13877 return find_stack_direction ();
13878 }
13879 else
13880 return (&dummy > addr) ? 1 : -1;
13881 }
13882
13883 int
13884 main ()
13885 {
13886 exit (find_stack_direction () < 0);
13887 }
13888 _ACEOF
13889 rm -f conftest$ac_exeext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13891 (eval $ac_link) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_c_stack_direction=1
13901 else
13902 echo "$as_me: program exited with status $ac_status" >&5
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906 ( exit $ac_status )
13907 ac_cv_c_stack_direction=-1
13908 fi
13909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13910 fi
13911 fi
13912 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13913 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define STACK_DIRECTION $ac_cv_c_stack_direction
13917 _ACEOF
13918
13919
13920 fi
13921
13922 echo "$as_me:$LINENO: checking for inline" >&5
13923 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13924 if test "${ac_cv_c_inline+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927 ac_cv_c_inline=no
13928 for ac_kw in inline __inline__ __inline; do
13929 cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 #ifndef __cplusplus
13936 typedef int foo_t;
13937 static $ac_kw foo_t static_foo () {return 0; }
13938 $ac_kw foo_t foo () {return 0; }
13939 #endif
13940
13941 _ACEOF
13942 rm -f conftest.$ac_objext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13944 (eval $ac_compile) 2>conftest.er1
13945 ac_status=$?
13946 grep -v '^ *+' conftest.er1 >conftest.err
13947 rm -f conftest.er1
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
13951 { ac_try='test -z "$ac_c_werror_flag"
13952 || test ! -s conftest.err'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest.$ac_objext'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_cv_c_inline=$ac_kw; break
13965 else
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969 fi
13970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13971 done
13972
13973 fi
13974 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13975 echo "${ECHO_T}$ac_cv_c_inline" >&6
13976
13977
13978 case $ac_cv_c_inline in
13979 inline | yes) ;;
13980 *)
13981 case $ac_cv_c_inline in
13982 no) ac_val=;;
13983 *) ac_val=$ac_cv_c_inline;;
13984 esac
13985 cat >>confdefs.h <<_ACEOF
13986 #ifndef __cplusplus
13987 #define inline $ac_val
13988 #endif
13989 _ACEOF
13990 ;;
13991 esac
13992
13993
13994 # VMS doesn't have unlink.
13995
13996
13997 for ac_func in unlink remove
13998 do
13999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14000 echo "$as_me:$LINENO: checking for $ac_func" >&5
14001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14002 if eval "test \"\${$as_ac_var+set}\" = set"; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005 cat >conftest.$ac_ext <<_ACEOF
14006 /* confdefs.h. */
14007 _ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14013 #define $ac_func innocuous_$ac_func
14014
14015 /* System header to define __stub macros and hopefully few prototypes,
14016 which can conflict with char $ac_func (); below.
14017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14018 <limits.h> exists even on freestanding compilers. */
14019
14020 #ifdef __STDC__
14021 # include <limits.h>
14022 #else
14023 # include <assert.h>
14024 #endif
14025
14026 #undef $ac_func
14027
14028 /* Override any gcc2 internal prototype to avoid an error. */
14029 #ifdef __cplusplus
14030 extern "C"
14031 {
14032 #endif
14033 /* We use char because int might match the return type of a gcc2
14034 builtin and then its argument prototype would still apply. */
14035 char $ac_func ();
14036 /* The GNU C library defines this for functions which it implements
14037 to always fail with ENOSYS. Some functions are actually named
14038 something starting with __ and the normal name is an alias. */
14039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14040 choke me
14041 #else
14042 char (*f) () = $ac_func;
14043 #endif
14044 #ifdef __cplusplus
14045 }
14046 #endif
14047
14048 int
14049 main ()
14050 {
14051 return f != $ac_func;
14052 ;
14053 return 0;
14054 }
14055 _ACEOF
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058 (eval $ac_link) 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -z "$ac_c_werror_flag"
14066 || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest$ac_exeext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 eval "$as_ac_var=yes"
14079 else
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083 eval "$as_ac_var=no"
14084 fi
14085 rm -f conftest.err conftest.$ac_objext \
14086 conftest$ac_exeext conftest.$ac_ext
14087 fi
14088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14090 if test `eval echo '${'$as_ac_var'}'` = yes; then
14091 cat >>confdefs.h <<_ACEOF
14092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14093 _ACEOF
14094 break
14095 fi
14096 done
14097
14098
14099 # Some systems don't have sbrk().
14100
14101 for ac_func in sbrk
14102 do
14103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14104 echo "$as_me:$LINENO: checking for $ac_func" >&5
14105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14106 if eval "test \"\${$as_ac_var+set}\" = set"; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109 cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h. */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14117 #define $ac_func innocuous_$ac_func
14118
14119 /* System header to define __stub macros and hopefully few prototypes,
14120 which can conflict with char $ac_func (); below.
14121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14122 <limits.h> exists even on freestanding compilers. */
14123
14124 #ifdef __STDC__
14125 # include <limits.h>
14126 #else
14127 # include <assert.h>
14128 #endif
14129
14130 #undef $ac_func
14131
14132 /* Override any gcc2 internal prototype to avoid an error. */
14133 #ifdef __cplusplus
14134 extern "C"
14135 {
14136 #endif
14137 /* We use char because int might match the return type of a gcc2
14138 builtin and then its argument prototype would still apply. */
14139 char $ac_func ();
14140 /* The GNU C library defines this for functions which it implements
14141 to always fail with ENOSYS. Some functions are actually named
14142 something starting with __ and the normal name is an alias. */
14143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14144 choke me
14145 #else
14146 char (*f) () = $ac_func;
14147 #endif
14148 #ifdef __cplusplus
14149 }
14150 #endif
14151
14152 int
14153 main ()
14154 {
14155 return f != $ac_func;
14156 ;
14157 return 0;
14158 }
14159 _ACEOF
14160 rm -f conftest.$ac_objext conftest$ac_exeext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14162 (eval $ac_link) 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -z "$ac_c_werror_flag"
14170 || test ! -s conftest.err'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest$ac_exeext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 eval "$as_ac_var=yes"
14183 else
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14186
14187 eval "$as_ac_var=no"
14188 fi
14189 rm -f conftest.err conftest.$ac_objext \
14190 conftest$ac_exeext conftest.$ac_ext
14191 fi
14192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14194 if test `eval echo '${'$as_ac_var'}'` = yes; then
14195 cat >>confdefs.h <<_ACEOF
14196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14197 _ACEOF
14198
14199 fi
14200 done
14201
14202
14203 # do we need the math library?
14204 case "${need_libm}" in
14205 yes)
14206 LIBM=
14207 case $host in
14208 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
14209 # These system don't have libm, or don't need it
14210 ;;
14211 *-ncr-sysv4.3*)
14212 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
14213 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
14214 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 ac_check_lib_save_LIBS=$LIBS
14218 LIBS="-lmw $LIBS"
14219 cat >conftest.$ac_ext <<_ACEOF
14220 /* confdefs.h. */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225
14226 /* Override any gcc2 internal prototype to avoid an error. */
14227 #ifdef __cplusplus
14228 extern "C"
14229 #endif
14230 /* We use char because int might match the return type of a gcc2
14231 builtin and then its argument prototype would still apply. */
14232 char _mwvalidcheckl ();
14233 int
14234 main ()
14235 {
14236 _mwvalidcheckl ();
14237 ;
14238 return 0;
14239 }
14240 _ACEOF
14241 rm -f conftest.$ac_objext conftest$ac_exeext
14242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14243 (eval $ac_link) 2>conftest.er1
14244 ac_status=$?
14245 grep -v '^ *+' conftest.er1 >conftest.err
14246 rm -f conftest.er1
14247 cat conftest.err >&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try='test -z "$ac_c_werror_flag"
14251 || test ! -s conftest.err'
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14254 ac_status=$?
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; } &&
14257 { ac_try='test -s conftest$ac_exeext'
14258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259 (eval $ac_try) 2>&5
14260 ac_status=$?
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); }; }; then
14263 ac_cv_lib_mw__mwvalidcheckl=yes
14264 else
14265 echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14267
14268 ac_cv_lib_mw__mwvalidcheckl=no
14269 fi
14270 rm -f conftest.err conftest.$ac_objext \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LIBS=$ac_check_lib_save_LIBS
14273 fi
14274 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14275 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
14276 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
14277 LIBM="-lmw"
14278 fi
14279
14280 echo "$as_me:$LINENO: checking for cos in -lm" >&5
14281 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
14282 if test "${ac_cv_lib_m_cos+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285 ac_check_lib_save_LIBS=$LIBS
14286 LIBS="-lm $LIBS"
14287 cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h. */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293
14294 /* Override any gcc2 internal prototype to avoid an error. */
14295 #ifdef __cplusplus
14296 extern "C"
14297 #endif
14298 /* We use char because int might match the return type of a gcc2
14299 builtin and then its argument prototype would still apply. */
14300 char cos ();
14301 int
14302 main ()
14303 {
14304 cos ();
14305 ;
14306 return 0;
14307 }
14308 _ACEOF
14309 rm -f conftest.$ac_objext conftest$ac_exeext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag"
14319 || test ! -s conftest.err'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest$ac_exeext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_cv_lib_m_cos=yes
14332 else
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336 ac_cv_lib_m_cos=no
14337 fi
14338 rm -f conftest.err conftest.$ac_objext \
14339 conftest$ac_exeext conftest.$ac_ext
14340 LIBS=$ac_check_lib_save_LIBS
14341 fi
14342 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
14343 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
14344 if test $ac_cv_lib_m_cos = yes; then
14345 LIBM="$LIBM -lm"
14346 fi
14347
14348 ;;
14349 *)
14350 echo "$as_me:$LINENO: checking for cos in -lm" >&5
14351 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
14352 if test "${ac_cv_lib_m_cos+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 else
14355 ac_check_lib_save_LIBS=$LIBS
14356 LIBS="-lm $LIBS"
14357 cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h. */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363
14364 /* Override any gcc2 internal prototype to avoid an error. */
14365 #ifdef __cplusplus
14366 extern "C"
14367 #endif
14368 /* We use char because int might match the return type of a gcc2
14369 builtin and then its argument prototype would still apply. */
14370 char cos ();
14371 int
14372 main ()
14373 {
14374 cos ();
14375 ;
14376 return 0;
14377 }
14378 _ACEOF
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381 (eval $ac_link) 2>conftest.er1
14382 ac_status=$?
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
14388 { ac_try='test -z "$ac_c_werror_flag"
14389 || test ! -s conftest.err'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14392 ac_status=$?
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; } &&
14395 { ac_try='test -s conftest$ac_exeext'
14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14398 ac_status=$?
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; }; then
14401 ac_cv_lib_m_cos=yes
14402 else
14403 echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14405
14406 ac_cv_lib_m_cos=no
14407 fi
14408 rm -f conftest.err conftest.$ac_objext \
14409 conftest$ac_exeext conftest.$ac_ext
14410 LIBS=$ac_check_lib_save_LIBS
14411 fi
14412 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
14413 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
14414 if test $ac_cv_lib_m_cos = yes; then
14415 LIBM="-lm"
14416 fi
14417
14418 ;;
14419 esac
14420
14421
14422
14423 ;;
14424 esac
14425
14426 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
14427 # enough, but on some of those systems, the assert macro relies on requoting
14428 # working properly!
14429 echo "$as_me:$LINENO: checking for working assert macro" >&5
14430 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
14431 if test "${gas_cv_assert_ok+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434 cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h. */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 #include <assert.h>
14441 #include <stdio.h>
14442 int
14443 main ()
14444 {
14445
14446 /* check for requoting problems */
14447 static int a, b, c, d;
14448 static char *s;
14449 assert (!strcmp(s, "foo bar baz quux"));
14450 /* check for newline handling */
14451 assert (a == b
14452 || c == d);
14453
14454 ;
14455 return 0;
14456 }
14457 _ACEOF
14458 rm -f conftest.$ac_objext conftest$ac_exeext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14460 (eval $ac_link) 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try='test -z "$ac_c_werror_flag"
14468 || test ! -s conftest.err'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; } &&
14474 { ac_try='test -s conftest$ac_exeext'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14480 gas_cv_assert_ok=yes
14481 else
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14484
14485 gas_cv_assert_ok=no
14486 fi
14487 rm -f conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14489 fi
14490 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
14491 echo "${ECHO_T}$gas_cv_assert_ok" >&6
14492 test $gas_cv_assert_ok = yes ||
14493 cat >>confdefs.h <<\_ACEOF
14494 #define BROKEN_ASSERT 1
14495 _ACEOF
14496
14497
14498
14499 # On some systems, the system header files may not declare malloc, realloc,
14500 # and free. There are places where gas needs these functions to have been
14501 # declared -- such as when taking their addresses.
14502 gas_test_headers="
14503 #ifdef HAVE_MEMORY_H
14504 #include <memory.h>
14505 #endif
14506 #ifdef HAVE_STRING_H
14507 #include <string.h>
14508 #else
14509 #ifdef HAVE_STRINGS_H
14510 #include <strings.h>
14511 #endif
14512 #endif
14513 #ifdef HAVE_STDLIB_H
14514 #include <stdlib.h>
14515 #endif
14516 #ifdef HAVE_UNISTD_H
14517 #include <unistd.h>
14518 #endif
14519 "
14520
14521 # Does errno.h declare errno, or do we have to add a separate declaration
14522 # for it?
14523
14524 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
14525 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
14526 if test "${gas_cv_decl_needed_errno+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529 cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h. */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535
14536 #ifdef HAVE_ERRNO_H
14537 #include <errno.h>
14538 #endif
14539
14540 int
14541 main ()
14542 {
14543
14544 typedef int f;
14545 f x;
14546 x = (f) errno;
14547
14548 ;
14549 return 0;
14550 }
14551 _ACEOF
14552 rm -f conftest.$ac_objext conftest$ac_exeext
14553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14554 (eval $ac_link) 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try='test -z "$ac_c_werror_flag"
14562 || test ! -s conftest.err'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest$ac_exeext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 gas_cv_decl_needed_errno=no
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14578
14579 gas_cv_decl_needed_errno=yes
14580 fi
14581 rm -f conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 fi
14584 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
14585 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
14586 if test $gas_cv_decl_needed_errno = yes; then
14587
14588 cat >>confdefs.h <<\_ACEOF
14589 #define NEED_DECLARATION_ERRNO 1
14590 _ACEOF
14591
14592 fi
14593
14594
14595 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
14596 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
14597 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h. */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 #include <unistd.h>
14607 int
14608 main ()
14609 {
14610 extern int getopt (int, char *const*, const char *);
14611 ;
14612 return 0;
14613 }
14614 _ACEOF
14615 rm -f conftest.$ac_objext
14616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14617 (eval $ac_compile) 2>conftest.er1
14618 ac_status=$?
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -z "$ac_c_werror_flag"
14625 || test ! -s conftest.err'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest.$ac_objext'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 gas_cv_decl_getopt_unistd_h=yes
14638 else
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642 gas_cv_decl_getopt_unistd_h=no
14643 fi
14644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14645 fi
14646
14647 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
14648 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
14649 if test $gas_cv_decl_getopt_unistd_h = yes; then
14650
14651 cat >>confdefs.h <<\_ACEOF
14652 #define HAVE_DECL_GETOPT 1
14653 _ACEOF
14654
14655 fi
14656
14657
14658 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
14659 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
14660 if test "${gas_cv_decl_needed_environ+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 else
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 $gas_test_headers
14670 int
14671 main ()
14672 {
14673
14674 typedef char **f;
14675 f x;
14676 x = (f) environ;
14677
14678 ;
14679 return 0;
14680 }
14681 _ACEOF
14682 rm -f conftest.$ac_objext conftest$ac_exeext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14684 (eval $ac_link) 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest$ac_exeext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 gas_cv_decl_needed_environ=no
14705 else
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 gas_cv_decl_needed_environ=yes
14710 fi
14711 rm -f conftest.err conftest.$ac_objext \
14712 conftest$ac_exeext conftest.$ac_ext
14713 fi
14714 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
14715 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
14716 if test $gas_cv_decl_needed_environ = yes; then
14717
14718 cat >>confdefs.h <<\_ACEOF
14719 #define NEED_DECLARATION_ENVIRON 1
14720 _ACEOF
14721
14722 fi
14723
14724
14725 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
14726 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
14727 if test "${gas_cv_decl_needed_ffs+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730 cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h. */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 $gas_test_headers
14737 int
14738 main ()
14739 {
14740
14741 typedef int (*f)(int);
14742 f x;
14743 x = (f) ffs;
14744
14745 ;
14746 return 0;
14747 }
14748 _ACEOF
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14751 (eval $ac_link) 2>conftest.er1
14752 ac_status=$?
14753 grep -v '^ *+' conftest.er1 >conftest.err
14754 rm -f conftest.er1
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -z "$ac_c_werror_flag"
14759 || test ! -s conftest.err'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14762 ac_status=$?
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; } &&
14765 { ac_try='test -s conftest$ac_exeext'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14771 gas_cv_decl_needed_ffs=no
14772 else
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 gas_cv_decl_needed_ffs=yes
14777 fi
14778 rm -f conftest.err conftest.$ac_objext \
14779 conftest$ac_exeext conftest.$ac_ext
14780 fi
14781 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
14782 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
14783 if test $gas_cv_decl_needed_ffs = yes; then
14784
14785 cat >>confdefs.h <<\_ACEOF
14786 #define NEED_DECLARATION_FFS 1
14787 _ACEOF
14788
14789 fi
14790
14791
14792 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
14793 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
14794 if test "${gas_cv_decl_needed_free+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797 cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h. */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 $gas_test_headers
14804 int
14805 main ()
14806 {
14807
14808 typedef void (*f)();
14809 f x;
14810 x = (f) free;
14811
14812 ;
14813 return 0;
14814 }
14815 _ACEOF
14816 rm -f conftest.$ac_objext conftest$ac_exeext
14817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14818 (eval $ac_link) 2>conftest.er1
14819 ac_status=$?
14820 grep -v '^ *+' conftest.er1 >conftest.err
14821 rm -f conftest.er1
14822 cat conftest.err >&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -z "$ac_c_werror_flag"
14826 || test ! -s conftest.err'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } &&
14832 { ac_try='test -s conftest$ac_exeext'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14835 ac_status=$?
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }; then
14838 gas_cv_decl_needed_free=no
14839 else
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14842
14843 gas_cv_decl_needed_free=yes
14844 fi
14845 rm -f conftest.err conftest.$ac_objext \
14846 conftest$ac_exeext conftest.$ac_ext
14847 fi
14848 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
14849 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
14850 if test $gas_cv_decl_needed_free = yes; then
14851
14852 cat >>confdefs.h <<\_ACEOF
14853 #define NEED_DECLARATION_FREE 1
14854 _ACEOF
14855
14856 fi
14857
14858
14859 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
14860 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
14861 if test "${gas_cv_decl_needed_malloc+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864 cat >conftest.$ac_ext <<_ACEOF
14865 /* confdefs.h. */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 $gas_test_headers
14871 int
14872 main ()
14873 {
14874
14875 typedef char *(*f)();
14876 f x;
14877 x = (f) malloc;
14878
14879 ;
14880 return 0;
14881 }
14882 _ACEOF
14883 rm -f conftest.$ac_objext conftest$ac_exeext
14884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14885 (eval $ac_link) 2>conftest.er1
14886 ac_status=$?
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -z "$ac_c_werror_flag"
14893 || test ! -s conftest.err'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; } &&
14899 { ac_try='test -s conftest$ac_exeext'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }; then
14905 gas_cv_decl_needed_malloc=no
14906 else
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910 gas_cv_decl_needed_malloc=yes
14911 fi
14912 rm -f conftest.err conftest.$ac_objext \
14913 conftest$ac_exeext conftest.$ac_ext
14914 fi
14915 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
14916 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
14917 if test $gas_cv_decl_needed_malloc = yes; then
14918
14919 cat >>confdefs.h <<\_ACEOF
14920 #define NEED_DECLARATION_MALLOC 1
14921 _ACEOF
14922
14923 fi
14924
14925
14926 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
14927 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
14928 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h. */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 $gas_test_headers
14938 int
14939 main ()
14940 {
14941
14942 typedef char *(*f)();
14943 f x;
14944 x = (f) sbrk;
14945
14946 ;
14947 return 0;
14948 }
14949 _ACEOF
14950 rm -f conftest.$ac_objext conftest$ac_exeext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14952 (eval $ac_link) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag"
14960 || test ! -s conftest.err'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; } &&
14966 { ac_try='test -s conftest$ac_exeext'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 gas_cv_decl_needed_sbrk=no
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14976
14977 gas_cv_decl_needed_sbrk=yes
14978 fi
14979 rm -f conftest.err conftest.$ac_objext \
14980 conftest$ac_exeext conftest.$ac_ext
14981 fi
14982 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
14983 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
14984 if test $gas_cv_decl_needed_sbrk = yes; then
14985
14986 cat >>confdefs.h <<\_ACEOF
14987 #define NEED_DECLARATION_SBRK 1
14988 _ACEOF
14989
14990 fi
14991
14992
14993 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
14994 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
14995 if test "${gas_cv_decl_needed_strstr+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998 cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h. */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15004 $gas_test_headers
15005 int
15006 main ()
15007 {
15008
15009 typedef char *(*f)();
15010 f x;
15011 x = (f) strstr;
15012
15013 ;
15014 return 0;
15015 }
15016 _ACEOF
15017 rm -f conftest.$ac_objext conftest$ac_exeext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15019 (eval $ac_link) 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_c_werror_flag"
15027 || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 gas_cv_decl_needed_strstr=no
15040 else
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15043
15044 gas_cv_decl_needed_strstr=yes
15045 fi
15046 rm -f conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15048 fi
15049 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
15050 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
15051 if test $gas_cv_decl_needed_strstr = yes; then
15052
15053 cat >>confdefs.h <<\_ACEOF
15054 #define NEED_DECLARATION_STRSTR 1
15055 _ACEOF
15056
15057 fi
15058
15059
15060 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15061 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
15062 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15064 else
15065 cat >conftest.$ac_ext <<_ACEOF
15066 /* confdefs.h. */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 $ac_includes_default
15072 int
15073 main ()
15074 {
15075 #ifndef vsnprintf
15076 char *p = (char *) vsnprintf;
15077 #endif
15078
15079 ;
15080 return 0;
15081 }
15082 _ACEOF
15083 rm -f conftest.$ac_objext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085 (eval $ac_compile) 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag"
15093 || test ! -s conftest.err'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } &&
15099 { ac_try='test -s conftest.$ac_objext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_have_decl_vsnprintf=yes
15106 else
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ac_cv_have_decl_vsnprintf=no
15111 fi
15112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15113 fi
15114 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15115 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
15116 if test $ac_cv_have_decl_vsnprintf = yes; then
15117
15118 cat >>confdefs.h <<_ACEOF
15119 #define HAVE_DECL_VSNPRINTF 1
15120 _ACEOF
15121
15122
15123 else
15124 cat >>confdefs.h <<_ACEOF
15125 #define HAVE_DECL_VSNPRINTF 0
15126 _ACEOF
15127
15128
15129 fi
15130
15131
15132
15133
15134 case "${host}" in
15135 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15136
15137 cat >>confdefs.h <<\_ACEOF
15138 #define USE_BINARY_FOPEN 1
15139 _ACEOF
15140 ;;
15141 esac
15142
15143
15144
15145
15146
15147
15148
15149 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15150
15151 ac_config_commands="$ac_config_commands default"
15152
15153
15154 cat >confcache <<\_ACEOF
15155 # This file is a shell script that caches the results of configure
15156 # tests run on this system so they can be shared between configure
15157 # scripts and configure runs, see configure's option --config-cache.
15158 # It is not useful on other systems. If it contains results you don't
15159 # want to keep, you may remove or edit it.
15160 #
15161 # config.status only pays attention to the cache file if you give it
15162 # the --recheck option to rerun configure.
15163 #
15164 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15165 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15166 # following values.
15167
15168 _ACEOF
15169
15170 # The following way of writing the cache mishandles newlines in values,
15171 # but we know of no workaround that is simple, portable, and efficient.
15172 # So, don't put newlines in cache variables' values.
15173 # Ultrix sh set writes to stderr and can't be redirected directly,
15174 # and sets the high bit in the cache file unless we assign to the vars.
15175 {
15176 (set) 2>&1 |
15177 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15178 *ac_space=\ *)
15179 # `set' does not quote correctly, so add quotes (double-quote
15180 # substitution turns \\\\ into \\, and sed turns \\ into \).
15181 sed -n \
15182 "s/'/'\\\\''/g;
15183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15184 ;;
15185 *)
15186 # `set' quotes correctly as required by POSIX, so do not add quotes.
15187 sed -n \
15188 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15189 ;;
15190 esac;
15191 } |
15192 sed '
15193 t clear
15194 : clear
15195 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15196 t end
15197 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15198 : end' >>confcache
15199 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15200 if test -w $cache_file; then
15201 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15202 cat confcache >$cache_file
15203 else
15204 echo "not updating unwritable cache $cache_file"
15205 fi
15206 fi
15207 rm -f confcache
15208
15209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15210 # Let make expand exec_prefix.
15211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15212
15213 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15214 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15215 # trailing colons and then remove the whole line if VPATH becomes empty
15216 # (actually we leave an empty line to preserve line numbers).
15217 if test "x$srcdir" = x.; then
15218 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15219 s/:*\$(srcdir):*/:/;
15220 s/:*\${srcdir}:*/:/;
15221 s/:*@srcdir@:*/:/;
15222 s/^\([^=]*=[ ]*\):*/\1/;
15223 s/:*$//;
15224 s/^[^=]*=[ ]*$//;
15225 }'
15226 fi
15227
15228 DEFS=-DHAVE_CONFIG_H
15229
15230 ac_libobjs=
15231 ac_ltlibobjs=
15232 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15233 # 1. Remove the extension, and $U if already installed.
15234 ac_i=`echo "$ac_i" |
15235 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15236 # 2. Add them.
15237 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15238 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15239 done
15240 LIBOBJS=$ac_libobjs
15241
15242 LTLIBOBJS=$ac_ltlibobjs
15243
15244
15245 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15246 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15247 Usually this means the macro was only invoked conditionally." >&5
15248 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15249 Usually this means the macro was only invoked conditionally." >&2;}
15250 { (exit 1); exit 1; }; }
15251 fi
15252 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15253 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15254 Usually this means the macro was only invoked conditionally." >&5
15255 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15256 Usually this means the macro was only invoked conditionally." >&2;}
15257 { (exit 1); exit 1; }; }
15258 fi
15259 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15260 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15261 Usually this means the macro was only invoked conditionally." >&5
15262 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15263 Usually this means the macro was only invoked conditionally." >&2;}
15264 { (exit 1); exit 1; }; }
15265 fi
15266 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15267 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15268 Usually this means the macro was only invoked conditionally." >&5
15269 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15270 Usually this means the macro was only invoked conditionally." >&2;}
15271 { (exit 1); exit 1; }; }
15272 fi
15273
15274 : ${CONFIG_STATUS=./config.status}
15275 ac_clean_files_save=$ac_clean_files
15276 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15277 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15278 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15279 cat >$CONFIG_STATUS <<_ACEOF
15280 #! $SHELL
15281 # Generated by $as_me.
15282 # Run this file to recreate the current configuration.
15283 # Compiler output produced by configure, useful for debugging
15284 # configure, is in config.log if it exists.
15285
15286 debug=false
15287 ac_cs_recheck=false
15288 ac_cs_silent=false
15289 SHELL=\${CONFIG_SHELL-$SHELL}
15290 _ACEOF
15291
15292 cat >>$CONFIG_STATUS <<\_ACEOF
15293 ## --------------------- ##
15294 ## M4sh Initialization. ##
15295 ## --------------------- ##
15296
15297 # Be Bourne compatible
15298 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15299 emulate sh
15300 NULLCMD=:
15301 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15302 # is contrary to our usage. Disable this feature.
15303 alias -g '${1+"$@"}'='"$@"'
15304 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15305 set -o posix
15306 fi
15307 DUALCASE=1; export DUALCASE # for MKS sh
15308
15309 # Support unset when possible.
15310 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15311 as_unset=unset
15312 else
15313 as_unset=false
15314 fi
15315
15316
15317 # Work around bugs in pre-3.0 UWIN ksh.
15318 $as_unset ENV MAIL MAILPATH
15319 PS1='$ '
15320 PS2='> '
15321 PS4='+ '
15322
15323 # NLS nuisances.
15324 for as_var in \
15325 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15326 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15327 LC_TELEPHONE LC_TIME
15328 do
15329 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15330 eval $as_var=C; export $as_var
15331 else
15332 $as_unset $as_var
15333 fi
15334 done
15335
15336 # Required to use basename.
15337 if expr a : '\(a\)' >/dev/null 2>&1; then
15338 as_expr=expr
15339 else
15340 as_expr=false
15341 fi
15342
15343 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15344 as_basename=basename
15345 else
15346 as_basename=false
15347 fi
15348
15349
15350 # Name of the executable.
15351 as_me=`$as_basename "$0" ||
15352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15353 X"$0" : 'X\(//\)$' \| \
15354 X"$0" : 'X\(/\)$' \| \
15355 . : '\(.\)' 2>/dev/null ||
15356 echo X/"$0" |
15357 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15358 /^X\/\(\/\/\)$/{ s//\1/; q; }
15359 /^X\/\(\/\).*/{ s//\1/; q; }
15360 s/.*/./; q'`
15361
15362
15363 # PATH needs CR, and LINENO needs CR and PATH.
15364 # Avoid depending upon Character Ranges.
15365 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15366 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15367 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15368 as_cr_digits='0123456789'
15369 as_cr_alnum=$as_cr_Letters$as_cr_digits
15370
15371 # The user is always right.
15372 if test "${PATH_SEPARATOR+set}" != set; then
15373 echo "#! /bin/sh" >conf$$.sh
15374 echo "exit 0" >>conf$$.sh
15375 chmod +x conf$$.sh
15376 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15377 PATH_SEPARATOR=';'
15378 else
15379 PATH_SEPARATOR=:
15380 fi
15381 rm -f conf$$.sh
15382 fi
15383
15384
15385 as_lineno_1=$LINENO
15386 as_lineno_2=$LINENO
15387 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15388 test "x$as_lineno_1" != "x$as_lineno_2" &&
15389 test "x$as_lineno_3" = "x$as_lineno_2" || {
15390 # Find who we are. Look in the path if we contain no path at all
15391 # relative or not.
15392 case $0 in
15393 *[\\/]* ) as_myself=$0 ;;
15394 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15395 for as_dir in $PATH
15396 do
15397 IFS=$as_save_IFS
15398 test -z "$as_dir" && as_dir=.
15399 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15400 done
15401
15402 ;;
15403 esac
15404 # We did not find ourselves, most probably we were run as `sh COMMAND'
15405 # in which case we are not to be found in the path.
15406 if test "x$as_myself" = x; then
15407 as_myself=$0
15408 fi
15409 if test ! -f "$as_myself"; then
15410 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15411 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15412 { (exit 1); exit 1; }; }
15413 fi
15414 case $CONFIG_SHELL in
15415 '')
15416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15417 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15418 do
15419 IFS=$as_save_IFS
15420 test -z "$as_dir" && as_dir=.
15421 for as_base in sh bash ksh sh5; do
15422 case $as_dir in
15423 /*)
15424 if ("$as_dir/$as_base" -c '
15425 as_lineno_1=$LINENO
15426 as_lineno_2=$LINENO
15427 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15428 test "x$as_lineno_1" != "x$as_lineno_2" &&
15429 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15430 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15431 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15432 CONFIG_SHELL=$as_dir/$as_base
15433 export CONFIG_SHELL
15434 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15435 fi;;
15436 esac
15437 done
15438 done
15439 ;;
15440 esac
15441
15442 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15443 # uniformly replaced by the line number. The first 'sed' inserts a
15444 # line-number line before each line; the second 'sed' does the real
15445 # work. The second script uses 'N' to pair each line-number line
15446 # with the numbered line, and appends trailing '-' during
15447 # substitution so that $LINENO is not a special case at line end.
15448 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15449 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15450 sed '=' <$as_myself |
15451 sed '
15452 N
15453 s,$,-,
15454 : loop
15455 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15456 t loop
15457 s,-$,,
15458 s,^['$as_cr_digits']*\n,,
15459 ' >$as_me.lineno &&
15460 chmod +x $as_me.lineno ||
15461 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15462 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15463 { (exit 1); exit 1; }; }
15464
15465 # Don't try to exec as it changes $[0], causing all sort of problems
15466 # (the dirname of $[0] is not the place where we might find the
15467 # original and so on. Autoconf is especially sensible to this).
15468 . ./$as_me.lineno
15469 # Exit status is that of the last command.
15470 exit
15471 }
15472
15473
15474 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15475 *c*,-n*) ECHO_N= ECHO_C='
15476 ' ECHO_T=' ' ;;
15477 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15478 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15479 esac
15480
15481 if expr a : '\(a\)' >/dev/null 2>&1; then
15482 as_expr=expr
15483 else
15484 as_expr=false
15485 fi
15486
15487 rm -f conf$$ conf$$.exe conf$$.file
15488 echo >conf$$.file
15489 if ln -s conf$$.file conf$$ 2>/dev/null; then
15490 # We could just check for DJGPP; but this test a) works b) is more generic
15491 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15492 if test -f conf$$.exe; then
15493 # Don't use ln at all; we don't have any links
15494 as_ln_s='cp -p'
15495 else
15496 as_ln_s='ln -s'
15497 fi
15498 elif ln conf$$.file conf$$ 2>/dev/null; then
15499 as_ln_s=ln
15500 else
15501 as_ln_s='cp -p'
15502 fi
15503 rm -f conf$$ conf$$.exe conf$$.file
15504
15505 if mkdir -p . 2>/dev/null; then
15506 as_mkdir_p=:
15507 else
15508 test -d ./-p && rmdir ./-p
15509 as_mkdir_p=false
15510 fi
15511
15512 as_executable_p="test -f"
15513
15514 # Sed expression to map a string onto a valid CPP name.
15515 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15516
15517 # Sed expression to map a string onto a valid variable name.
15518 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15519
15520
15521 # IFS
15522 # We need space, tab and new line, in precisely that order.
15523 as_nl='
15524 '
15525 IFS=" $as_nl"
15526
15527 # CDPATH.
15528 $as_unset CDPATH
15529
15530 exec 6>&1
15531
15532 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15533 # report actual input values of CONFIG_FILES etc. instead of their
15534 # values after options handling. Logging --version etc. is OK.
15535 exec 5>>config.log
15536 {
15537 echo
15538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15539 ## Running $as_me. ##
15540 _ASBOX
15541 } >&5
15542 cat >&5 <<_CSEOF
15543
15544 This file was extended by $as_me, which was
15545 generated by GNU Autoconf 2.59. Invocation command line was
15546
15547 CONFIG_FILES = $CONFIG_FILES
15548 CONFIG_HEADERS = $CONFIG_HEADERS
15549 CONFIG_LINKS = $CONFIG_LINKS
15550 CONFIG_COMMANDS = $CONFIG_COMMANDS
15551 $ $0 $@
15552
15553 _CSEOF
15554 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15555 echo >&5
15556 _ACEOF
15557
15558 # Files that config.status was made for.
15559 if test -n "$ac_config_files"; then
15560 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15561 fi
15562
15563 if test -n "$ac_config_headers"; then
15564 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15565 fi
15566
15567 if test -n "$ac_config_links"; then
15568 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15569 fi
15570
15571 if test -n "$ac_config_commands"; then
15572 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15573 fi
15574
15575 cat >>$CONFIG_STATUS <<\_ACEOF
15576
15577 ac_cs_usage="\
15578 \`$as_me' instantiates files from templates according to the
15579 current configuration.
15580
15581 Usage: $0 [OPTIONS] [FILE]...
15582
15583 -h, --help print this help, then exit
15584 -V, --version print version number, then exit
15585 -q, --quiet do not print progress messages
15586 -d, --debug don't remove temporary files
15587 --recheck update $as_me by reconfiguring in the same conditions
15588 --file=FILE[:TEMPLATE]
15589 instantiate the configuration file FILE
15590 --header=FILE[:TEMPLATE]
15591 instantiate the configuration header FILE
15592
15593 Configuration files:
15594 $config_files
15595
15596 Configuration headers:
15597 $config_headers
15598
15599 Configuration commands:
15600 $config_commands
15601
15602 Report bugs to <bug-autoconf@gnu.org>."
15603 _ACEOF
15604
15605 cat >>$CONFIG_STATUS <<_ACEOF
15606 ac_cs_version="\\
15607 config.status
15608 configured by $0, generated by GNU Autoconf 2.59,
15609 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15610
15611 Copyright (C) 2003 Free Software Foundation, Inc.
15612 This config.status script is free software; the Free Software Foundation
15613 gives unlimited permission to copy, distribute and modify it."
15614 srcdir=$srcdir
15615 INSTALL="$INSTALL"
15616 _ACEOF
15617
15618 cat >>$CONFIG_STATUS <<\_ACEOF
15619 # If no file are specified by the user, then we need to provide default
15620 # value. By we need to know if files were specified by the user.
15621 ac_need_defaults=:
15622 while test $# != 0
15623 do
15624 case $1 in
15625 --*=*)
15626 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15627 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15628 ac_shift=:
15629 ;;
15630 -*)
15631 ac_option=$1
15632 ac_optarg=$2
15633 ac_shift=shift
15634 ;;
15635 *) # This is not an option, so the user has probably given explicit
15636 # arguments.
15637 ac_option=$1
15638 ac_need_defaults=false;;
15639 esac
15640
15641 case $ac_option in
15642 # Handling of the options.
15643 _ACEOF
15644 cat >>$CONFIG_STATUS <<\_ACEOF
15645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15646 ac_cs_recheck=: ;;
15647 --version | --vers* | -V )
15648 echo "$ac_cs_version"; exit 0 ;;
15649 --he | --h)
15650 # Conflict between --help and --header
15651 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15652 Try \`$0 --help' for more information." >&5
15653 echo "$as_me: error: ambiguous option: $1
15654 Try \`$0 --help' for more information." >&2;}
15655 { (exit 1); exit 1; }; };;
15656 --help | --hel | -h )
15657 echo "$ac_cs_usage"; exit 0 ;;
15658 --debug | --d* | -d )
15659 debug=: ;;
15660 --file | --fil | --fi | --f )
15661 $ac_shift
15662 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15663 ac_need_defaults=false;;
15664 --header | --heade | --head | --hea )
15665 $ac_shift
15666 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15667 ac_need_defaults=false;;
15668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15669 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15670 ac_cs_silent=: ;;
15671
15672 # This is an error.
15673 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15674 Try \`$0 --help' for more information." >&5
15675 echo "$as_me: error: unrecognized option: $1
15676 Try \`$0 --help' for more information." >&2;}
15677 { (exit 1); exit 1; }; } ;;
15678
15679 *) ac_config_targets="$ac_config_targets $1" ;;
15680
15681 esac
15682 shift
15683 done
15684
15685 ac_configure_extra_args=
15686
15687 if $ac_cs_silent; then
15688 exec 6>/dev/null
15689 ac_configure_extra_args="$ac_configure_extra_args --silent"
15690 fi
15691
15692 _ACEOF
15693 cat >>$CONFIG_STATUS <<_ACEOF
15694 if \$ac_cs_recheck; then
15695 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15696 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15697 fi
15698
15699 _ACEOF
15700
15701 cat >>$CONFIG_STATUS <<_ACEOF
15702 #
15703 # INIT-COMMANDS section.
15704 #
15705
15706 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15707
15708
15709 # The HP-UX ksh and POSIX shell print the target directory to stdout
15710 # if CDPATH is set.
15711 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15712
15713 sed_quote_subst='$sed_quote_subst'
15714 double_quote_subst='$double_quote_subst'
15715 delay_variable_subst='$delay_variable_subst'
15716 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15717 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15718 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15719 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15720 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15721 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15722 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15723 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15724 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15725 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15726 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15727 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15728 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15729 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15730 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15731 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15732 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15733 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15734 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15735 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15736 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15737 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15738 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15739 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15740 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15741 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15742 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15743 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15744 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15745 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15746 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15747 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15748 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15749 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15750 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15751 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15752 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15753 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15754 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15755 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15756 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15757 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15758 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15759 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15760 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"`'
15761 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15762 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15763 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15764 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15765 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15766 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15767 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15768 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15769 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15770 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15771 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15772 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15773 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15774 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15775 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15776 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15777 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15778 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15779 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15780 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15781 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15782 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15783 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15784 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15785 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15786 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15787 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15788 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15789 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15790 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15791 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15792 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15793 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15794 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15795 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15796 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15797 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15798 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15799 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15800 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15801 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15802 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15803 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15804 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15805 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15806 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15807 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15808 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15809 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15810 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15811 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15812 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15813 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15814 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15815 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15816 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15817 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15818 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15819 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15820 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15821 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15822 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15823 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15824 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15825 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15826 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15827 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15828 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15829 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15830 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15831 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15832 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15833 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15834
15835 LTCC='$LTCC'
15836 LTCFLAGS='$LTCFLAGS'
15837 compiler='$compiler_DEFAULT'
15838
15839 # Quote evaled strings.
15840 for var in SED \
15841 GREP \
15842 EGREP \
15843 FGREP \
15844 LD \
15845 NM \
15846 LN_S \
15847 lt_SP2NL \
15848 lt_NL2SP \
15849 reload_flag \
15850 OBJDUMP \
15851 deplibs_check_method \
15852 file_magic_cmd \
15853 AR \
15854 AR_FLAGS \
15855 STRIP \
15856 RANLIB \
15857 CC \
15858 CFLAGS \
15859 compiler \
15860 lt_cv_sys_global_symbol_pipe \
15861 lt_cv_sys_global_symbol_to_cdecl \
15862 lt_cv_sys_global_symbol_to_c_name_address \
15863 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15864 SHELL \
15865 ECHO \
15866 lt_prog_compiler_no_builtin_flag \
15867 lt_prog_compiler_wl \
15868 lt_prog_compiler_pic \
15869 lt_prog_compiler_static \
15870 lt_cv_prog_compiler_c_o \
15871 need_locks \
15872 DSYMUTIL \
15873 NMEDIT \
15874 LIPO \
15875 OTOOL \
15876 OTOOL64 \
15877 shrext_cmds \
15878 export_dynamic_flag_spec \
15879 whole_archive_flag_spec \
15880 compiler_needs_object \
15881 with_gnu_ld \
15882 allow_undefined_flag \
15883 no_undefined_flag \
15884 hardcode_libdir_flag_spec \
15885 hardcode_libdir_flag_spec_ld \
15886 hardcode_libdir_separator \
15887 fix_srcfile_path \
15888 exclude_expsyms \
15889 include_expsyms \
15890 file_list_spec \
15891 variables_saved_for_relink \
15892 libname_spec \
15893 library_names_spec \
15894 soname_spec \
15895 finish_eval \
15896 old_striplib \
15897 striplib; do
15898 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15899 *[\\\\\\\`\\"\\\$]*)
15900 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15901 ;;
15902 *)
15903 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15904 ;;
15905 esac
15906 done
15907
15908 # Double-quote double-evaled strings.
15909 for var in reload_cmds \
15910 old_postinstall_cmds \
15911 old_postuninstall_cmds \
15912 old_archive_cmds \
15913 extract_expsyms_cmds \
15914 old_archive_from_new_cmds \
15915 old_archive_from_expsyms_cmds \
15916 archive_cmds \
15917 archive_expsym_cmds \
15918 module_cmds \
15919 module_expsym_cmds \
15920 export_symbols_cmds \
15921 prelink_cmds \
15922 postinstall_cmds \
15923 postuninstall_cmds \
15924 finish_cmds \
15925 sys_lib_search_path_spec \
15926 sys_lib_dlsearch_path_spec; do
15927 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15928 *[\\\\\\\`\\"\\\$]*)
15929 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15930 ;;
15931 *)
15932 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15933 ;;
15934 esac
15935 done
15936
15937 # Fix-up fallback echo if it was mangled by the above quoting rules.
15938 case \$lt_ECHO in
15939 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15940 ;;
15941 esac
15942
15943 ac_aux_dir='$ac_aux_dir'
15944 xsi_shell='$xsi_shell'
15945 lt_shell_append='$lt_shell_append'
15946
15947 # See if we are running on zsh, and set the options which allow our
15948 # commands through without removal of \ escapes INIT.
15949 if test -n "\${ZSH_VERSION+set}" ; then
15950 setopt NO_GLOB_SUBST
15951 fi
15952
15953
15954 PACKAGE='$PACKAGE'
15955 VERSION='$VERSION'
15956 TIMESTAMP='$TIMESTAMP'
15957 RM='$RM'
15958 ofile='$ofile'
15959
15960
15961
15962 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15963 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15964 # from automake.
15965 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15966 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15967 LINGUAS="${LINGUAS-%UNSET%}"
15968
15969 target_cpu_type=${target_cpu_type}
15970 cgen_cpu_prefix=${cgen_cpu_prefix}
15971 obj_format=${obj_format}
15972 te_file=${te_file}
15973
15974 _ACEOF
15975
15976
15977
15978 cat >>$CONFIG_STATUS <<\_ACEOF
15979 for ac_config_target in $ac_config_targets
15980 do
15981 case "$ac_config_target" in
15982 # Handling of arguments.
15983 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15984 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15985 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15986 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15987 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15988 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15989 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15990 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15991 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15992 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15993 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15994 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15995 { (exit 1); exit 1; }; };;
15996 esac
15997 done
15998
15999 # If the user did not use the arguments to specify the items to instantiate,
16000 # then the envvar interface is used. Set only those that are not.
16001 # We use the long form for the default assignment because of an extremely
16002 # bizarre bug on SunOS 4.1.3.
16003 if $ac_need_defaults; then
16004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16007 fi
16008
16009 # Have a temporary directory for convenience. Make it in the build tree
16010 # simply because there is no reason to put it here, and in addition,
16011 # creating and moving files from /tmp can sometimes cause problems.
16012 # Create a temporary directory, and hook for its removal unless debugging.
16013 $debug ||
16014 {
16015 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16016 trap '{ (exit 1); exit 1; }' 1 2 13 15
16017 }
16018
16019 # Create a (secure) tmp directory for tmp files.
16020
16021 {
16022 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16023 test -n "$tmp" && test -d "$tmp"
16024 } ||
16025 {
16026 tmp=./confstat$$-$RANDOM
16027 (umask 077 && mkdir $tmp)
16028 } ||
16029 {
16030 echo "$me: cannot create a temporary directory in ." >&2
16031 { (exit 1); exit 1; }
16032 }
16033
16034 _ACEOF
16035
16036 cat >>$CONFIG_STATUS <<_ACEOF
16037
16038 #
16039 # CONFIG_FILES section.
16040 #
16041
16042 # No need to generate the scripts if there are no CONFIG_FILES.
16043 # This happens for instance when ./config.status config.h
16044 if test -n "\$CONFIG_FILES"; then
16045 # Protect against being on the right side of a sed subst in config.status.
16046 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16047 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16048 s,@SHELL@,$SHELL,;t t
16049 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16050 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16051 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16052 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16053 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16054 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16055 s,@exec_prefix@,$exec_prefix,;t t
16056 s,@prefix@,$prefix,;t t
16057 s,@program_transform_name@,$program_transform_name,;t t
16058 s,@bindir@,$bindir,;t t
16059 s,@sbindir@,$sbindir,;t t
16060 s,@libexecdir@,$libexecdir,;t t
16061 s,@datadir@,$datadir,;t t
16062 s,@sysconfdir@,$sysconfdir,;t t
16063 s,@sharedstatedir@,$sharedstatedir,;t t
16064 s,@localstatedir@,$localstatedir,;t t
16065 s,@libdir@,$libdir,;t t
16066 s,@includedir@,$includedir,;t t
16067 s,@oldincludedir@,$oldincludedir,;t t
16068 s,@infodir@,$infodir,;t t
16069 s,@mandir@,$mandir,;t t
16070 s,@build_alias@,$build_alias,;t t
16071 s,@host_alias@,$host_alias,;t t
16072 s,@target_alias@,$target_alias,;t t
16073 s,@DEFS@,$DEFS,;t t
16074 s,@ECHO_C@,$ECHO_C,;t t
16075 s,@ECHO_N@,$ECHO_N,;t t
16076 s,@ECHO_T@,$ECHO_T,;t t
16077 s,@LIBS@,$LIBS,;t t
16078 s,@build@,$build,;t t
16079 s,@build_cpu@,$build_cpu,;t t
16080 s,@build_vendor@,$build_vendor,;t t
16081 s,@build_os@,$build_os,;t t
16082 s,@host@,$host,;t t
16083 s,@host_cpu@,$host_cpu,;t t
16084 s,@host_vendor@,$host_vendor,;t t
16085 s,@host_os@,$host_os,;t t
16086 s,@target@,$target,;t t
16087 s,@target_cpu@,$target_cpu,;t t
16088 s,@target_vendor@,$target_vendor,;t t
16089 s,@target_os@,$target_os,;t t
16090 s,@CC@,$CC,;t t
16091 s,@CFLAGS@,$CFLAGS,;t t
16092 s,@LDFLAGS@,$LDFLAGS,;t t
16093 s,@CPPFLAGS@,$CPPFLAGS,;t t
16094 s,@ac_ct_CC@,$ac_ct_CC,;t t
16095 s,@EXEEXT@,$EXEEXT,;t t
16096 s,@OBJEXT@,$OBJEXT,;t t
16097 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16098 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16099 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16100 s,@CYGPATH_W@,$CYGPATH_W,;t t
16101 s,@PACKAGE@,$PACKAGE,;t t
16102 s,@VERSION@,$VERSION,;t t
16103 s,@ACLOCAL@,$ACLOCAL,;t t
16104 s,@AUTOCONF@,$AUTOCONF,;t t
16105 s,@AUTOMAKE@,$AUTOMAKE,;t t
16106 s,@AUTOHEADER@,$AUTOHEADER,;t t
16107 s,@MAKEINFO@,$MAKEINFO,;t t
16108 s,@install_sh@,$install_sh,;t t
16109 s,@STRIP@,$STRIP,;t t
16110 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16111 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16112 s,@mkdir_p@,$mkdir_p,;t t
16113 s,@AWK@,$AWK,;t t
16114 s,@SET_MAKE@,$SET_MAKE,;t t
16115 s,@am__leading_dot@,$am__leading_dot,;t t
16116 s,@AMTAR@,$AMTAR,;t t
16117 s,@am__tar@,$am__tar,;t t
16118 s,@am__untar@,$am__untar,;t t
16119 s,@DEPDIR@,$DEPDIR,;t t
16120 s,@am__include@,$am__include,;t t
16121 s,@am__quote@,$am__quote,;t t
16122 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16123 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16124 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16125 s,@CCDEPMODE@,$CCDEPMODE,;t t
16126 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16127 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16128 s,@CPP@,$CPP,;t t
16129 s,@EGREP@,$EGREP,;t t
16130 s,@LIBTOOL@,$LIBTOOL,;t t
16131 s,@SED@,$SED,;t t
16132 s,@FGREP@,$FGREP,;t t
16133 s,@GREP@,$GREP,;t t
16134 s,@LD@,$LD,;t t
16135 s,@DUMPBIN@,$DUMPBIN,;t t
16136 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
16137 s,@NM@,$NM,;t t
16138 s,@LN_S@,$LN_S,;t t
16139 s,@OBJDUMP@,$OBJDUMP,;t t
16140 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
16141 s,@AR@,$AR,;t t
16142 s,@ac_ct_AR@,$ac_ct_AR,;t t
16143 s,@RANLIB@,$RANLIB,;t t
16144 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16145 s,@lt_ECHO@,$lt_ECHO,;t t
16146 s,@DSYMUTIL@,$DSYMUTIL,;t t
16147 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
16148 s,@NMEDIT@,$NMEDIT,;t t
16149 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
16150 s,@LIPO@,$LIPO,;t t
16151 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
16152 s,@OTOOL@,$OTOOL,;t t
16153 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
16154 s,@OTOOL64@,$OTOOL64,;t t
16155 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
16156 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
16157 s,@NO_WERROR@,$NO_WERROR,;t t
16158 s,@GDBINIT@,$GDBINIT,;t t
16159 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
16160 s,@extra_objects@,$extra_objects,;t t
16161 s,@target_cpu_type@,$target_cpu_type,;t t
16162 s,@obj_format@,$obj_format,;t t
16163 s,@te_file@,$te_file,;t t
16164 s,@install_tooldir@,$install_tooldir,;t t
16165 s,@atof@,$atof,;t t
16166 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
16167 s,@YACC@,$YACC,;t t
16168 s,@LEX@,$LEX,;t t
16169 s,@LEXLIB@,$LEXLIB,;t t
16170 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16171 s,@USE_NLS@,$USE_NLS,;t t
16172 s,@LIBINTL@,$LIBINTL,;t t
16173 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16174 s,@INCINTL@,$INCINTL,;t t
16175 s,@XGETTEXT@,$XGETTEXT,;t t
16176 s,@GMSGFMT@,$GMSGFMT,;t t
16177 s,@POSUB@,$POSUB,;t t
16178 s,@CATALOGS@,$CATALOGS,;t t
16179 s,@DATADIRNAME@,$DATADIRNAME,;t t
16180 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16181 s,@GENCAT@,$GENCAT,;t t
16182 s,@CATOBJEXT@,$CATOBJEXT,;t t
16183 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16184 s,@MSGFMT@,$MSGFMT,;t t
16185 s,@MSGMERGE@,$MSGMERGE,;t t
16186 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16187 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16188 s,@MAINT@,$MAINT,;t t
16189 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
16190 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
16191 s,@ALLOCA@,$ALLOCA,;t t
16192 s,@LIBM@,$LIBM,;t t
16193 s,@datarootdir@,$datarootdir,;t t
16194 s,@docdir@,$docdir,;t t
16195 s,@htmldir@,$htmldir,;t t
16196 s,@LIBOBJS@,$LIBOBJS,;t t
16197 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16198 CEOF
16199
16200 _ACEOF
16201
16202 cat >>$CONFIG_STATUS <<\_ACEOF
16203 # Split the substitutions into bite-sized pieces for seds with
16204 # small command number limits, like on Digital OSF/1 and HP-UX.
16205 ac_max_sed_lines=48
16206 ac_sed_frag=1 # Number of current file.
16207 ac_beg=1 # First line for current file.
16208 ac_end=$ac_max_sed_lines # Line after last line for current file.
16209 ac_more_lines=:
16210 ac_sed_cmds=
16211 while $ac_more_lines; do
16212 if test $ac_beg -gt 1; then
16213 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16214 else
16215 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16216 fi
16217 if test ! -s $tmp/subs.frag; then
16218 ac_more_lines=false
16219 else
16220 # The purpose of the label and of the branching condition is to
16221 # speed up the sed processing (if there are no `@' at all, there
16222 # is no need to browse any of the substitutions).
16223 # These are the two extra sed commands mentioned above.
16224 (echo ':t
16225 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16226 if test -z "$ac_sed_cmds"; then
16227 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16228 else
16229 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16230 fi
16231 ac_sed_frag=`expr $ac_sed_frag + 1`
16232 ac_beg=$ac_end
16233 ac_end=`expr $ac_end + $ac_max_sed_lines`
16234 fi
16235 done
16236 if test -z "$ac_sed_cmds"; then
16237 ac_sed_cmds=cat
16238 fi
16239 fi # test -n "$CONFIG_FILES"
16240
16241 _ACEOF
16242 cat >>$CONFIG_STATUS <<\_ACEOF
16243 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16244 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16245 case $ac_file in
16246 - | *:- | *:-:* ) # input from stdin
16247 cat >$tmp/stdin
16248 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16249 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16250 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16251 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16252 * ) ac_file_in=$ac_file.in ;;
16253 esac
16254
16255 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16256 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16257 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16258 X"$ac_file" : 'X\(//\)[^/]' \| \
16259 X"$ac_file" : 'X\(//\)$' \| \
16260 X"$ac_file" : 'X\(/\)' \| \
16261 . : '\(.\)' 2>/dev/null ||
16262 echo X"$ac_file" |
16263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16265 /^X\(\/\/\)$/{ s//\1/; q; }
16266 /^X\(\/\).*/{ s//\1/; q; }
16267 s/.*/./; q'`
16268 { if $as_mkdir_p; then
16269 mkdir -p "$ac_dir"
16270 else
16271 as_dir="$ac_dir"
16272 as_dirs=
16273 while test ! -d "$as_dir"; do
16274 as_dirs="$as_dir $as_dirs"
16275 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16277 X"$as_dir" : 'X\(//\)[^/]' \| \
16278 X"$as_dir" : 'X\(//\)$' \| \
16279 X"$as_dir" : 'X\(/\)' \| \
16280 . : '\(.\)' 2>/dev/null ||
16281 echo X"$as_dir" |
16282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16284 /^X\(\/\/\)$/{ s//\1/; q; }
16285 /^X\(\/\).*/{ s//\1/; q; }
16286 s/.*/./; q'`
16287 done
16288 test ! -n "$as_dirs" || mkdir $as_dirs
16289 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16290 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16291 { (exit 1); exit 1; }; }; }
16292
16293 ac_builddir=.
16294
16295 if test "$ac_dir" != .; then
16296 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16297 # A "../" for each directory in $ac_dir_suffix.
16298 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16299 else
16300 ac_dir_suffix= ac_top_builddir=
16301 fi
16302
16303 case $srcdir in
16304 .) # No --srcdir option. We are building in place.
16305 ac_srcdir=.
16306 if test -z "$ac_top_builddir"; then
16307 ac_top_srcdir=.
16308 else
16309 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16310 fi ;;
16311 [\\/]* | ?:[\\/]* ) # Absolute path.
16312 ac_srcdir=$srcdir$ac_dir_suffix;
16313 ac_top_srcdir=$srcdir ;;
16314 *) # Relative path.
16315 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16316 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16317 esac
16318
16319 # Do not use `cd foo && pwd` to compute absolute paths, because
16320 # the directories may not exist.
16321 case `pwd` in
16322 .) ac_abs_builddir="$ac_dir";;
16323 *)
16324 case "$ac_dir" in
16325 .) ac_abs_builddir=`pwd`;;
16326 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16327 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16328 esac;;
16329 esac
16330 case $ac_abs_builddir in
16331 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16332 *)
16333 case ${ac_top_builddir}. in
16334 .) ac_abs_top_builddir=$ac_abs_builddir;;
16335 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16336 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16337 esac;;
16338 esac
16339 case $ac_abs_builddir in
16340 .) ac_abs_srcdir=$ac_srcdir;;
16341 *)
16342 case $ac_srcdir in
16343 .) ac_abs_srcdir=$ac_abs_builddir;;
16344 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16345 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16346 esac;;
16347 esac
16348 case $ac_abs_builddir in
16349 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16350 *)
16351 case $ac_top_srcdir in
16352 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16353 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16354 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16355 esac;;
16356 esac
16357
16358
16359 case $INSTALL in
16360 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16361 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16362 esac
16363
16364 if test x"$ac_file" != x-; then
16365 { echo "$as_me:$LINENO: creating $ac_file" >&5
16366 echo "$as_me: creating $ac_file" >&6;}
16367 rm -f "$ac_file"
16368 fi
16369 # Let's still pretend it is `configure' which instantiates (i.e., don't
16370 # use $as_me), people would be surprised to read:
16371 # /* config.h. Generated by config.status. */
16372 if test x"$ac_file" = x-; then
16373 configure_input=
16374 else
16375 configure_input="$ac_file. "
16376 fi
16377 configure_input=$configure_input"Generated from `echo $ac_file_in |
16378 sed 's,.*/,,'` by configure."
16379
16380 # First look for the input files in the build tree, otherwise in the
16381 # src tree.
16382 ac_file_inputs=`IFS=:
16383 for f in $ac_file_in; do
16384 case $f in
16385 -) echo $tmp/stdin ;;
16386 [\\/$]*)
16387 # Absolute (can't be DOS-style, as IFS=:)
16388 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16389 echo "$as_me: error: cannot find input file: $f" >&2;}
16390 { (exit 1); exit 1; }; }
16391 echo "$f";;
16392 *) # Relative
16393 if test -f "$f"; then
16394 # Build tree
16395 echo "$f"
16396 elif test -f "$srcdir/$f"; then
16397 # Source tree
16398 echo "$srcdir/$f"
16399 else
16400 # /dev/null tree
16401 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16402 echo "$as_me: error: cannot find input file: $f" >&2;}
16403 { (exit 1); exit 1; }; }
16404 fi;;
16405 esac
16406 done` || { (exit 1); exit 1; }
16407 _ACEOF
16408 cat >>$CONFIG_STATUS <<_ACEOF
16409 sed "$ac_vpsub
16410 $extrasub
16411 _ACEOF
16412 cat >>$CONFIG_STATUS <<\_ACEOF
16413 :t
16414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16415 s,@configure_input@,$configure_input,;t t
16416 s,@srcdir@,$ac_srcdir,;t t
16417 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16418 s,@top_srcdir@,$ac_top_srcdir,;t t
16419 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16420 s,@builddir@,$ac_builddir,;t t
16421 s,@abs_builddir@,$ac_abs_builddir,;t t
16422 s,@top_builddir@,$ac_top_builddir,;t t
16423 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16424 s,@INSTALL@,$ac_INSTALL,;t t
16425 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16426 rm -f $tmp/stdin
16427 if test x"$ac_file" != x-; then
16428 mv $tmp/out $ac_file
16429 else
16430 cat $tmp/out
16431 rm -f $tmp/out
16432 fi
16433
16434 done
16435 _ACEOF
16436 cat >>$CONFIG_STATUS <<\_ACEOF
16437
16438 #
16439 # CONFIG_HEADER section.
16440 #
16441
16442 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16443 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16444 #
16445 # ac_d sets the value in "#define NAME VALUE" lines.
16446 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16447 ac_dB='[ ].*$,\1#\2'
16448 ac_dC=' '
16449 ac_dD=',;t'
16450 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16451 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16452 ac_uB='$,\1#\2define\3'
16453 ac_uC=' '
16454 ac_uD=',;t'
16455
16456 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16457 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16458 case $ac_file in
16459 - | *:- | *:-:* ) # input from stdin
16460 cat >$tmp/stdin
16461 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16462 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16463 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16464 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16465 * ) ac_file_in=$ac_file.in ;;
16466 esac
16467
16468 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16469 echo "$as_me: creating $ac_file" >&6;}
16470
16471 # First look for the input files in the build tree, otherwise in the
16472 # src tree.
16473 ac_file_inputs=`IFS=:
16474 for f in $ac_file_in; do
16475 case $f in
16476 -) echo $tmp/stdin ;;
16477 [\\/$]*)
16478 # Absolute (can't be DOS-style, as IFS=:)
16479 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16480 echo "$as_me: error: cannot find input file: $f" >&2;}
16481 { (exit 1); exit 1; }; }
16482 # Do quote $f, to prevent DOS paths from being IFS'd.
16483 echo "$f";;
16484 *) # Relative
16485 if test -f "$f"; then
16486 # Build tree
16487 echo "$f"
16488 elif test -f "$srcdir/$f"; then
16489 # Source tree
16490 echo "$srcdir/$f"
16491 else
16492 # /dev/null tree
16493 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16494 echo "$as_me: error: cannot find input file: $f" >&2;}
16495 { (exit 1); exit 1; }; }
16496 fi;;
16497 esac
16498 done` || { (exit 1); exit 1; }
16499 # Remove the trailing spaces.
16500 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16501
16502 _ACEOF
16503
16504 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16505 # `conftest.undefs', that substitutes the proper values into
16506 # config.h.in to produce config.h. The first handles `#define'
16507 # templates, and the second `#undef' templates.
16508 # And first: Protect against being on the right side of a sed subst in
16509 # config.status. Protect against being in an unquoted here document
16510 # in config.status.
16511 rm -f conftest.defines conftest.undefs
16512 # Using a here document instead of a string reduces the quoting nightmare.
16513 # Putting comments in sed scripts is not portable.
16514 #
16515 # `end' is used to avoid that the second main sed command (meant for
16516 # 0-ary CPP macros) applies to n-ary macro definitions.
16517 # See the Autoconf documentation for `clear'.
16518 cat >confdef2sed.sed <<\_ACEOF
16519 s/[\\&,]/\\&/g
16520 s,[\\$`],\\&,g
16521 t clear
16522 : clear
16523 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16524 t end
16525 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16526 : end
16527 _ACEOF
16528 # If some macros were called several times there might be several times
16529 # the same #defines, which is useless. Nevertheless, we may not want to
16530 # sort them, since we want the *last* AC-DEFINE to be honored.
16531 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16532 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16533 rm -f confdef2sed.sed
16534
16535 # This sed command replaces #undef with comments. This is necessary, for
16536 # example, in the case of _POSIX_SOURCE, which is predefined and required
16537 # on some systems where configure will not decide to define it.
16538 cat >>conftest.undefs <<\_ACEOF
16539 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16540 _ACEOF
16541
16542 # Break up conftest.defines because some shells have a limit on the size
16543 # of here documents, and old seds have small limits too (100 cmds).
16544 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16545 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16546 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16547 echo ' :' >>$CONFIG_STATUS
16548 rm -f conftest.tail
16549 while grep . conftest.defines >/dev/null
16550 do
16551 # Write a limited-size here document to $tmp/defines.sed.
16552 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16553 # Speed up: don't consider the non `#define' lines.
16554 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16555 # Work around the forget-to-reset-the-flag bug.
16556 echo 't clr' >>$CONFIG_STATUS
16557 echo ': clr' >>$CONFIG_STATUS
16558 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16559 echo 'CEOF
16560 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16561 rm -f $tmp/in
16562 mv $tmp/out $tmp/in
16563 ' >>$CONFIG_STATUS
16564 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16565 rm -f conftest.defines
16566 mv conftest.tail conftest.defines
16567 done
16568 rm -f conftest.defines
16569 echo ' fi # grep' >>$CONFIG_STATUS
16570 echo >>$CONFIG_STATUS
16571
16572 # Break up conftest.undefs because some shells have a limit on the size
16573 # of here documents, and old seds have small limits too (100 cmds).
16574 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16575 rm -f conftest.tail
16576 while grep . conftest.undefs >/dev/null
16577 do
16578 # Write a limited-size here document to $tmp/undefs.sed.
16579 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16580 # Speed up: don't consider the non `#undef'
16581 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16582 # Work around the forget-to-reset-the-flag bug.
16583 echo 't clr' >>$CONFIG_STATUS
16584 echo ': clr' >>$CONFIG_STATUS
16585 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16586 echo 'CEOF
16587 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16588 rm -f $tmp/in
16589 mv $tmp/out $tmp/in
16590 ' >>$CONFIG_STATUS
16591 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16592 rm -f conftest.undefs
16593 mv conftest.tail conftest.undefs
16594 done
16595 rm -f conftest.undefs
16596
16597 cat >>$CONFIG_STATUS <<\_ACEOF
16598 # Let's still pretend it is `configure' which instantiates (i.e., don't
16599 # use $as_me), people would be surprised to read:
16600 # /* config.h. Generated by config.status. */
16601 if test x"$ac_file" = x-; then
16602 echo "/* Generated by configure. */" >$tmp/config.h
16603 else
16604 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16605 fi
16606 cat $tmp/in >>$tmp/config.h
16607 rm -f $tmp/in
16608 if test x"$ac_file" != x-; then
16609 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16610 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16611 echo "$as_me: $ac_file is unchanged" >&6;}
16612 else
16613 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16614 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16615 X"$ac_file" : 'X\(//\)[^/]' \| \
16616 X"$ac_file" : 'X\(//\)$' \| \
16617 X"$ac_file" : 'X\(/\)' \| \
16618 . : '\(.\)' 2>/dev/null ||
16619 echo X"$ac_file" |
16620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16622 /^X\(\/\/\)$/{ s//\1/; q; }
16623 /^X\(\/\).*/{ s//\1/; q; }
16624 s/.*/./; q'`
16625 { if $as_mkdir_p; then
16626 mkdir -p "$ac_dir"
16627 else
16628 as_dir="$ac_dir"
16629 as_dirs=
16630 while test ! -d "$as_dir"; do
16631 as_dirs="$as_dir $as_dirs"
16632 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16634 X"$as_dir" : 'X\(//\)[^/]' \| \
16635 X"$as_dir" : 'X\(//\)$' \| \
16636 X"$as_dir" : 'X\(/\)' \| \
16637 . : '\(.\)' 2>/dev/null ||
16638 echo X"$as_dir" |
16639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16641 /^X\(\/\/\)$/{ s//\1/; q; }
16642 /^X\(\/\).*/{ s//\1/; q; }
16643 s/.*/./; q'`
16644 done
16645 test ! -n "$as_dirs" || mkdir $as_dirs
16646 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16647 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16648 { (exit 1); exit 1; }; }; }
16649
16650 rm -f $ac_file
16651 mv $tmp/config.h $ac_file
16652 fi
16653 else
16654 cat $tmp/config.h
16655 rm -f $tmp/config.h
16656 fi
16657 # Compute $ac_file's index in $config_headers.
16658 _am_stamp_count=1
16659 for _am_header in $config_headers :; do
16660 case $_am_header in
16661 $ac_file | $ac_file:* )
16662 break ;;
16663 * )
16664 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16665 esac
16666 done
16667 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16668 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16669 X$ac_file : 'X\(//\)[^/]' \| \
16670 X$ac_file : 'X\(//\)$' \| \
16671 X$ac_file : 'X\(/\)' \| \
16672 . : '\(.\)' 2>/dev/null ||
16673 echo X$ac_file |
16674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16676 /^X\(\/\/\)$/{ s//\1/; q; }
16677 /^X\(\/\).*/{ s//\1/; q; }
16678 s/.*/./; q'`/stamp-h$_am_stamp_count
16679 done
16680 _ACEOF
16681 cat >>$CONFIG_STATUS <<\_ACEOF
16682
16683 #
16684 # CONFIG_COMMANDS section.
16685 #
16686 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16687 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16688 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16689 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16690 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16691 X"$ac_dest" : 'X\(//\)[^/]' \| \
16692 X"$ac_dest" : 'X\(//\)$' \| \
16693 X"$ac_dest" : 'X\(/\)' \| \
16694 . : '\(.\)' 2>/dev/null ||
16695 echo X"$ac_dest" |
16696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16698 /^X\(\/\/\)$/{ s//\1/; q; }
16699 /^X\(\/\).*/{ s//\1/; q; }
16700 s/.*/./; q'`
16701 { if $as_mkdir_p; then
16702 mkdir -p "$ac_dir"
16703 else
16704 as_dir="$ac_dir"
16705 as_dirs=
16706 while test ! -d "$as_dir"; do
16707 as_dirs="$as_dir $as_dirs"
16708 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16710 X"$as_dir" : 'X\(//\)[^/]' \| \
16711 X"$as_dir" : 'X\(//\)$' \| \
16712 X"$as_dir" : 'X\(/\)' \| \
16713 . : '\(.\)' 2>/dev/null ||
16714 echo X"$as_dir" |
16715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16717 /^X\(\/\/\)$/{ s//\1/; q; }
16718 /^X\(\/\).*/{ s//\1/; q; }
16719 s/.*/./; q'`
16720 done
16721 test ! -n "$as_dirs" || mkdir $as_dirs
16722 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16723 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16724 { (exit 1); exit 1; }; }; }
16725
16726 ac_builddir=.
16727
16728 if test "$ac_dir" != .; then
16729 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16730 # A "../" for each directory in $ac_dir_suffix.
16731 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16732 else
16733 ac_dir_suffix= ac_top_builddir=
16734 fi
16735
16736 case $srcdir in
16737 .) # No --srcdir option. We are building in place.
16738 ac_srcdir=.
16739 if test -z "$ac_top_builddir"; then
16740 ac_top_srcdir=.
16741 else
16742 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16743 fi ;;
16744 [\\/]* | ?:[\\/]* ) # Absolute path.
16745 ac_srcdir=$srcdir$ac_dir_suffix;
16746 ac_top_srcdir=$srcdir ;;
16747 *) # Relative path.
16748 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16749 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16750 esac
16751
16752 # Do not use `cd foo && pwd` to compute absolute paths, because
16753 # the directories may not exist.
16754 case `pwd` in
16755 .) ac_abs_builddir="$ac_dir";;
16756 *)
16757 case "$ac_dir" in
16758 .) ac_abs_builddir=`pwd`;;
16759 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16760 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16761 esac;;
16762 esac
16763 case $ac_abs_builddir in
16764 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16765 *)
16766 case ${ac_top_builddir}. in
16767 .) ac_abs_top_builddir=$ac_abs_builddir;;
16768 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16769 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16770 esac;;
16771 esac
16772 case $ac_abs_builddir in
16773 .) ac_abs_srcdir=$ac_srcdir;;
16774 *)
16775 case $ac_srcdir in
16776 .) ac_abs_srcdir=$ac_abs_builddir;;
16777 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16778 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16779 esac;;
16780 esac
16781 case $ac_abs_builddir in
16782 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16783 *)
16784 case $ac_top_srcdir in
16785 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16786 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16787 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16788 esac;;
16789 esac
16790
16791
16792 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16793 echo "$as_me: executing $ac_dest commands" >&6;}
16794 case $ac_dest in
16795 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16796 # Strip MF so we end up with the name of the file.
16797 mf=`echo "$mf" | sed -e 's/:.*$//'`
16798 # Check whether this is an Automake generated Makefile or not.
16799 # We used to match only the files named `Makefile.in', but
16800 # some people rename them; so instead we look at the file content.
16801 # Grep'ing the first line is not enough: some people post-process
16802 # each Makefile.in and add a new line on top of each file to say so.
16803 # So let's grep whole file.
16804 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16805 dirpart=`(dirname "$mf") 2>/dev/null ||
16806 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16807 X"$mf" : 'X\(//\)[^/]' \| \
16808 X"$mf" : 'X\(//\)$' \| \
16809 X"$mf" : 'X\(/\)' \| \
16810 . : '\(.\)' 2>/dev/null ||
16811 echo X"$mf" |
16812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16814 /^X\(\/\/\)$/{ s//\1/; q; }
16815 /^X\(\/\).*/{ s//\1/; q; }
16816 s/.*/./; q'`
16817 else
16818 continue
16819 fi
16820 # Extract the definition of DEPDIR, am__include, and am__quote
16821 # from the Makefile without running `make'.
16822 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16823 test -z "$DEPDIR" && continue
16824 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16825 test -z "am__include" && continue
16826 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16827 # When using ansi2knr, U may be empty or an underscore; expand it
16828 U=`sed -n 's/^U = //p' < "$mf"`
16829 # Find all dependency output files, they are included files with
16830 # $(DEPDIR) in their names. We invoke sed twice because it is the
16831 # simplest approach to changing $(DEPDIR) to its actual value in the
16832 # expansion.
16833 for file in `sed -n "
16834 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16835 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16836 # Make sure the directory exists.
16837 test -f "$dirpart/$file" && continue
16838 fdir=`(dirname "$file") 2>/dev/null ||
16839 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16840 X"$file" : 'X\(//\)[^/]' \| \
16841 X"$file" : 'X\(//\)$' \| \
16842 X"$file" : 'X\(/\)' \| \
16843 . : '\(.\)' 2>/dev/null ||
16844 echo X"$file" |
16845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16847 /^X\(\/\/\)$/{ s//\1/; q; }
16848 /^X\(\/\).*/{ s//\1/; q; }
16849 s/.*/./; q'`
16850 { if $as_mkdir_p; then
16851 mkdir -p $dirpart/$fdir
16852 else
16853 as_dir=$dirpart/$fdir
16854 as_dirs=
16855 while test ! -d "$as_dir"; do
16856 as_dirs="$as_dir $as_dirs"
16857 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16859 X"$as_dir" : 'X\(//\)[^/]' \| \
16860 X"$as_dir" : 'X\(//\)$' \| \
16861 X"$as_dir" : 'X\(/\)' \| \
16862 . : '\(.\)' 2>/dev/null ||
16863 echo X"$as_dir" |
16864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16866 /^X\(\/\/\)$/{ s//\1/; q; }
16867 /^X\(\/\).*/{ s//\1/; q; }
16868 s/.*/./; q'`
16869 done
16870 test ! -n "$as_dirs" || mkdir $as_dirs
16871 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16872 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16873 { (exit 1); exit 1; }; }; }
16874
16875 # echo "creating $dirpart/$file"
16876 echo '# dummy' > "$dirpart/$file"
16877 done
16878 done
16879 ;;
16880 libtool )
16881
16882 # See if we are running on zsh, and set the options which allow our
16883 # commands through without removal of \ escapes.
16884 if test -n "${ZSH_VERSION+set}" ; then
16885 setopt NO_GLOB_SUBST
16886 fi
16887
16888 cfgfile="${ofile}T"
16889 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16890 $RM "$cfgfile"
16891
16892 cat <<_LT_EOF >> "$cfgfile"
16893 #! $SHELL
16894
16895 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16896 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16897 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16898 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16899 #
16900 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16901 # 2006, 2007, 2008 Free Software Foundation, Inc.
16902 # Written by Gordon Matzigkeit, 1996
16903 #
16904 # This file is part of GNU Libtool.
16905 #
16906 # GNU Libtool is free software; you can redistribute it and/or
16907 # modify it under the terms of the GNU General Public License as
16908 # published by the Free Software Foundation; either version 2 of
16909 # the License, or (at your option) any later version.
16910 #
16911 # As a special exception to the GNU General Public License,
16912 # if you distribute this file as part of a program or library that
16913 # is built using GNU Libtool, you may include this file under the
16914 # same distribution terms that you use for the rest of that program.
16915 #
16916 # GNU Libtool is distributed in the hope that it will be useful,
16917 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16918 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16919 # GNU General Public License for more details.
16920 #
16921 # You should have received a copy of the GNU General Public License
16922 # along with GNU Libtool; see the file COPYING. If not, a copy
16923 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16924 # obtained by writing to the Free Software Foundation, Inc.,
16925 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16926
16927
16928 # The names of the tagged configurations supported by this script.
16929 available_tags=""
16930
16931 # ### BEGIN LIBTOOL CONFIG
16932
16933 # Which release of libtool.m4 was used?
16934 macro_version=$macro_version
16935 macro_revision=$macro_revision
16936
16937 # Whether or not to build shared libraries.
16938 build_libtool_libs=$enable_shared
16939
16940 # Whether or not to build static libraries.
16941 build_old_libs=$enable_static
16942
16943 # What type of objects to build.
16944 pic_mode=$pic_mode
16945
16946 # Whether or not to optimize for fast installation.
16947 fast_install=$enable_fast_install
16948
16949 # The host system.
16950 host_alias=$host_alias
16951 host=$host
16952 host_os=$host_os
16953
16954 # The build system.
16955 build_alias=$build_alias
16956 build=$build
16957 build_os=$build_os
16958
16959 # A sed program that does not truncate output.
16960 SED=$lt_SED
16961
16962 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16963 Xsed="\$SED -e 1s/^X//"
16964
16965 # A grep program that handles long lines.
16966 GREP=$lt_GREP
16967
16968 # An ERE matcher.
16969 EGREP=$lt_EGREP
16970
16971 # A literal string matcher.
16972 FGREP=$lt_FGREP
16973
16974 # A BSD- or MS-compatible name lister.
16975 NM=$lt_NM
16976
16977 # Whether we need soft or hard links.
16978 LN_S=$lt_LN_S
16979
16980 # What is the maximum length of a command?
16981 max_cmd_len=$max_cmd_len
16982
16983 # Object file suffix (normally "o").
16984 objext=$ac_objext
16985
16986 # Executable file suffix (normally "").
16987 exeext=$exeext
16988
16989 # whether the shell understands "unset".
16990 lt_unset=$lt_unset
16991
16992 # turn spaces into newlines.
16993 SP2NL=$lt_lt_SP2NL
16994
16995 # turn newlines into spaces.
16996 NL2SP=$lt_lt_NL2SP
16997
16998 # How to create reloadable object files.
16999 reload_flag=$lt_reload_flag
17000 reload_cmds=$lt_reload_cmds
17001
17002 # An object symbol dumper.
17003 OBJDUMP=$lt_OBJDUMP
17004
17005 # Method to check whether dependent libraries are shared objects.
17006 deplibs_check_method=$lt_deplibs_check_method
17007
17008 # Command to use when deplibs_check_method == "file_magic".
17009 file_magic_cmd=$lt_file_magic_cmd
17010
17011 # The archiver.
17012 AR=$lt_AR
17013 AR_FLAGS=$lt_AR_FLAGS
17014
17015 # A symbol stripping program.
17016 STRIP=$lt_STRIP
17017
17018 # Commands used to install an old-style archive.
17019 RANLIB=$lt_RANLIB
17020 old_postinstall_cmds=$lt_old_postinstall_cmds
17021 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17022
17023 # A C compiler.
17024 LTCC=$lt_CC
17025
17026 # LTCC compiler flags.
17027 LTCFLAGS=$lt_CFLAGS
17028
17029 # Take the output of nm and produce a listing of raw symbols and C names.
17030 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17031
17032 # Transform the output of nm in a proper C declaration.
17033 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17034
17035 # Transform the output of nm in a C name address pair.
17036 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17037
17038 # Transform the output of nm in a C name address pair when lib prefix is needed.
17039 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17040
17041 # The name of the directory that contains temporary libtool files.
17042 objdir=$objdir
17043
17044 # Shell to use when invoking shell scripts.
17045 SHELL=$lt_SHELL
17046
17047 # An echo program that does not interpret backslashes.
17048 ECHO=$lt_ECHO
17049
17050 # Used to examine libraries when file_magic_cmd begins with "file".
17051 MAGIC_CMD=$MAGIC_CMD
17052
17053 # Must we lock files when doing compilation?
17054 need_locks=$lt_need_locks
17055
17056 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17057 DSYMUTIL=$lt_DSYMUTIL
17058
17059 # Tool to change global to local symbols on Mac OS X.
17060 NMEDIT=$lt_NMEDIT
17061
17062 # Tool to manipulate fat objects and archives on Mac OS X.
17063 LIPO=$lt_LIPO
17064
17065 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17066 OTOOL=$lt_OTOOL
17067
17068 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17069 OTOOL64=$lt_OTOOL64
17070
17071 # Old archive suffix (normally "a").
17072 libext=$libext
17073
17074 # Shared library suffix (normally ".so").
17075 shrext_cmds=$lt_shrext_cmds
17076
17077 # The commands to extract the exported symbol list from a shared archive.
17078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17079
17080 # Variables whose values should be saved in libtool wrapper scripts and
17081 # restored at link time.
17082 variables_saved_for_relink=$lt_variables_saved_for_relink
17083
17084 # Do we need the "lib" prefix for modules?
17085 need_lib_prefix=$need_lib_prefix
17086
17087 # Do we need a version for libraries?
17088 need_version=$need_version
17089
17090 # Library versioning type.
17091 version_type=$version_type
17092
17093 # Shared library runtime path variable.
17094 runpath_var=$runpath_var
17095
17096 # Shared library path variable.
17097 shlibpath_var=$shlibpath_var
17098
17099 # Is shlibpath searched before the hard-coded library search path?
17100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17101
17102 # Format of library name prefix.
17103 libname_spec=$lt_libname_spec
17104
17105 # List of archive names. First name is the real one, the rest are links.
17106 # The last name is the one that the linker finds with -lNAME
17107 library_names_spec=$lt_library_names_spec
17108
17109 # The coded name of the library, if different from the real name.
17110 soname_spec=$lt_soname_spec
17111
17112 # Command to use after installation of a shared archive.
17113 postinstall_cmds=$lt_postinstall_cmds
17114
17115 # Command to use after uninstallation of a shared archive.
17116 postuninstall_cmds=$lt_postuninstall_cmds
17117
17118 # Commands used to finish a libtool library installation in a directory.
17119 finish_cmds=$lt_finish_cmds
17120
17121 # As "finish_cmds", except a single script fragment to be evaled but
17122 # not shown.
17123 finish_eval=$lt_finish_eval
17124
17125 # Whether we should hardcode library paths into libraries.
17126 hardcode_into_libs=$hardcode_into_libs
17127
17128 # Compile-time system search path for libraries.
17129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17130
17131 # Run-time system search path for libraries.
17132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17133
17134 # Whether dlopen is supported.
17135 dlopen_support=$enable_dlopen
17136
17137 # Whether dlopen of programs is supported.
17138 dlopen_self=$enable_dlopen_self
17139
17140 # Whether dlopen of statically linked programs is supported.
17141 dlopen_self_static=$enable_dlopen_self_static
17142
17143 # Commands to strip libraries.
17144 old_striplib=$lt_old_striplib
17145 striplib=$lt_striplib
17146
17147
17148 # The linker used to build libraries.
17149 LD=$lt_LD
17150
17151 # Commands used to build an old-style archive.
17152 old_archive_cmds=$lt_old_archive_cmds
17153
17154 # A language specific compiler.
17155 CC=$lt_compiler
17156
17157 # Is the compiler the GNU compiler?
17158 with_gcc=$GCC
17159
17160 # Compiler flag to turn off builtin functions.
17161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17162
17163 # How to pass a linker flag through the compiler.
17164 wl=$lt_lt_prog_compiler_wl
17165
17166 # Additional compiler flags for building library objects.
17167 pic_flag=$lt_lt_prog_compiler_pic
17168
17169 # Compiler flag to prevent dynamic linking.
17170 link_static_flag=$lt_lt_prog_compiler_static
17171
17172 # Does compiler simultaneously support -c and -o options?
17173 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17174
17175 # Whether or not to add -lc for building shared libraries.
17176 build_libtool_need_lc=$archive_cmds_need_lc
17177
17178 # Whether or not to disallow shared libs when runtime libs are static.
17179 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17180
17181 # Compiler flag to allow reflexive dlopens.
17182 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17183
17184 # Compiler flag to generate shared objects directly from archives.
17185 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17186
17187 # Whether the compiler copes with passing no objects directly.
17188 compiler_needs_object=$lt_compiler_needs_object
17189
17190 # Create an old-style archive from a shared archive.
17191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17192
17193 # Create a temporary old-style archive to link instead of a shared archive.
17194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17195
17196 # Commands used to build a shared archive.
17197 archive_cmds=$lt_archive_cmds
17198 archive_expsym_cmds=$lt_archive_expsym_cmds
17199
17200 # Commands used to build a loadable module if different from building
17201 # a shared archive.
17202 module_cmds=$lt_module_cmds
17203 module_expsym_cmds=$lt_module_expsym_cmds
17204
17205 # Whether we are building with GNU ld or not.
17206 with_gnu_ld=$lt_with_gnu_ld
17207
17208 # Flag that allows shared libraries with undefined symbols to be built.
17209 allow_undefined_flag=$lt_allow_undefined_flag
17210
17211 # Flag that enforces no undefined symbols.
17212 no_undefined_flag=$lt_no_undefined_flag
17213
17214 # Flag to hardcode \$libdir into a binary during linking.
17215 # This must work even if \$libdir does not exist
17216 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17217
17218 # If ld is used when linking, flag to hardcode \$libdir into a binary
17219 # during linking. This must work even if \$libdir does not exist.
17220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17221
17222 # Whether we need a single "-rpath" flag with a separated argument.
17223 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17224
17225 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17226 # DIR into the resulting binary.
17227 hardcode_direct=$hardcode_direct
17228
17229 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17230 # DIR into the resulting binary and the resulting library dependency is
17231 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17232 # library is relocated.
17233 hardcode_direct_absolute=$hardcode_direct_absolute
17234
17235 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17236 # into the resulting binary.
17237 hardcode_minus_L=$hardcode_minus_L
17238
17239 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17240 # into the resulting binary.
17241 hardcode_shlibpath_var=$hardcode_shlibpath_var
17242
17243 # Set to "yes" if building a shared library automatically hardcodes DIR
17244 # into the library and all subsequent libraries and executables linked
17245 # against it.
17246 hardcode_automatic=$hardcode_automatic
17247
17248 # Set to yes if linker adds runtime paths of dependent libraries
17249 # to runtime path list.
17250 inherit_rpath=$inherit_rpath
17251
17252 # Whether libtool must link a program against all its dependency libraries.
17253 link_all_deplibs=$link_all_deplibs
17254
17255 # Fix the shell variable \$srcfile for the compiler.
17256 fix_srcfile_path=$lt_fix_srcfile_path
17257
17258 # Set to "yes" if exported symbols are required.
17259 always_export_symbols=$always_export_symbols
17260
17261 # The commands to list exported symbols.
17262 export_symbols_cmds=$lt_export_symbols_cmds
17263
17264 # Symbols that should not be listed in the preloaded symbols.
17265 exclude_expsyms=$lt_exclude_expsyms
17266
17267 # Symbols that must always be exported.
17268 include_expsyms=$lt_include_expsyms
17269
17270 # Commands necessary for linking programs (against libraries) with templates.
17271 prelink_cmds=$lt_prelink_cmds
17272
17273 # Specify filename containing input files.
17274 file_list_spec=$lt_file_list_spec
17275
17276 # How to hardcode a shared library path into an executable.
17277 hardcode_action=$hardcode_action
17278
17279 # ### END LIBTOOL CONFIG
17280
17281 _LT_EOF
17282
17283 case $host_os in
17284 aix3*)
17285 cat <<\_LT_EOF >> "$cfgfile"
17286 # AIX sometimes has problems with the GCC collect2 program. For some
17287 # reason, if we set the COLLECT_NAMES environment variable, the problems
17288 # vanish in a puff of smoke.
17289 if test "X${COLLECT_NAMES+set}" != Xset; then
17290 COLLECT_NAMES=
17291 export COLLECT_NAMES
17292 fi
17293 _LT_EOF
17294 ;;
17295 esac
17296
17297
17298 ltmain="$ac_aux_dir/ltmain.sh"
17299
17300
17301 # We use sed instead of cat because bash on DJGPP gets confused if
17302 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17303 # text mode, it properly converts lines to CR/LF. This bash problem
17304 # is reportedly fixed, but why not run on old versions too?
17305 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17306 || (rm -f "$cfgfile"; exit 1)
17307
17308 case $xsi_shell in
17309 yes)
17310 cat << \_LT_EOF >> "$cfgfile"
17311
17312 # func_dirname file append nondir_replacement
17313 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17314 # otherwise set result to NONDIR_REPLACEMENT.
17315 func_dirname ()
17316 {
17317 case ${1} in
17318 */*) func_dirname_result="${1%/*}${2}" ;;
17319 * ) func_dirname_result="${3}" ;;
17320 esac
17321 }
17322
17323 # func_basename file
17324 func_basename ()
17325 {
17326 func_basename_result="${1##*/}"
17327 }
17328
17329 # func_dirname_and_basename file append nondir_replacement
17330 # perform func_basename and func_dirname in a single function
17331 # call:
17332 # dirname: Compute the dirname of FILE. If nonempty,
17333 # add APPEND to the result, otherwise set result
17334 # to NONDIR_REPLACEMENT.
17335 # value returned in "$func_dirname_result"
17336 # basename: Compute filename of FILE.
17337 # value retuned in "$func_basename_result"
17338 # Implementation must be kept synchronized with func_dirname
17339 # and func_basename. For efficiency, we do not delegate to
17340 # those functions but instead duplicate the functionality here.
17341 func_dirname_and_basename ()
17342 {
17343 case ${1} in
17344 */*) func_dirname_result="${1%/*}${2}" ;;
17345 * ) func_dirname_result="${3}" ;;
17346 esac
17347 func_basename_result="${1##*/}"
17348 }
17349
17350 # func_stripname prefix suffix name
17351 # strip PREFIX and SUFFIX off of NAME.
17352 # PREFIX and SUFFIX must not contain globbing or regex special
17353 # characters, hashes, percent signs, but SUFFIX may contain a leading
17354 # dot (in which case that matches only a dot).
17355 func_stripname ()
17356 {
17357 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17358 # positional parameters, so assign one to ordinary parameter first.
17359 func_stripname_result=${3}
17360 func_stripname_result=${func_stripname_result#"${1}"}
17361 func_stripname_result=${func_stripname_result%"${2}"}
17362 }
17363
17364 # func_opt_split
17365 func_opt_split ()
17366 {
17367 func_opt_split_opt=${1%%=*}
17368 func_opt_split_arg=${1#*=}
17369 }
17370
17371 # func_lo2o object
17372 func_lo2o ()
17373 {
17374 case ${1} in
17375 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17376 *) func_lo2o_result=${1} ;;
17377 esac
17378 }
17379
17380 # func_xform libobj-or-source
17381 func_xform ()
17382 {
17383 func_xform_result=${1%.*}.lo
17384 }
17385
17386 # func_arith arithmetic-term...
17387 func_arith ()
17388 {
17389 func_arith_result=$(( $* ))
17390 }
17391
17392 # func_len string
17393 # STRING may not start with a hyphen.
17394 func_len ()
17395 {
17396 func_len_result=${#1}
17397 }
17398
17399 _LT_EOF
17400 ;;
17401 *) # Bourne compatible functions.
17402 cat << \_LT_EOF >> "$cfgfile"
17403
17404 # func_dirname file append nondir_replacement
17405 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17406 # otherwise set result to NONDIR_REPLACEMENT.
17407 func_dirname ()
17408 {
17409 # Extract subdirectory from the argument.
17410 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17411 if test "X$func_dirname_result" = "X${1}"; then
17412 func_dirname_result="${3}"
17413 else
17414 func_dirname_result="$func_dirname_result${2}"
17415 fi
17416 }
17417
17418 # func_basename file
17419 func_basename ()
17420 {
17421 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17422 }
17423
17424
17425 # func_stripname prefix suffix name
17426 # strip PREFIX and SUFFIX off of NAME.
17427 # PREFIX and SUFFIX must not contain globbing or regex special
17428 # characters, hashes, percent signs, but SUFFIX may contain a leading
17429 # dot (in which case that matches only a dot).
17430 # func_strip_suffix prefix name
17431 func_stripname ()
17432 {
17433 case ${2} in
17434 .*) func_stripname_result=`$ECHO "X${3}" \
17435 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17436 *) func_stripname_result=`$ECHO "X${3}" \
17437 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17438 esac
17439 }
17440
17441 # sed scripts:
17442 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17443 my_sed_long_arg='1s/^-[^=]*=//'
17444
17445 # func_opt_split
17446 func_opt_split ()
17447 {
17448 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17449 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17450 }
17451
17452 # func_lo2o object
17453 func_lo2o ()
17454 {
17455 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17456 }
17457
17458 # func_xform libobj-or-source
17459 func_xform ()
17460 {
17461 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17462 }
17463
17464 # func_arith arithmetic-term...
17465 func_arith ()
17466 {
17467 func_arith_result=`expr "$@"`
17468 }
17469
17470 # func_len string
17471 # STRING may not start with a hyphen.
17472 func_len ()
17473 {
17474 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17475 }
17476
17477 _LT_EOF
17478 esac
17479
17480 case $lt_shell_append in
17481 yes)
17482 cat << \_LT_EOF >> "$cfgfile"
17483
17484 # func_append var value
17485 # Append VALUE to the end of shell variable VAR.
17486 func_append ()
17487 {
17488 eval "$1+=\$2"
17489 }
17490 _LT_EOF
17491 ;;
17492 *)
17493 cat << \_LT_EOF >> "$cfgfile"
17494
17495 # func_append var value
17496 # Append VALUE to the end of shell variable VAR.
17497 func_append ()
17498 {
17499 eval "$1=\$$1\$2"
17500 }
17501
17502 _LT_EOF
17503 ;;
17504 esac
17505
17506
17507 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17508 || (rm -f "$cfgfile"; exit 1)
17509
17510 mv -f "$cfgfile" "$ofile" ||
17511 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17512 chmod +x "$ofile"
17513
17514 ;;
17515 default-1 )
17516 for ac_file in $CONFIG_FILES; do
17517 # Support "outfile[:infile[:infile...]]"
17518 case "$ac_file" in
17519 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17520 esac
17521 # PO directories have a Makefile.in generated from Makefile.in.in.
17522 case "$ac_file" in */Makefile.in)
17523 # Adjust a relative srcdir.
17524 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17525 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17526 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17527 # In autoconf-2.13 it is called $ac_given_srcdir.
17528 # In autoconf-2.50 it is called $srcdir.
17529 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17530 case "$ac_given_srcdir" in
17531 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17532 /*) top_srcdir="$ac_given_srcdir" ;;
17533 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17534 esac
17535 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17536 rm -f "$ac_dir/POTFILES"
17537 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17538 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17539 POMAKEFILEDEPS="POTFILES.in"
17540 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17541 # on $ac_dir but don't depend on user-specified configuration
17542 # parameters.
17543 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17544 # The LINGUAS file contains the set of available languages.
17545 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17546 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17547 fi
17548 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17549 # Hide the ALL_LINGUAS assigment from automake.
17550 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17551 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17552 else
17553 # The set of available languages was given in configure.in.
17554 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17555 fi
17556 case "$ac_given_srcdir" in
17557 .) srcdirpre= ;;
17558 *) srcdirpre='$(srcdir)/' ;;
17559 esac
17560 POFILES=
17561 GMOFILES=
17562 UPDATEPOFILES=
17563 DUMMYPOFILES=
17564 for lang in $ALL_LINGUAS; do
17565 POFILES="$POFILES $srcdirpre$lang.po"
17566 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17567 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17568 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17569 done
17570 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17571 # environment variable.
17572 INST_LINGUAS=
17573 if test -n "$ALL_LINGUAS"; then
17574 for presentlang in $ALL_LINGUAS; do
17575 useit=no
17576 if test "%UNSET%" != "$LINGUAS"; then
17577 desiredlanguages="$LINGUAS"
17578 else
17579 desiredlanguages="$ALL_LINGUAS"
17580 fi
17581 for desiredlang in $desiredlanguages; do
17582 # Use the presentlang catalog if desiredlang is
17583 # a. equal to presentlang, or
17584 # b. a variant of presentlang (because in this case,
17585 # presentlang can be used as a fallback for messages
17586 # which are not translated in the desiredlang catalog).
17587 case "$desiredlang" in
17588 "$presentlang"*) useit=yes;;
17589 esac
17590 done
17591 if test $useit = yes; then
17592 INST_LINGUAS="$INST_LINGUAS $presentlang"
17593 fi
17594 done
17595 fi
17596 CATALOGS=
17597 if test -n "$INST_LINGUAS"; then
17598 for lang in $INST_LINGUAS; do
17599 CATALOGS="$CATALOGS $lang.gmo"
17600 done
17601 fi
17602 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17603 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"
17604 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17605 if test -f "$f"; then
17606 case "$f" in
17607 *.orig | *.bak | *~) ;;
17608 *) cat "$f" >> "$ac_dir/Makefile" ;;
17609 esac
17610 fi
17611 done
17612 fi
17613 ;;
17614 esac
17615 done ;;
17616 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
17617 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
17618 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
17619 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
17620 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
17621 if test "x$cgen_cpu_prefix" != x ; then
17622 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
17623 fi ;;
17624 esac
17625 done
17626 _ACEOF
17627
17628 cat >>$CONFIG_STATUS <<\_ACEOF
17629
17630 { (exit 0); exit 0; }
17631 _ACEOF
17632 chmod +x $CONFIG_STATUS
17633 ac_clean_files=$ac_clean_files_save
17634
17635
17636 # configure is writing to config.log, and then calls config.status.
17637 # config.status does its own redirection, appending to config.log.
17638 # Unfortunately, on DOS this fails, as config.log is still kept open
17639 # by configure, so config.status won't be able to write to it; its
17640 # output is simply discarded. So we exec the FD to /dev/null,
17641 # effectively closing config.log, so it can be properly (re)opened and
17642 # appended to by config.status. When coming back to configure, we
17643 # need to make the FD available again.
17644 if test "$no_create" != yes; then
17645 ac_cs_success=:
17646 ac_config_status_args=
17647 test "$silent" = yes &&
17648 ac_config_status_args="$ac_config_status_args --quiet"
17649 exec 5>/dev/null
17650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17651 exec 5>>config.log
17652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17653 # would make configure fail if this is the last instruction.
17654 $ac_cs_success || { (exit 1); exit 1; }
17655 fi
17656
This page took 0.60459 seconds and 4 git commands to generate.