configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
[gcc.git] / libquadmath / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GCC Quad-precision Math Library 0.1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GCC Quad-precision Math Library'
558 PACKAGE_TARNAME='libquadmath'
559 PACKAGE_VERSION='0.1'
560 PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 GENINSRC_FALSE
605 GENINSRC_TRUE
606 BUILD_LIBQUADMATH_FALSE
607 BUILD_LIBQUADMATH_TRUE
608 LIBQUAD_USE_SYMVER_SUN_FALSE
609 LIBQUAD_USE_SYMVER_SUN_TRUE
610 LIBQUAD_USE_SYMVER_GNU_FALSE
611 LIBQUAD_USE_SYMVER_GNU_TRUE
612 LIBQUAD_USE_SYMVER_FALSE
613 LIBQUAD_USE_SYMVER_TRUE
614 toolexeclibdir
615 toolexecdir
616 MAINT
617 MAINTAINER_MODE_FALSE
618 MAINTAINER_MODE_TRUE
619 enable_static
620 enable_shared
621 lt_host_flags
622 OTOOL64
623 OTOOL
624 LIPO
625 NMEDIT
626 DSYMUTIL
627 RANLIB
628 AR
629 OBJDUMP
630 LN_S
631 NM
632 ac_ct_DUMPBIN
633 DUMPBIN
634 LD
635 FGREP
636 SED
637 LIBTOOL
638 REPORT_BUGS_TEXI
639 REPORT_BUGS_TO
640 BUILD_INFO_FALSE
641 BUILD_INFO_TRUE
642 EGREP
643 GREP
644 CPP
645 am__fastdepCC_FALSE
646 am__fastdepCC_TRUE
647 CCDEPMODE
648 AMDEPBACKSLASH
649 AMDEP_FALSE
650 AMDEP_TRUE
651 am__quote
652 am__include
653 DEPDIR
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 am__untar
662 am__tar
663 AMTAR
664 am__leading_dot
665 SET_MAKE
666 AWK
667 mkdir_p
668 MKDIR_P
669 INSTALL_STRIP_PROGRAM
670 STRIP
671 install_sh
672 MAKEINFO
673 AUTOHEADER
674 AUTOMAKE
675 AUTOCONF
676 ACLOCAL
677 VERSION
678 PACKAGE
679 CYGPATH_W
680 am__isrc
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 multi_basedir
685 target_noncanonical
686 target_os
687 target_vendor
688 target_cpu
689 target
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 target_alias
699 host_alias
700 build_alias
701 LIBS
702 ECHO_T
703 ECHO_N
704 ECHO_C
705 DEFS
706 mandir
707 localedir
708 libdir
709 psdir
710 pdfdir
711 dvidir
712 htmldir
713 infodir
714 docdir
715 oldincludedir
716 includedir
717 localstatedir
718 sharedstatedir
719 sysconfdir
720 datadir
721 datarootdir
722 libexecdir
723 sbindir
724 bindir
725 program_transform_name
726 prefix
727 exec_prefix
728 PACKAGE_URL
729 PACKAGE_BUGREPORT
730 PACKAGE_STRING
731 PACKAGE_VERSION
732 PACKAGE_TARNAME
733 PACKAGE_NAME
734 PATH_SEPARATOR
735 SHELL'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 enable_multilib
740 enable_version_specific_runtime_libs
741 enable_dependency_tracking
742 with_bugurl
743 enable_shared
744 enable_static
745 with_pic
746 enable_fast_install
747 with_gnu_ld
748 enable_libtool_lock
749 enable_maintainer_mode
750 enable_symvers
751 enable_generated_files_in_srcdir
752 '
753 ac_precious_vars='build_alias
754 host_alias
755 target_alias
756 CC
757 CFLAGS
758 LDFLAGS
759 LIBS
760 CPPFLAGS
761 CPP'
762
763
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 ac_unrecognized_opts=
768 ac_unrecognized_sep=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
771 cache_file=/dev/null
772 exec_prefix=NONE
773 no_create=
774 no_recursion=
775 prefix=NONE
776 program_prefix=NONE
777 program_suffix=NONE
778 program_transform_name=s,x,x,
779 silent=
780 site=
781 srcdir=
782 verbose=
783 x_includes=NONE
784 x_libraries=NONE
785
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
811
812 ac_prev=
813 ac_dashdash=
814 for ac_option
815 do
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
819 ac_prev=
820 continue
821 fi
822
823 case $ac_option in
824 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 *) ac_optarg=yes ;;
826 esac
827
828 # Accept the important Cygnus configure options, so we can diagnose typos.
829
830 case $ac_dashdash$ac_option in
831 --)
832 ac_dashdash=yes ;;
833
834 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 ac_prev=bindir ;;
836 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 bindir=$ac_optarg ;;
838
839 -build | --build | --buil | --bui | --bu)
840 ac_prev=build_alias ;;
841 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
842 build_alias=$ac_optarg ;;
843
844 -cache-file | --cache-file | --cache-fil | --cache-fi \
845 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846 ac_prev=cache_file ;;
847 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849 cache_file=$ac_optarg ;;
850
851 --config-cache | -C)
852 cache_file=config.cache ;;
853
854 -datadir | --datadir | --datadi | --datad)
855 ac_prev=datadir ;;
856 -datadir=* | --datadir=* | --datadi=* | --datad=*)
857 datadir=$ac_optarg ;;
858
859 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860 | --dataroo | --dataro | --datar)
861 ac_prev=datarootdir ;;
862 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864 datarootdir=$ac_optarg ;;
865
866 -disable-* | --disable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 as_fn_error "invalid feature name: $ac_useropt"
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
874 *"
875 "enable_$ac_useropt"
876 "*) ;;
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
879 esac
880 eval enable_$ac_useropt=no ;;
881
882 -docdir | --docdir | --docdi | --doc | --do)
883 ac_prev=docdir ;;
884 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885 docdir=$ac_optarg ;;
886
887 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 ac_prev=dvidir ;;
889 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890 dvidir=$ac_optarg ;;
891
892 -enable-* | --enable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=\$ac_optarg ;;
907
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
916
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
919 with_gas=yes ;;
920
921 -help | --help | --hel | --he | -h)
922 ac_init_help=long ;;
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
927
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
932
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 ac_prev=htmldir ;;
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 | --ht=*)
937 htmldir=$ac_optarg ;;
938
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
945
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 ac_prev=infodir ;;
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
950
951 -libdir | --libdir | --libdi | --libd)
952 ac_prev=libdir ;;
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 libdir=$ac_optarg ;;
955
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
962
963 -localedir | --localedir | --localedi | --localed | --locale)
964 ac_prev=localedir ;;
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
967
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
974
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 ac_prev=mandir ;;
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 mandir=$ac_optarg ;;
979
980 -nfp | --nfp | --nf)
981 # Obsolete; use --without-fp.
982 with_fp=no ;;
983
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
986 no_create=yes ;;
987
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 no_recursion=yes ;;
991
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1000
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 ac_prev=prefix ;;
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1005
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1012
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1019
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1036
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 ac_prev=pdfdir ;;
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1041
1042 -psdir | --psdir | --psdi | --psd | --ps)
1043 ac_prev=psdir ;;
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 psdir=$ac_optarg ;;
1046
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 silent=yes ;;
1050
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 ac_prev=sbindir ;;
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 | --sbi=* | --sb=*)
1055 sbindir=$ac_optarg ;;
1056
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1060 | --sha | --sh)
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 | --sha=* | --sh=*)
1066 sharedstatedir=$ac_optarg ;;
1067
1068 -site | --site | --sit)
1069 ac_prev=site ;;
1070 -site=* | --site=* | --sit=*)
1071 site=$ac_optarg ;;
1072
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 ac_prev=srcdir ;;
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1077
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1084
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1089
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 verbose=yes ;;
1092
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1095
1096 -with-* | --with-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error "invalid package name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1104 *"
1105 "with_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval with_$ac_useropt=\$ac_optarg ;;
1111
1112 -without-* | --without-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121 "with_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=no ;;
1127
1128 --x)
1129 # Obsolete; use --with-x.
1130 with_x=yes ;;
1131
1132 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133 | --x-incl | --x-inc | --x-in | --x-i)
1134 ac_prev=x_includes ;;
1135 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137 x_includes=$ac_optarg ;;
1138
1139 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141 ac_prev=x_libraries ;;
1142 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144 x_libraries=$ac_optarg ;;
1145
1146 -*) as_fn_error "unrecognized option: \`$ac_option'
1147 Try \`$0 --help' for more information."
1148 ;;
1149
1150 *=*)
1151 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152 # Reject names that are not valid shell variable names.
1153 case $ac_envvar in #(
1154 '' | [0-9]* | *[!_$as_cr_alnum]* )
1155 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1156 esac
1157 eval $ac_envvar=\$ac_optarg
1158 export $ac_envvar ;;
1159
1160 *)
1161 # FIXME: should be removed in autoconf 3.0.
1162 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166 ;;
1167
1168 esac
1169 done
1170
1171 if test -n "$ac_prev"; then
1172 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173 as_fn_error "missing argument to $ac_option"
1174 fi
1175
1176 if test -n "$ac_unrecognized_opts"; then
1177 case $enable_option_checking in
1178 no) ;;
1179 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1180 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181 esac
1182 fi
1183
1184 # Check all directory arguments for consistency.
1185 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186 datadir sysconfdir sharedstatedir localstatedir includedir \
1187 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188 libdir localedir mandir
1189 do
1190 eval ac_val=\$$ac_var
1191 # Remove trailing slashes.
1192 case $ac_val in
1193 */ )
1194 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1195 eval $ac_var=\$ac_val;;
1196 esac
1197 # Be sure to have absolute directory names.
1198 case $ac_val in
1199 [\\/$]* | ?:[\\/]* ) continue;;
1200 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201 esac
1202 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1203 done
1204
1205 # There might be people who depend on the old broken behavior: `$host'
1206 # used to hold the argument of --host etc.
1207 # FIXME: To remove some day.
1208 build=$build_alias
1209 host=$host_alias
1210 target=$target_alias
1211
1212 # FIXME: To remove some day.
1213 if test "x$host_alias" != x; then
1214 if test "x$build_alias" = x; then
1215 cross_compiling=maybe
1216 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1217 If a cross compiler is detected then cross compile mode will be used." >&2
1218 elif test "x$build_alias" != "x$host_alias"; then
1219 cross_compiling=yes
1220 fi
1221 fi
1222
1223 ac_tool_prefix=
1224 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225
1226 test "$silent" = yes && exec 6>/dev/null
1227
1228
1229 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230 ac_ls_di=`ls -di .` &&
1231 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232 as_fn_error "working directory cannot be determined"
1233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234 as_fn_error "pwd does not report name of working directory"
1235
1236
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
1240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$as_myself" ||
1242 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243 X"$as_myself" : 'X\(//\)[^/]' \| \
1244 X"$as_myself" : 'X\(//\)$' \| \
1245 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246 $as_echo X"$as_myself" |
1247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)[^/].*/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\/\)$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\).*/{
1260 s//\1/
1261 q
1262 }
1263 s/.*/./; q'`
1264 srcdir=$ac_confdir
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 srcdir=..
1267 fi
1268 else
1269 ac_srcdir_defaulted=no
1270 fi
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1274 fi
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 ac_abs_confdir=`(
1277 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1278 pwd)`
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 srcdir=.
1282 fi
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1286 case $srcdir in
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 esac
1289 for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 done
1295
1296 #
1297 # Report the --help message.
1298 #
1299 if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1302 cat <<_ACEOF
1303 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1304
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE. See below for descriptions of some of the useful variables.
1309
1310 Defaults for the options are specified in brackets.
1311
1312 Configuration:
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322
1323 Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
1325 [$ac_default_prefix]
1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1327 [PREFIX]
1328
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1333
1334 For better control, use the options below.
1335
1336 Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1356 _ACEOF
1357
1358 cat <<\_ACEOF
1359
1360 Program names:
1361 --program-prefix=PREFIX prepend PREFIX to installed program names
1362 --program-suffix=SUFFIX append SUFFIX to installed program names
1363 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1364
1365 System types:
1366 --build=BUILD configure for building on BUILD [guessed]
1367 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1368 --target=TARGET configure for building compilers for TARGET [HOST]
1369 _ACEOF
1370 fi
1371
1372 if test -n "$ac_init_help"; then
1373 case $ac_init_help in
1374 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1375 esac
1376 cat <<\_ACEOF
1377
1378 Optional Features:
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --enable-multilib build many library versions (default)
1383 --enable-version-specific-runtime-libs
1384 specify that runtime libraries should be installed
1385 in a compiler-specific directory
1386 --disable-dependency-tracking speeds up one-time build
1387 --enable-dependency-tracking do not reject slow dependency extractors
1388 --enable-shared[=PKGS] build shared libraries [default=yes]
1389 --enable-static[=PKGS] build static libraries [default=yes]
1390 --enable-fast-install[=PKGS]
1391 optimize for fast installation [default=yes]
1392 --disable-libtool-lock avoid locking (might break parallel builds)
1393 --enable-maintainer-mode enable make rules and dependencies not useful
1394 (and sometimes confusing) to the casual installer
1395 --disable-symvers disable symbol versioning for libquadmath
1396 --enable-generated-files-in-srcdir
1397 put copies of generated files in source dir intended
1398 for creating source tarballs for users without
1399 texinfo bison or flex
1400
1401 Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-bugurl=URL Direct users to URL to report a bug
1405 --with-pic try to use only PIC/non-PIC objects [default=use
1406 both]
1407 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1408
1409 Some influential environment variables:
1410 CC C compiler command
1411 CFLAGS C compiler flags
1412 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1413 nonstandard directory <lib dir>
1414 LIBS libraries to pass to the linker, e.g. -l<library>
1415 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1416 you have headers in a nonstandard directory <include dir>
1417 CPP C preprocessor
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to the package provider.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484 cat <<\_ACEOF
1485 GCC Quad-precision Math Library configure 0.1
1486 generated by GNU Autoconf 2.64
1487
1488 Copyright (C) 2009 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1493 fi
1494
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1498
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1503 {
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526 else
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531 fi
1532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1533 return $ac_retval
1534
1535 } # ac_fn_c_try_compile
1536
1537 # ac_fn_c_try_cpp LINENO
1538 # ----------------------
1539 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_cpp ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 if { { ac_try="$ac_cpp conftest.$ac_ext"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } >/dev/null && {
1559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 }; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 return $ac_retval
1571
1572 } # ac_fn_c_try_cpp
1573
1574 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1575 # -------------------------------------------------------
1576 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1577 # the include files in INCLUDES and setting the cache variable VAR
1578 # accordingly.
1579 ac_fn_c_check_header_mongrel ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1586 $as_echo_n "(cached) " >&6
1587 fi
1588 eval ac_res=\$$3
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1591 else
1592 # Is the header compilable?
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1594 $as_echo_n "checking $2 usability... " >&6; }
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h. */
1597 $4
1598 #include <$2>
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601 ac_header_compiler=yes
1602 else
1603 ac_header_compiler=no
1604 fi
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1607 $as_echo "$ac_header_compiler" >&6; }
1608
1609 # Is the header present?
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1611 $as_echo_n "checking $2 presence... " >&6; }
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1614 #include <$2>
1615 _ACEOF
1616 if ac_fn_c_try_cpp "$LINENO"; then :
1617 ac_header_preproc=yes
1618 else
1619 ac_header_preproc=no
1620 fi
1621 rm -f conftest.err conftest.$ac_ext
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1623 $as_echo "$ac_header_preproc" >&6; }
1624
1625 # So? What about this header?
1626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1627 yes:no: )
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1629 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1631 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1632 ;;
1633 no:yes:* )
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1635 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1637 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1639 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1641 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1643 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1644 ;;
1645 esac
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1649 $as_echo_n "(cached) " >&6
1650 else
1651 eval "$3=\$ac_header_compiler"
1652 fi
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 fi
1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658
1659 } # ac_fn_c_check_header_mongrel
1660
1661 # ac_fn_c_try_run LINENO
1662 # ----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664 # that executables *can* be run.
1665 ac_fn_c_try_run ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679 { { case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_try") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; }; }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: program exited with status $ac_status" >&5
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=$ac_status
1696 fi
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699 return $ac_retval
1700
1701 } # ac_fn_c_try_run
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722 else
1723 eval "$3=no"
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_try_link LINENO
1735 # -----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_link ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext conftest$ac_exeext
1741 if { { ac_try="$ac_link"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest$ac_exeext && {
1760 test "$cross_compiling" = yes ||
1761 $as_test_x conftest$ac_exeext
1762 }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769 fi
1770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1772 # interfere with the next link command; also delete a directory that is
1773 # left behind by Apple's compiler. We do this before executing the actions.
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 return $ac_retval
1777
1778 } # ac_fn_c_try_link
1779
1780 # ac_fn_c_check_func LINENO FUNC VAR
1781 # ----------------------------------
1782 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1783 ac_fn_c_check_func ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 if test x$gcc_no_link = xyes; then
1792 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1793 fi
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1798 #define $2 innocuous_$2
1799
1800 /* System header to define __stub macros and hopefully few prototypes,
1801 which can conflict with char $2 (); below.
1802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1803 <limits.h> exists even on freestanding compilers. */
1804
1805 #ifdef __STDC__
1806 # include <limits.h>
1807 #else
1808 # include <assert.h>
1809 #endif
1810
1811 #undef $2
1812
1813 /* Override any GCC internal prototype to avoid an error.
1814 Use char because int might match the return type of a GCC
1815 builtin and then its argument prototype would still apply. */
1816 #ifdef __cplusplus
1817 extern "C"
1818 #endif
1819 char $2 ();
1820 /* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823 #if defined __stub_$2 || defined __stub___$2
1824 choke me
1825 #endif
1826
1827 int
1828 main ()
1829 {
1830 return $2 ();
1831 ;
1832 return 0;
1833 }
1834 _ACEOF
1835 if ac_fn_c_try_link "$LINENO"; then :
1836 eval "$3=yes"
1837 else
1838 eval "$3=no"
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext \
1841 conftest$ac_exeext conftest.$ac_ext
1842 fi
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847
1848 } # ac_fn_c_check_func
1849 cat >config.log <<_ACEOF
1850 This file contains any messages produced by compilers while
1851 running configure, to aid debugging if configure makes a mistake.
1852
1853 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1854 generated by GNU Autoconf 2.64. Invocation command line was
1855
1856 $ $0 $@
1857
1858 _ACEOF
1859 exec 5>>config.log
1860 {
1861 cat <<_ASUNAME
1862 ## --------- ##
1863 ## Platform. ##
1864 ## --------- ##
1865
1866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1871
1872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1874
1875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882
1883 _ASUNAME
1884
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888 IFS=$as_save_IFS
1889 test -z "$as_dir" && as_dir=.
1890 $as_echo "PATH: $as_dir"
1891 done
1892 IFS=$as_save_IFS
1893
1894 } >&5
1895
1896 cat >&5 <<_ACEOF
1897
1898
1899 ## ----------- ##
1900 ## Core tests. ##
1901 ## ----------- ##
1902
1903 _ACEOF
1904
1905
1906 # Keep a trace of the command line.
1907 # Strip out --no-create and --no-recursion so they do not pile up.
1908 # Strip out --silent because we don't want to record it for future runs.
1909 # Also quote any args containing shell meta-characters.
1910 # Make two passes to allow for proper duplicate-argument suppression.
1911 ac_configure_args=
1912 ac_configure_args0=
1913 ac_configure_args1=
1914 ac_must_keep_next=false
1915 for ac_pass in 1 2
1916 do
1917 for ac_arg
1918 do
1919 case $ac_arg in
1920 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1922 | -silent | --silent | --silen | --sile | --sil)
1923 continue ;;
1924 *\'*)
1925 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1926 esac
1927 case $ac_pass in
1928 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1929 2)
1930 as_fn_append ac_configure_args1 " '$ac_arg'"
1931 if test $ac_must_keep_next = true; then
1932 ac_must_keep_next=false # Got value, back to normal.
1933 else
1934 case $ac_arg in
1935 *=* | --config-cache | -C | -disable-* | --disable-* \
1936 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1937 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1938 | -with-* | --with-* | -without-* | --without-* | --x)
1939 case "$ac_configure_args0 " in
1940 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1941 esac
1942 ;;
1943 -* ) ac_must_keep_next=true ;;
1944 esac
1945 fi
1946 as_fn_append ac_configure_args " '$ac_arg'"
1947 ;;
1948 esac
1949 done
1950 done
1951 { ac_configure_args0=; unset ac_configure_args0;}
1952 { ac_configure_args1=; unset ac_configure_args1;}
1953
1954 # When interrupted or exit'd, cleanup temporary files, and complete
1955 # config.log. We remove comments because anyway the quotes in there
1956 # would cause problems or look ugly.
1957 # WARNING: Use '\'' to represent an apostrophe within the trap.
1958 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1959 trap 'exit_status=$?
1960 # Save into config.log some information that might help in debugging.
1961 {
1962 echo
1963
1964 cat <<\_ASBOX
1965 ## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##
1968 _ASBOX
1969 echo
1970 # The following way of writing the cache mishandles newlines in values,
1971 (
1972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973 eval ac_val=\$$ac_var
1974 case $ac_val in #(
1975 *${as_nl}*)
1976 case $ac_var in #(
1977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1978 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1979 esac
1980 case $ac_var in #(
1981 _ | IFS | as_nl) ;; #(
1982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1983 *) { eval $ac_var=; unset $ac_var;} ;;
1984 esac ;;
1985 esac
1986 done
1987 (set) 2>&1 |
1988 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1989 *${as_nl}ac_space=\ *)
1990 sed -n \
1991 "s/'\''/'\''\\\\'\'''\''/g;
1992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1993 ;; #(
1994 *)
1995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996 ;;
1997 esac |
1998 sort
1999 )
2000 echo
2001
2002 cat <<\_ASBOX
2003 ## ----------------- ##
2004 ## Output variables. ##
2005 ## ----------------- ##
2006 _ASBOX
2007 echo
2008 for ac_var in $ac_subst_vars
2009 do
2010 eval ac_val=\$$ac_var
2011 case $ac_val in
2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 esac
2014 $as_echo "$ac_var='\''$ac_val'\''"
2015 done | sort
2016 echo
2017
2018 if test -n "$ac_subst_files"; then
2019 cat <<\_ASBOX
2020 ## ------------------- ##
2021 ## File substitutions. ##
2022 ## ------------------- ##
2023 _ASBOX
2024 echo
2025 for ac_var in $ac_subst_files
2026 do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in
2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030 esac
2031 $as_echo "$ac_var='\''$ac_val'\''"
2032 done | sort
2033 echo
2034 fi
2035
2036 if test -s confdefs.h; then
2037 cat <<\_ASBOX
2038 ## ----------- ##
2039 ## confdefs.h. ##
2040 ## ----------- ##
2041 _ASBOX
2042 echo
2043 cat confdefs.h
2044 echo
2045 fi
2046 test "$ac_signal" != 0 &&
2047 $as_echo "$as_me: caught signal $ac_signal"
2048 $as_echo "$as_me: exit $exit_status"
2049 } >&5
2050 rm -f core *.core core.conftest.* &&
2051 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2052 exit $exit_status
2053 ' 0
2054 for ac_signal in 1 2 13 15; do
2055 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2056 done
2057 ac_signal=0
2058
2059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2060 rm -f -r conftest* confdefs.h
2061
2062 $as_echo "/* confdefs.h */" > confdefs.h
2063
2064 # Predefined preprocessor variables.
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_NAME "$PACKAGE_NAME"
2068 _ACEOF
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_STRING "$PACKAGE_STRING"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_URL "$PACKAGE_URL"
2088 _ACEOF
2089
2090
2091 # Let the site file select an alternate cache file if it wants to.
2092 # Prefer an explicitly selected file to automatically selected ones.
2093 ac_site_file1=NONE
2094 ac_site_file2=NONE
2095 if test -n "$CONFIG_SITE"; then
2096 ac_site_file1=$CONFIG_SITE
2097 elif test "x$prefix" != xNONE; then
2098 ac_site_file1=$prefix/share/config.site
2099 ac_site_file2=$prefix/etc/config.site
2100 else
2101 ac_site_file1=$ac_default_prefix/share/config.site
2102 ac_site_file2=$ac_default_prefix/etc/config.site
2103 fi
2104 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2105 do
2106 test "x$ac_site_file" = xNONE && continue
2107 if test -r "$ac_site_file"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2109 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2110 sed 's/^/| /' "$ac_site_file" >&5
2111 . "$ac_site_file"
2112 fi
2113 done
2114
2115 if test -r "$cache_file"; then
2116 # Some versions of bash will fail to source /dev/null (special
2117 # files actually), so we avoid doing that.
2118 if test -f "$cache_file"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2120 $as_echo "$as_me: loading cache $cache_file" >&6;}
2121 case $cache_file in
2122 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2123 *) . "./$cache_file";;
2124 esac
2125 fi
2126 else
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2128 $as_echo "$as_me: creating cache $cache_file" >&6;}
2129 >$cache_file
2130 fi
2131
2132 # Check that the precious variables saved in the cache have kept the same
2133 # value.
2134 ac_cache_corrupted=false
2135 for ac_var in $ac_precious_vars; do
2136 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2137 eval ac_new_set=\$ac_env_${ac_var}_set
2138 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2139 eval ac_new_val=\$ac_env_${ac_var}_value
2140 case $ac_old_set,$ac_new_set in
2141 set,)
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2143 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2144 ac_cache_corrupted=: ;;
2145 ,set)
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2147 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2148 ac_cache_corrupted=: ;;
2149 ,);;
2150 *)
2151 if test "x$ac_old_val" != "x$ac_new_val"; then
2152 # differences in whitespace do not lead to failure.
2153 ac_old_val_w=`echo x $ac_old_val`
2154 ac_new_val_w=`echo x $ac_new_val`
2155 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2157 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2158 ac_cache_corrupted=:
2159 else
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2161 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2162 eval $ac_var=\$ac_old_val
2163 fi
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2165 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2167 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2168 fi;;
2169 esac
2170 # Pass precious variables to config.status.
2171 if test "$ac_new_set" = set; then
2172 case $ac_new_val in
2173 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 *) ac_arg=$ac_var=$ac_new_val ;;
2175 esac
2176 case " $ac_configure_args " in
2177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2178 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2179 esac
2180 fi
2181 done
2182 if $ac_cache_corrupted; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2186 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2187 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2188 fi
2189 ## -------------------- ##
2190 ## Main body of script. ##
2191 ## -------------------- ##
2192
2193 ac_ext=c
2194 ac_cpp='$CPP $CPPFLAGS'
2195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2198
2199
2200
2201
2202
2203 ac_config_headers="$ac_config_headers config.h"
2204
2205
2206 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2207 #
2208 # You will slowly go insane if you do not grok the following fact: when
2209 # building this library, the top-level /target/ becomes the library's /host/.
2210 #
2211 # configure then causes --target to default to --host, exactly like any
2212 # other package using autoconf. Therefore, 'target' and 'host' will
2213 # always be the same. This makes sense both for native and cross compilers
2214 # just think about it for a little while. :-)
2215 #
2216 # Also, if this library is being configured as part of a cross compiler, the
2217 # top-level configure script will pass the "real" host as $with_cross_host.
2218 #
2219 # Do not delete or change the following two lines. For why, see
2220 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2221 ac_aux_dir=
2222 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2223 for ac_t in install-sh install.sh shtool; do
2224 if test -f "$ac_dir/$ac_t"; then
2225 ac_aux_dir=$ac_dir
2226 ac_install_sh="$ac_aux_dir/$ac_t -c"
2227 break 2
2228 fi
2229 done
2230 done
2231 if test -z "$ac_aux_dir"; then
2232 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2233 fi
2234
2235 # These three variables are undocumented and unsupported,
2236 # and are intended to be withdrawn in a future Autoconf release.
2237 # They can cause serious problems if a builder's source tree is in a directory
2238 # whose full name contains unusual characters.
2239 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2240 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2241 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2242
2243
2244 # Make sure we can run config.sub.
2245 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2246 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2247
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2249 $as_echo_n "checking build system type... " >&6; }
2250 if test "${ac_cv_build+set}" = set; then :
2251 $as_echo_n "(cached) " >&6
2252 else
2253 ac_build_alias=$build_alias
2254 test "x$ac_build_alias" = x &&
2255 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2256 test "x$ac_build_alias" = x &&
2257 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2258 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2259 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2260
2261 fi
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2263 $as_echo "$ac_cv_build" >&6; }
2264 case $ac_cv_build in
2265 *-*-*) ;;
2266 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2267 esac
2268 build=$ac_cv_build
2269 ac_save_IFS=$IFS; IFS='-'
2270 set x $ac_cv_build
2271 shift
2272 build_cpu=$1
2273 build_vendor=$2
2274 shift; shift
2275 # Remember, the first character of IFS is used to create $*,
2276 # except with old shells:
2277 build_os=$*
2278 IFS=$ac_save_IFS
2279 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2280
2281
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2283 $as_echo_n "checking host system type... " >&6; }
2284 if test "${ac_cv_host+set}" = set; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 if test "x$host_alias" = x; then
2288 ac_cv_host=$ac_cv_build
2289 else
2290 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2292 fi
2293
2294 fi
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2296 $as_echo "$ac_cv_host" >&6; }
2297 case $ac_cv_host in
2298 *-*-*) ;;
2299 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2300 esac
2301 host=$ac_cv_host
2302 ac_save_IFS=$IFS; IFS='-'
2303 set x $ac_cv_host
2304 shift
2305 host_cpu=$1
2306 host_vendor=$2
2307 shift; shift
2308 # Remember, the first character of IFS is used to create $*,
2309 # except with old shells:
2310 host_os=$*
2311 IFS=$ac_save_IFS
2312 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2313
2314
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2316 $as_echo_n "checking target system type... " >&6; }
2317 if test "${ac_cv_target+set}" = set; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 if test "x$target_alias" = x; then
2321 ac_cv_target=$ac_cv_host
2322 else
2323 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2324 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2325 fi
2326
2327 fi
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2329 $as_echo "$ac_cv_target" >&6; }
2330 case $ac_cv_target in
2331 *-*-*) ;;
2332 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2333 esac
2334 target=$ac_cv_target
2335 ac_save_IFS=$IFS; IFS='-'
2336 set x $ac_cv_target
2337 shift
2338 target_cpu=$1
2339 target_vendor=$2
2340 shift; shift
2341 # Remember, the first character of IFS is used to create $*,
2342 # except with old shells:
2343 target_os=$*
2344 IFS=$ac_save_IFS
2345 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2346
2347
2348 # The aliases save the names the user supplied, while $host etc.
2349 # will get canonicalized.
2350 test -n "$target_alias" &&
2351 test "$program_prefix$program_suffix$program_transform_name" = \
2352 NONENONEs,x,x, &&
2353 program_prefix=${target_alias}-
2354
2355 case ${build_alias} in
2356 "") build_noncanonical=${build} ;;
2357 *) build_noncanonical=${build_alias} ;;
2358 esac
2359
2360 case ${host_alias} in
2361 "") host_noncanonical=${build_noncanonical} ;;
2362 *) host_noncanonical=${host_alias} ;;
2363 esac
2364
2365 case ${target_alias} in
2366 "") target_noncanonical=${host_noncanonical} ;;
2367 *) target_noncanonical=${target_alias} ;;
2368 esac
2369
2370
2371
2372
2373 # Default to --enable-multilib
2374 # Check whether --enable-multilib was given.
2375 if test "${enable_multilib+set}" = set; then :
2376 enableval=$enable_multilib; case "$enableval" in
2377 yes) multilib=yes ;;
2378 no) multilib=no ;;
2379 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2380 esac
2381 else
2382 multilib=yes
2383 fi
2384
2385
2386 # We may get other options which we leave undocumented:
2387 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2388 # See config-ml.in if you want the gory details.
2389
2390 if test "$srcdir" = "."; then
2391 if test "$with_target_subdir" != "."; then
2392 multi_basedir="$srcdir/$with_multisrctop../.."
2393 else
2394 multi_basedir="$srcdir/$with_multisrctop.."
2395 fi
2396 else
2397 multi_basedir="$srcdir/.."
2398 fi
2399
2400
2401 # Even if the default multilib is not a cross compilation,
2402 # it may be that some of the other multilibs are.
2403 if test $cross_compiling = no && test $multilib = yes \
2404 && test "x${with_multisubdir}" != x ; then
2405 cross_compiling=maybe
2406 fi
2407
2408 ac_config_commands="$ac_config_commands default-1"
2409
2410
2411 target_alias=${target_alias-$host_alias}
2412
2413
2414 am__api_version='1.11'
2415
2416 # Find a good install program. We prefer a C program (faster),
2417 # so one script is as good as another. But avoid the broken or
2418 # incompatible versions:
2419 # SysV /etc/install, /usr/sbin/install
2420 # SunOS /usr/etc/install
2421 # IRIX /sbin/install
2422 # AIX /bin/install
2423 # AmigaOS /C/install, which installs bootblocks on floppy discs
2424 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2425 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2426 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2427 # OS/2's system install, which has a completely different semantic
2428 # ./install, which can be erroneously created by make from ./install.sh.
2429 # Reject install programs that cannot install multiple files.
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2431 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2432 if test -z "$INSTALL"; then
2433 if test "${ac_cv_path_install+set}" = set; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 # Account for people who put trailing slashes in PATH elements.
2442 case $as_dir/ in #((
2443 ./ | .// | /[cC]/* | \
2444 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2445 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2446 /usr/ucb/* ) ;;
2447 *)
2448 # OSF1 and SCO ODT 3.0 have their own names for install.
2449 # Don't use installbsd from OSF since it installs stuff as root
2450 # by default.
2451 for ac_prog in ginstall scoinst install; do
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2454 if test $ac_prog = install &&
2455 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456 # AIX install. It has an incompatible calling convention.
2457 :
2458 elif test $ac_prog = install &&
2459 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2460 # program-specific install script used by HP pwplus--don't use.
2461 :
2462 else
2463 rm -rf conftest.one conftest.two conftest.dir
2464 echo one > conftest.one
2465 echo two > conftest.two
2466 mkdir conftest.dir
2467 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2468 test -s conftest.one && test -s conftest.two &&
2469 test -s conftest.dir/conftest.one &&
2470 test -s conftest.dir/conftest.two
2471 then
2472 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2473 break 3
2474 fi
2475 fi
2476 fi
2477 done
2478 done
2479 ;;
2480 esac
2481
2482 done
2483 IFS=$as_save_IFS
2484
2485 rm -rf conftest.one conftest.two conftest.dir
2486
2487 fi
2488 if test "${ac_cv_path_install+set}" = set; then
2489 INSTALL=$ac_cv_path_install
2490 else
2491 # As a last resort, use the slow shell script. Don't cache a
2492 # value for INSTALL within a source directory, because that will
2493 # break other packages using the cache if that directory is
2494 # removed, or if the value is a relative name.
2495 INSTALL=$ac_install_sh
2496 fi
2497 fi
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2499 $as_echo "$INSTALL" >&6; }
2500
2501 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2502 # It thinks the first close brace ends the variable substitution.
2503 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2504
2505 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2506
2507 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2508
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2510 $as_echo_n "checking whether build environment is sane... " >&6; }
2511 # Just in case
2512 sleep 1
2513 echo timestamp > conftest.file
2514 # Reject unsafe characters in $srcdir or the absolute working directory
2515 # name. Accept space and tab only in the latter.
2516 am_lf='
2517 '
2518 case `pwd` in
2519 *[\\\"\#\$\&\'\`$am_lf]*)
2520 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2521 esac
2522 case $srcdir in
2523 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2524 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2525 esac
2526
2527 # Do `set' in a subshell so we don't clobber the current shell's
2528 # arguments. Must try -L first in case configure is actually a
2529 # symlink; some systems play weird games with the mod time of symlinks
2530 # (eg FreeBSD returns the mod time of the symlink's containing
2531 # directory).
2532 if (
2533 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2534 if test "$*" = "X"; then
2535 # -L didn't work.
2536 set X `ls -t "$srcdir/configure" conftest.file`
2537 fi
2538 rm -f conftest.file
2539 if test "$*" != "X $srcdir/configure conftest.file" \
2540 && test "$*" != "X conftest.file $srcdir/configure"; then
2541
2542 # If neither matched, then we have a broken ls. This can happen
2543 # if, for instance, CONFIG_SHELL is bash and it inherits a
2544 # broken ls alias from the environment. This has actually
2545 # happened. Such a system could not be considered "sane".
2546 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2547 alias in your environment" "$LINENO" 5
2548 fi
2549
2550 test "$2" = conftest.file
2551 )
2552 then
2553 # Ok.
2554 :
2555 else
2556 as_fn_error "newly created file is older than distributed files!
2557 Check your system clock" "$LINENO" 5
2558 fi
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560 $as_echo "yes" >&6; }
2561 test "$program_prefix" != NONE &&
2562 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2563 # Use a double $ so make ignores it.
2564 test "$program_suffix" != NONE &&
2565 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2566 # Double any \ or $.
2567 # By default was `s,x,x', remove it if useless.
2568 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2569 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2570
2571 # expand $ac_aux_dir to an absolute path
2572 am_aux_dir=`cd $ac_aux_dir && pwd`
2573
2574 if test x"${MISSING+set}" != xset; then
2575 case $am_aux_dir in
2576 *\ * | *\ *)
2577 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2578 *)
2579 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2580 esac
2581 fi
2582 # Use eval to expand $SHELL
2583 if eval "$MISSING --run true"; then
2584 am_missing_run="$MISSING --run "
2585 else
2586 am_missing_run=
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2588 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2589 fi
2590
2591 if test x"${install_sh}" != xset; then
2592 case $am_aux_dir in
2593 *\ * | *\ *)
2594 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2595 *)
2596 install_sh="\${SHELL} $am_aux_dir/install-sh"
2597 esac
2598 fi
2599
2600 # Installed binaries are usually stripped using `strip' when the user
2601 # run `make install-strip'. However `strip' might not be the right
2602 # tool to use in cross-compilation environments, therefore Automake
2603 # will honor the `STRIP' environment variable to overrule this program.
2604 if test "$cross_compiling" != no; then
2605 if test -n "$ac_tool_prefix"; then
2606 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}strip; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if test "${ac_cv_prog_STRIP+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 if test -n "$STRIP"; then
2614 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 STRIP=$ac_cv_prog_STRIP
2634 if test -n "$STRIP"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2636 $as_echo "$STRIP" >&6; }
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 fi
2641
2642
2643 fi
2644 if test -z "$ac_cv_prog_STRIP"; then
2645 ac_ct_STRIP=$STRIP
2646 # Extract the first word of "strip", so it can be a program name with args.
2647 set dummy strip; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test -n "$ac_ct_STRIP"; then
2654 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_ac_ct_STRIP="strip"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667 done
2668 done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2674 if test -n "$ac_ct_STRIP"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2676 $as_echo "$ac_ct_STRIP" >&6; }
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682 if test "x$ac_ct_STRIP" = x; then
2683 STRIP=":"
2684 else
2685 case $cross_compiling:$ac_tool_warned in
2686 yes:)
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2689 ac_tool_warned=yes ;;
2690 esac
2691 STRIP=$ac_ct_STRIP
2692 fi
2693 else
2694 STRIP="$ac_cv_prog_STRIP"
2695 fi
2696
2697 fi
2698 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2699
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2701 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2702 if test -z "$MKDIR_P"; then
2703 if test "${ac_cv_path_mkdir+set}" = set; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_prog in mkdir gmkdir; do
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2714 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2715 'mkdir (GNU coreutils) '* | \
2716 'mkdir (coreutils) '* | \
2717 'mkdir (fileutils) '4.1*)
2718 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2719 break 3;;
2720 esac
2721 done
2722 done
2723 done
2724 IFS=$as_save_IFS
2725
2726 fi
2727
2728 if test "${ac_cv_path_mkdir+set}" = set; then
2729 MKDIR_P="$ac_cv_path_mkdir -p"
2730 else
2731 # As a last resort, use the slow shell script. Don't cache a
2732 # value for MKDIR_P within a source directory, because that will
2733 # break other packages using the cache if that directory is
2734 # removed, or if the value is a relative name.
2735 test -d ./--version && rmdir ./--version
2736 MKDIR_P="$ac_install_sh -d"
2737 fi
2738 fi
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2740 $as_echo "$MKDIR_P" >&6; }
2741
2742 mkdir_p="$MKDIR_P"
2743 case $mkdir_p in
2744 [\\/$]* | ?:[\\/]*) ;;
2745 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2746 esac
2747
2748 for ac_prog in gawk mawk nawk awk
2749 do
2750 # Extract the first word of "$ac_prog", so it can be a program name with args.
2751 set dummy $ac_prog; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if test "${ac_cv_prog_AWK+set}" = set; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$AWK"; then
2758 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_AWK="$ac_prog"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 AWK=$ac_cv_prog_AWK
2778 if test -n "$AWK"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2780 $as_echo "$AWK" >&6; }
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 fi
2785
2786
2787 test -n "$AWK" && break
2788 done
2789
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2791 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2792 set x ${MAKE-make}
2793 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2794 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 cat >conftest.make <<\_ACEOF
2798 SHELL = /bin/sh
2799 all:
2800 @echo '@@@%%%=$(MAKE)=@@@%%%'
2801 _ACEOF
2802 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2803 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2804 *@@@%%%=?*=@@@%%%*)
2805 eval ac_cv_prog_make_${ac_make}_set=yes;;
2806 *)
2807 eval ac_cv_prog_make_${ac_make}_set=no;;
2808 esac
2809 rm -f conftest.make
2810 fi
2811 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2813 $as_echo "yes" >&6; }
2814 SET_MAKE=
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 SET_MAKE="MAKE=${MAKE-make}"
2819 fi
2820
2821 rm -rf .tst 2>/dev/null
2822 mkdir .tst 2>/dev/null
2823 if test -d .tst; then
2824 am__leading_dot=.
2825 else
2826 am__leading_dot=_
2827 fi
2828 rmdir .tst 2>/dev/null
2829
2830 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2831 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2832 # is not polluted with repeated "-I."
2833 am__isrc=' -I$(srcdir)'
2834 # test to see if srcdir already configured
2835 if test -f $srcdir/config.status; then
2836 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2837 fi
2838 fi
2839
2840 # test whether we have cygpath
2841 if test -z "$CYGPATH_W"; then
2842 if (cygpath --version) >/dev/null 2>/dev/null; then
2843 CYGPATH_W='cygpath -w'
2844 else
2845 CYGPATH_W=echo
2846 fi
2847 fi
2848
2849
2850 # Define the identity of the package.
2851 PACKAGE='libquadmath'
2852 VERSION='0.1'
2853
2854
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE "$PACKAGE"
2857 _ACEOF
2858
2859
2860 cat >>confdefs.h <<_ACEOF
2861 #define VERSION "$VERSION"
2862 _ACEOF
2863
2864 # Some tools Automake needs.
2865
2866 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2867
2868
2869 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2870
2871
2872 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2873
2874
2875 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2876
2877
2878 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2879
2880 # We need awk for the "check" target. The system "awk" is bad on
2881 # some platforms.
2882 # Always define AMTAR for backward compatibility.
2883
2884 AMTAR=${AMTAR-"${am_missing_run}tar"}
2885
2886 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2887
2888
2889
2890
2891
2892
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2894 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2895 # Check whether --enable-version-specific-runtime-libs was given.
2896 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2897 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2898 yes) version_specific_libs=yes ;;
2899 no) version_specific_libs=no ;;
2900 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2901 esac
2902 else
2903 version_specific_libs=no
2904 fi
2905
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2907 $as_echo "$version_specific_libs" >&6; }
2908
2909
2910
2911 DEPDIR="${am__leading_dot}deps"
2912
2913 ac_config_commands="$ac_config_commands depfiles"
2914
2915
2916 am_make=${MAKE-make}
2917 cat > confinc << 'END'
2918 am__doit:
2919 @echo this is the am__doit target
2920 .PHONY: am__doit
2921 END
2922 # If we don't find an include directive, just comment out the code.
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2924 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2925 am__include="#"
2926 am__quote=
2927 _am_result=none
2928 # First try GNU make style include.
2929 echo "include confinc" > confmf
2930 # Ignore all kinds of additional output from `make'.
2931 case `$am_make -s -f confmf 2> /dev/null` in #(
2932 *the\ am__doit\ target*)
2933 am__include=include
2934 am__quote=
2935 _am_result=GNU
2936 ;;
2937 esac
2938 # Now try BSD make style include.
2939 if test "$am__include" = "#"; then
2940 echo '.include "confinc"' > confmf
2941 case `$am_make -s -f confmf 2> /dev/null` in #(
2942 *the\ am__doit\ target*)
2943 am__include=.include
2944 am__quote="\""
2945 _am_result=BSD
2946 ;;
2947 esac
2948 fi
2949
2950
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2952 $as_echo "$_am_result" >&6; }
2953 rm -f confinc confmf
2954
2955 # Check whether --enable-dependency-tracking was given.
2956 if test "${enable_dependency_tracking+set}" = set; then :
2957 enableval=$enable_dependency_tracking;
2958 fi
2959
2960 if test "x$enable_dependency_tracking" != xno; then
2961 am_depcomp="$ac_aux_dir/depcomp"
2962 AMDEPBACKSLASH='\'
2963 fi
2964 if test "x$enable_dependency_tracking" != xno; then
2965 AMDEP_TRUE=
2966 AMDEP_FALSE='#'
2967 else
2968 AMDEP_TRUE='#'
2969 AMDEP_FALSE=
2970 fi
2971
2972
2973 ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if test "${ac_cv_prog_CC+set}" = set; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015
3016 fi
3017 if test -z "$ac_cv_prog_CC"; then
3018 ac_ct_CC=$CC
3019 # Extract the first word of "gcc", so it can be a program name with args.
3020 set dummy gcc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$ac_ct_CC"; then
3027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_ac_ct_CC="gcc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047 if test -n "$ac_ct_CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049 $as_echo "$ac_ct_CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055 if test "x$ac_ct_CC" = x; then
3056 CC=""
3057 else
3058 case $cross_compiling:$ac_tool_warned in
3059 yes:)
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3062 ac_tool_warned=yes ;;
3063 esac
3064 CC=$ac_ct_CC
3065 fi
3066 else
3067 CC="$ac_cv_prog_CC"
3068 fi
3069
3070 if test -z "$CC"; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}cc; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_CC+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_CC="${ac_tool_prefix}cc"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093 done
3094 done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109 fi
3110 fi
3111 if test -z "$CC"; then
3112 # Extract the first word of "cc", so it can be a program name with args.
3113 set dummy cc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_CC+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 ac_prog_rejected=no
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3125 do
3126 IFS=$as_save_IFS
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3131 ac_prog_rejected=yes
3132 continue
3133 fi
3134 ac_cv_prog_CC="cc"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 if test $ac_prog_rejected = yes; then
3143 # We found a bogon in the path, so make sure we never use it.
3144 set dummy $ac_cv_prog_CC
3145 shift
3146 if test $# != 0; then
3147 # We chose a different compiler from the bogus one.
3148 # However, it has the same basename, so the bogon will be chosen
3149 # first if we set CC to just the basename; use the full file name.
3150 shift
3151 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3152 fi
3153 fi
3154 fi
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165
3166 fi
3167 if test -z "$CC"; then
3168 if test -n "$ac_tool_prefix"; then
3169 for ac_prog in cl.exe
3170 do
3171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if test "${ac_cv_prog_CC+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192 done
3193 done
3194 IFS=$as_save_IFS
3195
3196 fi
3197 fi
3198 CC=$ac_cv_prog_CC
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207
3208 test -n "$CC" && break
3209 done
3210 fi
3211 if test -z "$CC"; then
3212 ac_ct_CC=$CC
3213 for ac_prog in cl.exe
3214 do
3215 # Extract the first word of "$ac_prog", so it can be a program name with args.
3216 set dummy $ac_prog; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 if test -n "$ac_ct_CC"; then
3223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232 ac_cv_prog_ac_ct_CC="$ac_prog"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 fi
3241 fi
3242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3243 if test -n "$ac_ct_CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3245 $as_echo "$ac_ct_CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252 test -n "$ac_ct_CC" && break
3253 done
3254
3255 if test "x$ac_ct_CC" = x; then
3256 CC=""
3257 else
3258 case $cross_compiling:$ac_tool_warned in
3259 yes:)
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262 ac_tool_warned=yes ;;
3263 esac
3264 CC=$ac_ct_CC
3265 fi
3266 fi
3267
3268 fi
3269
3270
3271 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 as_fn_error "no acceptable C compiler found in \$PATH
3274 See \`config.log' for more details." "$LINENO" 5; }
3275
3276 # Provide some information about the compiler.
3277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3278 set X $ac_compile
3279 ac_compiler=$2
3280 for ac_option in --version -v -V -qversion; do
3281 { { ac_try="$ac_compiler $ac_option >&5"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3289 ac_status=$?
3290 if test -s conftest.err; then
3291 sed '10a\
3292 ... rest of stderr output deleted ...
3293 10q' conftest.err >conftest.er1
3294 cat conftest.er1 >&5
3295 rm -f conftest.er1 conftest.err
3296 fi
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }
3299 done
3300
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3303
3304 int
3305 main ()
3306 {
3307
3308 ;
3309 return 0;
3310 }
3311 _ACEOF
3312 # FIXME: Cleanup?
3313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3314 (eval $ac_link) 2>&5
3315 ac_status=$?
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 gcc_no_link=no
3319 else
3320 gcc_no_link=yes
3321 fi
3322 if test x$gcc_no_link = xyes; then
3323 # Setting cross_compile will disable run tests; it will
3324 # also disable AC_CHECK_FILE but that's generally
3325 # correct if we can't link.
3326 cross_compiling=yes
3327 EXEEXT=
3328 else
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331
3332 int
3333 main ()
3334 {
3335
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 ac_clean_files_save=$ac_clean_files
3341 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3342 # Try to create an executable without -o first, disregard a.out.
3343 # It will help us diagnose broken compilers, and finding out an intuition
3344 # of exeext.
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3346 $as_echo_n "checking for C compiler default output file name... " >&6; }
3347 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3348
3349 # The possible output files:
3350 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3351
3352 ac_rmfiles=
3353 for ac_file in $ac_files
3354 do
3355 case $ac_file in
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3357 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3358 esac
3359 done
3360 rm -f $ac_rmfiles
3361
3362 if { { ac_try="$ac_link_default"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link_default") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; then :
3373 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3374 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3375 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3376 # so that the user can short-circuit this test for compilers unknown to
3377 # Autoconf.
3378 for ac_file in $ac_files ''
3379 do
3380 test -f "$ac_file" || continue
3381 case $ac_file in
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3383 ;;
3384 [ab].out )
3385 # We found the default executable, but exeext='' is most
3386 # certainly right.
3387 break;;
3388 *.* )
3389 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3390 then :; else
3391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392 fi
3393 # We set ac_cv_exeext here because the later test for it is not
3394 # safe: cross compilers may not add the suffix if given an `-o'
3395 # argument, so we may need to know it at that point already.
3396 # Even if this section looks crufty: it has the advantage of
3397 # actually working.
3398 break;;
3399 * )
3400 break;;
3401 esac
3402 done
3403 test "$ac_cv_exeext" = no && ac_cv_exeext=
3404
3405 else
3406 ac_file=''
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3409 $as_echo "$ac_file" >&6; }
3410 if test -z "$ac_file"; then :
3411 $as_echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 { as_fn_set_status 77
3417 as_fn_error "C compiler cannot create executables
3418 See \`config.log' for more details." "$LINENO" 5; }; }
3419 fi
3420 ac_exeext=$ac_cv_exeext
3421
3422 # Check that the compiler produces executables we can run. If not, either
3423 # the compiler is broken, or we cross compile.
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3425 $as_echo_n "checking whether the C compiler works... " >&6; }
3426 # If not cross compiling, check that we can run a simple program.
3427 if test "$cross_compiling" != yes; then
3428 if { ac_try='./$ac_file'
3429 { { case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_try") 2>&5
3436 ac_status=$?
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; }; then
3439 cross_compiling=no
3440 else
3441 if test "$cross_compiling" = maybe; then
3442 cross_compiling=yes
3443 else
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error "cannot run C compiled programs.
3447 If you meant to cross compile, use \`--host'.
3448 See \`config.log' for more details." "$LINENO" 5; }
3449 fi
3450 fi
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3453 $as_echo "yes" >&6; }
3454
3455 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3456 ac_clean_files=$ac_clean_files_save
3457 # Check that the compiler produces executables we can run. If not, either
3458 # the compiler is broken, or we cross compile.
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3460 $as_echo_n "checking whether we are cross compiling... " >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3462 $as_echo "$cross_compiling" >&6; }
3463
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3465 $as_echo_n "checking for suffix of executables... " >&6; }
3466 if { { ac_try="$ac_link"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_link") 2>&5
3474 ac_status=$?
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
3477 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3478 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3479 # work properly (i.e., refer to `conftest.exe'), while it won't with
3480 # `rm'.
3481 for ac_file in conftest.exe conftest conftest.*; do
3482 test -f "$ac_file" || continue
3483 case $ac_file in
3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486 break;;
3487 * ) break;;
3488 esac
3489 done
3490 else
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error "cannot compute suffix of executables: cannot compile and link
3494 See \`config.log' for more details." "$LINENO" 5; }
3495 fi
3496 rm -f conftest$ac_cv_exeext
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3498 $as_echo "$ac_cv_exeext" >&6; }
3499
3500 rm -f conftest.$ac_ext
3501 EXEEXT=$ac_cv_exeext
3502 ac_exeext=$EXEEXT
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3505 $as_echo_n "checking for suffix of object files... " >&6; }
3506 if test "${ac_cv_objext+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511
3512 int
3513 main ()
3514 {
3515
3516 ;
3517 return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.o conftest.obj
3521 if { { ac_try="$ac_compile"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_compile") 2>&5
3529 ac_status=$?
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; then :
3532 for ac_file in conftest.o conftest.obj conftest.*; do
3533 test -f "$ac_file" || continue;
3534 case $ac_file in
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3536 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3537 break;;
3538 esac
3539 done
3540 else
3541 $as_echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error "cannot compute suffix of object files: cannot compile
3547 See \`config.log' for more details." "$LINENO" 5; }
3548 fi
3549 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3552 $as_echo "$ac_cv_objext" >&6; }
3553 OBJEXT=$ac_cv_objext
3554 ac_objext=$OBJEXT
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3556 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3557 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562
3563 int
3564 main ()
3565 {
3566 #ifndef __GNUC__
3567 choke me
3568 #endif
3569
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_compiler_gnu=yes
3576 else
3577 ac_compiler_gnu=no
3578 fi
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3581
3582 fi
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3585 if test $ac_compiler_gnu = yes; then
3586 GCC=yes
3587 else
3588 GCC=
3589 fi
3590 ac_test_CFLAGS=${CFLAGS+set}
3591 ac_save_CFLAGS=$CFLAGS
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3594 if test "${ac_cv_prog_cc_g+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 ac_save_c_werror_flag=$ac_c_werror_flag
3598 ac_c_werror_flag=yes
3599 ac_cv_prog_cc_g=no
3600 CFLAGS="-g"
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603
3604 int
3605 main ()
3606 {
3607
3608 ;
3609 return 0;
3610 }
3611 _ACEOF
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613 ac_cv_prog_cc_g=yes
3614 else
3615 CFLAGS=""
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3618
3619 int
3620 main ()
3621 {
3622
3623 ;
3624 return 0;
3625 }
3626 _ACEOF
3627 if ac_fn_c_try_compile "$LINENO"; then :
3628
3629 else
3630 ac_c_werror_flag=$ac_save_c_werror_flag
3631 CFLAGS="-g"
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3634
3635 int
3636 main ()
3637 {
3638
3639 ;
3640 return 0;
3641 }
3642 _ACEOF
3643 if ac_fn_c_try_compile "$LINENO"; then :
3644 ac_cv_prog_cc_g=yes
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 fi
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3654 $as_echo "$ac_cv_prog_cc_g" >&6; }
3655 if test "$ac_test_CFLAGS" = set; then
3656 CFLAGS=$ac_save_CFLAGS
3657 elif test $ac_cv_prog_cc_g = yes; then
3658 if test "$GCC" = yes; then
3659 CFLAGS="-g -O2"
3660 else
3661 CFLAGS="-g"
3662 fi
3663 else
3664 if test "$GCC" = yes; then
3665 CFLAGS="-O2"
3666 else
3667 CFLAGS=
3668 fi
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3671 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3672 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 ac_cv_prog_cc_c89=no
3676 ac_save_CC=$CC
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <stdarg.h>
3680 #include <stdio.h>
3681 #include <sys/types.h>
3682 #include <sys/stat.h>
3683 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3684 struct buf { int x; };
3685 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3686 static char *e (p, i)
3687 char **p;
3688 int i;
3689 {
3690 return p[i];
3691 }
3692 static char *f (char * (*g) (char **, int), char **p, ...)
3693 {
3694 char *s;
3695 va_list v;
3696 va_start (v,p);
3697 s = g (p, va_arg (v,int));
3698 va_end (v);
3699 return s;
3700 }
3701
3702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3703 function prototypes and stuff, but not '\xHH' hex character constants.
3704 These don't provoke an error unfortunately, instead are silently treated
3705 as 'x'. The following induces an error, until -std is added to get
3706 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3707 array size at least. It's necessary to write '\x00'==0 to get something
3708 that's true only with -std. */
3709 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3710
3711 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3712 inside strings and character constants. */
3713 #define FOO(x) 'x'
3714 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3715
3716 int test (int i, double x);
3717 struct s1 {int (*f) (int a);};
3718 struct s2 {int (*f) (double a);};
3719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3720 int argc;
3721 char **argv;
3722 int
3723 main ()
3724 {
3725 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3731 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3732 do
3733 CC="$ac_save_CC $ac_arg"
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735 ac_cv_prog_cc_c89=$ac_arg
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext
3738 test "x$ac_cv_prog_cc_c89" != "xno" && break
3739 done
3740 rm -f conftest.$ac_ext
3741 CC=$ac_save_CC
3742
3743 fi
3744 # AC_CACHE_VAL
3745 case "x$ac_cv_prog_cc_c89" in
3746 x)
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3748 $as_echo "none needed" >&6; } ;;
3749 xno)
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3751 $as_echo "unsupported" >&6; } ;;
3752 *)
3753 CC="$CC $ac_cv_prog_cc_c89"
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3755 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3756 esac
3757 if test "x$ac_cv_prog_cc_c89" != xno; then :
3758
3759 fi
3760
3761 ac_ext=c
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
3767 depcc="$CC" am_compiler_list=
3768
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3770 $as_echo_n "checking dependency style of $depcc... " >&6; }
3771 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3775 # We make a subdir and do the tests there. Otherwise we can end up
3776 # making bogus files that we don't know about and never remove. For
3777 # instance it was reported that on HP-UX the gcc test will end up
3778 # making a dummy file named `D' -- because `-MD' means `put the output
3779 # in D'.
3780 mkdir conftest.dir
3781 # Copy depcomp to subdir because otherwise we won't find it if we're
3782 # using a relative directory.
3783 cp "$am_depcomp" conftest.dir
3784 cd conftest.dir
3785 # We will build objects and dependencies in a subdirectory because
3786 # it helps to detect inapplicable dependency modes. For instance
3787 # both Tru64's cc and ICC support -MD to output dependencies as a
3788 # side effect of compilation, but ICC will put the dependencies in
3789 # the current directory while Tru64 will put them in the object
3790 # directory.
3791 mkdir sub
3792
3793 am_cv_CC_dependencies_compiler_type=none
3794 if test "$am_compiler_list" = ""; then
3795 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3796 fi
3797 am__universal=false
3798 case " $depcc " in #(
3799 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3800 esac
3801
3802 for depmode in $am_compiler_list; do
3803 # Setup a source with many dependencies, because some compilers
3804 # like to wrap large dependency lists on column 80 (with \), and
3805 # we should not choose a depcomp mode which is confused by this.
3806 #
3807 # We need to recreate these files for each test, as the compiler may
3808 # overwrite some of them when testing with obscure command lines.
3809 # This happens at least with the AIX C compiler.
3810 : > sub/conftest.c
3811 for i in 1 2 3 4 5 6; do
3812 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3813 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3814 # Solaris 8's {/usr,}/bin/sh.
3815 touch sub/conftst$i.h
3816 done
3817 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3818
3819 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3820 # mode. It turns out that the SunPro C++ compiler does not properly
3821 # handle `-M -o', and we need to detect this. Also, some Intel
3822 # versions had trouble with output in subdirs
3823 am__obj=sub/conftest.${OBJEXT-o}
3824 am__minus_obj="-o $am__obj"
3825 case $depmode in
3826 gcc)
3827 # This depmode causes a compiler race in universal mode.
3828 test "$am__universal" = false || continue
3829 ;;
3830 nosideeffect)
3831 # after this tag, mechanisms are not by side-effect, so they'll
3832 # only be used when explicitly requested
3833 if test "x$enable_dependency_tracking" = xyes; then
3834 continue
3835 else
3836 break
3837 fi
3838 ;;
3839 msvisualcpp | msvcmsys)
3840 # This compiler won't grok `-c -o', but also, the minuso test has
3841 # not run yet. These depmodes are late enough in the game, and
3842 # so weak that their functioning should not be impacted.
3843 am__obj=conftest.${OBJEXT-o}
3844 am__minus_obj=
3845 ;;
3846 none) break ;;
3847 esac
3848 if depmode=$depmode \
3849 source=sub/conftest.c object=$am__obj \
3850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3851 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3852 >/dev/null 2>conftest.err &&
3853 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3854 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3855 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3856 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3857 # icc doesn't choke on unknown options, it will just issue warnings
3858 # or remarks (even with -Werror). So we grep stderr for any message
3859 # that says an option was ignored or not supported.
3860 # When given -MP, icc 7.0 and 7.1 complain thusly:
3861 # icc: Command line warning: ignoring option '-M'; no argument required
3862 # The diagnosis changed in icc 8.0:
3863 # icc: Command line remark: option '-MP' not supported
3864 if (grep 'ignoring option' conftest.err ||
3865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3866 am_cv_CC_dependencies_compiler_type=$depmode
3867 break
3868 fi
3869 fi
3870 done
3871
3872 cd ..
3873 rm -rf conftest.dir
3874 else
3875 am_cv_CC_dependencies_compiler_type=none
3876 fi
3877
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3880 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3881 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3882
3883 if
3884 test "x$enable_dependency_tracking" != xno \
3885 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886 am__fastdepCC_TRUE=
3887 am__fastdepCC_FALSE='#'
3888 else
3889 am__fastdepCC_TRUE='#'
3890 am__fastdepCC_FALSE=
3891 fi
3892
3893
3894
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3901 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3902 # On Suns, sometimes $CPP names a directory.
3903 if test -n "$CPP" && test -d "$CPP"; then
3904 CPP=
3905 fi
3906 if test -z "$CPP"; then
3907 if test "${ac_cv_prog_CPP+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 # Double quotes because CPP needs to be expanded
3911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3912 do
3913 ac_preproc_ok=false
3914 for ac_c_preproc_warn_flag in '' yes
3915 do
3916 # Use a header file that comes with gcc, so configuring glibc
3917 # with a fresh cross-compiler works.
3918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3919 # <limits.h> exists even on freestanding compilers.
3920 # On the NeXT, cc -E runs the code through the compiler's parser,
3921 # not just through cpp. "Syntax error" is here to catch this case.
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924 #ifdef __STDC__
3925 # include <limits.h>
3926 #else
3927 # include <assert.h>
3928 #endif
3929 Syntax error
3930 _ACEOF
3931 if ac_fn_c_try_cpp "$LINENO"; then :
3932
3933 else
3934 # Broken: fails on valid input.
3935 continue
3936 fi
3937 rm -f conftest.err conftest.$ac_ext
3938
3939 # OK, works on sane cases. Now check whether nonexistent headers
3940 # can be detected and how.
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943 #include <ac_nonexistent.h>
3944 _ACEOF
3945 if ac_fn_c_try_cpp "$LINENO"; then :
3946 # Broken: success on invalid input.
3947 continue
3948 else
3949 # Passes both tests.
3950 ac_preproc_ok=:
3951 break
3952 fi
3953 rm -f conftest.err conftest.$ac_ext
3954
3955 done
3956 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3957 rm -f conftest.err conftest.$ac_ext
3958 if $ac_preproc_ok; then :
3959 break
3960 fi
3961
3962 done
3963 ac_cv_prog_CPP=$CPP
3964
3965 fi
3966 CPP=$ac_cv_prog_CPP
3967 else
3968 ac_cv_prog_CPP=$CPP
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3971 $as_echo "$CPP" >&6; }
3972 ac_preproc_ok=false
3973 for ac_c_preproc_warn_flag in '' yes
3974 do
3975 # Use a header file that comes with gcc, so configuring glibc
3976 # with a fresh cross-compiler works.
3977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3978 # <limits.h> exists even on freestanding compilers.
3979 # On the NeXT, cc -E runs the code through the compiler's parser,
3980 # not just through cpp. "Syntax error" is here to catch this case.
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3983 #ifdef __STDC__
3984 # include <limits.h>
3985 #else
3986 # include <assert.h>
3987 #endif
3988 Syntax error
3989 _ACEOF
3990 if ac_fn_c_try_cpp "$LINENO"; then :
3991
3992 else
3993 # Broken: fails on valid input.
3994 continue
3995 fi
3996 rm -f conftest.err conftest.$ac_ext
3997
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #include <ac_nonexistent.h>
4003 _ACEOF
4004 if ac_fn_c_try_cpp "$LINENO"; then :
4005 # Broken: success on invalid input.
4006 continue
4007 else
4008 # Passes both tests.
4009 ac_preproc_ok=:
4010 break
4011 fi
4012 rm -f conftest.err conftest.$ac_ext
4013
4014 done
4015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4016 rm -f conftest.err conftest.$ac_ext
4017 if $ac_preproc_ok; then :
4018
4019 else
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4023 See \`config.log' for more details." "$LINENO" 5; }
4024 fi
4025
4026 ac_ext=c
4027 ac_cpp='$CPP $CPPFLAGS'
4028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031
4032
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4034 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4035 if test "${ac_cv_path_GREP+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if test -z "$GREP"; then
4039 ac_path_GREP_found=false
4040 # Loop through the user's path and test for each of PROGNAME-LIST
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4043 do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_prog in grep ggrep; do
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4049 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4050 # Check for GNU ac_path_GREP and select it if it is found.
4051 # Check for GNU $ac_path_GREP
4052 case `"$ac_path_GREP" --version 2>&1` in
4053 *GNU*)
4054 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4055 *)
4056 ac_count=0
4057 $as_echo_n 0123456789 >"conftest.in"
4058 while :
4059 do
4060 cat "conftest.in" "conftest.in" >"conftest.tmp"
4061 mv "conftest.tmp" "conftest.in"
4062 cp "conftest.in" "conftest.nl"
4063 $as_echo 'GREP' >> "conftest.nl"
4064 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4066 as_fn_arith $ac_count + 1 && ac_count=$as_val
4067 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4068 # Best one so far, save it but keep looking for a better one
4069 ac_cv_path_GREP="$ac_path_GREP"
4070 ac_path_GREP_max=$ac_count
4071 fi
4072 # 10*(2^10) chars as input seems more than enough
4073 test $ac_count -gt 10 && break
4074 done
4075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4076 esac
4077
4078 $ac_path_GREP_found && break 3
4079 done
4080 done
4081 done
4082 IFS=$as_save_IFS
4083 if test -z "$ac_cv_path_GREP"; then
4084 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4085 fi
4086 else
4087 ac_cv_path_GREP=$GREP
4088 fi
4089
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4092 $as_echo "$ac_cv_path_GREP" >&6; }
4093 GREP="$ac_cv_path_GREP"
4094
4095
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4097 $as_echo_n "checking for egrep... " >&6; }
4098 if test "${ac_cv_path_EGREP+set}" = set; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4102 then ac_cv_path_EGREP="$GREP -E"
4103 else
4104 if test -z "$EGREP"; then
4105 ac_path_EGREP_found=false
4106 # Loop through the user's path and test for each of PROGNAME-LIST
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4109 do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_prog in egrep; do
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4115 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4116 # Check for GNU ac_path_EGREP and select it if it is found.
4117 # Check for GNU $ac_path_EGREP
4118 case `"$ac_path_EGREP" --version 2>&1` in
4119 *GNU*)
4120 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4121 *)
4122 ac_count=0
4123 $as_echo_n 0123456789 >"conftest.in"
4124 while :
4125 do
4126 cat "conftest.in" "conftest.in" >"conftest.tmp"
4127 mv "conftest.tmp" "conftest.in"
4128 cp "conftest.in" "conftest.nl"
4129 $as_echo 'EGREP' >> "conftest.nl"
4130 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4132 as_fn_arith $ac_count + 1 && ac_count=$as_val
4133 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4134 # Best one so far, save it but keep looking for a better one
4135 ac_cv_path_EGREP="$ac_path_EGREP"
4136 ac_path_EGREP_max=$ac_count
4137 fi
4138 # 10*(2^10) chars as input seems more than enough
4139 test $ac_count -gt 10 && break
4140 done
4141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4142 esac
4143
4144 $ac_path_EGREP_found && break 3
4145 done
4146 done
4147 done
4148 IFS=$as_save_IFS
4149 if test -z "$ac_cv_path_EGREP"; then
4150 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4151 fi
4152 else
4153 ac_cv_path_EGREP=$EGREP
4154 fi
4155
4156 fi
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4159 $as_echo "$ac_cv_path_EGREP" >&6; }
4160 EGREP="$ac_cv_path_EGREP"
4161
4162
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4164 $as_echo_n "checking for ANSI C header files... " >&6; }
4165 if test "${ac_cv_header_stdc+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170 #include <stdlib.h>
4171 #include <stdarg.h>
4172 #include <string.h>
4173 #include <float.h>
4174
4175 int
4176 main ()
4177 {
4178
4179 ;
4180 return 0;
4181 }
4182 _ACEOF
4183 if ac_fn_c_try_compile "$LINENO"; then :
4184 ac_cv_header_stdc=yes
4185 else
4186 ac_cv_header_stdc=no
4187 fi
4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189
4190 if test $ac_cv_header_stdc = yes; then
4191 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194 #include <string.h>
4195
4196 _ACEOF
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 $EGREP "memchr" >/dev/null 2>&1; then :
4199
4200 else
4201 ac_cv_header_stdc=no
4202 fi
4203 rm -f conftest*
4204
4205 fi
4206
4207 if test $ac_cv_header_stdc = yes; then
4208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 #include <stdlib.h>
4212
4213 _ACEOF
4214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4215 $EGREP "free" >/dev/null 2>&1; then :
4216
4217 else
4218 ac_cv_header_stdc=no
4219 fi
4220 rm -f conftest*
4221
4222 fi
4223
4224 if test $ac_cv_header_stdc = yes; then
4225 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4226 if test "$cross_compiling" = yes; then :
4227 :
4228 else
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #include <ctype.h>
4232 #include <stdlib.h>
4233 #if ((' ' & 0x0FF) == 0x020)
4234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4236 #else
4237 # define ISLOWER(c) \
4238 (('a' <= (c) && (c) <= 'i') \
4239 || ('j' <= (c) && (c) <= 'r') \
4240 || ('s' <= (c) && (c) <= 'z'))
4241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4242 #endif
4243
4244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4245 int
4246 main ()
4247 {
4248 int i;
4249 for (i = 0; i < 256; i++)
4250 if (XOR (islower (i), ISLOWER (i))
4251 || toupper (i) != TOUPPER (i))
4252 return 2;
4253 return 0;
4254 }
4255 _ACEOF
4256 if ac_fn_c_try_run "$LINENO"; then :
4257
4258 else
4259 ac_cv_header_stdc=no
4260 fi
4261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4262 conftest.$ac_objext conftest.beam conftest.$ac_ext
4263 fi
4264
4265 fi
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4268 $as_echo "$ac_cv_header_stdc" >&6; }
4269 if test $ac_cv_header_stdc = yes; then
4270
4271 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4272
4273 fi
4274
4275 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4276 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4277 inttypes.h stdint.h unistd.h
4278 do :
4279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4280 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4281 "
4282 eval as_val=\$$as_ac_Header
4283 if test "x$as_val" = x""yes; then :
4284 cat >>confdefs.h <<_ACEOF
4285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4286 _ACEOF
4287
4288 fi
4289
4290 done
4291
4292
4293
4294 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4295 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4296 MINIX=yes
4297 else
4298 MINIX=
4299 fi
4300
4301
4302 if test "$MINIX" = yes; then
4303
4304 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4305
4306
4307 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4308
4309
4310 $as_echo "#define _MINIX 1" >>confdefs.h
4311
4312 fi
4313
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4316 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4317 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322
4323 # define __EXTENSIONS__ 1
4324 $ac_includes_default
4325 int
4326 main ()
4327 {
4328
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 if ac_fn_c_try_compile "$LINENO"; then :
4334 ac_cv_safe_to_define___extensions__=yes
4335 else
4336 ac_cv_safe_to_define___extensions__=no
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4341 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4342 test $ac_cv_safe_to_define___extensions__ = yes &&
4343 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4344
4345 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4346
4347 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4348
4349 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4350
4351 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4352
4353
4354
4355 # See if makeinfo has been installed and is modern enough
4356 # that we can use it.
4357
4358 # Extract the first word of "makeinfo", so it can be a program name with args.
4359 set dummy makeinfo; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test -n "$MAKEINFO"; then
4366 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_MAKEINFO="makeinfo"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379 done
4380 done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 MAKEINFO=$ac_cv_prog_MAKEINFO
4386 if test -n "$MAKEINFO"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4388 $as_echo "$MAKEINFO" >&6; }
4389 else
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395 if test -n "$MAKEINFO"; then
4396 # Found it, now check the version.
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4398 $as_echo_n "checking for modern makeinfo... " >&6; }
4399 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4403 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4404
4405 case $ac_prog_version in
4406 '') gcc_cv_prog_makeinfo_modern=no;;
4407 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4408 *) gcc_cv_prog_makeinfo_modern=no;;
4409 esac
4410
4411 fi
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4413 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4414 else
4415 gcc_cv_prog_makeinfo_modern=no
4416 fi
4417 if test $gcc_cv_prog_makeinfo_modern = no; then
4418 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4419 fi
4420
4421 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4422 BUILD_INFO_TRUE=
4423 BUILD_INFO_FALSE='#'
4424 else
4425 BUILD_INFO_TRUE='#'
4426 BUILD_INFO_FALSE=
4427 fi
4428
4429
4430
4431
4432 # Check whether --with-bugurl was given.
4433 if test "${with_bugurl+set}" = set; then :
4434 withval=$with_bugurl; case "$withval" in
4435 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4436 no) BUGURL=
4437 ;;
4438 *) BUGURL="$withval"
4439 ;;
4440 esac
4441 else
4442 BUGURL="http://gcc.gnu.org/bugs.html"
4443
4444 fi
4445
4446 case ${BUGURL} in
4447 "")
4448 REPORT_BUGS_TO=
4449 REPORT_BUGS_TEXI=
4450 ;;
4451 *)
4452 REPORT_BUGS_TO="<$BUGURL>"
4453 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4454 ;;
4455 esac;
4456
4457
4458
4459
4460 # Configure libtool
4461 case `pwd` in
4462 *\ * | *\ *)
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4464 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4465 esac
4466
4467
4468
4469 macro_version='2.2.7a'
4470 macro_revision='1.3134'
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484 ltmain="$ac_aux_dir/ltmain.sh"
4485
4486 # Backslashify metacharacters that are still active within
4487 # double-quoted strings.
4488 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4489
4490 # Same as above, but do not quote variable references.
4491 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4492
4493 # Sed substitution to delay expansion of an escaped shell variable in a
4494 # double_quote_subst'ed string.
4495 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4496
4497 # Sed substitution to delay expansion of an escaped single quote.
4498 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4499
4500 # Sed substitution to avoid accidental globbing in evaled expressions
4501 no_glob_subst='s/\*/\\\*/g'
4502
4503 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4504 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4505 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4506
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4508 $as_echo_n "checking how to print strings... " >&6; }
4509 # Test print first, because it will be a builtin if present.
4510 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4511 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4512 ECHO='print -r --'
4513 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4514 ECHO='printf %s\n'
4515 else
4516 # Use this function as a fallback that always works.
4517 func_fallback_echo ()
4518 {
4519 eval 'cat <<_LTECHO_EOF
4520 $1
4521 _LTECHO_EOF'
4522 }
4523 ECHO='func_fallback_echo'
4524 fi
4525
4526 # func_echo_all arg...
4527 # Invoke $ECHO with all args, space-separated.
4528 func_echo_all ()
4529 {
4530 $ECHO ""
4531 }
4532
4533 case "$ECHO" in
4534 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4535 $as_echo "printf" >&6; } ;;
4536 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4537 $as_echo "print -r" >&6; } ;;
4538 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4539 $as_echo "cat" >&6; } ;;
4540 esac
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4556 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4557 if test "${ac_cv_path_SED+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4561 for ac_i in 1 2 3 4 5 6 7; do
4562 ac_script="$ac_script$as_nl$ac_script"
4563 done
4564 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4565 { ac_script=; unset ac_script;}
4566 if test -z "$SED"; then
4567 ac_path_SED_found=false
4568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_prog in sed gsed; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4577 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4578 # Check for GNU ac_path_SED and select it if it is found.
4579 # Check for GNU $ac_path_SED
4580 case `"$ac_path_SED" --version 2>&1` in
4581 *GNU*)
4582 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4583 *)
4584 ac_count=0
4585 $as_echo_n 0123456789 >"conftest.in"
4586 while :
4587 do
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
4591 $as_echo '' >> "conftest.nl"
4592 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594 as_fn_arith $ac_count + 1 && ac_count=$as_val
4595 if test $ac_count -gt ${ac_path_SED_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_SED="$ac_path_SED"
4598 ac_path_SED_max=$ac_count
4599 fi
4600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4602 done
4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 esac
4605
4606 $ac_path_SED_found && break 3
4607 done
4608 done
4609 done
4610 IFS=$as_save_IFS
4611 if test -z "$ac_cv_path_SED"; then
4612 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4613 fi
4614 else
4615 ac_cv_path_SED=$SED
4616 fi
4617
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4620 $as_echo "$ac_cv_path_SED" >&6; }
4621 SED="$ac_cv_path_SED"
4622 rm -f conftest.sed
4623
4624 test -z "$SED" && SED=sed
4625 Xsed="$SED -e 1s/^X//"
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4638 $as_echo_n "checking for fgrep... " >&6; }
4639 if test "${ac_cv_path_FGREP+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4643 then ac_cv_path_FGREP="$GREP -F"
4644 else
4645 if test -z "$FGREP"; then
4646 ac_path_FGREP_found=false
4647 # Loop through the user's path and test for each of PROGNAME-LIST
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4650 do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_prog in fgrep; do
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4656 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4657 # Check for GNU ac_path_FGREP and select it if it is found.
4658 # Check for GNU $ac_path_FGREP
4659 case `"$ac_path_FGREP" --version 2>&1` in
4660 *GNU*)
4661 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4662 *)
4663 ac_count=0
4664 $as_echo_n 0123456789 >"conftest.in"
4665 while :
4666 do
4667 cat "conftest.in" "conftest.in" >"conftest.tmp"
4668 mv "conftest.tmp" "conftest.in"
4669 cp "conftest.in" "conftest.nl"
4670 $as_echo 'FGREP' >> "conftest.nl"
4671 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673 as_fn_arith $ac_count + 1 && ac_count=$as_val
4674 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4675 # Best one so far, save it but keep looking for a better one
4676 ac_cv_path_FGREP="$ac_path_FGREP"
4677 ac_path_FGREP_max=$ac_count
4678 fi
4679 # 10*(2^10) chars as input seems more than enough
4680 test $ac_count -gt 10 && break
4681 done
4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4683 esac
4684
4685 $ac_path_FGREP_found && break 3
4686 done
4687 done
4688 done
4689 IFS=$as_save_IFS
4690 if test -z "$ac_cv_path_FGREP"; then
4691 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4692 fi
4693 else
4694 ac_cv_path_FGREP=$FGREP
4695 fi
4696
4697 fi
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4700 $as_echo "$ac_cv_path_FGREP" >&6; }
4701 FGREP="$ac_cv_path_FGREP"
4702
4703
4704 test -z "$GREP" && GREP=grep
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724 # Check whether --with-gnu-ld was given.
4725 if test "${with_gnu_ld+set}" = set; then :
4726 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4727 else
4728 with_gnu_ld=no
4729 fi
4730
4731 ac_prog=ld
4732 if test "$GCC" = yes; then
4733 # Check if gcc -print-prog-name=ld gives a path.
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4735 $as_echo_n "checking for ld used by $CC... " >&6; }
4736 case $host in
4737 *-*-mingw*)
4738 # gcc leaves a trailing carriage return which upsets mingw
4739 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4740 *)
4741 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4742 esac
4743 case $ac_prog in
4744 # Accept absolute paths.
4745 [\\/]* | ?:[\\/]*)
4746 re_direlt='/[^/][^/]*/\.\./'
4747 # Canonicalize the pathname of ld
4748 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4749 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4750 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4751 done
4752 test -z "$LD" && LD="$ac_prog"
4753 ;;
4754 "")
4755 # If it fails, then pretend we aren't using GCC.
4756 ac_prog=ld
4757 ;;
4758 *)
4759 # If it is relative, then search for the first ld in PATH.
4760 with_gnu_ld=unknown
4761 ;;
4762 esac
4763 elif test "$with_gnu_ld" = yes; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4765 $as_echo_n "checking for GNU ld... " >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4768 $as_echo_n "checking for non-GNU ld... " >&6; }
4769 fi
4770 if test "${lt_cv_path_LD+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 if test -z "$LD"; then
4774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4775 for ac_dir in $PATH; do
4776 IFS="$lt_save_ifs"
4777 test -z "$ac_dir" && ac_dir=.
4778 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4779 lt_cv_path_LD="$ac_dir/$ac_prog"
4780 # Check to see if the program is GNU ld. I'd rather use --version,
4781 # but apparently some variants of GNU ld only accept -v.
4782 # Break only if it was the GNU/non-GNU ld that we prefer.
4783 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4784 *GNU* | *'with BFD'*)
4785 test "$with_gnu_ld" != no && break
4786 ;;
4787 *)
4788 test "$with_gnu_ld" != yes && break
4789 ;;
4790 esac
4791 fi
4792 done
4793 IFS="$lt_save_ifs"
4794 else
4795 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4796 fi
4797 fi
4798
4799 LD="$lt_cv_path_LD"
4800 if test -n "$LD"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4802 $as_echo "$LD" >&6; }
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 fi
4807 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4809 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4810 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4814 case `$LD -v 2>&1 </dev/null` in
4815 *GNU* | *'with BFD'*)
4816 lt_cv_prog_gnu_ld=yes
4817 ;;
4818 *)
4819 lt_cv_prog_gnu_ld=no
4820 ;;
4821 esac
4822 fi
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4824 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4825 with_gnu_ld=$lt_cv_prog_gnu_ld
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4836 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4837 if test "${lt_cv_path_NM+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if test -n "$NM"; then
4841 # Let the user override the test.
4842 lt_cv_path_NM="$NM"
4843 else
4844 lt_nm_to_check="${ac_tool_prefix}nm"
4845 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4846 lt_nm_to_check="$lt_nm_to_check nm"
4847 fi
4848 for lt_tmp_nm in $lt_nm_to_check; do
4849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4850 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4851 IFS="$lt_save_ifs"
4852 test -z "$ac_dir" && ac_dir=.
4853 tmp_nm="$ac_dir/$lt_tmp_nm"
4854 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4855 # Check to see if the nm accepts a BSD-compat flag.
4856 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4857 # nm: unknown option "B" ignored
4858 # Tru64's nm complains that /dev/null is an invalid object file
4859 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4860 */dev/null* | *'Invalid file or object type'*)
4861 lt_cv_path_NM="$tmp_nm -B"
4862 break
4863 ;;
4864 *)
4865 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4866 */dev/null*)
4867 lt_cv_path_NM="$tmp_nm -p"
4868 break
4869 ;;
4870 *)
4871 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4872 continue # so that we can try to find one that supports BSD flags
4873 ;;
4874 esac
4875 ;;
4876 esac
4877 fi
4878 done
4879 IFS="$lt_save_ifs"
4880 done
4881 : ${lt_cv_path_NM=no}
4882 fi
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4885 $as_echo "$lt_cv_path_NM" >&6; }
4886 if test "$lt_cv_path_NM" != "no"; then
4887 NM="$lt_cv_path_NM"
4888 else
4889 # Didn't find any BSD compatible name lister, look for dumpbin.
4890 if test -n "$DUMPBIN"; then :
4891 # Let the user override the test.
4892 else
4893 if test -n "$ac_tool_prefix"; then
4894 for ac_prog in dumpbin "link -dump"
4895 do
4896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$DUMPBIN"; then
4904 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 DUMPBIN=$ac_cv_prog_DUMPBIN
4924 if test -n "$DUMPBIN"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4926 $as_echo "$DUMPBIN" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931
4932
4933 test -n "$DUMPBIN" && break
4934 done
4935 fi
4936 if test -z "$DUMPBIN"; then
4937 ac_ct_DUMPBIN=$DUMPBIN
4938 for ac_prog in dumpbin "link -dump"
4939 do
4940 # Extract the first word of "$ac_prog", so it can be a program name with args.
4941 set dummy $ac_prog; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -n "$ac_ct_DUMPBIN"; then
4948 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961 done
4962 done
4963 IFS=$as_save_IFS
4964
4965 fi
4966 fi
4967 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4968 if test -n "$ac_ct_DUMPBIN"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4970 $as_echo "$ac_ct_DUMPBIN" >&6; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4974 fi
4975
4976
4977 test -n "$ac_ct_DUMPBIN" && break
4978 done
4979
4980 if test "x$ac_ct_DUMPBIN" = x; then
4981 DUMPBIN=":"
4982 else
4983 case $cross_compiling:$ac_tool_warned in
4984 yes:)
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4987 ac_tool_warned=yes ;;
4988 esac
4989 DUMPBIN=$ac_ct_DUMPBIN
4990 fi
4991 fi
4992
4993 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4994 *COFF*)
4995 DUMPBIN="$DUMPBIN -symbols"
4996 ;;
4997 *)
4998 DUMPBIN=:
4999 ;;
5000 esac
5001 fi
5002
5003 if test "$DUMPBIN" != ":"; then
5004 NM="$DUMPBIN"
5005 fi
5006 fi
5007 test -z "$NM" && NM=nm
5008
5009
5010
5011
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5015 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5016 if test "${lt_cv_nm_interface+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 lt_cv_nm_interface="BSD nm"
5020 echo "int some_variable = 0;" > conftest.$ac_ext
5021 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5022 (eval "$ac_compile" 2>conftest.err)
5023 cat conftest.err >&5
5024 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5025 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5026 cat conftest.err >&5
5027 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5028 cat conftest.out >&5
5029 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5030 lt_cv_nm_interface="MS dumpbin"
5031 fi
5032 rm -f conftest*
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5035 $as_echo "$lt_cv_nm_interface" >&6; }
5036
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5038 $as_echo_n "checking whether ln -s works... " >&6; }
5039 LN_S=$as_ln_s
5040 if test "$LN_S" = "ln -s"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5042 $as_echo "yes" >&6; }
5043 else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5045 $as_echo "no, using $LN_S" >&6; }
5046 fi
5047
5048 # find the maximum length of command line arguments
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5050 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5051 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 i=0
5055 teststring="ABCD"
5056
5057 case $build_os in
5058 msdosdjgpp*)
5059 # On DJGPP, this test can blow up pretty badly due to problems in libc
5060 # (any single argument exceeding 2000 bytes causes a buffer overrun
5061 # during glob expansion). Even if it were fixed, the result of this
5062 # check would be larger than it should be.
5063 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5064 ;;
5065
5066 gnu*)
5067 # Under GNU Hurd, this test is not required because there is
5068 # no limit to the length of command line arguments.
5069 # Libtool will interpret -1 as no limit whatsoever
5070 lt_cv_sys_max_cmd_len=-1;
5071 ;;
5072
5073 cygwin* | mingw* | cegcc*)
5074 # On Win9x/ME, this test blows up -- it succeeds, but takes
5075 # about 5 minutes as the teststring grows exponentially.
5076 # Worse, since 9x/ME are not pre-emptively multitasking,
5077 # you end up with a "frozen" computer, even though with patience
5078 # the test eventually succeeds (with a max line length of 256k).
5079 # Instead, let's just punt: use the minimum linelength reported by
5080 # all of the supported platforms: 8192 (on NT/2K/XP).
5081 lt_cv_sys_max_cmd_len=8192;
5082 ;;
5083
5084 mint*)
5085 # On MiNT this can take a long time and run out of memory.
5086 lt_cv_sys_max_cmd_len=8192;
5087 ;;
5088
5089 amigaos*)
5090 # On AmigaOS with pdksh, this test takes hours, literally.
5091 # So we just punt and use a minimum line length of 8192.
5092 lt_cv_sys_max_cmd_len=8192;
5093 ;;
5094
5095 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5096 # This has been around since 386BSD, at least. Likely further.
5097 if test -x /sbin/sysctl; then
5098 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5099 elif test -x /usr/sbin/sysctl; then
5100 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5101 else
5102 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5103 fi
5104 # And add a safety zone
5105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5107 ;;
5108
5109 interix*)
5110 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5111 lt_cv_sys_max_cmd_len=196608
5112 ;;
5113
5114 osf*)
5115 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5116 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5117 # nice to cause kernel panics so lets avoid the loop below.
5118 # First set a reasonable default.
5119 lt_cv_sys_max_cmd_len=16384
5120 #
5121 if test -x /sbin/sysconfig; then
5122 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5123 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5124 esac
5125 fi
5126 ;;
5127 sco3.2v5*)
5128 lt_cv_sys_max_cmd_len=102400
5129 ;;
5130 sysv5* | sco5v6* | sysv4.2uw2*)
5131 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5132 if test -n "$kargmax"; then
5133 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5134 else
5135 lt_cv_sys_max_cmd_len=32768
5136 fi
5137 ;;
5138 *)
5139 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5140 if test -n "$lt_cv_sys_max_cmd_len"; then
5141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5142 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5143 else
5144 # Make teststring a little bigger before we do anything with it.
5145 # a 1K string should be a reasonable start.
5146 for i in 1 2 3 4 5 6 7 8 ; do
5147 teststring=$teststring$teststring
5148 done
5149 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5150 # If test is not a shell built-in, we'll probably end up computing a
5151 # maximum length that is only half of the actual maximum length, but
5152 # we can't tell.
5153 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5154 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5155 test $i != 17 # 1/2 MB should be enough
5156 do
5157 i=`expr $i + 1`
5158 teststring=$teststring$teststring
5159 done
5160 # Only check the string length outside the loop.
5161 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5162 teststring=
5163 # Add a significant safety factor because C++ compilers can tack on
5164 # massive amounts of additional arguments before passing them to the
5165 # linker. It appears as though 1/2 is a usable value.
5166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5167 fi
5168 ;;
5169 esac
5170
5171 fi
5172
5173 if test -n $lt_cv_sys_max_cmd_len ; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5175 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5178 $as_echo "none" >&6; }
5179 fi
5180 max_cmd_len=$lt_cv_sys_max_cmd_len
5181
5182
5183
5184
5185
5186
5187 : ${CP="cp -f"}
5188 : ${MV="mv -f"}
5189 : ${RM="rm -f"}
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5192 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5193 # Try some XSI features
5194 xsi_shell=no
5195 ( _lt_dummy="a/b/c"
5196 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5197 = c,a/b,, \
5198 && eval 'test $(( 1 + 1 )) -eq 2 \
5199 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5200 && xsi_shell=yes
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5202 $as_echo "$xsi_shell" >&6; }
5203
5204
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5206 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5207 lt_shell_append=no
5208 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5209 >/dev/null 2>&1 \
5210 && lt_shell_append=yes
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5212 $as_echo "$lt_shell_append" >&6; }
5213
5214
5215 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5216 lt_unset=unset
5217 else
5218 lt_unset=false
5219 fi
5220
5221
5222
5223
5224
5225 # test EBCDIC or ASCII
5226 case `echo X|tr X '\101'` in
5227 A) # ASCII based system
5228 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5229 lt_SP2NL='tr \040 \012'
5230 lt_NL2SP='tr \015\012 \040\040'
5231 ;;
5232 *) # EBCDIC based system
5233 lt_SP2NL='tr \100 \n'
5234 lt_NL2SP='tr \r\n \100\100'
5235 ;;
5236 esac
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5247 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5248 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 lt_cv_ld_reload_flag='-r'
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5254 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5255 reload_flag=$lt_cv_ld_reload_flag
5256 case $reload_flag in
5257 "" | " "*) ;;
5258 *) reload_flag=" $reload_flag" ;;
5259 esac
5260 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5261 case $host_os in
5262 darwin*)
5263 if test "$GCC" = yes; then
5264 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5265 else
5266 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5267 fi
5268 ;;
5269 esac
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279 if test -n "$ac_tool_prefix"; then
5280 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5281 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -n "$OBJDUMP"; then
5288 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5300 fi
5301 done
5302 done
5303 IFS=$as_save_IFS
5304
5305 fi
5306 fi
5307 OBJDUMP=$ac_cv_prog_OBJDUMP
5308 if test -n "$OBJDUMP"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5310 $as_echo "$OBJDUMP" >&6; }
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315
5316
5317 fi
5318 if test -z "$ac_cv_prog_OBJDUMP"; then
5319 ac_ct_OBJDUMP=$OBJDUMP
5320 # Extract the first word of "objdump", so it can be a program name with args.
5321 set dummy objdump; ac_word=$2
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test -n "$ac_ct_OBJDUMP"; then
5328 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341 done
5342 done
5343 IFS=$as_save_IFS
5344
5345 fi
5346 fi
5347 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5348 if test -n "$ac_ct_OBJDUMP"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5350 $as_echo "$ac_ct_OBJDUMP" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356 if test "x$ac_ct_OBJDUMP" = x; then
5357 OBJDUMP="false"
5358 else
5359 case $cross_compiling:$ac_tool_warned in
5360 yes:)
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5363 ac_tool_warned=yes ;;
5364 esac
5365 OBJDUMP=$ac_ct_OBJDUMP
5366 fi
5367 else
5368 OBJDUMP="$ac_cv_prog_OBJDUMP"
5369 fi
5370
5371 test -z "$OBJDUMP" && OBJDUMP=objdump
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5382 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5383 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 lt_cv_file_magic_cmd='$MAGIC_CMD'
5387 lt_cv_file_magic_test_file=
5388 lt_cv_deplibs_check_method='unknown'
5389 # Need to set the preceding variable on all platforms that support
5390 # interlibrary dependencies.
5391 # 'none' -- dependencies not supported.
5392 # `unknown' -- same as none, but documents that we really don't know.
5393 # 'pass_all' -- all dependencies passed with no checks.
5394 # 'test_compile' -- check by making test program.
5395 # 'file_magic [[regex]]' -- check by looking for files in library path
5396 # which responds to the $file_magic_cmd with a given extended regex.
5397 # If you have `file' or equivalent on your system and you're not sure
5398 # whether `pass_all' will *always* work, you probably want this one.
5399
5400 case $host_os in
5401 aix[4-9]*)
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404
5405 beos*)
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
5408
5409 bsdi[45]*)
5410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5411 lt_cv_file_magic_cmd='/usr/bin/file -L'
5412 lt_cv_file_magic_test_file=/shlib/libc.so
5413 ;;
5414
5415 cygwin*)
5416 # func_win32_libid is a shell function defined in ltmain.sh
5417 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5418 lt_cv_file_magic_cmd='func_win32_libid'
5419 ;;
5420
5421 mingw* | pw32*)
5422 # Base MSYS/MinGW do not provide the 'file' command needed by
5423 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5424 # unless we find 'file', for example because we are cross-compiling.
5425 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5426 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5427 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5428 lt_cv_file_magic_cmd='func_win32_libid'
5429 else
5430 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5431 lt_cv_file_magic_cmd='$OBJDUMP -f'
5432 fi
5433 ;;
5434
5435 cegcc*)
5436 # use the weaker test based on 'objdump'. See mingw*.
5437 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5438 lt_cv_file_magic_cmd='$OBJDUMP -f'
5439 ;;
5440
5441 darwin* | rhapsody*)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
5444
5445 freebsd* | dragonfly*)
5446 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5447 case $host_cpu in
5448 i*86 )
5449 # Not sure whether the presence of OpenBSD here was a mistake.
5450 # Let's accept both of them until this is cleared up.
5451 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5452 lt_cv_file_magic_cmd=/usr/bin/file
5453 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5454 ;;
5455 esac
5456 else
5457 lt_cv_deplibs_check_method=pass_all
5458 fi
5459 ;;
5460
5461 gnu*)
5462 lt_cv_deplibs_check_method=pass_all
5463 ;;
5464
5465 haiku*)
5466 lt_cv_deplibs_check_method=pass_all
5467 ;;
5468
5469 hpux10.20* | hpux11*)
5470 lt_cv_file_magic_cmd=/usr/bin/file
5471 case $host_cpu in
5472 ia64*)
5473 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5474 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5475 ;;
5476 hppa*64*)
5477 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]'
5478 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5479 ;;
5480 *)
5481 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5482 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5483 ;;
5484 esac
5485 ;;
5486
5487 interix[3-9]*)
5488 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5490 ;;
5491
5492 irix5* | irix6* | nonstopux*)
5493 case $LD in
5494 *-32|*"-32 ") libmagic=32-bit;;
5495 *-n32|*"-n32 ") libmagic=N32;;
5496 *-64|*"-64 ") libmagic=64-bit;;
5497 *) libmagic=never-match;;
5498 esac
5499 lt_cv_deplibs_check_method=pass_all
5500 ;;
5501
5502 # This must be Linux ELF.
5503 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5504 lt_cv_deplibs_check_method=pass_all
5505 ;;
5506
5507 netbsd*)
5508 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5510 else
5511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5512 fi
5513 ;;
5514
5515 newos6*)
5516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5517 lt_cv_file_magic_cmd=/usr/bin/file
5518 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5519 ;;
5520
5521 *nto* | *qnx*)
5522 lt_cv_deplibs_check_method=pass_all
5523 ;;
5524
5525 openbsd*)
5526 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5528 else
5529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5530 fi
5531 ;;
5532
5533 osf3* | osf4* | osf5*)
5534 lt_cv_deplibs_check_method=pass_all
5535 ;;
5536
5537 rdos*)
5538 lt_cv_deplibs_check_method=pass_all
5539 ;;
5540
5541 solaris*)
5542 lt_cv_deplibs_check_method=pass_all
5543 ;;
5544
5545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5546 lt_cv_deplibs_check_method=pass_all
5547 ;;
5548
5549 sysv4 | sysv4.3*)
5550 case $host_vendor in
5551 motorola)
5552 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]'
5553 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5554 ;;
5555 ncr)
5556 lt_cv_deplibs_check_method=pass_all
5557 ;;
5558 sequent)
5559 lt_cv_file_magic_cmd='/bin/file'
5560 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5561 ;;
5562 sni)
5563 lt_cv_file_magic_cmd='/bin/file'
5564 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5565 lt_cv_file_magic_test_file=/lib/libc.so
5566 ;;
5567 siemens)
5568 lt_cv_deplibs_check_method=pass_all
5569 ;;
5570 pc)
5571 lt_cv_deplibs_check_method=pass_all
5572 ;;
5573 esac
5574 ;;
5575
5576 tpf*)
5577 lt_cv_deplibs_check_method=pass_all
5578 ;;
5579 esac
5580
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5583 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5584 file_magic_cmd=$lt_cv_file_magic_cmd
5585 deplibs_check_method=$lt_cv_deplibs_check_method
5586 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599 if test -n "$ac_tool_prefix"; then
5600 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5601 set dummy ${ac_tool_prefix}ar; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if test "${ac_cv_prog_AR+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 if test -n "$AR"; then
5608 ac_cv_prog_AR="$AR" # Let the user override the test.
5609 else
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5612 do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617 ac_cv_prog_AR="${ac_tool_prefix}ar"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5620 fi
5621 done
5622 done
5623 IFS=$as_save_IFS
5624
5625 fi
5626 fi
5627 AR=$ac_cv_prog_AR
5628 if test -n "$AR"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5630 $as_echo "$AR" >&6; }
5631 else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5634 fi
5635
5636
5637 fi
5638 if test -z "$ac_cv_prog_AR"; then
5639 ac_ct_AR=$AR
5640 # Extract the first word of "ar", so it can be a program name with args.
5641 set dummy ar; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 if test -n "$ac_ct_AR"; then
5648 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5657 ac_cv_prog_ac_ct_AR="ar"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661 done
5662 done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5668 if test -n "$ac_ct_AR"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5670 $as_echo "$ac_ct_AR" >&6; }
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675
5676 if test "x$ac_ct_AR" = x; then
5677 AR="false"
5678 else
5679 case $cross_compiling:$ac_tool_warned in
5680 yes:)
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5683 ac_tool_warned=yes ;;
5684 esac
5685 AR=$ac_ct_AR
5686 fi
5687 else
5688 AR="$ac_cv_prog_AR"
5689 fi
5690
5691 test -z "$AR" && AR=ar
5692 test -z "$AR_FLAGS" && AR_FLAGS=cru
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704 if test -n "$ac_tool_prefix"; then
5705 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5706 set dummy ${ac_tool_prefix}strip; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if test "${ac_cv_prog_STRIP+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if test -n "$STRIP"; then
5713 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5725 fi
5726 done
5727 done
5728 IFS=$as_save_IFS
5729
5730 fi
5731 fi
5732 STRIP=$ac_cv_prog_STRIP
5733 if test -n "$STRIP"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5735 $as_echo "$STRIP" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 fi
5740
5741
5742 fi
5743 if test -z "$ac_cv_prog_STRIP"; then
5744 ac_ct_STRIP=$STRIP
5745 # Extract the first word of "strip", so it can be a program name with args.
5746 set dummy strip; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$ac_ct_STRIP"; then
5753 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_ac_ct_STRIP="strip"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5773 if test -n "$ac_ct_STRIP"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5775 $as_echo "$ac_ct_STRIP" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 fi
5780
5781 if test "x$ac_ct_STRIP" = x; then
5782 STRIP=":"
5783 else
5784 case $cross_compiling:$ac_tool_warned in
5785 yes:)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788 ac_tool_warned=yes ;;
5789 esac
5790 STRIP=$ac_ct_STRIP
5791 fi
5792 else
5793 STRIP="$ac_cv_prog_STRIP"
5794 fi
5795
5796 test -z "$STRIP" && STRIP=:
5797
5798
5799
5800
5801
5802
5803 if test -n "$ac_tool_prefix"; then
5804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5805 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 if test -n "$RANLIB"; then
5812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5824 fi
5825 done
5826 done
5827 IFS=$as_save_IFS
5828
5829 fi
5830 fi
5831 RANLIB=$ac_cv_prog_RANLIB
5832 if test -n "$RANLIB"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5834 $as_echo "$RANLIB" >&6; }
5835 else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5838 fi
5839
5840
5841 fi
5842 if test -z "$ac_cv_prog_RANLIB"; then
5843 ac_ct_RANLIB=$RANLIB
5844 # Extract the first word of "ranlib", so it can be a program name with args.
5845 set dummy ranlib; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 if test -n "$ac_ct_RANLIB"; then
5852 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_prog_ac_ct_RANLIB="ranlib"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865 done
5866 done
5867 IFS=$as_save_IFS
5868
5869 fi
5870 fi
5871 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5872 if test -n "$ac_ct_RANLIB"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5874 $as_echo "$ac_ct_RANLIB" >&6; }
5875 else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5878 fi
5879
5880 if test "x$ac_ct_RANLIB" = x; then
5881 RANLIB=":"
5882 else
5883 case $cross_compiling:$ac_tool_warned in
5884 yes:)
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5887 ac_tool_warned=yes ;;
5888 esac
5889 RANLIB=$ac_ct_RANLIB
5890 fi
5891 else
5892 RANLIB="$ac_cv_prog_RANLIB"
5893 fi
5894
5895 test -z "$RANLIB" && RANLIB=:
5896
5897
5898
5899
5900
5901
5902 # Determine commands to create old-style static archives.
5903 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5904 old_postinstall_cmds='chmod 644 $oldlib'
5905 old_postuninstall_cmds=
5906
5907 if test -n "$RANLIB"; then
5908 case $host_os in
5909 openbsd*)
5910 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5911 ;;
5912 *)
5913 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5914 ;;
5915 esac
5916 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5917 fi
5918
5919 case $host_os in
5920 darwin*)
5921 lock_old_archive_extraction=yes ;;
5922 *)
5923 lock_old_archive_extraction=no ;;
5924 esac
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964 # If no C compiler was specified, use CC.
5965 LTCC=${LTCC-"$CC"}
5966
5967 # If no C compiler flags were specified, use CFLAGS.
5968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5969
5970 # Allow CC to be a program name with arguments.
5971 compiler=$CC
5972
5973
5974 # Check for command to grab the raw symbol name followed by C symbol from nm.
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5976 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5977 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980
5981 # These are sane defaults that work on at least a few old systems.
5982 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5983
5984 # Character class describing NM global symbol codes.
5985 symcode='[BCDEGRST]'
5986
5987 # Regexp to match symbols that can be accessed directly from C.
5988 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5989
5990 # Define system-specific variables.
5991 case $host_os in
5992 aix*)
5993 symcode='[BCDT]'
5994 ;;
5995 cygwin* | mingw* | pw32* | cegcc*)
5996 symcode='[ABCDGISTW]'
5997 ;;
5998 hpux*)
5999 if test "$host_cpu" = ia64; then
6000 symcode='[ABCDEGRST]'
6001 fi
6002 ;;
6003 irix* | nonstopux*)
6004 symcode='[BCDEGRST]'
6005 ;;
6006 osf*)
6007 symcode='[BCDEGQRST]'
6008 ;;
6009 solaris*)
6010 symcode='[BDRT]'
6011 ;;
6012 sco3.2v5*)
6013 symcode='[DT]'
6014 ;;
6015 sysv4.2uw2*)
6016 symcode='[DT]'
6017 ;;
6018 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6019 symcode='[ABDT]'
6020 ;;
6021 sysv4)
6022 symcode='[DFNSTU]'
6023 ;;
6024 esac
6025
6026 # If we're using GNU nm, then use its standard symbol codes.
6027 case `$NM -V 2>&1` in
6028 *GNU* | *'with BFD'*)
6029 symcode='[ABCDGIRSTW]' ;;
6030 esac
6031
6032 # Transform an extracted symbol line into a proper C declaration.
6033 # Some systems (esp. on ia64) link data and code symbols differently,
6034 # so use this general approach.
6035 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6036
6037 # Transform an extracted symbol line into symbol name and symbol address
6038 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6039 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'"
6040
6041 # Handle CRLF in mingw tool chain
6042 opt_cr=
6043 case $build_os in
6044 mingw*)
6045 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6046 ;;
6047 esac
6048
6049 # Try without a prefix underscore, then with it.
6050 for ac_symprfx in "" "_"; do
6051
6052 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6053 symxfrm="\\1 $ac_symprfx\\2 \\2"
6054
6055 # Write the raw and C identifiers.
6056 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6057 # Fake it for dumpbin and say T for any non-static function
6058 # and D for any global variable.
6059 # Also find C++ and __fastcall symbols from MSVC++,
6060 # which start with @ or ?.
6061 lt_cv_sys_global_symbol_pipe="$AWK '"\
6062 " {last_section=section; section=\$ 3};"\
6063 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6064 " \$ 0!~/External *\|/{next};"\
6065 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6066 " {if(hide[section]) next};"\
6067 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6068 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6069 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6070 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6071 " ' prfx=^$ac_symprfx"
6072 else
6073 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6074 fi
6075
6076 # Check to see that the pipe works correctly.
6077 pipe_works=no
6078
6079 rm -f conftest*
6080 cat > conftest.$ac_ext <<_LT_EOF
6081 #ifdef __cplusplus
6082 extern "C" {
6083 #endif
6084 char nm_test_var;
6085 void nm_test_func(void);
6086 void nm_test_func(void){}
6087 #ifdef __cplusplus
6088 }
6089 #endif
6090 int main(){nm_test_var='a';nm_test_func();return(0);}
6091 _LT_EOF
6092
6093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6094 (eval $ac_compile) 2>&5
6095 ac_status=$?
6096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097 test $ac_status = 0; }; then
6098 # Now try to grab the symbols.
6099 nlist=conftest.nm
6100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6101 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6102 ac_status=$?
6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104 test $ac_status = 0; } && test -s "$nlist"; then
6105 # Try sorting and uniquifying the output.
6106 if sort "$nlist" | uniq > "$nlist"T; then
6107 mv -f "$nlist"T "$nlist"
6108 else
6109 rm -f "$nlist"T
6110 fi
6111
6112 # Make sure that we snagged all the symbols we need.
6113 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6114 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6115 cat <<_LT_EOF > conftest.$ac_ext
6116 #ifdef __cplusplus
6117 extern "C" {
6118 #endif
6119
6120 _LT_EOF
6121 # Now generate the symbol file.
6122 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6123
6124 cat <<_LT_EOF >> conftest.$ac_ext
6125
6126 /* The mapping between symbol names and symbols. */
6127 const struct {
6128 const char *name;
6129 void *address;
6130 }
6131 lt__PROGRAM__LTX_preloaded_symbols[] =
6132 {
6133 { "@PROGRAM@", (void *) 0 },
6134 _LT_EOF
6135 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6136 cat <<\_LT_EOF >> conftest.$ac_ext
6137 {0, (void *) 0}
6138 };
6139
6140 /* This works around a problem in FreeBSD linker */
6141 #ifdef FREEBSD_WORKAROUND
6142 static const void *lt_preloaded_setup() {
6143 return lt__PROGRAM__LTX_preloaded_symbols;
6144 }
6145 #endif
6146
6147 #ifdef __cplusplus
6148 }
6149 #endif
6150 _LT_EOF
6151 # Now try linking the two files.
6152 mv conftest.$ac_objext conftstm.$ac_objext
6153 lt_save_LIBS="$LIBS"
6154 lt_save_CFLAGS="$CFLAGS"
6155 LIBS="conftstm.$ac_objext"
6156 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6158 (eval $ac_link) 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6162 pipe_works=yes
6163 fi
6164 LIBS="$lt_save_LIBS"
6165 CFLAGS="$lt_save_CFLAGS"
6166 else
6167 echo "cannot find nm_test_func in $nlist" >&5
6168 fi
6169 else
6170 echo "cannot find nm_test_var in $nlist" >&5
6171 fi
6172 else
6173 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6174 fi
6175 else
6176 echo "$progname: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6178 fi
6179 rm -rf conftest* conftst*
6180
6181 # Do not use the global_symbol_pipe unless it works.
6182 if test "$pipe_works" = yes; then
6183 break
6184 else
6185 lt_cv_sys_global_symbol_pipe=
6186 fi
6187 done
6188
6189 fi
6190
6191 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6192 lt_cv_sys_global_symbol_to_cdecl=
6193 fi
6194 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6196 $as_echo "failed" >&6; }
6197 else
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6199 $as_echo "ok" >&6; }
6200 fi
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223 # Check whether --enable-libtool-lock was given.
6224 if test "${enable_libtool_lock+set}" = set; then :
6225 enableval=$enable_libtool_lock;
6226 fi
6227
6228 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6229
6230 # Some flags need to be propagated to the compiler or linker for good
6231 # libtool support.
6232 case $host in
6233 ia64-*-hpux*)
6234 # Find out which ABI we are using.
6235 echo 'int i;' > conftest.$ac_ext
6236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6237 (eval $ac_compile) 2>&5
6238 ac_status=$?
6239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240 test $ac_status = 0; }; then
6241 case `/usr/bin/file conftest.$ac_objext` in
6242 *ELF-32*)
6243 HPUX_IA64_MODE="32"
6244 ;;
6245 *ELF-64*)
6246 HPUX_IA64_MODE="64"
6247 ;;
6248 esac
6249 fi
6250 rm -rf conftest*
6251 ;;
6252 *-*-irix6*)
6253 # Find out which ABI we are using.
6254 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6256 (eval $ac_compile) 2>&5
6257 ac_status=$?
6258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6259 test $ac_status = 0; }; then
6260 if test "$lt_cv_prog_gnu_ld" = yes; then
6261 case `/usr/bin/file conftest.$ac_objext` in
6262 *32-bit*)
6263 LD="${LD-ld} -melf32bsmip"
6264 ;;
6265 *N32*)
6266 LD="${LD-ld} -melf32bmipn32"
6267 ;;
6268 *64-bit*)
6269 LD="${LD-ld} -melf64bmip"
6270 ;;
6271 esac
6272 else
6273 case `/usr/bin/file conftest.$ac_objext` in
6274 *32-bit*)
6275 LD="${LD-ld} -32"
6276 ;;
6277 *N32*)
6278 LD="${LD-ld} -n32"
6279 ;;
6280 *64-bit*)
6281 LD="${LD-ld} -64"
6282 ;;
6283 esac
6284 fi
6285 fi
6286 rm -rf conftest*
6287 ;;
6288
6289 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6290 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6291 # Find out which ABI we are using.
6292 echo 'int i;' > conftest.$ac_ext
6293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6294 (eval $ac_compile) 2>&5
6295 ac_status=$?
6296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297 test $ac_status = 0; }; then
6298 case `/usr/bin/file conftest.o` in
6299 *32-bit*)
6300 case $host in
6301 x86_64-*kfreebsd*-gnu)
6302 LD="${LD-ld} -m elf_i386_fbsd"
6303 ;;
6304 x86_64-*linux*)
6305 case `/usr/bin/file conftest.o` in
6306 *x86-64*)
6307 LD="${LD-ld} -m elf32_x86_64"
6308 ;;
6309 *)
6310 LD="${LD-ld} -m elf_i386"
6311 ;;
6312 esac
6313 ;;
6314 powerpc64le-*linux*)
6315 LD="${LD-ld} -m elf32lppclinux"
6316 ;;
6317 powerpc64-*linux*)
6318 LD="${LD-ld} -m elf32ppclinux"
6319 ;;
6320 s390x-*linux*)
6321 LD="${LD-ld} -m elf_s390"
6322 ;;
6323 sparc64-*linux*)
6324 LD="${LD-ld} -m elf32_sparc"
6325 ;;
6326 esac
6327 ;;
6328 *64-bit*)
6329 case $host in
6330 x86_64-*kfreebsd*-gnu)
6331 LD="${LD-ld} -m elf_x86_64_fbsd"
6332 ;;
6333 x86_64-*linux*)
6334 LD="${LD-ld} -m elf_x86_64"
6335 ;;
6336 powerpcle-*linux*)
6337 LD="${LD-ld} -m elf64lppc"
6338 ;;
6339 powerpc-*linux*)
6340 LD="${LD-ld} -m elf64ppc"
6341 ;;
6342 s390*-*linux*|s390*-*tpf*)
6343 LD="${LD-ld} -m elf64_s390"
6344 ;;
6345 sparc*-*linux*)
6346 LD="${LD-ld} -m elf64_sparc"
6347 ;;
6348 esac
6349 ;;
6350 esac
6351 fi
6352 rm -rf conftest*
6353 ;;
6354
6355 *-*-sco3.2v5*)
6356 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6357 SAVE_CFLAGS="$CFLAGS"
6358 CFLAGS="$CFLAGS -belf"
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6360 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6361 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 ac_ext=c
6365 ac_cpp='$CPP $CPPFLAGS'
6366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369
6370 if test x$gcc_no_link = xyes; then
6371 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6372 fi
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375
6376 int
6377 main ()
6378 {
6379
6380 ;
6381 return 0;
6382 }
6383 _ACEOF
6384 if ac_fn_c_try_link "$LINENO"; then :
6385 lt_cv_cc_needs_belf=yes
6386 else
6387 lt_cv_cc_needs_belf=no
6388 fi
6389 rm -f core conftest.err conftest.$ac_objext \
6390 conftest$ac_exeext conftest.$ac_ext
6391 ac_ext=c
6392 ac_cpp='$CPP $CPPFLAGS'
6393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6396
6397 fi
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6399 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6400 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6401 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6402 CFLAGS="$SAVE_CFLAGS"
6403 fi
6404 ;;
6405 sparc*-*solaris*)
6406 # Find out which ABI we are using.
6407 echo 'int i;' > conftest.$ac_ext
6408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6409 (eval $ac_compile) 2>&5
6410 ac_status=$?
6411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6412 test $ac_status = 0; }; then
6413 case `/usr/bin/file conftest.o` in
6414 *64-bit*)
6415 case $lt_cv_prog_gnu_ld in
6416 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6417 *)
6418 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6419 LD="${LD-ld} -64"
6420 fi
6421 ;;
6422 esac
6423 ;;
6424 esac
6425 fi
6426 rm -rf conftest*
6427 ;;
6428 esac
6429
6430 need_locks="$enable_libtool_lock"
6431
6432
6433 case $host_os in
6434 rhapsody* | darwin*)
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$DSYMUTIL"; then
6444 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6464 if test -n "$DSYMUTIL"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6466 $as_echo "$DSYMUTIL" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473 fi
6474 if test -z "$ac_cv_prog_DSYMUTIL"; then
6475 ac_ct_DSYMUTIL=$DSYMUTIL
6476 # Extract the first word of "dsymutil", so it can be a program name with args.
6477 set dummy dsymutil; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test -n "$ac_ct_DSYMUTIL"; then
6484 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6504 if test -n "$ac_ct_DSYMUTIL"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6506 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6507 else
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511
6512 if test "x$ac_ct_DSYMUTIL" = x; then
6513 DSYMUTIL=":"
6514 else
6515 case $cross_compiling:$ac_tool_warned in
6516 yes:)
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519 ac_tool_warned=yes ;;
6520 esac
6521 DSYMUTIL=$ac_ct_DSYMUTIL
6522 fi
6523 else
6524 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6525 fi
6526
6527 if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 if test -n "$NMEDIT"; then
6536 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 NMEDIT=$ac_cv_prog_NMEDIT
6556 if test -n "$NMEDIT"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6558 $as_echo "$NMEDIT" >&6; }
6559 else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564
6565 fi
6566 if test -z "$ac_cv_prog_NMEDIT"; then
6567 ac_ct_NMEDIT=$NMEDIT
6568 # Extract the first word of "nmedit", so it can be a program name with args.
6569 set dummy nmedit; ac_word=$2
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 if test -n "$ac_ct_NMEDIT"; then
6576 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6596 if test -n "$ac_ct_NMEDIT"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6598 $as_echo "$ac_ct_NMEDIT" >&6; }
6599 else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6602 fi
6603
6604 if test "x$ac_ct_NMEDIT" = x; then
6605 NMEDIT=":"
6606 else
6607 case $cross_compiling:$ac_tool_warned in
6608 yes:)
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611 ac_tool_warned=yes ;;
6612 esac
6613 NMEDIT=$ac_ct_NMEDIT
6614 fi
6615 else
6616 NMEDIT="$ac_cv_prog_NMEDIT"
6617 fi
6618
6619 if test -n "$ac_tool_prefix"; then
6620 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if test "${ac_cv_prog_LIPO+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 if test -n "$LIPO"; then
6628 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 LIPO=$ac_cv_prog_LIPO
6648 if test -n "$LIPO"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6650 $as_echo "$LIPO" >&6; }
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_LIPO"; then
6659 ac_ct_LIPO=$LIPO
6660 # Extract the first word of "lipo", so it can be a program name with args.
6661 set dummy lipo; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 if test -n "$ac_ct_LIPO"; then
6668 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_prog_ac_ct_LIPO="lipo"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6688 if test -n "$ac_ct_LIPO"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6690 $as_echo "$ac_ct_LIPO" >&6; }
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6694 fi
6695
6696 if test "x$ac_ct_LIPO" = x; then
6697 LIPO=":"
6698 else
6699 case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703 ac_tool_warned=yes ;;
6704 esac
6705 LIPO=$ac_ct_LIPO
6706 fi
6707 else
6708 LIPO="$ac_cv_prog_LIPO"
6709 fi
6710
6711 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}otool; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 if test -n "$OTOOL"; then
6720 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 OTOOL=$ac_cv_prog_OTOOL
6740 if test -n "$OTOOL"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6742 $as_echo "$OTOOL" >&6; }
6743 else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749 fi
6750 if test -z "$ac_cv_prog_OTOOL"; then
6751 ac_ct_OTOOL=$OTOOL
6752 # Extract the first word of "otool", so it can be a program name with args.
6753 set dummy otool; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$ac_ct_OTOOL"; then
6760 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_prog_ac_ct_OTOOL="otool"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6780 if test -n "$ac_ct_OTOOL"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6782 $as_echo "$ac_ct_OTOOL" >&6; }
6783 else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788 if test "x$ac_ct_OTOOL" = x; then
6789 OTOOL=":"
6790 else
6791 case $cross_compiling:$ac_tool_warned in
6792 yes:)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797 OTOOL=$ac_ct_OTOOL
6798 fi
6799 else
6800 OTOOL="$ac_cv_prog_OTOOL"
6801 fi
6802
6803 if test -n "$ac_tool_prefix"; then
6804 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 if test -n "$OTOOL64"; then
6812 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829 fi
6830 fi
6831 OTOOL64=$ac_cv_prog_OTOOL64
6832 if test -n "$OTOOL64"; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6834 $as_echo "$OTOOL64" >&6; }
6835 else
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6838 fi
6839
6840
6841 fi
6842 if test -z "$ac_cv_prog_OTOOL64"; then
6843 ac_ct_OTOOL64=$OTOOL64
6844 # Extract the first word of "otool64", so it can be a program name with args.
6845 set dummy otool64; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 if test -n "$ac_ct_OTOOL64"; then
6852 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_prog_ac_ct_OTOOL64="otool64"
6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6872 if test -n "$ac_ct_OTOOL64"; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6874 $as_echo "$ac_ct_OTOOL64" >&6; }
6875 else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880 if test "x$ac_ct_OTOOL64" = x; then
6881 OTOOL64=":"
6882 else
6883 case $cross_compiling:$ac_tool_warned in
6884 yes:)
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887 ac_tool_warned=yes ;;
6888 esac
6889 OTOOL64=$ac_ct_OTOOL64
6890 fi
6891 else
6892 OTOOL64="$ac_cv_prog_OTOOL64"
6893 fi
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6922 $as_echo_n "checking for -single_module linker flag... " >&6; }
6923 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 lt_cv_apple_cc_single_mod=no
6927 if test -z "${LT_MULTI_MODULE}"; then
6928 # By default we will add the -single_module flag. You can override
6929 # by either setting the environment variable LT_MULTI_MODULE
6930 # non-empty at configure time, or by adding -multi_module to the
6931 # link flags.
6932 rm -rf libconftest.dylib*
6933 echo "int foo(void){return 1;}" > conftest.c
6934 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6935 -dynamiclib -Wl,-single_module conftest.c" >&5
6936 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6937 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6938 _lt_result=$?
6939 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6940 lt_cv_apple_cc_single_mod=yes
6941 else
6942 cat conftest.err >&5
6943 fi
6944 rm -rf libconftest.dylib*
6945 rm -f conftest.*
6946 fi
6947 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6949 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6951 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6952 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 lt_cv_ld_exported_symbols_list=no
6956 save_LDFLAGS=$LDFLAGS
6957 echo "_main" > conftest.sym
6958 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6959 if test x$gcc_no_link = xyes; then
6960 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6961 fi
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964
6965 int
6966 main ()
6967 {
6968
6969 ;
6970 return 0;
6971 }
6972 _ACEOF
6973 if ac_fn_c_try_link "$LINENO"; then :
6974 lt_cv_ld_exported_symbols_list=yes
6975 else
6976 lt_cv_ld_exported_symbols_list=no
6977 fi
6978 rm -f core conftest.err conftest.$ac_objext \
6979 conftest$ac_exeext conftest.$ac_ext
6980 LDFLAGS="$save_LDFLAGS"
6981
6982 fi
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6984 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6986 $as_echo_n "checking for -force_load linker flag... " >&6; }
6987 if test "${lt_cv_ld_force_load+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 lt_cv_ld_force_load=no
6991 cat > conftest.c << _LT_EOF
6992 int forced_loaded() { return 2;}
6993 _LT_EOF
6994 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6995 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6996 echo "$AR cru libconftest.a conftest.o" >&5
6997 $AR cru libconftest.a conftest.o 2>&5
6998 cat > conftest.c << _LT_EOF
6999 int main() { return 0;}
7000 _LT_EOF
7001 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7002 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7003 _lt_result=$?
7004 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7005 lt_cv_ld_force_load=yes
7006 else
7007 cat conftest.err >&5
7008 fi
7009 rm -f conftest.err libconftest.a conftest conftest.c
7010 rm -rf conftest.dSYM
7011
7012 fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7014 $as_echo "$lt_cv_ld_force_load" >&6; }
7015 case $host_os in
7016 rhapsody* | darwin1.[012])
7017 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7018 darwin1.*)
7019 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7020 darwin*) # darwin 5.x on
7021 # if running on 10.5 or later, the deployment target defaults
7022 # to the OS version, if on x86, and 10.4, the deployment
7023 # target defaults to 10.4. Don't you love it?
7024 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7025 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7026 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7027 10.[012][,.]*)
7028 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7029 10.*)
7030 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7031 esac
7032 ;;
7033 esac
7034 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7035 _lt_dar_single_mod='$single_module'
7036 fi
7037 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7038 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7039 else
7040 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7041 fi
7042 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7043 _lt_dsymutil='~$DSYMUTIL $lib || :'
7044 else
7045 _lt_dsymutil=
7046 fi
7047 ;;
7048 esac
7049
7050 for ac_header in dlfcn.h
7051 do :
7052 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7053 "
7054 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7055 cat >>confdefs.h <<_ACEOF
7056 #define HAVE_DLFCN_H 1
7057 _ACEOF
7058
7059 fi
7060
7061 done
7062
7063
7064
7065
7066
7067 # Set options
7068
7069
7070
7071 enable_dlopen=no
7072
7073
7074 enable_win32_dll=no
7075
7076
7077 # Check whether --enable-shared was given.
7078 if test "${enable_shared+set}" = set; then :
7079 enableval=$enable_shared; p=${PACKAGE-default}
7080 case $enableval in
7081 yes) enable_shared=yes ;;
7082 no) enable_shared=no ;;
7083 *)
7084 enable_shared=no
7085 # Look at the argument we got. We use all the common list separators.
7086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7087 for pkg in $enableval; do
7088 IFS="$lt_save_ifs"
7089 if test "X$pkg" = "X$p"; then
7090 enable_shared=yes
7091 fi
7092 done
7093 IFS="$lt_save_ifs"
7094 ;;
7095 esac
7096 else
7097 enable_shared=yes
7098 fi
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108 # Check whether --enable-static was given.
7109 if test "${enable_static+set}" = set; then :
7110 enableval=$enable_static; p=${PACKAGE-default}
7111 case $enableval in
7112 yes) enable_static=yes ;;
7113 no) enable_static=no ;;
7114 *)
7115 enable_static=no
7116 # Look at the argument we got. We use all the common list separators.
7117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7118 for pkg in $enableval; do
7119 IFS="$lt_save_ifs"
7120 if test "X$pkg" = "X$p"; then
7121 enable_static=yes
7122 fi
7123 done
7124 IFS="$lt_save_ifs"
7125 ;;
7126 esac
7127 else
7128 enable_static=yes
7129 fi
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140 # Check whether --with-pic was given.
7141 if test "${with_pic+set}" = set; then :
7142 withval=$with_pic; pic_mode="$withval"
7143 else
7144 pic_mode=default
7145 fi
7146
7147
7148 test -z "$pic_mode" && pic_mode=default
7149
7150
7151
7152
7153
7154
7155
7156 # Check whether --enable-fast-install was given.
7157 if test "${enable_fast_install+set}" = set; then :
7158 enableval=$enable_fast_install; p=${PACKAGE-default}
7159 case $enableval in
7160 yes) enable_fast_install=yes ;;
7161 no) enable_fast_install=no ;;
7162 *)
7163 enable_fast_install=no
7164 # Look at the argument we got. We use all the common list separators.
7165 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7166 for pkg in $enableval; do
7167 IFS="$lt_save_ifs"
7168 if test "X$pkg" = "X$p"; then
7169 enable_fast_install=yes
7170 fi
7171 done
7172 IFS="$lt_save_ifs"
7173 ;;
7174 esac
7175 else
7176 enable_fast_install=yes
7177 fi
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189 # This can be used to rebuild libtool when needed
7190 LIBTOOL_DEPS="$ltmain"
7191
7192 # Always use our own libtool.
7193 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220 test -z "$LN_S" && LN_S="ln -s"
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235 if test -n "${ZSH_VERSION+set}" ; then
7236 setopt NO_GLOB_SUBST
7237 fi
7238
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7240 $as_echo_n "checking for objdir... " >&6; }
7241 if test "${lt_cv_objdir+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 rm -f .libs 2>/dev/null
7245 mkdir .libs 2>/dev/null
7246 if test -d .libs; then
7247 lt_cv_objdir=.libs
7248 else
7249 # MS-DOS does not allow filenames that begin with a dot.
7250 lt_cv_objdir=_libs
7251 fi
7252 rmdir .libs 2>/dev/null
7253 fi
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7255 $as_echo "$lt_cv_objdir" >&6; }
7256 objdir=$lt_cv_objdir
7257
7258
7259
7260
7261
7262 cat >>confdefs.h <<_ACEOF
7263 #define LT_OBJDIR "$lt_cv_objdir/"
7264 _ACEOF
7265
7266
7267
7268
7269 case $host_os in
7270 aix3*)
7271 # AIX sometimes has problems with the GCC collect2 program. For some
7272 # reason, if we set the COLLECT_NAMES environment variable, the problems
7273 # vanish in a puff of smoke.
7274 if test "X${COLLECT_NAMES+set}" != Xset; then
7275 COLLECT_NAMES=
7276 export COLLECT_NAMES
7277 fi
7278 ;;
7279 esac
7280
7281 # Global variables:
7282 ofile=libtool
7283 can_build_shared=yes
7284
7285 # All known linkers require a `.a' archive for static linking (except MSVC,
7286 # which needs '.lib').
7287 libext=a
7288
7289 with_gnu_ld="$lt_cv_prog_gnu_ld"
7290
7291 old_CC="$CC"
7292 old_CFLAGS="$CFLAGS"
7293
7294 # Set sane defaults for various variables
7295 test -z "$CC" && CC=cc
7296 test -z "$LTCC" && LTCC=$CC
7297 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7298 test -z "$LD" && LD=ld
7299 test -z "$ac_objext" && ac_objext=o
7300
7301 for cc_temp in $compiler""; do
7302 case $cc_temp in
7303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7305 \-*) ;;
7306 *) break;;
7307 esac
7308 done
7309 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7310
7311
7312 # Only perform the check for file, if the check method requires it
7313 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7314 case $deplibs_check_method in
7315 file_magic*)
7316 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7318 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7319 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 case $MAGIC_CMD in
7323 [\\/*] | ?:[\\/]*)
7324 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7325 ;;
7326 *)
7327 lt_save_MAGIC_CMD="$MAGIC_CMD"
7328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7329 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7330 for ac_dir in $ac_dummy; do
7331 IFS="$lt_save_ifs"
7332 test -z "$ac_dir" && ac_dir=.
7333 if test -f $ac_dir/${ac_tool_prefix}file; then
7334 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7335 if test -n "$file_magic_test_file"; then
7336 case $deplibs_check_method in
7337 "file_magic "*)
7338 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7340 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7341 $EGREP "$file_magic_regex" > /dev/null; then
7342 :
7343 else
7344 cat <<_LT_EOF 1>&2
7345
7346 *** Warning: the command libtool uses to detect shared libraries,
7347 *** $file_magic_cmd, produces output that libtool cannot recognize.
7348 *** The result is that libtool may fail to recognize shared libraries
7349 *** as such. This will affect the creation of libtool libraries that
7350 *** depend on shared libraries, but programs linked with such libtool
7351 *** libraries will work regardless of this problem. Nevertheless, you
7352 *** may want to report the problem to your system manager and/or to
7353 *** bug-libtool@gnu.org
7354
7355 _LT_EOF
7356 fi ;;
7357 esac
7358 fi
7359 break
7360 fi
7361 done
7362 IFS="$lt_save_ifs"
7363 MAGIC_CMD="$lt_save_MAGIC_CMD"
7364 ;;
7365 esac
7366 fi
7367
7368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7369 if test -n "$MAGIC_CMD"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7371 $as_echo "$MAGIC_CMD" >&6; }
7372 else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377
7378
7379
7380
7381 if test -z "$lt_cv_path_MAGIC_CMD"; then
7382 if test -n "$ac_tool_prefix"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7384 $as_echo_n "checking for file... " >&6; }
7385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 case $MAGIC_CMD in
7389 [\\/*] | ?:[\\/]*)
7390 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7391 ;;
7392 *)
7393 lt_save_MAGIC_CMD="$MAGIC_CMD"
7394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7395 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7396 for ac_dir in $ac_dummy; do
7397 IFS="$lt_save_ifs"
7398 test -z "$ac_dir" && ac_dir=.
7399 if test -f $ac_dir/file; then
7400 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7401 if test -n "$file_magic_test_file"; then
7402 case $deplibs_check_method in
7403 "file_magic "*)
7404 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7407 $EGREP "$file_magic_regex" > /dev/null; then
7408 :
7409 else
7410 cat <<_LT_EOF 1>&2
7411
7412 *** Warning: the command libtool uses to detect shared libraries,
7413 *** $file_magic_cmd, produces output that libtool cannot recognize.
7414 *** The result is that libtool may fail to recognize shared libraries
7415 *** as such. This will affect the creation of libtool libraries that
7416 *** depend on shared libraries, but programs linked with such libtool
7417 *** libraries will work regardless of this problem. Nevertheless, you
7418 *** may want to report the problem to your system manager and/or to
7419 *** bug-libtool@gnu.org
7420
7421 _LT_EOF
7422 fi ;;
7423 esac
7424 fi
7425 break
7426 fi
7427 done
7428 IFS="$lt_save_ifs"
7429 MAGIC_CMD="$lt_save_MAGIC_CMD"
7430 ;;
7431 esac
7432 fi
7433
7434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435 if test -n "$MAGIC_CMD"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7437 $as_echo "$MAGIC_CMD" >&6; }
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 fi
7442
7443
7444 else
7445 MAGIC_CMD=:
7446 fi
7447 fi
7448
7449 fi
7450 ;;
7451 esac
7452
7453 # Use C for the default configuration in the libtool script
7454
7455 lt_save_CC="$CC"
7456 ac_ext=c
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
7462
7463 # Source file extension for C test sources.
7464 ac_ext=c
7465
7466 # Object file extension for compiled C test sources.
7467 objext=o
7468 objext=$objext
7469
7470 # Code to be used in simple compile tests
7471 lt_simple_compile_test_code="int some_variable = 0;"
7472
7473 # Code to be used in simple link tests
7474 lt_simple_link_test_code='int main(){return(0);}'
7475
7476
7477
7478
7479
7480
7481
7482 # If no C compiler was specified, use CC.
7483 LTCC=${LTCC-"$CC"}
7484
7485 # If no C compiler flags were specified, use CFLAGS.
7486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7487
7488 # Allow CC to be a program name with arguments.
7489 compiler=$CC
7490
7491 # Save the default compiler, since it gets overwritten when the other
7492 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7493 compiler_DEFAULT=$CC
7494
7495 # save warnings/boilerplate of simple test code
7496 ac_outfile=conftest.$ac_objext
7497 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7499 _lt_compiler_boilerplate=`cat conftest.err`
7500 $RM conftest*
7501
7502 ac_outfile=conftest.$ac_objext
7503 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7505 _lt_linker_boilerplate=`cat conftest.err`
7506 $RM -r conftest*
7507
7508
7509 ## CAVEAT EMPTOR:
7510 ## There is no encapsulation within the following macros, do not change
7511 ## the running order or otherwise move them around unless you know exactly
7512 ## what you are doing...
7513 if test -n "$compiler"; then
7514
7515 lt_prog_compiler_no_builtin_flag=
7516
7517 if test "$GCC" = yes; then
7518 case $cc_basename in
7519 nvcc*)
7520 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7521 *)
7522 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7523 esac
7524
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7526 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7527 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7530 lt_cv_prog_compiler_rtti_exceptions=no
7531 ac_outfile=conftest.$ac_objext
7532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7533 lt_compiler_flag="-fno-rtti -fno-exceptions"
7534 # Insert the option either (1) after the last *FLAGS variable, or
7535 # (2) before a word containing "conftest.", or (3) at the end.
7536 # Note that $ac_compile itself does not contain backslashes and begins
7537 # with a dollar sign (not a hyphen), so the echo should work correctly.
7538 # The option is referenced via a variable to avoid confusing sed.
7539 lt_compile=`echo "$ac_compile" | $SED \
7540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7542 -e 's:$: $lt_compiler_flag:'`
7543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7544 (eval "$lt_compile" 2>conftest.err)
7545 ac_status=$?
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 if (exit $ac_status) && test -s "$ac_outfile"; then
7549 # The compiler can only warn and ignore the option if not recognized
7550 # So say no if there are warnings other than the usual output.
7551 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7553 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7554 lt_cv_prog_compiler_rtti_exceptions=yes
7555 fi
7556 fi
7557 $RM conftest*
7558
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7561 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7562
7563 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7564 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7565 else
7566 :
7567 fi
7568
7569 fi
7570
7571
7572
7573
7574
7575
7576 lt_prog_compiler_wl=
7577 lt_prog_compiler_pic=
7578 lt_prog_compiler_static=
7579
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7581 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7582
7583 if test "$GCC" = yes; then
7584 lt_prog_compiler_wl='-Wl,'
7585 lt_prog_compiler_static='-static'
7586
7587 case $host_os in
7588 aix*)
7589 # All AIX code is PIC.
7590 if test "$host_cpu" = ia64; then
7591 # AIX 5 now supports IA64 processor
7592 lt_prog_compiler_static='-Bstatic'
7593 fi
7594 lt_prog_compiler_pic='-fPIC'
7595 ;;
7596
7597 amigaos*)
7598 case $host_cpu in
7599 powerpc)
7600 # see comment about AmigaOS4 .so support
7601 lt_prog_compiler_pic='-fPIC'
7602 ;;
7603 m68k)
7604 # FIXME: we need at least 68020 code to build shared libraries, but
7605 # adding the `-m68020' flag to GCC prevents building anything better,
7606 # like `-m68040'.
7607 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7608 ;;
7609 esac
7610 ;;
7611
7612 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7613 # PIC is the default for these OSes.
7614 ;;
7615
7616 mingw* | cygwin* | pw32* | os2* | cegcc*)
7617 # This hack is so that the source file can tell whether it is being
7618 # built for inclusion in a dll (and should export symbols for example).
7619 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7620 # (--disable-auto-import) libraries
7621 lt_prog_compiler_pic='-DDLL_EXPORT'
7622 ;;
7623
7624 darwin* | rhapsody*)
7625 # PIC is the default on this platform
7626 # Common symbols not allowed in MH_DYLIB files
7627 lt_prog_compiler_pic='-fno-common'
7628 ;;
7629
7630 haiku*)
7631 # PIC is the default for Haiku.
7632 # The "-static" flag exists, but is broken.
7633 lt_prog_compiler_static=
7634 ;;
7635
7636 hpux*)
7637 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7638 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7639 # sets the default TLS model and affects inlining.
7640 case $host_cpu in
7641 hppa*64*)
7642 # +Z the default
7643 ;;
7644 *)
7645 lt_prog_compiler_pic='-fPIC'
7646 ;;
7647 esac
7648 ;;
7649
7650 interix[3-9]*)
7651 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7652 # Instead, we relocate shared libraries at runtime.
7653 ;;
7654
7655 msdosdjgpp*)
7656 # Just because we use GCC doesn't mean we suddenly get shared libraries
7657 # on systems that don't support them.
7658 lt_prog_compiler_can_build_shared=no
7659 enable_shared=no
7660 ;;
7661
7662 *nto* | *qnx*)
7663 # QNX uses GNU C++, but need to define -shared option too, otherwise
7664 # it will coredump.
7665 lt_prog_compiler_pic='-fPIC -shared'
7666 ;;
7667
7668 sysv4*MP*)
7669 if test -d /usr/nec; then
7670 lt_prog_compiler_pic=-Kconform_pic
7671 fi
7672 ;;
7673
7674 *)
7675 lt_prog_compiler_pic='-fPIC'
7676 ;;
7677 esac
7678
7679 case $cc_basename in
7680 nvcc*) # Cuda Compiler Driver 2.2
7681 lt_prog_compiler_wl='-Xlinker '
7682 lt_prog_compiler_pic='-Xcompiler -fPIC'
7683 ;;
7684 esac
7685 else
7686 # PORTME Check for flag to pass linker flags through the system compiler.
7687 case $host_os in
7688 aix*)
7689 lt_prog_compiler_wl='-Wl,'
7690 if test "$host_cpu" = ia64; then
7691 # AIX 5 now supports IA64 processor
7692 lt_prog_compiler_static='-Bstatic'
7693 else
7694 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7695 fi
7696 ;;
7697
7698 mingw* | cygwin* | pw32* | os2* | cegcc*)
7699 # This hack is so that the source file can tell whether it is being
7700 # built for inclusion in a dll (and should export symbols for example).
7701 lt_prog_compiler_pic='-DDLL_EXPORT'
7702 ;;
7703
7704 hpux9* | hpux10* | hpux11*)
7705 lt_prog_compiler_wl='-Wl,'
7706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7707 # not for PA HP-UX.
7708 case $host_cpu in
7709 hppa*64*|ia64*)
7710 # +Z the default
7711 ;;
7712 *)
7713 lt_prog_compiler_pic='+Z'
7714 ;;
7715 esac
7716 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7717 lt_prog_compiler_static='${wl}-a ${wl}archive'
7718 ;;
7719
7720 irix5* | irix6* | nonstopux*)
7721 lt_prog_compiler_wl='-Wl,'
7722 # PIC (with -KPIC) is the default.
7723 lt_prog_compiler_static='-non_shared'
7724 ;;
7725
7726 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7727 case $cc_basename in
7728 # old Intel for x86_64 which still supported -KPIC.
7729 ecc*)
7730 lt_prog_compiler_wl='-Wl,'
7731 lt_prog_compiler_pic='-KPIC'
7732 lt_prog_compiler_static='-static'
7733 ;;
7734 # icc used to be incompatible with GCC.
7735 # ICC 10 doesn't accept -KPIC any more.
7736 icc* | ifort*)
7737 lt_prog_compiler_wl='-Wl,'
7738 lt_prog_compiler_pic='-fPIC'
7739 lt_prog_compiler_static='-static'
7740 ;;
7741 # Lahey Fortran 8.1.
7742 lf95*)
7743 lt_prog_compiler_wl='-Wl,'
7744 lt_prog_compiler_pic='--shared'
7745 lt_prog_compiler_static='--static'
7746 ;;
7747 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7748 # Portland Group compilers (*not* the Pentium gcc compiler,
7749 # which looks to be a dead project)
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_pic='-fpic'
7752 lt_prog_compiler_static='-Bstatic'
7753 ;;
7754 ccc*)
7755 lt_prog_compiler_wl='-Wl,'
7756 # All Alpha code is PIC.
7757 lt_prog_compiler_static='-non_shared'
7758 ;;
7759 xl* | bgxl* | bgf* | mpixl*)
7760 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7761 lt_prog_compiler_wl='-Wl,'
7762 lt_prog_compiler_pic='-qpic'
7763 lt_prog_compiler_static='-qstaticlink'
7764 ;;
7765 *)
7766 case `$CC -V 2>&1 | sed 5q` in
7767 *Sun\ F* | *Sun*Fortran*)
7768 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7769 lt_prog_compiler_pic='-KPIC'
7770 lt_prog_compiler_static='-Bstatic'
7771 lt_prog_compiler_wl=''
7772 ;;
7773 *Sun\ C*)
7774 # Sun C 5.9
7775 lt_prog_compiler_pic='-KPIC'
7776 lt_prog_compiler_static='-Bstatic'
7777 lt_prog_compiler_wl='-Wl,'
7778 ;;
7779 esac
7780 ;;
7781 esac
7782 ;;
7783
7784 newsos6)
7785 lt_prog_compiler_pic='-KPIC'
7786 lt_prog_compiler_static='-Bstatic'
7787 ;;
7788
7789 *nto* | *qnx*)
7790 # QNX uses GNU C++, but need to define -shared option too, otherwise
7791 # it will coredump.
7792 lt_prog_compiler_pic='-fPIC -shared'
7793 ;;
7794
7795 osf3* | osf4* | osf5*)
7796 lt_prog_compiler_wl='-Wl,'
7797 # All OSF/1 code is PIC.
7798 lt_prog_compiler_static='-non_shared'
7799 ;;
7800
7801 rdos*)
7802 lt_prog_compiler_static='-non_shared'
7803 ;;
7804
7805 solaris*)
7806 lt_prog_compiler_pic='-KPIC'
7807 lt_prog_compiler_static='-Bstatic'
7808 case $cc_basename in
7809 f77* | f90* | f95*)
7810 lt_prog_compiler_wl='-Qoption ld ';;
7811 *)
7812 lt_prog_compiler_wl='-Wl,';;
7813 esac
7814 ;;
7815
7816 sunos4*)
7817 lt_prog_compiler_wl='-Qoption ld '
7818 lt_prog_compiler_pic='-PIC'
7819 lt_prog_compiler_static='-Bstatic'
7820 ;;
7821
7822 sysv4 | sysv4.2uw2* | sysv4.3*)
7823 lt_prog_compiler_wl='-Wl,'
7824 lt_prog_compiler_pic='-KPIC'
7825 lt_prog_compiler_static='-Bstatic'
7826 ;;
7827
7828 sysv4*MP*)
7829 if test -d /usr/nec ;then
7830 lt_prog_compiler_pic='-Kconform_pic'
7831 lt_prog_compiler_static='-Bstatic'
7832 fi
7833 ;;
7834
7835 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7836 lt_prog_compiler_wl='-Wl,'
7837 lt_prog_compiler_pic='-KPIC'
7838 lt_prog_compiler_static='-Bstatic'
7839 ;;
7840
7841 unicos*)
7842 lt_prog_compiler_wl='-Wl,'
7843 lt_prog_compiler_can_build_shared=no
7844 ;;
7845
7846 uts4*)
7847 lt_prog_compiler_pic='-pic'
7848 lt_prog_compiler_static='-Bstatic'
7849 ;;
7850
7851 *)
7852 lt_prog_compiler_can_build_shared=no
7853 ;;
7854 esac
7855 fi
7856
7857 case $host_os in
7858 # For platforms which do not support PIC, -DPIC is meaningless:
7859 *djgpp*)
7860 lt_prog_compiler_pic=
7861 ;;
7862 *)
7863 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7864 ;;
7865 esac
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7867 $as_echo "$lt_prog_compiler_pic" >&6; }
7868
7869
7870
7871
7872
7873
7874 #
7875 # Check to make sure the PIC flag actually works.
7876 #
7877 if test -n "$lt_prog_compiler_pic"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7879 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7880 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 lt_cv_prog_compiler_pic_works=no
7884 ac_outfile=conftest.$ac_objext
7885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7886 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7887 # Insert the option either (1) after the last *FLAGS variable, or
7888 # (2) before a word containing "conftest.", or (3) at the end.
7889 # Note that $ac_compile itself does not contain backslashes and begins
7890 # with a dollar sign (not a hyphen), so the echo should work correctly.
7891 # The option is referenced via a variable to avoid confusing sed.
7892 lt_compile=`echo "$ac_compile" | $SED \
7893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7895 -e 's:$: $lt_compiler_flag:'`
7896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7897 (eval "$lt_compile" 2>conftest.err)
7898 ac_status=$?
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 if (exit $ac_status) && test -s "$ac_outfile"; then
7902 # The compiler can only warn and ignore the option if not recognized
7903 # So say no if there are warnings other than the usual output.
7904 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7907 lt_cv_prog_compiler_pic_works=yes
7908 fi
7909 fi
7910 $RM conftest*
7911
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7914 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7915
7916 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7917 case $lt_prog_compiler_pic in
7918 "" | " "*) ;;
7919 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7920 esac
7921 else
7922 lt_prog_compiler_pic=
7923 lt_prog_compiler_can_build_shared=no
7924 fi
7925
7926 fi
7927
7928
7929
7930
7931
7932
7933 #
7934 # Check to make sure the static flag actually works.
7935 #
7936 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7938 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7939 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 lt_cv_prog_compiler_static_works=no
7943 save_LDFLAGS="$LDFLAGS"
7944 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7945 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7946 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7947 # The linker can only warn and ignore the option if not recognized
7948 # So say no if there are warnings
7949 if test -s conftest.err; then
7950 # Append any errors to the config.log.
7951 cat conftest.err 1>&5
7952 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7954 if diff conftest.exp conftest.er2 >/dev/null; then
7955 lt_cv_prog_compiler_static_works=yes
7956 fi
7957 else
7958 lt_cv_prog_compiler_static_works=yes
7959 fi
7960 fi
7961 $RM -r conftest*
7962 LDFLAGS="$save_LDFLAGS"
7963
7964 fi
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7966 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7967
7968 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7969 :
7970 else
7971 lt_prog_compiler_static=
7972 fi
7973
7974
7975
7976
7977
7978
7979
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7981 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7982 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 lt_cv_prog_compiler_c_o=no
7986 $RM -r conftest 2>/dev/null
7987 mkdir conftest
7988 cd conftest
7989 mkdir out
7990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7991
7992 lt_compiler_flag="-o out/conftest2.$ac_objext"
7993 # Insert the option either (1) after the last *FLAGS variable, or
7994 # (2) before a word containing "conftest.", or (3) at the end.
7995 # Note that $ac_compile itself does not contain backslashes and begins
7996 # with a dollar sign (not a hyphen), so the echo should work correctly.
7997 lt_compile=`echo "$ac_compile" | $SED \
7998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8000 -e 's:$: $lt_compiler_flag:'`
8001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8002 (eval "$lt_compile" 2>out/conftest.err)
8003 ac_status=$?
8004 cat out/conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8007 then
8008 # The compiler can only warn and ignore the option if not recognized
8009 # So say no if there are warnings
8010 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8011 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8012 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8013 lt_cv_prog_compiler_c_o=yes
8014 fi
8015 fi
8016 chmod u+w . 2>&5
8017 $RM conftest*
8018 # SGI C++ compiler will create directory out/ii_files/ for
8019 # template instantiation
8020 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8021 $RM out/* && rmdir out
8022 cd ..
8023 $RM -r conftest
8024 $RM conftest*
8025
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8028 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8029
8030
8031
8032
8033
8034
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8036 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8037 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 lt_cv_prog_compiler_c_o=no
8041 $RM -r conftest 2>/dev/null
8042 mkdir conftest
8043 cd conftest
8044 mkdir out
8045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8046
8047 lt_compiler_flag="-o out/conftest2.$ac_objext"
8048 # Insert the option either (1) after the last *FLAGS variable, or
8049 # (2) before a word containing "conftest.", or (3) at the end.
8050 # Note that $ac_compile itself does not contain backslashes and begins
8051 # with a dollar sign (not a hyphen), so the echo should work correctly.
8052 lt_compile=`echo "$ac_compile" | $SED \
8053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8055 -e 's:$: $lt_compiler_flag:'`
8056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8057 (eval "$lt_compile" 2>out/conftest.err)
8058 ac_status=$?
8059 cat out/conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8062 then
8063 # The compiler can only warn and ignore the option if not recognized
8064 # So say no if there are warnings
8065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8066 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8067 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8068 lt_cv_prog_compiler_c_o=yes
8069 fi
8070 fi
8071 chmod u+w . 2>&5
8072 $RM conftest*
8073 # SGI C++ compiler will create directory out/ii_files/ for
8074 # template instantiation
8075 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8076 $RM out/* && rmdir out
8077 cd ..
8078 $RM -r conftest
8079 $RM conftest*
8080
8081 fi
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8083 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8084
8085
8086
8087
8088 hard_links="nottested"
8089 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8090 # do not overwrite the value of need_locks provided by the user
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8092 $as_echo_n "checking if we can lock with hard links... " >&6; }
8093 hard_links=yes
8094 $RM conftest*
8095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8096 touch conftest.a
8097 ln conftest.a conftest.b 2>&5 || hard_links=no
8098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8100 $as_echo "$hard_links" >&6; }
8101 if test "$hard_links" = no; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8103 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8104 need_locks=warn
8105 fi
8106 else
8107 need_locks=no
8108 fi
8109
8110
8111
8112
8113
8114
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8116 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8117
8118 runpath_var=
8119 allow_undefined_flag=
8120 always_export_symbols=no
8121 archive_cmds=
8122 archive_expsym_cmds=
8123 compiler_needs_object=no
8124 enable_shared_with_static_runtimes=no
8125 export_dynamic_flag_spec=
8126 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8127 hardcode_automatic=no
8128 hardcode_direct=no
8129 hardcode_direct_absolute=no
8130 hardcode_libdir_flag_spec=
8131 hardcode_libdir_flag_spec_ld=
8132 hardcode_libdir_separator=
8133 hardcode_minus_L=no
8134 hardcode_shlibpath_var=unsupported
8135 inherit_rpath=no
8136 link_all_deplibs=unknown
8137 module_cmds=
8138 module_expsym_cmds=
8139 old_archive_from_new_cmds=
8140 old_archive_from_expsyms_cmds=
8141 thread_safe_flag_spec=
8142 whole_archive_flag_spec=
8143 # include_expsyms should be a list of space-separated symbols to be *always*
8144 # included in the symbol list
8145 include_expsyms=
8146 # exclude_expsyms can be an extended regexp of symbols to exclude
8147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8149 # as well as any symbol that contains `d'.
8150 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8152 # platforms (ab)use it in PIC code, but their linkers get confused if
8153 # the symbol is explicitly referenced. Since portable code cannot
8154 # rely on this symbol name, it's probably fine to never include it in
8155 # preloaded symbol tables.
8156 # Exclude shared library initialization/finalization symbols.
8157 extract_expsyms_cmds=
8158
8159 case $host_os in
8160 cygwin* | mingw* | pw32* | cegcc*)
8161 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8162 # When not using gcc, we currently assume that we are using
8163 # Microsoft Visual C++.
8164 if test "$GCC" != yes; then
8165 with_gnu_ld=no
8166 fi
8167 ;;
8168 interix*)
8169 # we just hope/assume this is gcc and not c89 (= MSVC++)
8170 with_gnu_ld=yes
8171 ;;
8172 openbsd*)
8173 with_gnu_ld=no
8174 ;;
8175 esac
8176
8177 ld_shlibs=yes
8178
8179 # On some targets, GNU ld is compatible enough with the native linker
8180 # that we're better off using the native interface for both.
8181 lt_use_gnu_ld_interface=no
8182 if test "$with_gnu_ld" = yes; then
8183 case $host_os in
8184 aix*)
8185 # The AIX port of GNU ld has always aspired to compatibility
8186 # with the native linker. However, as the warning in the GNU ld
8187 # block says, versions before 2.19.5* couldn't really create working
8188 # shared libraries, regardless of the interface used.
8189 case `$LD -v 2>&1` in
8190 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8191 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8192 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8193 *)
8194 lt_use_gnu_ld_interface=yes
8195 ;;
8196 esac
8197 ;;
8198 *)
8199 lt_use_gnu_ld_interface=yes
8200 ;;
8201 esac
8202 fi
8203
8204 if test "$lt_use_gnu_ld_interface" = yes; then
8205 # If archive_cmds runs LD, not CC, wlarc should be empty
8206 wlarc='${wl}'
8207
8208 # Set some defaults for GNU ld with shared library support. These
8209 # are reset later if shared libraries are not supported. Putting them
8210 # here allows them to be overridden if necessary.
8211 runpath_var=LD_RUN_PATH
8212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8213 export_dynamic_flag_spec='${wl}--export-dynamic'
8214 # ancient GNU ld didn't support --whole-archive et. al.
8215 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8216 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8217 else
8218 whole_archive_flag_spec=
8219 fi
8220 supports_anon_versioning=no
8221 case `$LD -v 2>&1` in
8222 *GNU\ gold*) supports_anon_versioning=yes ;;
8223 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8224 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8225 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8226 *\ 2.11.*) ;; # other 2.11 versions
8227 *) supports_anon_versioning=yes ;;
8228 esac
8229
8230 # See if GNU ld supports shared libraries.
8231 case $host_os in
8232 aix[3-9]*)
8233 # On AIX/PPC, the GNU linker is very broken
8234 if test "$host_cpu" != ia64; then
8235 ld_shlibs=no
8236 cat <<_LT_EOF 1>&2
8237
8238 *** Warning: the GNU linker, at least up to release 2.19, is reported
8239 *** to be unable to reliably create shared libraries on AIX.
8240 *** Therefore, libtool is disabling shared libraries support. If you
8241 *** really care for shared libraries, you may want to install binutils
8242 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8243 *** You will then need to restart the configuration process.
8244
8245 _LT_EOF
8246 fi
8247 ;;
8248
8249 amigaos*)
8250 case $host_cpu in
8251 powerpc)
8252 # see comment about AmigaOS4 .so support
8253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8254 archive_expsym_cmds=''
8255 ;;
8256 m68k)
8257 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)'
8258 hardcode_libdir_flag_spec='-L$libdir'
8259 hardcode_minus_L=yes
8260 ;;
8261 esac
8262 ;;
8263
8264 beos*)
8265 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8266 allow_undefined_flag=unsupported
8267 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8268 # support --undefined. This deserves some investigation. FIXME
8269 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8270 else
8271 ld_shlibs=no
8272 fi
8273 ;;
8274
8275 cygwin* | mingw* | pw32* | cegcc*)
8276 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8277 # as there is no search path for DLLs.
8278 hardcode_libdir_flag_spec='-L$libdir'
8279 export_dynamic_flag_spec='${wl}--export-all-symbols'
8280 allow_undefined_flag=unsupported
8281 always_export_symbols=no
8282 enable_shared_with_static_runtimes=yes
8283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8284
8285 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8287 # If the export-symbols file already is a .def file (1st line
8288 # is EXPORTS), use it as is; otherwise, prepend...
8289 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8290 cp $export_symbols $output_objdir/$soname.def;
8291 else
8292 echo EXPORTS > $output_objdir/$soname.def;
8293 cat $export_symbols >> $output_objdir/$soname.def;
8294 fi~
8295 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8296 else
8297 ld_shlibs=no
8298 fi
8299 ;;
8300
8301 haiku*)
8302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8303 link_all_deplibs=yes
8304 ;;
8305
8306 interix[3-9]*)
8307 hardcode_direct=no
8308 hardcode_shlibpath_var=no
8309 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8310 export_dynamic_flag_spec='${wl}-E'
8311 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8312 # Instead, shared libraries are loaded at an image base (0x10000000 by
8313 # default) and relocated if they conflict, which is a slow very memory
8314 # consuming and fragmenting process. To avoid this, we pick a random,
8315 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8316 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8317 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8318 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'
8319 ;;
8320
8321 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8322 tmp_diet=no
8323 if test "$host_os" = linux-dietlibc; then
8324 case $cc_basename in
8325 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8326 esac
8327 fi
8328 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8329 && test "$tmp_diet" = no
8330 then
8331 tmp_addflag=' $pic_flag'
8332 tmp_sharedflag='-shared'
8333 case $cc_basename,$host_cpu in
8334 pgcc*) # Portland Group C compiler
8335 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'
8336 tmp_addflag=' $pic_flag'
8337 ;;
8338 pgf77* | pgf90* | pgf95* | pgfortran*)
8339 # Portland Group f77 and f90 compilers
8340 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'
8341 tmp_addflag=' $pic_flag -Mnomain' ;;
8342 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8343 tmp_addflag=' -i_dynamic' ;;
8344 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8345 tmp_addflag=' -i_dynamic -nofor_main' ;;
8346 ifc* | ifort*) # Intel Fortran compiler
8347 tmp_addflag=' -nofor_main' ;;
8348 lf95*) # Lahey Fortran 8.1
8349 whole_archive_flag_spec=
8350 tmp_sharedflag='--shared' ;;
8351 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8352 tmp_sharedflag='-qmkshrobj'
8353 tmp_addflag= ;;
8354 nvcc*) # Cuda Compiler Driver 2.2
8355 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'
8356 compiler_needs_object=yes
8357 ;;
8358 esac
8359 case `$CC -V 2>&1 | sed 5q` in
8360 *Sun\ C*) # Sun C 5.9
8361 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'
8362 compiler_needs_object=yes
8363 tmp_sharedflag='-G' ;;
8364 *Sun\ F*) # Sun Fortran 8.3
8365 tmp_sharedflag='-G' ;;
8366 esac
8367 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8368
8369 if test "x$supports_anon_versioning" = xyes; then
8370 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8372 echo "local: *; };" >> $output_objdir/$libname.ver~
8373 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8374 fi
8375
8376 case $cc_basename in
8377 xlf* | bgf* | bgxlf* | mpixlf*)
8378 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8379 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8380 hardcode_libdir_flag_spec=
8381 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8382 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8383 if test "x$supports_anon_versioning" = xyes; then
8384 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8386 echo "local: *; };" >> $output_objdir/$libname.ver~
8387 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8388 fi
8389 ;;
8390 esac
8391 else
8392 ld_shlibs=no
8393 fi
8394 ;;
8395
8396 netbsd*)
8397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8398 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8399 wlarc=
8400 else
8401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8403 fi
8404 ;;
8405
8406 solaris*)
8407 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8408 ld_shlibs=no
8409 cat <<_LT_EOF 1>&2
8410
8411 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8412 *** create shared libraries on Solaris systems. Therefore, libtool
8413 *** is disabling shared libraries support. We urge you to upgrade GNU
8414 *** binutils to release 2.9.1 or newer. Another option is to modify
8415 *** your PATH or compiler configuration so that the native linker is
8416 *** used, and then restart.
8417
8418 _LT_EOF
8419 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8422 else
8423 ld_shlibs=no
8424 fi
8425 ;;
8426
8427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8428 case `$LD -v 2>&1` in
8429 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8430 ld_shlibs=no
8431 cat <<_LT_EOF 1>&2
8432
8433 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8434 *** reliably create shared libraries on SCO systems. Therefore, libtool
8435 *** is disabling shared libraries support. We urge you to upgrade GNU
8436 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8437 *** your PATH or compiler configuration so that the native linker is
8438 *** used, and then restart.
8439
8440 _LT_EOF
8441 ;;
8442 *)
8443 # For security reasons, it is highly recommended that you always
8444 # use absolute paths for naming shared libraries, and exclude the
8445 # DT_RUNPATH tag from executables and libraries. But doing so
8446 # requires that you compile everything twice, which is a pain.
8447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8450 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8451 else
8452 ld_shlibs=no
8453 fi
8454 ;;
8455 esac
8456 ;;
8457
8458 sunos4*)
8459 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8460 wlarc=
8461 hardcode_direct=yes
8462 hardcode_shlibpath_var=no
8463 ;;
8464
8465 *)
8466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8469 else
8470 ld_shlibs=no
8471 fi
8472 ;;
8473 esac
8474
8475 if test "$ld_shlibs" = no; then
8476 runpath_var=
8477 hardcode_libdir_flag_spec=
8478 export_dynamic_flag_spec=
8479 whole_archive_flag_spec=
8480 fi
8481 else
8482 # PORTME fill in a description of your system's linker (not GNU ld)
8483 case $host_os in
8484 aix3*)
8485 allow_undefined_flag=unsupported
8486 always_export_symbols=yes
8487 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'
8488 # Note: this linker hardcodes the directories in LIBPATH if there
8489 # are no directories specified by -L.
8490 hardcode_minus_L=yes
8491 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8492 # Neither direct hardcoding nor static linking is supported with a
8493 # broken collect2.
8494 hardcode_direct=unsupported
8495 fi
8496 ;;
8497
8498 aix[4-9]*)
8499 if test "$host_cpu" = ia64; then
8500 # On IA64, the linker does run time linking by default, so we don't
8501 # have to do anything special.
8502 aix_use_runtimelinking=no
8503 exp_sym_flag='-Bexport'
8504 no_entry_flag=""
8505 else
8506 # If we're using GNU nm, then we don't want the "-C" option.
8507 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8508 # Also, AIX nm treats weak defined symbols like other global
8509 # defined symbols, whereas GNU nm marks them as "W".
8510 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8511 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'
8512 else
8513 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8514 fi
8515 aix_use_runtimelinking=no
8516
8517 # Test if we are trying to use run time linking or normal
8518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8519 # need to do runtime linking.
8520 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8521 for ld_flag in $LDFLAGS; do
8522 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8523 aix_use_runtimelinking=yes
8524 break
8525 fi
8526 done
8527 ;;
8528 esac
8529
8530 exp_sym_flag='-bexport'
8531 no_entry_flag='-bnoentry'
8532 fi
8533
8534 # When large executables or shared objects are built, AIX ld can
8535 # have problems creating the table of contents. If linking a library
8536 # or program results in "error TOC overflow" add -mminimal-toc to
8537 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8538 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8539
8540 archive_cmds=''
8541 hardcode_direct=yes
8542 hardcode_direct_absolute=yes
8543 hardcode_libdir_separator=':'
8544 link_all_deplibs=yes
8545 file_list_spec='${wl}-f,'
8546
8547 if test "$GCC" = yes; then
8548 case $host_os in aix4.[012]|aix4.[012].*)
8549 # We only want to do this on AIX 4.2 and lower, the check
8550 # below for broken collect2 doesn't work under 4.3+
8551 collect2name=`${CC} -print-prog-name=collect2`
8552 if test -f "$collect2name" &&
8553 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8554 then
8555 # We have reworked collect2
8556 :
8557 else
8558 # We have old collect2
8559 hardcode_direct=unsupported
8560 # It fails to find uninstalled libraries when the uninstalled
8561 # path is not listed in the libpath. Setting hardcode_minus_L
8562 # to unsupported forces relinking
8563 hardcode_minus_L=yes
8564 hardcode_libdir_flag_spec='-L$libdir'
8565 hardcode_libdir_separator=
8566 fi
8567 ;;
8568 esac
8569 shared_flag='-shared'
8570 if test "$aix_use_runtimelinking" = yes; then
8571 shared_flag="$shared_flag "'${wl}-G'
8572 fi
8573 else
8574 # not using gcc
8575 if test "$host_cpu" = ia64; then
8576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8577 # chokes on -Wl,-G. The following line is correct:
8578 shared_flag='-G'
8579 else
8580 if test "$aix_use_runtimelinking" = yes; then
8581 shared_flag='${wl}-G'
8582 else
8583 shared_flag='${wl}-bM:SRE'
8584 fi
8585 fi
8586 fi
8587
8588 export_dynamic_flag_spec='${wl}-bexpall'
8589 # It seems that -bexpall does not export symbols beginning with
8590 # underscore (_), so it is better to generate a list of symbols to export.
8591 always_export_symbols=yes
8592 if test "$aix_use_runtimelinking" = yes; then
8593 # Warning - without using the other runtime loading flags (-brtl),
8594 # -berok will link without error, but may produce a broken library.
8595 allow_undefined_flag='-berok'
8596 # Determine the default libpath from the value encoded in an
8597 # empty executable.
8598 if test x$gcc_no_link = xyes; then
8599 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8600 fi
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8603
8604 int
8605 main ()
8606 {
8607
8608 ;
8609 return 0;
8610 }
8611 _ACEOF
8612 if ac_fn_c_try_link "$LINENO"; then :
8613
8614 lt_aix_libpath_sed='
8615 /Import File Strings/,/^$/ {
8616 /^0/ {
8617 s/^0 *\(.*\)$/\1/
8618 p
8619 }
8620 }'
8621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8622 # Check for a 64-bit object if we didn't find anything.
8623 if test -z "$aix_libpath"; then
8624 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8625 fi
8626 fi
8627 rm -f core conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8630
8631 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8632 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"
8633 else
8634 if test "$host_cpu" = ia64; then
8635 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8636 allow_undefined_flag="-z nodefs"
8637 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"
8638 else
8639 # Determine the default libpath from the value encoded in an
8640 # empty executable.
8641 if test x$gcc_no_link = xyes; then
8642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8643 fi
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8646
8647 int
8648 main ()
8649 {
8650
8651 ;
8652 return 0;
8653 }
8654 _ACEOF
8655 if ac_fn_c_try_link "$LINENO"; then :
8656
8657 lt_aix_libpath_sed='
8658 /Import File Strings/,/^$/ {
8659 /^0/ {
8660 s/^0 *\(.*\)$/\1/
8661 p
8662 }
8663 }'
8664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8665 # Check for a 64-bit object if we didn't find anything.
8666 if test -z "$aix_libpath"; then
8667 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8668 fi
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext \
8671 conftest$ac_exeext conftest.$ac_ext
8672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8673
8674 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8675 # Warning - without using the other run time loading flags,
8676 # -berok will link without error, but may produce a broken library.
8677 no_undefined_flag=' ${wl}-bernotok'
8678 allow_undefined_flag=' ${wl}-berok'
8679 if test "$with_gnu_ld" = yes; then
8680 # We only use this code for GNU lds that support --whole-archive.
8681 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8682 else
8683 # Exported symbols can be pulled into shared objects from archives
8684 whole_archive_flag_spec='$convenience'
8685 fi
8686 archive_cmds_need_lc=yes
8687 # This is similar to how AIX traditionally builds its shared libraries.
8688 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'
8689 fi
8690 fi
8691 ;;
8692
8693 amigaos*)
8694 case $host_cpu in
8695 powerpc)
8696 # see comment about AmigaOS4 .so support
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds=''
8699 ;;
8700 m68k)
8701 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)'
8702 hardcode_libdir_flag_spec='-L$libdir'
8703 hardcode_minus_L=yes
8704 ;;
8705 esac
8706 ;;
8707
8708 bsdi[45]*)
8709 export_dynamic_flag_spec=-rdynamic
8710 ;;
8711
8712 cygwin* | mingw* | pw32* | cegcc*)
8713 # When not using gcc, we currently assume that we are using
8714 # Microsoft Visual C++.
8715 # hardcode_libdir_flag_spec is actually meaningless, as there is
8716 # no search path for DLLs.
8717 hardcode_libdir_flag_spec=' '
8718 allow_undefined_flag=unsupported
8719 # Tell ltmain to make .lib files, not .a files.
8720 libext=lib
8721 # Tell ltmain to make .dll files, not .so files.
8722 shrext_cmds=".dll"
8723 # FIXME: Setting linknames here is a bad hack.
8724 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8725 # The linker will automatically build a .lib file if we build a DLL.
8726 old_archive_from_new_cmds='true'
8727 # FIXME: Should let the user specify the lib program.
8728 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8729 fix_srcfile_path='`cygpath -w "$srcfile"`'
8730 enable_shared_with_static_runtimes=yes
8731 ;;
8732
8733 darwin* | rhapsody*)
8734
8735
8736 archive_cmds_need_lc=no
8737 hardcode_direct=no
8738 hardcode_automatic=yes
8739 hardcode_shlibpath_var=unsupported
8740 if test "$lt_cv_ld_force_load" = "yes"; then
8741 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\"`'
8742 else
8743 whole_archive_flag_spec=''
8744 fi
8745 link_all_deplibs=yes
8746 allow_undefined_flag="$_lt_dar_allow_undefined"
8747 case $cc_basename in
8748 ifort*) _lt_dar_can_shared=yes ;;
8749 *) _lt_dar_can_shared=$GCC ;;
8750 esac
8751 if test "$_lt_dar_can_shared" = "yes"; then
8752 output_verbose_link_cmd=func_echo_all
8753 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8754 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8755 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}"
8756 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}"
8757
8758 else
8759 ld_shlibs=no
8760 fi
8761
8762 ;;
8763
8764 dgux*)
8765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766 hardcode_libdir_flag_spec='-L$libdir'
8767 hardcode_shlibpath_var=no
8768 ;;
8769
8770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8771 # support. Future versions do this automatically, but an explicit c++rt0.o
8772 # does not break anything, and helps significantly (at the cost of a little
8773 # extra space).
8774 freebsd2.2*)
8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8776 hardcode_libdir_flag_spec='-R$libdir'
8777 hardcode_direct=yes
8778 hardcode_shlibpath_var=no
8779 ;;
8780
8781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8782 freebsd2.*)
8783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_direct=yes
8785 hardcode_minus_L=yes
8786 hardcode_shlibpath_var=no
8787 ;;
8788
8789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8790 freebsd* | dragonfly*)
8791 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8792 hardcode_libdir_flag_spec='-R$libdir'
8793 hardcode_direct=yes
8794 hardcode_shlibpath_var=no
8795 ;;
8796
8797 hpux9*)
8798 if test "$GCC" = yes; then
8799 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'
8800 else
8801 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'
8802 fi
8803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8804 hardcode_libdir_separator=:
8805 hardcode_direct=yes
8806
8807 # hardcode_minus_L: Not really in the search PATH,
8808 # but as the default location of the library.
8809 hardcode_minus_L=yes
8810 export_dynamic_flag_spec='${wl}-E'
8811 ;;
8812
8813 hpux10*)
8814 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8815 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8816 else
8817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8818 fi
8819 if test "$with_gnu_ld" = no; then
8820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8821 hardcode_libdir_flag_spec_ld='+b $libdir'
8822 hardcode_libdir_separator=:
8823 hardcode_direct=yes
8824 hardcode_direct_absolute=yes
8825 export_dynamic_flag_spec='${wl}-E'
8826 # hardcode_minus_L: Not really in the search PATH,
8827 # but as the default location of the library.
8828 hardcode_minus_L=yes
8829 fi
8830 ;;
8831
8832 hpux11*)
8833 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8834 case $host_cpu in
8835 hppa*64*)
8836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8837 ;;
8838 ia64*)
8839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8840 ;;
8841 *)
8842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8843 ;;
8844 esac
8845 else
8846 case $host_cpu in
8847 hppa*64*)
8848 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 ;;
8850 ia64*)
8851 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8852 ;;
8853 *)
8854
8855 # Older versions of the 11.00 compiler do not understand -b yet
8856 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8858 $as_echo_n "checking if $CC understands -b... " >&6; }
8859 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 lt_cv_prog_compiler__b=no
8863 save_LDFLAGS="$LDFLAGS"
8864 LDFLAGS="$LDFLAGS -b"
8865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8867 # The linker can only warn and ignore the option if not recognized
8868 # So say no if there are warnings
8869 if test -s conftest.err; then
8870 # Append any errors to the config.log.
8871 cat conftest.err 1>&5
8872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8874 if diff conftest.exp conftest.er2 >/dev/null; then
8875 lt_cv_prog_compiler__b=yes
8876 fi
8877 else
8878 lt_cv_prog_compiler__b=yes
8879 fi
8880 fi
8881 $RM -r conftest*
8882 LDFLAGS="$save_LDFLAGS"
8883
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8886 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8887
8888 if test x"$lt_cv_prog_compiler__b" = xyes; then
8889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8890 else
8891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8892 fi
8893
8894 ;;
8895 esac
8896 fi
8897 if test "$with_gnu_ld" = no; then
8898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8899 hardcode_libdir_separator=:
8900
8901 case $host_cpu in
8902 hppa*64*|ia64*)
8903 hardcode_direct=no
8904 hardcode_shlibpath_var=no
8905 ;;
8906 *)
8907 hardcode_direct=yes
8908 hardcode_direct_absolute=yes
8909 export_dynamic_flag_spec='${wl}-E'
8910
8911 # hardcode_minus_L: Not really in the search PATH,
8912 # but as the default location of the library.
8913 hardcode_minus_L=yes
8914 ;;
8915 esac
8916 fi
8917 ;;
8918
8919 irix5* | irix6* | nonstopux*)
8920 if test "$GCC" = yes; then
8921 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'
8922 # Try to use the -exported_symbol ld option, if it does not
8923 # work, assume that -exports_file does not work either and
8924 # implicitly export all symbols.
8925 save_LDFLAGS="$LDFLAGS"
8926 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8927 if test x$gcc_no_link = xyes; then
8928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8929 fi
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 int foo(void) {}
8933 _ACEOF
8934 if ac_fn_c_try_link "$LINENO"; then :
8935 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'
8936
8937 fi
8938 rm -f core conftest.err conftest.$ac_objext \
8939 conftest$ac_exeext conftest.$ac_ext
8940 LDFLAGS="$save_LDFLAGS"
8941 else
8942 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'
8943 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'
8944 fi
8945 archive_cmds_need_lc='no'
8946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8947 hardcode_libdir_separator=:
8948 inherit_rpath=yes
8949 link_all_deplibs=yes
8950 ;;
8951
8952 netbsd*)
8953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8955 else
8956 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8957 fi
8958 hardcode_libdir_flag_spec='-R$libdir'
8959 hardcode_direct=yes
8960 hardcode_shlibpath_var=no
8961 ;;
8962
8963 newsos6)
8964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965 hardcode_direct=yes
8966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967 hardcode_libdir_separator=:
8968 hardcode_shlibpath_var=no
8969 ;;
8970
8971 *nto* | *qnx*)
8972 ;;
8973
8974 openbsd*)
8975 if test -f /usr/libexec/ld.so; then
8976 hardcode_direct=yes
8977 hardcode_shlibpath_var=no
8978 hardcode_direct_absolute=yes
8979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8981 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8983 export_dynamic_flag_spec='${wl}-E'
8984 else
8985 case $host_os in
8986 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_libdir_flag_spec='-R$libdir'
8989 ;;
8990 *)
8991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8993 ;;
8994 esac
8995 fi
8996 else
8997 ld_shlibs=no
8998 fi
8999 ;;
9000
9001 os2*)
9002 hardcode_libdir_flag_spec='-L$libdir'
9003 hardcode_minus_L=yes
9004 allow_undefined_flag=unsupported
9005 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'
9006 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9007 ;;
9008
9009 osf3*)
9010 if test "$GCC" = yes; then
9011 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9012 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'
9013 else
9014 allow_undefined_flag=' -expect_unresolved \*'
9015 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'
9016 fi
9017 archive_cmds_need_lc='no'
9018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019 hardcode_libdir_separator=:
9020 ;;
9021
9022 osf4* | osf5*) # as osf3* with the addition of -msym flag
9023 if test "$GCC" = yes; then
9024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9025 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'
9026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9027 else
9028 allow_undefined_flag=' -expect_unresolved \*'
9029 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'
9030 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~
9031 $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'
9032
9033 # Both c and cxx compiler support -rpath directly
9034 hardcode_libdir_flag_spec='-rpath $libdir'
9035 fi
9036 archive_cmds_need_lc='no'
9037 hardcode_libdir_separator=:
9038 ;;
9039
9040 solaris*)
9041 no_undefined_flag=' -z defs'
9042 if test "$GCC" = yes; then
9043 wlarc='${wl}'
9044 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9046 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9047 else
9048 case `$CC -V 2>&1` in
9049 *"Compilers 5.0"*)
9050 wlarc=''
9051 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9054 ;;
9055 *)
9056 wlarc='${wl}'
9057 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9059 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9060 ;;
9061 esac
9062 fi
9063 hardcode_libdir_flag_spec='-R$libdir'
9064 hardcode_shlibpath_var=no
9065 case $host_os in
9066 solaris2.[0-5] | solaris2.[0-5].*) ;;
9067 *)
9068 # The compiler driver will combine and reorder linker options,
9069 # but understands `-z linker_flag'. GCC discards it without `$wl',
9070 # but is careful enough not to reorder.
9071 # Supported since Solaris 2.6 (maybe 2.5.1?)
9072 if test "$GCC" = yes; then
9073 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9074 else
9075 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9076 fi
9077 ;;
9078 esac
9079 link_all_deplibs=yes
9080 ;;
9081
9082 sunos4*)
9083 if test "x$host_vendor" = xsequent; then
9084 # Use $CC to link under sequent, because it throws in some extra .o
9085 # files that make .init and .fini sections work.
9086 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9087 else
9088 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9089 fi
9090 hardcode_libdir_flag_spec='-L$libdir'
9091 hardcode_direct=yes
9092 hardcode_minus_L=yes
9093 hardcode_shlibpath_var=no
9094 ;;
9095
9096 sysv4)
9097 case $host_vendor in
9098 sni)
9099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9100 hardcode_direct=yes # is this really true???
9101 ;;
9102 siemens)
9103 ## LD is ld it makes a PLAMLIB
9104 ## CC just makes a GrossModule.
9105 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9106 reload_cmds='$CC -r -o $output$reload_objs'
9107 hardcode_direct=no
9108 ;;
9109 motorola)
9110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9112 ;;
9113 esac
9114 runpath_var='LD_RUN_PATH'
9115 hardcode_shlibpath_var=no
9116 ;;
9117
9118 sysv4.3*)
9119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120 hardcode_shlibpath_var=no
9121 export_dynamic_flag_spec='-Bexport'
9122 ;;
9123
9124 sysv4*MP*)
9125 if test -d /usr/nec; then
9126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_shlibpath_var=no
9128 runpath_var=LD_RUN_PATH
9129 hardcode_runpath_var=yes
9130 ld_shlibs=yes
9131 fi
9132 ;;
9133
9134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9135 no_undefined_flag='${wl}-z,text'
9136 archive_cmds_need_lc=no
9137 hardcode_shlibpath_var=no
9138 runpath_var='LD_RUN_PATH'
9139
9140 if test "$GCC" = yes; then
9141 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9143 else
9144 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 fi
9147 ;;
9148
9149 sysv5* | sco3.2v5* | sco5v6*)
9150 # Note: We can NOT use -z defs as we might desire, because we do not
9151 # link with -lc, and that would cause any symbols used from libc to
9152 # always be unresolved, which means just about no library would
9153 # ever link correctly. If we're not using GNU ld we use -z text
9154 # though, which does catch some bad symbols but isn't as heavy-handed
9155 # as -z defs.
9156 no_undefined_flag='${wl}-z,text'
9157 allow_undefined_flag='${wl}-z,nodefs'
9158 archive_cmds_need_lc=no
9159 hardcode_shlibpath_var=no
9160 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9161 hardcode_libdir_separator=':'
9162 link_all_deplibs=yes
9163 export_dynamic_flag_spec='${wl}-Bexport'
9164 runpath_var='LD_RUN_PATH'
9165
9166 if test "$GCC" = yes; then
9167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9168 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9169 else
9170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172 fi
9173 ;;
9174
9175 uts4*)
9176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9177 hardcode_libdir_flag_spec='-L$libdir'
9178 hardcode_shlibpath_var=no
9179 ;;
9180
9181 *)
9182 ld_shlibs=no
9183 ;;
9184 esac
9185
9186 if test x$host_vendor = xsni; then
9187 case $host in
9188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9189 export_dynamic_flag_spec='${wl}-Blargedynsym'
9190 ;;
9191 esac
9192 fi
9193 fi
9194
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9196 $as_echo "$ld_shlibs" >&6; }
9197 test "$ld_shlibs" = no && can_build_shared=no
9198
9199 with_gnu_ld=$with_gnu_ld
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215 #
9216 # Do we need to explicitly link libc?
9217 #
9218 case "x$archive_cmds_need_lc" in
9219 x|xyes)
9220 # Assume -lc should be added
9221 archive_cmds_need_lc=yes
9222
9223 if test "$enable_shared" = yes && test "$GCC" = yes; then
9224 case $archive_cmds in
9225 *'~'*)
9226 # FIXME: we may have to deal with multi-command sequences.
9227 ;;
9228 '$CC '*)
9229 # Test whether the compiler implicitly links with -lc since on some
9230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9231 # to ld, don't add -lc before -lgcc.
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9233 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9234 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 $RM conftest*
9238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9239
9240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9241 (eval $ac_compile) 2>&5
9242 ac_status=$?
9243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9244 test $ac_status = 0; } 2>conftest.err; then
9245 soname=conftest
9246 lib=conftest
9247 libobjs=conftest.$ac_objext
9248 deplibs=
9249 wl=$lt_prog_compiler_wl
9250 pic_flag=$lt_prog_compiler_pic
9251 compiler_flags=-v
9252 linker_flags=-v
9253 verstring=
9254 output_objdir=.
9255 libname=conftest
9256 lt_save_allow_undefined_flag=$allow_undefined_flag
9257 allow_undefined_flag=
9258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9259 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9260 ac_status=$?
9261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9262 test $ac_status = 0; }
9263 then
9264 lt_cv_archive_cmds_need_lc=no
9265 else
9266 lt_cv_archive_cmds_need_lc=yes
9267 fi
9268 allow_undefined_flag=$lt_save_allow_undefined_flag
9269 else
9270 cat conftest.err 1>&5
9271 fi
9272 $RM conftest*
9273
9274 fi
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9276 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9277 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9278 ;;
9279 esac
9280 fi
9281 ;;
9282 esac
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9441 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9442
9443 if test "$GCC" = yes; then
9444 case $host_os in
9445 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9446 *) lt_awk_arg="/^libraries:/" ;;
9447 esac
9448 case $host_os in
9449 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9450 *) lt_sed_strip_eq="s,=/,/,g" ;;
9451 esac
9452 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9453 case $lt_search_path_spec in
9454 *\;*)
9455 # if the path contains ";" then we assume it to be the separator
9456 # otherwise default to the standard path separator (i.e. ":") - it is
9457 # assumed that no part of a normal pathname contains ";" but that should
9458 # okay in the real world where ";" in dirpaths is itself problematic.
9459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9460 ;;
9461 *)
9462 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9463 ;;
9464 esac
9465 # Ok, now we have the path, separated by spaces, we can step through it
9466 # and add multilib dir if necessary.
9467 lt_tmp_lt_search_path_spec=
9468 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9469 for lt_sys_path in $lt_search_path_spec; do
9470 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9472 else
9473 test -d "$lt_sys_path" && \
9474 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9475 fi
9476 done
9477 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9478 BEGIN {RS=" "; FS="/|\n";} {
9479 lt_foo="";
9480 lt_count=0;
9481 for (lt_i = NF; lt_i > 0; lt_i--) {
9482 if ($lt_i != "" && $lt_i != ".") {
9483 if ($lt_i == "..") {
9484 lt_count++;
9485 } else {
9486 if (lt_count == 0) {
9487 lt_foo="/" $lt_i lt_foo;
9488 } else {
9489 lt_count--;
9490 }
9491 }
9492 }
9493 }
9494 if (lt_foo != "") { lt_freq[lt_foo]++; }
9495 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9496 }'`
9497 # AWK program above erroneously prepends '/' to C:/dos/paths
9498 # for these hosts.
9499 case $host_os in
9500 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9501 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9502 esac
9503 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9504 else
9505 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9506 fi
9507 library_names_spec=
9508 libname_spec='lib$name'
9509 soname_spec=
9510 shrext_cmds=".so"
9511 postinstall_cmds=
9512 postuninstall_cmds=
9513 finish_cmds=
9514 finish_eval=
9515 shlibpath_var=
9516 shlibpath_overrides_runpath=unknown
9517 version_type=none
9518 dynamic_linker="$host_os ld.so"
9519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9520 need_lib_prefix=unknown
9521 hardcode_into_libs=no
9522
9523 # when you set need_version to no, make sure it does not cause -set_version
9524 # flags to be left without arguments
9525 need_version=unknown
9526
9527 case $host_os in
9528 aix3*)
9529 version_type=linux
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9531 shlibpath_var=LIBPATH
9532
9533 # AIX 3 has no versioning support, so we append a major version to the name.
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 ;;
9536
9537 aix[4-9]*)
9538 version_type=linux
9539 need_lib_prefix=no
9540 need_version=no
9541 hardcode_into_libs=yes
9542 if test "$host_cpu" = ia64; then
9543 # AIX 5 supports IA64
9544 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9545 shlibpath_var=LD_LIBRARY_PATH
9546 else
9547 # With GCC up to 2.95.x, collect2 would create an import file
9548 # for dependence libraries. The import file would start with
9549 # the line `#! .'. This would cause the generated library to
9550 # depend on `.', always an invalid library. This was fixed in
9551 # development snapshots of GCC prior to 3.0.
9552 case $host_os in
9553 aix4 | aix4.[01] | aix4.[01].*)
9554 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9555 echo ' yes '
9556 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9557 :
9558 else
9559 can_build_shared=no
9560 fi
9561 ;;
9562 esac
9563 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9564 # soname into executable. Probably we can add versioning support to
9565 # collect2, so additional links can be useful in future.
9566 if test "$aix_use_runtimelinking" = yes; then
9567 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9568 # instead of lib<name>.a to let people know that these are not
9569 # typical AIX shared libraries.
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 else
9572 # We preserve .a as extension for shared libraries through AIX4.2
9573 # and later when we are not doing run time linking.
9574 library_names_spec='${libname}${release}.a $libname.a'
9575 soname_spec='${libname}${release}${shared_ext}$major'
9576 fi
9577 shlibpath_var=LIBPATH
9578 fi
9579 ;;
9580
9581 amigaos*)
9582 case $host_cpu in
9583 powerpc)
9584 # Since July 2007 AmigaOS4 officially supports .so libraries.
9585 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9587 ;;
9588 m68k)
9589 library_names_spec='$libname.ixlibrary $libname.a'
9590 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9591 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'
9592 ;;
9593 esac
9594 ;;
9595
9596 beos*)
9597 library_names_spec='${libname}${shared_ext}'
9598 dynamic_linker="$host_os ld.so"
9599 shlibpath_var=LIBRARY_PATH
9600 ;;
9601
9602 bsdi[45]*)
9603 version_type=linux
9604 need_version=no
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606 soname_spec='${libname}${release}${shared_ext}$major'
9607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9611 # the default ld.so.conf also contains /usr/contrib/lib and
9612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9613 # libtool to hard-code these into programs
9614 ;;
9615
9616 cygwin* | mingw* | pw32* | cegcc*)
9617 version_type=windows
9618 shrext_cmds=".dll"
9619 need_version=no
9620 need_lib_prefix=no
9621
9622 case $GCC,$host_os in
9623 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9624 library_names_spec='$libname.dll.a'
9625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9626 postinstall_cmds='base_file=`basename \${file}`~
9627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9628 dldir=$destdir/`dirname \$dlpath`~
9629 test -d \$dldir || mkdir -p \$dldir~
9630 $install_prog $dir/$dlname \$dldir/$dlname~
9631 chmod a+x \$dldir/$dlname~
9632 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9633 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9634 fi'
9635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9636 dlpath=$dir/\$dldll~
9637 $RM \$dlpath'
9638 shlibpath_overrides_runpath=yes
9639
9640 case $host_os in
9641 cygwin*)
9642 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9643 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9644
9645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9646 ;;
9647 mingw* | cegcc*)
9648 # MinGW DLLs use traditional 'lib' prefix
9649 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9650 ;;
9651 pw32*)
9652 # pw32 DLLs use 'pw' prefix rather than 'lib'
9653 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9654 ;;
9655 esac
9656 ;;
9657
9658 *)
9659 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9660 ;;
9661 esac
9662 dynamic_linker='Win32 ld.exe'
9663 # FIXME: first we should search . and the directory the executable is in
9664 shlibpath_var=PATH
9665 ;;
9666
9667 darwin* | rhapsody*)
9668 dynamic_linker="$host_os dyld"
9669 version_type=darwin
9670 need_lib_prefix=no
9671 need_version=no
9672 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9673 soname_spec='${libname}${release}${major}$shared_ext'
9674 shlibpath_overrides_runpath=yes
9675 shlibpath_var=DYLD_LIBRARY_PATH
9676 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9677
9678 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9680 ;;
9681
9682 dgux*)
9683 version_type=linux
9684 need_lib_prefix=no
9685 need_version=no
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 ;;
9690
9691 freebsd* | dragonfly*)
9692 # DragonFly does not have aout. When/if they implement a new
9693 # versioning mechanism, adjust this.
9694 if test -x /usr/bin/objformat; then
9695 objformat=`/usr/bin/objformat`
9696 else
9697 case $host_os in
9698 freebsd[23].*) objformat=aout ;;
9699 *) objformat=elf ;;
9700 esac
9701 fi
9702 version_type=freebsd-$objformat
9703 case $version_type in
9704 freebsd-elf*)
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9706 need_version=no
9707 need_lib_prefix=no
9708 ;;
9709 freebsd-*)
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9711 need_version=yes
9712 ;;
9713 esac
9714 shlibpath_var=LD_LIBRARY_PATH
9715 case $host_os in
9716 freebsd2.*)
9717 shlibpath_overrides_runpath=yes
9718 ;;
9719 freebsd3.[01]* | freebsdelf3.[01]*)
9720 shlibpath_overrides_runpath=yes
9721 hardcode_into_libs=yes
9722 ;;
9723 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9724 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9725 shlibpath_overrides_runpath=no
9726 hardcode_into_libs=yes
9727 ;;
9728 *) # from 4.6 on, and DragonFly
9729 shlibpath_overrides_runpath=yes
9730 hardcode_into_libs=yes
9731 ;;
9732 esac
9733 ;;
9734
9735 gnu*)
9736 version_type=linux
9737 need_lib_prefix=no
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 hardcode_into_libs=yes
9743 ;;
9744
9745 haiku*)
9746 version_type=linux
9747 need_lib_prefix=no
9748 need_version=no
9749 dynamic_linker="$host_os runtime_loader"
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 shlibpath_var=LIBRARY_PATH
9753 shlibpath_overrides_runpath=yes
9754 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9755 hardcode_into_libs=yes
9756 ;;
9757
9758 hpux9* | hpux10* | hpux11*)
9759 # Give a soname corresponding to the major version so that dld.sl refuses to
9760 # link against other versions.
9761 version_type=sunos
9762 need_lib_prefix=no
9763 need_version=no
9764 case $host_cpu in
9765 ia64*)
9766 shrext_cmds='.so'
9767 hardcode_into_libs=yes
9768 dynamic_linker="$host_os dld.so"
9769 shlibpath_var=LD_LIBRARY_PATH
9770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772 soname_spec='${libname}${release}${shared_ext}$major'
9773 if test "X$HPUX_IA64_MODE" = X32; then
9774 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9775 else
9776 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9777 fi
9778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9779 ;;
9780 hppa*64*)
9781 shrext_cmds='.sl'
9782 hardcode_into_libs=yes
9783 dynamic_linker="$host_os dld.sl"
9784 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9790 ;;
9791 *)
9792 shrext_cmds='.sl'
9793 dynamic_linker="$host_os dld.sl"
9794 shlibpath_var=SHLIB_PATH
9795 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 ;;
9799 esac
9800 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9801 postinstall_cmds='chmod 555 $lib'
9802 # or fails outright, so override atomically:
9803 install_override_mode=555
9804 ;;
9805
9806 interix[3-9]*)
9807 version_type=linux
9808 need_lib_prefix=no
9809 need_version=no
9810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9811 soname_spec='${libname}${release}${shared_ext}$major'
9812 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9813 shlibpath_var=LD_LIBRARY_PATH
9814 shlibpath_overrides_runpath=no
9815 hardcode_into_libs=yes
9816 ;;
9817
9818 irix5* | irix6* | nonstopux*)
9819 case $host_os in
9820 nonstopux*) version_type=nonstopux ;;
9821 *)
9822 if test "$lt_cv_prog_gnu_ld" = yes; then
9823 version_type=linux
9824 else
9825 version_type=irix
9826 fi ;;
9827 esac
9828 need_lib_prefix=no
9829 need_version=no
9830 soname_spec='${libname}${release}${shared_ext}$major'
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9832 case $host_os in
9833 irix5* | nonstopux*)
9834 libsuff= shlibsuff=
9835 ;;
9836 *)
9837 case $LD in # libtool.m4 will add one of these switches to LD
9838 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9839 libsuff= shlibsuff= libmagic=32-bit;;
9840 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9841 libsuff=32 shlibsuff=N32 libmagic=N32;;
9842 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9843 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9844 *) libsuff= shlibsuff= libmagic=never-match;;
9845 esac
9846 ;;
9847 esac
9848 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9849 shlibpath_overrides_runpath=no
9850 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9851 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9852 hardcode_into_libs=yes
9853 ;;
9854
9855 # No shared lib support for Linux oldld, aout, or coff.
9856 linux*oldld* | linux*aout* | linux*coff*)
9857 dynamic_linker=no
9858 ;;
9859
9860 # This must be Linux ELF.
9861 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9862 version_type=linux
9863 need_lib_prefix=no
9864 need_version=no
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 shlibpath_overrides_runpath=no
9870
9871 # Some binutils ld are patched to set DT_RUNPATH
9872 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9873 $as_echo_n "(cached) " >&6
9874 else
9875 lt_cv_shlibpath_overrides_runpath=no
9876 save_LDFLAGS=$LDFLAGS
9877 save_libdir=$libdir
9878 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9879 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9880 if test x$gcc_no_link = xyes; then
9881 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9882 fi
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885
9886 int
9887 main ()
9888 {
9889
9890 ;
9891 return 0;
9892 }
9893 _ACEOF
9894 if ac_fn_c_try_link "$LINENO"; then :
9895 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9896 lt_cv_shlibpath_overrides_runpath=yes
9897 fi
9898 fi
9899 rm -f core conftest.err conftest.$ac_objext \
9900 conftest$ac_exeext conftest.$ac_ext
9901 LDFLAGS=$save_LDFLAGS
9902 libdir=$save_libdir
9903
9904 fi
9905
9906 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9907
9908 # This implies no fast_install, which is unacceptable.
9909 # Some rework will be needed to allow for fast_install
9910 # before this can be enabled.
9911 hardcode_into_libs=yes
9912
9913 # Append ld.so.conf contents to the search path
9914 if test -f /etc/ld.so.conf; then
9915 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' ' '`
9916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9917 fi
9918
9919 # We used to test for /lib/ld.so.1 and disable shared libraries on
9920 # powerpc, because MkLinux only supported shared libraries with the
9921 # GNU dynamic linker. Since this was broken with cross compilers,
9922 # most powerpc-linux boxes support dynamic linking these days and
9923 # people can always --disable-shared, the test was removed, and we
9924 # assume the GNU/Linux dynamic linker is in use.
9925 dynamic_linker='GNU/Linux ld.so'
9926 ;;
9927
9928 netbsd*)
9929 version_type=sunos
9930 need_lib_prefix=no
9931 need_version=no
9932 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9935 dynamic_linker='NetBSD (a.out) ld.so'
9936 else
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9938 soname_spec='${libname}${release}${shared_ext}$major'
9939 dynamic_linker='NetBSD ld.elf_so'
9940 fi
9941 shlibpath_var=LD_LIBRARY_PATH
9942 shlibpath_overrides_runpath=yes
9943 hardcode_into_libs=yes
9944 ;;
9945
9946 newsos6)
9947 version_type=linux
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 shlibpath_overrides_runpath=yes
9951 ;;
9952
9953 *nto* | *qnx*)
9954 version_type=qnx
9955 need_lib_prefix=no
9956 need_version=no
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 shlibpath_overrides_runpath=no
9961 hardcode_into_libs=yes
9962 dynamic_linker='ldqnx.so'
9963 ;;
9964
9965 openbsd*)
9966 version_type=sunos
9967 sys_lib_dlsearch_path_spec="/usr/lib"
9968 need_lib_prefix=no
9969 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9970 case $host_os in
9971 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9972 *) need_version=no ;;
9973 esac
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9978 case $host_os in
9979 openbsd2.[89] | openbsd2.[89].*)
9980 shlibpath_overrides_runpath=no
9981 ;;
9982 *)
9983 shlibpath_overrides_runpath=yes
9984 ;;
9985 esac
9986 else
9987 shlibpath_overrides_runpath=yes
9988 fi
9989 ;;
9990
9991 os2*)
9992 libname_spec='$name'
9993 shrext_cmds=".dll"
9994 need_lib_prefix=no
9995 library_names_spec='$libname${shared_ext} $libname.a'
9996 dynamic_linker='OS/2 ld.exe'
9997 shlibpath_var=LIBPATH
9998 ;;
9999
10000 osf3* | osf4* | osf5*)
10001 version_type=osf
10002 need_lib_prefix=no
10003 need_version=no
10004 soname_spec='${libname}${release}${shared_ext}$major'
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10008 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10009 ;;
10010
10011 rdos*)
10012 dynamic_linker=no
10013 ;;
10014
10015 solaris*)
10016 version_type=linux
10017 need_lib_prefix=no
10018 need_version=no
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 shlibpath_overrides_runpath=yes
10023 hardcode_into_libs=yes
10024 # ldd complains unless libraries are executable
10025 postinstall_cmds='chmod +x $lib'
10026 ;;
10027
10028 sunos4*)
10029 version_type=sunos
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=yes
10034 if test "$with_gnu_ld" = yes; then
10035 need_lib_prefix=no
10036 fi
10037 need_version=yes
10038 ;;
10039
10040 sysv4 | sysv4.3*)
10041 version_type=linux
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 case $host_vendor in
10046 sni)
10047 shlibpath_overrides_runpath=no
10048 need_lib_prefix=no
10049 runpath_var=LD_RUN_PATH
10050 ;;
10051 siemens)
10052 need_lib_prefix=no
10053 ;;
10054 motorola)
10055 need_lib_prefix=no
10056 need_version=no
10057 shlibpath_overrides_runpath=no
10058 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10059 ;;
10060 esac
10061 ;;
10062
10063 sysv4*MP*)
10064 if test -d /usr/nec ;then
10065 version_type=linux
10066 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10067 soname_spec='$libname${shared_ext}.$major'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 fi
10070 ;;
10071
10072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10073 version_type=freebsd-elf
10074 need_lib_prefix=no
10075 need_version=no
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 shlibpath_var=LD_LIBRARY_PATH
10079 shlibpath_overrides_runpath=yes
10080 hardcode_into_libs=yes
10081 if test "$with_gnu_ld" = yes; then
10082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10083 else
10084 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10085 case $host_os in
10086 sco3.2v5*)
10087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10088 ;;
10089 esac
10090 fi
10091 sys_lib_dlsearch_path_spec='/usr/lib'
10092 ;;
10093
10094 tpf*)
10095 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10096 version_type=linux
10097 need_lib_prefix=no
10098 need_version=no
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 shlibpath_overrides_runpath=no
10102 hardcode_into_libs=yes
10103 ;;
10104
10105 uts4*)
10106 version_type=linux
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 ;;
10111
10112 *)
10113 dynamic_linker=no
10114 ;;
10115 esac
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10117 $as_echo "$dynamic_linker" >&6; }
10118 test "$dynamic_linker" = no && can_build_shared=no
10119
10120 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10121 if test "$GCC" = yes; then
10122 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10123 fi
10124
10125 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10126 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10127 fi
10128 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10129 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10130 fi
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10224 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10225 hardcode_action=
10226 if test -n "$hardcode_libdir_flag_spec" ||
10227 test -n "$runpath_var" ||
10228 test "X$hardcode_automatic" = "Xyes" ; then
10229
10230 # We can hardcode non-existent directories.
10231 if test "$hardcode_direct" != no &&
10232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10233 # have to relink, otherwise we might link with an installed library
10234 # when we should be linking with a yet-to-be-installed one
10235 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10236 test "$hardcode_minus_L" != no; then
10237 # Linking always hardcodes the temporary library directory.
10238 hardcode_action=relink
10239 else
10240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10241 hardcode_action=immediate
10242 fi
10243 else
10244 # We cannot hardcode anything, or else we can only hardcode existing
10245 # directories.
10246 hardcode_action=unsupported
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10249 $as_echo "$hardcode_action" >&6; }
10250
10251 if test "$hardcode_action" = relink ||
10252 test "$inherit_rpath" = yes; then
10253 # Fast installation is not supported
10254 enable_fast_install=no
10255 elif test "$shlibpath_overrides_runpath" = yes ||
10256 test "$enable_shared" = no; then
10257 # Fast installation is not necessary
10258 enable_fast_install=needless
10259 fi
10260
10261
10262
10263
10264
10265
10266 if test "x$enable_dlopen" != xyes; then
10267 enable_dlopen=unknown
10268 enable_dlopen_self=unknown
10269 enable_dlopen_self_static=unknown
10270 else
10271 lt_cv_dlopen=no
10272 lt_cv_dlopen_libs=
10273
10274 case $host_os in
10275 beos*)
10276 lt_cv_dlopen="load_add_on"
10277 lt_cv_dlopen_libs=
10278 lt_cv_dlopen_self=yes
10279 ;;
10280
10281 mingw* | pw32* | cegcc*)
10282 lt_cv_dlopen="LoadLibrary"
10283 lt_cv_dlopen_libs=
10284 ;;
10285
10286 cygwin*)
10287 lt_cv_dlopen="dlopen"
10288 lt_cv_dlopen_libs=
10289 ;;
10290
10291 darwin*)
10292 # if libdl is installed we need to link against it
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10294 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10295 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 ac_check_lib_save_LIBS=$LIBS
10299 LIBS="-ldl $LIBS"
10300 if test x$gcc_no_link = xyes; then
10301 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10302 fi
10303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10305
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10309 #ifdef __cplusplus
10310 extern "C"
10311 #endif
10312 char dlopen ();
10313 int
10314 main ()
10315 {
10316 return dlopen ();
10317 ;
10318 return 0;
10319 }
10320 _ACEOF
10321 if ac_fn_c_try_link "$LINENO"; then :
10322 ac_cv_lib_dl_dlopen=yes
10323 else
10324 ac_cv_lib_dl_dlopen=no
10325 fi
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328 LIBS=$ac_check_lib_save_LIBS
10329 fi
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10331 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10332 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10334 else
10335
10336 lt_cv_dlopen="dyld"
10337 lt_cv_dlopen_libs=
10338 lt_cv_dlopen_self=yes
10339
10340 fi
10341
10342 ;;
10343
10344 *)
10345 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10346 if test "x$ac_cv_func_shl_load" = x""yes; then :
10347 lt_cv_dlopen="shl_load"
10348 else
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10350 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10351 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 ac_check_lib_save_LIBS=$LIBS
10355 LIBS="-ldld $LIBS"
10356 if test x$gcc_no_link = xyes; then
10357 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10358 fi
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361
10362 /* Override any GCC internal prototype to avoid an error.
10363 Use char because int might match the return type of a GCC
10364 builtin and then its argument prototype would still apply. */
10365 #ifdef __cplusplus
10366 extern "C"
10367 #endif
10368 char shl_load ();
10369 int
10370 main ()
10371 {
10372 return shl_load ();
10373 ;
10374 return 0;
10375 }
10376 _ACEOF
10377 if ac_fn_c_try_link "$LINENO"; then :
10378 ac_cv_lib_dld_shl_load=yes
10379 else
10380 ac_cv_lib_dld_shl_load=no
10381 fi
10382 rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10385 fi
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10387 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10388 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10389 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10390 else
10391 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10392 if test "x$ac_cv_func_dlopen" = x""yes; then :
10393 lt_cv_dlopen="dlopen"
10394 else
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10396 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10397 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 ac_check_lib_save_LIBS=$LIBS
10401 LIBS="-ldl $LIBS"
10402 if test x$gcc_no_link = xyes; then
10403 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10404 fi
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10407
10408 /* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10411 #ifdef __cplusplus
10412 extern "C"
10413 #endif
10414 char dlopen ();
10415 int
10416 main ()
10417 {
10418 return dlopen ();
10419 ;
10420 return 0;
10421 }
10422 _ACEOF
10423 if ac_fn_c_try_link "$LINENO"; then :
10424 ac_cv_lib_dl_dlopen=yes
10425 else
10426 ac_cv_lib_dl_dlopen=no
10427 fi
10428 rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10430 LIBS=$ac_check_lib_save_LIBS
10431 fi
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10433 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10434 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10435 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10438 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10439 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 ac_check_lib_save_LIBS=$LIBS
10443 LIBS="-lsvld $LIBS"
10444 if test x$gcc_no_link = xyes; then
10445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10446 fi
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10449
10450 /* Override any GCC internal prototype to avoid an error.
10451 Use char because int might match the return type of a GCC
10452 builtin and then its argument prototype would still apply. */
10453 #ifdef __cplusplus
10454 extern "C"
10455 #endif
10456 char dlopen ();
10457 int
10458 main ()
10459 {
10460 return dlopen ();
10461 ;
10462 return 0;
10463 }
10464 _ACEOF
10465 if ac_fn_c_try_link "$LINENO"; then :
10466 ac_cv_lib_svld_dlopen=yes
10467 else
10468 ac_cv_lib_svld_dlopen=no
10469 fi
10470 rm -f core conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10472 LIBS=$ac_check_lib_save_LIBS
10473 fi
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10475 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10476 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10478 else
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10480 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10481 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 ac_check_lib_save_LIBS=$LIBS
10485 LIBS="-ldld $LIBS"
10486 if test x$gcc_no_link = xyes; then
10487 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10488 fi
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 char dld_link ();
10499 int
10500 main ()
10501 {
10502 return dld_link ();
10503 ;
10504 return 0;
10505 }
10506 _ACEOF
10507 if ac_fn_c_try_link "$LINENO"; then :
10508 ac_cv_lib_dld_dld_link=yes
10509 else
10510 ac_cv_lib_dld_dld_link=no
10511 fi
10512 rm -f core conftest.err conftest.$ac_objext \
10513 conftest$ac_exeext conftest.$ac_ext
10514 LIBS=$ac_check_lib_save_LIBS
10515 fi
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10517 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10518 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10520 fi
10521
10522
10523 fi
10524
10525
10526 fi
10527
10528
10529 fi
10530
10531
10532 fi
10533
10534
10535 fi
10536
10537 ;;
10538 esac
10539
10540 if test "x$lt_cv_dlopen" != xno; then
10541 enable_dlopen=yes
10542 else
10543 enable_dlopen=no
10544 fi
10545
10546 case $lt_cv_dlopen in
10547 dlopen)
10548 save_CPPFLAGS="$CPPFLAGS"
10549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10550
10551 save_LDFLAGS="$LDFLAGS"
10552 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10553
10554 save_LIBS="$LIBS"
10555 LIBS="$lt_cv_dlopen_libs $LIBS"
10556
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10558 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10559 if test "${lt_cv_dlopen_self+set}" = set; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 if test "$cross_compiling" = yes; then :
10563 lt_cv_dlopen_self=cross
10564 else
10565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10566 lt_status=$lt_dlunknown
10567 cat > conftest.$ac_ext <<_LT_EOF
10568 #line 10568 "configure"
10569 #include "confdefs.h"
10570
10571 #if HAVE_DLFCN_H
10572 #include <dlfcn.h>
10573 #endif
10574
10575 #include <stdio.h>
10576
10577 #ifdef RTLD_GLOBAL
10578 # define LT_DLGLOBAL RTLD_GLOBAL
10579 #else
10580 # ifdef DL_GLOBAL
10581 # define LT_DLGLOBAL DL_GLOBAL
10582 # else
10583 # define LT_DLGLOBAL 0
10584 # endif
10585 #endif
10586
10587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10588 find out it does not work in some platform. */
10589 #ifndef LT_DLLAZY_OR_NOW
10590 # ifdef RTLD_LAZY
10591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10592 # else
10593 # ifdef DL_LAZY
10594 # define LT_DLLAZY_OR_NOW DL_LAZY
10595 # else
10596 # ifdef RTLD_NOW
10597 # define LT_DLLAZY_OR_NOW RTLD_NOW
10598 # else
10599 # ifdef DL_NOW
10600 # define LT_DLLAZY_OR_NOW DL_NOW
10601 # else
10602 # define LT_DLLAZY_OR_NOW 0
10603 # endif
10604 # endif
10605 # endif
10606 # endif
10607 #endif
10608
10609 /* When -fvisbility=hidden is used, assume the code has been annotated
10610 correspondingly for the symbols needed. */
10611 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10612 void fnord () __attribute__((visibility("default")));
10613 #endif
10614
10615 void fnord () { int i=42; }
10616 int main ()
10617 {
10618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10619 int status = $lt_dlunknown;
10620
10621 if (self)
10622 {
10623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10624 else
10625 {
10626 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10627 else puts (dlerror ());
10628 }
10629 /* dlclose (self); */
10630 }
10631 else
10632 puts (dlerror ());
10633
10634 return status;
10635 }
10636 _LT_EOF
10637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10638 (eval $ac_link) 2>&5
10639 ac_status=$?
10640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10641 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10642 (./conftest; exit; ) >&5 2>/dev/null
10643 lt_status=$?
10644 case x$lt_status in
10645 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10646 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10647 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10648 esac
10649 else :
10650 # compilation failed
10651 lt_cv_dlopen_self=no
10652 fi
10653 fi
10654 rm -fr conftest*
10655
10656
10657 fi
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10659 $as_echo "$lt_cv_dlopen_self" >&6; }
10660
10661 if test "x$lt_cv_dlopen_self" = xyes; then
10662 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10664 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10665 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 if test "$cross_compiling" = yes; then :
10669 lt_cv_dlopen_self_static=cross
10670 else
10671 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10672 lt_status=$lt_dlunknown
10673 cat > conftest.$ac_ext <<_LT_EOF
10674 #line 10674 "configure"
10675 #include "confdefs.h"
10676
10677 #if HAVE_DLFCN_H
10678 #include <dlfcn.h>
10679 #endif
10680
10681 #include <stdio.h>
10682
10683 #ifdef RTLD_GLOBAL
10684 # define LT_DLGLOBAL RTLD_GLOBAL
10685 #else
10686 # ifdef DL_GLOBAL
10687 # define LT_DLGLOBAL DL_GLOBAL
10688 # else
10689 # define LT_DLGLOBAL 0
10690 # endif
10691 #endif
10692
10693 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10694 find out it does not work in some platform. */
10695 #ifndef LT_DLLAZY_OR_NOW
10696 # ifdef RTLD_LAZY
10697 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10698 # else
10699 # ifdef DL_LAZY
10700 # define LT_DLLAZY_OR_NOW DL_LAZY
10701 # else
10702 # ifdef RTLD_NOW
10703 # define LT_DLLAZY_OR_NOW RTLD_NOW
10704 # else
10705 # ifdef DL_NOW
10706 # define LT_DLLAZY_OR_NOW DL_NOW
10707 # else
10708 # define LT_DLLAZY_OR_NOW 0
10709 # endif
10710 # endif
10711 # endif
10712 # endif
10713 #endif
10714
10715 /* When -fvisbility=hidden is used, assume the code has been annotated
10716 correspondingly for the symbols needed. */
10717 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10718 void fnord () __attribute__((visibility("default")));
10719 #endif
10720
10721 void fnord () { int i=42; }
10722 int main ()
10723 {
10724 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10725 int status = $lt_dlunknown;
10726
10727 if (self)
10728 {
10729 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10730 else
10731 {
10732 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10733 else puts (dlerror ());
10734 }
10735 /* dlclose (self); */
10736 }
10737 else
10738 puts (dlerror ());
10739
10740 return status;
10741 }
10742 _LT_EOF
10743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10744 (eval $ac_link) 2>&5
10745 ac_status=$?
10746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10747 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10748 (./conftest; exit; ) >&5 2>/dev/null
10749 lt_status=$?
10750 case x$lt_status in
10751 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10752 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10753 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10754 esac
10755 else :
10756 # compilation failed
10757 lt_cv_dlopen_self_static=no
10758 fi
10759 fi
10760 rm -fr conftest*
10761
10762
10763 fi
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10765 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10766 fi
10767
10768 CPPFLAGS="$save_CPPFLAGS"
10769 LDFLAGS="$save_LDFLAGS"
10770 LIBS="$save_LIBS"
10771 ;;
10772 esac
10773
10774 case $lt_cv_dlopen_self in
10775 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10776 *) enable_dlopen_self=unknown ;;
10777 esac
10778
10779 case $lt_cv_dlopen_self_static in
10780 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10781 *) enable_dlopen_self_static=unknown ;;
10782 esac
10783 fi
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801 striplib=
10802 old_striplib=
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10804 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10805 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10806 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10807 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809 $as_echo "yes" >&6; }
10810 else
10811 # FIXME - insert some real tests, host_os isn't really good enough
10812 case $host_os in
10813 darwin*)
10814 if test -n "$STRIP" ; then
10815 striplib="$STRIP -x"
10816 old_striplib="$STRIP -S"
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10818 $as_echo "yes" >&6; }
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10822 fi
10823 ;;
10824 *)
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10827 ;;
10828 esac
10829 fi
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842 # Report which library types will actually be built
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10844 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10846 $as_echo "$can_build_shared" >&6; }
10847
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10849 $as_echo_n "checking whether to build shared libraries... " >&6; }
10850 test "$can_build_shared" = "no" && enable_shared=no
10851
10852 # On AIX, shared libraries and static libraries use the same namespace, and
10853 # are all built from PIC.
10854 case $host_os in
10855 aix3*)
10856 test "$enable_shared" = yes && enable_static=no
10857 if test -n "$RANLIB"; then
10858 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10859 postinstall_cmds='$RANLIB $lib'
10860 fi
10861 ;;
10862
10863 aix[4-9]*)
10864 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10865 test "$enable_shared" = yes && enable_static=no
10866 fi
10867 ;;
10868 esac
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10870 $as_echo "$enable_shared" >&6; }
10871
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10873 $as_echo_n "checking whether to build static libraries... " >&6; }
10874 # Make sure either enable_shared or enable_static is yes.
10875 test "$enable_shared" = yes || enable_static=yes
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10877 $as_echo "$enable_static" >&6; }
10878
10879
10880
10881
10882 fi
10883 ac_ext=c
10884 ac_cpp='$CPP $CPPFLAGS'
10885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10888
10889 CC="$lt_save_CC"
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903 ac_config_commands="$ac_config_commands libtool"
10904
10905
10906
10907
10908 # Only expand once:
10909
10910
10911
10912
10913
10914 case $host in
10915 *-cygwin* | *-mingw*)
10916 # 'host' will be top-level target in the case of a target lib,
10917 # we must compare to with_cross_host to decide if this is a native
10918 # or cross-compiler and select where to install dlls appropriately.
10919 if test -n "$with_cross_host" &&
10920 test x"$with_cross_host" != x"no"; then
10921 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10922 else
10923 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10924 fi
10925 ;;
10926 *)
10927 lt_host_flags=
10928 ;;
10929 esac
10930
10931
10932
10933
10934
10935
10936
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10938 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10939 # Check whether --enable-maintainer-mode was given.
10940 if test "${enable_maintainer_mode+set}" = set; then :
10941 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10942 else
10943 USE_MAINTAINER_MODE=no
10944 fi
10945
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10947 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10948 if test $USE_MAINTAINER_MODE = yes; then
10949 MAINTAINER_MODE_TRUE=
10950 MAINTAINER_MODE_FALSE='#'
10951 else
10952 MAINTAINER_MODE_TRUE='#'
10953 MAINTAINER_MODE_FALSE=
10954 fi
10955
10956 MAINT=$MAINTAINER_MODE_TRUE
10957
10958
10959
10960 ac_ext=c
10961 ac_cpp='$CPP $CPPFLAGS'
10962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10965
10966 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
10967 # We must force CC to /not/ be precious variables; otherwise
10968 # the wrong, non-multilib-adjusted value will be used in multilibs.
10969 # As a side effect, we have to subst CFLAGS ourselves.
10970
10971
10972
10973 ac_ext=c
10974 ac_cpp='$CPP $CPPFLAGS'
10975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10978 if test -n "$ac_tool_prefix"; then
10979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10982 $as_echo_n "checking for $ac_word... " >&6; }
10983 if test "${ac_cv_prog_CC+set}" = set; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 if test -n "$CC"; then
10987 ac_cv_prog_CC="$CC" # Let the user override the test.
10988 else
10989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990 for as_dir in $PATH
10991 do
10992 IFS=$as_save_IFS
10993 test -z "$as_dir" && as_dir=.
10994 for ac_exec_ext in '' $ac_executable_extensions; do
10995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10996 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10998 break 2
10999 fi
11000 done
11001 done
11002 IFS=$as_save_IFS
11003
11004 fi
11005 fi
11006 CC=$ac_cv_prog_CC
11007 if test -n "$CC"; then
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11009 $as_echo "$CC" >&6; }
11010 else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 $as_echo "no" >&6; }
11013 fi
11014
11015
11016 fi
11017 if test -z "$ac_cv_prog_CC"; then
11018 ac_ct_CC=$CC
11019 # Extract the first word of "gcc", so it can be a program name with args.
11020 set dummy gcc; ac_word=$2
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022 $as_echo_n "checking for $ac_word... " >&6; }
11023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 if test -n "$ac_ct_CC"; then
11027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11028 else
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11031 do
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11036 ac_cv_prog_ac_ct_CC="gcc"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 break 2
11039 fi
11040 done
11041 done
11042 IFS=$as_save_IFS
11043
11044 fi
11045 fi
11046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11047 if test -n "$ac_ct_CC"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11049 $as_echo "$ac_ct_CC" >&6; }
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 fi
11054
11055 if test "x$ac_ct_CC" = x; then
11056 CC=""
11057 else
11058 case $cross_compiling:$ac_tool_warned in
11059 yes:)
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11062 ac_tool_warned=yes ;;
11063 esac
11064 CC=$ac_ct_CC
11065 fi
11066 else
11067 CC="$ac_cv_prog_CC"
11068 fi
11069
11070 if test -z "$CC"; then
11071 if test -n "$ac_tool_prefix"; then
11072 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11073 set dummy ${ac_tool_prefix}cc; ac_word=$2
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11075 $as_echo_n "checking for $ac_word... " >&6; }
11076 if test "${ac_cv_prog_CC+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 if test -n "$CC"; then
11080 ac_cv_prog_CC="$CC" # Let the user override the test.
11081 else
11082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11084 do
11085 IFS=$as_save_IFS
11086 test -z "$as_dir" && as_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
11088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089 ac_cv_prog_CC="${ac_tool_prefix}cc"
11090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11091 break 2
11092 fi
11093 done
11094 done
11095 IFS=$as_save_IFS
11096
11097 fi
11098 fi
11099 CC=$ac_cv_prog_CC
11100 if test -n "$CC"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11102 $as_echo "$CC" >&6; }
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11106 fi
11107
11108
11109 fi
11110 fi
11111 if test -z "$CC"; then
11112 # Extract the first word of "cc", so it can be a program name with args.
11113 set dummy cc; ac_word=$2
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115 $as_echo_n "checking for $ac_word... " >&6; }
11116 if test "${ac_cv_prog_CC+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 if test -n "$CC"; then
11120 ac_cv_prog_CC="$CC" # Let the user override the test.
11121 else
11122 ac_prog_rejected=no
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11125 do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11131 ac_prog_rejected=yes
11132 continue
11133 fi
11134 ac_cv_prog_CC="cc"
11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11137 fi
11138 done
11139 done
11140 IFS=$as_save_IFS
11141
11142 if test $ac_prog_rejected = yes; then
11143 # We found a bogon in the path, so make sure we never use it.
11144 set dummy $ac_cv_prog_CC
11145 shift
11146 if test $# != 0; then
11147 # We chose a different compiler from the bogus one.
11148 # However, it has the same basename, so the bogon will be chosen
11149 # first if we set CC to just the basename; use the full file name.
11150 shift
11151 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11152 fi
11153 fi
11154 fi
11155 fi
11156 CC=$ac_cv_prog_CC
11157 if test -n "$CC"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11159 $as_echo "$CC" >&6; }
11160 else
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11163 fi
11164
11165
11166 fi
11167 if test -z "$CC"; then
11168 if test -n "$ac_tool_prefix"; then
11169 for ac_prog in cl.exe
11170 do
11171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11174 $as_echo_n "checking for $ac_word... " >&6; }
11175 if test "${ac_cv_prog_CC+set}" = set; then :
11176 $as_echo_n "(cached) " >&6
11177 else
11178 if test -n "$CC"; then
11179 ac_cv_prog_CC="$CC" # Let the user override the test.
11180 else
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $PATH
11183 do
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
11186 for ac_exec_ext in '' $ac_executable_extensions; do
11187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11190 break 2
11191 fi
11192 done
11193 done
11194 IFS=$as_save_IFS
11195
11196 fi
11197 fi
11198 CC=$ac_cv_prog_CC
11199 if test -n "$CC"; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11201 $as_echo "$CC" >&6; }
11202 else
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204 $as_echo "no" >&6; }
11205 fi
11206
11207
11208 test -n "$CC" && break
11209 done
11210 fi
11211 if test -z "$CC"; then
11212 ac_ct_CC=$CC
11213 for ac_prog in cl.exe
11214 do
11215 # Extract the first word of "$ac_prog", so it can be a program name with args.
11216 set dummy $ac_prog; ac_word=$2
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218 $as_echo_n "checking for $ac_word... " >&6; }
11219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 if test -n "$ac_ct_CC"; then
11223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11224 else
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11227 do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11232 ac_cv_prog_ac_ct_CC="$ac_prog"
11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 break 2
11235 fi
11236 done
11237 done
11238 IFS=$as_save_IFS
11239
11240 fi
11241 fi
11242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11243 if test -n "$ac_ct_CC"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11245 $as_echo "$ac_ct_CC" >&6; }
11246 else
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11249 fi
11250
11251
11252 test -n "$ac_ct_CC" && break
11253 done
11254
11255 if test "x$ac_ct_CC" = x; then
11256 CC=""
11257 else
11258 case $cross_compiling:$ac_tool_warned in
11259 yes:)
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11262 ac_tool_warned=yes ;;
11263 esac
11264 CC=$ac_ct_CC
11265 fi
11266 fi
11267
11268 fi
11269
11270
11271 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11273 as_fn_error "no acceptable C compiler found in \$PATH
11274 See \`config.log' for more details." "$LINENO" 5; }
11275
11276 # Provide some information about the compiler.
11277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11278 set X $ac_compile
11279 ac_compiler=$2
11280 for ac_option in --version -v -V -qversion; do
11281 { { ac_try="$ac_compiler $ac_option >&5"
11282 case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11285 esac
11286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11287 $as_echo "$ac_try_echo"; } >&5
11288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11289 ac_status=$?
11290 if test -s conftest.err; then
11291 sed '10a\
11292 ... rest of stderr output deleted ...
11293 10q' conftest.err >conftest.er1
11294 cat conftest.er1 >&5
11295 rm -f conftest.er1 conftest.err
11296 fi
11297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298 test $ac_status = 0; }
11299 done
11300
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11303 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11308
11309 int
11310 main ()
11311 {
11312 #ifndef __GNUC__
11313 choke me
11314 #endif
11315
11316 ;
11317 return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_c_try_compile "$LINENO"; then :
11321 ac_compiler_gnu=yes
11322 else
11323 ac_compiler_gnu=no
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11327
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11331 if test $ac_compiler_gnu = yes; then
11332 GCC=yes
11333 else
11334 GCC=
11335 fi
11336 ac_test_CFLAGS=${CFLAGS+set}
11337 ac_save_CFLAGS=$CFLAGS
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11340 if test "${ac_cv_prog_cc_g+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11342 else
11343 ac_save_c_werror_flag=$ac_c_werror_flag
11344 ac_c_werror_flag=yes
11345 ac_cv_prog_cc_g=no
11346 CFLAGS="-g"
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349
11350 int
11351 main ()
11352 {
11353
11354 ;
11355 return 0;
11356 }
11357 _ACEOF
11358 if ac_fn_c_try_compile "$LINENO"; then :
11359 ac_cv_prog_cc_g=yes
11360 else
11361 CFLAGS=""
11362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h. */
11364
11365 int
11366 main ()
11367 {
11368
11369 ;
11370 return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_c_try_compile "$LINENO"; then :
11374
11375 else
11376 ac_c_werror_flag=$ac_save_c_werror_flag
11377 CFLAGS="-g"
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11380
11381 int
11382 main ()
11383 {
11384
11385 ;
11386 return 0;
11387 }
11388 _ACEOF
11389 if ac_fn_c_try_compile "$LINENO"; then :
11390 ac_cv_prog_cc_g=yes
11391 fi
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393 fi
11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 ac_c_werror_flag=$ac_save_c_werror_flag
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11400 $as_echo "$ac_cv_prog_cc_g" >&6; }
11401 if test "$ac_test_CFLAGS" = set; then
11402 CFLAGS=$ac_save_CFLAGS
11403 elif test $ac_cv_prog_cc_g = yes; then
11404 if test "$GCC" = yes; then
11405 CFLAGS="-g -O2"
11406 else
11407 CFLAGS="-g"
11408 fi
11409 else
11410 if test "$GCC" = yes; then
11411 CFLAGS="-O2"
11412 else
11413 CFLAGS=
11414 fi
11415 fi
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11418 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 ac_cv_prog_cc_c89=no
11422 ac_save_CC=$CC
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11425 #include <stdarg.h>
11426 #include <stdio.h>
11427 #include <sys/types.h>
11428 #include <sys/stat.h>
11429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11430 struct buf { int x; };
11431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11432 static char *e (p, i)
11433 char **p;
11434 int i;
11435 {
11436 return p[i];
11437 }
11438 static char *f (char * (*g) (char **, int), char **p, ...)
11439 {
11440 char *s;
11441 va_list v;
11442 va_start (v,p);
11443 s = g (p, va_arg (v,int));
11444 va_end (v);
11445 return s;
11446 }
11447
11448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11449 function prototypes and stuff, but not '\xHH' hex character constants.
11450 These don't provoke an error unfortunately, instead are silently treated
11451 as 'x'. The following induces an error, until -std is added to get
11452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11453 array size at least. It's necessary to write '\x00'==0 to get something
11454 that's true only with -std. */
11455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11456
11457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11458 inside strings and character constants. */
11459 #define FOO(x) 'x'
11460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11461
11462 int test (int i, double x);
11463 struct s1 {int (*f) (int a);};
11464 struct s2 {int (*f) (double a);};
11465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11466 int argc;
11467 char **argv;
11468 int
11469 main ()
11470 {
11471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11472 ;
11473 return 0;
11474 }
11475 _ACEOF
11476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11478 do
11479 CC="$ac_save_CC $ac_arg"
11480 if ac_fn_c_try_compile "$LINENO"; then :
11481 ac_cv_prog_cc_c89=$ac_arg
11482 fi
11483 rm -f core conftest.err conftest.$ac_objext
11484 test "x$ac_cv_prog_cc_c89" != "xno" && break
11485 done
11486 rm -f conftest.$ac_ext
11487 CC=$ac_save_CC
11488
11489 fi
11490 # AC_CACHE_VAL
11491 case "x$ac_cv_prog_cc_c89" in
11492 x)
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11494 $as_echo "none needed" >&6; } ;;
11495 xno)
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11497 $as_echo "unsupported" >&6; } ;;
11498 *)
11499 CC="$CC $ac_cv_prog_cc_c89"
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11502 esac
11503 if test "x$ac_cv_prog_cc_c89" != xno; then :
11504
11505 fi
11506
11507 ac_ext=c
11508 ac_cpp='$CPP $CPPFLAGS'
11509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11512
11513 depcc="$CC" am_compiler_list=
11514
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11516 $as_echo_n "checking dependency style of $depcc... " >&6; }
11517 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11521 # We make a subdir and do the tests there. Otherwise we can end up
11522 # making bogus files that we don't know about and never remove. For
11523 # instance it was reported that on HP-UX the gcc test will end up
11524 # making a dummy file named `D' -- because `-MD' means `put the output
11525 # in D'.
11526 mkdir conftest.dir
11527 # Copy depcomp to subdir because otherwise we won't find it if we're
11528 # using a relative directory.
11529 cp "$am_depcomp" conftest.dir
11530 cd conftest.dir
11531 # We will build objects and dependencies in a subdirectory because
11532 # it helps to detect inapplicable dependency modes. For instance
11533 # both Tru64's cc and ICC support -MD to output dependencies as a
11534 # side effect of compilation, but ICC will put the dependencies in
11535 # the current directory while Tru64 will put them in the object
11536 # directory.
11537 mkdir sub
11538
11539 am_cv_CC_dependencies_compiler_type=none
11540 if test "$am_compiler_list" = ""; then
11541 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11542 fi
11543 am__universal=false
11544 case " $depcc " in #(
11545 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11546 esac
11547
11548 for depmode in $am_compiler_list; do
11549 # Setup a source with many dependencies, because some compilers
11550 # like to wrap large dependency lists on column 80 (with \), and
11551 # we should not choose a depcomp mode which is confused by this.
11552 #
11553 # We need to recreate these files for each test, as the compiler may
11554 # overwrite some of them when testing with obscure command lines.
11555 # This happens at least with the AIX C compiler.
11556 : > sub/conftest.c
11557 for i in 1 2 3 4 5 6; do
11558 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11559 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11560 # Solaris 8's {/usr,}/bin/sh.
11561 touch sub/conftst$i.h
11562 done
11563 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11564
11565 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11566 # mode. It turns out that the SunPro C++ compiler does not properly
11567 # handle `-M -o', and we need to detect this. Also, some Intel
11568 # versions had trouble with output in subdirs
11569 am__obj=sub/conftest.${OBJEXT-o}
11570 am__minus_obj="-o $am__obj"
11571 case $depmode in
11572 gcc)
11573 # This depmode causes a compiler race in universal mode.
11574 test "$am__universal" = false || continue
11575 ;;
11576 nosideeffect)
11577 # after this tag, mechanisms are not by side-effect, so they'll
11578 # only be used when explicitly requested
11579 if test "x$enable_dependency_tracking" = xyes; then
11580 continue
11581 else
11582 break
11583 fi
11584 ;;
11585 msvisualcpp | msvcmsys)
11586 # This compiler won't grok `-c -o', but also, the minuso test has
11587 # not run yet. These depmodes are late enough in the game, and
11588 # so weak that their functioning should not be impacted.
11589 am__obj=conftest.${OBJEXT-o}
11590 am__minus_obj=
11591 ;;
11592 none) break ;;
11593 esac
11594 if depmode=$depmode \
11595 source=sub/conftest.c object=$am__obj \
11596 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11597 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11598 >/dev/null 2>conftest.err &&
11599 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11601 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11603 # icc doesn't choke on unknown options, it will just issue warnings
11604 # or remarks (even with -Werror). So we grep stderr for any message
11605 # that says an option was ignored or not supported.
11606 # When given -MP, icc 7.0 and 7.1 complain thusly:
11607 # icc: Command line warning: ignoring option '-M'; no argument required
11608 # The diagnosis changed in icc 8.0:
11609 # icc: Command line remark: option '-MP' not supported
11610 if (grep 'ignoring option' conftest.err ||
11611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11612 am_cv_CC_dependencies_compiler_type=$depmode
11613 break
11614 fi
11615 fi
11616 done
11617
11618 cd ..
11619 rm -rf conftest.dir
11620 else
11621 am_cv_CC_dependencies_compiler_type=none
11622 fi
11623
11624 fi
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11626 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11627 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11628
11629 if
11630 test "x$enable_dependency_tracking" != xno \
11631 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11632 am__fastdepCC_TRUE=
11633 am__fastdepCC_FALSE='#'
11634 else
11635 am__fastdepCC_TRUE='#'
11636 am__fastdepCC_FALSE=
11637 fi
11638
11639
11640
11641
11642
11643
11644 if test "x$CC" != xcc; then
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11646 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11647 else
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11649 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11650 fi
11651 set dummy $CC; ac_cc=`$as_echo "$2" |
11652 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11653 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11658
11659 int
11660 main ()
11661 {
11662
11663 ;
11664 return 0;
11665 }
11666 _ACEOF
11667 # Make sure it works both with $CC and with simple cc.
11668 # We do the test twice because some compilers refuse to overwrite an
11669 # existing .o file with -o, though they will create one.
11670 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11671 rm -f conftest2.*
11672 if { { case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675 esac
11676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11677 $as_echo "$ac_try_echo"; } >&5
11678 (eval "$ac_try") 2>&5
11679 ac_status=$?
11680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11681 test $ac_status = 0; } &&
11682 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685 esac
11686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11687 $as_echo "$ac_try_echo"; } >&5
11688 (eval "$ac_try") 2>&5
11689 ac_status=$?
11690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11691 test $ac_status = 0; };
11692 then
11693 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11694 if test "x$CC" != xcc; then
11695 # Test first that cc exists at all.
11696 if { ac_try='cc -c conftest.$ac_ext >&5'
11697 { { case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700 esac
11701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11702 $as_echo "$ac_try_echo"; } >&5
11703 (eval "$ac_try") 2>&5
11704 ac_status=$?
11705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11706 test $ac_status = 0; }; }; then
11707 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11708 rm -f conftest2.*
11709 if { { case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11712 esac
11713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11714 $as_echo "$ac_try_echo"; } >&5
11715 (eval "$ac_try") 2>&5
11716 ac_status=$?
11717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11718 test $ac_status = 0; } &&
11719 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11722 esac
11723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11724 $as_echo "$ac_try_echo"; } >&5
11725 (eval "$ac_try") 2>&5
11726 ac_status=$?
11727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11728 test $ac_status = 0; };
11729 then
11730 # cc works too.
11731 :
11732 else
11733 # cc exists but doesn't like -o.
11734 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11735 fi
11736 fi
11737 fi
11738 else
11739 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11740 fi
11741 rm -f core conftest*
11742
11743 fi
11744 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11746 $as_echo "yes" >&6; }
11747 else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11750
11751 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11752
11753 fi
11754
11755 # FIXME: we rely on the cache variable name because
11756 # there is no other way.
11757 set dummy $CC
11758 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11759 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11760 if test "$am_t" != yes; then
11761 # Losing compiler, so override with the script.
11762 # FIXME: It is wrong to rewrite CC.
11763 # But if we don't then we get into trouble of one sort or another.
11764 # A longer-term fix would be to have automake use am__CC in this case,
11765 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11766 CC="$am_aux_dir/compile $CC"
11767 fi
11768
11769
11770
11771 if test "x$GCC" != "xyes"; then
11772 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
11773 fi
11774 ac_ext=c
11775 ac_cpp='$CPP $CPPFLAGS'
11776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11780 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11781 # On Suns, sometimes $CPP names a directory.
11782 if test -n "$CPP" && test -d "$CPP"; then
11783 CPP=
11784 fi
11785 if test -z "$CPP"; then
11786 if test "${ac_cv_prog_CPP+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 # Double quotes because CPP needs to be expanded
11790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11791 do
11792 ac_preproc_ok=false
11793 for ac_c_preproc_warn_flag in '' yes
11794 do
11795 # Use a header file that comes with gcc, so configuring glibc
11796 # with a fresh cross-compiler works.
11797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11798 # <limits.h> exists even on freestanding compilers.
11799 # On the NeXT, cc -E runs the code through the compiler's parser,
11800 # not just through cpp. "Syntax error" is here to catch this case.
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h. */
11803 #ifdef __STDC__
11804 # include <limits.h>
11805 #else
11806 # include <assert.h>
11807 #endif
11808 Syntax error
11809 _ACEOF
11810 if ac_fn_c_try_cpp "$LINENO"; then :
11811
11812 else
11813 # Broken: fails on valid input.
11814 continue
11815 fi
11816 rm -f conftest.err conftest.$ac_ext
11817
11818 # OK, works on sane cases. Now check whether nonexistent headers
11819 # can be detected and how.
11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h. */
11822 #include <ac_nonexistent.h>
11823 _ACEOF
11824 if ac_fn_c_try_cpp "$LINENO"; then :
11825 # Broken: success on invalid input.
11826 continue
11827 else
11828 # Passes both tests.
11829 ac_preproc_ok=:
11830 break
11831 fi
11832 rm -f conftest.err conftest.$ac_ext
11833
11834 done
11835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11836 rm -f conftest.err conftest.$ac_ext
11837 if $ac_preproc_ok; then :
11838 break
11839 fi
11840
11841 done
11842 ac_cv_prog_CPP=$CPP
11843
11844 fi
11845 CPP=$ac_cv_prog_CPP
11846 else
11847 ac_cv_prog_CPP=$CPP
11848 fi
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11850 $as_echo "$CPP" >&6; }
11851 ac_preproc_ok=false
11852 for ac_c_preproc_warn_flag in '' yes
11853 do
11854 # Use a header file that comes with gcc, so configuring glibc
11855 # with a fresh cross-compiler works.
11856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11857 # <limits.h> exists even on freestanding compilers.
11858 # On the NeXT, cc -E runs the code through the compiler's parser,
11859 # not just through cpp. "Syntax error" is here to catch this case.
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862 #ifdef __STDC__
11863 # include <limits.h>
11864 #else
11865 # include <assert.h>
11866 #endif
11867 Syntax error
11868 _ACEOF
11869 if ac_fn_c_try_cpp "$LINENO"; then :
11870
11871 else
11872 # Broken: fails on valid input.
11873 continue
11874 fi
11875 rm -f conftest.err conftest.$ac_ext
11876
11877 # OK, works on sane cases. Now check whether nonexistent headers
11878 # can be detected and how.
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11881 #include <ac_nonexistent.h>
11882 _ACEOF
11883 if ac_fn_c_try_cpp "$LINENO"; then :
11884 # Broken: success on invalid input.
11885 continue
11886 else
11887 # Passes both tests.
11888 ac_preproc_ok=:
11889 break
11890 fi
11891 rm -f conftest.err conftest.$ac_ext
11892
11893 done
11894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11895 rm -f conftest.err conftest.$ac_ext
11896 if $ac_preproc_ok; then :
11897
11898 else
11899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11901 as_fn_error "C preprocessor \"$CPP\" fails sanity check
11902 See \`config.log' for more details." "$LINENO" 5; }
11903 fi
11904
11905 ac_ext=c
11906 ac_cpp='$CPP $CPPFLAGS'
11907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11910
11911
11912 # Calculate toolexeclibdir
11913 # Also toolexecdir, though it's only used in toolexeclibdir
11914 case ${version_specific_libs} in
11915 yes)
11916 # Need the gcc compiler version to know where to install libraries
11917 # and header files if --enable-version-specific-runtime-libs option
11918 # is selected.
11919 toolexecdir='$(libdir)/gcc/$(target_alias)'
11920 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11921 ;;
11922 no)
11923 if test -n "$with_cross_host" &&
11924 test x"$with_cross_host" != x"no"; then
11925 # Install a library built with a cross compiler in tooldir, not libdir.
11926 toolexecdir='$(exec_prefix)/$(target_alias)'
11927 toolexeclibdir='$(toolexecdir)/lib'
11928 else
11929 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11930 toolexeclibdir='$(libdir)'
11931 fi
11932 multi_os_directory=`$CC -print-multi-os-directory`
11933 case $multi_os_directory in
11934 .) ;; # Avoid trailing /.
11935 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11936 esac
11937 ;;
11938 esac
11939
11940
11941
11942 for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
11943 do :
11944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11946 eval as_val=\$$as_ac_Header
11947 if test "x$as_val" = x""yes; then :
11948 cat >>confdefs.h <<_ACEOF
11949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11950 _ACEOF
11951
11952 fi
11953
11954 done
11955
11956
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
11958 $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
11959 if test "${libgfor_cv_have_math_h_signgam+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962
11963 save_CFLAGS="$CFLAGS"
11964 CFLAGS="$CFLAGS -Werror"
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967
11968 #include <math.h>
11969 void foo(void) { signgam = 1; }
11970 int
11971 main ()
11972 {
11973
11974 ;
11975 return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_compile "$LINENO"; then :
11979 libgfor_cv_have_math_h_signgam=yes
11980 else
11981 libgfor_cv_have_math_h_signgam=no
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 CFLAGS="$save_CFLAGS"
11985 fi
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
11987 $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
11988 if test $libgfor_cv_have_math_h_signgam = yes; then
11989
11990 $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
11991
11992 fi
11993
11994 # If available, sqrtl and cbrtl speed up the calculation -
11995 # but they are not required
11996 if test x$gcc_no_link != xyes; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
11998 $as_echo_n "checking for sqrtl in -lm... " >&6; }
11999 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 ac_check_lib_save_LIBS=$LIBS
12003 LIBS="-lm $LIBS"
12004 if test x$gcc_no_link = xyes; then
12005 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12006 fi
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12009
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 char sqrtl ();
12017 int
12018 main ()
12019 {
12020 return sqrtl ();
12021 ;
12022 return 0;
12023 }
12024 _ACEOF
12025 if ac_fn_c_try_link "$LINENO"; then :
12026 ac_cv_lib_m_sqrtl=yes
12027 else
12028 ac_cv_lib_m_sqrtl=no
12029 fi
12030 rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032 LIBS=$ac_check_lib_save_LIBS
12033 fi
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12035 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12036 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
12037
12038 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12039
12040 fi
12041
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
12043 $as_echo_n "checking for cbrtl in -lm... " >&6; }
12044 if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
12045 $as_echo_n "(cached) " >&6
12046 else
12047 ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-lm $LIBS"
12049 if test x$gcc_no_link = xyes; then
12050 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12051 fi
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12054
12055 /* Override any GCC internal prototype to avoid an error.
12056 Use char because int might match the return type of a GCC
12057 builtin and then its argument prototype would still apply. */
12058 #ifdef __cplusplus
12059 extern "C"
12060 #endif
12061 char cbrtl ();
12062 int
12063 main ()
12064 {
12065 return cbrtl ();
12066 ;
12067 return 0;
12068 }
12069 _ACEOF
12070 if ac_fn_c_try_link "$LINENO"; then :
12071 ac_cv_lib_m_cbrtl=yes
12072 else
12073 ac_cv_lib_m_cbrtl=no
12074 fi
12075 rm -f core conftest.err conftest.$ac_objext \
12076 conftest$ac_exeext conftest.$ac_ext
12077 LIBS=$ac_check_lib_save_LIBS
12078 fi
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12080 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12081 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
12082
12083 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12084
12085 fi
12086
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12088 $as_echo_n "checking for feholdexcept in -lm... " >&6; }
12089 if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 ac_check_lib_save_LIBS=$LIBS
12093 LIBS="-lm $LIBS"
12094 if test x$gcc_no_link = xyes; then
12095 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12096 fi
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12103 #ifdef __cplusplus
12104 extern "C"
12105 #endif
12106 char feholdexcept ();
12107 int
12108 main ()
12109 {
12110 return feholdexcept ();
12111 ;
12112 return 0;
12113 }
12114 _ACEOF
12115 if ac_fn_c_try_link "$LINENO"; then :
12116 ac_cv_lib_m_feholdexcept=yes
12117 else
12118 ac_cv_lib_m_feholdexcept=no
12119 fi
12120 rm -f core conftest.err conftest.$ac_objext \
12121 conftest$ac_exeext conftest.$ac_ext
12122 LIBS=$ac_check_lib_save_LIBS
12123 fi
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12125 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12126 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12127
12128 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12129
12130 fi
12131
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12133 $as_echo_n "checking for fesetround in -lm... " >&6; }
12134 if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lm $LIBS"
12139 if test x$gcc_no_link = xyes; then
12140 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12141 fi
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 char fesetround ();
12152 int
12153 main ()
12154 {
12155 return fesetround ();
12156 ;
12157 return 0;
12158 }
12159 _ACEOF
12160 if ac_fn_c_try_link "$LINENO"; then :
12161 ac_cv_lib_m_fesetround=yes
12162 else
12163 ac_cv_lib_m_fesetround=no
12164 fi
12165 rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12168 fi
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12170 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
12171 if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12172
12173 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12174
12175 fi
12176
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12178 $as_echo_n "checking for feupdateenv in -lm... " >&6; }
12179 if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-lm $LIBS"
12184 if test x$gcc_no_link = xyes; then
12185 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12186 fi
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12189
12190 /* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 char feupdateenv ();
12197 int
12198 main ()
12199 {
12200 return feupdateenv ();
12201 ;
12202 return 0;
12203 }
12204 _ACEOF
12205 if ac_fn_c_try_link "$LINENO"; then :
12206 ac_cv_lib_m_feupdateenv=yes
12207 else
12208 ac_cv_lib_m_feupdateenv=no
12209 fi
12210 rm -f core conftest.err conftest.$ac_objext \
12211 conftest$ac_exeext conftest.$ac_ext
12212 LIBS=$ac_check_lib_save_LIBS
12213 fi
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12215 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12216 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12217
12218 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12219
12220 fi
12221
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12223 $as_echo_n "checking for fesetenv in -lm... " >&6; }
12224 if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 ac_check_lib_save_LIBS=$LIBS
12228 LIBS="-lm $LIBS"
12229 if test x$gcc_no_link = xyes; then
12230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12231 fi
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12238 #ifdef __cplusplus
12239 extern "C"
12240 #endif
12241 char fesetenv ();
12242 int
12243 main ()
12244 {
12245 return fesetenv ();
12246 ;
12247 return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_link "$LINENO"; then :
12251 ac_cv_lib_m_fesetenv=yes
12252 else
12253 ac_cv_lib_m_fesetenv=no
12254 fi
12255 rm -f core conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12257 LIBS=$ac_check_lib_save_LIBS
12258 fi
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12260 $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12261 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12262
12263 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12264
12265 fi
12266
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12268 $as_echo_n "checking for fetestexcept in -lm... " >&6; }
12269 if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12271 else
12272 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-lm $LIBS"
12274 if test x$gcc_no_link = xyes; then
12275 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12276 fi
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12279
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283 #ifdef __cplusplus
12284 extern "C"
12285 #endif
12286 char fetestexcept ();
12287 int
12288 main ()
12289 {
12290 return fetestexcept ();
12291 ;
12292 return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_link "$LINENO"; then :
12296 ac_cv_lib_m_fetestexcept=yes
12297 else
12298 ac_cv_lib_m_fetestexcept=no
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12305 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12306 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12307
12308 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12309
12310 fi
12311
12312 for ac_func in strtoull
12313 do :
12314 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12315 if test "x$ac_cv_func_strtoull" = x""yes; then :
12316 cat >>confdefs.h <<_ACEOF
12317 #define HAVE_STRTOULL 1
12318 _ACEOF
12319
12320 fi
12321 done
12322
12323 else
12324 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12325
12326 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12327
12328 fi
12329 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12330
12331 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12332
12333 fi
12334 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12335
12336 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12337
12338 fi
12339 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12340
12341 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12342
12343 fi
12344 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12345
12346 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12347
12348 fi
12349 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12350
12351 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12352
12353 fi
12354 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12355
12356 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12357
12358 fi
12359 fi
12360
12361 # Check for hidden visibility (copied from libssp).
12362 saved_CFLAGS="$CFLAGS"
12363 CFLAGS="$CFLAGS -Werror"
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12365 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368
12369 void __attribute__((visibility ("hidden"))) bar (void) {}
12370 int
12371 main ()
12372 {
12373
12374 ;
12375 return 0;
12376 }
12377 _ACEOF
12378 if ac_fn_c_try_compile "$LINENO"; then :
12379 quadmath_hidden=yes
12380 else
12381 quadmath_hidden=no
12382 fi
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12385 $as_echo "$quadmath_hidden" >&6; }
12386 if test x$quadmath_hidden = xyes; then
12387
12388 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12389
12390 fi
12391 CFLAGS="$saved_CFLAGS"
12392
12393 # Check for symbol versioning (copied from libssp).
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12395 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
12396 # Check whether --enable-symvers was given.
12397 if test "${enable_symvers+set}" = set; then :
12398 enableval=$enable_symvers; quadmath_use_symver=$enableval
12399 else
12400 quadmath_use_symver=yes
12401 fi
12402
12403 if test "x$quadmath_use_symver" != xno; then
12404 if test x$gcc_no_link = xyes; then
12405 # If we cannot link, we cannot build shared libraries, so do not use
12406 # symbol versioning.
12407 quadmath_use_symver=no
12408 else
12409 save_LDFLAGS="$LDFLAGS"
12410 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12411 cat > conftest.map <<EOF
12412 FOO_1.0 {
12413 global: *foo*; bar; local: *;
12414 };
12415 EOF
12416 if test x$gcc_no_link = xyes; then
12417 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12418 fi
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421 int foo;
12422 int
12423 main ()
12424 {
12425
12426 ;
12427 return 0;
12428 }
12429 _ACEOF
12430 if ac_fn_c_try_link "$LINENO"; then :
12431 quadmath_use_symver=gnu
12432 else
12433 quadmath_use_symver=no
12434 fi
12435 rm -f core conftest.err conftest.$ac_objext \
12436 conftest$ac_exeext conftest.$ac_ext
12437 if test x$quadmath_use_symver = xno; then
12438 case "$target_os" in
12439 solaris2*)
12440 LDFLAGS="$save_LDFLAGS"
12441 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12442 # Sun ld cannot handle wildcards and treats all entries as undefined.
12443 cat > conftest.map <<EOF
12444 FOO_1.0 {
12445 global: foo; local: *;
12446 };
12447 EOF
12448 if test x$gcc_no_link = xyes; then
12449 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12450 fi
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12453 int foo;
12454 int
12455 main ()
12456 {
12457
12458 ;
12459 return 0;
12460 }
12461 _ACEOF
12462 if ac_fn_c_try_link "$LINENO"; then :
12463 quadmath_use_symver=sun
12464 else
12465 quadmath_use_symver=no
12466 fi
12467 rm -f core conftest.err conftest.$ac_objext \
12468 conftest$ac_exeext conftest.$ac_ext
12469 ;;
12470 esac
12471 fi
12472 LDFLAGS="$save_LDFLAGS"
12473 fi
12474 fi
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12476 $as_echo "$quadmath_use_symver" >&6; }
12477 if test "x$quadmath_use_symver" != xno; then
12478 LIBQUAD_USE_SYMVER_TRUE=
12479 LIBQUAD_USE_SYMVER_FALSE='#'
12480 else
12481 LIBQUAD_USE_SYMVER_TRUE='#'
12482 LIBQUAD_USE_SYMVER_FALSE=
12483 fi
12484
12485 if test "x$quadmath_use_symver" = xgnu; then
12486 LIBQUAD_USE_SYMVER_GNU_TRUE=
12487 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12488 else
12489 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12490 LIBQUAD_USE_SYMVER_GNU_FALSE=
12491 fi
12492
12493 if test "x$quadmath_use_symver" = xsun; then
12494 LIBQUAD_USE_SYMVER_SUN_TRUE=
12495 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12496 else
12497 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12498 LIBQUAD_USE_SYMVER_SUN_FALSE=
12499 fi
12500
12501
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12503 $as_echo_n "checking whether __float128 is supported... " >&6; }
12504 if test "${libquad_cv_have_float128+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 if test x$gcc_no_link = xyes; then
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12510
12511 typedef _Complex float __attribute__((mode(TC))) __complex128;
12512
12513 __float128 foo (__float128 x)
12514 {
12515
12516 __complex128 z1, z2;
12517
12518 z1 = x;
12519 z2 = x / 7.Q;
12520 z2 /= z1;
12521
12522 return (__float128) z2;
12523 }
12524
12525 __float128 bar (__float128 x)
12526 {
12527 return x * __builtin_huge_valq ();
12528 }
12529
12530 int
12531 main ()
12532 {
12533
12534 foo (1.2Q);
12535 bar (1.2Q);
12536
12537 ;
12538 return 0;
12539 }
12540 _ACEOF
12541 if ac_fn_c_try_compile "$LINENO"; then :
12542
12543 libquad_cv_have_float128=yes
12544
12545 else
12546
12547 libquad_cv_have_float128=no
12548
12549 fi
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 else
12552 if test x$gcc_no_link = xyes; then
12553 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12554 fi
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h. */
12557
12558 typedef _Complex float __attribute__((mode(TC))) __complex128;
12559
12560 __float128 foo (__float128 x)
12561 {
12562
12563 __complex128 z1, z2;
12564
12565 z1 = x;
12566 z2 = x / 7.Q;
12567 z2 /= z1;
12568
12569 return (__float128) z2;
12570 }
12571
12572 __float128 bar (__float128 x)
12573 {
12574 return x * __builtin_huge_valq ();
12575 }
12576
12577 int
12578 main ()
12579 {
12580
12581 foo (1.2Q);
12582 bar (1.2Q);
12583
12584 ;
12585 return 0;
12586 }
12587 _ACEOF
12588 if ac_fn_c_try_link "$LINENO"; then :
12589
12590 libquad_cv_have_float128=yes
12591
12592 else
12593
12594 libquad_cv_have_float128=no
12595
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599 fi
12600 fi
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12602 $as_echo "$libquad_cv_have_float128" >&6; }
12603 if test "x$libquad_cv_have_float128" = xyes; then
12604 BUILD_LIBQUADMATH_TRUE=
12605 BUILD_LIBQUADMATH_FALSE='#'
12606 else
12607 BUILD_LIBQUADMATH_TRUE='#'
12608 BUILD_LIBQUADMATH_FALSE=
12609 fi
12610
12611
12612 # Check for printf hook support.
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12614 $as_echo_n "checking whether printf hooks are supported... " >&6; }
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617
12618 #include <printf.h>
12619 #include <stdarg.h>
12620 #include <stdlib.h>
12621 extern void flt128_va (void *, va_list *);
12622 extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12623 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12624
12625 int
12626 main ()
12627 {
12628
12629 int pa_flt128 = register_printf_type (flt128_va);
12630 int mod_Q = register_printf_modifier (L"Q");
12631 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12632 struct printf_info info = { .user = -1 };
12633
12634 ;
12635 return 0;
12636 }
12637 _ACEOF
12638 if ac_fn_c_try_compile "$LINENO"; then :
12639 quadmath_printf_hooks=yes
12640 else
12641 quadmath_printf_hooks=no
12642 fi
12643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12645 $as_echo "$quadmath_printf_hooks" >&6; }
12646 if test x$quadmath_printf_hooks = xyes; then
12647
12648 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12649
12650 fi
12651
12652 # Check for whether locale support for quadmath_snprintf or Q printf hooks
12653 # should be provided.
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12655 $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658 #include <langinfo.h>
12659 int
12660 main ()
12661 {
12662
12663 const char *s;
12664 s = nl_langinfo (DECIMAL_POINT);
12665 s = nl_langinfo (MON_DECIMAL_POINT);
12666 s = nl_langinfo (GROUPING);
12667 s = nl_langinfo (MON_GROUPING);
12668 s = nl_langinfo (THOUSANDS_SEP);
12669 s = nl_langinfo (MON_THOUSANDS_SEP);
12670 (void) s;
12671
12672 ;
12673 return 0;
12674 }
12675 _ACEOF
12676 if ac_fn_c_try_compile "$LINENO"; then :
12677 quadmath_use_nl_langinfo=yes
12678 else
12679 quadmath_use_nl_langinfo=no
12680 fi
12681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12683 $as_echo "$quadmath_use_nl_langinfo" >&6; }
12684 if test x$quadmath_use_nl_langinfo = xyes; then
12685
12686 $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12687
12688 fi
12689
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12691 $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12694 #include <langinfo.h>
12695 int
12696 main ()
12697 {
12698
12699 const char *s;
12700 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12701 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12702 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12703 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12704 (void) s;
12705
12706 ;
12707 return 0;
12708 }
12709 _ACEOF
12710 if ac_fn_c_try_compile "$LINENO"; then :
12711 quadmath_use_nl_langinfo_wc=yes
12712 else
12713 quadmath_use_nl_langinfo_wc=no
12714 fi
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12717 $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12718 if test x$quadmath_use_nl_langinfo_wc = xyes; then
12719
12720 $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12721
12722 fi
12723
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12725 $as_echo_n "checking whether localeconv should be used... " >&6; }
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12728 #include <locale.h>
12729 int
12730 main ()
12731 {
12732
12733 const struct lconv *l = localeconv ();
12734 const char *s;
12735 s = l->decimal_point;
12736 s = l->mon_decimal_point;
12737 s = l->grouping;
12738 s = l->mon_grouping;
12739 s = l->thousands_sep;
12740 s = l->mon_thousands_sep;
12741 (void) s;
12742
12743 ;
12744 return 0;
12745 }
12746 _ACEOF
12747 if ac_fn_c_try_compile "$LINENO"; then :
12748 quadmath_use_localeconv=yes
12749 else
12750 quadmath_use_localeconv=no
12751 fi
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12754 $as_echo "$quadmath_use_localeconv" >&6; }
12755 if test x$quadmath_use_localeconv = xyes; then
12756
12757 $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
12758
12759 fi
12760
12761 # Check for whether i18n number rewriting support for quadmath_snprintf
12762 # or Q printf hooks should be provided.
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12764 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767 #include <langinfo.h>
12768 #include <limits.h>
12769 #include <string.h>
12770 #include <wchar.h>
12771 #include <wctype.h>
12772 int
12773 main ()
12774 {
12775
12776 const char *s;
12777 char decimal[MB_LEN_MAX];
12778 wctrans_t map = wctrans ("to_outpunct");
12779 wint_t wdecimal = towctrans (L'.', map);
12780 mbstate_t state;
12781 memset (&state, '\0', sizeof (state));
12782 wcrtomb (decimal, wdecimal, &state);
12783 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12784 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
12785 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
12786 (void) s;
12787
12788 ;
12789 return 0;
12790 }
12791 _ACEOF
12792 if ac_fn_c_try_compile "$LINENO"; then :
12793 quadmath_use_i18n_number_h=yes
12794 else
12795 quadmath_use_i18n_number_h=no
12796 fi
12797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12799 $as_echo "$quadmath_use_i18n_number_h" >&6; }
12800 if test x$quadmath_use_i18n_number_h = xyes; then
12801
12802 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12803
12804 fi
12805
12806 cat >confcache <<\_ACEOF
12807 # This file is a shell script that caches the results of configure
12808 # tests run on this system so they can be shared between configure
12809 # scripts and configure runs, see configure's option --config-cache.
12810 # It is not useful on other systems. If it contains results you don't
12811 # want to keep, you may remove or edit it.
12812 #
12813 # config.status only pays attention to the cache file if you give it
12814 # the --recheck option to rerun configure.
12815 #
12816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12818 # following values.
12819
12820 _ACEOF
12821
12822 # The following way of writing the cache mishandles newlines in values,
12823 # but we know of no workaround that is simple, portable, and efficient.
12824 # So, we kill variables containing newlines.
12825 # Ultrix sh set writes to stderr and can't be redirected directly,
12826 # and sets the high bit in the cache file unless we assign to the vars.
12827 (
12828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12829 eval ac_val=\$$ac_var
12830 case $ac_val in #(
12831 *${as_nl}*)
12832 case $ac_var in #(
12833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12835 esac
12836 case $ac_var in #(
12837 _ | IFS | as_nl) ;; #(
12838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12839 *) { eval $ac_var=; unset $ac_var;} ;;
12840 esac ;;
12841 esac
12842 done
12843
12844 (set) 2>&1 |
12845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12846 *${as_nl}ac_space=\ *)
12847 # `set' does not quote correctly, so add quotes: double-quote
12848 # substitution turns \\\\ into \\, and sed turns \\ into \.
12849 sed -n \
12850 "s/'/'\\\\''/g;
12851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12852 ;; #(
12853 *)
12854 # `set' quotes correctly as required by POSIX, so do not add quotes.
12855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12856 ;;
12857 esac |
12858 sort
12859 ) |
12860 sed '
12861 /^ac_cv_env_/b end
12862 t clear
12863 :clear
12864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12865 t end
12866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12867 :end' >>confcache
12868 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12869 if test -w "$cache_file"; then
12870 test "x$cache_file" != "x/dev/null" &&
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12872 $as_echo "$as_me: updating cache $cache_file" >&6;}
12873 cat confcache >$cache_file
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12876 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12877 fi
12878 fi
12879 rm -f confcache
12880
12881 if test ${multilib} = yes; then
12882 multilib_arg="--enable-multilib"
12883 else
12884 multilib_arg=
12885 fi
12886
12887
12888 # We would like our source tree to be readonly. However when releases or
12889 # pre-releases are generated, the flex/bison generated files as well as the
12890 # various formats of manuals need to be included along with the rest of the
12891 # sources. Therefore we have --enable-generated-files-in-srcdir to do
12892 # just that.
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12894 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
12895 # Check whether --enable-generated-files-in-srcdir was given.
12896 if test "${enable_generated_files_in_srcdir+set}" = set; then :
12897 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12898 yes) enable_generated_files_in_srcdir=yes ;;
12899 no) enable_generated_files_in_srcdir=no ;;
12900 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12901 esac
12902 else
12903 enable_generated_files_in_srcdir=no
12904 fi
12905
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12907 $as_echo "$enable_generated_files_in_srcdir" >&6; }
12908 if test "$enable_generated_files_in_srcdir" = yes; then
12909 GENINSRC_TRUE=
12910 GENINSRC_FALSE='#'
12911 else
12912 GENINSRC_TRUE='#'
12913 GENINSRC_FALSE=
12914 fi
12915
12916
12917
12918 ac_config_files="$ac_config_files Makefile"
12919
12920 cat >confcache <<\_ACEOF
12921 # This file is a shell script that caches the results of configure
12922 # tests run on this system so they can be shared between configure
12923 # scripts and configure runs, see configure's option --config-cache.
12924 # It is not useful on other systems. If it contains results you don't
12925 # want to keep, you may remove or edit it.
12926 #
12927 # config.status only pays attention to the cache file if you give it
12928 # the --recheck option to rerun configure.
12929 #
12930 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12931 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12932 # following values.
12933
12934 _ACEOF
12935
12936 # The following way of writing the cache mishandles newlines in values,
12937 # but we know of no workaround that is simple, portable, and efficient.
12938 # So, we kill variables containing newlines.
12939 # Ultrix sh set writes to stderr and can't be redirected directly,
12940 # and sets the high bit in the cache file unless we assign to the vars.
12941 (
12942 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12943 eval ac_val=\$$ac_var
12944 case $ac_val in #(
12945 *${as_nl}*)
12946 case $ac_var in #(
12947 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12948 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12949 esac
12950 case $ac_var in #(
12951 _ | IFS | as_nl) ;; #(
12952 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12953 *) { eval $ac_var=; unset $ac_var;} ;;
12954 esac ;;
12955 esac
12956 done
12957
12958 (set) 2>&1 |
12959 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12960 *${as_nl}ac_space=\ *)
12961 # `set' does not quote correctly, so add quotes: double-quote
12962 # substitution turns \\\\ into \\, and sed turns \\ into \.
12963 sed -n \
12964 "s/'/'\\\\''/g;
12965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12966 ;; #(
12967 *)
12968 # `set' quotes correctly as required by POSIX, so do not add quotes.
12969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12970 ;;
12971 esac |
12972 sort
12973 ) |
12974 sed '
12975 /^ac_cv_env_/b end
12976 t clear
12977 :clear
12978 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12979 t end
12980 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12981 :end' >>confcache
12982 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12983 if test -w "$cache_file"; then
12984 test "x$cache_file" != "x/dev/null" &&
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12986 $as_echo "$as_me: updating cache $cache_file" >&6;}
12987 cat confcache >$cache_file
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12990 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12991 fi
12992 fi
12993 rm -f confcache
12994
12995 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12996 # Let make expand exec_prefix.
12997 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12998
12999 DEFS=-DHAVE_CONFIG_H
13000
13001 ac_libobjs=
13002 ac_ltlibobjs=
13003 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13004 # 1. Remove the extension, and $U if already installed.
13005 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13006 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13007 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13008 # will be set to the directory where LIBOBJS objects are built.
13009 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13010 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13011 done
13012 LIBOBJS=$ac_libobjs
13013
13014 LTLIBOBJS=$ac_ltlibobjs
13015
13016
13017 if test -n "$EXEEXT"; then
13018 am__EXEEXT_TRUE=
13019 am__EXEEXT_FALSE='#'
13020 else
13021 am__EXEEXT_TRUE='#'
13022 am__EXEEXT_FALSE=
13023 fi
13024
13025 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13026 as_fn_error "conditional \"AMDEP\" was never defined.
13027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13028 fi
13029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13030 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13032 fi
13033 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13034 as_fn_error "conditional \"BUILD_INFO\" was never defined.
13035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13036 fi
13037 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13038 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13040 fi
13041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13042 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13044 fi
13045 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13046 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13048 fi
13049 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13050 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13052 fi
13053 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13054 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13056 fi
13057 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13058 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
13059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13060 fi
13061 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13062 as_fn_error "conditional \"GENINSRC\" was never defined.
13063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13064 fi
13065
13066 : ${CONFIG_STATUS=./config.status}
13067 ac_write_fail=0
13068 ac_clean_files_save=$ac_clean_files
13069 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13071 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13072 as_write_fail=0
13073 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13074 #! $SHELL
13075 # Generated by $as_me.
13076 # Run this file to recreate the current configuration.
13077 # Compiler output produced by configure, useful for debugging
13078 # configure, is in config.log if it exists.
13079
13080 debug=false
13081 ac_cs_recheck=false
13082 ac_cs_silent=false
13083
13084 SHELL=\${CONFIG_SHELL-$SHELL}
13085 export SHELL
13086 _ASEOF
13087 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13088 ## -------------------- ##
13089 ## M4sh Initialization. ##
13090 ## -------------------- ##
13091
13092 # Be more Bourne compatible
13093 DUALCASE=1; export DUALCASE # for MKS sh
13094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13095 emulate sh
13096 NULLCMD=:
13097 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13098 # is contrary to our usage. Disable this feature.
13099 alias -g '${1+"$@"}'='"$@"'
13100 setopt NO_GLOB_SUBST
13101 else
13102 case `(set -o) 2>/dev/null` in #(
13103 *posix*) :
13104 set -o posix ;; #(
13105 *) :
13106 ;;
13107 esac
13108 fi
13109
13110
13111 as_nl='
13112 '
13113 export as_nl
13114 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13115 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13118 # Prefer a ksh shell builtin over an external printf program on Solaris,
13119 # but without wasting forks for bash or zsh.
13120 if test -z "$BASH_VERSION$ZSH_VERSION" \
13121 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13122 as_echo='print -r --'
13123 as_echo_n='print -rn --'
13124 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13125 as_echo='printf %s\n'
13126 as_echo_n='printf %s'
13127 else
13128 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13129 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13130 as_echo_n='/usr/ucb/echo -n'
13131 else
13132 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13133 as_echo_n_body='eval
13134 arg=$1;
13135 case $arg in #(
13136 *"$as_nl"*)
13137 expr "X$arg" : "X\\(.*\\)$as_nl";
13138 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13139 esac;
13140 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13141 '
13142 export as_echo_n_body
13143 as_echo_n='sh -c $as_echo_n_body as_echo'
13144 fi
13145 export as_echo_body
13146 as_echo='sh -c $as_echo_body as_echo'
13147 fi
13148
13149 # The user is always right.
13150 if test "${PATH_SEPARATOR+set}" != set; then
13151 PATH_SEPARATOR=:
13152 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13153 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13154 PATH_SEPARATOR=';'
13155 }
13156 fi
13157
13158
13159 # IFS
13160 # We need space, tab and new line, in precisely that order. Quoting is
13161 # there to prevent editors from complaining about space-tab.
13162 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13163 # splitting by setting IFS to empty value.)
13164 IFS=" "" $as_nl"
13165
13166 # Find who we are. Look in the path if we contain no directory separator.
13167 case $0 in #((
13168 *[\\/]* ) as_myself=$0 ;;
13169 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170 for as_dir in $PATH
13171 do
13172 IFS=$as_save_IFS
13173 test -z "$as_dir" && as_dir=.
13174 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13175 done
13176 IFS=$as_save_IFS
13177
13178 ;;
13179 esac
13180 # We did not find ourselves, most probably we were run as `sh COMMAND'
13181 # in which case we are not to be found in the path.
13182 if test "x$as_myself" = x; then
13183 as_myself=$0
13184 fi
13185 if test ! -f "$as_myself"; then
13186 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13187 exit 1
13188 fi
13189
13190 # Unset variables that we do not need and which cause bugs (e.g. in
13191 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13192 # suppresses any "Segmentation fault" message there. '((' could
13193 # trigger a bug in pdksh 5.2.14.
13194 for as_var in BASH_ENV ENV MAIL MAILPATH
13195 do eval test x\${$as_var+set} = xset \
13196 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13197 done
13198 PS1='$ '
13199 PS2='> '
13200 PS4='+ '
13201
13202 # NLS nuisances.
13203 LC_ALL=C
13204 export LC_ALL
13205 LANGUAGE=C
13206 export LANGUAGE
13207
13208 # CDPATH.
13209 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13210
13211
13212 # as_fn_error ERROR [LINENO LOG_FD]
13213 # ---------------------------------
13214 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13215 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13216 # script with status $?, using 1 if that was 0.
13217 as_fn_error ()
13218 {
13219 as_status=$?; test $as_status -eq 0 && as_status=1
13220 if test "$3"; then
13221 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13222 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13223 fi
13224 $as_echo "$as_me: error: $1" >&2
13225 as_fn_exit $as_status
13226 } # as_fn_error
13227
13228
13229 # as_fn_set_status STATUS
13230 # -----------------------
13231 # Set $? to STATUS, without forking.
13232 as_fn_set_status ()
13233 {
13234 return $1
13235 } # as_fn_set_status
13236
13237 # as_fn_exit STATUS
13238 # -----------------
13239 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13240 as_fn_exit ()
13241 {
13242 set +e
13243 as_fn_set_status $1
13244 exit $1
13245 } # as_fn_exit
13246
13247 # as_fn_unset VAR
13248 # ---------------
13249 # Portably unset VAR.
13250 as_fn_unset ()
13251 {
13252 { eval $1=; unset $1;}
13253 }
13254 as_unset=as_fn_unset
13255 # as_fn_append VAR VALUE
13256 # ----------------------
13257 # Append the text in VALUE to the end of the definition contained in VAR. Take
13258 # advantage of any shell optimizations that allow amortized linear growth over
13259 # repeated appends, instead of the typical quadratic growth present in naive
13260 # implementations.
13261 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13262 eval 'as_fn_append ()
13263 {
13264 eval $1+=\$2
13265 }'
13266 else
13267 as_fn_append ()
13268 {
13269 eval $1=\$$1\$2
13270 }
13271 fi # as_fn_append
13272
13273 # as_fn_arith ARG...
13274 # ------------------
13275 # Perform arithmetic evaluation on the ARGs, and store the result in the
13276 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13277 # must be portable across $(()) and expr.
13278 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13279 eval 'as_fn_arith ()
13280 {
13281 as_val=$(( $* ))
13282 }'
13283 else
13284 as_fn_arith ()
13285 {
13286 as_val=`expr "$@" || test $? -eq 1`
13287 }
13288 fi # as_fn_arith
13289
13290
13291 if expr a : '\(a\)' >/dev/null 2>&1 &&
13292 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13293 as_expr=expr
13294 else
13295 as_expr=false
13296 fi
13297
13298 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13299 as_basename=basename
13300 else
13301 as_basename=false
13302 fi
13303
13304 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13305 as_dirname=dirname
13306 else
13307 as_dirname=false
13308 fi
13309
13310 as_me=`$as_basename -- "$0" ||
13311 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13312 X"$0" : 'X\(//\)$' \| \
13313 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13314 $as_echo X/"$0" |
13315 sed '/^.*\/\([^/][^/]*\)\/*$/{
13316 s//\1/
13317 q
13318 }
13319 /^X\/\(\/\/\)$/{
13320 s//\1/
13321 q
13322 }
13323 /^X\/\(\/\).*/{
13324 s//\1/
13325 q
13326 }
13327 s/.*/./; q'`
13328
13329 # Avoid depending upon Character Ranges.
13330 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13331 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13332 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13333 as_cr_digits='0123456789'
13334 as_cr_alnum=$as_cr_Letters$as_cr_digits
13335
13336 ECHO_C= ECHO_N= ECHO_T=
13337 case `echo -n x` in #(((((
13338 -n*)
13339 case `echo 'xy\c'` in
13340 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13341 xy) ECHO_C='\c';;
13342 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13343 ECHO_T=' ';;
13344 esac;;
13345 *)
13346 ECHO_N='-n';;
13347 esac
13348
13349 rm -f conf$$ conf$$.exe conf$$.file
13350 if test -d conf$$.dir; then
13351 rm -f conf$$.dir/conf$$.file
13352 else
13353 rm -f conf$$.dir
13354 mkdir conf$$.dir 2>/dev/null
13355 fi
13356 if (echo >conf$$.file) 2>/dev/null; then
13357 if ln -s conf$$.file conf$$ 2>/dev/null; then
13358 as_ln_s='ln -s'
13359 # ... but there are two gotchas:
13360 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13361 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13362 # In both cases, we have to default to `cp -p'.
13363 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13364 as_ln_s='cp -p'
13365 elif ln conf$$.file conf$$ 2>/dev/null; then
13366 as_ln_s=ln
13367 else
13368 as_ln_s='cp -p'
13369 fi
13370 else
13371 as_ln_s='cp -p'
13372 fi
13373 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13374 rmdir conf$$.dir 2>/dev/null
13375
13376
13377 # as_fn_mkdir_p
13378 # -------------
13379 # Create "$as_dir" as a directory, including parents if necessary.
13380 as_fn_mkdir_p ()
13381 {
13382
13383 case $as_dir in #(
13384 -*) as_dir=./$as_dir;;
13385 esac
13386 test -d "$as_dir" || eval $as_mkdir_p || {
13387 as_dirs=
13388 while :; do
13389 case $as_dir in #(
13390 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13391 *) as_qdir=$as_dir;;
13392 esac
13393 as_dirs="'$as_qdir' $as_dirs"
13394 as_dir=`$as_dirname -- "$as_dir" ||
13395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13396 X"$as_dir" : 'X\(//\)[^/]' \| \
13397 X"$as_dir" : 'X\(//\)$' \| \
13398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13399 $as_echo X"$as_dir" |
13400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13401 s//\1/
13402 q
13403 }
13404 /^X\(\/\/\)[^/].*/{
13405 s//\1/
13406 q
13407 }
13408 /^X\(\/\/\)$/{
13409 s//\1/
13410 q
13411 }
13412 /^X\(\/\).*/{
13413 s//\1/
13414 q
13415 }
13416 s/.*/./; q'`
13417 test -d "$as_dir" && break
13418 done
13419 test -z "$as_dirs" || eval "mkdir $as_dirs"
13420 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13421
13422
13423 } # as_fn_mkdir_p
13424 if mkdir -p . 2>/dev/null; then
13425 as_mkdir_p='mkdir -p "$as_dir"'
13426 else
13427 test -d ./-p && rmdir ./-p
13428 as_mkdir_p=false
13429 fi
13430
13431 if test -x / >/dev/null 2>&1; then
13432 as_test_x='test -x'
13433 else
13434 if ls -dL / >/dev/null 2>&1; then
13435 as_ls_L_option=L
13436 else
13437 as_ls_L_option=
13438 fi
13439 as_test_x='
13440 eval sh -c '\''
13441 if test -d "$1"; then
13442 test -d "$1/.";
13443 else
13444 case $1 in #(
13445 -*)set "./$1";;
13446 esac;
13447 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13448 ???[sx]*):;;*)false;;esac;fi
13449 '\'' sh
13450 '
13451 fi
13452 as_executable_p=$as_test_x
13453
13454 # Sed expression to map a string onto a valid CPP name.
13455 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13456
13457 # Sed expression to map a string onto a valid variable name.
13458 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13459
13460
13461 exec 6>&1
13462 ## ----------------------------------- ##
13463 ## Main body of $CONFIG_STATUS script. ##
13464 ## ----------------------------------- ##
13465 _ASEOF
13466 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13467
13468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13469 # Save the log message, to keep $0 and so on meaningful, and to
13470 # report actual input values of CONFIG_FILES etc. instead of their
13471 # values after options handling.
13472 ac_log="
13473 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13474 generated by GNU Autoconf 2.64. Invocation command line was
13475
13476 CONFIG_FILES = $CONFIG_FILES
13477 CONFIG_HEADERS = $CONFIG_HEADERS
13478 CONFIG_LINKS = $CONFIG_LINKS
13479 CONFIG_COMMANDS = $CONFIG_COMMANDS
13480 $ $0 $@
13481
13482 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13483 "
13484
13485 _ACEOF
13486
13487 case $ac_config_files in *"
13488 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13489 esac
13490
13491 case $ac_config_headers in *"
13492 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13493 esac
13494
13495
13496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13497 # Files that config.status was made for.
13498 config_files="$ac_config_files"
13499 config_headers="$ac_config_headers"
13500 config_commands="$ac_config_commands"
13501
13502 _ACEOF
13503
13504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13505 ac_cs_usage="\
13506 \`$as_me' instantiates files and other configuration actions
13507 from templates according to the current configuration. Unless the files
13508 and actions are specified as TAGs, all are instantiated by default.
13509
13510 Usage: $0 [OPTION]... [TAG]...
13511
13512 -h, --help print this help, then exit
13513 -V, --version print version number and configuration settings, then exit
13514 -q, --quiet, --silent
13515 do not print progress messages
13516 -d, --debug don't remove temporary files
13517 --recheck update $as_me by reconfiguring in the same conditions
13518 --file=FILE[:TEMPLATE]
13519 instantiate the configuration file FILE
13520 --header=FILE[:TEMPLATE]
13521 instantiate the configuration header FILE
13522
13523 Configuration files:
13524 $config_files
13525
13526 Configuration headers:
13527 $config_headers
13528
13529 Configuration commands:
13530 $config_commands
13531
13532 Report bugs to the package provider."
13533
13534 _ACEOF
13535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13536 ac_cs_version="\\
13537 GCC Quad-precision Math Library config.status 0.1
13538 configured by $0, generated by GNU Autoconf 2.64,
13539 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13540
13541 Copyright (C) 2009 Free Software Foundation, Inc.
13542 This config.status script is free software; the Free Software Foundation
13543 gives unlimited permission to copy, distribute and modify it."
13544
13545 ac_pwd='$ac_pwd'
13546 srcdir='$srcdir'
13547 INSTALL='$INSTALL'
13548 MKDIR_P='$MKDIR_P'
13549 AWK='$AWK'
13550 test -n "\$AWK" || AWK=awk
13551 _ACEOF
13552
13553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13554 # The default lists apply if the user does not specify any file.
13555 ac_need_defaults=:
13556 while test $# != 0
13557 do
13558 case $1 in
13559 --*=*)
13560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13561 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13562 ac_shift=:
13563 ;;
13564 *)
13565 ac_option=$1
13566 ac_optarg=$2
13567 ac_shift=shift
13568 ;;
13569 esac
13570
13571 case $ac_option in
13572 # Handling of the options.
13573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13574 ac_cs_recheck=: ;;
13575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13576 $as_echo "$ac_cs_version"; exit ;;
13577 --debug | --debu | --deb | --de | --d | -d )
13578 debug=: ;;
13579 --file | --fil | --fi | --f )
13580 $ac_shift
13581 case $ac_optarg in
13582 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13583 esac
13584 as_fn_append CONFIG_FILES " '$ac_optarg'"
13585 ac_need_defaults=false;;
13586 --header | --heade | --head | --hea )
13587 $ac_shift
13588 case $ac_optarg in
13589 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13590 esac
13591 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13592 ac_need_defaults=false;;
13593 --he | --h)
13594 # Conflict between --help and --header
13595 as_fn_error "ambiguous option: \`$1'
13596 Try \`$0 --help' for more information.";;
13597 --help | --hel | -h )
13598 $as_echo "$ac_cs_usage"; exit ;;
13599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13600 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13601 ac_cs_silent=: ;;
13602
13603 # This is an error.
13604 -*) as_fn_error "unrecognized option: \`$1'
13605 Try \`$0 --help' for more information." ;;
13606
13607 *) as_fn_append ac_config_targets " $1"
13608 ac_need_defaults=false ;;
13609
13610 esac
13611 shift
13612 done
13613
13614 ac_configure_extra_args=
13615
13616 if $ac_cs_silent; then
13617 exec 6>/dev/null
13618 ac_configure_extra_args="$ac_configure_extra_args --silent"
13619 fi
13620
13621 _ACEOF
13622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13623 if \$ac_cs_recheck; then
13624 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13625 shift
13626 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13627 CONFIG_SHELL='$SHELL'
13628 export CONFIG_SHELL
13629 exec "\$@"
13630 fi
13631
13632 _ACEOF
13633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13634 exec 5>>config.log
13635 {
13636 echo
13637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13638 ## Running $as_me. ##
13639 _ASBOX
13640 $as_echo "$ac_log"
13641 } >&5
13642
13643 _ACEOF
13644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13645 #
13646 # INIT-COMMANDS
13647 #
13648
13649 srcdir="$srcdir"
13650 host="$host"
13651 target="$target"
13652 with_multisubdir="$with_multisubdir"
13653 with_multisrctop="$with_multisrctop"
13654 with_target_subdir="$with_target_subdir"
13655 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13656 multi_basedir="$multi_basedir"
13657 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13658 CC="$CC"
13659 CXX="$CXX"
13660 GFORTRAN="$GFORTRAN"
13661 GCJ="$GCJ"
13662 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13663
13664
13665 # The HP-UX ksh and POSIX shell print the target directory to stdout
13666 # if CDPATH is set.
13667 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13668
13669 sed_quote_subst='$sed_quote_subst'
13670 double_quote_subst='$double_quote_subst'
13671 delay_variable_subst='$delay_variable_subst'
13672 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13673 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13674 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13675 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13676 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13677 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13678 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13679 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13680 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13681 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13682 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13683 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13684 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13685 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13686 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13687 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13688 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13689 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13690 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13691 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13692 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13693 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13694 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13695 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13696 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13697 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13698 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13699 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13700 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13701 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13702 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13703 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13704 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13705 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13706 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13707 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13708 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13709 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13710 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13711 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13712 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13713 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13714 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13715 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13716 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13717 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13718 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13719 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13720 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"`'
13721 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13722 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13723 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13724 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13725 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13726 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13727 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13728 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13729 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13730 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13731 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13732 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13733 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13734 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13735 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13736 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13737 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13738 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13739 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13740 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13741 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13742 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13743 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13744 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13745 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13746 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13747 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13748 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13749 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13750 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13751 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13752 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13753 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13754 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13755 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13756 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13757 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13758 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13759 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13760 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13761 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13762 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13763 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13764 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13765 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13766 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13767 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13768 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13769 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13770 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13771 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13772 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13773 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13774 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13775 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13776 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13777 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13778 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13779 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13780 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13781 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13782 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13783 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13784 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13785 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13786 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13787 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13788 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13789 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13790 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13791 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13792
13793 LTCC='$LTCC'
13794 LTCFLAGS='$LTCFLAGS'
13795 compiler='$compiler_DEFAULT'
13796
13797 # A function that is used when there is no print builtin or printf.
13798 func_fallback_echo ()
13799 {
13800 eval 'cat <<_LTECHO_EOF
13801 \$1
13802 _LTECHO_EOF'
13803 }
13804
13805 # Quote evaled strings.
13806 for var in SHELL \
13807 ECHO \
13808 SED \
13809 GREP \
13810 EGREP \
13811 FGREP \
13812 LD \
13813 NM \
13814 LN_S \
13815 lt_SP2NL \
13816 lt_NL2SP \
13817 reload_flag \
13818 OBJDUMP \
13819 deplibs_check_method \
13820 file_magic_cmd \
13821 AR \
13822 AR_FLAGS \
13823 STRIP \
13824 RANLIB \
13825 CC \
13826 CFLAGS \
13827 compiler \
13828 lt_cv_sys_global_symbol_pipe \
13829 lt_cv_sys_global_symbol_to_cdecl \
13830 lt_cv_sys_global_symbol_to_c_name_address \
13831 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13832 lt_prog_compiler_no_builtin_flag \
13833 lt_prog_compiler_wl \
13834 lt_prog_compiler_pic \
13835 lt_prog_compiler_static \
13836 lt_cv_prog_compiler_c_o \
13837 need_locks \
13838 DSYMUTIL \
13839 NMEDIT \
13840 LIPO \
13841 OTOOL \
13842 OTOOL64 \
13843 shrext_cmds \
13844 export_dynamic_flag_spec \
13845 whole_archive_flag_spec \
13846 compiler_needs_object \
13847 with_gnu_ld \
13848 allow_undefined_flag \
13849 no_undefined_flag \
13850 hardcode_libdir_flag_spec \
13851 hardcode_libdir_flag_spec_ld \
13852 hardcode_libdir_separator \
13853 fix_srcfile_path \
13854 exclude_expsyms \
13855 include_expsyms \
13856 file_list_spec \
13857 variables_saved_for_relink \
13858 libname_spec \
13859 library_names_spec \
13860 soname_spec \
13861 install_override_mode \
13862 finish_eval \
13863 old_striplib \
13864 striplib; do
13865 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13866 *[\\\\\\\`\\"\\\$]*)
13867 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13868 ;;
13869 *)
13870 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13871 ;;
13872 esac
13873 done
13874
13875 # Double-quote double-evaled strings.
13876 for var in reload_cmds \
13877 old_postinstall_cmds \
13878 old_postuninstall_cmds \
13879 old_archive_cmds \
13880 extract_expsyms_cmds \
13881 old_archive_from_new_cmds \
13882 old_archive_from_expsyms_cmds \
13883 archive_cmds \
13884 archive_expsym_cmds \
13885 module_cmds \
13886 module_expsym_cmds \
13887 export_symbols_cmds \
13888 prelink_cmds \
13889 postinstall_cmds \
13890 postuninstall_cmds \
13891 finish_cmds \
13892 sys_lib_search_path_spec \
13893 sys_lib_dlsearch_path_spec; do
13894 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13895 *[\\\\\\\`\\"\\\$]*)
13896 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13897 ;;
13898 *)
13899 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13900 ;;
13901 esac
13902 done
13903
13904 ac_aux_dir='$ac_aux_dir'
13905 xsi_shell='$xsi_shell'
13906 lt_shell_append='$lt_shell_append'
13907
13908 # See if we are running on zsh, and set the options which allow our
13909 # commands through without removal of \ escapes INIT.
13910 if test -n "\${ZSH_VERSION+set}" ; then
13911 setopt NO_GLOB_SUBST
13912 fi
13913
13914
13915 PACKAGE='$PACKAGE'
13916 VERSION='$VERSION'
13917 TIMESTAMP='$TIMESTAMP'
13918 RM='$RM'
13919 ofile='$ofile'
13920
13921
13922
13923
13924 _ACEOF
13925
13926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13927
13928 # Handling of arguments.
13929 for ac_config_target in $ac_config_targets
13930 do
13931 case $ac_config_target in
13932 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13933 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13934 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13935 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13936 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13937
13938 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13939 esac
13940 done
13941
13942
13943 # If the user did not use the arguments to specify the items to instantiate,
13944 # then the envvar interface is used. Set only those that are not.
13945 # We use the long form for the default assignment because of an extremely
13946 # bizarre bug on SunOS 4.1.3.
13947 if $ac_need_defaults; then
13948 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13949 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13950 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13951 fi
13952
13953 # Have a temporary directory for convenience. Make it in the build tree
13954 # simply because there is no reason against having it here, and in addition,
13955 # creating and moving files from /tmp can sometimes cause problems.
13956 # Hook for its removal unless debugging.
13957 # Note that there is a small window in which the directory will not be cleaned:
13958 # after its creation but before its name has been assigned to `$tmp'.
13959 $debug ||
13960 {
13961 tmp=
13962 trap 'exit_status=$?
13963 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13964 ' 0
13965 trap 'as_fn_exit 1' 1 2 13 15
13966 }
13967 # Create a (secure) tmp directory for tmp files.
13968
13969 {
13970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13971 test -n "$tmp" && test -d "$tmp"
13972 } ||
13973 {
13974 tmp=./conf$$-$RANDOM
13975 (umask 077 && mkdir "$tmp")
13976 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13977
13978 # Set up the scripts for CONFIG_FILES section.
13979 # No need to generate them if there are no CONFIG_FILES.
13980 # This happens for instance with `./config.status config.h'.
13981 if test -n "$CONFIG_FILES"; then
13982
13983
13984 ac_cr=`echo X | tr X '\015'`
13985 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13986 # But we know of no other shell where ac_cr would be empty at this
13987 # point, so we can use a bashism as a fallback.
13988 if test "x$ac_cr" = x; then
13989 eval ac_cr=\$\'\\r\'
13990 fi
13991 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13992 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13993 ac_cs_awk_cr='\r'
13994 else
13995 ac_cs_awk_cr=$ac_cr
13996 fi
13997
13998 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13999 _ACEOF
14000
14001
14002 {
14003 echo "cat >conf$$subs.awk <<_ACEOF" &&
14004 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14005 echo "_ACEOF"
14006 } >conf$$subs.sh ||
14007 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14008 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14009 ac_delim='%!_!# '
14010 for ac_last_try in false false false false false :; do
14011 . ./conf$$subs.sh ||
14012 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14013
14014 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14015 if test $ac_delim_n = $ac_delim_num; then
14016 break
14017 elif $ac_last_try; then
14018 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14019 else
14020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14021 fi
14022 done
14023 rm -f conf$$subs.sh
14024
14025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14026 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14027 _ACEOF
14028 sed -n '
14029 h
14030 s/^/S["/; s/!.*/"]=/
14031 p
14032 g
14033 s/^[^!]*!//
14034 :repl
14035 t repl
14036 s/'"$ac_delim"'$//
14037 t delim
14038 :nl
14039 h
14040 s/\(.\{148\}\).*/\1/
14041 t more1
14042 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14043 p
14044 n
14045 b repl
14046 :more1
14047 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14048 p
14049 g
14050 s/.\{148\}//
14051 t nl
14052 :delim
14053 h
14054 s/\(.\{148\}\).*/\1/
14055 t more2
14056 s/["\\]/\\&/g; s/^/"/; s/$/"/
14057 p
14058 b
14059 :more2
14060 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14061 p
14062 g
14063 s/.\{148\}//
14064 t delim
14065 ' <conf$$subs.awk | sed '
14066 /^[^""]/{
14067 N
14068 s/\n//
14069 }
14070 ' >>$CONFIG_STATUS || ac_write_fail=1
14071 rm -f conf$$subs.awk
14072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14073 _ACAWK
14074 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14075 for (key in S) S_is_set[key] = 1
14076 FS = "\a"
14077
14078 }
14079 {
14080 line = $ 0
14081 nfields = split(line, field, "@")
14082 substed = 0
14083 len = length(field[1])
14084 for (i = 2; i < nfields; i++) {
14085 key = field[i]
14086 keylen = length(key)
14087 if (S_is_set[key]) {
14088 value = S[key]
14089 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14090 len += length(value) + length(field[++i])
14091 substed = 1
14092 } else
14093 len += 1 + keylen
14094 }
14095
14096 print line
14097 }
14098
14099 _ACAWK
14100 _ACEOF
14101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14102 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14103 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14104 else
14105 cat
14106 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14107 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14108 _ACEOF
14109
14110 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14111 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14112 # trailing colons and then remove the whole line if VPATH becomes empty
14113 # (actually we leave an empty line to preserve line numbers).
14114 if test "x$srcdir" = x.; then
14115 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14116 s/:*\$(srcdir):*/:/
14117 s/:*\${srcdir}:*/:/
14118 s/:*@srcdir@:*/:/
14119 s/^\([^=]*=[ ]*\):*/\1/
14120 s/:*$//
14121 s/^[^=]*=[ ]*$//
14122 }'
14123 fi
14124
14125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14126 fi # test -n "$CONFIG_FILES"
14127
14128 # Set up the scripts for CONFIG_HEADERS section.
14129 # No need to generate them if there are no CONFIG_HEADERS.
14130 # This happens for instance with `./config.status Makefile'.
14131 if test -n "$CONFIG_HEADERS"; then
14132 cat >"$tmp/defines.awk" <<\_ACAWK ||
14133 BEGIN {
14134 _ACEOF
14135
14136 # Transform confdefs.h into an awk script `defines.awk', embedded as
14137 # here-document in config.status, that substitutes the proper values into
14138 # config.h.in to produce config.h.
14139
14140 # Create a delimiter string that does not exist in confdefs.h, to ease
14141 # handling of long lines.
14142 ac_delim='%!_!# '
14143 for ac_last_try in false false :; do
14144 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14145 if test -z "$ac_t"; then
14146 break
14147 elif $ac_last_try; then
14148 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14149 else
14150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14151 fi
14152 done
14153
14154 # For the awk script, D is an array of macro values keyed by name,
14155 # likewise P contains macro parameters if any. Preserve backslash
14156 # newline sequences.
14157
14158 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14159 sed -n '
14160 s/.\{148\}/&'"$ac_delim"'/g
14161 t rset
14162 :rset
14163 s/^[ ]*#[ ]*define[ ][ ]*/ /
14164 t def
14165 d
14166 :def
14167 s/\\$//
14168 t bsnl
14169 s/["\\]/\\&/g
14170 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14171 D["\1"]=" \3"/p
14172 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14173 d
14174 :bsnl
14175 s/["\\]/\\&/g
14176 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14177 D["\1"]=" \3\\\\\\n"\\/p
14178 t cont
14179 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14180 t cont
14181 d
14182 :cont
14183 n
14184 s/.\{148\}/&'"$ac_delim"'/g
14185 t clear
14186 :clear
14187 s/\\$//
14188 t bsnlc
14189 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14190 d
14191 :bsnlc
14192 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14193 b cont
14194 ' <confdefs.h | sed '
14195 s/'"$ac_delim"'/"\\\
14196 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14197
14198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14199 for (key in D) D_is_set[key] = 1
14200 FS = "\a"
14201 }
14202 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14203 line = \$ 0
14204 split(line, arg, " ")
14205 if (arg[1] == "#") {
14206 defundef = arg[2]
14207 mac1 = arg[3]
14208 } else {
14209 defundef = substr(arg[1], 2)
14210 mac1 = arg[2]
14211 }
14212 split(mac1, mac2, "(") #)
14213 macro = mac2[1]
14214 prefix = substr(line, 1, index(line, defundef) - 1)
14215 if (D_is_set[macro]) {
14216 # Preserve the white space surrounding the "#".
14217 print prefix "define", macro P[macro] D[macro]
14218 next
14219 } else {
14220 # Replace #undef with comments. This is necessary, for example,
14221 # in the case of _POSIX_SOURCE, which is predefined and required
14222 # on some systems where configure will not decide to define it.
14223 if (defundef == "undef") {
14224 print "/*", prefix defundef, macro, "*/"
14225 next
14226 }
14227 }
14228 }
14229 { print }
14230 _ACAWK
14231 _ACEOF
14232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14233 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14234 fi # test -n "$CONFIG_HEADERS"
14235
14236
14237 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14238 shift
14239 for ac_tag
14240 do
14241 case $ac_tag in
14242 :[FHLC]) ac_mode=$ac_tag; continue;;
14243 esac
14244 case $ac_mode$ac_tag in
14245 :[FHL]*:*);;
14246 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14247 :[FH]-) ac_tag=-:-;;
14248 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14249 esac
14250 ac_save_IFS=$IFS
14251 IFS=:
14252 set x $ac_tag
14253 IFS=$ac_save_IFS
14254 shift
14255 ac_file=$1
14256 shift
14257
14258 case $ac_mode in
14259 :L) ac_source=$1;;
14260 :[FH])
14261 ac_file_inputs=
14262 for ac_f
14263 do
14264 case $ac_f in
14265 -) ac_f="$tmp/stdin";;
14266 *) # Look for the file first in the build tree, then in the source tree
14267 # (if the path is not absolute). The absolute path cannot be DOS-style,
14268 # because $ac_f cannot contain `:'.
14269 test -f "$ac_f" ||
14270 case $ac_f in
14271 [\\/$]*) false;;
14272 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14273 esac ||
14274 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14275 esac
14276 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14277 as_fn_append ac_file_inputs " '$ac_f'"
14278 done
14279
14280 # Let's still pretend it is `configure' which instantiates (i.e., don't
14281 # use $as_me), people would be surprised to read:
14282 # /* config.h. Generated by config.status. */
14283 configure_input='Generated from '`
14284 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14285 `' by configure.'
14286 if test x"$ac_file" != x-; then
14287 configure_input="$ac_file. $configure_input"
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14289 $as_echo "$as_me: creating $ac_file" >&6;}
14290 fi
14291 # Neutralize special characters interpreted by sed in replacement strings.
14292 case $configure_input in #(
14293 *\&* | *\|* | *\\* )
14294 ac_sed_conf_input=`$as_echo "$configure_input" |
14295 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14296 *) ac_sed_conf_input=$configure_input;;
14297 esac
14298
14299 case $ac_tag in
14300 *:-:* | *:-) cat >"$tmp/stdin" \
14301 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14302 esac
14303 ;;
14304 esac
14305
14306 ac_dir=`$as_dirname -- "$ac_file" ||
14307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14308 X"$ac_file" : 'X\(//\)[^/]' \| \
14309 X"$ac_file" : 'X\(//\)$' \| \
14310 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14311 $as_echo X"$ac_file" |
14312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14313 s//\1/
14314 q
14315 }
14316 /^X\(\/\/\)[^/].*/{
14317 s//\1/
14318 q
14319 }
14320 /^X\(\/\/\)$/{
14321 s//\1/
14322 q
14323 }
14324 /^X\(\/\).*/{
14325 s//\1/
14326 q
14327 }
14328 s/.*/./; q'`
14329 as_dir="$ac_dir"; as_fn_mkdir_p
14330 ac_builddir=.
14331
14332 case "$ac_dir" in
14333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14334 *)
14335 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14336 # A ".." for each directory in $ac_dir_suffix.
14337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14338 case $ac_top_builddir_sub in
14339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14341 esac ;;
14342 esac
14343 ac_abs_top_builddir=$ac_pwd
14344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14345 # for backward compatibility:
14346 ac_top_builddir=$ac_top_build_prefix
14347
14348 case $srcdir in
14349 .) # We are building in place.
14350 ac_srcdir=.
14351 ac_top_srcdir=$ac_top_builddir_sub
14352 ac_abs_top_srcdir=$ac_pwd ;;
14353 [\\/]* | ?:[\\/]* ) # Absolute name.
14354 ac_srcdir=$srcdir$ac_dir_suffix;
14355 ac_top_srcdir=$srcdir
14356 ac_abs_top_srcdir=$srcdir ;;
14357 *) # Relative name.
14358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14359 ac_top_srcdir=$ac_top_build_prefix$srcdir
14360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14361 esac
14362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14363
14364
14365 case $ac_mode in
14366 :F)
14367 #
14368 # CONFIG_FILE
14369 #
14370
14371 case $INSTALL in
14372 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14373 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14374 esac
14375 ac_MKDIR_P=$MKDIR_P
14376 case $MKDIR_P in
14377 [\\/$]* | ?:[\\/]* ) ;;
14378 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14379 esac
14380 _ACEOF
14381
14382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14383 # If the template does not know about datarootdir, expand it.
14384 # FIXME: This hack should be removed a few years after 2.60.
14385 ac_datarootdir_hack=; ac_datarootdir_seen=
14386 ac_sed_dataroot='
14387 /datarootdir/ {
14388 p
14389 q
14390 }
14391 /@datadir@/p
14392 /@docdir@/p
14393 /@infodir@/p
14394 /@localedir@/p
14395 /@mandir@/p'
14396 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14397 *datarootdir*) ac_datarootdir_seen=yes;;
14398 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14400 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14401 _ACEOF
14402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14403 ac_datarootdir_hack='
14404 s&@datadir@&$datadir&g
14405 s&@docdir@&$docdir&g
14406 s&@infodir@&$infodir&g
14407 s&@localedir@&$localedir&g
14408 s&@mandir@&$mandir&g
14409 s&\\\${datarootdir}&$datarootdir&g' ;;
14410 esac
14411 _ACEOF
14412
14413 # Neutralize VPATH when `$srcdir' = `.'.
14414 # Shell code in configure.ac might set extrasub.
14415 # FIXME: do we really want to maintain this feature?
14416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14417 ac_sed_extra="$ac_vpsub
14418 $extrasub
14419 _ACEOF
14420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14421 :t
14422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14423 s|@configure_input@|$ac_sed_conf_input|;t t
14424 s&@top_builddir@&$ac_top_builddir_sub&;t t
14425 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14426 s&@srcdir@&$ac_srcdir&;t t
14427 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14428 s&@top_srcdir@&$ac_top_srcdir&;t t
14429 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14430 s&@builddir@&$ac_builddir&;t t
14431 s&@abs_builddir@&$ac_abs_builddir&;t t
14432 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14433 s&@INSTALL@&$ac_INSTALL&;t t
14434 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14435 $ac_datarootdir_hack
14436 "
14437 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14438 || as_fn_error "could not create $ac_file" "$LINENO" 5
14439
14440 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14441 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14442 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14444 which seems to be undefined. Please make sure it is defined." >&5
14445 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14446 which seems to be undefined. Please make sure it is defined." >&2;}
14447
14448 rm -f "$tmp/stdin"
14449 case $ac_file in
14450 -) cat "$tmp/out" && rm -f "$tmp/out";;
14451 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14452 esac \
14453 || as_fn_error "could not create $ac_file" "$LINENO" 5
14454 ;;
14455 :H)
14456 #
14457 # CONFIG_HEADER
14458 #
14459 if test x"$ac_file" != x-; then
14460 {
14461 $as_echo "/* $configure_input */" \
14462 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14463 } >"$tmp/config.h" \
14464 || as_fn_error "could not create $ac_file" "$LINENO" 5
14465 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14467 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14468 else
14469 rm -f "$ac_file"
14470 mv "$tmp/config.h" "$ac_file" \
14471 || as_fn_error "could not create $ac_file" "$LINENO" 5
14472 fi
14473 else
14474 $as_echo "/* $configure_input */" \
14475 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14476 || as_fn_error "could not create -" "$LINENO" 5
14477 fi
14478 # Compute "$ac_file"'s index in $config_headers.
14479 _am_arg="$ac_file"
14480 _am_stamp_count=1
14481 for _am_header in $config_headers :; do
14482 case $_am_header in
14483 $_am_arg | $_am_arg:* )
14484 break ;;
14485 * )
14486 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14487 esac
14488 done
14489 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14490 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14491 X"$_am_arg" : 'X\(//\)[^/]' \| \
14492 X"$_am_arg" : 'X\(//\)$' \| \
14493 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14494 $as_echo X"$_am_arg" |
14495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14496 s//\1/
14497 q
14498 }
14499 /^X\(\/\/\)[^/].*/{
14500 s//\1/
14501 q
14502 }
14503 /^X\(\/\/\)$/{
14504 s//\1/
14505 q
14506 }
14507 /^X\(\/\).*/{
14508 s//\1/
14509 q
14510 }
14511 s/.*/./; q'`/stamp-h$_am_stamp_count
14512 ;;
14513
14514 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14515 $as_echo "$as_me: executing $ac_file commands" >&6;}
14516 ;;
14517 esac
14518
14519
14520 case $ac_file$ac_mode in
14521 "default-1":C)
14522 # Only add multilib support code if we just rebuilt the top-level
14523 # Makefile.
14524 case " $CONFIG_FILES " in
14525 *" Makefile "*)
14526 ac_file=Makefile . ${multi_basedir}/config-ml.in
14527 ;;
14528 esac ;;
14529 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14530 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14531 # are listed without --file. Let's play safe and only enable the eval
14532 # if we detect the quoting.
14533 case $CONFIG_FILES in
14534 *\'*) eval set x "$CONFIG_FILES" ;;
14535 *) set x $CONFIG_FILES ;;
14536 esac
14537 shift
14538 for mf
14539 do
14540 # Strip MF so we end up with the name of the file.
14541 mf=`echo "$mf" | sed -e 's/:.*$//'`
14542 # Check whether this is an Automake generated Makefile or not.
14543 # We used to match only the files named `Makefile.in', but
14544 # some people rename them; so instead we look at the file content.
14545 # Grep'ing the first line is not enough: some people post-process
14546 # each Makefile.in and add a new line on top of each file to say so.
14547 # Grep'ing the whole file is not good either: AIX grep has a line
14548 # limit of 2048, but all sed's we know have understand at least 4000.
14549 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14550 dirpart=`$as_dirname -- "$mf" ||
14551 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14552 X"$mf" : 'X\(//\)[^/]' \| \
14553 X"$mf" : 'X\(//\)$' \| \
14554 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14555 $as_echo X"$mf" |
14556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14557 s//\1/
14558 q
14559 }
14560 /^X\(\/\/\)[^/].*/{
14561 s//\1/
14562 q
14563 }
14564 /^X\(\/\/\)$/{
14565 s//\1/
14566 q
14567 }
14568 /^X\(\/\).*/{
14569 s//\1/
14570 q
14571 }
14572 s/.*/./; q'`
14573 else
14574 continue
14575 fi
14576 # Extract the definition of DEPDIR, am__include, and am__quote
14577 # from the Makefile without running `make'.
14578 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14579 test -z "$DEPDIR" && continue
14580 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14581 test -z "am__include" && continue
14582 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14583 # When using ansi2knr, U may be empty or an underscore; expand it
14584 U=`sed -n 's/^U = //p' < "$mf"`
14585 # Find all dependency output files, they are included files with
14586 # $(DEPDIR) in their names. We invoke sed twice because it is the
14587 # simplest approach to changing $(DEPDIR) to its actual value in the
14588 # expansion.
14589 for file in `sed -n "
14590 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14591 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14592 # Make sure the directory exists.
14593 test -f "$dirpart/$file" && continue
14594 fdir=`$as_dirname -- "$file" ||
14595 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14596 X"$file" : 'X\(//\)[^/]' \| \
14597 X"$file" : 'X\(//\)$' \| \
14598 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14599 $as_echo X"$file" |
14600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14601 s//\1/
14602 q
14603 }
14604 /^X\(\/\/\)[^/].*/{
14605 s//\1/
14606 q
14607 }
14608 /^X\(\/\/\)$/{
14609 s//\1/
14610 q
14611 }
14612 /^X\(\/\).*/{
14613 s//\1/
14614 q
14615 }
14616 s/.*/./; q'`
14617 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14618 # echo "creating $dirpart/$file"
14619 echo '# dummy' > "$dirpart/$file"
14620 done
14621 done
14622 }
14623 ;;
14624 "libtool":C)
14625
14626 # See if we are running on zsh, and set the options which allow our
14627 # commands through without removal of \ escapes.
14628 if test -n "${ZSH_VERSION+set}" ; then
14629 setopt NO_GLOB_SUBST
14630 fi
14631
14632 cfgfile="${ofile}T"
14633 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14634 $RM "$cfgfile"
14635
14636 cat <<_LT_EOF >> "$cfgfile"
14637 #! $SHELL
14638
14639 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14640 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14642 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14643 #
14644 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14645 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14646 # Written by Gordon Matzigkeit, 1996
14647 #
14648 # This file is part of GNU Libtool.
14649 #
14650 # GNU Libtool is free software; you can redistribute it and/or
14651 # modify it under the terms of the GNU General Public License as
14652 # published by the Free Software Foundation; either version 2 of
14653 # the License, or (at your option) any later version.
14654 #
14655 # As a special exception to the GNU General Public License,
14656 # if you distribute this file as part of a program or library that
14657 # is built using GNU Libtool, you may include this file under the
14658 # same distribution terms that you use for the rest of that program.
14659 #
14660 # GNU Libtool is distributed in the hope that it will be useful,
14661 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14662 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14663 # GNU General Public License for more details.
14664 #
14665 # You should have received a copy of the GNU General Public License
14666 # along with GNU Libtool; see the file COPYING. If not, a copy
14667 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14668 # obtained by writing to the Free Software Foundation, Inc.,
14669 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14670
14671
14672 # The names of the tagged configurations supported by this script.
14673 available_tags=""
14674
14675 # ### BEGIN LIBTOOL CONFIG
14676
14677 # Which release of libtool.m4 was used?
14678 macro_version=$macro_version
14679 macro_revision=$macro_revision
14680
14681 # Whether or not to build shared libraries.
14682 build_libtool_libs=$enable_shared
14683
14684 # Whether or not to build static libraries.
14685 build_old_libs=$enable_static
14686
14687 # What type of objects to build.
14688 pic_mode=$pic_mode
14689
14690 # Whether or not to optimize for fast installation.
14691 fast_install=$enable_fast_install
14692
14693 # Shell to use when invoking shell scripts.
14694 SHELL=$lt_SHELL
14695
14696 # An echo program that protects backslashes.
14697 ECHO=$lt_ECHO
14698
14699 # The host system.
14700 host_alias=$host_alias
14701 host=$host
14702 host_os=$host_os
14703
14704 # The build system.
14705 build_alias=$build_alias
14706 build=$build
14707 build_os=$build_os
14708
14709 # A sed program that does not truncate output.
14710 SED=$lt_SED
14711
14712 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14713 Xsed="\$SED -e 1s/^X//"
14714
14715 # A grep program that handles long lines.
14716 GREP=$lt_GREP
14717
14718 # An ERE matcher.
14719 EGREP=$lt_EGREP
14720
14721 # A literal string matcher.
14722 FGREP=$lt_FGREP
14723
14724 # A BSD- or MS-compatible name lister.
14725 NM=$lt_NM
14726
14727 # Whether we need soft or hard links.
14728 LN_S=$lt_LN_S
14729
14730 # What is the maximum length of a command?
14731 max_cmd_len=$max_cmd_len
14732
14733 # Object file suffix (normally "o").
14734 objext=$ac_objext
14735
14736 # Executable file suffix (normally "").
14737 exeext=$exeext
14738
14739 # whether the shell understands "unset".
14740 lt_unset=$lt_unset
14741
14742 # turn spaces into newlines.
14743 SP2NL=$lt_lt_SP2NL
14744
14745 # turn newlines into spaces.
14746 NL2SP=$lt_lt_NL2SP
14747
14748 # An object symbol dumper.
14749 OBJDUMP=$lt_OBJDUMP
14750
14751 # Method to check whether dependent libraries are shared objects.
14752 deplibs_check_method=$lt_deplibs_check_method
14753
14754 # Command to use when deplibs_check_method == "file_magic".
14755 file_magic_cmd=$lt_file_magic_cmd
14756
14757 # The archiver.
14758 AR=$lt_AR
14759 AR_FLAGS=$lt_AR_FLAGS
14760
14761 # A symbol stripping program.
14762 STRIP=$lt_STRIP
14763
14764 # Commands used to install an old-style archive.
14765 RANLIB=$lt_RANLIB
14766 old_postinstall_cmds=$lt_old_postinstall_cmds
14767 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14768
14769 # Whether to use a lock for old archive extraction.
14770 lock_old_archive_extraction=$lock_old_archive_extraction
14771
14772 # A C compiler.
14773 LTCC=$lt_CC
14774
14775 # LTCC compiler flags.
14776 LTCFLAGS=$lt_CFLAGS
14777
14778 # Take the output of nm and produce a listing of raw symbols and C names.
14779 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14780
14781 # Transform the output of nm in a proper C declaration.
14782 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14783
14784 # Transform the output of nm in a C name address pair.
14785 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14786
14787 # Transform the output of nm in a C name address pair when lib prefix is needed.
14788 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14789
14790 # The name of the directory that contains temporary libtool files.
14791 objdir=$objdir
14792
14793 # Used to examine libraries when file_magic_cmd begins with "file".
14794 MAGIC_CMD=$MAGIC_CMD
14795
14796 # Must we lock files when doing compilation?
14797 need_locks=$lt_need_locks
14798
14799 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14800 DSYMUTIL=$lt_DSYMUTIL
14801
14802 # Tool to change global to local symbols on Mac OS X.
14803 NMEDIT=$lt_NMEDIT
14804
14805 # Tool to manipulate fat objects and archives on Mac OS X.
14806 LIPO=$lt_LIPO
14807
14808 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14809 OTOOL=$lt_OTOOL
14810
14811 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14812 OTOOL64=$lt_OTOOL64
14813
14814 # Old archive suffix (normally "a").
14815 libext=$libext
14816
14817 # Shared library suffix (normally ".so").
14818 shrext_cmds=$lt_shrext_cmds
14819
14820 # The commands to extract the exported symbol list from a shared archive.
14821 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14822
14823 # Variables whose values should be saved in libtool wrapper scripts and
14824 # restored at link time.
14825 variables_saved_for_relink=$lt_variables_saved_for_relink
14826
14827 # Do we need the "lib" prefix for modules?
14828 need_lib_prefix=$need_lib_prefix
14829
14830 # Do we need a version for libraries?
14831 need_version=$need_version
14832
14833 # Library versioning type.
14834 version_type=$version_type
14835
14836 # Shared library runtime path variable.
14837 runpath_var=$runpath_var
14838
14839 # Shared library path variable.
14840 shlibpath_var=$shlibpath_var
14841
14842 # Is shlibpath searched before the hard-coded library search path?
14843 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14844
14845 # Format of library name prefix.
14846 libname_spec=$lt_libname_spec
14847
14848 # List of archive names. First name is the real one, the rest are links.
14849 # The last name is the one that the linker finds with -lNAME
14850 library_names_spec=$lt_library_names_spec
14851
14852 # The coded name of the library, if different from the real name.
14853 soname_spec=$lt_soname_spec
14854
14855 # Permission mode override for installation of shared libraries.
14856 install_override_mode=$lt_install_override_mode
14857
14858 # Command to use after installation of a shared archive.
14859 postinstall_cmds=$lt_postinstall_cmds
14860
14861 # Command to use after uninstallation of a shared archive.
14862 postuninstall_cmds=$lt_postuninstall_cmds
14863
14864 # Commands used to finish a libtool library installation in a directory.
14865 finish_cmds=$lt_finish_cmds
14866
14867 # As "finish_cmds", except a single script fragment to be evaled but
14868 # not shown.
14869 finish_eval=$lt_finish_eval
14870
14871 # Whether we should hardcode library paths into libraries.
14872 hardcode_into_libs=$hardcode_into_libs
14873
14874 # Compile-time system search path for libraries.
14875 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14876
14877 # Run-time system search path for libraries.
14878 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14879
14880 # Whether dlopen is supported.
14881 dlopen_support=$enable_dlopen
14882
14883 # Whether dlopen of programs is supported.
14884 dlopen_self=$enable_dlopen_self
14885
14886 # Whether dlopen of statically linked programs is supported.
14887 dlopen_self_static=$enable_dlopen_self_static
14888
14889 # Commands to strip libraries.
14890 old_striplib=$lt_old_striplib
14891 striplib=$lt_striplib
14892
14893
14894 # The linker used to build libraries.
14895 LD=$lt_LD
14896
14897 # How to create reloadable object files.
14898 reload_flag=$lt_reload_flag
14899 reload_cmds=$lt_reload_cmds
14900
14901 # Commands used to build an old-style archive.
14902 old_archive_cmds=$lt_old_archive_cmds
14903
14904 # A language specific compiler.
14905 CC=$lt_compiler
14906
14907 # Is the compiler the GNU compiler?
14908 with_gcc=$GCC
14909
14910 # Compiler flag to turn off builtin functions.
14911 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14912
14913 # How to pass a linker flag through the compiler.
14914 wl=$lt_lt_prog_compiler_wl
14915
14916 # Additional compiler flags for building library objects.
14917 pic_flag=$lt_lt_prog_compiler_pic
14918
14919 # Compiler flag to prevent dynamic linking.
14920 link_static_flag=$lt_lt_prog_compiler_static
14921
14922 # Does compiler simultaneously support -c and -o options?
14923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14924
14925 # Whether or not to add -lc for building shared libraries.
14926 build_libtool_need_lc=$archive_cmds_need_lc
14927
14928 # Whether or not to disallow shared libs when runtime libs are static.
14929 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14930
14931 # Compiler flag to allow reflexive dlopens.
14932 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14933
14934 # Compiler flag to generate shared objects directly from archives.
14935 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14936
14937 # Whether the compiler copes with passing no objects directly.
14938 compiler_needs_object=$lt_compiler_needs_object
14939
14940 # Create an old-style archive from a shared archive.
14941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14942
14943 # Create a temporary old-style archive to link instead of a shared archive.
14944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14945
14946 # Commands used to build a shared archive.
14947 archive_cmds=$lt_archive_cmds
14948 archive_expsym_cmds=$lt_archive_expsym_cmds
14949
14950 # Commands used to build a loadable module if different from building
14951 # a shared archive.
14952 module_cmds=$lt_module_cmds
14953 module_expsym_cmds=$lt_module_expsym_cmds
14954
14955 # Whether we are building with GNU ld or not.
14956 with_gnu_ld=$lt_with_gnu_ld
14957
14958 # Flag that allows shared libraries with undefined symbols to be built.
14959 allow_undefined_flag=$lt_allow_undefined_flag
14960
14961 # Flag that enforces no undefined symbols.
14962 no_undefined_flag=$lt_no_undefined_flag
14963
14964 # Flag to hardcode \$libdir into a binary during linking.
14965 # This must work even if \$libdir does not exist
14966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14967
14968 # If ld is used when linking, flag to hardcode \$libdir into a binary
14969 # during linking. This must work even if \$libdir does not exist.
14970 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14971
14972 # Whether we need a single "-rpath" flag with a separated argument.
14973 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14974
14975 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14976 # DIR into the resulting binary.
14977 hardcode_direct=$hardcode_direct
14978
14979 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14980 # DIR into the resulting binary and the resulting library dependency is
14981 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14982 # library is relocated.
14983 hardcode_direct_absolute=$hardcode_direct_absolute
14984
14985 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14986 # into the resulting binary.
14987 hardcode_minus_L=$hardcode_minus_L
14988
14989 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14990 # into the resulting binary.
14991 hardcode_shlibpath_var=$hardcode_shlibpath_var
14992
14993 # Set to "yes" if building a shared library automatically hardcodes DIR
14994 # into the library and all subsequent libraries and executables linked
14995 # against it.
14996 hardcode_automatic=$hardcode_automatic
14997
14998 # Set to yes if linker adds runtime paths of dependent libraries
14999 # to runtime path list.
15000 inherit_rpath=$inherit_rpath
15001
15002 # Whether libtool must link a program against all its dependency libraries.
15003 link_all_deplibs=$link_all_deplibs
15004
15005 # Fix the shell variable \$srcfile for the compiler.
15006 fix_srcfile_path=$lt_fix_srcfile_path
15007
15008 # Set to "yes" if exported symbols are required.
15009 always_export_symbols=$always_export_symbols
15010
15011 # The commands to list exported symbols.
15012 export_symbols_cmds=$lt_export_symbols_cmds
15013
15014 # Symbols that should not be listed in the preloaded symbols.
15015 exclude_expsyms=$lt_exclude_expsyms
15016
15017 # Symbols that must always be exported.
15018 include_expsyms=$lt_include_expsyms
15019
15020 # Commands necessary for linking programs (against libraries) with templates.
15021 prelink_cmds=$lt_prelink_cmds
15022
15023 # Specify filename containing input files.
15024 file_list_spec=$lt_file_list_spec
15025
15026 # How to hardcode a shared library path into an executable.
15027 hardcode_action=$hardcode_action
15028
15029 # ### END LIBTOOL CONFIG
15030
15031 _LT_EOF
15032
15033 case $host_os in
15034 aix3*)
15035 cat <<\_LT_EOF >> "$cfgfile"
15036 # AIX sometimes has problems with the GCC collect2 program. For some
15037 # reason, if we set the COLLECT_NAMES environment variable, the problems
15038 # vanish in a puff of smoke.
15039 if test "X${COLLECT_NAMES+set}" != Xset; then
15040 COLLECT_NAMES=
15041 export COLLECT_NAMES
15042 fi
15043 _LT_EOF
15044 ;;
15045 esac
15046
15047
15048 ltmain="$ac_aux_dir/ltmain.sh"
15049
15050
15051 # We use sed instead of cat because bash on DJGPP gets confused if
15052 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15053 # text mode, it properly converts lines to CR/LF. This bash problem
15054 # is reportedly fixed, but why not run on old versions too?
15055 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15056 || (rm -f "$cfgfile"; exit 1)
15057
15058 case $xsi_shell in
15059 yes)
15060 cat << \_LT_EOF >> "$cfgfile"
15061
15062 # func_dirname file append nondir_replacement
15063 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15064 # otherwise set result to NONDIR_REPLACEMENT.
15065 func_dirname ()
15066 {
15067 case ${1} in
15068 */*) func_dirname_result="${1%/*}${2}" ;;
15069 * ) func_dirname_result="${3}" ;;
15070 esac
15071 }
15072
15073 # func_basename file
15074 func_basename ()
15075 {
15076 func_basename_result="${1##*/}"
15077 }
15078
15079 # func_dirname_and_basename file append nondir_replacement
15080 # perform func_basename and func_dirname in a single function
15081 # call:
15082 # dirname: Compute the dirname of FILE. If nonempty,
15083 # add APPEND to the result, otherwise set result
15084 # to NONDIR_REPLACEMENT.
15085 # value returned in "$func_dirname_result"
15086 # basename: Compute filename of FILE.
15087 # value retuned in "$func_basename_result"
15088 # Implementation must be kept synchronized with func_dirname
15089 # and func_basename. For efficiency, we do not delegate to
15090 # those functions but instead duplicate the functionality here.
15091 func_dirname_and_basename ()
15092 {
15093 case ${1} in
15094 */*) func_dirname_result="${1%/*}${2}" ;;
15095 * ) func_dirname_result="${3}" ;;
15096 esac
15097 func_basename_result="${1##*/}"
15098 }
15099
15100 # func_stripname prefix suffix name
15101 # strip PREFIX and SUFFIX off of NAME.
15102 # PREFIX and SUFFIX must not contain globbing or regex special
15103 # characters, hashes, percent signs, but SUFFIX may contain a leading
15104 # dot (in which case that matches only a dot).
15105 func_stripname ()
15106 {
15107 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15108 # positional parameters, so assign one to ordinary parameter first.
15109 func_stripname_result=${3}
15110 func_stripname_result=${func_stripname_result#"${1}"}
15111 func_stripname_result=${func_stripname_result%"${2}"}
15112 }
15113
15114 # func_opt_split
15115 func_opt_split ()
15116 {
15117 func_opt_split_opt=${1%%=*}
15118 func_opt_split_arg=${1#*=}
15119 }
15120
15121 # func_lo2o object
15122 func_lo2o ()
15123 {
15124 case ${1} in
15125 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15126 *) func_lo2o_result=${1} ;;
15127 esac
15128 }
15129
15130 # func_xform libobj-or-source
15131 func_xform ()
15132 {
15133 func_xform_result=${1%.*}.lo
15134 }
15135
15136 # func_arith arithmetic-term...
15137 func_arith ()
15138 {
15139 func_arith_result=$(( $* ))
15140 }
15141
15142 # func_len string
15143 # STRING may not start with a hyphen.
15144 func_len ()
15145 {
15146 func_len_result=${#1}
15147 }
15148
15149 _LT_EOF
15150 ;;
15151 *) # Bourne compatible functions.
15152 cat << \_LT_EOF >> "$cfgfile"
15153
15154 # func_dirname file append nondir_replacement
15155 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15156 # otherwise set result to NONDIR_REPLACEMENT.
15157 func_dirname ()
15158 {
15159 # Extract subdirectory from the argument.
15160 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15161 if test "X$func_dirname_result" = "X${1}"; then
15162 func_dirname_result="${3}"
15163 else
15164 func_dirname_result="$func_dirname_result${2}"
15165 fi
15166 }
15167
15168 # func_basename file
15169 func_basename ()
15170 {
15171 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15172 }
15173
15174
15175 # func_stripname prefix suffix name
15176 # strip PREFIX and SUFFIX off of NAME.
15177 # PREFIX and SUFFIX must not contain globbing or regex special
15178 # characters, hashes, percent signs, but SUFFIX may contain a leading
15179 # dot (in which case that matches only a dot).
15180 # func_strip_suffix prefix name
15181 func_stripname ()
15182 {
15183 case ${2} in
15184 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15185 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15186 esac
15187 }
15188
15189 # sed scripts:
15190 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15191 my_sed_long_arg='1s/^-[^=]*=//'
15192
15193 # func_opt_split
15194 func_opt_split ()
15195 {
15196 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15197 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15198 }
15199
15200 # func_lo2o object
15201 func_lo2o ()
15202 {
15203 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15204 }
15205
15206 # func_xform libobj-or-source
15207 func_xform ()
15208 {
15209 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15210 }
15211
15212 # func_arith arithmetic-term...
15213 func_arith ()
15214 {
15215 func_arith_result=`expr "$@"`
15216 }
15217
15218 # func_len string
15219 # STRING may not start with a hyphen.
15220 func_len ()
15221 {
15222 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15223 }
15224
15225 _LT_EOF
15226 esac
15227
15228 case $lt_shell_append in
15229 yes)
15230 cat << \_LT_EOF >> "$cfgfile"
15231
15232 # func_append var value
15233 # Append VALUE to the end of shell variable VAR.
15234 func_append ()
15235 {
15236 eval "$1+=\$2"
15237 }
15238 _LT_EOF
15239 ;;
15240 *)
15241 cat << \_LT_EOF >> "$cfgfile"
15242
15243 # func_append var value
15244 # Append VALUE to the end of shell variable VAR.
15245 func_append ()
15246 {
15247 eval "$1=\$$1\$2"
15248 }
15249
15250 _LT_EOF
15251 ;;
15252 esac
15253
15254
15255 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15256 || (rm -f "$cfgfile"; exit 1)
15257
15258 mv -f "$cfgfile" "$ofile" ||
15259 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15260 chmod +x "$ofile"
15261
15262 ;;
15263
15264 esac
15265 done # for ac_tag
15266
15267
15268 as_fn_exit 0
15269 _ACEOF
15270 ac_clean_files=$ac_clean_files_save
15271
15272 test $ac_write_fail = 0 ||
15273 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15274
15275
15276 # configure is writing to config.log, and then calls config.status.
15277 # config.status does its own redirection, appending to config.log.
15278 # Unfortunately, on DOS this fails, as config.log is still kept open
15279 # by configure, so config.status won't be able to write to it; its
15280 # output is simply discarded. So we exec the FD to /dev/null,
15281 # effectively closing config.log, so it can be properly (re)opened and
15282 # appended to by config.status. When coming back to configure, we
15283 # need to make the FD available again.
15284 if test "$no_create" != yes; then
15285 ac_cs_success=:
15286 ac_config_status_args=
15287 test "$silent" = yes &&
15288 ac_config_status_args="$ac_config_status_args --quiet"
15289 exec 5>/dev/null
15290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15291 exec 5>>config.log
15292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15293 # would make configure fail if this is the last instruction.
15294 $ac_cs_success || as_fn_exit $?
15295 fi
15296 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15298 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15299 fi
15300