Merge remote branch 'origin/master'
[binutils/dougsmingw.git] / gas / configure
bloba7d460a1bce48bbe17cdaf489f0d392b2a4c46d0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="as.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 LIBM
606 ALLOCA
607 GENINSRC_NEVER_FALSE
608 GENINSRC_NEVER_TRUE
609 MAINT
610 MAINTAINER_MODE_FALSE
611 MAINTAINER_MODE_TRUE
612 MSGMERGE
613 MSGFMT
614 MKINSTALLDIRS
615 CATOBJEXT
616 GENCAT
617 INSTOBJEXT
618 DATADIRNAME
619 CATALOGS
620 POSUB
621 GMSGFMT
622 XGETTEXT
623 INCINTL
624 LIBINTL_DEP
625 LIBINTL
626 USE_NLS
627 LEXLIB
628 LEX_OUTPUT_ROOT
630 YFLAGS
631 YACC
632 OPCODES_LIB
633 atof
634 install_tooldir
635 te_file
636 obj_format
637 target_cpu_type
638 extra_objects
639 cgen_cpu_prefix
640 GDBINIT
641 NO_WERROR
642 WARN_CFLAGS
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 RANLIB
650 OBJDUMP
651 LN_S
653 ac_ct_DUMPBIN
654 DUMPBIN
656 FGREP
658 LIBTOOL
659 EGREP
660 GREP
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 AMDEPBACKSLASH
666 AMDEP_FALSE
667 AMDEP_TRUE
668 am__quote
669 am__include
670 DEPDIR
671 am__untar
672 am__tar
673 AMTAR
674 am__leading_dot
675 SET_MAKE
677 mkdir_p
678 MKDIR_P
679 INSTALL_STRIP_PROGRAM
680 STRIP
681 install_sh
682 MAKEINFO
683 AUTOHEADER
684 AUTOMAKE
685 AUTOCONF
686 ACLOCAL
687 VERSION
688 PACKAGE
689 CYGPATH_W
690 am__isrc
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
701 target_os
702 target_vendor
703 target_cpu
704 target
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_dependency_tracking
755 enable_plugins
756 enable_largefile
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 enable_libtool_lock
763 enable_targets
764 enable_checking
765 enable_werror
766 enable_build_warnings
767 enable_nls
768 enable_maintainer_mode
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
779 YACC
780 YFLAGS'
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
831 ac_prev=
832 ac_dashdash=
833 for ac_option
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
842 case $ac_option in
843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *) ac_optarg=yes ;;
845 esac
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
851 ac_dashdash=yes ;;
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
870 --config-cache | -C)
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1165 -*) as_fn_error "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information."
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187 esac
1188 done
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error "missing argument to $ac_option"
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used." >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245 test "$silent" = yes && exec 6>/dev/null
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error "pwd does not report name of working directory"
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1274 /^X\(\/\/\)$/{
1275 s//\1/
1278 /^X\(\/\).*/{
1279 s//\1/
1282 s/.*/./; q'`
1283 srcdir=$ac_confdir
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 srcdir=..
1287 else
1288 ac_srcdir_defaulted=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1297 pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322 \`configure' configures this package to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1331 Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375 _ACEOF
1377 cat <<\_ACEOF
1379 Program names:
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384 System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 --target=TARGET configure for building compilers for TARGET [HOST]
1388 _ACEOF
1391 if test -n "$ac_init_help"; then
1393 cat <<\_ACEOF
1395 Optional Features:
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --disable-dependency-tracking speeds up one-time build
1400 --enable-dependency-tracking do not reject slow dependency extractors
1401 --enable-plugins Enable support for plugins (defaults no)
1402 --disable-largefile omit support for large files
1403 --enable-shared[=PKGS] build shared libraries [default=yes]
1404 --enable-static[=PKGS] build static libraries [default=yes]
1405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
1407 --disable-libtool-lock avoid locking (might break parallel builds)
1408 --enable-targets alternative target configurations besides the primary
1409 --enable-checking enable run-time checks
1410 --enable-werror treat compile warnings as errors
1411 --enable-build-warnings enable build-time compiler warnings
1412 --disable-nls do not use Native Language Support
1413 --enable-maintainer-mode enable make rules and dependencies not useful
1414 (and sometimes confusing) to the casual installer
1416 Optional Packages:
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-pic try to use only PIC/non-PIC objects [default=use
1420 both]
1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1431 CPP C preprocessor
1432 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1433 the first program found out of: `bison -y', `byacc', `yacc'.
1434 YFLAGS The list of arguments that will be passed by default to $YACC.
1435 This script will default YFLAGS to the empty string to avoid a
1436 default value of `-d' given by some make applications.
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to the package provider.
1442 _ACEOF
1443 ac_status=$?
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
1452 ac_builddir=.
1454 case "$ac_dir" in
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464 esac
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1470 case $srcdir in
1471 .) # We are building in place.
1472 ac_srcdir=.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483 esac
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1494 else
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1498 done
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1503 cat <<\_ACEOF
1504 configure
1505 generated by GNU Autoconf 2.64
1507 Copyright (C) 2009 Free Software Foundation, Inc.
1508 This configure script is free software; the Free Software Foundation
1509 gives unlimited permission to copy, distribute and modify it.
1510 _ACEOF
1511 exit
1514 ## ------------------------ ##
1515 ## Autoconf initialization. ##
1516 ## ------------------------ ##
1518 # ac_fn_c_try_compile LINENO
1519 # --------------------------
1520 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_compile ()
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526 case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545 else
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1549 ac_retval=1
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552 return $ac_retval
1554 } # ac_fn_c_try_compile
1556 # ac_fn_c_try_link LINENO
1557 # -----------------------
1558 # Try to link conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_link ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext conftest$ac_exeext
1563 if { { ac_try="$ac_link"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_link") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest$ac_exeext && {
1582 test "$cross_compiling" = yes ||
1583 $as_test_x conftest$ac_exeext
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 ac_retval=1
1592 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1593 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1594 # interfere with the next link command; also delete a directory that is
1595 # left behind by Apple's compiler. We do this before executing the actions.
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 return $ac_retval
1600 } # ac_fn_c_try_link
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_cpp ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } >/dev/null && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=1
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 return $ac_retval
1637 } # ac_fn_c_try_cpp
1639 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1642 # the include files in INCLUDES and setting the cache variable VAR
1643 # accordingly.
1644 ac_fn_c_check_header_mongrel ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1651 $as_echo_n "(cached) " >&6
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 else
1657 # Is the header compilable?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1659 $as_echo_n "checking $2 usability... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 ac_header_compiler=yes
1667 else
1668 ac_header_compiler=no
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1672 $as_echo "$ac_header_compiler" >&6; }
1674 # Is the header present?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1676 $as_echo_n "checking $2 presence... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_cpp "$LINENO"; then :
1682 ac_header_preproc=yes
1683 else
1684 ac_header_preproc=no
1686 rm -f conftest.err conftest.$ac_ext
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1688 $as_echo "$ac_header_preproc" >&6; }
1690 # So? What about this header?
1691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1692 yes:no: )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1694 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 no:yes:* )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1700 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1702 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1704 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1706 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 esac
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 eval "$3=\$ac_header_compiler"
1718 eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 } # ac_fn_c_check_header_mongrel
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1760 ac_retval=$ac_status
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1766 } # ac_fn_c_try_run
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786 eval "$3=yes"
1787 else
1788 eval "$3=no"
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797 } # ac_fn_c_check_header_compile
1799 # ac_fn_c_check_func LINENO FUNC VAR
1800 # ----------------------------------
1801 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1802 ac_fn_c_check_func ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1808 $as_echo_n "(cached) " >&6
1809 else
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1814 #define $2 innocuous_$2
1816 /* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $2 (); below.
1818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1819 <limits.h> exists even on freestanding compilers. */
1821 #ifdef __STDC__
1822 # include <limits.h>
1823 #else
1824 # include <assert.h>
1825 #endif
1827 #undef $2
1829 /* Override any GCC internal prototype to avoid an error.
1830 Use char because int might match the return type of a GCC
1831 builtin and then its argument prototype would still apply. */
1832 #ifdef __cplusplus
1833 extern "C"
1834 #endif
1835 char $2 ();
1836 /* The GNU C library defines this for functions which it implements
1837 to always fail with ENOSYS. Some functions are actually named
1838 something starting with __ and the normal name is an alias. */
1839 #if defined __stub_$2 || defined __stub___$2
1840 choke me
1841 #endif
1844 main ()
1846 return $2 ();
1848 return 0;
1850 _ACEOF
1851 if ac_fn_c_try_link "$LINENO"; then :
1852 eval "$3=yes"
1853 else
1854 eval "$3=no"
1856 rm -f core conftest.err conftest.$ac_objext \
1857 conftest$ac_exeext conftest.$ac_ext
1859 eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_c_check_func
1866 # ac_fn_c_check_decl LINENO SYMBOL VAR
1867 # ------------------------------------
1868 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1869 ac_fn_c_check_decl ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1873 $as_echo_n "checking whether $2 is declared... " >&6; }
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1881 main ()
1883 #ifndef $2
1884 (void) $2;
1885 #endif
1888 return 0;
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 eval "$3=yes"
1893 else
1894 eval "$3=no"
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 } # ac_fn_c_check_decl
1904 cat >config.log <<_ACEOF
1905 This file contains any messages produced by compilers while
1906 running configure, to aid debugging if configure makes a mistake.
1908 It was created by $as_me, which was
1909 generated by GNU Autoconf 2.64. Invocation command line was
1911 $ $0 $@
1913 _ACEOF
1914 exec 5>>config.log
1916 cat <<_ASUNAME
1917 ## --------- ##
1918 ## Platform. ##
1919 ## --------- ##
1921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1933 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1938 _ASUNAME
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 $as_echo "PATH: $as_dir"
1946 done
1947 IFS=$as_save_IFS
1949 } >&5
1951 cat >&5 <<_ACEOF
1954 ## ----------- ##
1955 ## Core tests. ##
1956 ## ----------- ##
1958 _ACEOF
1961 # Keep a trace of the command line.
1962 # Strip out --no-create and --no-recursion so they do not pile up.
1963 # Strip out --silent because we don't want to record it for future runs.
1964 # Also quote any args containing shell meta-characters.
1965 # Make two passes to allow for proper duplicate-argument suppression.
1966 ac_configure_args=
1967 ac_configure_args0=
1968 ac_configure_args1=
1969 ac_must_keep_next=false
1970 for ac_pass in 1 2
1972 for ac_arg
1974 case $ac_arg in
1975 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1977 | -silent | --silent | --silen | --sile | --sil)
1978 continue ;;
1979 *\'*)
1980 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1981 esac
1982 case $ac_pass in
1983 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1985 as_fn_append ac_configure_args1 " '$ac_arg'"
1986 if test $ac_must_keep_next = true; then
1987 ac_must_keep_next=false # Got value, back to normal.
1988 else
1989 case $ac_arg in
1990 *=* | --config-cache | -C | -disable-* | --disable-* \
1991 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1992 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1993 | -with-* | --with-* | -without-* | --without-* | --x)
1994 case "$ac_configure_args0 " in
1995 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1996 esac
1998 -* ) ac_must_keep_next=true ;;
1999 esac
2001 as_fn_append ac_configure_args " '$ac_arg'"
2003 esac
2004 done
2005 done
2006 { ac_configure_args0=; unset ac_configure_args0;}
2007 { ac_configure_args1=; unset ac_configure_args1;}
2009 # When interrupted or exit'd, cleanup temporary files, and complete
2010 # config.log. We remove comments because anyway the quotes in there
2011 # would cause problems or look ugly.
2012 # WARNING: Use '\'' to represent an apostrophe within the trap.
2013 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2014 trap 'exit_status=$?
2015 # Save into config.log some information that might help in debugging.
2017 echo
2019 cat <<\_ASBOX
2020 ## ---------------- ##
2021 ## Cache variables. ##
2022 ## ---------------- ##
2023 _ASBOX
2024 echo
2025 # The following way of writing the cache mishandles newlines in values,
2027 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in #(
2030 *${as_nl}*)
2031 case $ac_var in #(
2032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2034 esac
2035 case $ac_var in #(
2036 _ | IFS | as_nl) ;; #(
2037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2038 *) { eval $ac_var=; unset $ac_var;} ;;
2039 esac ;;
2040 esac
2041 done
2042 (set) 2>&1 |
2043 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2044 *${as_nl}ac_space=\ *)
2045 sed -n \
2046 "s/'\''/'\''\\\\'\'''\''/g;
2047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2048 ;; #(
2050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2052 esac |
2053 sort
2055 echo
2057 cat <<\_ASBOX
2058 ## ----------------- ##
2059 ## Output variables. ##
2060 ## ----------------- ##
2061 _ASBOX
2062 echo
2063 for ac_var in $ac_subst_vars
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
2070 done | sort
2071 echo
2073 if test -n "$ac_subst_files"; then
2074 cat <<\_ASBOX
2075 ## ------------------- ##
2076 ## File substitutions. ##
2077 ## ------------------- ##
2078 _ASBOX
2079 echo
2080 for ac_var in $ac_subst_files
2082 eval ac_val=\$$ac_var
2083 case $ac_val in
2084 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2085 esac
2086 $as_echo "$ac_var='\''$ac_val'\''"
2087 done | sort
2088 echo
2091 if test -s confdefs.h; then
2092 cat <<\_ASBOX
2093 ## ----------- ##
2094 ## confdefs.h. ##
2095 ## ----------- ##
2096 _ASBOX
2097 echo
2098 cat confdefs.h
2099 echo
2101 test "$ac_signal" != 0 &&
2102 $as_echo "$as_me: caught signal $ac_signal"
2103 $as_echo "$as_me: exit $exit_status"
2104 } >&5
2105 rm -f core *.core core.conftest.* &&
2106 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2107 exit $exit_status
2109 for ac_signal in 1 2 13 15; do
2110 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2111 done
2112 ac_signal=0
2114 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2115 rm -f -r conftest* confdefs.h
2117 $as_echo "/* confdefs.h */" > confdefs.h
2119 # Predefined preprocessor variables.
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_NAME "$PACKAGE_NAME"
2123 _ACEOF
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2127 _ACEOF
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2131 _ACEOF
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_STRING "$PACKAGE_STRING"
2135 _ACEOF
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2139 _ACEOF
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_URL "$PACKAGE_URL"
2143 _ACEOF
2146 # Let the site file select an alternate cache file if it wants to.
2147 # Prefer an explicitly selected file to automatically selected ones.
2148 ac_site_file1=NONE
2149 ac_site_file2=NONE
2150 if test -n "$CONFIG_SITE"; then
2151 ac_site_file1=$CONFIG_SITE
2152 elif test "x$prefix" != xNONE; then
2153 ac_site_file1=$prefix/share/config.site
2154 ac_site_file2=$prefix/etc/config.site
2155 else
2156 ac_site_file1=$ac_default_prefix/share/config.site
2157 ac_site_file2=$ac_default_prefix/etc/config.site
2159 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2161 test "x$ac_site_file" = xNONE && continue
2162 if test -r "$ac_site_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2164 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2165 sed 's/^/| /' "$ac_site_file" >&5
2166 . "$ac_site_file"
2168 done
2170 if test -r "$cache_file"; then
2171 # Some versions of bash will fail to source /dev/null (special
2172 # files actually), so we avoid doing that.
2173 if test -f "$cache_file"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2175 $as_echo "$as_me: loading cache $cache_file" >&6;}
2176 case $cache_file in
2177 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2178 *) . "./$cache_file";;
2179 esac
2181 else
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2183 $as_echo "$as_me: creating cache $cache_file" >&6;}
2184 >$cache_file
2187 # Check that the precious variables saved in the cache have kept the same
2188 # value.
2189 ac_cache_corrupted=false
2190 for ac_var in $ac_precious_vars; do
2191 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2192 eval ac_new_set=\$ac_env_${ac_var}_set
2193 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2194 eval ac_new_val=\$ac_env_${ac_var}_value
2195 case $ac_old_set,$ac_new_set in
2196 set,)
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2198 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2199 ac_cache_corrupted=: ;;
2200 ,set)
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2203 ac_cache_corrupted=: ;;
2204 ,);;
2206 if test "x$ac_old_val" != "x$ac_new_val"; then
2207 # differences in whitespace do not lead to failure.
2208 ac_old_val_w=`echo x $ac_old_val`
2209 ac_new_val_w=`echo x $ac_new_val`
2210 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2212 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2213 ac_cache_corrupted=:
2214 else
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2216 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2217 eval $ac_var=\$ac_old_val
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2220 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2222 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2223 fi;;
2224 esac
2225 # Pass precious variables to config.status.
2226 if test "$ac_new_set" = set; then
2227 case $ac_new_val in
2228 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2229 *) ac_arg=$ac_var=$ac_new_val ;;
2230 esac
2231 case " $ac_configure_args " in
2232 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2233 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2234 esac
2236 done
2237 if $ac_cache_corrupted; then
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2241 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2242 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2244 ## -------------------- ##
2245 ## Main body of script. ##
2246 ## -------------------- ##
2248 ac_ext=c
2249 ac_cpp='$CPP $CPPFLAGS'
2250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2260 ac_aux_dir=
2261 for ac_dir in .. "$srcdir"/..; do
2262 for ac_t in install-sh install.sh shtool; do
2263 if test -f "$ac_dir/$ac_t"; then
2264 ac_aux_dir=$ac_dir
2265 ac_install_sh="$ac_aux_dir/$ac_t -c"
2266 break 2
2268 done
2269 done
2270 if test -z "$ac_aux_dir"; then
2271 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2274 # These three variables are undocumented and unsupported,
2275 # and are intended to be withdrawn in a future Autoconf release.
2276 # They can cause serious problems if a builder's source tree is in a directory
2277 # whose full name contains unusual characters.
2278 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2279 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2280 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2283 # Make sure we can run config.sub.
2284 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2285 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2288 $as_echo_n "checking build system type... " >&6; }
2289 if test "${ac_cv_build+set}" = set; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 ac_build_alias=$build_alias
2293 test "x$ac_build_alias" = x &&
2294 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2295 test "x$ac_build_alias" = x &&
2296 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2297 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2298 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2302 $as_echo "$ac_cv_build" >&6; }
2303 case $ac_cv_build in
2304 *-*-*) ;;
2305 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2306 esac
2307 build=$ac_cv_build
2308 ac_save_IFS=$IFS; IFS='-'
2309 set x $ac_cv_build
2310 shift
2311 build_cpu=$1
2312 build_vendor=$2
2313 shift; shift
2314 # Remember, the first character of IFS is used to create $*,
2315 # except with old shells:
2316 build_os=$*
2317 IFS=$ac_save_IFS
2318 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2322 $as_echo_n "checking host system type... " >&6; }
2323 if test "${ac_cv_host+set}" = set; then :
2324 $as_echo_n "(cached) " >&6
2325 else
2326 if test "x$host_alias" = x; then
2327 ac_cv_host=$ac_cv_build
2328 else
2329 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2330 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2335 $as_echo "$ac_cv_host" >&6; }
2336 case $ac_cv_host in
2337 *-*-*) ;;
2338 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2339 esac
2340 host=$ac_cv_host
2341 ac_save_IFS=$IFS; IFS='-'
2342 set x $ac_cv_host
2343 shift
2344 host_cpu=$1
2345 host_vendor=$2
2346 shift; shift
2347 # Remember, the first character of IFS is used to create $*,
2348 # except with old shells:
2349 host_os=$*
2350 IFS=$ac_save_IFS
2351 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2355 $as_echo_n "checking target system type... " >&6; }
2356 if test "${ac_cv_target+set}" = set; then :
2357 $as_echo_n "(cached) " >&6
2358 else
2359 if test "x$target_alias" = x; then
2360 ac_cv_target=$ac_cv_host
2361 else
2362 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2363 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2368 $as_echo "$ac_cv_target" >&6; }
2369 case $ac_cv_target in
2370 *-*-*) ;;
2371 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2372 esac
2373 target=$ac_cv_target
2374 ac_save_IFS=$IFS; IFS='-'
2375 set x $ac_cv_target
2376 shift
2377 target_cpu=$1
2378 target_vendor=$2
2379 shift; shift
2380 # Remember, the first character of IFS is used to create $*,
2381 # except with old shells:
2382 target_os=$*
2383 IFS=$ac_save_IFS
2384 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2387 # The aliases save the names the user supplied, while $host etc.
2388 # will get canonicalized.
2389 test -n "$target_alias" &&
2390 test "$program_prefix$program_suffix$program_transform_name" = \
2391 NONENONEs,x,x, &&
2392 program_prefix=${target_alias}-
2393 ac_ext=c
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 if test -n "$ac_tool_prefix"; then
2399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if test "${ac_cv_prog_CC+set}" = set; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test -n "$CC"; then
2407 ac_cv_prog_CC="$CC" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2420 done
2421 done
2422 IFS=$as_save_IFS
2426 CC=$ac_cv_prog_CC
2427 if test -n "$CC"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2429 $as_echo "$CC" >&6; }
2430 else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2437 if test -z "$ac_cv_prog_CC"; then
2438 ac_ct_CC=$CC
2439 # Extract the first word of "gcc", so it can be a program name with args.
2440 set dummy gcc; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 if test -n "$ac_ct_CC"; then
2447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_ac_ct_CC="gcc"
2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2460 done
2461 done
2462 IFS=$as_save_IFS
2466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467 if test -n "$ac_ct_CC"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2469 $as_echo "$ac_ct_CC" >&6; }
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2475 if test "x$ac_ct_CC" = x; then
2476 CC=""
2477 else
2478 case $cross_compiling:$ac_tool_warned in
2479 yes:)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2482 ac_tool_warned=yes ;;
2483 esac
2484 CC=$ac_ct_CC
2486 else
2487 CC="$ac_cv_prog_CC"
2490 if test -z "$CC"; then
2491 if test -n "$ac_tool_prefix"; then
2492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}cc; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if test "${ac_cv_prog_CC+set}" = set; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_CC="${ac_tool_prefix}cc"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 break 2
2513 done
2514 done
2515 IFS=$as_save_IFS
2519 CC=$ac_cv_prog_CC
2520 if test -n "$CC"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2522 $as_echo "$CC" >&6; }
2523 else
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2531 if test -z "$CC"; then
2532 # Extract the first word of "cc", so it can be a program name with args.
2533 set dummy cc; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 ac_prog_rejected=no
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551 ac_prog_rejected=yes
2552 continue
2554 ac_cv_prog_CC="cc"
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2558 done
2559 done
2560 IFS=$as_save_IFS
2562 if test $ac_prog_rejected = yes; then
2563 # We found a bogon in the path, so make sure we never use it.
2564 set dummy $ac_cv_prog_CC
2565 shift
2566 if test $# != 0; then
2567 # We chose a different compiler from the bogus one.
2568 # However, it has the same basename, so the bogon will be chosen
2569 # first if we set CC to just the basename; use the full file name.
2570 shift
2571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2579 $as_echo "$CC" >&6; }
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2587 if test -z "$CC"; then
2588 if test -n "$ac_tool_prefix"; then
2589 for ac_prog in cl.exe
2591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_CC+set}" = set; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 break 2
2612 done
2613 done
2614 IFS=$as_save_IFS
2618 CC=$ac_cv_prog_CC
2619 if test -n "$CC"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2621 $as_echo "$CC" >&6; }
2622 else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2628 test -n "$CC" && break
2629 done
2631 if test -z "$CC"; then
2632 ac_ct_CC=$CC
2633 for ac_prog in cl.exe
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_ac_ct_CC="$ac_prog"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2656 done
2657 done
2658 IFS=$as_save_IFS
2662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2665 $as_echo "$ac_ct_CC" >&6; }
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2672 test -n "$ac_ct_CC" && break
2673 done
2675 if test "x$ac_ct_CC" = x; then
2676 CC=""
2677 else
2678 case $cross_compiling:$ac_tool_warned in
2679 yes:)
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2682 ac_tool_warned=yes ;;
2683 esac
2684 CC=$ac_ct_CC
2691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2693 as_fn_error "no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." "$LINENO" 5; }
2696 # Provide some information about the compiler.
2697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2698 set X $ac_compile
2699 ac_compiler=$2
2700 for ac_option in --version -v -V -qversion; do
2701 { { ac_try="$ac_compiler $ac_option >&5"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707 $as_echo "$ac_try_echo"; } >&5
2708 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2709 ac_status=$?
2710 if test -s conftest.err; then
2711 sed '10a\
2712 ... rest of stderr output deleted ...
2713 10q' conftest.err >conftest.er1
2714 cat conftest.er1 >&5
2715 rm -f conftest.er1 conftest.err
2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718 test $ac_status = 0; }
2719 done
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2725 main ()
2729 return 0;
2731 _ACEOF
2732 ac_clean_files_save=$ac_clean_files
2733 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2734 # Try to create an executable without -o first, disregard a.out.
2735 # It will help us diagnose broken compilers, and finding out an intuition
2736 # of exeext.
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2738 $as_echo_n "checking for C compiler default output file name... " >&6; }
2739 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2741 # The possible output files:
2742 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2744 ac_rmfiles=
2745 for ac_file in $ac_files
2747 case $ac_file in
2748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2749 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2750 esac
2751 done
2752 rm -f $ac_rmfiles
2754 if { { ac_try="$ac_link_default"
2755 case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2758 esac
2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761 (eval "$ac_link_default") 2>&5
2762 ac_status=$?
2763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764 test $ac_status = 0; }; then :
2765 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2766 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2767 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2768 # so that the user can short-circuit this test for compilers unknown to
2769 # Autoconf.
2770 for ac_file in $ac_files ''
2772 test -f "$ac_file" || continue
2773 case $ac_file in
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2776 [ab].out )
2777 # We found the default executable, but exeext='' is most
2778 # certainly right.
2779 break;;
2780 *.* )
2781 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2782 then :; else
2783 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2785 # We set ac_cv_exeext here because the later test for it is not
2786 # safe: cross compilers may not add the suffix if given an `-o'
2787 # argument, so we may need to know it at that point already.
2788 # Even if this section looks crufty: it has the advantage of
2789 # actually working.
2790 break;;
2792 break;;
2793 esac
2794 done
2795 test "$ac_cv_exeext" = no && ac_cv_exeext=
2797 else
2798 ac_file=''
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2801 $as_echo "$ac_file" >&6; }
2802 if test -z "$ac_file"; then :
2803 $as_echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 { as_fn_set_status 77
2809 as_fn_error "C compiler cannot create executables
2810 See \`config.log' for more details." "$LINENO" 5; }; }
2812 ac_exeext=$ac_cv_exeext
2814 # Check that the compiler produces executables we can run. If not, either
2815 # the compiler is broken, or we cross compile.
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2817 $as_echo_n "checking whether the C compiler works... " >&6; }
2818 # If not cross compiling, check that we can run a simple program.
2819 if test "$cross_compiling" != yes; then
2820 if { ac_try='./$ac_file'
2821 { { case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824 esac
2825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2826 $as_echo "$ac_try_echo"; } >&5
2827 (eval "$ac_try") 2>&5
2828 ac_status=$?
2829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2830 test $ac_status = 0; }; }; then
2831 cross_compiling=no
2832 else
2833 if test "$cross_compiling" = maybe; then
2834 cross_compiling=yes
2835 else
2836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2838 as_fn_error "cannot run C compiled programs.
2839 If you meant to cross compile, use \`--host'.
2840 See \`config.log' for more details." "$LINENO" 5; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2845 $as_echo "yes" >&6; }
2847 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2848 ac_clean_files=$ac_clean_files_save
2849 # Check that the compiler produces executables we can run. If not, either
2850 # the compiler is broken, or we cross compile.
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2852 $as_echo_n "checking whether we are cross compiling... " >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2854 $as_echo "$cross_compiling" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2857 $as_echo_n "checking for suffix of executables... " >&6; }
2858 if { { ac_try="$ac_link"
2859 case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862 esac
2863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864 $as_echo "$ac_try_echo"; } >&5
2865 (eval "$ac_link") 2>&5
2866 ac_status=$?
2867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868 test $ac_status = 0; }; then :
2869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2870 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2871 # work properly (i.e., refer to `conftest.exe'), while it won't with
2872 # `rm'.
2873 for ac_file in conftest.exe conftest conftest.*; do
2874 test -f "$ac_file" || continue
2875 case $ac_file in
2876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2877 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2878 break;;
2879 * ) break;;
2880 esac
2881 done
2882 else
2883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2885 as_fn_error "cannot compute suffix of executables: cannot compile and link
2886 See \`config.log' for more details." "$LINENO" 5; }
2888 rm -f conftest$ac_cv_exeext
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2890 $as_echo "$ac_cv_exeext" >&6; }
2892 rm -f conftest.$ac_ext
2893 EXEEXT=$ac_cv_exeext
2894 ac_exeext=$EXEEXT
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2896 $as_echo_n "checking for suffix of object files... " >&6; }
2897 if test "${ac_cv_objext+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2904 main ()
2908 return 0;
2910 _ACEOF
2911 rm -f conftest.o conftest.obj
2912 if { { ac_try="$ac_compile"
2913 case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916 esac
2917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918 $as_echo "$ac_try_echo"; } >&5
2919 (eval "$ac_compile") 2>&5
2920 ac_status=$?
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }; then :
2923 for ac_file in conftest.o conftest.obj conftest.*; do
2924 test -f "$ac_file" || continue;
2925 case $ac_file in
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2927 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2928 break;;
2929 esac
2930 done
2931 else
2932 $as_echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 as_fn_error "cannot compute suffix of object files: cannot compile
2938 See \`config.log' for more details." "$LINENO" 5; }
2940 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2943 $as_echo "$ac_cv_objext" >&6; }
2944 OBJEXT=$ac_cv_objext
2945 ac_objext=$OBJEXT
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2947 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2948 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2955 main ()
2957 #ifndef __GNUC__
2958 choke me
2959 #endif
2962 return 0;
2964 _ACEOF
2965 if ac_fn_c_try_compile "$LINENO"; then :
2966 ac_compiler_gnu=yes
2967 else
2968 ac_compiler_gnu=no
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2975 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2976 if test $ac_compiler_gnu = yes; then
2977 GCC=yes
2978 else
2979 GCC=
2981 ac_test_CFLAGS=${CFLAGS+set}
2982 ac_save_CFLAGS=$CFLAGS
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2984 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2985 if test "${ac_cv_prog_cc_g+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 ac_save_c_werror_flag=$ac_c_werror_flag
2989 ac_c_werror_flag=yes
2990 ac_cv_prog_cc_g=no
2991 CFLAGS="-g"
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
2996 main ()
3000 return 0;
3002 _ACEOF
3003 if ac_fn_c_try_compile "$LINENO"; then :
3004 ac_cv_prog_cc_g=yes
3005 else
3006 CFLAGS=""
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3011 main ()
3015 return 0;
3017 _ACEOF
3018 if ac_fn_c_try_compile "$LINENO"; then :
3020 else
3021 ac_c_werror_flag=$ac_save_c_werror_flag
3022 CFLAGS="-g"
3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024 /* end confdefs.h. */
3027 main ()
3031 return 0;
3033 _ACEOF
3034 if ac_fn_c_try_compile "$LINENO"; then :
3035 ac_cv_prog_cc_g=yes
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_c_werror_flag=$ac_save_c_werror_flag
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3045 $as_echo "$ac_cv_prog_cc_g" >&6; }
3046 if test "$ac_test_CFLAGS" = set; then
3047 CFLAGS=$ac_save_CFLAGS
3048 elif test $ac_cv_prog_cc_g = yes; then
3049 if test "$GCC" = yes; then
3050 CFLAGS="-g -O2"
3051 else
3052 CFLAGS="-g"
3054 else
3055 if test "$GCC" = yes; then
3056 CFLAGS="-O2"
3057 else
3058 CFLAGS=
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3062 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3063 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 ac_cv_prog_cc_c89=no
3067 ac_save_CC=$CC
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3070 #include <stdarg.h>
3071 #include <stdio.h>
3072 #include <sys/types.h>
3073 #include <sys/stat.h>
3074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3075 struct buf { int x; };
3076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3077 static char *e (p, i)
3078 char **p;
3079 int i;
3081 return p[i];
3083 static char *f (char * (*g) (char **, int), char **p, ...)
3085 char *s;
3086 va_list v;
3087 va_start (v,p);
3088 s = g (p, va_arg (v,int));
3089 va_end (v);
3090 return s;
3093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3094 function prototypes and stuff, but not '\xHH' hex character constants.
3095 These don't provoke an error unfortunately, instead are silently treated
3096 as 'x'. The following induces an error, until -std is added to get
3097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3098 array size at least. It's necessary to write '\x00'==0 to get something
3099 that's true only with -std. */
3100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3103 inside strings and character constants. */
3104 #define FOO(x) 'x'
3105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3107 int test (int i, double x);
3108 struct s1 {int (*f) (int a);};
3109 struct s2 {int (*f) (double a);};
3110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3111 int argc;
3112 char **argv;
3114 main ()
3116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3118 return 0;
3120 _ACEOF
3121 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3124 CC="$ac_save_CC $ac_arg"
3125 if ac_fn_c_try_compile "$LINENO"; then :
3126 ac_cv_prog_cc_c89=$ac_arg
3128 rm -f core conftest.err conftest.$ac_objext
3129 test "x$ac_cv_prog_cc_c89" != "xno" && break
3130 done
3131 rm -f conftest.$ac_ext
3132 CC=$ac_save_CC
3135 # AC_CACHE_VAL
3136 case "x$ac_cv_prog_cc_c89" in
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3139 $as_echo "none needed" >&6; } ;;
3140 xno)
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3142 $as_echo "unsupported" >&6; } ;;
3144 CC="$CC $ac_cv_prog_cc_c89"
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3146 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3147 esac
3148 if test "x$ac_cv_prog_cc_c89" != xno; then :
3152 ac_ext=c
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3160 $as_echo_n "checking for library containing strerror... " >&6; }
3161 if test "${ac_cv_search_strerror+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 ac_func_search_save_LIBS=$LIBS
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3168 /* Override any GCC internal prototype to avoid an error.
3169 Use char because int might match the return type of a GCC
3170 builtin and then its argument prototype would still apply. */
3171 #ifdef __cplusplus
3172 extern "C"
3173 #endif
3174 char strerror ();
3176 main ()
3178 return strerror ();
3180 return 0;
3182 _ACEOF
3183 for ac_lib in '' cposix; do
3184 if test -z "$ac_lib"; then
3185 ac_res="none required"
3186 else
3187 ac_res=-l$ac_lib
3188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3190 if ac_fn_c_try_link "$LINENO"; then :
3191 ac_cv_search_strerror=$ac_res
3193 rm -f core conftest.err conftest.$ac_objext \
3194 conftest$ac_exeext
3195 if test "${ac_cv_search_strerror+set}" = set; then :
3196 break
3198 done
3199 if test "${ac_cv_search_strerror+set}" = set; then :
3201 else
3202 ac_cv_search_strerror=no
3204 rm conftest.$ac_ext
3205 LIBS=$ac_func_search_save_LIBS
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3208 $as_echo "$ac_cv_search_strerror" >&6; }
3209 ac_res=$ac_cv_search_strerror
3210 if test "$ac_res" != no; then :
3211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3216 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3217 am__api_version='1.11'
3219 # Find a good install program. We prefer a C program (faster),
3220 # so one script is as good as another. But avoid the broken or
3221 # incompatible versions:
3222 # SysV /etc/install, /usr/sbin/install
3223 # SunOS /usr/etc/install
3224 # IRIX /sbin/install
3225 # AIX /bin/install
3226 # AmigaOS /C/install, which installs bootblocks on floppy discs
3227 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3230 # OS/2's system install, which has a completely different semantic
3231 # ./install, which can be erroneously created by make from ./install.sh.
3232 # Reject install programs that cannot install multiple files.
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3234 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3235 if test -z "$INSTALL"; then
3236 if test "${ac_cv_path_install+set}" = set; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 # Account for people who put trailing slashes in PATH elements.
3245 case $as_dir/ in #((
3246 ./ | .// | /[cC]/* | \
3247 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3248 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3249 /usr/ucb/* ) ;;
3251 # OSF1 and SCO ODT 3.0 have their own names for install.
3252 # Don't use installbsd from OSF since it installs stuff as root
3253 # by default.
3254 for ac_prog in ginstall scoinst install; do
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3257 if test $ac_prog = install &&
3258 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3259 # AIX install. It has an incompatible calling convention.
3261 elif test $ac_prog = install &&
3262 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3263 # program-specific install script used by HP pwplus--don't use.
3265 else
3266 rm -rf conftest.one conftest.two conftest.dir
3267 echo one > conftest.one
3268 echo two > conftest.two
3269 mkdir conftest.dir
3270 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3271 test -s conftest.one && test -s conftest.two &&
3272 test -s conftest.dir/conftest.one &&
3273 test -s conftest.dir/conftest.two
3274 then
3275 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3276 break 3
3280 done
3281 done
3283 esac
3285 done
3286 IFS=$as_save_IFS
3288 rm -rf conftest.one conftest.two conftest.dir
3291 if test "${ac_cv_path_install+set}" = set; then
3292 INSTALL=$ac_cv_path_install
3293 else
3294 # As a last resort, use the slow shell script. Don't cache a
3295 # value for INSTALL within a source directory, because that will
3296 # break other packages using the cache if that directory is
3297 # removed, or if the value is a relative name.
3298 INSTALL=$ac_install_sh
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3302 $as_echo "$INSTALL" >&6; }
3304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3305 # It thinks the first close brace ends the variable substitution.
3306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3313 $as_echo_n "checking whether build environment is sane... " >&6; }
3314 # Just in case
3315 sleep 1
3316 echo timestamp > conftest.file
3317 # Reject unsafe characters in $srcdir or the absolute working directory
3318 # name. Accept space and tab only in the latter.
3319 am_lf='
3321 case `pwd` in
3322 *[\\\"\#\$\&\'\`$am_lf]*)
3323 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3324 esac
3325 case $srcdir in
3326 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3327 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3328 esac
3330 # Do `set' in a subshell so we don't clobber the current shell's
3331 # arguments. Must try -L first in case configure is actually a
3332 # symlink; some systems play weird games with the mod time of symlinks
3333 # (eg FreeBSD returns the mod time of the symlink's containing
3334 # directory).
3335 if (
3336 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3337 if test "$*" = "X"; then
3338 # -L didn't work.
3339 set X `ls -t "$srcdir/configure" conftest.file`
3341 rm -f conftest.file
3342 if test "$*" != "X $srcdir/configure conftest.file" \
3343 && test "$*" != "X conftest.file $srcdir/configure"; then
3345 # If neither matched, then we have a broken ls. This can happen
3346 # if, for instance, CONFIG_SHELL is bash and it inherits a
3347 # broken ls alias from the environment. This has actually
3348 # happened. Such a system could not be considered "sane".
3349 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3350 alias in your environment" "$LINENO" 5
3353 test "$2" = conftest.file
3355 then
3356 # Ok.
3358 else
3359 as_fn_error "newly created file is older than distributed files!
3360 Check your system clock" "$LINENO" 5
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3363 $as_echo "yes" >&6; }
3364 test "$program_prefix" != NONE &&
3365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3366 # Use a double $ so make ignores it.
3367 test "$program_suffix" != NONE &&
3368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3369 # Double any \ or $.
3370 # By default was `s,x,x', remove it if useless.
3371 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3372 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3374 # expand $ac_aux_dir to an absolute path
3375 am_aux_dir=`cd $ac_aux_dir && pwd`
3377 if test x"${MISSING+set}" != xset; then
3378 case $am_aux_dir in
3379 *\ * | *\ *)
3380 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3382 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3383 esac
3385 # Use eval to expand $SHELL
3386 if eval "$MISSING --run true"; then
3387 am_missing_run="$MISSING --run "
3388 else
3389 am_missing_run=
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3391 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3394 if test x"${install_sh}" != xset; then
3395 case $am_aux_dir in
3396 *\ * | *\ *)
3397 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3399 install_sh="\${SHELL} $am_aux_dir/install-sh"
3400 esac
3403 # Installed binaries are usually stripped using `strip' when the user
3404 # run `make install-strip'. However `strip' might not be the right
3405 # tool to use in cross-compilation environments, therefore Automake
3406 # will honor the `STRIP' environment variable to overrule this program.
3407 if test "$cross_compiling" != no; then
3408 if test -n "$ac_tool_prefix"; then
3409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3410 set dummy ${ac_tool_prefix}strip; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if test "${ac_cv_prog_STRIP+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 if test -n "$STRIP"; then
3417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3430 done
3431 done
3432 IFS=$as_save_IFS
3436 STRIP=$ac_cv_prog_STRIP
3437 if test -n "$STRIP"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3439 $as_echo "$STRIP" >&6; }
3440 else
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3447 if test -z "$ac_cv_prog_STRIP"; then
3448 ac_ct_STRIP=$STRIP
3449 # Extract the first word of "strip", so it can be a program name with args.
3450 set dummy strip; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 if test -n "$ac_ct_STRIP"; then
3457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_ac_ct_STRIP="strip"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3470 done
3471 done
3472 IFS=$as_save_IFS
3476 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3477 if test -n "$ac_ct_STRIP"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3479 $as_echo "$ac_ct_STRIP" >&6; }
3480 else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3485 if test "x$ac_ct_STRIP" = x; then
3486 STRIP=":"
3487 else
3488 case $cross_compiling:$ac_tool_warned in
3489 yes:)
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3492 ac_tool_warned=yes ;;
3493 esac
3494 STRIP=$ac_ct_STRIP
3496 else
3497 STRIP="$ac_cv_prog_STRIP"
3501 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3504 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3505 if test -z "$MKDIR_P"; then
3506 if test "${ac_cv_path_mkdir+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_prog in mkdir gmkdir; do
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3517 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3518 'mkdir (GNU coreutils) '* | \
3519 'mkdir (coreutils) '* | \
3520 'mkdir (fileutils) '4.1*)
3521 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3522 break 3;;
3523 esac
3524 done
3525 done
3526 done
3527 IFS=$as_save_IFS
3531 if test "${ac_cv_path_mkdir+set}" = set; then
3532 MKDIR_P="$ac_cv_path_mkdir -p"
3533 else
3534 # As a last resort, use the slow shell script. Don't cache a
3535 # value for MKDIR_P within a source directory, because that will
3536 # break other packages using the cache if that directory is
3537 # removed, or if the value is a relative name.
3538 test -d ./--version && rmdir ./--version
3539 MKDIR_P="$ac_install_sh -d"
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3543 $as_echo "$MKDIR_P" >&6; }
3545 mkdir_p="$MKDIR_P"
3546 case $mkdir_p in
3547 [\\/$]* | ?:[\\/]*) ;;
3548 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3549 esac
3551 for ac_prog in gawk mawk nawk awk
3553 # Extract the first word of "$ac_prog", so it can be a program name with args.
3554 set dummy $ac_prog; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if test "${ac_cv_prog_AWK+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$AWK"; then
3561 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3570 ac_cv_prog_AWK="$ac_prog"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3574 done
3575 done
3576 IFS=$as_save_IFS
3580 AWK=$ac_cv_prog_AWK
3581 if test -n "$AWK"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3583 $as_echo "$AWK" >&6; }
3584 else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3590 test -n "$AWK" && break
3591 done
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3594 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3595 set x ${MAKE-make}
3596 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3597 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 cat >conftest.make <<\_ACEOF
3601 SHELL = /bin/sh
3602 all:
3603 @echo '@@@%%%=$(MAKE)=@@@%%%'
3604 _ACEOF
3605 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3606 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3607 *@@@%%%=?*=@@@%%%*)
3608 eval ac_cv_prog_make_${ac_make}_set=yes;;
3610 eval ac_cv_prog_make_${ac_make}_set=no;;
3611 esac
3612 rm -f conftest.make
3614 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3616 $as_echo "yes" >&6; }
3617 SET_MAKE=
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 SET_MAKE="MAKE=${MAKE-make}"
3624 rm -rf .tst 2>/dev/null
3625 mkdir .tst 2>/dev/null
3626 if test -d .tst; then
3627 am__leading_dot=.
3628 else
3629 am__leading_dot=_
3631 rmdir .tst 2>/dev/null
3633 DEPDIR="${am__leading_dot}deps"
3635 ac_config_commands="$ac_config_commands depfiles"
3638 am_make=${MAKE-make}
3639 cat > confinc << 'END'
3640 am__doit:
3641 @echo this is the am__doit target
3642 .PHONY: am__doit
3644 # If we don't find an include directive, just comment out the code.
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3646 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3647 am__include="#"
3648 am__quote=
3649 _am_result=none
3650 # First try GNU make style include.
3651 echo "include confinc" > confmf
3652 # Ignore all kinds of additional output from `make'.
3653 case `$am_make -s -f confmf 2> /dev/null` in #(
3654 *the\ am__doit\ target*)
3655 am__include=include
3656 am__quote=
3657 _am_result=GNU
3659 esac
3660 # Now try BSD make style include.
3661 if test "$am__include" = "#"; then
3662 echo '.include "confinc"' > confmf
3663 case `$am_make -s -f confmf 2> /dev/null` in #(
3664 *the\ am__doit\ target*)
3665 am__include=.include
3666 am__quote="\""
3667 _am_result=BSD
3669 esac
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3674 $as_echo "$_am_result" >&6; }
3675 rm -f confinc confmf
3677 # Check whether --enable-dependency-tracking was given.
3678 if test "${enable_dependency_tracking+set}" = set; then :
3679 enableval=$enable_dependency_tracking;
3682 if test "x$enable_dependency_tracking" != xno; then
3683 am_depcomp="$ac_aux_dir/depcomp"
3684 AMDEPBACKSLASH='\'
3686 if test "x$enable_dependency_tracking" != xno; then
3687 AMDEP_TRUE=
3688 AMDEP_FALSE='#'
3689 else
3690 AMDEP_TRUE='#'
3691 AMDEP_FALSE=
3695 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3696 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3697 # is not polluted with repeated "-I."
3698 am__isrc=' -I$(srcdir)'
3699 # test to see if srcdir already configured
3700 if test -f $srcdir/config.status; then
3701 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3705 # test whether we have cygpath
3706 if test -z "$CYGPATH_W"; then
3707 if (cygpath --version) >/dev/null 2>/dev/null; then
3708 CYGPATH_W='cygpath -w'
3709 else
3710 CYGPATH_W=echo
3715 # Define the identity of the package.
3716 PACKAGE=gas
3717 VERSION=${BFD_VERSION}
3720 cat >>confdefs.h <<_ACEOF
3721 #define PACKAGE "$PACKAGE"
3722 _ACEOF
3725 cat >>confdefs.h <<_ACEOF
3726 #define VERSION "$VERSION"
3727 _ACEOF
3729 # Some tools Automake needs.
3731 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3734 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3737 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3740 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3743 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3745 # We need awk for the "check" target. The system "awk" is bad on
3746 # some platforms.
3747 # Always define AMTAR for backward compatibility.
3749 AMTAR=${AMTAR-"${am_missing_run}tar"}
3751 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3756 depcc="$CC" am_compiler_list=
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3759 $as_echo_n "checking dependency style of $depcc... " >&6; }
3760 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3764 # We make a subdir and do the tests there. Otherwise we can end up
3765 # making bogus files that we don't know about and never remove. For
3766 # instance it was reported that on HP-UX the gcc test will end up
3767 # making a dummy file named `D' -- because `-MD' means `put the output
3768 # in D'.
3769 mkdir conftest.dir
3770 # Copy depcomp to subdir because otherwise we won't find it if we're
3771 # using a relative directory.
3772 cp "$am_depcomp" conftest.dir
3773 cd conftest.dir
3774 # We will build objects and dependencies in a subdirectory because
3775 # it helps to detect inapplicable dependency modes. For instance
3776 # both Tru64's cc and ICC support -MD to output dependencies as a
3777 # side effect of compilation, but ICC will put the dependencies in
3778 # the current directory while Tru64 will put them in the object
3779 # directory.
3780 mkdir sub
3782 am_cv_CC_dependencies_compiler_type=none
3783 if test "$am_compiler_list" = ""; then
3784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3786 am__universal=false
3787 case " $depcc " in #(
3788 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3789 esac
3791 for depmode in $am_compiler_list; do
3792 # Setup a source with many dependencies, because some compilers
3793 # like to wrap large dependency lists on column 80 (with \), and
3794 # we should not choose a depcomp mode which is confused by this.
3796 # We need to recreate these files for each test, as the compiler may
3797 # overwrite some of them when testing with obscure command lines.
3798 # This happens at least with the AIX C compiler.
3799 : > sub/conftest.c
3800 for i in 1 2 3 4 5 6; do
3801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3802 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3803 # Solaris 8's {/usr,}/bin/sh.
3804 touch sub/conftst$i.h
3805 done
3806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3809 # mode. It turns out that the SunPro C++ compiler does not properly
3810 # handle `-M -o', and we need to detect this. Also, some Intel
3811 # versions had trouble with output in subdirs
3812 am__obj=sub/conftest.${OBJEXT-o}
3813 am__minus_obj="-o $am__obj"
3814 case $depmode in
3815 gcc)
3816 # This depmode causes a compiler race in universal mode.
3817 test "$am__universal" = false || continue
3819 nosideeffect)
3820 # after this tag, mechanisms are not by side-effect, so they'll
3821 # only be used when explicitly requested
3822 if test "x$enable_dependency_tracking" = xyes; then
3823 continue
3824 else
3825 break
3828 msvisualcpp | msvcmsys)
3829 # This compiler won't grok `-c -o', but also, the minuso test has
3830 # not run yet. These depmodes are late enough in the game, and
3831 # so weak that their functioning should not be impacted.
3832 am__obj=conftest.${OBJEXT-o}
3833 am__minus_obj=
3835 none) break ;;
3836 esac
3837 if depmode=$depmode \
3838 source=sub/conftest.c object=$am__obj \
3839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3841 >/dev/null 2>conftest.err &&
3842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3846 # icc doesn't choke on unknown options, it will just issue warnings
3847 # or remarks (even with -Werror). So we grep stderr for any message
3848 # that says an option was ignored or not supported.
3849 # When given -MP, icc 7.0 and 7.1 complain thusly:
3850 # icc: Command line warning: ignoring option '-M'; no argument required
3851 # The diagnosis changed in icc 8.0:
3852 # icc: Command line remark: option '-MP' not supported
3853 if (grep 'ignoring option' conftest.err ||
3854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3855 am_cv_CC_dependencies_compiler_type=$depmode
3856 break
3859 done
3861 cd ..
3862 rm -rf conftest.dir
3863 else
3864 am_cv_CC_dependencies_compiler_type=none
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3869 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3870 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3873 test "x$enable_dependency_tracking" != xno \
3874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3875 am__fastdepCC_TRUE=
3876 am__fastdepCC_FALSE='#'
3877 else
3878 am__fastdepCC_TRUE='#'
3879 am__fastdepCC_FALSE=
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if test "${ac_cv_prog_CC+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3912 done
3913 done
3914 IFS=$as_save_IFS
3918 CC=$ac_cv_prog_CC
3919 if test -n "$CC"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3921 $as_echo "$CC" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3929 if test -z "$ac_cv_prog_CC"; then
3930 ac_ct_CC=$CC
3931 # Extract the first word of "gcc", so it can be a program name with args.
3932 set dummy gcc; ac_word=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 if test -n "$ac_ct_CC"; then
3939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3940 else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948 ac_cv_prog_ac_ct_CC="gcc"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3952 done
3953 done
3954 IFS=$as_save_IFS
3958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3959 if test -n "$ac_ct_CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961 $as_echo "$ac_ct_CC" >&6; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3967 if test "x$ac_ct_CC" = x; then
3968 CC=""
3969 else
3970 case $cross_compiling:$ac_tool_warned in
3971 yes:)
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974 ac_tool_warned=yes ;;
3975 esac
3976 CC=$ac_ct_CC
3978 else
3979 CC="$ac_cv_prog_CC"
3982 if test -z "$CC"; then
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3985 set dummy ${ac_tool_prefix}cc; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if test "${ac_cv_prog_CC+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC="$CC" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_prog_CC="${ac_tool_prefix}cc"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4005 done
4006 done
4007 IFS=$as_save_IFS
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 $as_echo "$CC" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4023 if test -z "$CC"; then
4024 # Extract the first word of "cc", so it can be a program name with args.
4025 set dummy cc; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if test "${ac_cv_prog_CC+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC="$CC" # Let the user override the test.
4033 else
4034 ac_prog_rejected=no
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4043 ac_prog_rejected=yes
4044 continue
4046 ac_cv_prog_CC="cc"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4050 done
4051 done
4052 IFS=$as_save_IFS
4054 if test $ac_prog_rejected = yes; then
4055 # We found a bogon in the path, so make sure we never use it.
4056 set dummy $ac_cv_prog_CC
4057 shift
4058 if test $# != 0; then
4059 # We chose a different compiler from the bogus one.
4060 # However, it has the same basename, so the bogon will be chosen
4061 # first if we set CC to just the basename; use the full file name.
4062 shift
4063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4068 CC=$ac_cv_prog_CC
4069 if test -n "$CC"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071 $as_echo "$CC" >&6; }
4072 else
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4079 if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
4081 for ac_prog in cl.exe
4083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if test "${ac_cv_prog_CC+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4104 done
4105 done
4106 IFS=$as_save_IFS
4110 CC=$ac_cv_prog_CC
4111 if test -n "$CC"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113 $as_echo "$CC" >&6; }
4114 else
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4120 test -n "$CC" && break
4121 done
4123 if test -z "$CC"; then
4124 ac_ct_CC=$CC
4125 for ac_prog in cl.exe
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy $ac_prog; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$ac_ct_CC"; then
4135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_ac_ct_CC="$ac_prog"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4148 done
4149 done
4150 IFS=$as_save_IFS
4154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4155 if test -n "$ac_ct_CC"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4157 $as_echo "$ac_ct_CC" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4164 test -n "$ac_ct_CC" && break
4165 done
4167 if test "x$ac_ct_CC" = x; then
4168 CC=""
4169 else
4170 case $cross_compiling:$ac_tool_warned in
4171 yes:)
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4174 ac_tool_warned=yes ;;
4175 esac
4176 CC=$ac_ct_CC
4183 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185 as_fn_error "no acceptable C compiler found in \$PATH
4186 See \`config.log' for more details." "$LINENO" 5; }
4188 # Provide some information about the compiler.
4189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4190 set X $ac_compile
4191 ac_compiler=$2
4192 for ac_option in --version -v -V -qversion; do
4193 { { ac_try="$ac_compiler $ac_option >&5"
4194 case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199 $as_echo "$ac_try_echo"; } >&5
4200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4201 ac_status=$?
4202 if test -s conftest.err; then
4203 sed '10a\
4204 ... rest of stderr output deleted ...
4205 10q' conftest.err >conftest.er1
4206 cat conftest.er1 >&5
4207 rm -f conftest.er1 conftest.err
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }
4211 done
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4214 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4215 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4222 main ()
4224 #ifndef __GNUC__
4225 choke me
4226 #endif
4229 return 0;
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_compiler_gnu=yes
4234 else
4235 ac_compiler_gnu=no
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4242 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4243 if test $ac_compiler_gnu = yes; then
4244 GCC=yes
4245 else
4246 GCC=
4248 ac_test_CFLAGS=${CFLAGS+set}
4249 ac_save_CFLAGS=$CFLAGS
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4251 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4252 if test "${ac_cv_prog_cc_g+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 ac_save_c_werror_flag=$ac_c_werror_flag
4256 ac_c_werror_flag=yes
4257 ac_cv_prog_cc_g=no
4258 CFLAGS="-g"
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4263 main ()
4267 return 0;
4269 _ACEOF
4270 if ac_fn_c_try_compile "$LINENO"; then :
4271 ac_cv_prog_cc_g=yes
4272 else
4273 CFLAGS=""
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4278 main ()
4282 return 0;
4284 _ACEOF
4285 if ac_fn_c_try_compile "$LINENO"; then :
4287 else
4288 ac_c_werror_flag=$ac_save_c_werror_flag
4289 CFLAGS="-g"
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4294 main ()
4298 return 0;
4300 _ACEOF
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_g=yes
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_c_werror_flag=$ac_save_c_werror_flag
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4312 $as_echo "$ac_cv_prog_cc_g" >&6; }
4313 if test "$ac_test_CFLAGS" = set; then
4314 CFLAGS=$ac_save_CFLAGS
4315 elif test $ac_cv_prog_cc_g = yes; then
4316 if test "$GCC" = yes; then
4317 CFLAGS="-g -O2"
4318 else
4319 CFLAGS="-g"
4321 else
4322 if test "$GCC" = yes; then
4323 CFLAGS="-O2"
4324 else
4325 CFLAGS=
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4329 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4330 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 ac_cv_prog_cc_c89=no
4334 ac_save_CC=$CC
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337 #include <stdarg.h>
4338 #include <stdio.h>
4339 #include <sys/types.h>
4340 #include <sys/stat.h>
4341 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4342 struct buf { int x; };
4343 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4344 static char *e (p, i)
4345 char **p;
4346 int i;
4348 return p[i];
4350 static char *f (char * (*g) (char **, int), char **p, ...)
4352 char *s;
4353 va_list v;
4354 va_start (v,p);
4355 s = g (p, va_arg (v,int));
4356 va_end (v);
4357 return s;
4360 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4361 function prototypes and stuff, but not '\xHH' hex character constants.
4362 These don't provoke an error unfortunately, instead are silently treated
4363 as 'x'. The following induces an error, until -std is added to get
4364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4365 array size at least. It's necessary to write '\x00'==0 to get something
4366 that's true only with -std. */
4367 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4369 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4370 inside strings and character constants. */
4371 #define FOO(x) 'x'
4372 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4374 int test (int i, double x);
4375 struct s1 {int (*f) (int a);};
4376 struct s2 {int (*f) (double a);};
4377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4378 int argc;
4379 char **argv;
4381 main ()
4383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4385 return 0;
4387 _ACEOF
4388 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4391 CC="$ac_save_CC $ac_arg"
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_prog_cc_c89=$ac_arg
4395 rm -f core conftest.err conftest.$ac_objext
4396 test "x$ac_cv_prog_cc_c89" != "xno" && break
4397 done
4398 rm -f conftest.$ac_ext
4399 CC=$ac_save_CC
4402 # AC_CACHE_VAL
4403 case "x$ac_cv_prog_cc_c89" in
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4406 $as_echo "none needed" >&6; } ;;
4407 xno)
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4409 $as_echo "unsupported" >&6; } ;;
4411 CC="$CC $ac_cv_prog_cc_c89"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4413 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4414 esac
4415 if test "x$ac_cv_prog_cc_c89" != xno; then :
4419 ac_ext=c
4420 ac_cpp='$CPP $CPPFLAGS'
4421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4425 ac_ext=c
4426 ac_cpp='$CPP $CPPFLAGS'
4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4431 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4432 # On Suns, sometimes $CPP names a directory.
4433 if test -n "$CPP" && test -d "$CPP"; then
4434 CPP=
4436 if test -z "$CPP"; then
4437 if test "${ac_cv_prog_CPP+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 # Double quotes because CPP needs to be expanded
4441 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4443 ac_preproc_ok=false
4444 for ac_c_preproc_warn_flag in '' yes
4446 # Use a header file that comes with gcc, so configuring glibc
4447 # with a fresh cross-compiler works.
4448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4449 # <limits.h> exists even on freestanding compilers.
4450 # On the NeXT, cc -E runs the code through the compiler's parser,
4451 # not just through cpp. "Syntax error" is here to catch this case.
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454 #ifdef __STDC__
4455 # include <limits.h>
4456 #else
4457 # include <assert.h>
4458 #endif
4459 Syntax error
4460 _ACEOF
4461 if ac_fn_c_try_cpp "$LINENO"; then :
4463 else
4464 # Broken: fails on valid input.
4465 continue
4467 rm -f conftest.err conftest.$ac_ext
4469 # OK, works on sane cases. Now check whether nonexistent headers
4470 # can be detected and how.
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 #include <ac_nonexistent.h>
4474 _ACEOF
4475 if ac_fn_c_try_cpp "$LINENO"; then :
4476 # Broken: success on invalid input.
4477 continue
4478 else
4479 # Passes both tests.
4480 ac_preproc_ok=:
4481 break
4483 rm -f conftest.err conftest.$ac_ext
4485 done
4486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4487 rm -f conftest.err conftest.$ac_ext
4488 if $ac_preproc_ok; then :
4489 break
4492 done
4493 ac_cv_prog_CPP=$CPP
4496 CPP=$ac_cv_prog_CPP
4497 else
4498 ac_cv_prog_CPP=$CPP
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4501 $as_echo "$CPP" >&6; }
4502 ac_preproc_ok=false
4503 for ac_c_preproc_warn_flag in '' yes
4505 # Use a header file that comes with gcc, so configuring glibc
4506 # with a fresh cross-compiler works.
4507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508 # <limits.h> exists even on freestanding compilers.
4509 # On the NeXT, cc -E runs the code through the compiler's parser,
4510 # not just through cpp. "Syntax error" is here to catch this case.
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4513 #ifdef __STDC__
4514 # include <limits.h>
4515 #else
4516 # include <assert.h>
4517 #endif
4518 Syntax error
4519 _ACEOF
4520 if ac_fn_c_try_cpp "$LINENO"; then :
4522 else
4523 # Broken: fails on valid input.
4524 continue
4526 rm -f conftest.err conftest.$ac_ext
4528 # OK, works on sane cases. Now check whether nonexistent headers
4529 # can be detected and how.
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 #include <ac_nonexistent.h>
4533 _ACEOF
4534 if ac_fn_c_try_cpp "$LINENO"; then :
4535 # Broken: success on invalid input.
4536 continue
4537 else
4538 # Passes both tests.
4539 ac_preproc_ok=:
4540 break
4542 rm -f conftest.err conftest.$ac_ext
4544 done
4545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4546 rm -f conftest.err conftest.$ac_ext
4547 if $ac_preproc_ok; then :
4549 else
4550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4552 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4553 See \`config.log' for more details." "$LINENO" 5; }
4556 ac_ext=c
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4564 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4565 if test "${ac_cv_path_GREP+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -z "$GREP"; then
4569 ac_path_GREP_found=false
4570 # Loop through the user's path and test for each of PROGNAME-LIST
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_prog in grep ggrep; do
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4579 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4580 # Check for GNU ac_path_GREP and select it if it is found.
4581 # Check for GNU $ac_path_GREP
4582 case `"$ac_path_GREP" --version 2>&1` in
4583 *GNU*)
4584 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4586 ac_count=0
4587 $as_echo_n 0123456789 >"conftest.in"
4588 while :
4590 cat "conftest.in" "conftest.in" >"conftest.tmp"
4591 mv "conftest.tmp" "conftest.in"
4592 cp "conftest.in" "conftest.nl"
4593 $as_echo 'GREP' >> "conftest.nl"
4594 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596 as_fn_arith $ac_count + 1 && ac_count=$as_val
4597 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4598 # Best one so far, save it but keep looking for a better one
4599 ac_cv_path_GREP="$ac_path_GREP"
4600 ac_path_GREP_max=$ac_count
4602 # 10*(2^10) chars as input seems more than enough
4603 test $ac_count -gt 10 && break
4604 done
4605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 esac
4608 $ac_path_GREP_found && break 3
4609 done
4610 done
4611 done
4612 IFS=$as_save_IFS
4613 if test -z "$ac_cv_path_GREP"; then
4614 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4616 else
4617 ac_cv_path_GREP=$GREP
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4622 $as_echo "$ac_cv_path_GREP" >&6; }
4623 GREP="$ac_cv_path_GREP"
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4627 $as_echo_n "checking for egrep... " >&6; }
4628 if test "${ac_cv_path_EGREP+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4632 then ac_cv_path_EGREP="$GREP -E"
4633 else
4634 if test -z "$EGREP"; then
4635 ac_path_EGREP_found=false
4636 # Loop through the user's path and test for each of PROGNAME-LIST
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_prog in egrep; do
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4645 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4646 # Check for GNU ac_path_EGREP and select it if it is found.
4647 # Check for GNU $ac_path_EGREP
4648 case `"$ac_path_EGREP" --version 2>&1` in
4649 *GNU*)
4650 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4652 ac_count=0
4653 $as_echo_n 0123456789 >"conftest.in"
4654 while :
4656 cat "conftest.in" "conftest.in" >"conftest.tmp"
4657 mv "conftest.tmp" "conftest.in"
4658 cp "conftest.in" "conftest.nl"
4659 $as_echo 'EGREP' >> "conftest.nl"
4660 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662 as_fn_arith $ac_count + 1 && ac_count=$as_val
4663 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4664 # Best one so far, save it but keep looking for a better one
4665 ac_cv_path_EGREP="$ac_path_EGREP"
4666 ac_path_EGREP_max=$ac_count
4668 # 10*(2^10) chars as input seems more than enough
4669 test $ac_count -gt 10 && break
4670 done
4671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 esac
4674 $ac_path_EGREP_found && break 3
4675 done
4676 done
4677 done
4678 IFS=$as_save_IFS
4679 if test -z "$ac_cv_path_EGREP"; then
4680 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4682 else
4683 ac_cv_path_EGREP=$EGREP
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4689 $as_echo "$ac_cv_path_EGREP" >&6; }
4690 EGREP="$ac_cv_path_EGREP"
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4694 $as_echo_n "checking for ANSI C header files... " >&6; }
4695 if test "${ac_cv_header_stdc+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 #include <stdlib.h>
4701 #include <stdarg.h>
4702 #include <string.h>
4703 #include <float.h>
4706 main ()
4710 return 0;
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714 ac_cv_header_stdc=yes
4715 else
4716 ac_cv_header_stdc=no
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 if test $ac_cv_header_stdc = yes; then
4721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 #include <string.h>
4726 _ACEOF
4727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4728 $EGREP "memchr" >/dev/null 2>&1; then :
4730 else
4731 ac_cv_header_stdc=no
4733 rm -f conftest*
4737 if test $ac_cv_header_stdc = yes; then
4738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 #include <stdlib.h>
4743 _ACEOF
4744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4745 $EGREP "free" >/dev/null 2>&1; then :
4747 else
4748 ac_cv_header_stdc=no
4750 rm -f conftest*
4754 if test $ac_cv_header_stdc = yes; then
4755 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4756 if test "$cross_compiling" = yes; then :
4758 else
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 #include <ctype.h>
4762 #include <stdlib.h>
4763 #if ((' ' & 0x0FF) == 0x020)
4764 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4765 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4766 #else
4767 # define ISLOWER(c) \
4768 (('a' <= (c) && (c) <= 'i') \
4769 || ('j' <= (c) && (c) <= 'r') \
4770 || ('s' <= (c) && (c) <= 'z'))
4771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4772 #endif
4774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4776 main ()
4778 int i;
4779 for (i = 0; i < 256; i++)
4780 if (XOR (islower (i), ISLOWER (i))
4781 || toupper (i) != TOUPPER (i))
4782 return 2;
4783 return 0;
4785 _ACEOF
4786 if ac_fn_c_try_run "$LINENO"; then :
4788 else
4789 ac_cv_header_stdc=no
4791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4792 conftest.$ac_objext conftest.beam conftest.$ac_ext
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4798 $as_echo "$ac_cv_header_stdc" >&6; }
4799 if test $ac_cv_header_stdc = yes; then
4801 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4805 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4806 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4807 inttypes.h stdint.h unistd.h
4808 do :
4809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4810 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4812 eval as_val=\$$as_ac_Header
4813 if test "x$as_val" = x""yes; then :
4814 cat >>confdefs.h <<_ACEOF
4815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4816 _ACEOF
4820 done
4824 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4825 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4826 MINIX=yes
4827 else
4828 MINIX=
4832 if test "$MINIX" = yes; then
4834 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4837 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4840 $as_echo "#define _MINIX 1" >>confdefs.h
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4846 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4847 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4853 # define __EXTENSIONS__ 1
4854 $ac_includes_default
4856 main ()
4860 return 0;
4862 _ACEOF
4863 if ac_fn_c_try_compile "$LINENO"; then :
4864 ac_cv_safe_to_define___extensions__=yes
4865 else
4866 ac_cv_safe_to_define___extensions__=no
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4871 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4872 test $ac_cv_safe_to_define___extensions__ = yes &&
4873 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4875 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4877 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4879 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4881 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4887 # The tests for host and target for $enable_largefile require
4888 # canonical names.
4892 # As the $enable_largefile decision depends on --enable-plugins we must set it
4893 # even in directories otherwise not depending on the $plugins option.
4896 # Check whether --enable-plugins was given.
4897 if test "${enable_plugins+set}" = set; then :
4898 enableval=$enable_plugins; case "${enableval}" in
4899 yes | "") plugins=yes ;;
4900 no) plugins=no ;;
4901 *) plugins=yes ;;
4902 esac
4903 else
4904 plugins=no
4909 case "${host}" in
4910 sparc-*-solaris*|i[3-7]86-*-solaris*)
4911 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4912 # are mutually exclusive; and without procfs support, the bfd/ elf module
4913 # cannot provide certain routines such as elfcore_write_prpsinfo
4914 # or elfcore_write_prstatus. So unless the user explicitly requested
4915 # large-file support through the --enable-largefile switch, disable
4916 # large-file support in favor of procfs support.
4917 test "${target}" = "${host}" -a "x$plugins" = xno \
4918 && : ${enable_largefile="no"}
4920 esac
4922 # Check whether --enable-largefile was given.
4923 if test "${enable_largefile+set}" = set; then :
4924 enableval=$enable_largefile;
4927 if test "$enable_largefile" != no; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4930 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4931 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 ac_cv_sys_largefile_CC=no
4935 if test "$GCC" != yes; then
4936 ac_save_CC=$CC
4937 while :; do
4938 # IRIX 6.2 and later do not support large files by default,
4939 # so use the C compiler's -n32 option if that helps.
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 #include <sys/types.h>
4943 /* Check that off_t can represent 2**63 - 1 correctly.
4944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4945 since some C++ compilers masquerading as C compilers
4946 incorrectly reject 9223372036854775807. */
4947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4949 && LARGE_OFF_T % 2147483647 == 1)
4950 ? 1 : -1];
4952 main ()
4956 return 0;
4958 _ACEOF
4959 if ac_fn_c_try_compile "$LINENO"; then :
4960 break
4962 rm -f core conftest.err conftest.$ac_objext
4963 CC="$CC -n32"
4964 if ac_fn_c_try_compile "$LINENO"; then :
4965 ac_cv_sys_largefile_CC=' -n32'; break
4967 rm -f core conftest.err conftest.$ac_objext
4968 break
4969 done
4970 CC=$ac_save_CC
4971 rm -f conftest.$ac_ext
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4975 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4976 if test "$ac_cv_sys_largefile_CC" != no; then
4977 CC=$CC$ac_cv_sys_largefile_CC
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4981 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4982 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 while :; do
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #include <sys/types.h>
4989 /* Check that off_t can represent 2**63 - 1 correctly.
4990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4991 since some C++ compilers masquerading as C compilers
4992 incorrectly reject 9223372036854775807. */
4993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4995 && LARGE_OFF_T % 2147483647 == 1)
4996 ? 1 : -1];
4998 main ()
5002 return 0;
5004 _ACEOF
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 ac_cv_sys_file_offset_bits=no; break
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 #define _FILE_OFFSET_BITS 64
5012 #include <sys/types.h>
5013 /* Check that off_t can represent 2**63 - 1 correctly.
5014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5015 since some C++ compilers masquerading as C compilers
5016 incorrectly reject 9223372036854775807. */
5017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5019 && LARGE_OFF_T % 2147483647 == 1)
5020 ? 1 : -1];
5022 main ()
5026 return 0;
5028 _ACEOF
5029 if ac_fn_c_try_compile "$LINENO"; then :
5030 ac_cv_sys_file_offset_bits=64; break
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 ac_cv_sys_file_offset_bits=unknown
5034 break
5035 done
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5038 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5039 case $ac_cv_sys_file_offset_bits in #(
5040 no | unknown) ;;
5042 cat >>confdefs.h <<_ACEOF
5043 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5044 _ACEOF
5046 esac
5047 rm -rf conftest*
5048 if test $ac_cv_sys_file_offset_bits = unknown; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5050 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5051 if test "${ac_cv_sys_large_files+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 while :; do
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 #include <sys/types.h>
5058 /* Check that off_t can represent 2**63 - 1 correctly.
5059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5060 since some C++ compilers masquerading as C compilers
5061 incorrectly reject 9223372036854775807. */
5062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5064 && LARGE_OFF_T % 2147483647 == 1)
5065 ? 1 : -1];
5067 main ()
5071 return 0;
5073 _ACEOF
5074 if ac_fn_c_try_compile "$LINENO"; then :
5075 ac_cv_sys_large_files=no; break
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5080 #define _LARGE_FILES 1
5081 #include <sys/types.h>
5082 /* Check that off_t can represent 2**63 - 1 correctly.
5083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5084 since some C++ compilers masquerading as C compilers
5085 incorrectly reject 9223372036854775807. */
5086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5088 && LARGE_OFF_T % 2147483647 == 1)
5089 ? 1 : -1];
5091 main ()
5095 return 0;
5097 _ACEOF
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 ac_cv_sys_large_files=1; break
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 ac_cv_sys_large_files=unknown
5103 break
5104 done
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5107 $as_echo "$ac_cv_sys_large_files" >&6; }
5108 case $ac_cv_sys_large_files in #(
5109 no | unknown) ;;
5111 cat >>confdefs.h <<_ACEOF
5112 #define _LARGE_FILES $ac_cv_sys_large_files
5113 _ACEOF
5115 esac
5116 rm -rf conftest*
5122 case `pwd` in
5123 *\ * | *\ *)
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5125 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5126 esac
5130 macro_version='2.2.7a'
5131 macro_revision='1.3134'
5145 ltmain="$ac_aux_dir/ltmain.sh"
5147 # Backslashify metacharacters that are still active within
5148 # double-quoted strings.
5149 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5151 # Same as above, but do not quote variable references.
5152 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5154 # Sed substitution to delay expansion of an escaped shell variable in a
5155 # double_quote_subst'ed string.
5156 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5158 # Sed substitution to delay expansion of an escaped single quote.
5159 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5161 # Sed substitution to avoid accidental globbing in evaled expressions
5162 no_glob_subst='s/\*/\\\*/g'
5164 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5165 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5166 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5169 $as_echo_n "checking how to print strings... " >&6; }
5170 # Test print first, because it will be a builtin if present.
5171 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5172 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5173 ECHO='print -r --'
5174 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5175 ECHO='printf %s\n'
5176 else
5177 # Use this function as a fallback that always works.
5178 func_fallback_echo ()
5180 eval 'cat <<_LTECHO_EOF
5182 _LTECHO_EOF'
5184 ECHO='func_fallback_echo'
5187 # func_echo_all arg...
5188 # Invoke $ECHO with all args, space-separated.
5189 func_echo_all ()
5191 $ECHO ""
5194 case "$ECHO" in
5195 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5196 $as_echo "printf" >&6; } ;;
5197 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5198 $as_echo "print -r" >&6; } ;;
5199 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5200 $as_echo "cat" >&6; } ;;
5201 esac
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5217 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5218 if test "${ac_cv_path_SED+set}" = set; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5222 for ac_i in 1 2 3 4 5 6 7; do
5223 ac_script="$ac_script$as_nl$ac_script"
5224 done
5225 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5226 { ac_script=; unset ac_script;}
5227 if test -z "$SED"; then
5228 ac_path_SED_found=false
5229 # Loop through the user's path and test for each of PROGNAME-LIST
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_prog in sed gsed; do
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5238 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5239 # Check for GNU ac_path_SED and select it if it is found.
5240 # Check for GNU $ac_path_SED
5241 case `"$ac_path_SED" --version 2>&1` in
5242 *GNU*)
5243 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5245 ac_count=0
5246 $as_echo_n 0123456789 >"conftest.in"
5247 while :
5249 cat "conftest.in" "conftest.in" >"conftest.tmp"
5250 mv "conftest.tmp" "conftest.in"
5251 cp "conftest.in" "conftest.nl"
5252 $as_echo '' >> "conftest.nl"
5253 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5255 as_fn_arith $ac_count + 1 && ac_count=$as_val
5256 if test $ac_count -gt ${ac_path_SED_max-0}; then
5257 # Best one so far, save it but keep looking for a better one
5258 ac_cv_path_SED="$ac_path_SED"
5259 ac_path_SED_max=$ac_count
5261 # 10*(2^10) chars as input seems more than enough
5262 test $ac_count -gt 10 && break
5263 done
5264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5265 esac
5267 $ac_path_SED_found && break 3
5268 done
5269 done
5270 done
5271 IFS=$as_save_IFS
5272 if test -z "$ac_cv_path_SED"; then
5273 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5275 else
5276 ac_cv_path_SED=$SED
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5281 $as_echo "$ac_cv_path_SED" >&6; }
5282 SED="$ac_cv_path_SED"
5283 rm -f conftest.sed
5285 test -z "$SED" && SED=sed
5286 Xsed="$SED -e 1s/^X//"
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5299 $as_echo_n "checking for fgrep... " >&6; }
5300 if test "${ac_cv_path_FGREP+set}" = set; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5304 then ac_cv_path_FGREP="$GREP -F"
5305 else
5306 if test -z "$FGREP"; then
5307 ac_path_FGREP_found=false
5308 # Loop through the user's path and test for each of PROGNAME-LIST
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_prog in fgrep; do
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5317 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5318 # Check for GNU ac_path_FGREP and select it if it is found.
5319 # Check for GNU $ac_path_FGREP
5320 case `"$ac_path_FGREP" --version 2>&1` in
5321 *GNU*)
5322 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5324 ac_count=0
5325 $as_echo_n 0123456789 >"conftest.in"
5326 while :
5328 cat "conftest.in" "conftest.in" >"conftest.tmp"
5329 mv "conftest.tmp" "conftest.in"
5330 cp "conftest.in" "conftest.nl"
5331 $as_echo 'FGREP' >> "conftest.nl"
5332 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5334 as_fn_arith $ac_count + 1 && ac_count=$as_val
5335 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5336 # Best one so far, save it but keep looking for a better one
5337 ac_cv_path_FGREP="$ac_path_FGREP"
5338 ac_path_FGREP_max=$ac_count
5340 # 10*(2^10) chars as input seems more than enough
5341 test $ac_count -gt 10 && break
5342 done
5343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5344 esac
5346 $ac_path_FGREP_found && break 3
5347 done
5348 done
5349 done
5350 IFS=$as_save_IFS
5351 if test -z "$ac_cv_path_FGREP"; then
5352 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5354 else
5355 ac_cv_path_FGREP=$FGREP
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5361 $as_echo "$ac_cv_path_FGREP" >&6; }
5362 FGREP="$ac_cv_path_FGREP"
5365 test -z "$GREP" && GREP=grep
5385 # Check whether --with-gnu-ld was given.
5386 if test "${with_gnu_ld+set}" = set; then :
5387 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5388 else
5389 with_gnu_ld=no
5392 ac_prog=ld
5393 if test "$GCC" = yes; then
5394 # Check if gcc -print-prog-name=ld gives a path.
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5396 $as_echo_n "checking for ld used by $CC... " >&6; }
5397 case $host in
5398 *-*-mingw*)
5399 # gcc leaves a trailing carriage return which upsets mingw
5400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5403 esac
5404 case $ac_prog in
5405 # Accept absolute paths.
5406 [\\/]* | ?:[\\/]*)
5407 re_direlt='/[^/][^/]*/\.\./'
5408 # Canonicalize the pathname of ld
5409 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5410 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5411 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5412 done
5413 test -z "$LD" && LD="$ac_prog"
5416 # If it fails, then pretend we aren't using GCC.
5417 ac_prog=ld
5420 # If it is relative, then search for the first ld in PATH.
5421 with_gnu_ld=unknown
5423 esac
5424 elif test "$with_gnu_ld" = yes; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5426 $as_echo_n "checking for GNU ld... " >&6; }
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5429 $as_echo_n "checking for non-GNU ld... " >&6; }
5431 if test "${lt_cv_path_LD+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 if test -z "$LD"; then
5435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5436 for ac_dir in $PATH; do
5437 IFS="$lt_save_ifs"
5438 test -z "$ac_dir" && ac_dir=.
5439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5440 lt_cv_path_LD="$ac_dir/$ac_prog"
5441 # Check to see if the program is GNU ld. I'd rather use --version,
5442 # but apparently some variants of GNU ld only accept -v.
5443 # Break only if it was the GNU/non-GNU ld that we prefer.
5444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5445 *GNU* | *'with BFD'*)
5446 test "$with_gnu_ld" != no && break
5449 test "$with_gnu_ld" != yes && break
5451 esac
5453 done
5454 IFS="$lt_save_ifs"
5455 else
5456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5460 LD="$lt_cv_path_LD"
5461 if test -n "$LD"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5463 $as_echo "$LD" >&6; }
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5468 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5470 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5471 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5475 case `$LD -v 2>&1 </dev/null` in
5476 *GNU* | *'with BFD'*)
5477 lt_cv_prog_gnu_ld=yes
5480 lt_cv_prog_gnu_ld=no
5482 esac
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5485 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5486 with_gnu_ld=$lt_cv_prog_gnu_ld
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5497 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5498 if test "${lt_cv_path_NM+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$NM"; then
5502 # Let the user override the test.
5503 lt_cv_path_NM="$NM"
5504 else
5505 lt_nm_to_check="${ac_tool_prefix}nm"
5506 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5507 lt_nm_to_check="$lt_nm_to_check nm"
5509 for lt_tmp_nm in $lt_nm_to_check; do
5510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5511 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5512 IFS="$lt_save_ifs"
5513 test -z "$ac_dir" && ac_dir=.
5514 tmp_nm="$ac_dir/$lt_tmp_nm"
5515 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5516 # Check to see if the nm accepts a BSD-compat flag.
5517 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5518 # nm: unknown option "B" ignored
5519 # Tru64's nm complains that /dev/null is an invalid object file
5520 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5521 */dev/null* | *'Invalid file or object type'*)
5522 lt_cv_path_NM="$tmp_nm -B"
5523 break
5526 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5527 */dev/null*)
5528 lt_cv_path_NM="$tmp_nm -p"
5529 break
5532 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5533 continue # so that we can try to find one that supports BSD flags
5535 esac
5537 esac
5539 done
5540 IFS="$lt_save_ifs"
5541 done
5542 : ${lt_cv_path_NM=no}
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5546 $as_echo "$lt_cv_path_NM" >&6; }
5547 if test "$lt_cv_path_NM" != "no"; then
5548 NM="$lt_cv_path_NM"
5549 else
5550 # Didn't find any BSD compatible name lister, look for dumpbin.
5551 if test -n "$DUMPBIN"; then :
5552 # Let the user override the test.
5553 else
5554 if test -n "$ac_tool_prefix"; then
5555 for ac_prog in dumpbin "link -dump"
5557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 if test -n "$DUMPBIN"; then
5565 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5566 else
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5578 done
5579 done
5580 IFS=$as_save_IFS
5584 DUMPBIN=$ac_cv_prog_DUMPBIN
5585 if test -n "$DUMPBIN"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5587 $as_echo "$DUMPBIN" >&6; }
5588 else
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5594 test -n "$DUMPBIN" && break
5595 done
5597 if test -z "$DUMPBIN"; then
5598 ac_ct_DUMPBIN=$DUMPBIN
5599 for ac_prog in dumpbin "link -dump"
5601 # Extract the first word of "$ac_prog", so it can be a program name with args.
5602 set dummy $ac_prog; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$ac_ct_DUMPBIN"; then
5609 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5622 done
5623 done
5624 IFS=$as_save_IFS
5628 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5629 if test -n "$ac_ct_DUMPBIN"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5631 $as_echo "$ac_ct_DUMPBIN" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5638 test -n "$ac_ct_DUMPBIN" && break
5639 done
5641 if test "x$ac_ct_DUMPBIN" = x; then
5642 DUMPBIN=":"
5643 else
5644 case $cross_compiling:$ac_tool_warned in
5645 yes:)
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5648 ac_tool_warned=yes ;;
5649 esac
5650 DUMPBIN=$ac_ct_DUMPBIN
5654 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5655 *COFF*)
5656 DUMPBIN="$DUMPBIN -symbols"
5659 DUMPBIN=:
5661 esac
5664 if test "$DUMPBIN" != ":"; then
5665 NM="$DUMPBIN"
5668 test -z "$NM" && NM=nm
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5676 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5677 if test "${lt_cv_nm_interface+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 lt_cv_nm_interface="BSD nm"
5681 echo "int some_variable = 0;" > conftest.$ac_ext
5682 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5683 (eval "$ac_compile" 2>conftest.err)
5684 cat conftest.err >&5
5685 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5686 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5687 cat conftest.err >&5
5688 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5689 cat conftest.out >&5
5690 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5691 lt_cv_nm_interface="MS dumpbin"
5693 rm -f conftest*
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5696 $as_echo "$lt_cv_nm_interface" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5699 $as_echo_n "checking whether ln -s works... " >&6; }
5700 LN_S=$as_ln_s
5701 if test "$LN_S" = "ln -s"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5703 $as_echo "yes" >&6; }
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5706 $as_echo "no, using $LN_S" >&6; }
5709 # find the maximum length of command line arguments
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5711 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5712 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5716 teststring="ABCD"
5718 case $build_os in
5719 msdosdjgpp*)
5720 # On DJGPP, this test can blow up pretty badly due to problems in libc
5721 # (any single argument exceeding 2000 bytes causes a buffer overrun
5722 # during glob expansion). Even if it were fixed, the result of this
5723 # check would be larger than it should be.
5724 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5727 gnu*)
5728 # Under GNU Hurd, this test is not required because there is
5729 # no limit to the length of command line arguments.
5730 # Libtool will interpret -1 as no limit whatsoever
5731 lt_cv_sys_max_cmd_len=-1;
5734 cygwin* | mingw* | cegcc*)
5735 # On Win9x/ME, this test blows up -- it succeeds, but takes
5736 # about 5 minutes as the teststring grows exponentially.
5737 # Worse, since 9x/ME are not pre-emptively multitasking,
5738 # you end up with a "frozen" computer, even though with patience
5739 # the test eventually succeeds (with a max line length of 256k).
5740 # Instead, let's just punt: use the minimum linelength reported by
5741 # all of the supported platforms: 8192 (on NT/2K/XP).
5742 lt_cv_sys_max_cmd_len=8192;
5745 mint*)
5746 # On MiNT this can take a long time and run out of memory.
5747 lt_cv_sys_max_cmd_len=8192;
5750 amigaos*)
5751 # On AmigaOS with pdksh, this test takes hours, literally.
5752 # So we just punt and use a minimum line length of 8192.
5753 lt_cv_sys_max_cmd_len=8192;
5756 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5757 # This has been around since 386BSD, at least. Likely further.
5758 if test -x /sbin/sysctl; then
5759 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5760 elif test -x /usr/sbin/sysctl; then
5761 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5762 else
5763 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5765 # And add a safety zone
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5770 interix*)
5771 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5772 lt_cv_sys_max_cmd_len=196608
5775 osf*)
5776 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5777 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5778 # nice to cause kernel panics so lets avoid the loop below.
5779 # First set a reasonable default.
5780 lt_cv_sys_max_cmd_len=16384
5782 if test -x /sbin/sysconfig; then
5783 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5784 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5785 esac
5788 sco3.2v5*)
5789 lt_cv_sys_max_cmd_len=102400
5791 sysv5* | sco5v6* | sysv4.2uw2*)
5792 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5793 if test -n "$kargmax"; then
5794 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5795 else
5796 lt_cv_sys_max_cmd_len=32768
5800 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5801 if test -n "$lt_cv_sys_max_cmd_len"; then
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5804 else
5805 # Make teststring a little bigger before we do anything with it.
5806 # a 1K string should be a reasonable start.
5807 for i in 1 2 3 4 5 6 7 8 ; do
5808 teststring=$teststring$teststring
5809 done
5810 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5811 # If test is not a shell built-in, we'll probably end up computing a
5812 # maximum length that is only half of the actual maximum length, but
5813 # we can't tell.
5814 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5815 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5816 test $i != 17 # 1/2 MB should be enough
5818 i=`expr $i + 1`
5819 teststring=$teststring$teststring
5820 done
5821 # Only check the string length outside the loop.
5822 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5823 teststring=
5824 # Add a significant safety factor because C++ compilers can tack on
5825 # massive amounts of additional arguments before passing them to the
5826 # linker. It appears as though 1/2 is a usable value.
5827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5830 esac
5834 if test -n $lt_cv_sys_max_cmd_len ; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5836 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5837 else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5839 $as_echo "none" >&6; }
5841 max_cmd_len=$lt_cv_sys_max_cmd_len
5848 : ${CP="cp -f"}
5849 : ${MV="mv -f"}
5850 : ${RM="rm -f"}
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5853 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5854 # Try some XSI features
5855 xsi_shell=no
5856 ( _lt_dummy="a/b/c"
5857 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5858 = c,a/b,, \
5859 && eval 'test $(( 1 + 1 )) -eq 2 \
5860 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5861 && xsi_shell=yes
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5863 $as_echo "$xsi_shell" >&6; }
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5867 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5868 lt_shell_append=no
5869 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5870 >/dev/null 2>&1 \
5871 && lt_shell_append=yes
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5873 $as_echo "$lt_shell_append" >&6; }
5876 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5877 lt_unset=unset
5878 else
5879 lt_unset=false
5886 # test EBCDIC or ASCII
5887 case `echo X|tr X '\101'` in
5888 A) # ASCII based system
5889 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5890 lt_SP2NL='tr \040 \012'
5891 lt_NL2SP='tr \015\012 \040\040'
5893 *) # EBCDIC based system
5894 lt_SP2NL='tr \100 \n'
5895 lt_NL2SP='tr \r\n \100\100'
5897 esac
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5908 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5909 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 lt_cv_ld_reload_flag='-r'
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5915 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5916 reload_flag=$lt_cv_ld_reload_flag
5917 case $reload_flag in
5918 "" | " "*) ;;
5919 *) reload_flag=" $reload_flag" ;;
5920 esac
5921 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5922 case $host_os in
5923 darwin*)
5924 if test "$GCC" = yes; then
5925 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5926 else
5927 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5930 esac
5940 if test -n "$ac_tool_prefix"; then
5941 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5942 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if test -n "$OBJDUMP"; then
5949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5962 done
5963 done
5964 IFS=$as_save_IFS
5968 OBJDUMP=$ac_cv_prog_OBJDUMP
5969 if test -n "$OBJDUMP"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5971 $as_echo "$OBJDUMP" >&6; }
5972 else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5979 if test -z "$ac_cv_prog_OBJDUMP"; then
5980 ac_ct_OBJDUMP=$OBJDUMP
5981 # Extract the first word of "objdump", so it can be a program name with args.
5982 set dummy objdump; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 if test -n "$ac_ct_OBJDUMP"; then
5989 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5998 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6002 done
6003 done
6004 IFS=$as_save_IFS
6008 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6009 if test -n "$ac_ct_OBJDUMP"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6011 $as_echo "$ac_ct_OBJDUMP" >&6; }
6012 else
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6017 if test "x$ac_ct_OBJDUMP" = x; then
6018 OBJDUMP="false"
6019 else
6020 case $cross_compiling:$ac_tool_warned in
6021 yes:)
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned=yes ;;
6025 esac
6026 OBJDUMP=$ac_ct_OBJDUMP
6028 else
6029 OBJDUMP="$ac_cv_prog_OBJDUMP"
6032 test -z "$OBJDUMP" && OBJDUMP=objdump
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6043 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6044 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 lt_cv_file_magic_cmd='$MAGIC_CMD'
6048 lt_cv_file_magic_test_file=
6049 lt_cv_deplibs_check_method='unknown'
6050 # Need to set the preceding variable on all platforms that support
6051 # interlibrary dependencies.
6052 # 'none' -- dependencies not supported.
6053 # `unknown' -- same as none, but documents that we really don't know.
6054 # 'pass_all' -- all dependencies passed with no checks.
6055 # 'test_compile' -- check by making test program.
6056 # 'file_magic [[regex]]' -- check by looking for files in library path
6057 # which responds to the $file_magic_cmd with a given extended regex.
6058 # If you have `file' or equivalent on your system and you're not sure
6059 # whether `pass_all' will *always* work, you probably want this one.
6061 case $host_os in
6062 aix[4-9]*)
6063 lt_cv_deplibs_check_method=pass_all
6066 beos*)
6067 lt_cv_deplibs_check_method=pass_all
6070 bsdi[45]*)
6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6072 lt_cv_file_magic_cmd='/usr/bin/file -L'
6073 lt_cv_file_magic_test_file=/shlib/libc.so
6076 cygwin*)
6077 # func_win32_libid is a shell function defined in ltmain.sh
6078 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6079 lt_cv_file_magic_cmd='func_win32_libid'
6082 mingw* | pw32*)
6083 # Base MSYS/MinGW do not provide the 'file' command needed by
6084 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6085 # unless we find 'file', for example because we are cross-compiling.
6086 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6087 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6089 lt_cv_file_magic_cmd='func_win32_libid'
6090 else
6091 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6092 lt_cv_file_magic_cmd='$OBJDUMP -f'
6096 cegcc*)
6097 # use the weaker test based on 'objdump'. See mingw*.
6098 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6099 lt_cv_file_magic_cmd='$OBJDUMP -f'
6102 darwin* | rhapsody*)
6103 lt_cv_deplibs_check_method=pass_all
6106 freebsd* | dragonfly*)
6107 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6108 case $host_cpu in
6109 i*86 )
6110 # Not sure whether the presence of OpenBSD here was a mistake.
6111 # Let's accept both of them until this is cleared up.
6112 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6113 lt_cv_file_magic_cmd=/usr/bin/file
6114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6116 esac
6117 else
6118 lt_cv_deplibs_check_method=pass_all
6122 gnu*)
6123 lt_cv_deplibs_check_method=pass_all
6126 haiku*)
6127 lt_cv_deplibs_check_method=pass_all
6130 hpux10.20* | hpux11*)
6131 lt_cv_file_magic_cmd=/usr/bin/file
6132 case $host_cpu in
6133 ia64*)
6134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6135 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6137 hppa*64*)
6138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6139 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6142 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6143 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6145 esac
6148 interix[3-9]*)
6149 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6153 irix5* | irix6* | nonstopux*)
6154 case $LD in
6155 *-32|*"-32 ") libmagic=32-bit;;
6156 *-n32|*"-n32 ") libmagic=N32;;
6157 *-64|*"-64 ") libmagic=64-bit;;
6158 *) libmagic=never-match;;
6159 esac
6160 lt_cv_deplibs_check_method=pass_all
6163 # This must be Linux ELF.
6164 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6165 lt_cv_deplibs_check_method=pass_all
6168 netbsd*)
6169 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6171 else
6172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6176 newos6*)
6177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6178 lt_cv_file_magic_cmd=/usr/bin/file
6179 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6182 *nto* | *qnx*)
6183 lt_cv_deplibs_check_method=pass_all
6186 openbsd*)
6187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6189 else
6190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6194 osf3* | osf4* | osf5*)
6195 lt_cv_deplibs_check_method=pass_all
6198 rdos*)
6199 lt_cv_deplibs_check_method=pass_all
6202 solaris*)
6203 lt_cv_deplibs_check_method=pass_all
6206 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6207 lt_cv_deplibs_check_method=pass_all
6210 sysv4 | sysv4.3*)
6211 case $host_vendor in
6212 motorola)
6213 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]'
6214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6216 ncr)
6217 lt_cv_deplibs_check_method=pass_all
6219 sequent)
6220 lt_cv_file_magic_cmd='/bin/file'
6221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6223 sni)
6224 lt_cv_file_magic_cmd='/bin/file'
6225 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6226 lt_cv_file_magic_test_file=/lib/libc.so
6228 siemens)
6229 lt_cv_deplibs_check_method=pass_all
6232 lt_cv_deplibs_check_method=pass_all
6234 esac
6237 tpf*)
6238 lt_cv_deplibs_check_method=pass_all
6240 esac
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6244 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6245 file_magic_cmd=$lt_cv_file_magic_cmd
6246 deplibs_check_method=$lt_cv_deplibs_check_method
6247 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6260 if test -n "$ac_tool_prefix"; then
6261 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6262 set dummy ${ac_tool_prefix}ar; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if test "${ac_cv_prog_AR+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 if test -n "$AR"; then
6269 ac_cv_prog_AR="$AR" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_prog_AR="${ac_tool_prefix}ar"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6282 done
6283 done
6284 IFS=$as_save_IFS
6288 AR=$ac_cv_prog_AR
6289 if test -n "$AR"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6291 $as_echo "$AR" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6299 if test -z "$ac_cv_prog_AR"; then
6300 ac_ct_AR=$AR
6301 # Extract the first word of "ar", so it can be a program name with args.
6302 set dummy ar; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 if test -n "$ac_ct_AR"; then
6309 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_ac_ct_AR="ar"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6322 done
6323 done
6324 IFS=$as_save_IFS
6328 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6329 if test -n "$ac_ct_AR"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6331 $as_echo "$ac_ct_AR" >&6; }
6332 else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6337 if test "x$ac_ct_AR" = x; then
6338 AR="false"
6339 else
6340 case $cross_compiling:$ac_tool_warned in
6341 yes:)
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6344 ac_tool_warned=yes ;;
6345 esac
6346 AR=$ac_ct_AR
6348 else
6349 AR="$ac_cv_prog_AR"
6352 test -z "$AR" && AR=ar
6353 test -z "$AR_FLAGS" && AR_FLAGS=cru
6365 if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}strip; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if test "${ac_cv_prog_STRIP+set}" = set; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 if test -n "$STRIP"; then
6374 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6387 done
6388 done
6389 IFS=$as_save_IFS
6393 STRIP=$ac_cv_prog_STRIP
6394 if test -n "$STRIP"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6396 $as_echo "$STRIP" >&6; }
6397 else
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6404 if test -z "$ac_cv_prog_STRIP"; then
6405 ac_ct_STRIP=$STRIP
6406 # Extract the first word of "strip", so it can be a program name with args.
6407 set dummy strip; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 if test -n "$ac_ct_STRIP"; then
6414 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_ac_ct_STRIP="strip"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6427 done
6428 done
6429 IFS=$as_save_IFS
6433 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6434 if test -n "$ac_ct_STRIP"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6436 $as_echo "$ac_ct_STRIP" >&6; }
6437 else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6442 if test "x$ac_ct_STRIP" = x; then
6443 STRIP=":"
6444 else
6445 case $cross_compiling:$ac_tool_warned in
6446 yes:)
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6450 esac
6451 STRIP=$ac_ct_STRIP
6453 else
6454 STRIP="$ac_cv_prog_STRIP"
6457 test -z "$STRIP" && STRIP=:
6464 if test -n "$ac_tool_prefix"; then
6465 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6466 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 if test -n "$RANLIB"; then
6473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6486 done
6487 done
6488 IFS=$as_save_IFS
6492 RANLIB=$ac_cv_prog_RANLIB
6493 if test -n "$RANLIB"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6495 $as_echo "$RANLIB" >&6; }
6496 else
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6503 if test -z "$ac_cv_prog_RANLIB"; then
6504 ac_ct_RANLIB=$RANLIB
6505 # Extract the first word of "ranlib", so it can be a program name with args.
6506 set dummy ranlib; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 if test -n "$ac_ct_RANLIB"; then
6513 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_prog_ac_ct_RANLIB="ranlib"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6526 done
6527 done
6528 IFS=$as_save_IFS
6532 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6533 if test -n "$ac_ct_RANLIB"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6535 $as_echo "$ac_ct_RANLIB" >&6; }
6536 else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6541 if test "x$ac_ct_RANLIB" = x; then
6542 RANLIB=":"
6543 else
6544 case $cross_compiling:$ac_tool_warned in
6545 yes:)
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548 ac_tool_warned=yes ;;
6549 esac
6550 RANLIB=$ac_ct_RANLIB
6552 else
6553 RANLIB="$ac_cv_prog_RANLIB"
6556 test -z "$RANLIB" && RANLIB=:
6563 # Determine commands to create old-style static archives.
6564 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6565 old_postinstall_cmds='chmod 644 $oldlib'
6566 old_postuninstall_cmds=
6568 if test -n "$RANLIB"; then
6569 case $host_os in
6570 openbsd*)
6571 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6574 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6576 esac
6577 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6580 case $host_os in
6581 darwin*)
6582 lock_old_archive_extraction=yes ;;
6584 lock_old_archive_extraction=no ;;
6585 esac
6625 # If no C compiler was specified, use CC.
6626 LTCC=${LTCC-"$CC"}
6628 # If no C compiler flags were specified, use CFLAGS.
6629 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6631 # Allow CC to be a program name with arguments.
6632 compiler=$CC
6635 # Check for command to grab the raw symbol name followed by C symbol from nm.
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6637 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6638 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6642 # These are sane defaults that work on at least a few old systems.
6643 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6645 # Character class describing NM global symbol codes.
6646 symcode='[BCDEGRST]'
6648 # Regexp to match symbols that can be accessed directly from C.
6649 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6651 # Define system-specific variables.
6652 case $host_os in
6653 aix*)
6654 symcode='[BCDT]'
6656 cygwin* | mingw* | pw32* | cegcc*)
6657 symcode='[ABCDGISTW]'
6659 hpux*)
6660 if test "$host_cpu" = ia64; then
6661 symcode='[ABCDEGRST]'
6664 irix* | nonstopux*)
6665 symcode='[BCDEGRST]'
6667 osf*)
6668 symcode='[BCDEGQRST]'
6670 solaris*)
6671 symcode='[BDRT]'
6673 sco3.2v5*)
6674 symcode='[DT]'
6676 sysv4.2uw2*)
6677 symcode='[DT]'
6679 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6680 symcode='[ABDT]'
6682 sysv4)
6683 symcode='[DFNSTU]'
6685 esac
6687 # If we're using GNU nm, then use its standard symbol codes.
6688 case `$NM -V 2>&1` in
6689 *GNU* | *'with BFD'*)
6690 symcode='[ABCDGIRSTW]' ;;
6691 esac
6693 # Transform an extracted symbol line into a proper C declaration.
6694 # Some systems (esp. on ia64) link data and code symbols differently,
6695 # so use this general approach.
6696 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6698 # Transform an extracted symbol line into symbol name and symbol address
6699 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6700 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'"
6702 # Handle CRLF in mingw tool chain
6703 opt_cr=
6704 case $build_os in
6705 mingw*)
6706 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6708 esac
6710 # Try without a prefix underscore, then with it.
6711 for ac_symprfx in "" "_"; do
6713 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6714 symxfrm="\\1 $ac_symprfx\\2 \\2"
6716 # Write the raw and C identifiers.
6717 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6718 # Fake it for dumpbin and say T for any non-static function
6719 # and D for any global variable.
6720 # Also find C++ and __fastcall symbols from MSVC++,
6721 # which start with @ or ?.
6722 lt_cv_sys_global_symbol_pipe="$AWK '"\
6723 " {last_section=section; section=\$ 3};"\
6724 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6725 " \$ 0!~/External *\|/{next};"\
6726 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6727 " {if(hide[section]) next};"\
6728 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6729 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6730 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6731 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6732 " ' prfx=^$ac_symprfx"
6733 else
6734 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6737 # Check to see that the pipe works correctly.
6738 pipe_works=no
6740 rm -f conftest*
6741 cat > conftest.$ac_ext <<_LT_EOF
6742 #ifdef __cplusplus
6743 extern "C" {
6744 #endif
6745 char nm_test_var;
6746 void nm_test_func(void);
6747 void nm_test_func(void){}
6748 #ifdef __cplusplus
6750 #endif
6751 int main(){nm_test_var='a';nm_test_func();return(0);}
6752 _LT_EOF
6754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6755 (eval $ac_compile) 2>&5
6756 ac_status=$?
6757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6758 test $ac_status = 0; }; then
6759 # Now try to grab the symbols.
6760 nlist=conftest.nm
6761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6762 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6763 ac_status=$?
6764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; } && test -s "$nlist"; then
6766 # Try sorting and uniquifying the output.
6767 if sort "$nlist" | uniq > "$nlist"T; then
6768 mv -f "$nlist"T "$nlist"
6769 else
6770 rm -f "$nlist"T
6773 # Make sure that we snagged all the symbols we need.
6774 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6775 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6776 cat <<_LT_EOF > conftest.$ac_ext
6777 #ifdef __cplusplus
6778 extern "C" {
6779 #endif
6781 _LT_EOF
6782 # Now generate the symbol file.
6783 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6785 cat <<_LT_EOF >> conftest.$ac_ext
6787 /* The mapping between symbol names and symbols. */
6788 const struct {
6789 const char *name;
6790 void *address;
6792 lt__PROGRAM__LTX_preloaded_symbols[] =
6794 { "@PROGRAM@", (void *) 0 },
6795 _LT_EOF
6796 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6797 cat <<\_LT_EOF >> conftest.$ac_ext
6798 {0, (void *) 0}
6801 /* This works around a problem in FreeBSD linker */
6802 #ifdef FREEBSD_WORKAROUND
6803 static const void *lt_preloaded_setup() {
6804 return lt__PROGRAM__LTX_preloaded_symbols;
6806 #endif
6808 #ifdef __cplusplus
6810 #endif
6811 _LT_EOF
6812 # Now try linking the two files.
6813 mv conftest.$ac_objext conftstm.$ac_objext
6814 lt_save_LIBS="$LIBS"
6815 lt_save_CFLAGS="$CFLAGS"
6816 LIBS="conftstm.$ac_objext"
6817 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6819 (eval $ac_link) 2>&5
6820 ac_status=$?
6821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6823 pipe_works=yes
6825 LIBS="$lt_save_LIBS"
6826 CFLAGS="$lt_save_CFLAGS"
6827 else
6828 echo "cannot find nm_test_func in $nlist" >&5
6830 else
6831 echo "cannot find nm_test_var in $nlist" >&5
6833 else
6834 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6836 else
6837 echo "$progname: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6840 rm -rf conftest* conftst*
6842 # Do not use the global_symbol_pipe unless it works.
6843 if test "$pipe_works" = yes; then
6844 break
6845 else
6846 lt_cv_sys_global_symbol_pipe=
6848 done
6852 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6853 lt_cv_sys_global_symbol_to_cdecl=
6855 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6857 $as_echo "failed" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6860 $as_echo "ok" >&6; }
6884 # Check whether --enable-libtool-lock was given.
6885 if test "${enable_libtool_lock+set}" = set; then :
6886 enableval=$enable_libtool_lock;
6889 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6891 # Some flags need to be propagated to the compiler or linker for good
6892 # libtool support.
6893 case $host in
6894 ia64-*-hpux*)
6895 # Find out which ABI we are using.
6896 echo 'int i;' > conftest.$ac_ext
6897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6898 (eval $ac_compile) 2>&5
6899 ac_status=$?
6900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6901 test $ac_status = 0; }; then
6902 case `/usr/bin/file conftest.$ac_objext` in
6903 *ELF-32*)
6904 HPUX_IA64_MODE="32"
6906 *ELF-64*)
6907 HPUX_IA64_MODE="64"
6909 esac
6911 rm -rf conftest*
6913 *-*-irix6*)
6914 # Find out which ABI we are using.
6915 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6917 (eval $ac_compile) 2>&5
6918 ac_status=$?
6919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6920 test $ac_status = 0; }; then
6921 if test "$lt_cv_prog_gnu_ld" = yes; then
6922 case `/usr/bin/file conftest.$ac_objext` in
6923 *32-bit*)
6924 LD="${LD-ld} -melf32bsmip"
6926 *N32*)
6927 LD="${LD-ld} -melf32bmipn32"
6929 *64-bit*)
6930 LD="${LD-ld} -melf64bmip"
6932 esac
6933 else
6934 case `/usr/bin/file conftest.$ac_objext` in
6935 *32-bit*)
6936 LD="${LD-ld} -32"
6938 *N32*)
6939 LD="${LD-ld} -n32"
6941 *64-bit*)
6942 LD="${LD-ld} -64"
6944 esac
6947 rm -rf conftest*
6950 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6951 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6952 # Find out which ABI we are using.
6953 echo 'int i;' > conftest.$ac_ext
6954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6955 (eval $ac_compile) 2>&5
6956 ac_status=$?
6957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6958 test $ac_status = 0; }; then
6959 case `/usr/bin/file conftest.o` in
6960 *32-bit*)
6961 case $host in
6962 x86_64-*kfreebsd*-gnu)
6963 LD="${LD-ld} -m elf_i386_fbsd"
6965 x86_64-*linux*)
6966 LD="${LD-ld} -m elf_i386"
6968 ppc64-*linux*|powerpc64-*linux*)
6969 LD="${LD-ld} -m elf32ppclinux"
6971 s390x-*linux*)
6972 LD="${LD-ld} -m elf_s390"
6974 sparc64-*linux*)
6975 LD="${LD-ld} -m elf32_sparc"
6977 esac
6979 *64-bit*)
6980 case $host in
6981 x86_64-*kfreebsd*-gnu)
6982 LD="${LD-ld} -m elf_x86_64_fbsd"
6984 x86_64-*linux*)
6985 LD="${LD-ld} -m elf_x86_64"
6987 ppc*-*linux*|powerpc*-*linux*)
6988 LD="${LD-ld} -m elf64ppc"
6990 s390*-*linux*|s390*-*tpf*)
6991 LD="${LD-ld} -m elf64_s390"
6993 sparc*-*linux*)
6994 LD="${LD-ld} -m elf64_sparc"
6996 esac
6998 esac
7000 rm -rf conftest*
7003 *-*-sco3.2v5*)
7004 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7005 SAVE_CFLAGS="$CFLAGS"
7006 CFLAGS="$CFLAGS -belf"
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7008 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7009 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 ac_ext=c
7013 ac_cpp='$CPP $CPPFLAGS'
7014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7022 main ()
7026 return 0;
7028 _ACEOF
7029 if ac_fn_c_try_link "$LINENO"; then :
7030 lt_cv_cc_needs_belf=yes
7031 else
7032 lt_cv_cc_needs_belf=no
7034 rm -f core conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 ac_ext=c
7037 ac_cpp='$CPP $CPPFLAGS'
7038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7044 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7045 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7046 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7047 CFLAGS="$SAVE_CFLAGS"
7050 sparc*-*solaris*)
7051 # Find out which ABI we are using.
7052 echo 'int i;' > conftest.$ac_ext
7053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7054 (eval $ac_compile) 2>&5
7055 ac_status=$?
7056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7057 test $ac_status = 0; }; then
7058 case `/usr/bin/file conftest.o` in
7059 *64-bit*)
7060 case $lt_cv_prog_gnu_ld in
7061 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7063 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7064 LD="${LD-ld} -64"
7067 esac
7069 esac
7071 rm -rf conftest*
7073 esac
7075 need_locks="$enable_libtool_lock"
7078 case $host_os in
7079 rhapsody* | darwin*)
7080 if test -n "$ac_tool_prefix"; then
7081 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7082 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 if test -n "$DSYMUTIL"; then
7089 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7098 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7102 done
7103 done
7104 IFS=$as_save_IFS
7108 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7109 if test -n "$DSYMUTIL"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7111 $as_echo "$DSYMUTIL" >&6; }
7112 else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7119 if test -z "$ac_cv_prog_DSYMUTIL"; then
7120 ac_ct_DSYMUTIL=$DSYMUTIL
7121 # Extract the first word of "dsymutil", so it can be a program name with args.
7122 set dummy dsymutil; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 if test -n "$ac_ct_DSYMUTIL"; then
7129 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7142 done
7143 done
7144 IFS=$as_save_IFS
7148 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7149 if test -n "$ac_ct_DSYMUTIL"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7151 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7152 else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7157 if test "x$ac_ct_DSYMUTIL" = x; then
7158 DSYMUTIL=":"
7159 else
7160 case $cross_compiling:$ac_tool_warned in
7161 yes:)
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7164 ac_tool_warned=yes ;;
7165 esac
7166 DSYMUTIL=$ac_ct_DSYMUTIL
7168 else
7169 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 if test -n "$NMEDIT"; then
7181 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7194 done
7195 done
7196 IFS=$as_save_IFS
7200 NMEDIT=$ac_cv_prog_NMEDIT
7201 if test -n "$NMEDIT"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7203 $as_echo "$NMEDIT" >&6; }
7204 else
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7211 if test -z "$ac_cv_prog_NMEDIT"; then
7212 ac_ct_NMEDIT=$NMEDIT
7213 # Extract the first word of "nmedit", so it can be a program name with args.
7214 set dummy nmedit; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 if test -n "$ac_ct_NMEDIT"; then
7221 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7234 done
7235 done
7236 IFS=$as_save_IFS
7240 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7241 if test -n "$ac_ct_NMEDIT"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7243 $as_echo "$ac_ct_NMEDIT" >&6; }
7244 else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7249 if test "x$ac_ct_NMEDIT" = x; then
7250 NMEDIT=":"
7251 else
7252 case $cross_compiling:$ac_tool_warned in
7253 yes:)
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7257 esac
7258 NMEDIT=$ac_ct_NMEDIT
7260 else
7261 NMEDIT="$ac_cv_prog_NMEDIT"
7264 if test -n "$ac_tool_prefix"; then
7265 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7266 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if test "${ac_cv_prog_LIPO+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 if test -n "$LIPO"; then
7273 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 break 2
7286 done
7287 done
7288 IFS=$as_save_IFS
7292 LIPO=$ac_cv_prog_LIPO
7293 if test -n "$LIPO"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7295 $as_echo "$LIPO" >&6; }
7296 else
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7303 if test -z "$ac_cv_prog_LIPO"; then
7304 ac_ct_LIPO=$LIPO
7305 # Extract the first word of "lipo", so it can be a program name with args.
7306 set dummy lipo; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 if test -n "$ac_ct_LIPO"; then
7313 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_prog_ac_ct_LIPO="lipo"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7326 done
7327 done
7328 IFS=$as_save_IFS
7332 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7333 if test -n "$ac_ct_LIPO"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7335 $as_echo "$ac_ct_LIPO" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7341 if test "x$ac_ct_LIPO" = x; then
7342 LIPO=":"
7343 else
7344 case $cross_compiling:$ac_tool_warned in
7345 yes:)
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348 ac_tool_warned=yes ;;
7349 esac
7350 LIPO=$ac_ct_LIPO
7352 else
7353 LIPO="$ac_cv_prog_LIPO"
7356 if test -n "$ac_tool_prefix"; then
7357 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}otool; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 if test -n "$OTOOL"; then
7365 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7378 done
7379 done
7380 IFS=$as_save_IFS
7384 OTOOL=$ac_cv_prog_OTOOL
7385 if test -n "$OTOOL"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7387 $as_echo "$OTOOL" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7395 if test -z "$ac_cv_prog_OTOOL"; then
7396 ac_ct_OTOOL=$OTOOL
7397 # Extract the first word of "otool", so it can be a program name with args.
7398 set dummy otool; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 if test -n "$ac_ct_OTOOL"; then
7405 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_prog_ac_ct_OTOOL="otool"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7418 done
7419 done
7420 IFS=$as_save_IFS
7424 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7425 if test -n "$ac_ct_OTOOL"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7427 $as_echo "$ac_ct_OTOOL" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7433 if test "x$ac_ct_OTOOL" = x; then
7434 OTOOL=":"
7435 else
7436 case $cross_compiling:$ac_tool_warned in
7437 yes:)
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7440 ac_tool_warned=yes ;;
7441 esac
7442 OTOOL=$ac_ct_OTOOL
7444 else
7445 OTOOL="$ac_cv_prog_OTOOL"
7448 if test -n "$ac_tool_prefix"; then
7449 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7450 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456 if test -n "$OTOOL64"; then
7457 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 break 2
7470 done
7471 done
7472 IFS=$as_save_IFS
7476 OTOOL64=$ac_cv_prog_OTOOL64
7477 if test -n "$OTOOL64"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7479 $as_echo "$OTOOL64" >&6; }
7480 else
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7487 if test -z "$ac_cv_prog_OTOOL64"; then
7488 ac_ct_OTOOL64=$OTOOL64
7489 # Extract the first word of "otool64", so it can be a program name with args.
7490 set dummy otool64; ac_word=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 if test -n "$ac_ct_OTOOL64"; then
7497 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7498 else
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7506 ac_cv_prog_ac_ct_OTOOL64="otool64"
7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7510 done
7511 done
7512 IFS=$as_save_IFS
7516 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7517 if test -n "$ac_ct_OTOOL64"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7519 $as_echo "$ac_ct_OTOOL64" >&6; }
7520 else
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7525 if test "x$ac_ct_OTOOL64" = x; then
7526 OTOOL64=":"
7527 else
7528 case $cross_compiling:$ac_tool_warned in
7529 yes:)
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532 ac_tool_warned=yes ;;
7533 esac
7534 OTOOL64=$ac_ct_OTOOL64
7536 else
7537 OTOOL64="$ac_cv_prog_OTOOL64"
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7567 $as_echo_n "checking for -single_module linker flag... " >&6; }
7568 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 lt_cv_apple_cc_single_mod=no
7572 if test -z "${LT_MULTI_MODULE}"; then
7573 # By default we will add the -single_module flag. You can override
7574 # by either setting the environment variable LT_MULTI_MODULE
7575 # non-empty at configure time, or by adding -multi_module to the
7576 # link flags.
7577 rm -rf libconftest.dylib*
7578 echo "int foo(void){return 1;}" > conftest.c
7579 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7580 -dynamiclib -Wl,-single_module conftest.c" >&5
7581 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7582 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7583 _lt_result=$?
7584 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7585 lt_cv_apple_cc_single_mod=yes
7586 else
7587 cat conftest.err >&5
7589 rm -rf libconftest.dylib*
7590 rm -f conftest.*
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7594 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7596 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7597 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 lt_cv_ld_exported_symbols_list=no
7601 save_LDFLAGS=$LDFLAGS
7602 echo "_main" > conftest.sym
7603 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7608 main ()
7612 return 0;
7614 _ACEOF
7615 if ac_fn_c_try_link "$LINENO"; then :
7616 lt_cv_ld_exported_symbols_list=yes
7617 else
7618 lt_cv_ld_exported_symbols_list=no
7620 rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 LDFLAGS="$save_LDFLAGS"
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7626 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7628 $as_echo_n "checking for -force_load linker flag... " >&6; }
7629 if test "${lt_cv_ld_force_load+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 lt_cv_ld_force_load=no
7633 cat > conftest.c << _LT_EOF
7634 int forced_loaded() { return 2;}
7635 _LT_EOF
7636 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7637 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7638 echo "$AR cru libconftest.a conftest.o" >&5
7639 $AR cru libconftest.a conftest.o 2>&5
7640 cat > conftest.c << _LT_EOF
7641 int main() { return 0;}
7642 _LT_EOF
7643 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7644 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7645 _lt_result=$?
7646 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7647 lt_cv_ld_force_load=yes
7648 else
7649 cat conftest.err >&5
7651 rm -f conftest.err libconftest.a conftest conftest.c
7652 rm -rf conftest.dSYM
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7656 $as_echo "$lt_cv_ld_force_load" >&6; }
7657 case $host_os in
7658 rhapsody* | darwin1.[012])
7659 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7660 darwin1.*)
7661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7662 darwin*) # darwin 5.x on
7663 # if running on 10.5 or later, the deployment target defaults
7664 # to the OS version, if on x86, and 10.4, the deployment
7665 # target defaults to 10.4. Don't you love it?
7666 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7667 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7668 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7669 10.[012]*)
7670 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7671 10.*)
7672 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7673 esac
7675 esac
7676 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7677 _lt_dar_single_mod='$single_module'
7679 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7680 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7681 else
7682 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7684 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7685 _lt_dsymutil='~$DSYMUTIL $lib || :'
7686 else
7687 _lt_dsymutil=
7690 esac
7692 for ac_header in dlfcn.h
7693 do :
7694 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7696 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7697 cat >>confdefs.h <<_ACEOF
7698 #define HAVE_DLFCN_H 1
7699 _ACEOF
7703 done
7709 # Set options
7713 enable_dlopen=no
7716 enable_win32_dll=no
7719 # Check whether --enable-shared was given.
7720 if test "${enable_shared+set}" = set; then :
7721 enableval=$enable_shared; p=${PACKAGE-default}
7722 case $enableval in
7723 yes) enable_shared=yes ;;
7724 no) enable_shared=no ;;
7726 enable_shared=no
7727 # Look at the argument we got. We use all the common list separators.
7728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7729 for pkg in $enableval; do
7730 IFS="$lt_save_ifs"
7731 if test "X$pkg" = "X$p"; then
7732 enable_shared=yes
7734 done
7735 IFS="$lt_save_ifs"
7737 esac
7738 else
7739 enable_shared=yes
7750 # Check whether --enable-static was given.
7751 if test "${enable_static+set}" = set; then :
7752 enableval=$enable_static; p=${PACKAGE-default}
7753 case $enableval in
7754 yes) enable_static=yes ;;
7755 no) enable_static=no ;;
7757 enable_static=no
7758 # Look at the argument we got. We use all the common list separators.
7759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7760 for pkg in $enableval; do
7761 IFS="$lt_save_ifs"
7762 if test "X$pkg" = "X$p"; then
7763 enable_static=yes
7765 done
7766 IFS="$lt_save_ifs"
7768 esac
7769 else
7770 enable_static=yes
7782 # Check whether --with-pic was given.
7783 if test "${with_pic+set}" = set; then :
7784 withval=$with_pic; pic_mode="$withval"
7785 else
7786 pic_mode=default
7790 test -z "$pic_mode" && pic_mode=default
7798 # Check whether --enable-fast-install was given.
7799 if test "${enable_fast_install+set}" = set; then :
7800 enableval=$enable_fast_install; p=${PACKAGE-default}
7801 case $enableval in
7802 yes) enable_fast_install=yes ;;
7803 no) enable_fast_install=no ;;
7805 enable_fast_install=no
7806 # Look at the argument we got. We use all the common list separators.
7807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7808 for pkg in $enableval; do
7809 IFS="$lt_save_ifs"
7810 if test "X$pkg" = "X$p"; then
7811 enable_fast_install=yes
7813 done
7814 IFS="$lt_save_ifs"
7816 esac
7817 else
7818 enable_fast_install=yes
7831 # This can be used to rebuild libtool when needed
7832 LIBTOOL_DEPS="$ltmain"
7834 # Always use our own libtool.
7835 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7862 test -z "$LN_S" && LN_S="ln -s"
7877 if test -n "${ZSH_VERSION+set}" ; then
7878 setopt NO_GLOB_SUBST
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7882 $as_echo_n "checking for objdir... " >&6; }
7883 if test "${lt_cv_objdir+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 rm -f .libs 2>/dev/null
7887 mkdir .libs 2>/dev/null
7888 if test -d .libs; then
7889 lt_cv_objdir=.libs
7890 else
7891 # MS-DOS does not allow filenames that begin with a dot.
7892 lt_cv_objdir=_libs
7894 rmdir .libs 2>/dev/null
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7897 $as_echo "$lt_cv_objdir" >&6; }
7898 objdir=$lt_cv_objdir
7904 cat >>confdefs.h <<_ACEOF
7905 #define LT_OBJDIR "$lt_cv_objdir/"
7906 _ACEOF
7911 case $host_os in
7912 aix3*)
7913 # AIX sometimes has problems with the GCC collect2 program. For some
7914 # reason, if we set the COLLECT_NAMES environment variable, the problems
7915 # vanish in a puff of smoke.
7916 if test "X${COLLECT_NAMES+set}" != Xset; then
7917 COLLECT_NAMES=
7918 export COLLECT_NAMES
7921 esac
7923 # Global variables:
7924 ofile=libtool
7925 can_build_shared=yes
7927 # All known linkers require a `.a' archive for static linking (except MSVC,
7928 # which needs '.lib').
7929 libext=a
7931 with_gnu_ld="$lt_cv_prog_gnu_ld"
7933 old_CC="$CC"
7934 old_CFLAGS="$CFLAGS"
7936 # Set sane defaults for various variables
7937 test -z "$CC" && CC=cc
7938 test -z "$LTCC" && LTCC=$CC
7939 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7940 test -z "$LD" && LD=ld
7941 test -z "$ac_objext" && ac_objext=o
7943 for cc_temp in $compiler""; do
7944 case $cc_temp in
7945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7947 \-*) ;;
7948 *) break;;
7949 esac
7950 done
7951 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7954 # Only perform the check for file, if the check method requires it
7955 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7956 case $deplibs_check_method in
7957 file_magic*)
7958 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7960 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7961 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 case $MAGIC_CMD in
7965 [\\/*] | ?:[\\/]*)
7966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7969 lt_save_MAGIC_CMD="$MAGIC_CMD"
7970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7972 for ac_dir in $ac_dummy; do
7973 IFS="$lt_save_ifs"
7974 test -z "$ac_dir" && ac_dir=.
7975 if test -f $ac_dir/${ac_tool_prefix}file; then
7976 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7977 if test -n "$file_magic_test_file"; then
7978 case $deplibs_check_method in
7979 "file_magic "*)
7980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7983 $EGREP "$file_magic_regex" > /dev/null; then
7985 else
7986 cat <<_LT_EOF 1>&2
7988 *** Warning: the command libtool uses to detect shared libraries,
7989 *** $file_magic_cmd, produces output that libtool cannot recognize.
7990 *** The result is that libtool may fail to recognize shared libraries
7991 *** as such. This will affect the creation of libtool libraries that
7992 *** depend on shared libraries, but programs linked with such libtool
7993 *** libraries will work regardless of this problem. Nevertheless, you
7994 *** may want to report the problem to your system manager and/or to
7995 *** bug-libtool@gnu.org
7997 _LT_EOF
7998 fi ;;
7999 esac
8001 break
8003 done
8004 IFS="$lt_save_ifs"
8005 MAGIC_CMD="$lt_save_MAGIC_CMD"
8007 esac
8010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8011 if test -n "$MAGIC_CMD"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8013 $as_echo "$MAGIC_CMD" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8023 if test -z "$lt_cv_path_MAGIC_CMD"; then
8024 if test -n "$ac_tool_prefix"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8026 $as_echo_n "checking for file... " >&6; }
8027 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 case $MAGIC_CMD in
8031 [\\/*] | ?:[\\/]*)
8032 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8035 lt_save_MAGIC_CMD="$MAGIC_CMD"
8036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8037 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8038 for ac_dir in $ac_dummy; do
8039 IFS="$lt_save_ifs"
8040 test -z "$ac_dir" && ac_dir=.
8041 if test -f $ac_dir/file; then
8042 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8043 if test -n "$file_magic_test_file"; then
8044 case $deplibs_check_method in
8045 "file_magic "*)
8046 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8048 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8049 $EGREP "$file_magic_regex" > /dev/null; then
8051 else
8052 cat <<_LT_EOF 1>&2
8054 *** Warning: the command libtool uses to detect shared libraries,
8055 *** $file_magic_cmd, produces output that libtool cannot recognize.
8056 *** The result is that libtool may fail to recognize shared libraries
8057 *** as such. This will affect the creation of libtool libraries that
8058 *** depend on shared libraries, but programs linked with such libtool
8059 *** libraries will work regardless of this problem. Nevertheless, you
8060 *** may want to report the problem to your system manager and/or to
8061 *** bug-libtool@gnu.org
8063 _LT_EOF
8064 fi ;;
8065 esac
8067 break
8069 done
8070 IFS="$lt_save_ifs"
8071 MAGIC_CMD="$lt_save_MAGIC_CMD"
8073 esac
8076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8077 if test -n "$MAGIC_CMD"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8079 $as_echo "$MAGIC_CMD" >&6; }
8080 else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8086 else
8087 MAGIC_CMD=:
8093 esac
8095 # Use C for the default configuration in the libtool script
8097 lt_save_CC="$CC"
8098 ac_ext=c
8099 ac_cpp='$CPP $CPPFLAGS'
8100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8105 # Source file extension for C test sources.
8106 ac_ext=c
8108 # Object file extension for compiled C test sources.
8109 objext=o
8110 objext=$objext
8112 # Code to be used in simple compile tests
8113 lt_simple_compile_test_code="int some_variable = 0;"
8115 # Code to be used in simple link tests
8116 lt_simple_link_test_code='int main(){return(0);}'
8124 # If no C compiler was specified, use CC.
8125 LTCC=${LTCC-"$CC"}
8127 # If no C compiler flags were specified, use CFLAGS.
8128 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8130 # Allow CC to be a program name with arguments.
8131 compiler=$CC
8133 # Save the default compiler, since it gets overwritten when the other
8134 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8135 compiler_DEFAULT=$CC
8137 # save warnings/boilerplate of simple test code
8138 ac_outfile=conftest.$ac_objext
8139 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8140 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8141 _lt_compiler_boilerplate=`cat conftest.err`
8142 $RM conftest*
8144 ac_outfile=conftest.$ac_objext
8145 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8146 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8147 _lt_linker_boilerplate=`cat conftest.err`
8148 $RM -r conftest*
8151 ## CAVEAT EMPTOR:
8152 ## There is no encapsulation within the following macros, do not change
8153 ## the running order or otherwise move them around unless you know exactly
8154 ## what you are doing...
8155 if test -n "$compiler"; then
8157 lt_prog_compiler_no_builtin_flag=
8159 if test "$GCC" = yes; then
8160 case $cc_basename in
8161 nvcc*)
8162 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8164 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8165 esac
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8168 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8169 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 lt_cv_prog_compiler_rtti_exceptions=no
8173 ac_outfile=conftest.$ac_objext
8174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8175 lt_compiler_flag="-fno-rtti -fno-exceptions"
8176 # Insert the option either (1) after the last *FLAGS variable, or
8177 # (2) before a word containing "conftest.", or (3) at the end.
8178 # Note that $ac_compile itself does not contain backslashes and begins
8179 # with a dollar sign (not a hyphen), so the echo should work correctly.
8180 # The option is referenced via a variable to avoid confusing sed.
8181 lt_compile=`echo "$ac_compile" | $SED \
8182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8184 -e 's:$: $lt_compiler_flag:'`
8185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8186 (eval "$lt_compile" 2>conftest.err)
8187 ac_status=$?
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 if (exit $ac_status) && test -s "$ac_outfile"; then
8191 # The compiler can only warn and ignore the option if not recognized
8192 # So say no if there are warnings other than the usual output.
8193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8195 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8196 lt_cv_prog_compiler_rtti_exceptions=yes
8199 $RM conftest*
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8203 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8205 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8206 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8207 else
8218 lt_prog_compiler_wl=
8219 lt_prog_compiler_pic=
8220 lt_prog_compiler_static=
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8223 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8225 if test "$GCC" = yes; then
8226 lt_prog_compiler_wl='-Wl,'
8227 lt_prog_compiler_static='-static'
8229 case $host_os in
8230 aix*)
8231 # All AIX code is PIC.
8232 if test "$host_cpu" = ia64; then
8233 # AIX 5 now supports IA64 processor
8234 lt_prog_compiler_static='-Bstatic'
8238 amigaos*)
8239 case $host_cpu in
8240 powerpc)
8241 # see comment about AmigaOS4 .so support
8242 lt_prog_compiler_pic='-fPIC'
8244 m68k)
8245 # FIXME: we need at least 68020 code to build shared libraries, but
8246 # adding the `-m68020' flag to GCC prevents building anything better,
8247 # like `-m68040'.
8248 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8250 esac
8253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8254 # PIC is the default for these OSes.
8257 mingw* | cygwin* | pw32* | os2* | cegcc*)
8258 # This hack is so that the source file can tell whether it is being
8259 # built for inclusion in a dll (and should export symbols for example).
8260 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8261 # (--disable-auto-import) libraries
8262 lt_prog_compiler_pic='-DDLL_EXPORT'
8265 darwin* | rhapsody*)
8266 # PIC is the default on this platform
8267 # Common symbols not allowed in MH_DYLIB files
8268 lt_prog_compiler_pic='-fno-common'
8271 haiku*)
8272 # PIC is the default for Haiku.
8273 # The "-static" flag exists, but is broken.
8274 lt_prog_compiler_static=
8277 hpux*)
8278 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8279 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8280 # sets the default TLS model and affects inlining.
8281 case $host_cpu in
8282 hppa*64*)
8283 # +Z the default
8286 lt_prog_compiler_pic='-fPIC'
8288 esac
8291 interix[3-9]*)
8292 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8293 # Instead, we relocate shared libraries at runtime.
8296 msdosdjgpp*)
8297 # Just because we use GCC doesn't mean we suddenly get shared libraries
8298 # on systems that don't support them.
8299 lt_prog_compiler_can_build_shared=no
8300 enable_shared=no
8303 *nto* | *qnx*)
8304 # QNX uses GNU C++, but need to define -shared option too, otherwise
8305 # it will coredump.
8306 lt_prog_compiler_pic='-fPIC -shared'
8309 sysv4*MP*)
8310 if test -d /usr/nec; then
8311 lt_prog_compiler_pic=-Kconform_pic
8316 lt_prog_compiler_pic='-fPIC'
8318 esac
8320 case $cc_basename in
8321 nvcc*) # Cuda Compiler Driver 2.2
8322 lt_prog_compiler_wl='-Xlinker '
8323 lt_prog_compiler_pic='-Xcompiler -fPIC'
8325 esac
8326 else
8327 # PORTME Check for flag to pass linker flags through the system compiler.
8328 case $host_os in
8329 aix*)
8330 lt_prog_compiler_wl='-Wl,'
8331 if test "$host_cpu" = ia64; then
8332 # AIX 5 now supports IA64 processor
8333 lt_prog_compiler_static='-Bstatic'
8334 else
8335 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8339 mingw* | cygwin* | pw32* | os2* | cegcc*)
8340 # This hack is so that the source file can tell whether it is being
8341 # built for inclusion in a dll (and should export symbols for example).
8342 lt_prog_compiler_pic='-DDLL_EXPORT'
8345 hpux9* | hpux10* | hpux11*)
8346 lt_prog_compiler_wl='-Wl,'
8347 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8348 # not for PA HP-UX.
8349 case $host_cpu in
8350 hppa*64*|ia64*)
8351 # +Z the default
8354 lt_prog_compiler_pic='+Z'
8356 esac
8357 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8358 lt_prog_compiler_static='${wl}-a ${wl}archive'
8361 irix5* | irix6* | nonstopux*)
8362 lt_prog_compiler_wl='-Wl,'
8363 # PIC (with -KPIC) is the default.
8364 lt_prog_compiler_static='-non_shared'
8367 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8368 case $cc_basename in
8369 # old Intel for x86_64 which still supported -KPIC.
8370 ecc*)
8371 lt_prog_compiler_wl='-Wl,'
8372 lt_prog_compiler_pic='-KPIC'
8373 lt_prog_compiler_static='-static'
8375 # icc used to be incompatible with GCC.
8376 # ICC 10 doesn't accept -KPIC any more.
8377 icc* | ifort*)
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_pic='-fPIC'
8380 lt_prog_compiler_static='-static'
8382 # Lahey Fortran 8.1.
8383 lf95*)
8384 lt_prog_compiler_wl='-Wl,'
8385 lt_prog_compiler_pic='--shared'
8386 lt_prog_compiler_static='--static'
8388 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8389 # Portland Group compilers (*not* the Pentium gcc compiler,
8390 # which looks to be a dead project)
8391 lt_prog_compiler_wl='-Wl,'
8392 lt_prog_compiler_pic='-fpic'
8393 lt_prog_compiler_static='-Bstatic'
8395 ccc*)
8396 lt_prog_compiler_wl='-Wl,'
8397 # All Alpha code is PIC.
8398 lt_prog_compiler_static='-non_shared'
8400 xl* | bgxl* | bgf* | mpixl*)
8401 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-qpic'
8404 lt_prog_compiler_static='-qstaticlink'
8407 case `$CC -V 2>&1 | sed 5q` in
8408 *Sun\ F* | *Sun*Fortran*)
8409 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8410 lt_prog_compiler_pic='-KPIC'
8411 lt_prog_compiler_static='-Bstatic'
8412 lt_prog_compiler_wl=''
8414 *Sun\ C*)
8415 # Sun C 5.9
8416 lt_prog_compiler_pic='-KPIC'
8417 lt_prog_compiler_static='-Bstatic'
8418 lt_prog_compiler_wl='-Wl,'
8420 esac
8422 esac
8425 newsos6)
8426 lt_prog_compiler_pic='-KPIC'
8427 lt_prog_compiler_static='-Bstatic'
8430 *nto* | *qnx*)
8431 # QNX uses GNU C++, but need to define -shared option too, otherwise
8432 # it will coredump.
8433 lt_prog_compiler_pic='-fPIC -shared'
8436 osf3* | osf4* | osf5*)
8437 lt_prog_compiler_wl='-Wl,'
8438 # All OSF/1 code is PIC.
8439 lt_prog_compiler_static='-non_shared'
8442 rdos*)
8443 lt_prog_compiler_static='-non_shared'
8446 solaris*)
8447 lt_prog_compiler_pic='-KPIC'
8448 lt_prog_compiler_static='-Bstatic'
8449 case $cc_basename in
8450 f77* | f90* | f95*)
8451 lt_prog_compiler_wl='-Qoption ld ';;
8453 lt_prog_compiler_wl='-Wl,';;
8454 esac
8457 sunos4*)
8458 lt_prog_compiler_wl='-Qoption ld '
8459 lt_prog_compiler_pic='-PIC'
8460 lt_prog_compiler_static='-Bstatic'
8463 sysv4 | sysv4.2uw2* | sysv4.3*)
8464 lt_prog_compiler_wl='-Wl,'
8465 lt_prog_compiler_pic='-KPIC'
8466 lt_prog_compiler_static='-Bstatic'
8469 sysv4*MP*)
8470 if test -d /usr/nec ;then
8471 lt_prog_compiler_pic='-Kconform_pic'
8472 lt_prog_compiler_static='-Bstatic'
8476 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8477 lt_prog_compiler_wl='-Wl,'
8478 lt_prog_compiler_pic='-KPIC'
8479 lt_prog_compiler_static='-Bstatic'
8482 unicos*)
8483 lt_prog_compiler_wl='-Wl,'
8484 lt_prog_compiler_can_build_shared=no
8487 uts4*)
8488 lt_prog_compiler_pic='-pic'
8489 lt_prog_compiler_static='-Bstatic'
8493 lt_prog_compiler_can_build_shared=no
8495 esac
8498 case $host_os in
8499 # For platforms which do not support PIC, -DPIC is meaningless:
8500 *djgpp*)
8501 lt_prog_compiler_pic=
8504 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8506 esac
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8508 $as_echo "$lt_prog_compiler_pic" >&6; }
8516 # Check to make sure the PIC flag actually works.
8518 if test -n "$lt_prog_compiler_pic"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8520 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8521 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 lt_cv_prog_compiler_pic_works=no
8525 ac_outfile=conftest.$ac_objext
8526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8527 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8528 # Insert the option either (1) after the last *FLAGS variable, or
8529 # (2) before a word containing "conftest.", or (3) at the end.
8530 # Note that $ac_compile itself does not contain backslashes and begins
8531 # with a dollar sign (not a hyphen), so the echo should work correctly.
8532 # The option is referenced via a variable to avoid confusing sed.
8533 lt_compile=`echo "$ac_compile" | $SED \
8534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8536 -e 's:$: $lt_compiler_flag:'`
8537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8538 (eval "$lt_compile" 2>conftest.err)
8539 ac_status=$?
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 if (exit $ac_status) && test -s "$ac_outfile"; then
8543 # The compiler can only warn and ignore the option if not recognized
8544 # So say no if there are warnings other than the usual output.
8545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8547 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8548 lt_cv_prog_compiler_pic_works=yes
8551 $RM conftest*
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8555 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8557 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8558 case $lt_prog_compiler_pic in
8559 "" | " "*) ;;
8560 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8561 esac
8562 else
8563 lt_prog_compiler_pic=
8564 lt_prog_compiler_can_build_shared=no
8575 # Check to make sure the static flag actually works.
8577 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8579 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8580 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 lt_cv_prog_compiler_static_works=no
8584 save_LDFLAGS="$LDFLAGS"
8585 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8586 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8587 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8588 # The linker can only warn and ignore the option if not recognized
8589 # So say no if there are warnings
8590 if test -s conftest.err; then
8591 # Append any errors to the config.log.
8592 cat conftest.err 1>&5
8593 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8595 if diff conftest.exp conftest.er2 >/dev/null; then
8596 lt_cv_prog_compiler_static_works=yes
8598 else
8599 lt_cv_prog_compiler_static_works=yes
8602 $RM -r conftest*
8603 LDFLAGS="$save_LDFLAGS"
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8607 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8609 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8611 else
8612 lt_prog_compiler_static=
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8622 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8623 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 lt_cv_prog_compiler_c_o=no
8627 $RM -r conftest 2>/dev/null
8628 mkdir conftest
8629 cd conftest
8630 mkdir out
8631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8633 lt_compiler_flag="-o out/conftest2.$ac_objext"
8634 # Insert the option either (1) after the last *FLAGS variable, or
8635 # (2) before a word containing "conftest.", or (3) at the end.
8636 # Note that $ac_compile itself does not contain backslashes and begins
8637 # with a dollar sign (not a hyphen), so the echo should work correctly.
8638 lt_compile=`echo "$ac_compile" | $SED \
8639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8641 -e 's:$: $lt_compiler_flag:'`
8642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8643 (eval "$lt_compile" 2>out/conftest.err)
8644 ac_status=$?
8645 cat out/conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8648 then
8649 # The compiler can only warn and ignore the option if not recognized
8650 # So say no if there are warnings
8651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8654 lt_cv_prog_compiler_c_o=yes
8657 chmod u+w . 2>&5
8658 $RM conftest*
8659 # SGI C++ compiler will create directory out/ii_files/ for
8660 # template instantiation
8661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8662 $RM out/* && rmdir out
8663 cd ..
8664 $RM -r conftest
8665 $RM conftest*
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8669 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8677 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8678 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 lt_cv_prog_compiler_c_o=no
8682 $RM -r conftest 2>/dev/null
8683 mkdir conftest
8684 cd conftest
8685 mkdir out
8686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8688 lt_compiler_flag="-o out/conftest2.$ac_objext"
8689 # Insert the option either (1) after the last *FLAGS variable, or
8690 # (2) before a word containing "conftest.", or (3) at the end.
8691 # Note that $ac_compile itself does not contain backslashes and begins
8692 # with a dollar sign (not a hyphen), so the echo should work correctly.
8693 lt_compile=`echo "$ac_compile" | $SED \
8694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8696 -e 's:$: $lt_compiler_flag:'`
8697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8698 (eval "$lt_compile" 2>out/conftest.err)
8699 ac_status=$?
8700 cat out/conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8703 then
8704 # The compiler can only warn and ignore the option if not recognized
8705 # So say no if there are warnings
8706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8709 lt_cv_prog_compiler_c_o=yes
8712 chmod u+w . 2>&5
8713 $RM conftest*
8714 # SGI C++ compiler will create directory out/ii_files/ for
8715 # template instantiation
8716 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8717 $RM out/* && rmdir out
8718 cd ..
8719 $RM -r conftest
8720 $RM conftest*
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8724 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8729 hard_links="nottested"
8730 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8731 # do not overwrite the value of need_locks provided by the user
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8733 $as_echo_n "checking if we can lock with hard links... " >&6; }
8734 hard_links=yes
8735 $RM conftest*
8736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8737 touch conftest.a
8738 ln conftest.a conftest.b 2>&5 || hard_links=no
8739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8741 $as_echo "$hard_links" >&6; }
8742 if test "$hard_links" = no; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8744 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8745 need_locks=warn
8747 else
8748 need_locks=no
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8757 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8759 runpath_var=
8760 allow_undefined_flag=
8761 always_export_symbols=no
8762 archive_cmds=
8763 archive_expsym_cmds=
8764 compiler_needs_object=no
8765 enable_shared_with_static_runtimes=no
8766 export_dynamic_flag_spec=
8767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8768 hardcode_automatic=no
8769 hardcode_direct=no
8770 hardcode_direct_absolute=no
8771 hardcode_libdir_flag_spec=
8772 hardcode_libdir_flag_spec_ld=
8773 hardcode_libdir_separator=
8774 hardcode_minus_L=no
8775 hardcode_shlibpath_var=unsupported
8776 inherit_rpath=no
8777 link_all_deplibs=unknown
8778 module_cmds=
8779 module_expsym_cmds=
8780 old_archive_from_new_cmds=
8781 old_archive_from_expsyms_cmds=
8782 thread_safe_flag_spec=
8783 whole_archive_flag_spec=
8784 # include_expsyms should be a list of space-separated symbols to be *always*
8785 # included in the symbol list
8786 include_expsyms=
8787 # exclude_expsyms can be an extended regexp of symbols to exclude
8788 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8789 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8790 # as well as any symbol that contains `d'.
8791 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8792 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8793 # platforms (ab)use it in PIC code, but their linkers get confused if
8794 # the symbol is explicitly referenced. Since portable code cannot
8795 # rely on this symbol name, it's probably fine to never include it in
8796 # preloaded symbol tables.
8797 # Exclude shared library initialization/finalization symbols.
8798 extract_expsyms_cmds=
8800 case $host_os in
8801 cygwin* | mingw* | pw32* | cegcc*)
8802 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8803 # When not using gcc, we currently assume that we are using
8804 # Microsoft Visual C++.
8805 if test "$GCC" != yes; then
8806 with_gnu_ld=no
8809 interix*)
8810 # we just hope/assume this is gcc and not c89 (= MSVC++)
8811 with_gnu_ld=yes
8813 openbsd*)
8814 with_gnu_ld=no
8816 esac
8818 ld_shlibs=yes
8820 # On some targets, GNU ld is compatible enough with the native linker
8821 # that we're better off using the native interface for both.
8822 lt_use_gnu_ld_interface=no
8823 if test "$with_gnu_ld" = yes; then
8824 case $host_os in
8825 aix*)
8826 # The AIX port of GNU ld has always aspired to compatibility
8827 # with the native linker. However, as the warning in the GNU ld
8828 # block says, versions before 2.19.5* couldn't really create working
8829 # shared libraries, regardless of the interface used.
8830 case `$LD -v 2>&1` in
8831 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8832 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8833 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8835 lt_use_gnu_ld_interface=yes
8837 esac
8840 lt_use_gnu_ld_interface=yes
8842 esac
8845 if test "$lt_use_gnu_ld_interface" = yes; then
8846 # If archive_cmds runs LD, not CC, wlarc should be empty
8847 wlarc='${wl}'
8849 # Set some defaults for GNU ld with shared library support. These
8850 # are reset later if shared libraries are not supported. Putting them
8851 # here allows them to be overridden if necessary.
8852 runpath_var=LD_RUN_PATH
8853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854 export_dynamic_flag_spec='${wl}--export-dynamic'
8855 # ancient GNU ld didn't support --whole-archive et. al.
8856 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8857 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8858 else
8859 whole_archive_flag_spec=
8861 supports_anon_versioning=no
8862 case `$LD -v 2>&1` in
8863 *GNU\ gold*) supports_anon_versioning=yes ;;
8864 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8865 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8866 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8867 *\ 2.11.*) ;; # other 2.11 versions
8868 *) supports_anon_versioning=yes ;;
8869 esac
8871 # See if GNU ld supports shared libraries.
8872 case $host_os in
8873 aix[3-9]*)
8874 # On AIX/PPC, the GNU linker is very broken
8875 if test "$host_cpu" != ia64; then
8876 ld_shlibs=no
8877 cat <<_LT_EOF 1>&2
8879 *** Warning: the GNU linker, at least up to release 2.19, is reported
8880 *** to be unable to reliably create shared libraries on AIX.
8881 *** Therefore, libtool is disabling shared libraries support. If you
8882 *** really care for shared libraries, you may want to install binutils
8883 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8884 *** You will then need to restart the configuration process.
8886 _LT_EOF
8890 amigaos*)
8891 case $host_cpu in
8892 powerpc)
8893 # see comment about AmigaOS4 .so support
8894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8895 archive_expsym_cmds=''
8897 m68k)
8898 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)'
8899 hardcode_libdir_flag_spec='-L$libdir'
8900 hardcode_minus_L=yes
8902 esac
8905 beos*)
8906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8907 allow_undefined_flag=unsupported
8908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8909 # support --undefined. This deserves some investigation. FIXME
8910 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8911 else
8912 ld_shlibs=no
8916 cygwin* | mingw* | pw32* | cegcc*)
8917 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8918 # as there is no search path for DLLs.
8919 hardcode_libdir_flag_spec='-L$libdir'
8920 export_dynamic_flag_spec='${wl}--export-all-symbols'
8921 allow_undefined_flag=unsupported
8922 always_export_symbols=no
8923 enable_shared_with_static_runtimes=yes
8924 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8926 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8928 # If the export-symbols file already is a .def file (1st line
8929 # is EXPORTS), use it as is; otherwise, prepend...
8930 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8931 cp $export_symbols $output_objdir/$soname.def;
8932 else
8933 echo EXPORTS > $output_objdir/$soname.def;
8934 cat $export_symbols >> $output_objdir/$soname.def;
8936 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8937 else
8938 ld_shlibs=no
8942 haiku*)
8943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944 link_all_deplibs=yes
8947 interix[3-9]*)
8948 hardcode_direct=no
8949 hardcode_shlibpath_var=no
8950 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8951 export_dynamic_flag_spec='${wl}-E'
8952 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8953 # Instead, shared libraries are loaded at an image base (0x10000000 by
8954 # default) and relocated if they conflict, which is a slow very memory
8955 # consuming and fragmenting process. To avoid this, we pick a random,
8956 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8957 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8958 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8959 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'
8962 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8963 tmp_diet=no
8964 if test "$host_os" = linux-dietlibc; then
8965 case $cc_basename in
8966 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8967 esac
8969 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8970 && test "$tmp_diet" = no
8971 then
8972 tmp_addflag=
8973 tmp_sharedflag='-shared'
8974 case $cc_basename,$host_cpu in
8975 pgcc*) # Portland Group C compiler
8976 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8977 tmp_addflag=' $pic_flag'
8979 pgf77* | pgf90* | pgf95* | pgfortran*)
8980 # Portland Group f77 and f90 compilers
8981 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8982 tmp_addflag=' $pic_flag -Mnomain' ;;
8983 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8984 tmp_addflag=' -i_dynamic' ;;
8985 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8986 tmp_addflag=' -i_dynamic -nofor_main' ;;
8987 ifc* | ifort*) # Intel Fortran compiler
8988 tmp_addflag=' -nofor_main' ;;
8989 lf95*) # Lahey Fortran 8.1
8990 whole_archive_flag_spec=
8991 tmp_sharedflag='--shared' ;;
8992 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8993 tmp_sharedflag='-qmkshrobj'
8994 tmp_addflag= ;;
8995 nvcc*) # Cuda Compiler Driver 2.2
8996 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8997 compiler_needs_object=yes
8999 esac
9000 case `$CC -V 2>&1 | sed 5q` in
9001 *Sun\ C*) # Sun C 5.9
9002 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9003 compiler_needs_object=yes
9004 tmp_sharedflag='-G' ;;
9005 *Sun\ F*) # Sun Fortran 8.3
9006 tmp_sharedflag='-G' ;;
9007 esac
9008 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9010 if test "x$supports_anon_versioning" = xyes; then
9011 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9013 echo "local: *; };" >> $output_objdir/$libname.ver~
9014 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9017 case $cc_basename in
9018 xlf* | bgf* | bgxlf* | mpixlf*)
9019 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9020 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9021 hardcode_libdir_flag_spec=
9022 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9023 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9024 if test "x$supports_anon_versioning" = xyes; then
9025 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9026 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9027 echo "local: *; };" >> $output_objdir/$libname.ver~
9028 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9031 esac
9032 else
9033 ld_shlibs=no
9037 netbsd*)
9038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9039 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9040 wlarc=
9041 else
9042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9047 solaris*)
9048 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9049 ld_shlibs=no
9050 cat <<_LT_EOF 1>&2
9052 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9053 *** create shared libraries on Solaris systems. Therefore, libtool
9054 *** is disabling shared libraries support. We urge you to upgrade GNU
9055 *** binutils to release 2.9.1 or newer. Another option is to modify
9056 *** your PATH or compiler configuration so that the native linker is
9057 *** used, and then restart.
9059 _LT_EOF
9060 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9062 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9063 else
9064 ld_shlibs=no
9068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9069 case `$LD -v 2>&1` in
9070 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9071 ld_shlibs=no
9072 cat <<_LT_EOF 1>&2
9074 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9075 *** reliably create shared libraries on SCO systems. Therefore, libtool
9076 *** is disabling shared libraries support. We urge you to upgrade GNU
9077 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9078 *** your PATH or compiler configuration so that the native linker is
9079 *** used, and then restart.
9081 _LT_EOF
9084 # For security reasons, it is highly recommended that you always
9085 # use absolute paths for naming shared libraries, and exclude the
9086 # DT_RUNPATH tag from executables and libraries. But doing so
9087 # requires that you compile everything twice, which is a pain.
9088 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9089 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9092 else
9093 ld_shlibs=no
9096 esac
9099 sunos4*)
9100 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9101 wlarc=
9102 hardcode_direct=yes
9103 hardcode_shlibpath_var=no
9107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9110 else
9111 ld_shlibs=no
9114 esac
9116 if test "$ld_shlibs" = no; then
9117 runpath_var=
9118 hardcode_libdir_flag_spec=
9119 export_dynamic_flag_spec=
9120 whole_archive_flag_spec=
9122 else
9123 # PORTME fill in a description of your system's linker (not GNU ld)
9124 case $host_os in
9125 aix3*)
9126 allow_undefined_flag=unsupported
9127 always_export_symbols=yes
9128 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'
9129 # Note: this linker hardcodes the directories in LIBPATH if there
9130 # are no directories specified by -L.
9131 hardcode_minus_L=yes
9132 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9133 # Neither direct hardcoding nor static linking is supported with a
9134 # broken collect2.
9135 hardcode_direct=unsupported
9139 aix[4-9]*)
9140 if test "$host_cpu" = ia64; then
9141 # On IA64, the linker does run time linking by default, so we don't
9142 # have to do anything special.
9143 aix_use_runtimelinking=no
9144 exp_sym_flag='-Bexport'
9145 no_entry_flag=""
9146 else
9147 # If we're using GNU nm, then we don't want the "-C" option.
9148 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9149 # Also, AIX nm treats weak defined symbols like other global
9150 # defined symbols, whereas GNU nm marks them as "W".
9151 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9152 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9153 else
9154 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'
9156 aix_use_runtimelinking=no
9158 # Test if we are trying to use run time linking or normal
9159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9160 # need to do runtime linking.
9161 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9162 for ld_flag in $LDFLAGS; do
9163 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9164 aix_use_runtimelinking=yes
9165 break
9167 done
9169 esac
9171 exp_sym_flag='-bexport'
9172 no_entry_flag='-bnoentry'
9175 # When large executables or shared objects are built, AIX ld can
9176 # have problems creating the table of contents. If linking a library
9177 # or program results in "error TOC overflow" add -mminimal-toc to
9178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9181 archive_cmds=''
9182 hardcode_direct=yes
9183 hardcode_direct_absolute=yes
9184 hardcode_libdir_separator=':'
9185 link_all_deplibs=yes
9186 file_list_spec='${wl}-f,'
9188 if test "$GCC" = yes; then
9189 case $host_os in aix4.[012]|aix4.[012].*)
9190 # We only want to do this on AIX 4.2 and lower, the check
9191 # below for broken collect2 doesn't work under 4.3+
9192 collect2name=`${CC} -print-prog-name=collect2`
9193 if test -f "$collect2name" &&
9194 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9195 then
9196 # We have reworked collect2
9198 else
9199 # We have old collect2
9200 hardcode_direct=unsupported
9201 # It fails to find uninstalled libraries when the uninstalled
9202 # path is not listed in the libpath. Setting hardcode_minus_L
9203 # to unsupported forces relinking
9204 hardcode_minus_L=yes
9205 hardcode_libdir_flag_spec='-L$libdir'
9206 hardcode_libdir_separator=
9209 esac
9210 shared_flag='-shared'
9211 if test "$aix_use_runtimelinking" = yes; then
9212 shared_flag="$shared_flag "'${wl}-G'
9214 else
9215 # not using gcc
9216 if test "$host_cpu" = ia64; then
9217 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9218 # chokes on -Wl,-G. The following line is correct:
9219 shared_flag='-G'
9220 else
9221 if test "$aix_use_runtimelinking" = yes; then
9222 shared_flag='${wl}-G'
9223 else
9224 shared_flag='${wl}-bM:SRE'
9229 export_dynamic_flag_spec='${wl}-bexpall'
9230 # It seems that -bexpall does not export symbols beginning with
9231 # underscore (_), so it is better to generate a list of symbols to export.
9232 always_export_symbols=yes
9233 if test "$aix_use_runtimelinking" = yes; then
9234 # Warning - without using the other runtime loading flags (-brtl),
9235 # -berok will link without error, but may produce a broken library.
9236 allow_undefined_flag='-berok'
9237 # Determine the default libpath from the value encoded in an
9238 # empty executable.
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9243 main ()
9247 return 0;
9249 _ACEOF
9250 if ac_fn_c_try_link "$LINENO"; then :
9252 lt_aix_libpath_sed='
9253 /Import File Strings/,/^$/ {
9254 /^0/ {
9255 s/^0 *\(.*\)$/\1/
9259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9260 # Check for a 64-bit object if we didn't find anything.
9261 if test -z "$aix_libpath"; then
9262 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9265 rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9269 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9270 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9271 else
9272 if test "$host_cpu" = ia64; then
9273 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9274 allow_undefined_flag="-z nodefs"
9275 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"
9276 else
9277 # Determine the default libpath from the value encoded in an
9278 # empty executable.
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9283 main ()
9287 return 0;
9289 _ACEOF
9290 if ac_fn_c_try_link "$LINENO"; then :
9292 lt_aix_libpath_sed='
9293 /Import File Strings/,/^$/ {
9294 /^0/ {
9295 s/^0 *\(.*\)$/\1/
9299 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9300 # Check for a 64-bit object if we didn't find anything.
9301 if test -z "$aix_libpath"; then
9302 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9305 rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9309 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9310 # Warning - without using the other run time loading flags,
9311 # -berok will link without error, but may produce a broken library.
9312 no_undefined_flag=' ${wl}-bernotok'
9313 allow_undefined_flag=' ${wl}-berok'
9314 if test "$with_gnu_ld" = yes; then
9315 # We only use this code for GNU lds that support --whole-archive.
9316 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9317 else
9318 # Exported symbols can be pulled into shared objects from archives
9319 whole_archive_flag_spec='$convenience'
9321 archive_cmds_need_lc=yes
9322 # This is similar to how AIX traditionally builds its shared libraries.
9323 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'
9328 amigaos*)
9329 case $host_cpu in
9330 powerpc)
9331 # see comment about AmigaOS4 .so support
9332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 archive_expsym_cmds=''
9335 m68k)
9336 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)'
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_minus_L=yes
9340 esac
9343 bsdi[45]*)
9344 export_dynamic_flag_spec=-rdynamic
9347 cygwin* | mingw* | pw32* | cegcc*)
9348 # When not using gcc, we currently assume that we are using
9349 # Microsoft Visual C++.
9350 # hardcode_libdir_flag_spec is actually meaningless, as there is
9351 # no search path for DLLs.
9352 hardcode_libdir_flag_spec=' '
9353 allow_undefined_flag=unsupported
9354 # Tell ltmain to make .lib files, not .a files.
9355 libext=lib
9356 # Tell ltmain to make .dll files, not .so files.
9357 shrext_cmds=".dll"
9358 # FIXME: Setting linknames here is a bad hack.
9359 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9360 # The linker will automatically build a .lib file if we build a DLL.
9361 old_archive_from_new_cmds='true'
9362 # FIXME: Should let the user specify the lib program.
9363 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9364 fix_srcfile_path='`cygpath -w "$srcfile"`'
9365 enable_shared_with_static_runtimes=yes
9368 darwin* | rhapsody*)
9371 archive_cmds_need_lc=no
9372 hardcode_direct=no
9373 hardcode_automatic=yes
9374 hardcode_shlibpath_var=unsupported
9375 if test "$lt_cv_ld_force_load" = "yes"; then
9376 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9377 else
9378 whole_archive_flag_spec=''
9380 link_all_deplibs=yes
9381 allow_undefined_flag="$_lt_dar_allow_undefined"
9382 case $cc_basename in
9383 ifort*) _lt_dar_can_shared=yes ;;
9384 *) _lt_dar_can_shared=$GCC ;;
9385 esac
9386 if test "$_lt_dar_can_shared" = "yes"; then
9387 output_verbose_link_cmd=func_echo_all
9388 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9389 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9390 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}"
9391 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}"
9393 else
9394 ld_shlibs=no
9399 dgux*)
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_libdir_flag_spec='-L$libdir'
9402 hardcode_shlibpath_var=no
9405 freebsd1*)
9406 ld_shlibs=no
9409 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9410 # support. Future versions do this automatically, but an explicit c++rt0.o
9411 # does not break anything, and helps significantly (at the cost of a little
9412 # extra space).
9413 freebsd2.2*)
9414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9415 hardcode_libdir_flag_spec='-R$libdir'
9416 hardcode_direct=yes
9417 hardcode_shlibpath_var=no
9420 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9421 freebsd2*)
9422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_direct=yes
9424 hardcode_minus_L=yes
9425 hardcode_shlibpath_var=no
9428 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9429 freebsd* | dragonfly*)
9430 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9431 hardcode_libdir_flag_spec='-R$libdir'
9432 hardcode_direct=yes
9433 hardcode_shlibpath_var=no
9436 hpux9*)
9437 if test "$GCC" = yes; then
9438 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'
9439 else
9440 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'
9442 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9443 hardcode_libdir_separator=:
9444 hardcode_direct=yes
9446 # hardcode_minus_L: Not really in the search PATH,
9447 # but as the default location of the library.
9448 hardcode_minus_L=yes
9449 export_dynamic_flag_spec='${wl}-E'
9452 hpux10*)
9453 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9454 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9455 else
9456 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9458 if test "$with_gnu_ld" = no; then
9459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9460 hardcode_libdir_flag_spec_ld='+b $libdir'
9461 hardcode_libdir_separator=:
9462 hardcode_direct=yes
9463 hardcode_direct_absolute=yes
9464 export_dynamic_flag_spec='${wl}-E'
9465 # hardcode_minus_L: Not really in the search PATH,
9466 # but as the default location of the library.
9467 hardcode_minus_L=yes
9471 hpux11*)
9472 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9473 case $host_cpu in
9474 hppa*64*)
9475 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9477 ia64*)
9478 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9481 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9483 esac
9484 else
9485 case $host_cpu in
9486 hppa*64*)
9487 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9489 ia64*)
9490 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9494 # Older versions of the 11.00 compiler do not understand -b yet
9495 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9497 $as_echo_n "checking if $CC understands -b... " >&6; }
9498 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9499 $as_echo_n "(cached) " >&6
9500 else
9501 lt_cv_prog_compiler__b=no
9502 save_LDFLAGS="$LDFLAGS"
9503 LDFLAGS="$LDFLAGS -b"
9504 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9506 # The linker can only warn and ignore the option if not recognized
9507 # So say no if there are warnings
9508 if test -s conftest.err; then
9509 # Append any errors to the config.log.
9510 cat conftest.err 1>&5
9511 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9513 if diff conftest.exp conftest.er2 >/dev/null; then
9514 lt_cv_prog_compiler__b=yes
9516 else
9517 lt_cv_prog_compiler__b=yes
9520 $RM -r conftest*
9521 LDFLAGS="$save_LDFLAGS"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9525 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9527 if test x"$lt_cv_prog_compiler__b" = xyes; then
9528 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9529 else
9530 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9534 esac
9536 if test "$with_gnu_ld" = no; then
9537 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9538 hardcode_libdir_separator=:
9540 case $host_cpu in
9541 hppa*64*|ia64*)
9542 hardcode_direct=no
9543 hardcode_shlibpath_var=no
9546 hardcode_direct=yes
9547 hardcode_direct_absolute=yes
9548 export_dynamic_flag_spec='${wl}-E'
9550 # hardcode_minus_L: Not really in the search PATH,
9551 # but as the default location of the library.
9552 hardcode_minus_L=yes
9554 esac
9558 irix5* | irix6* | nonstopux*)
9559 if test "$GCC" = yes; then
9560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9561 # Try to use the -exported_symbol ld option, if it does not
9562 # work, assume that -exports_file does not work either and
9563 # implicitly export all symbols.
9564 save_LDFLAGS="$LDFLAGS"
9565 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 int foo(void) {}
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9571 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9574 rm -f core conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
9576 LDFLAGS="$save_LDFLAGS"
9577 else
9578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9581 archive_cmds_need_lc='no'
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 hardcode_libdir_separator=:
9584 inherit_rpath=yes
9585 link_all_deplibs=yes
9588 netbsd*)
9589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9591 else
9592 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9594 hardcode_libdir_flag_spec='-R$libdir'
9595 hardcode_direct=yes
9596 hardcode_shlibpath_var=no
9599 newsos6)
9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_direct=yes
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 hardcode_libdir_separator=:
9604 hardcode_shlibpath_var=no
9607 *nto* | *qnx*)
9610 openbsd*)
9611 if test -f /usr/libexec/ld.so; then
9612 hardcode_direct=yes
9613 hardcode_shlibpath_var=no
9614 hardcode_direct_absolute=yes
9615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9617 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9619 export_dynamic_flag_spec='${wl}-E'
9620 else
9621 case $host_os in
9622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_libdir_flag_spec='-R$libdir'
9627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9630 esac
9632 else
9633 ld_shlibs=no
9637 os2*)
9638 hardcode_libdir_flag_spec='-L$libdir'
9639 hardcode_minus_L=yes
9640 allow_undefined_flag=unsupported
9641 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'
9642 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9645 osf3*)
9646 if test "$GCC" = yes; then
9647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9648 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9649 else
9650 allow_undefined_flag=' -expect_unresolved \*'
9651 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9653 archive_cmds_need_lc='no'
9654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655 hardcode_libdir_separator=:
9658 osf4* | osf5*) # as osf3* with the addition of -msym flag
9659 if test "$GCC" = yes; then
9660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9661 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9663 else
9664 allow_undefined_flag=' -expect_unresolved \*'
9665 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9666 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~
9667 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9669 # Both c and cxx compiler support -rpath directly
9670 hardcode_libdir_flag_spec='-rpath $libdir'
9672 archive_cmds_need_lc='no'
9673 hardcode_libdir_separator=:
9676 solaris*)
9677 no_undefined_flag=' -z defs'
9678 if test "$GCC" = yes; then
9679 wlarc='${wl}'
9680 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9682 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9683 else
9684 case `$CC -V 2>&1` in
9685 *"Compilers 5.0"*)
9686 wlarc=''
9687 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9692 wlarc='${wl}'
9693 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9695 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9697 esac
9699 hardcode_libdir_flag_spec='-R$libdir'
9700 hardcode_shlibpath_var=no
9701 case $host_os in
9702 solaris2.[0-5] | solaris2.[0-5].*) ;;
9704 # The compiler driver will combine and reorder linker options,
9705 # but understands `-z linker_flag'. GCC discards it without `$wl',
9706 # but is careful enough not to reorder.
9707 # Supported since Solaris 2.6 (maybe 2.5.1?)
9708 if test "$GCC" = yes; then
9709 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9710 else
9711 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9714 esac
9715 link_all_deplibs=yes
9718 sunos4*)
9719 if test "x$host_vendor" = xsequent; then
9720 # Use $CC to link under sequent, because it throws in some extra .o
9721 # files that make .init and .fini sections work.
9722 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9723 else
9724 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9726 hardcode_libdir_flag_spec='-L$libdir'
9727 hardcode_direct=yes
9728 hardcode_minus_L=yes
9729 hardcode_shlibpath_var=no
9732 sysv4)
9733 case $host_vendor in
9734 sni)
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_direct=yes # is this really true???
9738 siemens)
9739 ## LD is ld it makes a PLAMLIB
9740 ## CC just makes a GrossModule.
9741 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9742 reload_cmds='$CC -r -o $output$reload_objs'
9743 hardcode_direct=no
9745 motorola)
9746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9749 esac
9750 runpath_var='LD_RUN_PATH'
9751 hardcode_shlibpath_var=no
9754 sysv4.3*)
9755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9756 hardcode_shlibpath_var=no
9757 export_dynamic_flag_spec='-Bexport'
9760 sysv4*MP*)
9761 if test -d /usr/nec; then
9762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9763 hardcode_shlibpath_var=no
9764 runpath_var=LD_RUN_PATH
9765 hardcode_runpath_var=yes
9766 ld_shlibs=yes
9770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9771 no_undefined_flag='${wl}-z,text'
9772 archive_cmds_need_lc=no
9773 hardcode_shlibpath_var=no
9774 runpath_var='LD_RUN_PATH'
9776 if test "$GCC" = yes; then
9777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 else
9780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 sysv5* | sco3.2v5* | sco5v6*)
9786 # Note: We can NOT use -z defs as we might desire, because we do not
9787 # link with -lc, and that would cause any symbols used from libc to
9788 # always be unresolved, which means just about no library would
9789 # ever link correctly. If we're not using GNU ld we use -z text
9790 # though, which does catch some bad symbols but isn't as heavy-handed
9791 # as -z defs.
9792 no_undefined_flag='${wl}-z,text'
9793 allow_undefined_flag='${wl}-z,nodefs'
9794 archive_cmds_need_lc=no
9795 hardcode_shlibpath_var=no
9796 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9797 hardcode_libdir_separator=':'
9798 link_all_deplibs=yes
9799 export_dynamic_flag_spec='${wl}-Bexport'
9800 runpath_var='LD_RUN_PATH'
9802 if test "$GCC" = yes; then
9803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9805 else
9806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811 uts4*)
9812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813 hardcode_libdir_flag_spec='-L$libdir'
9814 hardcode_shlibpath_var=no
9818 ld_shlibs=no
9820 esac
9822 if test x$host_vendor = xsni; then
9823 case $host in
9824 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9825 export_dynamic_flag_spec='${wl}-Blargedynsym'
9827 esac
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9832 $as_echo "$ld_shlibs" >&6; }
9833 test "$ld_shlibs" = no && can_build_shared=no
9835 with_gnu_ld=$with_gnu_ld
9852 # Do we need to explicitly link libc?
9854 case "x$archive_cmds_need_lc" in
9855 x|xyes)
9856 # Assume -lc should be added
9857 archive_cmds_need_lc=yes
9859 if test "$enable_shared" = yes && test "$GCC" = yes; then
9860 case $archive_cmds in
9861 *'~'*)
9862 # FIXME: we may have to deal with multi-command sequences.
9864 '$CC '*)
9865 # Test whether the compiler implicitly links with -lc since on some
9866 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9867 # to ld, don't add -lc before -lgcc.
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9869 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9870 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9871 $as_echo_n "(cached) " >&6
9872 else
9873 $RM conftest*
9874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9877 (eval $ac_compile) 2>&5
9878 ac_status=$?
9879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9880 test $ac_status = 0; } 2>conftest.err; then
9881 soname=conftest
9882 lib=conftest
9883 libobjs=conftest.$ac_objext
9884 deplibs=
9885 wl=$lt_prog_compiler_wl
9886 pic_flag=$lt_prog_compiler_pic
9887 compiler_flags=-v
9888 linker_flags=-v
9889 verstring=
9890 output_objdir=.
9891 libname=conftest
9892 lt_save_allow_undefined_flag=$allow_undefined_flag
9893 allow_undefined_flag=
9894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9895 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9896 ac_status=$?
9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; }
9899 then
9900 lt_cv_archive_cmds_need_lc=no
9901 else
9902 lt_cv_archive_cmds_need_lc=yes
9904 allow_undefined_flag=$lt_save_allow_undefined_flag
9905 else
9906 cat conftest.err 1>&5
9908 $RM conftest*
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9912 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9913 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9915 esac
9918 esac
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10077 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10079 if test "$GCC" = yes; then
10080 case $host_os in
10081 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10082 *) lt_awk_arg="/^libraries:/" ;;
10083 esac
10084 case $host_os in
10085 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10086 *) lt_sed_strip_eq="s,=/,/,g" ;;
10087 esac
10088 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10089 case $lt_search_path_spec in
10090 *\;*)
10091 # if the path contains ";" then we assume it to be the separator
10092 # otherwise default to the standard path separator (i.e. ":") - it is
10093 # assumed that no part of a normal pathname contains ";" but that should
10094 # okay in the real world where ";" in dirpaths is itself problematic.
10095 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10100 esac
10101 # Ok, now we have the path, separated by spaces, we can step through it
10102 # and add multilib dir if necessary.
10103 lt_tmp_lt_search_path_spec=
10104 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10105 for lt_sys_path in $lt_search_path_spec; do
10106 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10108 else
10109 test -d "$lt_sys_path" && \
10110 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10112 done
10113 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10114 BEGIN {RS=" "; FS="/|\n";} {
10115 lt_foo="";
10116 lt_count=0;
10117 for (lt_i = NF; lt_i > 0; lt_i--) {
10118 if ($lt_i != "" && $lt_i != ".") {
10119 if ($lt_i == "..") {
10120 lt_count++;
10121 } else {
10122 if (lt_count == 0) {
10123 lt_foo="/" $lt_i lt_foo;
10124 } else {
10125 lt_count--;
10130 if (lt_foo != "") { lt_freq[lt_foo]++; }
10131 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10133 # AWK program above erroneously prepends '/' to C:/dos/paths
10134 # for these hosts.
10135 case $host_os in
10136 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10137 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10138 esac
10139 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10140 else
10141 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10143 library_names_spec=
10144 libname_spec='lib$name'
10145 soname_spec=
10146 shrext_cmds=".so"
10147 postinstall_cmds=
10148 postuninstall_cmds=
10149 finish_cmds=
10150 finish_eval=
10151 shlibpath_var=
10152 shlibpath_overrides_runpath=unknown
10153 version_type=none
10154 dynamic_linker="$host_os ld.so"
10155 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10156 need_lib_prefix=unknown
10157 hardcode_into_libs=no
10159 # when you set need_version to no, make sure it does not cause -set_version
10160 # flags to be left without arguments
10161 need_version=unknown
10163 case $host_os in
10164 aix3*)
10165 version_type=linux
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10167 shlibpath_var=LIBPATH
10169 # AIX 3 has no versioning support, so we append a major version to the name.
10170 soname_spec='${libname}${release}${shared_ext}$major'
10173 aix[4-9]*)
10174 version_type=linux
10175 need_lib_prefix=no
10176 need_version=no
10177 hardcode_into_libs=yes
10178 if test "$host_cpu" = ia64; then
10179 # AIX 5 supports IA64
10180 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10181 shlibpath_var=LD_LIBRARY_PATH
10182 else
10183 # With GCC up to 2.95.x, collect2 would create an import file
10184 # for dependence libraries. The import file would start with
10185 # the line `#! .'. This would cause the generated library to
10186 # depend on `.', always an invalid library. This was fixed in
10187 # development snapshots of GCC prior to 3.0.
10188 case $host_os in
10189 aix4 | aix4.[01] | aix4.[01].*)
10190 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10191 echo ' yes '
10192 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10194 else
10195 can_build_shared=no
10198 esac
10199 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10200 # soname into executable. Probably we can add versioning support to
10201 # collect2, so additional links can be useful in future.
10202 if test "$aix_use_runtimelinking" = yes; then
10203 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10204 # instead of lib<name>.a to let people know that these are not
10205 # typical AIX shared libraries.
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 else
10208 # We preserve .a as extension for shared libraries through AIX4.2
10209 # and later when we are not doing run time linking.
10210 library_names_spec='${libname}${release}.a $libname.a'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10213 shlibpath_var=LIBPATH
10217 amigaos*)
10218 case $host_cpu in
10219 powerpc)
10220 # Since July 2007 AmigaOS4 officially supports .so libraries.
10221 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224 m68k)
10225 library_names_spec='$libname.ixlibrary $libname.a'
10226 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10227 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10229 esac
10232 beos*)
10233 library_names_spec='${libname}${shared_ext}'
10234 dynamic_linker="$host_os ld.so"
10235 shlibpath_var=LIBRARY_PATH
10238 bsdi[45]*)
10239 version_type=linux
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10246 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10247 # the default ld.so.conf also contains /usr/contrib/lib and
10248 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10249 # libtool to hard-code these into programs
10252 cygwin* | mingw* | pw32* | cegcc*)
10253 version_type=windows
10254 shrext_cmds=".dll"
10255 need_version=no
10256 need_lib_prefix=no
10258 case $GCC,$host_os in
10259 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10260 library_names_spec='$libname.dll.a'
10261 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10262 postinstall_cmds='base_file=`basename \${file}`~
10263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10264 dldir=$destdir/`dirname \$dlpath`~
10265 test -d \$dldir || mkdir -p \$dldir~
10266 $install_prog $dir/$dlname \$dldir/$dlname~
10267 chmod a+x \$dldir/$dlname~
10268 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10269 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10272 dlpath=$dir/\$dldll~
10273 $RM \$dlpath'
10274 shlibpath_overrides_runpath=yes
10276 case $host_os in
10277 cygwin*)
10278 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10279 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10283 mingw* | cegcc*)
10284 # MinGW DLLs use traditional 'lib' prefix
10285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10287 pw32*)
10288 # pw32 DLLs use 'pw' prefix rather than 'lib'
10289 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10291 esac
10295 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10297 esac
10298 dynamic_linker='Win32 ld.exe'
10299 # FIXME: first we should search . and the directory the executable is in
10300 shlibpath_var=PATH
10303 darwin* | rhapsody*)
10304 dynamic_linker="$host_os dyld"
10305 version_type=darwin
10306 need_lib_prefix=no
10307 need_version=no
10308 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10309 soname_spec='${libname}${release}${major}$shared_ext'
10310 shlibpath_overrides_runpath=yes
10311 shlibpath_var=DYLD_LIBRARY_PATH
10312 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10314 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10315 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10318 dgux*)
10319 version_type=linux
10320 need_lib_prefix=no
10321 need_version=no
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10327 freebsd1*)
10328 dynamic_linker=no
10331 freebsd* | dragonfly*)
10332 # DragonFly does not have aout. When/if they implement a new
10333 # versioning mechanism, adjust this.
10334 if test -x /usr/bin/objformat; then
10335 objformat=`/usr/bin/objformat`
10336 else
10337 case $host_os in
10338 freebsd[123]*) objformat=aout ;;
10339 *) objformat=elf ;;
10340 esac
10342 version_type=freebsd-$objformat
10343 case $version_type in
10344 freebsd-elf*)
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10346 need_version=no
10347 need_lib_prefix=no
10349 freebsd-*)
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10351 need_version=yes
10353 esac
10354 shlibpath_var=LD_LIBRARY_PATH
10355 case $host_os in
10356 freebsd2*)
10357 shlibpath_overrides_runpath=yes
10359 freebsd3.[01]* | freebsdelf3.[01]*)
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10363 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10364 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10365 shlibpath_overrides_runpath=no
10366 hardcode_into_libs=yes
10368 *) # from 4.6 on, and DragonFly
10369 shlibpath_overrides_runpath=yes
10370 hardcode_into_libs=yes
10372 esac
10375 gnu*)
10376 version_type=linux
10377 need_lib_prefix=no
10378 need_version=no
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10380 soname_spec='${libname}${release}${shared_ext}$major'
10381 shlibpath_var=LD_LIBRARY_PATH
10382 hardcode_into_libs=yes
10385 haiku*)
10386 version_type=linux
10387 need_lib_prefix=no
10388 need_version=no
10389 dynamic_linker="$host_os runtime_loader"
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 shlibpath_var=LIBRARY_PATH
10393 shlibpath_overrides_runpath=yes
10394 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10395 hardcode_into_libs=yes
10398 hpux9* | hpux10* | hpux11*)
10399 # Give a soname corresponding to the major version so that dld.sl refuses to
10400 # link against other versions.
10401 version_type=sunos
10402 need_lib_prefix=no
10403 need_version=no
10404 case $host_cpu in
10405 ia64*)
10406 shrext_cmds='.so'
10407 hardcode_into_libs=yes
10408 dynamic_linker="$host_os dld.so"
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 if test "X$HPUX_IA64_MODE" = X32; then
10414 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10415 else
10416 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10418 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10420 hppa*64*)
10421 shrext_cmds='.sl'
10422 hardcode_into_libs=yes
10423 dynamic_linker="$host_os dld.sl"
10424 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10432 shrext_cmds='.sl'
10433 dynamic_linker="$host_os dld.sl"
10434 shlibpath_var=SHLIB_PATH
10435 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10439 esac
10440 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10441 postinstall_cmds='chmod 555 $lib'
10442 # or fails outright, so override atomically:
10443 install_override_mode=555
10446 interix[3-9]*)
10447 version_type=linux
10448 need_lib_prefix=no
10449 need_version=no
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=no
10455 hardcode_into_libs=yes
10458 irix5* | irix6* | nonstopux*)
10459 case $host_os in
10460 nonstopux*) version_type=nonstopux ;;
10462 if test "$lt_cv_prog_gnu_ld" = yes; then
10463 version_type=linux
10464 else
10465 version_type=irix
10466 fi ;;
10467 esac
10468 need_lib_prefix=no
10469 need_version=no
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10472 case $host_os in
10473 irix5* | nonstopux*)
10474 libsuff= shlibsuff=
10477 case $LD in # libtool.m4 will add one of these switches to LD
10478 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10479 libsuff= shlibsuff= libmagic=32-bit;;
10480 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10481 libsuff=32 shlibsuff=N32 libmagic=N32;;
10482 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10483 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10484 *) libsuff= shlibsuff= libmagic=never-match;;
10485 esac
10487 esac
10488 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10489 shlibpath_overrides_runpath=no
10490 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10491 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10492 hardcode_into_libs=yes
10495 # No shared lib support for Linux oldld, aout, or coff.
10496 linux*oldld* | linux*aout* | linux*coff*)
10497 dynamic_linker=no
10500 # This must be Linux ELF.
10501 linux* | k*bsd*-gnu | kopensolaris*-gnu)
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 soname_spec='${libname}${release}${shared_ext}$major'
10507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 shlibpath_overrides_runpath=no
10511 # Some binutils ld are patched to set DT_RUNPATH
10512 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 lt_cv_shlibpath_overrides_runpath=no
10516 save_LDFLAGS=$LDFLAGS
10517 save_libdir=$libdir
10518 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10519 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h. */
10524 main ()
10528 return 0;
10530 _ACEOF
10531 if ac_fn_c_try_link "$LINENO"; then :
10532 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10533 lt_cv_shlibpath_overrides_runpath=yes
10536 rm -f core conftest.err conftest.$ac_objext \
10537 conftest$ac_exeext conftest.$ac_ext
10538 LDFLAGS=$save_LDFLAGS
10539 libdir=$save_libdir
10543 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10545 # This implies no fast_install, which is unacceptable.
10546 # Some rework will be needed to allow for fast_install
10547 # before this can be enabled.
10548 hardcode_into_libs=yes
10550 # Append ld.so.conf contents to the search path
10551 if test -f /etc/ld.so.conf; then
10552 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;s/"//g;/^$/d' | tr '\n' ' '`
10553 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10556 # We used to test for /lib/ld.so.1 and disable shared libraries on
10557 # powerpc, because MkLinux only supported shared libraries with the
10558 # GNU dynamic linker. Since this was broken with cross compilers,
10559 # most powerpc-linux boxes support dynamic linking these days and
10560 # people can always --disable-shared, the test was removed, and we
10561 # assume the GNU/Linux dynamic linker is in use.
10562 dynamic_linker='GNU/Linux ld.so'
10565 netbsd*)
10566 version_type=sunos
10567 need_lib_prefix=no
10568 need_version=no
10569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10572 dynamic_linker='NetBSD (a.out) ld.so'
10573 else
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 dynamic_linker='NetBSD ld.elf_so'
10578 shlibpath_var=LD_LIBRARY_PATH
10579 shlibpath_overrides_runpath=yes
10580 hardcode_into_libs=yes
10583 newsos6)
10584 version_type=linux
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10590 *nto* | *qnx*)
10591 version_type=qnx
10592 need_lib_prefix=no
10593 need_version=no
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 shlibpath_overrides_runpath=no
10598 hardcode_into_libs=yes
10599 dynamic_linker='ldqnx.so'
10602 openbsd*)
10603 version_type=sunos
10604 sys_lib_dlsearch_path_spec="/usr/lib"
10605 need_lib_prefix=no
10606 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10607 case $host_os in
10608 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10609 *) need_version=no ;;
10610 esac
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10615 case $host_os in
10616 openbsd2.[89] | openbsd2.[89].*)
10617 shlibpath_overrides_runpath=no
10620 shlibpath_overrides_runpath=yes
10622 esac
10623 else
10624 shlibpath_overrides_runpath=yes
10628 os2*)
10629 libname_spec='$name'
10630 shrext_cmds=".dll"
10631 need_lib_prefix=no
10632 library_names_spec='$libname${shared_ext} $libname.a'
10633 dynamic_linker='OS/2 ld.exe'
10634 shlibpath_var=LIBPATH
10637 osf3* | osf4* | osf5*)
10638 version_type=osf
10639 need_lib_prefix=no
10640 need_version=no
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10645 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10648 rdos*)
10649 dynamic_linker=no
10652 solaris*)
10653 version_type=linux
10654 need_lib_prefix=no
10655 need_version=no
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=yes
10660 hardcode_into_libs=yes
10661 # ldd complains unless libraries are executable
10662 postinstall_cmds='chmod +x $lib'
10665 sunos4*)
10666 version_type=sunos
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10668 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10669 shlibpath_var=LD_LIBRARY_PATH
10670 shlibpath_overrides_runpath=yes
10671 if test "$with_gnu_ld" = yes; then
10672 need_lib_prefix=no
10674 need_version=yes
10677 sysv4 | sysv4.3*)
10678 version_type=linux
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 case $host_vendor in
10683 sni)
10684 shlibpath_overrides_runpath=no
10685 need_lib_prefix=no
10686 runpath_var=LD_RUN_PATH
10688 siemens)
10689 need_lib_prefix=no
10691 motorola)
10692 need_lib_prefix=no
10693 need_version=no
10694 shlibpath_overrides_runpath=no
10695 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10697 esac
10700 sysv4*MP*)
10701 if test -d /usr/nec ;then
10702 version_type=linux
10703 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10704 soname_spec='$libname${shared_ext}.$major'
10705 shlibpath_var=LD_LIBRARY_PATH
10709 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10710 version_type=freebsd-elf
10711 need_lib_prefix=no
10712 need_version=no
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=yes
10717 hardcode_into_libs=yes
10718 if test "$with_gnu_ld" = yes; then
10719 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10720 else
10721 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10722 case $host_os in
10723 sco3.2v5*)
10724 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10726 esac
10728 sys_lib_dlsearch_path_spec='/usr/lib'
10731 tpf*)
10732 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10733 version_type=linux
10734 need_lib_prefix=no
10735 need_version=no
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 shlibpath_overrides_runpath=no
10739 hardcode_into_libs=yes
10742 uts4*)
10743 version_type=linux
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745 soname_spec='${libname}${release}${shared_ext}$major'
10746 shlibpath_var=LD_LIBRARY_PATH
10750 dynamic_linker=no
10752 esac
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10754 $as_echo "$dynamic_linker" >&6; }
10755 test "$dynamic_linker" = no && can_build_shared=no
10757 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10758 if test "$GCC" = yes; then
10759 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10762 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10763 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10765 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10766 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10861 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10862 hardcode_action=
10863 if test -n "$hardcode_libdir_flag_spec" ||
10864 test -n "$runpath_var" ||
10865 test "X$hardcode_automatic" = "Xyes" ; then
10867 # We can hardcode non-existent directories.
10868 if test "$hardcode_direct" != no &&
10869 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10870 # have to relink, otherwise we might link with an installed library
10871 # when we should be linking with a yet-to-be-installed one
10872 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10873 test "$hardcode_minus_L" != no; then
10874 # Linking always hardcodes the temporary library directory.
10875 hardcode_action=relink
10876 else
10877 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10878 hardcode_action=immediate
10880 else
10881 # We cannot hardcode anything, or else we can only hardcode existing
10882 # directories.
10883 hardcode_action=unsupported
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10886 $as_echo "$hardcode_action" >&6; }
10888 if test "$hardcode_action" = relink ||
10889 test "$inherit_rpath" = yes; then
10890 # Fast installation is not supported
10891 enable_fast_install=no
10892 elif test "$shlibpath_overrides_runpath" = yes ||
10893 test "$enable_shared" = no; then
10894 # Fast installation is not necessary
10895 enable_fast_install=needless
10903 if test "x$enable_dlopen" != xyes; then
10904 enable_dlopen=unknown
10905 enable_dlopen_self=unknown
10906 enable_dlopen_self_static=unknown
10907 else
10908 lt_cv_dlopen=no
10909 lt_cv_dlopen_libs=
10911 case $host_os in
10912 beos*)
10913 lt_cv_dlopen="load_add_on"
10914 lt_cv_dlopen_libs=
10915 lt_cv_dlopen_self=yes
10918 mingw* | pw32* | cegcc*)
10919 lt_cv_dlopen="LoadLibrary"
10920 lt_cv_dlopen_libs=
10923 cygwin*)
10924 lt_cv_dlopen="dlopen"
10925 lt_cv_dlopen_libs=
10928 darwin*)
10929 # if libdl is installed we need to link against it
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10931 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10932 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 ac_check_lib_save_LIBS=$LIBS
10936 LIBS="-ldl $LIBS"
10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10940 /* Override any GCC internal prototype to avoid an error.
10941 Use char because int might match the return type of a GCC
10942 builtin and then its argument prototype would still apply. */
10943 #ifdef __cplusplus
10944 extern "C"
10945 #endif
10946 char dlopen ();
10948 main ()
10950 return dlopen ();
10952 return 0;
10954 _ACEOF
10955 if ac_fn_c_try_link "$LINENO"; then :
10956 ac_cv_lib_dl_dlopen=yes
10957 else
10958 ac_cv_lib_dl_dlopen=no
10960 rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext conftest.$ac_ext
10962 LIBS=$ac_check_lib_save_LIBS
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10965 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10966 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10968 else
10970 lt_cv_dlopen="dyld"
10971 lt_cv_dlopen_libs=
10972 lt_cv_dlopen_self=yes
10979 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10980 if test "x$ac_cv_func_shl_load" = x""yes; then :
10981 lt_cv_dlopen="shl_load"
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10984 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10985 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-ldld $LIBS"
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 char shl_load ();
11001 main ()
11003 return shl_load ();
11005 return 0;
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_dld_shl_load=yes
11010 else
11011 ac_cv_lib_dld_shl_load=no
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11018 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11019 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11020 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11021 else
11022 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11023 if test "x$ac_cv_func_dlopen" = x""yes; then :
11024 lt_cv_dlopen="dlopen"
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11027 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11028 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 ac_check_lib_save_LIBS=$LIBS
11032 LIBS="-ldl $LIBS"
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11039 #ifdef __cplusplus
11040 extern "C"
11041 #endif
11042 char dlopen ();
11044 main ()
11046 return dlopen ();
11048 return 0;
11050 _ACEOF
11051 if ac_fn_c_try_link "$LINENO"; then :
11052 ac_cv_lib_dl_dlopen=yes
11053 else
11054 ac_cv_lib_dl_dlopen=no
11056 rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 LIBS=$ac_check_lib_save_LIBS
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11061 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11062 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11066 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11067 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 ac_check_lib_save_LIBS=$LIBS
11071 LIBS="-lsvld $LIBS"
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char dlopen ();
11083 main ()
11085 return dlopen ();
11087 return 0;
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091 ac_cv_lib_svld_dlopen=yes
11092 else
11093 ac_cv_lib_svld_dlopen=no
11095 rm -f core conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11100 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11101 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11105 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11106 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11107 $as_echo_n "(cached) " >&6
11108 else
11109 ac_check_lib_save_LIBS=$LIBS
11110 LIBS="-ldld $LIBS"
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11114 /* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11117 #ifdef __cplusplus
11118 extern "C"
11119 #endif
11120 char dld_link ();
11122 main ()
11124 return dld_link ();
11126 return 0;
11128 _ACEOF
11129 if ac_fn_c_try_link "$LINENO"; then :
11130 ac_cv_lib_dld_dld_link=yes
11131 else
11132 ac_cv_lib_dld_dld_link=no
11134 rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11139 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11140 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11160 esac
11162 if test "x$lt_cv_dlopen" != xno; then
11163 enable_dlopen=yes
11164 else
11165 enable_dlopen=no
11168 case $lt_cv_dlopen in
11169 dlopen)
11170 save_CPPFLAGS="$CPPFLAGS"
11171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11173 save_LDFLAGS="$LDFLAGS"
11174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11176 save_LIBS="$LIBS"
11177 LIBS="$lt_cv_dlopen_libs $LIBS"
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11180 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11181 if test "${lt_cv_dlopen_self+set}" = set; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 if test "$cross_compiling" = yes; then :
11185 lt_cv_dlopen_self=cross
11186 else
11187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11188 lt_status=$lt_dlunknown
11189 cat > conftest.$ac_ext <<_LT_EOF
11190 #line 11190 "configure"
11191 #include "confdefs.h"
11193 #if HAVE_DLFCN_H
11194 #include <dlfcn.h>
11195 #endif
11197 #include <stdio.h>
11199 #ifdef RTLD_GLOBAL
11200 # define LT_DLGLOBAL RTLD_GLOBAL
11201 #else
11202 # ifdef DL_GLOBAL
11203 # define LT_DLGLOBAL DL_GLOBAL
11204 # else
11205 # define LT_DLGLOBAL 0
11206 # endif
11207 #endif
11209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11210 find out it does not work in some platform. */
11211 #ifndef LT_DLLAZY_OR_NOW
11212 # ifdef RTLD_LAZY
11213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11214 # else
11215 # ifdef DL_LAZY
11216 # define LT_DLLAZY_OR_NOW DL_LAZY
11217 # else
11218 # ifdef RTLD_NOW
11219 # define LT_DLLAZY_OR_NOW RTLD_NOW
11220 # else
11221 # ifdef DL_NOW
11222 # define LT_DLLAZY_OR_NOW DL_NOW
11223 # else
11224 # define LT_DLLAZY_OR_NOW 0
11225 # endif
11226 # endif
11227 # endif
11228 # endif
11229 #endif
11231 /* When -fvisbility=hidden is used, assume the code has been annotated
11232 correspondingly for the symbols needed. */
11233 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11234 void fnord () __attribute__((visibility("default")));
11235 #endif
11237 void fnord () { int i=42; }
11238 int main ()
11240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11241 int status = $lt_dlunknown;
11243 if (self)
11245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11246 else
11248 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11249 else puts (dlerror ());
11251 /* dlclose (self); */
11253 else
11254 puts (dlerror ());
11256 return status;
11258 _LT_EOF
11259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11260 (eval $ac_link) 2>&5
11261 ac_status=$?
11262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11263 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11264 (./conftest; exit; ) >&5 2>/dev/null
11265 lt_status=$?
11266 case x$lt_status in
11267 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11268 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11269 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11270 esac
11271 else :
11272 # compilation failed
11273 lt_cv_dlopen_self=no
11276 rm -fr conftest*
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11281 $as_echo "$lt_cv_dlopen_self" >&6; }
11283 if test "x$lt_cv_dlopen_self" = xyes; then
11284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11286 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11287 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 if test "$cross_compiling" = yes; then :
11291 lt_cv_dlopen_self_static=cross
11292 else
11293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11294 lt_status=$lt_dlunknown
11295 cat > conftest.$ac_ext <<_LT_EOF
11296 #line 11296 "configure"
11297 #include "confdefs.h"
11299 #if HAVE_DLFCN_H
11300 #include <dlfcn.h>
11301 #endif
11303 #include <stdio.h>
11305 #ifdef RTLD_GLOBAL
11306 # define LT_DLGLOBAL RTLD_GLOBAL
11307 #else
11308 # ifdef DL_GLOBAL
11309 # define LT_DLGLOBAL DL_GLOBAL
11310 # else
11311 # define LT_DLGLOBAL 0
11312 # endif
11313 #endif
11315 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11316 find out it does not work in some platform. */
11317 #ifndef LT_DLLAZY_OR_NOW
11318 # ifdef RTLD_LAZY
11319 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11320 # else
11321 # ifdef DL_LAZY
11322 # define LT_DLLAZY_OR_NOW DL_LAZY
11323 # else
11324 # ifdef RTLD_NOW
11325 # define LT_DLLAZY_OR_NOW RTLD_NOW
11326 # else
11327 # ifdef DL_NOW
11328 # define LT_DLLAZY_OR_NOW DL_NOW
11329 # else
11330 # define LT_DLLAZY_OR_NOW 0
11331 # endif
11332 # endif
11333 # endif
11334 # endif
11335 #endif
11337 /* When -fvisbility=hidden is used, assume the code has been annotated
11338 correspondingly for the symbols needed. */
11339 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11340 void fnord () __attribute__((visibility("default")));
11341 #endif
11343 void fnord () { int i=42; }
11344 int main ()
11346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11347 int status = $lt_dlunknown;
11349 if (self)
11351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11352 else
11354 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11355 else puts (dlerror ());
11357 /* dlclose (self); */
11359 else
11360 puts (dlerror ());
11362 return status;
11364 _LT_EOF
11365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11366 (eval $ac_link) 2>&5
11367 ac_status=$?
11368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11369 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11370 (./conftest; exit; ) >&5 2>/dev/null
11371 lt_status=$?
11372 case x$lt_status in
11373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11375 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11376 esac
11377 else :
11378 # compilation failed
11379 lt_cv_dlopen_self_static=no
11382 rm -fr conftest*
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11387 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11390 CPPFLAGS="$save_CPPFLAGS"
11391 LDFLAGS="$save_LDFLAGS"
11392 LIBS="$save_LIBS"
11394 esac
11396 case $lt_cv_dlopen_self in
11397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11398 *) enable_dlopen_self=unknown ;;
11399 esac
11401 case $lt_cv_dlopen_self_static in
11402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11403 *) enable_dlopen_self_static=unknown ;;
11404 esac
11423 striplib=
11424 old_striplib=
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11426 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11427 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11428 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11429 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11431 $as_echo "yes" >&6; }
11432 else
11433 # FIXME - insert some real tests, host_os isn't really good enough
11434 case $host_os in
11435 darwin*)
11436 if test -n "$STRIP" ; then
11437 striplib="$STRIP -x"
11438 old_striplib="$STRIP -S"
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11440 $as_echo "yes" >&6; }
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11450 esac
11464 # Report which library types will actually be built
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11466 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11468 $as_echo "$can_build_shared" >&6; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11471 $as_echo_n "checking whether to build shared libraries... " >&6; }
11472 test "$can_build_shared" = "no" && enable_shared=no
11474 # On AIX, shared libraries and static libraries use the same namespace, and
11475 # are all built from PIC.
11476 case $host_os in
11477 aix3*)
11478 test "$enable_shared" = yes && enable_static=no
11479 if test -n "$RANLIB"; then
11480 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11481 postinstall_cmds='$RANLIB $lib'
11485 aix[4-9]*)
11486 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11487 test "$enable_shared" = yes && enable_static=no
11490 esac
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11492 $as_echo "$enable_shared" >&6; }
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11495 $as_echo_n "checking whether to build static libraries... " >&6; }
11496 # Make sure either enable_shared or enable_static is yes.
11497 test "$enable_shared" = yes || enable_static=yes
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11499 $as_echo "$enable_static" >&6; }
11505 ac_ext=c
11506 ac_cpp='$CPP $CPPFLAGS'
11507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11511 CC="$lt_save_CC"
11525 ac_config_commands="$ac_config_commands libtool"
11530 # Only expand once:
11534 # Check whether --enable-targets was given.
11535 if test "${enable_targets+set}" = set; then :
11536 enableval=$enable_targets; case "${enableval}" in
11537 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11539 no) enable_targets= ;;
11540 *) enable_targets=$enableval ;;
11541 esac
11544 ac_checking=yes
11545 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11546 ac_checking=
11548 # Check whether --enable-checking was given.
11549 if test "${enable_checking+set}" = set; then :
11550 enableval=$enable_checking; case "${enableval}" in
11551 no|none) ac_checking= ;;
11552 *) ac_checking=yes ;;
11553 esac
11555 if test x$ac_checking != x ; then
11557 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11561 using_cgen=no
11564 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h. */
11567 __GNUC__
11568 _ACEOF
11569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11570 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11572 else
11573 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11575 rm -f conftest*
11578 # Check whether --enable-werror was given.
11579 if test "${enable_werror+set}" = set; then :
11580 enableval=$enable_werror; case "${enableval}" in
11581 yes | y) ERROR_ON_WARNING="yes" ;;
11582 no | n) ERROR_ON_WARNING="no" ;;
11583 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11584 esac
11588 # Disable -Wformat by default when using gcc on mingw
11589 case "${host}" in
11590 *-*-mingw32*)
11591 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11592 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11595 *) ;;
11596 esac
11598 # Enable -Werror by default when using gcc
11599 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11600 ERROR_ON_WARNING=yes
11603 NO_WERROR=
11604 if test "${ERROR_ON_WARNING}" = yes ; then
11605 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11606 NO_WERROR="-Wno-error"
11609 if test "${GCC}" = yes ; then
11610 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11613 # Check whether --enable-build-warnings was given.
11614 if test "${enable_build_warnings+set}" = set; then :
11615 enableval=$enable_build_warnings; case "${enableval}" in
11616 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11617 no) if test "${GCC}" = yes ; then
11618 WARN_CFLAGS="-w"
11619 fi;;
11620 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11621 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11622 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11623 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11624 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11625 esac
11629 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11630 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11637 # Generate a header file
11638 ac_config_headers="$ac_config_headers config.h:config.in"
11641 # If we are on a DOS filesystem, we must use gdb.ini rather than
11642 # .gdbinit.
11643 case "${host}" in
11644 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11645 GDBINIT="gdb.ini"
11646 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11650 GDBINIT=".gdbinit"
11651 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11654 esac
11657 #We need this for the host. BOUT header is in host order.
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11659 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11660 if test "${ac_cv_c_bigendian+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
11662 else
11663 ac_cv_c_bigendian=unknown
11664 # See if we're dealing with a universal compiler.
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11667 #ifndef __APPLE_CC__
11668 not a universal capable compiler
11669 #endif
11670 typedef int dummy;
11672 _ACEOF
11673 if ac_fn_c_try_compile "$LINENO"; then :
11675 # Check for potential -arch flags. It is not universal unless
11676 # there are at least two -arch flags with different values.
11677 ac_arch=
11678 ac_prev=
11679 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11680 if test -n "$ac_prev"; then
11681 case $ac_word in
11682 i?86 | x86_64 | ppc | ppc64)
11683 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11684 ac_arch=$ac_word
11685 else
11686 ac_cv_c_bigendian=universal
11687 break
11690 esac
11691 ac_prev=
11692 elif test "x$ac_word" = "x-arch"; then
11693 ac_prev=arch
11695 done
11697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 if test $ac_cv_c_bigendian = unknown; then
11699 # See if sys/param.h defines the BYTE_ORDER macro.
11700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h. */
11702 #include <sys/types.h>
11703 #include <sys/param.h>
11706 main ()
11708 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11709 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11710 && LITTLE_ENDIAN)
11711 bogus endian macros
11712 #endif
11715 return 0;
11717 _ACEOF
11718 if ac_fn_c_try_compile "$LINENO"; then :
11719 # It does; now see whether it defined to BIG_ENDIAN or not.
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722 #include <sys/types.h>
11723 #include <sys/param.h>
11726 main ()
11728 #if BYTE_ORDER != BIG_ENDIAN
11729 not big endian
11730 #endif
11733 return 0;
11735 _ACEOF
11736 if ac_fn_c_try_compile "$LINENO"; then :
11737 ac_cv_c_bigendian=yes
11738 else
11739 ac_cv_c_bigendian=no
11741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11745 if test $ac_cv_c_bigendian = unknown; then
11746 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749 #include <limits.h>
11752 main ()
11754 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11755 bogus endian macros
11756 #endif
11759 return 0;
11761 _ACEOF
11762 if ac_fn_c_try_compile "$LINENO"; then :
11763 # It does; now see whether it defined to _BIG_ENDIAN or not.
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11766 #include <limits.h>
11769 main ()
11771 #ifndef _BIG_ENDIAN
11772 not big endian
11773 #endif
11776 return 0;
11778 _ACEOF
11779 if ac_fn_c_try_compile "$LINENO"; then :
11780 ac_cv_c_bigendian=yes
11781 else
11782 ac_cv_c_bigendian=no
11784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11788 if test $ac_cv_c_bigendian = unknown; then
11789 # Compile a test program.
11790 if test "$cross_compiling" = yes; then :
11791 # Try to guess by grepping values from an object file.
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11794 short int ascii_mm[] =
11795 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11796 short int ascii_ii[] =
11797 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11798 int use_ascii (int i) {
11799 return ascii_mm[i] + ascii_ii[i];
11801 short int ebcdic_ii[] =
11802 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11803 short int ebcdic_mm[] =
11804 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11805 int use_ebcdic (int i) {
11806 return ebcdic_mm[i] + ebcdic_ii[i];
11808 extern int foo;
11811 main ()
11813 return use_ascii (foo) == use_ebcdic (foo);
11815 return 0;
11817 _ACEOF
11818 if ac_fn_c_try_compile "$LINENO"; then :
11819 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11820 ac_cv_c_bigendian=yes
11822 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11823 if test "$ac_cv_c_bigendian" = unknown; then
11824 ac_cv_c_bigendian=no
11825 else
11826 # finding both strings is unlikely to happen, but who knows?
11827 ac_cv_c_bigendian=unknown
11831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11832 else
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835 $ac_includes_default
11837 main ()
11840 /* Are we little or big endian? From Harbison&Steele. */
11841 union
11843 long int l;
11844 char c[sizeof (long int)];
11845 } u;
11846 u.l = 1;
11847 return u.c[sizeof (long int) - 1] == 1;
11850 return 0;
11852 _ACEOF
11853 if ac_fn_c_try_run "$LINENO"; then :
11854 ac_cv_c_bigendian=no
11855 else
11856 ac_cv_c_bigendian=yes
11858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11859 conftest.$ac_objext conftest.beam conftest.$ac_ext
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11865 $as_echo "$ac_cv_c_bigendian" >&6; }
11866 case $ac_cv_c_bigendian in #(
11867 yes)
11868 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11869 ;; #(
11871 ;; #(
11872 universal)
11874 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11876 ;; #(
11878 as_fn_error "unknown endianness
11879 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11880 esac
11883 te_file=generic
11885 # Makefile target for installing gas in $(tooldir)/bin.
11886 install_tooldir=install-exec-tooldir
11888 canon_targets=""
11889 all_targets=no
11890 if test -n "$enable_targets" ; then
11891 for t in `echo $enable_targets | sed 's/,/ /g'`; do
11892 if test $t = "all"; then
11893 all_targets=yes
11894 continue
11896 result=`$ac_config_sub $t 2>/dev/null`
11897 if test -n "$result" ; then
11898 canon_targets="$canon_targets $result"
11899 # else
11900 # # Permit "all", etc. We don't support it yet though.
11901 # canon_targets="$canon_targets $t"
11903 done
11904 _gas_uniq_list="$canon_targets"
11905 _gas_uniq_newlist=""
11906 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11907 case $_gas_uniq_i in
11908 _gas_uniq_dummy) ;;
11909 *) case " $_gas_uniq_newlist " in
11910 *" $_gas_uniq_i "*) ;;
11911 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11912 esac ;;
11913 esac
11914 done
11915 canon_targets=$_gas_uniq_newlist
11919 emulations=""
11921 for this_target in $target $canon_targets ; do
11923 targ=${this_target}
11924 . ${srcdir}/configure.tgt
11926 case ${target_cpu} in
11927 crisv32)
11929 cat >>confdefs.h <<_ACEOF
11930 #define DEFAULT_CRIS_ARCH $arch
11931 _ACEOF
11934 esac
11936 if test ${this_target} = $target ; then
11937 target_cpu_type=${cpu_type}
11938 elif test ${target_cpu_type} != ${cpu_type} ; then
11939 continue
11942 generic_target=${cpu_type}-${target_vendor}-${target_os}
11943 case ${generic_target} in
11944 i386-*-sco3.2v5*)
11945 if test ${this_target} = $target; then
11947 $as_echo "#define SCO_ELF 1" >>confdefs.h
11952 i386-*-msdosdjgpp* \
11953 | i386-*-go32* \
11954 | i386-go32-rtems*)
11956 $as_echo "#define STRICTCOFF 1" >>confdefs.h
11960 i860-*-*)
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
11962 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
11965 microblaze*)
11968 mips-sony-bsd*)
11970 mips-*-bsd*)
11971 as_fn_error "Unknown vendor for mips-bsd configuration." "$LINENO" 5
11974 ppc-*-aix[5-9].*)
11976 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
11979 ppc-*-linux-*)
11980 case "$endian" in
11981 big) ;;
11982 *) as_fn_error "GNU/Linux must be configured big endian" "$LINENO" 5 ;;
11983 esac
11985 ppc-*-solaris*)
11986 if test ${this_target} = $target; then
11988 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
11991 if test x${endian} = xbig; then
11992 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
11996 sh*-*-symbianelf*)
11998 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
12001 esac
12003 if test ${this_target} = $target ; then
12004 endian_def=
12005 if test x${endian} = xbig; then
12006 endian_def=1
12007 elif test x${endian} = xlittle; then
12008 endian_def=0
12010 if test x${endian_def} != x; then
12012 cat >>confdefs.h <<_ACEOF
12013 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12014 _ACEOF
12019 # Other random stuff.
12021 case ${cpu_type} in
12022 mips)
12023 # Set mips_cpu to the name of the default CPU.
12024 case ${target_cpu} in
12025 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12026 mips_cpu=from-abi
12028 mipsisa32 | mipsisa32el)
12029 mips_cpu=mips32
12031 mipsisa32r2 | mipsisa32r2el)
12032 mips_cpu=mips32r2
12034 mipsisa64 | mipsisa64el)
12035 mips_cpu=mips64
12037 mipsisa64r2 | mipsisa64r2el)
12038 mips_cpu=mips64r2
12040 mipstx39 | mipstx39el)
12041 mips_cpu=r3900
12043 mips64vr | mips64vrel)
12044 mips_cpu=vr4100
12046 mipsisa32r2* | mipsisa64r2*)
12047 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12049 mips64* | mipsisa64* | mipsisa32*)
12050 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12053 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12055 esac
12056 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12057 # binaries. It's a GNU extension that some OSes don't understand.
12058 # The value only matters on ELF targets.
12059 case ${target} in
12060 *-*-irix*)
12061 use_e_mips_abi_o32=0
12064 use_e_mips_abi_o32=1
12066 esac
12067 # Decide whether to generate 32-bit or 64-bit code by default.
12068 # Used to resolve -march=from-abi when an embedded ABI is selected.
12069 case ${target} in
12070 mips64*-*-* | mipsisa64*-*-*)
12071 mips_default_64bit=1
12074 mips_default_64bit=0
12076 esac
12077 # Decide which ABI to target by default.
12078 case ${target} in
12079 mips64*-linux* | mips-sgi-irix6*)
12080 mips_default_abi=N32_ABI
12082 mips*-linux*)
12083 mips_default_abi=O32_ABI
12085 mips64*-openbsd*)
12086 mips_default_abi=N64_ABI
12089 mips_default_abi=NO_ABI
12091 esac
12093 cat >>confdefs.h <<_ACEOF
12094 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12095 _ACEOF
12098 cat >>confdefs.h <<_ACEOF
12099 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12100 _ACEOF
12103 cat >>confdefs.h <<_ACEOF
12104 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12105 _ACEOF
12108 cat >>confdefs.h <<_ACEOF
12109 #define MIPS_DEFAULT_ABI $mips_default_abi
12110 _ACEOF
12113 esac
12115 # Do we need the opcodes library?
12116 case ${cpu_type} in
12117 vax | tic30)
12121 need_opcodes=yes
12123 case "${enable_shared}" in
12124 yes) shared_opcodes=true ;;
12125 *opcodes*) shared_opcodes=true ;;
12126 *) shared_opcodes=false ;;
12127 esac
12129 esac
12131 # Any other special object files needed ?
12132 case ${cpu_type} in
12134 bfin)
12135 echo ${extra_objects} | grep -s "bfin-parse.o"
12136 if test $? -ne 0 ; then
12137 extra_objects="$extra_objects bfin-parse.o"
12140 echo ${extra_objects} | grep -s "bfin-lex.o"
12141 if test $? -ne 0 ; then
12142 extra_objects="$extra_objects bfin-lex.o"
12146 fr30 | ip2k | iq2000 | lm32 | m32r | openrisc)
12147 using_cgen=yes
12150 m32c)
12151 using_cgen=yes
12153 frv)
12154 using_cgen=yes
12156 m68k)
12157 case ${extra_objects} in
12158 *m68k-parse.o*) ;;
12159 *) extra_objects="$extra_objects m68k-parse.o" ;;
12160 esac
12163 mep)
12164 using_cgen=yes
12167 mips)
12168 echo ${extra_objects} | grep -s "itbl-parse.o"
12169 if test $? -ne 0 ; then
12170 extra_objects="$extra_objects itbl-parse.o"
12173 echo ${extra_objects} | grep -s "itbl-lex.o"
12174 if test $? -ne 0 ; then
12175 extra_objects="$extra_objects itbl-lex.o"
12178 echo ${extra_objects} | grep -s "itbl-ops.o"
12179 if test $? -ne 0 ; then
12180 extra_objects="$extra_objects itbl-ops.o"
12185 using_cgen=yes
12188 i386 | s390 | sparc)
12189 if test $this_target = $target ; then
12191 cat >>confdefs.h <<_ACEOF
12192 #define DEFAULT_ARCH "${arch}"
12193 _ACEOF
12199 echo ${extra_objects} | grep -s "rx-parse.o"
12200 if test $? -ne 0 ; then
12201 extra_objects="$extra_objects rx-parse.o"
12205 xstormy16)
12206 using_cgen=yes
12209 xc16x)
12210 using_cgen=yes
12213 xtensa)
12214 echo ${extra_objects} | grep -s "xtensa-relax.o"
12215 if test $? -ne 0 ; then
12216 extra_objects="$extra_objects xtensa-relax.o"
12222 esac
12224 if test $using_cgen = yes ; then
12225 case "x${extra_objects}" in
12226 *cgen.o*) ;;
12227 *) extra_objects="$extra_objects cgen.o" ;;
12228 esac
12231 # See if we really can support this configuration with the emulation code.
12233 if test $this_target = $target ; then
12234 obj_format=$fmt
12235 te_file=$em
12238 case ${te_file} in
12239 vms) extra_objects="$extra_objects te-vms.o" ;;
12240 esac
12242 # From target name and format, produce a list of supported emulations.
12244 case ${generic_target}-${fmt} in
12245 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12246 mips*-*-linux*-*) case "$endian" in
12247 big) emulation="mipsbelf mipslelf mipself" ;;
12248 *) emulation="mipslelf mipsbelf mipself" ;;
12249 esac ;;
12250 mips-*-lnews*-ecoff) ;;
12251 mips-*-*-ecoff) case "$endian" in
12252 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
12253 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
12254 esac ;;
12255 mips-*-*-elf) case "$endian" in
12256 big) emulation="mipsbelf mipslelf mipself" ;;
12257 *) emulation="mipslelf mipsbelf mipself" ;;
12258 esac ;;
12259 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12260 # i386-pc-pe-coff != i386-pc-coff.
12261 i386-*-pe-coff) ;;
12262 # Uncommenting the next line will turn on support for i386 AOUT
12263 # for the default linux configuration
12264 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12266 i386-*-aout) emulation="i386aout" ;;
12267 i386-*-coff) emulation="i386coff" ;;
12268 i386-*-elf) emulation="i386elf" ;;
12270 # Always all formats. The first stated emulation becomes the default.
12271 cris-*-*aout*) emulation="crisaout criself" ;;
12272 cris-*-*) emulation="criself crisaout" ;;
12273 esac
12275 emulations="$emulations $emulation"
12277 done
12279 # Turn on all targets if possible
12280 if test ${all_targets} = "yes"; then
12281 case ${target_cpu_type} in
12282 i386)
12283 case ${obj_format} in
12284 aout)
12285 emulations="$emulations i386coff i386elf"
12287 coff)
12288 emulations="$emulations i386aout i386elf"
12290 elf)
12291 emulations="$emulations i386aout i386coff"
12293 esac
12295 x86_64)
12296 case ${obj_format} in
12297 aout)
12298 emulations="$emulations i386coff i386elf"
12300 coff)
12301 emulations="$emulations i386aout i386elf"
12303 elf)
12304 emulations="$emulations i386aout i386coff"
12306 esac
12308 esac
12311 # Assign floating point type. Most processors with FP support
12312 # IEEE FP. On those that don't support FP at all, usually IEEE
12313 # is emulated.
12314 case ${target_cpu} in
12315 vax | pdp11 ) atof=vax ;;
12316 *) atof=ieee ;;
12317 esac
12319 case "${obj_format}" in
12320 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12321 esac
12323 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12324 cgen_cpu_prefix=""
12325 if test $using_cgen = yes ; then
12326 case ${target_cpu} in
12327 *) cgen_cpu_prefix=${target_cpu} ;;
12328 esac
12331 $as_echo "#define USING_CGEN 1" >>confdefs.h
12336 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12337 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12340 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12341 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12344 # Some COFF configurations want these random other flags set.
12345 case ${obj_format} in
12346 coff)
12347 case ${target_cpu_type} in
12348 i386)
12349 $as_echo "#define I386COFF 1" >>confdefs.h
12351 m68k)
12352 $as_echo "#define M68KCOFF 1" >>confdefs.h
12354 m88k)
12355 $as_echo "#define M88KCOFF 1" >>confdefs.h
12357 x86_64)
12358 $as_echo "#define I386COFF 1" >>confdefs.h
12360 esac
12362 esac
12364 # Getting this done right is going to be a bitch. Each configuration specified
12365 # with --enable-targets=... should be checked for environment, format, cpu
12366 # setting.
12368 # For each configuration, the necessary object file support code must be linked
12369 # in. This might be only one, it might be up to four. The necessary emulation
12370 # code needs to be provided, too.
12372 # And then there's "--enable-targets=all"....
12374 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
12376 formats="${obj_format}"
12377 emfiles=""
12378 EMULATIONS=""
12379 _gas_uniq_list="$emulations"
12380 _gas_uniq_newlist=""
12381 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12382 case $_gas_uniq_i in
12383 _gas_uniq_dummy) ;;
12384 *) case " $_gas_uniq_newlist " in
12385 *" $_gas_uniq_i "*) ;;
12386 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12387 esac ;;
12388 esac
12389 done
12390 emulations=$_gas_uniq_newlist
12392 for em in . $emulations ; do
12393 case $em in
12394 .) continue ;;
12395 mipsbelf | mipslelf | mipself)
12396 fmt=elf file=mipself ;;
12397 mipsbecoff | mipslecoff | mipsecoff)
12398 fmt=ecoff file=mipsecoff ;;
12399 *coff)
12400 fmt=coff file=$em ;;
12401 *aout)
12402 fmt=aout file=$em ;;
12403 *elf)
12404 fmt=elf file=$em ;;
12405 esac
12406 formats="$formats $fmt"
12407 emfiles="$emfiles e-$file.o"
12408 EMULATIONS="$EMULATIONS &$em,"
12409 done
12410 _gas_uniq_list="$formats"
12411 _gas_uniq_newlist=""
12412 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12413 case $_gas_uniq_i in
12414 _gas_uniq_dummy) ;;
12415 *) case " $_gas_uniq_newlist " in
12416 *" $_gas_uniq_i "*) ;;
12417 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12418 esac ;;
12419 esac
12420 done
12421 formats=$_gas_uniq_newlist
12423 _gas_uniq_list="$emfiles"
12424 _gas_uniq_newlist=""
12425 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12426 case $_gas_uniq_i in
12427 _gas_uniq_dummy) ;;
12428 *) case " $_gas_uniq_newlist " in
12429 *" $_gas_uniq_i "*) ;;
12430 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12431 esac ;;
12432 esac
12433 done
12434 emfiles=$_gas_uniq_newlist
12436 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12437 for fmt in $formats ; do
12438 case $fmt in
12439 aout)
12440 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12442 bout)
12443 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12445 coff)
12446 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12448 ecoff)
12449 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12451 elf)
12452 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12454 generic)
12455 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12457 som)
12458 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12460 esac
12461 extra_objects="$extra_objects obj-$fmt.o"
12462 done
12463 obj_format=multi
12465 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12466 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12467 # e-mips* has more than one emulation per file, e-i386* has just one at the
12468 # moment. If only one emulation is specified, then don't define
12469 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12470 case "${obj_format}${emfiles}" in
12471 multi* | *mips*)
12472 extra_objects="$extra_objects $emfiles"
12474 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12476 esac
12480 cat >>confdefs.h <<_ACEOF
12481 #define EMULATIONS $EMULATIONS
12482 _ACEOF
12485 cat >>confdefs.h <<_ACEOF
12486 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12487 _ACEOF
12490 reject_dev_configs=yes
12492 case ${reject_dev_configs}-${dev} in
12493 yes-yes) # Oops.
12494 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12496 esac
12504 # do we need the opcodes library?
12505 case "${need_opcodes}" in
12506 yes)
12507 OPCODES_LIB=../opcodes/libopcodes.la
12509 esac
12514 cat >>confdefs.h <<_ACEOF
12515 #define TARGET_ALIAS "${target_alias}"
12516 _ACEOF
12519 cat >>confdefs.h <<_ACEOF
12520 #define TARGET_CANONICAL "${target}"
12521 _ACEOF
12524 cat >>confdefs.h <<_ACEOF
12525 #define TARGET_CPU "${target_cpu}"
12526 _ACEOF
12529 cat >>confdefs.h <<_ACEOF
12530 #define TARGET_VENDOR "${target_vendor}"
12531 _ACEOF
12534 cat >>confdefs.h <<_ACEOF
12535 #define TARGET_OS "${target_os}"
12536 _ACEOF
12539 for ac_prog in 'bison -y' byacc
12541 # Extract the first word of "$ac_prog", so it can be a program name with args.
12542 set dummy $ac_prog; ac_word=$2
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544 $as_echo_n "checking for $ac_word... " >&6; }
12545 if test "${ac_cv_prog_YACC+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 if test -n "$YACC"; then
12549 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12550 else
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_prog_YACC="$ac_prog"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12562 done
12563 done
12564 IFS=$as_save_IFS
12568 YACC=$ac_cv_prog_YACC
12569 if test -n "$YACC"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12571 $as_echo "$YACC" >&6; }
12572 else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12578 test -n "$YACC" && break
12579 done
12580 test -n "$YACC" || YACC="yacc"
12582 for ac_prog in flex lex
12584 # Extract the first word of "$ac_prog", so it can be a program name with args.
12585 set dummy $ac_prog; ac_word=$2
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587 $as_echo_n "checking for $ac_word... " >&6; }
12588 if test "${ac_cv_prog_LEX+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 if test -n "$LEX"; then
12592 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12593 else
12594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595 for as_dir in $PATH
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12601 ac_cv_prog_LEX="$ac_prog"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 break 2
12605 done
12606 done
12607 IFS=$as_save_IFS
12611 LEX=$ac_cv_prog_LEX
12612 if test -n "$LEX"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12614 $as_echo "$LEX" >&6; }
12615 else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12621 test -n "$LEX" && break
12622 done
12623 test -n "$LEX" || LEX=":"
12625 if test "x$LEX" != "x:"; then
12626 cat >conftest.l <<_ACEOF
12628 a { ECHO; }
12629 b { REJECT; }
12630 c { yymore (); }
12631 d { yyless (1); }
12632 e { yyless (input () != 0); }
12633 f { unput (yytext[0]); }
12634 . { BEGIN INITIAL; }
12636 #ifdef YYTEXT_POINTER
12637 extern char *yytext;
12638 #endif
12640 main (void)
12642 return ! yylex () + ! yywrap ();
12644 _ACEOF
12645 { { ac_try="$LEX conftest.l"
12646 case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649 esac
12650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12651 $as_echo "$ac_try_echo"; } >&5
12652 (eval "$LEX conftest.l") 2>&5
12653 ac_status=$?
12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655 test $ac_status = 0; }
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12657 $as_echo_n "checking lex output file root... " >&6; }
12658 if test "${ac_cv_prog_lex_root+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
12660 else
12662 if test -f lex.yy.c; then
12663 ac_cv_prog_lex_root=lex.yy
12664 elif test -f lexyy.c; then
12665 ac_cv_prog_lex_root=lexyy
12666 else
12667 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12671 $as_echo "$ac_cv_prog_lex_root" >&6; }
12672 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12674 if test -z "${LEXLIB+set}"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12676 $as_echo_n "checking lex library... " >&6; }
12677 if test "${ac_cv_lib_lex+set}" = set; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12681 ac_save_LIBS=$LIBS
12682 ac_cv_lib_lex='none needed'
12683 for ac_lib in '' -lfl -ll; do
12684 LIBS="$ac_lib $ac_save_LIBS"
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12687 `cat $LEX_OUTPUT_ROOT.c`
12688 _ACEOF
12689 if ac_fn_c_try_link "$LINENO"; then :
12690 ac_cv_lib_lex=$ac_lib
12692 rm -f core conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
12694 test "$ac_cv_lib_lex" != 'none needed' && break
12695 done
12696 LIBS=$ac_save_LIBS
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12700 $as_echo "$ac_cv_lib_lex" >&6; }
12701 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12706 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12707 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 # POSIX says lex can declare yytext either as a pointer or an array; the
12711 # default is implementation-dependent. Figure out which it is, since
12712 # not all implementations provide the %pointer and %array declarations.
12713 ac_cv_prog_lex_yytext_pointer=no
12714 ac_save_LIBS=$LIBS
12715 LIBS="$LEXLIB $ac_save_LIBS"
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12718 #define YYTEXT_POINTER 1
12719 `cat $LEX_OUTPUT_ROOT.c`
12720 _ACEOF
12721 if ac_fn_c_try_link "$LINENO"; then :
12722 ac_cv_prog_lex_yytext_pointer=yes
12724 rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726 LIBS=$ac_save_LIBS
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12730 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12731 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12733 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12736 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12739 if test "$LEX" = :; then
12740 LEX=${am_missing_run}flex
12743 ALL_LINGUAS="fr tr es rw id ru"
12744 # If we haven't got the data from the intl directory,
12745 # assume NLS is disabled.
12746 USE_NLS=no
12747 LIBINTL=
12748 LIBINTL_DEP=
12749 INCINTL=
12750 XGETTEXT=
12751 GMSGFMT=
12752 POSUB=
12754 if test -f ../intl/config.intl; then
12755 . ../intl/config.intl
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12758 $as_echo_n "checking whether NLS is requested... " >&6; }
12759 if test x"$USE_NLS" != xyes; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12764 $as_echo "yes" >&6; }
12766 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12770 $as_echo_n "checking for catalogs to be installed... " >&6; }
12771 # Look for .po and .gmo files in the source directory.
12772 CATALOGS=
12773 XLINGUAS=
12774 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12775 # If there aren't any .gmo files the shell will give us the
12776 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12777 # weeded out.
12778 case "$cat" in *\**)
12779 continue;;
12780 esac
12781 # The quadruple backslash is collapsed to a double backslash
12782 # by the backticks, then collapsed again by the double quotes,
12783 # leaving us with one backslash in the sed expression (right
12784 # before the dot that mustn't act as a wildcard).
12785 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12786 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12787 # The user is allowed to set LINGUAS to a list of languages to
12788 # install catalogs for. If it's empty that means "all of them."
12789 if test "x$LINGUAS" = x; then
12790 CATALOGS="$CATALOGS $cat"
12791 XLINGUAS="$XLINGUAS $lang"
12792 else
12793 case "$LINGUAS" in *$lang*)
12794 CATALOGS="$CATALOGS $cat"
12795 XLINGUAS="$XLINGUAS $lang"
12797 esac
12799 done
12800 LINGUAS="$XLINGUAS"
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12802 $as_echo "$LINGUAS" >&6; }
12805 DATADIRNAME=share
12807 INSTOBJEXT=.mo
12809 GENCAT=gencat
12811 CATOBJEXT=.gmo
12815 MKINSTALLDIRS=
12816 if test -n "$ac_aux_dir"; then
12817 case "$ac_aux_dir" in
12818 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12819 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12820 esac
12822 if test -z "$MKINSTALLDIRS"; then
12823 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12829 $as_echo_n "checking whether NLS is requested... " >&6; }
12830 # Check whether --enable-nls was given.
12831 if test "${enable_nls+set}" = set; then :
12832 enableval=$enable_nls; USE_NLS=$enableval
12833 else
12834 USE_NLS=yes
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12838 $as_echo "$USE_NLS" >&6; }
12845 # Prepare PATH_SEPARATOR.
12846 # The user is always right.
12847 if test "${PATH_SEPARATOR+set}" != set; then
12848 echo "#! /bin/sh" >conf$$.sh
12849 echo "exit 0" >>conf$$.sh
12850 chmod +x conf$$.sh
12851 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12852 PATH_SEPARATOR=';'
12853 else
12854 PATH_SEPARATOR=:
12856 rm -f conf$$.sh
12859 # Find out how to test for executable files. Don't use a zero-byte file,
12860 # as systems may use methods other than mode bits to determine executability.
12861 cat >conf$$.file <<_ASEOF
12862 #! /bin/sh
12863 exit 0
12864 _ASEOF
12865 chmod +x conf$$.file
12866 if test -x conf$$.file >/dev/null 2>&1; then
12867 ac_executable_p="test -x"
12868 else
12869 ac_executable_p="test -f"
12871 rm -f conf$$.file
12873 # Extract the first word of "msgfmt", so it can be a program name with args.
12874 set dummy msgfmt; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 case "$MSGFMT" in
12881 [\\/]* | ?:[\\/]*)
12882 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12885 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12886 for ac_dir in $PATH; do
12887 IFS="$ac_save_IFS"
12888 test -z "$ac_dir" && ac_dir=.
12889 for ac_exec_ext in '' $ac_executable_extensions; do
12890 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12891 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12892 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12893 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12894 break 2
12897 done
12898 done
12899 IFS="$ac_save_IFS"
12900 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12902 esac
12904 MSGFMT="$ac_cv_path_MSGFMT"
12905 if test "$MSGFMT" != ":"; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12907 $as_echo "$MSGFMT" >&6; }
12908 else
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12913 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12914 set dummy gmsgfmt; ac_word=$2
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12916 $as_echo_n "checking for $ac_word... " >&6; }
12917 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12918 $as_echo_n "(cached) " >&6
12919 else
12920 case $GMSGFMT in
12921 [\\/]* | ?:[\\/]*)
12922 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12932 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 break 2
12936 done
12937 done
12938 IFS=$as_save_IFS
12940 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12942 esac
12944 GMSGFMT=$ac_cv_path_GMSGFMT
12945 if test -n "$GMSGFMT"; then
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12947 $as_echo "$GMSGFMT" >&6; }
12948 else
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950 $as_echo "no" >&6; }
12956 # Prepare PATH_SEPARATOR.
12957 # The user is always right.
12958 if test "${PATH_SEPARATOR+set}" != set; then
12959 echo "#! /bin/sh" >conf$$.sh
12960 echo "exit 0" >>conf$$.sh
12961 chmod +x conf$$.sh
12962 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12963 PATH_SEPARATOR=';'
12964 else
12965 PATH_SEPARATOR=:
12967 rm -f conf$$.sh
12970 # Find out how to test for executable files. Don't use a zero-byte file,
12971 # as systems may use methods other than mode bits to determine executability.
12972 cat >conf$$.file <<_ASEOF
12973 #! /bin/sh
12974 exit 0
12975 _ASEOF
12976 chmod +x conf$$.file
12977 if test -x conf$$.file >/dev/null 2>&1; then
12978 ac_executable_p="test -x"
12979 else
12980 ac_executable_p="test -f"
12982 rm -f conf$$.file
12984 # Extract the first word of "xgettext", so it can be a program name with args.
12985 set dummy xgettext; ac_word=$2
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987 $as_echo_n "checking for $ac_word... " >&6; }
12988 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12989 $as_echo_n "(cached) " >&6
12990 else
12991 case "$XGETTEXT" in
12992 [\\/]* | ?:[\\/]*)
12993 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12996 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12997 for ac_dir in $PATH; do
12998 IFS="$ac_save_IFS"
12999 test -z "$ac_dir" && ac_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
13001 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13002 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13003 (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
13004 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13005 break 2
13008 done
13009 done
13010 IFS="$ac_save_IFS"
13011 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13013 esac
13015 XGETTEXT="$ac_cv_path_XGETTEXT"
13016 if test "$XGETTEXT" != ":"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13018 $as_echo "$XGETTEXT" >&6; }
13019 else
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13024 rm -f messages.po
13027 # Prepare PATH_SEPARATOR.
13028 # The user is always right.
13029 if test "${PATH_SEPARATOR+set}" != set; then
13030 echo "#! /bin/sh" >conf$$.sh
13031 echo "exit 0" >>conf$$.sh
13032 chmod +x conf$$.sh
13033 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13034 PATH_SEPARATOR=';'
13035 else
13036 PATH_SEPARATOR=:
13038 rm -f conf$$.sh
13041 # Find out how to test for executable files. Don't use a zero-byte file,
13042 # as systems may use methods other than mode bits to determine executability.
13043 cat >conf$$.file <<_ASEOF
13044 #! /bin/sh
13045 exit 0
13046 _ASEOF
13047 chmod +x conf$$.file
13048 if test -x conf$$.file >/dev/null 2>&1; then
13049 ac_executable_p="test -x"
13050 else
13051 ac_executable_p="test -f"
13053 rm -f conf$$.file
13055 # Extract the first word of "msgmerge", so it can be a program name with args.
13056 set dummy msgmerge; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 case "$MSGMERGE" in
13063 [\\/]* | ?:[\\/]*)
13064 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13067 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13068 for ac_dir in $PATH; do
13069 IFS="$ac_save_IFS"
13070 test -z "$ac_dir" && ac_dir=.
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13073 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13074 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13075 break 2
13078 done
13079 done
13080 IFS="$ac_save_IFS"
13081 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13083 esac
13085 MSGMERGE="$ac_cv_path_MSGMERGE"
13086 if test "$MSGMERGE" != ":"; then
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13088 $as_echo "$MSGMERGE" >&6; }
13089 else
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091 $as_echo "no" >&6; }
13095 if test "$GMSGFMT" != ":"; then
13096 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13097 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13099 else
13100 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13102 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13103 GMSGFMT=":"
13107 if test "$XGETTEXT" != ":"; then
13108 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13109 (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
13111 else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13113 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13114 XGETTEXT=":"
13116 rm -f messages.po
13119 ac_config_commands="$ac_config_commands default-1"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13125 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13126 # Check whether --enable-maintainer-mode was given.
13127 if test "${enable_maintainer_mode+set}" = set; then :
13128 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13129 else
13130 USE_MAINTAINER_MODE=no
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13134 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13135 if test $USE_MAINTAINER_MODE = yes; then
13136 MAINTAINER_MODE_TRUE=
13137 MAINTAINER_MODE_FALSE='#'
13138 else
13139 MAINTAINER_MODE_TRUE='#'
13140 MAINTAINER_MODE_FALSE=
13143 MAINT=$MAINTAINER_MODE_TRUE
13146 if false; then
13147 GENINSRC_NEVER_TRUE=
13148 GENINSRC_NEVER_FALSE='#'
13149 else
13150 GENINSRC_NEVER_TRUE='#'
13151 GENINSRC_NEVER_FALSE=
13156 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 time.h sys/stat.h
13157 do :
13158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13159 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13160 eval as_val=\$$as_ac_Header
13161 if test "x$as_val" = x""yes; then :
13162 cat >>confdefs.h <<_ACEOF
13163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13164 _ACEOF
13168 done
13171 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13172 # people who are not cross-compiling but are compiling cross-assemblers.
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13174 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13175 if test "${host}" = "${target}"; then
13176 cross_gas=no
13177 else
13178 cross_gas=yes
13180 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13184 $as_echo "$cross_gas" >&6; }
13186 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13187 # for constant arguments. Useless!
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13189 $as_echo_n "checking for working alloca.h... " >&6; }
13190 if test "${ac_cv_working_alloca_h+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13195 #include <alloca.h>
13197 main ()
13199 char *p = (char *) alloca (2 * sizeof (int));
13200 if (p) return 0;
13202 return 0;
13204 _ACEOF
13205 if ac_fn_c_try_link "$LINENO"; then :
13206 ac_cv_working_alloca_h=yes
13207 else
13208 ac_cv_working_alloca_h=no
13210 rm -f core conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13214 $as_echo "$ac_cv_working_alloca_h" >&6; }
13215 if test $ac_cv_working_alloca_h = yes; then
13217 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13222 $as_echo_n "checking for alloca... " >&6; }
13223 if test "${ac_cv_func_alloca_works+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228 #ifdef __GNUC__
13229 # define alloca __builtin_alloca
13230 #else
13231 # ifdef _MSC_VER
13232 # include <malloc.h>
13233 # define alloca _alloca
13234 # else
13235 # ifdef HAVE_ALLOCA_H
13236 # include <alloca.h>
13237 # else
13238 # ifdef _AIX
13239 #pragma alloca
13240 # else
13241 # ifndef alloca /* predefined by HP cc +Olibcalls */
13242 char *alloca ();
13243 # endif
13244 # endif
13245 # endif
13246 # endif
13247 #endif
13250 main ()
13252 char *p = (char *) alloca (1);
13253 if (p) return 0;
13255 return 0;
13257 _ACEOF
13258 if ac_fn_c_try_link "$LINENO"; then :
13259 ac_cv_func_alloca_works=yes
13260 else
13261 ac_cv_func_alloca_works=no
13263 rm -f core conftest.err conftest.$ac_objext \
13264 conftest$ac_exeext conftest.$ac_ext
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13267 $as_echo "$ac_cv_func_alloca_works" >&6; }
13269 if test $ac_cv_func_alloca_works = yes; then
13271 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13273 else
13274 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13275 # that cause trouble. Some versions do not even contain alloca or
13276 # contain a buggy version. If you still want to use their alloca,
13277 # use ar to extract alloca.o from them instead of compiling alloca.c.
13279 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13281 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13285 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13286 if test "${ac_cv_os_cray+set}" = set; then :
13287 $as_echo_n "(cached) " >&6
13288 else
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291 #if defined CRAY && ! defined CRAY2
13292 webecray
13293 #else
13294 wenotbecray
13295 #endif
13297 _ACEOF
13298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13299 $EGREP "webecray" >/dev/null 2>&1; then :
13300 ac_cv_os_cray=yes
13301 else
13302 ac_cv_os_cray=no
13304 rm -f conftest*
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13308 $as_echo "$ac_cv_os_cray" >&6; }
13309 if test $ac_cv_os_cray = yes; then
13310 for ac_func in _getb67 GETB67 getb67; do
13311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13312 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13313 eval as_val=\$$as_ac_var
13314 if test "x$as_val" = x""yes; then :
13316 cat >>confdefs.h <<_ACEOF
13317 #define CRAY_STACKSEG_END $ac_func
13318 _ACEOF
13320 break
13323 done
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13327 $as_echo_n "checking stack direction for C alloca... " >&6; }
13328 if test "${ac_cv_c_stack_direction+set}" = set; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 if test "$cross_compiling" = yes; then :
13332 ac_cv_c_stack_direction=0
13333 else
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 $ac_includes_default
13338 find_stack_direction ()
13340 static char *addr = 0;
13341 auto char dummy;
13342 if (addr == 0)
13344 addr = &dummy;
13345 return find_stack_direction ();
13347 else
13348 return (&dummy > addr) ? 1 : -1;
13352 main ()
13354 return find_stack_direction () < 0;
13356 _ACEOF
13357 if ac_fn_c_try_run "$LINENO"; then :
13358 ac_cv_c_stack_direction=1
13359 else
13360 ac_cv_c_stack_direction=-1
13362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13363 conftest.$ac_objext conftest.beam conftest.$ac_ext
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13368 $as_echo "$ac_cv_c_stack_direction" >&6; }
13369 cat >>confdefs.h <<_ACEOF
13370 #define STACK_DIRECTION $ac_cv_c_stack_direction
13371 _ACEOF
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13377 $as_echo_n "checking for inline... " >&6; }
13378 if test "${ac_cv_c_inline+set}" = set; then :
13379 $as_echo_n "(cached) " >&6
13380 else
13381 ac_cv_c_inline=no
13382 for ac_kw in inline __inline__ __inline; do
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385 #ifndef __cplusplus
13386 typedef int foo_t;
13387 static $ac_kw foo_t static_foo () {return 0; }
13388 $ac_kw foo_t foo () {return 0; }
13389 #endif
13391 _ACEOF
13392 if ac_fn_c_try_compile "$LINENO"; then :
13393 ac_cv_c_inline=$ac_kw
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396 test "$ac_cv_c_inline" != no && break
13397 done
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13401 $as_echo "$ac_cv_c_inline" >&6; }
13403 case $ac_cv_c_inline in
13404 inline | yes) ;;
13406 case $ac_cv_c_inline in
13407 no) ac_val=;;
13408 *) ac_val=$ac_cv_c_inline;;
13409 esac
13410 cat >>confdefs.h <<_ACEOF
13411 #ifndef __cplusplus
13412 #define inline $ac_val
13413 #endif
13414 _ACEOF
13416 esac
13419 # VMS doesn't have unlink.
13420 for ac_func in unlink remove
13421 do :
13422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13424 eval as_val=\$$as_ac_var
13425 if test "x$as_val" = x""yes; then :
13426 cat >>confdefs.h <<_ACEOF
13427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13428 _ACEOF
13429 break
13431 done
13434 # Some systems don't have sbrk().
13435 for ac_func in sbrk
13436 do :
13437 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
13438 if test "x$ac_cv_func_sbrk" = x""yes; then :
13439 cat >>confdefs.h <<_ACEOF
13440 #define HAVE_SBRK 1
13441 _ACEOF
13444 done
13447 # do we need the math library?
13448 case "${need_libm}" in
13449 yes)
13450 LIBM=
13451 case $host in
13452 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13453 # These system don't have libm, or don't need it
13455 *-ncr-sysv4.3*)
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13457 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13458 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 ac_check_lib_save_LIBS=$LIBS
13462 LIBS="-lmw $LIBS"
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13466 /* Override any GCC internal prototype to avoid an error.
13467 Use char because int might match the return type of a GCC
13468 builtin and then its argument prototype would still apply. */
13469 #ifdef __cplusplus
13470 extern "C"
13471 #endif
13472 char _mwvalidcheckl ();
13474 main ()
13476 return _mwvalidcheckl ();
13478 return 0;
13480 _ACEOF
13481 if ac_fn_c_try_link "$LINENO"; then :
13482 ac_cv_lib_mw__mwvalidcheckl=yes
13483 else
13484 ac_cv_lib_mw__mwvalidcheckl=no
13486 rm -f core conftest.err conftest.$ac_objext \
13487 conftest$ac_exeext conftest.$ac_ext
13488 LIBS=$ac_check_lib_save_LIBS
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13491 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13492 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13493 LIBM="-lmw"
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13497 $as_echo_n "checking for cos in -lm... " >&6; }
13498 if test "${ac_cv_lib_m_cos+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 ac_check_lib_save_LIBS=$LIBS
13502 LIBS="-lm $LIBS"
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13506 /* Override any GCC internal prototype to avoid an error.
13507 Use char because int might match the return type of a GCC
13508 builtin and then its argument prototype would still apply. */
13509 #ifdef __cplusplus
13510 extern "C"
13511 #endif
13512 char cos ();
13514 main ()
13516 return cos ();
13518 return 0;
13520 _ACEOF
13521 if ac_fn_c_try_link "$LINENO"; then :
13522 ac_cv_lib_m_cos=yes
13523 else
13524 ac_cv_lib_m_cos=no
13526 rm -f core conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13528 LIBS=$ac_check_lib_save_LIBS
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13531 $as_echo "$ac_cv_lib_m_cos" >&6; }
13532 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13533 LIBM="$LIBM -lm"
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13539 $as_echo_n "checking for cos in -lm... " >&6; }
13540 if test "${ac_cv_lib_m_cos+set}" = set; then :
13541 $as_echo_n "(cached) " >&6
13542 else
13543 ac_check_lib_save_LIBS=$LIBS
13544 LIBS="-lm $LIBS"
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13548 /* Override any GCC internal prototype to avoid an error.
13549 Use char because int might match the return type of a GCC
13550 builtin and then its argument prototype would still apply. */
13551 #ifdef __cplusplus
13552 extern "C"
13553 #endif
13554 char cos ();
13556 main ()
13558 return cos ();
13560 return 0;
13562 _ACEOF
13563 if ac_fn_c_try_link "$LINENO"; then :
13564 ac_cv_lib_m_cos=yes
13565 else
13566 ac_cv_lib_m_cos=no
13568 rm -f core conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13570 LIBS=$ac_check_lib_save_LIBS
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13573 $as_echo "$ac_cv_lib_m_cos" >&6; }
13574 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13575 LIBM="-lm"
13579 esac
13584 esac
13586 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13587 # enough, but on some of those systems, the assert macro relies on requoting
13588 # working properly!
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13590 $as_echo_n "checking for working assert macro... " >&6; }
13591 if test "${gas_cv_assert_ok+set}" = set; then :
13592 $as_echo_n "(cached) " >&6
13593 else
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 #include <assert.h>
13597 #include <stdio.h>
13599 main ()
13602 /* check for requoting problems */
13603 static int a, b, c, d;
13604 static char *s;
13605 assert (!strcmp(s, "foo bar baz quux"));
13606 /* check for newline handling */
13607 assert (a == b
13608 || c == d);
13611 return 0;
13613 _ACEOF
13614 if ac_fn_c_try_link "$LINENO"; then :
13615 gas_cv_assert_ok=yes
13616 else
13617 gas_cv_assert_ok=no
13619 rm -f core conftest.err conftest.$ac_objext \
13620 conftest$ac_exeext conftest.$ac_ext
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13623 $as_echo "$gas_cv_assert_ok" >&6; }
13624 test $gas_cv_assert_ok = yes ||
13625 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13629 # On some systems, the system header files may not declare malloc, realloc,
13630 # and free. There are places where gas needs these functions to have been
13631 # declared -- such as when taking their addresses.
13632 gas_test_headers="
13633 #ifdef HAVE_MEMORY_H
13634 #include <memory.h>
13635 #endif
13636 #ifdef HAVE_STRING_H
13637 #include <string.h>
13638 #else
13639 #ifdef HAVE_STRINGS_H
13640 #include <strings.h>
13641 #endif
13642 #endif
13643 #ifdef HAVE_STDLIB_H
13644 #include <stdlib.h>
13645 #endif
13646 #ifdef HAVE_UNISTD_H
13647 #include <unistd.h>
13648 #endif
13651 # Does errno.h declare errno, or do we have to add a separate declaration
13652 # for it?
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13655 $as_echo_n "checking whether declaration is required for errno... " >&6; }
13656 if test "${gas_cv_decl_needed_errno+set}" = set; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13662 #ifdef HAVE_ERRNO_H
13663 #include <errno.h>
13664 #endif
13667 main ()
13670 typedef int f;
13671 f x;
13672 x = (f) errno;
13675 return 0;
13677 _ACEOF
13678 if ac_fn_c_try_link "$LINENO"; then :
13679 gas_cv_decl_needed_errno=no
13680 else
13681 gas_cv_decl_needed_errno=yes
13683 rm -f core conftest.err conftest.$ac_objext \
13684 conftest$ac_exeext conftest.$ac_ext
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13687 $as_echo "$gas_cv_decl_needed_errno" >&6; }
13688 if test $gas_cv_decl_needed_errno = yes; then
13690 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13696 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13697 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h. */
13702 #include <unistd.h>
13704 main ()
13706 extern int getopt (int, char *const*, const char *);
13708 return 0;
13710 _ACEOF
13711 if ac_fn_c_try_compile "$LINENO"; then :
13712 gas_cv_decl_getopt_unistd_h=yes
13713 else
13714 gas_cv_decl_getopt_unistd_h=no
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
13720 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
13721 if test $gas_cv_decl_getopt_unistd_h = yes; then
13723 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
13729 $as_echo_n "checking whether declaration is required for environ... " >&6; }
13730 if test "${gas_cv_decl_needed_environ+set}" = set; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735 $gas_test_headers
13737 main ()
13740 typedef char **f;
13741 f x;
13742 x = (f) environ;
13745 return 0;
13747 _ACEOF
13748 if ac_fn_c_try_link "$LINENO"; then :
13749 gas_cv_decl_needed_environ=no
13750 else
13751 gas_cv_decl_needed_environ=yes
13753 rm -f core conftest.err conftest.$ac_objext \
13754 conftest$ac_exeext conftest.$ac_ext
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
13757 $as_echo "$gas_cv_decl_needed_environ" >&6; }
13758 if test $gas_cv_decl_needed_environ = yes; then
13760 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
13766 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
13767 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772 $gas_test_headers
13774 main ()
13777 typedef int (*f)(int);
13778 f x;
13779 x = (f) ffs;
13782 return 0;
13784 _ACEOF
13785 if ac_fn_c_try_link "$LINENO"; then :
13786 gas_cv_decl_needed_ffs=no
13787 else
13788 gas_cv_decl_needed_ffs=yes
13790 rm -f core conftest.err conftest.$ac_objext \
13791 conftest$ac_exeext conftest.$ac_ext
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
13794 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
13795 if test $gas_cv_decl_needed_ffs = yes; then
13797 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
13803 $as_echo_n "checking whether declaration is required for free... " >&6; }
13804 if test "${gas_cv_decl_needed_free+set}" = set; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 $gas_test_headers
13811 main ()
13814 typedef void (*f)();
13815 f x;
13816 x = (f) free;
13819 return 0;
13821 _ACEOF
13822 if ac_fn_c_try_link "$LINENO"; then :
13823 gas_cv_decl_needed_free=no
13824 else
13825 gas_cv_decl_needed_free=yes
13827 rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
13831 $as_echo "$gas_cv_decl_needed_free" >&6; }
13832 if test $gas_cv_decl_needed_free = yes; then
13834 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
13840 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
13841 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846 $gas_test_headers
13848 main ()
13851 typedef char *(*f)();
13852 f x;
13853 x = (f) malloc;
13856 return 0;
13858 _ACEOF
13859 if ac_fn_c_try_link "$LINENO"; then :
13860 gas_cv_decl_needed_malloc=no
13861 else
13862 gas_cv_decl_needed_malloc=yes
13864 rm -f core conftest.err conftest.$ac_objext \
13865 conftest$ac_exeext conftest.$ac_ext
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
13868 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
13869 if test $gas_cv_decl_needed_malloc = yes; then
13871 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
13877 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
13878 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13883 $gas_test_headers
13885 main ()
13888 typedef char *(*f)();
13889 f x;
13890 x = (f) sbrk;
13893 return 0;
13895 _ACEOF
13896 if ac_fn_c_try_link "$LINENO"; then :
13897 gas_cv_decl_needed_sbrk=no
13898 else
13899 gas_cv_decl_needed_sbrk=yes
13901 rm -f core conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
13905 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
13906 if test $gas_cv_decl_needed_sbrk = yes; then
13908 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
13914 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
13915 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920 $gas_test_headers
13922 main ()
13925 typedef char *(*f)();
13926 f x;
13927 x = (f) strstr;
13930 return 0;
13932 _ACEOF
13933 if ac_fn_c_try_link "$LINENO"; then :
13934 gas_cv_decl_needed_strstr=no
13935 else
13936 gas_cv_decl_needed_strstr=yes
13938 rm -f core conftest.err conftest.$ac_objext \
13939 conftest$ac_exeext conftest.$ac_ext
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
13942 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
13943 if test $gas_cv_decl_needed_strstr = yes; then
13945 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13950 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
13951 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
13952 ac_have_decl=1
13953 else
13954 ac_have_decl=0
13957 cat >>confdefs.h <<_ACEOF
13958 #define HAVE_DECL_MEMPCPY $ac_have_decl
13959 _ACEOF
13961 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13962 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13963 ac_have_decl=1
13964 else
13965 ac_have_decl=0
13968 cat >>confdefs.h <<_ACEOF
13969 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13970 _ACEOF
13974 case "${host}" in
13975 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13977 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13979 esac
13981 # Support for VMS timestamps via cross compile
13983 if test "$ac_cv_header_time_h" = yes; then
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
13985 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
13986 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13992 #define _BSD_SOURCE 1
13993 #include <time.h>
13995 main ()
13997 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
13999 return 0;
14001 _ACEOF
14002 if ac_fn_c_try_compile "$LINENO"; then :
14003 gas_cv_have_time_type_member_tm_gmtoff=yes
14004 else
14005 gas_cv_have_time_type_member_tm_gmtoff=no
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14011 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14013 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14017 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14021 if test "$ac_cv_header_sys_stat_h" = yes; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14023 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14024 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14030 #define _BSD_SOURCE 1
14031 #include <sys/stat.h>
14033 main ()
14035 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14037 return 0;
14039 _ACEOF
14040 if ac_fn_c_try_compile "$LINENO"; then :
14041 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14042 else
14043 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14051 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14055 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14058 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14059 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14065 #define _BSD_SOURCE 1
14066 #include <sys/stat.h>
14068 main ()
14070 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14072 return 0;
14074 _ACEOF
14075 if ac_fn_c_try_compile "$LINENO"; then :
14076 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14077 else
14078 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14084 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14086 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14090 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14102 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14104 ac_config_commands="$ac_config_commands default"
14107 cat >confcache <<\_ACEOF
14108 # This file is a shell script that caches the results of configure
14109 # tests run on this system so they can be shared between configure
14110 # scripts and configure runs, see configure's option --config-cache.
14111 # It is not useful on other systems. If it contains results you don't
14112 # want to keep, you may remove or edit it.
14114 # config.status only pays attention to the cache file if you give it
14115 # the --recheck option to rerun configure.
14117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14119 # following values.
14121 _ACEOF
14123 # The following way of writing the cache mishandles newlines in values,
14124 # but we know of no workaround that is simple, portable, and efficient.
14125 # So, we kill variables containing newlines.
14126 # Ultrix sh set writes to stderr and can't be redirected directly,
14127 # and sets the high bit in the cache file unless we assign to the vars.
14129 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14130 eval ac_val=\$$ac_var
14131 case $ac_val in #(
14132 *${as_nl}*)
14133 case $ac_var in #(
14134 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14135 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14136 esac
14137 case $ac_var in #(
14138 _ | IFS | as_nl) ;; #(
14139 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14140 *) { eval $ac_var=; unset $ac_var;} ;;
14141 esac ;;
14142 esac
14143 done
14145 (set) 2>&1 |
14146 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14147 *${as_nl}ac_space=\ *)
14148 # `set' does not quote correctly, so add quotes: double-quote
14149 # substitution turns \\\\ into \\, and sed turns \\ into \.
14150 sed -n \
14151 "s/'/'\\\\''/g;
14152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14153 ;; #(
14155 # `set' quotes correctly as required by POSIX, so do not add quotes.
14156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14158 esac |
14159 sort
14161 sed '
14162 /^ac_cv_env_/b end
14163 t clear
14164 :clear
14165 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14166 t end
14167 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14168 :end' >>confcache
14169 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14170 if test -w "$cache_file"; then
14171 test "x$cache_file" != "x/dev/null" &&
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14173 $as_echo "$as_me: updating cache $cache_file" >&6;}
14174 cat confcache >$cache_file
14175 else
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14177 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14180 rm -f confcache
14182 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14183 # Let make expand exec_prefix.
14184 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14186 DEFS=-DHAVE_CONFIG_H
14188 ac_libobjs=
14189 ac_ltlibobjs=
14190 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14191 # 1. Remove the extension, and $U if already installed.
14192 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14193 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14194 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14195 # will be set to the directory where LIBOBJS objects are built.
14196 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14197 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14198 done
14199 LIBOBJS=$ac_libobjs
14201 LTLIBOBJS=$ac_ltlibobjs
14204 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14205 as_fn_error "conditional \"AMDEP\" was never defined.
14206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14209 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14212 if test -n "$EXEEXT"; then
14213 am__EXEEXT_TRUE=
14214 am__EXEEXT_FALSE='#'
14215 else
14216 am__EXEEXT_TRUE='#'
14217 am__EXEEXT_FALSE=
14221 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14222 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14225 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14226 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14230 : ${CONFIG_STATUS=./config.status}
14231 ac_write_fail=0
14232 ac_clean_files_save=$ac_clean_files
14233 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14235 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14236 as_write_fail=0
14237 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14238 #! $SHELL
14239 # Generated by $as_me.
14240 # Run this file to recreate the current configuration.
14241 # Compiler output produced by configure, useful for debugging
14242 # configure, is in config.log if it exists.
14244 debug=false
14245 ac_cs_recheck=false
14246 ac_cs_silent=false
14248 SHELL=\${CONFIG_SHELL-$SHELL}
14249 export SHELL
14250 _ASEOF
14251 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14252 ## -------------------- ##
14253 ## M4sh Initialization. ##
14254 ## -------------------- ##
14256 # Be more Bourne compatible
14257 DUALCASE=1; export DUALCASE # for MKS sh
14258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14259 emulate sh
14260 NULLCMD=:
14261 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14262 # is contrary to our usage. Disable this feature.
14263 alias -g '${1+"$@"}'='"$@"'
14264 setopt NO_GLOB_SUBST
14265 else
14266 case `(set -o) 2>/dev/null` in #(
14267 *posix*) :
14268 set -o posix ;; #(
14269 *) :
14271 esac
14275 as_nl='
14277 export as_nl
14278 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14279 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14281 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14282 # Prefer a ksh shell builtin over an external printf program on Solaris,
14283 # but without wasting forks for bash or zsh.
14284 if test -z "$BASH_VERSION$ZSH_VERSION" \
14285 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14286 as_echo='print -r --'
14287 as_echo_n='print -rn --'
14288 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14289 as_echo='printf %s\n'
14290 as_echo_n='printf %s'
14291 else
14292 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14293 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14294 as_echo_n='/usr/ucb/echo -n'
14295 else
14296 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14297 as_echo_n_body='eval
14298 arg=$1;
14299 case $arg in #(
14300 *"$as_nl"*)
14301 expr "X$arg" : "X\\(.*\\)$as_nl";
14302 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14303 esac;
14304 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14306 export as_echo_n_body
14307 as_echo_n='sh -c $as_echo_n_body as_echo'
14309 export as_echo_body
14310 as_echo='sh -c $as_echo_body as_echo'
14313 # The user is always right.
14314 if test "${PATH_SEPARATOR+set}" != set; then
14315 PATH_SEPARATOR=:
14316 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14317 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14318 PATH_SEPARATOR=';'
14323 # IFS
14324 # We need space, tab and new line, in precisely that order. Quoting is
14325 # there to prevent editors from complaining about space-tab.
14326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14327 # splitting by setting IFS to empty value.)
14328 IFS=" "" $as_nl"
14330 # Find who we are. Look in the path if we contain no directory separator.
14331 case $0 in #((
14332 *[\\/]* ) as_myself=$0 ;;
14333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14334 for as_dir in $PATH
14336 IFS=$as_save_IFS
14337 test -z "$as_dir" && as_dir=.
14338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14339 done
14340 IFS=$as_save_IFS
14343 esac
14344 # We did not find ourselves, most probably we were run as `sh COMMAND'
14345 # in which case we are not to be found in the path.
14346 if test "x$as_myself" = x; then
14347 as_myself=$0
14349 if test ! -f "$as_myself"; then
14350 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14351 exit 1
14354 # Unset variables that we do not need and which cause bugs (e.g. in
14355 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14356 # suppresses any "Segmentation fault" message there. '((' could
14357 # trigger a bug in pdksh 5.2.14.
14358 for as_var in BASH_ENV ENV MAIL MAILPATH
14359 do eval test x\${$as_var+set} = xset \
14360 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14361 done
14362 PS1='$ '
14363 PS2='> '
14364 PS4='+ '
14366 # NLS nuisances.
14367 LC_ALL=C
14368 export LC_ALL
14369 LANGUAGE=C
14370 export LANGUAGE
14372 # CDPATH.
14373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14376 # as_fn_error ERROR [LINENO LOG_FD]
14377 # ---------------------------------
14378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14380 # script with status $?, using 1 if that was 0.
14381 as_fn_error ()
14383 as_status=$?; test $as_status -eq 0 && as_status=1
14384 if test "$3"; then
14385 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14386 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14388 $as_echo "$as_me: error: $1" >&2
14389 as_fn_exit $as_status
14390 } # as_fn_error
14393 # as_fn_set_status STATUS
14394 # -----------------------
14395 # Set $? to STATUS, without forking.
14396 as_fn_set_status ()
14398 return $1
14399 } # as_fn_set_status
14401 # as_fn_exit STATUS
14402 # -----------------
14403 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14404 as_fn_exit ()
14406 set +e
14407 as_fn_set_status $1
14408 exit $1
14409 } # as_fn_exit
14411 # as_fn_unset VAR
14412 # ---------------
14413 # Portably unset VAR.
14414 as_fn_unset ()
14416 { eval $1=; unset $1;}
14418 as_unset=as_fn_unset
14419 # as_fn_append VAR VALUE
14420 # ----------------------
14421 # Append the text in VALUE to the end of the definition contained in VAR. Take
14422 # advantage of any shell optimizations that allow amortized linear growth over
14423 # repeated appends, instead of the typical quadratic growth present in naive
14424 # implementations.
14425 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14426 eval 'as_fn_append ()
14428 eval $1+=\$2
14430 else
14431 as_fn_append ()
14433 eval $1=\$$1\$2
14435 fi # as_fn_append
14437 # as_fn_arith ARG...
14438 # ------------------
14439 # Perform arithmetic evaluation on the ARGs, and store the result in the
14440 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14441 # must be portable across $(()) and expr.
14442 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14443 eval 'as_fn_arith ()
14445 as_val=$(( $* ))
14447 else
14448 as_fn_arith ()
14450 as_val=`expr "$@" || test $? -eq 1`
14452 fi # as_fn_arith
14455 if expr a : '\(a\)' >/dev/null 2>&1 &&
14456 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14457 as_expr=expr
14458 else
14459 as_expr=false
14462 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14463 as_basename=basename
14464 else
14465 as_basename=false
14468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14469 as_dirname=dirname
14470 else
14471 as_dirname=false
14474 as_me=`$as_basename -- "$0" ||
14475 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14476 X"$0" : 'X\(//\)$' \| \
14477 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14478 $as_echo X/"$0" |
14479 sed '/^.*\/\([^/][^/]*\)\/*$/{
14480 s//\1/
14483 /^X\/\(\/\/\)$/{
14484 s//\1/
14487 /^X\/\(\/\).*/{
14488 s//\1/
14491 s/.*/./; q'`
14493 # Avoid depending upon Character Ranges.
14494 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14495 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14496 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14497 as_cr_digits='0123456789'
14498 as_cr_alnum=$as_cr_Letters$as_cr_digits
14500 ECHO_C= ECHO_N= ECHO_T=
14501 case `echo -n x` in #(((((
14502 -n*)
14503 case `echo 'xy\c'` in
14504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14505 xy) ECHO_C='\c';;
14506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14507 ECHO_T=' ';;
14508 esac;;
14510 ECHO_N='-n';;
14511 esac
14513 rm -f conf$$ conf$$.exe conf$$.file
14514 if test -d conf$$.dir; then
14515 rm -f conf$$.dir/conf$$.file
14516 else
14517 rm -f conf$$.dir
14518 mkdir conf$$.dir 2>/dev/null
14520 if (echo >conf$$.file) 2>/dev/null; then
14521 if ln -s conf$$.file conf$$ 2>/dev/null; then
14522 as_ln_s='ln -s'
14523 # ... but there are two gotchas:
14524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14526 # In both cases, we have to default to `cp -p'.
14527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14528 as_ln_s='cp -p'
14529 elif ln conf$$.file conf$$ 2>/dev/null; then
14530 as_ln_s=ln
14531 else
14532 as_ln_s='cp -p'
14534 else
14535 as_ln_s='cp -p'
14537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14538 rmdir conf$$.dir 2>/dev/null
14541 # as_fn_mkdir_p
14542 # -------------
14543 # Create "$as_dir" as a directory, including parents if necessary.
14544 as_fn_mkdir_p ()
14547 case $as_dir in #(
14548 -*) as_dir=./$as_dir;;
14549 esac
14550 test -d "$as_dir" || eval $as_mkdir_p || {
14551 as_dirs=
14552 while :; do
14553 case $as_dir in #(
14554 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14555 *) as_qdir=$as_dir;;
14556 esac
14557 as_dirs="'$as_qdir' $as_dirs"
14558 as_dir=`$as_dirname -- "$as_dir" ||
14559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14560 X"$as_dir" : 'X\(//\)[^/]' \| \
14561 X"$as_dir" : 'X\(//\)$' \| \
14562 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14563 $as_echo X"$as_dir" |
14564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14565 s//\1/
14568 /^X\(\/\/\)[^/].*/{
14569 s//\1/
14572 /^X\(\/\/\)$/{
14573 s//\1/
14576 /^X\(\/\).*/{
14577 s//\1/
14580 s/.*/./; q'`
14581 test -d "$as_dir" && break
14582 done
14583 test -z "$as_dirs" || eval "mkdir $as_dirs"
14584 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14587 } # as_fn_mkdir_p
14588 if mkdir -p . 2>/dev/null; then
14589 as_mkdir_p='mkdir -p "$as_dir"'
14590 else
14591 test -d ./-p && rmdir ./-p
14592 as_mkdir_p=false
14595 if test -x / >/dev/null 2>&1; then
14596 as_test_x='test -x'
14597 else
14598 if ls -dL / >/dev/null 2>&1; then
14599 as_ls_L_option=L
14600 else
14601 as_ls_L_option=
14603 as_test_x='
14604 eval sh -c '\''
14605 if test -d "$1"; then
14606 test -d "$1/.";
14607 else
14608 case $1 in #(
14609 -*)set "./$1";;
14610 esac;
14611 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14612 ???[sx]*):;;*)false;;esac;fi
14613 '\'' sh
14616 as_executable_p=$as_test_x
14618 # Sed expression to map a string onto a valid CPP name.
14619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14621 # Sed expression to map a string onto a valid variable name.
14622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14625 exec 6>&1
14626 ## ----------------------------------- ##
14627 ## Main body of $CONFIG_STATUS script. ##
14628 ## ----------------------------------- ##
14629 _ASEOF
14630 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14633 # Save the log message, to keep $0 and so on meaningful, and to
14634 # report actual input values of CONFIG_FILES etc. instead of their
14635 # values after options handling.
14636 ac_log="
14637 This file was extended by $as_me, which was
14638 generated by GNU Autoconf 2.64. Invocation command line was
14640 CONFIG_FILES = $CONFIG_FILES
14641 CONFIG_HEADERS = $CONFIG_HEADERS
14642 CONFIG_LINKS = $CONFIG_LINKS
14643 CONFIG_COMMANDS = $CONFIG_COMMANDS
14644 $ $0 $@
14646 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14649 _ACEOF
14651 case $ac_config_files in *"
14652 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14653 esac
14655 case $ac_config_headers in *"
14656 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14657 esac
14660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14661 # Files that config.status was made for.
14662 config_files="$ac_config_files"
14663 config_headers="$ac_config_headers"
14664 config_commands="$ac_config_commands"
14666 _ACEOF
14668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14669 ac_cs_usage="\
14670 \`$as_me' instantiates files and other configuration actions
14671 from templates according to the current configuration. Unless the files
14672 and actions are specified as TAGs, all are instantiated by default.
14674 Usage: $0 [OPTION]... [TAG]...
14676 -h, --help print this help, then exit
14677 -V, --version print version number and configuration settings, then exit
14678 -q, --quiet, --silent
14679 do not print progress messages
14680 -d, --debug don't remove temporary files
14681 --recheck update $as_me by reconfiguring in the same conditions
14682 --file=FILE[:TEMPLATE]
14683 instantiate the configuration file FILE
14684 --header=FILE[:TEMPLATE]
14685 instantiate the configuration header FILE
14687 Configuration files:
14688 $config_files
14690 Configuration headers:
14691 $config_headers
14693 Configuration commands:
14694 $config_commands
14696 Report bugs to the package provider."
14698 _ACEOF
14699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14700 ac_cs_version="\\
14701 config.status
14702 configured by $0, generated by GNU Autoconf 2.64,
14703 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14705 Copyright (C) 2009 Free Software Foundation, Inc.
14706 This config.status script is free software; the Free Software Foundation
14707 gives unlimited permission to copy, distribute and modify it."
14709 ac_pwd='$ac_pwd'
14710 srcdir='$srcdir'
14711 INSTALL='$INSTALL'
14712 MKDIR_P='$MKDIR_P'
14713 AWK='$AWK'
14714 test -n "\$AWK" || AWK=awk
14715 _ACEOF
14717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14718 # The default lists apply if the user does not specify any file.
14719 ac_need_defaults=:
14720 while test $# != 0
14722 case $1 in
14723 --*=*)
14724 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14725 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14726 ac_shift=:
14729 ac_option=$1
14730 ac_optarg=$2
14731 ac_shift=shift
14733 esac
14735 case $ac_option in
14736 # Handling of the options.
14737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14738 ac_cs_recheck=: ;;
14739 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14740 $as_echo "$ac_cs_version"; exit ;;
14741 --debug | --debu | --deb | --de | --d | -d )
14742 debug=: ;;
14743 --file | --fil | --fi | --f )
14744 $ac_shift
14745 case $ac_optarg in
14746 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14747 esac
14748 as_fn_append CONFIG_FILES " '$ac_optarg'"
14749 ac_need_defaults=false;;
14750 --header | --heade | --head | --hea )
14751 $ac_shift
14752 case $ac_optarg in
14753 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14754 esac
14755 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14756 ac_need_defaults=false;;
14757 --he | --h)
14758 # Conflict between --help and --header
14759 as_fn_error "ambiguous option: \`$1'
14760 Try \`$0 --help' for more information.";;
14761 --help | --hel | -h )
14762 $as_echo "$ac_cs_usage"; exit ;;
14763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14764 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14765 ac_cs_silent=: ;;
14767 # This is an error.
14768 -*) as_fn_error "unrecognized option: \`$1'
14769 Try \`$0 --help' for more information." ;;
14771 *) as_fn_append ac_config_targets " $1"
14772 ac_need_defaults=false ;;
14774 esac
14775 shift
14776 done
14778 ac_configure_extra_args=
14780 if $ac_cs_silent; then
14781 exec 6>/dev/null
14782 ac_configure_extra_args="$ac_configure_extra_args --silent"
14785 _ACEOF
14786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14787 if \$ac_cs_recheck; then
14788 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14789 shift
14790 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14791 CONFIG_SHELL='$SHELL'
14792 export CONFIG_SHELL
14793 exec "\$@"
14796 _ACEOF
14797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14798 exec 5>>config.log
14800 echo
14801 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14802 ## Running $as_me. ##
14803 _ASBOX
14804 $as_echo "$ac_log"
14805 } >&5
14807 _ACEOF
14808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14810 # INIT-COMMANDS
14812 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14815 # The HP-UX ksh and POSIX shell print the target directory to stdout
14816 # if CDPATH is set.
14817 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14819 sed_quote_subst='$sed_quote_subst'
14820 double_quote_subst='$double_quote_subst'
14821 delay_variable_subst='$delay_variable_subst'
14822 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14823 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14824 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14825 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14826 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14827 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14828 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14829 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14830 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14831 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14832 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14833 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14834 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14835 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14836 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14837 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14838 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14839 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14840 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14841 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14842 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14843 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14844 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14845 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14846 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14847 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14848 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14849 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14850 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14851 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14852 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14853 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14854 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14855 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14856 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14857 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14858 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14859 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14860 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14861 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14862 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14863 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14864 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14865 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14866 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14867 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14869 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14870 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14871 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14872 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14873 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14874 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14875 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14876 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14877 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14878 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14879 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14880 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14881 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14882 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14883 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14884 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14885 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14886 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14887 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14888 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14889 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14890 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14891 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14892 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14893 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14894 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14895 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14896 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14897 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14898 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14899 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14900 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14901 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14902 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14903 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14904 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14905 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14906 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14907 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14908 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14909 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14910 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14911 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14912 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14913 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14914 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14915 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14916 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14917 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14918 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14919 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14920 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14921 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14922 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14923 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14924 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14925 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14926 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14927 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14928 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14929 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14930 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14931 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14932 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14933 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14934 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14935 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14936 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14937 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14938 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14939 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14940 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14941 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14943 LTCC='$LTCC'
14944 LTCFLAGS='$LTCFLAGS'
14945 compiler='$compiler_DEFAULT'
14947 # A function that is used when there is no print builtin or printf.
14948 func_fallback_echo ()
14950 eval 'cat <<_LTECHO_EOF
14952 _LTECHO_EOF'
14955 # Quote evaled strings.
14956 for var in SHELL \
14957 ECHO \
14958 SED \
14959 GREP \
14960 EGREP \
14961 FGREP \
14962 LD \
14963 NM \
14964 LN_S \
14965 lt_SP2NL \
14966 lt_NL2SP \
14967 reload_flag \
14968 OBJDUMP \
14969 deplibs_check_method \
14970 file_magic_cmd \
14971 AR \
14972 AR_FLAGS \
14973 STRIP \
14974 RANLIB \
14975 CC \
14976 CFLAGS \
14977 compiler \
14978 lt_cv_sys_global_symbol_pipe \
14979 lt_cv_sys_global_symbol_to_cdecl \
14980 lt_cv_sys_global_symbol_to_c_name_address \
14981 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14982 lt_prog_compiler_no_builtin_flag \
14983 lt_prog_compiler_wl \
14984 lt_prog_compiler_pic \
14985 lt_prog_compiler_static \
14986 lt_cv_prog_compiler_c_o \
14987 need_locks \
14988 DSYMUTIL \
14989 NMEDIT \
14990 LIPO \
14991 OTOOL \
14992 OTOOL64 \
14993 shrext_cmds \
14994 export_dynamic_flag_spec \
14995 whole_archive_flag_spec \
14996 compiler_needs_object \
14997 with_gnu_ld \
14998 allow_undefined_flag \
14999 no_undefined_flag \
15000 hardcode_libdir_flag_spec \
15001 hardcode_libdir_flag_spec_ld \
15002 hardcode_libdir_separator \
15003 fix_srcfile_path \
15004 exclude_expsyms \
15005 include_expsyms \
15006 file_list_spec \
15007 variables_saved_for_relink \
15008 libname_spec \
15009 library_names_spec \
15010 soname_spec \
15011 install_override_mode \
15012 finish_eval \
15013 old_striplib \
15014 striplib; do
15015 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15016 *[\\\\\\\`\\"\\\$]*)
15017 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15020 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15022 esac
15023 done
15025 # Double-quote double-evaled strings.
15026 for var in reload_cmds \
15027 old_postinstall_cmds \
15028 old_postuninstall_cmds \
15029 old_archive_cmds \
15030 extract_expsyms_cmds \
15031 old_archive_from_new_cmds \
15032 old_archive_from_expsyms_cmds \
15033 archive_cmds \
15034 archive_expsym_cmds \
15035 module_cmds \
15036 module_expsym_cmds \
15037 export_symbols_cmds \
15038 prelink_cmds \
15039 postinstall_cmds \
15040 postuninstall_cmds \
15041 finish_cmds \
15042 sys_lib_search_path_spec \
15043 sys_lib_dlsearch_path_spec; do
15044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15045 *[\\\\\\\`\\"\\\$]*)
15046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15051 esac
15052 done
15054 ac_aux_dir='$ac_aux_dir'
15055 xsi_shell='$xsi_shell'
15056 lt_shell_append='$lt_shell_append'
15058 # See if we are running on zsh, and set the options which allow our
15059 # commands through without removal of \ escapes INIT.
15060 if test -n "\${ZSH_VERSION+set}" ; then
15061 setopt NO_GLOB_SUBST
15065 PACKAGE='$PACKAGE'
15066 VERSION='$VERSION'
15067 TIMESTAMP='$TIMESTAMP'
15068 RM='$RM'
15069 ofile='$ofile'
15073 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15074 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15075 # from automake.
15076 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15077 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15078 LINGUAS="${LINGUAS-%UNSET%}"
15080 target_cpu_type=${target_cpu_type}
15081 cgen_cpu_prefix=${cgen_cpu_prefix}
15082 obj_format=${obj_format}
15083 te_file=${te_file}
15085 _ACEOF
15087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15089 # Handling of arguments.
15090 for ac_config_target in $ac_config_targets
15092 case $ac_config_target in
15093 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15094 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15095 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15096 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15097 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15098 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15099 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15100 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15101 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15102 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15104 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15105 esac
15106 done
15109 # If the user did not use the arguments to specify the items to instantiate,
15110 # then the envvar interface is used. Set only those that are not.
15111 # We use the long form for the default assignment because of an extremely
15112 # bizarre bug on SunOS 4.1.3.
15113 if $ac_need_defaults; then
15114 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15115 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15116 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15119 # Have a temporary directory for convenience. Make it in the build tree
15120 # simply because there is no reason against having it here, and in addition,
15121 # creating and moving files from /tmp can sometimes cause problems.
15122 # Hook for its removal unless debugging.
15123 # Note that there is a small window in which the directory will not be cleaned:
15124 # after its creation but before its name has been assigned to `$tmp'.
15125 $debug ||
15127 tmp=
15128 trap 'exit_status=$?
15129 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15131 trap 'as_fn_exit 1' 1 2 13 15
15133 # Create a (secure) tmp directory for tmp files.
15136 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15137 test -n "$tmp" && test -d "$tmp"
15138 } ||
15140 tmp=./conf$$-$RANDOM
15141 (umask 077 && mkdir "$tmp")
15142 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15144 # Set up the scripts for CONFIG_FILES section.
15145 # No need to generate them if there are no CONFIG_FILES.
15146 # This happens for instance with `./config.status config.h'.
15147 if test -n "$CONFIG_FILES"; then
15150 ac_cr=`echo X | tr X '\015'`
15151 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15152 # But we know of no other shell where ac_cr would be empty at this
15153 # point, so we can use a bashism as a fallback.
15154 if test "x$ac_cr" = x; then
15155 eval ac_cr=\$\'\\r\'
15157 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15158 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15159 ac_cs_awk_cr='\r'
15160 else
15161 ac_cs_awk_cr=$ac_cr
15164 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15165 _ACEOF
15169 echo "cat >conf$$subs.awk <<_ACEOF" &&
15170 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15171 echo "_ACEOF"
15172 } >conf$$subs.sh ||
15173 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15174 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15175 ac_delim='%!_!# '
15176 for ac_last_try in false false false false false :; do
15177 . ./conf$$subs.sh ||
15178 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15180 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15181 if test $ac_delim_n = $ac_delim_num; then
15182 break
15183 elif $ac_last_try; then
15184 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15185 else
15186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15188 done
15189 rm -f conf$$subs.sh
15191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15192 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15193 _ACEOF
15194 sed -n '
15196 s/^/S["/; s/!.*/"]=/
15199 s/^[^!]*!//
15200 :repl
15201 t repl
15202 s/'"$ac_delim"'$//
15203 t delim
15206 s/\(.\{148\}\).*/\1/
15207 t more1
15208 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15211 b repl
15212 :more1
15213 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15216 s/.\{148\}//
15217 t nl
15218 :delim
15220 s/\(.\{148\}\).*/\1/
15221 t more2
15222 s/["\\]/\\&/g; s/^/"/; s/$/"/
15225 :more2
15226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15229 s/.\{148\}//
15230 t delim
15231 ' <conf$$subs.awk | sed '
15232 /^[^""]/{
15234 s/\n//
15236 ' >>$CONFIG_STATUS || ac_write_fail=1
15237 rm -f conf$$subs.awk
15238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15239 _ACAWK
15240 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15241 for (key in S) S_is_set[key] = 1
15242 FS = "\a"
15246 line = $ 0
15247 nfields = split(line, field, "@")
15248 substed = 0
15249 len = length(field[1])
15250 for (i = 2; i < nfields; i++) {
15251 key = field[i]
15252 keylen = length(key)
15253 if (S_is_set[key]) {
15254 value = S[key]
15255 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15256 len += length(value) + length(field[++i])
15257 substed = 1
15258 } else
15259 len += 1 + keylen
15262 print line
15265 _ACAWK
15266 _ACEOF
15267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15268 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15269 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15270 else
15272 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15273 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15274 _ACEOF
15276 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15277 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15278 # trailing colons and then remove the whole line if VPATH becomes empty
15279 # (actually we leave an empty line to preserve line numbers).
15280 if test "x$srcdir" = x.; then
15281 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15282 s/:*\$(srcdir):*/:/
15283 s/:*\${srcdir}:*/:/
15284 s/:*@srcdir@:*/:/
15285 s/^\([^=]*=[ ]*\):*/\1/
15286 s/:*$//
15287 s/^[^=]*=[ ]*$//
15291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15292 fi # test -n "$CONFIG_FILES"
15294 # Set up the scripts for CONFIG_HEADERS section.
15295 # No need to generate them if there are no CONFIG_HEADERS.
15296 # This happens for instance with `./config.status Makefile'.
15297 if test -n "$CONFIG_HEADERS"; then
15298 cat >"$tmp/defines.awk" <<\_ACAWK ||
15299 BEGIN {
15300 _ACEOF
15302 # Transform confdefs.h into an awk script `defines.awk', embedded as
15303 # here-document in config.status, that substitutes the proper values into
15304 # config.h.in to produce config.h.
15306 # Create a delimiter string that does not exist in confdefs.h, to ease
15307 # handling of long lines.
15308 ac_delim='%!_!# '
15309 for ac_last_try in false false :; do
15310 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15311 if test -z "$ac_t"; then
15312 break
15313 elif $ac_last_try; then
15314 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15315 else
15316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15318 done
15320 # For the awk script, D is an array of macro values keyed by name,
15321 # likewise P contains macro parameters if any. Preserve backslash
15322 # newline sequences.
15324 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15325 sed -n '
15326 s/.\{148\}/&'"$ac_delim"'/g
15327 t rset
15328 :rset
15329 s/^[ ]*#[ ]*define[ ][ ]*/ /
15330 t def
15332 :def
15333 s/\\$//
15334 t bsnl
15335 s/["\\]/\\&/g
15336 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15337 D["\1"]=" \3"/p
15338 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15340 :bsnl
15341 s/["\\]/\\&/g
15342 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15343 D["\1"]=" \3\\\\\\n"\\/p
15344 t cont
15345 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15346 t cont
15348 :cont
15350 s/.\{148\}/&'"$ac_delim"'/g
15351 t clear
15352 :clear
15353 s/\\$//
15354 t bsnlc
15355 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15357 :bsnlc
15358 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15359 b cont
15360 ' <confdefs.h | sed '
15361 s/'"$ac_delim"'/"\\\
15362 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15365 for (key in D) D_is_set[key] = 1
15366 FS = "\a"
15368 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15369 line = \$ 0
15370 split(line, arg, " ")
15371 if (arg[1] == "#") {
15372 defundef = arg[2]
15373 mac1 = arg[3]
15374 } else {
15375 defundef = substr(arg[1], 2)
15376 mac1 = arg[2]
15378 split(mac1, mac2, "(") #)
15379 macro = mac2[1]
15380 prefix = substr(line, 1, index(line, defundef) - 1)
15381 if (D_is_set[macro]) {
15382 # Preserve the white space surrounding the "#".
15383 print prefix "define", macro P[macro] D[macro]
15384 next
15385 } else {
15386 # Replace #undef with comments. This is necessary, for example,
15387 # in the case of _POSIX_SOURCE, which is predefined and required
15388 # on some systems where configure will not decide to define it.
15389 if (defundef == "undef") {
15390 print "/*", prefix defundef, macro, "*/"
15391 next
15395 { print }
15396 _ACAWK
15397 _ACEOF
15398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15399 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15400 fi # test -n "$CONFIG_HEADERS"
15403 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15404 shift
15405 for ac_tag
15407 case $ac_tag in
15408 :[FHLC]) ac_mode=$ac_tag; continue;;
15409 esac
15410 case $ac_mode$ac_tag in
15411 :[FHL]*:*);;
15412 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15413 :[FH]-) ac_tag=-:-;;
15414 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15415 esac
15416 ac_save_IFS=$IFS
15417 IFS=:
15418 set x $ac_tag
15419 IFS=$ac_save_IFS
15420 shift
15421 ac_file=$1
15422 shift
15424 case $ac_mode in
15425 :L) ac_source=$1;;
15426 :[FH])
15427 ac_file_inputs=
15428 for ac_f
15430 case $ac_f in
15431 -) ac_f="$tmp/stdin";;
15432 *) # Look for the file first in the build tree, then in the source tree
15433 # (if the path is not absolute). The absolute path cannot be DOS-style,
15434 # because $ac_f cannot contain `:'.
15435 test -f "$ac_f" ||
15436 case $ac_f in
15437 [\\/$]*) false;;
15438 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15439 esac ||
15440 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15441 esac
15442 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15443 as_fn_append ac_file_inputs " '$ac_f'"
15444 done
15446 # Let's still pretend it is `configure' which instantiates (i.e., don't
15447 # use $as_me), people would be surprised to read:
15448 # /* config.h. Generated by config.status. */
15449 configure_input='Generated from '`
15450 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15451 `' by configure.'
15452 if test x"$ac_file" != x-; then
15453 configure_input="$ac_file. $configure_input"
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15455 $as_echo "$as_me: creating $ac_file" >&6;}
15457 # Neutralize special characters interpreted by sed in replacement strings.
15458 case $configure_input in #(
15459 *\&* | *\|* | *\\* )
15460 ac_sed_conf_input=`$as_echo "$configure_input" |
15461 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15462 *) ac_sed_conf_input=$configure_input;;
15463 esac
15465 case $ac_tag in
15466 *:-:* | *:-) cat >"$tmp/stdin" \
15467 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15468 esac
15470 esac
15472 ac_dir=`$as_dirname -- "$ac_file" ||
15473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15474 X"$ac_file" : 'X\(//\)[^/]' \| \
15475 X"$ac_file" : 'X\(//\)$' \| \
15476 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15477 $as_echo X"$ac_file" |
15478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15479 s//\1/
15482 /^X\(\/\/\)[^/].*/{
15483 s//\1/
15486 /^X\(\/\/\)$/{
15487 s//\1/
15490 /^X\(\/\).*/{
15491 s//\1/
15494 s/.*/./; q'`
15495 as_dir="$ac_dir"; as_fn_mkdir_p
15496 ac_builddir=.
15498 case "$ac_dir" in
15499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15502 # A ".." for each directory in $ac_dir_suffix.
15503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15504 case $ac_top_builddir_sub in
15505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15507 esac ;;
15508 esac
15509 ac_abs_top_builddir=$ac_pwd
15510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15511 # for backward compatibility:
15512 ac_top_builddir=$ac_top_build_prefix
15514 case $srcdir in
15515 .) # We are building in place.
15516 ac_srcdir=.
15517 ac_top_srcdir=$ac_top_builddir_sub
15518 ac_abs_top_srcdir=$ac_pwd ;;
15519 [\\/]* | ?:[\\/]* ) # Absolute name.
15520 ac_srcdir=$srcdir$ac_dir_suffix;
15521 ac_top_srcdir=$srcdir
15522 ac_abs_top_srcdir=$srcdir ;;
15523 *) # Relative name.
15524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15525 ac_top_srcdir=$ac_top_build_prefix$srcdir
15526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15527 esac
15528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15531 case $ac_mode in
15534 # CONFIG_FILE
15537 case $INSTALL in
15538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15539 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15540 esac
15541 ac_MKDIR_P=$MKDIR_P
15542 case $MKDIR_P in
15543 [\\/$]* | ?:[\\/]* ) ;;
15544 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15545 esac
15546 _ACEOF
15548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15549 # If the template does not know about datarootdir, expand it.
15550 # FIXME: This hack should be removed a few years after 2.60.
15551 ac_datarootdir_hack=; ac_datarootdir_seen=
15552 ac_sed_dataroot='
15553 /datarootdir/ {
15557 /@datadir@/p
15558 /@docdir@/p
15559 /@infodir@/p
15560 /@localedir@/p
15561 /@mandir@/p'
15562 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15563 *datarootdir*) ac_datarootdir_seen=yes;;
15564 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15566 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15567 _ACEOF
15568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15569 ac_datarootdir_hack='
15570 s&@datadir@&$datadir&g
15571 s&@docdir@&$docdir&g
15572 s&@infodir@&$infodir&g
15573 s&@localedir@&$localedir&g
15574 s&@mandir@&$mandir&g
15575 s&\\\${datarootdir}&$datarootdir&g' ;;
15576 esac
15577 _ACEOF
15579 # Neutralize VPATH when `$srcdir' = `.'.
15580 # Shell code in configure.ac might set extrasub.
15581 # FIXME: do we really want to maintain this feature?
15582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15583 ac_sed_extra="$ac_vpsub
15584 $extrasub
15585 _ACEOF
15586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15589 s|@configure_input@|$ac_sed_conf_input|;t t
15590 s&@top_builddir@&$ac_top_builddir_sub&;t t
15591 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15592 s&@srcdir@&$ac_srcdir&;t t
15593 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15594 s&@top_srcdir@&$ac_top_srcdir&;t t
15595 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15596 s&@builddir@&$ac_builddir&;t t
15597 s&@abs_builddir@&$ac_abs_builddir&;t t
15598 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15599 s&@INSTALL@&$ac_INSTALL&;t t
15600 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15601 $ac_datarootdir_hack
15603 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15604 || as_fn_error "could not create $ac_file" "$LINENO" 5
15606 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15607 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15608 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15610 which seems to be undefined. Please make sure it is defined." >&5
15611 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15612 which seems to be undefined. Please make sure it is defined." >&2;}
15614 rm -f "$tmp/stdin"
15615 case $ac_file in
15616 -) cat "$tmp/out" && rm -f "$tmp/out";;
15617 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15618 esac \
15619 || as_fn_error "could not create $ac_file" "$LINENO" 5
15623 # CONFIG_HEADER
15625 if test x"$ac_file" != x-; then
15627 $as_echo "/* $configure_input */" \
15628 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15629 } >"$tmp/config.h" \
15630 || as_fn_error "could not create $ac_file" "$LINENO" 5
15631 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15633 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15634 else
15635 rm -f "$ac_file"
15636 mv "$tmp/config.h" "$ac_file" \
15637 || as_fn_error "could not create $ac_file" "$LINENO" 5
15639 else
15640 $as_echo "/* $configure_input */" \
15641 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15642 || as_fn_error "could not create -" "$LINENO" 5
15644 # Compute "$ac_file"'s index in $config_headers.
15645 _am_arg="$ac_file"
15646 _am_stamp_count=1
15647 for _am_header in $config_headers :; do
15648 case $_am_header in
15649 $_am_arg | $_am_arg:* )
15650 break ;;
15652 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15653 esac
15654 done
15655 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15656 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15657 X"$_am_arg" : 'X\(//\)[^/]' \| \
15658 X"$_am_arg" : 'X\(//\)$' \| \
15659 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15660 $as_echo X"$_am_arg" |
15661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15662 s//\1/
15665 /^X\(\/\/\)[^/].*/{
15666 s//\1/
15669 /^X\(\/\/\)$/{
15670 s//\1/
15673 /^X\(\/\).*/{
15674 s//\1/
15677 s/.*/./; q'`/stamp-h$_am_stamp_count
15680 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15681 $as_echo "$as_me: executing $ac_file commands" >&6;}
15683 esac
15686 case $ac_file$ac_mode in
15687 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15688 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15689 # are listed without --file. Let's play safe and only enable the eval
15690 # if we detect the quoting.
15691 case $CONFIG_FILES in
15692 *\'*) eval set x "$CONFIG_FILES" ;;
15693 *) set x $CONFIG_FILES ;;
15694 esac
15695 shift
15696 for mf
15698 # Strip MF so we end up with the name of the file.
15699 mf=`echo "$mf" | sed -e 's/:.*$//'`
15700 # Check whether this is an Automake generated Makefile or not.
15701 # We used to match only the files named `Makefile.in', but
15702 # some people rename them; so instead we look at the file content.
15703 # Grep'ing the first line is not enough: some people post-process
15704 # each Makefile.in and add a new line on top of each file to say so.
15705 # Grep'ing the whole file is not good either: AIX grep has a line
15706 # limit of 2048, but all sed's we know have understand at least 4000.
15707 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15708 dirpart=`$as_dirname -- "$mf" ||
15709 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15710 X"$mf" : 'X\(//\)[^/]' \| \
15711 X"$mf" : 'X\(//\)$' \| \
15712 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15713 $as_echo X"$mf" |
15714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15715 s//\1/
15718 /^X\(\/\/\)[^/].*/{
15719 s//\1/
15722 /^X\(\/\/\)$/{
15723 s//\1/
15726 /^X\(\/\).*/{
15727 s//\1/
15730 s/.*/./; q'`
15731 else
15732 continue
15734 # Extract the definition of DEPDIR, am__include, and am__quote
15735 # from the Makefile without running `make'.
15736 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15737 test -z "$DEPDIR" && continue
15738 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15739 test -z "am__include" && continue
15740 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15741 # When using ansi2knr, U may be empty or an underscore; expand it
15742 U=`sed -n 's/^U = //p' < "$mf"`
15743 # Find all dependency output files, they are included files with
15744 # $(DEPDIR) in their names. We invoke sed twice because it is the
15745 # simplest approach to changing $(DEPDIR) to its actual value in the
15746 # expansion.
15747 for file in `sed -n "
15748 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15749 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15750 # Make sure the directory exists.
15751 test -f "$dirpart/$file" && continue
15752 fdir=`$as_dirname -- "$file" ||
15753 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15754 X"$file" : 'X\(//\)[^/]' \| \
15755 X"$file" : 'X\(//\)$' \| \
15756 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15757 $as_echo X"$file" |
15758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15759 s//\1/
15762 /^X\(\/\/\)[^/].*/{
15763 s//\1/
15766 /^X\(\/\/\)$/{
15767 s//\1/
15770 /^X\(\/\).*/{
15771 s//\1/
15774 s/.*/./; q'`
15775 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15776 # echo "creating $dirpart/$file"
15777 echo '# dummy' > "$dirpart/$file"
15778 done
15779 done
15782 "libtool":C)
15784 # See if we are running on zsh, and set the options which allow our
15785 # commands through without removal of \ escapes.
15786 if test -n "${ZSH_VERSION+set}" ; then
15787 setopt NO_GLOB_SUBST
15790 cfgfile="${ofile}T"
15791 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15792 $RM "$cfgfile"
15794 cat <<_LT_EOF >> "$cfgfile"
15795 #! $SHELL
15797 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15798 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15799 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15800 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15802 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15803 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15804 # Written by Gordon Matzigkeit, 1996
15806 # This file is part of GNU Libtool.
15808 # GNU Libtool is free software; you can redistribute it and/or
15809 # modify it under the terms of the GNU General Public License as
15810 # published by the Free Software Foundation; either version 2 of
15811 # the License, or (at your option) any later version.
15813 # As a special exception to the GNU General Public License,
15814 # if you distribute this file as part of a program or library that
15815 # is built using GNU Libtool, you may include this file under the
15816 # same distribution terms that you use for the rest of that program.
15818 # GNU Libtool is distributed in the hope that it will be useful,
15819 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15820 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15821 # GNU General Public License for more details.
15823 # You should have received a copy of the GNU General Public License
15824 # along with GNU Libtool; see the file COPYING. If not, a copy
15825 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15826 # obtained by writing to the Free Software Foundation, Inc.,
15827 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15830 # The names of the tagged configurations supported by this script.
15831 available_tags=""
15833 # ### BEGIN LIBTOOL CONFIG
15835 # Which release of libtool.m4 was used?
15836 macro_version=$macro_version
15837 macro_revision=$macro_revision
15839 # Whether or not to build shared libraries.
15840 build_libtool_libs=$enable_shared
15842 # Whether or not to build static libraries.
15843 build_old_libs=$enable_static
15845 # What type of objects to build.
15846 pic_mode=$pic_mode
15848 # Whether or not to optimize for fast installation.
15849 fast_install=$enable_fast_install
15851 # Shell to use when invoking shell scripts.
15852 SHELL=$lt_SHELL
15854 # An echo program that protects backslashes.
15855 ECHO=$lt_ECHO
15857 # The host system.
15858 host_alias=$host_alias
15859 host=$host
15860 host_os=$host_os
15862 # The build system.
15863 build_alias=$build_alias
15864 build=$build
15865 build_os=$build_os
15867 # A sed program that does not truncate output.
15868 SED=$lt_SED
15870 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15871 Xsed="\$SED -e 1s/^X//"
15873 # A grep program that handles long lines.
15874 GREP=$lt_GREP
15876 # An ERE matcher.
15877 EGREP=$lt_EGREP
15879 # A literal string matcher.
15880 FGREP=$lt_FGREP
15882 # A BSD- or MS-compatible name lister.
15883 NM=$lt_NM
15885 # Whether we need soft or hard links.
15886 LN_S=$lt_LN_S
15888 # What is the maximum length of a command?
15889 max_cmd_len=$max_cmd_len
15891 # Object file suffix (normally "o").
15892 objext=$ac_objext
15894 # Executable file suffix (normally "").
15895 exeext=$exeext
15897 # whether the shell understands "unset".
15898 lt_unset=$lt_unset
15900 # turn spaces into newlines.
15901 SP2NL=$lt_lt_SP2NL
15903 # turn newlines into spaces.
15904 NL2SP=$lt_lt_NL2SP
15906 # An object symbol dumper.
15907 OBJDUMP=$lt_OBJDUMP
15909 # Method to check whether dependent libraries are shared objects.
15910 deplibs_check_method=$lt_deplibs_check_method
15912 # Command to use when deplibs_check_method == "file_magic".
15913 file_magic_cmd=$lt_file_magic_cmd
15915 # The archiver.
15916 AR=$lt_AR
15917 AR_FLAGS=$lt_AR_FLAGS
15919 # A symbol stripping program.
15920 STRIP=$lt_STRIP
15922 # Commands used to install an old-style archive.
15923 RANLIB=$lt_RANLIB
15924 old_postinstall_cmds=$lt_old_postinstall_cmds
15925 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15927 # Whether to use a lock for old archive extraction.
15928 lock_old_archive_extraction=$lock_old_archive_extraction
15930 # A C compiler.
15931 LTCC=$lt_CC
15933 # LTCC compiler flags.
15934 LTCFLAGS=$lt_CFLAGS
15936 # Take the output of nm and produce a listing of raw symbols and C names.
15937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15939 # Transform the output of nm in a proper C declaration.
15940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15942 # Transform the output of nm in a C name address pair.
15943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15945 # Transform the output of nm in a C name address pair when lib prefix is needed.
15946 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15948 # The name of the directory that contains temporary libtool files.
15949 objdir=$objdir
15951 # Used to examine libraries when file_magic_cmd begins with "file".
15952 MAGIC_CMD=$MAGIC_CMD
15954 # Must we lock files when doing compilation?
15955 need_locks=$lt_need_locks
15957 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15958 DSYMUTIL=$lt_DSYMUTIL
15960 # Tool to change global to local symbols on Mac OS X.
15961 NMEDIT=$lt_NMEDIT
15963 # Tool to manipulate fat objects and archives on Mac OS X.
15964 LIPO=$lt_LIPO
15966 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15967 OTOOL=$lt_OTOOL
15969 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15970 OTOOL64=$lt_OTOOL64
15972 # Old archive suffix (normally "a").
15973 libext=$libext
15975 # Shared library suffix (normally ".so").
15976 shrext_cmds=$lt_shrext_cmds
15978 # The commands to extract the exported symbol list from a shared archive.
15979 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15981 # Variables whose values should be saved in libtool wrapper scripts and
15982 # restored at link time.
15983 variables_saved_for_relink=$lt_variables_saved_for_relink
15985 # Do we need the "lib" prefix for modules?
15986 need_lib_prefix=$need_lib_prefix
15988 # Do we need a version for libraries?
15989 need_version=$need_version
15991 # Library versioning type.
15992 version_type=$version_type
15994 # Shared library runtime path variable.
15995 runpath_var=$runpath_var
15997 # Shared library path variable.
15998 shlibpath_var=$shlibpath_var
16000 # Is shlibpath searched before the hard-coded library search path?
16001 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16003 # Format of library name prefix.
16004 libname_spec=$lt_libname_spec
16006 # List of archive names. First name is the real one, the rest are links.
16007 # The last name is the one that the linker finds with -lNAME
16008 library_names_spec=$lt_library_names_spec
16010 # The coded name of the library, if different from the real name.
16011 soname_spec=$lt_soname_spec
16013 # Permission mode override for installation of shared libraries.
16014 install_override_mode=$lt_install_override_mode
16016 # Command to use after installation of a shared archive.
16017 postinstall_cmds=$lt_postinstall_cmds
16019 # Command to use after uninstallation of a shared archive.
16020 postuninstall_cmds=$lt_postuninstall_cmds
16022 # Commands used to finish a libtool library installation in a directory.
16023 finish_cmds=$lt_finish_cmds
16025 # As "finish_cmds", except a single script fragment to be evaled but
16026 # not shown.
16027 finish_eval=$lt_finish_eval
16029 # Whether we should hardcode library paths into libraries.
16030 hardcode_into_libs=$hardcode_into_libs
16032 # Compile-time system search path for libraries.
16033 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16035 # Run-time system search path for libraries.
16036 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16038 # Whether dlopen is supported.
16039 dlopen_support=$enable_dlopen
16041 # Whether dlopen of programs is supported.
16042 dlopen_self=$enable_dlopen_self
16044 # Whether dlopen of statically linked programs is supported.
16045 dlopen_self_static=$enable_dlopen_self_static
16047 # Commands to strip libraries.
16048 old_striplib=$lt_old_striplib
16049 striplib=$lt_striplib
16052 # The linker used to build libraries.
16053 LD=$lt_LD
16055 # How to create reloadable object files.
16056 reload_flag=$lt_reload_flag
16057 reload_cmds=$lt_reload_cmds
16059 # Commands used to build an old-style archive.
16060 old_archive_cmds=$lt_old_archive_cmds
16062 # A language specific compiler.
16063 CC=$lt_compiler
16065 # Is the compiler the GNU compiler?
16066 with_gcc=$GCC
16068 # Compiler flag to turn off builtin functions.
16069 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16071 # How to pass a linker flag through the compiler.
16072 wl=$lt_lt_prog_compiler_wl
16074 # Additional compiler flags for building library objects.
16075 pic_flag=$lt_lt_prog_compiler_pic
16077 # Compiler flag to prevent dynamic linking.
16078 link_static_flag=$lt_lt_prog_compiler_static
16080 # Does compiler simultaneously support -c and -o options?
16081 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16083 # Whether or not to add -lc for building shared libraries.
16084 build_libtool_need_lc=$archive_cmds_need_lc
16086 # Whether or not to disallow shared libs when runtime libs are static.
16087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16089 # Compiler flag to allow reflexive dlopens.
16090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16092 # Compiler flag to generate shared objects directly from archives.
16093 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16095 # Whether the compiler copes with passing no objects directly.
16096 compiler_needs_object=$lt_compiler_needs_object
16098 # Create an old-style archive from a shared archive.
16099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16101 # Create a temporary old-style archive to link instead of a shared archive.
16102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16104 # Commands used to build a shared archive.
16105 archive_cmds=$lt_archive_cmds
16106 archive_expsym_cmds=$lt_archive_expsym_cmds
16108 # Commands used to build a loadable module if different from building
16109 # a shared archive.
16110 module_cmds=$lt_module_cmds
16111 module_expsym_cmds=$lt_module_expsym_cmds
16113 # Whether we are building with GNU ld or not.
16114 with_gnu_ld=$lt_with_gnu_ld
16116 # Flag that allows shared libraries with undefined symbols to be built.
16117 allow_undefined_flag=$lt_allow_undefined_flag
16119 # Flag that enforces no undefined symbols.
16120 no_undefined_flag=$lt_no_undefined_flag
16122 # Flag to hardcode \$libdir into a binary during linking.
16123 # This must work even if \$libdir does not exist
16124 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16126 # If ld is used when linking, flag to hardcode \$libdir into a binary
16127 # during linking. This must work even if \$libdir does not exist.
16128 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16130 # Whether we need a single "-rpath" flag with a separated argument.
16131 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16133 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16134 # DIR into the resulting binary.
16135 hardcode_direct=$hardcode_direct
16137 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16138 # DIR into the resulting binary and the resulting library dependency is
16139 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16140 # library is relocated.
16141 hardcode_direct_absolute=$hardcode_direct_absolute
16143 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16144 # into the resulting binary.
16145 hardcode_minus_L=$hardcode_minus_L
16147 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16148 # into the resulting binary.
16149 hardcode_shlibpath_var=$hardcode_shlibpath_var
16151 # Set to "yes" if building a shared library automatically hardcodes DIR
16152 # into the library and all subsequent libraries and executables linked
16153 # against it.
16154 hardcode_automatic=$hardcode_automatic
16156 # Set to yes if linker adds runtime paths of dependent libraries
16157 # to runtime path list.
16158 inherit_rpath=$inherit_rpath
16160 # Whether libtool must link a program against all its dependency libraries.
16161 link_all_deplibs=$link_all_deplibs
16163 # Fix the shell variable \$srcfile for the compiler.
16164 fix_srcfile_path=$lt_fix_srcfile_path
16166 # Set to "yes" if exported symbols are required.
16167 always_export_symbols=$always_export_symbols
16169 # The commands to list exported symbols.
16170 export_symbols_cmds=$lt_export_symbols_cmds
16172 # Symbols that should not be listed in the preloaded symbols.
16173 exclude_expsyms=$lt_exclude_expsyms
16175 # Symbols that must always be exported.
16176 include_expsyms=$lt_include_expsyms
16178 # Commands necessary for linking programs (against libraries) with templates.
16179 prelink_cmds=$lt_prelink_cmds
16181 # Specify filename containing input files.
16182 file_list_spec=$lt_file_list_spec
16184 # How to hardcode a shared library path into an executable.
16185 hardcode_action=$hardcode_action
16187 # ### END LIBTOOL CONFIG
16189 _LT_EOF
16191 case $host_os in
16192 aix3*)
16193 cat <<\_LT_EOF >> "$cfgfile"
16194 # AIX sometimes has problems with the GCC collect2 program. For some
16195 # reason, if we set the COLLECT_NAMES environment variable, the problems
16196 # vanish in a puff of smoke.
16197 if test "X${COLLECT_NAMES+set}" != Xset; then
16198 COLLECT_NAMES=
16199 export COLLECT_NAMES
16201 _LT_EOF
16203 esac
16206 ltmain="$ac_aux_dir/ltmain.sh"
16209 # We use sed instead of cat because bash on DJGPP gets confused if
16210 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16211 # text mode, it properly converts lines to CR/LF. This bash problem
16212 # is reportedly fixed, but why not run on old versions too?
16213 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16214 || (rm -f "$cfgfile"; exit 1)
16216 case $xsi_shell in
16217 yes)
16218 cat << \_LT_EOF >> "$cfgfile"
16220 # func_dirname file append nondir_replacement
16221 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16222 # otherwise set result to NONDIR_REPLACEMENT.
16223 func_dirname ()
16225 case ${1} in
16226 */*) func_dirname_result="${1%/*}${2}" ;;
16227 * ) func_dirname_result="${3}" ;;
16228 esac
16231 # func_basename file
16232 func_basename ()
16234 func_basename_result="${1##*/}"
16237 # func_dirname_and_basename file append nondir_replacement
16238 # perform func_basename and func_dirname in a single function
16239 # call:
16240 # dirname: Compute the dirname of FILE. If nonempty,
16241 # add APPEND to the result, otherwise set result
16242 # to NONDIR_REPLACEMENT.
16243 # value returned in "$func_dirname_result"
16244 # basename: Compute filename of FILE.
16245 # value retuned in "$func_basename_result"
16246 # Implementation must be kept synchronized with func_dirname
16247 # and func_basename. For efficiency, we do not delegate to
16248 # those functions but instead duplicate the functionality here.
16249 func_dirname_and_basename ()
16251 case ${1} in
16252 */*) func_dirname_result="${1%/*}${2}" ;;
16253 * ) func_dirname_result="${3}" ;;
16254 esac
16255 func_basename_result="${1##*/}"
16258 # func_stripname prefix suffix name
16259 # strip PREFIX and SUFFIX off of NAME.
16260 # PREFIX and SUFFIX must not contain globbing or regex special
16261 # characters, hashes, percent signs, but SUFFIX may contain a leading
16262 # dot (in which case that matches only a dot).
16263 func_stripname ()
16265 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16266 # positional parameters, so assign one to ordinary parameter first.
16267 func_stripname_result=${3}
16268 func_stripname_result=${func_stripname_result#"${1}"}
16269 func_stripname_result=${func_stripname_result%"${2}"}
16272 # func_opt_split
16273 func_opt_split ()
16275 func_opt_split_opt=${1%%=*}
16276 func_opt_split_arg=${1#*=}
16279 # func_lo2o object
16280 func_lo2o ()
16282 case ${1} in
16283 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16284 *) func_lo2o_result=${1} ;;
16285 esac
16288 # func_xform libobj-or-source
16289 func_xform ()
16291 func_xform_result=${1%.*}.lo
16294 # func_arith arithmetic-term...
16295 func_arith ()
16297 func_arith_result=$(( $* ))
16300 # func_len string
16301 # STRING may not start with a hyphen.
16302 func_len ()
16304 func_len_result=${#1}
16307 _LT_EOF
16309 *) # Bourne compatible functions.
16310 cat << \_LT_EOF >> "$cfgfile"
16312 # func_dirname file append nondir_replacement
16313 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16314 # otherwise set result to NONDIR_REPLACEMENT.
16315 func_dirname ()
16317 # Extract subdirectory from the argument.
16318 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16319 if test "X$func_dirname_result" = "X${1}"; then
16320 func_dirname_result="${3}"
16321 else
16322 func_dirname_result="$func_dirname_result${2}"
16326 # func_basename file
16327 func_basename ()
16329 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16333 # func_stripname prefix suffix name
16334 # strip PREFIX and SUFFIX off of NAME.
16335 # PREFIX and SUFFIX must not contain globbing or regex special
16336 # characters, hashes, percent signs, but SUFFIX may contain a leading
16337 # dot (in which case that matches only a dot).
16338 # func_strip_suffix prefix name
16339 func_stripname ()
16341 case ${2} in
16342 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16343 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16344 esac
16347 # sed scripts:
16348 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16349 my_sed_long_arg='1s/^-[^=]*=//'
16351 # func_opt_split
16352 func_opt_split ()
16354 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16355 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16358 # func_lo2o object
16359 func_lo2o ()
16361 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16364 # func_xform libobj-or-source
16365 func_xform ()
16367 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16370 # func_arith arithmetic-term...
16371 func_arith ()
16373 func_arith_result=`expr "$@"`
16376 # func_len string
16377 # STRING may not start with a hyphen.
16378 func_len ()
16380 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16383 _LT_EOF
16384 esac
16386 case $lt_shell_append in
16387 yes)
16388 cat << \_LT_EOF >> "$cfgfile"
16390 # func_append var value
16391 # Append VALUE to the end of shell variable VAR.
16392 func_append ()
16394 eval "$1+=\$2"
16396 _LT_EOF
16399 cat << \_LT_EOF >> "$cfgfile"
16401 # func_append var value
16402 # Append VALUE to the end of shell variable VAR.
16403 func_append ()
16405 eval "$1=\$$1\$2"
16408 _LT_EOF
16410 esac
16413 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16414 || (rm -f "$cfgfile"; exit 1)
16416 mv -f "$cfgfile" "$ofile" ||
16417 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16418 chmod +x "$ofile"
16421 "default-1":C)
16422 for ac_file in $CONFIG_FILES; do
16423 # Support "outfile[:infile[:infile...]]"
16424 case "$ac_file" in
16425 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16426 esac
16427 # PO directories have a Makefile.in generated from Makefile.in.in.
16428 case "$ac_file" in */Makefile.in)
16429 # Adjust a relative srcdir.
16430 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16431 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16432 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16433 # In autoconf-2.13 it is called $ac_given_srcdir.
16434 # In autoconf-2.50 it is called $srcdir.
16435 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16436 case "$ac_given_srcdir" in
16437 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16438 /*) top_srcdir="$ac_given_srcdir" ;;
16439 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16440 esac
16441 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16442 rm -f "$ac_dir/POTFILES"
16443 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16444 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16445 POMAKEFILEDEPS="POTFILES.in"
16446 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16447 # on $ac_dir but don't depend on user-specified configuration
16448 # parameters.
16449 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16450 # The LINGUAS file contains the set of available languages.
16451 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16452 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16454 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16455 # Hide the ALL_LINGUAS assigment from automake.
16456 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16457 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16458 else
16459 # The set of available languages was given in configure.in.
16460 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16462 case "$ac_given_srcdir" in
16463 .) srcdirpre= ;;
16464 *) srcdirpre='$(srcdir)/' ;;
16465 esac
16466 POFILES=
16467 GMOFILES=
16468 UPDATEPOFILES=
16469 DUMMYPOFILES=
16470 for lang in $ALL_LINGUAS; do
16471 POFILES="$POFILES $srcdirpre$lang.po"
16472 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16473 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16474 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16475 done
16476 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16477 # environment variable.
16478 INST_LINGUAS=
16479 if test -n "$ALL_LINGUAS"; then
16480 for presentlang in $ALL_LINGUAS; do
16481 useit=no
16482 if test "%UNSET%" != "$LINGUAS"; then
16483 desiredlanguages="$LINGUAS"
16484 else
16485 desiredlanguages="$ALL_LINGUAS"
16487 for desiredlang in $desiredlanguages; do
16488 # Use the presentlang catalog if desiredlang is
16489 # a. equal to presentlang, or
16490 # b. a variant of presentlang (because in this case,
16491 # presentlang can be used as a fallback for messages
16492 # which are not translated in the desiredlang catalog).
16493 case "$desiredlang" in
16494 "$presentlang"*) useit=yes;;
16495 esac
16496 done
16497 if test $useit = yes; then
16498 INST_LINGUAS="$INST_LINGUAS $presentlang"
16500 done
16502 CATALOGS=
16503 if test -n "$INST_LINGUAS"; then
16504 for lang in $INST_LINGUAS; do
16505 CATALOGS="$CATALOGS $lang.gmo"
16506 done
16508 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16509 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"
16510 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16511 if test -f "$f"; then
16512 case "$f" in
16513 *.orig | *.bak | *~) ;;
16514 *) cat "$f" >> "$ac_dir/Makefile" ;;
16515 esac
16517 done
16520 esac
16521 done ;;
16522 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16523 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16524 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16525 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16526 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16527 if test "x$cgen_cpu_prefix" != x ; then
16528 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16529 fi ;;
16531 esac
16532 done # for ac_tag
16535 as_fn_exit 0
16536 _ACEOF
16537 ac_clean_files=$ac_clean_files_save
16539 test $ac_write_fail = 0 ||
16540 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16543 # configure is writing to config.log, and then calls config.status.
16544 # config.status does its own redirection, appending to config.log.
16545 # Unfortunately, on DOS this fails, as config.log is still kept open
16546 # by configure, so config.status won't be able to write to it; its
16547 # output is simply discarded. So we exec the FD to /dev/null,
16548 # effectively closing config.log, so it can be properly (re)opened and
16549 # appended to by config.status. When coming back to configure, we
16550 # need to make the FD available again.
16551 if test "$no_create" != yes; then
16552 ac_cs_success=:
16553 ac_config_status_args=
16554 test "$silent" = yes &&
16555 ac_config_status_args="$ac_config_status_args --quiet"
16556 exec 5>/dev/null
16557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16558 exec 5>>config.log
16559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16560 # would make configure fail if this is the last instruction.
16561 $ac_cs_success || as_fn_exit $?
16563 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16565 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}