Automatic date update in version.in
[binutils-gdb.git] / libctf / configure
blob3701bd8e796f4dea1ad1daa477e532784a1e7e35
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libctf 1.2.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='libctf'
589 PACKAGE_TARNAME='libctf'
590 PACKAGE_VERSION='1.2.0'
591 PACKAGE_STRING='libctf 1.2.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="ctf-impl.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 gt_needs=
633 ac_header_list=
634 ac_func_list=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 VERSION_FLAGS_NOBFD
640 VERSION_FLAGS
641 HAVE_TCL_TRY
642 EXPECT
643 CTF_LIBADD
644 SHARED_LDFLAGS
645 BUILD_INFO_FALSE
646 BUILD_INFO_TRUE
647 NEED_CTF_QSORT_R_FALSE
648 NEED_CTF_QSORT_R_TRUE
649 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE
650 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE
651 zlibinc
652 zlibdir
653 ac_libctf_warn_cflags
654 bfdincludedir
655 bfdlibdir
656 target_noncanonical
657 host_noncanonical
658 INSTALL_LIBBFD_FALSE
659 INSTALL_LIBBFD_TRUE
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 WERROR
664 WARN_PEDANTIC
665 c_warn
666 warn
667 OTOOL64
668 OTOOL
669 LIPO
670 NMEDIT
671 DSYMUTIL
672 OBJDUMP
673 LN_S
675 ac_ct_DUMPBIN
676 DUMPBIN
678 FGREP
680 LIBTOOL
681 CATOBJEXT
682 GENCAT
683 INSTOBJEXT
684 DATADIRNAME
685 CATALOGS
686 INCINTL
687 LIBINTL_DEP
688 POSUB
689 LTLIBINTL
690 LIBINTL
691 INTLLIBS
692 LTLIBICONV
693 LIBICONV
694 INTL_MACOSX_LIBS
695 MSGMERGE
696 XGETTEXT
697 GMSGFMT
698 MSGFMT
699 USE_NLS
700 MKINSTALLDIRS
701 ac_ct_AR
703 RANLIB
704 AM_BACKSLASH
705 AM_DEFAULT_VERBOSITY
706 AM_DEFAULT_V
707 AM_V
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 EGREP
742 GREP
744 OBJEXT
745 EXEEXT
746 ac_ct_CC
747 CPPFLAGS
748 LDFLAGS
749 CFLAGS
751 target_os
752 target_vendor
753 target_cpu
754 target
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_URL
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_dependency_tracking
805 enable_silent_rules
806 enable_nls
807 with_gnu_ld
808 enable_rpath
809 with_libiconv_prefix
810 with_libiconv_type
811 with_libintl_prefix
812 with_libintl_type
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 enable_libtool_lock
818 enable_largefile
819 enable_werror_always
820 enable_maintainer_mode
821 enable_install_libbfd
822 with_system_zlib
823 enable_libctf_hash_debugging
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 CPP'
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
884 ac_prev=
885 ac_dashdash=
886 for ac_option
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
895 case $ac_option in
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
899 esac
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
905 ac_dashdash=yes ;;
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
924 --config-cache | -C)
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241 esac
1242 done
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1326 /^X\(\/\/\)$/{
1327 s//\1/
1330 /^X\(\/\).*/{
1331 s//\1/
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1339 else
1340 ac_srcdir_defaulted=no
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures libctf 1.2.0 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1429 cat <<\_ACEOF
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 --target=TARGET configure for building compilers for TARGET [HOST]
1440 _ACEOF
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of libctf 1.2.0:";;
1446 esac
1447 cat <<\_ACEOF
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-silent-rules less verbose build output (undo: "make V=1")
1458 --disable-silent-rules verbose build output (undo: "make V=0")
1459 --disable-nls do not use Native Language Support
1460 --disable-rpath do not hardcode runtime library paths
1461 --enable-shared[=PKGS] build shared libraries [default=no]
1462 --enable-static[=PKGS] build static libraries [default=yes]
1463 --enable-fast-install[=PKGS]
1464 optimize for fast installation [default=yes]
1465 --disable-libtool-lock avoid locking (might break parallel builds)
1466 --disable-largefile omit support for large files
1467 --enable-werror-always enable -Werror despite compiler version
1468 --enable-maintainer-mode
1469 enable make rules and dependencies not useful (and
1470 sometimes confusing) to the casual installer
1471 --enable-install-libbfd controls installation of libbfd and related headers
1472 --enable-libctf-hash-debugging
1473 Enable expensive debugging of CTF deduplication type
1474 hashing [default=no]
1476 Optional Packages:
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-gnu-ld assume the C compiler uses GNU ld default=no
1480 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1481 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1482 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1483 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1484 --without-libintl-prefix don't search for libintl in includedir and libdir
1485 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-system-zlib use installed libz
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CPP C preprocessor
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to the package provider.
1505 _ACEOF
1506 ac_status=$?
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 libctf configure 1.2.0
1568 generated by GNU Autoconf 2.69
1570 Copyright (C) 2012 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1612 ac_retval=1
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1617 } # ac_fn_c_try_compile
1619 # ac_fn_c_try_cpp LINENO
1620 # ----------------------
1621 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_cpp ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } > conftest.i && {
1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1649 ac_retval=1
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1654 } # ac_fn_c_try_cpp
1656 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1657 # -------------------------------------------------------
1658 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1659 # the include files in INCLUDES and setting the cache variable VAR
1660 # accordingly.
1661 ac_fn_c_check_header_mongrel ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if eval \${$3+:} false; then :
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1670 eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 $as_echo "$ac_res" >&6; }
1673 else
1674 # Is the header compilable?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1676 $as_echo_n "checking $2 usability... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683 ac_header_compiler=yes
1684 else
1685 ac_header_compiler=no
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1689 $as_echo "$ac_header_compiler" >&6; }
1691 # Is the header present?
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1693 $as_echo_n "checking $2 presence... " >&6; }
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_cpp "$LINENO"; then :
1699 ac_header_preproc=yes
1700 else
1701 ac_header_preproc=no
1703 rm -f conftest.err conftest.i conftest.$ac_ext
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1705 $as_echo "$ac_header_preproc" >&6; }
1707 # So? What about this header?
1708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1709 yes:no: )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1711 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 no:yes:* )
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1717 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1719 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1721 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1723 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1727 esac
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 eval "$3=\$ac_header_compiler"
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 } # ac_fn_c_check_header_mongrel
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1747 ac_fn_c_try_run ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=$ac_status
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1783 } # ac_fn_c_try_run
1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists and can be compiled using the include files in
1788 # INCLUDES, setting the cache variable VAR accordingly.
1789 ac_fn_c_check_header_compile ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796 else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 eval "$3=yes"
1804 else
1805 eval "$3=no"
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_header_compile
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_link ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1844 }; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=1
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1860 } # ac_fn_c_try_link
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877 #define $2 innocuous_$2
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (); below.
1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 <limits.h> exists even on freestanding compilers. */
1884 #ifdef __STDC__
1885 # include <limits.h>
1886 #else
1887 # include <assert.h>
1888 #endif
1890 #undef $2
1892 /* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1895 #ifdef __cplusplus
1896 extern "C"
1897 #endif
1898 char $2 ();
1899 /* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902 #if defined __stub_$2 || defined __stub___$2
1903 choke me
1904 #endif
1907 main ()
1909 return $2 ();
1911 return 0;
1913 _ACEOF
1914 if ac_fn_c_try_link "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1919 rm -f core conftest.err conftest.$ac_objext \
1920 conftest$ac_exeext conftest.$ac_ext
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_func
1929 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1930 # ---------------------------------------------
1931 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1932 # accordingly.
1933 ac_fn_c_check_decl ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 as_decl_name=`echo $2|sed 's/ *(.*//'`
1937 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1939 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1947 main ()
1949 #ifndef $as_decl_name
1950 #ifdef __cplusplus
1951 (void) $as_decl_use;
1952 #else
1953 (void) $as_decl_name;
1954 #endif
1955 #endif
1958 return 0;
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 eval "$3=yes"
1963 else
1964 eval "$3=no"
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 } # ac_fn_c_check_decl
1974 cat >config.log <<_ACEOF
1975 This file contains any messages produced by compilers while
1976 running configure, to aid debugging if configure makes a mistake.
1978 It was created by libctf $as_me 1.2.0, which was
1979 generated by GNU Autoconf 2.69. Invocation command line was
1981 $ $0 $@
1983 _ACEOF
1984 exec 5>>config.log
1986 cat <<_ASUNAME
1987 ## --------- ##
1988 ## Platform. ##
1989 ## --------- ##
1991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2003 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008 _ASUNAME
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
2015 $as_echo "PATH: $as_dir"
2016 done
2017 IFS=$as_save_IFS
2019 } >&5
2021 cat >&5 <<_ACEOF
2024 ## ----------- ##
2025 ## Core tests. ##
2026 ## ----------- ##
2028 _ACEOF
2031 # Keep a trace of the command line.
2032 # Strip out --no-create and --no-recursion so they do not pile up.
2033 # Strip out --silent because we don't want to record it for future runs.
2034 # Also quote any args containing shell meta-characters.
2035 # Make two passes to allow for proper duplicate-argument suppression.
2036 ac_configure_args=
2037 ac_configure_args0=
2038 ac_configure_args1=
2039 ac_must_keep_next=false
2040 for ac_pass in 1 2
2042 for ac_arg
2044 case $ac_arg in
2045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2047 | -silent | --silent | --silen | --sile | --sil)
2048 continue ;;
2049 *\'*)
2050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2051 esac
2052 case $ac_pass in
2053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2055 as_fn_append ac_configure_args1 " '$ac_arg'"
2056 if test $ac_must_keep_next = true; then
2057 ac_must_keep_next=false # Got value, back to normal.
2058 else
2059 case $ac_arg in
2060 *=* | --config-cache | -C | -disable-* | --disable-* \
2061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2063 | -with-* | --with-* | -without-* | --without-* | --x)
2064 case "$ac_configure_args0 " in
2065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2066 esac
2068 -* ) ac_must_keep_next=true ;;
2069 esac
2071 as_fn_append ac_configure_args " '$ac_arg'"
2073 esac
2074 done
2075 done
2076 { ac_configure_args0=; unset ac_configure_args0;}
2077 { ac_configure_args1=; unset ac_configure_args1;}
2079 # When interrupted or exit'd, cleanup temporary files, and complete
2080 # config.log. We remove comments because anyway the quotes in there
2081 # would cause problems or look ugly.
2082 # WARNING: Use '\'' to represent an apostrophe within the trap.
2083 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2084 trap 'exit_status=$?
2085 # Save into config.log some information that might help in debugging.
2087 echo
2089 $as_echo "## ---------------- ##
2090 ## Cache variables. ##
2091 ## ---------------- ##"
2092 echo
2093 # The following way of writing the cache mishandles newlines in values,
2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in #(
2098 *${as_nl}*)
2099 case $ac_var in #(
2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2102 esac
2103 case $ac_var in #(
2104 _ | IFS | as_nl) ;; #(
2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2106 *) { eval $ac_var=; unset $ac_var;} ;;
2107 esac ;;
2108 esac
2109 done
2110 (set) 2>&1 |
2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2112 *${as_nl}ac_space=\ *)
2113 sed -n \
2114 "s/'\''/'\''\\\\'\'''\''/g;
2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2116 ;; #(
2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2120 esac |
2121 sort
2123 echo
2125 $as_echo "## ----------------- ##
2126 ## Output variables. ##
2127 ## ----------------- ##"
2128 echo
2129 for ac_var in $ac_subst_vars
2131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
2136 done | sort
2137 echo
2139 if test -n "$ac_subst_files"; then
2140 $as_echo "## ------------------- ##
2141 ## File substitutions. ##
2142 ## ------------------- ##"
2143 echo
2144 for ac_var in $ac_subst_files
2146 eval ac_val=\$$ac_var
2147 case $ac_val in
2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149 esac
2150 $as_echo "$ac_var='\''$ac_val'\''"
2151 done | sort
2152 echo
2155 if test -s confdefs.h; then
2156 $as_echo "## ----------- ##
2157 ## confdefs.h. ##
2158 ## ----------- ##"
2159 echo
2160 cat confdefs.h
2161 echo
2163 test "$ac_signal" != 0 &&
2164 $as_echo "$as_me: caught signal $ac_signal"
2165 $as_echo "$as_me: exit $exit_status"
2166 } >&5
2167 rm -f core *.core core.conftest.* &&
2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2169 exit $exit_status
2171 for ac_signal in 1 2 13 15; do
2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2173 done
2174 ac_signal=0
2176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2177 rm -f -r conftest* confdefs.h
2179 $as_echo "/* confdefs.h */" > confdefs.h
2181 # Predefined preprocessor variables.
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_NAME "$PACKAGE_NAME"
2185 _ACEOF
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2189 _ACEOF
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2193 _ACEOF
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_STRING "$PACKAGE_STRING"
2197 _ACEOF
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2201 _ACEOF
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_URL "$PACKAGE_URL"
2205 _ACEOF
2208 # Let the site file select an alternate cache file if it wants to.
2209 # Prefer an explicitly selected file to automatically selected ones.
2210 ac_site_file1=NONE
2211 ac_site_file2=NONE
2212 if test -n "$CONFIG_SITE"; then
2213 # We do not want a PATH search for config.site.
2214 case $CONFIG_SITE in #((
2215 -*) ac_site_file1=./$CONFIG_SITE;;
2216 */*) ac_site_file1=$CONFIG_SITE;;
2217 *) ac_site_file1=./$CONFIG_SITE;;
2218 esac
2219 elif test "x$prefix" != xNONE; then
2220 ac_site_file1=$prefix/share/config.site
2221 ac_site_file2=$prefix/etc/config.site
2222 else
2223 ac_site_file1=$ac_default_prefix/share/config.site
2224 ac_site_file2=$ac_default_prefix/etc/config.site
2226 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2228 test "x$ac_site_file" = xNONE && continue
2229 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2231 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2232 sed 's/^/| /' "$ac_site_file" >&5
2233 . "$ac_site_file" \
2234 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 as_fn_error $? "failed to load site script $ac_site_file
2237 See \`config.log' for more details" "$LINENO" 5; }
2239 done
2241 if test -r "$cache_file"; then
2242 # Some versions of bash will fail to source /dev/null (special files
2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2246 $as_echo "$as_me: loading cache $cache_file" >&6;}
2247 case $cache_file in
2248 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2249 *) . "./$cache_file";;
2250 esac
2252 else
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2254 $as_echo "$as_me: creating cache $cache_file" >&6;}
2255 >$cache_file
2258 gt_needs="$gt_needs "
2259 as_fn_append ac_header_list " stdlib.h"
2260 as_fn_append ac_header_list " unistd.h"
2261 as_fn_append ac_header_list " sys/param.h"
2262 as_fn_append ac_func_list " qsort_r"
2263 # Check that the precious variables saved in the cache have kept the same
2264 # value.
2265 ac_cache_corrupted=false
2266 for ac_var in $ac_precious_vars; do
2267 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2268 eval ac_new_set=\$ac_env_${ac_var}_set
2269 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2270 eval ac_new_val=\$ac_env_${ac_var}_value
2271 case $ac_old_set,$ac_new_set in
2272 set,)
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2274 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2275 ac_cache_corrupted=: ;;
2276 ,set)
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2278 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2279 ac_cache_corrupted=: ;;
2280 ,);;
2282 if test "x$ac_old_val" != "x$ac_new_val"; then
2283 # differences in whitespace do not lead to failure.
2284 ac_old_val_w=`echo x $ac_old_val`
2285 ac_new_val_w=`echo x $ac_new_val`
2286 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2288 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2289 ac_cache_corrupted=:
2290 else
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2292 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2293 eval $ac_var=\$ac_old_val
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2296 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2298 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2299 fi;;
2300 esac
2301 # Pass precious variables to config.status.
2302 if test "$ac_new_set" = set; then
2303 case $ac_new_val in
2304 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2305 *) ac_arg=$ac_var=$ac_new_val ;;
2306 esac
2307 case " $ac_configure_args " in
2308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2309 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2310 esac
2312 done
2313 if $ac_cache_corrupted; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2317 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2318 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2320 ## -------------------- ##
2321 ## Main body of script. ##
2322 ## -------------------- ##
2324 ac_ext=c
2325 ac_cpp='$CPP $CPPFLAGS'
2326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335 ac_aux_dir=
2336 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2337 if test -f "$ac_dir/install-sh"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/install-sh -c"
2340 break
2341 elif test -f "$ac_dir/install.sh"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$ac_aux_dir/install.sh -c"
2344 break
2345 elif test -f "$ac_dir/shtool"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/shtool install -c"
2348 break
2350 done
2351 if test -z "$ac_aux_dir"; then
2352 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2355 # These three variables are undocumented and unsupported,
2356 # and are intended to be withdrawn in a future Autoconf release.
2357 # They can cause serious problems if a builder's source tree is in a directory
2358 # whose full name contains unusual characters.
2359 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2360 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2361 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2364 # Make sure we can run config.sub.
2365 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2366 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2369 $as_echo_n "checking build system type... " >&6; }
2370 if ${ac_cv_build+:} false; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 ac_build_alias=$build_alias
2374 test "x$ac_build_alias" = x &&
2375 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2376 test "x$ac_build_alias" = x &&
2377 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2378 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2379 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2383 $as_echo "$ac_cv_build" >&6; }
2384 case $ac_cv_build in
2385 *-*-*) ;;
2386 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2387 esac
2388 build=$ac_cv_build
2389 ac_save_IFS=$IFS; IFS='-'
2390 set x $ac_cv_build
2391 shift
2392 build_cpu=$1
2393 build_vendor=$2
2394 shift; shift
2395 # Remember, the first character of IFS is used to create $*,
2396 # except with old shells:
2397 build_os=$*
2398 IFS=$ac_save_IFS
2399 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2403 $as_echo_n "checking host system type... " >&6; }
2404 if ${ac_cv_host+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 if test "x$host_alias" = x; then
2408 ac_cv_host=$ac_cv_build
2409 else
2410 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2416 $as_echo "$ac_cv_host" >&6; }
2417 case $ac_cv_host in
2418 *-*-*) ;;
2419 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2420 esac
2421 host=$ac_cv_host
2422 ac_save_IFS=$IFS; IFS='-'
2423 set x $ac_cv_host
2424 shift
2425 host_cpu=$1
2426 host_vendor=$2
2427 shift; shift
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2430 host_os=$*
2431 IFS=$ac_save_IFS
2432 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2436 $as_echo_n "checking target system type... " >&6; }
2437 if ${ac_cv_target+:} false; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 if test "x$target_alias" = x; then
2441 ac_cv_target=$ac_cv_host
2442 else
2443 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2449 $as_echo "$ac_cv_target" >&6; }
2450 case $ac_cv_target in
2451 *-*-*) ;;
2452 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2453 esac
2454 target=$ac_cv_target
2455 ac_save_IFS=$IFS; IFS='-'
2456 set x $ac_cv_target
2457 shift
2458 target_cpu=$1
2459 target_vendor=$2
2460 shift; shift
2461 # Remember, the first character of IFS is used to create $*,
2462 # except with old shells:
2463 target_os=$*
2464 IFS=$ac_save_IFS
2465 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2468 # The aliases save the names the user supplied, while $host etc.
2469 # will get canonicalized.
2470 test -n "$target_alias" &&
2471 test "$program_prefix$program_suffix$program_transform_name" = \
2472 NONENONEs,x,x, &&
2473 program_prefix=${target_alias}-
2474 # Expand $ac_aux_dir to an absolute path.
2475 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2477 ac_ext=c
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486 $as_echo_n "checking for $ac_word... " >&6; }
2487 if ${ac_cv_prog_CC+:} false; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2504 done
2505 done
2506 IFS=$as_save_IFS
2510 CC=$ac_cv_prog_CC
2511 if test -n "$CC"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2513 $as_echo "$CC" >&6; }
2514 else
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516 $as_echo "no" >&6; }
2521 if test -z "$ac_cv_prog_CC"; then
2522 ac_ct_CC=$CC
2523 # Extract the first word of "gcc", so it can be a program name with args.
2524 set dummy gcc; ac_word=$2
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526 $as_echo_n "checking for $ac_word... " >&6; }
2527 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 if test -n "$ac_ct_CC"; then
2531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540 ac_cv_prog_ac_ct_CC="gcc"
2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2544 done
2545 done
2546 IFS=$as_save_IFS
2550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2551 if test -n "$ac_ct_CC"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2553 $as_echo "$ac_ct_CC" >&6; }
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556 $as_echo "no" >&6; }
2559 if test "x$ac_ct_CC" = x; then
2560 CC=""
2561 else
2562 case $cross_compiling:$ac_tool_warned in
2563 yes:)
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2566 ac_tool_warned=yes ;;
2567 esac
2568 CC=$ac_ct_CC
2570 else
2571 CC="$ac_cv_prog_CC"
2574 if test -z "$CC"; then
2575 if test -n "$ac_tool_prefix"; then
2576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2577 set dummy ${ac_tool_prefix}cc; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_CC+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_CC="${ac_tool_prefix}cc"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2597 done
2598 done
2599 IFS=$as_save_IFS
2603 CC=$ac_cv_prog_CC
2604 if test -n "$CC"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2606 $as_echo "$CC" >&6; }
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2615 if test -z "$CC"; then
2616 # Extract the first word of "cc", so it can be a program name with args.
2617 set dummy cc; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if ${ac_cv_prog_CC+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2625 else
2626 ac_prog_rejected=no
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2635 ac_prog_rejected=yes
2636 continue
2638 ac_cv_prog_CC="cc"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2642 done
2643 done
2644 IFS=$as_save_IFS
2646 if test $ac_prog_rejected = yes; then
2647 # We found a bogon in the path, so make sure we never use it.
2648 set dummy $ac_cv_prog_CC
2649 shift
2650 if test $# != 0; then
2651 # We chose a different compiler from the bogus one.
2652 # However, it has the same basename, so the bogon will be chosen
2653 # first if we set CC to just the basename; use the full file name.
2654 shift
2655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2660 CC=$ac_cv_prog_CC
2661 if test -n "$CC"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2663 $as_echo "$CC" >&6; }
2664 else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666 $as_echo "no" >&6; }
2671 if test -z "$CC"; then
2672 if test -n "$ac_tool_prefix"; then
2673 for ac_prog in cl.exe
2675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_CC+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2698 IFS=$as_save_IFS
2702 CC=$ac_cv_prog_CC
2703 if test -n "$CC"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2705 $as_echo "$CC" >&6; }
2706 else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2712 test -n "$CC" && break
2713 done
2715 if test -z "$CC"; then
2716 ac_ct_CC=$CC
2717 for ac_prog in cl.exe
2719 # Extract the first word of "$ac_prog", so it can be a program name with args.
2720 set dummy $ac_prog; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 if test -n "$ac_ct_CC"; then
2727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736 ac_cv_prog_ac_ct_CC="$ac_prog"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2740 done
2741 done
2742 IFS=$as_save_IFS
2746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2747 if test -n "$ac_ct_CC"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2749 $as_echo "$ac_ct_CC" >&6; }
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2756 test -n "$ac_ct_CC" && break
2757 done
2759 if test "x$ac_ct_CC" = x; then
2760 CC=""
2761 else
2762 case $cross_compiling:$ac_tool_warned in
2763 yes:)
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2766 ac_tool_warned=yes ;;
2767 esac
2768 CC=$ac_ct_CC
2775 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777 as_fn_error $? "no acceptable C compiler found in \$PATH
2778 See \`config.log' for more details" "$LINENO" 5; }
2780 # Provide some information about the compiler.
2781 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2782 set X $ac_compile
2783 ac_compiler=$2
2784 for ac_option in --version -v -V -qversion; do
2785 { { ac_try="$ac_compiler $ac_option >&5"
2786 case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789 esac
2790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791 $as_echo "$ac_try_echo"; } >&5
2792 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2793 ac_status=$?
2794 if test -s conftest.err; then
2795 sed '10a\
2796 ... rest of stderr output deleted ...
2797 10q' conftest.err >conftest.er1
2798 cat conftest.er1 >&5
2800 rm -f conftest.er1 conftest.err
2801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2802 test $ac_status = 0; }
2803 done
2805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h. */
2809 main ()
2813 return 0;
2815 _ACEOF
2816 ac_clean_files_save=$ac_clean_files
2817 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2818 # Try to create an executable without -o first, disregard a.out.
2819 # It will help us diagnose broken compilers, and finding out an intuition
2820 # of exeext.
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2822 $as_echo_n "checking whether the C compiler works... " >&6; }
2823 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2825 # The possible output files:
2826 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2828 ac_rmfiles=
2829 for ac_file in $ac_files
2831 case $ac_file in
2832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2833 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2834 esac
2835 done
2836 rm -f $ac_rmfiles
2838 if { { ac_try="$ac_link_default"
2839 case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842 esac
2843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2844 $as_echo "$ac_try_echo"; } >&5
2845 (eval "$ac_link_default") 2>&5
2846 ac_status=$?
2847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2848 test $ac_status = 0; }; then :
2849 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2850 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2851 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2852 # so that the user can short-circuit this test for compilers unknown to
2853 # Autoconf.
2854 for ac_file in $ac_files ''
2856 test -f "$ac_file" || continue
2857 case $ac_file in
2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2860 [ab].out )
2861 # We found the default executable, but exeext='' is most
2862 # certainly right.
2863 break;;
2864 *.* )
2865 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2866 then :; else
2867 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 # We set ac_cv_exeext here because the later test for it is not
2870 # safe: cross compilers may not add the suffix if given an `-o'
2871 # argument, so we may need to know it at that point already.
2872 # Even if this section looks crufty: it has the advantage of
2873 # actually working.
2874 break;;
2876 break;;
2877 esac
2878 done
2879 test "$ac_cv_exeext" = no && ac_cv_exeext=
2881 else
2882 ac_file=''
2884 if test -z "$ac_file"; then :
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2887 $as_echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892 as_fn_error 77 "C compiler cannot create executables
2893 See \`config.log' for more details" "$LINENO" 5; }
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2896 $as_echo "yes" >&6; }
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2899 $as_echo_n "checking for C compiler default output file name... " >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2901 $as_echo "$ac_file" >&6; }
2902 ac_exeext=$ac_cv_exeext
2904 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2905 ac_clean_files=$ac_clean_files_save
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2907 $as_echo_n "checking for suffix of executables... " >&6; }
2908 if { { ac_try="$ac_link"
2909 case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 $as_echo "$ac_try_echo"; } >&5
2915 (eval "$ac_link") 2>&5
2916 ac_status=$?
2917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2918 test $ac_status = 0; }; then :
2919 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2920 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2921 # work properly (i.e., refer to `conftest.exe'), while it won't with
2922 # `rm'.
2923 for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;;
2927 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2928 break;;
2929 * ) break;;
2930 esac
2931 done
2932 else
2933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2935 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2936 See \`config.log' for more details" "$LINENO" 5; }
2938 rm -f conftest conftest$ac_cv_exeext
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2940 $as_echo "$ac_cv_exeext" >&6; }
2942 rm -f conftest.$ac_ext
2943 EXEEXT=$ac_cv_exeext
2944 ac_exeext=$EXEEXT
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h. */
2947 #include <stdio.h>
2949 main ()
2951 FILE *f = fopen ("conftest.out", "w");
2952 return ferror (f) || fclose (f) != 0;
2955 return 0;
2957 _ACEOF
2958 ac_clean_files="$ac_clean_files conftest.out"
2959 # Check that the compiler produces executables we can run. If not, either
2960 # the compiler is broken, or we cross compile.
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2962 $as_echo_n "checking whether we are cross compiling... " >&6; }
2963 if test "$cross_compiling" != yes; then
2964 { { ac_try="$ac_link"
2965 case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2970 $as_echo "$ac_try_echo"; } >&5
2971 (eval "$ac_link") 2>&5
2972 ac_status=$?
2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974 test $ac_status = 0; }
2975 if { ac_try='./conftest$ac_cv_exeext'
2976 { { case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_try") 2>&5
2983 ac_status=$?
2984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985 test $ac_status = 0; }; }; then
2986 cross_compiling=no
2987 else
2988 if test "$cross_compiling" = maybe; then
2989 cross_compiling=yes
2990 else
2991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 as_fn_error $? "cannot run C compiled programs.
2994 If you meant to cross compile, use \`--host'.
2995 See \`config.log' for more details" "$LINENO" 5; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3000 $as_echo "$cross_compiling" >&6; }
3002 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3003 ac_clean_files=$ac_clean_files_save
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3005 $as_echo_n "checking for suffix of object files... " >&6; }
3006 if ${ac_cv_objext+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3013 main ()
3017 return 0;
3019 _ACEOF
3020 rm -f conftest.o conftest.obj
3021 if { { ac_try="$ac_compile"
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028 (eval "$ac_compile") 2>&5
3029 ac_status=$?
3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031 test $ac_status = 0; }; then :
3032 for ac_file in conftest.o conftest.obj conftest.*; do
3033 test -f "$ac_file" || continue;
3034 case $ac_file in
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3037 break;;
3038 esac
3039 done
3040 else
3041 $as_echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 as_fn_error $? "cannot compute suffix of object files: cannot compile
3047 See \`config.log' for more details" "$LINENO" 5; }
3049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3052 $as_echo "$ac_cv_objext" >&6; }
3053 OBJEXT=$ac_cv_objext
3054 ac_objext=$OBJEXT
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3056 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3057 if ${ac_cv_c_compiler_gnu+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3064 main ()
3066 #ifndef __GNUC__
3067 choke me
3068 #endif
3071 return 0;
3073 _ACEOF
3074 if ac_fn_c_try_compile "$LINENO"; then :
3075 ac_compiler_gnu=yes
3076 else
3077 ac_compiler_gnu=no
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3084 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3085 if test $ac_compiler_gnu = yes; then
3086 GCC=yes
3087 else
3088 GCC=
3090 ac_test_CFLAGS=${CFLAGS+set}
3091 ac_save_CFLAGS=$CFLAGS
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3093 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3094 if ${ac_cv_prog_cc_g+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 ac_save_c_werror_flag=$ac_c_werror_flag
3098 ac_c_werror_flag=yes
3099 ac_cv_prog_cc_g=no
3100 CFLAGS="-g"
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3105 main ()
3109 return 0;
3111 _ACEOF
3112 if ac_fn_c_try_compile "$LINENO"; then :
3113 ac_cv_prog_cc_g=yes
3114 else
3115 CFLAGS=""
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3120 main ()
3124 return 0;
3126 _ACEOF
3127 if ac_fn_c_try_compile "$LINENO"; then :
3129 else
3130 ac_c_werror_flag=$ac_save_c_werror_flag
3131 CFLAGS="-g"
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3136 main ()
3140 return 0;
3142 _ACEOF
3143 if ac_fn_c_try_compile "$LINENO"; then :
3144 ac_cv_prog_cc_g=yes
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 ac_c_werror_flag=$ac_save_c_werror_flag
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3154 $as_echo "$ac_cv_prog_cc_g" >&6; }
3155 if test "$ac_test_CFLAGS" = set; then
3156 CFLAGS=$ac_save_CFLAGS
3157 elif test $ac_cv_prog_cc_g = yes; then
3158 if test "$GCC" = yes; then
3159 CFLAGS="-g -O2"
3160 else
3161 CFLAGS="-g"
3163 else
3164 if test "$GCC" = yes; then
3165 CFLAGS="-O2"
3166 else
3167 CFLAGS=
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3171 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3172 if ${ac_cv_prog_cc_c89+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 ac_cv_prog_cc_c89=no
3176 ac_save_CC=$CC
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3179 #include <stdarg.h>
3180 #include <stdio.h>
3181 struct stat;
3182 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3183 struct buf { int x; };
3184 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3185 static char *e (p, i)
3186 char **p;
3187 int i;
3189 return p[i];
3191 static char *f (char * (*g) (char **, int), char **p, ...)
3193 char *s;
3194 va_list v;
3195 va_start (v,p);
3196 s = g (p, va_arg (v,int));
3197 va_end (v);
3198 return s;
3201 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3202 function prototypes and stuff, but not '\xHH' hex character constants.
3203 These don't provoke an error unfortunately, instead are silently treated
3204 as 'x'. The following induces an error, until -std is added to get
3205 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3206 array size at least. It's necessary to write '\x00'==0 to get something
3207 that's true only with -std. */
3208 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3210 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3211 inside strings and character constants. */
3212 #define FOO(x) 'x'
3213 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3215 int test (int i, double x);
3216 struct s1 {int (*f) (int a);};
3217 struct s2 {int (*f) (double a);};
3218 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3219 int argc;
3220 char **argv;
3222 main ()
3224 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3226 return 0;
3228 _ACEOF
3229 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3230 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3232 CC="$ac_save_CC $ac_arg"
3233 if ac_fn_c_try_compile "$LINENO"; then :
3234 ac_cv_prog_cc_c89=$ac_arg
3236 rm -f core conftest.err conftest.$ac_objext
3237 test "x$ac_cv_prog_cc_c89" != "xno" && break
3238 done
3239 rm -f conftest.$ac_ext
3240 CC=$ac_save_CC
3243 # AC_CACHE_VAL
3244 case "x$ac_cv_prog_cc_c89" in
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3247 $as_echo "none needed" >&6; } ;;
3248 xno)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3250 $as_echo "unsupported" >&6; } ;;
3252 CC="$CC $ac_cv_prog_cc_c89"
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3254 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3255 esac
3256 if test "x$ac_cv_prog_cc_c89" != xno; then :
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3272 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3273 if ${am_cv_prog_cc_c_o+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3280 main ()
3284 return 0;
3286 _ACEOF
3287 # Make sure it works both with $CC and with simple cc.
3288 # Following AC_PROG_CC_C_O, we do the test twice because some
3289 # compilers refuse to overwrite an existing .o file with -o,
3290 # though they will create one.
3291 am_cv_prog_cc_c_o=yes
3292 for am_i in 1 2; do
3293 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3294 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } \
3298 && test -f conftest2.$ac_objext; then
3299 : OK
3300 else
3301 am_cv_prog_cc_c_o=no
3302 break
3304 done
3305 rm -f core conftest*
3306 unset am_i
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3309 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3310 if test "$am_cv_prog_cc_c_o" != yes; then
3311 # Losing compiler, so override with the script.
3312 # FIXME: It is wrong to rewrite CC.
3313 # But if we don't then we get into trouble of one sort or another.
3314 # A longer-term fix would be to have automake use am__CC in this case,
3315 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3316 CC="$am_aux_dir/compile $CC"
3318 ac_ext=c
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 ac_ext=c
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3333 # On Suns, sometimes $CPP names a directory.
3334 if test -n "$CPP" && test -d "$CPP"; then
3335 CPP=
3337 if test -z "$CPP"; then
3338 if ${ac_cv_prog_CPP+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 # Double quotes because CPP needs to be expanded
3342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3344 ac_preproc_ok=false
3345 for ac_c_preproc_warn_flag in '' yes
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 # <limits.h> exists even on freestanding compilers.
3351 # On the NeXT, cc -E runs the code through the compiler's parser,
3352 # not just through cpp. "Syntax error" is here to catch this case.
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355 #ifdef __STDC__
3356 # include <limits.h>
3357 #else
3358 # include <assert.h>
3359 #endif
3360 Syntax error
3361 _ACEOF
3362 if ac_fn_c_try_cpp "$LINENO"; then :
3364 else
3365 # Broken: fails on valid input.
3366 continue
3368 rm -f conftest.err conftest.i conftest.$ac_ext
3370 # OK, works on sane cases. Now check whether nonexistent headers
3371 # can be detected and how.
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3374 #include <ac_nonexistent.h>
3375 _ACEOF
3376 if ac_fn_c_try_cpp "$LINENO"; then :
3377 # Broken: success on invalid input.
3378 continue
3379 else
3380 # Passes both tests.
3381 ac_preproc_ok=:
3382 break
3384 rm -f conftest.err conftest.i conftest.$ac_ext
3386 done
3387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3388 rm -f conftest.i conftest.err conftest.$ac_ext
3389 if $ac_preproc_ok; then :
3390 break
3393 done
3394 ac_cv_prog_CPP=$CPP
3397 CPP=$ac_cv_prog_CPP
3398 else
3399 ac_cv_prog_CPP=$CPP
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3402 $as_echo "$CPP" >&6; }
3403 ac_preproc_ok=false
3404 for ac_c_preproc_warn_flag in '' yes
3406 # Use a header file that comes with gcc, so configuring glibc
3407 # with a fresh cross-compiler works.
3408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3409 # <limits.h> exists even on freestanding compilers.
3410 # On the NeXT, cc -E runs the code through the compiler's parser,
3411 # not just through cpp. "Syntax error" is here to catch this case.
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414 #ifdef __STDC__
3415 # include <limits.h>
3416 #else
3417 # include <assert.h>
3418 #endif
3419 Syntax error
3420 _ACEOF
3421 if ac_fn_c_try_cpp "$LINENO"; then :
3423 else
3424 # Broken: fails on valid input.
3425 continue
3427 rm -f conftest.err conftest.i conftest.$ac_ext
3429 # OK, works on sane cases. Now check whether nonexistent headers
3430 # can be detected and how.
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433 #include <ac_nonexistent.h>
3434 _ACEOF
3435 if ac_fn_c_try_cpp "$LINENO"; then :
3436 # Broken: success on invalid input.
3437 continue
3438 else
3439 # Passes both tests.
3440 ac_preproc_ok=:
3441 break
3443 rm -f conftest.err conftest.i conftest.$ac_ext
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.i conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then :
3450 else
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details" "$LINENO" 5; }
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3465 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3466 if ${ac_cv_path_GREP+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -z "$GREP"; then
3470 ac_path_GREP_found=false
3471 # Loop through the user's path and test for each of PROGNAME-LIST
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_prog in grep ggrep; do
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3480 as_fn_executable_p "$ac_path_GREP" || continue
3481 # Check for GNU ac_path_GREP and select it if it is found.
3482 # Check for GNU $ac_path_GREP
3483 case `"$ac_path_GREP" --version 2>&1` in
3484 *GNU*)
3485 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3487 ac_count=0
3488 $as_echo_n 0123456789 >"conftest.in"
3489 while :
3491 cat "conftest.in" "conftest.in" >"conftest.tmp"
3492 mv "conftest.tmp" "conftest.in"
3493 cp "conftest.in" "conftest.nl"
3494 $as_echo 'GREP' >> "conftest.nl"
3495 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3497 as_fn_arith $ac_count + 1 && ac_count=$as_val
3498 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3499 # Best one so far, save it but keep looking for a better one
3500 ac_cv_path_GREP="$ac_path_GREP"
3501 ac_path_GREP_max=$ac_count
3503 # 10*(2^10) chars as input seems more than enough
3504 test $ac_count -gt 10 && break
3505 done
3506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3507 esac
3509 $ac_path_GREP_found && break 3
3510 done
3511 done
3512 done
3513 IFS=$as_save_IFS
3514 if test -z "$ac_cv_path_GREP"; then
3515 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3517 else
3518 ac_cv_path_GREP=$GREP
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3523 $as_echo "$ac_cv_path_GREP" >&6; }
3524 GREP="$ac_cv_path_GREP"
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3528 $as_echo_n "checking for egrep... " >&6; }
3529 if ${ac_cv_path_EGREP+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3533 then ac_cv_path_EGREP="$GREP -E"
3534 else
3535 if test -z "$EGREP"; then
3536 ac_path_EGREP_found=false
3537 # Loop through the user's path and test for each of PROGNAME-LIST
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_prog in egrep; do
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3546 as_fn_executable_p "$ac_path_EGREP" || continue
3547 # Check for GNU ac_path_EGREP and select it if it is found.
3548 # Check for GNU $ac_path_EGREP
3549 case `"$ac_path_EGREP" --version 2>&1` in
3550 *GNU*)
3551 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3553 ac_count=0
3554 $as_echo_n 0123456789 >"conftest.in"
3555 while :
3557 cat "conftest.in" "conftest.in" >"conftest.tmp"
3558 mv "conftest.tmp" "conftest.in"
3559 cp "conftest.in" "conftest.nl"
3560 $as_echo 'EGREP' >> "conftest.nl"
3561 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3563 as_fn_arith $ac_count + 1 && ac_count=$as_val
3564 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3565 # Best one so far, save it but keep looking for a better one
3566 ac_cv_path_EGREP="$ac_path_EGREP"
3567 ac_path_EGREP_max=$ac_count
3569 # 10*(2^10) chars as input seems more than enough
3570 test $ac_count -gt 10 && break
3571 done
3572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3573 esac
3575 $ac_path_EGREP_found && break 3
3576 done
3577 done
3578 done
3579 IFS=$as_save_IFS
3580 if test -z "$ac_cv_path_EGREP"; then
3581 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3583 else
3584 ac_cv_path_EGREP=$EGREP
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3590 $as_echo "$ac_cv_path_EGREP" >&6; }
3591 EGREP="$ac_cv_path_EGREP"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3595 $as_echo_n "checking for ANSI C header files... " >&6; }
3596 if ${ac_cv_header_stdc+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601 #include <stdlib.h>
3602 #include <stdarg.h>
3603 #include <string.h>
3604 #include <float.h>
3607 main ()
3611 return 0;
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_cv_header_stdc=yes
3616 else
3617 ac_cv_header_stdc=no
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 if test $ac_cv_header_stdc = yes; then
3622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #include <string.h>
3627 _ACEOF
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629 $EGREP "memchr" >/dev/null 2>&1; then :
3631 else
3632 ac_cv_header_stdc=no
3634 rm -f conftest*
3638 if test $ac_cv_header_stdc = yes; then
3639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3642 #include <stdlib.h>
3644 _ACEOF
3645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3646 $EGREP "free" >/dev/null 2>&1; then :
3648 else
3649 ac_cv_header_stdc=no
3651 rm -f conftest*
3655 if test $ac_cv_header_stdc = yes; then
3656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3657 if test "$cross_compiling" = yes; then :
3659 else
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662 #include <ctype.h>
3663 #include <stdlib.h>
3664 #if ((' ' & 0x0FF) == 0x020)
3665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3667 #else
3668 # define ISLOWER(c) \
3669 (('a' <= (c) && (c) <= 'i') \
3670 || ('j' <= (c) && (c) <= 'r') \
3671 || ('s' <= (c) && (c) <= 'z'))
3672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3673 #endif
3675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3677 main ()
3679 int i;
3680 for (i = 0; i < 256; i++)
3681 if (XOR (islower (i), ISLOWER (i))
3682 || toupper (i) != TOUPPER (i))
3683 return 2;
3684 return 0;
3686 _ACEOF
3687 if ac_fn_c_try_run "$LINENO"; then :
3689 else
3690 ac_cv_header_stdc=no
3692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3693 conftest.$ac_objext conftest.beam conftest.$ac_ext
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3699 $as_echo "$ac_cv_header_stdc" >&6; }
3700 if test $ac_cv_header_stdc = yes; then
3702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3706 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3707 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3708 inttypes.h stdint.h unistd.h
3709 do :
3710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3711 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3714 cat >>confdefs.h <<_ACEOF
3715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3716 _ACEOF
3720 done
3724 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3725 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3726 MINIX=yes
3727 else
3728 MINIX=
3732 if test "$MINIX" = yes; then
3734 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3737 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3740 $as_echo "#define _MINIX 1" >>confdefs.h
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3746 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3747 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3753 # define __EXTENSIONS__ 1
3754 $ac_includes_default
3756 main ()
3760 return 0;
3762 _ACEOF
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764 ac_cv_safe_to_define___extensions__=yes
3765 else
3766 ac_cv_safe_to_define___extensions__=no
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3771 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3772 test $ac_cv_safe_to_define___extensions__ = yes &&
3773 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3775 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3777 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3779 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3781 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3784 am__api_version='1.15'
3786 # Find a good install program. We prefer a C program (faster),
3787 # so one script is as good as another. But avoid the broken or
3788 # incompatible versions:
3789 # SysV /etc/install, /usr/sbin/install
3790 # SunOS /usr/etc/install
3791 # IRIX /sbin/install
3792 # AIX /bin/install
3793 # AmigaOS /C/install, which installs bootblocks on floppy discs
3794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3797 # OS/2's system install, which has a completely different semantic
3798 # ./install, which can be erroneously created by make from ./install.sh.
3799 # Reject install programs that cannot install multiple files.
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3801 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3802 if test -z "$INSTALL"; then
3803 if ${ac_cv_path_install+:} false; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 # Account for people who put trailing slashes in PATH elements.
3812 case $as_dir/ in #((
3813 ./ | .// | /[cC]/* | \
3814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3816 /usr/ucb/* ) ;;
3818 # OSF1 and SCO ODT 3.0 have their own names for install.
3819 # Don't use installbsd from OSF since it installs stuff as root
3820 # by default.
3821 for ac_prog in ginstall scoinst install; do
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3824 if test $ac_prog = install &&
3825 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3826 # AIX install. It has an incompatible calling convention.
3828 elif test $ac_prog = install &&
3829 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3830 # program-specific install script used by HP pwplus--don't use.
3832 else
3833 rm -rf conftest.one conftest.two conftest.dir
3834 echo one > conftest.one
3835 echo two > conftest.two
3836 mkdir conftest.dir
3837 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3838 test -s conftest.one && test -s conftest.two &&
3839 test -s conftest.dir/conftest.one &&
3840 test -s conftest.dir/conftest.two
3841 then
3842 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3843 break 3
3847 done
3848 done
3850 esac
3852 done
3853 IFS=$as_save_IFS
3855 rm -rf conftest.one conftest.two conftest.dir
3858 if test "${ac_cv_path_install+set}" = set; then
3859 INSTALL=$ac_cv_path_install
3860 else
3861 # As a last resort, use the slow shell script. Don't cache a
3862 # value for INSTALL within a source directory, because that will
3863 # break other packages using the cache if that directory is
3864 # removed, or if the value is a relative name.
3865 INSTALL=$ac_install_sh
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3869 $as_echo "$INSTALL" >&6; }
3871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872 # It thinks the first close brace ends the variable substitution.
3873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3880 $as_echo_n "checking whether build environment is sane... " >&6; }
3881 # Reject unsafe characters in $srcdir or the absolute working directory
3882 # name. Accept space and tab only in the latter.
3883 am_lf='
3885 case `pwd` in
3886 *[\\\"\#\$\&\'\`$am_lf]*)
3887 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3888 esac
3889 case $srcdir in
3890 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3891 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3892 esac
3894 # Do 'set' in a subshell so we don't clobber the current shell's
3895 # arguments. Must try -L first in case configure is actually a
3896 # symlink; some systems play weird games with the mod time of symlinks
3897 # (eg FreeBSD returns the mod time of the symlink's containing
3898 # directory).
3899 if (
3900 am_has_slept=no
3901 for am_try in 1 2; do
3902 echo "timestamp, slept: $am_has_slept" > conftest.file
3903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3904 if test "$*" = "X"; then
3905 # -L didn't work.
3906 set X `ls -t "$srcdir/configure" conftest.file`
3908 if test "$*" != "X $srcdir/configure conftest.file" \
3909 && test "$*" != "X conftest.file $srcdir/configure"; then
3911 # If neither matched, then we have a broken ls. This can happen
3912 # if, for instance, CONFIG_SHELL is bash and it inherits a
3913 # broken ls alias from the environment. This has actually
3914 # happened. Such a system could not be considered "sane".
3915 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3916 alias in your environment" "$LINENO" 5
3918 if test "$2" = conftest.file || test $am_try -eq 2; then
3919 break
3921 # Just in case.
3922 sleep 1
3923 am_has_slept=yes
3924 done
3925 test "$2" = conftest.file
3927 then
3928 # Ok.
3930 else
3931 as_fn_error $? "newly created file is older than distributed files!
3932 Check your system clock" "$LINENO" 5
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935 $as_echo "yes" >&6; }
3936 # If we didn't sleep, we still need to ensure time stamps of config.status and
3937 # generated files are strictly newer.
3938 am_sleep_pid=
3939 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3940 ( sleep 1 ) &
3941 am_sleep_pid=$!
3944 rm -f conftest.file
3946 test "$program_prefix" != NONE &&
3947 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3948 # Use a double $ so make ignores it.
3949 test "$program_suffix" != NONE &&
3950 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3951 # Double any \ or $.
3952 # By default was `s,x,x', remove it if useless.
3953 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3954 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3956 if test x"${MISSING+set}" != xset; then
3957 case $am_aux_dir in
3958 *\ * | *\ *)
3959 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3961 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3962 esac
3964 # Use eval to expand $SHELL
3965 if eval "$MISSING --is-lightweight"; then
3966 am_missing_run="$MISSING "
3967 else
3968 am_missing_run=
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3970 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3973 if test x"${install_sh+set}" != xset; then
3974 case $am_aux_dir in
3975 *\ * | *\ *)
3976 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3978 install_sh="\${SHELL} $am_aux_dir/install-sh"
3979 esac
3982 # Installed binaries are usually stripped using 'strip' when the user
3983 # run "make install-strip". However 'strip' might not be the right
3984 # tool to use in cross-compilation environments, therefore Automake
3985 # will honor the 'STRIP' environment variable to overrule this program.
3986 if test "$cross_compiling" != no; then
3987 if test -n "$ac_tool_prefix"; then
3988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3989 set dummy ${ac_tool_prefix}strip; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if ${ac_cv_prog_STRIP+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -n "$STRIP"; then
3996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4005 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4009 done
4010 done
4011 IFS=$as_save_IFS
4015 STRIP=$ac_cv_prog_STRIP
4016 if test -n "$STRIP"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4018 $as_echo "$STRIP" >&6; }
4019 else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4026 if test -z "$ac_cv_prog_STRIP"; then
4027 ac_ct_STRIP=$STRIP
4028 # Extract the first word of "strip", so it can be a program name with args.
4029 set dummy strip; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test -n "$ac_ct_STRIP"; then
4036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045 ac_cv_prog_ac_ct_STRIP="strip"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4049 done
4050 done
4051 IFS=$as_save_IFS
4055 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4056 if test -n "$ac_ct_STRIP"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4058 $as_echo "$ac_ct_STRIP" >&6; }
4059 else
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4064 if test "x$ac_ct_STRIP" = x; then
4065 STRIP=":"
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068 yes:)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071 ac_tool_warned=yes ;;
4072 esac
4073 STRIP=$ac_ct_STRIP
4075 else
4076 STRIP="$ac_cv_prog_STRIP"
4080 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4083 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4084 if test -z "$MKDIR_P"; then
4085 if ${ac_cv_path_mkdir+:} false; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_prog in mkdir gmkdir; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4096 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4097 'mkdir (GNU coreutils) '* | \
4098 'mkdir (coreutils) '* | \
4099 'mkdir (fileutils) '4.1*)
4100 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4101 break 3;;
4102 esac
4103 done
4104 done
4105 done
4106 IFS=$as_save_IFS
4110 test -d ./--version && rmdir ./--version
4111 if test "${ac_cv_path_mkdir+set}" = set; then
4112 MKDIR_P="$ac_cv_path_mkdir -p"
4113 else
4114 # As a last resort, use the slow shell script. Don't cache a
4115 # value for MKDIR_P within a source directory, because that will
4116 # break other packages using the cache if that directory is
4117 # removed, or if the value is a relative name.
4118 MKDIR_P="$ac_install_sh -d"
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4122 $as_echo "$MKDIR_P" >&6; }
4124 for ac_prog in gawk mawk nawk awk
4126 # Extract the first word of "$ac_prog", so it can be a program name with args.
4127 set dummy $ac_prog; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_AWK+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if test -n "$AWK"; then
4134 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_AWK="$ac_prog"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4147 done
4148 done
4149 IFS=$as_save_IFS
4153 AWK=$ac_cv_prog_AWK
4154 if test -n "$AWK"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4156 $as_echo "$AWK" >&6; }
4157 else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4163 test -n "$AWK" && break
4164 done
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4167 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4168 set x ${MAKE-make}
4169 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4170 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 cat >conftest.make <<\_ACEOF
4174 SHELL = /bin/sh
4175 all:
4176 @echo '@@@%%%=$(MAKE)=@@@%%%'
4177 _ACEOF
4178 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4179 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4180 *@@@%%%=?*=@@@%%%*)
4181 eval ac_cv_prog_make_${ac_make}_set=yes;;
4183 eval ac_cv_prog_make_${ac_make}_set=no;;
4184 esac
4185 rm -f conftest.make
4187 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189 $as_echo "yes" >&6; }
4190 SET_MAKE=
4191 else
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4194 SET_MAKE="MAKE=${MAKE-make}"
4197 rm -rf .tst 2>/dev/null
4198 mkdir .tst 2>/dev/null
4199 if test -d .tst; then
4200 am__leading_dot=.
4201 else
4202 am__leading_dot=_
4204 rmdir .tst 2>/dev/null
4206 DEPDIR="${am__leading_dot}deps"
4208 ac_config_commands="$ac_config_commands depfiles"
4211 am_make=${MAKE-make}
4212 cat > confinc << 'END'
4213 am__doit:
4214 @echo this is the am__doit target
4215 .PHONY: am__doit
4217 # If we don't find an include directive, just comment out the code.
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4219 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4220 am__include="#"
4221 am__quote=
4222 _am_result=none
4223 # First try GNU make style include.
4224 echo "include confinc" > confmf
4225 # Ignore all kinds of additional output from 'make'.
4226 case `$am_make -s -f confmf 2> /dev/null` in #(
4227 *the\ am__doit\ target*)
4228 am__include=include
4229 am__quote=
4230 _am_result=GNU
4232 esac
4233 # Now try BSD make style include.
4234 if test "$am__include" = "#"; then
4235 echo '.include "confinc"' > confmf
4236 case `$am_make -s -f confmf 2> /dev/null` in #(
4237 *the\ am__doit\ target*)
4238 am__include=.include
4239 am__quote="\""
4240 _am_result=BSD
4242 esac
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4247 $as_echo "$_am_result" >&6; }
4248 rm -f confinc confmf
4250 # Check whether --enable-dependency-tracking was given.
4251 if test "${enable_dependency_tracking+set}" = set; then :
4252 enableval=$enable_dependency_tracking;
4255 if test "x$enable_dependency_tracking" != xno; then
4256 am_depcomp="$ac_aux_dir/depcomp"
4257 AMDEPBACKSLASH='\'
4258 am__nodep='_no'
4260 if test "x$enable_dependency_tracking" != xno; then
4261 AMDEP_TRUE=
4262 AMDEP_FALSE='#'
4263 else
4264 AMDEP_TRUE='#'
4265 AMDEP_FALSE=
4269 # Check whether --enable-silent-rules was given.
4270 if test "${enable_silent_rules+set}" = set; then :
4271 enableval=$enable_silent_rules;
4274 case $enable_silent_rules in # (((
4275 yes) AM_DEFAULT_VERBOSITY=0;;
4276 no) AM_DEFAULT_VERBOSITY=1;;
4277 *) AM_DEFAULT_VERBOSITY=1;;
4278 esac
4279 am_make=${MAKE-make}
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4281 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4282 if ${am_cv_make_support_nested_variables+:} false; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285 if $as_echo 'TRUE=$(BAR$(V))
4286 BAR0=false
4287 BAR1=true
4289 am__doit:
4290 @$(TRUE)
4291 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4292 am_cv_make_support_nested_variables=yes
4293 else
4294 am_cv_make_support_nested_variables=no
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4298 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4299 if test $am_cv_make_support_nested_variables = yes; then
4300 AM_V='$(V)'
4301 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4302 else
4303 AM_V=$AM_DEFAULT_VERBOSITY
4304 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4306 AM_BACKSLASH='\'
4308 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4309 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4310 # is not polluted with repeated "-I."
4311 am__isrc=' -I$(srcdir)'
4312 # test to see if srcdir already configured
4313 if test -f $srcdir/config.status; then
4314 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4318 # test whether we have cygpath
4319 if test -z "$CYGPATH_W"; then
4320 if (cygpath --version) >/dev/null 2>/dev/null; then
4321 CYGPATH_W='cygpath -w'
4322 else
4323 CYGPATH_W=echo
4328 # Define the identity of the package.
4329 PACKAGE='libctf'
4330 VERSION='1.2.0'
4333 cat >>confdefs.h <<_ACEOF
4334 #define PACKAGE "$PACKAGE"
4335 _ACEOF
4338 cat >>confdefs.h <<_ACEOF
4339 #define VERSION "$VERSION"
4340 _ACEOF
4342 # Some tools Automake needs.
4344 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4347 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4350 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4353 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4356 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4358 # For better backward compatibility. To be removed once Automake 1.9.x
4359 # dies out for good. For more background, see:
4360 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4361 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4362 mkdir_p='$(MKDIR_P)'
4364 # We need awk for the "check" target (and possibly the TAP driver). The
4365 # system "awk" is bad on some platforms.
4366 # Always define AMTAR for backward compatibility. Yes, it's still used
4367 # in the wild :-( We should find a proper way to deprecate it ...
4368 AMTAR='$${TAR-tar}'
4371 # We'll loop over all known methods to create a tar archive until one works.
4372 _am_tools='gnutar pax cpio none'
4374 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4380 depcc="$CC" am_compiler_list=
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4383 $as_echo_n "checking dependency style of $depcc... " >&6; }
4384 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4388 # We make a subdir and do the tests there. Otherwise we can end up
4389 # making bogus files that we don't know about and never remove. For
4390 # instance it was reported that on HP-UX the gcc test will end up
4391 # making a dummy file named 'D' -- because '-MD' means "put the output
4392 # in D".
4393 rm -rf conftest.dir
4394 mkdir conftest.dir
4395 # Copy depcomp to subdir because otherwise we won't find it if we're
4396 # using a relative directory.
4397 cp "$am_depcomp" conftest.dir
4398 cd conftest.dir
4399 # We will build objects and dependencies in a subdirectory because
4400 # it helps to detect inapplicable dependency modes. For instance
4401 # both Tru64's cc and ICC support -MD to output dependencies as a
4402 # side effect of compilation, but ICC will put the dependencies in
4403 # the current directory while Tru64 will put them in the object
4404 # directory.
4405 mkdir sub
4407 am_cv_CC_dependencies_compiler_type=none
4408 if test "$am_compiler_list" = ""; then
4409 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4411 am__universal=false
4412 case " $depcc " in #(
4413 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4414 esac
4416 for depmode in $am_compiler_list; do
4417 # Setup a source with many dependencies, because some compilers
4418 # like to wrap large dependency lists on column 80 (with \), and
4419 # we should not choose a depcomp mode which is confused by this.
4421 # We need to recreate these files for each test, as the compiler may
4422 # overwrite some of them when testing with obscure command lines.
4423 # This happens at least with the AIX C compiler.
4424 : > sub/conftest.c
4425 for i in 1 2 3 4 5 6; do
4426 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4427 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4428 # Solaris 10 /bin/sh.
4429 echo '/* dummy */' > sub/conftst$i.h
4430 done
4431 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4433 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4434 # mode. It turns out that the SunPro C++ compiler does not properly
4435 # handle '-M -o', and we need to detect this. Also, some Intel
4436 # versions had trouble with output in subdirs.
4437 am__obj=sub/conftest.${OBJEXT-o}
4438 am__minus_obj="-o $am__obj"
4439 case $depmode in
4440 gcc)
4441 # This depmode causes a compiler race in universal mode.
4442 test "$am__universal" = false || continue
4444 nosideeffect)
4445 # After this tag, mechanisms are not by side-effect, so they'll
4446 # only be used when explicitly requested.
4447 if test "x$enable_dependency_tracking" = xyes; then
4448 continue
4449 else
4450 break
4453 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4454 # This compiler won't grok '-c -o', but also, the minuso test has
4455 # not run yet. These depmodes are late enough in the game, and
4456 # so weak that their functioning should not be impacted.
4457 am__obj=conftest.${OBJEXT-o}
4458 am__minus_obj=
4460 none) break ;;
4461 esac
4462 if depmode=$depmode \
4463 source=sub/conftest.c object=$am__obj \
4464 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4465 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4466 >/dev/null 2>conftest.err &&
4467 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4468 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4469 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4470 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4471 # icc doesn't choke on unknown options, it will just issue warnings
4472 # or remarks (even with -Werror). So we grep stderr for any message
4473 # that says an option was ignored or not supported.
4474 # When given -MP, icc 7.0 and 7.1 complain thusly:
4475 # icc: Command line warning: ignoring option '-M'; no argument required
4476 # The diagnosis changed in icc 8.0:
4477 # icc: Command line remark: option '-MP' not supported
4478 if (grep 'ignoring option' conftest.err ||
4479 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4480 am_cv_CC_dependencies_compiler_type=$depmode
4481 break
4484 done
4486 cd ..
4487 rm -rf conftest.dir
4488 else
4489 am_cv_CC_dependencies_compiler_type=none
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4494 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4495 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4498 test "x$enable_dependency_tracking" != xno \
4499 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4500 am__fastdepCC_TRUE=
4501 am__fastdepCC_FALSE='#'
4502 else
4503 am__fastdepCC_TRUE='#'
4504 am__fastdepCC_FALSE=
4509 # POSIX will say in a future version that running "rm -f" with no argument
4510 # is OK; and we want to be able to make that assumption in our Makefile
4511 # recipes. So use an aggressive probe to check that the usage we want is
4512 # actually supported "in the wild" to an acceptable degree.
4513 # See automake bug#10828.
4514 # To make any issue more visible, cause the running configure to be aborted
4515 # by default if the 'rm' program in use doesn't match our expectations; the
4516 # user can still override this though.
4517 if rm -f && rm -fr && rm -rf; then : OK; else
4518 cat >&2 <<'END'
4519 Oops!
4521 Your 'rm' program seems unable to run without file operands specified
4522 on the command line, even when the '-f' option is present. This is contrary
4523 to the behaviour of most rm programs out there, and not conforming with
4524 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4526 Please tell bug-automake@gnu.org about your system, including the value
4527 of your $PATH and any error possibly output before this message. This
4528 can help us improve future automake versions.
4531 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4532 echo 'Configuration will proceed anyway, since you have set the' >&2
4533 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4534 echo >&2
4535 else
4536 cat >&2 <<'END'
4537 Aborting the configuration process, to ensure you take notice of the issue.
4539 You can download and install GNU coreutils to get an 'rm' implementation
4540 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4542 If you want to complete the configuration process using your problematic
4543 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4544 to "yes", and re-run configure.
4547 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4551 # Check whether --enable-silent-rules was given.
4552 if test "${enable_silent_rules+set}" = set; then :
4553 enableval=$enable_silent_rules;
4556 case $enable_silent_rules in # (((
4557 yes) AM_DEFAULT_VERBOSITY=0;;
4558 no) AM_DEFAULT_VERBOSITY=1;;
4559 *) AM_DEFAULT_VERBOSITY=0;;
4560 esac
4561 am_make=${MAKE-make}
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4563 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4564 if ${am_cv_make_support_nested_variables+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if $as_echo 'TRUE=$(BAR$(V))
4568 BAR0=false
4569 BAR1=true
4571 am__doit:
4572 @$(TRUE)
4573 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4574 am_cv_make_support_nested_variables=yes
4575 else
4576 am_cv_make_support_nested_variables=no
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4580 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4581 if test $am_cv_make_support_nested_variables = yes; then
4582 AM_V='$(V)'
4583 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4584 else
4585 AM_V=$AM_DEFAULT_VERBOSITY
4586 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4588 AM_BACKSLASH='\'
4591 # Checks for programs.
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4593 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4594 set x ${MAKE-make}
4595 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4596 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 cat >conftest.make <<\_ACEOF
4600 SHELL = /bin/sh
4601 all:
4602 @echo '@@@%%%=$(MAKE)=@@@%%%'
4603 _ACEOF
4604 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4605 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4606 *@@@%%%=?*=@@@%%%*)
4607 eval ac_cv_prog_make_${ac_make}_set=yes;;
4609 eval ac_cv_prog_make_${ac_make}_set=no;;
4610 esac
4611 rm -f conftest.make
4613 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615 $as_echo "yes" >&6; }
4616 SET_MAKE=
4617 else
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4620 SET_MAKE="MAKE=${MAKE-make}"
4623 ac_ext=c
4624 ac_cpp='$CPP $CPPFLAGS'
4625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628 if test -n "$ac_tool_prefix"; then
4629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4630 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_CC+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$CC"; then
4637 ac_cv_prog_CC="$CC" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4650 done
4651 done
4652 IFS=$as_save_IFS
4656 CC=$ac_cv_prog_CC
4657 if test -n "$CC"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4659 $as_echo "$CC" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4667 if test -z "$ac_cv_prog_CC"; then
4668 ac_ct_CC=$CC
4669 # Extract the first word of "gcc", so it can be a program name with args.
4670 set dummy gcc; ac_word=$2
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 if test -n "$ac_ct_CC"; then
4677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4678 else
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686 ac_cv_prog_ac_ct_CC="gcc"
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4690 done
4691 done
4692 IFS=$as_save_IFS
4696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697 if test -n "$ac_ct_CC"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4699 $as_echo "$ac_ct_CC" >&6; }
4700 else
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4705 if test "x$ac_ct_CC" = x; then
4706 CC=""
4707 else
4708 case $cross_compiling:$ac_tool_warned in
4709 yes:)
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4712 ac_tool_warned=yes ;;
4713 esac
4714 CC=$ac_ct_CC
4716 else
4717 CC="$ac_cv_prog_CC"
4720 if test -z "$CC"; then
4721 if test -n "$ac_tool_prefix"; then
4722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4723 set dummy ${ac_tool_prefix}cc; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if ${ac_cv_prog_CC+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if test -n "$CC"; then
4730 ac_cv_prog_CC="$CC" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_prog_CC="${ac_tool_prefix}cc"
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4743 done
4744 done
4745 IFS=$as_save_IFS
4749 CC=$ac_cv_prog_CC
4750 if test -n "$CC"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4752 $as_echo "$CC" >&6; }
4753 else
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4761 if test -z "$CC"; then
4762 # Extract the first word of "cc", so it can be a program name with args.
4763 set dummy cc; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if ${ac_cv_prog_CC+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$CC"; then
4770 ac_cv_prog_CC="$CC" # Let the user override the test.
4771 else
4772 ac_prog_rejected=no
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4781 ac_prog_rejected=yes
4782 continue
4784 ac_cv_prog_CC="cc"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4788 done
4789 done
4790 IFS=$as_save_IFS
4792 if test $ac_prog_rejected = yes; then
4793 # We found a bogon in the path, so make sure we never use it.
4794 set dummy $ac_cv_prog_CC
4795 shift
4796 if test $# != 0; then
4797 # We chose a different compiler from the bogus one.
4798 # However, it has the same basename, so the bogon will be chosen
4799 # first if we set CC to just the basename; use the full file name.
4800 shift
4801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4806 CC=$ac_cv_prog_CC
4807 if test -n "$CC"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4809 $as_echo "$CC" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4817 if test -z "$CC"; then
4818 if test -n "$ac_tool_prefix"; then
4819 for ac_prog in cl.exe
4821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 $as_echo_n "checking for $ac_word... " >&6; }
4825 if ${ac_cv_prog_CC+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 if test -n "$CC"; then
4829 ac_cv_prog_CC="$CC" # Let the user override the test.
4830 else
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4842 done
4843 done
4844 IFS=$as_save_IFS
4848 CC=$ac_cv_prog_CC
4849 if test -n "$CC"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 $as_echo "$CC" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4858 test -n "$CC" && break
4859 done
4861 if test -z "$CC"; then
4862 ac_ct_CC=$CC
4863 for ac_prog in cl.exe
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866 set dummy $ac_prog; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$ac_ct_CC"; then
4873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_ac_ct_CC="$ac_prog"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4886 done
4887 done
4888 IFS=$as_save_IFS
4892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4893 if test -n "$ac_ct_CC"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4895 $as_echo "$ac_ct_CC" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4902 test -n "$ac_ct_CC" && break
4903 done
4905 if test "x$ac_ct_CC" = x; then
4906 CC=""
4907 else
4908 case $cross_compiling:$ac_tool_warned in
4909 yes:)
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4912 ac_tool_warned=yes ;;
4913 esac
4914 CC=$ac_ct_CC
4921 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4923 as_fn_error $? "no acceptable C compiler found in \$PATH
4924 See \`config.log' for more details" "$LINENO" 5; }
4926 # Provide some information about the compiler.
4927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4928 set X $ac_compile
4929 ac_compiler=$2
4930 for ac_option in --version -v -V -qversion; do
4931 { { ac_try="$ac_compiler $ac_option >&5"
4932 case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935 esac
4936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4937 $as_echo "$ac_try_echo"; } >&5
4938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4939 ac_status=$?
4940 if test -s conftest.err; then
4941 sed '10a\
4942 ... rest of stderr output deleted ...
4943 10q' conftest.err >conftest.er1
4944 cat conftest.er1 >&5
4946 rm -f conftest.er1 conftest.err
4947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4948 test $ac_status = 0; }
4949 done
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4952 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4953 if ${ac_cv_c_compiler_gnu+:} false; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4960 main ()
4962 #ifndef __GNUC__
4963 choke me
4964 #endif
4967 return 0;
4969 _ACEOF
4970 if ac_fn_c_try_compile "$LINENO"; then :
4971 ac_compiler_gnu=yes
4972 else
4973 ac_compiler_gnu=no
4975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4980 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4981 if test $ac_compiler_gnu = yes; then
4982 GCC=yes
4983 else
4984 GCC=
4986 ac_test_CFLAGS=${CFLAGS+set}
4987 ac_save_CFLAGS=$CFLAGS
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4989 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4990 if ${ac_cv_prog_cc_g+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 ac_save_c_werror_flag=$ac_c_werror_flag
4994 ac_c_werror_flag=yes
4995 ac_cv_prog_cc_g=no
4996 CFLAGS="-g"
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5001 main ()
5005 return 0;
5007 _ACEOF
5008 if ac_fn_c_try_compile "$LINENO"; then :
5009 ac_cv_prog_cc_g=yes
5010 else
5011 CFLAGS=""
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5016 main ()
5020 return 0;
5022 _ACEOF
5023 if ac_fn_c_try_compile "$LINENO"; then :
5025 else
5026 ac_c_werror_flag=$ac_save_c_werror_flag
5027 CFLAGS="-g"
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5032 main ()
5036 return 0;
5038 _ACEOF
5039 if ac_fn_c_try_compile "$LINENO"; then :
5040 ac_cv_prog_cc_g=yes
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 ac_c_werror_flag=$ac_save_c_werror_flag
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5050 $as_echo "$ac_cv_prog_cc_g" >&6; }
5051 if test "$ac_test_CFLAGS" = set; then
5052 CFLAGS=$ac_save_CFLAGS
5053 elif test $ac_cv_prog_cc_g = yes; then
5054 if test "$GCC" = yes; then
5055 CFLAGS="-g -O2"
5056 else
5057 CFLAGS="-g"
5059 else
5060 if test "$GCC" = yes; then
5061 CFLAGS="-O2"
5062 else
5063 CFLAGS=
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5067 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5068 if ${ac_cv_prog_cc_c89+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 ac_cv_prog_cc_c89=no
5072 ac_save_CC=$CC
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 #include <stdarg.h>
5076 #include <stdio.h>
5077 struct stat;
5078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5079 struct buf { int x; };
5080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5081 static char *e (p, i)
5082 char **p;
5083 int i;
5085 return p[i];
5087 static char *f (char * (*g) (char **, int), char **p, ...)
5089 char *s;
5090 va_list v;
5091 va_start (v,p);
5092 s = g (p, va_arg (v,int));
5093 va_end (v);
5094 return s;
5097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5098 function prototypes and stuff, but not '\xHH' hex character constants.
5099 These don't provoke an error unfortunately, instead are silently treated
5100 as 'x'. The following induces an error, until -std is added to get
5101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5102 array size at least. It's necessary to write '\x00'==0 to get something
5103 that's true only with -std. */
5104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5107 inside strings and character constants. */
5108 #define FOO(x) 'x'
5109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5111 int test (int i, double x);
5112 struct s1 {int (*f) (int a);};
5113 struct s2 {int (*f) (double a);};
5114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5115 int argc;
5116 char **argv;
5118 main ()
5120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5122 return 0;
5124 _ACEOF
5125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5128 CC="$ac_save_CC $ac_arg"
5129 if ac_fn_c_try_compile "$LINENO"; then :
5130 ac_cv_prog_cc_c89=$ac_arg
5132 rm -f core conftest.err conftest.$ac_objext
5133 test "x$ac_cv_prog_cc_c89" != "xno" && break
5134 done
5135 rm -f conftest.$ac_ext
5136 CC=$ac_save_CC
5139 # AC_CACHE_VAL
5140 case "x$ac_cv_prog_cc_c89" in
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5143 $as_echo "none needed" >&6; } ;;
5144 xno)
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5146 $as_echo "unsupported" >&6; } ;;
5148 CC="$CC $ac_cv_prog_cc_c89"
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5150 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5151 esac
5152 if test "x$ac_cv_prog_cc_c89" != xno; then :
5156 ac_ext=c
5157 ac_cpp='$CPP $CPPFLAGS'
5158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5162 ac_ext=c
5163 ac_cpp='$CPP $CPPFLAGS'
5164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5168 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5169 if ${am_cv_prog_cc_c_o+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5176 main ()
5180 return 0;
5182 _ACEOF
5183 # Make sure it works both with $CC and with simple cc.
5184 # Following AC_PROG_CC_C_O, we do the test twice because some
5185 # compilers refuse to overwrite an existing .o file with -o,
5186 # though they will create one.
5187 am_cv_prog_cc_c_o=yes
5188 for am_i in 1 2; do
5189 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5190 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } \
5194 && test -f conftest2.$ac_objext; then
5195 : OK
5196 else
5197 am_cv_prog_cc_c_o=no
5198 break
5200 done
5201 rm -f core conftest*
5202 unset am_i
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5205 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5206 if test "$am_cv_prog_cc_c_o" != yes; then
5207 # Losing compiler, so override with the script.
5208 # FIXME: It is wrong to rewrite CC.
5209 # But if we don't then we get into trouble of one sort or another.
5210 # A longer-term fix would be to have automake use am__CC in this case,
5211 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5212 CC="$am_aux_dir/compile $CC"
5214 ac_ext=c
5215 ac_cpp='$CPP $CPPFLAGS'
5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5221 if test -n "$ac_tool_prefix"; then
5222 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5223 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if ${ac_cv_prog_RANLIB+:} false; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 if test -n "$RANLIB"; then
5230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5243 done
5244 done
5245 IFS=$as_save_IFS
5249 RANLIB=$ac_cv_prog_RANLIB
5250 if test -n "$RANLIB"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5252 $as_echo "$RANLIB" >&6; }
5253 else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 $as_echo "no" >&6; }
5260 if test -z "$ac_cv_prog_RANLIB"; then
5261 ac_ct_RANLIB=$RANLIB
5262 # Extract the first word of "ranlib", so it can be a program name with args.
5263 set dummy ranlib; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test -n "$ac_ct_RANLIB"; then
5270 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279 ac_cv_prog_ac_ct_RANLIB="ranlib"
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5283 done
5284 done
5285 IFS=$as_save_IFS
5289 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5290 if test -n "$ac_ct_RANLIB"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5292 $as_echo "$ac_ct_RANLIB" >&6; }
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5298 if test "x$ac_ct_RANLIB" = x; then
5299 RANLIB=":"
5300 else
5301 case $cross_compiling:$ac_tool_warned in
5302 yes:)
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305 ac_tool_warned=yes ;;
5306 esac
5307 RANLIB=$ac_ct_RANLIB
5309 else
5310 RANLIB="$ac_cv_prog_RANLIB"
5313 if test -n "$ac_tool_prefix"; then
5314 for ac_prog in ar lib "link -lib"
5316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_prog_AR+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$AR"; then
5324 ac_cv_prog_AR="$AR" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5339 IFS=$as_save_IFS
5343 AR=$ac_cv_prog_AR
5344 if test -n "$AR"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5346 $as_echo "$AR" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5353 test -n "$AR" && break
5354 done
5356 if test -z "$AR"; then
5357 ac_ct_AR=$AR
5358 for ac_prog in ar lib "link -lib"
5360 # Extract the first word of "$ac_prog", so it can be a program name with args.
5361 set dummy $ac_prog; ac_word=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$ac_ct_AR"; then
5368 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_ac_ct_AR="$ac_prog"
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5381 done
5382 done
5383 IFS=$as_save_IFS
5387 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5388 if test -n "$ac_ct_AR"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5390 $as_echo "$ac_ct_AR" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5397 test -n "$ac_ct_AR" && break
5398 done
5400 if test "x$ac_ct_AR" = x; then
5401 AR="false"
5402 else
5403 case $cross_compiling:$ac_tool_warned in
5404 yes:)
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407 ac_tool_warned=yes ;;
5408 esac
5409 AR=$ac_ct_AR
5413 : ${AR=ar}
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5416 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5417 if ${am_cv_ar_interface+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 ac_ext=c
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 am_cv_ar_interface=ar
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 int some_variable = 0;
5430 _ACEOF
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5434 (eval $am_ar_try) 2>&5
5435 ac_status=$?
5436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5437 test $ac_status = 0; }
5438 if test "$ac_status" -eq 0; then
5439 am_cv_ar_interface=ar
5440 else
5441 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5443 (eval $am_ar_try) 2>&5
5444 ac_status=$?
5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5446 test $ac_status = 0; }
5447 if test "$ac_status" -eq 0; then
5448 am_cv_ar_interface=lib
5449 else
5450 am_cv_ar_interface=unknown
5453 rm -f conftest.lib libconftest.a
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 ac_ext=c
5458 ac_cpp='$CPP $CPPFLAGS'
5459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5465 $as_echo "$am_cv_ar_interface" >&6; }
5467 case $am_cv_ar_interface in
5470 lib)
5471 # Microsoft lib, so override with the ar-lib wrapper script.
5472 # FIXME: It is wrong to rewrite AR.
5473 # But if we don't then we get into trouble of one sort or another.
5474 # A longer-term fix would be to have automake use am__AR in this case,
5475 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5476 # similar.
5477 AR="$am_aux_dir/ar-lib $AR"
5479 unknown)
5480 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5482 esac
5485 MKINSTALLDIRS=
5486 if test -n "$ac_aux_dir"; then
5487 case "$ac_aux_dir" in
5488 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5489 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5490 esac
5492 if test -z "$MKINSTALLDIRS"; then
5493 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5499 $as_echo_n "checking whether NLS is requested... " >&6; }
5500 # Check whether --enable-nls was given.
5501 if test "${enable_nls+set}" = set; then :
5502 enableval=$enable_nls; USE_NLS=$enableval
5503 else
5504 USE_NLS=yes
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5508 $as_echo "$USE_NLS" >&6; }
5515 # Prepare PATH_SEPARATOR.
5516 # The user is always right.
5517 if test "${PATH_SEPARATOR+set}" != set; then
5518 echo "#! /bin/sh" >conf$$.sh
5519 echo "exit 0" >>conf$$.sh
5520 chmod +x conf$$.sh
5521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5522 PATH_SEPARATOR=';'
5523 else
5524 PATH_SEPARATOR=:
5526 rm -f conf$$.sh
5529 # Find out how to test for executable files. Don't use a zero-byte file,
5530 # as systems may use methods other than mode bits to determine executability.
5531 cat >conf$$.file <<_ASEOF
5532 #! /bin/sh
5533 exit 0
5534 _ASEOF
5535 chmod +x conf$$.file
5536 if test -x conf$$.file >/dev/null 2>&1; then
5537 ac_executable_p="test -x"
5538 else
5539 ac_executable_p="test -f"
5541 rm -f conf$$.file
5543 # Extract the first word of "msgfmt", so it can be a program name with args.
5544 set dummy msgfmt; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_path_MSGFMT+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 case "$MSGFMT" in
5551 [\\/]* | ?:[\\/]*)
5552 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5555 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5556 for ac_dir in $PATH; do
5557 IFS="$ac_save_IFS"
5558 test -z "$ac_dir" && ac_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5561 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5562 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5563 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5564 break 2
5567 done
5568 done
5569 IFS="$ac_save_IFS"
5570 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5572 esac
5574 MSGFMT="$ac_cv_path_MSGFMT"
5575 if test "$MSGFMT" != ":"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5577 $as_echo "$MSGFMT" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5583 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5584 set dummy gmsgfmt; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_path_GMSGFMT+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 case $GMSGFMT in
5591 [\\/]* | ?:[\\/]*)
5592 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5606 done
5607 done
5608 IFS=$as_save_IFS
5610 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5612 esac
5614 GMSGFMT=$ac_cv_path_GMSGFMT
5615 if test -n "$GMSGFMT"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5617 $as_echo "$GMSGFMT" >&6; }
5618 else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5626 # Prepare PATH_SEPARATOR.
5627 # The user is always right.
5628 if test "${PATH_SEPARATOR+set}" != set; then
5629 echo "#! /bin/sh" >conf$$.sh
5630 echo "exit 0" >>conf$$.sh
5631 chmod +x conf$$.sh
5632 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5633 PATH_SEPARATOR=';'
5634 else
5635 PATH_SEPARATOR=:
5637 rm -f conf$$.sh
5640 # Find out how to test for executable files. Don't use a zero-byte file,
5641 # as systems may use methods other than mode bits to determine executability.
5642 cat >conf$$.file <<_ASEOF
5643 #! /bin/sh
5644 exit 0
5645 _ASEOF
5646 chmod +x conf$$.file
5647 if test -x conf$$.file >/dev/null 2>&1; then
5648 ac_executable_p="test -x"
5649 else
5650 ac_executable_p="test -f"
5652 rm -f conf$$.file
5654 # Extract the first word of "xgettext", so it can be a program name with args.
5655 set dummy xgettext; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_path_XGETTEXT+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 case "$XGETTEXT" in
5662 [\\/]* | ?:[\\/]*)
5663 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5666 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5667 for ac_dir in $PATH; do
5668 IFS="$ac_save_IFS"
5669 test -z "$ac_dir" && ac_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5672 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5673 (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
5674 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5675 break 2
5678 done
5679 done
5680 IFS="$ac_save_IFS"
5681 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5683 esac
5685 XGETTEXT="$ac_cv_path_XGETTEXT"
5686 if test "$XGETTEXT" != ":"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5688 $as_echo "$XGETTEXT" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5694 rm -f messages.po
5697 # Prepare PATH_SEPARATOR.
5698 # The user is always right.
5699 if test "${PATH_SEPARATOR+set}" != set; then
5700 echo "#! /bin/sh" >conf$$.sh
5701 echo "exit 0" >>conf$$.sh
5702 chmod +x conf$$.sh
5703 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5704 PATH_SEPARATOR=';'
5705 else
5706 PATH_SEPARATOR=:
5708 rm -f conf$$.sh
5711 # Find out how to test for executable files. Don't use a zero-byte file,
5712 # as systems may use methods other than mode bits to determine executability.
5713 cat >conf$$.file <<_ASEOF
5714 #! /bin/sh
5715 exit 0
5716 _ASEOF
5717 chmod +x conf$$.file
5718 if test -x conf$$.file >/dev/null 2>&1; then
5719 ac_executable_p="test -x"
5720 else
5721 ac_executable_p="test -f"
5723 rm -f conf$$.file
5725 # Extract the first word of "msgmerge", so it can be a program name with args.
5726 set dummy msgmerge; ac_word=$2
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if ${ac_cv_path_MSGMERGE+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 case "$MSGMERGE" in
5733 [\\/]* | ?:[\\/]*)
5734 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5737 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5738 for ac_dir in $PATH; do
5739 IFS="$ac_save_IFS"
5740 test -z "$ac_dir" && ac_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5743 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5744 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5745 break 2
5748 done
5749 done
5750 IFS="$ac_save_IFS"
5751 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5753 esac
5755 MSGMERGE="$ac_cv_path_MSGMERGE"
5756 if test "$MSGMERGE" != ":"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5758 $as_echo "$MSGMERGE" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5765 if test "$GMSGFMT" != ":"; then
5766 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5767 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5769 else
5770 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5772 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5773 GMSGFMT=":"
5777 if test "$XGETTEXT" != ":"; then
5778 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5779 (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
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5783 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5784 XGETTEXT=":"
5786 rm -f messages.po
5789 ac_config_commands="$ac_config_commands default-1"
5793 if test "X$prefix" = "XNONE"; then
5794 acl_final_prefix="$ac_default_prefix"
5795 else
5796 acl_final_prefix="$prefix"
5798 if test "X$exec_prefix" = "XNONE"; then
5799 acl_final_exec_prefix='${prefix}'
5800 else
5801 acl_final_exec_prefix="$exec_prefix"
5803 acl_save_prefix="$prefix"
5804 prefix="$acl_final_prefix"
5805 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5806 prefix="$acl_save_prefix"
5809 # Check whether --with-gnu-ld was given.
5810 if test "${with_gnu_ld+set}" = set; then :
5811 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5812 else
5813 with_gnu_ld=no
5816 # Prepare PATH_SEPARATOR.
5817 # The user is always right.
5818 if test "${PATH_SEPARATOR+set}" != set; then
5819 echo "#! /bin/sh" >conf$$.sh
5820 echo "exit 0" >>conf$$.sh
5821 chmod +x conf$$.sh
5822 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5823 PATH_SEPARATOR=';'
5824 else
5825 PATH_SEPARATOR=:
5827 rm -f conf$$.sh
5829 ac_prog=ld
5830 if test "$GCC" = yes; then
5831 # Check if gcc -print-prog-name=ld gives a path.
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5833 $as_echo_n "checking for ld used by GCC... " >&6; }
5834 case $host in
5835 *-*-mingw*)
5836 # gcc leaves a trailing carriage return which upsets mingw
5837 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5839 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5840 esac
5841 case $ac_prog in
5842 # Accept absolute paths.
5843 [\\/]* | [A-Za-z]:[\\/]*)
5844 re_direlt='/[^/][^/]*/\.\./'
5845 # Canonicalize the path of ld
5846 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5847 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5848 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5849 done
5850 test -z "$LD" && LD="$ac_prog"
5853 # If it fails, then pretend we aren't using GCC.
5854 ac_prog=ld
5857 # If it is relative, then search for the first ld in PATH.
5858 with_gnu_ld=unknown
5860 esac
5861 elif test "$with_gnu_ld" = yes; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5863 $as_echo_n "checking for GNU ld... " >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5866 $as_echo_n "checking for non-GNU ld... " >&6; }
5868 if ${acl_cv_path_LD+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 if test -z "$LD"; then
5872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5873 for ac_dir in $PATH; do
5874 test -z "$ac_dir" && ac_dir=.
5875 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5876 acl_cv_path_LD="$ac_dir/$ac_prog"
5877 # Check to see if the program is GNU ld. I'd rather use --version,
5878 # but apparently some GNU ld's only accept -v.
5879 # Break only if it was the GNU/non-GNU ld that we prefer.
5880 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
5881 test "$with_gnu_ld" != no && break
5882 else
5883 test "$with_gnu_ld" != yes && break
5886 done
5887 IFS="$ac_save_ifs"
5888 else
5889 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5893 LD="$acl_cv_path_LD"
5894 if test -n "$LD"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5896 $as_echo "$LD" >&6; }
5897 else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5901 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5904 if ${acl_cv_prog_gnu_ld+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5908 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
5909 acl_cv_prog_gnu_ld=yes
5910 else
5911 acl_cv_prog_gnu_ld=no
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5915 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5916 with_gnu_ld=$acl_cv_prog_gnu_ld
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5921 $as_echo_n "checking for shared library run path origin... " >&6; }
5922 if ${acl_cv_rpath+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5926 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5927 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5928 . ./conftest.sh
5929 rm -f ./conftest.sh
5930 acl_cv_rpath=done
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5934 $as_echo "$acl_cv_rpath" >&6; }
5935 wl="$acl_cv_wl"
5936 libext="$acl_cv_libext"
5937 shlibext="$acl_cv_shlibext"
5938 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5939 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5940 hardcode_direct="$acl_cv_hardcode_direct"
5941 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5942 # Check whether --enable-rpath was given.
5943 if test "${enable_rpath+set}" = set; then :
5944 enableval=$enable_rpath; :
5945 else
5946 enable_rpath=yes
5956 use_additional=yes
5958 acl_save_prefix="$prefix"
5959 prefix="$acl_final_prefix"
5960 acl_save_exec_prefix="$exec_prefix"
5961 exec_prefix="$acl_final_exec_prefix"
5963 eval additional_includedir=\"$includedir\"
5964 eval additional_libdir=\"$libdir\"
5966 exec_prefix="$acl_save_exec_prefix"
5967 prefix="$acl_save_prefix"
5970 # Check whether --with-libiconv-prefix was given.
5971 if test "${with_libiconv_prefix+set}" = set; then :
5972 withval=$with_libiconv_prefix;
5973 if test "X$withval" = "Xno"; then
5974 use_additional=no
5975 else
5976 if test "X$withval" = "X"; then
5978 acl_save_prefix="$prefix"
5979 prefix="$acl_final_prefix"
5980 acl_save_exec_prefix="$exec_prefix"
5981 exec_prefix="$acl_final_exec_prefix"
5983 eval additional_includedir=\"$includedir\"
5984 eval additional_libdir=\"$libdir\"
5986 exec_prefix="$acl_save_exec_prefix"
5987 prefix="$acl_save_prefix"
5989 else
5990 additional_includedir="$withval/include"
5991 additional_libdir="$withval/lib"
5998 # Check whether --with-libiconv-type was given.
5999 if test "${with_libiconv_type+set}" = set; then :
6000 withval=$with_libiconv_type; with_libiconv_type=$withval
6001 else
6002 with_libiconv_type=auto
6005 lib_type=`eval echo \$with_libiconv_type`
6007 LIBICONV=
6008 LTLIBICONV=
6009 INCICONV=
6010 rpathdirs=
6011 ltrpathdirs=
6012 names_already_handled=
6013 names_next_round='iconv '
6014 while test -n "$names_next_round"; do
6015 names_this_round="$names_next_round"
6016 names_next_round=
6017 for name in $names_this_round; do
6018 already_handled=
6019 for n in $names_already_handled; do
6020 if test "$n" = "$name"; then
6021 already_handled=yes
6022 break
6024 done
6025 if test -z "$already_handled"; then
6026 names_already_handled="$names_already_handled $name"
6027 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6028 eval value=\"\$HAVE_LIB$uppername\"
6029 if test -n "$value"; then
6030 if test "$value" = yes; then
6031 eval value=\"\$LIB$uppername\"
6032 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6033 eval value=\"\$LTLIB$uppername\"
6034 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6035 else
6038 else
6039 found_dir=
6040 found_la=
6041 found_so=
6042 found_a=
6043 if test $use_additional = yes; then
6044 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6045 found_dir="$additional_libdir"
6046 found_so="$additional_libdir/lib$name.$shlibext"
6047 if test -f "$additional_libdir/lib$name.la"; then
6048 found_la="$additional_libdir/lib$name.la"
6050 elif test x$lib_type != xshared; then
6051 if test -f "$additional_libdir/lib$name.$libext"; then
6052 found_dir="$additional_libdir"
6053 found_a="$additional_libdir/lib$name.$libext"
6054 if test -f "$additional_libdir/lib$name.la"; then
6055 found_la="$additional_libdir/lib$name.la"
6060 if test "X$found_dir" = "X"; then
6061 for x in $LDFLAGS $LTLIBICONV; do
6063 acl_save_prefix="$prefix"
6064 prefix="$acl_final_prefix"
6065 acl_save_exec_prefix="$exec_prefix"
6066 exec_prefix="$acl_final_exec_prefix"
6067 eval x=\"$x\"
6068 exec_prefix="$acl_save_exec_prefix"
6069 prefix="$acl_save_prefix"
6071 case "$x" in
6072 -L*)
6073 dir=`echo "X$x" | sed -e 's/^X-L//'`
6074 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6075 found_dir="$dir"
6076 found_so="$dir/lib$name.$shlibext"
6077 if test -f "$dir/lib$name.la"; then
6078 found_la="$dir/lib$name.la"
6080 elif test x$lib_type != xshared; then
6081 if test -f "$dir/lib$name.$libext"; then
6082 found_dir="$dir"
6083 found_a="$dir/lib$name.$libext"
6084 if test -f "$dir/lib$name.la"; then
6085 found_la="$dir/lib$name.la"
6090 esac
6091 if test "X$found_dir" != "X"; then
6092 break
6094 done
6096 if test "X$found_dir" != "X"; then
6097 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6098 if test "X$found_so" != "X"; then
6099 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6100 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6101 else
6102 haveit=
6103 for x in $ltrpathdirs; do
6104 if test "X$x" = "X$found_dir"; then
6105 haveit=yes
6106 break
6108 done
6109 if test -z "$haveit"; then
6110 ltrpathdirs="$ltrpathdirs $found_dir"
6112 if test "$hardcode_direct" = yes; then
6113 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6114 else
6115 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6116 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6117 haveit=
6118 for x in $rpathdirs; do
6119 if test "X$x" = "X$found_dir"; then
6120 haveit=yes
6121 break
6123 done
6124 if test -z "$haveit"; then
6125 rpathdirs="$rpathdirs $found_dir"
6127 else
6128 haveit=
6129 for x in $LDFLAGS $LIBICONV; do
6131 acl_save_prefix="$prefix"
6132 prefix="$acl_final_prefix"
6133 acl_save_exec_prefix="$exec_prefix"
6134 exec_prefix="$acl_final_exec_prefix"
6135 eval x=\"$x\"
6136 exec_prefix="$acl_save_exec_prefix"
6137 prefix="$acl_save_prefix"
6139 if test "X$x" = "X-L$found_dir"; then
6140 haveit=yes
6141 break
6143 done
6144 if test -z "$haveit"; then
6145 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6147 if test "$hardcode_minus_L" != no; then
6148 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6149 else
6150 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6155 else
6156 if test "X$found_a" != "X"; then
6157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6158 else
6159 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6162 additional_includedir=
6163 case "$found_dir" in
6164 */lib | */lib/)
6165 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6166 additional_includedir="$basedir/include"
6168 esac
6169 if test "X$additional_includedir" != "X"; then
6170 if test "X$additional_includedir" != "X/usr/include"; then
6171 haveit=
6172 if test "X$additional_includedir" = "X/usr/local/include"; then
6173 if test -n "$GCC"; then
6174 case $host_os in
6175 linux*) haveit=yes;;
6176 esac
6179 if test -z "$haveit"; then
6180 for x in $CPPFLAGS $INCICONV; do
6182 acl_save_prefix="$prefix"
6183 prefix="$acl_final_prefix"
6184 acl_save_exec_prefix="$exec_prefix"
6185 exec_prefix="$acl_final_exec_prefix"
6186 eval x=\"$x\"
6187 exec_prefix="$acl_save_exec_prefix"
6188 prefix="$acl_save_prefix"
6190 if test "X$x" = "X-I$additional_includedir"; then
6191 haveit=yes
6192 break
6194 done
6195 if test -z "$haveit"; then
6196 if test -d "$additional_includedir"; then
6197 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6203 if test -n "$found_la"; then
6204 save_libdir="$libdir"
6205 case "$found_la" in
6206 */* | *\\*) . "$found_la" ;;
6207 *) . "./$found_la" ;;
6208 esac
6209 libdir="$save_libdir"
6210 for dep in $dependency_libs; do
6211 case "$dep" in
6212 -L*)
6213 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6214 if test "X$additional_libdir" != "X/usr/lib"; then
6215 haveit=
6216 if test "X$additional_libdir" = "X/usr/local/lib"; then
6217 if test -n "$GCC"; then
6218 case $host_os in
6219 linux*) haveit=yes;;
6220 esac
6223 if test -z "$haveit"; then
6224 haveit=
6225 for x in $LDFLAGS $LIBICONV; do
6227 acl_save_prefix="$prefix"
6228 prefix="$acl_final_prefix"
6229 acl_save_exec_prefix="$exec_prefix"
6230 exec_prefix="$acl_final_exec_prefix"
6231 eval x=\"$x\"
6232 exec_prefix="$acl_save_exec_prefix"
6233 prefix="$acl_save_prefix"
6235 if test "X$x" = "X-L$additional_libdir"; then
6236 haveit=yes
6237 break
6239 done
6240 if test -z "$haveit"; then
6241 if test -d "$additional_libdir"; then
6242 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6245 haveit=
6246 for x in $LDFLAGS $LTLIBICONV; do
6248 acl_save_prefix="$prefix"
6249 prefix="$acl_final_prefix"
6250 acl_save_exec_prefix="$exec_prefix"
6251 exec_prefix="$acl_final_exec_prefix"
6252 eval x=\"$x\"
6253 exec_prefix="$acl_save_exec_prefix"
6254 prefix="$acl_save_prefix"
6256 if test "X$x" = "X-L$additional_libdir"; then
6257 haveit=yes
6258 break
6260 done
6261 if test -z "$haveit"; then
6262 if test -d "$additional_libdir"; then
6263 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6269 -R*)
6270 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6271 if test "$enable_rpath" != no; then
6272 haveit=
6273 for x in $rpathdirs; do
6274 if test "X$x" = "X$dir"; then
6275 haveit=yes
6276 break
6278 done
6279 if test -z "$haveit"; then
6280 rpathdirs="$rpathdirs $dir"
6282 haveit=
6283 for x in $ltrpathdirs; do
6284 if test "X$x" = "X$dir"; then
6285 haveit=yes
6286 break
6288 done
6289 if test -z "$haveit"; then
6290 ltrpathdirs="$ltrpathdirs $dir"
6294 -l*)
6295 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6297 *.la)
6298 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6301 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6302 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6304 esac
6305 done
6307 else
6308 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
6309 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6310 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6311 else
6312 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
6313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
6318 done
6319 done
6320 if test "X$rpathdirs" != "X"; then
6321 if test -n "$hardcode_libdir_separator"; then
6322 alldirs=
6323 for found_dir in $rpathdirs; do
6324 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6325 done
6326 acl_save_libdir="$libdir"
6327 libdir="$alldirs"
6328 eval flag=\"$hardcode_libdir_flag_spec\"
6329 libdir="$acl_save_libdir"
6330 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6331 else
6332 for found_dir in $rpathdirs; do
6333 acl_save_libdir="$libdir"
6334 libdir="$found_dir"
6335 eval flag=\"$hardcode_libdir_flag_spec\"
6336 libdir="$acl_save_libdir"
6337 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6338 done
6341 if test "X$ltrpathdirs" != "X"; then
6342 for found_dir in $ltrpathdirs; do
6343 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6344 done
6351 if test -f ../gettext/uninstalled-config.sh; then
6352 relative_builddir='$(top_builddir)/../gettext'
6353 . ../gettext/uninstalled-config.sh
6354 else
6355 # The sister gettext directory doesn't exist and won't collect information on
6356 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6381 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6382 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 gt_save_LIBS="$LIBS"
6386 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 #include <CoreFoundation/CFPreferences.h>
6391 main ()
6393 CFPreferencesCopyAppValue(NULL, NULL)
6395 return 0;
6397 _ACEOF
6398 if ac_fn_c_try_link "$LINENO"; then :
6399 gt_cv_func_CFPreferencesCopyAppValue=yes
6400 else
6401 gt_cv_func_CFPreferencesCopyAppValue=no
6403 rm -f core conftest.err conftest.$ac_objext \
6404 conftest$ac_exeext conftest.$ac_ext
6405 LIBS="$gt_save_LIBS"
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6408 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6409 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6411 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
6415 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
6416 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 gt_save_LIBS="$LIBS"
6420 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #include <CoreFoundation/CFLocale.h>
6425 main ()
6427 CFLocaleCopyPreferredLanguages();
6429 return 0;
6431 _ACEOF
6432 if ac_fn_c_try_link "$LINENO"; then :
6433 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
6434 else
6435 gt_cv_func_CFLocaleCopyPreferredLanguages=no
6437 rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
6439 LIBS="$gt_save_LIBS"
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
6442 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
6443 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6445 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
6448 INTL_MACOSX_LIBS=
6449 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
6450 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6451 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
6459 LIBINTL=
6460 LTLIBINTL=
6461 POSUB=
6463 case " $gt_needs " in
6464 *" need-formatstring-macros "*) gt_api_version=3 ;;
6465 *" need-ngettext "*) gt_api_version=2 ;;
6466 *) gt_api_version=1 ;;
6467 esac
6468 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6469 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6471 if test "$USE_NLS" = "yes"; then
6472 gt_use_preinstalled_gnugettext=no
6475 if test $gt_api_version -ge 3; then
6476 gt_revision_test_code='
6477 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6478 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6479 #endif
6480 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6482 else
6483 gt_revision_test_code=
6485 if test $gt_api_version -ge 2; then
6486 gt_expression_test_code=' + * ngettext ("", "", 0)'
6487 else
6488 gt_expression_test_code=
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6492 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6493 if eval \${$gt_func_gnugettext_libc+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6499 #include <libintl.h>
6500 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6501 extern int _nl_msg_cat_cntr;
6502 extern int *_nl_domain_bindings;
6503 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
6504 #else
6505 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6506 #endif
6507 $gt_revision_test_code
6510 main ()
6513 bindtextdomain ("", "");
6514 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
6517 return 0;
6519 _ACEOF
6520 if ac_fn_c_try_link "$LINENO"; then :
6521 eval "$gt_func_gnugettext_libc=yes"
6522 else
6523 eval "$gt_func_gnugettext_libc=no"
6525 rm -f core conftest.err conftest.$ac_objext \
6526 conftest$ac_exeext conftest.$ac_ext
6528 eval ac_res=\$$gt_func_gnugettext_libc
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6530 $as_echo "$ac_res" >&6; }
6532 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6538 am_save_CPPFLAGS="$CPPFLAGS"
6540 for element in $INCICONV; do
6541 haveit=
6542 for x in $CPPFLAGS; do
6544 acl_save_prefix="$prefix"
6545 prefix="$acl_final_prefix"
6546 acl_save_exec_prefix="$exec_prefix"
6547 exec_prefix="$acl_final_exec_prefix"
6548 eval x=\"$x\"
6549 exec_prefix="$acl_save_exec_prefix"
6550 prefix="$acl_save_prefix"
6552 if test "X$x" = "X$element"; then
6553 haveit=yes
6554 break
6556 done
6557 if test -z "$haveit"; then
6558 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6560 done
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6564 $as_echo_n "checking for iconv... " >&6; }
6565 if ${am_cv_func_iconv+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6569 am_cv_func_iconv="no, consider installing GNU libiconv"
6570 am_cv_lib_iconv=no
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6574 #include <stdlib.h>
6575 #include <iconv.h>
6578 main ()
6580 iconv_t cd = iconv_open("","");
6581 iconv(cd,NULL,NULL,NULL,NULL);
6582 iconv_close(cd);
6584 return 0;
6586 _ACEOF
6587 if ac_fn_c_try_link "$LINENO"; then :
6588 am_cv_func_iconv=yes
6590 rm -f core conftest.err conftest.$ac_objext \
6591 conftest$ac_exeext conftest.$ac_ext
6592 if test "$am_cv_func_iconv" != yes; then
6593 am_save_LIBS="$LIBS"
6594 LIBS="$LIBS $LIBICONV"
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6598 #include <stdlib.h>
6599 #include <iconv.h>
6602 main ()
6604 iconv_t cd = iconv_open("","");
6605 iconv(cd,NULL,NULL,NULL,NULL);
6606 iconv_close(cd);
6608 return 0;
6610 _ACEOF
6611 if ac_fn_c_try_link "$LINENO"; then :
6612 am_cv_lib_iconv=yes
6613 am_cv_func_iconv=yes
6615 rm -f core conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6617 LIBS="$am_save_LIBS"
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6622 $as_echo "$am_cv_func_iconv" >&6; }
6623 if test "$am_cv_func_iconv" = yes; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6625 $as_echo_n "checking for working iconv... " >&6; }
6626 if ${am_cv_func_iconv_works+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6630 am_save_LIBS="$LIBS"
6631 if test $am_cv_lib_iconv = yes; then
6632 LIBS="$LIBS $LIBICONV"
6634 am_cv_func_iconv_works=no
6635 for ac_iconv_const in '' 'const'; do
6636 if test "$cross_compiling" = yes; then :
6637 case "$host_os" in
6638 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6639 *) am_cv_func_iconv_works="guessing yes" ;;
6640 esac
6641 else
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6645 #include <iconv.h>
6646 #include <string.h>
6648 #ifndef ICONV_CONST
6649 # define ICONV_CONST $ac_iconv_const
6650 #endif
6653 main ()
6655 int result = 0;
6656 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
6657 successful returns. This is even documented in
6658 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
6660 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6661 if (cd_utf8_to_88591 != (iconv_t)(-1))
6663 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
6664 char buf[10];
6665 ICONV_CONST char *inptr = input;
6666 size_t inbytesleft = strlen (input);
6667 char *outptr = buf;
6668 size_t outbytesleft = sizeof (buf);
6669 size_t res = iconv (cd_utf8_to_88591,
6670 &inptr, &inbytesleft,
6671 &outptr, &outbytesleft);
6672 if (res == 0)
6673 result |= 1;
6674 iconv_close (cd_utf8_to_88591);
6677 /* Test against Solaris 10 bug: Failures are not distinguishable from
6678 successful returns. */
6680 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6681 if (cd_ascii_to_88591 != (iconv_t)(-1))
6683 static ICONV_CONST char input[] = "\263";
6684 char buf[10];
6685 ICONV_CONST char *inptr = input;
6686 size_t inbytesleft = strlen (input);
6687 char *outptr = buf;
6688 size_t outbytesleft = sizeof (buf);
6689 size_t res = iconv (cd_ascii_to_88591,
6690 &inptr, &inbytesleft,
6691 &outptr, &outbytesleft);
6692 if (res == 0)
6693 result |= 2;
6694 iconv_close (cd_ascii_to_88591);
6697 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
6699 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6700 if (cd_88591_to_utf8 != (iconv_t)(-1))
6702 static ICONV_CONST char input[] = "\304";
6703 static char buf[2] = { (char)0xDE, (char)0xAD };
6704 ICONV_CONST char *inptr = input;
6705 size_t inbytesleft = 1;
6706 char *outptr = buf;
6707 size_t outbytesleft = 1;
6708 size_t res = iconv (cd_88591_to_utf8,
6709 &inptr, &inbytesleft,
6710 &outptr, &outbytesleft);
6711 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6712 result |= 4;
6713 iconv_close (cd_88591_to_utf8);
6716 #if 0 /* This bug could be worked around by the caller. */
6717 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6719 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6720 if (cd_88591_to_utf8 != (iconv_t)(-1))
6722 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6723 char buf[50];
6724 ICONV_CONST char *inptr = input;
6725 size_t inbytesleft = strlen (input);
6726 char *outptr = buf;
6727 size_t outbytesleft = sizeof (buf);
6728 size_t res = iconv (cd_88591_to_utf8,
6729 &inptr, &inbytesleft,
6730 &outptr, &outbytesleft);
6731 if ((int)res > 0)
6732 result |= 8;
6733 iconv_close (cd_88591_to_utf8);
6736 #endif
6737 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6738 provided. */
6740 /* Try standardized names. */
6741 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
6742 /* Try IRIX, OSF/1 names. */
6743 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
6744 /* Try AIX names. */
6745 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
6746 /* Try HP-UX names. */
6747 iconv_t cd4 = iconv_open ("utf8", "eucJP");
6748 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
6749 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
6750 result |= 16;
6751 if (cd1 != (iconv_t)(-1))
6752 iconv_close (cd1);
6753 if (cd2 != (iconv_t)(-1))
6754 iconv_close (cd2);
6755 if (cd3 != (iconv_t)(-1))
6756 iconv_close (cd3);
6757 if (cd4 != (iconv_t)(-1))
6758 iconv_close (cd4);
6760 return result;
6763 return 0;
6765 _ACEOF
6766 if ac_fn_c_try_run "$LINENO"; then :
6767 am_cv_func_iconv_works=yes
6769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6770 conftest.$ac_objext conftest.beam conftest.$ac_ext
6773 test "$am_cv_func_iconv_works" = no || break
6774 done
6775 LIBS="$am_save_LIBS"
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6779 $as_echo "$am_cv_func_iconv_works" >&6; }
6780 case "$am_cv_func_iconv_works" in
6781 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6782 *) am_func_iconv=yes ;;
6783 esac
6784 else
6785 am_func_iconv=no am_cv_lib_iconv=no
6787 if test "$am_func_iconv" = yes; then
6789 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6792 if test "$am_cv_lib_iconv" = yes; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6794 $as_echo_n "checking how to link with libiconv... " >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6796 $as_echo "$LIBICONV" >&6; }
6797 else
6798 CPPFLAGS="$am_save_CPPFLAGS"
6799 LIBICONV=
6800 LTLIBICONV=
6808 use_additional=yes
6810 acl_save_prefix="$prefix"
6811 prefix="$acl_final_prefix"
6812 acl_save_exec_prefix="$exec_prefix"
6813 exec_prefix="$acl_final_exec_prefix"
6815 eval additional_includedir=\"$includedir\"
6816 eval additional_libdir=\"$libdir\"
6818 exec_prefix="$acl_save_exec_prefix"
6819 prefix="$acl_save_prefix"
6822 # Check whether --with-libintl-prefix was given.
6823 if test "${with_libintl_prefix+set}" = set; then :
6824 withval=$with_libintl_prefix;
6825 if test "X$withval" = "Xno"; then
6826 use_additional=no
6827 else
6828 if test "X$withval" = "X"; then
6830 acl_save_prefix="$prefix"
6831 prefix="$acl_final_prefix"
6832 acl_save_exec_prefix="$exec_prefix"
6833 exec_prefix="$acl_final_exec_prefix"
6835 eval additional_includedir=\"$includedir\"
6836 eval additional_libdir=\"$libdir\"
6838 exec_prefix="$acl_save_exec_prefix"
6839 prefix="$acl_save_prefix"
6841 else
6842 additional_includedir="$withval/include"
6843 additional_libdir="$withval/lib"
6850 # Check whether --with-libintl-type was given.
6851 if test "${with_libintl_type+set}" = set; then :
6852 withval=$with_libintl_type; with_libintl_type=$withval
6853 else
6854 with_libintl_type=auto
6857 lib_type=`eval echo \$with_libintl_type`
6859 LIBINTL=
6860 LTLIBINTL=
6861 INCINTL=
6862 rpathdirs=
6863 ltrpathdirs=
6864 names_already_handled=
6865 names_next_round='intl '
6866 while test -n "$names_next_round"; do
6867 names_this_round="$names_next_round"
6868 names_next_round=
6869 for name in $names_this_round; do
6870 already_handled=
6871 for n in $names_already_handled; do
6872 if test "$n" = "$name"; then
6873 already_handled=yes
6874 break
6876 done
6877 if test -z "$already_handled"; then
6878 names_already_handled="$names_already_handled $name"
6879 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6880 eval value=\"\$HAVE_LIB$uppername\"
6881 if test -n "$value"; then
6882 if test "$value" = yes; then
6883 eval value=\"\$LIB$uppername\"
6884 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6885 eval value=\"\$LTLIB$uppername\"
6886 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6887 else
6890 else
6891 found_dir=
6892 found_la=
6893 found_so=
6894 found_a=
6895 if test $use_additional = yes; then
6896 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6897 found_dir="$additional_libdir"
6898 found_so="$additional_libdir/lib$name.$shlibext"
6899 if test -f "$additional_libdir/lib$name.la"; then
6900 found_la="$additional_libdir/lib$name.la"
6902 elif test x$lib_type != xshared; then
6903 if test -f "$additional_libdir/lib$name.$libext"; then
6904 found_dir="$additional_libdir"
6905 found_a="$additional_libdir/lib$name.$libext"
6906 if test -f "$additional_libdir/lib$name.la"; then
6907 found_la="$additional_libdir/lib$name.la"
6912 if test "X$found_dir" = "X"; then
6913 for x in $LDFLAGS $LTLIBINTL; do
6915 acl_save_prefix="$prefix"
6916 prefix="$acl_final_prefix"
6917 acl_save_exec_prefix="$exec_prefix"
6918 exec_prefix="$acl_final_exec_prefix"
6919 eval x=\"$x\"
6920 exec_prefix="$acl_save_exec_prefix"
6921 prefix="$acl_save_prefix"
6923 case "$x" in
6924 -L*)
6925 dir=`echo "X$x" | sed -e 's/^X-L//'`
6926 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6927 found_dir="$dir"
6928 found_so="$dir/lib$name.$shlibext"
6929 if test -f "$dir/lib$name.la"; then
6930 found_la="$dir/lib$name.la"
6932 elif test x$lib_type != xshared; then
6933 if test -f "$dir/lib$name.$libext"; then
6934 found_dir="$dir"
6935 found_a="$dir/lib$name.$libext"
6936 if test -f "$dir/lib$name.la"; then
6937 found_la="$dir/lib$name.la"
6942 esac
6943 if test "X$found_dir" != "X"; then
6944 break
6946 done
6948 if test "X$found_dir" != "X"; then
6949 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6950 if test "X$found_so" != "X"; then
6951 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6952 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6953 else
6954 haveit=
6955 for x in $ltrpathdirs; do
6956 if test "X$x" = "X$found_dir"; then
6957 haveit=yes
6958 break
6960 done
6961 if test -z "$haveit"; then
6962 ltrpathdirs="$ltrpathdirs $found_dir"
6964 if test "$hardcode_direct" = yes; then
6965 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6966 else
6967 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6968 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6969 haveit=
6970 for x in $rpathdirs; do
6971 if test "X$x" = "X$found_dir"; then
6972 haveit=yes
6973 break
6975 done
6976 if test -z "$haveit"; then
6977 rpathdirs="$rpathdirs $found_dir"
6979 else
6980 haveit=
6981 for x in $LDFLAGS $LIBINTL; do
6983 acl_save_prefix="$prefix"
6984 prefix="$acl_final_prefix"
6985 acl_save_exec_prefix="$exec_prefix"
6986 exec_prefix="$acl_final_exec_prefix"
6987 eval x=\"$x\"
6988 exec_prefix="$acl_save_exec_prefix"
6989 prefix="$acl_save_prefix"
6991 if test "X$x" = "X-L$found_dir"; then
6992 haveit=yes
6993 break
6995 done
6996 if test -z "$haveit"; then
6997 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6999 if test "$hardcode_minus_L" != no; then
7000 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7001 else
7002 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7007 else
7008 if test "X$found_a" != "X"; then
7009 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7010 else
7011 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7014 additional_includedir=
7015 case "$found_dir" in
7016 */lib | */lib/)
7017 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7018 additional_includedir="$basedir/include"
7020 esac
7021 if test "X$additional_includedir" != "X"; then
7022 if test "X$additional_includedir" != "X/usr/include"; then
7023 haveit=
7024 if test "X$additional_includedir" = "X/usr/local/include"; then
7025 if test -n "$GCC"; then
7026 case $host_os in
7027 linux*) haveit=yes;;
7028 esac
7031 if test -z "$haveit"; then
7032 for x in $CPPFLAGS $INCINTL; do
7034 acl_save_prefix="$prefix"
7035 prefix="$acl_final_prefix"
7036 acl_save_exec_prefix="$exec_prefix"
7037 exec_prefix="$acl_final_exec_prefix"
7038 eval x=\"$x\"
7039 exec_prefix="$acl_save_exec_prefix"
7040 prefix="$acl_save_prefix"
7042 if test "X$x" = "X-I$additional_includedir"; then
7043 haveit=yes
7044 break
7046 done
7047 if test -z "$haveit"; then
7048 if test -d "$additional_includedir"; then
7049 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7055 if test -n "$found_la"; then
7056 save_libdir="$libdir"
7057 case "$found_la" in
7058 */* | *\\*) . "$found_la" ;;
7059 *) . "./$found_la" ;;
7060 esac
7061 libdir="$save_libdir"
7062 for dep in $dependency_libs; do
7063 case "$dep" in
7064 -L*)
7065 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7066 if test "X$additional_libdir" != "X/usr/lib"; then
7067 haveit=
7068 if test "X$additional_libdir" = "X/usr/local/lib"; then
7069 if test -n "$GCC"; then
7070 case $host_os in
7071 linux*) haveit=yes;;
7072 esac
7075 if test -z "$haveit"; then
7076 haveit=
7077 for x in $LDFLAGS $LIBINTL; do
7079 acl_save_prefix="$prefix"
7080 prefix="$acl_final_prefix"
7081 acl_save_exec_prefix="$exec_prefix"
7082 exec_prefix="$acl_final_exec_prefix"
7083 eval x=\"$x\"
7084 exec_prefix="$acl_save_exec_prefix"
7085 prefix="$acl_save_prefix"
7087 if test "X$x" = "X-L$additional_libdir"; then
7088 haveit=yes
7089 break
7091 done
7092 if test -z "$haveit"; then
7093 if test -d "$additional_libdir"; then
7094 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7097 haveit=
7098 for x in $LDFLAGS $LTLIBINTL; do
7100 acl_save_prefix="$prefix"
7101 prefix="$acl_final_prefix"
7102 acl_save_exec_prefix="$exec_prefix"
7103 exec_prefix="$acl_final_exec_prefix"
7104 eval x=\"$x\"
7105 exec_prefix="$acl_save_exec_prefix"
7106 prefix="$acl_save_prefix"
7108 if test "X$x" = "X-L$additional_libdir"; then
7109 haveit=yes
7110 break
7112 done
7113 if test -z "$haveit"; then
7114 if test -d "$additional_libdir"; then
7115 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7121 -R*)
7122 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7123 if test "$enable_rpath" != no; then
7124 haveit=
7125 for x in $rpathdirs; do
7126 if test "X$x" = "X$dir"; then
7127 haveit=yes
7128 break
7130 done
7131 if test -z "$haveit"; then
7132 rpathdirs="$rpathdirs $dir"
7134 haveit=
7135 for x in $ltrpathdirs; do
7136 if test "X$x" = "X$dir"; then
7137 haveit=yes
7138 break
7140 done
7141 if test -z "$haveit"; then
7142 ltrpathdirs="$ltrpathdirs $dir"
7146 -l*)
7147 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7149 *.la)
7150 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7153 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7154 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7156 esac
7157 done
7159 else
7160 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7161 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7162 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7163 else
7164 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
7165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
7170 done
7171 done
7172 if test "X$rpathdirs" != "X"; then
7173 if test -n "$hardcode_libdir_separator"; then
7174 alldirs=
7175 for found_dir in $rpathdirs; do
7176 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7177 done
7178 acl_save_libdir="$libdir"
7179 libdir="$alldirs"
7180 eval flag=\"$hardcode_libdir_flag_spec\"
7181 libdir="$acl_save_libdir"
7182 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7183 else
7184 for found_dir in $rpathdirs; do
7185 acl_save_libdir="$libdir"
7186 libdir="$found_dir"
7187 eval flag=\"$hardcode_libdir_flag_spec\"
7188 libdir="$acl_save_libdir"
7189 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7190 done
7193 if test "X$ltrpathdirs" != "X"; then
7194 for found_dir in $ltrpathdirs; do
7195 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7196 done
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7200 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7201 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 gt_save_CPPFLAGS="$CPPFLAGS"
7205 CPPFLAGS="$CPPFLAGS $INCINTL"
7206 gt_save_LIBS="$LIBS"
7207 LIBS="$LIBS $LIBINTL"
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7211 #include <libintl.h>
7212 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7213 extern int _nl_msg_cat_cntr;
7214 extern
7215 #ifdef __cplusplus
7217 #endif
7218 const char *_nl_expand_alias (const char *);
7219 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7220 #else
7221 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7222 #endif
7223 $gt_revision_test_code
7226 main ()
7229 bindtextdomain ("", "");
7230 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7233 return 0;
7235 _ACEOF
7236 if ac_fn_c_try_link "$LINENO"; then :
7237 eval "$gt_func_gnugettext_libintl=yes"
7238 else
7239 eval "$gt_func_gnugettext_libintl=no"
7241 rm -f core conftest.err conftest.$ac_objext \
7242 conftest$ac_exeext conftest.$ac_ext
7243 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7244 LIBS="$LIBS $LIBICONV"
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7248 #include <libintl.h>
7249 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7250 extern int _nl_msg_cat_cntr;
7251 extern
7252 #ifdef __cplusplus
7254 #endif
7255 const char *_nl_expand_alias (const char *);
7256 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7257 #else
7258 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7259 #endif
7260 $gt_revision_test_code
7263 main ()
7266 bindtextdomain ("", "");
7267 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7270 return 0;
7272 _ACEOF
7273 if ac_fn_c_try_link "$LINENO"; then :
7274 LIBINTL="$LIBINTL $LIBICONV"
7275 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7276 eval "$gt_func_gnugettext_libintl=yes"
7279 rm -f core conftest.err conftest.$ac_objext \
7280 conftest$ac_exeext conftest.$ac_ext
7282 CPPFLAGS="$gt_save_CPPFLAGS"
7283 LIBS="$gt_save_LIBS"
7285 eval ac_res=\$$gt_func_gnugettext_libintl
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7287 $as_echo "$ac_res" >&6; }
7290 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7291 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7292 && test "$PACKAGE" != gettext-runtime \
7293 && test "$PACKAGE" != gettext-tools; }; then
7294 gt_use_preinstalled_gnugettext=yes
7295 else
7296 LIBINTL=
7297 LTLIBINTL=
7298 INCINTL=
7303 if test -n "$INTL_MACOSX_LIBS"; then
7304 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7305 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7306 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7307 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7311 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7312 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7314 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7316 else
7317 USE_NLS=no
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7322 $as_echo_n "checking whether to use NLS... " >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7324 $as_echo "$USE_NLS" >&6; }
7325 if test "$USE_NLS" = "yes"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7327 $as_echo_n "checking where the gettext function comes from... " >&6; }
7328 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7329 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7330 gt_source="external libintl"
7331 else
7332 gt_source="libc"
7334 else
7335 gt_source="included intl directory"
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7338 $as_echo "$gt_source" >&6; }
7341 if test "$USE_NLS" = "yes"; then
7343 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7344 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7346 $as_echo_n "checking how to link with libintl... " >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7348 $as_echo "$LIBINTL" >&6; }
7350 for element in $INCINTL; do
7351 haveit=
7352 for x in $CPPFLAGS; do
7354 acl_save_prefix="$prefix"
7355 prefix="$acl_final_prefix"
7356 acl_save_exec_prefix="$exec_prefix"
7357 exec_prefix="$acl_final_exec_prefix"
7358 eval x=\"$x\"
7359 exec_prefix="$acl_save_exec_prefix"
7360 prefix="$acl_save_prefix"
7362 if test "X$x" = "X$element"; then
7363 haveit=yes
7364 break
7366 done
7367 if test -z "$haveit"; then
7368 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7370 done
7375 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7378 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7382 POSUB=po
7387 INTLLIBS="$LIBINTL"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7407 $as_echo_n "checking whether NLS is requested... " >&6; }
7408 if test x"$USE_NLS" != xyes; then
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 else
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7413 $as_echo "yes" >&6; }
7415 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7419 $as_echo_n "checking for catalogs to be installed... " >&6; }
7420 # Look for .po and .gmo files in the source directory.
7421 CATALOGS=
7422 XLINGUAS=
7423 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7424 # If there aren't any .gmo files the shell will give us the
7425 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7426 # weeded out.
7427 case "$cat" in *\**)
7428 continue;;
7429 esac
7430 # The quadruple backslash is collapsed to a double backslash
7431 # by the backticks, then collapsed again by the double quotes,
7432 # leaving us with one backslash in the sed expression (right
7433 # before the dot that mustn't act as a wildcard).
7434 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7435 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7436 # The user is allowed to set LINGUAS to a list of languages to
7437 # install catalogs for. If it's empty that means "all of them."
7438 if test "x$LINGUAS" = x; then
7439 CATALOGS="$CATALOGS $cat"
7440 XLINGUAS="$XLINGUAS $lang"
7441 else
7442 case "$LINGUAS" in *$lang*)
7443 CATALOGS="$CATALOGS $cat"
7444 XLINGUAS="$XLINGUAS $lang"
7446 esac
7448 done
7449 LINGUAS="$XLINGUAS"
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7451 $as_echo "$LINGUAS" >&6; }
7454 DATADIRNAME=share
7456 INSTOBJEXT=.mo
7458 GENCAT=gencat
7460 CATOBJEXT=.gmo
7464 # Check whether --enable-shared was given.
7465 if test "${enable_shared+set}" = set; then :
7466 enableval=$enable_shared; p=${PACKAGE-default}
7467 case $enableval in
7468 yes) enable_shared=yes ;;
7469 no) enable_shared=no ;;
7471 enable_shared=no
7472 # Look at the argument we got. We use all the common list separators.
7473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7474 for pkg in $enableval; do
7475 IFS="$lt_save_ifs"
7476 if test "X$pkg" = "X$p"; then
7477 enable_shared=yes
7479 done
7480 IFS="$lt_save_ifs"
7482 esac
7483 else
7484 enable_shared=no
7496 case `pwd` in
7497 *\ * | *\ *)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7499 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7500 esac
7504 macro_version='2.2.7a'
7505 macro_revision='1.3134'
7519 ltmain="$ac_aux_dir/ltmain.sh"
7521 # Backslashify metacharacters that are still active within
7522 # double-quoted strings.
7523 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7525 # Same as above, but do not quote variable references.
7526 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7528 # Sed substitution to delay expansion of an escaped shell variable in a
7529 # double_quote_subst'ed string.
7530 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7532 # Sed substitution to delay expansion of an escaped single quote.
7533 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7535 # Sed substitution to avoid accidental globbing in evaled expressions
7536 no_glob_subst='s/\*/\\\*/g'
7538 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7539 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7540 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7543 $as_echo_n "checking how to print strings... " >&6; }
7544 # Test print first, because it will be a builtin if present.
7545 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7546 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7547 ECHO='print -r --'
7548 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7549 ECHO='printf %s\n'
7550 else
7551 # Use this function as a fallback that always works.
7552 func_fallback_echo ()
7554 eval 'cat <<_LTECHO_EOF
7556 _LTECHO_EOF'
7558 ECHO='func_fallback_echo'
7561 # func_echo_all arg...
7562 # Invoke $ECHO with all args, space-separated.
7563 func_echo_all ()
7565 $ECHO ""
7568 case "$ECHO" in
7569 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7570 $as_echo "printf" >&6; } ;;
7571 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7572 $as_echo "print -r" >&6; } ;;
7573 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7574 $as_echo "cat" >&6; } ;;
7575 esac
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7591 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7592 if ${ac_cv_path_SED+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7596 for ac_i in 1 2 3 4 5 6 7; do
7597 ac_script="$ac_script$as_nl$ac_script"
7598 done
7599 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7600 { ac_script=; unset ac_script;}
7601 if test -z "$SED"; then
7602 ac_path_SED_found=false
7603 # Loop through the user's path and test for each of PROGNAME-LIST
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_prog in sed gsed; do
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7612 as_fn_executable_p "$ac_path_SED" || continue
7613 # Check for GNU ac_path_SED and select it if it is found.
7614 # Check for GNU $ac_path_SED
7615 case `"$ac_path_SED" --version 2>&1` in
7616 *GNU*)
7617 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7619 ac_count=0
7620 $as_echo_n 0123456789 >"conftest.in"
7621 while :
7623 cat "conftest.in" "conftest.in" >"conftest.tmp"
7624 mv "conftest.tmp" "conftest.in"
7625 cp "conftest.in" "conftest.nl"
7626 $as_echo '' >> "conftest.nl"
7627 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7629 as_fn_arith $ac_count + 1 && ac_count=$as_val
7630 if test $ac_count -gt ${ac_path_SED_max-0}; then
7631 # Best one so far, save it but keep looking for a better one
7632 ac_cv_path_SED="$ac_path_SED"
7633 ac_path_SED_max=$ac_count
7635 # 10*(2^10) chars as input seems more than enough
7636 test $ac_count -gt 10 && break
7637 done
7638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7639 esac
7641 $ac_path_SED_found && break 3
7642 done
7643 done
7644 done
7645 IFS=$as_save_IFS
7646 if test -z "$ac_cv_path_SED"; then
7647 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7649 else
7650 ac_cv_path_SED=$SED
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7655 $as_echo "$ac_cv_path_SED" >&6; }
7656 SED="$ac_cv_path_SED"
7657 rm -f conftest.sed
7659 test -z "$SED" && SED=sed
7660 Xsed="$SED -e 1s/^X//"
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7673 $as_echo_n "checking for fgrep... " >&6; }
7674 if ${ac_cv_path_FGREP+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7678 then ac_cv_path_FGREP="$GREP -F"
7679 else
7680 if test -z "$FGREP"; then
7681 ac_path_FGREP_found=false
7682 # Loop through the user's path and test for each of PROGNAME-LIST
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_prog in fgrep; do
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7691 as_fn_executable_p "$ac_path_FGREP" || continue
7692 # Check for GNU ac_path_FGREP and select it if it is found.
7693 # Check for GNU $ac_path_FGREP
7694 case `"$ac_path_FGREP" --version 2>&1` in
7695 *GNU*)
7696 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7698 ac_count=0
7699 $as_echo_n 0123456789 >"conftest.in"
7700 while :
7702 cat "conftest.in" "conftest.in" >"conftest.tmp"
7703 mv "conftest.tmp" "conftest.in"
7704 cp "conftest.in" "conftest.nl"
7705 $as_echo 'FGREP' >> "conftest.nl"
7706 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7708 as_fn_arith $ac_count + 1 && ac_count=$as_val
7709 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7710 # Best one so far, save it but keep looking for a better one
7711 ac_cv_path_FGREP="$ac_path_FGREP"
7712 ac_path_FGREP_max=$ac_count
7714 # 10*(2^10) chars as input seems more than enough
7715 test $ac_count -gt 10 && break
7716 done
7717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7718 esac
7720 $ac_path_FGREP_found && break 3
7721 done
7722 done
7723 done
7724 IFS=$as_save_IFS
7725 if test -z "$ac_cv_path_FGREP"; then
7726 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7728 else
7729 ac_cv_path_FGREP=$FGREP
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7735 $as_echo "$ac_cv_path_FGREP" >&6; }
7736 FGREP="$ac_cv_path_FGREP"
7739 test -z "$GREP" && GREP=grep
7759 # Check whether --with-gnu-ld was given.
7760 if test "${with_gnu_ld+set}" = set; then :
7761 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7762 else
7763 with_gnu_ld=no
7766 ac_prog=ld
7767 if test "$GCC" = yes; then
7768 # Check if gcc -print-prog-name=ld gives a path.
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7770 $as_echo_n "checking for ld used by $CC... " >&6; }
7771 case $host in
7772 *-*-mingw*)
7773 # gcc leaves a trailing carriage return which upsets mingw
7774 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7776 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7777 esac
7778 case $ac_prog in
7779 # Accept absolute paths.
7780 [\\/]* | ?:[\\/]*)
7781 re_direlt='/[^/][^/]*/\.\./'
7782 # Canonicalize the pathname of ld
7783 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7784 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7785 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7786 done
7787 test -z "$LD" && LD="$ac_prog"
7790 # If it fails, then pretend we aren't using GCC.
7791 ac_prog=ld
7794 # If it is relative, then search for the first ld in PATH.
7795 with_gnu_ld=unknown
7797 esac
7798 elif test "$with_gnu_ld" = yes; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7800 $as_echo_n "checking for GNU ld... " >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7803 $as_echo_n "checking for non-GNU ld... " >&6; }
7805 if ${lt_cv_path_LD+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 if test -z "$LD"; then
7809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7810 for ac_dir in $PATH; do
7811 IFS="$lt_save_ifs"
7812 test -z "$ac_dir" && ac_dir=.
7813 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7814 lt_cv_path_LD="$ac_dir/$ac_prog"
7815 # Check to see if the program is GNU ld. I'd rather use --version,
7816 # but apparently some variants of GNU ld only accept -v.
7817 # Break only if it was the GNU/non-GNU ld that we prefer.
7818 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7819 *GNU* | *'with BFD'*)
7820 test "$with_gnu_ld" != no && break
7823 test "$with_gnu_ld" != yes && break
7825 esac
7827 done
7828 IFS="$lt_save_ifs"
7829 else
7830 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7834 LD="$lt_cv_path_LD"
7835 if test -n "$LD"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7837 $as_echo "$LD" >&6; }
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7842 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7844 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7845 if ${lt_cv_prog_gnu_ld+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7849 case `$LD -v 2>&1 </dev/null` in
7850 *GNU* | *'with BFD'*)
7851 lt_cv_prog_gnu_ld=yes
7854 lt_cv_prog_gnu_ld=no
7856 esac
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7859 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7860 with_gnu_ld=$lt_cv_prog_gnu_ld
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7871 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7872 if ${lt_cv_path_NM+:} false; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 if test -n "$NM"; then
7876 # Let the user override the nm to test.
7877 lt_nm_to_check="$NM"
7878 else
7879 lt_nm_to_check="${ac_tool_prefix}nm"
7880 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7881 lt_nm_to_check="$lt_nm_to_check nm"
7884 for lt_tmp_nm in "$lt_nm_to_check"; do
7885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7886 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7887 IFS="$lt_save_ifs"
7888 test -z "$ac_dir" && ac_dir=.
7889 # Strip out any user-provided options from the nm to test twice,
7890 # the first time to test to see if nm (rather than its options) has
7891 # an explicit path, the second time to yield a file which can be
7892 # nm'ed itself.
7893 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
7894 case "$tmp_nm_path" in
7895 */*|*\\*) tmp_nm="$lt_tmp_nm";;
7896 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
7897 esac
7898 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
7899 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
7900 # Check to see if the nm accepts a BSD-compat flag.
7901 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7902 # nm: unknown option "B" ignored
7903 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
7904 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
7905 break
7908 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
7909 *$tmp_nm*)
7910 lt_cv_path_NM="$tmp_nm -p"
7911 break
7914 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7915 continue # so that we can try to find one that supports BSD flags
7917 esac
7919 esac
7921 done
7922 IFS="$lt_save_ifs"
7923 done
7924 : ${lt_cv_path_NM=no}
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7927 $as_echo "$lt_cv_path_NM" >&6; }
7928 if test "$lt_cv_path_NM" != "no"; then
7929 NM="$lt_cv_path_NM"
7930 else
7931 # Didn't find any BSD compatible name lister, look for dumpbin.
7932 if test -n "$DUMPBIN"; then :
7933 # Let the user override the test.
7934 else
7935 if test -n "$ac_tool_prefix"; then
7936 for ac_prog in dumpbin "link -dump"
7938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_prog_DUMPBIN+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 if test -n "$DUMPBIN"; then
7946 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7959 done
7960 done
7961 IFS=$as_save_IFS
7965 DUMPBIN=$ac_cv_prog_DUMPBIN
7966 if test -n "$DUMPBIN"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7968 $as_echo "$DUMPBIN" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7975 test -n "$DUMPBIN" && break
7976 done
7978 if test -z "$DUMPBIN"; then
7979 ac_ct_DUMPBIN=$DUMPBIN
7980 for ac_prog in dumpbin "link -dump"
7982 # Extract the first word of "$ac_prog", so it can be a program name with args.
7983 set dummy $ac_prog; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 if test -n "$ac_ct_DUMPBIN"; then
7990 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7999 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8003 done
8004 done
8005 IFS=$as_save_IFS
8009 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8010 if test -n "$ac_ct_DUMPBIN"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8012 $as_echo "$ac_ct_DUMPBIN" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8019 test -n "$ac_ct_DUMPBIN" && break
8020 done
8022 if test "x$ac_ct_DUMPBIN" = x; then
8023 DUMPBIN=":"
8024 else
8025 case $cross_compiling:$ac_tool_warned in
8026 yes:)
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8029 ac_tool_warned=yes ;;
8030 esac
8031 DUMPBIN=$ac_ct_DUMPBIN
8035 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8036 *COFF*)
8037 DUMPBIN="$DUMPBIN -symbols"
8040 DUMPBIN=:
8042 esac
8045 if test "$DUMPBIN" != ":"; then
8046 NM="$DUMPBIN"
8049 test -z "$NM" && NM=nm
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8057 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8058 if ${lt_cv_nm_interface+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 lt_cv_nm_interface="BSD nm"
8062 echo "int some_variable = 0;" > conftest.$ac_ext
8063 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8064 (eval "$ac_compile" 2>conftest.err)
8065 cat conftest.err >&5
8066 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8067 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8068 cat conftest.err >&5
8069 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8070 cat conftest.out >&5
8071 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8072 lt_cv_nm_interface="MS dumpbin"
8074 rm -f conftest*
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8077 $as_echo "$lt_cv_nm_interface" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8080 $as_echo_n "checking whether ln -s works... " >&6; }
8081 LN_S=$as_ln_s
8082 if test "$LN_S" = "ln -s"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8084 $as_echo "yes" >&6; }
8085 else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8087 $as_echo "no, using $LN_S" >&6; }
8090 # find the maximum length of command line arguments
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8092 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8093 if ${lt_cv_sys_max_cmd_len+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8097 teststring="ABCD"
8099 case $build_os in
8100 msdosdjgpp*)
8101 # On DJGPP, this test can blow up pretty badly due to problems in libc
8102 # (any single argument exceeding 2000 bytes causes a buffer overrun
8103 # during glob expansion). Even if it were fixed, the result of this
8104 # check would be larger than it should be.
8105 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8108 gnu*)
8109 # Under GNU Hurd, this test is not required because there is
8110 # no limit to the length of command line arguments.
8111 # Libtool will interpret -1 as no limit whatsoever
8112 lt_cv_sys_max_cmd_len=-1;
8115 cygwin* | mingw* | cegcc*)
8116 # On Win9x/ME, this test blows up -- it succeeds, but takes
8117 # about 5 minutes as the teststring grows exponentially.
8118 # Worse, since 9x/ME are not pre-emptively multitasking,
8119 # you end up with a "frozen" computer, even though with patience
8120 # the test eventually succeeds (with a max line length of 256k).
8121 # Instead, let's just punt: use the minimum linelength reported by
8122 # all of the supported platforms: 8192 (on NT/2K/XP).
8123 lt_cv_sys_max_cmd_len=8192;
8126 mint*)
8127 # On MiNT this can take a long time and run out of memory.
8128 lt_cv_sys_max_cmd_len=8192;
8131 amigaos*)
8132 # On AmigaOS with pdksh, this test takes hours, literally.
8133 # So we just punt and use a minimum line length of 8192.
8134 lt_cv_sys_max_cmd_len=8192;
8137 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8138 # This has been around since 386BSD, at least. Likely further.
8139 if test -x /sbin/sysctl; then
8140 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8141 elif test -x /usr/sbin/sysctl; then
8142 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8143 else
8144 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8146 # And add a safety zone
8147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8151 interix*)
8152 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8153 lt_cv_sys_max_cmd_len=196608
8156 osf*)
8157 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8158 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8159 # nice to cause kernel panics so lets avoid the loop below.
8160 # First set a reasonable default.
8161 lt_cv_sys_max_cmd_len=16384
8163 if test -x /sbin/sysconfig; then
8164 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8165 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8166 esac
8169 sco3.2v5*)
8170 lt_cv_sys_max_cmd_len=102400
8172 sysv5* | sco5v6* | sysv4.2uw2*)
8173 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8174 if test -n "$kargmax"; then
8175 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8176 else
8177 lt_cv_sys_max_cmd_len=32768
8181 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8182 if test -n "$lt_cv_sys_max_cmd_len"; then
8183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8185 else
8186 # Make teststring a little bigger before we do anything with it.
8187 # a 1K string should be a reasonable start.
8188 for i in 1 2 3 4 5 6 7 8 ; do
8189 teststring=$teststring$teststring
8190 done
8191 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8192 # If test is not a shell built-in, we'll probably end up computing a
8193 # maximum length that is only half of the actual maximum length, but
8194 # we can't tell.
8195 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8196 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8197 test $i != 17 # 1/2 MB should be enough
8199 i=`expr $i + 1`
8200 teststring=$teststring$teststring
8201 done
8202 # Only check the string length outside the loop.
8203 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8204 teststring=
8205 # Add a significant safety factor because C++ compilers can tack on
8206 # massive amounts of additional arguments before passing them to the
8207 # linker. It appears as though 1/2 is a usable value.
8208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8211 esac
8215 if test -n $lt_cv_sys_max_cmd_len ; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8217 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8218 else
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8220 $as_echo "none" >&6; }
8222 max_cmd_len=$lt_cv_sys_max_cmd_len
8229 : ${CP="cp -f"}
8230 : ${MV="mv -f"}
8231 : ${RM="rm -f"}
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8234 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8235 # Try some XSI features
8236 xsi_shell=no
8237 ( _lt_dummy="a/b/c"
8238 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8239 = c,a/b,, \
8240 && eval 'test $(( 1 + 1 )) -eq 2 \
8241 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8242 && xsi_shell=yes
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8244 $as_echo "$xsi_shell" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8248 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8249 lt_shell_append=no
8250 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8251 >/dev/null 2>&1 \
8252 && lt_shell_append=yes
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8254 $as_echo "$lt_shell_append" >&6; }
8257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8258 lt_unset=unset
8259 else
8260 lt_unset=false
8267 # test EBCDIC or ASCII
8268 case `echo X|tr X '\101'` in
8269 A) # ASCII based system
8270 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8271 lt_SP2NL='tr \040 \012'
8272 lt_NL2SP='tr \015\012 \040\040'
8274 *) # EBCDIC based system
8275 lt_SP2NL='tr \100 \n'
8276 lt_NL2SP='tr \r\n \100\100'
8278 esac
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8289 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8290 if ${lt_cv_ld_reload_flag+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 lt_cv_ld_reload_flag='-r'
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8296 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8297 reload_flag=$lt_cv_ld_reload_flag
8298 case $reload_flag in
8299 "" | " "*) ;;
8300 *) reload_flag=" $reload_flag" ;;
8301 esac
8302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8303 case $host_os in
8304 darwin*)
8305 if test "$GCC" = yes; then
8306 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8307 else
8308 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8311 esac
8321 if test -n "$ac_tool_prefix"; then
8322 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8323 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_OBJDUMP+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 if test -n "$OBJDUMP"; then
8330 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 break 2
8343 done
8344 done
8345 IFS=$as_save_IFS
8349 OBJDUMP=$ac_cv_prog_OBJDUMP
8350 if test -n "$OBJDUMP"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8352 $as_echo "$OBJDUMP" >&6; }
8353 else
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8360 if test -z "$ac_cv_prog_OBJDUMP"; then
8361 ac_ct_OBJDUMP=$OBJDUMP
8362 # Extract the first word of "objdump", so it can be a program name with args.
8363 set dummy objdump; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 if test -n "$ac_ct_OBJDUMP"; then
8370 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8379 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8383 done
8384 done
8385 IFS=$as_save_IFS
8389 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8390 if test -n "$ac_ct_OBJDUMP"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8392 $as_echo "$ac_ct_OBJDUMP" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8398 if test "x$ac_ct_OBJDUMP" = x; then
8399 OBJDUMP="false"
8400 else
8401 case $cross_compiling:$ac_tool_warned in
8402 yes:)
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8405 ac_tool_warned=yes ;;
8406 esac
8407 OBJDUMP=$ac_ct_OBJDUMP
8409 else
8410 OBJDUMP="$ac_cv_prog_OBJDUMP"
8413 test -z "$OBJDUMP" && OBJDUMP=objdump
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8424 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8425 if ${lt_cv_deplibs_check_method+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 lt_cv_file_magic_cmd='$MAGIC_CMD'
8429 lt_cv_file_magic_test_file=
8430 lt_cv_deplibs_check_method='unknown'
8431 # Need to set the preceding variable on all platforms that support
8432 # interlibrary dependencies.
8433 # 'none' -- dependencies not supported.
8434 # `unknown' -- same as none, but documents that we really don't know.
8435 # 'pass_all' -- all dependencies passed with no checks.
8436 # 'test_compile' -- check by making test program.
8437 # 'file_magic [[regex]]' -- check by looking for files in library path
8438 # which responds to the $file_magic_cmd with a given extended regex.
8439 # If you have `file' or equivalent on your system and you're not sure
8440 # whether `pass_all' will *always* work, you probably want this one.
8442 case $host_os in
8443 aix[4-9]*)
8444 lt_cv_deplibs_check_method=pass_all
8447 beos*)
8448 lt_cv_deplibs_check_method=pass_all
8451 bsdi[45]*)
8452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8453 lt_cv_file_magic_cmd='/usr/bin/file -L'
8454 lt_cv_file_magic_test_file=/shlib/libc.so
8457 cygwin*)
8458 # func_win32_libid is a shell function defined in ltmain.sh
8459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8460 lt_cv_file_magic_cmd='func_win32_libid'
8463 mingw* | pw32*)
8464 # Base MSYS/MinGW do not provide the 'file' command needed by
8465 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8466 # unless we find 'file', for example because we are cross-compiling.
8467 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8468 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8470 lt_cv_file_magic_cmd='func_win32_libid'
8471 else
8472 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8473 lt_cv_file_magic_cmd='$OBJDUMP -f'
8477 cegcc*)
8478 # use the weaker test based on 'objdump'. See mingw*.
8479 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8480 lt_cv_file_magic_cmd='$OBJDUMP -f'
8483 darwin* | rhapsody*)
8484 lt_cv_deplibs_check_method=pass_all
8487 freebsd* | dragonfly*)
8488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8489 case $host_cpu in
8490 i*86 )
8491 # Not sure whether the presence of OpenBSD here was a mistake.
8492 # Let's accept both of them until this is cleared up.
8493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8494 lt_cv_file_magic_cmd=/usr/bin/file
8495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8497 esac
8498 else
8499 lt_cv_deplibs_check_method=pass_all
8503 gnu*)
8504 lt_cv_deplibs_check_method=pass_all
8507 haiku*)
8508 lt_cv_deplibs_check_method=pass_all
8511 hpux10.20* | hpux11*)
8512 lt_cv_file_magic_cmd=/usr/bin/file
8513 case $host_cpu in
8514 ia64*)
8515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8518 hppa*64*)
8519 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]'
8520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8524 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8526 esac
8529 interix[3-9]*)
8530 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8534 irix5* | irix6* | nonstopux*)
8535 case $LD in
8536 *-32|*"-32 ") libmagic=32-bit;;
8537 *-n32|*"-n32 ") libmagic=N32;;
8538 *-64|*"-64 ") libmagic=64-bit;;
8539 *) libmagic=never-match;;
8540 esac
8541 lt_cv_deplibs_check_method=pass_all
8544 # This must be Linux ELF.
8545 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8546 lt_cv_deplibs_check_method=pass_all
8549 netbsd*)
8550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8552 else
8553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8557 newos6*)
8558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8559 lt_cv_file_magic_cmd=/usr/bin/file
8560 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8563 *nto* | *qnx*)
8564 lt_cv_deplibs_check_method=pass_all
8567 openbsd*)
8568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8570 else
8571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8575 osf3* | osf4* | osf5*)
8576 lt_cv_deplibs_check_method=pass_all
8579 rdos*)
8580 lt_cv_deplibs_check_method=pass_all
8583 solaris*)
8584 lt_cv_deplibs_check_method=pass_all
8587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8588 lt_cv_deplibs_check_method=pass_all
8591 sysv4 | sysv4.3*)
8592 case $host_vendor in
8593 motorola)
8594 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]'
8595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8597 ncr)
8598 lt_cv_deplibs_check_method=pass_all
8600 sequent)
8601 lt_cv_file_magic_cmd='/bin/file'
8602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8604 sni)
8605 lt_cv_file_magic_cmd='/bin/file'
8606 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8607 lt_cv_file_magic_test_file=/lib/libc.so
8609 siemens)
8610 lt_cv_deplibs_check_method=pass_all
8613 lt_cv_deplibs_check_method=pass_all
8615 esac
8618 tpf*)
8619 lt_cv_deplibs_check_method=pass_all
8621 vxworks*)
8622 # Assume VxWorks cross toolchains are built on Linux, possibly
8623 # as canadian for Windows hosts.
8624 lt_cv_deplibs_check_method=pass_all
8626 esac
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8630 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8631 file_magic_cmd=$lt_cv_file_magic_cmd
8632 deplibs_check_method=$lt_cv_deplibs_check_method
8633 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8646 plugin_option=
8647 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
8648 for plugin in $plugin_names; do
8649 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
8650 if test x$plugin_so = x$plugin; then
8651 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
8653 if test x$plugin_so != x$plugin; then
8654 plugin_option="--plugin $plugin_so"
8655 break
8657 done
8659 if test -n "$ac_tool_prefix"; then
8660 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8661 set dummy ${ac_tool_prefix}ar; ac_word=$2
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8663 $as_echo_n "checking for $ac_word... " >&6; }
8664 if ${ac_cv_prog_AR+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 if test -n "$AR"; then
8668 ac_cv_prog_AR="$AR" # Let the user override the test.
8669 else
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $PATH
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8677 ac_cv_prog_AR="${ac_tool_prefix}ar"
8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 break 2
8681 done
8682 done
8683 IFS=$as_save_IFS
8687 AR=$ac_cv_prog_AR
8688 if test -n "$AR"; then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8690 $as_echo "$AR" >&6; }
8691 else
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693 $as_echo "no" >&6; }
8698 if test -z "$ac_cv_prog_AR"; then
8699 ac_ct_AR=$AR
8700 # Extract the first word of "ar", so it can be a program name with args.
8701 set dummy ar; ac_word=$2
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8703 $as_echo_n "checking for $ac_word... " >&6; }
8704 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8705 $as_echo_n "(cached) " >&6
8706 else
8707 if test -n "$ac_ct_AR"; then
8708 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8709 else
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 for as_dir in $PATH
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717 ac_cv_prog_ac_ct_AR="ar"
8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 break 2
8721 done
8722 done
8723 IFS=$as_save_IFS
8727 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8728 if test -n "$ac_ct_AR"; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8730 $as_echo "$ac_ct_AR" >&6; }
8731 else
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 $as_echo "no" >&6; }
8736 if test "x$ac_ct_AR" = x; then
8737 AR="false"
8738 else
8739 case $cross_compiling:$ac_tool_warned in
8740 yes:)
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8743 ac_tool_warned=yes ;;
8744 esac
8745 AR=$ac_ct_AR
8747 else
8748 AR="$ac_cv_prog_AR"
8751 test -z "$AR" && AR=ar
8752 if test -n "$plugin_option"; then
8753 if $AR --help 2>&1 | grep -q "\--plugin"; then
8754 touch conftest.c
8755 $AR $plugin_option rc conftest.a conftest.c
8756 if test "$?" != 0; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
8758 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
8759 else
8760 AR="$AR $plugin_option"
8762 rm -f conftest.*
8765 test -z "$AR_FLAGS" && AR_FLAGS=cru
8777 if test -n "$ac_tool_prefix"; then
8778 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8779 set dummy ${ac_tool_prefix}strip; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if ${ac_cv_prog_STRIP+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 if test -n "$STRIP"; then
8786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8799 done
8800 done
8801 IFS=$as_save_IFS
8805 STRIP=$ac_cv_prog_STRIP
8806 if test -n "$STRIP"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8808 $as_echo "$STRIP" >&6; }
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8816 if test -z "$ac_cv_prog_STRIP"; then
8817 ac_ct_STRIP=$STRIP
8818 # Extract the first word of "strip", so it can be a program name with args.
8819 set dummy strip; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 if test -n "$ac_ct_STRIP"; then
8826 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8827 else
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_ac_ct_STRIP="strip"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8839 done
8840 done
8841 IFS=$as_save_IFS
8845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8846 if test -n "$ac_ct_STRIP"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8848 $as_echo "$ac_ct_STRIP" >&6; }
8849 else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8854 if test "x$ac_ct_STRIP" = x; then
8855 STRIP=":"
8856 else
8857 case $cross_compiling:$ac_tool_warned in
8858 yes:)
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861 ac_tool_warned=yes ;;
8862 esac
8863 STRIP=$ac_ct_STRIP
8865 else
8866 STRIP="$ac_cv_prog_STRIP"
8869 test -z "$STRIP" && STRIP=:
8876 if test -n "$ac_tool_prefix"; then
8877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8878 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if ${ac_cv_prog_RANLIB+:} false; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 if test -n "$RANLIB"; then
8885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8894 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8898 done
8899 done
8900 IFS=$as_save_IFS
8904 RANLIB=$ac_cv_prog_RANLIB
8905 if test -n "$RANLIB"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8907 $as_echo "$RANLIB" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8915 if test -z "$ac_cv_prog_RANLIB"; then
8916 ac_ct_RANLIB=$RANLIB
8917 # Extract the first word of "ranlib", so it can be a program name with args.
8918 set dummy ranlib; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 if test -n "$ac_ct_RANLIB"; then
8925 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8926 else
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in $PATH
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8934 ac_cv_prog_ac_ct_RANLIB="ranlib"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 break 2
8938 done
8939 done
8940 IFS=$as_save_IFS
8944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8945 if test -n "$ac_ct_RANLIB"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8947 $as_echo "$ac_ct_RANLIB" >&6; }
8948 else
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8953 if test "x$ac_ct_RANLIB" = x; then
8954 RANLIB=":"
8955 else
8956 case $cross_compiling:$ac_tool_warned in
8957 yes:)
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8960 ac_tool_warned=yes ;;
8961 esac
8962 RANLIB=$ac_ct_RANLIB
8964 else
8965 RANLIB="$ac_cv_prog_RANLIB"
8968 test -z "$RANLIB" && RANLIB=:
8969 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
8970 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
8971 RANLIB="$RANLIB $plugin_option"
8980 # Determine commands to create old-style static archives.
8981 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8982 old_postinstall_cmds='chmod 644 $oldlib'
8983 old_postuninstall_cmds=
8985 if test -n "$RANLIB"; then
8986 case $host_os in
8987 openbsd*)
8988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8993 esac
8994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8997 case $host_os in
8998 darwin*)
8999 lock_old_archive_extraction=yes ;;
9001 lock_old_archive_extraction=no ;;
9002 esac
9042 # If no C compiler was specified, use CC.
9043 LTCC=${LTCC-"$CC"}
9045 # If no C compiler flags were specified, use CFLAGS.
9046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9048 # Allow CC to be a program name with arguments.
9049 compiler=$CC
9052 # Check for command to grab the raw symbol name followed by C symbol from nm.
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9054 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9055 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9059 # These are sane defaults that work on at least a few old systems.
9060 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9062 # Character class describing NM global symbol codes.
9063 symcode='[BCDEGRST]'
9065 # Regexp to match symbols that can be accessed directly from C.
9066 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9068 # Define system-specific variables.
9069 case $host_os in
9070 aix*)
9071 symcode='[BCDT]'
9073 cygwin* | mingw* | pw32* | cegcc*)
9074 symcode='[ABCDGISTW]'
9076 hpux*)
9077 if test "$host_cpu" = ia64; then
9078 symcode='[ABCDEGRST]'
9081 irix* | nonstopux*)
9082 symcode='[BCDEGRST]'
9084 osf*)
9085 symcode='[BCDEGQRST]'
9087 solaris*)
9088 symcode='[BCDRT]'
9090 sco3.2v5*)
9091 symcode='[DT]'
9093 sysv4.2uw2*)
9094 symcode='[DT]'
9096 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9097 symcode='[ABDT]'
9099 sysv4)
9100 symcode='[DFNSTU]'
9102 esac
9104 # If we're using GNU nm, then use its standard symbol codes.
9105 case `$NM -V 2>&1` in
9106 *GNU* | *'with BFD'*)
9107 symcode='[ABCDGIRSTW]' ;;
9108 esac
9110 # Transform an extracted symbol line into a proper C declaration.
9111 # Some systems (esp. on ia64) link data and code symbols differently,
9112 # so use this general approach.
9113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9115 # Transform an extracted symbol line into symbol name and symbol address
9116 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9117 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'"
9119 # Handle CRLF in mingw tool chain
9120 opt_cr=
9121 case $build_os in
9122 mingw*)
9123 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9125 esac
9127 # Try without a prefix underscore, then with it.
9128 for ac_symprfx in "" "_"; do
9130 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9131 symxfrm="\\1 $ac_symprfx\\2 \\2"
9133 # Write the raw and C identifiers.
9134 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9135 # Fake it for dumpbin and say T for any non-static function
9136 # and D for any global variable.
9137 # Also find C++ and __fastcall symbols from MSVC++,
9138 # which start with @ or ?.
9139 lt_cv_sys_global_symbol_pipe="$AWK '"\
9140 " {last_section=section; section=\$ 3};"\
9141 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9142 " \$ 0!~/External *\|/{next};"\
9143 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9144 " {if(hide[section]) next};"\
9145 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9146 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9147 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9148 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9149 " ' prfx=^$ac_symprfx"
9150 else
9151 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9154 # Check to see that the pipe works correctly.
9155 pipe_works=no
9157 rm -f conftest*
9158 cat > conftest.$ac_ext <<_LT_EOF
9159 #ifdef __cplusplus
9160 extern "C" {
9161 #endif
9162 char nm_test_var;
9163 void nm_test_func(void);
9164 void nm_test_func(void){}
9165 #ifdef __cplusplus
9167 #endif
9168 int main(){nm_test_var='a';nm_test_func();return(0);}
9169 _LT_EOF
9171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9172 (eval $ac_compile) 2>&5
9173 ac_status=$?
9174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9175 test $ac_status = 0; }; then
9176 # Now try to grab the symbols.
9177 nlist=conftest.nm
9178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9179 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9180 ac_status=$?
9181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9182 test $ac_status = 0; } && test -s "$nlist"; then
9183 # Try sorting and uniquifying the output.
9184 if sort "$nlist" | uniq > "$nlist"T; then
9185 mv -f "$nlist"T "$nlist"
9186 else
9187 rm -f "$nlist"T
9190 # Make sure that we snagged all the symbols we need.
9191 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9192 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9193 cat <<_LT_EOF > conftest.$ac_ext
9194 #ifdef __cplusplus
9195 extern "C" {
9196 #endif
9198 _LT_EOF
9199 # Now generate the symbol file.
9200 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9202 cat <<_LT_EOF >> conftest.$ac_ext
9204 /* The mapping between symbol names and symbols. */
9205 const struct {
9206 const char *name;
9207 void *address;
9209 lt__PROGRAM__LTX_preloaded_symbols[] =
9211 { "@PROGRAM@", (void *) 0 },
9212 _LT_EOF
9213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9214 cat <<\_LT_EOF >> conftest.$ac_ext
9215 {0, (void *) 0}
9218 /* This works around a problem in FreeBSD linker */
9219 #ifdef FREEBSD_WORKAROUND
9220 static const void *lt_preloaded_setup() {
9221 return lt__PROGRAM__LTX_preloaded_symbols;
9223 #endif
9225 #ifdef __cplusplus
9227 #endif
9228 _LT_EOF
9229 # Now try linking the two files.
9230 mv conftest.$ac_objext conftstm.$ac_objext
9231 lt_save_LIBS="$LIBS"
9232 lt_save_CFLAGS="$CFLAGS"
9233 LIBS="conftstm.$ac_objext"
9234 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9236 (eval $ac_link) 2>&5
9237 ac_status=$?
9238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9239 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9240 pipe_works=yes
9242 LIBS="$lt_save_LIBS"
9243 CFLAGS="$lt_save_CFLAGS"
9244 else
9245 echo "cannot find nm_test_func in $nlist" >&5
9247 else
9248 echo "cannot find nm_test_var in $nlist" >&5
9250 else
9251 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9253 else
9254 echo "$progname: failed program was:" >&5
9255 cat conftest.$ac_ext >&5
9257 rm -rf conftest* conftst*
9259 # Do not use the global_symbol_pipe unless it works.
9260 if test "$pipe_works" = yes; then
9261 break
9262 else
9263 lt_cv_sys_global_symbol_pipe=
9265 done
9269 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9270 lt_cv_sys_global_symbol_to_cdecl=
9272 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9274 $as_echo "failed" >&6; }
9275 else
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9277 $as_echo "ok" >&6; }
9301 # Check whether --enable-libtool-lock was given.
9302 if test "${enable_libtool_lock+set}" = set; then :
9303 enableval=$enable_libtool_lock;
9306 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9308 # Some flags need to be propagated to the compiler or linker for good
9309 # libtool support.
9310 case $host in
9311 ia64-*-hpux*)
9312 # Find out which ABI we are using.
9313 echo 'int i;' > conftest.$ac_ext
9314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9315 (eval $ac_compile) 2>&5
9316 ac_status=$?
9317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9318 test $ac_status = 0; }; then
9319 case `/usr/bin/file conftest.$ac_objext` in
9320 *ELF-32*)
9321 HPUX_IA64_MODE="32"
9323 *ELF-64*)
9324 HPUX_IA64_MODE="64"
9326 esac
9328 rm -rf conftest*
9330 *-*-irix6*)
9331 # Find out which ABI we are using.
9332 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9334 (eval $ac_compile) 2>&5
9335 ac_status=$?
9336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9337 test $ac_status = 0; }; then
9338 if test "$lt_cv_prog_gnu_ld" = yes; then
9339 case `/usr/bin/file conftest.$ac_objext` in
9340 *32-bit*)
9341 LD="${LD-ld} -melf32bsmip"
9343 *N32*)
9344 LD="${LD-ld} -melf32bmipn32"
9346 *64-bit*)
9347 LD="${LD-ld} -melf64bmip"
9349 esac
9350 else
9351 case `/usr/bin/file conftest.$ac_objext` in
9352 *32-bit*)
9353 LD="${LD-ld} -32"
9355 *N32*)
9356 LD="${LD-ld} -n32"
9358 *64-bit*)
9359 LD="${LD-ld} -64"
9361 esac
9364 rm -rf conftest*
9367 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9368 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9369 # Find out which ABI we are using.
9370 echo 'int i;' > conftest.$ac_ext
9371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9372 (eval $ac_compile) 2>&5
9373 ac_status=$?
9374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9375 test $ac_status = 0; }; then
9376 case `/usr/bin/file conftest.o` in
9377 *32-bit*)
9378 case $host in
9379 x86_64-*kfreebsd*-gnu)
9380 LD="${LD-ld} -m elf_i386_fbsd"
9382 x86_64-*linux*)
9383 case `/usr/bin/file conftest.o` in
9384 *x86-64*)
9385 LD="${LD-ld} -m elf32_x86_64"
9388 LD="${LD-ld} -m elf_i386"
9390 esac
9392 powerpc64le-*linux*)
9393 LD="${LD-ld} -m elf32lppclinux"
9395 powerpc64-*linux*)
9396 LD="${LD-ld} -m elf32ppclinux"
9398 s390x-*linux*)
9399 LD="${LD-ld} -m elf_s390"
9401 sparc64-*linux*)
9402 LD="${LD-ld} -m elf32_sparc"
9404 esac
9406 *64-bit*)
9407 case $host in
9408 x86_64-*kfreebsd*-gnu)
9409 LD="${LD-ld} -m elf_x86_64_fbsd"
9411 x86_64-*linux*)
9412 LD="${LD-ld} -m elf_x86_64"
9414 powerpcle-*linux*)
9415 LD="${LD-ld} -m elf64lppc"
9417 powerpc-*linux*)
9418 LD="${LD-ld} -m elf64ppc"
9420 s390*-*linux*|s390*-*tpf*)
9421 LD="${LD-ld} -m elf64_s390"
9423 sparc*-*linux*)
9424 LD="${LD-ld} -m elf64_sparc"
9426 esac
9428 esac
9430 rm -rf conftest*
9433 *-*-sco3.2v5*)
9434 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9435 SAVE_CFLAGS="$CFLAGS"
9436 CFLAGS="$CFLAGS -belf"
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9438 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9439 if ${lt_cv_cc_needs_belf+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 ac_ext=c
9443 ac_cpp='$CPP $CPPFLAGS'
9444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9452 main ()
9456 return 0;
9458 _ACEOF
9459 if ac_fn_c_try_link "$LINENO"; then :
9460 lt_cv_cc_needs_belf=yes
9461 else
9462 lt_cv_cc_needs_belf=no
9464 rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9466 ac_ext=c
9467 ac_cpp='$CPP $CPPFLAGS'
9468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9474 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9477 CFLAGS="$SAVE_CFLAGS"
9480 sparc*-*solaris*)
9481 # Find out which ABI we are using.
9482 echo 'int i;' > conftest.$ac_ext
9483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9484 (eval $ac_compile) 2>&5
9485 ac_status=$?
9486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9487 test $ac_status = 0; }; then
9488 case `/usr/bin/file conftest.o` in
9489 *64-bit*)
9490 case $lt_cv_prog_gnu_ld in
9491 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9493 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9494 LD="${LD-ld} -64"
9497 esac
9499 esac
9501 rm -rf conftest*
9503 esac
9505 need_locks="$enable_libtool_lock"
9508 case $host_os in
9509 rhapsody* | darwin*)
9510 if test -n "$ac_tool_prefix"; then
9511 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9512 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9514 $as_echo_n "checking for $ac_word... " >&6; }
9515 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 if test -n "$DSYMUTIL"; then
9519 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9520 else
9521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 for as_dir in $PATH
9524 IFS=$as_save_IFS
9525 test -z "$as_dir" && as_dir=.
9526 for ac_exec_ext in '' $ac_executable_extensions; do
9527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9528 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9530 break 2
9532 done
9533 done
9534 IFS=$as_save_IFS
9538 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9539 if test -n "$DSYMUTIL"; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9541 $as_echo "$DSYMUTIL" >&6; }
9542 else
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9549 if test -z "$ac_cv_prog_DSYMUTIL"; then
9550 ac_ct_DSYMUTIL=$DSYMUTIL
9551 # Extract the first word of "dsymutil", so it can be a program name with args.
9552 set dummy dsymutil; ac_word=$2
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554 $as_echo_n "checking for $ac_word... " >&6; }
9555 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 if test -n "$ac_ct_DSYMUTIL"; then
9559 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9560 else
9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 for as_dir in $PATH
9564 IFS=$as_save_IFS
9565 test -z "$as_dir" && as_dir=.
9566 for ac_exec_ext in '' $ac_executable_extensions; do
9567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9568 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9570 break 2
9572 done
9573 done
9574 IFS=$as_save_IFS
9578 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9579 if test -n "$ac_ct_DSYMUTIL"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9581 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9582 else
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584 $as_echo "no" >&6; }
9587 if test "x$ac_ct_DSYMUTIL" = x; then
9588 DSYMUTIL=":"
9589 else
9590 case $cross_compiling:$ac_tool_warned in
9591 yes:)
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9594 ac_tool_warned=yes ;;
9595 esac
9596 DSYMUTIL=$ac_ct_DSYMUTIL
9598 else
9599 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9602 if test -n "$ac_tool_prefix"; then
9603 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9604 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9606 $as_echo_n "checking for $ac_word... " >&6; }
9607 if ${ac_cv_prog_NMEDIT+:} false; then :
9608 $as_echo_n "(cached) " >&6
9609 else
9610 if test -n "$NMEDIT"; then
9611 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9612 else
9613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614 for as_dir in $PATH
9616 IFS=$as_save_IFS
9617 test -z "$as_dir" && as_dir=.
9618 for ac_exec_ext in '' $ac_executable_extensions; do
9619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9620 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9622 break 2
9624 done
9625 done
9626 IFS=$as_save_IFS
9630 NMEDIT=$ac_cv_prog_NMEDIT
9631 if test -n "$NMEDIT"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9633 $as_echo "$NMEDIT" >&6; }
9634 else
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9641 if test -z "$ac_cv_prog_NMEDIT"; then
9642 ac_ct_NMEDIT=$NMEDIT
9643 # Extract the first word of "nmedit", so it can be a program name with args.
9644 set dummy nmedit; ac_word=$2
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646 $as_echo_n "checking for $ac_word... " >&6; }
9647 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 if test -n "$ac_ct_NMEDIT"; then
9651 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9652 else
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9664 done
9665 done
9666 IFS=$as_save_IFS
9670 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9671 if test -n "$ac_ct_NMEDIT"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9673 $as_echo "$ac_ct_NMEDIT" >&6; }
9674 else
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676 $as_echo "no" >&6; }
9679 if test "x$ac_ct_NMEDIT" = x; then
9680 NMEDIT=":"
9681 else
9682 case $cross_compiling:$ac_tool_warned in
9683 yes:)
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9686 ac_tool_warned=yes ;;
9687 esac
9688 NMEDIT=$ac_ct_NMEDIT
9690 else
9691 NMEDIT="$ac_cv_prog_NMEDIT"
9694 if test -n "$ac_tool_prefix"; then
9695 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9696 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if ${ac_cv_prog_LIPO+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 if test -n "$LIPO"; then
9703 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9704 else
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 break 2
9716 done
9717 done
9718 IFS=$as_save_IFS
9722 LIPO=$ac_cv_prog_LIPO
9723 if test -n "$LIPO"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9725 $as_echo "$LIPO" >&6; }
9726 else
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9733 if test -z "$ac_cv_prog_LIPO"; then
9734 ac_ct_LIPO=$LIPO
9735 # Extract the first word of "lipo", so it can be a program name with args.
9736 set dummy lipo; ac_word=$2
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 if test -n "$ac_ct_LIPO"; then
9743 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9744 else
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_ac_ct_LIPO="lipo"
9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9756 done
9757 done
9758 IFS=$as_save_IFS
9762 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9763 if test -n "$ac_ct_LIPO"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9765 $as_echo "$ac_ct_LIPO" >&6; }
9766 else
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9771 if test "x$ac_ct_LIPO" = x; then
9772 LIPO=":"
9773 else
9774 case $cross_compiling:$ac_tool_warned in
9775 yes:)
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9778 ac_tool_warned=yes ;;
9779 esac
9780 LIPO=$ac_ct_LIPO
9782 else
9783 LIPO="$ac_cv_prog_LIPO"
9786 if test -n "$ac_tool_prefix"; then
9787 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9788 set dummy ${ac_tool_prefix}otool; ac_word=$2
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9790 $as_echo_n "checking for $ac_word... " >&6; }
9791 if ${ac_cv_prog_OTOOL+:} false; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 if test -n "$OTOOL"; then
9795 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9796 else
9797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798 for as_dir in $PATH
9800 IFS=$as_save_IFS
9801 test -z "$as_dir" && as_dir=.
9802 for ac_exec_ext in '' $ac_executable_extensions; do
9803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9804 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9806 break 2
9808 done
9809 done
9810 IFS=$as_save_IFS
9814 OTOOL=$ac_cv_prog_OTOOL
9815 if test -n "$OTOOL"; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9817 $as_echo "$OTOOL" >&6; }
9818 else
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820 $as_echo "no" >&6; }
9825 if test -z "$ac_cv_prog_OTOOL"; then
9826 ac_ct_OTOOL=$OTOOL
9827 # Extract the first word of "otool", so it can be a program name with args.
9828 set dummy otool; ac_word=$2
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830 $as_echo_n "checking for $ac_word... " >&6; }
9831 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 if test -n "$ac_ct_OTOOL"; then
9835 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9836 else
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844 ac_cv_prog_ac_ct_OTOOL="otool"
9845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9848 done
9849 done
9850 IFS=$as_save_IFS
9854 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9855 if test -n "$ac_ct_OTOOL"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9857 $as_echo "$ac_ct_OTOOL" >&6; }
9858 else
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9863 if test "x$ac_ct_OTOOL" = x; then
9864 OTOOL=":"
9865 else
9866 case $cross_compiling:$ac_tool_warned in
9867 yes:)
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9870 ac_tool_warned=yes ;;
9871 esac
9872 OTOOL=$ac_ct_OTOOL
9874 else
9875 OTOOL="$ac_cv_prog_OTOOL"
9878 if test -n "$ac_tool_prefix"; then
9879 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9880 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882 $as_echo_n "checking for $ac_word... " >&6; }
9883 if ${ac_cv_prog_OTOOL64+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 if test -n "$OTOOL64"; then
9887 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9888 else
9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 for as_dir in $PATH
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9896 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 break 2
9900 done
9901 done
9902 IFS=$as_save_IFS
9906 OTOOL64=$ac_cv_prog_OTOOL64
9907 if test -n "$OTOOL64"; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9909 $as_echo "$OTOOL64" >&6; }
9910 else
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912 $as_echo "no" >&6; }
9917 if test -z "$ac_cv_prog_OTOOL64"; then
9918 ac_ct_OTOOL64=$OTOOL64
9919 # Extract the first word of "otool64", so it can be a program name with args.
9920 set dummy otool64; ac_word=$2
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922 $as_echo_n "checking for $ac_word... " >&6; }
9923 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9924 $as_echo_n "(cached) " >&6
9925 else
9926 if test -n "$ac_ct_OTOOL64"; then
9927 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9928 else
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9936 ac_cv_prog_ac_ct_OTOOL64="otool64"
9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 break 2
9940 done
9941 done
9942 IFS=$as_save_IFS
9946 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9947 if test -n "$ac_ct_OTOOL64"; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9949 $as_echo "$ac_ct_OTOOL64" >&6; }
9950 else
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9955 if test "x$ac_ct_OTOOL64" = x; then
9956 OTOOL64=":"
9957 else
9958 case $cross_compiling:$ac_tool_warned in
9959 yes:)
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9962 ac_tool_warned=yes ;;
9963 esac
9964 OTOOL64=$ac_ct_OTOOL64
9966 else
9967 OTOOL64="$ac_cv_prog_OTOOL64"
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9997 $as_echo_n "checking for -single_module linker flag... " >&6; }
9998 if ${lt_cv_apple_cc_single_mod+:} false; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 lt_cv_apple_cc_single_mod=no
10002 if test -z "${LT_MULTI_MODULE}"; then
10003 # By default we will add the -single_module flag. You can override
10004 # by either setting the environment variable LT_MULTI_MODULE
10005 # non-empty at configure time, or by adding -multi_module to the
10006 # link flags.
10007 rm -rf libconftest.dylib*
10008 echo "int foo(void){return 1;}" > conftest.c
10009 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10010 -dynamiclib -Wl,-single_module conftest.c" >&5
10011 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10012 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10013 _lt_result=$?
10014 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10015 lt_cv_apple_cc_single_mod=yes
10016 else
10017 cat conftest.err >&5
10019 rm -rf libconftest.dylib*
10020 rm -f conftest.*
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10024 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10026 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10027 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 lt_cv_ld_exported_symbols_list=no
10031 save_LDFLAGS=$LDFLAGS
10032 echo "_main" > conftest.sym
10033 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10038 main ()
10042 return 0;
10044 _ACEOF
10045 if ac_fn_c_try_link "$LINENO"; then :
10046 lt_cv_ld_exported_symbols_list=yes
10047 else
10048 lt_cv_ld_exported_symbols_list=no
10050 rm -f core conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 LDFLAGS="$save_LDFLAGS"
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10056 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10058 $as_echo_n "checking for -force_load linker flag... " >&6; }
10059 if ${lt_cv_ld_force_load+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 lt_cv_ld_force_load=no
10063 cat > conftest.c << _LT_EOF
10064 int forced_loaded() { return 2;}
10065 _LT_EOF
10066 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10067 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10068 echo "$AR cru libconftest.a conftest.o" >&5
10069 $AR cru libconftest.a conftest.o 2>&5
10070 cat > conftest.c << _LT_EOF
10071 int main() { return 0;}
10072 _LT_EOF
10073 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10074 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10075 _lt_result=$?
10076 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10077 lt_cv_ld_force_load=yes
10078 else
10079 cat conftest.err >&5
10081 rm -f conftest.err libconftest.a conftest conftest.c
10082 rm -rf conftest.dSYM
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10086 $as_echo "$lt_cv_ld_force_load" >&6; }
10087 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
10088 # build without first building modern cctools / linker.
10089 case $host_cpu-$host_os in
10090 *-rhapsody* | *-darwin1.[012])
10091 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10092 *-darwin1.*)
10093 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10094 *-darwin*)
10095 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
10096 # deployment target is forced to an earlier version.
10097 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
10098 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
10100 10.[012][,.]*)
10101 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10105 esac
10107 esac
10108 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10109 _lt_dar_single_mod='$single_module'
10111 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10112 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10113 else
10114 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10116 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10117 _lt_dsymutil='~$DSYMUTIL $lib || :'
10118 else
10119 _lt_dsymutil=
10122 esac
10124 for ac_header in dlfcn.h
10125 do :
10126 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10128 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10129 cat >>confdefs.h <<_ACEOF
10130 #define HAVE_DLFCN_H 1
10131 _ACEOF
10135 done
10141 # Set options
10145 enable_dlopen=no
10148 enable_win32_dll=no
10152 # Check whether --enable-static was given.
10153 if test "${enable_static+set}" = set; then :
10154 enableval=$enable_static; p=${PACKAGE-default}
10155 case $enableval in
10156 yes) enable_static=yes ;;
10157 no) enable_static=no ;;
10159 enable_static=no
10160 # Look at the argument we got. We use all the common list separators.
10161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10162 for pkg in $enableval; do
10163 IFS="$lt_save_ifs"
10164 if test "X$pkg" = "X$p"; then
10165 enable_static=yes
10167 done
10168 IFS="$lt_save_ifs"
10170 esac
10171 else
10172 enable_static=yes
10184 # Check whether --with-pic was given.
10185 if test "${with_pic+set}" = set; then :
10186 withval=$with_pic; pic_mode="$withval"
10187 else
10188 pic_mode=default
10192 test -z "$pic_mode" && pic_mode=default
10200 # Check whether --enable-fast-install was given.
10201 if test "${enable_fast_install+set}" = set; then :
10202 enableval=$enable_fast_install; p=${PACKAGE-default}
10203 case $enableval in
10204 yes) enable_fast_install=yes ;;
10205 no) enable_fast_install=no ;;
10207 enable_fast_install=no
10208 # Look at the argument we got. We use all the common list separators.
10209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10210 for pkg in $enableval; do
10211 IFS="$lt_save_ifs"
10212 if test "X$pkg" = "X$p"; then
10213 enable_fast_install=yes
10215 done
10216 IFS="$lt_save_ifs"
10218 esac
10219 else
10220 enable_fast_install=yes
10233 # This can be used to rebuild libtool when needed
10234 LIBTOOL_DEPS="$ltmain"
10236 # Always use our own libtool.
10237 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10264 test -z "$LN_S" && LN_S="ln -s"
10279 if test -n "${ZSH_VERSION+set}" ; then
10280 setopt NO_GLOB_SUBST
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10284 $as_echo_n "checking for objdir... " >&6; }
10285 if ${lt_cv_objdir+:} false; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288 rm -f .libs 2>/dev/null
10289 mkdir .libs 2>/dev/null
10290 if test -d .libs; then
10291 lt_cv_objdir=.libs
10292 else
10293 # MS-DOS does not allow filenames that begin with a dot.
10294 lt_cv_objdir=_libs
10296 rmdir .libs 2>/dev/null
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10299 $as_echo "$lt_cv_objdir" >&6; }
10300 objdir=$lt_cv_objdir
10306 cat >>confdefs.h <<_ACEOF
10307 #define LT_OBJDIR "$lt_cv_objdir/"
10308 _ACEOF
10313 case $host_os in
10314 aix3*)
10315 # AIX sometimes has problems with the GCC collect2 program. For some
10316 # reason, if we set the COLLECT_NAMES environment variable, the problems
10317 # vanish in a puff of smoke.
10318 if test "X${COLLECT_NAMES+set}" != Xset; then
10319 COLLECT_NAMES=
10320 export COLLECT_NAMES
10323 esac
10325 # Global variables:
10326 ofile=libtool
10327 can_build_shared=yes
10329 # All known linkers require a `.a' archive for static linking (except MSVC,
10330 # which needs '.lib').
10331 libext=a
10333 with_gnu_ld="$lt_cv_prog_gnu_ld"
10335 old_CC="$CC"
10336 old_CFLAGS="$CFLAGS"
10338 # Set sane defaults for various variables
10339 test -z "$CC" && CC=cc
10340 test -z "$LTCC" && LTCC=$CC
10341 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10342 test -z "$LD" && LD=ld
10343 test -z "$ac_objext" && ac_objext=o
10345 for cc_temp in $compiler""; do
10346 case $cc_temp in
10347 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10348 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10349 \-*) ;;
10350 *) break;;
10351 esac
10352 done
10353 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10356 # Only perform the check for file, if the check method requires it
10357 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10358 case $deplibs_check_method in
10359 file_magic*)
10360 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10362 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10363 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 case $MAGIC_CMD in
10367 [\\/*] | ?:[\\/]*)
10368 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10371 lt_save_MAGIC_CMD="$MAGIC_CMD"
10372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10374 for ac_dir in $ac_dummy; do
10375 IFS="$lt_save_ifs"
10376 test -z "$ac_dir" && ac_dir=.
10377 if test -f $ac_dir/${ac_tool_prefix}file; then
10378 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10379 if test -n "$file_magic_test_file"; then
10380 case $deplibs_check_method in
10381 "file_magic "*)
10382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10385 $EGREP "$file_magic_regex" > /dev/null; then
10387 else
10388 cat <<_LT_EOF 1>&2
10390 *** Warning: the command libtool uses to detect shared libraries,
10391 *** $file_magic_cmd, produces output that libtool cannot recognize.
10392 *** The result is that libtool may fail to recognize shared libraries
10393 *** as such. This will affect the creation of libtool libraries that
10394 *** depend on shared libraries, but programs linked with such libtool
10395 *** libraries will work regardless of this problem. Nevertheless, you
10396 *** may want to report the problem to your system manager and/or to
10397 *** bug-libtool@gnu.org
10399 _LT_EOF
10400 fi ;;
10401 esac
10403 break
10405 done
10406 IFS="$lt_save_ifs"
10407 MAGIC_CMD="$lt_save_MAGIC_CMD"
10409 esac
10412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10413 if test -n "$MAGIC_CMD"; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10415 $as_echo "$MAGIC_CMD" >&6; }
10416 else
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418 $as_echo "no" >&6; }
10425 if test -z "$lt_cv_path_MAGIC_CMD"; then
10426 if test -n "$ac_tool_prefix"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10428 $as_echo_n "checking for file... " >&6; }
10429 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 case $MAGIC_CMD in
10433 [\\/*] | ?:[\\/]*)
10434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10437 lt_save_MAGIC_CMD="$MAGIC_CMD"
10438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10440 for ac_dir in $ac_dummy; do
10441 IFS="$lt_save_ifs"
10442 test -z "$ac_dir" && ac_dir=.
10443 if test -f $ac_dir/file; then
10444 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10445 if test -n "$file_magic_test_file"; then
10446 case $deplibs_check_method in
10447 "file_magic "*)
10448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10451 $EGREP "$file_magic_regex" > /dev/null; then
10453 else
10454 cat <<_LT_EOF 1>&2
10456 *** Warning: the command libtool uses to detect shared libraries,
10457 *** $file_magic_cmd, produces output that libtool cannot recognize.
10458 *** The result is that libtool may fail to recognize shared libraries
10459 *** as such. This will affect the creation of libtool libraries that
10460 *** depend on shared libraries, but programs linked with such libtool
10461 *** libraries will work regardless of this problem. Nevertheless, you
10462 *** may want to report the problem to your system manager and/or to
10463 *** bug-libtool@gnu.org
10465 _LT_EOF
10466 fi ;;
10467 esac
10469 break
10471 done
10472 IFS="$lt_save_ifs"
10473 MAGIC_CMD="$lt_save_MAGIC_CMD"
10475 esac
10478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10479 if test -n "$MAGIC_CMD"; then
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10481 $as_echo "$MAGIC_CMD" >&6; }
10482 else
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10488 else
10489 MAGIC_CMD=:
10495 esac
10497 # Use C for the default configuration in the libtool script
10499 lt_save_CC="$CC"
10500 ac_ext=c
10501 ac_cpp='$CPP $CPPFLAGS'
10502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10507 # Source file extension for C test sources.
10508 ac_ext=c
10510 # Object file extension for compiled C test sources.
10511 objext=o
10512 objext=$objext
10514 # Code to be used in simple compile tests
10515 lt_simple_compile_test_code="int some_variable = 0;"
10517 # Code to be used in simple link tests
10518 lt_simple_link_test_code='int main(){return(0);}'
10526 # If no C compiler was specified, use CC.
10527 LTCC=${LTCC-"$CC"}
10529 # If no C compiler flags were specified, use CFLAGS.
10530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10532 # Allow CC to be a program name with arguments.
10533 compiler=$CC
10535 # Save the default compiler, since it gets overwritten when the other
10536 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10537 compiler_DEFAULT=$CC
10539 # save warnings/boilerplate of simple test code
10540 ac_outfile=conftest.$ac_objext
10541 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10542 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10543 _lt_compiler_boilerplate=`cat conftest.err`
10544 $RM conftest*
10546 ac_outfile=conftest.$ac_objext
10547 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10548 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10549 _lt_linker_boilerplate=`cat conftest.err`
10550 $RM -r conftest*
10553 ## CAVEAT EMPTOR:
10554 ## There is no encapsulation within the following macros, do not change
10555 ## the running order or otherwise move them around unless you know exactly
10556 ## what you are doing...
10557 if test -n "$compiler"; then
10559 lt_prog_compiler_no_builtin_flag=
10561 if test "$GCC" = yes; then
10562 case $cc_basename in
10563 nvcc*)
10564 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10566 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10567 esac
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10570 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10571 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574 lt_cv_prog_compiler_rtti_exceptions=no
10575 ac_outfile=conftest.$ac_objext
10576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10577 lt_compiler_flag="-fno-rtti -fno-exceptions"
10578 # Insert the option either (1) after the last *FLAGS variable, or
10579 # (2) before a word containing "conftest.", or (3) at the end.
10580 # Note that $ac_compile itself does not contain backslashes and begins
10581 # with a dollar sign (not a hyphen), so the echo should work correctly.
10582 # The option is referenced via a variable to avoid confusing sed.
10583 lt_compile=`echo "$ac_compile" | $SED \
10584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10586 -e 's:$: $lt_compiler_flag:'`
10587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10588 (eval "$lt_compile" 2>conftest.err)
10589 ac_status=$?
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 if (exit $ac_status) && test -s "$ac_outfile"; then
10593 # The compiler can only warn and ignore the option if not recognized
10594 # So say no if there are warnings other than the usual output.
10595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10598 lt_cv_prog_compiler_rtti_exceptions=yes
10601 $RM conftest*
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10605 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10607 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10608 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10609 else
10620 lt_prog_compiler_wl=
10621 lt_prog_compiler_pic=
10622 lt_prog_compiler_static=
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10625 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10627 if test "$GCC" = yes; then
10628 lt_prog_compiler_wl='-Wl,'
10629 lt_prog_compiler_static='-static'
10631 case $host_os in
10632 aix*)
10633 # All AIX code is PIC.
10634 if test "$host_cpu" = ia64; then
10635 # AIX 5 now supports IA64 processor
10636 lt_prog_compiler_static='-Bstatic'
10638 lt_prog_compiler_pic='-fPIC'
10641 amigaos*)
10642 case $host_cpu in
10643 powerpc)
10644 # see comment about AmigaOS4 .so support
10645 lt_prog_compiler_pic='-fPIC'
10647 m68k)
10648 # FIXME: we need at least 68020 code to build shared libraries, but
10649 # adding the `-m68020' flag to GCC prevents building anything better,
10650 # like `-m68040'.
10651 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10653 esac
10656 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10657 # PIC is the default for these OSes.
10660 mingw* | cygwin* | pw32* | os2* | cegcc*)
10661 # This hack is so that the source file can tell whether it is being
10662 # built for inclusion in a dll (and should export symbols for example).
10663 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10664 # (--disable-auto-import) libraries
10665 lt_prog_compiler_pic='-DDLL_EXPORT'
10668 darwin* | rhapsody*)
10669 # PIC is the default on this platform
10670 # Common symbols not allowed in MH_DYLIB files
10671 lt_prog_compiler_pic='-fno-common'
10674 haiku*)
10675 # PIC is the default for Haiku.
10676 # The "-static" flag exists, but is broken.
10677 lt_prog_compiler_static=
10680 hpux*)
10681 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10682 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10683 # sets the default TLS model and affects inlining.
10684 case $host_cpu in
10685 hppa*64*)
10686 # +Z the default
10689 lt_prog_compiler_pic='-fPIC'
10691 esac
10694 interix[3-9]*)
10695 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10696 # Instead, we relocate shared libraries at runtime.
10699 msdosdjgpp*)
10700 # Just because we use GCC doesn't mean we suddenly get shared libraries
10701 # on systems that don't support them.
10702 lt_prog_compiler_can_build_shared=no
10703 enable_shared=no
10706 *nto* | *qnx*)
10707 # QNX uses GNU C++, but need to define -shared option too, otherwise
10708 # it will coredump.
10709 lt_prog_compiler_pic='-fPIC -shared'
10712 sysv4*MP*)
10713 if test -d /usr/nec; then
10714 lt_prog_compiler_pic=-Kconform_pic
10719 lt_prog_compiler_pic='-fPIC'
10721 esac
10723 case $cc_basename in
10724 nvcc*) # Cuda Compiler Driver 2.2
10725 lt_prog_compiler_wl='-Xlinker '
10726 lt_prog_compiler_pic='-Xcompiler -fPIC'
10728 esac
10729 else
10730 # PORTME Check for flag to pass linker flags through the system compiler.
10731 case $host_os in
10732 aix*)
10733 lt_prog_compiler_wl='-Wl,'
10734 if test "$host_cpu" = ia64; then
10735 # AIX 5 now supports IA64 processor
10736 lt_prog_compiler_static='-Bstatic'
10737 else
10738 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10742 mingw* | cygwin* | pw32* | os2* | cegcc*)
10743 # This hack is so that the source file can tell whether it is being
10744 # built for inclusion in a dll (and should export symbols for example).
10745 lt_prog_compiler_pic='-DDLL_EXPORT'
10748 hpux9* | hpux10* | hpux11*)
10749 lt_prog_compiler_wl='-Wl,'
10750 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10751 # not for PA HP-UX.
10752 case $host_cpu in
10753 hppa*64*|ia64*)
10754 # +Z the default
10757 lt_prog_compiler_pic='+Z'
10759 esac
10760 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10761 lt_prog_compiler_static='${wl}-a ${wl}archive'
10764 irix5* | irix6* | nonstopux*)
10765 lt_prog_compiler_wl='-Wl,'
10766 # PIC (with -KPIC) is the default.
10767 lt_prog_compiler_static='-non_shared'
10770 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10771 case $cc_basename in
10772 # old Intel for x86_64 which still supported -KPIC.
10773 ecc*)
10774 lt_prog_compiler_wl='-Wl,'
10775 lt_prog_compiler_pic='-KPIC'
10776 lt_prog_compiler_static='-static'
10778 # icc used to be incompatible with GCC.
10779 # ICC 10 doesn't accept -KPIC any more.
10780 icc* | ifort*)
10781 lt_prog_compiler_wl='-Wl,'
10782 lt_prog_compiler_pic='-fPIC'
10783 lt_prog_compiler_static='-static'
10785 # Lahey Fortran 8.1.
10786 lf95*)
10787 lt_prog_compiler_wl='-Wl,'
10788 lt_prog_compiler_pic='--shared'
10789 lt_prog_compiler_static='--static'
10791 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10792 # Portland Group compilers (*not* the Pentium gcc compiler,
10793 # which looks to be a dead project)
10794 lt_prog_compiler_wl='-Wl,'
10795 lt_prog_compiler_pic='-fpic'
10796 lt_prog_compiler_static='-Bstatic'
10798 ccc*)
10799 lt_prog_compiler_wl='-Wl,'
10800 # All Alpha code is PIC.
10801 lt_prog_compiler_static='-non_shared'
10803 xl* | bgxl* | bgf* | mpixl*)
10804 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10805 lt_prog_compiler_wl='-Wl,'
10806 lt_prog_compiler_pic='-qpic'
10807 lt_prog_compiler_static='-qstaticlink'
10810 case `$CC -V 2>&1 | sed 5q` in
10811 *Sun\ F* | *Sun*Fortran*)
10812 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10813 lt_prog_compiler_pic='-KPIC'
10814 lt_prog_compiler_static='-Bstatic'
10815 lt_prog_compiler_wl=''
10817 *Sun\ C*)
10818 # Sun C 5.9
10819 lt_prog_compiler_pic='-KPIC'
10820 lt_prog_compiler_static='-Bstatic'
10821 lt_prog_compiler_wl='-Wl,'
10823 esac
10825 esac
10828 newsos6)
10829 lt_prog_compiler_pic='-KPIC'
10830 lt_prog_compiler_static='-Bstatic'
10833 *nto* | *qnx*)
10834 # QNX uses GNU C++, but need to define -shared option too, otherwise
10835 # it will coredump.
10836 lt_prog_compiler_pic='-fPIC -shared'
10839 osf3* | osf4* | osf5*)
10840 lt_prog_compiler_wl='-Wl,'
10841 # All OSF/1 code is PIC.
10842 lt_prog_compiler_static='-non_shared'
10845 rdos*)
10846 lt_prog_compiler_static='-non_shared'
10849 solaris*)
10850 lt_prog_compiler_pic='-KPIC'
10851 lt_prog_compiler_static='-Bstatic'
10852 case $cc_basename in
10853 f77* | f90* | f95*)
10854 lt_prog_compiler_wl='-Qoption ld ';;
10856 lt_prog_compiler_wl='-Wl,';;
10857 esac
10860 sunos4*)
10861 lt_prog_compiler_wl='-Qoption ld '
10862 lt_prog_compiler_pic='-PIC'
10863 lt_prog_compiler_static='-Bstatic'
10866 sysv4 | sysv4.2uw2* | sysv4.3*)
10867 lt_prog_compiler_wl='-Wl,'
10868 lt_prog_compiler_pic='-KPIC'
10869 lt_prog_compiler_static='-Bstatic'
10872 sysv4*MP*)
10873 if test -d /usr/nec ;then
10874 lt_prog_compiler_pic='-Kconform_pic'
10875 lt_prog_compiler_static='-Bstatic'
10879 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10880 lt_prog_compiler_wl='-Wl,'
10881 lt_prog_compiler_pic='-KPIC'
10882 lt_prog_compiler_static='-Bstatic'
10885 unicos*)
10886 lt_prog_compiler_wl='-Wl,'
10887 lt_prog_compiler_can_build_shared=no
10890 uts4*)
10891 lt_prog_compiler_pic='-pic'
10892 lt_prog_compiler_static='-Bstatic'
10896 lt_prog_compiler_can_build_shared=no
10898 esac
10901 case $host_os in
10902 # For platforms which do not support PIC, -DPIC is meaningless:
10903 *djgpp*)
10904 lt_prog_compiler_pic=
10907 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10909 esac
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10911 $as_echo "$lt_prog_compiler_pic" >&6; }
10919 # Check to make sure the PIC flag actually works.
10921 if test -n "$lt_prog_compiler_pic"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10923 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10924 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 lt_cv_prog_compiler_pic_works=no
10928 ac_outfile=conftest.$ac_objext
10929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10930 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10931 # Insert the option either (1) after the last *FLAGS variable, or
10932 # (2) before a word containing "conftest.", or (3) at the end.
10933 # Note that $ac_compile itself does not contain backslashes and begins
10934 # with a dollar sign (not a hyphen), so the echo should work correctly.
10935 # The option is referenced via a variable to avoid confusing sed.
10936 lt_compile=`echo "$ac_compile" | $SED \
10937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10939 -e 's:$: $lt_compiler_flag:'`
10940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10941 (eval "$lt_compile" 2>conftest.err)
10942 ac_status=$?
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 if (exit $ac_status) && test -s "$ac_outfile"; then
10946 # The compiler can only warn and ignore the option if not recognized
10947 # So say no if there are warnings other than the usual output.
10948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10950 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10951 lt_cv_prog_compiler_pic_works=yes
10954 $RM conftest*
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10958 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10960 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10961 case $lt_prog_compiler_pic in
10962 "" | " "*) ;;
10963 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10964 esac
10965 else
10966 lt_prog_compiler_pic=
10967 lt_prog_compiler_can_build_shared=no
10978 # Check to make sure the static flag actually works.
10980 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10982 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10983 if ${lt_cv_prog_compiler_static_works+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 lt_cv_prog_compiler_static_works=no
10987 save_LDFLAGS="$LDFLAGS"
10988 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10989 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10990 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10991 # The linker can only warn and ignore the option if not recognized
10992 # So say no if there are warnings
10993 if test -s conftest.err; then
10994 # Append any errors to the config.log.
10995 cat conftest.err 1>&5
10996 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10998 if diff conftest.exp conftest.er2 >/dev/null; then
10999 lt_cv_prog_compiler_static_works=yes
11001 else
11002 lt_cv_prog_compiler_static_works=yes
11005 $RM -r conftest*
11006 LDFLAGS="$save_LDFLAGS"
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11010 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11012 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11014 else
11015 lt_prog_compiler_static=
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11025 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11026 if ${lt_cv_prog_compiler_c_o+:} false; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 lt_cv_prog_compiler_c_o=no
11030 $RM -r conftest 2>/dev/null
11031 mkdir conftest
11032 cd conftest
11033 mkdir out
11034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11036 lt_compiler_flag="-o out/conftest2.$ac_objext"
11037 # Insert the option either (1) after the last *FLAGS variable, or
11038 # (2) before a word containing "conftest.", or (3) at the end.
11039 # Note that $ac_compile itself does not contain backslashes and begins
11040 # with a dollar sign (not a hyphen), so the echo should work correctly.
11041 lt_compile=`echo "$ac_compile" | $SED \
11042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11044 -e 's:$: $lt_compiler_flag:'`
11045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11046 (eval "$lt_compile" 2>out/conftest.err)
11047 ac_status=$?
11048 cat out/conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11051 then
11052 # The compiler can only warn and ignore the option if not recognized
11053 # So say no if there are warnings
11054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11057 lt_cv_prog_compiler_c_o=yes
11060 chmod u+w . 2>&5
11061 $RM conftest*
11062 # SGI C++ compiler will create directory out/ii_files/ for
11063 # template instantiation
11064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11065 $RM out/* && rmdir out
11066 cd ..
11067 $RM -r conftest
11068 $RM conftest*
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11072 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11081 if ${lt_cv_prog_compiler_c_o+:} false; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 lt_cv_prog_compiler_c_o=no
11085 $RM -r conftest 2>/dev/null
11086 mkdir conftest
11087 cd conftest
11088 mkdir out
11089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11091 lt_compiler_flag="-o out/conftest2.$ac_objext"
11092 # Insert the option either (1) after the last *FLAGS variable, or
11093 # (2) before a word containing "conftest.", or (3) at the end.
11094 # Note that $ac_compile itself does not contain backslashes and begins
11095 # with a dollar sign (not a hyphen), so the echo should work correctly.
11096 lt_compile=`echo "$ac_compile" | $SED \
11097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11099 -e 's:$: $lt_compiler_flag:'`
11100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11101 (eval "$lt_compile" 2>out/conftest.err)
11102 ac_status=$?
11103 cat out/conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11106 then
11107 # The compiler can only warn and ignore the option if not recognized
11108 # So say no if there are warnings
11109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11112 lt_cv_prog_compiler_c_o=yes
11115 chmod u+w . 2>&5
11116 $RM conftest*
11117 # SGI C++ compiler will create directory out/ii_files/ for
11118 # template instantiation
11119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11120 $RM out/* && rmdir out
11121 cd ..
11122 $RM -r conftest
11123 $RM conftest*
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11127 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11132 hard_links="nottested"
11133 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11134 # do not overwrite the value of need_locks provided by the user
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11136 $as_echo_n "checking if we can lock with hard links... " >&6; }
11137 hard_links=yes
11138 $RM conftest*
11139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11140 touch conftest.a
11141 ln conftest.a conftest.b 2>&5 || hard_links=no
11142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11144 $as_echo "$hard_links" >&6; }
11145 if test "$hard_links" = no; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11147 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11148 need_locks=warn
11150 else
11151 need_locks=no
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11160 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11162 runpath_var=
11163 allow_undefined_flag=
11164 always_export_symbols=no
11165 archive_cmds=
11166 archive_expsym_cmds=
11167 compiler_needs_object=no
11168 enable_shared_with_static_runtimes=no
11169 export_dynamic_flag_spec=
11170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11171 hardcode_automatic=no
11172 hardcode_direct=no
11173 hardcode_direct_absolute=no
11174 hardcode_libdir_flag_spec=
11175 hardcode_libdir_flag_spec_ld=
11176 hardcode_libdir_separator=
11177 hardcode_minus_L=no
11178 hardcode_shlibpath_var=unsupported
11179 inherit_rpath=no
11180 link_all_deplibs=unknown
11181 module_cmds=
11182 module_expsym_cmds=
11183 old_archive_from_new_cmds=
11184 old_archive_from_expsyms_cmds=
11185 thread_safe_flag_spec=
11186 whole_archive_flag_spec=
11187 # include_expsyms should be a list of space-separated symbols to be *always*
11188 # included in the symbol list
11189 include_expsyms=
11190 # exclude_expsyms can be an extended regexp of symbols to exclude
11191 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11192 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11193 # as well as any symbol that contains `d'.
11194 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11195 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11196 # platforms (ab)use it in PIC code, but their linkers get confused if
11197 # the symbol is explicitly referenced. Since portable code cannot
11198 # rely on this symbol name, it's probably fine to never include it in
11199 # preloaded symbol tables.
11200 # Exclude shared library initialization/finalization symbols.
11201 extract_expsyms_cmds=
11203 case $host_os in
11204 cygwin* | mingw* | pw32* | cegcc*)
11205 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11206 # When not using gcc, we currently assume that we are using
11207 # Microsoft Visual C++.
11208 if test "$GCC" != yes; then
11209 with_gnu_ld=no
11212 interix*)
11213 # we just hope/assume this is gcc and not c89 (= MSVC++)
11214 with_gnu_ld=yes
11216 openbsd*)
11217 with_gnu_ld=no
11219 esac
11221 ld_shlibs=yes
11223 # On some targets, GNU ld is compatible enough with the native linker
11224 # that we're better off using the native interface for both.
11225 lt_use_gnu_ld_interface=no
11226 if test "$with_gnu_ld" = yes; then
11227 case $host_os in
11228 aix*)
11229 # The AIX port of GNU ld has always aspired to compatibility
11230 # with the native linker. However, as the warning in the GNU ld
11231 # block says, versions before 2.19.5* couldn't really create working
11232 # shared libraries, regardless of the interface used.
11233 case `$LD -v 2>&1` in
11234 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11235 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11236 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11238 lt_use_gnu_ld_interface=yes
11240 esac
11243 lt_use_gnu_ld_interface=yes
11245 esac
11248 if test "$lt_use_gnu_ld_interface" = yes; then
11249 # If archive_cmds runs LD, not CC, wlarc should be empty
11250 wlarc='${wl}'
11252 # Set some defaults for GNU ld with shared library support. These
11253 # are reset later if shared libraries are not supported. Putting them
11254 # here allows them to be overridden if necessary.
11255 runpath_var=LD_RUN_PATH
11256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11257 export_dynamic_flag_spec='${wl}--export-dynamic'
11258 # ancient GNU ld didn't support --whole-archive et. al.
11259 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11260 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11261 else
11262 whole_archive_flag_spec=
11264 supports_anon_versioning=no
11265 case `$LD -v 2>&1` in
11266 *GNU\ gold*) supports_anon_versioning=yes ;;
11267 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11268 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11269 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11270 *\ 2.11.*) ;; # other 2.11 versions
11271 *) supports_anon_versioning=yes ;;
11272 esac
11274 # See if GNU ld supports shared libraries.
11275 case $host_os in
11276 aix[3-9]*)
11277 # On AIX/PPC, the GNU linker is very broken
11278 if test "$host_cpu" != ia64; then
11279 ld_shlibs=no
11280 cat <<_LT_EOF 1>&2
11282 *** Warning: the GNU linker, at least up to release 2.19, is reported
11283 *** to be unable to reliably create shared libraries on AIX.
11284 *** Therefore, libtool is disabling shared libraries support. If you
11285 *** really care for shared libraries, you may want to install binutils
11286 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11287 *** You will then need to restart the configuration process.
11289 _LT_EOF
11293 amigaos*)
11294 case $host_cpu in
11295 powerpc)
11296 # see comment about AmigaOS4 .so support
11297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11298 archive_expsym_cmds=''
11300 m68k)
11301 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)'
11302 hardcode_libdir_flag_spec='-L$libdir'
11303 hardcode_minus_L=yes
11305 esac
11308 beos*)
11309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11310 allow_undefined_flag=unsupported
11311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11312 # support --undefined. This deserves some investigation. FIXME
11313 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11314 else
11315 ld_shlibs=no
11319 cygwin* | mingw* | pw32* | cegcc*)
11320 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11321 # as there is no search path for DLLs.
11322 hardcode_libdir_flag_spec='-L$libdir'
11323 export_dynamic_flag_spec='${wl}--export-all-symbols'
11324 allow_undefined_flag=unsupported
11325 always_export_symbols=no
11326 enable_shared_with_static_runtimes=yes
11327 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11329 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11331 # If the export-symbols file already is a .def file (1st line
11332 # is EXPORTS), use it as is; otherwise, prepend...
11333 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11334 cp $export_symbols $output_objdir/$soname.def;
11335 else
11336 echo EXPORTS > $output_objdir/$soname.def;
11337 cat $export_symbols >> $output_objdir/$soname.def;
11339 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11340 else
11341 ld_shlibs=no
11345 haiku*)
11346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11347 link_all_deplibs=yes
11350 interix[3-9]*)
11351 hardcode_direct=no
11352 hardcode_shlibpath_var=no
11353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11354 export_dynamic_flag_spec='${wl}-E'
11355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11356 # Instead, shared libraries are loaded at an image base (0x10000000 by
11357 # default) and relocated if they conflict, which is a slow very memory
11358 # consuming and fragmenting process. To avoid this, we pick a random,
11359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11360 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11361 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11362 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'
11365 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
11366 tmp_diet=no
11367 if test "$host_os" = linux-dietlibc; then
11368 case $cc_basename in
11369 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11370 esac
11372 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11373 && test "$tmp_diet" = no
11374 then
11375 tmp_addflag=' $pic_flag'
11376 tmp_sharedflag='-shared'
11377 case $cc_basename,$host_cpu in
11378 pgcc*) # Portland Group C compiler
11379 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'
11380 tmp_addflag=' $pic_flag'
11382 pgf77* | pgf90* | pgf95* | pgfortran*)
11383 # Portland Group f77 and f90 compilers
11384 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'
11385 tmp_addflag=' $pic_flag -Mnomain' ;;
11386 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11387 tmp_addflag=' -i_dynamic' ;;
11388 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11389 tmp_addflag=' -i_dynamic -nofor_main' ;;
11390 ifc* | ifort*) # Intel Fortran compiler
11391 tmp_addflag=' -nofor_main' ;;
11392 lf95*) # Lahey Fortran 8.1
11393 whole_archive_flag_spec=
11394 tmp_sharedflag='--shared' ;;
11395 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11396 tmp_sharedflag='-qmkshrobj'
11397 tmp_addflag= ;;
11398 nvcc*) # Cuda Compiler Driver 2.2
11399 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'
11400 compiler_needs_object=yes
11402 esac
11403 case `$CC -V 2>&1 | sed 5q` in
11404 *Sun\ C*) # Sun C 5.9
11405 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'
11406 compiler_needs_object=yes
11407 tmp_sharedflag='-G' ;;
11408 *Sun\ F*) # Sun Fortran 8.3
11409 tmp_sharedflag='-G' ;;
11410 esac
11411 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11413 if test "x$supports_anon_versioning" = xyes; then
11414 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11415 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11416 echo "local: *; };" >> $output_objdir/$libname.ver~
11417 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11420 case $cc_basename in
11421 xlf* | bgf* | bgxlf* | mpixlf*)
11422 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11423 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11424 hardcode_libdir_flag_spec=
11425 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11426 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11427 if test "x$supports_anon_versioning" = xyes; then
11428 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11430 echo "local: *; };" >> $output_objdir/$libname.ver~
11431 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11434 esac
11435 else
11436 ld_shlibs=no
11440 netbsd*)
11441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11442 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11443 wlarc=
11444 else
11445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11450 solaris*)
11451 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11452 ld_shlibs=no
11453 cat <<_LT_EOF 1>&2
11455 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11456 *** create shared libraries on Solaris systems. Therefore, libtool
11457 *** is disabling shared libraries support. We urge you to upgrade GNU
11458 *** binutils to release 2.9.1 or newer. Another option is to modify
11459 *** your PATH or compiler configuration so that the native linker is
11460 *** used, and then restart.
11462 _LT_EOF
11463 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11466 else
11467 ld_shlibs=no
11471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11472 case `$LD -v 2>&1` in
11473 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11474 ld_shlibs=no
11475 cat <<_LT_EOF 1>&2
11477 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11478 *** reliably create shared libraries on SCO systems. Therefore, libtool
11479 *** is disabling shared libraries support. We urge you to upgrade GNU
11480 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11481 *** your PATH or compiler configuration so that the native linker is
11482 *** used, and then restart.
11484 _LT_EOF
11487 # For security reasons, it is highly recommended that you always
11488 # use absolute paths for naming shared libraries, and exclude the
11489 # DT_RUNPATH tag from executables and libraries. But doing so
11490 # requires that you compile everything twice, which is a pain.
11491 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11495 else
11496 ld_shlibs=no
11499 esac
11502 sunos4*)
11503 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11504 wlarc=
11505 hardcode_direct=yes
11506 hardcode_shlibpath_var=no
11510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11512 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11513 else
11514 ld_shlibs=no
11517 esac
11519 if test "$ld_shlibs" = no; then
11520 runpath_var=
11521 hardcode_libdir_flag_spec=
11522 export_dynamic_flag_spec=
11523 whole_archive_flag_spec=
11525 else
11526 # PORTME fill in a description of your system's linker (not GNU ld)
11527 case $host_os in
11528 aix3*)
11529 allow_undefined_flag=unsupported
11530 always_export_symbols=yes
11531 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'
11532 # Note: this linker hardcodes the directories in LIBPATH if there
11533 # are no directories specified by -L.
11534 hardcode_minus_L=yes
11535 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11536 # Neither direct hardcoding nor static linking is supported with a
11537 # broken collect2.
11538 hardcode_direct=unsupported
11542 aix[4-9]*)
11543 if test "$host_cpu" = ia64; then
11544 # On IA64, the linker does run time linking by default, so we don't
11545 # have to do anything special.
11546 aix_use_runtimelinking=no
11547 exp_sym_flag='-Bexport'
11548 no_entry_flag=""
11549 else
11550 # If we're using GNU nm, then we don't want the "-C" option.
11551 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11552 # Also, AIX nm treats weak defined symbols like other global
11553 # defined symbols, whereas GNU nm marks them as "W".
11554 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11555 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'
11556 else
11557 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11559 aix_use_runtimelinking=no
11561 # Test if we are trying to use run time linking or normal
11562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11563 # need to do runtime linking.
11564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11565 for ld_flag in $LDFLAGS; do
11566 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11567 aix_use_runtimelinking=yes
11568 break
11570 done
11572 esac
11574 exp_sym_flag='-bexport'
11575 no_entry_flag='-bnoentry'
11578 # When large executables or shared objects are built, AIX ld can
11579 # have problems creating the table of contents. If linking a library
11580 # or program results in "error TOC overflow" add -mminimal-toc to
11581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11584 archive_cmds=''
11585 hardcode_direct=yes
11586 hardcode_direct_absolute=yes
11587 hardcode_libdir_separator=':'
11588 link_all_deplibs=yes
11589 file_list_spec='${wl}-f,'
11591 if test "$GCC" = yes; then
11592 case $host_os in aix4.[012]|aix4.[012].*)
11593 # We only want to do this on AIX 4.2 and lower, the check
11594 # below for broken collect2 doesn't work under 4.3+
11595 collect2name=`${CC} -print-prog-name=collect2`
11596 if test -f "$collect2name" &&
11597 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11598 then
11599 # We have reworked collect2
11601 else
11602 # We have old collect2
11603 hardcode_direct=unsupported
11604 # It fails to find uninstalled libraries when the uninstalled
11605 # path is not listed in the libpath. Setting hardcode_minus_L
11606 # to unsupported forces relinking
11607 hardcode_minus_L=yes
11608 hardcode_libdir_flag_spec='-L$libdir'
11609 hardcode_libdir_separator=
11612 esac
11613 shared_flag='-shared'
11614 if test "$aix_use_runtimelinking" = yes; then
11615 shared_flag="$shared_flag "'${wl}-G'
11617 else
11618 # not using gcc
11619 if test "$host_cpu" = ia64; then
11620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11621 # chokes on -Wl,-G. The following line is correct:
11622 shared_flag='-G'
11623 else
11624 if test "$aix_use_runtimelinking" = yes; then
11625 shared_flag='${wl}-G'
11626 else
11627 shared_flag='${wl}-bM:SRE'
11632 export_dynamic_flag_spec='${wl}-bexpall'
11633 # It seems that -bexpall does not export symbols beginning with
11634 # underscore (_), so it is better to generate a list of symbols to export.
11635 always_export_symbols=yes
11636 if test "$aix_use_runtimelinking" = yes; then
11637 # Warning - without using the other runtime loading flags (-brtl),
11638 # -berok will link without error, but may produce a broken library.
11639 allow_undefined_flag='-berok'
11640 # Determine the default libpath from the value encoded in an
11641 # empty executable.
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11646 main ()
11650 return 0;
11652 _ACEOF
11653 if ac_fn_c_try_link "$LINENO"; then :
11655 lt_aix_libpath_sed='
11656 /Import File Strings/,/^$/ {
11657 /^0/ {
11658 s/^0 *\(.*\)$/\1/
11662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11663 # Check for a 64-bit object if we didn't find anything.
11664 if test -z "$aix_libpath"; then
11665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11673 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"
11674 else
11675 if test "$host_cpu" = ia64; then
11676 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11677 allow_undefined_flag="-z nodefs"
11678 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"
11679 else
11680 # Determine the default libpath from the value encoded in an
11681 # empty executable.
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11686 main ()
11690 return 0;
11692 _ACEOF
11693 if ac_fn_c_try_link "$LINENO"; then :
11695 lt_aix_libpath_sed='
11696 /Import File Strings/,/^$/ {
11697 /^0/ {
11698 s/^0 *\(.*\)$/\1/
11702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11703 # Check for a 64-bit object if we didn't find anything.
11704 if test -z "$aix_libpath"; then
11705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11708 rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11713 # Warning - without using the other run time loading flags,
11714 # -berok will link without error, but may produce a broken library.
11715 no_undefined_flag=' ${wl}-bernotok'
11716 allow_undefined_flag=' ${wl}-berok'
11717 if test "$with_gnu_ld" = yes; then
11718 # We only use this code for GNU lds that support --whole-archive.
11719 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11720 else
11721 # Exported symbols can be pulled into shared objects from archives
11722 whole_archive_flag_spec='$convenience'
11724 archive_cmds_need_lc=yes
11725 # This is similar to how AIX traditionally builds its shared libraries.
11726 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'
11731 amigaos*)
11732 case $host_cpu in
11733 powerpc)
11734 # see comment about AmigaOS4 .so support
11735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11736 archive_expsym_cmds=''
11738 m68k)
11739 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)'
11740 hardcode_libdir_flag_spec='-L$libdir'
11741 hardcode_minus_L=yes
11743 esac
11746 bsdi[45]*)
11747 export_dynamic_flag_spec=-rdynamic
11750 cygwin* | mingw* | pw32* | cegcc*)
11751 # When not using gcc, we currently assume that we are using
11752 # Microsoft Visual C++.
11753 # hardcode_libdir_flag_spec is actually meaningless, as there is
11754 # no search path for DLLs.
11755 hardcode_libdir_flag_spec=' '
11756 allow_undefined_flag=unsupported
11757 # Tell ltmain to make .lib files, not .a files.
11758 libext=lib
11759 # Tell ltmain to make .dll files, not .so files.
11760 shrext_cmds=".dll"
11761 # FIXME: Setting linknames here is a bad hack.
11762 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11763 # The linker will automatically build a .lib file if we build a DLL.
11764 old_archive_from_new_cmds='true'
11765 # FIXME: Should let the user specify the lib program.
11766 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11767 fix_srcfile_path='`cygpath -w "$srcfile"`'
11768 enable_shared_with_static_runtimes=yes
11771 darwin* | rhapsody*)
11774 archive_cmds_need_lc=no
11775 hardcode_direct=no
11776 hardcode_automatic=yes
11777 hardcode_shlibpath_var=unsupported
11778 if test "$lt_cv_ld_force_load" = "yes"; then
11779 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\"`'
11780 else
11781 whole_archive_flag_spec=''
11783 link_all_deplibs=yes
11784 allow_undefined_flag="$_lt_dar_allow_undefined"
11785 case $cc_basename in
11786 ifort*) _lt_dar_can_shared=yes ;;
11787 *) _lt_dar_can_shared=$GCC ;;
11788 esac
11789 if test "$_lt_dar_can_shared" = "yes"; then
11790 output_verbose_link_cmd=func_echo_all
11791 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11792 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11793 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}"
11794 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}"
11796 else
11797 ld_shlibs=no
11802 dgux*)
11803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11804 hardcode_libdir_flag_spec='-L$libdir'
11805 hardcode_shlibpath_var=no
11808 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11809 # support. Future versions do this automatically, but an explicit c++rt0.o
11810 # does not break anything, and helps significantly (at the cost of a little
11811 # extra space).
11812 freebsd2.2*)
11813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11814 hardcode_libdir_flag_spec='-R$libdir'
11815 hardcode_direct=yes
11816 hardcode_shlibpath_var=no
11819 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11820 freebsd2.*)
11821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11822 hardcode_direct=yes
11823 hardcode_minus_L=yes
11824 hardcode_shlibpath_var=no
11827 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11828 freebsd* | dragonfly*)
11829 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11830 hardcode_libdir_flag_spec='-R$libdir'
11831 hardcode_direct=yes
11832 hardcode_shlibpath_var=no
11835 hpux9*)
11836 if test "$GCC" = yes; then
11837 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'
11838 else
11839 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'
11841 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11842 hardcode_libdir_separator=:
11843 hardcode_direct=yes
11845 # hardcode_minus_L: Not really in the search PATH,
11846 # but as the default location of the library.
11847 hardcode_minus_L=yes
11848 export_dynamic_flag_spec='${wl}-E'
11851 hpux10*)
11852 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11854 else
11855 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11857 if test "$with_gnu_ld" = no; then
11858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11859 hardcode_libdir_flag_spec_ld='+b $libdir'
11860 hardcode_libdir_separator=:
11861 hardcode_direct=yes
11862 hardcode_direct_absolute=yes
11863 export_dynamic_flag_spec='${wl}-E'
11864 # hardcode_minus_L: Not really in the search PATH,
11865 # but as the default location of the library.
11866 hardcode_minus_L=yes
11870 hpux11*)
11871 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11872 case $host_cpu in
11873 hppa*64*)
11874 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11876 ia64*)
11877 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11880 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11882 esac
11883 else
11884 case $host_cpu in
11885 hppa*64*)
11886 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11888 ia64*)
11889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11893 # Older versions of the 11.00 compiler do not understand -b yet
11894 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11896 $as_echo_n "checking if $CC understands -b... " >&6; }
11897 if ${lt_cv_prog_compiler__b+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 lt_cv_prog_compiler__b=no
11901 save_LDFLAGS="$LDFLAGS"
11902 LDFLAGS="$LDFLAGS -b"
11903 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11904 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11905 # The linker can only warn and ignore the option if not recognized
11906 # So say no if there are warnings
11907 if test -s conftest.err; then
11908 # Append any errors to the config.log.
11909 cat conftest.err 1>&5
11910 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11912 if diff conftest.exp conftest.er2 >/dev/null; then
11913 lt_cv_prog_compiler__b=yes
11915 else
11916 lt_cv_prog_compiler__b=yes
11919 $RM -r conftest*
11920 LDFLAGS="$save_LDFLAGS"
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11924 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11926 if test x"$lt_cv_prog_compiler__b" = xyes; then
11927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11928 else
11929 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11933 esac
11935 if test "$with_gnu_ld" = no; then
11936 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11937 hardcode_libdir_separator=:
11939 case $host_cpu in
11940 hppa*64*|ia64*)
11941 hardcode_direct=no
11942 hardcode_shlibpath_var=no
11945 hardcode_direct=yes
11946 hardcode_direct_absolute=yes
11947 export_dynamic_flag_spec='${wl}-E'
11949 # hardcode_minus_L: Not really in the search PATH,
11950 # but as the default location of the library.
11951 hardcode_minus_L=yes
11953 esac
11957 irix5* | irix6* | nonstopux*)
11958 if test "$GCC" = yes; then
11959 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'
11960 # Try to use the -exported_symbol ld option, if it does not
11961 # work, assume that -exports_file does not work either and
11962 # implicitly export all symbols.
11963 save_LDFLAGS="$LDFLAGS"
11964 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967 int foo(void) {}
11968 _ACEOF
11969 if ac_fn_c_try_link "$LINENO"; then :
11970 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'
11973 rm -f core conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11975 LDFLAGS="$save_LDFLAGS"
11976 else
11977 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'
11978 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'
11980 archive_cmds_need_lc='no'
11981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11982 hardcode_libdir_separator=:
11983 inherit_rpath=yes
11984 link_all_deplibs=yes
11987 netbsd*)
11988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11990 else
11991 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11993 hardcode_libdir_flag_spec='-R$libdir'
11994 hardcode_direct=yes
11995 hardcode_shlibpath_var=no
11998 newsos6)
11999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12000 hardcode_direct=yes
12001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12002 hardcode_libdir_separator=:
12003 hardcode_shlibpath_var=no
12006 *nto* | *qnx*)
12009 openbsd*)
12010 if test -f /usr/libexec/ld.so; then
12011 hardcode_direct=yes
12012 hardcode_shlibpath_var=no
12013 hardcode_direct_absolute=yes
12014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12016 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12018 export_dynamic_flag_spec='${wl}-E'
12019 else
12020 case $host_os in
12021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12023 hardcode_libdir_flag_spec='-R$libdir'
12026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12027 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12029 esac
12031 else
12032 ld_shlibs=no
12036 os2*)
12037 hardcode_libdir_flag_spec='-L$libdir'
12038 hardcode_minus_L=yes
12039 allow_undefined_flag=unsupported
12040 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'
12041 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12044 osf3*)
12045 if test "$GCC" = yes; then
12046 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12047 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'
12048 else
12049 allow_undefined_flag=' -expect_unresolved \*'
12050 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'
12052 archive_cmds_need_lc='no'
12053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12054 hardcode_libdir_separator=:
12057 osf4* | osf5*) # as osf3* with the addition of -msym flag
12058 if test "$GCC" = yes; then
12059 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12060 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'
12061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12062 else
12063 allow_undefined_flag=' -expect_unresolved \*'
12064 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'
12065 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~
12066 $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'
12068 # Both c and cxx compiler support -rpath directly
12069 hardcode_libdir_flag_spec='-rpath $libdir'
12071 archive_cmds_need_lc='no'
12072 hardcode_libdir_separator=:
12075 solaris*)
12076 no_undefined_flag=' -z defs'
12077 if test "$GCC" = yes; then
12078 wlarc='${wl}'
12079 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12081 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12082 else
12083 case `$CC -V 2>&1` in
12084 *"Compilers 5.0"*)
12085 wlarc=''
12086 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12087 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12088 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12091 wlarc='${wl}'
12092 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12094 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12096 esac
12098 hardcode_libdir_flag_spec='-R$libdir'
12099 hardcode_shlibpath_var=no
12100 case $host_os in
12101 solaris2.[0-5] | solaris2.[0-5].*) ;;
12103 # The compiler driver will combine and reorder linker options,
12104 # but understands `-z linker_flag'. GCC discards it without `$wl',
12105 # but is careful enough not to reorder.
12106 # Supported since Solaris 2.6 (maybe 2.5.1?)
12107 if test "$GCC" = yes; then
12108 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12109 else
12110 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12113 esac
12114 link_all_deplibs=yes
12117 sunos4*)
12118 if test "x$host_vendor" = xsequent; then
12119 # Use $CC to link under sequent, because it throws in some extra .o
12120 # files that make .init and .fini sections work.
12121 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12122 else
12123 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12125 hardcode_libdir_flag_spec='-L$libdir'
12126 hardcode_direct=yes
12127 hardcode_minus_L=yes
12128 hardcode_shlibpath_var=no
12131 sysv4)
12132 case $host_vendor in
12133 sni)
12134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12135 hardcode_direct=yes # is this really true???
12137 siemens)
12138 ## LD is ld it makes a PLAMLIB
12139 ## CC just makes a GrossModule.
12140 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12141 reload_cmds='$CC -r -o $output$reload_objs'
12142 hardcode_direct=no
12144 motorola)
12145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12146 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12148 esac
12149 runpath_var='LD_RUN_PATH'
12150 hardcode_shlibpath_var=no
12153 sysv4.3*)
12154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12155 hardcode_shlibpath_var=no
12156 export_dynamic_flag_spec='-Bexport'
12159 sysv4*MP*)
12160 if test -d /usr/nec; then
12161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12162 hardcode_shlibpath_var=no
12163 runpath_var=LD_RUN_PATH
12164 hardcode_runpath_var=yes
12165 ld_shlibs=yes
12169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12170 no_undefined_flag='${wl}-z,text'
12171 archive_cmds_need_lc=no
12172 hardcode_shlibpath_var=no
12173 runpath_var='LD_RUN_PATH'
12175 if test "$GCC" = yes; then
12176 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12177 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12178 else
12179 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12180 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12184 sysv5* | sco3.2v5* | sco5v6*)
12185 # Note: We can NOT use -z defs as we might desire, because we do not
12186 # link with -lc, and that would cause any symbols used from libc to
12187 # always be unresolved, which means just about no library would
12188 # ever link correctly. If we're not using GNU ld we use -z text
12189 # though, which does catch some bad symbols but isn't as heavy-handed
12190 # as -z defs.
12191 no_undefined_flag='${wl}-z,text'
12192 allow_undefined_flag='${wl}-z,nodefs'
12193 archive_cmds_need_lc=no
12194 hardcode_shlibpath_var=no
12195 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12196 hardcode_libdir_separator=':'
12197 link_all_deplibs=yes
12198 export_dynamic_flag_spec='${wl}-Bexport'
12199 runpath_var='LD_RUN_PATH'
12201 if test "$GCC" = yes; then
12202 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12203 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12204 else
12205 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12206 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12210 uts4*)
12211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12212 hardcode_libdir_flag_spec='-L$libdir'
12213 hardcode_shlibpath_var=no
12217 ld_shlibs=no
12219 esac
12221 if test x$host_vendor = xsni; then
12222 case $host in
12223 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12224 export_dynamic_flag_spec='${wl}-Blargedynsym'
12226 esac
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12231 $as_echo "$ld_shlibs" >&6; }
12232 test "$ld_shlibs" = no && can_build_shared=no
12234 with_gnu_ld=$with_gnu_ld
12251 # Do we need to explicitly link libc?
12253 case "x$archive_cmds_need_lc" in
12254 x|xyes)
12255 # Assume -lc should be added
12256 archive_cmds_need_lc=yes
12258 if test "$enable_shared" = yes && test "$GCC" = yes; then
12259 case $archive_cmds in
12260 *'~'*)
12261 # FIXME: we may have to deal with multi-command sequences.
12263 '$CC '*)
12264 # Test whether the compiler implicitly links with -lc since on some
12265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12266 # to ld, don't add -lc before -lgcc.
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12268 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12269 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12270 $as_echo_n "(cached) " >&6
12271 else
12272 $RM conftest*
12273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12276 (eval $ac_compile) 2>&5
12277 ac_status=$?
12278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12279 test $ac_status = 0; } 2>conftest.err; then
12280 soname=conftest
12281 lib=conftest
12282 libobjs=conftest.$ac_objext
12283 deplibs=
12284 wl=$lt_prog_compiler_wl
12285 pic_flag=$lt_prog_compiler_pic
12286 compiler_flags=-v
12287 linker_flags=-v
12288 verstring=
12289 output_objdir=.
12290 libname=conftest
12291 lt_save_allow_undefined_flag=$allow_undefined_flag
12292 allow_undefined_flag=
12293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12294 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12295 ac_status=$?
12296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12297 test $ac_status = 0; }
12298 then
12299 lt_cv_archive_cmds_need_lc=no
12300 else
12301 lt_cv_archive_cmds_need_lc=yes
12303 allow_undefined_flag=$lt_save_allow_undefined_flag
12304 else
12305 cat conftest.err 1>&5
12307 $RM conftest*
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12311 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12312 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12314 esac
12317 esac
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12476 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12478 if test "$GCC" = yes; then
12479 case $host_os in
12480 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12481 *) lt_awk_arg="/^libraries:/" ;;
12482 esac
12483 case $host_os in
12484 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12485 *) lt_sed_strip_eq="s,=/,/,g" ;;
12486 esac
12487 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12488 case $lt_search_path_spec in
12489 *\;*)
12490 # if the path contains ";" then we assume it to be the separator
12491 # otherwise default to the standard path separator (i.e. ":") - it is
12492 # assumed that no part of a normal pathname contains ";" but that should
12493 # okay in the real world where ";" in dirpaths is itself problematic.
12494 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12497 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12499 esac
12500 # Ok, now we have the path, separated by spaces, we can step through it
12501 # and add multilib dir if necessary.
12502 lt_tmp_lt_search_path_spec=
12503 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12504 for lt_sys_path in $lt_search_path_spec; do
12505 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12506 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12507 else
12508 test -d "$lt_sys_path" && \
12509 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12511 done
12512 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12513 BEGIN {RS=" "; FS="/|\n";} {
12514 lt_foo="";
12515 lt_count=0;
12516 for (lt_i = NF; lt_i > 0; lt_i--) {
12517 if ($lt_i != "" && $lt_i != ".") {
12518 if ($lt_i == "..") {
12519 lt_count++;
12520 } else {
12521 if (lt_count == 0) {
12522 lt_foo="/" $lt_i lt_foo;
12523 } else {
12524 lt_count--;
12529 if (lt_foo != "") { lt_freq[lt_foo]++; }
12530 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12532 # AWK program above erroneously prepends '/' to C:/dos/paths
12533 # for these hosts.
12534 case $host_os in
12535 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12536 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12537 esac
12538 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12539 else
12540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12542 library_names_spec=
12543 libname_spec='lib$name'
12544 soname_spec=
12545 shrext_cmds=".so"
12546 postinstall_cmds=
12547 postuninstall_cmds=
12548 finish_cmds=
12549 finish_eval=
12550 shlibpath_var=
12551 shlibpath_overrides_runpath=unknown
12552 version_type=none
12553 dynamic_linker="$host_os ld.so"
12554 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12555 need_lib_prefix=unknown
12556 hardcode_into_libs=no
12558 # when you set need_version to no, make sure it does not cause -set_version
12559 # flags to be left without arguments
12560 need_version=unknown
12562 case $host_os in
12563 aix3*)
12564 version_type=linux
12565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12566 shlibpath_var=LIBPATH
12568 # AIX 3 has no versioning support, so we append a major version to the name.
12569 soname_spec='${libname}${release}${shared_ext}$major'
12572 aix[4-9]*)
12573 version_type=linux
12574 need_lib_prefix=no
12575 need_version=no
12576 hardcode_into_libs=yes
12577 if test "$host_cpu" = ia64; then
12578 # AIX 5 supports IA64
12579 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12580 shlibpath_var=LD_LIBRARY_PATH
12581 else
12582 # With GCC up to 2.95.x, collect2 would create an import file
12583 # for dependence libraries. The import file would start with
12584 # the line `#! .'. This would cause the generated library to
12585 # depend on `.', always an invalid library. This was fixed in
12586 # development snapshots of GCC prior to 3.0.
12587 case $host_os in
12588 aix4 | aix4.[01] | aix4.[01].*)
12589 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12590 echo ' yes '
12591 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12593 else
12594 can_build_shared=no
12597 esac
12598 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12599 # soname into executable. Probably we can add versioning support to
12600 # collect2, so additional links can be useful in future.
12601 if test "$aix_use_runtimelinking" = yes; then
12602 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12603 # instead of lib<name>.a to let people know that these are not
12604 # typical AIX shared libraries.
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606 else
12607 # We preserve .a as extension for shared libraries through AIX4.2
12608 # and later when we are not doing run time linking.
12609 library_names_spec='${libname}${release}.a $libname.a'
12610 soname_spec='${libname}${release}${shared_ext}$major'
12612 shlibpath_var=LIBPATH
12616 amigaos*)
12617 case $host_cpu in
12618 powerpc)
12619 # Since July 2007 AmigaOS4 officially supports .so libraries.
12620 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12623 m68k)
12624 library_names_spec='$libname.ixlibrary $libname.a'
12625 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12626 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'
12628 esac
12631 beos*)
12632 library_names_spec='${libname}${shared_ext}'
12633 dynamic_linker="$host_os ld.so"
12634 shlibpath_var=LIBRARY_PATH
12637 bsdi[45]*)
12638 version_type=linux
12639 need_version=no
12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12641 soname_spec='${libname}${release}${shared_ext}$major'
12642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12643 shlibpath_var=LD_LIBRARY_PATH
12644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12646 # the default ld.so.conf also contains /usr/contrib/lib and
12647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12648 # libtool to hard-code these into programs
12651 cygwin* | mingw* | pw32* | cegcc*)
12652 version_type=windows
12653 shrext_cmds=".dll"
12654 need_version=no
12655 need_lib_prefix=no
12657 case $GCC,$host_os in
12658 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12659 library_names_spec='$libname.dll.a'
12660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12661 postinstall_cmds='base_file=`basename \${file}`~
12662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12663 dldir=$destdir/`dirname \$dlpath`~
12664 test -d \$dldir || mkdir -p \$dldir~
12665 $install_prog $dir/$dlname \$dldir/$dlname~
12666 chmod a+x \$dldir/$dlname~
12667 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12668 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12671 dlpath=$dir/\$dldll~
12672 $RM \$dlpath'
12673 shlibpath_overrides_runpath=yes
12675 case $host_os in
12676 cygwin*)
12677 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12678 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12682 mingw* | cegcc*)
12683 # MinGW DLLs use traditional 'lib' prefix
12684 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12686 pw32*)
12687 # pw32 DLLs use 'pw' prefix rather than 'lib'
12688 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12690 esac
12694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12696 esac
12697 dynamic_linker='Win32 ld.exe'
12698 # FIXME: first we should search . and the directory the executable is in
12699 shlibpath_var=PATH
12702 darwin* | rhapsody*)
12703 dynamic_linker="$host_os dyld"
12704 version_type=darwin
12705 need_lib_prefix=no
12706 need_version=no
12707 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12708 soname_spec='${libname}${release}${major}$shared_ext'
12709 shlibpath_overrides_runpath=yes
12710 shlibpath_var=DYLD_LIBRARY_PATH
12711 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12713 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12714 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12717 dgux*)
12718 version_type=linux
12719 need_lib_prefix=no
12720 need_version=no
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12722 soname_spec='${libname}${release}${shared_ext}$major'
12723 shlibpath_var=LD_LIBRARY_PATH
12726 freebsd* | dragonfly*)
12727 # DragonFly does not have aout. When/if they implement a new
12728 # versioning mechanism, adjust this.
12729 if test -x /usr/bin/objformat; then
12730 objformat=`/usr/bin/objformat`
12731 else
12732 case $host_os in
12733 freebsd[23].*) objformat=aout ;;
12734 *) objformat=elf ;;
12735 esac
12737 version_type=freebsd-$objformat
12738 case $version_type in
12739 freebsd-elf*)
12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12741 need_version=no
12742 need_lib_prefix=no
12744 freebsd-*)
12745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12746 need_version=yes
12748 esac
12749 shlibpath_var=LD_LIBRARY_PATH
12750 case $host_os in
12751 freebsd2.*)
12752 shlibpath_overrides_runpath=yes
12754 freebsd3.[01]* | freebsdelf3.[01]*)
12755 shlibpath_overrides_runpath=yes
12756 hardcode_into_libs=yes
12758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12760 shlibpath_overrides_runpath=no
12761 hardcode_into_libs=yes
12763 *) # from 4.6 on, and DragonFly
12764 shlibpath_overrides_runpath=yes
12765 hardcode_into_libs=yes
12767 esac
12770 haiku*)
12771 version_type=linux
12772 need_lib_prefix=no
12773 need_version=no
12774 dynamic_linker="$host_os runtime_loader"
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12776 soname_spec='${libname}${release}${shared_ext}$major'
12777 shlibpath_var=LIBRARY_PATH
12778 shlibpath_overrides_runpath=yes
12779 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12780 hardcode_into_libs=yes
12783 hpux9* | hpux10* | hpux11*)
12784 # Give a soname corresponding to the major version so that dld.sl refuses to
12785 # link against other versions.
12786 version_type=sunos
12787 need_lib_prefix=no
12788 need_version=no
12789 case $host_cpu in
12790 ia64*)
12791 shrext_cmds='.so'
12792 hardcode_into_libs=yes
12793 dynamic_linker="$host_os dld.so"
12794 shlibpath_var=LD_LIBRARY_PATH
12795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 if test "X$HPUX_IA64_MODE" = X32; then
12799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12800 else
12801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12805 hppa*64*)
12806 shrext_cmds='.sl'
12807 hardcode_into_libs=yes
12808 dynamic_linker="$host_os dld.sl"
12809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12812 soname_spec='${libname}${release}${shared_ext}$major'
12813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12817 shrext_cmds='.sl'
12818 dynamic_linker="$host_os dld.sl"
12819 shlibpath_var=SHLIB_PATH
12820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12822 soname_spec='${libname}${release}${shared_ext}$major'
12824 esac
12825 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12826 postinstall_cmds='chmod 555 $lib'
12827 # or fails outright, so override atomically:
12828 install_override_mode=555
12831 interix[3-9]*)
12832 version_type=linux
12833 need_lib_prefix=no
12834 need_version=no
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12836 soname_spec='${libname}${release}${shared_ext}$major'
12837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12838 shlibpath_var=LD_LIBRARY_PATH
12839 shlibpath_overrides_runpath=no
12840 hardcode_into_libs=yes
12843 irix5* | irix6* | nonstopux*)
12844 case $host_os in
12845 nonstopux*) version_type=nonstopux ;;
12847 if test "$lt_cv_prog_gnu_ld" = yes; then
12848 version_type=linux
12849 else
12850 version_type=irix
12851 fi ;;
12852 esac
12853 need_lib_prefix=no
12854 need_version=no
12855 soname_spec='${libname}${release}${shared_ext}$major'
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12857 case $host_os in
12858 irix5* | nonstopux*)
12859 libsuff= shlibsuff=
12862 case $LD in # libtool.m4 will add one of these switches to LD
12863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12864 libsuff= shlibsuff= libmagic=32-bit;;
12865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12866 libsuff=32 shlibsuff=N32 libmagic=N32;;
12867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12869 *) libsuff= shlibsuff= libmagic=never-match;;
12870 esac
12872 esac
12873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12874 shlibpath_overrides_runpath=no
12875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12877 hardcode_into_libs=yes
12880 # No shared lib support for Linux oldld, aout, or coff.
12881 linux*oldld* | linux*aout* | linux*coff*)
12882 dynamic_linker=no
12885 # This must be Linux ELF.
12887 # uclinux* changes (here and below) have been submitted to the libtool
12888 # project, but have not yet been accepted: they are GCC-local changes
12889 # for the time being. (See
12890 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12891 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
12892 version_type=linux
12893 need_lib_prefix=no
12894 need_version=no
12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896 soname_spec='${libname}${release}${shared_ext}$major'
12897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12898 shlibpath_var=LD_LIBRARY_PATH
12899 shlibpath_overrides_runpath=no
12901 # Some binutils ld are patched to set DT_RUNPATH
12902 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 lt_cv_shlibpath_overrides_runpath=no
12906 save_LDFLAGS=$LDFLAGS
12907 save_libdir=$libdir
12908 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12909 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12914 main ()
12918 return 0;
12920 _ACEOF
12921 if ac_fn_c_try_link "$LINENO"; then :
12922 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12923 lt_cv_shlibpath_overrides_runpath=yes
12926 rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928 LDFLAGS=$save_LDFLAGS
12929 libdir=$save_libdir
12933 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12935 # This implies no fast_install, which is unacceptable.
12936 # Some rework will be needed to allow for fast_install
12937 # before this can be enabled.
12938 hardcode_into_libs=yes
12940 # Append ld.so.conf contents to the search path
12941 if test -f /etc/ld.so.conf; then
12942 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' ' '`
12943 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12946 # We used to test for /lib/ld.so.1 and disable shared libraries on
12947 # powerpc, because MkLinux only supported shared libraries with the
12948 # GNU dynamic linker. Since this was broken with cross compilers,
12949 # most powerpc-linux boxes support dynamic linking these days and
12950 # people can always --disable-shared, the test was removed, and we
12951 # assume the GNU/Linux dynamic linker is in use.
12952 dynamic_linker='GNU/Linux ld.so'
12955 netbsd*)
12956 version_type=sunos
12957 need_lib_prefix=no
12958 need_version=no
12959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12962 dynamic_linker='NetBSD (a.out) ld.so'
12963 else
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12965 soname_spec='${libname}${release}${shared_ext}$major'
12966 dynamic_linker='NetBSD ld.elf_so'
12968 shlibpath_var=LD_LIBRARY_PATH
12969 shlibpath_overrides_runpath=yes
12970 hardcode_into_libs=yes
12973 newsos6)
12974 version_type=linux
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976 shlibpath_var=LD_LIBRARY_PATH
12977 shlibpath_overrides_runpath=yes
12980 *nto* | *qnx*)
12981 version_type=qnx
12982 need_lib_prefix=no
12983 need_version=no
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12985 soname_spec='${libname}${release}${shared_ext}$major'
12986 shlibpath_var=LD_LIBRARY_PATH
12987 shlibpath_overrides_runpath=no
12988 hardcode_into_libs=yes
12989 dynamic_linker='ldqnx.so'
12992 openbsd*)
12993 version_type=sunos
12994 sys_lib_dlsearch_path_spec="/usr/lib"
12995 need_lib_prefix=no
12996 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12997 case $host_os in
12998 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12999 *) need_version=no ;;
13000 esac
13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13003 shlibpath_var=LD_LIBRARY_PATH
13004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13005 case $host_os in
13006 openbsd2.[89] | openbsd2.[89].*)
13007 shlibpath_overrides_runpath=no
13010 shlibpath_overrides_runpath=yes
13012 esac
13013 else
13014 shlibpath_overrides_runpath=yes
13018 os2*)
13019 libname_spec='$name'
13020 shrext_cmds=".dll"
13021 need_lib_prefix=no
13022 library_names_spec='$libname${shared_ext} $libname.a'
13023 dynamic_linker='OS/2 ld.exe'
13024 shlibpath_var=LIBPATH
13027 osf3* | osf4* | osf5*)
13028 version_type=osf
13029 need_lib_prefix=no
13030 need_version=no
13031 soname_spec='${libname}${release}${shared_ext}$major'
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13038 rdos*)
13039 dynamic_linker=no
13042 solaris*)
13043 version_type=linux
13044 need_lib_prefix=no
13045 need_version=no
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047 soname_spec='${libname}${release}${shared_ext}$major'
13048 shlibpath_var=LD_LIBRARY_PATH
13049 shlibpath_overrides_runpath=yes
13050 hardcode_into_libs=yes
13051 # ldd complains unless libraries are executable
13052 postinstall_cmds='chmod +x $lib'
13055 sunos4*)
13056 version_type=sunos
13057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13059 shlibpath_var=LD_LIBRARY_PATH
13060 shlibpath_overrides_runpath=yes
13061 if test "$with_gnu_ld" = yes; then
13062 need_lib_prefix=no
13064 need_version=yes
13067 sysv4 | sysv4.3*)
13068 version_type=linux
13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13070 soname_spec='${libname}${release}${shared_ext}$major'
13071 shlibpath_var=LD_LIBRARY_PATH
13072 case $host_vendor in
13073 sni)
13074 shlibpath_overrides_runpath=no
13075 need_lib_prefix=no
13076 runpath_var=LD_RUN_PATH
13078 siemens)
13079 need_lib_prefix=no
13081 motorola)
13082 need_lib_prefix=no
13083 need_version=no
13084 shlibpath_overrides_runpath=no
13085 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13087 esac
13090 sysv4*MP*)
13091 if test -d /usr/nec ;then
13092 version_type=linux
13093 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13094 soname_spec='$libname${shared_ext}.$major'
13095 shlibpath_var=LD_LIBRARY_PATH
13099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13100 version_type=freebsd-elf
13101 need_lib_prefix=no
13102 need_version=no
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13104 soname_spec='${libname}${release}${shared_ext}$major'
13105 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=yes
13107 hardcode_into_libs=yes
13108 if test "$with_gnu_ld" = yes; then
13109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13110 else
13111 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13112 case $host_os in
13113 sco3.2v5*)
13114 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13116 esac
13118 sys_lib_dlsearch_path_spec='/usr/lib'
13121 tpf*)
13122 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13123 version_type=linux
13124 need_lib_prefix=no
13125 need_version=no
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13127 shlibpath_var=LD_LIBRARY_PATH
13128 shlibpath_overrides_runpath=no
13129 hardcode_into_libs=yes
13132 uts4*)
13133 version_type=linux
13134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13135 soname_spec='${libname}${release}${shared_ext}$major'
13136 shlibpath_var=LD_LIBRARY_PATH
13139 # Shared libraries for VwWorks, >= 7 only at this stage
13140 # and (fpic) still incompatible with "large" code models
13141 # in a few configurations. Only for RTP mode in any case,
13142 # and upon explicit request at configure time.
13143 vxworks7*)
13144 dynamic_linker=no
13145 case ${with_multisubdir}-${enable_shared} in
13146 *large*)
13148 *mrtp*-yes)
13149 version_type=linux
13150 need_lib_prefix=no
13151 need_version=no
13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13153 soname_spec='${libname}${release}${shared_ext}$major'
13154 dynamic_linker="$host_os module_loader"
13156 esac
13159 dynamic_linker=no
13161 esac
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13163 $as_echo "$dynamic_linker" >&6; }
13164 test "$dynamic_linker" = no && can_build_shared=no
13166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13167 if test "$GCC" = yes; then
13168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13171 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13172 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13174 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13175 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13271 hardcode_action=
13272 if test -n "$hardcode_libdir_flag_spec" ||
13273 test -n "$runpath_var" ||
13274 test "X$hardcode_automatic" = "Xyes" ; then
13276 # We can hardcode non-existent directories.
13277 if test "$hardcode_direct" != no &&
13278 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13279 # have to relink, otherwise we might link with an installed library
13280 # when we should be linking with a yet-to-be-installed one
13281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13282 test "$hardcode_minus_L" != no; then
13283 # Linking always hardcodes the temporary library directory.
13284 hardcode_action=relink
13285 else
13286 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13287 hardcode_action=immediate
13289 else
13290 # We cannot hardcode anything, or else we can only hardcode existing
13291 # directories.
13292 hardcode_action=unsupported
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13295 $as_echo "$hardcode_action" >&6; }
13297 if test "$hardcode_action" = relink ||
13298 test "$inherit_rpath" = yes; then
13299 # Fast installation is not supported
13300 enable_fast_install=no
13301 elif test "$shlibpath_overrides_runpath" = yes ||
13302 test "$enable_shared" = no; then
13303 # Fast installation is not necessary
13304 enable_fast_install=needless
13312 if test "x$enable_dlopen" != xyes; then
13313 enable_dlopen=unknown
13314 enable_dlopen_self=unknown
13315 enable_dlopen_self_static=unknown
13316 else
13317 lt_cv_dlopen=no
13318 lt_cv_dlopen_libs=
13320 case $host_os in
13321 beos*)
13322 lt_cv_dlopen="load_add_on"
13323 lt_cv_dlopen_libs=
13324 lt_cv_dlopen_self=yes
13327 mingw* | pw32* | cegcc*)
13328 lt_cv_dlopen="LoadLibrary"
13329 lt_cv_dlopen_libs=
13332 cygwin*)
13333 lt_cv_dlopen="dlopen"
13334 lt_cv_dlopen_libs=
13337 darwin*)
13338 # if libdl is installed we need to link against it
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13340 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13341 if ${ac_cv_lib_dl_dlopen+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 ac_check_lib_save_LIBS=$LIBS
13345 LIBS="-ldl $LIBS"
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13349 /* Override any GCC internal prototype to avoid an error.
13350 Use char because int might match the return type of a GCC
13351 builtin and then its argument prototype would still apply. */
13352 #ifdef __cplusplus
13353 extern "C"
13354 #endif
13355 char dlopen ();
13357 main ()
13359 return dlopen ();
13361 return 0;
13363 _ACEOF
13364 if ac_fn_c_try_link "$LINENO"; then :
13365 ac_cv_lib_dl_dlopen=yes
13366 else
13367 ac_cv_lib_dl_dlopen=no
13369 rm -f core conftest.err conftest.$ac_objext \
13370 conftest$ac_exeext conftest.$ac_ext
13371 LIBS=$ac_check_lib_save_LIBS
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13375 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13377 else
13379 lt_cv_dlopen="dyld"
13380 lt_cv_dlopen_libs=
13381 lt_cv_dlopen_self=yes
13388 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13389 if test "x$ac_cv_func_shl_load" = xyes; then :
13390 lt_cv_dlopen="shl_load"
13391 else
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13393 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13394 if ${ac_cv_lib_dld_shl_load+:} false; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 ac_check_lib_save_LIBS=$LIBS
13398 LIBS="-ldld $LIBS"
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13402 /* Override any GCC internal prototype to avoid an error.
13403 Use char because int might match the return type of a GCC
13404 builtin and then its argument prototype would still apply. */
13405 #ifdef __cplusplus
13406 extern "C"
13407 #endif
13408 char shl_load ();
13410 main ()
13412 return shl_load ();
13414 return 0;
13416 _ACEOF
13417 if ac_fn_c_try_link "$LINENO"; then :
13418 ac_cv_lib_dld_shl_load=yes
13419 else
13420 ac_cv_lib_dld_shl_load=no
13422 rm -f core conftest.err conftest.$ac_objext \
13423 conftest$ac_exeext conftest.$ac_ext
13424 LIBS=$ac_check_lib_save_LIBS
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13427 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13428 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13429 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13430 else
13431 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13432 if test "x$ac_cv_func_dlopen" = xyes; then :
13433 lt_cv_dlopen="dlopen"
13434 else
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13436 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13437 if ${ac_cv_lib_dl_dlopen+:} false; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 ac_check_lib_save_LIBS=$LIBS
13441 LIBS="-ldl $LIBS"
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13445 /* Override any GCC internal prototype to avoid an error.
13446 Use char because int might match the return type of a GCC
13447 builtin and then its argument prototype would still apply. */
13448 #ifdef __cplusplus
13449 extern "C"
13450 #endif
13451 char dlopen ();
13453 main ()
13455 return dlopen ();
13457 return 0;
13459 _ACEOF
13460 if ac_fn_c_try_link "$LINENO"; then :
13461 ac_cv_lib_dl_dlopen=yes
13462 else
13463 ac_cv_lib_dl_dlopen=no
13465 rm -f core conftest.err conftest.$ac_objext \
13466 conftest$ac_exeext conftest.$ac_ext
13467 LIBS=$ac_check_lib_save_LIBS
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13470 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13471 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13473 else
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13475 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13476 if ${ac_cv_lib_svld_dlopen+:} false; then :
13477 $as_echo_n "(cached) " >&6
13478 else
13479 ac_check_lib_save_LIBS=$LIBS
13480 LIBS="-lsvld $LIBS"
13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13484 /* Override any GCC internal prototype to avoid an error.
13485 Use char because int might match the return type of a GCC
13486 builtin and then its argument prototype would still apply. */
13487 #ifdef __cplusplus
13488 extern "C"
13489 #endif
13490 char dlopen ();
13492 main ()
13494 return dlopen ();
13496 return 0;
13498 _ACEOF
13499 if ac_fn_c_try_link "$LINENO"; then :
13500 ac_cv_lib_svld_dlopen=yes
13501 else
13502 ac_cv_lib_svld_dlopen=no
13504 rm -f core conftest.err conftest.$ac_objext \
13505 conftest$ac_exeext conftest.$ac_ext
13506 LIBS=$ac_check_lib_save_LIBS
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13509 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13510 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13512 else
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13514 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13515 if ${ac_cv_lib_dld_dld_link+:} false; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 ac_check_lib_save_LIBS=$LIBS
13519 LIBS="-ldld $LIBS"
13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521 /* end confdefs.h. */
13523 /* Override any GCC internal prototype to avoid an error.
13524 Use char because int might match the return type of a GCC
13525 builtin and then its argument prototype would still apply. */
13526 #ifdef __cplusplus
13527 extern "C"
13528 #endif
13529 char dld_link ();
13531 main ()
13533 return dld_link ();
13535 return 0;
13537 _ACEOF
13538 if ac_fn_c_try_link "$LINENO"; then :
13539 ac_cv_lib_dld_dld_link=yes
13540 else
13541 ac_cv_lib_dld_dld_link=no
13543 rm -f core conftest.err conftest.$ac_objext \
13544 conftest$ac_exeext conftest.$ac_ext
13545 LIBS=$ac_check_lib_save_LIBS
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13548 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13549 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13569 esac
13571 if test "x$lt_cv_dlopen" != xno; then
13572 enable_dlopen=yes
13573 else
13574 enable_dlopen=no
13577 case $lt_cv_dlopen in
13578 dlopen)
13579 save_CPPFLAGS="$CPPFLAGS"
13580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13582 save_LDFLAGS="$LDFLAGS"
13583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13585 save_LIBS="$LIBS"
13586 LIBS="$lt_cv_dlopen_libs $LIBS"
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13589 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13590 if ${lt_cv_dlopen_self+:} false; then :
13591 $as_echo_n "(cached) " >&6
13592 else
13593 if test "$cross_compiling" = yes; then :
13594 lt_cv_dlopen_self=cross
13595 else
13596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13597 lt_status=$lt_dlunknown
13598 cat > conftest.$ac_ext <<_LT_EOF
13599 #line 13599 "configure"
13600 #include "confdefs.h"
13602 #if HAVE_DLFCN_H
13603 #include <dlfcn.h>
13604 #endif
13606 #include <stdio.h>
13608 #ifdef RTLD_GLOBAL
13609 # define LT_DLGLOBAL RTLD_GLOBAL
13610 #else
13611 # ifdef DL_GLOBAL
13612 # define LT_DLGLOBAL DL_GLOBAL
13613 # else
13614 # define LT_DLGLOBAL 0
13615 # endif
13616 #endif
13618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13619 find out it does not work in some platform. */
13620 #ifndef LT_DLLAZY_OR_NOW
13621 # ifdef RTLD_LAZY
13622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13623 # else
13624 # ifdef DL_LAZY
13625 # define LT_DLLAZY_OR_NOW DL_LAZY
13626 # else
13627 # ifdef RTLD_NOW
13628 # define LT_DLLAZY_OR_NOW RTLD_NOW
13629 # else
13630 # ifdef DL_NOW
13631 # define LT_DLLAZY_OR_NOW DL_NOW
13632 # else
13633 # define LT_DLLAZY_OR_NOW 0
13634 # endif
13635 # endif
13636 # endif
13637 # endif
13638 #endif
13640 /* When -fvisbility=hidden is used, assume the code has been annotated
13641 correspondingly for the symbols needed. */
13642 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13643 void fnord () __attribute__((visibility("default")));
13644 #endif
13646 void fnord () { int i=42; }
13647 int main ()
13649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13650 int status = $lt_dlunknown;
13652 if (self)
13654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13655 else
13657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13658 else puts (dlerror ());
13660 /* dlclose (self); */
13662 else
13663 puts (dlerror ());
13665 return status;
13667 _LT_EOF
13668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13669 (eval $ac_link) 2>&5
13670 ac_status=$?
13671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13673 (./conftest; exit; ) >&5 2>/dev/null
13674 lt_status=$?
13675 case x$lt_status in
13676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13679 esac
13680 else :
13681 # compilation failed
13682 lt_cv_dlopen_self=no
13685 rm -fr conftest*
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13690 $as_echo "$lt_cv_dlopen_self" >&6; }
13692 if test "x$lt_cv_dlopen_self" = xyes; then
13693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13695 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13696 if ${lt_cv_dlopen_self_static+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 if test "$cross_compiling" = yes; then :
13700 lt_cv_dlopen_self_static=cross
13701 else
13702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13703 lt_status=$lt_dlunknown
13704 cat > conftest.$ac_ext <<_LT_EOF
13705 #line 13705 "configure"
13706 #include "confdefs.h"
13708 #if HAVE_DLFCN_H
13709 #include <dlfcn.h>
13710 #endif
13712 #include <stdio.h>
13714 #ifdef RTLD_GLOBAL
13715 # define LT_DLGLOBAL RTLD_GLOBAL
13716 #else
13717 # ifdef DL_GLOBAL
13718 # define LT_DLGLOBAL DL_GLOBAL
13719 # else
13720 # define LT_DLGLOBAL 0
13721 # endif
13722 #endif
13724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13725 find out it does not work in some platform. */
13726 #ifndef LT_DLLAZY_OR_NOW
13727 # ifdef RTLD_LAZY
13728 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13729 # else
13730 # ifdef DL_LAZY
13731 # define LT_DLLAZY_OR_NOW DL_LAZY
13732 # else
13733 # ifdef RTLD_NOW
13734 # define LT_DLLAZY_OR_NOW RTLD_NOW
13735 # else
13736 # ifdef DL_NOW
13737 # define LT_DLLAZY_OR_NOW DL_NOW
13738 # else
13739 # define LT_DLLAZY_OR_NOW 0
13740 # endif
13741 # endif
13742 # endif
13743 # endif
13744 #endif
13746 /* When -fvisbility=hidden is used, assume the code has been annotated
13747 correspondingly for the symbols needed. */
13748 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13749 void fnord () __attribute__((visibility("default")));
13750 #endif
13752 void fnord () { int i=42; }
13753 int main ()
13755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13756 int status = $lt_dlunknown;
13758 if (self)
13760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13761 else
13763 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13764 else puts (dlerror ());
13766 /* dlclose (self); */
13768 else
13769 puts (dlerror ());
13771 return status;
13773 _LT_EOF
13774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13775 (eval $ac_link) 2>&5
13776 ac_status=$?
13777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13778 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13779 (./conftest; exit; ) >&5 2>/dev/null
13780 lt_status=$?
13781 case x$lt_status in
13782 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13783 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13784 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13785 esac
13786 else :
13787 # compilation failed
13788 lt_cv_dlopen_self_static=no
13791 rm -fr conftest*
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13796 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13799 CPPFLAGS="$save_CPPFLAGS"
13800 LDFLAGS="$save_LDFLAGS"
13801 LIBS="$save_LIBS"
13803 esac
13805 case $lt_cv_dlopen_self in
13806 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13807 *) enable_dlopen_self=unknown ;;
13808 esac
13810 case $lt_cv_dlopen_self_static in
13811 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13812 *) enable_dlopen_self_static=unknown ;;
13813 esac
13832 striplib=
13833 old_striplib=
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13835 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13836 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13838 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13840 $as_echo "yes" >&6; }
13841 else
13842 # FIXME - insert some real tests, host_os isn't really good enough
13843 case $host_os in
13844 darwin*)
13845 if test -n "$STRIP" ; then
13846 striplib="$STRIP -x"
13847 old_striplib="$STRIP -S"
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13849 $as_echo "yes" >&6; }
13850 else
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13857 $as_echo "no" >&6; }
13859 esac
13873 # Report which library types will actually be built
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13875 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13877 $as_echo "$can_build_shared" >&6; }
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13880 $as_echo_n "checking whether to build shared libraries... " >&6; }
13881 test "$can_build_shared" = "no" && enable_shared=no
13883 # On AIX, shared libraries and static libraries use the same namespace, and
13884 # are all built from PIC.
13885 case $host_os in
13886 aix3*)
13887 test "$enable_shared" = yes && enable_static=no
13888 if test -n "$RANLIB"; then
13889 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13890 postinstall_cmds='$RANLIB $lib'
13894 aix[4-9]*)
13895 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13896 test "$enable_shared" = yes && enable_static=no
13899 esac
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13901 $as_echo "$enable_shared" >&6; }
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13904 $as_echo_n "checking whether to build static libraries... " >&6; }
13905 # Make sure either enable_shared or enable_static is yes.
13906 test "$enable_shared" = yes || enable_static=yes
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13908 $as_echo "$enable_static" >&6; }
13914 ac_ext=c
13915 ac_cpp='$CPP $CPPFLAGS'
13916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13920 CC="$lt_save_CC"
13934 ac_config_commands="$ac_config_commands libtool"
13939 # Only expand once:
13942 # Check whether --enable-largefile was given.
13943 if test "${enable_largefile+set}" = set; then :
13944 enableval=$enable_largefile;
13947 if test "$enable_largefile" != no; then
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13950 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13951 if ${ac_cv_sys_largefile_CC+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954 ac_cv_sys_largefile_CC=no
13955 if test "$GCC" != yes; then
13956 ac_save_CC=$CC
13957 while :; do
13958 # IRIX 6.2 and later do not support large files by default,
13959 # so use the C compiler's -n32 option if that helps.
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h. */
13962 #include <sys/types.h>
13963 /* Check that off_t can represent 2**63 - 1 correctly.
13964 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13965 since some C++ compilers masquerading as C compilers
13966 incorrectly reject 9223372036854775807. */
13967 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13969 && LARGE_OFF_T % 2147483647 == 1)
13970 ? 1 : -1];
13972 main ()
13976 return 0;
13978 _ACEOF
13979 if ac_fn_c_try_compile "$LINENO"; then :
13980 break
13982 rm -f core conftest.err conftest.$ac_objext
13983 CC="$CC -n32"
13984 if ac_fn_c_try_compile "$LINENO"; then :
13985 ac_cv_sys_largefile_CC=' -n32'; break
13987 rm -f core conftest.err conftest.$ac_objext
13988 break
13989 done
13990 CC=$ac_save_CC
13991 rm -f conftest.$ac_ext
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13995 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13996 if test "$ac_cv_sys_largefile_CC" != no; then
13997 CC=$CC$ac_cv_sys_largefile_CC
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14001 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14002 if ${ac_cv_sys_file_offset_bits+:} false; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 while :; do
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14008 #include <sys/types.h>
14009 /* Check that off_t can represent 2**63 - 1 correctly.
14010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14011 since some C++ compilers masquerading as C compilers
14012 incorrectly reject 9223372036854775807. */
14013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14015 && LARGE_OFF_T % 2147483647 == 1)
14016 ? 1 : -1];
14018 main ()
14022 return 0;
14024 _ACEOF
14025 if ac_fn_c_try_compile "$LINENO"; then :
14026 ac_cv_sys_file_offset_bits=no; break
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14031 #define _FILE_OFFSET_BITS 64
14032 #include <sys/types.h>
14033 /* Check that off_t can represent 2**63 - 1 correctly.
14034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14035 since some C++ compilers masquerading as C compilers
14036 incorrectly reject 9223372036854775807. */
14037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14039 && LARGE_OFF_T % 2147483647 == 1)
14040 ? 1 : -1];
14042 main ()
14046 return 0;
14048 _ACEOF
14049 if ac_fn_c_try_compile "$LINENO"; then :
14050 ac_cv_sys_file_offset_bits=64; break
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 ac_cv_sys_file_offset_bits=unknown
14054 break
14055 done
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14058 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14059 case $ac_cv_sys_file_offset_bits in #(
14060 no | unknown) ;;
14062 cat >>confdefs.h <<_ACEOF
14063 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14064 _ACEOF
14066 esac
14067 rm -rf conftest*
14068 if test $ac_cv_sys_file_offset_bits = unknown; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14070 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14071 if ${ac_cv_sys_large_files+:} false; then :
14072 $as_echo_n "(cached) " >&6
14073 else
14074 while :; do
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077 #include <sys/types.h>
14078 /* Check that off_t can represent 2**63 - 1 correctly.
14079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14080 since some C++ compilers masquerading as C compilers
14081 incorrectly reject 9223372036854775807. */
14082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14084 && LARGE_OFF_T % 2147483647 == 1)
14085 ? 1 : -1];
14087 main ()
14091 return 0;
14093 _ACEOF
14094 if ac_fn_c_try_compile "$LINENO"; then :
14095 ac_cv_sys_large_files=no; break
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100 #define _LARGE_FILES 1
14101 #include <sys/types.h>
14102 /* Check that off_t can represent 2**63 - 1 correctly.
14103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14104 since some C++ compilers masquerading as C compilers
14105 incorrectly reject 9223372036854775807. */
14106 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14108 && LARGE_OFF_T % 2147483647 == 1)
14109 ? 1 : -1];
14111 main ()
14115 return 0;
14117 _ACEOF
14118 if ac_fn_c_try_compile "$LINENO"; then :
14119 ac_cv_sys_large_files=1; break
14121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122 ac_cv_sys_large_files=unknown
14123 break
14124 done
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14127 $as_echo "$ac_cv_sys_large_files" >&6; }
14128 case $ac_cv_sys_large_files in #(
14129 no | unknown) ;;
14131 cat >>confdefs.h <<_ACEOF
14132 #define _LARGE_FILES $ac_cv_sys_large_files
14133 _ACEOF
14135 esac
14136 rm -rf conftest*
14142 : ${CONFIG_LT=./config.lt}
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14144 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
14145 as_write_fail=0
14146 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14147 #! $SHELL
14148 # Generated by $as_me.
14149 # Run this file to recreate a libtool stub with the current configuration.
14150 SHELL=\${CONFIG_SHELL-$SHELL}
14151 export SHELL
14152 _ASEOF
14153 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
14154 ## -------------------- ##
14155 ## M4sh Initialization. ##
14156 ## -------------------- ##
14158 # Be more Bourne compatible
14159 DUALCASE=1; export DUALCASE # for MKS sh
14160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14161 emulate sh
14162 NULLCMD=:
14163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14164 # is contrary to our usage. Disable this feature.
14165 alias -g '${1+"$@"}'='"$@"'
14166 setopt NO_GLOB_SUBST
14167 else
14168 case `(set -o) 2>/dev/null` in #(
14169 *posix*) :
14170 set -o posix ;; #(
14171 *) :
14173 esac
14177 as_nl='
14179 export as_nl
14180 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14181 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14184 # Prefer a ksh shell builtin over an external printf program on Solaris,
14185 # but without wasting forks for bash or zsh.
14186 if test -z "$BASH_VERSION$ZSH_VERSION" \
14187 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14188 as_echo='print -r --'
14189 as_echo_n='print -rn --'
14190 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14191 as_echo='printf %s\n'
14192 as_echo_n='printf %s'
14193 else
14194 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14195 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14196 as_echo_n='/usr/ucb/echo -n'
14197 else
14198 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14199 as_echo_n_body='eval
14200 arg=$1;
14201 case $arg in #(
14202 *"$as_nl"*)
14203 expr "X$arg" : "X\\(.*\\)$as_nl";
14204 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14205 esac;
14206 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14208 export as_echo_n_body
14209 as_echo_n='sh -c $as_echo_n_body as_echo'
14211 export as_echo_body
14212 as_echo='sh -c $as_echo_body as_echo'
14215 # The user is always right.
14216 if test "${PATH_SEPARATOR+set}" != set; then
14217 PATH_SEPARATOR=:
14218 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14219 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14220 PATH_SEPARATOR=';'
14225 # IFS
14226 # We need space, tab and new line, in precisely that order. Quoting is
14227 # there to prevent editors from complaining about space-tab.
14228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14229 # splitting by setting IFS to empty value.)
14230 IFS=" "" $as_nl"
14232 # Find who we are. Look in the path if we contain no directory separator.
14233 as_myself=
14234 case $0 in #((
14235 *[\\/]* ) as_myself=$0 ;;
14236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14237 for as_dir in $PATH
14239 IFS=$as_save_IFS
14240 test -z "$as_dir" && as_dir=.
14241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14242 done
14243 IFS=$as_save_IFS
14246 esac
14247 # We did not find ourselves, most probably we were run as `sh COMMAND'
14248 # in which case we are not to be found in the path.
14249 if test "x$as_myself" = x; then
14250 as_myself=$0
14252 if test ! -f "$as_myself"; then
14253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14254 exit 1
14257 # Unset variables that we do not need and which cause bugs (e.g. in
14258 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14259 # suppresses any "Segmentation fault" message there. '((' could
14260 # trigger a bug in pdksh 5.2.14.
14261 for as_var in BASH_ENV ENV MAIL MAILPATH
14262 do eval test x\${$as_var+set} = xset \
14263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14264 done
14265 PS1='$ '
14266 PS2='> '
14267 PS4='+ '
14269 # NLS nuisances.
14270 LC_ALL=C
14271 export LC_ALL
14272 LANGUAGE=C
14273 export LANGUAGE
14275 # CDPATH.
14276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14279 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14280 # ----------------------------------------
14281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14283 # script with STATUS, using 1 if that was 0.
14284 as_fn_error ()
14286 as_status=$1; test $as_status -eq 0 && as_status=1
14287 if test "$4"; then
14288 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14291 $as_echo "$as_me: error: $2" >&2
14292 as_fn_exit $as_status
14293 } # as_fn_error
14296 # as_fn_set_status STATUS
14297 # -----------------------
14298 # Set $? to STATUS, without forking.
14299 as_fn_set_status ()
14301 return $1
14302 } # as_fn_set_status
14304 # as_fn_exit STATUS
14305 # -----------------
14306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14307 as_fn_exit ()
14309 set +e
14310 as_fn_set_status $1
14311 exit $1
14312 } # as_fn_exit
14314 # as_fn_unset VAR
14315 # ---------------
14316 # Portably unset VAR.
14317 as_fn_unset ()
14319 { eval $1=; unset $1;}
14321 as_unset=as_fn_unset
14322 # as_fn_append VAR VALUE
14323 # ----------------------
14324 # Append the text in VALUE to the end of the definition contained in VAR. Take
14325 # advantage of any shell optimizations that allow amortized linear growth over
14326 # repeated appends, instead of the typical quadratic growth present in naive
14327 # implementations.
14328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14329 eval 'as_fn_append ()
14331 eval $1+=\$2
14333 else
14334 as_fn_append ()
14336 eval $1=\$$1\$2
14338 fi # as_fn_append
14340 # as_fn_arith ARG...
14341 # ------------------
14342 # Perform arithmetic evaluation on the ARGs, and store the result in the
14343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14344 # must be portable across $(()) and expr.
14345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14346 eval 'as_fn_arith ()
14348 as_val=$(( $* ))
14350 else
14351 as_fn_arith ()
14353 as_val=`expr "$@" || test $? -eq 1`
14355 fi # as_fn_arith
14358 if expr a : '\(a\)' >/dev/null 2>&1 &&
14359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14360 as_expr=expr
14361 else
14362 as_expr=false
14365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14366 as_basename=basename
14367 else
14368 as_basename=false
14371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14372 as_dirname=dirname
14373 else
14374 as_dirname=false
14377 as_me=`$as_basename -- "$0" ||
14378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14379 X"$0" : 'X\(//\)$' \| \
14380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14381 $as_echo X/"$0" |
14382 sed '/^.*\/\([^/][^/]*\)\/*$/{
14383 s//\1/
14386 /^X\/\(\/\/\)$/{
14387 s//\1/
14390 /^X\/\(\/\).*/{
14391 s//\1/
14394 s/.*/./; q'`
14396 # Avoid depending upon Character Ranges.
14397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14400 as_cr_digits='0123456789'
14401 as_cr_alnum=$as_cr_Letters$as_cr_digits
14403 ECHO_C= ECHO_N= ECHO_T=
14404 case `echo -n x` in #(((((
14405 -n*)
14406 case `echo 'xy\c'` in
14407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14408 xy) ECHO_C='\c';;
14409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14410 ECHO_T=' ';;
14411 esac;;
14413 ECHO_N='-n';;
14414 esac
14416 rm -f conf$$ conf$$.exe conf$$.file
14417 if test -d conf$$.dir; then
14418 rm -f conf$$.dir/conf$$.file
14419 else
14420 rm -f conf$$.dir
14421 mkdir conf$$.dir 2>/dev/null
14423 if (echo >conf$$.file) 2>/dev/null; then
14424 if ln -s conf$$.file conf$$ 2>/dev/null; then
14425 as_ln_s='ln -s'
14426 # ... but there are two gotchas:
14427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14429 # In both cases, we have to default to `cp -pR'.
14430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14431 as_ln_s='cp -pR'
14432 elif ln conf$$.file conf$$ 2>/dev/null; then
14433 as_ln_s=ln
14434 else
14435 as_ln_s='cp -pR'
14437 else
14438 as_ln_s='cp -pR'
14440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14441 rmdir conf$$.dir 2>/dev/null
14444 # as_fn_mkdir_p
14445 # -------------
14446 # Create "$as_dir" as a directory, including parents if necessary.
14447 as_fn_mkdir_p ()
14450 case $as_dir in #(
14451 -*) as_dir=./$as_dir;;
14452 esac
14453 test -d "$as_dir" || eval $as_mkdir_p || {
14454 as_dirs=
14455 while :; do
14456 case $as_dir in #(
14457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14458 *) as_qdir=$as_dir;;
14459 esac
14460 as_dirs="'$as_qdir' $as_dirs"
14461 as_dir=`$as_dirname -- "$as_dir" ||
14462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14463 X"$as_dir" : 'X\(//\)[^/]' \| \
14464 X"$as_dir" : 'X\(//\)$' \| \
14465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14466 $as_echo X"$as_dir" |
14467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14468 s//\1/
14471 /^X\(\/\/\)[^/].*/{
14472 s//\1/
14475 /^X\(\/\/\)$/{
14476 s//\1/
14479 /^X\(\/\).*/{
14480 s//\1/
14483 s/.*/./; q'`
14484 test -d "$as_dir" && break
14485 done
14486 test -z "$as_dirs" || eval "mkdir $as_dirs"
14487 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14490 } # as_fn_mkdir_p
14491 if mkdir -p . 2>/dev/null; then
14492 as_mkdir_p='mkdir -p "$as_dir"'
14493 else
14494 test -d ./-p && rmdir ./-p
14495 as_mkdir_p=false
14499 # as_fn_executable_p FILE
14500 # -----------------------
14501 # Test if FILE is an executable regular file.
14502 as_fn_executable_p ()
14504 test -f "$1" && test -x "$1"
14505 } # as_fn_executable_p
14506 as_test_x='test -x'
14507 as_executable_p=as_fn_executable_p
14509 # Sed expression to map a string onto a valid CPP name.
14510 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14512 # Sed expression to map a string onto a valid variable name.
14513 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14516 exec 6>&1
14517 ## --------------------------------- ##
14518 ## Main body of "$CONFIG_LT" script. ##
14519 ## --------------------------------- ##
14520 _ASEOF
14521 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
14523 cat >>"$CONFIG_LT" <<\_LTEOF
14524 lt_cl_silent=false
14525 exec 5>>config.log
14527 echo
14528 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14529 ## Running $as_me. ##
14530 _ASBOX
14531 } >&5
14533 lt_cl_help="\
14534 \`$as_me' creates a local libtool stub from the current configuration,
14535 for use in further configure time tests before the real libtool is
14536 generated.
14538 Usage: $0 [OPTIONS]
14540 -h, --help print this help, then exit
14541 -V, --version print version number, then exit
14542 -q, --quiet do not print progress messages
14543 -d, --debug don't remove temporary files
14545 Report bugs to <bug-libtool@gnu.org>."
14547 lt_cl_version="\
14548 libctf config.lt 1.2.0
14549 configured by $0, generated by GNU Autoconf 2.69.
14551 Copyright (C) 2009 Free Software Foundation, Inc.
14552 This config.lt script is free software; the Free Software Foundation
14553 gives unlimited permision to copy, distribute and modify it."
14555 while test $# != 0
14557 case $1 in
14558 --version | --v* | -V )
14559 echo "$lt_cl_version"; exit 0 ;;
14560 --help | --h* | -h )
14561 echo "$lt_cl_help"; exit 0 ;;
14562 --debug | --d* | -d )
14563 debug=: ;;
14564 --quiet | --q* | --silent | --s* | -q )
14565 lt_cl_silent=: ;;
14567 -*) as_fn_error $? "unrecognized option: $1
14568 Try \`$0 --help' for more information." "$LINENO" 5 ;;
14570 *) as_fn_error $? "unrecognized argument: $1
14571 Try \`$0 --help' for more information." "$LINENO" 5 ;;
14572 esac
14573 shift
14574 done
14576 if $lt_cl_silent; then
14577 exec 6>/dev/null
14579 _LTEOF
14581 cat >>"$CONFIG_LT" <<_LTEOF
14584 # The HP-UX ksh and POSIX shell print the target directory to stdout
14585 # if CDPATH is set.
14586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14588 sed_quote_subst='$sed_quote_subst'
14589 double_quote_subst='$double_quote_subst'
14590 delay_variable_subst='$delay_variable_subst'
14591 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14592 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14593 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14594 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14595 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14596 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14597 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14598 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14599 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14600 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14601 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14602 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14603 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14604 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14605 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14606 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14607 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14608 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14609 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14610 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14611 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14612 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14613 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14614 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14615 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14616 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14617 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14618 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14619 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14620 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14621 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14622 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14623 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14624 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14625 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14626 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14627 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14628 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14629 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14630 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14631 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14632 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14633 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14634 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14635 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14636 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14637 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14638 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14639 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"`'
14640 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14641 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14642 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14643 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14644 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14645 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14646 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14647 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14648 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14649 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14650 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14651 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14652 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14653 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14654 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14655 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14656 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14657 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14658 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14659 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14660 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14661 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14662 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14663 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14664 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14665 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14666 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14667 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14668 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14669 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14670 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14671 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14672 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14673 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14674 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14675 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14676 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14677 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14678 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14679 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14680 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14681 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14682 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14683 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14684 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14685 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14686 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14687 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14688 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14689 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14690 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14691 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14692 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14693 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14694 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14695 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14696 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14697 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14698 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14699 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14700 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14701 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14702 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14703 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14704 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14705 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14706 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14707 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14708 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14709 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14710 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14712 LTCC='$LTCC'
14713 LTCFLAGS='$LTCFLAGS'
14714 compiler='$compiler_DEFAULT'
14716 # A function that is used when there is no print builtin or printf.
14717 func_fallback_echo ()
14719 eval 'cat <<_LTECHO_EOF
14721 _LTECHO_EOF'
14724 # Quote evaled strings.
14725 for var in SHELL \
14726 ECHO \
14727 SED \
14728 GREP \
14729 EGREP \
14730 FGREP \
14731 LD \
14732 NM \
14733 LN_S \
14734 lt_SP2NL \
14735 lt_NL2SP \
14736 reload_flag \
14737 OBJDUMP \
14738 deplibs_check_method \
14739 file_magic_cmd \
14740 AR \
14741 AR_FLAGS \
14742 STRIP \
14743 RANLIB \
14744 CC \
14745 CFLAGS \
14746 compiler \
14747 lt_cv_sys_global_symbol_pipe \
14748 lt_cv_sys_global_symbol_to_cdecl \
14749 lt_cv_sys_global_symbol_to_c_name_address \
14750 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14751 lt_prog_compiler_no_builtin_flag \
14752 lt_prog_compiler_wl \
14753 lt_prog_compiler_pic \
14754 lt_prog_compiler_static \
14755 lt_cv_prog_compiler_c_o \
14756 need_locks \
14757 DSYMUTIL \
14758 NMEDIT \
14759 LIPO \
14760 OTOOL \
14761 OTOOL64 \
14762 shrext_cmds \
14763 export_dynamic_flag_spec \
14764 whole_archive_flag_spec \
14765 compiler_needs_object \
14766 with_gnu_ld \
14767 allow_undefined_flag \
14768 no_undefined_flag \
14769 hardcode_libdir_flag_spec \
14770 hardcode_libdir_flag_spec_ld \
14771 hardcode_libdir_separator \
14772 fix_srcfile_path \
14773 exclude_expsyms \
14774 include_expsyms \
14775 file_list_spec \
14776 variables_saved_for_relink \
14777 libname_spec \
14778 library_names_spec \
14779 soname_spec \
14780 install_override_mode \
14781 finish_eval \
14782 old_striplib \
14783 striplib; do
14784 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14785 *[\\\\\\\`\\"\\\$]*)
14786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14791 esac
14792 done
14794 # Double-quote double-evaled strings.
14795 for var in reload_cmds \
14796 old_postinstall_cmds \
14797 old_postuninstall_cmds \
14798 old_archive_cmds \
14799 extract_expsyms_cmds \
14800 old_archive_from_new_cmds \
14801 old_archive_from_expsyms_cmds \
14802 archive_cmds \
14803 archive_expsym_cmds \
14804 module_cmds \
14805 module_expsym_cmds \
14806 export_symbols_cmds \
14807 prelink_cmds \
14808 postinstall_cmds \
14809 postuninstall_cmds \
14810 finish_cmds \
14811 sys_lib_search_path_spec \
14812 sys_lib_dlsearch_path_spec; do
14813 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14814 *[\\\\\\\`\\"\\\$]*)
14815 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14818 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14820 esac
14821 done
14823 ac_aux_dir='$ac_aux_dir'
14824 xsi_shell='$xsi_shell'
14825 lt_shell_append='$lt_shell_append'
14827 # See if we are running on zsh, and set the options which allow our
14828 # commands through without removal of \ escapes INIT.
14829 if test -n "\${ZSH_VERSION+set}" ; then
14830 setopt NO_GLOB_SUBST
14834 PACKAGE='$PACKAGE'
14835 VERSION='$VERSION'
14836 TIMESTAMP='$TIMESTAMP'
14837 RM='$RM'
14838 ofile='$ofile'
14842 _LTEOF
14844 cat >>"$CONFIG_LT" <<\_LTEOF
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
14846 $as_echo "$as_me: creating $ofile" >&6;}
14849 # See if we are running on zsh, and set the options which allow our
14850 # commands through without removal of \ escapes.
14851 if test -n "${ZSH_VERSION+set}" ; then
14852 setopt NO_GLOB_SUBST
14855 cfgfile="${ofile}T"
14856 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14857 $RM "$cfgfile"
14859 cat <<_LT_EOF >> "$cfgfile"
14860 #! $SHELL
14862 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14863 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14864 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14865 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14867 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14868 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14869 # Written by Gordon Matzigkeit, 1996
14871 # This file is part of GNU Libtool.
14873 # GNU Libtool is free software; you can redistribute it and/or
14874 # modify it under the terms of the GNU General Public License as
14875 # published by the Free Software Foundation; either version 2 of
14876 # the License, or (at your option) any later version.
14878 # As a special exception to the GNU General Public License,
14879 # if you distribute this file as part of a program or library that
14880 # is built using GNU Libtool, you may include this file under the
14881 # same distribution terms that you use for the rest of that program.
14883 # GNU Libtool is distributed in the hope that it will be useful,
14884 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14885 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14886 # GNU General Public License for more details.
14888 # You should have received a copy of the GNU General Public License
14889 # along with GNU Libtool; see the file COPYING. If not, a copy
14890 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14891 # obtained by writing to the Free Software Foundation, Inc.,
14892 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14895 # The names of the tagged configurations supported by this script.
14896 available_tags=""
14898 # ### BEGIN LIBTOOL CONFIG
14900 # Whether or not to build shared libraries.
14901 build_libtool_libs=$enable_shared
14903 # Which release of libtool.m4 was used?
14904 macro_version=$macro_version
14905 macro_revision=$macro_revision
14907 # Whether or not to build static libraries.
14908 build_old_libs=$enable_static
14910 # What type of objects to build.
14911 pic_mode=$pic_mode
14913 # Whether or not to optimize for fast installation.
14914 fast_install=$enable_fast_install
14916 # Shell to use when invoking shell scripts.
14917 SHELL=$lt_SHELL
14919 # An echo program that protects backslashes.
14920 ECHO=$lt_ECHO
14922 # The host system.
14923 host_alias=$host_alias
14924 host=$host
14925 host_os=$host_os
14927 # The build system.
14928 build_alias=$build_alias
14929 build=$build
14930 build_os=$build_os
14932 # A sed program that does not truncate output.
14933 SED=$lt_SED
14935 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14936 Xsed="\$SED -e 1s/^X//"
14938 # A grep program that handles long lines.
14939 GREP=$lt_GREP
14941 # An ERE matcher.
14942 EGREP=$lt_EGREP
14944 # A literal string matcher.
14945 FGREP=$lt_FGREP
14947 # A BSD- or MS-compatible name lister.
14948 NM=$lt_NM
14950 # Whether we need soft or hard links.
14951 LN_S=$lt_LN_S
14953 # What is the maximum length of a command?
14954 max_cmd_len=$max_cmd_len
14956 # Object file suffix (normally "o").
14957 objext=$ac_objext
14959 # Executable file suffix (normally "").
14960 exeext=$exeext
14962 # whether the shell understands "unset".
14963 lt_unset=$lt_unset
14965 # turn spaces into newlines.
14966 SP2NL=$lt_lt_SP2NL
14968 # turn newlines into spaces.
14969 NL2SP=$lt_lt_NL2SP
14971 # An object symbol dumper.
14972 OBJDUMP=$lt_OBJDUMP
14974 # Method to check whether dependent libraries are shared objects.
14975 deplibs_check_method=$lt_deplibs_check_method
14977 # Command to use when deplibs_check_method == "file_magic".
14978 file_magic_cmd=$lt_file_magic_cmd
14980 # The archiver.
14981 AR=$lt_AR
14982 AR_FLAGS=$lt_AR_FLAGS
14984 # A symbol stripping program.
14985 STRIP=$lt_STRIP
14987 # Commands used to install an old-style archive.
14988 RANLIB=$lt_RANLIB
14989 old_postinstall_cmds=$lt_old_postinstall_cmds
14990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14992 # Whether to use a lock for old archive extraction.
14993 lock_old_archive_extraction=$lock_old_archive_extraction
14995 # A C compiler.
14996 LTCC=$lt_CC
14998 # LTCC compiler flags.
14999 LTCFLAGS=$lt_CFLAGS
15001 # Take the output of nm and produce a listing of raw symbols and C names.
15002 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15004 # Transform the output of nm in a proper C declaration.
15005 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15007 # Transform the output of nm in a C name address pair.
15008 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15010 # Transform the output of nm in a C name address pair when lib prefix is needed.
15011 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15013 # The name of the directory that contains temporary libtool files.
15014 objdir=$objdir
15016 # Used to examine libraries when file_magic_cmd begins with "file".
15017 MAGIC_CMD=$MAGIC_CMD
15019 # Must we lock files when doing compilation?
15020 need_locks=$lt_need_locks
15022 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15023 DSYMUTIL=$lt_DSYMUTIL
15025 # Tool to change global to local symbols on Mac OS X.
15026 NMEDIT=$lt_NMEDIT
15028 # Tool to manipulate fat objects and archives on Mac OS X.
15029 LIPO=$lt_LIPO
15031 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15032 OTOOL=$lt_OTOOL
15034 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15035 OTOOL64=$lt_OTOOL64
15037 # Old archive suffix (normally "a").
15038 libext=$libext
15040 # Shared library suffix (normally ".so").
15041 shrext_cmds=$lt_shrext_cmds
15043 # The commands to extract the exported symbol list from a shared archive.
15044 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15046 # Variables whose values should be saved in libtool wrapper scripts and
15047 # restored at link time.
15048 variables_saved_for_relink=$lt_variables_saved_for_relink
15050 # Do we need the "lib" prefix for modules?
15051 need_lib_prefix=$need_lib_prefix
15053 # Do we need a version for libraries?
15054 need_version=$need_version
15056 # Library versioning type.
15057 version_type=$version_type
15059 # Shared library runtime path variable.
15060 runpath_var=$runpath_var
15062 # Shared library path variable.
15063 shlibpath_var=$shlibpath_var
15065 # Is shlibpath searched before the hard-coded library search path?
15066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15068 # Format of library name prefix.
15069 libname_spec=$lt_libname_spec
15071 # List of archive names. First name is the real one, the rest are links.
15072 # The last name is the one that the linker finds with -lNAME
15073 library_names_spec=$lt_library_names_spec
15075 # The coded name of the library, if different from the real name.
15076 soname_spec=$lt_soname_spec
15078 # Permission mode override for installation of shared libraries.
15079 install_override_mode=$lt_install_override_mode
15081 # Command to use after installation of a shared archive.
15082 postinstall_cmds=$lt_postinstall_cmds
15084 # Command to use after uninstallation of a shared archive.
15085 postuninstall_cmds=$lt_postuninstall_cmds
15087 # Commands used to finish a libtool library installation in a directory.
15088 finish_cmds=$lt_finish_cmds
15090 # As "finish_cmds", except a single script fragment to be evaled but
15091 # not shown.
15092 finish_eval=$lt_finish_eval
15094 # Whether we should hardcode library paths into libraries.
15095 hardcode_into_libs=$hardcode_into_libs
15097 # Compile-time system search path for libraries.
15098 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15100 # Run-time system search path for libraries.
15101 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15103 # Whether dlopen is supported.
15104 dlopen_support=$enable_dlopen
15106 # Whether dlopen of programs is supported.
15107 dlopen_self=$enable_dlopen_self
15109 # Whether dlopen of statically linked programs is supported.
15110 dlopen_self_static=$enable_dlopen_self_static
15112 # Commands to strip libraries.
15113 old_striplib=$lt_old_striplib
15114 striplib=$lt_striplib
15117 # The linker used to build libraries.
15118 LD=$lt_LD
15120 # How to create reloadable object files.
15121 reload_flag=$lt_reload_flag
15122 reload_cmds=$lt_reload_cmds
15124 # Commands used to build an old-style archive.
15125 old_archive_cmds=$lt_old_archive_cmds
15127 # A language specific compiler.
15128 CC=$lt_compiler
15130 # Is the compiler the GNU compiler?
15131 with_gcc=$GCC
15133 # Compiler flag to turn off builtin functions.
15134 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15136 # How to pass a linker flag through the compiler.
15137 wl=$lt_lt_prog_compiler_wl
15139 # Additional compiler flags for building library objects.
15140 pic_flag=$lt_lt_prog_compiler_pic
15142 # Compiler flag to prevent dynamic linking.
15143 link_static_flag=$lt_lt_prog_compiler_static
15145 # Does compiler simultaneously support -c and -o options?
15146 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15148 # Whether or not to add -lc for building shared libraries.
15149 build_libtool_need_lc=$archive_cmds_need_lc
15151 # Whether or not to disallow shared libs when runtime libs are static.
15152 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15154 # Compiler flag to allow reflexive dlopens.
15155 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15157 # Compiler flag to generate shared objects directly from archives.
15158 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15160 # Whether the compiler copes with passing no objects directly.
15161 compiler_needs_object=$lt_compiler_needs_object
15163 # Create an old-style archive from a shared archive.
15164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15166 # Create a temporary old-style archive to link instead of a shared archive.
15167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15169 # Commands used to build a shared archive.
15170 archive_cmds=$lt_archive_cmds
15171 archive_expsym_cmds=$lt_archive_expsym_cmds
15173 # Commands used to build a loadable module if different from building
15174 # a shared archive.
15175 module_cmds=$lt_module_cmds
15176 module_expsym_cmds=$lt_module_expsym_cmds
15178 # Whether we are building with GNU ld or not.
15179 with_gnu_ld=$lt_with_gnu_ld
15181 # Flag that allows shared libraries with undefined symbols to be built.
15182 allow_undefined_flag=$lt_allow_undefined_flag
15184 # Flag that enforces no undefined symbols.
15185 no_undefined_flag=$lt_no_undefined_flag
15187 # Flag to hardcode \$libdir into a binary during linking.
15188 # This must work even if \$libdir does not exist
15189 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15191 # If ld is used when linking, flag to hardcode \$libdir into a binary
15192 # during linking. This must work even if \$libdir does not exist.
15193 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15195 # Whether we need a single "-rpath" flag with a separated argument.
15196 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15198 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15199 # DIR into the resulting binary.
15200 hardcode_direct=$hardcode_direct
15202 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15203 # DIR into the resulting binary and the resulting library dependency is
15204 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15205 # library is relocated.
15206 hardcode_direct_absolute=$hardcode_direct_absolute
15208 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15209 # into the resulting binary.
15210 hardcode_minus_L=$hardcode_minus_L
15212 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15213 # into the resulting binary.
15214 hardcode_shlibpath_var=$hardcode_shlibpath_var
15216 # Set to "yes" if building a shared library automatically hardcodes DIR
15217 # into the library and all subsequent libraries and executables linked
15218 # against it.
15219 hardcode_automatic=$hardcode_automatic
15221 # Set to yes if linker adds runtime paths of dependent libraries
15222 # to runtime path list.
15223 inherit_rpath=$inherit_rpath
15225 # Whether libtool must link a program against all its dependency libraries.
15226 link_all_deplibs=$link_all_deplibs
15228 # Fix the shell variable \$srcfile for the compiler.
15229 fix_srcfile_path=$lt_fix_srcfile_path
15231 # Set to "yes" if exported symbols are required.
15232 always_export_symbols=$always_export_symbols
15234 # The commands to list exported symbols.
15235 export_symbols_cmds=$lt_export_symbols_cmds
15237 # Symbols that should not be listed in the preloaded symbols.
15238 exclude_expsyms=$lt_exclude_expsyms
15240 # Symbols that must always be exported.
15241 include_expsyms=$lt_include_expsyms
15243 # Commands necessary for linking programs (against libraries) with templates.
15244 prelink_cmds=$lt_prelink_cmds
15246 # Specify filename containing input files.
15247 file_list_spec=$lt_file_list_spec
15249 # How to hardcode a shared library path into an executable.
15250 hardcode_action=$hardcode_action
15252 # ### END LIBTOOL CONFIG
15254 _LT_EOF
15256 case $host_os in
15257 aix3*)
15258 cat <<\_LT_EOF >> "$cfgfile"
15259 # AIX sometimes has problems with the GCC collect2 program. For some
15260 # reason, if we set the COLLECT_NAMES environment variable, the problems
15261 # vanish in a puff of smoke.
15262 if test "X${COLLECT_NAMES+set}" != Xset; then
15263 COLLECT_NAMES=
15264 export COLLECT_NAMES
15266 _LT_EOF
15268 esac
15271 ltmain="$ac_aux_dir/ltmain.sh"
15274 # We use sed instead of cat because bash on DJGPP gets confused if
15275 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15276 # text mode, it properly converts lines to CR/LF. This bash problem
15277 # is reportedly fixed, but why not run on old versions too?
15278 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15279 || (rm -f "$cfgfile"; exit 1)
15281 case $xsi_shell in
15282 yes)
15283 cat << \_LT_EOF >> "$cfgfile"
15285 # func_dirname file append nondir_replacement
15286 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15287 # otherwise set result to NONDIR_REPLACEMENT.
15288 func_dirname ()
15290 case ${1} in
15291 */*) func_dirname_result="${1%/*}${2}" ;;
15292 * ) func_dirname_result="${3}" ;;
15293 esac
15296 # func_basename file
15297 func_basename ()
15299 func_basename_result="${1##*/}"
15302 # func_dirname_and_basename file append nondir_replacement
15303 # perform func_basename and func_dirname in a single function
15304 # call:
15305 # dirname: Compute the dirname of FILE. If nonempty,
15306 # add APPEND to the result, otherwise set result
15307 # to NONDIR_REPLACEMENT.
15308 # value returned in "$func_dirname_result"
15309 # basename: Compute filename of FILE.
15310 # value retuned in "$func_basename_result"
15311 # Implementation must be kept synchronized with func_dirname
15312 # and func_basename. For efficiency, we do not delegate to
15313 # those functions but instead duplicate the functionality here.
15314 func_dirname_and_basename ()
15316 case ${1} in
15317 */*) func_dirname_result="${1%/*}${2}" ;;
15318 * ) func_dirname_result="${3}" ;;
15319 esac
15320 func_basename_result="${1##*/}"
15323 # func_stripname prefix suffix name
15324 # strip PREFIX and SUFFIX off of NAME.
15325 # PREFIX and SUFFIX must not contain globbing or regex special
15326 # characters, hashes, percent signs, but SUFFIX may contain a leading
15327 # dot (in which case that matches only a dot).
15328 func_stripname ()
15330 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15331 # positional parameters, so assign one to ordinary parameter first.
15332 func_stripname_result=${3}
15333 func_stripname_result=${func_stripname_result#"${1}"}
15334 func_stripname_result=${func_stripname_result%"${2}"}
15337 # func_opt_split
15338 func_opt_split ()
15340 func_opt_split_opt=${1%%=*}
15341 func_opt_split_arg=${1#*=}
15344 # func_lo2o object
15345 func_lo2o ()
15347 case ${1} in
15348 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15349 *) func_lo2o_result=${1} ;;
15350 esac
15353 # func_xform libobj-or-source
15354 func_xform ()
15356 func_xform_result=${1%.*}.lo
15359 # func_arith arithmetic-term...
15360 func_arith ()
15362 func_arith_result=$(( $* ))
15365 # func_len string
15366 # STRING may not start with a hyphen.
15367 func_len ()
15369 func_len_result=${#1}
15372 _LT_EOF
15374 *) # Bourne compatible functions.
15375 cat << \_LT_EOF >> "$cfgfile"
15377 # func_dirname file append nondir_replacement
15378 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15379 # otherwise set result to NONDIR_REPLACEMENT.
15380 func_dirname ()
15382 # Extract subdirectory from the argument.
15383 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15384 if test "X$func_dirname_result" = "X${1}"; then
15385 func_dirname_result="${3}"
15386 else
15387 func_dirname_result="$func_dirname_result${2}"
15391 # func_basename file
15392 func_basename ()
15394 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15398 # func_stripname prefix suffix name
15399 # strip PREFIX and SUFFIX off of NAME.
15400 # PREFIX and SUFFIX must not contain globbing or regex special
15401 # characters, hashes, percent signs, but SUFFIX may contain a leading
15402 # dot (in which case that matches only a dot).
15403 # func_strip_suffix prefix name
15404 func_stripname ()
15406 case ${2} in
15407 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15408 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15409 esac
15412 # sed scripts:
15413 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15414 my_sed_long_arg='1s/^-[^=]*=//'
15416 # func_opt_split
15417 func_opt_split ()
15419 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15420 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15423 # func_lo2o object
15424 func_lo2o ()
15426 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15429 # func_xform libobj-or-source
15430 func_xform ()
15432 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15435 # func_arith arithmetic-term...
15436 func_arith ()
15438 func_arith_result=`expr "$@"`
15441 # func_len string
15442 # STRING may not start with a hyphen.
15443 func_len ()
15445 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15448 _LT_EOF
15449 esac
15451 case $lt_shell_append in
15452 yes)
15453 cat << \_LT_EOF >> "$cfgfile"
15455 # func_append var value
15456 # Append VALUE to the end of shell variable VAR.
15457 func_append ()
15459 eval "$1+=\$2"
15461 _LT_EOF
15464 cat << \_LT_EOF >> "$cfgfile"
15466 # func_append var value
15467 # Append VALUE to the end of shell variable VAR.
15468 func_append ()
15470 eval "$1=\$$1\$2"
15473 _LT_EOF
15475 esac
15478 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15479 || (rm -f "$cfgfile"; exit 1)
15481 mv -f "$cfgfile" "$ofile" ||
15482 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15483 chmod +x "$ofile"
15486 as_fn_exit 0
15487 _LTEOF
15488 chmod +x "$CONFIG_LT"
15490 # configure is writing to config.log, but config.lt does its own redirection,
15491 # appending to config.log, which fails on DOS, as config.log is still kept
15492 # open by configure. Here we exec the FD to /dev/null, effectively closing
15493 # config.log, so it can be properly (re)opened and appended to by config.lt.
15494 lt_cl_success=:
15495 test "$silent" = yes &&
15496 lt_config_lt_args="$lt_config_lt_args --quiet"
15497 exec 5>/dev/null
15498 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
15499 exec 5>>config.log
15500 $lt_cl_success || as_fn_exit 1
15503 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
15504 for ac_prog in aclocal
15506 # Extract the first word of "$ac_prog", so it can be a program name with args.
15507 set dummy $ac_prog; ac_word=$2
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15509 $as_echo_n "checking for $ac_word... " >&6; }
15510 if ${ac_cv_prog_ACLOCAL+:} false; then :
15511 $as_echo_n "(cached) " >&6
15512 else
15513 if test -n "$ACLOCAL"; then
15514 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
15515 else
15516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517 for as_dir in $PATH
15519 IFS=$as_save_IFS
15520 test -z "$as_dir" && as_dir=.
15521 for ac_exec_ext in '' $ac_executable_extensions; do
15522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15523 ac_cv_prog_ACLOCAL="$ac_prog"
15524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15525 break 2
15527 done
15528 done
15529 IFS=$as_save_IFS
15533 ACLOCAL=$ac_cv_prog_ACLOCAL
15534 if test -n "$ACLOCAL"; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
15536 $as_echo "$ACLOCAL" >&6; }
15537 else
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539 $as_echo "no" >&6; }
15543 test -n "$ACLOCAL" && break
15544 done
15545 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
15547 for ac_prog in autoconf
15549 # Extract the first word of "$ac_prog", so it can be a program name with args.
15550 set dummy $ac_prog; ac_word=$2
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15552 $as_echo_n "checking for $ac_word... " >&6; }
15553 if ${ac_cv_prog_AUTOCONF+:} false; then :
15554 $as_echo_n "(cached) " >&6
15555 else
15556 if test -n "$AUTOCONF"; then
15557 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
15558 else
15559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15560 for as_dir in $PATH
15562 IFS=$as_save_IFS
15563 test -z "$as_dir" && as_dir=.
15564 for ac_exec_ext in '' $ac_executable_extensions; do
15565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15566 ac_cv_prog_AUTOCONF="$ac_prog"
15567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15568 break 2
15570 done
15571 done
15572 IFS=$as_save_IFS
15576 AUTOCONF=$ac_cv_prog_AUTOCONF
15577 if test -n "$AUTOCONF"; then
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
15579 $as_echo "$AUTOCONF" >&6; }
15580 else
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15582 $as_echo "no" >&6; }
15586 test -n "$AUTOCONF" && break
15587 done
15588 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
15590 for ac_prog in autoheader
15592 # Extract the first word of "$ac_prog", so it can be a program name with args.
15593 set dummy $ac_prog; ac_word=$2
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15595 $as_echo_n "checking for $ac_word... " >&6; }
15596 if ${ac_cv_prog_AUTOHEADER+:} false; then :
15597 $as_echo_n "(cached) " >&6
15598 else
15599 if test -n "$AUTOHEADER"; then
15600 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
15601 else
15602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15603 for as_dir in $PATH
15605 IFS=$as_save_IFS
15606 test -z "$as_dir" && as_dir=.
15607 for ac_exec_ext in '' $ac_executable_extensions; do
15608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15609 ac_cv_prog_AUTOHEADER="$ac_prog"
15610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15611 break 2
15613 done
15614 done
15615 IFS=$as_save_IFS
15619 AUTOHEADER=$ac_cv_prog_AUTOHEADER
15620 if test -n "$AUTOHEADER"; then
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
15622 $as_echo "$AUTOHEADER" >&6; }
15623 else
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15625 $as_echo "no" >&6; }
15629 test -n "$AUTOHEADER" && break
15630 done
15631 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
15634 # Figure out what compiler warnings we can enable.
15635 # See config/warnings.m4 for details.
15637 ac_ext=c
15638 ac_cpp='$CPP $CPPFLAGS'
15639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15643 warn=
15644 save_CFLAGS="$CFLAGS"
15645 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
15646 -Wmissing-format-attribute; do
15647 # Do the check with the no- prefix removed since gcc silently
15648 # accepts any -Wno-* option on purpose
15649 case $real_option in
15650 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15651 *) option=$real_option ;;
15652 esac
15653 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15656 $as_echo_n "checking whether $CC supports $option... " >&6; }
15657 if eval \${$as_acx_Woption+:} false; then :
15658 $as_echo_n "(cached) " >&6
15659 else
15660 CFLAGS="$option"
15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15662 /* end confdefs.h. */
15665 main ()
15669 return 0;
15671 _ACEOF
15672 if ac_fn_c_try_compile "$LINENO"; then :
15673 eval "$as_acx_Woption=yes"
15674 else
15675 eval "$as_acx_Woption=no"
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680 eval ac_res=\$$as_acx_Woption
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15682 $as_echo "$ac_res" >&6; }
15683 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15684 warn="$warn${warn:+ }$real_option"
15686 done
15687 CFLAGS="$save_CFLAGS"
15688 ac_ext=c
15689 ac_cpp='$CPP $CPPFLAGS'
15690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15695 ac_ext=c
15696 ac_cpp='$CPP $CPPFLAGS'
15697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15701 c_warn=
15702 save_CFLAGS="$CFLAGS"
15703 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
15704 -Wold-style-definition; do
15705 # Do the check with the no- prefix removed since gcc silently
15706 # accepts any -Wno-* option on purpose
15707 case $real_option in
15708 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15709 *) option=$real_option ;;
15710 esac
15711 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15714 $as_echo_n "checking whether $CC supports $option... " >&6; }
15715 if eval \${$as_acx_Woption+:} false; then :
15716 $as_echo_n "(cached) " >&6
15717 else
15718 CFLAGS="$option"
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15723 main ()
15727 return 0;
15729 _ACEOF
15730 if ac_fn_c_try_compile "$LINENO"; then :
15731 eval "$as_acx_Woption=yes"
15732 else
15733 eval "$as_acx_Woption=no"
15735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 eval ac_res=\$$as_acx_Woption
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15740 $as_echo "$ac_res" >&6; }
15741 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15742 c_warn="$c_warn${c_warn:+ }$real_option"
15744 done
15745 CFLAGS="$save_CFLAGS"
15746 ac_ext=c
15747 ac_cpp='$CPP $CPPFLAGS'
15748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15753 ac_ext=c
15754 ac_cpp='$CPP $CPPFLAGS'
15755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15759 WARN_PEDANTIC=
15760 # Do the check with the no- prefix removed from the warning options
15761 # since gcc silently accepts any -Wno-* option on purpose
15762 if test "$GCC" = yes; then :
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
15764 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
15765 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
15766 $as_echo_n "(cached) " >&6
15767 else
15768 save_CFLAGS="$CFLAGS"
15769 CFLAGS="-pedantic -Wlong-long"
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15774 main ()
15778 return 0;
15780 _ACEOF
15781 if ac_fn_c_try_compile "$LINENO"; then :
15782 acx_cv_prog_cc_pedantic__Wlong_long=yes
15783 else
15784 acx_cv_prog_cc_pedantic__Wlong_long=no
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 CFLAGS="$save_CFLAGS"
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
15790 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
15791 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
15792 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
15796 ac_ext=c
15797 ac_cpp='$CPP $CPPFLAGS'
15798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15804 # Only enable with --enable-werror-always until existing warnings are
15805 # corrected.
15806 ac_ext=c
15807 ac_cpp='$CPP $CPPFLAGS'
15808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15812 WERROR=
15813 # Check whether --enable-werror-always was given.
15814 if test "${enable_werror_always+set}" = set; then :
15815 enableval=$enable_werror_always;
15816 else
15817 enable_werror_always=no
15820 if test $enable_werror_always = yes; then :
15821 WERROR="$WERROR${WERROR:+ }-Werror"
15824 ac_ext=c
15825 ac_cpp='$CPP $CPPFLAGS'
15826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15834 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15835 # Check whether --enable-maintainer-mode was given.
15836 if test "${enable_maintainer_mode+set}" = set; then :
15837 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15838 else
15839 USE_MAINTAINER_MODE=no
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15843 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15844 if test $USE_MAINTAINER_MODE = yes; then
15845 MAINTAINER_MODE_TRUE=
15846 MAINTAINER_MODE_FALSE='#'
15847 else
15848 MAINTAINER_MODE_TRUE='#'
15849 MAINTAINER_MODE_FALSE=
15852 MAINT=$MAINTAINER_MODE_TRUE
15855 case ${build_alias} in
15856 "") build_noncanonical=${build} ;;
15857 *) build_noncanonical=${build_alias} ;;
15858 esac
15860 case ${host_alias} in
15861 "") host_noncanonical=${build_noncanonical} ;;
15862 *) host_noncanonical=${host_alias} ;;
15863 esac
15865 case ${target_alias} in
15866 "") target_noncanonical=${host_noncanonical} ;;
15867 *) target_noncanonical=${target_alias} ;;
15868 esac
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
15871 $as_echo_n "checking whether to install libbfd... " >&6; }
15872 # Check whether --enable-install-libbfd was given.
15873 if test "${enable_install_libbfd+set}" = set; then :
15874 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
15875 else
15876 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
15877 install_libbfd_p=yes
15878 else
15879 install_libbfd_p=no
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
15884 $as_echo "$install_libbfd_p" >&6; }
15885 if test $install_libbfd_p = yes; then
15886 INSTALL_LIBBFD_TRUE=
15887 INSTALL_LIBBFD_FALSE='#'
15888 else
15889 INSTALL_LIBBFD_TRUE='#'
15890 INSTALL_LIBBFD_FALSE=
15893 # Need _noncanonical variables for this.
15898 # libbfd.a is a host library containing target dependent code
15899 bfdlibdir='$(libdir)'
15900 bfdincludedir='$(includedir)'
15901 if test "${host}" != "${target}"; then
15902 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
15903 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
15911 ac_ext=c
15912 ac_cpp='$CPP $CPPFLAGS'
15913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15917 ac_libctf_warn_cflags=
15918 save_CFLAGS="$CFLAGS"
15919 for real_option in -Wall; do
15920 # Do the check with the no- prefix removed since gcc silently
15921 # accepts any -Wno-* option on purpose
15922 case $real_option in
15923 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15924 *) option=$real_option ;;
15925 esac
15926 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15929 $as_echo_n "checking whether $CC supports $option... " >&6; }
15930 if eval \${$as_acx_Woption+:} false; then :
15931 $as_echo_n "(cached) " >&6
15932 else
15933 CFLAGS="$option"
15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h. */
15938 main ()
15942 return 0;
15944 _ACEOF
15945 if ac_fn_c_try_compile "$LINENO"; then :
15946 eval "$as_acx_Woption=yes"
15947 else
15948 eval "$as_acx_Woption=no"
15950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15953 eval ac_res=\$$as_acx_Woption
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15955 $as_echo "$ac_res" >&6; }
15956 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15957 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
15959 done
15960 CFLAGS="$save_CFLAGS"
15961 ac_ext=c
15962 ac_cpp='$CPP $CPPFLAGS'
15963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15972 for ac_header in $ac_header_list
15973 do :
15974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15975 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15978 cat >>confdefs.h <<_ACEOF
15979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15980 _ACEOF
15984 done
15993 for ac_func in getpagesize
15994 do :
15995 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15996 if test "x$ac_cv_func_getpagesize" = xyes; then :
15997 cat >>confdefs.h <<_ACEOF
15998 #define HAVE_GETPAGESIZE 1
15999 _ACEOF
16002 done
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16005 $as_echo_n "checking for working mmap... " >&6; }
16006 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16007 $as_echo_n "(cached) " >&6
16008 else
16009 if test "$cross_compiling" = yes; then :
16010 ac_cv_func_mmap_fixed_mapped=no
16011 else
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16014 $ac_includes_default
16015 /* malloc might have been renamed as rpl_malloc. */
16016 #undef malloc
16018 /* Thanks to Mike Haertel and Jim Avera for this test.
16019 Here is a matrix of mmap possibilities:
16020 mmap private not fixed
16021 mmap private fixed at somewhere currently unmapped
16022 mmap private fixed at somewhere already mapped
16023 mmap shared not fixed
16024 mmap shared fixed at somewhere currently unmapped
16025 mmap shared fixed at somewhere already mapped
16026 For private mappings, we should verify that changes cannot be read()
16027 back from the file, nor mmap's back from the file at a different
16028 address. (There have been systems where private was not correctly
16029 implemented like the infamous i386 svr4.0, and systems where the
16030 VM page cache was not coherent with the file system buffer cache
16031 like early versions of FreeBSD and possibly contemporary NetBSD.)
16032 For shared mappings, we should conversely verify that changes get
16033 propagated back to all the places they're supposed to be.
16035 Grep wants private fixed already mapped.
16036 The main things grep needs to know about mmap are:
16037 * does it exist and is it safe to write into the mmap'd area
16038 * how to use it (BSD variants) */
16040 #include <fcntl.h>
16041 #include <sys/mman.h>
16043 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16044 char *malloc ();
16045 #endif
16047 /* This mess was copied from the GNU getpagesize.h. */
16048 #ifndef HAVE_GETPAGESIZE
16049 # ifdef _SC_PAGESIZE
16050 # define getpagesize() sysconf(_SC_PAGESIZE)
16051 # else /* no _SC_PAGESIZE */
16052 # ifdef HAVE_SYS_PARAM_H
16053 # include <sys/param.h>
16054 # ifdef EXEC_PAGESIZE
16055 # define getpagesize() EXEC_PAGESIZE
16056 # else /* no EXEC_PAGESIZE */
16057 # ifdef NBPG
16058 # define getpagesize() NBPG * CLSIZE
16059 # ifndef CLSIZE
16060 # define CLSIZE 1
16061 # endif /* no CLSIZE */
16062 # else /* no NBPG */
16063 # ifdef NBPC
16064 # define getpagesize() NBPC
16065 # else /* no NBPC */
16066 # ifdef PAGESIZE
16067 # define getpagesize() PAGESIZE
16068 # endif /* PAGESIZE */
16069 # endif /* no NBPC */
16070 # endif /* no NBPG */
16071 # endif /* no EXEC_PAGESIZE */
16072 # else /* no HAVE_SYS_PARAM_H */
16073 # define getpagesize() 8192 /* punt totally */
16074 # endif /* no HAVE_SYS_PARAM_H */
16075 # endif /* no _SC_PAGESIZE */
16077 #endif /* no HAVE_GETPAGESIZE */
16080 main ()
16082 char *data, *data2, *data3;
16083 const char *cdata2;
16084 int i, pagesize;
16085 int fd, fd2;
16087 pagesize = getpagesize ();
16089 /* First, make a file with some known garbage in it. */
16090 data = (char *) malloc (pagesize);
16091 if (!data)
16092 return 1;
16093 for (i = 0; i < pagesize; ++i)
16094 *(data + i) = rand ();
16095 umask (0);
16096 fd = creat ("conftest.mmap", 0600);
16097 if (fd < 0)
16098 return 2;
16099 if (write (fd, data, pagesize) != pagesize)
16100 return 3;
16101 close (fd);
16103 /* Next, check that the tail of a page is zero-filled. File must have
16104 non-zero length, otherwise we risk SIGBUS for entire page. */
16105 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16106 if (fd2 < 0)
16107 return 4;
16108 cdata2 = "";
16109 if (write (fd2, cdata2, 1) != 1)
16110 return 5;
16111 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16112 if (data2 == MAP_FAILED)
16113 return 6;
16114 for (i = 0; i < pagesize; ++i)
16115 if (*(data2 + i))
16116 return 7;
16117 close (fd2);
16118 if (munmap (data2, pagesize))
16119 return 8;
16121 /* Next, try to mmap the file at a fixed address which already has
16122 something else allocated at it. If we can, also make sure that
16123 we see the same garbage. */
16124 fd = open ("conftest.mmap", O_RDWR);
16125 if (fd < 0)
16126 return 9;
16127 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16128 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16129 return 10;
16130 for (i = 0; i < pagesize; ++i)
16131 if (*(data + i) != *(data2 + i))
16132 return 11;
16134 /* Finally, make sure that changes to the mapped area do not
16135 percolate back to the file as seen by read(). (This is a bug on
16136 some variants of i386 svr4.0.) */
16137 for (i = 0; i < pagesize; ++i)
16138 *(data2 + i) = *(data2 + i) + 1;
16139 data3 = (char *) malloc (pagesize);
16140 if (!data3)
16141 return 12;
16142 if (read (fd, data3, pagesize) != pagesize)
16143 return 13;
16144 for (i = 0; i < pagesize; ++i)
16145 if (*(data + i) != *(data3 + i))
16146 return 14;
16147 close (fd);
16148 return 0;
16150 _ACEOF
16151 if ac_fn_c_try_run "$LINENO"; then :
16152 ac_cv_func_mmap_fixed_mapped=yes
16153 else
16154 ac_cv_func_mmap_fixed_mapped=no
16156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16157 conftest.$ac_objext conftest.beam conftest.$ac_ext
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16162 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16163 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16165 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16168 rm -f conftest.mmap conftest.txt
16170 # Needed for BFD capability checks.
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
16172 $as_echo_n "checking for library containing dlsym... " >&6; }
16173 if ${ac_cv_search_dlsym+:} false; then :
16174 $as_echo_n "(cached) " >&6
16175 else
16176 ac_func_search_save_LIBS=$LIBS
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16180 /* Override any GCC internal prototype to avoid an error.
16181 Use char because int might match the return type of a GCC
16182 builtin and then its argument prototype would still apply. */
16183 #ifdef __cplusplus
16184 extern "C"
16185 #endif
16186 char dlsym ();
16188 main ()
16190 return dlsym ();
16192 return 0;
16194 _ACEOF
16195 for ac_lib in '' dl; do
16196 if test -z "$ac_lib"; then
16197 ac_res="none required"
16198 else
16199 ac_res=-l$ac_lib
16200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16202 if ac_fn_c_try_link "$LINENO"; then :
16203 ac_cv_search_dlsym=$ac_res
16205 rm -f core conftest.err conftest.$ac_objext \
16206 conftest$ac_exeext
16207 if ${ac_cv_search_dlsym+:} false; then :
16208 break
16210 done
16211 if ${ac_cv_search_dlsym+:} false; then :
16213 else
16214 ac_cv_search_dlsym=no
16216 rm conftest.$ac_ext
16217 LIBS=$ac_func_search_save_LIBS
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
16220 $as_echo "$ac_cv_search_dlsym" >&6; }
16221 ac_res=$ac_cv_search_dlsym
16222 if test "$ac_res" != no; then :
16223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16228 # Use the system's zlib library.
16229 zlibdir="-L\$(top_builddir)/../zlib"
16230 zlibinc="-I\$(top_srcdir)/../zlib"
16232 # Check whether --with-system-zlib was given.
16233 if test "${with_system_zlib+set}" = set; then :
16234 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
16235 zlibdir=
16236 zlibinc=
16245 # Check whether --enable-libctf-hash-debugging was given.
16246 if test "${enable_libctf_hash_debugging+set}" = set; then :
16247 enableval=$enable_libctf_hash_debugging;
16248 case "$enableval" in
16249 yes|no) ;;
16250 *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;;
16251 esac
16253 else
16254 enable_libctf_hash_debugging=no
16258 if test "${enable_libctf_hash_debugging}" = yes; then
16260 $as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h
16263 if test "${enable_libctf_hash_debugging}" = yes; then
16264 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE=
16265 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#'
16266 else
16267 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#'
16268 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE=
16272 # Similar to GDB_AC_CHECK_BFD.
16273 OLD_CFLAGS=$CFLAGS
16274 OLD_LDFLAGS=$LDFLAGS
16275 OLD_LIBS=$LIBS
16276 OLD_CC=$CC
16277 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16278 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16279 # always want our bfd.
16280 CC="./libtool --quiet --mode=link $OLD_CC"
16281 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16282 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
16283 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16284 LIBS="-lbfd -liberty $intl $LIBS"
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
16286 $as_echo_n "checking for ELF support in BFD... " >&6; }
16287 if ${ac_cv_libctf_bfd_elf+:} false; then :
16288 $as_echo_n "(cached) " >&6
16289 else
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 #include <stdlib.h>
16293 #include <string.h>
16294 #include "bfd.h"
16295 #include "elf-bfd.h"
16297 main ()
16299 (void) bfd_section_from_elf_index (NULL, 0);
16300 return 0;
16302 return 0;
16304 _ACEOF
16305 if ac_fn_c_try_link "$LINENO"; then :
16306 ac_cv_libctf_bfd_elf=yes
16307 else
16308 ac_cv_libctf_bfd_elf=no
16310 rm -f core conftest.err conftest.$ac_objext \
16311 conftest$ac_exeext conftest.$ac_ext
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
16314 $as_echo "$ac_cv_libctf_bfd_elf" >&6; }
16315 CFLAGS=$OLD_CFLAGS
16316 LDFLAGS=$OLD_LDFLAGS
16317 LIBS=$OLD_LIBS
16318 CC=$OLD_CC
16320 if test $ac_cv_libctf_bfd_elf = yes; then
16322 $as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16327 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16328 if ${ac_cv_c_bigendian+:} false; then :
16329 $as_echo_n "(cached) " >&6
16330 else
16331 ac_cv_c_bigendian=unknown
16332 # See if we're dealing with a universal compiler.
16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334 /* end confdefs.h. */
16335 #ifndef __APPLE_CC__
16336 not a universal capable compiler
16337 #endif
16338 typedef int dummy;
16340 _ACEOF
16341 if ac_fn_c_try_compile "$LINENO"; then :
16343 # Check for potential -arch flags. It is not universal unless
16344 # there are at least two -arch flags with different values.
16345 ac_arch=
16346 ac_prev=
16347 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16348 if test -n "$ac_prev"; then
16349 case $ac_word in
16350 i?86 | x86_64 | ppc | ppc64)
16351 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16352 ac_arch=$ac_word
16353 else
16354 ac_cv_c_bigendian=universal
16355 break
16358 esac
16359 ac_prev=
16360 elif test "x$ac_word" = "x-arch"; then
16361 ac_prev=arch
16363 done
16365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366 if test $ac_cv_c_bigendian = unknown; then
16367 # See if sys/param.h defines the BYTE_ORDER macro.
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16370 #include <sys/types.h>
16371 #include <sys/param.h>
16374 main ()
16376 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16377 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16378 && LITTLE_ENDIAN)
16379 bogus endian macros
16380 #endif
16383 return 0;
16385 _ACEOF
16386 if ac_fn_c_try_compile "$LINENO"; then :
16387 # It does; now see whether it defined to BIG_ENDIAN or not.
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h. */
16390 #include <sys/types.h>
16391 #include <sys/param.h>
16394 main ()
16396 #if BYTE_ORDER != BIG_ENDIAN
16397 not big endian
16398 #endif
16401 return 0;
16403 _ACEOF
16404 if ac_fn_c_try_compile "$LINENO"; then :
16405 ac_cv_c_bigendian=yes
16406 else
16407 ac_cv_c_bigendian=no
16409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413 if test $ac_cv_c_bigendian = unknown; then
16414 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 #include <limits.h>
16420 main ()
16422 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16423 bogus endian macros
16424 #endif
16427 return 0;
16429 _ACEOF
16430 if ac_fn_c_try_compile "$LINENO"; then :
16431 # It does; now see whether it defined to _BIG_ENDIAN or not.
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16434 #include <limits.h>
16437 main ()
16439 #ifndef _BIG_ENDIAN
16440 not big endian
16441 #endif
16444 return 0;
16446 _ACEOF
16447 if ac_fn_c_try_compile "$LINENO"; then :
16448 ac_cv_c_bigendian=yes
16449 else
16450 ac_cv_c_bigendian=no
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16456 if test $ac_cv_c_bigendian = unknown; then
16457 # Compile a test program.
16458 if test "$cross_compiling" = yes; then :
16459 # Try to guess by grepping values from an object file.
16460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16461 /* end confdefs.h. */
16462 short int ascii_mm[] =
16463 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16464 short int ascii_ii[] =
16465 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16466 int use_ascii (int i) {
16467 return ascii_mm[i] + ascii_ii[i];
16469 short int ebcdic_ii[] =
16470 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16471 short int ebcdic_mm[] =
16472 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16473 int use_ebcdic (int i) {
16474 return ebcdic_mm[i] + ebcdic_ii[i];
16476 extern int foo;
16479 main ()
16481 return use_ascii (foo) == use_ebcdic (foo);
16483 return 0;
16485 _ACEOF
16486 if ac_fn_c_try_compile "$LINENO"; then :
16487 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16488 ac_cv_c_bigendian=yes
16490 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16491 if test "$ac_cv_c_bigendian" = unknown; then
16492 ac_cv_c_bigendian=no
16493 else
16494 # finding both strings is unlikely to happen, but who knows?
16495 ac_cv_c_bigendian=unknown
16499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500 else
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16503 $ac_includes_default
16505 main ()
16508 /* Are we little or big endian? From Harbison&Steele. */
16509 union
16511 long int l;
16512 char c[sizeof (long int)];
16513 } u;
16514 u.l = 1;
16515 return u.c[sizeof (long int) - 1] == 1;
16518 return 0;
16520 _ACEOF
16521 if ac_fn_c_try_run "$LINENO"; then :
16522 ac_cv_c_bigendian=no
16523 else
16524 ac_cv_c_bigendian=yes
16526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16527 conftest.$ac_objext conftest.beam conftest.$ac_ext
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16533 $as_echo "$ac_cv_c_bigendian" >&6; }
16534 case $ac_cv_c_bigendian in #(
16535 yes)
16536 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16537 ;; #(
16539 ;; #(
16540 universal)
16542 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16544 ;; #(
16546 as_fn_error $? "unknown endianness
16547 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16548 esac
16550 for ac_header in byteswap.h endian.h
16551 do :
16552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16553 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16554 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16555 cat >>confdefs.h <<_ACEOF
16556 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16557 _ACEOF
16561 done
16563 for ac_func in pread
16564 do :
16565 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
16566 if test "x$ac_cv_func_pread" = xyes; then :
16567 cat >>confdefs.h <<_ACEOF
16568 #define HAVE_PREAD 1
16569 _ACEOF
16572 done
16575 ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
16577 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
16578 ac_have_decl=1
16579 else
16580 ac_have_decl=0
16583 cat >>confdefs.h <<_ACEOF
16584 #define HAVE_DECL_BSWAP_16 $ac_have_decl
16585 _ACEOF
16586 ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
16588 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
16589 ac_have_decl=1
16590 else
16591 ac_have_decl=0
16594 cat >>confdefs.h <<_ACEOF
16595 #define HAVE_DECL_BSWAP_32 $ac_have_decl
16596 _ACEOF
16597 ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
16599 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
16600 ac_have_decl=1
16601 else
16602 ac_have_decl=0
16605 cat >>confdefs.h <<_ACEOF
16606 #define HAVE_DECL_BSWAP_64 $ac_have_decl
16607 _ACEOF
16609 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
16610 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
16611 ac_have_decl=1
16612 else
16613 ac_have_decl=0
16616 cat >>confdefs.h <<_ACEOF
16617 #define HAVE_DECL_ASPRINTF $ac_have_decl
16618 _ACEOF
16619 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
16620 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
16621 ac_have_decl=1
16622 else
16623 ac_have_decl=0
16626 cat >>confdefs.h <<_ACEOF
16627 #define HAVE_DECL_VASPRINTF $ac_have_decl
16628 _ACEOF
16629 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
16630 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
16631 ac_have_decl=1
16632 else
16633 ac_have_decl=0
16636 cat >>confdefs.h <<_ACEOF
16637 #define HAVE_DECL_STPCPY $ac_have_decl
16638 _ACEOF
16644 for ac_func in $ac_func_list
16645 do :
16646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16649 cat >>confdefs.h <<_ACEOF
16650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16651 _ACEOF
16654 done
16659 if test $ac_cv_func_qsort_r = yes; then
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5
16661 $as_echo_n "checking for qsort_r signature... " >&6; }
16662 if ${ac_cv_libctf_qsort_r_signature+:} false; then :
16663 $as_echo_n "(cached) " >&6
16664 else
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16667 #undef qsort_r
16668 #include <stdlib.h>
16669 void qsort_r (void *, size_t, size_t,
16670 int (*) (void const *, void const *,
16671 void *),
16672 void *);
16673 void (*p) (void *, size_t, size_t,
16674 int (*) (void const *, void const *,
16675 void *),
16676 void *) = qsort_r;
16679 main ()
16683 return 0;
16685 _ACEOF
16686 if ac_fn_c_try_link "$LINENO"; then :
16687 ac_cv_libctf_qsort_r_signature=GNU
16688 else
16689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690 /* end confdefs.h. */
16691 #undef qsort_r
16692 #include <stdlib.h>
16693 void qsort_r (void *, size_t, size_t, void *,
16694 int (*) (void *,
16695 void const *,
16696 void const *));
16697 void (*p) (void *, size_t, size_t, void *,
16698 int (*) (void *, void const *,
16699 void const *)) = qsort_r;
16702 main ()
16706 return 0;
16708 _ACEOF
16709 if ac_fn_c_try_link "$LINENO"; then :
16710 ac_cv_libctf_qsort_r_signature=BSD
16711 else
16712 ac_cv_libctf_qsort_r_signature=unknown
16714 rm -f core conftest.err conftest.$ac_objext \
16715 conftest$ac_exeext conftest.$ac_ext
16717 rm -f core conftest.err conftest.$ac_objext \
16718 conftest$ac_exeext conftest.$ac_ext
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5
16721 $as_echo "$ac_cv_libctf_qsort_r_signature" >&6; }
16724 case x$ac_cv_libctf_qsort_r_signature in
16725 xGNU)
16726 $as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h
16728 xBSD)
16729 $as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h
16731 *) ac_cv_libctf_qsort_r_signature=unknown;;
16732 esac
16734 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then
16735 NEED_CTF_QSORT_R_TRUE=
16736 NEED_CTF_QSORT_R_FALSE='#'
16737 else
16738 NEED_CTF_QSORT_R_TRUE='#'
16739 NEED_CTF_QSORT_R_FALSE=
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
16744 $as_echo_n "checking for O_CLOEXEC... " >&6; }
16745 if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then :
16746 $as_echo_n "(cached) " >&6
16747 else
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16750 #include <fcntl.h>
16751 #ifndef O_CLOEXEC
16752 choke me;
16753 #endif
16756 main ()
16758 return O_CLOEXEC;
16760 return 0;
16762 _ACEOF
16763 if ac_fn_c_try_link "$LINENO"; then :
16764 ac_cv_libctf_macro_O_CLOEXEC=yes
16765 else
16766 ac_cv_libctf_macro_O_CLOEXEC=no
16768 rm -f core conftest.err conftest.$ac_objext \
16769 conftest$ac_exeext conftest.$ac_ext
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
16772 $as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
16774 if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
16776 $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
16780 build_info=
16781 makeinfo_too_old=
16782 for ac_prog in makeinfo
16784 # Extract the first word of "$ac_prog", so it can be a program name with args.
16785 set dummy $ac_prog; ac_word=$2
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16787 $as_echo_n "checking for $ac_word... " >&6; }
16788 if ${ac_cv_prog_MAKEINFO+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16791 if test -n "$MAKEINFO"; then
16792 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
16793 else
16794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16795 for as_dir in $PATH
16797 IFS=$as_save_IFS
16798 test -z "$as_dir" && as_dir=.
16799 for ac_exec_ext in '' $ac_executable_extensions; do
16800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16801 ac_cv_prog_MAKEINFO="$ac_prog"
16802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16803 break 2
16805 done
16806 done
16807 IFS=$as_save_IFS
16811 MAKEINFO=$ac_cv_prog_MAKEINFO
16812 if test -n "$MAKEINFO"; then
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16814 $as_echo "$MAKEINFO" >&6; }
16815 else
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16817 $as_echo "no" >&6; }
16821 test -n "$MAKEINFO" && break
16822 done
16823 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
16825 case " $build_configdirs " in
16826 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
16827 esac
16829 # We require texinfo to be 6.3 or later, for a working synindex
16830 # and validatemenus: otherwise we fall back to /bin/true.
16831 if ${MAKEINFO} --version \
16832 | egrep 'texinfo[^0-9]*(6\.[3-9]|[7-9]|[1-6][0-9])' >/dev/null 2>&1; then
16833 build_info=yes
16834 else
16835 build_info=
16836 makeinfo_too_old=t
16839 if test -n "$makeinfo_too_old"; then
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16841 *** Makeinfo is too old. Info documentation will not be built." >&5
16842 $as_echo "$as_me: WARNING:
16843 *** Makeinfo is too old. Info documentation will not be built." >&2;}
16846 if test "${build_info}" = yes; then
16847 BUILD_INFO_TRUE=
16848 BUILD_INFO_FALSE='#'
16849 else
16850 BUILD_INFO_TRUE='#'
16851 BUILD_INFO_FALSE=
16855 CTF_LIBADD="-L`pwd`/../libiberty -liberty"
16856 SHARED_LDFLAGS=
16858 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
16859 if test "$enable_shared" = "yes"; then
16860 # When building a shared libctf, link against the pic version of libiberty
16861 # so that apps that use libctf won't need libiberty just to satisfy any
16862 # libctf references. We can't do that if a pic libiberty is unavailable
16863 # since including non-pic # code would insert text relocations into libctf.
16864 # Note that linking against libbfd as we do here, which is itself linked
16865 # against libiberty, may not satisfy all the libctf libiberty references
16866 # since libbfd may not pull in the entirety of libiberty.
16867 # Also, jam libintl into the right place in all of this: after libiberty,
16868 # which uses it, but before -lcygwin, which it uses.
16869 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
16870 if test -n "$x"; then
16871 CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty"
16875 CTF_LIBADD="$CTF_LIBADD $LTLIBINTL"
16877 if test "$enable_shared" = "yes"; then
16878 case "${host}" in
16879 # More hacks to build DLLs on Windows.
16880 *-*-cygwin*)
16881 SHARED_LDFLAGS="-no-undefined"
16882 CTF_LIBADD="$CTF_LIBADD -lcygwin"
16884 esac
16889 # Extract the first word of "expect", so it can be a program name with args.
16890 set dummy expect; ac_word=$2
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16892 $as_echo_n "checking for $ac_word... " >&6; }
16893 if ${ac_cv_path_EXPECT+:} false; then :
16894 $as_echo_n "(cached) " >&6
16895 else
16896 case $EXPECT in
16897 [\\/]* | ?:[\\/]*)
16898 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
16901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16902 for as_dir in $PATH
16904 IFS=$as_save_IFS
16905 test -z "$as_dir" && as_dir=.
16906 for ac_exec_ext in '' $ac_executable_extensions; do
16907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16908 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
16909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16910 break 2
16912 done
16913 done
16914 IFS=$as_save_IFS
16917 esac
16919 EXPECT=$ac_cv_path_EXPECT
16920 if test -n "$EXPECT"; then
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
16922 $as_echo "$EXPECT" >&6; }
16923 else
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16925 $as_echo "no" >&6; }
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
16930 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
16931 if ${ac_cv_libctf_tcl_try+:} false; then :
16932 $as_echo_n "(cached) " >&6
16933 else
16934 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
16935 if [llength [info commands try]] then { puts yes } else { puts no }
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
16941 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
16943 HAVE_TCL_TRY=false
16944 if test "${ac_cv_libctf_tcl_try}" = "yes"; then
16945 HAVE_TCL_TRY=true
16949 # Use a version script, if possible, or an -export-symbols-regex otherwise.
16950 decommented_version_script=
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker versioning flags" >&5
16952 $as_echo_n "checking for linker versioning flags... " >&6; }
16953 if ${ac_cv_libctf_version_script+:} false; then :
16954 $as_echo_n "(cached) " >&6
16955 else
16956 echo 'FOO { global: mai*; local: ctf_fo*; };' > conftest.ver
16957 old_LDFLAGS="$LDFLAGS"
16958 old_CFLAGS="$CFLAGS"
16959 LDFLAGS="$LDFLAGS -shared -Wl,--version-script=conftest.ver"
16960 CFLAGS="$CFLAGS -fPIC"
16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h. */
16963 int ctf_foo (void) { return 0; }
16964 int main (void) { return ctf_foo(); }
16965 _ACEOF
16966 if ac_fn_c_try_link "$LINENO"; then :
16967 ac_cv_libctf_version_script="-Wl,--version-script='$srcdir/libctf.ver'"
16969 rm -f core conftest.err conftest.$ac_objext \
16970 conftest$ac_exeext conftest.$ac_ext
16971 LDFLAGS="$old_LDFLAGS"
16973 if test -z "$ac_cv_libctf_version_script"; then
16974 LDFLAGS="$LDFLAGS -shared -Wl,-B,local -Wl,-z,gnu-version-script=conftest.ver"
16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h. */
16977 int ctf_foo (void) { return 0; }
16978 int main (void) { return ctf_foo(); }
16979 _ACEOF
16980 if ac_fn_c_try_link "$LINENO"; then :
16981 ac_cv_libctf_version_script="-Wl,-B,local -Wl,-z,gnu-version-script"
16982 decommented_version_script=t
16984 rm -f core conftest.err conftest.$ac_objext \
16985 conftest$ac_exeext conftest.$ac_ext
16986 LDFLAGS="$old_LDFLAGS"
16988 CFLAGS="$old_CFLAGS"
16990 if test -z "$ac_cv_libctf_version_script"; then
16991 ac_cv_libctf_version_script='-export-symbols-regex ctf_.*'
16993 rm -f conftest.ver
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_version_script" >&5
16996 $as_echo "$ac_cv_libctf_version_script" >&6; }
16997 if test -n "$decommented_version_script"; then
16998 # Solaris's version scripts use shell-style comments rather than the C-style
16999 # used by GNU ld. Use cpp to strip the comments out. (cpp exists under this
17000 # name on all platforms that support ld -z gnu-version-script.)
17001 # Also ensure that no symbols exist in the version script for libctf-nobfd.so
17002 # that do not exist in the shared library itself, since some linkers add such
17003 # symbols with type NOTYPE.
17004 /lib/cpp < $srcdir/libctf.ver > libctf-decommented.ver
17005 grep -v 'libctf only' $srcdir/libctf.ver | /lib/cpp > libctf-nobfd-decommented.ver
17006 VERSION_FLAGS="$ac_cv_libctf_version_script='libctf-decommented.ver'"
17007 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd-decommented.ver'"
17008 else
17009 VERSION_FLAGS="$ac_cv_libctf_version_script"
17010 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script"
17015 ac_config_files="$ac_config_files Makefile"
17017 ac_config_headers="$ac_config_headers config.h"
17019 cat >confcache <<\_ACEOF
17020 # This file is a shell script that caches the results of configure
17021 # tests run on this system so they can be shared between configure
17022 # scripts and configure runs, see configure's option --config-cache.
17023 # It is not useful on other systems. If it contains results you don't
17024 # want to keep, you may remove or edit it.
17026 # config.status only pays attention to the cache file if you give it
17027 # the --recheck option to rerun configure.
17029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17031 # following values.
17033 _ACEOF
17035 # The following way of writing the cache mishandles newlines in values,
17036 # but we know of no workaround that is simple, portable, and efficient.
17037 # So, we kill variables containing newlines.
17038 # Ultrix sh set writes to stderr and can't be redirected directly,
17039 # and sets the high bit in the cache file unless we assign to the vars.
17041 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17042 eval ac_val=\$$ac_var
17043 case $ac_val in #(
17044 *${as_nl}*)
17045 case $ac_var in #(
17046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17048 esac
17049 case $ac_var in #(
17050 _ | IFS | as_nl) ;; #(
17051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17052 *) { eval $ac_var=; unset $ac_var;} ;;
17053 esac ;;
17054 esac
17055 done
17057 (set) 2>&1 |
17058 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17059 *${as_nl}ac_space=\ *)
17060 # `set' does not quote correctly, so add quotes: double-quote
17061 # substitution turns \\\\ into \\, and sed turns \\ into \.
17062 sed -n \
17063 "s/'/'\\\\''/g;
17064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17065 ;; #(
17067 # `set' quotes correctly as required by POSIX, so do not add quotes.
17068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17070 esac |
17071 sort
17073 sed '
17074 /^ac_cv_env_/b end
17075 t clear
17076 :clear
17077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17078 t end
17079 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17080 :end' >>confcache
17081 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17082 if test -w "$cache_file"; then
17083 if test "x$cache_file" != "x/dev/null"; then
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17085 $as_echo "$as_me: updating cache $cache_file" >&6;}
17086 if test ! -f "$cache_file" || test -h "$cache_file"; then
17087 cat confcache >"$cache_file"
17088 else
17089 case $cache_file in #(
17090 */* | ?:*)
17091 mv -f confcache "$cache_file"$$ &&
17092 mv -f "$cache_file"$$ "$cache_file" ;; #(
17094 mv -f confcache "$cache_file" ;;
17095 esac
17098 else
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17100 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17103 rm -f confcache
17105 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17106 # Let make expand exec_prefix.
17107 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17109 DEFS=-DHAVE_CONFIG_H
17111 ac_libobjs=
17112 ac_ltlibobjs=
17114 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17115 # 1. Remove the extension, and $U if already installed.
17116 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17117 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17118 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17119 # will be set to the directory where LIBOBJS objects are built.
17120 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17121 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17122 done
17123 LIBOBJS=$ac_libobjs
17125 LTLIBOBJS=$ac_ltlibobjs
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17129 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17130 if test -n "$am_sleep_pid"; then
17131 # Hide warnings about reused PIDs.
17132 wait $am_sleep_pid 2>/dev/null
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17135 $as_echo "done" >&6; }
17136 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17137 as_fn_error $? "conditional \"AMDEP\" was never defined.
17138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17140 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17141 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17144 if test -n "$EXEEXT"; then
17145 am__EXEEXT_TRUE=
17146 am__EXEEXT_FALSE='#'
17147 else
17148 am__EXEEXT_TRUE='#'
17149 am__EXEEXT_FALSE=
17152 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17153 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17156 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
17157 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
17158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17160 if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then
17161 as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined.
17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17165 if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
17166 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
17167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17169 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17170 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17174 : "${CONFIG_STATUS=./config.status}"
17175 ac_write_fail=0
17176 ac_clean_files_save=$ac_clean_files
17177 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17179 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17180 as_write_fail=0
17181 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17182 #! $SHELL
17183 # Generated by $as_me.
17184 # Run this file to recreate the current configuration.
17185 # Compiler output produced by configure, useful for debugging
17186 # configure, is in config.log if it exists.
17188 debug=false
17189 ac_cs_recheck=false
17190 ac_cs_silent=false
17192 SHELL=\${CONFIG_SHELL-$SHELL}
17193 export SHELL
17194 _ASEOF
17195 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17196 ## -------------------- ##
17197 ## M4sh Initialization. ##
17198 ## -------------------- ##
17200 # Be more Bourne compatible
17201 DUALCASE=1; export DUALCASE # for MKS sh
17202 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17203 emulate sh
17204 NULLCMD=:
17205 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17206 # is contrary to our usage. Disable this feature.
17207 alias -g '${1+"$@"}'='"$@"'
17208 setopt NO_GLOB_SUBST
17209 else
17210 case `(set -o) 2>/dev/null` in #(
17211 *posix*) :
17212 set -o posix ;; #(
17213 *) :
17215 esac
17219 as_nl='
17221 export as_nl
17222 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17223 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17224 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17226 # Prefer a ksh shell builtin over an external printf program on Solaris,
17227 # but without wasting forks for bash or zsh.
17228 if test -z "$BASH_VERSION$ZSH_VERSION" \
17229 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17230 as_echo='print -r --'
17231 as_echo_n='print -rn --'
17232 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17233 as_echo='printf %s\n'
17234 as_echo_n='printf %s'
17235 else
17236 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17237 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17238 as_echo_n='/usr/ucb/echo -n'
17239 else
17240 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17241 as_echo_n_body='eval
17242 arg=$1;
17243 case $arg in #(
17244 *"$as_nl"*)
17245 expr "X$arg" : "X\\(.*\\)$as_nl";
17246 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17247 esac;
17248 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17250 export as_echo_n_body
17251 as_echo_n='sh -c $as_echo_n_body as_echo'
17253 export as_echo_body
17254 as_echo='sh -c $as_echo_body as_echo'
17257 # The user is always right.
17258 if test "${PATH_SEPARATOR+set}" != set; then
17259 PATH_SEPARATOR=:
17260 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17261 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17262 PATH_SEPARATOR=';'
17267 # IFS
17268 # We need space, tab and new line, in precisely that order. Quoting is
17269 # there to prevent editors from complaining about space-tab.
17270 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17271 # splitting by setting IFS to empty value.)
17272 IFS=" "" $as_nl"
17274 # Find who we are. Look in the path if we contain no directory separator.
17275 as_myself=
17276 case $0 in #((
17277 *[\\/]* ) as_myself=$0 ;;
17278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17279 for as_dir in $PATH
17281 IFS=$as_save_IFS
17282 test -z "$as_dir" && as_dir=.
17283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17284 done
17285 IFS=$as_save_IFS
17288 esac
17289 # We did not find ourselves, most probably we were run as `sh COMMAND'
17290 # in which case we are not to be found in the path.
17291 if test "x$as_myself" = x; then
17292 as_myself=$0
17294 if test ! -f "$as_myself"; then
17295 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17296 exit 1
17299 # Unset variables that we do not need and which cause bugs (e.g. in
17300 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17301 # suppresses any "Segmentation fault" message there. '((' could
17302 # trigger a bug in pdksh 5.2.14.
17303 for as_var in BASH_ENV ENV MAIL MAILPATH
17304 do eval test x\${$as_var+set} = xset \
17305 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17306 done
17307 PS1='$ '
17308 PS2='> '
17309 PS4='+ '
17311 # NLS nuisances.
17312 LC_ALL=C
17313 export LC_ALL
17314 LANGUAGE=C
17315 export LANGUAGE
17317 # CDPATH.
17318 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17321 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17322 # ----------------------------------------
17323 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17324 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17325 # script with STATUS, using 1 if that was 0.
17326 as_fn_error ()
17328 as_status=$1; test $as_status -eq 0 && as_status=1
17329 if test "$4"; then
17330 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17331 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17333 $as_echo "$as_me: error: $2" >&2
17334 as_fn_exit $as_status
17335 } # as_fn_error
17338 # as_fn_set_status STATUS
17339 # -----------------------
17340 # Set $? to STATUS, without forking.
17341 as_fn_set_status ()
17343 return $1
17344 } # as_fn_set_status
17346 # as_fn_exit STATUS
17347 # -----------------
17348 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17349 as_fn_exit ()
17351 set +e
17352 as_fn_set_status $1
17353 exit $1
17354 } # as_fn_exit
17356 # as_fn_unset VAR
17357 # ---------------
17358 # Portably unset VAR.
17359 as_fn_unset ()
17361 { eval $1=; unset $1;}
17363 as_unset=as_fn_unset
17364 # as_fn_append VAR VALUE
17365 # ----------------------
17366 # Append the text in VALUE to the end of the definition contained in VAR. Take
17367 # advantage of any shell optimizations that allow amortized linear growth over
17368 # repeated appends, instead of the typical quadratic growth present in naive
17369 # implementations.
17370 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17371 eval 'as_fn_append ()
17373 eval $1+=\$2
17375 else
17376 as_fn_append ()
17378 eval $1=\$$1\$2
17380 fi # as_fn_append
17382 # as_fn_arith ARG...
17383 # ------------------
17384 # Perform arithmetic evaluation on the ARGs, and store the result in the
17385 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17386 # must be portable across $(()) and expr.
17387 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17388 eval 'as_fn_arith ()
17390 as_val=$(( $* ))
17392 else
17393 as_fn_arith ()
17395 as_val=`expr "$@" || test $? -eq 1`
17397 fi # as_fn_arith
17400 if expr a : '\(a\)' >/dev/null 2>&1 &&
17401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17402 as_expr=expr
17403 else
17404 as_expr=false
17407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17408 as_basename=basename
17409 else
17410 as_basename=false
17413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17414 as_dirname=dirname
17415 else
17416 as_dirname=false
17419 as_me=`$as_basename -- "$0" ||
17420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17421 X"$0" : 'X\(//\)$' \| \
17422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17423 $as_echo X/"$0" |
17424 sed '/^.*\/\([^/][^/]*\)\/*$/{
17425 s//\1/
17428 /^X\/\(\/\/\)$/{
17429 s//\1/
17432 /^X\/\(\/\).*/{
17433 s//\1/
17436 s/.*/./; q'`
17438 # Avoid depending upon Character Ranges.
17439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17442 as_cr_digits='0123456789'
17443 as_cr_alnum=$as_cr_Letters$as_cr_digits
17445 ECHO_C= ECHO_N= ECHO_T=
17446 case `echo -n x` in #(((((
17447 -n*)
17448 case `echo 'xy\c'` in
17449 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17450 xy) ECHO_C='\c';;
17451 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17452 ECHO_T=' ';;
17453 esac;;
17455 ECHO_N='-n';;
17456 esac
17458 rm -f conf$$ conf$$.exe conf$$.file
17459 if test -d conf$$.dir; then
17460 rm -f conf$$.dir/conf$$.file
17461 else
17462 rm -f conf$$.dir
17463 mkdir conf$$.dir 2>/dev/null
17465 if (echo >conf$$.file) 2>/dev/null; then
17466 if ln -s conf$$.file conf$$ 2>/dev/null; then
17467 as_ln_s='ln -s'
17468 # ... but there are two gotchas:
17469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17471 # In both cases, we have to default to `cp -pR'.
17472 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17473 as_ln_s='cp -pR'
17474 elif ln conf$$.file conf$$ 2>/dev/null; then
17475 as_ln_s=ln
17476 else
17477 as_ln_s='cp -pR'
17479 else
17480 as_ln_s='cp -pR'
17482 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17483 rmdir conf$$.dir 2>/dev/null
17486 # as_fn_mkdir_p
17487 # -------------
17488 # Create "$as_dir" as a directory, including parents if necessary.
17489 as_fn_mkdir_p ()
17492 case $as_dir in #(
17493 -*) as_dir=./$as_dir;;
17494 esac
17495 test -d "$as_dir" || eval $as_mkdir_p || {
17496 as_dirs=
17497 while :; do
17498 case $as_dir in #(
17499 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17500 *) as_qdir=$as_dir;;
17501 esac
17502 as_dirs="'$as_qdir' $as_dirs"
17503 as_dir=`$as_dirname -- "$as_dir" ||
17504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17505 X"$as_dir" : 'X\(//\)[^/]' \| \
17506 X"$as_dir" : 'X\(//\)$' \| \
17507 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17508 $as_echo X"$as_dir" |
17509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17510 s//\1/
17513 /^X\(\/\/\)[^/].*/{
17514 s//\1/
17517 /^X\(\/\/\)$/{
17518 s//\1/
17521 /^X\(\/\).*/{
17522 s//\1/
17525 s/.*/./; q'`
17526 test -d "$as_dir" && break
17527 done
17528 test -z "$as_dirs" || eval "mkdir $as_dirs"
17529 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17532 } # as_fn_mkdir_p
17533 if mkdir -p . 2>/dev/null; then
17534 as_mkdir_p='mkdir -p "$as_dir"'
17535 else
17536 test -d ./-p && rmdir ./-p
17537 as_mkdir_p=false
17541 # as_fn_executable_p FILE
17542 # -----------------------
17543 # Test if FILE is an executable regular file.
17544 as_fn_executable_p ()
17546 test -f "$1" && test -x "$1"
17547 } # as_fn_executable_p
17548 as_test_x='test -x'
17549 as_executable_p=as_fn_executable_p
17551 # Sed expression to map a string onto a valid CPP name.
17552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17554 # Sed expression to map a string onto a valid variable name.
17555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17558 exec 6>&1
17559 ## ----------------------------------- ##
17560 ## Main body of $CONFIG_STATUS script. ##
17561 ## ----------------------------------- ##
17562 _ASEOF
17563 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17566 # Save the log message, to keep $0 and so on meaningful, and to
17567 # report actual input values of CONFIG_FILES etc. instead of their
17568 # values after options handling.
17569 ac_log="
17570 This file was extended by libctf $as_me 1.2.0, which was
17571 generated by GNU Autoconf 2.69. Invocation command line was
17573 CONFIG_FILES = $CONFIG_FILES
17574 CONFIG_HEADERS = $CONFIG_HEADERS
17575 CONFIG_LINKS = $CONFIG_LINKS
17576 CONFIG_COMMANDS = $CONFIG_COMMANDS
17577 $ $0 $@
17579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17582 _ACEOF
17584 case $ac_config_files in *"
17585 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17586 esac
17588 case $ac_config_headers in *"
17589 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17590 esac
17593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17594 # Files that config.status was made for.
17595 config_files="$ac_config_files"
17596 config_headers="$ac_config_headers"
17597 config_commands="$ac_config_commands"
17599 _ACEOF
17601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17602 ac_cs_usage="\
17603 \`$as_me' instantiates files and other configuration actions
17604 from templates according to the current configuration. Unless the files
17605 and actions are specified as TAGs, all are instantiated by default.
17607 Usage: $0 [OPTION]... [TAG]...
17609 -h, --help print this help, then exit
17610 -V, --version print version number and configuration settings, then exit
17611 --config print configuration, then exit
17612 -q, --quiet, --silent
17613 do not print progress messages
17614 -d, --debug don't remove temporary files
17615 --recheck update $as_me by reconfiguring in the same conditions
17616 --file=FILE[:TEMPLATE]
17617 instantiate the configuration file FILE
17618 --header=FILE[:TEMPLATE]
17619 instantiate the configuration header FILE
17621 Configuration files:
17622 $config_files
17624 Configuration headers:
17625 $config_headers
17627 Configuration commands:
17628 $config_commands
17630 Report bugs to the package provider."
17632 _ACEOF
17633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17634 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17635 ac_cs_version="\\
17636 libctf config.status 1.2.0
17637 configured by $0, generated by GNU Autoconf 2.69,
17638 with options \\"\$ac_cs_config\\"
17640 Copyright (C) 2012 Free Software Foundation, Inc.
17641 This config.status script is free software; the Free Software Foundation
17642 gives unlimited permission to copy, distribute and modify it."
17644 ac_pwd='$ac_pwd'
17645 srcdir='$srcdir'
17646 INSTALL='$INSTALL'
17647 MKDIR_P='$MKDIR_P'
17648 AWK='$AWK'
17649 test -n "\$AWK" || AWK=awk
17650 _ACEOF
17652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17653 # The default lists apply if the user does not specify any file.
17654 ac_need_defaults=:
17655 while test $# != 0
17657 case $1 in
17658 --*=?*)
17659 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17660 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17661 ac_shift=:
17663 --*=)
17664 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17665 ac_optarg=
17666 ac_shift=:
17669 ac_option=$1
17670 ac_optarg=$2
17671 ac_shift=shift
17673 esac
17675 case $ac_option in
17676 # Handling of the options.
17677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17678 ac_cs_recheck=: ;;
17679 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17680 $as_echo "$ac_cs_version"; exit ;;
17681 --config | --confi | --conf | --con | --co | --c )
17682 $as_echo "$ac_cs_config"; exit ;;
17683 --debug | --debu | --deb | --de | --d | -d )
17684 debug=: ;;
17685 --file | --fil | --fi | --f )
17686 $ac_shift
17687 case $ac_optarg in
17688 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17689 '') as_fn_error $? "missing file argument" ;;
17690 esac
17691 as_fn_append CONFIG_FILES " '$ac_optarg'"
17692 ac_need_defaults=false;;
17693 --header | --heade | --head | --hea )
17694 $ac_shift
17695 case $ac_optarg in
17696 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17697 esac
17698 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17699 ac_need_defaults=false;;
17700 --he | --h)
17701 # Conflict between --help and --header
17702 as_fn_error $? "ambiguous option: \`$1'
17703 Try \`$0 --help' for more information.";;
17704 --help | --hel | -h )
17705 $as_echo "$ac_cs_usage"; exit ;;
17706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17708 ac_cs_silent=: ;;
17710 # This is an error.
17711 -*) as_fn_error $? "unrecognized option: \`$1'
17712 Try \`$0 --help' for more information." ;;
17714 *) as_fn_append ac_config_targets " $1"
17715 ac_need_defaults=false ;;
17717 esac
17718 shift
17719 done
17721 ac_configure_extra_args=
17723 if $ac_cs_silent; then
17724 exec 6>/dev/null
17725 ac_configure_extra_args="$ac_configure_extra_args --silent"
17728 _ACEOF
17729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17730 if \$ac_cs_recheck; then
17731 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17732 shift
17733 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17734 CONFIG_SHELL='$SHELL'
17735 export CONFIG_SHELL
17736 exec "\$@"
17739 _ACEOF
17740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17741 exec 5>>config.log
17743 echo
17744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17745 ## Running $as_me. ##
17746 _ASBOX
17747 $as_echo "$ac_log"
17748 } >&5
17750 _ACEOF
17751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17753 # INIT-COMMANDS
17755 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17756 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17757 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17758 # from automake.
17759 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17760 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17761 LINGUAS="${LINGUAS-%UNSET%}"
17765 # The HP-UX ksh and POSIX shell print the target directory to stdout
17766 # if CDPATH is set.
17767 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17769 sed_quote_subst='$sed_quote_subst'
17770 double_quote_subst='$double_quote_subst'
17771 delay_variable_subst='$delay_variable_subst'
17772 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17773 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17774 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17775 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17776 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17777 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17778 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17779 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17780 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17781 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17782 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17783 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17784 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17785 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17786 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17787 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17788 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17789 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17790 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17791 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17792 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17793 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17794 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17795 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17796 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17797 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17798 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17799 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17800 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17801 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17802 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17803 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17804 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17805 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17806 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17807 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17808 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17809 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17810 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17811 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17812 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17813 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17814 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17815 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17816 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17817 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17818 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17819 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17820 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"`'
17821 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17822 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17823 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17824 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17825 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17826 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17827 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17828 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17829 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17830 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17831 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17832 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17833 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17834 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17835 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17836 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17837 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17838 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17839 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17840 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17841 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17842 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17843 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17844 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17845 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17846 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17847 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17848 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17849 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17850 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17851 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17852 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17853 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17854 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17855 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17856 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17857 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17858 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17859 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17860 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17861 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17862 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17863 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17864 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17865 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17866 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17867 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17868 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17869 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17870 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17871 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17872 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17873 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17874 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17875 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17876 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17877 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17878 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17879 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17880 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17881 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17882 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17883 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17884 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17885 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17886 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17887 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17888 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17889 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17890 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17891 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17893 LTCC='$LTCC'
17894 LTCFLAGS='$LTCFLAGS'
17895 compiler='$compiler_DEFAULT'
17897 # A function that is used when there is no print builtin or printf.
17898 func_fallback_echo ()
17900 eval 'cat <<_LTECHO_EOF
17902 _LTECHO_EOF'
17905 # Quote evaled strings.
17906 for var in SHELL \
17907 ECHO \
17908 SED \
17909 GREP \
17910 EGREP \
17911 FGREP \
17912 LD \
17913 NM \
17914 LN_S \
17915 lt_SP2NL \
17916 lt_NL2SP \
17917 reload_flag \
17918 OBJDUMP \
17919 deplibs_check_method \
17920 file_magic_cmd \
17921 AR \
17922 AR_FLAGS \
17923 STRIP \
17924 RANLIB \
17925 CC \
17926 CFLAGS \
17927 compiler \
17928 lt_cv_sys_global_symbol_pipe \
17929 lt_cv_sys_global_symbol_to_cdecl \
17930 lt_cv_sys_global_symbol_to_c_name_address \
17931 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17932 lt_prog_compiler_no_builtin_flag \
17933 lt_prog_compiler_wl \
17934 lt_prog_compiler_pic \
17935 lt_prog_compiler_static \
17936 lt_cv_prog_compiler_c_o \
17937 need_locks \
17938 DSYMUTIL \
17939 NMEDIT \
17940 LIPO \
17941 OTOOL \
17942 OTOOL64 \
17943 shrext_cmds \
17944 export_dynamic_flag_spec \
17945 whole_archive_flag_spec \
17946 compiler_needs_object \
17947 with_gnu_ld \
17948 allow_undefined_flag \
17949 no_undefined_flag \
17950 hardcode_libdir_flag_spec \
17951 hardcode_libdir_flag_spec_ld \
17952 hardcode_libdir_separator \
17953 fix_srcfile_path \
17954 exclude_expsyms \
17955 include_expsyms \
17956 file_list_spec \
17957 variables_saved_for_relink \
17958 libname_spec \
17959 library_names_spec \
17960 soname_spec \
17961 install_override_mode \
17962 finish_eval \
17963 old_striplib \
17964 striplib; do
17965 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17966 *[\\\\\\\`\\"\\\$]*)
17967 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17970 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17972 esac
17973 done
17975 # Double-quote double-evaled strings.
17976 for var in reload_cmds \
17977 old_postinstall_cmds \
17978 old_postuninstall_cmds \
17979 old_archive_cmds \
17980 extract_expsyms_cmds \
17981 old_archive_from_new_cmds \
17982 old_archive_from_expsyms_cmds \
17983 archive_cmds \
17984 archive_expsym_cmds \
17985 module_cmds \
17986 module_expsym_cmds \
17987 export_symbols_cmds \
17988 prelink_cmds \
17989 postinstall_cmds \
17990 postuninstall_cmds \
17991 finish_cmds \
17992 sys_lib_search_path_spec \
17993 sys_lib_dlsearch_path_spec; do
17994 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17995 *[\\\\\\\`\\"\\\$]*)
17996 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17999 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18001 esac
18002 done
18004 ac_aux_dir='$ac_aux_dir'
18005 xsi_shell='$xsi_shell'
18006 lt_shell_append='$lt_shell_append'
18008 # See if we are running on zsh, and set the options which allow our
18009 # commands through without removal of \ escapes INIT.
18010 if test -n "\${ZSH_VERSION+set}" ; then
18011 setopt NO_GLOB_SUBST
18015 PACKAGE='$PACKAGE'
18016 VERSION='$VERSION'
18017 TIMESTAMP='$TIMESTAMP'
18018 RM='$RM'
18019 ofile='$ofile'
18021 ac_aux_dir='$ac_aux_dir'
18025 _ACEOF
18027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18029 # Handling of arguments.
18030 for ac_config_target in $ac_config_targets
18032 case $ac_config_target in
18033 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18034 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18035 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18036 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18037 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18039 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18040 esac
18041 done
18044 # If the user did not use the arguments to specify the items to instantiate,
18045 # then the envvar interface is used. Set only those that are not.
18046 # We use the long form for the default assignment because of an extremely
18047 # bizarre bug on SunOS 4.1.3.
18048 if $ac_need_defaults; then
18049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18054 # Have a temporary directory for convenience. Make it in the build tree
18055 # simply because there is no reason against having it here, and in addition,
18056 # creating and moving files from /tmp can sometimes cause problems.
18057 # Hook for its removal unless debugging.
18058 # Note that there is a small window in which the directory will not be cleaned:
18059 # after its creation but before its name has been assigned to `$tmp'.
18060 $debug ||
18062 tmp= ac_tmp=
18063 trap 'exit_status=$?
18064 : "${ac_tmp:=$tmp}"
18065 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18067 trap 'as_fn_exit 1' 1 2 13 15
18069 # Create a (secure) tmp directory for tmp files.
18072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18073 test -d "$tmp"
18074 } ||
18076 tmp=./conf$$-$RANDOM
18077 (umask 077 && mkdir "$tmp")
18078 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18079 ac_tmp=$tmp
18081 # Set up the scripts for CONFIG_FILES section.
18082 # No need to generate them if there are no CONFIG_FILES.
18083 # This happens for instance with `./config.status config.h'.
18084 if test -n "$CONFIG_FILES"; then
18087 ac_cr=`echo X | tr X '\015'`
18088 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18089 # But we know of no other shell where ac_cr would be empty at this
18090 # point, so we can use a bashism as a fallback.
18091 if test "x$ac_cr" = x; then
18092 eval ac_cr=\$\'\\r\'
18094 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18095 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18096 ac_cs_awk_cr='\\r'
18097 else
18098 ac_cs_awk_cr=$ac_cr
18101 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18102 _ACEOF
18106 echo "cat >conf$$subs.awk <<_ACEOF" &&
18107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18108 echo "_ACEOF"
18109 } >conf$$subs.sh ||
18110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18111 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18112 ac_delim='%!_!# '
18113 for ac_last_try in false false false false false :; do
18114 . ./conf$$subs.sh ||
18115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18118 if test $ac_delim_n = $ac_delim_num; then
18119 break
18120 elif $ac_last_try; then
18121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18122 else
18123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18125 done
18126 rm -f conf$$subs.sh
18128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18129 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18130 _ACEOF
18131 sed -n '
18133 s/^/S["/; s/!.*/"]=/
18136 s/^[^!]*!//
18137 :repl
18138 t repl
18139 s/'"$ac_delim"'$//
18140 t delim
18143 s/\(.\{148\}\)..*/\1/
18144 t more1
18145 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18148 b repl
18149 :more1
18150 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18153 s/.\{148\}//
18154 t nl
18155 :delim
18157 s/\(.\{148\}\)..*/\1/
18158 t more2
18159 s/["\\]/\\&/g; s/^/"/; s/$/"/
18162 :more2
18163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18166 s/.\{148\}//
18167 t delim
18168 ' <conf$$subs.awk | sed '
18169 /^[^""]/{
18171 s/\n//
18173 ' >>$CONFIG_STATUS || ac_write_fail=1
18174 rm -f conf$$subs.awk
18175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18176 _ACAWK
18177 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18178 for (key in S) S_is_set[key] = 1
18179 FS = "\a"
18183 line = $ 0
18184 nfields = split(line, field, "@")
18185 substed = 0
18186 len = length(field[1])
18187 for (i = 2; i < nfields; i++) {
18188 key = field[i]
18189 keylen = length(key)
18190 if (S_is_set[key]) {
18191 value = S[key]
18192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18193 len += length(value) + length(field[++i])
18194 substed = 1
18195 } else
18196 len += 1 + keylen
18199 print line
18202 _ACAWK
18203 _ACEOF
18204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18205 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18207 else
18209 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18210 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18211 _ACEOF
18213 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18214 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18215 # trailing colons and then remove the whole line if VPATH becomes empty
18216 # (actually we leave an empty line to preserve line numbers).
18217 if test "x$srcdir" = x.; then
18218 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18220 s///
18221 s/^/:/
18222 s/[ ]*$/:/
18223 s/:\$(srcdir):/:/g
18224 s/:\${srcdir}:/:/g
18225 s/:@srcdir@:/:/g
18226 s/^:*//
18227 s/:*$//
18229 s/\(=[ ]*\).*/\1/
18231 s/\n//
18232 s/^[^=]*=[ ]*$//
18236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18237 fi # test -n "$CONFIG_FILES"
18239 # Set up the scripts for CONFIG_HEADERS section.
18240 # No need to generate them if there are no CONFIG_HEADERS.
18241 # This happens for instance with `./config.status Makefile'.
18242 if test -n "$CONFIG_HEADERS"; then
18243 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18244 BEGIN {
18245 _ACEOF
18247 # Transform confdefs.h into an awk script `defines.awk', embedded as
18248 # here-document in config.status, that substitutes the proper values into
18249 # config.h.in to produce config.h.
18251 # Create a delimiter string that does not exist in confdefs.h, to ease
18252 # handling of long lines.
18253 ac_delim='%!_!# '
18254 for ac_last_try in false false :; do
18255 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18256 if test -z "$ac_tt"; then
18257 break
18258 elif $ac_last_try; then
18259 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18260 else
18261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18263 done
18265 # For the awk script, D is an array of macro values keyed by name,
18266 # likewise P contains macro parameters if any. Preserve backslash
18267 # newline sequences.
18269 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18270 sed -n '
18271 s/.\{148\}/&'"$ac_delim"'/g
18272 t rset
18273 :rset
18274 s/^[ ]*#[ ]*define[ ][ ]*/ /
18275 t def
18277 :def
18278 s/\\$//
18279 t bsnl
18280 s/["\\]/\\&/g
18281 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18282 D["\1"]=" \3"/p
18283 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18285 :bsnl
18286 s/["\\]/\\&/g
18287 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18288 D["\1"]=" \3\\\\\\n"\\/p
18289 t cont
18290 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18291 t cont
18293 :cont
18295 s/.\{148\}/&'"$ac_delim"'/g
18296 t clear
18297 :clear
18298 s/\\$//
18299 t bsnlc
18300 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18302 :bsnlc
18303 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18304 b cont
18305 ' <confdefs.h | sed '
18306 s/'"$ac_delim"'/"\\\
18307 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18310 for (key in D) D_is_set[key] = 1
18311 FS = "\a"
18313 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18314 line = \$ 0
18315 split(line, arg, " ")
18316 if (arg[1] == "#") {
18317 defundef = arg[2]
18318 mac1 = arg[3]
18319 } else {
18320 defundef = substr(arg[1], 2)
18321 mac1 = arg[2]
18323 split(mac1, mac2, "(") #)
18324 macro = mac2[1]
18325 prefix = substr(line, 1, index(line, defundef) - 1)
18326 if (D_is_set[macro]) {
18327 # Preserve the white space surrounding the "#".
18328 print prefix "define", macro P[macro] D[macro]
18329 next
18330 } else {
18331 # Replace #undef with comments. This is necessary, for example,
18332 # in the case of _POSIX_SOURCE, which is predefined and required
18333 # on some systems where configure will not decide to define it.
18334 if (defundef == "undef") {
18335 print "/*", prefix defundef, macro, "*/"
18336 next
18340 { print }
18341 _ACAWK
18342 _ACEOF
18343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18344 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18345 fi # test -n "$CONFIG_HEADERS"
18348 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18349 shift
18350 for ac_tag
18352 case $ac_tag in
18353 :[FHLC]) ac_mode=$ac_tag; continue;;
18354 esac
18355 case $ac_mode$ac_tag in
18356 :[FHL]*:*);;
18357 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18358 :[FH]-) ac_tag=-:-;;
18359 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18360 esac
18361 ac_save_IFS=$IFS
18362 IFS=:
18363 set x $ac_tag
18364 IFS=$ac_save_IFS
18365 shift
18366 ac_file=$1
18367 shift
18369 case $ac_mode in
18370 :L) ac_source=$1;;
18371 :[FH])
18372 ac_file_inputs=
18373 for ac_f
18375 case $ac_f in
18376 -) ac_f="$ac_tmp/stdin";;
18377 *) # Look for the file first in the build tree, then in the source tree
18378 # (if the path is not absolute). The absolute path cannot be DOS-style,
18379 # because $ac_f cannot contain `:'.
18380 test -f "$ac_f" ||
18381 case $ac_f in
18382 [\\/$]*) false;;
18383 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18384 esac ||
18385 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18386 esac
18387 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18388 as_fn_append ac_file_inputs " '$ac_f'"
18389 done
18391 # Let's still pretend it is `configure' which instantiates (i.e., don't
18392 # use $as_me), people would be surprised to read:
18393 # /* config.h. Generated by config.status. */
18394 configure_input='Generated from '`
18395 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18396 `' by configure.'
18397 if test x"$ac_file" != x-; then
18398 configure_input="$ac_file. $configure_input"
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18400 $as_echo "$as_me: creating $ac_file" >&6;}
18402 # Neutralize special characters interpreted by sed in replacement strings.
18403 case $configure_input in #(
18404 *\&* | *\|* | *\\* )
18405 ac_sed_conf_input=`$as_echo "$configure_input" |
18406 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18407 *) ac_sed_conf_input=$configure_input;;
18408 esac
18410 case $ac_tag in
18411 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18413 esac
18415 esac
18417 ac_dir=`$as_dirname -- "$ac_file" ||
18418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18419 X"$ac_file" : 'X\(//\)[^/]' \| \
18420 X"$ac_file" : 'X\(//\)$' \| \
18421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18422 $as_echo X"$ac_file" |
18423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18424 s//\1/
18427 /^X\(\/\/\)[^/].*/{
18428 s//\1/
18431 /^X\(\/\/\)$/{
18432 s//\1/
18435 /^X\(\/\).*/{
18436 s//\1/
18439 s/.*/./; q'`
18440 as_dir="$ac_dir"; as_fn_mkdir_p
18441 ac_builddir=.
18443 case "$ac_dir" in
18444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18447 # A ".." for each directory in $ac_dir_suffix.
18448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18449 case $ac_top_builddir_sub in
18450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18452 esac ;;
18453 esac
18454 ac_abs_top_builddir=$ac_pwd
18455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18456 # for backward compatibility:
18457 ac_top_builddir=$ac_top_build_prefix
18459 case $srcdir in
18460 .) # We are building in place.
18461 ac_srcdir=.
18462 ac_top_srcdir=$ac_top_builddir_sub
18463 ac_abs_top_srcdir=$ac_pwd ;;
18464 [\\/]* | ?:[\\/]* ) # Absolute name.
18465 ac_srcdir=$srcdir$ac_dir_suffix;
18466 ac_top_srcdir=$srcdir
18467 ac_abs_top_srcdir=$srcdir ;;
18468 *) # Relative name.
18469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18470 ac_top_srcdir=$ac_top_build_prefix$srcdir
18471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18472 esac
18473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18476 case $ac_mode in
18479 # CONFIG_FILE
18482 case $INSTALL in
18483 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18484 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18485 esac
18486 ac_MKDIR_P=$MKDIR_P
18487 case $MKDIR_P in
18488 [\\/$]* | ?:[\\/]* ) ;;
18489 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18490 esac
18491 _ACEOF
18493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18494 # If the template does not know about datarootdir, expand it.
18495 # FIXME: This hack should be removed a few years after 2.60.
18496 ac_datarootdir_hack=; ac_datarootdir_seen=
18497 ac_sed_dataroot='
18498 /datarootdir/ {
18502 /@datadir@/p
18503 /@docdir@/p
18504 /@infodir@/p
18505 /@localedir@/p
18506 /@mandir@/p'
18507 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18508 *datarootdir*) ac_datarootdir_seen=yes;;
18509 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18511 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18512 _ACEOF
18513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18514 ac_datarootdir_hack='
18515 s&@datadir@&$datadir&g
18516 s&@docdir@&$docdir&g
18517 s&@infodir@&$infodir&g
18518 s&@localedir@&$localedir&g
18519 s&@mandir@&$mandir&g
18520 s&\\\${datarootdir}&$datarootdir&g' ;;
18521 esac
18522 _ACEOF
18524 # Neutralize VPATH when `$srcdir' = `.'.
18525 # Shell code in configure.ac might set extrasub.
18526 # FIXME: do we really want to maintain this feature?
18527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18528 ac_sed_extra="$ac_vpsub
18529 $extrasub
18530 _ACEOF
18531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18534 s|@configure_input@|$ac_sed_conf_input|;t t
18535 s&@top_builddir@&$ac_top_builddir_sub&;t t
18536 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18537 s&@srcdir@&$ac_srcdir&;t t
18538 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18539 s&@top_srcdir@&$ac_top_srcdir&;t t
18540 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18541 s&@builddir@&$ac_builddir&;t t
18542 s&@abs_builddir@&$ac_abs_builddir&;t t
18543 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18544 s&@INSTALL@&$ac_INSTALL&;t t
18545 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18546 $ac_datarootdir_hack
18548 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18549 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18551 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18552 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18553 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18554 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18556 which seems to be undefined. Please make sure it is defined" >&5
18557 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18558 which seems to be undefined. Please make sure it is defined" >&2;}
18560 rm -f "$ac_tmp/stdin"
18561 case $ac_file in
18562 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18563 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18564 esac \
18565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18569 # CONFIG_HEADER
18571 if test x"$ac_file" != x-; then
18573 $as_echo "/* $configure_input */" \
18574 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18575 } >"$ac_tmp/config.h" \
18576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18577 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18579 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18580 else
18581 rm -f "$ac_file"
18582 mv "$ac_tmp/config.h" "$ac_file" \
18583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18585 else
18586 $as_echo "/* $configure_input */" \
18587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18588 || as_fn_error $? "could not create -" "$LINENO" 5
18590 # Compute "$ac_file"'s index in $config_headers.
18591 _am_arg="$ac_file"
18592 _am_stamp_count=1
18593 for _am_header in $config_headers :; do
18594 case $_am_header in
18595 $_am_arg | $_am_arg:* )
18596 break ;;
18598 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18599 esac
18600 done
18601 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18602 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18603 X"$_am_arg" : 'X\(//\)[^/]' \| \
18604 X"$_am_arg" : 'X\(//\)$' \| \
18605 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18606 $as_echo X"$_am_arg" |
18607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18608 s//\1/
18611 /^X\(\/\/\)[^/].*/{
18612 s//\1/
18615 /^X\(\/\/\)$/{
18616 s//\1/
18619 /^X\(\/\).*/{
18620 s//\1/
18623 s/.*/./; q'`/stamp-h$_am_stamp_count
18626 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18627 $as_echo "$as_me: executing $ac_file commands" >&6;}
18629 esac
18632 case $ac_file$ac_mode in
18633 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18634 # Older Autoconf quotes --file arguments for eval, but not when files
18635 # are listed without --file. Let's play safe and only enable the eval
18636 # if we detect the quoting.
18637 case $CONFIG_FILES in
18638 *\'*) eval set x "$CONFIG_FILES" ;;
18639 *) set x $CONFIG_FILES ;;
18640 esac
18641 shift
18642 for mf
18644 # Strip MF so we end up with the name of the file.
18645 mf=`echo "$mf" | sed -e 's/:.*$//'`
18646 # Check whether this is an Automake generated Makefile or not.
18647 # We used to match only the files named 'Makefile.in', but
18648 # some people rename them; so instead we look at the file content.
18649 # Grep'ing the first line is not enough: some people post-process
18650 # each Makefile.in and add a new line on top of each file to say so.
18651 # Grep'ing the whole file is not good either: AIX grep has a line
18652 # limit of 2048, but all sed's we know have understand at least 4000.
18653 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18654 dirpart=`$as_dirname -- "$mf" ||
18655 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18656 X"$mf" : 'X\(//\)[^/]' \| \
18657 X"$mf" : 'X\(//\)$' \| \
18658 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18659 $as_echo X"$mf" |
18660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18661 s//\1/
18664 /^X\(\/\/\)[^/].*/{
18665 s//\1/
18668 /^X\(\/\/\)$/{
18669 s//\1/
18672 /^X\(\/\).*/{
18673 s//\1/
18676 s/.*/./; q'`
18677 else
18678 continue
18680 # Extract the definition of DEPDIR, am__include, and am__quote
18681 # from the Makefile without running 'make'.
18682 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18683 test -z "$DEPDIR" && continue
18684 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18685 test -z "$am__include" && continue
18686 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18687 # Find all dependency output files, they are included files with
18688 # $(DEPDIR) in their names. We invoke sed twice because it is the
18689 # simplest approach to changing $(DEPDIR) to its actual value in the
18690 # expansion.
18691 for file in `sed -n "
18692 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18693 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18694 # Make sure the directory exists.
18695 test -f "$dirpart/$file" && continue
18696 fdir=`$as_dirname -- "$file" ||
18697 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18698 X"$file" : 'X\(//\)[^/]' \| \
18699 X"$file" : 'X\(//\)$' \| \
18700 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18701 $as_echo X"$file" |
18702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18703 s//\1/
18706 /^X\(\/\/\)[^/].*/{
18707 s//\1/
18710 /^X\(\/\/\)$/{
18711 s//\1/
18714 /^X\(\/\).*/{
18715 s//\1/
18718 s/.*/./; q'`
18719 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18720 # echo "creating $dirpart/$file"
18721 echo '# dummy' > "$dirpart/$file"
18722 done
18723 done
18726 "default-1":C)
18727 for ac_file in $CONFIG_FILES; do
18728 # Support "outfile[:infile[:infile...]]"
18729 case "$ac_file" in
18730 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18731 esac
18732 # PO directories have a Makefile.in generated from Makefile.in.in.
18733 case "$ac_file" in */Makefile.in)
18734 # Adjust a relative srcdir.
18735 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18736 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18737 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18738 # In autoconf-2.13 it is called $ac_given_srcdir.
18739 # In autoconf-2.50 it is called $srcdir.
18740 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18741 case "$ac_given_srcdir" in
18742 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18743 /*) top_srcdir="$ac_given_srcdir" ;;
18744 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18745 esac
18746 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18747 rm -f "$ac_dir/POTFILES"
18748 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18749 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18750 POMAKEFILEDEPS="POTFILES.in"
18751 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18752 # on $ac_dir but don't depend on user-specified configuration
18753 # parameters.
18754 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18755 # The LINGUAS file contains the set of available languages.
18756 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18757 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
18759 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18760 # Hide the ALL_LINGUAS assigment from automake.
18761 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18762 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18763 else
18764 # The set of available languages was given in configure.ac.
18765 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18767 case "$ac_given_srcdir" in
18768 .) srcdirpre= ;;
18769 *) srcdirpre='$(srcdir)/' ;;
18770 esac
18771 POFILES=
18772 GMOFILES=
18773 UPDATEPOFILES=
18774 DUMMYPOFILES=
18775 for lang in $ALL_LINGUAS; do
18776 POFILES="$POFILES $srcdirpre$lang.po"
18777 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18778 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18779 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18780 done
18781 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18782 # environment variable.
18783 INST_LINGUAS=
18784 if test -n "$ALL_LINGUAS"; then
18785 for presentlang in $ALL_LINGUAS; do
18786 useit=no
18787 if test "%UNSET%" != "$LINGUAS"; then
18788 desiredlanguages="$LINGUAS"
18789 else
18790 desiredlanguages="$ALL_LINGUAS"
18792 for desiredlang in $desiredlanguages; do
18793 # Use the presentlang catalog if desiredlang is
18794 # a. equal to presentlang, or
18795 # b. a variant of presentlang (because in this case,
18796 # presentlang can be used as a fallback for messages
18797 # which are not translated in the desiredlang catalog).
18798 case "$desiredlang" in
18799 "$presentlang"*) useit=yes;;
18800 esac
18801 done
18802 if test $useit = yes; then
18803 INST_LINGUAS="$INST_LINGUAS $presentlang"
18805 done
18807 CATALOGS=
18808 if test -n "$INST_LINGUAS"; then
18809 for lang in $INST_LINGUAS; do
18810 CATALOGS="$CATALOGS $lang.gmo"
18811 done
18813 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18814 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"
18815 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18816 if test -f "$f"; then
18817 case "$f" in
18818 *.orig | *.bak | *~) ;;
18819 *) cat "$f" >> "$ac_dir/Makefile" ;;
18820 esac
18822 done
18825 esac
18826 done ;;
18827 "libtool":C)
18829 # See if we are running on zsh, and set the options which allow our
18830 # commands through without removal of \ escapes.
18831 if test -n "${ZSH_VERSION+set}" ; then
18832 setopt NO_GLOB_SUBST
18835 cfgfile="${ofile}T"
18836 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18837 $RM "$cfgfile"
18839 cat <<_LT_EOF >> "$cfgfile"
18840 #! $SHELL
18842 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18843 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18844 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18845 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18847 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18848 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18849 # Written by Gordon Matzigkeit, 1996
18851 # This file is part of GNU Libtool.
18853 # GNU Libtool is free software; you can redistribute it and/or
18854 # modify it under the terms of the GNU General Public License as
18855 # published by the Free Software Foundation; either version 2 of
18856 # the License, or (at your option) any later version.
18858 # As a special exception to the GNU General Public License,
18859 # if you distribute this file as part of a program or library that
18860 # is built using GNU Libtool, you may include this file under the
18861 # same distribution terms that you use for the rest of that program.
18863 # GNU Libtool is distributed in the hope that it will be useful,
18864 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18865 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18866 # GNU General Public License for more details.
18868 # You should have received a copy of the GNU General Public License
18869 # along with GNU Libtool; see the file COPYING. If not, a copy
18870 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18871 # obtained by writing to the Free Software Foundation, Inc.,
18872 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18875 # The names of the tagged configurations supported by this script.
18876 available_tags=""
18878 # ### BEGIN LIBTOOL CONFIG
18880 # Whether or not to build shared libraries.
18881 build_libtool_libs=$enable_shared
18883 # Which release of libtool.m4 was used?
18884 macro_version=$macro_version
18885 macro_revision=$macro_revision
18887 # Whether or not to build static libraries.
18888 build_old_libs=$enable_static
18890 # What type of objects to build.
18891 pic_mode=$pic_mode
18893 # Whether or not to optimize for fast installation.
18894 fast_install=$enable_fast_install
18896 # Shell to use when invoking shell scripts.
18897 SHELL=$lt_SHELL
18899 # An echo program that protects backslashes.
18900 ECHO=$lt_ECHO
18902 # The host system.
18903 host_alias=$host_alias
18904 host=$host
18905 host_os=$host_os
18907 # The build system.
18908 build_alias=$build_alias
18909 build=$build
18910 build_os=$build_os
18912 # A sed program that does not truncate output.
18913 SED=$lt_SED
18915 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18916 Xsed="\$SED -e 1s/^X//"
18918 # A grep program that handles long lines.
18919 GREP=$lt_GREP
18921 # An ERE matcher.
18922 EGREP=$lt_EGREP
18924 # A literal string matcher.
18925 FGREP=$lt_FGREP
18927 # A BSD- or MS-compatible name lister.
18928 NM=$lt_NM
18930 # Whether we need soft or hard links.
18931 LN_S=$lt_LN_S
18933 # What is the maximum length of a command?
18934 max_cmd_len=$max_cmd_len
18936 # Object file suffix (normally "o").
18937 objext=$ac_objext
18939 # Executable file suffix (normally "").
18940 exeext=$exeext
18942 # whether the shell understands "unset".
18943 lt_unset=$lt_unset
18945 # turn spaces into newlines.
18946 SP2NL=$lt_lt_SP2NL
18948 # turn newlines into spaces.
18949 NL2SP=$lt_lt_NL2SP
18951 # An object symbol dumper.
18952 OBJDUMP=$lt_OBJDUMP
18954 # Method to check whether dependent libraries are shared objects.
18955 deplibs_check_method=$lt_deplibs_check_method
18957 # Command to use when deplibs_check_method == "file_magic".
18958 file_magic_cmd=$lt_file_magic_cmd
18960 # The archiver.
18961 AR=$lt_AR
18962 AR_FLAGS=$lt_AR_FLAGS
18964 # A symbol stripping program.
18965 STRIP=$lt_STRIP
18967 # Commands used to install an old-style archive.
18968 RANLIB=$lt_RANLIB
18969 old_postinstall_cmds=$lt_old_postinstall_cmds
18970 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18972 # Whether to use a lock for old archive extraction.
18973 lock_old_archive_extraction=$lock_old_archive_extraction
18975 # A C compiler.
18976 LTCC=$lt_CC
18978 # LTCC compiler flags.
18979 LTCFLAGS=$lt_CFLAGS
18981 # Take the output of nm and produce a listing of raw symbols and C names.
18982 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18984 # Transform the output of nm in a proper C declaration.
18985 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18987 # Transform the output of nm in a C name address pair.
18988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18990 # Transform the output of nm in a C name address pair when lib prefix is needed.
18991 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18993 # The name of the directory that contains temporary libtool files.
18994 objdir=$objdir
18996 # Used to examine libraries when file_magic_cmd begins with "file".
18997 MAGIC_CMD=$MAGIC_CMD
18999 # Must we lock files when doing compilation?
19000 need_locks=$lt_need_locks
19002 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19003 DSYMUTIL=$lt_DSYMUTIL
19005 # Tool to change global to local symbols on Mac OS X.
19006 NMEDIT=$lt_NMEDIT
19008 # Tool to manipulate fat objects and archives on Mac OS X.
19009 LIPO=$lt_LIPO
19011 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19012 OTOOL=$lt_OTOOL
19014 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19015 OTOOL64=$lt_OTOOL64
19017 # Old archive suffix (normally "a").
19018 libext=$libext
19020 # Shared library suffix (normally ".so").
19021 shrext_cmds=$lt_shrext_cmds
19023 # The commands to extract the exported symbol list from a shared archive.
19024 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19026 # Variables whose values should be saved in libtool wrapper scripts and
19027 # restored at link time.
19028 variables_saved_for_relink=$lt_variables_saved_for_relink
19030 # Do we need the "lib" prefix for modules?
19031 need_lib_prefix=$need_lib_prefix
19033 # Do we need a version for libraries?
19034 need_version=$need_version
19036 # Library versioning type.
19037 version_type=$version_type
19039 # Shared library runtime path variable.
19040 runpath_var=$runpath_var
19042 # Shared library path variable.
19043 shlibpath_var=$shlibpath_var
19045 # Is shlibpath searched before the hard-coded library search path?
19046 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19048 # Format of library name prefix.
19049 libname_spec=$lt_libname_spec
19051 # List of archive names. First name is the real one, the rest are links.
19052 # The last name is the one that the linker finds with -lNAME
19053 library_names_spec=$lt_library_names_spec
19055 # The coded name of the library, if different from the real name.
19056 soname_spec=$lt_soname_spec
19058 # Permission mode override for installation of shared libraries.
19059 install_override_mode=$lt_install_override_mode
19061 # Command to use after installation of a shared archive.
19062 postinstall_cmds=$lt_postinstall_cmds
19064 # Command to use after uninstallation of a shared archive.
19065 postuninstall_cmds=$lt_postuninstall_cmds
19067 # Commands used to finish a libtool library installation in a directory.
19068 finish_cmds=$lt_finish_cmds
19070 # As "finish_cmds", except a single script fragment to be evaled but
19071 # not shown.
19072 finish_eval=$lt_finish_eval
19074 # Whether we should hardcode library paths into libraries.
19075 hardcode_into_libs=$hardcode_into_libs
19077 # Compile-time system search path for libraries.
19078 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19080 # Run-time system search path for libraries.
19081 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19083 # Whether dlopen is supported.
19084 dlopen_support=$enable_dlopen
19086 # Whether dlopen of programs is supported.
19087 dlopen_self=$enable_dlopen_self
19089 # Whether dlopen of statically linked programs is supported.
19090 dlopen_self_static=$enable_dlopen_self_static
19092 # Commands to strip libraries.
19093 old_striplib=$lt_old_striplib
19094 striplib=$lt_striplib
19097 # The linker used to build libraries.
19098 LD=$lt_LD
19100 # How to create reloadable object files.
19101 reload_flag=$lt_reload_flag
19102 reload_cmds=$lt_reload_cmds
19104 # Commands used to build an old-style archive.
19105 old_archive_cmds=$lt_old_archive_cmds
19107 # A language specific compiler.
19108 CC=$lt_compiler
19110 # Is the compiler the GNU compiler?
19111 with_gcc=$GCC
19113 # Compiler flag to turn off builtin functions.
19114 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19116 # How to pass a linker flag through the compiler.
19117 wl=$lt_lt_prog_compiler_wl
19119 # Additional compiler flags for building library objects.
19120 pic_flag=$lt_lt_prog_compiler_pic
19122 # Compiler flag to prevent dynamic linking.
19123 link_static_flag=$lt_lt_prog_compiler_static
19125 # Does compiler simultaneously support -c and -o options?
19126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19128 # Whether or not to add -lc for building shared libraries.
19129 build_libtool_need_lc=$archive_cmds_need_lc
19131 # Whether or not to disallow shared libs when runtime libs are static.
19132 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19134 # Compiler flag to allow reflexive dlopens.
19135 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19137 # Compiler flag to generate shared objects directly from archives.
19138 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19140 # Whether the compiler copes with passing no objects directly.
19141 compiler_needs_object=$lt_compiler_needs_object
19143 # Create an old-style archive from a shared archive.
19144 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19146 # Create a temporary old-style archive to link instead of a shared archive.
19147 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19149 # Commands used to build a shared archive.
19150 archive_cmds=$lt_archive_cmds
19151 archive_expsym_cmds=$lt_archive_expsym_cmds
19153 # Commands used to build a loadable module if different from building
19154 # a shared archive.
19155 module_cmds=$lt_module_cmds
19156 module_expsym_cmds=$lt_module_expsym_cmds
19158 # Whether we are building with GNU ld or not.
19159 with_gnu_ld=$lt_with_gnu_ld
19161 # Flag that allows shared libraries with undefined symbols to be built.
19162 allow_undefined_flag=$lt_allow_undefined_flag
19164 # Flag that enforces no undefined symbols.
19165 no_undefined_flag=$lt_no_undefined_flag
19167 # Flag to hardcode \$libdir into a binary during linking.
19168 # This must work even if \$libdir does not exist
19169 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19171 # If ld is used when linking, flag to hardcode \$libdir into a binary
19172 # during linking. This must work even if \$libdir does not exist.
19173 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19175 # Whether we need a single "-rpath" flag with a separated argument.
19176 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19178 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19179 # DIR into the resulting binary.
19180 hardcode_direct=$hardcode_direct
19182 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19183 # DIR into the resulting binary and the resulting library dependency is
19184 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19185 # library is relocated.
19186 hardcode_direct_absolute=$hardcode_direct_absolute
19188 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19189 # into the resulting binary.
19190 hardcode_minus_L=$hardcode_minus_L
19192 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19193 # into the resulting binary.
19194 hardcode_shlibpath_var=$hardcode_shlibpath_var
19196 # Set to "yes" if building a shared library automatically hardcodes DIR
19197 # into the library and all subsequent libraries and executables linked
19198 # against it.
19199 hardcode_automatic=$hardcode_automatic
19201 # Set to yes if linker adds runtime paths of dependent libraries
19202 # to runtime path list.
19203 inherit_rpath=$inherit_rpath
19205 # Whether libtool must link a program against all its dependency libraries.
19206 link_all_deplibs=$link_all_deplibs
19208 # Fix the shell variable \$srcfile for the compiler.
19209 fix_srcfile_path=$lt_fix_srcfile_path
19211 # Set to "yes" if exported symbols are required.
19212 always_export_symbols=$always_export_symbols
19214 # The commands to list exported symbols.
19215 export_symbols_cmds=$lt_export_symbols_cmds
19217 # Symbols that should not be listed in the preloaded symbols.
19218 exclude_expsyms=$lt_exclude_expsyms
19220 # Symbols that must always be exported.
19221 include_expsyms=$lt_include_expsyms
19223 # Commands necessary for linking programs (against libraries) with templates.
19224 prelink_cmds=$lt_prelink_cmds
19226 # Specify filename containing input files.
19227 file_list_spec=$lt_file_list_spec
19229 # How to hardcode a shared library path into an executable.
19230 hardcode_action=$hardcode_action
19232 # ### END LIBTOOL CONFIG
19234 _LT_EOF
19236 case $host_os in
19237 aix3*)
19238 cat <<\_LT_EOF >> "$cfgfile"
19239 # AIX sometimes has problems with the GCC collect2 program. For some
19240 # reason, if we set the COLLECT_NAMES environment variable, the problems
19241 # vanish in a puff of smoke.
19242 if test "X${COLLECT_NAMES+set}" != Xset; then
19243 COLLECT_NAMES=
19244 export COLLECT_NAMES
19246 _LT_EOF
19248 esac
19251 ltmain="$ac_aux_dir/ltmain.sh"
19254 # We use sed instead of cat because bash on DJGPP gets confused if
19255 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19256 # text mode, it properly converts lines to CR/LF. This bash problem
19257 # is reportedly fixed, but why not run on old versions too?
19258 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19259 || (rm -f "$cfgfile"; exit 1)
19261 case $xsi_shell in
19262 yes)
19263 cat << \_LT_EOF >> "$cfgfile"
19265 # func_dirname file append nondir_replacement
19266 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19267 # otherwise set result to NONDIR_REPLACEMENT.
19268 func_dirname ()
19270 case ${1} in
19271 */*) func_dirname_result="${1%/*}${2}" ;;
19272 * ) func_dirname_result="${3}" ;;
19273 esac
19276 # func_basename file
19277 func_basename ()
19279 func_basename_result="${1##*/}"
19282 # func_dirname_and_basename file append nondir_replacement
19283 # perform func_basename and func_dirname in a single function
19284 # call:
19285 # dirname: Compute the dirname of FILE. If nonempty,
19286 # add APPEND to the result, otherwise set result
19287 # to NONDIR_REPLACEMENT.
19288 # value returned in "$func_dirname_result"
19289 # basename: Compute filename of FILE.
19290 # value retuned in "$func_basename_result"
19291 # Implementation must be kept synchronized with func_dirname
19292 # and func_basename. For efficiency, we do not delegate to
19293 # those functions but instead duplicate the functionality here.
19294 func_dirname_and_basename ()
19296 case ${1} in
19297 */*) func_dirname_result="${1%/*}${2}" ;;
19298 * ) func_dirname_result="${3}" ;;
19299 esac
19300 func_basename_result="${1##*/}"
19303 # func_stripname prefix suffix name
19304 # strip PREFIX and SUFFIX off of NAME.
19305 # PREFIX and SUFFIX must not contain globbing or regex special
19306 # characters, hashes, percent signs, but SUFFIX may contain a leading
19307 # dot (in which case that matches only a dot).
19308 func_stripname ()
19310 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19311 # positional parameters, so assign one to ordinary parameter first.
19312 func_stripname_result=${3}
19313 func_stripname_result=${func_stripname_result#"${1}"}
19314 func_stripname_result=${func_stripname_result%"${2}"}
19317 # func_opt_split
19318 func_opt_split ()
19320 func_opt_split_opt=${1%%=*}
19321 func_opt_split_arg=${1#*=}
19324 # func_lo2o object
19325 func_lo2o ()
19327 case ${1} in
19328 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19329 *) func_lo2o_result=${1} ;;
19330 esac
19333 # func_xform libobj-or-source
19334 func_xform ()
19336 func_xform_result=${1%.*}.lo
19339 # func_arith arithmetic-term...
19340 func_arith ()
19342 func_arith_result=$(( $* ))
19345 # func_len string
19346 # STRING may not start with a hyphen.
19347 func_len ()
19349 func_len_result=${#1}
19352 _LT_EOF
19354 *) # Bourne compatible functions.
19355 cat << \_LT_EOF >> "$cfgfile"
19357 # func_dirname file append nondir_replacement
19358 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19359 # otherwise set result to NONDIR_REPLACEMENT.
19360 func_dirname ()
19362 # Extract subdirectory from the argument.
19363 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19364 if test "X$func_dirname_result" = "X${1}"; then
19365 func_dirname_result="${3}"
19366 else
19367 func_dirname_result="$func_dirname_result${2}"
19371 # func_basename file
19372 func_basename ()
19374 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19378 # func_stripname prefix suffix name
19379 # strip PREFIX and SUFFIX off of NAME.
19380 # PREFIX and SUFFIX must not contain globbing or regex special
19381 # characters, hashes, percent signs, but SUFFIX may contain a leading
19382 # dot (in which case that matches only a dot).
19383 # func_strip_suffix prefix name
19384 func_stripname ()
19386 case ${2} in
19387 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19388 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19389 esac
19392 # sed scripts:
19393 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19394 my_sed_long_arg='1s/^-[^=]*=//'
19396 # func_opt_split
19397 func_opt_split ()
19399 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19400 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19403 # func_lo2o object
19404 func_lo2o ()
19406 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19409 # func_xform libobj-or-source
19410 func_xform ()
19412 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19415 # func_arith arithmetic-term...
19416 func_arith ()
19418 func_arith_result=`expr "$@"`
19421 # func_len string
19422 # STRING may not start with a hyphen.
19423 func_len ()
19425 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19428 _LT_EOF
19429 esac
19431 case $lt_shell_append in
19432 yes)
19433 cat << \_LT_EOF >> "$cfgfile"
19435 # func_append var value
19436 # Append VALUE to the end of shell variable VAR.
19437 func_append ()
19439 eval "$1+=\$2"
19441 _LT_EOF
19444 cat << \_LT_EOF >> "$cfgfile"
19446 # func_append var value
19447 # Append VALUE to the end of shell variable VAR.
19448 func_append ()
19450 eval "$1=\$$1\$2"
19453 _LT_EOF
19455 esac
19458 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19459 || (rm -f "$cfgfile"; exit 1)
19461 mv -f "$cfgfile" "$ofile" ||
19462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19463 chmod +x "$ofile"
19467 esac
19468 done # for ac_tag
19471 as_fn_exit 0
19472 _ACEOF
19473 ac_clean_files=$ac_clean_files_save
19475 test $ac_write_fail = 0 ||
19476 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19479 # configure is writing to config.log, and then calls config.status.
19480 # config.status does its own redirection, appending to config.log.
19481 # Unfortunately, on DOS this fails, as config.log is still kept open
19482 # by configure, so config.status won't be able to write to it; its
19483 # output is simply discarded. So we exec the FD to /dev/null,
19484 # effectively closing config.log, so it can be properly (re)opened and
19485 # appended to by config.status. When coming back to configure, we
19486 # need to make the FD available again.
19487 if test "$no_create" != yes; then
19488 ac_cs_success=:
19489 ac_config_status_args=
19490 test "$silent" = yes &&
19491 ac_config_status_args="$ac_config_status_args --quiet"
19492 exec 5>/dev/null
19493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19494 exec 5>>config.log
19495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19496 # would make configure fail if this is the last instruction.
19497 $ac_cs_success || as_fn_exit 1
19499 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19501 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19506 touch config.status.tmp
19507 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
19508 sed '/as_fn_exit 0/i \
19509 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
19510 touch --reference=Makefile Makefile.tmp \
19511 mv Makefile.tmp Makefile \
19512 ' config.status > config.status.tmp
19513 touch --reference=config.status config.status.tmp
19514 mv config.status.tmp config.status
19515 chmod +x config.status
19516 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
19517 touch --reference=Makefile Makefile.tmp
19518 mv Makefile.tmp Makefile
19519 else
19520 rm -f config.status.tmp