re PR fortran/46543 (libquadmath: Add documentation)
[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
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || 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 multi_basedir
617 MAINT
618 MAINTAINER_MODE_FALSE
619 MAINTAINER_MODE_TRUE
620 enable_static
621 enable_shared
622 lt_host_flags
623 CPP
624 OTOOL64
625 OTOOL
626 LIPO
627 NMEDIT
628 DSYMUTIL
629 RANLIB
630 AR
631 OBJDUMP
632 LN_S
633 NM
634 ac_ct_DUMPBIN
635 DUMPBIN
636 LD
637 FGREP
638 EGREP
639 GREP
640 SED
641 am__fastdepCC_FALSE
642 am__fastdepCC_TRUE
643 CCDEPMODE
644 AMDEPBACKSLASH
645 AMDEP_FALSE
646 AMDEP_TRUE
647 am__quote
648 am__include
649 DEPDIR
650 OBJEXT
651 EXEEXT
652 ac_ct_CC
653 CPPFLAGS
654 LDFLAGS
655 CFLAGS
656 CC
657 LIBTOOL
658 BUILD_INFO_FALSE
659 BUILD_INFO_TRUE
660 am__untar
661 am__tar
662 AMTAR
663 am__leading_dot
664 SET_MAKE
665 AWK
666 mkdir_p
667 MKDIR_P
668 INSTALL_STRIP_PROGRAM
669 STRIP
670 install_sh
671 MAKEINFO
672 AUTOHEADER
673 AUTOMAKE
674 AUTOCONF
675 ACLOCAL
676 VERSION
677 PACKAGE
678 CYGPATH_W
679 am__isrc
680 INSTALL_DATA
681 INSTALL_SCRIPT
682 INSTALL_PROGRAM
683 target_noncanonical
684 target_os
685 target_vendor
686 target_cpu
687 target
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 enable_version_specific_runtime_libs
738 enable_shared
739 enable_static
740 with_pic
741 enable_fast_install
742 enable_dependency_tracking
743 with_gnu_ld
744 enable_libtool_lock
745 enable_maintainer_mode
746 enable_multilib
747 enable_generated_files_in_srcdir
748 '
749 ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CC
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CPP'
758
759
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
781
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 includedir='${prefix}/include'
797 oldincludedir='/usr/include'
798 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799 infodir='${datarootdir}/info'
800 htmldir='${docdir}'
801 dvidir='${docdir}'
802 pdfdir='${docdir}'
803 psdir='${docdir}'
804 libdir='${exec_prefix}/lib'
805 localedir='${datarootdir}/locale'
806 mandir='${datarootdir}/man'
807
808 ac_prev=
809 ac_dashdash=
810 for ac_option
811 do
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\$ac_option
815 ac_prev=
816 continue
817 fi
818
819 case $ac_option in
820 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 *) ac_optarg=yes ;;
822 esac
823
824 # Accept the important Cygnus configure options, so we can diagnose typos.
825
826 case $ac_dashdash$ac_option in
827 --)
828 ac_dashdash=yes ;;
829
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
834
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
839
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
846
847 --config-cache | -C)
848 cache_file=config.cache ;;
849
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
854
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
861
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871 "enable_$ac_useropt"
872 "*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
887
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
903
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
912
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
916
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
923
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
928
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
934
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
941
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
946
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
951
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
958
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
963
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
970
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
975
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
979
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
983
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
987
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
996
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1001
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1008
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1015
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1032
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1037
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1042
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1046
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 ac_prev=sbindir ;;
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 | --sbi=* | --sb=*)
1051 sbindir=$ac_optarg ;;
1052
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1056 | --sha | --sh)
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 | --sha=* | --sh=*)
1062 sharedstatedir=$ac_optarg ;;
1063
1064 -site | --site | --sit)
1065 ac_prev=site ;;
1066 -site=* | --site=* | --sit=*)
1067 site=$ac_optarg ;;
1068
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 ac_prev=srcdir ;;
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1073
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1080
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1085
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 verbose=yes ;;
1088
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1091
1092 -with-* | --with-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101 "with_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=\$ac_optarg ;;
1107
1108 -without-* | --without-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117 "with_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=no ;;
1123
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1127
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1134
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1141
1142 -*) as_fn_error "unrecognized option: \`$ac_option'
1143 Try \`$0 --help' for more information."
1144 ;;
1145
1146 *=*)
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 case $ac_envvar in #(
1150 '' | [0-9]* | *[!_$as_cr_alnum]* )
1151 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1152 esac
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1155
1156 *)
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 ;;
1163
1164 esac
1165 done
1166
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 as_fn_error "missing argument to $ac_option"
1170 fi
1171
1172 if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1174 no) ;;
1175 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 esac
1178 fi
1179
1180 # Check all directory arguments for consistency.
1181 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1185 do
1186 eval ac_val=\$$ac_var
1187 # Remove trailing slashes.
1188 case $ac_val in
1189 */ )
1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\$ac_val;;
1192 esac
1193 # Be sure to have absolute directory names.
1194 case $ac_val in
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 esac
1198 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1199 done
1200
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1207
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217 fi
1218
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222 test "$silent" = yes && exec 6>/dev/null
1223
1224
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 as_fn_error "working directory cannot be determined"
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 as_fn_error "pwd does not report name of working directory"
1231
1232
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242 $as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)$/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\).*/{
1256 s//\1/
1257 q
1258 }
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1263 fi
1264 else
1265 ac_srcdir_defaulted=no
1266 fi
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1270 fi
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1274 pwd)`
1275 # When building in place, set srcdir=.
1276 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 srcdir=.
1278 fi
1279 # Remove unnecessary trailing slashes from srcdir.
1280 # Double slashes in file names in object file debugging info
1281 # mess up M-x gdb in Emacs.
1282 case $srcdir in
1283 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 esac
1285 for ac_var in $ac_precious_vars; do
1286 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_${ac_var}_value=\$${ac_var}
1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290 done
1291
1292 #
1293 # Report the --help message.
1294 #
1295 if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
1298 cat <<_ACEOF
1299 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1300
1301 Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304 VAR=VALUE. See below for descriptions of some of the useful variables.
1305
1306 Defaults for the options are specified in brackets.
1307
1308 Configuration:
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318
1319 Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
1321 [$ac_default_prefix]
1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 [PREFIX]
1324
1325 By default, \`make install' will install all the files in
1326 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328 for instance \`--prefix=\$HOME'.
1329
1330 For better control, use the options below.
1331
1332 Fine tuning of the installation directories:
1333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
1352 _ACEOF
1353
1354 cat <<\_ACEOF
1355
1356 Program names:
1357 --program-prefix=PREFIX prepend PREFIX to installed program names
1358 --program-suffix=SUFFIX append SUFFIX to installed program names
1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360
1361 System types:
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1371 esac
1372 cat <<\_ACEOF
1373
1374 Optional Features:
1375 --disable-option-checking ignore unrecognized --enable/--with options
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-version-specific-runtime-libs
1379 specify that runtime libraries should be installed
1380 in a compiler-specific directory
1381 --enable-shared[=PKGS] build shared libraries [default=yes]
1382 --enable-static[=PKGS] build static libraries [default=yes]
1383 --enable-fast-install[=PKGS]
1384 optimize for fast installation [default=yes]
1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
1387 --disable-libtool-lock avoid locking (might break parallel builds)
1388 --enable-maintainer-mode enable make rules and dependencies not useful
1389 (and sometimes confusing) to the casual installer
1390 --enable-multilib build many library versions (default)
1391 --enable-generated-files-in-srcdir
1392 put copies of generated files in source dir intended
1393 for creating source tarballs for users without
1394 texinfo bison or flex
1395
1396 Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-pic try to use only PIC/non-PIC objects [default=use
1400 both]
1401 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1402
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CPP C preprocessor
1412
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1415
1416 Report bugs to the package provider.
1417 _ACEOF
1418 ac_status=$?
1419 fi
1420
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
1427 ac_builddir=.
1428
1429 case "$ac_dir" in
1430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *)
1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439 esac
1440 ac_abs_top_builddir=$ac_pwd
1441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442 # for backward compatibility:
1443 ac_top_builddir=$ac_top_build_prefix
1444
1445 case $srcdir in
1446 .) # We are building in place.
1447 ac_srcdir=.
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
1451 ac_srcdir=$srcdir$ac_dir_suffix;
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 esac
1459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
1469 else
1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
1473 done
1474 fi
1475
1476 test -n "$ac_init_help" && exit $ac_status
1477 if $ac_init_version; then
1478 cat <<\_ACEOF
1479 GCC Quad-precision Math Library configure 0.1
1480 generated by GNU Autoconf 2.64
1481
1482 Copyright (C) 2009 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1485 _ACEOF
1486 exit
1487 fi
1488
1489 ## ------------------------ ##
1490 ## Autoconf initialization. ##
1491 ## ------------------------ ##
1492
1493 # ac_fn_c_try_compile LINENO
1494 # --------------------------
1495 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1496 ac_fn_c_try_compile ()
1497 {
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext
1500 if { { ac_try="$ac_compile"
1501 case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504 esac
1505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506 $as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_compile") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest.$ac_objext; then :
1519 ac_retval=0
1520 else
1521 $as_echo "$as_me: failed program was:" >&5
1522 sed 's/^/| /' conftest.$ac_ext >&5
1523
1524 ac_retval=1
1525 fi
1526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1527 return $ac_retval
1528
1529 } # ac_fn_c_try_compile
1530
1531 # ac_fn_c_try_link LINENO
1532 # -----------------------
1533 # Try to link conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_link ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext conftest$ac_exeext
1538 if { { ac_try="$ac_link"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_link") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest$ac_exeext && {
1557 test "$cross_compiling" = yes ||
1558 $as_test_x conftest$ac_exeext
1559 }; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566 fi
1567 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1568 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1569 # interfere with the next link command; also delete a directory that is
1570 # left behind by Apple's compiler. We do this before executing the actions.
1571 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
1574
1575 } # ac_fn_c_try_link
1576
1577 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1578 # -------------------------------------------------------
1579 # Tests whether HEADER exists and can be compiled using the include files in
1580 # INCLUDES, setting the cache variable VAR accordingly.
1581 ac_fn_c_check_header_compile ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585 $as_echo_n "checking for $2... " >&6; }
1586 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1587 $as_echo_n "(cached) " >&6
1588 else
1589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590 /* end confdefs.h. */
1591 $4
1592 #include <$2>
1593 _ACEOF
1594 if ac_fn_c_try_compile "$LINENO"; then :
1595 eval "$3=yes"
1596 else
1597 eval "$3=no"
1598 fi
1599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600 fi
1601 eval ac_res=\$$3
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603 $as_echo "$ac_res" >&6; }
1604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1605
1606 } # ac_fn_c_check_header_compile
1607
1608 # ac_fn_c_try_cpp LINENO
1609 # ----------------------
1610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_cpp ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } >/dev/null && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 return $ac_retval
1642
1643 } # ac_fn_c_try_cpp
1644
1645 # ac_fn_c_try_run LINENO
1646 # ----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1648 # that executables *can* be run.
1649 ac_fn_c_try_run ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>&5
1660 ac_status=$?
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1663 { { case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_try") 2>&5
1670 ac_status=$?
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; }; }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: program exited with status $ac_status" >&5
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=$ac_status
1680 fi
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 return $ac_retval
1684
1685 } # ac_fn_c_try_run
1686
1687 # ac_fn_c_check_func LINENO FUNC VAR
1688 # ----------------------------------
1689 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1690 ac_fn_c_check_func ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1696 $as_echo_n "(cached) " >&6
1697 else
1698 if test x$gcc_no_link = xyes; then
1699 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1700 fi
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1703 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1705 #define $2 innocuous_$2
1706
1707 /* System header to define __stub macros and hopefully few prototypes,
1708 which can conflict with char $2 (); below.
1709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1710 <limits.h> exists even on freestanding compilers. */
1711
1712 #ifdef __STDC__
1713 # include <limits.h>
1714 #else
1715 # include <assert.h>
1716 #endif
1717
1718 #undef $2
1719
1720 /* Override any GCC internal prototype to avoid an error.
1721 Use char because int might match the return type of a GCC
1722 builtin and then its argument prototype would still apply. */
1723 #ifdef __cplusplus
1724 extern "C"
1725 #endif
1726 char $2 ();
1727 /* The GNU C library defines this for functions which it implements
1728 to always fail with ENOSYS. Some functions are actually named
1729 something starting with __ and the normal name is an alias. */
1730 #if defined __stub_$2 || defined __stub___$2
1731 choke me
1732 #endif
1733
1734 int
1735 main ()
1736 {
1737 return $2 ();
1738 ;
1739 return 0;
1740 }
1741 _ACEOF
1742 if ac_fn_c_try_link "$LINENO"; then :
1743 eval "$3=yes"
1744 else
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext \
1748 conftest$ac_exeext conftest.$ac_ext
1749 fi
1750 eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754
1755 } # ac_fn_c_check_func
1756 cat >config.log <<_ACEOF
1757 This file contains any messages produced by compilers while
1758 running configure, to aid debugging if configure makes a mistake.
1759
1760 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1761 generated by GNU Autoconf 2.64. Invocation command line was
1762
1763 $ $0 $@
1764
1765 _ACEOF
1766 exec 5>>config.log
1767 {
1768 cat <<_ASUNAME
1769 ## --------- ##
1770 ## Platform. ##
1771 ## --------- ##
1772
1773 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1774 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1775 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1776 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1777 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1778
1779 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1780 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1781
1782 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1783 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1784 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1785 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1786 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1787 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1788 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1789
1790 _ASUNAME
1791
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 $as_echo "PATH: $as_dir"
1798 done
1799 IFS=$as_save_IFS
1800
1801 } >&5
1802
1803 cat >&5 <<_ACEOF
1804
1805
1806 ## ----------- ##
1807 ## Core tests. ##
1808 ## ----------- ##
1809
1810 _ACEOF
1811
1812
1813 # Keep a trace of the command line.
1814 # Strip out --no-create and --no-recursion so they do not pile up.
1815 # Strip out --silent because we don't want to record it for future runs.
1816 # Also quote any args containing shell meta-characters.
1817 # Make two passes to allow for proper duplicate-argument suppression.
1818 ac_configure_args=
1819 ac_configure_args0=
1820 ac_configure_args1=
1821 ac_must_keep_next=false
1822 for ac_pass in 1 2
1823 do
1824 for ac_arg
1825 do
1826 case $ac_arg in
1827 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1829 | -silent | --silent | --silen | --sile | --sil)
1830 continue ;;
1831 *\'*)
1832 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1833 esac
1834 case $ac_pass in
1835 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1836 2)
1837 as_fn_append ac_configure_args1 " '$ac_arg'"
1838 if test $ac_must_keep_next = true; then
1839 ac_must_keep_next=false # Got value, back to normal.
1840 else
1841 case $ac_arg in
1842 *=* | --config-cache | -C | -disable-* | --disable-* \
1843 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1844 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1845 | -with-* | --with-* | -without-* | --without-* | --x)
1846 case "$ac_configure_args0 " in
1847 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1848 esac
1849 ;;
1850 -* ) ac_must_keep_next=true ;;
1851 esac
1852 fi
1853 as_fn_append ac_configure_args " '$ac_arg'"
1854 ;;
1855 esac
1856 done
1857 done
1858 { ac_configure_args0=; unset ac_configure_args0;}
1859 { ac_configure_args1=; unset ac_configure_args1;}
1860
1861 # When interrupted or exit'd, cleanup temporary files, and complete
1862 # config.log. We remove comments because anyway the quotes in there
1863 # would cause problems or look ugly.
1864 # WARNING: Use '\'' to represent an apostrophe within the trap.
1865 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1866 trap 'exit_status=$?
1867 # Save into config.log some information that might help in debugging.
1868 {
1869 echo
1870
1871 cat <<\_ASBOX
1872 ## ---------------- ##
1873 ## Cache variables. ##
1874 ## ---------------- ##
1875 _ASBOX
1876 echo
1877 # The following way of writing the cache mishandles newlines in values,
1878 (
1879 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in #(
1882 *${as_nl}*)
1883 case $ac_var in #(
1884 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1885 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1886 esac
1887 case $ac_var in #(
1888 _ | IFS | as_nl) ;; #(
1889 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1890 *) { eval $ac_var=; unset $ac_var;} ;;
1891 esac ;;
1892 esac
1893 done
1894 (set) 2>&1 |
1895 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1896 *${as_nl}ac_space=\ *)
1897 sed -n \
1898 "s/'\''/'\''\\\\'\'''\''/g;
1899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1900 ;; #(
1901 *)
1902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1903 ;;
1904 esac |
1905 sort
1906 )
1907 echo
1908
1909 cat <<\_ASBOX
1910 ## ----------------- ##
1911 ## Output variables. ##
1912 ## ----------------- ##
1913 _ASBOX
1914 echo
1915 for ac_var in $ac_subst_vars
1916 do
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 $as_echo "$ac_var='\''$ac_val'\''"
1922 done | sort
1923 echo
1924
1925 if test -n "$ac_subst_files"; then
1926 cat <<\_ASBOX
1927 ## ------------------- ##
1928 ## File substitutions. ##
1929 ## ------------------- ##
1930 _ASBOX
1931 echo
1932 for ac_var in $ac_subst_files
1933 do
1934 eval ac_val=\$$ac_var
1935 case $ac_val in
1936 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1937 esac
1938 $as_echo "$ac_var='\''$ac_val'\''"
1939 done | sort
1940 echo
1941 fi
1942
1943 if test -s confdefs.h; then
1944 cat <<\_ASBOX
1945 ## ----------- ##
1946 ## confdefs.h. ##
1947 ## ----------- ##
1948 _ASBOX
1949 echo
1950 cat confdefs.h
1951 echo
1952 fi
1953 test "$ac_signal" != 0 &&
1954 $as_echo "$as_me: caught signal $ac_signal"
1955 $as_echo "$as_me: exit $exit_status"
1956 } >&5
1957 rm -f core *.core core.conftest.* &&
1958 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1959 exit $exit_status
1960 ' 0
1961 for ac_signal in 1 2 13 15; do
1962 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1963 done
1964 ac_signal=0
1965
1966 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1967 rm -f -r conftest* confdefs.h
1968
1969 $as_echo "/* confdefs.h */" > confdefs.h
1970
1971 # Predefined preprocessor variables.
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_NAME "$PACKAGE_NAME"
1975 _ACEOF
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1979 _ACEOF
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1983 _ACEOF
1984
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_STRING "$PACKAGE_STRING"
1987 _ACEOF
1988
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1991 _ACEOF
1992
1993 cat >>confdefs.h <<_ACEOF
1994 #define PACKAGE_URL "$PACKAGE_URL"
1995 _ACEOF
1996
1997
1998 # Let the site file select an alternate cache file if it wants to.
1999 # Prefer an explicitly selected file to automatically selected ones.
2000 ac_site_file1=NONE
2001 ac_site_file2=NONE
2002 if test -n "$CONFIG_SITE"; then
2003 ac_site_file1=$CONFIG_SITE
2004 elif test "x$prefix" != xNONE; then
2005 ac_site_file1=$prefix/share/config.site
2006 ac_site_file2=$prefix/etc/config.site
2007 else
2008 ac_site_file1=$ac_default_prefix/share/config.site
2009 ac_site_file2=$ac_default_prefix/etc/config.site
2010 fi
2011 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2012 do
2013 test "x$ac_site_file" = xNONE && continue
2014 if test -r "$ac_site_file"; then
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2016 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2017 sed 's/^/| /' "$ac_site_file" >&5
2018 . "$ac_site_file"
2019 fi
2020 done
2021
2022 if test -r "$cache_file"; then
2023 # Some versions of bash will fail to source /dev/null (special
2024 # files actually), so we avoid doing that.
2025 if test -f "$cache_file"; then
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2027 $as_echo "$as_me: loading cache $cache_file" >&6;}
2028 case $cache_file in
2029 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2030 *) . "./$cache_file";;
2031 esac
2032 fi
2033 else
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2035 $as_echo "$as_me: creating cache $cache_file" >&6;}
2036 >$cache_file
2037 fi
2038
2039 # Check that the precious variables saved in the cache have kept the same
2040 # value.
2041 ac_cache_corrupted=false
2042 for ac_var in $ac_precious_vars; do
2043 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2044 eval ac_new_set=\$ac_env_${ac_var}_set
2045 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2046 eval ac_new_val=\$ac_env_${ac_var}_value
2047 case $ac_old_set,$ac_new_set in
2048 set,)
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2050 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2051 ac_cache_corrupted=: ;;
2052 ,set)
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2054 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2055 ac_cache_corrupted=: ;;
2056 ,);;
2057 *)
2058 if test "x$ac_old_val" != "x$ac_new_val"; then
2059 # differences in whitespace do not lead to failure.
2060 ac_old_val_w=`echo x $ac_old_val`
2061 ac_new_val_w=`echo x $ac_new_val`
2062 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2064 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2065 ac_cache_corrupted=:
2066 else
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2068 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2069 eval $ac_var=\$ac_old_val
2070 fi
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2072 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2074 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2075 fi;;
2076 esac
2077 # Pass precious variables to config.status.
2078 if test "$ac_new_set" = set; then
2079 case $ac_new_val in
2080 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2081 *) ac_arg=$ac_var=$ac_new_val ;;
2082 esac
2083 case " $ac_configure_args " in
2084 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2085 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2086 esac
2087 fi
2088 done
2089 if $ac_cache_corrupted; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2093 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2094 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2095 fi
2096 ## -------------------- ##
2097 ## Main body of script. ##
2098 ## -------------------- ##
2099
2100 ac_ext=c
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105
2106
2107
2108
2109
2110 ac_config_headers="$ac_config_headers config.h"
2111
2112
2113 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2114 #
2115 # You will slowly go insane if you do not grok the following fact: when
2116 # building this library, the top-level /target/ becomes the library's /host/.
2117 #
2118 # configure then causes --target to default to --host, exactly like any
2119 # other package using autoconf. Therefore, 'target' and 'host' will
2120 # always be the same. This makes sense both for native and cross compilers
2121 # just think about it for a little while. :-)
2122 #
2123 # Also, if this library is being configured as part of a cross compiler, the
2124 # top-level configure script will pass the "real" host as $with_cross_host.
2125 #
2126 # Do not delete or change the following two lines. For why, see
2127 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2128 ac_aux_dir=
2129 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2130 for ac_t in install-sh install.sh shtool; do
2131 if test -f "$ac_dir/$ac_t"; then
2132 ac_aux_dir=$ac_dir
2133 ac_install_sh="$ac_aux_dir/$ac_t -c"
2134 break 2
2135 fi
2136 done
2137 done
2138 if test -z "$ac_aux_dir"; then
2139 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2140 fi
2141
2142 # These three variables are undocumented and unsupported,
2143 # and are intended to be withdrawn in a future Autoconf release.
2144 # They can cause serious problems if a builder's source tree is in a directory
2145 # whose full name contains unusual characters.
2146 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2147 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2148 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2149
2150
2151 # Make sure we can run config.sub.
2152 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2153 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2154
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2156 $as_echo_n "checking build system type... " >&6; }
2157 if test "${ac_cv_build+set}" = set; then :
2158 $as_echo_n "(cached) " >&6
2159 else
2160 ac_build_alias=$build_alias
2161 test "x$ac_build_alias" = x &&
2162 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2163 test "x$ac_build_alias" = x &&
2164 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2165 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2166 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2167
2168 fi
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2170 $as_echo "$ac_cv_build" >&6; }
2171 case $ac_cv_build in
2172 *-*-*) ;;
2173 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2174 esac
2175 build=$ac_cv_build
2176 ac_save_IFS=$IFS; IFS='-'
2177 set x $ac_cv_build
2178 shift
2179 build_cpu=$1
2180 build_vendor=$2
2181 shift; shift
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2184 build_os=$*
2185 IFS=$ac_save_IFS
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187
2188
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2190 $as_echo_n "checking host system type... " >&6; }
2191 if test "${ac_cv_host+set}" = set; then :
2192 $as_echo_n "(cached) " >&6
2193 else
2194 if test "x$host_alias" = x; then
2195 ac_cv_host=$ac_cv_build
2196 else
2197 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2199 fi
2200
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2203 $as_echo "$ac_cv_host" >&6; }
2204 case $ac_cv_host in
2205 *-*-*) ;;
2206 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2207 esac
2208 host=$ac_cv_host
2209 ac_save_IFS=$IFS; IFS='-'
2210 set x $ac_cv_host
2211 shift
2212 host_cpu=$1
2213 host_vendor=$2
2214 shift; shift
2215 # Remember, the first character of IFS is used to create $*,
2216 # except with old shells:
2217 host_os=$*
2218 IFS=$ac_save_IFS
2219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2220
2221
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2223 $as_echo_n "checking target system type... " >&6; }
2224 if test "${ac_cv_target+set}" = set; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 if test "x$target_alias" = x; then
2228 ac_cv_target=$ac_cv_host
2229 else
2230 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2232 fi
2233
2234 fi
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2236 $as_echo "$ac_cv_target" >&6; }
2237 case $ac_cv_target in
2238 *-*-*) ;;
2239 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2240 esac
2241 target=$ac_cv_target
2242 ac_save_IFS=$IFS; IFS='-'
2243 set x $ac_cv_target
2244 shift
2245 target_cpu=$1
2246 target_vendor=$2
2247 shift; shift
2248 # Remember, the first character of IFS is used to create $*,
2249 # except with old shells:
2250 target_os=$*
2251 IFS=$ac_save_IFS
2252 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2253
2254
2255 # The aliases save the names the user supplied, while $host etc.
2256 # will get canonicalized.
2257 test -n "$target_alias" &&
2258 test "$program_prefix$program_suffix$program_transform_name" = \
2259 NONENONEs,x,x, &&
2260 program_prefix=${target_alias}-
2261
2262 case ${build_alias} in
2263 "") build_noncanonical=${build} ;;
2264 *) build_noncanonical=${build_alias} ;;
2265 esac
2266
2267 case ${host_alias} in
2268 "") host_noncanonical=${build_noncanonical} ;;
2269 *) host_noncanonical=${host_alias} ;;
2270 esac
2271
2272 case ${target_alias} in
2273 "") target_noncanonical=${host_noncanonical} ;;
2274 *) target_noncanonical=${target_alias} ;;
2275 esac
2276
2277
2278
2279
2280 target_alias=${target_alias-$host_alias}
2281
2282
2283 am__api_version='1.11'
2284
2285 # Find a good install program. We prefer a C program (faster),
2286 # so one script is as good as another. But avoid the broken or
2287 # incompatible versions:
2288 # SysV /etc/install, /usr/sbin/install
2289 # SunOS /usr/etc/install
2290 # IRIX /sbin/install
2291 # AIX /bin/install
2292 # AmigaOS /C/install, which installs bootblocks on floppy discs
2293 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2294 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2295 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2296 # OS/2's system install, which has a completely different semantic
2297 # ./install, which can be erroneously created by make from ./install.sh.
2298 # Reject install programs that cannot install multiple files.
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2300 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2301 if test -z "$INSTALL"; then
2302 if test "${ac_cv_path_install+set}" = set; then :
2303 $as_echo_n "(cached) " >&6
2304 else
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308 IFS=$as_save_IFS
2309 test -z "$as_dir" && as_dir=.
2310 # Account for people who put trailing slashes in PATH elements.
2311 case $as_dir/ in #((
2312 ./ | .// | /[cC]/* | \
2313 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2314 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2315 /usr/ucb/* ) ;;
2316 *)
2317 # OSF1 and SCO ODT 3.0 have their own names for install.
2318 # Don't use installbsd from OSF since it installs stuff as root
2319 # by default.
2320 for ac_prog in ginstall scoinst install; do
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2323 if test $ac_prog = install &&
2324 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2325 # AIX install. It has an incompatible calling convention.
2326 :
2327 elif test $ac_prog = install &&
2328 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2329 # program-specific install script used by HP pwplus--don't use.
2330 :
2331 else
2332 rm -rf conftest.one conftest.two conftest.dir
2333 echo one > conftest.one
2334 echo two > conftest.two
2335 mkdir conftest.dir
2336 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2337 test -s conftest.one && test -s conftest.two &&
2338 test -s conftest.dir/conftest.one &&
2339 test -s conftest.dir/conftest.two
2340 then
2341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2342 break 3
2343 fi
2344 fi
2345 fi
2346 done
2347 done
2348 ;;
2349 esac
2350
2351 done
2352 IFS=$as_save_IFS
2353
2354 rm -rf conftest.one conftest.two conftest.dir
2355
2356 fi
2357 if test "${ac_cv_path_install+set}" = set; then
2358 INSTALL=$ac_cv_path_install
2359 else
2360 # As a last resort, use the slow shell script. Don't cache a
2361 # value for INSTALL within a source directory, because that will
2362 # break other packages using the cache if that directory is
2363 # removed, or if the value is a relative name.
2364 INSTALL=$ac_install_sh
2365 fi
2366 fi
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2368 $as_echo "$INSTALL" >&6; }
2369
2370 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2371 # It thinks the first close brace ends the variable substitution.
2372 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2373
2374 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2375
2376 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2379 $as_echo_n "checking whether build environment is sane... " >&6; }
2380 # Just in case
2381 sleep 1
2382 echo timestamp > conftest.file
2383 # Reject unsafe characters in $srcdir or the absolute working directory
2384 # name. Accept space and tab only in the latter.
2385 am_lf='
2386 '
2387 case `pwd` in
2388 *[\\\"\#\$\&\'\`$am_lf]*)
2389 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2390 esac
2391 case $srcdir in
2392 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2393 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2394 esac
2395
2396 # Do `set' in a subshell so we don't clobber the current shell's
2397 # arguments. Must try -L first in case configure is actually a
2398 # symlink; some systems play weird games with the mod time of symlinks
2399 # (eg FreeBSD returns the mod time of the symlink's containing
2400 # directory).
2401 if (
2402 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2403 if test "$*" = "X"; then
2404 # -L didn't work.
2405 set X `ls -t "$srcdir/configure" conftest.file`
2406 fi
2407 rm -f conftest.file
2408 if test "$*" != "X $srcdir/configure conftest.file" \
2409 && test "$*" != "X conftest.file $srcdir/configure"; then
2410
2411 # If neither matched, then we have a broken ls. This can happen
2412 # if, for instance, CONFIG_SHELL is bash and it inherits a
2413 # broken ls alias from the environment. This has actually
2414 # happened. Such a system could not be considered "sane".
2415 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2416 alias in your environment" "$LINENO" 5
2417 fi
2418
2419 test "$2" = conftest.file
2420 )
2421 then
2422 # Ok.
2423 :
2424 else
2425 as_fn_error "newly created file is older than distributed files!
2426 Check your system clock" "$LINENO" 5
2427 fi
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2429 $as_echo "yes" >&6; }
2430 test "$program_prefix" != NONE &&
2431 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2432 # Use a double $ so make ignores it.
2433 test "$program_suffix" != NONE &&
2434 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2435 # Double any \ or $.
2436 # By default was `s,x,x', remove it if useless.
2437 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2438 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2439
2440 # expand $ac_aux_dir to an absolute path
2441 am_aux_dir=`cd $ac_aux_dir && pwd`
2442
2443 if test x"${MISSING+set}" != xset; then
2444 case $am_aux_dir in
2445 *\ * | *\ *)
2446 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2447 *)
2448 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2449 esac
2450 fi
2451 # Use eval to expand $SHELL
2452 if eval "$MISSING --run true"; then
2453 am_missing_run="$MISSING --run "
2454 else
2455 am_missing_run=
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2457 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2458 fi
2459
2460 if test x"${install_sh}" != xset; then
2461 case $am_aux_dir in
2462 *\ * | *\ *)
2463 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2464 *)
2465 install_sh="\${SHELL} $am_aux_dir/install-sh"
2466 esac
2467 fi
2468
2469 # Installed binaries are usually stripped using `strip' when the user
2470 # run `make install-strip'. However `strip' might not be the right
2471 # tool to use in cross-compilation environments, therefore Automake
2472 # will honor the `STRIP' environment variable to overrule this program.
2473 if test "$cross_compiling" != no; then
2474 if test -n "$ac_tool_prefix"; then
2475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}strip; ac_word=$2
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if test "${ac_cv_prog_STRIP+set}" = set; then :
2480 $as_echo_n "(cached) " >&6
2481 else
2482 if test -n "$STRIP"; then
2483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2495 fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 STRIP=$ac_cv_prog_STRIP
2503 if test -n "$STRIP"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2505 $as_echo "$STRIP" >&6; }
2506 else
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508 $as_echo "no" >&6; }
2509 fi
2510
2511
2512 fi
2513 if test -z "$ac_cv_prog_STRIP"; then
2514 ac_ct_STRIP=$STRIP
2515 # Extract the first word of "strip", so it can be a program name with args.
2516 set dummy strip; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test -n "$ac_ct_STRIP"; then
2523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_ac_ct_STRIP="strip"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2543 if test -n "$ac_ct_STRIP"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2545 $as_echo "$ac_ct_STRIP" >&6; }
2546 else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551 if test "x$ac_ct_STRIP" = x; then
2552 STRIP=":"
2553 else
2554 case $cross_compiling:$ac_tool_warned in
2555 yes:)
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2558 ac_tool_warned=yes ;;
2559 esac
2560 STRIP=$ac_ct_STRIP
2561 fi
2562 else
2563 STRIP="$ac_cv_prog_STRIP"
2564 fi
2565
2566 fi
2567 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2568
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2570 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2571 if test -z "$MKDIR_P"; then
2572 if test "${ac_cv_path_mkdir+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_prog in mkdir gmkdir; do
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2583 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2584 'mkdir (GNU coreutils) '* | \
2585 'mkdir (coreutils) '* | \
2586 'mkdir (fileutils) '4.1*)
2587 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2588 break 3;;
2589 esac
2590 done
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596
2597 if test "${ac_cv_path_mkdir+set}" = set; then
2598 MKDIR_P="$ac_cv_path_mkdir -p"
2599 else
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for MKDIR_P within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 test -d ./--version && rmdir ./--version
2605 MKDIR_P="$ac_install_sh -d"
2606 fi
2607 fi
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2609 $as_echo "$MKDIR_P" >&6; }
2610
2611 mkdir_p="$MKDIR_P"
2612 case $mkdir_p in
2613 [\\/$]* | ?:[\\/]*) ;;
2614 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2615 esac
2616
2617 for ac_prog in gawk mawk nawk awk
2618 do
2619 # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy $ac_prog; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if test "${ac_cv_prog_AWK+set}" = set; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 if test -n "$AWK"; then
2627 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_AWK="$ac_prog"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 AWK=$ac_cv_prog_AWK
2647 if test -n "$AWK"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2649 $as_echo "$AWK" >&6; }
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653 fi
2654
2655
2656 test -n "$AWK" && break
2657 done
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2660 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2661 set x ${MAKE-make}
2662 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2663 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 cat >conftest.make <<\_ACEOF
2667 SHELL = /bin/sh
2668 all:
2669 @echo '@@@%%%=$(MAKE)=@@@%%%'
2670 _ACEOF
2671 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2672 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2673 *@@@%%%=?*=@@@%%%*)
2674 eval ac_cv_prog_make_${ac_make}_set=yes;;
2675 *)
2676 eval ac_cv_prog_make_${ac_make}_set=no;;
2677 esac
2678 rm -f conftest.make
2679 fi
2680 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2682 $as_echo "yes" >&6; }
2683 SET_MAKE=
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 SET_MAKE="MAKE=${MAKE-make}"
2688 fi
2689
2690 rm -rf .tst 2>/dev/null
2691 mkdir .tst 2>/dev/null
2692 if test -d .tst; then
2693 am__leading_dot=.
2694 else
2695 am__leading_dot=_
2696 fi
2697 rmdir .tst 2>/dev/null
2698
2699 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2700 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2701 # is not polluted with repeated "-I."
2702 am__isrc=' -I$(srcdir)'
2703 # test to see if srcdir already configured
2704 if test -f $srcdir/config.status; then
2705 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2706 fi
2707 fi
2708
2709 # test whether we have cygpath
2710 if test -z "$CYGPATH_W"; then
2711 if (cygpath --version) >/dev/null 2>/dev/null; then
2712 CYGPATH_W='cygpath -w'
2713 else
2714 CYGPATH_W=echo
2715 fi
2716 fi
2717
2718
2719 # Define the identity of the package.
2720 PACKAGE='libquadmath'
2721 VERSION='0.1'
2722
2723
2724 cat >>confdefs.h <<_ACEOF
2725 #define PACKAGE "$PACKAGE"
2726 _ACEOF
2727
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define VERSION "$VERSION"
2731 _ACEOF
2732
2733 # Some tools Automake needs.
2734
2735 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2736
2737
2738 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2739
2740
2741 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2742
2743
2744 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2745
2746
2747 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2748
2749 # We need awk for the "check" target. The system "awk" is bad on
2750 # some platforms.
2751 # Always define AMTAR for backward compatibility.
2752
2753 AMTAR=${AMTAR-"${am_missing_run}tar"}
2754
2755 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2756
2757
2758
2759
2760
2761
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2763 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2764 # Check whether --enable-version-specific-runtime-libs was given.
2765 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2766 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2767 yes) version_specific_libs=yes ;;
2768 no) version_specific_libs=no ;;
2769 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2770 esac
2771 else
2772 version_specific_libs=no
2773 fi
2774
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2776 $as_echo "$version_specific_libs" >&6; }
2777
2778
2779
2780 # See if makeinfo has been installed and is modern enough
2781 # that we can use it.
2782
2783 # Extract the first word of "makeinfo", so it can be a program name with args.
2784 set dummy makeinfo; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$MAKEINFO"; then
2791 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_MAKEINFO="makeinfo"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 MAKEINFO=$ac_cv_prog_MAKEINFO
2811 if test -n "$MAKEINFO"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
2813 $as_echo "$MAKEINFO" >&6; }
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2817 fi
2818
2819
2820 if test -n "$MAKEINFO"; then
2821 # Found it, now check the version.
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
2823 $as_echo_n "checking for modern makeinfo... " >&6; }
2824 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
2828 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2829
2830 case $ac_prog_version in
2831 '') gcc_cv_prog_makeinfo_modern=no;;
2832 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
2833 *) gcc_cv_prog_makeinfo_modern=no;;
2834 esac
2835
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
2838 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
2839 else
2840 gcc_cv_prog_makeinfo_modern=no
2841 fi
2842 if test $gcc_cv_prog_makeinfo_modern = no; then
2843 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
2844 fi
2845
2846 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
2847 BUILD_INFO_TRUE=
2848 BUILD_INFO_FALSE='#'
2849 else
2850 BUILD_INFO_TRUE='#'
2851 BUILD_INFO_FALSE=
2852 fi
2853
2854
2855
2856 # Configure libtool
2857 case `pwd` in
2858 *\ * | *\ *)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2860 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2861 esac
2862
2863
2864
2865 macro_version='2.2.7a'
2866 macro_revision='1.3134'
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880 ltmain="$ac_aux_dir/ltmain.sh"
2881
2882 # Backslashify metacharacters that are still active within
2883 # double-quoted strings.
2884 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2885
2886 # Same as above, but do not quote variable references.
2887 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2888
2889 # Sed substitution to delay expansion of an escaped shell variable in a
2890 # double_quote_subst'ed string.
2891 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2892
2893 # Sed substitution to delay expansion of an escaped single quote.
2894 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2895
2896 # Sed substitution to avoid accidental globbing in evaled expressions
2897 no_glob_subst='s/\*/\\\*/g'
2898
2899 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2900 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2901 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2902
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2904 $as_echo_n "checking how to print strings... " >&6; }
2905 # Test print first, because it will be a builtin if present.
2906 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2907 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2908 ECHO='print -r --'
2909 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2910 ECHO='printf %s\n'
2911 else
2912 # Use this function as a fallback that always works.
2913 func_fallback_echo ()
2914 {
2915 eval 'cat <<_LTECHO_EOF
2916 $1
2917 _LTECHO_EOF'
2918 }
2919 ECHO='func_fallback_echo'
2920 fi
2921
2922 # func_echo_all arg...
2923 # Invoke $ECHO with all args, space-separated.
2924 func_echo_all ()
2925 {
2926 $ECHO ""
2927 }
2928
2929 case "$ECHO" in
2930 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2931 $as_echo "printf" >&6; } ;;
2932 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2933 $as_echo "print -r" >&6; } ;;
2934 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2935 $as_echo "cat" >&6; } ;;
2936 esac
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951 DEPDIR="${am__leading_dot}deps"
2952
2953 ac_config_commands="$ac_config_commands depfiles"
2954
2955
2956 am_make=${MAKE-make}
2957 cat > confinc << 'END'
2958 am__doit:
2959 @echo this is the am__doit target
2960 .PHONY: am__doit
2961 END
2962 # If we don't find an include directive, just comment out the code.
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2964 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2965 am__include="#"
2966 am__quote=
2967 _am_result=none
2968 # First try GNU make style include.
2969 echo "include confinc" > confmf
2970 # Ignore all kinds of additional output from `make'.
2971 case `$am_make -s -f confmf 2> /dev/null` in #(
2972 *the\ am__doit\ target*)
2973 am__include=include
2974 am__quote=
2975 _am_result=GNU
2976 ;;
2977 esac
2978 # Now try BSD make style include.
2979 if test "$am__include" = "#"; then
2980 echo '.include "confinc"' > confmf
2981 case `$am_make -s -f confmf 2> /dev/null` in #(
2982 *the\ am__doit\ target*)
2983 am__include=.include
2984 am__quote="\""
2985 _am_result=BSD
2986 ;;
2987 esac
2988 fi
2989
2990
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2992 $as_echo "$_am_result" >&6; }
2993 rm -f confinc confmf
2994
2995 # Check whether --enable-dependency-tracking was given.
2996 if test "${enable_dependency_tracking+set}" = set; then :
2997 enableval=$enable_dependency_tracking;
2998 fi
2999
3000 if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3002 AMDEPBACKSLASH='\'
3003 fi
3004 if test "x$enable_dependency_tracking" != xno; then
3005 AMDEP_TRUE=
3006 AMDEP_FALSE='#'
3007 else
3008 AMDEP_TRUE='#'
3009 AMDEP_FALSE=
3010 fi
3011
3012
3013 ac_ext=c
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}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_CC+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$ac_cv_prog_CC"; then
3058 ac_ct_CC=$CC
3059 # Extract the first word of "gcc", so it can be a program name with args.
3060 set dummy gcc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$ac_ct_CC"; then
3067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_ac_ct_CC="gcc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087 if test -n "$ac_ct_CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3089 $as_echo "$ac_ct_CC" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095 if test "x$ac_ct_CC" = x; then
3096 CC=""
3097 else
3098 case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3103 esac
3104 CC=$ac_ct_CC
3105 fi
3106 else
3107 CC="$ac_cv_prog_CC"
3108 fi
3109
3110 if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_CC="${ac_tool_prefix}cc"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3132 fi
3133 done
3134 done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 fi
3150 fi
3151 if test -z "$CC"; then
3152 # Extract the first word of "cc", so it can be a program name with args.
3153 set dummy cc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_CC+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 ac_prog_rejected=no
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3165 do
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3171 ac_prog_rejected=yes
3172 continue
3173 fi
3174 ac_cv_prog_CC="cc"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 if test $ac_prog_rejected = yes; then
3183 # We found a bogon in the path, so make sure we never use it.
3184 set dummy $ac_cv_prog_CC
3185 shift
3186 if test $# != 0; then
3187 # We chose a different compiler from the bogus one.
3188 # However, it has the same basename, so the bogon will be chosen
3189 # first if we set CC to just the basename; use the full file name.
3190 shift
3191 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3192 fi
3193 fi
3194 fi
3195 fi
3196 CC=$ac_cv_prog_CC
3197 if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199 $as_echo "$CC" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205
3206 fi
3207 if test -z "$CC"; then
3208 if test -n "$ac_tool_prefix"; then
3209 for ac_prog in cl.exe
3210 do
3211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if test "${ac_cv_prog_CC+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 fi
3237 fi
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248 test -n "$CC" && break
3249 done
3250 fi
3251 if test -z "$CC"; then
3252 ac_ct_CC=$CC
3253 for ac_prog in cl.exe
3254 do
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256 set dummy $ac_prog; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$ac_ct_CC"; then
3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272 ac_cv_prog_ac_ct_CC="$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283 if test -n "$ac_ct_CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3285 $as_echo "$ac_ct_CC" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292 test -n "$ac_ct_CC" && break
3293 done
3294
3295 if test "x$ac_ct_CC" = x; then
3296 CC=""
3297 else
3298 case $cross_compiling:$ac_tool_warned in
3299 yes:)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302 ac_tool_warned=yes ;;
3303 esac
3304 CC=$ac_ct_CC
3305 fi
3306 fi
3307
3308 fi
3309
3310
3311 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error "no acceptable C compiler found in \$PATH
3314 See \`config.log' for more details." "$LINENO" 5; }
3315
3316 # Provide some information about the compiler.
3317 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3318 set X $ac_compile
3319 ac_compiler=$2
3320 for ac_option in --version -v -V -qversion; do
3321 { { ac_try="$ac_compiler $ac_option >&5"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3329 ac_status=$?
3330 if test -s conftest.err; then
3331 sed '10a\
3332 ... rest of stderr output deleted ...
3333 10q' conftest.err >conftest.er1
3334 cat conftest.er1 >&5
3335 rm -f conftest.er1 conftest.err
3336 fi
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }
3339 done
3340
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343
3344 int
3345 main ()
3346 {
3347
3348 ;
3349 return 0;
3350 }
3351 _ACEOF
3352 # FIXME: Cleanup?
3353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3354 (eval $ac_link) 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; then :
3358 gcc_no_link=no
3359 else
3360 gcc_no_link=yes
3361 fi
3362 if test x$gcc_no_link = xyes; then
3363 # Setting cross_compile will disable run tests; it will
3364 # also disable AC_CHECK_FILE but that's generally
3365 # correct if we can't link.
3366 cross_compiling=yes
3367 EXEEXT=
3368 else
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3371
3372 int
3373 main ()
3374 {
3375
3376 ;
3377 return 0;
3378 }
3379 _ACEOF
3380 ac_clean_files_save=$ac_clean_files
3381 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3382 # Try to create an executable without -o first, disregard a.out.
3383 # It will help us diagnose broken compilers, and finding out an intuition
3384 # of exeext.
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3386 $as_echo_n "checking for C compiler default output file name... " >&6; }
3387 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3388
3389 # The possible output files:
3390 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3391
3392 ac_rmfiles=
3393 for ac_file in $ac_files
3394 do
3395 case $ac_file in
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3397 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3398 esac
3399 done
3400 rm -f $ac_rmfiles
3401
3402 if { { ac_try="$ac_link_default"
3403 case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_link_default") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; then :
3413 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3414 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3415 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3416 # so that the user can short-circuit this test for compilers unknown to
3417 # Autoconf.
3418 for ac_file in $ac_files ''
3419 do
3420 test -f "$ac_file" || continue
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3423 ;;
3424 [ab].out )
3425 # We found the default executable, but exeext='' is most
3426 # certainly right.
3427 break;;
3428 *.* )
3429 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3430 then :; else
3431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432 fi
3433 # We set ac_cv_exeext here because the later test for it is not
3434 # safe: cross compilers may not add the suffix if given an `-o'
3435 # argument, so we may need to know it at that point already.
3436 # Even if this section looks crufty: it has the advantage of
3437 # actually working.
3438 break;;
3439 * )
3440 break;;
3441 esac
3442 done
3443 test "$ac_cv_exeext" = no && ac_cv_exeext=
3444
3445 else
3446 ac_file=''
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3449 $as_echo "$ac_file" >&6; }
3450 if test -z "$ac_file"; then :
3451 $as_echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3453
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 { as_fn_set_status 77
3457 as_fn_error "C compiler cannot create executables
3458 See \`config.log' for more details." "$LINENO" 5; }; }
3459 fi
3460 ac_exeext=$ac_cv_exeext
3461
3462 # Check that the compiler produces executables we can run. If not, either
3463 # the compiler is broken, or we cross compile.
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3465 $as_echo_n "checking whether the C compiler works... " >&6; }
3466 # If not cross compiling, check that we can run a simple program.
3467 if test "$cross_compiling" != yes; then
3468 if { ac_try='./$ac_file'
3469 { { case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_try") 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; }; then
3479 cross_compiling=no
3480 else
3481 if test "$cross_compiling" = maybe; then
3482 cross_compiling=yes
3483 else
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error "cannot run C compiled programs.
3487 If you meant to cross compile, use \`--host'.
3488 See \`config.log' for more details." "$LINENO" 5; }
3489 fi
3490 fi
3491 fi
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493 $as_echo "yes" >&6; }
3494
3495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3496 ac_clean_files=$ac_clean_files_save
3497 # Check that the compiler produces executables we can run. If not, either
3498 # the compiler is broken, or we cross compile.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500 $as_echo_n "checking whether we are cross compiling... " >&6; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3502 $as_echo "$cross_compiling" >&6; }
3503
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3505 $as_echo_n "checking for suffix of executables... " >&6; }
3506 if { { ac_try="$ac_link"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3519 # work properly (i.e., refer to `conftest.exe'), while it won't with
3520 # `rm'.
3521 for ac_file in conftest.exe conftest conftest.*; do
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526 break;;
3527 * ) break;;
3528 esac
3529 done
3530 else
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error "cannot compute suffix of executables: cannot compile and link
3534 See \`config.log' for more details." "$LINENO" 5; }
3535 fi
3536 rm -f conftest$ac_cv_exeext
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3538 $as_echo "$ac_cv_exeext" >&6; }
3539
3540 rm -f conftest.$ac_ext
3541 EXEEXT=$ac_cv_exeext
3542 ac_exeext=$EXEEXT
3543 fi
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3545 $as_echo_n "checking for suffix of object files... " >&6; }
3546 if test "${ac_cv_objext+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551
3552 int
3553 main ()
3554 {
3555
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 rm -f conftest.o conftest.obj
3561 if { { ac_try="$ac_compile"
3562 case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_compile") 2>&5
3569 ac_status=$?
3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }; then :
3572 for ac_file in conftest.o conftest.obj conftest.*; do
3573 test -f "$ac_file" || continue;
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3577 break;;
3578 esac
3579 done
3580 else
3581 $as_echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error "cannot compute suffix of object files: cannot compile
3587 See \`config.log' for more details." "$LINENO" 5; }
3588 fi
3589 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3592 $as_echo "$ac_cv_objext" >&6; }
3593 OBJEXT=$ac_cv_objext
3594 ac_objext=$OBJEXT
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3596 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3597 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602
3603 int
3604 main ()
3605 {
3606 #ifndef __GNUC__
3607 choke me
3608 #endif
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_compiler_gnu=yes
3616 else
3617 ac_compiler_gnu=no
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3621
3622 fi
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3624 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3625 if test $ac_compiler_gnu = yes; then
3626 GCC=yes
3627 else
3628 GCC=
3629 fi
3630 ac_test_CFLAGS=${CFLAGS+set}
3631 ac_save_CFLAGS=$CFLAGS
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3633 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3634 if test "${ac_cv_prog_cc_g+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 ac_save_c_werror_flag=$ac_c_werror_flag
3638 ac_c_werror_flag=yes
3639 ac_cv_prog_cc_g=no
3640 CFLAGS="-g"
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643
3644 int
3645 main ()
3646 {
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_cv_prog_cc_g=yes
3654 else
3655 CFLAGS=""
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658
3659 int
3660 main ()
3661 {
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 if ac_fn_c_try_compile "$LINENO"; then :
3668
3669 else
3670 ac_c_werror_flag=$ac_save_c_werror_flag
3671 CFLAGS="-g"
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674
3675 int
3676 main ()
3677 {
3678
3679 ;
3680 return 0;
3681 }
3682 _ACEOF
3683 if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_cv_prog_cc_g=yes
3685 fi
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 fi
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 fi
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 ac_c_werror_flag=$ac_save_c_werror_flag
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3694 $as_echo "$ac_cv_prog_cc_g" >&6; }
3695 if test "$ac_test_CFLAGS" = set; then
3696 CFLAGS=$ac_save_CFLAGS
3697 elif test $ac_cv_prog_cc_g = yes; then
3698 if test "$GCC" = yes; then
3699 CFLAGS="-g -O2"
3700 else
3701 CFLAGS="-g"
3702 fi
3703 else
3704 if test "$GCC" = yes; then
3705 CFLAGS="-O2"
3706 else
3707 CFLAGS=
3708 fi
3709 fi
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3711 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3712 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 ac_cv_prog_cc_c89=no
3716 ac_save_CC=$CC
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719 #include <stdarg.h>
3720 #include <stdio.h>
3721 #include <sys/types.h>
3722 #include <sys/stat.h>
3723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3724 struct buf { int x; };
3725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3726 static char *e (p, i)
3727 char **p;
3728 int i;
3729 {
3730 return p[i];
3731 }
3732 static char *f (char * (*g) (char **, int), char **p, ...)
3733 {
3734 char *s;
3735 va_list v;
3736 va_start (v,p);
3737 s = g (p, va_arg (v,int));
3738 va_end (v);
3739 return s;
3740 }
3741
3742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3743 function prototypes and stuff, but not '\xHH' hex character constants.
3744 These don't provoke an error unfortunately, instead are silently treated
3745 as 'x'. The following induces an error, until -std is added to get
3746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3747 array size at least. It's necessary to write '\x00'==0 to get something
3748 that's true only with -std. */
3749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3750
3751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3752 inside strings and character constants. */
3753 #define FOO(x) 'x'
3754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3755
3756 int test (int i, double x);
3757 struct s1 {int (*f) (int a);};
3758 struct s2 {int (*f) (double a);};
3759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3760 int argc;
3761 char **argv;
3762 int
3763 main ()
3764 {
3765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3772 do
3773 CC="$ac_save_CC $ac_arg"
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775 ac_cv_prog_cc_c89=$ac_arg
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext
3778 test "x$ac_cv_prog_cc_c89" != "xno" && break
3779 done
3780 rm -f conftest.$ac_ext
3781 CC=$ac_save_CC
3782
3783 fi
3784 # AC_CACHE_VAL
3785 case "x$ac_cv_prog_cc_c89" in
3786 x)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3788 $as_echo "none needed" >&6; } ;;
3789 xno)
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3791 $as_echo "unsupported" >&6; } ;;
3792 *)
3793 CC="$CC $ac_cv_prog_cc_c89"
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3795 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3796 esac
3797 if test "x$ac_cv_prog_cc_c89" != xno; then :
3798
3799 fi
3800
3801 ac_ext=c
3802 ac_cpp='$CPP $CPPFLAGS'
3803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807 depcc="$CC" am_compiler_list=
3808
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3810 $as_echo_n "checking dependency style of $depcc... " >&6; }
3811 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3812 $as_echo_n "(cached) " >&6
3813 else
3814 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3815 # We make a subdir and do the tests there. Otherwise we can end up
3816 # making bogus files that we don't know about and never remove. For
3817 # instance it was reported that on HP-UX the gcc test will end up
3818 # making a dummy file named `D' -- because `-MD' means `put the output
3819 # in D'.
3820 mkdir conftest.dir
3821 # Copy depcomp to subdir because otherwise we won't find it if we're
3822 # using a relative directory.
3823 cp "$am_depcomp" conftest.dir
3824 cd conftest.dir
3825 # We will build objects and dependencies in a subdirectory because
3826 # it helps to detect inapplicable dependency modes. For instance
3827 # both Tru64's cc and ICC support -MD to output dependencies as a
3828 # side effect of compilation, but ICC will put the dependencies in
3829 # the current directory while Tru64 will put them in the object
3830 # directory.
3831 mkdir sub
3832
3833 am_cv_CC_dependencies_compiler_type=none
3834 if test "$am_compiler_list" = ""; then
3835 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3836 fi
3837 am__universal=false
3838 case " $depcc " in #(
3839 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3840 esac
3841
3842 for depmode in $am_compiler_list; do
3843 # Setup a source with many dependencies, because some compilers
3844 # like to wrap large dependency lists on column 80 (with \), and
3845 # we should not choose a depcomp mode which is confused by this.
3846 #
3847 # We need to recreate these files for each test, as the compiler may
3848 # overwrite some of them when testing with obscure command lines.
3849 # This happens at least with the AIX C compiler.
3850 : > sub/conftest.c
3851 for i in 1 2 3 4 5 6; do
3852 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3853 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3854 # Solaris 8's {/usr,}/bin/sh.
3855 touch sub/conftst$i.h
3856 done
3857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3858
3859 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3860 # mode. It turns out that the SunPro C++ compiler does not properly
3861 # handle `-M -o', and we need to detect this. Also, some Intel
3862 # versions had trouble with output in subdirs
3863 am__obj=sub/conftest.${OBJEXT-o}
3864 am__minus_obj="-o $am__obj"
3865 case $depmode in
3866 gcc)
3867 # This depmode causes a compiler race in universal mode.
3868 test "$am__universal" = false || continue
3869 ;;
3870 nosideeffect)
3871 # after this tag, mechanisms are not by side-effect, so they'll
3872 # only be used when explicitly requested
3873 if test "x$enable_dependency_tracking" = xyes; then
3874 continue
3875 else
3876 break
3877 fi
3878 ;;
3879 msvisualcpp | msvcmsys)
3880 # This compiler won't grok `-c -o', but also, the minuso test has
3881 # not run yet. These depmodes are late enough in the game, and
3882 # so weak that their functioning should not be impacted.
3883 am__obj=conftest.${OBJEXT-o}
3884 am__minus_obj=
3885 ;;
3886 none) break ;;
3887 esac
3888 if depmode=$depmode \
3889 source=sub/conftest.c object=$am__obj \
3890 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3891 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3892 >/dev/null 2>conftest.err &&
3893 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3894 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3895 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3896 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3897 # icc doesn't choke on unknown options, it will just issue warnings
3898 # or remarks (even with -Werror). So we grep stderr for any message
3899 # that says an option was ignored or not supported.
3900 # When given -MP, icc 7.0 and 7.1 complain thusly:
3901 # icc: Command line warning: ignoring option '-M'; no argument required
3902 # The diagnosis changed in icc 8.0:
3903 # icc: Command line remark: option '-MP' not supported
3904 if (grep 'ignoring option' conftest.err ||
3905 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3906 am_cv_CC_dependencies_compiler_type=$depmode
3907 break
3908 fi
3909 fi
3910 done
3911
3912 cd ..
3913 rm -rf conftest.dir
3914 else
3915 am_cv_CC_dependencies_compiler_type=none
3916 fi
3917
3918 fi
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3920 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3921 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3922
3923 if
3924 test "x$enable_dependency_tracking" != xno \
3925 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3926 am__fastdepCC_TRUE=
3927 am__fastdepCC_FALSE='#'
3928 else
3929 am__fastdepCC_TRUE='#'
3930 am__fastdepCC_FALSE=
3931 fi
3932
3933
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3935 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3936 if test "${ac_cv_path_SED+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3940 for ac_i in 1 2 3 4 5 6 7; do
3941 ac_script="$ac_script$as_nl$ac_script"
3942 done
3943 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3944 { ac_script=; unset ac_script;}
3945 if test -z "$SED"; then
3946 ac_path_SED_found=false
3947 # Loop through the user's path and test for each of PROGNAME-LIST
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_prog in sed gsed; do
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3956 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3957 # Check for GNU ac_path_SED and select it if it is found.
3958 # Check for GNU $ac_path_SED
3959 case `"$ac_path_SED" --version 2>&1` in
3960 *GNU*)
3961 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3962 *)
3963 ac_count=0
3964 $as_echo_n 0123456789 >"conftest.in"
3965 while :
3966 do
3967 cat "conftest.in" "conftest.in" >"conftest.tmp"
3968 mv "conftest.tmp" "conftest.in"
3969 cp "conftest.in" "conftest.nl"
3970 $as_echo '' >> "conftest.nl"
3971 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3973 as_fn_arith $ac_count + 1 && ac_count=$as_val
3974 if test $ac_count -gt ${ac_path_SED_max-0}; then
3975 # Best one so far, save it but keep looking for a better one
3976 ac_cv_path_SED="$ac_path_SED"
3977 ac_path_SED_max=$ac_count
3978 fi
3979 # 10*(2^10) chars as input seems more than enough
3980 test $ac_count -gt 10 && break
3981 done
3982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3983 esac
3984
3985 $ac_path_SED_found && break 3
3986 done
3987 done
3988 done
3989 IFS=$as_save_IFS
3990 if test -z "$ac_cv_path_SED"; then
3991 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3992 fi
3993 else
3994 ac_cv_path_SED=$SED
3995 fi
3996
3997 fi
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3999 $as_echo "$ac_cv_path_SED" >&6; }
4000 SED="$ac_cv_path_SED"
4001 rm -f conftest.sed
4002
4003 test -z "$SED" && SED=sed
4004 Xsed="$SED -e 1s/^X//"
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4017 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4018 if test "${ac_cv_path_GREP+set}" = set; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 if test -z "$GREP"; then
4022 ac_path_GREP_found=false
4023 # Loop through the user's path and test for each of PROGNAME-LIST
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_prog in grep ggrep; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4032 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4033 # Check for GNU ac_path_GREP and select it if it is found.
4034 # Check for GNU $ac_path_GREP
4035 case `"$ac_path_GREP" --version 2>&1` in
4036 *GNU*)
4037 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4038 *)
4039 ac_count=0
4040 $as_echo_n 0123456789 >"conftest.in"
4041 while :
4042 do
4043 cat "conftest.in" "conftest.in" >"conftest.tmp"
4044 mv "conftest.tmp" "conftest.in"
4045 cp "conftest.in" "conftest.nl"
4046 $as_echo 'GREP' >> "conftest.nl"
4047 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4049 as_fn_arith $ac_count + 1 && ac_count=$as_val
4050 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4051 # Best one so far, save it but keep looking for a better one
4052 ac_cv_path_GREP="$ac_path_GREP"
4053 ac_path_GREP_max=$ac_count
4054 fi
4055 # 10*(2^10) chars as input seems more than enough
4056 test $ac_count -gt 10 && break
4057 done
4058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059 esac
4060
4061 $ac_path_GREP_found && break 3
4062 done
4063 done
4064 done
4065 IFS=$as_save_IFS
4066 if test -z "$ac_cv_path_GREP"; then
4067 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4068 fi
4069 else
4070 ac_cv_path_GREP=$GREP
4071 fi
4072
4073 fi
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4075 $as_echo "$ac_cv_path_GREP" >&6; }
4076 GREP="$ac_cv_path_GREP"
4077
4078
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4080 $as_echo_n "checking for egrep... " >&6; }
4081 if test "${ac_cv_path_EGREP+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4085 then ac_cv_path_EGREP="$GREP -E"
4086 else
4087 if test -z "$EGREP"; then
4088 ac_path_EGREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in egrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4098 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4099 # Check for GNU ac_path_EGREP and select it if it is found.
4100 # Check for GNU $ac_path_EGREP
4101 case `"$ac_path_EGREP" --version 2>&1` in
4102 *GNU*)
4103 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4104 *)
4105 ac_count=0
4106 $as_echo_n 0123456789 >"conftest.in"
4107 while :
4108 do
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 $as_echo 'EGREP' >> "conftest.nl"
4113 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 as_fn_arith $ac_count + 1 && ac_count=$as_val
4116 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_EGREP="$ac_path_EGREP"
4119 ac_path_EGREP_max=$ac_count
4120 fi
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4123 done
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4126
4127 $ac_path_EGREP_found && break 3
4128 done
4129 done
4130 done
4131 IFS=$as_save_IFS
4132 if test -z "$ac_cv_path_EGREP"; then
4133 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4134 fi
4135 else
4136 ac_cv_path_EGREP=$EGREP
4137 fi
4138
4139 fi
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4142 $as_echo "$ac_cv_path_EGREP" >&6; }
4143 EGREP="$ac_cv_path_EGREP"
4144
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4147 $as_echo_n "checking for fgrep... " >&6; }
4148 if test "${ac_cv_path_FGREP+set}" = set; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4152 then ac_cv_path_FGREP="$GREP -F"
4153 else
4154 if test -z "$FGREP"; then
4155 ac_path_FGREP_found=false
4156 # Loop through the user's path and test for each of PROGNAME-LIST
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4159 do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_prog in fgrep; do
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4165 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4166 # Check for GNU ac_path_FGREP and select it if it is found.
4167 # Check for GNU $ac_path_FGREP
4168 case `"$ac_path_FGREP" --version 2>&1` in
4169 *GNU*)
4170 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4171 *)
4172 ac_count=0
4173 $as_echo_n 0123456789 >"conftest.in"
4174 while :
4175 do
4176 cat "conftest.in" "conftest.in" >"conftest.tmp"
4177 mv "conftest.tmp" "conftest.in"
4178 cp "conftest.in" "conftest.nl"
4179 $as_echo 'FGREP' >> "conftest.nl"
4180 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4182 as_fn_arith $ac_count + 1 && ac_count=$as_val
4183 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4184 # Best one so far, save it but keep looking for a better one
4185 ac_cv_path_FGREP="$ac_path_FGREP"
4186 ac_path_FGREP_max=$ac_count
4187 fi
4188 # 10*(2^10) chars as input seems more than enough
4189 test $ac_count -gt 10 && break
4190 done
4191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4192 esac
4193
4194 $ac_path_FGREP_found && break 3
4195 done
4196 done
4197 done
4198 IFS=$as_save_IFS
4199 if test -z "$ac_cv_path_FGREP"; then
4200 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4201 fi
4202 else
4203 ac_cv_path_FGREP=$FGREP
4204 fi
4205
4206 fi
4207 fi
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4209 $as_echo "$ac_cv_path_FGREP" >&6; }
4210 FGREP="$ac_cv_path_FGREP"
4211
4212
4213 test -z "$GREP" && GREP=grep
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233 # Check whether --with-gnu-ld was given.
4234 if test "${with_gnu_ld+set}" = set; then :
4235 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4236 else
4237 with_gnu_ld=no
4238 fi
4239
4240 ac_prog=ld
4241 if test "$GCC" = yes; then
4242 # Check if gcc -print-prog-name=ld gives a path.
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4244 $as_echo_n "checking for ld used by $CC... " >&6; }
4245 case $host in
4246 *-*-mingw*)
4247 # gcc leaves a trailing carriage return which upsets mingw
4248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4249 *)
4250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4251 esac
4252 case $ac_prog in
4253 # Accept absolute paths.
4254 [\\/]* | ?:[\\/]*)
4255 re_direlt='/[^/][^/]*/\.\./'
4256 # Canonicalize the pathname of ld
4257 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4258 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4259 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4260 done
4261 test -z "$LD" && LD="$ac_prog"
4262 ;;
4263 "")
4264 # If it fails, then pretend we aren't using GCC.
4265 ac_prog=ld
4266 ;;
4267 *)
4268 # If it is relative, then search for the first ld in PATH.
4269 with_gnu_ld=unknown
4270 ;;
4271 esac
4272 elif test "$with_gnu_ld" = yes; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4274 $as_echo_n "checking for GNU ld... " >&6; }
4275 else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4277 $as_echo_n "checking for non-GNU ld... " >&6; }
4278 fi
4279 if test "${lt_cv_path_LD+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if test -z "$LD"; then
4283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4284 for ac_dir in $PATH; do
4285 IFS="$lt_save_ifs"
4286 test -z "$ac_dir" && ac_dir=.
4287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4288 lt_cv_path_LD="$ac_dir/$ac_prog"
4289 # Check to see if the program is GNU ld. I'd rather use --version,
4290 # but apparently some variants of GNU ld only accept -v.
4291 # Break only if it was the GNU/non-GNU ld that we prefer.
4292 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4293 *GNU* | *'with BFD'*)
4294 test "$with_gnu_ld" != no && break
4295 ;;
4296 *)
4297 test "$with_gnu_ld" != yes && break
4298 ;;
4299 esac
4300 fi
4301 done
4302 IFS="$lt_save_ifs"
4303 else
4304 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4305 fi
4306 fi
4307
4308 LD="$lt_cv_path_LD"
4309 if test -n "$LD"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4311 $as_echo "$LD" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315 fi
4316 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4318 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4319 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4323 case `$LD -v 2>&1 </dev/null` in
4324 *GNU* | *'with BFD'*)
4325 lt_cv_prog_gnu_ld=yes
4326 ;;
4327 *)
4328 lt_cv_prog_gnu_ld=no
4329 ;;
4330 esac
4331 fi
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4333 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4334 with_gnu_ld=$lt_cv_prog_gnu_ld
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4345 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4346 if test "${lt_cv_path_NM+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if test -n "$NM"; then
4350 # Let the user override the test.
4351 lt_cv_path_NM="$NM"
4352 else
4353 lt_nm_to_check="${ac_tool_prefix}nm"
4354 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4355 lt_nm_to_check="$lt_nm_to_check nm"
4356 fi
4357 for lt_tmp_nm in $lt_nm_to_check; do
4358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4359 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4360 IFS="$lt_save_ifs"
4361 test -z "$ac_dir" && ac_dir=.
4362 tmp_nm="$ac_dir/$lt_tmp_nm"
4363 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4364 # Check to see if the nm accepts a BSD-compat flag.
4365 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4366 # nm: unknown option "B" ignored
4367 # Tru64's nm complains that /dev/null is an invalid object file
4368 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4369 */dev/null* | *'Invalid file or object type'*)
4370 lt_cv_path_NM="$tmp_nm -B"
4371 break
4372 ;;
4373 *)
4374 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4375 */dev/null*)
4376 lt_cv_path_NM="$tmp_nm -p"
4377 break
4378 ;;
4379 *)
4380 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4381 continue # so that we can try to find one that supports BSD flags
4382 ;;
4383 esac
4384 ;;
4385 esac
4386 fi
4387 done
4388 IFS="$lt_save_ifs"
4389 done
4390 : ${lt_cv_path_NM=no}
4391 fi
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4394 $as_echo "$lt_cv_path_NM" >&6; }
4395 if test "$lt_cv_path_NM" != "no"; then
4396 NM="$lt_cv_path_NM"
4397 else
4398 # Didn't find any BSD compatible name lister, look for dumpbin.
4399 if test -n "$DUMPBIN"; then :
4400 # Let the user override the test.
4401 else
4402 if test -n "$ac_tool_prefix"; then
4403 for ac_prog in dumpbin "link -dump"
4404 do
4405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test -n "$DUMPBIN"; then
4413 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426 done
4427 done
4428 IFS=$as_save_IFS
4429
4430 fi
4431 fi
4432 DUMPBIN=$ac_cv_prog_DUMPBIN
4433 if test -n "$DUMPBIN"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4435 $as_echo "$DUMPBIN" >&6; }
4436 else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4439 fi
4440
4441
4442 test -n "$DUMPBIN" && break
4443 done
4444 fi
4445 if test -z "$DUMPBIN"; then
4446 ac_ct_DUMPBIN=$DUMPBIN
4447 for ac_prog in dumpbin "link -dump"
4448 do
4449 # Extract the first word of "$ac_prog", so it can be a program name with args.
4450 set dummy $ac_prog; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 if test -n "$ac_ct_DUMPBIN"; then
4457 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4458 else
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4469 fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474 fi
4475 fi
4476 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4477 if test -n "$ac_ct_DUMPBIN"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4479 $as_echo "$ac_ct_DUMPBIN" >&6; }
4480 else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4483 fi
4484
4485
4486 test -n "$ac_ct_DUMPBIN" && break
4487 done
4488
4489 if test "x$ac_ct_DUMPBIN" = x; then
4490 DUMPBIN=":"
4491 else
4492 case $cross_compiling:$ac_tool_warned in
4493 yes:)
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496 ac_tool_warned=yes ;;
4497 esac
4498 DUMPBIN=$ac_ct_DUMPBIN
4499 fi
4500 fi
4501
4502 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4503 *COFF*)
4504 DUMPBIN="$DUMPBIN -symbols"
4505 ;;
4506 *)
4507 DUMPBIN=:
4508 ;;
4509 esac
4510 fi
4511
4512 if test "$DUMPBIN" != ":"; then
4513 NM="$DUMPBIN"
4514 fi
4515 fi
4516 test -z "$NM" && NM=nm
4517
4518
4519
4520
4521
4522
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4524 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4525 if test "${lt_cv_nm_interface+set}" = set; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 lt_cv_nm_interface="BSD nm"
4529 echo "int some_variable = 0;" > conftest.$ac_ext
4530 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4531 (eval "$ac_compile" 2>conftest.err)
4532 cat conftest.err >&5
4533 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4534 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4535 cat conftest.err >&5
4536 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4537 cat conftest.out >&5
4538 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4539 lt_cv_nm_interface="MS dumpbin"
4540 fi
4541 rm -f conftest*
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4544 $as_echo "$lt_cv_nm_interface" >&6; }
4545
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4547 $as_echo_n "checking whether ln -s works... " >&6; }
4548 LN_S=$as_ln_s
4549 if test "$LN_S" = "ln -s"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551 $as_echo "yes" >&6; }
4552 else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4554 $as_echo "no, using $LN_S" >&6; }
4555 fi
4556
4557 # find the maximum length of command line arguments
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4559 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4560 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 i=0
4564 teststring="ABCD"
4565
4566 case $build_os in
4567 msdosdjgpp*)
4568 # On DJGPP, this test can blow up pretty badly due to problems in libc
4569 # (any single argument exceeding 2000 bytes causes a buffer overrun
4570 # during glob expansion). Even if it were fixed, the result of this
4571 # check would be larger than it should be.
4572 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4573 ;;
4574
4575 gnu*)
4576 # Under GNU Hurd, this test is not required because there is
4577 # no limit to the length of command line arguments.
4578 # Libtool will interpret -1 as no limit whatsoever
4579 lt_cv_sys_max_cmd_len=-1;
4580 ;;
4581
4582 cygwin* | mingw* | cegcc*)
4583 # On Win9x/ME, this test blows up -- it succeeds, but takes
4584 # about 5 minutes as the teststring grows exponentially.
4585 # Worse, since 9x/ME are not pre-emptively multitasking,
4586 # you end up with a "frozen" computer, even though with patience
4587 # the test eventually succeeds (with a max line length of 256k).
4588 # Instead, let's just punt: use the minimum linelength reported by
4589 # all of the supported platforms: 8192 (on NT/2K/XP).
4590 lt_cv_sys_max_cmd_len=8192;
4591 ;;
4592
4593 mint*)
4594 # On MiNT this can take a long time and run out of memory.
4595 lt_cv_sys_max_cmd_len=8192;
4596 ;;
4597
4598 amigaos*)
4599 # On AmigaOS with pdksh, this test takes hours, literally.
4600 # So we just punt and use a minimum line length of 8192.
4601 lt_cv_sys_max_cmd_len=8192;
4602 ;;
4603
4604 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4605 # This has been around since 386BSD, at least. Likely further.
4606 if test -x /sbin/sysctl; then
4607 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4608 elif test -x /usr/sbin/sysctl; then
4609 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4610 else
4611 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4612 fi
4613 # And add a safety zone
4614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4616 ;;
4617
4618 interix*)
4619 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4620 lt_cv_sys_max_cmd_len=196608
4621 ;;
4622
4623 osf*)
4624 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4625 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4626 # nice to cause kernel panics so lets avoid the loop below.
4627 # First set a reasonable default.
4628 lt_cv_sys_max_cmd_len=16384
4629 #
4630 if test -x /sbin/sysconfig; then
4631 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4632 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4633 esac
4634 fi
4635 ;;
4636 sco3.2v5*)
4637 lt_cv_sys_max_cmd_len=102400
4638 ;;
4639 sysv5* | sco5v6* | sysv4.2uw2*)
4640 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4641 if test -n "$kargmax"; then
4642 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4643 else
4644 lt_cv_sys_max_cmd_len=32768
4645 fi
4646 ;;
4647 *)
4648 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4649 if test -n "$lt_cv_sys_max_cmd_len"; then
4650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4652 else
4653 # Make teststring a little bigger before we do anything with it.
4654 # a 1K string should be a reasonable start.
4655 for i in 1 2 3 4 5 6 7 8 ; do
4656 teststring=$teststring$teststring
4657 done
4658 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4659 # If test is not a shell built-in, we'll probably end up computing a
4660 # maximum length that is only half of the actual maximum length, but
4661 # we can't tell.
4662 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4663 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4664 test $i != 17 # 1/2 MB should be enough
4665 do
4666 i=`expr $i + 1`
4667 teststring=$teststring$teststring
4668 done
4669 # Only check the string length outside the loop.
4670 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4671 teststring=
4672 # Add a significant safety factor because C++ compilers can tack on
4673 # massive amounts of additional arguments before passing them to the
4674 # linker. It appears as though 1/2 is a usable value.
4675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4676 fi
4677 ;;
4678 esac
4679
4680 fi
4681
4682 if test -n $lt_cv_sys_max_cmd_len ; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4684 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4685 else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4687 $as_echo "none" >&6; }
4688 fi
4689 max_cmd_len=$lt_cv_sys_max_cmd_len
4690
4691
4692
4693
4694
4695
4696 : ${CP="cp -f"}
4697 : ${MV="mv -f"}
4698 : ${RM="rm -f"}
4699
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4701 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4702 # Try some XSI features
4703 xsi_shell=no
4704 ( _lt_dummy="a/b/c"
4705 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4706 = c,a/b,, \
4707 && eval 'test $(( 1 + 1 )) -eq 2 \
4708 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4709 && xsi_shell=yes
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4711 $as_echo "$xsi_shell" >&6; }
4712
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4715 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4716 lt_shell_append=no
4717 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4718 >/dev/null 2>&1 \
4719 && lt_shell_append=yes
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4721 $as_echo "$lt_shell_append" >&6; }
4722
4723
4724 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4725 lt_unset=unset
4726 else
4727 lt_unset=false
4728 fi
4729
4730
4731
4732
4733
4734 # test EBCDIC or ASCII
4735 case `echo X|tr X '\101'` in
4736 A) # ASCII based system
4737 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4738 lt_SP2NL='tr \040 \012'
4739 lt_NL2SP='tr \015\012 \040\040'
4740 ;;
4741 *) # EBCDIC based system
4742 lt_SP2NL='tr \100 \n'
4743 lt_NL2SP='tr \r\n \100\100'
4744 ;;
4745 esac
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4756 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4757 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 lt_cv_ld_reload_flag='-r'
4761 fi
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4763 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4764 reload_flag=$lt_cv_ld_reload_flag
4765 case $reload_flag in
4766 "" | " "*) ;;
4767 *) reload_flag=" $reload_flag" ;;
4768 esac
4769 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4770 case $host_os in
4771 darwin*)
4772 if test "$GCC" = yes; then
4773 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4774 else
4775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4776 fi
4777 ;;
4778 esac
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788 if test -n "$ac_tool_prefix"; then
4789 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4790 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 if test -n "$OBJDUMP"; then
4797 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4798 else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 break 2
4809 fi
4810 done
4811 done
4812 IFS=$as_save_IFS
4813
4814 fi
4815 fi
4816 OBJDUMP=$ac_cv_prog_OBJDUMP
4817 if test -n "$OBJDUMP"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4819 $as_echo "$OBJDUMP" >&6; }
4820 else
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4823 fi
4824
4825
4826 fi
4827 if test -z "$ac_cv_prog_OBJDUMP"; then
4828 ac_ct_OBJDUMP=$OBJDUMP
4829 # Extract the first word of "objdump", so it can be a program name with args.
4830 set dummy objdump; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 if test -n "$ac_ct_OBJDUMP"; then
4837 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4841 do
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4849 fi
4850 done
4851 done
4852 IFS=$as_save_IFS
4853
4854 fi
4855 fi
4856 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4857 if test -n "$ac_ct_OBJDUMP"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4859 $as_echo "$ac_ct_OBJDUMP" >&6; }
4860 else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4863 fi
4864
4865 if test "x$ac_ct_OBJDUMP" = x; then
4866 OBJDUMP="false"
4867 else
4868 case $cross_compiling:$ac_tool_warned in
4869 yes:)
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4872 ac_tool_warned=yes ;;
4873 esac
4874 OBJDUMP=$ac_ct_OBJDUMP
4875 fi
4876 else
4877 OBJDUMP="$ac_cv_prog_OBJDUMP"
4878 fi
4879
4880 test -z "$OBJDUMP" && OBJDUMP=objdump
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4891 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4892 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 lt_cv_file_magic_cmd='$MAGIC_CMD'
4896 lt_cv_file_magic_test_file=
4897 lt_cv_deplibs_check_method='unknown'
4898 # Need to set the preceding variable on all platforms that support
4899 # interlibrary dependencies.
4900 # 'none' -- dependencies not supported.
4901 # `unknown' -- same as none, but documents that we really don't know.
4902 # 'pass_all' -- all dependencies passed with no checks.
4903 # 'test_compile' -- check by making test program.
4904 # 'file_magic [[regex]]' -- check by looking for files in library path
4905 # which responds to the $file_magic_cmd with a given extended regex.
4906 # If you have `file' or equivalent on your system and you're not sure
4907 # whether `pass_all' will *always* work, you probably want this one.
4908
4909 case $host_os in
4910 aix[4-9]*)
4911 lt_cv_deplibs_check_method=pass_all
4912 ;;
4913
4914 beos*)
4915 lt_cv_deplibs_check_method=pass_all
4916 ;;
4917
4918 bsdi[45]*)
4919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4920 lt_cv_file_magic_cmd='/usr/bin/file -L'
4921 lt_cv_file_magic_test_file=/shlib/libc.so
4922 ;;
4923
4924 cygwin*)
4925 # func_win32_libid is a shell function defined in ltmain.sh
4926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4927 lt_cv_file_magic_cmd='func_win32_libid'
4928 ;;
4929
4930 mingw* | pw32*)
4931 # Base MSYS/MinGW do not provide the 'file' command needed by
4932 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4933 # unless we find 'file', for example because we are cross-compiling.
4934 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4935 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4936 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4937 lt_cv_file_magic_cmd='func_win32_libid'
4938 else
4939 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4940 lt_cv_file_magic_cmd='$OBJDUMP -f'
4941 fi
4942 ;;
4943
4944 cegcc*)
4945 # use the weaker test based on 'objdump'. See mingw*.
4946 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4947 lt_cv_file_magic_cmd='$OBJDUMP -f'
4948 ;;
4949
4950 darwin* | rhapsody*)
4951 lt_cv_deplibs_check_method=pass_all
4952 ;;
4953
4954 freebsd* | dragonfly*)
4955 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4956 case $host_cpu in
4957 i*86 )
4958 # Not sure whether the presence of OpenBSD here was a mistake.
4959 # Let's accept both of them until this is cleared up.
4960 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4961 lt_cv_file_magic_cmd=/usr/bin/file
4962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4963 ;;
4964 esac
4965 else
4966 lt_cv_deplibs_check_method=pass_all
4967 fi
4968 ;;
4969
4970 gnu*)
4971 lt_cv_deplibs_check_method=pass_all
4972 ;;
4973
4974 haiku*)
4975 lt_cv_deplibs_check_method=pass_all
4976 ;;
4977
4978 hpux10.20* | hpux11*)
4979 lt_cv_file_magic_cmd=/usr/bin/file
4980 case $host_cpu in
4981 ia64*)
4982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4983 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4984 ;;
4985 hppa*64*)
4986 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]'
4987 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4988 ;;
4989 *)
4990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4991 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4992 ;;
4993 esac
4994 ;;
4995
4996 interix[3-9]*)
4997 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4999 ;;
5000
5001 irix5* | irix6* | nonstopux*)
5002 case $LD in
5003 *-32|*"-32 ") libmagic=32-bit;;
5004 *-n32|*"-n32 ") libmagic=N32;;
5005 *-64|*"-64 ") libmagic=64-bit;;
5006 *) libmagic=never-match;;
5007 esac
5008 lt_cv_deplibs_check_method=pass_all
5009 ;;
5010
5011 # This must be Linux ELF.
5012 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5013 lt_cv_deplibs_check_method=pass_all
5014 ;;
5015
5016 netbsd*)
5017 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5019 else
5020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5021 fi
5022 ;;
5023
5024 newos6*)
5025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5026 lt_cv_file_magic_cmd=/usr/bin/file
5027 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5028 ;;
5029
5030 *nto* | *qnx*)
5031 lt_cv_deplibs_check_method=pass_all
5032 ;;
5033
5034 openbsd*)
5035 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5037 else
5038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5039 fi
5040 ;;
5041
5042 osf3* | osf4* | osf5*)
5043 lt_cv_deplibs_check_method=pass_all
5044 ;;
5045
5046 rdos*)
5047 lt_cv_deplibs_check_method=pass_all
5048 ;;
5049
5050 solaris*)
5051 lt_cv_deplibs_check_method=pass_all
5052 ;;
5053
5054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5055 lt_cv_deplibs_check_method=pass_all
5056 ;;
5057
5058 sysv4 | sysv4.3*)
5059 case $host_vendor in
5060 motorola)
5061 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]'
5062 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5063 ;;
5064 ncr)
5065 lt_cv_deplibs_check_method=pass_all
5066 ;;
5067 sequent)
5068 lt_cv_file_magic_cmd='/bin/file'
5069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5070 ;;
5071 sni)
5072 lt_cv_file_magic_cmd='/bin/file'
5073 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5074 lt_cv_file_magic_test_file=/lib/libc.so
5075 ;;
5076 siemens)
5077 lt_cv_deplibs_check_method=pass_all
5078 ;;
5079 pc)
5080 lt_cv_deplibs_check_method=pass_all
5081 ;;
5082 esac
5083 ;;
5084
5085 tpf*)
5086 lt_cv_deplibs_check_method=pass_all
5087 ;;
5088 esac
5089
5090 fi
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5092 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5093 file_magic_cmd=$lt_cv_file_magic_cmd
5094 deplibs_check_method=$lt_cv_deplibs_check_method
5095 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108 if test -n "$ac_tool_prefix"; then
5109 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5110 set dummy ${ac_tool_prefix}ar; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if test "${ac_cv_prog_AR+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -n "$AR"; then
5117 ac_cv_prog_AR="$AR" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126 ac_cv_prog_AR="${ac_tool_prefix}ar"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134 fi
5135 fi
5136 AR=$ac_cv_prog_AR
5137 if test -n "$AR"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5139 $as_echo "$AR" >&6; }
5140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5143 fi
5144
5145
5146 fi
5147 if test -z "$ac_cv_prog_AR"; then
5148 ac_ct_AR=$AR
5149 # Extract the first word of "ar", so it can be a program name with args.
5150 set dummy ar; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 if test -n "$ac_ct_AR"; then
5157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_ac_ct_AR="ar"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170 done
5171 done
5172 IFS=$as_save_IFS
5173
5174 fi
5175 fi
5176 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5177 if test -n "$ac_ct_AR"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5179 $as_echo "$ac_ct_AR" >&6; }
5180 else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5183 fi
5184
5185 if test "x$ac_ct_AR" = x; then
5186 AR="false"
5187 else
5188 case $cross_compiling:$ac_tool_warned in
5189 yes:)
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5192 ac_tool_warned=yes ;;
5193 esac
5194 AR=$ac_ct_AR
5195 fi
5196 else
5197 AR="$ac_cv_prog_AR"
5198 fi
5199
5200 test -z "$AR" && AR=ar
5201 test -z "$AR_FLAGS" && AR_FLAGS=cru
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213 if test -n "$ac_tool_prefix"; then
5214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5215 set dummy ${ac_tool_prefix}strip; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if test "${ac_cv_prog_STRIP+set}" = set; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 if test -n "$STRIP"; then
5222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5234 fi
5235 done
5236 done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 STRIP=$ac_cv_prog_STRIP
5242 if test -n "$STRIP"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5244 $as_echo "$STRIP" >&6; }
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249
5250
5251 fi
5252 if test -z "$ac_cv_prog_STRIP"; then
5253 ac_ct_STRIP=$STRIP
5254 # Extract the first word of "strip", so it can be a program name with args.
5255 set dummy strip; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 if test -n "$ac_ct_STRIP"; then
5262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_prog_ac_ct_STRIP="strip"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275 done
5276 done
5277 IFS=$as_save_IFS
5278
5279 fi
5280 fi
5281 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5282 if test -n "$ac_ct_STRIP"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5284 $as_echo "$ac_ct_STRIP" >&6; }
5285 else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5289
5290 if test "x$ac_ct_STRIP" = x; then
5291 STRIP=":"
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299 STRIP=$ac_ct_STRIP
5300 fi
5301 else
5302 STRIP="$ac_cv_prog_STRIP"
5303 fi
5304
5305 test -z "$STRIP" && STRIP=:
5306
5307
5308
5309
5310
5311
5312 if test -n "$ac_tool_prefix"; then
5313 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5314 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if test -n "$RANLIB"; then
5321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334 done
5335 done
5336 IFS=$as_save_IFS
5337
5338 fi
5339 fi
5340 RANLIB=$ac_cv_prog_RANLIB
5341 if test -n "$RANLIB"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5343 $as_echo "$RANLIB" >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349
5350 fi
5351 if test -z "$ac_cv_prog_RANLIB"; then
5352 ac_ct_RANLIB=$RANLIB
5353 # Extract the first word of "ranlib", so it can be a program name with args.
5354 set dummy ranlib; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 if test -n "$ac_ct_RANLIB"; then
5361 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_prog_ac_ct_RANLIB="ranlib"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374 done
5375 done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5381 if test -n "$ac_ct_RANLIB"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5383 $as_echo "$ac_ct_RANLIB" >&6; }
5384 else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389 if test "x$ac_ct_RANLIB" = x; then
5390 RANLIB=":"
5391 else
5392 case $cross_compiling:$ac_tool_warned in
5393 yes:)
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396 ac_tool_warned=yes ;;
5397 esac
5398 RANLIB=$ac_ct_RANLIB
5399 fi
5400 else
5401 RANLIB="$ac_cv_prog_RANLIB"
5402 fi
5403
5404 test -z "$RANLIB" && RANLIB=:
5405
5406
5407
5408
5409
5410
5411 # Determine commands to create old-style static archives.
5412 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5413 old_postinstall_cmds='chmod 644 $oldlib'
5414 old_postuninstall_cmds=
5415
5416 if test -n "$RANLIB"; then
5417 case $host_os in
5418 openbsd*)
5419 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5420 ;;
5421 *)
5422 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5423 ;;
5424 esac
5425 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5426 fi
5427
5428 case $host_os in
5429 darwin*)
5430 lock_old_archive_extraction=yes ;;
5431 *)
5432 lock_old_archive_extraction=no ;;
5433 esac
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473 # If no C compiler was specified, use CC.
5474 LTCC=${LTCC-"$CC"}
5475
5476 # If no C compiler flags were specified, use CFLAGS.
5477 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5478
5479 # Allow CC to be a program name with arguments.
5480 compiler=$CC
5481
5482
5483 # Check for command to grab the raw symbol name followed by C symbol from nm.
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5485 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5486 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489
5490 # These are sane defaults that work on at least a few old systems.
5491 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5492
5493 # Character class describing NM global symbol codes.
5494 symcode='[BCDEGRST]'
5495
5496 # Regexp to match symbols that can be accessed directly from C.
5497 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5498
5499 # Define system-specific variables.
5500 case $host_os in
5501 aix*)
5502 symcode='[BCDT]'
5503 ;;
5504 cygwin* | mingw* | pw32* | cegcc*)
5505 symcode='[ABCDGISTW]'
5506 ;;
5507 hpux*)
5508 if test "$host_cpu" = ia64; then
5509 symcode='[ABCDEGRST]'
5510 fi
5511 ;;
5512 irix* | nonstopux*)
5513 symcode='[BCDEGRST]'
5514 ;;
5515 osf*)
5516 symcode='[BCDEGQRST]'
5517 ;;
5518 solaris*)
5519 symcode='[BDRT]'
5520 ;;
5521 sco3.2v5*)
5522 symcode='[DT]'
5523 ;;
5524 sysv4.2uw2*)
5525 symcode='[DT]'
5526 ;;
5527 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5528 symcode='[ABDT]'
5529 ;;
5530 sysv4)
5531 symcode='[DFNSTU]'
5532 ;;
5533 esac
5534
5535 # If we're using GNU nm, then use its standard symbol codes.
5536 case `$NM -V 2>&1` in
5537 *GNU* | *'with BFD'*)
5538 symcode='[ABCDGIRSTW]' ;;
5539 esac
5540
5541 # Transform an extracted symbol line into a proper C declaration.
5542 # Some systems (esp. on ia64) link data and code symbols differently,
5543 # so use this general approach.
5544 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5545
5546 # Transform an extracted symbol line into symbol name and symbol address
5547 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5548 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'"
5549
5550 # Handle CRLF in mingw tool chain
5551 opt_cr=
5552 case $build_os in
5553 mingw*)
5554 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5555 ;;
5556 esac
5557
5558 # Try without a prefix underscore, then with it.
5559 for ac_symprfx in "" "_"; do
5560
5561 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5562 symxfrm="\\1 $ac_symprfx\\2 \\2"
5563
5564 # Write the raw and C identifiers.
5565 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5566 # Fake it for dumpbin and say T for any non-static function
5567 # and D for any global variable.
5568 # Also find C++ and __fastcall symbols from MSVC++,
5569 # which start with @ or ?.
5570 lt_cv_sys_global_symbol_pipe="$AWK '"\
5571 " {last_section=section; section=\$ 3};"\
5572 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5573 " \$ 0!~/External *\|/{next};"\
5574 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5575 " {if(hide[section]) next};"\
5576 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5577 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5578 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5579 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5580 " ' prfx=^$ac_symprfx"
5581 else
5582 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5583 fi
5584
5585 # Check to see that the pipe works correctly.
5586 pipe_works=no
5587
5588 rm -f conftest*
5589 cat > conftest.$ac_ext <<_LT_EOF
5590 #ifdef __cplusplus
5591 extern "C" {
5592 #endif
5593 char nm_test_var;
5594 void nm_test_func(void);
5595 void nm_test_func(void){}
5596 #ifdef __cplusplus
5597 }
5598 #endif
5599 int main(){nm_test_var='a';nm_test_func();return(0);}
5600 _LT_EOF
5601
5602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5603 (eval $ac_compile) 2>&5
5604 ac_status=$?
5605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5606 test $ac_status = 0; }; then
5607 # Now try to grab the symbols.
5608 nlist=conftest.nm
5609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5610 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5611 ac_status=$?
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; } && test -s "$nlist"; then
5614 # Try sorting and uniquifying the output.
5615 if sort "$nlist" | uniq > "$nlist"T; then
5616 mv -f "$nlist"T "$nlist"
5617 else
5618 rm -f "$nlist"T
5619 fi
5620
5621 # Make sure that we snagged all the symbols we need.
5622 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5623 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5624 cat <<_LT_EOF > conftest.$ac_ext
5625 #ifdef __cplusplus
5626 extern "C" {
5627 #endif
5628
5629 _LT_EOF
5630 # Now generate the symbol file.
5631 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5632
5633 cat <<_LT_EOF >> conftest.$ac_ext
5634
5635 /* The mapping between symbol names and symbols. */
5636 const struct {
5637 const char *name;
5638 void *address;
5639 }
5640 lt__PROGRAM__LTX_preloaded_symbols[] =
5641 {
5642 { "@PROGRAM@", (void *) 0 },
5643 _LT_EOF
5644 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5645 cat <<\_LT_EOF >> conftest.$ac_ext
5646 {0, (void *) 0}
5647 };
5648
5649 /* This works around a problem in FreeBSD linker */
5650 #ifdef FREEBSD_WORKAROUND
5651 static const void *lt_preloaded_setup() {
5652 return lt__PROGRAM__LTX_preloaded_symbols;
5653 }
5654 #endif
5655
5656 #ifdef __cplusplus
5657 }
5658 #endif
5659 _LT_EOF
5660 # Now try linking the two files.
5661 mv conftest.$ac_objext conftstm.$ac_objext
5662 lt_save_LIBS="$LIBS"
5663 lt_save_CFLAGS="$CFLAGS"
5664 LIBS="conftstm.$ac_objext"
5665 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5667 (eval $ac_link) 2>&5
5668 ac_status=$?
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5671 pipe_works=yes
5672 fi
5673 LIBS="$lt_save_LIBS"
5674 CFLAGS="$lt_save_CFLAGS"
5675 else
5676 echo "cannot find nm_test_func in $nlist" >&5
5677 fi
5678 else
5679 echo "cannot find nm_test_var in $nlist" >&5
5680 fi
5681 else
5682 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5683 fi
5684 else
5685 echo "$progname: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 fi
5688 rm -rf conftest* conftst*
5689
5690 # Do not use the global_symbol_pipe unless it works.
5691 if test "$pipe_works" = yes; then
5692 break
5693 else
5694 lt_cv_sys_global_symbol_pipe=
5695 fi
5696 done
5697
5698 fi
5699
5700 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5701 lt_cv_sys_global_symbol_to_cdecl=
5702 fi
5703 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5705 $as_echo "failed" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5708 $as_echo "ok" >&6; }
5709 fi
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733 # Check whether --enable-libtool-lock was given.
5734 if test "${enable_libtool_lock+set}" = set; then :
5735 enableval=$enable_libtool_lock;
5736 fi
5737
5738 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5739
5740 # Some flags need to be propagated to the compiler or linker for good
5741 # libtool support.
5742 case $host in
5743 ia64-*-hpux*)
5744 # Find out which ABI we are using.
5745 echo 'int i;' > conftest.$ac_ext
5746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5747 (eval $ac_compile) 2>&5
5748 ac_status=$?
5749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750 test $ac_status = 0; }; then
5751 case `/usr/bin/file conftest.$ac_objext` in
5752 *ELF-32*)
5753 HPUX_IA64_MODE="32"
5754 ;;
5755 *ELF-64*)
5756 HPUX_IA64_MODE="64"
5757 ;;
5758 esac
5759 fi
5760 rm -rf conftest*
5761 ;;
5762 *-*-irix6*)
5763 # Find out which ABI we are using.
5764 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5766 (eval $ac_compile) 2>&5
5767 ac_status=$?
5768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769 test $ac_status = 0; }; then
5770 if test "$lt_cv_prog_gnu_ld" = yes; then
5771 case `/usr/bin/file conftest.$ac_objext` in
5772 *32-bit*)
5773 LD="${LD-ld} -melf32bsmip"
5774 ;;
5775 *N32*)
5776 LD="${LD-ld} -melf32bmipn32"
5777 ;;
5778 *64-bit*)
5779 LD="${LD-ld} -melf64bmip"
5780 ;;
5781 esac
5782 else
5783 case `/usr/bin/file conftest.$ac_objext` in
5784 *32-bit*)
5785 LD="${LD-ld} -32"
5786 ;;
5787 *N32*)
5788 LD="${LD-ld} -n32"
5789 ;;
5790 *64-bit*)
5791 LD="${LD-ld} -64"
5792 ;;
5793 esac
5794 fi
5795 fi
5796 rm -rf conftest*
5797 ;;
5798
5799 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5800 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5801 # Find out which ABI we are using.
5802 echo 'int i;' > conftest.$ac_ext
5803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5804 (eval $ac_compile) 2>&5
5805 ac_status=$?
5806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5807 test $ac_status = 0; }; then
5808 case `/usr/bin/file conftest.o` in
5809 *32-bit*)
5810 case $host in
5811 x86_64-*kfreebsd*-gnu)
5812 LD="${LD-ld} -m elf_i386_fbsd"
5813 ;;
5814 x86_64-*linux*)
5815 LD="${LD-ld} -m elf_i386"
5816 ;;
5817 ppc64-*linux*|powerpc64-*linux*)
5818 LD="${LD-ld} -m elf32ppclinux"
5819 ;;
5820 s390x-*linux*)
5821 LD="${LD-ld} -m elf_s390"
5822 ;;
5823 sparc64-*linux*)
5824 LD="${LD-ld} -m elf32_sparc"
5825 ;;
5826 esac
5827 ;;
5828 *64-bit*)
5829 case $host in
5830 x86_64-*kfreebsd*-gnu)
5831 LD="${LD-ld} -m elf_x86_64_fbsd"
5832 ;;
5833 x86_64-*linux*)
5834 LD="${LD-ld} -m elf_x86_64"
5835 ;;
5836 ppc*-*linux*|powerpc*-*linux*)
5837 LD="${LD-ld} -m elf64ppc"
5838 ;;
5839 s390*-*linux*|s390*-*tpf*)
5840 LD="${LD-ld} -m elf64_s390"
5841 ;;
5842 sparc*-*linux*)
5843 LD="${LD-ld} -m elf64_sparc"
5844 ;;
5845 esac
5846 ;;
5847 esac
5848 fi
5849 rm -rf conftest*
5850 ;;
5851
5852 *-*-sco3.2v5*)
5853 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5854 SAVE_CFLAGS="$CFLAGS"
5855 CFLAGS="$CFLAGS -belf"
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5857 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5858 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 ac_ext=c
5862 ac_cpp='$CPP $CPPFLAGS'
5863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5866
5867 if test x$gcc_no_link = xyes; then
5868 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5869 fi
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872
5873 int
5874 main ()
5875 {
5876
5877 ;
5878 return 0;
5879 }
5880 _ACEOF
5881 if ac_fn_c_try_link "$LINENO"; then :
5882 lt_cv_cc_needs_belf=yes
5883 else
5884 lt_cv_cc_needs_belf=no
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
5888 ac_ext=c
5889 ac_cpp='$CPP $CPPFLAGS'
5890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5893
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5896 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5899 CFLAGS="$SAVE_CFLAGS"
5900 fi
5901 ;;
5902 sparc*-*solaris*)
5903 # Find out which ABI we are using.
5904 echo 'int i;' > conftest.$ac_ext
5905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5906 (eval $ac_compile) 2>&5
5907 ac_status=$?
5908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5909 test $ac_status = 0; }; then
5910 case `/usr/bin/file conftest.o` in
5911 *64-bit*)
5912 case $lt_cv_prog_gnu_ld in
5913 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5914 *)
5915 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5916 LD="${LD-ld} -64"
5917 fi
5918 ;;
5919 esac
5920 ;;
5921 esac
5922 fi
5923 rm -rf conftest*
5924 ;;
5925 esac
5926
5927 need_locks="$enable_libtool_lock"
5928
5929
5930 case $host_os in
5931 rhapsody* | darwin*)
5932 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if test -n "$DSYMUTIL"; then
5941 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954 done
5955 done
5956 IFS=$as_save_IFS
5957
5958 fi
5959 fi
5960 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5961 if test -n "$DSYMUTIL"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5963 $as_echo "$DSYMUTIL" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968
5969
5970 fi
5971 if test -z "$ac_cv_prog_DSYMUTIL"; then
5972 ac_ct_DSYMUTIL=$DSYMUTIL
5973 # Extract the first word of "dsymutil", so it can be a program name with args.
5974 set dummy dsymutil; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$ac_ct_DSYMUTIL"; then
5981 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6001 if test -n "$ac_ct_DSYMUTIL"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6003 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009 if test "x$ac_ct_DSYMUTIL" = x; then
6010 DSYMUTIL=":"
6011 else
6012 case $cross_compiling:$ac_tool_warned in
6013 yes:)
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6017 esac
6018 DSYMUTIL=$ac_ct_DSYMUTIL
6019 fi
6020 else
6021 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6022 fi
6023
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$NMEDIT"; then
6033 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 NMEDIT=$ac_cv_prog_NMEDIT
6053 if test -n "$NMEDIT"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6055 $as_echo "$NMEDIT" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062 fi
6063 if test -z "$ac_cv_prog_NMEDIT"; then
6064 ac_ct_NMEDIT=$NMEDIT
6065 # Extract the first word of "nmedit", so it can be a program name with args.
6066 set dummy nmedit; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_NMEDIT"; then
6073 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086 done
6087 done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6093 if test -n "$ac_ct_NMEDIT"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6095 $as_echo "$ac_ct_NMEDIT" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101 if test "x$ac_ct_NMEDIT" = x; then
6102 NMEDIT=":"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 NMEDIT=$ac_ct_NMEDIT
6111 fi
6112 else
6113 NMEDIT="$ac_cv_prog_NMEDIT"
6114 fi
6115
6116 if test -n "$ac_tool_prefix"; then
6117 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6118 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if test "${ac_cv_prog_LIPO+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if test -n "$LIPO"; then
6125 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138 done
6139 done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 LIPO=$ac_cv_prog_LIPO
6145 if test -n "$LIPO"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6147 $as_echo "$LIPO" >&6; }
6148 else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6151 fi
6152
6153
6154 fi
6155 if test -z "$ac_cv_prog_LIPO"; then
6156 ac_ct_LIPO=$LIPO
6157 # Extract the first word of "lipo", so it can be a program name with args.
6158 set dummy lipo; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 if test -n "$ac_ct_LIPO"; then
6165 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_prog_ac_ct_LIPO="lipo"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178 done
6179 done
6180 IFS=$as_save_IFS
6181
6182 fi
6183 fi
6184 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6185 if test -n "$ac_ct_LIPO"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6187 $as_echo "$ac_ct_LIPO" >&6; }
6188 else
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6191 fi
6192
6193 if test "x$ac_ct_LIPO" = x; then
6194 LIPO=":"
6195 else
6196 case $cross_compiling:$ac_tool_warned in
6197 yes:)
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200 ac_tool_warned=yes ;;
6201 esac
6202 LIPO=$ac_ct_LIPO
6203 fi
6204 else
6205 LIPO="$ac_cv_prog_LIPO"
6206 fi
6207
6208 if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6210 set dummy ${ac_tool_prefix}otool; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test -n "$OTOOL"; then
6217 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 OTOOL=$ac_cv_prog_OTOOL
6237 if test -n "$OTOOL"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6239 $as_echo "$OTOOL" >&6; }
6240 else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245
6246 fi
6247 if test -z "$ac_cv_prog_OTOOL"; then
6248 ac_ct_OTOOL=$OTOOL
6249 # Extract the first word of "otool", so it can be a program name with args.
6250 set dummy otool; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 if test -n "$ac_ct_OTOOL"; then
6257 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_ac_ct_OTOOL="otool"
6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6277 if test -n "$ac_ct_OTOOL"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6279 $as_echo "$ac_ct_OTOOL" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6283 fi
6284
6285 if test "x$ac_ct_OTOOL" = x; then
6286 OTOOL=":"
6287 else
6288 case $cross_compiling:$ac_tool_warned in
6289 yes:)
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292 ac_tool_warned=yes ;;
6293 esac
6294 OTOOL=$ac_ct_OTOOL
6295 fi
6296 else
6297 OTOOL="$ac_cv_prog_OTOOL"
6298 fi
6299
6300 if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 if test -n "$OTOOL64"; then
6309 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 OTOOL64=$ac_cv_prog_OTOOL64
6329 if test -n "$OTOOL64"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6331 $as_echo "$OTOOL64" >&6; }
6332 else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337
6338 fi
6339 if test -z "$ac_cv_prog_OTOOL64"; then
6340 ac_ct_OTOOL64=$OTOOL64
6341 # Extract the first word of "otool64", so it can be a program name with args.
6342 set dummy otool64; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 if test -n "$ac_ct_OTOOL64"; then
6349 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_ac_ct_OTOOL64="otool64"
6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362 done
6363 done
6364 IFS=$as_save_IFS
6365
6366 fi
6367 fi
6368 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6369 if test -n "$ac_ct_OTOOL64"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6371 $as_echo "$ac_ct_OTOOL64" >&6; }
6372 else
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376
6377 if test "x$ac_ct_OTOOL64" = x; then
6378 OTOOL64=":"
6379 else
6380 case $cross_compiling:$ac_tool_warned in
6381 yes:)
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384 ac_tool_warned=yes ;;
6385 esac
6386 OTOOL64=$ac_ct_OTOOL64
6387 fi
6388 else
6389 OTOOL64="$ac_cv_prog_OTOOL64"
6390 fi
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6419 $as_echo_n "checking for -single_module linker flag... " >&6; }
6420 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 lt_cv_apple_cc_single_mod=no
6424 if test -z "${LT_MULTI_MODULE}"; then
6425 # By default we will add the -single_module flag. You can override
6426 # by either setting the environment variable LT_MULTI_MODULE
6427 # non-empty at configure time, or by adding -multi_module to the
6428 # link flags.
6429 rm -rf libconftest.dylib*
6430 echo "int foo(void){return 1;}" > conftest.c
6431 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6432 -dynamiclib -Wl,-single_module conftest.c" >&5
6433 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6434 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6435 _lt_result=$?
6436 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6437 lt_cv_apple_cc_single_mod=yes
6438 else
6439 cat conftest.err >&5
6440 fi
6441 rm -rf libconftest.dylib*
6442 rm -f conftest.*
6443 fi
6444 fi
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6446 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6448 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6449 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 lt_cv_ld_exported_symbols_list=no
6453 save_LDFLAGS=$LDFLAGS
6454 echo "_main" > conftest.sym
6455 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6456 if test x$gcc_no_link = xyes; then
6457 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6458 fi
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461
6462 int
6463 main ()
6464 {
6465
6466 ;
6467 return 0;
6468 }
6469 _ACEOF
6470 if ac_fn_c_try_link "$LINENO"; then :
6471 lt_cv_ld_exported_symbols_list=yes
6472 else
6473 lt_cv_ld_exported_symbols_list=no
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext \
6476 conftest$ac_exeext conftest.$ac_ext
6477 LDFLAGS="$save_LDFLAGS"
6478
6479 fi
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6481 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6483 $as_echo_n "checking for -force_load linker flag... " >&6; }
6484 if test "${lt_cv_ld_force_load+set}" = set; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 lt_cv_ld_force_load=no
6488 cat > conftest.c << _LT_EOF
6489 int forced_loaded() { return 2;}
6490 _LT_EOF
6491 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6492 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6493 echo "$AR cru libconftest.a conftest.o" >&5
6494 $AR cru libconftest.a conftest.o 2>&5
6495 cat > conftest.c << _LT_EOF
6496 int main() { return 0;}
6497 _LT_EOF
6498 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6499 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6500 _lt_result=$?
6501 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6502 lt_cv_ld_force_load=yes
6503 else
6504 cat conftest.err >&5
6505 fi
6506 rm -f conftest.err libconftest.a conftest conftest.c
6507 rm -rf conftest.dSYM
6508
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6511 $as_echo "$lt_cv_ld_force_load" >&6; }
6512 case $host_os in
6513 rhapsody* | darwin1.[012])
6514 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6515 darwin1.*)
6516 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6517 darwin*) # darwin 5.x on
6518 # if running on 10.5 or later, the deployment target defaults
6519 # to the OS version, if on x86, and 10.4, the deployment
6520 # target defaults to 10.4. Don't you love it?
6521 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6522 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6523 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6524 10.[012]*)
6525 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6526 10.*)
6527 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6528 esac
6529 ;;
6530 esac
6531 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6532 _lt_dar_single_mod='$single_module'
6533 fi
6534 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6535 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6536 else
6537 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6538 fi
6539 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6540 _lt_dsymutil='~$DSYMUTIL $lib || :'
6541 else
6542 _lt_dsymutil=
6543 fi
6544 ;;
6545 esac
6546
6547 ac_ext=c
6548 ac_cpp='$CPP $CPPFLAGS'
6549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6553 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6554 # On Suns, sometimes $CPP names a directory.
6555 if test -n "$CPP" && test -d "$CPP"; then
6556 CPP=
6557 fi
6558 if test -z "$CPP"; then
6559 if test "${ac_cv_prog_CPP+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 # Double quotes because CPP needs to be expanded
6563 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6564 do
6565 ac_preproc_ok=false
6566 for ac_c_preproc_warn_flag in '' yes
6567 do
6568 # Use a header file that comes with gcc, so configuring glibc
6569 # with a fresh cross-compiler works.
6570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6571 # <limits.h> exists even on freestanding compilers.
6572 # On the NeXT, cc -E runs the code through the compiler's parser,
6573 # not just through cpp. "Syntax error" is here to catch this case.
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 #ifdef __STDC__
6577 # include <limits.h>
6578 #else
6579 # include <assert.h>
6580 #endif
6581 Syntax error
6582 _ACEOF
6583 if ac_fn_c_try_cpp "$LINENO"; then :
6584
6585 else
6586 # Broken: fails on valid input.
6587 continue
6588 fi
6589 rm -f conftest.err conftest.$ac_ext
6590
6591 # OK, works on sane cases. Now check whether nonexistent headers
6592 # can be detected and how.
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 #include <ac_nonexistent.h>
6596 _ACEOF
6597 if ac_fn_c_try_cpp "$LINENO"; then :
6598 # Broken: success on invalid input.
6599 continue
6600 else
6601 # Passes both tests.
6602 ac_preproc_ok=:
6603 break
6604 fi
6605 rm -f conftest.err conftest.$ac_ext
6606
6607 done
6608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6609 rm -f conftest.err conftest.$ac_ext
6610 if $ac_preproc_ok; then :
6611 break
6612 fi
6613
6614 done
6615 ac_cv_prog_CPP=$CPP
6616
6617 fi
6618 CPP=$ac_cv_prog_CPP
6619 else
6620 ac_cv_prog_CPP=$CPP
6621 fi
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6623 $as_echo "$CPP" >&6; }
6624 ac_preproc_ok=false
6625 for ac_c_preproc_warn_flag in '' yes
6626 do
6627 # Use a header file that comes with gcc, so configuring glibc
6628 # with a fresh cross-compiler works.
6629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6630 # <limits.h> exists even on freestanding compilers.
6631 # On the NeXT, cc -E runs the code through the compiler's parser,
6632 # not just through cpp. "Syntax error" is here to catch this case.
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635 #ifdef __STDC__
6636 # include <limits.h>
6637 #else
6638 # include <assert.h>
6639 #endif
6640 Syntax error
6641 _ACEOF
6642 if ac_fn_c_try_cpp "$LINENO"; then :
6643
6644 else
6645 # Broken: fails on valid input.
6646 continue
6647 fi
6648 rm -f conftest.err conftest.$ac_ext
6649
6650 # OK, works on sane cases. Now check whether nonexistent headers
6651 # can be detected and how.
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654 #include <ac_nonexistent.h>
6655 _ACEOF
6656 if ac_fn_c_try_cpp "$LINENO"; then :
6657 # Broken: success on invalid input.
6658 continue
6659 else
6660 # Passes both tests.
6661 ac_preproc_ok=:
6662 break
6663 fi
6664 rm -f conftest.err conftest.$ac_ext
6665
6666 done
6667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6668 rm -f conftest.err conftest.$ac_ext
6669 if $ac_preproc_ok; then :
6670
6671 else
6672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6674 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6675 See \`config.log' for more details." "$LINENO" 5; }
6676 fi
6677
6678 ac_ext=c
6679 ac_cpp='$CPP $CPPFLAGS'
6680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6683
6684
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6686 $as_echo_n "checking for ANSI C header files... " >&6; }
6687 if test "${ac_cv_header_stdc+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 #include <stdlib.h>
6693 #include <stdarg.h>
6694 #include <string.h>
6695 #include <float.h>
6696
6697 int
6698 main ()
6699 {
6700
6701 ;
6702 return 0;
6703 }
6704 _ACEOF
6705 if ac_fn_c_try_compile "$LINENO"; then :
6706 ac_cv_header_stdc=yes
6707 else
6708 ac_cv_header_stdc=no
6709 fi
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711
6712 if test $ac_cv_header_stdc = yes; then
6713 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 #include <string.h>
6717
6718 _ACEOF
6719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6720 $EGREP "memchr" >/dev/null 2>&1; then :
6721
6722 else
6723 ac_cv_header_stdc=no
6724 fi
6725 rm -f conftest*
6726
6727 fi
6728
6729 if test $ac_cv_header_stdc = yes; then
6730 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733 #include <stdlib.h>
6734
6735 _ACEOF
6736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6737 $EGREP "free" >/dev/null 2>&1; then :
6738
6739 else
6740 ac_cv_header_stdc=no
6741 fi
6742 rm -f conftest*
6743
6744 fi
6745
6746 if test $ac_cv_header_stdc = yes; then
6747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6748 if test "$cross_compiling" = yes; then :
6749 :
6750 else
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #include <ctype.h>
6754 #include <stdlib.h>
6755 #if ((' ' & 0x0FF) == 0x020)
6756 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6757 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6758 #else
6759 # define ISLOWER(c) \
6760 (('a' <= (c) && (c) <= 'i') \
6761 || ('j' <= (c) && (c) <= 'r') \
6762 || ('s' <= (c) && (c) <= 'z'))
6763 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6764 #endif
6765
6766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6767 int
6768 main ()
6769 {
6770 int i;
6771 for (i = 0; i < 256; i++)
6772 if (XOR (islower (i), ISLOWER (i))
6773 || toupper (i) != TOUPPER (i))
6774 return 2;
6775 return 0;
6776 }
6777 _ACEOF
6778 if ac_fn_c_try_run "$LINENO"; then :
6779
6780 else
6781 ac_cv_header_stdc=no
6782 fi
6783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6784 conftest.$ac_objext conftest.beam conftest.$ac_ext
6785 fi
6786
6787 fi
6788 fi
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6790 $as_echo "$ac_cv_header_stdc" >&6; }
6791 if test $ac_cv_header_stdc = yes; then
6792
6793 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6794
6795 fi
6796
6797 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6798 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6799 inttypes.h stdint.h unistd.h
6800 do :
6801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6802 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6803 "
6804 eval as_val=\$$as_ac_Header
6805 if test "x$as_val" = x""yes; then :
6806 cat >>confdefs.h <<_ACEOF
6807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6808 _ACEOF
6809
6810 fi
6811
6812 done
6813
6814
6815 for ac_header in dlfcn.h
6816 do :
6817 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6818 "
6819 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6820 cat >>confdefs.h <<_ACEOF
6821 #define HAVE_DLFCN_H 1
6822 _ACEOF
6823
6824 fi
6825
6826 done
6827
6828
6829
6830
6831
6832 # Set options
6833
6834
6835
6836 enable_dlopen=no
6837
6838
6839 enable_win32_dll=no
6840
6841
6842 # Check whether --enable-shared was given.
6843 if test "${enable_shared+set}" = set; then :
6844 enableval=$enable_shared; p=${PACKAGE-default}
6845 case $enableval in
6846 yes) enable_shared=yes ;;
6847 no) enable_shared=no ;;
6848 *)
6849 enable_shared=no
6850 # Look at the argument we got. We use all the common list separators.
6851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6852 for pkg in $enableval; do
6853 IFS="$lt_save_ifs"
6854 if test "X$pkg" = "X$p"; then
6855 enable_shared=yes
6856 fi
6857 done
6858 IFS="$lt_save_ifs"
6859 ;;
6860 esac
6861 else
6862 enable_shared=yes
6863 fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 # Check whether --enable-static was given.
6874 if test "${enable_static+set}" = set; then :
6875 enableval=$enable_static; p=${PACKAGE-default}
6876 case $enableval in
6877 yes) enable_static=yes ;;
6878 no) enable_static=no ;;
6879 *)
6880 enable_static=no
6881 # Look at the argument we got. We use all the common list separators.
6882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6883 for pkg in $enableval; do
6884 IFS="$lt_save_ifs"
6885 if test "X$pkg" = "X$p"; then
6886 enable_static=yes
6887 fi
6888 done
6889 IFS="$lt_save_ifs"
6890 ;;
6891 esac
6892 else
6893 enable_static=yes
6894 fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905 # Check whether --with-pic was given.
6906 if test "${with_pic+set}" = set; then :
6907 withval=$with_pic; pic_mode="$withval"
6908 else
6909 pic_mode=default
6910 fi
6911
6912
6913 test -z "$pic_mode" && pic_mode=default
6914
6915
6916
6917
6918
6919
6920
6921 # Check whether --enable-fast-install was given.
6922 if test "${enable_fast_install+set}" = set; then :
6923 enableval=$enable_fast_install; p=${PACKAGE-default}
6924 case $enableval in
6925 yes) enable_fast_install=yes ;;
6926 no) enable_fast_install=no ;;
6927 *)
6928 enable_fast_install=no
6929 # Look at the argument we got. We use all the common list separators.
6930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6931 for pkg in $enableval; do
6932 IFS="$lt_save_ifs"
6933 if test "X$pkg" = "X$p"; then
6934 enable_fast_install=yes
6935 fi
6936 done
6937 IFS="$lt_save_ifs"
6938 ;;
6939 esac
6940 else
6941 enable_fast_install=yes
6942 fi
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954 # This can be used to rebuild libtool when needed
6955 LIBTOOL_DEPS="$ltmain"
6956
6957 # Always use our own libtool.
6958 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985 test -z "$LN_S" && LN_S="ln -s"
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000 if test -n "${ZSH_VERSION+set}" ; then
7001 setopt NO_GLOB_SUBST
7002 fi
7003
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7005 $as_echo_n "checking for objdir... " >&6; }
7006 if test "${lt_cv_objdir+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 rm -f .libs 2>/dev/null
7010 mkdir .libs 2>/dev/null
7011 if test -d .libs; then
7012 lt_cv_objdir=.libs
7013 else
7014 # MS-DOS does not allow filenames that begin with a dot.
7015 lt_cv_objdir=_libs
7016 fi
7017 rmdir .libs 2>/dev/null
7018 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7020 $as_echo "$lt_cv_objdir" >&6; }
7021 objdir=$lt_cv_objdir
7022
7023
7024
7025
7026
7027 cat >>confdefs.h <<_ACEOF
7028 #define LT_OBJDIR "$lt_cv_objdir/"
7029 _ACEOF
7030
7031
7032
7033
7034 case $host_os in
7035 aix3*)
7036 # AIX sometimes has problems with the GCC collect2 program. For some
7037 # reason, if we set the COLLECT_NAMES environment variable, the problems
7038 # vanish in a puff of smoke.
7039 if test "X${COLLECT_NAMES+set}" != Xset; then
7040 COLLECT_NAMES=
7041 export COLLECT_NAMES
7042 fi
7043 ;;
7044 esac
7045
7046 # Global variables:
7047 ofile=libtool
7048 can_build_shared=yes
7049
7050 # All known linkers require a `.a' archive for static linking (except MSVC,
7051 # which needs '.lib').
7052 libext=a
7053
7054 with_gnu_ld="$lt_cv_prog_gnu_ld"
7055
7056 old_CC="$CC"
7057 old_CFLAGS="$CFLAGS"
7058
7059 # Set sane defaults for various variables
7060 test -z "$CC" && CC=cc
7061 test -z "$LTCC" && LTCC=$CC
7062 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7063 test -z "$LD" && LD=ld
7064 test -z "$ac_objext" && ac_objext=o
7065
7066 for cc_temp in $compiler""; do
7067 case $cc_temp in
7068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7070 \-*) ;;
7071 *) break;;
7072 esac
7073 done
7074 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7075
7076
7077 # Only perform the check for file, if the check method requires it
7078 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7079 case $deplibs_check_method in
7080 file_magic*)
7081 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7083 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7084 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 case $MAGIC_CMD in
7088 [\\/*] | ?:[\\/]*)
7089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7090 ;;
7091 *)
7092 lt_save_MAGIC_CMD="$MAGIC_CMD"
7093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7095 for ac_dir in $ac_dummy; do
7096 IFS="$lt_save_ifs"
7097 test -z "$ac_dir" && ac_dir=.
7098 if test -f $ac_dir/${ac_tool_prefix}file; then
7099 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7100 if test -n "$file_magic_test_file"; then
7101 case $deplibs_check_method in
7102 "file_magic "*)
7103 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7106 $EGREP "$file_magic_regex" > /dev/null; then
7107 :
7108 else
7109 cat <<_LT_EOF 1>&2
7110
7111 *** Warning: the command libtool uses to detect shared libraries,
7112 *** $file_magic_cmd, produces output that libtool cannot recognize.
7113 *** The result is that libtool may fail to recognize shared libraries
7114 *** as such. This will affect the creation of libtool libraries that
7115 *** depend on shared libraries, but programs linked with such libtool
7116 *** libraries will work regardless of this problem. Nevertheless, you
7117 *** may want to report the problem to your system manager and/or to
7118 *** bug-libtool@gnu.org
7119
7120 _LT_EOF
7121 fi ;;
7122 esac
7123 fi
7124 break
7125 fi
7126 done
7127 IFS="$lt_save_ifs"
7128 MAGIC_CMD="$lt_save_MAGIC_CMD"
7129 ;;
7130 esac
7131 fi
7132
7133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7134 if test -n "$MAGIC_CMD"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7136 $as_echo "$MAGIC_CMD" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7140 fi
7141
7142
7143
7144
7145
7146 if test -z "$lt_cv_path_MAGIC_CMD"; then
7147 if test -n "$ac_tool_prefix"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7149 $as_echo_n "checking for file... " >&6; }
7150 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 case $MAGIC_CMD in
7154 [\\/*] | ?:[\\/]*)
7155 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7156 ;;
7157 *)
7158 lt_save_MAGIC_CMD="$MAGIC_CMD"
7159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7160 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7161 for ac_dir in $ac_dummy; do
7162 IFS="$lt_save_ifs"
7163 test -z "$ac_dir" && ac_dir=.
7164 if test -f $ac_dir/file; then
7165 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7166 if test -n "$file_magic_test_file"; then
7167 case $deplibs_check_method in
7168 "file_magic "*)
7169 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7171 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7172 $EGREP "$file_magic_regex" > /dev/null; then
7173 :
7174 else
7175 cat <<_LT_EOF 1>&2
7176
7177 *** Warning: the command libtool uses to detect shared libraries,
7178 *** $file_magic_cmd, produces output that libtool cannot recognize.
7179 *** The result is that libtool may fail to recognize shared libraries
7180 *** as such. This will affect the creation of libtool libraries that
7181 *** depend on shared libraries, but programs linked with such libtool
7182 *** libraries will work regardless of this problem. Nevertheless, you
7183 *** may want to report the problem to your system manager and/or to
7184 *** bug-libtool@gnu.org
7185
7186 _LT_EOF
7187 fi ;;
7188 esac
7189 fi
7190 break
7191 fi
7192 done
7193 IFS="$lt_save_ifs"
7194 MAGIC_CMD="$lt_save_MAGIC_CMD"
7195 ;;
7196 esac
7197 fi
7198
7199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7200 if test -n "$MAGIC_CMD"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7202 $as_echo "$MAGIC_CMD" >&6; }
7203 else
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 $as_echo "no" >&6; }
7206 fi
7207
7208
7209 else
7210 MAGIC_CMD=:
7211 fi
7212 fi
7213
7214 fi
7215 ;;
7216 esac
7217
7218 # Use C for the default configuration in the libtool script
7219
7220 lt_save_CC="$CC"
7221 ac_ext=c
7222 ac_cpp='$CPP $CPPFLAGS'
7223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7226
7227
7228 # Source file extension for C test sources.
7229 ac_ext=c
7230
7231 # Object file extension for compiled C test sources.
7232 objext=o
7233 objext=$objext
7234
7235 # Code to be used in simple compile tests
7236 lt_simple_compile_test_code="int some_variable = 0;"
7237
7238 # Code to be used in simple link tests
7239 lt_simple_link_test_code='int main(){return(0);}'
7240
7241
7242
7243
7244
7245
7246
7247 # If no C compiler was specified, use CC.
7248 LTCC=${LTCC-"$CC"}
7249
7250 # If no C compiler flags were specified, use CFLAGS.
7251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7252
7253 # Allow CC to be a program name with arguments.
7254 compiler=$CC
7255
7256 # Save the default compiler, since it gets overwritten when the other
7257 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7258 compiler_DEFAULT=$CC
7259
7260 # save warnings/boilerplate of simple test code
7261 ac_outfile=conftest.$ac_objext
7262 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7263 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7264 _lt_compiler_boilerplate=`cat conftest.err`
7265 $RM conftest*
7266
7267 ac_outfile=conftest.$ac_objext
7268 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7269 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7270 _lt_linker_boilerplate=`cat conftest.err`
7271 $RM -r conftest*
7272
7273
7274 ## CAVEAT EMPTOR:
7275 ## There is no encapsulation within the following macros, do not change
7276 ## the running order or otherwise move them around unless you know exactly
7277 ## what you are doing...
7278 if test -n "$compiler"; then
7279
7280 lt_prog_compiler_no_builtin_flag=
7281
7282 if test "$GCC" = yes; then
7283 case $cc_basename in
7284 nvcc*)
7285 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7286 *)
7287 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7288 esac
7289
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7291 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7292 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 lt_cv_prog_compiler_rtti_exceptions=no
7296 ac_outfile=conftest.$ac_objext
7297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7298 lt_compiler_flag="-fno-rtti -fno-exceptions"
7299 # Insert the option either (1) after the last *FLAGS variable, or
7300 # (2) before a word containing "conftest.", or (3) at the end.
7301 # Note that $ac_compile itself does not contain backslashes and begins
7302 # with a dollar sign (not a hyphen), so the echo should work correctly.
7303 # The option is referenced via a variable to avoid confusing sed.
7304 lt_compile=`echo "$ac_compile" | $SED \
7305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7307 -e 's:$: $lt_compiler_flag:'`
7308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7309 (eval "$lt_compile" 2>conftest.err)
7310 ac_status=$?
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 if (exit $ac_status) && test -s "$ac_outfile"; then
7314 # The compiler can only warn and ignore the option if not recognized
7315 # So say no if there are warnings other than the usual output.
7316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7318 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7319 lt_cv_prog_compiler_rtti_exceptions=yes
7320 fi
7321 fi
7322 $RM conftest*
7323
7324 fi
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7326 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7327
7328 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7329 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7330 else
7331 :
7332 fi
7333
7334 fi
7335
7336
7337
7338
7339
7340
7341 lt_prog_compiler_wl=
7342 lt_prog_compiler_pic=
7343 lt_prog_compiler_static=
7344
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7346 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7347
7348 if test "$GCC" = yes; then
7349 lt_prog_compiler_wl='-Wl,'
7350 lt_prog_compiler_static='-static'
7351
7352 case $host_os in
7353 aix*)
7354 # All AIX code is PIC.
7355 if test "$host_cpu" = ia64; then
7356 # AIX 5 now supports IA64 processor
7357 lt_prog_compiler_static='-Bstatic'
7358 fi
7359 ;;
7360
7361 amigaos*)
7362 case $host_cpu in
7363 powerpc)
7364 # see comment about AmigaOS4 .so support
7365 lt_prog_compiler_pic='-fPIC'
7366 ;;
7367 m68k)
7368 # FIXME: we need at least 68020 code to build shared libraries, but
7369 # adding the `-m68020' flag to GCC prevents building anything better,
7370 # like `-m68040'.
7371 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7372 ;;
7373 esac
7374 ;;
7375
7376 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7377 # PIC is the default for these OSes.
7378 ;;
7379
7380 mingw* | cygwin* | pw32* | os2* | cegcc*)
7381 # This hack is so that the source file can tell whether it is being
7382 # built for inclusion in a dll (and should export symbols for example).
7383 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7384 # (--disable-auto-import) libraries
7385 lt_prog_compiler_pic='-DDLL_EXPORT'
7386 ;;
7387
7388 darwin* | rhapsody*)
7389 # PIC is the default on this platform
7390 # Common symbols not allowed in MH_DYLIB files
7391 lt_prog_compiler_pic='-fno-common'
7392 ;;
7393
7394 haiku*)
7395 # PIC is the default for Haiku.
7396 # The "-static" flag exists, but is broken.
7397 lt_prog_compiler_static=
7398 ;;
7399
7400 hpux*)
7401 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7402 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7403 # sets the default TLS model and affects inlining.
7404 case $host_cpu in
7405 hppa*64*)
7406 # +Z the default
7407 ;;
7408 *)
7409 lt_prog_compiler_pic='-fPIC'
7410 ;;
7411 esac
7412 ;;
7413
7414 interix[3-9]*)
7415 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7416 # Instead, we relocate shared libraries at runtime.
7417 ;;
7418
7419 msdosdjgpp*)
7420 # Just because we use GCC doesn't mean we suddenly get shared libraries
7421 # on systems that don't support them.
7422 lt_prog_compiler_can_build_shared=no
7423 enable_shared=no
7424 ;;
7425
7426 *nto* | *qnx*)
7427 # QNX uses GNU C++, but need to define -shared option too, otherwise
7428 # it will coredump.
7429 lt_prog_compiler_pic='-fPIC -shared'
7430 ;;
7431
7432 sysv4*MP*)
7433 if test -d /usr/nec; then
7434 lt_prog_compiler_pic=-Kconform_pic
7435 fi
7436 ;;
7437
7438 *)
7439 lt_prog_compiler_pic='-fPIC'
7440 ;;
7441 esac
7442
7443 case $cc_basename in
7444 nvcc*) # Cuda Compiler Driver 2.2
7445 lt_prog_compiler_wl='-Xlinker '
7446 lt_prog_compiler_pic='-Xcompiler -fPIC'
7447 ;;
7448 esac
7449 else
7450 # PORTME Check for flag to pass linker flags through the system compiler.
7451 case $host_os in
7452 aix*)
7453 lt_prog_compiler_wl='-Wl,'
7454 if test "$host_cpu" = ia64; then
7455 # AIX 5 now supports IA64 processor
7456 lt_prog_compiler_static='-Bstatic'
7457 else
7458 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7459 fi
7460 ;;
7461
7462 mingw* | cygwin* | pw32* | os2* | cegcc*)
7463 # This hack is so that the source file can tell whether it is being
7464 # built for inclusion in a dll (and should export symbols for example).
7465 lt_prog_compiler_pic='-DDLL_EXPORT'
7466 ;;
7467
7468 hpux9* | hpux10* | hpux11*)
7469 lt_prog_compiler_wl='-Wl,'
7470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7471 # not for PA HP-UX.
7472 case $host_cpu in
7473 hppa*64*|ia64*)
7474 # +Z the default
7475 ;;
7476 *)
7477 lt_prog_compiler_pic='+Z'
7478 ;;
7479 esac
7480 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7481 lt_prog_compiler_static='${wl}-a ${wl}archive'
7482 ;;
7483
7484 irix5* | irix6* | nonstopux*)
7485 lt_prog_compiler_wl='-Wl,'
7486 # PIC (with -KPIC) is the default.
7487 lt_prog_compiler_static='-non_shared'
7488 ;;
7489
7490 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7491 case $cc_basename in
7492 # old Intel for x86_64 which still supported -KPIC.
7493 ecc*)
7494 lt_prog_compiler_wl='-Wl,'
7495 lt_prog_compiler_pic='-KPIC'
7496 lt_prog_compiler_static='-static'
7497 ;;
7498 # icc used to be incompatible with GCC.
7499 # ICC 10 doesn't accept -KPIC any more.
7500 icc* | ifort*)
7501 lt_prog_compiler_wl='-Wl,'
7502 lt_prog_compiler_pic='-fPIC'
7503 lt_prog_compiler_static='-static'
7504 ;;
7505 # Lahey Fortran 8.1.
7506 lf95*)
7507 lt_prog_compiler_wl='-Wl,'
7508 lt_prog_compiler_pic='--shared'
7509 lt_prog_compiler_static='--static'
7510 ;;
7511 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7512 # Portland Group compilers (*not* the Pentium gcc compiler,
7513 # which looks to be a dead project)
7514 lt_prog_compiler_wl='-Wl,'
7515 lt_prog_compiler_pic='-fpic'
7516 lt_prog_compiler_static='-Bstatic'
7517 ;;
7518 ccc*)
7519 lt_prog_compiler_wl='-Wl,'
7520 # All Alpha code is PIC.
7521 lt_prog_compiler_static='-non_shared'
7522 ;;
7523 xl* | bgxl* | bgf* | mpixl*)
7524 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7525 lt_prog_compiler_wl='-Wl,'
7526 lt_prog_compiler_pic='-qpic'
7527 lt_prog_compiler_static='-qstaticlink'
7528 ;;
7529 *)
7530 case `$CC -V 2>&1 | sed 5q` in
7531 *Sun\ F* | *Sun*Fortran*)
7532 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7533 lt_prog_compiler_pic='-KPIC'
7534 lt_prog_compiler_static='-Bstatic'
7535 lt_prog_compiler_wl=''
7536 ;;
7537 *Sun\ C*)
7538 # Sun C 5.9
7539 lt_prog_compiler_pic='-KPIC'
7540 lt_prog_compiler_static='-Bstatic'
7541 lt_prog_compiler_wl='-Wl,'
7542 ;;
7543 esac
7544 ;;
7545 esac
7546 ;;
7547
7548 newsos6)
7549 lt_prog_compiler_pic='-KPIC'
7550 lt_prog_compiler_static='-Bstatic'
7551 ;;
7552
7553 *nto* | *qnx*)
7554 # QNX uses GNU C++, but need to define -shared option too, otherwise
7555 # it will coredump.
7556 lt_prog_compiler_pic='-fPIC -shared'
7557 ;;
7558
7559 osf3* | osf4* | osf5*)
7560 lt_prog_compiler_wl='-Wl,'
7561 # All OSF/1 code is PIC.
7562 lt_prog_compiler_static='-non_shared'
7563 ;;
7564
7565 rdos*)
7566 lt_prog_compiler_static='-non_shared'
7567 ;;
7568
7569 solaris*)
7570 lt_prog_compiler_pic='-KPIC'
7571 lt_prog_compiler_static='-Bstatic'
7572 case $cc_basename in
7573 f77* | f90* | f95*)
7574 lt_prog_compiler_wl='-Qoption ld ';;
7575 *)
7576 lt_prog_compiler_wl='-Wl,';;
7577 esac
7578 ;;
7579
7580 sunos4*)
7581 lt_prog_compiler_wl='-Qoption ld '
7582 lt_prog_compiler_pic='-PIC'
7583 lt_prog_compiler_static='-Bstatic'
7584 ;;
7585
7586 sysv4 | sysv4.2uw2* | sysv4.3*)
7587 lt_prog_compiler_wl='-Wl,'
7588 lt_prog_compiler_pic='-KPIC'
7589 lt_prog_compiler_static='-Bstatic'
7590 ;;
7591
7592 sysv4*MP*)
7593 if test -d /usr/nec ;then
7594 lt_prog_compiler_pic='-Kconform_pic'
7595 lt_prog_compiler_static='-Bstatic'
7596 fi
7597 ;;
7598
7599 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7600 lt_prog_compiler_wl='-Wl,'
7601 lt_prog_compiler_pic='-KPIC'
7602 lt_prog_compiler_static='-Bstatic'
7603 ;;
7604
7605 unicos*)
7606 lt_prog_compiler_wl='-Wl,'
7607 lt_prog_compiler_can_build_shared=no
7608 ;;
7609
7610 uts4*)
7611 lt_prog_compiler_pic='-pic'
7612 lt_prog_compiler_static='-Bstatic'
7613 ;;
7614
7615 *)
7616 lt_prog_compiler_can_build_shared=no
7617 ;;
7618 esac
7619 fi
7620
7621 case $host_os in
7622 # For platforms which do not support PIC, -DPIC is meaningless:
7623 *djgpp*)
7624 lt_prog_compiler_pic=
7625 ;;
7626 *)
7627 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7628 ;;
7629 esac
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7631 $as_echo "$lt_prog_compiler_pic" >&6; }
7632
7633
7634
7635
7636
7637
7638 #
7639 # Check to make sure the PIC flag actually works.
7640 #
7641 if test -n "$lt_prog_compiler_pic"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7643 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7644 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 lt_cv_prog_compiler_pic_works=no
7648 ac_outfile=conftest.$ac_objext
7649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7650 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7651 # Insert the option either (1) after the last *FLAGS variable, or
7652 # (2) before a word containing "conftest.", or (3) at the end.
7653 # Note that $ac_compile itself does not contain backslashes and begins
7654 # with a dollar sign (not a hyphen), so the echo should work correctly.
7655 # The option is referenced via a variable to avoid confusing sed.
7656 lt_compile=`echo "$ac_compile" | $SED \
7657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7659 -e 's:$: $lt_compiler_flag:'`
7660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7661 (eval "$lt_compile" 2>conftest.err)
7662 ac_status=$?
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 if (exit $ac_status) && test -s "$ac_outfile"; then
7666 # The compiler can only warn and ignore the option if not recognized
7667 # So say no if there are warnings other than the usual output.
7668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7671 lt_cv_prog_compiler_pic_works=yes
7672 fi
7673 fi
7674 $RM conftest*
7675
7676 fi
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7678 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7679
7680 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7681 case $lt_prog_compiler_pic in
7682 "" | " "*) ;;
7683 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7684 esac
7685 else
7686 lt_prog_compiler_pic=
7687 lt_prog_compiler_can_build_shared=no
7688 fi
7689
7690 fi
7691
7692
7693
7694
7695
7696
7697 #
7698 # Check to make sure the static flag actually works.
7699 #
7700 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7702 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7703 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 lt_cv_prog_compiler_static_works=no
7707 save_LDFLAGS="$LDFLAGS"
7708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7711 # The linker can only warn and ignore the option if not recognized
7712 # So say no if there are warnings
7713 if test -s conftest.err; then
7714 # Append any errors to the config.log.
7715 cat conftest.err 1>&5
7716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7718 if diff conftest.exp conftest.er2 >/dev/null; then
7719 lt_cv_prog_compiler_static_works=yes
7720 fi
7721 else
7722 lt_cv_prog_compiler_static_works=yes
7723 fi
7724 fi
7725 $RM -r conftest*
7726 LDFLAGS="$save_LDFLAGS"
7727
7728 fi
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7730 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7731
7732 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7733 :
7734 else
7735 lt_prog_compiler_static=
7736 fi
7737
7738
7739
7740
7741
7742
7743
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7745 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7746 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 lt_cv_prog_compiler_c_o=no
7750 $RM -r conftest 2>/dev/null
7751 mkdir conftest
7752 cd conftest
7753 mkdir out
7754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7755
7756 lt_compiler_flag="-o out/conftest2.$ac_objext"
7757 # Insert the option either (1) after the last *FLAGS variable, or
7758 # (2) before a word containing "conftest.", or (3) at the end.
7759 # Note that $ac_compile itself does not contain backslashes and begins
7760 # with a dollar sign (not a hyphen), so the echo should work correctly.
7761 lt_compile=`echo "$ac_compile" | $SED \
7762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7764 -e 's:$: $lt_compiler_flag:'`
7765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7766 (eval "$lt_compile" 2>out/conftest.err)
7767 ac_status=$?
7768 cat out/conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7771 then
7772 # The compiler can only warn and ignore the option if not recognized
7773 # So say no if there are warnings
7774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7775 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7776 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7777 lt_cv_prog_compiler_c_o=yes
7778 fi
7779 fi
7780 chmod u+w . 2>&5
7781 $RM conftest*
7782 # SGI C++ compiler will create directory out/ii_files/ for
7783 # template instantiation
7784 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7785 $RM out/* && rmdir out
7786 cd ..
7787 $RM -r conftest
7788 $RM conftest*
7789
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7792 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7793
7794
7795
7796
7797
7798
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7800 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7801 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 lt_cv_prog_compiler_c_o=no
7805 $RM -r conftest 2>/dev/null
7806 mkdir conftest
7807 cd conftest
7808 mkdir out
7809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7810
7811 lt_compiler_flag="-o out/conftest2.$ac_objext"
7812 # Insert the option either (1) after the last *FLAGS variable, or
7813 # (2) before a word containing "conftest.", or (3) at the end.
7814 # Note that $ac_compile itself does not contain backslashes and begins
7815 # with a dollar sign (not a hyphen), so the echo should work correctly.
7816 lt_compile=`echo "$ac_compile" | $SED \
7817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7819 -e 's:$: $lt_compiler_flag:'`
7820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7821 (eval "$lt_compile" 2>out/conftest.err)
7822 ac_status=$?
7823 cat out/conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7826 then
7827 # The compiler can only warn and ignore the option if not recognized
7828 # So say no if there are warnings
7829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7832 lt_cv_prog_compiler_c_o=yes
7833 fi
7834 fi
7835 chmod u+w . 2>&5
7836 $RM conftest*
7837 # SGI C++ compiler will create directory out/ii_files/ for
7838 # template instantiation
7839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7840 $RM out/* && rmdir out
7841 cd ..
7842 $RM -r conftest
7843 $RM conftest*
7844
7845 fi
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7847 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7848
7849
7850
7851
7852 hard_links="nottested"
7853 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7854 # do not overwrite the value of need_locks provided by the user
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7856 $as_echo_n "checking if we can lock with hard links... " >&6; }
7857 hard_links=yes
7858 $RM conftest*
7859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7860 touch conftest.a
7861 ln conftest.a conftest.b 2>&5 || hard_links=no
7862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7864 $as_echo "$hard_links" >&6; }
7865 if test "$hard_links" = no; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7867 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7868 need_locks=warn
7869 fi
7870 else
7871 need_locks=no
7872 fi
7873
7874
7875
7876
7877
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7880 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7881
7882 runpath_var=
7883 allow_undefined_flag=
7884 always_export_symbols=no
7885 archive_cmds=
7886 archive_expsym_cmds=
7887 compiler_needs_object=no
7888 enable_shared_with_static_runtimes=no
7889 export_dynamic_flag_spec=
7890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7891 hardcode_automatic=no
7892 hardcode_direct=no
7893 hardcode_direct_absolute=no
7894 hardcode_libdir_flag_spec=
7895 hardcode_libdir_flag_spec_ld=
7896 hardcode_libdir_separator=
7897 hardcode_minus_L=no
7898 hardcode_shlibpath_var=unsupported
7899 inherit_rpath=no
7900 link_all_deplibs=unknown
7901 module_cmds=
7902 module_expsym_cmds=
7903 old_archive_from_new_cmds=
7904 old_archive_from_expsyms_cmds=
7905 thread_safe_flag_spec=
7906 whole_archive_flag_spec=
7907 # include_expsyms should be a list of space-separated symbols to be *always*
7908 # included in the symbol list
7909 include_expsyms=
7910 # exclude_expsyms can be an extended regexp of symbols to exclude
7911 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7912 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7913 # as well as any symbol that contains `d'.
7914 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7915 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7916 # platforms (ab)use it in PIC code, but their linkers get confused if
7917 # the symbol is explicitly referenced. Since portable code cannot
7918 # rely on this symbol name, it's probably fine to never include it in
7919 # preloaded symbol tables.
7920 # Exclude shared library initialization/finalization symbols.
7921 extract_expsyms_cmds=
7922
7923 case $host_os in
7924 cygwin* | mingw* | pw32* | cegcc*)
7925 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7926 # When not using gcc, we currently assume that we are using
7927 # Microsoft Visual C++.
7928 if test "$GCC" != yes; then
7929 with_gnu_ld=no
7930 fi
7931 ;;
7932 interix*)
7933 # we just hope/assume this is gcc and not c89 (= MSVC++)
7934 with_gnu_ld=yes
7935 ;;
7936 openbsd*)
7937 with_gnu_ld=no
7938 ;;
7939 esac
7940
7941 ld_shlibs=yes
7942
7943 # On some targets, GNU ld is compatible enough with the native linker
7944 # that we're better off using the native interface for both.
7945 lt_use_gnu_ld_interface=no
7946 if test "$with_gnu_ld" = yes; then
7947 case $host_os in
7948 aix*)
7949 # The AIX port of GNU ld has always aspired to compatibility
7950 # with the native linker. However, as the warning in the GNU ld
7951 # block says, versions before 2.19.5* couldn't really create working
7952 # shared libraries, regardless of the interface used.
7953 case `$LD -v 2>&1` in
7954 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7955 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7956 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7957 *)
7958 lt_use_gnu_ld_interface=yes
7959 ;;
7960 esac
7961 ;;
7962 *)
7963 lt_use_gnu_ld_interface=yes
7964 ;;
7965 esac
7966 fi
7967
7968 if test "$lt_use_gnu_ld_interface" = yes; then
7969 # If archive_cmds runs LD, not CC, wlarc should be empty
7970 wlarc='${wl}'
7971
7972 # Set some defaults for GNU ld with shared library support. These
7973 # are reset later if shared libraries are not supported. Putting them
7974 # here allows them to be overridden if necessary.
7975 runpath_var=LD_RUN_PATH
7976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7977 export_dynamic_flag_spec='${wl}--export-dynamic'
7978 # ancient GNU ld didn't support --whole-archive et. al.
7979 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7980 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7981 else
7982 whole_archive_flag_spec=
7983 fi
7984 supports_anon_versioning=no
7985 case `$LD -v 2>&1` in
7986 *GNU\ gold*) supports_anon_versioning=yes ;;
7987 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7988 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7989 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7990 *\ 2.11.*) ;; # other 2.11 versions
7991 *) supports_anon_versioning=yes ;;
7992 esac
7993
7994 # See if GNU ld supports shared libraries.
7995 case $host_os in
7996 aix[3-9]*)
7997 # On AIX/PPC, the GNU linker is very broken
7998 if test "$host_cpu" != ia64; then
7999 ld_shlibs=no
8000 cat <<_LT_EOF 1>&2
8001
8002 *** Warning: the GNU linker, at least up to release 2.19, is reported
8003 *** to be unable to reliably create shared libraries on AIX.
8004 *** Therefore, libtool is disabling shared libraries support. If you
8005 *** really care for shared libraries, you may want to install binutils
8006 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8007 *** You will then need to restart the configuration process.
8008
8009 _LT_EOF
8010 fi
8011 ;;
8012
8013 amigaos*)
8014 case $host_cpu in
8015 powerpc)
8016 # see comment about AmigaOS4 .so support
8017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8018 archive_expsym_cmds=''
8019 ;;
8020 m68k)
8021 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)'
8022 hardcode_libdir_flag_spec='-L$libdir'
8023 hardcode_minus_L=yes
8024 ;;
8025 esac
8026 ;;
8027
8028 beos*)
8029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8030 allow_undefined_flag=unsupported
8031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8032 # support --undefined. This deserves some investigation. FIXME
8033 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8034 else
8035 ld_shlibs=no
8036 fi
8037 ;;
8038
8039 cygwin* | mingw* | pw32* | cegcc*)
8040 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8041 # as there is no search path for DLLs.
8042 hardcode_libdir_flag_spec='-L$libdir'
8043 export_dynamic_flag_spec='${wl}--export-all-symbols'
8044 allow_undefined_flag=unsupported
8045 always_export_symbols=no
8046 enable_shared_with_static_runtimes=yes
8047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8048
8049 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8051 # If the export-symbols file already is a .def file (1st line
8052 # is EXPORTS), use it as is; otherwise, prepend...
8053 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8054 cp $export_symbols $output_objdir/$soname.def;
8055 else
8056 echo EXPORTS > $output_objdir/$soname.def;
8057 cat $export_symbols >> $output_objdir/$soname.def;
8058 fi~
8059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8060 else
8061 ld_shlibs=no
8062 fi
8063 ;;
8064
8065 haiku*)
8066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8067 link_all_deplibs=yes
8068 ;;
8069
8070 interix[3-9]*)
8071 hardcode_direct=no
8072 hardcode_shlibpath_var=no
8073 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8074 export_dynamic_flag_spec='${wl}-E'
8075 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8076 # Instead, shared libraries are loaded at an image base (0x10000000 by
8077 # default) and relocated if they conflict, which is a slow very memory
8078 # consuming and fragmenting process. To avoid this, we pick a random,
8079 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8080 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8082 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'
8083 ;;
8084
8085 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8086 tmp_diet=no
8087 if test "$host_os" = linux-dietlibc; then
8088 case $cc_basename in
8089 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8090 esac
8091 fi
8092 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8093 && test "$tmp_diet" = no
8094 then
8095 tmp_addflag=
8096 tmp_sharedflag='-shared'
8097 case $cc_basename,$host_cpu in
8098 pgcc*) # Portland Group C compiler
8099 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'
8100 tmp_addflag=' $pic_flag'
8101 ;;
8102 pgf77* | pgf90* | pgf95* | pgfortran*)
8103 # Portland Group f77 and f90 compilers
8104 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'
8105 tmp_addflag=' $pic_flag -Mnomain' ;;
8106 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8107 tmp_addflag=' -i_dynamic' ;;
8108 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8109 tmp_addflag=' -i_dynamic -nofor_main' ;;
8110 ifc* | ifort*) # Intel Fortran compiler
8111 tmp_addflag=' -nofor_main' ;;
8112 lf95*) # Lahey Fortran 8.1
8113 whole_archive_flag_spec=
8114 tmp_sharedflag='--shared' ;;
8115 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8116 tmp_sharedflag='-qmkshrobj'
8117 tmp_addflag= ;;
8118 nvcc*) # Cuda Compiler Driver 2.2
8119 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'
8120 compiler_needs_object=yes
8121 ;;
8122 esac
8123 case `$CC -V 2>&1 | sed 5q` in
8124 *Sun\ C*) # Sun C 5.9
8125 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'
8126 compiler_needs_object=yes
8127 tmp_sharedflag='-G' ;;
8128 *Sun\ F*) # Sun Fortran 8.3
8129 tmp_sharedflag='-G' ;;
8130 esac
8131 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8132
8133 if test "x$supports_anon_versioning" = xyes; then
8134 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8136 echo "local: *; };" >> $output_objdir/$libname.ver~
8137 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8138 fi
8139
8140 case $cc_basename in
8141 xlf* | bgf* | bgxlf* | mpixlf*)
8142 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8143 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8144 hardcode_libdir_flag_spec=
8145 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8146 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8147 if test "x$supports_anon_versioning" = xyes; then
8148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8150 echo "local: *; };" >> $output_objdir/$libname.ver~
8151 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8152 fi
8153 ;;
8154 esac
8155 else
8156 ld_shlibs=no
8157 fi
8158 ;;
8159
8160 netbsd*)
8161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8163 wlarc=
8164 else
8165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8167 fi
8168 ;;
8169
8170 solaris*)
8171 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8172 ld_shlibs=no
8173 cat <<_LT_EOF 1>&2
8174
8175 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8176 *** create shared libraries on Solaris systems. Therefore, libtool
8177 *** is disabling shared libraries support. We urge you to upgrade GNU
8178 *** binutils to release 2.9.1 or newer. Another option is to modify
8179 *** your PATH or compiler configuration so that the native linker is
8180 *** used, and then restart.
8181
8182 _LT_EOF
8183 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8186 else
8187 ld_shlibs=no
8188 fi
8189 ;;
8190
8191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8192 case `$LD -v 2>&1` in
8193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8194 ld_shlibs=no
8195 cat <<_LT_EOF 1>&2
8196
8197 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8198 *** reliably create shared libraries on SCO systems. Therefore, libtool
8199 *** is disabling shared libraries support. We urge you to upgrade GNU
8200 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8201 *** your PATH or compiler configuration so that the native linker is
8202 *** used, and then restart.
8203
8204 _LT_EOF
8205 ;;
8206 *)
8207 # For security reasons, it is highly recommended that you always
8208 # use absolute paths for naming shared libraries, and exclude the
8209 # DT_RUNPATH tag from executables and libraries. But doing so
8210 # requires that you compile everything twice, which is a pain.
8211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8215 else
8216 ld_shlibs=no
8217 fi
8218 ;;
8219 esac
8220 ;;
8221
8222 sunos4*)
8223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8224 wlarc=
8225 hardcode_direct=yes
8226 hardcode_shlibpath_var=no
8227 ;;
8228
8229 *)
8230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8233 else
8234 ld_shlibs=no
8235 fi
8236 ;;
8237 esac
8238
8239 if test "$ld_shlibs" = no; then
8240 runpath_var=
8241 hardcode_libdir_flag_spec=
8242 export_dynamic_flag_spec=
8243 whole_archive_flag_spec=
8244 fi
8245 else
8246 # PORTME fill in a description of your system's linker (not GNU ld)
8247 case $host_os in
8248 aix3*)
8249 allow_undefined_flag=unsupported
8250 always_export_symbols=yes
8251 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'
8252 # Note: this linker hardcodes the directories in LIBPATH if there
8253 # are no directories specified by -L.
8254 hardcode_minus_L=yes
8255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8256 # Neither direct hardcoding nor static linking is supported with a
8257 # broken collect2.
8258 hardcode_direct=unsupported
8259 fi
8260 ;;
8261
8262 aix[4-9]*)
8263 if test "$host_cpu" = ia64; then
8264 # On IA64, the linker does run time linking by default, so we don't
8265 # have to do anything special.
8266 aix_use_runtimelinking=no
8267 exp_sym_flag='-Bexport'
8268 no_entry_flag=""
8269 else
8270 # If we're using GNU nm, then we don't want the "-C" option.
8271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8272 # Also, AIX nm treats weak defined symbols like other global
8273 # defined symbols, whereas GNU nm marks them as "W".
8274 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8275 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'
8276 else
8277 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'
8278 fi
8279 aix_use_runtimelinking=no
8280
8281 # Test if we are trying to use run time linking or normal
8282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8283 # need to do runtime linking.
8284 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8285 for ld_flag in $LDFLAGS; do
8286 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8287 aix_use_runtimelinking=yes
8288 break
8289 fi
8290 done
8291 ;;
8292 esac
8293
8294 exp_sym_flag='-bexport'
8295 no_entry_flag='-bnoentry'
8296 fi
8297
8298 # When large executables or shared objects are built, AIX ld can
8299 # have problems creating the table of contents. If linking a library
8300 # or program results in "error TOC overflow" add -mminimal-toc to
8301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8303
8304 archive_cmds=''
8305 hardcode_direct=yes
8306 hardcode_direct_absolute=yes
8307 hardcode_libdir_separator=':'
8308 link_all_deplibs=yes
8309 file_list_spec='${wl}-f,'
8310
8311 if test "$GCC" = yes; then
8312 case $host_os in aix4.[012]|aix4.[012].*)
8313 # We only want to do this on AIX 4.2 and lower, the check
8314 # below for broken collect2 doesn't work under 4.3+
8315 collect2name=`${CC} -print-prog-name=collect2`
8316 if test -f "$collect2name" &&
8317 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8318 then
8319 # We have reworked collect2
8320 :
8321 else
8322 # We have old collect2
8323 hardcode_direct=unsupported
8324 # It fails to find uninstalled libraries when the uninstalled
8325 # path is not listed in the libpath. Setting hardcode_minus_L
8326 # to unsupported forces relinking
8327 hardcode_minus_L=yes
8328 hardcode_libdir_flag_spec='-L$libdir'
8329 hardcode_libdir_separator=
8330 fi
8331 ;;
8332 esac
8333 shared_flag='-shared'
8334 if test "$aix_use_runtimelinking" = yes; then
8335 shared_flag="$shared_flag "'${wl}-G'
8336 fi
8337 else
8338 # not using gcc
8339 if test "$host_cpu" = ia64; then
8340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8341 # chokes on -Wl,-G. The following line is correct:
8342 shared_flag='-G'
8343 else
8344 if test "$aix_use_runtimelinking" = yes; then
8345 shared_flag='${wl}-G'
8346 else
8347 shared_flag='${wl}-bM:SRE'
8348 fi
8349 fi
8350 fi
8351
8352 export_dynamic_flag_spec='${wl}-bexpall'
8353 # It seems that -bexpall does not export symbols beginning with
8354 # underscore (_), so it is better to generate a list of symbols to export.
8355 always_export_symbols=yes
8356 if test "$aix_use_runtimelinking" = yes; then
8357 # Warning - without using the other runtime loading flags (-brtl),
8358 # -berok will link without error, but may produce a broken library.
8359 allow_undefined_flag='-berok'
8360 # Determine the default libpath from the value encoded in an
8361 # empty executable.
8362 if test x$gcc_no_link = xyes; then
8363 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8364 fi
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367
8368 int
8369 main ()
8370 {
8371
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_link "$LINENO"; then :
8377
8378 lt_aix_libpath_sed='
8379 /Import File Strings/,/^$/ {
8380 /^0/ {
8381 s/^0 *\(.*\)$/\1/
8382 p
8383 }
8384 }'
8385 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8386 # Check for a 64-bit object if we didn't find anything.
8387 if test -z "$aix_libpath"; then
8388 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8389 fi
8390 fi
8391 rm -f core conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8394
8395 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8396 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"
8397 else
8398 if test "$host_cpu" = ia64; then
8399 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8400 allow_undefined_flag="-z nodefs"
8401 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"
8402 else
8403 # Determine the default libpath from the value encoded in an
8404 # empty executable.
8405 if test x$gcc_no_link = xyes; then
8406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8407 fi
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410
8411 int
8412 main ()
8413 {
8414
8415 ;
8416 return 0;
8417 }
8418 _ACEOF
8419 if ac_fn_c_try_link "$LINENO"; then :
8420
8421 lt_aix_libpath_sed='
8422 /Import File Strings/,/^$/ {
8423 /^0/ {
8424 s/^0 *\(.*\)$/\1/
8425 p
8426 }
8427 }'
8428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8429 # Check for a 64-bit object if we didn't find anything.
8430 if test -z "$aix_libpath"; then
8431 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8432 fi
8433 fi
8434 rm -f core conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8437
8438 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8439 # Warning - without using the other run time loading flags,
8440 # -berok will link without error, but may produce a broken library.
8441 no_undefined_flag=' ${wl}-bernotok'
8442 allow_undefined_flag=' ${wl}-berok'
8443 if test "$with_gnu_ld" = yes; then
8444 # We only use this code for GNU lds that support --whole-archive.
8445 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8446 else
8447 # Exported symbols can be pulled into shared objects from archives
8448 whole_archive_flag_spec='$convenience'
8449 fi
8450 archive_cmds_need_lc=yes
8451 # This is similar to how AIX traditionally builds its shared libraries.
8452 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'
8453 fi
8454 fi
8455 ;;
8456
8457 amigaos*)
8458 case $host_cpu in
8459 powerpc)
8460 # see comment about AmigaOS4 .so support
8461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462 archive_expsym_cmds=''
8463 ;;
8464 m68k)
8465 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)'
8466 hardcode_libdir_flag_spec='-L$libdir'
8467 hardcode_minus_L=yes
8468 ;;
8469 esac
8470 ;;
8471
8472 bsdi[45]*)
8473 export_dynamic_flag_spec=-rdynamic
8474 ;;
8475
8476 cygwin* | mingw* | pw32* | cegcc*)
8477 # When not using gcc, we currently assume that we are using
8478 # Microsoft Visual C++.
8479 # hardcode_libdir_flag_spec is actually meaningless, as there is
8480 # no search path for DLLs.
8481 hardcode_libdir_flag_spec=' '
8482 allow_undefined_flag=unsupported
8483 # Tell ltmain to make .lib files, not .a files.
8484 libext=lib
8485 # Tell ltmain to make .dll files, not .so files.
8486 shrext_cmds=".dll"
8487 # FIXME: Setting linknames here is a bad hack.
8488 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8489 # The linker will automatically build a .lib file if we build a DLL.
8490 old_archive_from_new_cmds='true'
8491 # FIXME: Should let the user specify the lib program.
8492 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8493 fix_srcfile_path='`cygpath -w "$srcfile"`'
8494 enable_shared_with_static_runtimes=yes
8495 ;;
8496
8497 darwin* | rhapsody*)
8498
8499
8500 archive_cmds_need_lc=no
8501 hardcode_direct=no
8502 hardcode_automatic=yes
8503 hardcode_shlibpath_var=unsupported
8504 if test "$lt_cv_ld_force_load" = "yes"; then
8505 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\"`'
8506 else
8507 whole_archive_flag_spec=''
8508 fi
8509 link_all_deplibs=yes
8510 allow_undefined_flag="$_lt_dar_allow_undefined"
8511 case $cc_basename in
8512 ifort*) _lt_dar_can_shared=yes ;;
8513 *) _lt_dar_can_shared=$GCC ;;
8514 esac
8515 if test "$_lt_dar_can_shared" = "yes"; then
8516 output_verbose_link_cmd=func_echo_all
8517 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8518 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8519 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}"
8520 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}"
8521
8522 else
8523 ld_shlibs=no
8524 fi
8525
8526 ;;
8527
8528 dgux*)
8529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_libdir_flag_spec='-L$libdir'
8531 hardcode_shlibpath_var=no
8532 ;;
8533
8534 freebsd1*)
8535 ld_shlibs=no
8536 ;;
8537
8538 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8539 # support. Future versions do this automatically, but an explicit c++rt0.o
8540 # does not break anything, and helps significantly (at the cost of a little
8541 # extra space).
8542 freebsd2.2*)
8543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8544 hardcode_libdir_flag_spec='-R$libdir'
8545 hardcode_direct=yes
8546 hardcode_shlibpath_var=no
8547 ;;
8548
8549 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8550 freebsd2*)
8551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8552 hardcode_direct=yes
8553 hardcode_minus_L=yes
8554 hardcode_shlibpath_var=no
8555 ;;
8556
8557 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8558 freebsd* | dragonfly*)
8559 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8560 hardcode_libdir_flag_spec='-R$libdir'
8561 hardcode_direct=yes
8562 hardcode_shlibpath_var=no
8563 ;;
8564
8565 hpux9*)
8566 if test "$GCC" = yes; then
8567 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'
8568 else
8569 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'
8570 fi
8571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8572 hardcode_libdir_separator=:
8573 hardcode_direct=yes
8574
8575 # hardcode_minus_L: Not really in the search PATH,
8576 # but as the default location of the library.
8577 hardcode_minus_L=yes
8578 export_dynamic_flag_spec='${wl}-E'
8579 ;;
8580
8581 hpux10*)
8582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8583 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8584 else
8585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8586 fi
8587 if test "$with_gnu_ld" = no; then
8588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8589 hardcode_libdir_flag_spec_ld='+b $libdir'
8590 hardcode_libdir_separator=:
8591 hardcode_direct=yes
8592 hardcode_direct_absolute=yes
8593 export_dynamic_flag_spec='${wl}-E'
8594 # hardcode_minus_L: Not really in the search PATH,
8595 # but as the default location of the library.
8596 hardcode_minus_L=yes
8597 fi
8598 ;;
8599
8600 hpux11*)
8601 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8602 case $host_cpu in
8603 hppa*64*)
8604 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8605 ;;
8606 ia64*)
8607 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8608 ;;
8609 *)
8610 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8611 ;;
8612 esac
8613 else
8614 case $host_cpu in
8615 hppa*64*)
8616 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8617 ;;
8618 ia64*)
8619 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8620 ;;
8621 *)
8622
8623 # Older versions of the 11.00 compiler do not understand -b yet
8624 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8626 $as_echo_n "checking if $CC understands -b... " >&6; }
8627 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 lt_cv_prog_compiler__b=no
8631 save_LDFLAGS="$LDFLAGS"
8632 LDFLAGS="$LDFLAGS -b"
8633 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8634 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8635 # The linker can only warn and ignore the option if not recognized
8636 # So say no if there are warnings
8637 if test -s conftest.err; then
8638 # Append any errors to the config.log.
8639 cat conftest.err 1>&5
8640 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8642 if diff conftest.exp conftest.er2 >/dev/null; then
8643 lt_cv_prog_compiler__b=yes
8644 fi
8645 else
8646 lt_cv_prog_compiler__b=yes
8647 fi
8648 fi
8649 $RM -r conftest*
8650 LDFLAGS="$save_LDFLAGS"
8651
8652 fi
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8654 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8655
8656 if test x"$lt_cv_prog_compiler__b" = xyes; then
8657 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8658 else
8659 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8660 fi
8661
8662 ;;
8663 esac
8664 fi
8665 if test "$with_gnu_ld" = no; then
8666 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8667 hardcode_libdir_separator=:
8668
8669 case $host_cpu in
8670 hppa*64*|ia64*)
8671 hardcode_direct=no
8672 hardcode_shlibpath_var=no
8673 ;;
8674 *)
8675 hardcode_direct=yes
8676 hardcode_direct_absolute=yes
8677 export_dynamic_flag_spec='${wl}-E'
8678
8679 # hardcode_minus_L: Not really in the search PATH,
8680 # but as the default location of the library.
8681 hardcode_minus_L=yes
8682 ;;
8683 esac
8684 fi
8685 ;;
8686
8687 irix5* | irix6* | nonstopux*)
8688 if test "$GCC" = yes; then
8689 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'
8690 # Try to use the -exported_symbol ld option, if it does not
8691 # work, assume that -exports_file does not work either and
8692 # implicitly export all symbols.
8693 save_LDFLAGS="$LDFLAGS"
8694 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8695 if test x$gcc_no_link = xyes; then
8696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8697 fi
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 int foo(void) {}
8701 _ACEOF
8702 if ac_fn_c_try_link "$LINENO"; then :
8703 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'
8704
8705 fi
8706 rm -f core conftest.err conftest.$ac_objext \
8707 conftest$ac_exeext conftest.$ac_ext
8708 LDFLAGS="$save_LDFLAGS"
8709 else
8710 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'
8711 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'
8712 fi
8713 archive_cmds_need_lc='no'
8714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8715 hardcode_libdir_separator=:
8716 inherit_rpath=yes
8717 link_all_deplibs=yes
8718 ;;
8719
8720 netbsd*)
8721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8723 else
8724 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8725 fi
8726 hardcode_libdir_flag_spec='-R$libdir'
8727 hardcode_direct=yes
8728 hardcode_shlibpath_var=no
8729 ;;
8730
8731 newsos6)
8732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733 hardcode_direct=yes
8734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8735 hardcode_libdir_separator=:
8736 hardcode_shlibpath_var=no
8737 ;;
8738
8739 *nto* | *qnx*)
8740 ;;
8741
8742 openbsd*)
8743 if test -f /usr/libexec/ld.so; then
8744 hardcode_direct=yes
8745 hardcode_shlibpath_var=no
8746 hardcode_direct_absolute=yes
8747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8749 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8751 export_dynamic_flag_spec='${wl}-E'
8752 else
8753 case $host_os in
8754 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8756 hardcode_libdir_flag_spec='-R$libdir'
8757 ;;
8758 *)
8759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8761 ;;
8762 esac
8763 fi
8764 else
8765 ld_shlibs=no
8766 fi
8767 ;;
8768
8769 os2*)
8770 hardcode_libdir_flag_spec='-L$libdir'
8771 hardcode_minus_L=yes
8772 allow_undefined_flag=unsupported
8773 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'
8774 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8775 ;;
8776
8777 osf3*)
8778 if test "$GCC" = yes; then
8779 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8780 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'
8781 else
8782 allow_undefined_flag=' -expect_unresolved \*'
8783 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'
8784 fi
8785 archive_cmds_need_lc='no'
8786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8787 hardcode_libdir_separator=:
8788 ;;
8789
8790 osf4* | osf5*) # as osf3* with the addition of -msym flag
8791 if test "$GCC" = yes; then
8792 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8793 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'
8794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8795 else
8796 allow_undefined_flag=' -expect_unresolved \*'
8797 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'
8798 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~
8799 $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'
8800
8801 # Both c and cxx compiler support -rpath directly
8802 hardcode_libdir_flag_spec='-rpath $libdir'
8803 fi
8804 archive_cmds_need_lc='no'
8805 hardcode_libdir_separator=:
8806 ;;
8807
8808 solaris*)
8809 no_undefined_flag=' -z defs'
8810 if test "$GCC" = yes; then
8811 wlarc='${wl}'
8812 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8813 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8814 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8815 else
8816 case `$CC -V 2>&1` in
8817 *"Compilers 5.0"*)
8818 wlarc=''
8819 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8820 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8821 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8822 ;;
8823 *)
8824 wlarc='${wl}'
8825 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8827 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8828 ;;
8829 esac
8830 fi
8831 hardcode_libdir_flag_spec='-R$libdir'
8832 hardcode_shlibpath_var=no
8833 case $host_os in
8834 solaris2.[0-5] | solaris2.[0-5].*) ;;
8835 *)
8836 # The compiler driver will combine and reorder linker options,
8837 # but understands `-z linker_flag'. GCC discards it without `$wl',
8838 # but is careful enough not to reorder.
8839 # Supported since Solaris 2.6 (maybe 2.5.1?)
8840 if test "$GCC" = yes; then
8841 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8842 else
8843 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8844 fi
8845 ;;
8846 esac
8847 link_all_deplibs=yes
8848 ;;
8849
8850 sunos4*)
8851 if test "x$host_vendor" = xsequent; then
8852 # Use $CC to link under sequent, because it throws in some extra .o
8853 # files that make .init and .fini sections work.
8854 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8855 else
8856 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8857 fi
8858 hardcode_libdir_flag_spec='-L$libdir'
8859 hardcode_direct=yes
8860 hardcode_minus_L=yes
8861 hardcode_shlibpath_var=no
8862 ;;
8863
8864 sysv4)
8865 case $host_vendor in
8866 sni)
8867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8868 hardcode_direct=yes # is this really true???
8869 ;;
8870 siemens)
8871 ## LD is ld it makes a PLAMLIB
8872 ## CC just makes a GrossModule.
8873 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8874 reload_cmds='$CC -r -o $output$reload_objs'
8875 hardcode_direct=no
8876 ;;
8877 motorola)
8878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8880 ;;
8881 esac
8882 runpath_var='LD_RUN_PATH'
8883 hardcode_shlibpath_var=no
8884 ;;
8885
8886 sysv4.3*)
8887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888 hardcode_shlibpath_var=no
8889 export_dynamic_flag_spec='-Bexport'
8890 ;;
8891
8892 sysv4*MP*)
8893 if test -d /usr/nec; then
8894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8895 hardcode_shlibpath_var=no
8896 runpath_var=LD_RUN_PATH
8897 hardcode_runpath_var=yes
8898 ld_shlibs=yes
8899 fi
8900 ;;
8901
8902 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8903 no_undefined_flag='${wl}-z,text'
8904 archive_cmds_need_lc=no
8905 hardcode_shlibpath_var=no
8906 runpath_var='LD_RUN_PATH'
8907
8908 if test "$GCC" = yes; then
8909 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8910 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8911 else
8912 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8914 fi
8915 ;;
8916
8917 sysv5* | sco3.2v5* | sco5v6*)
8918 # Note: We can NOT use -z defs as we might desire, because we do not
8919 # link with -lc, and that would cause any symbols used from libc to
8920 # always be unresolved, which means just about no library would
8921 # ever link correctly. If we're not using GNU ld we use -z text
8922 # though, which does catch some bad symbols but isn't as heavy-handed
8923 # as -z defs.
8924 no_undefined_flag='${wl}-z,text'
8925 allow_undefined_flag='${wl}-z,nodefs'
8926 archive_cmds_need_lc=no
8927 hardcode_shlibpath_var=no
8928 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8929 hardcode_libdir_separator=':'
8930 link_all_deplibs=yes
8931 export_dynamic_flag_spec='${wl}-Bexport'
8932 runpath_var='LD_RUN_PATH'
8933
8934 if test "$GCC" = yes; then
8935 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8936 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8937 else
8938 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8939 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8940 fi
8941 ;;
8942
8943 uts4*)
8944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8945 hardcode_libdir_flag_spec='-L$libdir'
8946 hardcode_shlibpath_var=no
8947 ;;
8948
8949 *)
8950 ld_shlibs=no
8951 ;;
8952 esac
8953
8954 if test x$host_vendor = xsni; then
8955 case $host in
8956 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8957 export_dynamic_flag_spec='${wl}-Blargedynsym'
8958 ;;
8959 esac
8960 fi
8961 fi
8962
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8964 $as_echo "$ld_shlibs" >&6; }
8965 test "$ld_shlibs" = no && can_build_shared=no
8966
8967 with_gnu_ld=$with_gnu_ld
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983 #
8984 # Do we need to explicitly link libc?
8985 #
8986 case "x$archive_cmds_need_lc" in
8987 x|xyes)
8988 # Assume -lc should be added
8989 archive_cmds_need_lc=yes
8990
8991 if test "$enable_shared" = yes && test "$GCC" = yes; then
8992 case $archive_cmds in
8993 *'~'*)
8994 # FIXME: we may have to deal with multi-command sequences.
8995 ;;
8996 '$CC '*)
8997 # Test whether the compiler implicitly links with -lc since on some
8998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8999 # to ld, don't add -lc before -lgcc.
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9001 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9002 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 $RM conftest*
9006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007
9008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9009 (eval $ac_compile) 2>&5
9010 ac_status=$?
9011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9012 test $ac_status = 0; } 2>conftest.err; then
9013 soname=conftest
9014 lib=conftest
9015 libobjs=conftest.$ac_objext
9016 deplibs=
9017 wl=$lt_prog_compiler_wl
9018 pic_flag=$lt_prog_compiler_pic
9019 compiler_flags=-v
9020 linker_flags=-v
9021 verstring=
9022 output_objdir=.
9023 libname=conftest
9024 lt_save_allow_undefined_flag=$allow_undefined_flag
9025 allow_undefined_flag=
9026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9027 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9028 ac_status=$?
9029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9030 test $ac_status = 0; }
9031 then
9032 lt_cv_archive_cmds_need_lc=no
9033 else
9034 lt_cv_archive_cmds_need_lc=yes
9035 fi
9036 allow_undefined_flag=$lt_save_allow_undefined_flag
9037 else
9038 cat conftest.err 1>&5
9039 fi
9040 $RM conftest*
9041
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9044 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9045 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9046 ;;
9047 esac
9048 fi
9049 ;;
9050 esac
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9209 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9210
9211 if test "$GCC" = yes; then
9212 case $host_os in
9213 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9214 *) lt_awk_arg="/^libraries:/" ;;
9215 esac
9216 case $host_os in
9217 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9218 *) lt_sed_strip_eq="s,=/,/,g" ;;
9219 esac
9220 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9221 case $lt_search_path_spec in
9222 *\;*)
9223 # if the path contains ";" then we assume it to be the separator
9224 # otherwise default to the standard path separator (i.e. ":") - it is
9225 # assumed that no part of a normal pathname contains ";" but that should
9226 # okay in the real world where ";" in dirpaths is itself problematic.
9227 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9228 ;;
9229 *)
9230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9231 ;;
9232 esac
9233 # Ok, now we have the path, separated by spaces, we can step through it
9234 # and add multilib dir if necessary.
9235 lt_tmp_lt_search_path_spec=
9236 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9237 for lt_sys_path in $lt_search_path_spec; do
9238 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9239 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9240 else
9241 test -d "$lt_sys_path" && \
9242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9243 fi
9244 done
9245 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9246 BEGIN {RS=" "; FS="/|\n";} {
9247 lt_foo="";
9248 lt_count=0;
9249 for (lt_i = NF; lt_i > 0; lt_i--) {
9250 if ($lt_i != "" && $lt_i != ".") {
9251 if ($lt_i == "..") {
9252 lt_count++;
9253 } else {
9254 if (lt_count == 0) {
9255 lt_foo="/" $lt_i lt_foo;
9256 } else {
9257 lt_count--;
9258 }
9259 }
9260 }
9261 }
9262 if (lt_foo != "") { lt_freq[lt_foo]++; }
9263 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9264 }'`
9265 # AWK program above erroneously prepends '/' to C:/dos/paths
9266 # for these hosts.
9267 case $host_os in
9268 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9269 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9270 esac
9271 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9272 else
9273 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9274 fi
9275 library_names_spec=
9276 libname_spec='lib$name'
9277 soname_spec=
9278 shrext_cmds=".so"
9279 postinstall_cmds=
9280 postuninstall_cmds=
9281 finish_cmds=
9282 finish_eval=
9283 shlibpath_var=
9284 shlibpath_overrides_runpath=unknown
9285 version_type=none
9286 dynamic_linker="$host_os ld.so"
9287 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9288 need_lib_prefix=unknown
9289 hardcode_into_libs=no
9290
9291 # when you set need_version to no, make sure it does not cause -set_version
9292 # flags to be left without arguments
9293 need_version=unknown
9294
9295 case $host_os in
9296 aix3*)
9297 version_type=linux
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9299 shlibpath_var=LIBPATH
9300
9301 # AIX 3 has no versioning support, so we append a major version to the name.
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 ;;
9304
9305 aix[4-9]*)
9306 version_type=linux
9307 need_lib_prefix=no
9308 need_version=no
9309 hardcode_into_libs=yes
9310 if test "$host_cpu" = ia64; then
9311 # AIX 5 supports IA64
9312 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9313 shlibpath_var=LD_LIBRARY_PATH
9314 else
9315 # With GCC up to 2.95.x, collect2 would create an import file
9316 # for dependence libraries. The import file would start with
9317 # the line `#! .'. This would cause the generated library to
9318 # depend on `.', always an invalid library. This was fixed in
9319 # development snapshots of GCC prior to 3.0.
9320 case $host_os in
9321 aix4 | aix4.[01] | aix4.[01].*)
9322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9323 echo ' yes '
9324 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9325 :
9326 else
9327 can_build_shared=no
9328 fi
9329 ;;
9330 esac
9331 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9332 # soname into executable. Probably we can add versioning support to
9333 # collect2, so additional links can be useful in future.
9334 if test "$aix_use_runtimelinking" = yes; then
9335 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9336 # instead of lib<name>.a to let people know that these are not
9337 # typical AIX shared libraries.
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 else
9340 # We preserve .a as extension for shared libraries through AIX4.2
9341 # and later when we are not doing run time linking.
9342 library_names_spec='${libname}${release}.a $libname.a'
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 fi
9345 shlibpath_var=LIBPATH
9346 fi
9347 ;;
9348
9349 amigaos*)
9350 case $host_cpu in
9351 powerpc)
9352 # Since July 2007 AmigaOS4 officially supports .so libraries.
9353 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355 ;;
9356 m68k)
9357 library_names_spec='$libname.ixlibrary $libname.a'
9358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9359 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'
9360 ;;
9361 esac
9362 ;;
9363
9364 beos*)
9365 library_names_spec='${libname}${shared_ext}'
9366 dynamic_linker="$host_os ld.so"
9367 shlibpath_var=LIBRARY_PATH
9368 ;;
9369
9370 bsdi[45]*)
9371 version_type=linux
9372 need_version=no
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9379 # the default ld.so.conf also contains /usr/contrib/lib and
9380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9381 # libtool to hard-code these into programs
9382 ;;
9383
9384 cygwin* | mingw* | pw32* | cegcc*)
9385 version_type=windows
9386 shrext_cmds=".dll"
9387 need_version=no
9388 need_lib_prefix=no
9389
9390 case $GCC,$host_os in
9391 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9392 library_names_spec='$libname.dll.a'
9393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9394 postinstall_cmds='base_file=`basename \${file}`~
9395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9396 dldir=$destdir/`dirname \$dlpath`~
9397 test -d \$dldir || mkdir -p \$dldir~
9398 $install_prog $dir/$dlname \$dldir/$dlname~
9399 chmod a+x \$dldir/$dlname~
9400 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9401 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9402 fi'
9403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9404 dlpath=$dir/\$dldll~
9405 $RM \$dlpath'
9406 shlibpath_overrides_runpath=yes
9407
9408 case $host_os in
9409 cygwin*)
9410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9411 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9412
9413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9414 ;;
9415 mingw* | cegcc*)
9416 # MinGW DLLs use traditional 'lib' prefix
9417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9418 ;;
9419 pw32*)
9420 # pw32 DLLs use 'pw' prefix rather than 'lib'
9421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9422 ;;
9423 esac
9424 ;;
9425
9426 *)
9427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9428 ;;
9429 esac
9430 dynamic_linker='Win32 ld.exe'
9431 # FIXME: first we should search . and the directory the executable is in
9432 shlibpath_var=PATH
9433 ;;
9434
9435 darwin* | rhapsody*)
9436 dynamic_linker="$host_os dyld"
9437 version_type=darwin
9438 need_lib_prefix=no
9439 need_version=no
9440 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9441 soname_spec='${libname}${release}${major}$shared_ext'
9442 shlibpath_overrides_runpath=yes
9443 shlibpath_var=DYLD_LIBRARY_PATH
9444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9445
9446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9448 ;;
9449
9450 dgux*)
9451 version_type=linux
9452 need_lib_prefix=no
9453 need_version=no
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9457 ;;
9458
9459 freebsd1*)
9460 dynamic_linker=no
9461 ;;
9462
9463 freebsd* | dragonfly*)
9464 # DragonFly does not have aout. When/if they implement a new
9465 # versioning mechanism, adjust this.
9466 if test -x /usr/bin/objformat; then
9467 objformat=`/usr/bin/objformat`
9468 else
9469 case $host_os in
9470 freebsd[123]*) objformat=aout ;;
9471 *) objformat=elf ;;
9472 esac
9473 fi
9474 version_type=freebsd-$objformat
9475 case $version_type in
9476 freebsd-elf*)
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9478 need_version=no
9479 need_lib_prefix=no
9480 ;;
9481 freebsd-*)
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9483 need_version=yes
9484 ;;
9485 esac
9486 shlibpath_var=LD_LIBRARY_PATH
9487 case $host_os in
9488 freebsd2*)
9489 shlibpath_overrides_runpath=yes
9490 ;;
9491 freebsd3.[01]* | freebsdelf3.[01]*)
9492 shlibpath_overrides_runpath=yes
9493 hardcode_into_libs=yes
9494 ;;
9495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9497 shlibpath_overrides_runpath=no
9498 hardcode_into_libs=yes
9499 ;;
9500 *) # from 4.6 on, and DragonFly
9501 shlibpath_overrides_runpath=yes
9502 hardcode_into_libs=yes
9503 ;;
9504 esac
9505 ;;
9506
9507 gnu*)
9508 version_type=linux
9509 need_lib_prefix=no
9510 need_version=no
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9512 soname_spec='${libname}${release}${shared_ext}$major'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 hardcode_into_libs=yes
9515 ;;
9516
9517 haiku*)
9518 version_type=linux
9519 need_lib_prefix=no
9520 need_version=no
9521 dynamic_linker="$host_os runtime_loader"
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 shlibpath_var=LIBRARY_PATH
9525 shlibpath_overrides_runpath=yes
9526 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9527 hardcode_into_libs=yes
9528 ;;
9529
9530 hpux9* | hpux10* | hpux11*)
9531 # Give a soname corresponding to the major version so that dld.sl refuses to
9532 # link against other versions.
9533 version_type=sunos
9534 need_lib_prefix=no
9535 need_version=no
9536 case $host_cpu in
9537 ia64*)
9538 shrext_cmds='.so'
9539 hardcode_into_libs=yes
9540 dynamic_linker="$host_os dld.so"
9541 shlibpath_var=LD_LIBRARY_PATH
9542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544 soname_spec='${libname}${release}${shared_ext}$major'
9545 if test "X$HPUX_IA64_MODE" = X32; then
9546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9547 else
9548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9549 fi
9550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9551 ;;
9552 hppa*64*)
9553 shrext_cmds='.sl'
9554 hardcode_into_libs=yes
9555 dynamic_linker="$host_os dld.sl"
9556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559 soname_spec='${libname}${release}${shared_ext}$major'
9560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9562 ;;
9563 *)
9564 shrext_cmds='.sl'
9565 dynamic_linker="$host_os dld.sl"
9566 shlibpath_var=SHLIB_PATH
9567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 ;;
9571 esac
9572 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9573 postinstall_cmds='chmod 555 $lib'
9574 # or fails outright, so override atomically:
9575 install_override_mode=555
9576 ;;
9577
9578 interix[3-9]*)
9579 version_type=linux
9580 need_lib_prefix=no
9581 need_version=no
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=no
9587 hardcode_into_libs=yes
9588 ;;
9589
9590 irix5* | irix6* | nonstopux*)
9591 case $host_os in
9592 nonstopux*) version_type=nonstopux ;;
9593 *)
9594 if test "$lt_cv_prog_gnu_ld" = yes; then
9595 version_type=linux
9596 else
9597 version_type=irix
9598 fi ;;
9599 esac
9600 need_lib_prefix=no
9601 need_version=no
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9604 case $host_os in
9605 irix5* | nonstopux*)
9606 libsuff= shlibsuff=
9607 ;;
9608 *)
9609 case $LD in # libtool.m4 will add one of these switches to LD
9610 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9611 libsuff= shlibsuff= libmagic=32-bit;;
9612 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9613 libsuff=32 shlibsuff=N32 libmagic=N32;;
9614 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9615 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9616 *) libsuff= shlibsuff= libmagic=never-match;;
9617 esac
9618 ;;
9619 esac
9620 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9621 shlibpath_overrides_runpath=no
9622 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9623 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9624 hardcode_into_libs=yes
9625 ;;
9626
9627 # No shared lib support for Linux oldld, aout, or coff.
9628 linux*oldld* | linux*aout* | linux*coff*)
9629 dynamic_linker=no
9630 ;;
9631
9632 # This must be Linux ELF.
9633 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9634 version_type=linux
9635 need_lib_prefix=no
9636 need_version=no
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9640 shlibpath_var=LD_LIBRARY_PATH
9641 shlibpath_overrides_runpath=no
9642
9643 # Some binutils ld are patched to set DT_RUNPATH
9644 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 lt_cv_shlibpath_overrides_runpath=no
9648 save_LDFLAGS=$LDFLAGS
9649 save_libdir=$libdir
9650 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9651 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9652 if test x$gcc_no_link = xyes; then
9653 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9654 fi
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657
9658 int
9659 main ()
9660 {
9661
9662 ;
9663 return 0;
9664 }
9665 _ACEOF
9666 if ac_fn_c_try_link "$LINENO"; then :
9667 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9668 lt_cv_shlibpath_overrides_runpath=yes
9669 fi
9670 fi
9671 rm -f core conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
9673 LDFLAGS=$save_LDFLAGS
9674 libdir=$save_libdir
9675
9676 fi
9677
9678 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9679
9680 # This implies no fast_install, which is unacceptable.
9681 # Some rework will be needed to allow for fast_install
9682 # before this can be enabled.
9683 hardcode_into_libs=yes
9684
9685 # Append ld.so.conf contents to the search path
9686 if test -f /etc/ld.so.conf; then
9687 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' ' '`
9688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9689 fi
9690
9691 # We used to test for /lib/ld.so.1 and disable shared libraries on
9692 # powerpc, because MkLinux only supported shared libraries with the
9693 # GNU dynamic linker. Since this was broken with cross compilers,
9694 # most powerpc-linux boxes support dynamic linking these days and
9695 # people can always --disable-shared, the test was removed, and we
9696 # assume the GNU/Linux dynamic linker is in use.
9697 dynamic_linker='GNU/Linux ld.so'
9698 ;;
9699
9700 netbsd*)
9701 version_type=sunos
9702 need_lib_prefix=no
9703 need_version=no
9704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9707 dynamic_linker='NetBSD (a.out) ld.so'
9708 else
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 dynamic_linker='NetBSD ld.elf_so'
9712 fi
9713 shlibpath_var=LD_LIBRARY_PATH
9714 shlibpath_overrides_runpath=yes
9715 hardcode_into_libs=yes
9716 ;;
9717
9718 newsos6)
9719 version_type=linux
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721 shlibpath_var=LD_LIBRARY_PATH
9722 shlibpath_overrides_runpath=yes
9723 ;;
9724
9725 *nto* | *qnx*)
9726 version_type=qnx
9727 need_lib_prefix=no
9728 need_version=no
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 soname_spec='${libname}${release}${shared_ext}$major'
9731 shlibpath_var=LD_LIBRARY_PATH
9732 shlibpath_overrides_runpath=no
9733 hardcode_into_libs=yes
9734 dynamic_linker='ldqnx.so'
9735 ;;
9736
9737 openbsd*)
9738 version_type=sunos
9739 sys_lib_dlsearch_path_spec="/usr/lib"
9740 need_lib_prefix=no
9741 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9742 case $host_os in
9743 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9744 *) need_version=no ;;
9745 esac
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9750 case $host_os in
9751 openbsd2.[89] | openbsd2.[89].*)
9752 shlibpath_overrides_runpath=no
9753 ;;
9754 *)
9755 shlibpath_overrides_runpath=yes
9756 ;;
9757 esac
9758 else
9759 shlibpath_overrides_runpath=yes
9760 fi
9761 ;;
9762
9763 os2*)
9764 libname_spec='$name'
9765 shrext_cmds=".dll"
9766 need_lib_prefix=no
9767 library_names_spec='$libname${shared_ext} $libname.a'
9768 dynamic_linker='OS/2 ld.exe'
9769 shlibpath_var=LIBPATH
9770 ;;
9771
9772 osf3* | osf4* | osf5*)
9773 version_type=osf
9774 need_lib_prefix=no
9775 need_version=no
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778 shlibpath_var=LD_LIBRARY_PATH
9779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9780 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9781 ;;
9782
9783 rdos*)
9784 dynamic_linker=no
9785 ;;
9786
9787 solaris*)
9788 version_type=linux
9789 need_lib_prefix=no
9790 need_version=no
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 shlibpath_overrides_runpath=yes
9795 hardcode_into_libs=yes
9796 # ldd complains unless libraries are executable
9797 postinstall_cmds='chmod +x $lib'
9798 ;;
9799
9800 sunos4*)
9801 version_type=sunos
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9803 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 shlibpath_overrides_runpath=yes
9806 if test "$with_gnu_ld" = yes; then
9807 need_lib_prefix=no
9808 fi
9809 need_version=yes
9810 ;;
9811
9812 sysv4 | sysv4.3*)
9813 version_type=linux
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815 soname_spec='${libname}${release}${shared_ext}$major'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 case $host_vendor in
9818 sni)
9819 shlibpath_overrides_runpath=no
9820 need_lib_prefix=no
9821 runpath_var=LD_RUN_PATH
9822 ;;
9823 siemens)
9824 need_lib_prefix=no
9825 ;;
9826 motorola)
9827 need_lib_prefix=no
9828 need_version=no
9829 shlibpath_overrides_runpath=no
9830 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9831 ;;
9832 esac
9833 ;;
9834
9835 sysv4*MP*)
9836 if test -d /usr/nec ;then
9837 version_type=linux
9838 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9839 soname_spec='$libname${shared_ext}.$major'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 fi
9842 ;;
9843
9844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9845 version_type=freebsd-elf
9846 need_lib_prefix=no
9847 need_version=no
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 shlibpath_var=LD_LIBRARY_PATH
9851 shlibpath_overrides_runpath=yes
9852 hardcode_into_libs=yes
9853 if test "$with_gnu_ld" = yes; then
9854 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9855 else
9856 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9857 case $host_os in
9858 sco3.2v5*)
9859 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9860 ;;
9861 esac
9862 fi
9863 sys_lib_dlsearch_path_spec='/usr/lib'
9864 ;;
9865
9866 tpf*)
9867 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9868 version_type=linux
9869 need_lib_prefix=no
9870 need_version=no
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 shlibpath_overrides_runpath=no
9874 hardcode_into_libs=yes
9875 ;;
9876
9877 uts4*)
9878 version_type=linux
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 shlibpath_var=LD_LIBRARY_PATH
9882 ;;
9883
9884 *)
9885 dynamic_linker=no
9886 ;;
9887 esac
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9889 $as_echo "$dynamic_linker" >&6; }
9890 test "$dynamic_linker" = no && can_build_shared=no
9891
9892 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9893 if test "$GCC" = yes; then
9894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9895 fi
9896
9897 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9898 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9899 fi
9900 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9901 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9902 fi
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9996 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9997 hardcode_action=
9998 if test -n "$hardcode_libdir_flag_spec" ||
9999 test -n "$runpath_var" ||
10000 test "X$hardcode_automatic" = "Xyes" ; then
10001
10002 # We can hardcode non-existent directories.
10003 if test "$hardcode_direct" != no &&
10004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10005 # have to relink, otherwise we might link with an installed library
10006 # when we should be linking with a yet-to-be-installed one
10007 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10008 test "$hardcode_minus_L" != no; then
10009 # Linking always hardcodes the temporary library directory.
10010 hardcode_action=relink
10011 else
10012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10013 hardcode_action=immediate
10014 fi
10015 else
10016 # We cannot hardcode anything, or else we can only hardcode existing
10017 # directories.
10018 hardcode_action=unsupported
10019 fi
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10021 $as_echo "$hardcode_action" >&6; }
10022
10023 if test "$hardcode_action" = relink ||
10024 test "$inherit_rpath" = yes; then
10025 # Fast installation is not supported
10026 enable_fast_install=no
10027 elif test "$shlibpath_overrides_runpath" = yes ||
10028 test "$enable_shared" = no; then
10029 # Fast installation is not necessary
10030 enable_fast_install=needless
10031 fi
10032
10033
10034
10035
10036
10037
10038 if test "x$enable_dlopen" != xyes; then
10039 enable_dlopen=unknown
10040 enable_dlopen_self=unknown
10041 enable_dlopen_self_static=unknown
10042 else
10043 lt_cv_dlopen=no
10044 lt_cv_dlopen_libs=
10045
10046 case $host_os in
10047 beos*)
10048 lt_cv_dlopen="load_add_on"
10049 lt_cv_dlopen_libs=
10050 lt_cv_dlopen_self=yes
10051 ;;
10052
10053 mingw* | pw32* | cegcc*)
10054 lt_cv_dlopen="LoadLibrary"
10055 lt_cv_dlopen_libs=
10056 ;;
10057
10058 cygwin*)
10059 lt_cv_dlopen="dlopen"
10060 lt_cv_dlopen_libs=
10061 ;;
10062
10063 darwin*)
10064 # if libdl is installed we need to link against it
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10067 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-ldl $LIBS"
10072 if test x$gcc_no_link = xyes; then
10073 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10074 fi
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10077
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10081 #ifdef __cplusplus
10082 extern "C"
10083 #endif
10084 char dlopen ();
10085 int
10086 main ()
10087 {
10088 return dlopen ();
10089 ;
10090 return 0;
10091 }
10092 _ACEOF
10093 if ac_fn_c_try_link "$LINENO"; then :
10094 ac_cv_lib_dl_dlopen=yes
10095 else
10096 ac_cv_lib_dl_dlopen=no
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10100 LIBS=$ac_check_lib_save_LIBS
10101 fi
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10103 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10104 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10106 else
10107
10108 lt_cv_dlopen="dyld"
10109 lt_cv_dlopen_libs=
10110 lt_cv_dlopen_self=yes
10111
10112 fi
10113
10114 ;;
10115
10116 *)
10117 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10118 if test "x$ac_cv_func_shl_load" = x""yes; then :
10119 lt_cv_dlopen="shl_load"
10120 else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10122 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10123 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 ac_check_lib_save_LIBS=$LIBS
10127 LIBS="-ldld $LIBS"
10128 if test x$gcc_no_link = xyes; then
10129 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10130 fi
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10133
10134 /* Override any GCC internal prototype to avoid an error.
10135 Use char because int might match the return type of a GCC
10136 builtin and then its argument prototype would still apply. */
10137 #ifdef __cplusplus
10138 extern "C"
10139 #endif
10140 char shl_load ();
10141 int
10142 main ()
10143 {
10144 return shl_load ();
10145 ;
10146 return 0;
10147 }
10148 _ACEOF
10149 if ac_fn_c_try_link "$LINENO"; then :
10150 ac_cv_lib_dld_shl_load=yes
10151 else
10152 ac_cv_lib_dld_shl_load=no
10153 fi
10154 rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 LIBS=$ac_check_lib_save_LIBS
10157 fi
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10159 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10160 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10162 else
10163 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10164 if test "x$ac_cv_func_dlopen" = x""yes; then :
10165 lt_cv_dlopen="dlopen"
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10168 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 ac_check_lib_save_LIBS=$LIBS
10173 LIBS="-ldl $LIBS"
10174 if test x$gcc_no_link = xyes; then
10175 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10176 fi
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179
10180 /* Override any GCC internal prototype to avoid an error.
10181 Use char because int might match the return type of a GCC
10182 builtin and then its argument prototype would still apply. */
10183 #ifdef __cplusplus
10184 extern "C"
10185 #endif
10186 char dlopen ();
10187 int
10188 main ()
10189 {
10190 return dlopen ();
10191 ;
10192 return 0;
10193 }
10194 _ACEOF
10195 if ac_fn_c_try_link "$LINENO"; then :
10196 ac_cv_lib_dl_dlopen=yes
10197 else
10198 ac_cv_lib_dl_dlopen=no
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_check_lib_save_LIBS
10203 fi
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10205 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10206 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10208 else
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10210 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10211 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 ac_check_lib_save_LIBS=$LIBS
10215 LIBS="-lsvld $LIBS"
10216 if test x$gcc_no_link = xyes; then
10217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10218 fi
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221
10222 /* Override any GCC internal prototype to avoid an error.
10223 Use char because int might match the return type of a GCC
10224 builtin and then its argument prototype would still apply. */
10225 #ifdef __cplusplus
10226 extern "C"
10227 #endif
10228 char dlopen ();
10229 int
10230 main ()
10231 {
10232 return dlopen ();
10233 ;
10234 return 0;
10235 }
10236 _ACEOF
10237 if ac_fn_c_try_link "$LINENO"; then :
10238 ac_cv_lib_svld_dlopen=yes
10239 else
10240 ac_cv_lib_svld_dlopen=no
10241 fi
10242 rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 LIBS=$ac_check_lib_save_LIBS
10245 fi
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10247 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10248 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10250 else
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10252 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10253 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 ac_check_lib_save_LIBS=$LIBS
10257 LIBS="-ldld $LIBS"
10258 if test x$gcc_no_link = xyes; then
10259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10260 fi
10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10263
10264 /* Override any GCC internal prototype to avoid an error.
10265 Use char because int might match the return type of a GCC
10266 builtin and then its argument prototype would still apply. */
10267 #ifdef __cplusplus
10268 extern "C"
10269 #endif
10270 char dld_link ();
10271 int
10272 main ()
10273 {
10274 return dld_link ();
10275 ;
10276 return 0;
10277 }
10278 _ACEOF
10279 if ac_fn_c_try_link "$LINENO"; then :
10280 ac_cv_lib_dld_dld_link=yes
10281 else
10282 ac_cv_lib_dld_dld_link=no
10283 fi
10284 rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286 LIBS=$ac_check_lib_save_LIBS
10287 fi
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10289 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10290 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10291 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10292 fi
10293
10294
10295 fi
10296
10297
10298 fi
10299
10300
10301 fi
10302
10303
10304 fi
10305
10306
10307 fi
10308
10309 ;;
10310 esac
10311
10312 if test "x$lt_cv_dlopen" != xno; then
10313 enable_dlopen=yes
10314 else
10315 enable_dlopen=no
10316 fi
10317
10318 case $lt_cv_dlopen in
10319 dlopen)
10320 save_CPPFLAGS="$CPPFLAGS"
10321 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10322
10323 save_LDFLAGS="$LDFLAGS"
10324 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10325
10326 save_LIBS="$LIBS"
10327 LIBS="$lt_cv_dlopen_libs $LIBS"
10328
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10330 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10331 if test "${lt_cv_dlopen_self+set}" = set; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 if test "$cross_compiling" = yes; then :
10335 lt_cv_dlopen_self=cross
10336 else
10337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10338 lt_status=$lt_dlunknown
10339 cat > conftest.$ac_ext <<_LT_EOF
10340 #line 10340 "configure"
10341 #include "confdefs.h"
10342
10343 #if HAVE_DLFCN_H
10344 #include <dlfcn.h>
10345 #endif
10346
10347 #include <stdio.h>
10348
10349 #ifdef RTLD_GLOBAL
10350 # define LT_DLGLOBAL RTLD_GLOBAL
10351 #else
10352 # ifdef DL_GLOBAL
10353 # define LT_DLGLOBAL DL_GLOBAL
10354 # else
10355 # define LT_DLGLOBAL 0
10356 # endif
10357 #endif
10358
10359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10360 find out it does not work in some platform. */
10361 #ifndef LT_DLLAZY_OR_NOW
10362 # ifdef RTLD_LAZY
10363 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10364 # else
10365 # ifdef DL_LAZY
10366 # define LT_DLLAZY_OR_NOW DL_LAZY
10367 # else
10368 # ifdef RTLD_NOW
10369 # define LT_DLLAZY_OR_NOW RTLD_NOW
10370 # else
10371 # ifdef DL_NOW
10372 # define LT_DLLAZY_OR_NOW DL_NOW
10373 # else
10374 # define LT_DLLAZY_OR_NOW 0
10375 # endif
10376 # endif
10377 # endif
10378 # endif
10379 #endif
10380
10381 /* When -fvisbility=hidden is used, assume the code has been annotated
10382 correspondingly for the symbols needed. */
10383 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10384 void fnord () __attribute__((visibility("default")));
10385 #endif
10386
10387 void fnord () { int i=42; }
10388 int main ()
10389 {
10390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10391 int status = $lt_dlunknown;
10392
10393 if (self)
10394 {
10395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10396 else
10397 {
10398 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10399 else puts (dlerror ());
10400 }
10401 /* dlclose (self); */
10402 }
10403 else
10404 puts (dlerror ());
10405
10406 return status;
10407 }
10408 _LT_EOF
10409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10410 (eval $ac_link) 2>&5
10411 ac_status=$?
10412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10413 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10414 (./conftest; exit; ) >&5 2>/dev/null
10415 lt_status=$?
10416 case x$lt_status in
10417 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10418 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10419 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10420 esac
10421 else :
10422 # compilation failed
10423 lt_cv_dlopen_self=no
10424 fi
10425 fi
10426 rm -fr conftest*
10427
10428
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10431 $as_echo "$lt_cv_dlopen_self" >&6; }
10432
10433 if test "x$lt_cv_dlopen_self" = xyes; then
10434 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10436 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10437 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 if test "$cross_compiling" = yes; then :
10441 lt_cv_dlopen_self_static=cross
10442 else
10443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10444 lt_status=$lt_dlunknown
10445 cat > conftest.$ac_ext <<_LT_EOF
10446 #line 10446 "configure"
10447 #include "confdefs.h"
10448
10449 #if HAVE_DLFCN_H
10450 #include <dlfcn.h>
10451 #endif
10452
10453 #include <stdio.h>
10454
10455 #ifdef RTLD_GLOBAL
10456 # define LT_DLGLOBAL RTLD_GLOBAL
10457 #else
10458 # ifdef DL_GLOBAL
10459 # define LT_DLGLOBAL DL_GLOBAL
10460 # else
10461 # define LT_DLGLOBAL 0
10462 # endif
10463 #endif
10464
10465 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10466 find out it does not work in some platform. */
10467 #ifndef LT_DLLAZY_OR_NOW
10468 # ifdef RTLD_LAZY
10469 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10470 # else
10471 # ifdef DL_LAZY
10472 # define LT_DLLAZY_OR_NOW DL_LAZY
10473 # else
10474 # ifdef RTLD_NOW
10475 # define LT_DLLAZY_OR_NOW RTLD_NOW
10476 # else
10477 # ifdef DL_NOW
10478 # define LT_DLLAZY_OR_NOW DL_NOW
10479 # else
10480 # define LT_DLLAZY_OR_NOW 0
10481 # endif
10482 # endif
10483 # endif
10484 # endif
10485 #endif
10486
10487 /* When -fvisbility=hidden is used, assume the code has been annotated
10488 correspondingly for the symbols needed. */
10489 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10490 void fnord () __attribute__((visibility("default")));
10491 #endif
10492
10493 void fnord () { int i=42; }
10494 int main ()
10495 {
10496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10497 int status = $lt_dlunknown;
10498
10499 if (self)
10500 {
10501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10502 else
10503 {
10504 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10505 else puts (dlerror ());
10506 }
10507 /* dlclose (self); */
10508 }
10509 else
10510 puts (dlerror ());
10511
10512 return status;
10513 }
10514 _LT_EOF
10515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10516 (eval $ac_link) 2>&5
10517 ac_status=$?
10518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10519 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10520 (./conftest; exit; ) >&5 2>/dev/null
10521 lt_status=$?
10522 case x$lt_status in
10523 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10524 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10525 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10526 esac
10527 else :
10528 # compilation failed
10529 lt_cv_dlopen_self_static=no
10530 fi
10531 fi
10532 rm -fr conftest*
10533
10534
10535 fi
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10537 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10538 fi
10539
10540 CPPFLAGS="$save_CPPFLAGS"
10541 LDFLAGS="$save_LDFLAGS"
10542 LIBS="$save_LIBS"
10543 ;;
10544 esac
10545
10546 case $lt_cv_dlopen_self in
10547 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10548 *) enable_dlopen_self=unknown ;;
10549 esac
10550
10551 case $lt_cv_dlopen_self_static in
10552 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10553 *) enable_dlopen_self_static=unknown ;;
10554 esac
10555 fi
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573 striplib=
10574 old_striplib=
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10576 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10577 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10578 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10579 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10581 $as_echo "yes" >&6; }
10582 else
10583 # FIXME - insert some real tests, host_os isn't really good enough
10584 case $host_os in
10585 darwin*)
10586 if test -n "$STRIP" ; then
10587 striplib="$STRIP -x"
10588 old_striplib="$STRIP -S"
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590 $as_echo "yes" >&6; }
10591 else
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10594 fi
10595 ;;
10596 *)
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10599 ;;
10600 esac
10601 fi
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614 # Report which library types will actually be built
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10616 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10618 $as_echo "$can_build_shared" >&6; }
10619
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10621 $as_echo_n "checking whether to build shared libraries... " >&6; }
10622 test "$can_build_shared" = "no" && enable_shared=no
10623
10624 # On AIX, shared libraries and static libraries use the same namespace, and
10625 # are all built from PIC.
10626 case $host_os in
10627 aix3*)
10628 test "$enable_shared" = yes && enable_static=no
10629 if test -n "$RANLIB"; then
10630 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10631 postinstall_cmds='$RANLIB $lib'
10632 fi
10633 ;;
10634
10635 aix[4-9]*)
10636 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10637 test "$enable_shared" = yes && enable_static=no
10638 fi
10639 ;;
10640 esac
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10642 $as_echo "$enable_shared" >&6; }
10643
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10645 $as_echo_n "checking whether to build static libraries... " >&6; }
10646 # Make sure either enable_shared or enable_static is yes.
10647 test "$enable_shared" = yes || enable_static=yes
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10649 $as_echo "$enable_static" >&6; }
10650
10651
10652
10653
10654 fi
10655 ac_ext=c
10656 ac_cpp='$CPP $CPPFLAGS'
10657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10660
10661 CC="$lt_save_CC"
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675 ac_config_commands="$ac_config_commands libtool"
10676
10677
10678
10679
10680 # Only expand once:
10681
10682
10683
10684
10685
10686 case $host in
10687 *-cygwin* | *-mingw*)
10688 # 'host' will be top-level target in the case of a target lib,
10689 # we must compare to with_cross_host to decide if this is a native
10690 # or cross-compiler and select where to install dlls appropriately.
10691 if test -n "$with_cross_host" &&
10692 test x"$with_cross_host" != x"no"; then
10693 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10694 else
10695 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10696 fi
10697 ;;
10698 *)
10699 lt_host_flags=
10700 ;;
10701 esac
10702
10703
10704
10705
10706
10707
10708
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10710 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10711 # Check whether --enable-maintainer-mode was given.
10712 if test "${enable_maintainer_mode+set}" = set; then :
10713 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10714 else
10715 USE_MAINTAINER_MODE=no
10716 fi
10717
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10719 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10720 if test $USE_MAINTAINER_MODE = yes; then
10721 MAINTAINER_MODE_TRUE=
10722 MAINTAINER_MODE_FALSE='#'
10723 else
10724 MAINTAINER_MODE_TRUE='#'
10725 MAINTAINER_MODE_FALSE=
10726 fi
10727
10728 MAINT=$MAINTAINER_MODE_TRUE
10729
10730
10731 # Default to --enable-multilib
10732 # Check whether --enable-multilib was given.
10733 if test "${enable_multilib+set}" = set; then :
10734 enableval=$enable_multilib; case "$enableval" in
10735 yes) multilib=yes ;;
10736 no) multilib=no ;;
10737 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
10738 esac
10739 else
10740 multilib=yes
10741 fi
10742
10743
10744 # We may get other options which we leave undocumented:
10745 # --with-target-subdir, --with-multisrctop, --with-multisubdir
10746 # See config-ml.in if you want the gory details.
10747
10748 if test "$srcdir" = "."; then
10749 if test "$with_target_subdir" != "."; then
10750 multi_basedir="$srcdir/$with_multisrctop../.."
10751 else
10752 multi_basedir="$srcdir/$with_multisrctop.."
10753 fi
10754 else
10755 multi_basedir="$srcdir/.."
10756 fi
10757
10758
10759 # Even if the default multilib is not a cross compilation,
10760 # it may be that some of the other multilibs are.
10761 if test $cross_compiling = no && test $multilib = yes \
10762 && test "x${with_multisubdir}" != x ; then
10763 cross_compiling=maybe
10764 fi
10765
10766 ac_config_commands="$ac_config_commands default-1"
10767
10768
10769 ac_ext=c
10770 ac_cpp='$CPP $CPPFLAGS'
10771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10774
10775 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
10776 # We must force CC to /not/ be precious variables; otherwise
10777 # the wrong, non-multilib-adjusted value will be used in multilibs.
10778 # As a side effect, we have to subst CFLAGS ourselves.
10779
10780
10781
10782 ac_ext=c
10783 ac_cpp='$CPP $CPPFLAGS'
10784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10787 if test -n "$ac_tool_prefix"; then
10788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10789 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791 $as_echo_n "checking for $ac_word... " >&6; }
10792 if test "${ac_cv_prog_CC+set}" = set; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 if test -n "$CC"; then
10796 ac_cv_prog_CC="$CC" # Let the user override the test.
10797 else
10798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799 for as_dir in $PATH
10800 do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10808 fi
10809 done
10810 done
10811 IFS=$as_save_IFS
10812
10813 fi
10814 fi
10815 CC=$ac_cv_prog_CC
10816 if test -n "$CC"; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10818 $as_echo "$CC" >&6; }
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10822 fi
10823
10824
10825 fi
10826 if test -z "$ac_cv_prog_CC"; then
10827 ac_ct_CC=$CC
10828 # Extract the first word of "gcc", so it can be a program name with args.
10829 set dummy gcc; ac_word=$2
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831 $as_echo_n "checking for $ac_word... " >&6; }
10832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 if test -n "$ac_ct_CC"; then
10836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10837 else
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH
10840 do
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_prog_ac_ct_CC="gcc"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10848 fi
10849 done
10850 done
10851 IFS=$as_save_IFS
10852
10853 fi
10854 fi
10855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10856 if test -n "$ac_ct_CC"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10858 $as_echo "$ac_ct_CC" >&6; }
10859 else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10862 fi
10863
10864 if test "x$ac_ct_CC" = x; then
10865 CC=""
10866 else
10867 case $cross_compiling:$ac_tool_warned in
10868 yes:)
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10871 ac_tool_warned=yes ;;
10872 esac
10873 CC=$ac_ct_CC
10874 fi
10875 else
10876 CC="$ac_cv_prog_CC"
10877 fi
10878
10879 if test -z "$CC"; then
10880 if test -n "$ac_tool_prefix"; then
10881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10882 set dummy ${ac_tool_prefix}cc; ac_word=$2
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10884 $as_echo_n "checking for $ac_word... " >&6; }
10885 if test "${ac_cv_prog_CC+set}" = set; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 if test -n "$CC"; then
10889 ac_cv_prog_CC="$CC" # Let the user override the test.
10890 else
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10893 do
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10898 ac_cv_prog_CC="${ac_tool_prefix}cc"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 break 2
10901 fi
10902 done
10903 done
10904 IFS=$as_save_IFS
10905
10906 fi
10907 fi
10908 CC=$ac_cv_prog_CC
10909 if test -n "$CC"; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10911 $as_echo "$CC" >&6; }
10912 else
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; }
10915 fi
10916
10917
10918 fi
10919 fi
10920 if test -z "$CC"; then
10921 # Extract the first word of "cc", so it can be a program name with args.
10922 set dummy cc; ac_word=$2
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if test "${ac_cv_prog_CC+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 if test -n "$CC"; then
10929 ac_cv_prog_CC="$CC" # Let the user override the test.
10930 else
10931 ac_prog_rejected=no
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10934 do
10935 IFS=$as_save_IFS
10936 test -z "$as_dir" && as_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10940 ac_prog_rejected=yes
10941 continue
10942 fi
10943 ac_cv_prog_CC="cc"
10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 break 2
10946 fi
10947 done
10948 done
10949 IFS=$as_save_IFS
10950
10951 if test $ac_prog_rejected = yes; then
10952 # We found a bogon in the path, so make sure we never use it.
10953 set dummy $ac_cv_prog_CC
10954 shift
10955 if test $# != 0; then
10956 # We chose a different compiler from the bogus one.
10957 # However, it has the same basename, so the bogon will be chosen
10958 # first if we set CC to just the basename; use the full file name.
10959 shift
10960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10961 fi
10962 fi
10963 fi
10964 fi
10965 CC=$ac_cv_prog_CC
10966 if test -n "$CC"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10968 $as_echo "$CC" >&6; }
10969 else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10972 fi
10973
10974
10975 fi
10976 if test -z "$CC"; then
10977 if test -n "$ac_tool_prefix"; then
10978 for ac_prog in cl.exe
10979 do
10980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983 $as_echo_n "checking for $ac_word... " >&6; }
10984 if test "${ac_cv_prog_CC+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 if test -n "$CC"; then
10988 ac_cv_prog_CC="$CC" # Let the user override the test.
10989 else
10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991 for as_dir in $PATH
10992 do
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 break 2
11000 fi
11001 done
11002 done
11003 IFS=$as_save_IFS
11004
11005 fi
11006 fi
11007 CC=$ac_cv_prog_CC
11008 if test -n "$CC"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11010 $as_echo "$CC" >&6; }
11011 else
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11014 fi
11015
11016
11017 test -n "$CC" && break
11018 done
11019 fi
11020 if test -z "$CC"; then
11021 ac_ct_CC=$CC
11022 for ac_prog in cl.exe
11023 do
11024 # Extract the first word of "$ac_prog", so it can be a program name with args.
11025 set dummy $ac_prog; ac_word=$2
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027 $as_echo_n "checking for $ac_word... " >&6; }
11028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 if test -n "$ac_ct_CC"; then
11032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11033 else
11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11036 do
11037 IFS=$as_save_IFS
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11041 ac_cv_prog_ac_ct_CC="$ac_prog"
11042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 break 2
11044 fi
11045 done
11046 done
11047 IFS=$as_save_IFS
11048
11049 fi
11050 fi
11051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11052 if test -n "$ac_ct_CC"; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11054 $as_echo "$ac_ct_CC" >&6; }
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; }
11058 fi
11059
11060
11061 test -n "$ac_ct_CC" && break
11062 done
11063
11064 if test "x$ac_ct_CC" = x; then
11065 CC=""
11066 else
11067 case $cross_compiling:$ac_tool_warned in
11068 yes:)
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11071 ac_tool_warned=yes ;;
11072 esac
11073 CC=$ac_ct_CC
11074 fi
11075 fi
11076
11077 fi
11078
11079
11080 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11082 as_fn_error "no acceptable C compiler found in \$PATH
11083 See \`config.log' for more details." "$LINENO" 5; }
11084
11085 # Provide some information about the compiler.
11086 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11087 set X $ac_compile
11088 ac_compiler=$2
11089 for ac_option in --version -v -V -qversion; do
11090 { { ac_try="$ac_compiler $ac_option >&5"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094 esac
11095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11096 $as_echo "$ac_try_echo"; } >&5
11097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11098 ac_status=$?
11099 if test -s conftest.err; then
11100 sed '10a\
11101 ... rest of stderr output deleted ...
11102 10q' conftest.err >conftest.er1
11103 cat conftest.er1 >&5
11104 rm -f conftest.er1 conftest.err
11105 fi
11106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11107 test $ac_status = 0; }
11108 done
11109
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11111 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11112 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117
11118 int
11119 main ()
11120 {
11121 #ifndef __GNUC__
11122 choke me
11123 #endif
11124
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 if ac_fn_c_try_compile "$LINENO"; then :
11130 ac_compiler_gnu=yes
11131 else
11132 ac_compiler_gnu=no
11133 fi
11134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11135 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11136
11137 fi
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11139 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11140 if test $ac_compiler_gnu = yes; then
11141 GCC=yes
11142 else
11143 GCC=
11144 fi
11145 ac_test_CFLAGS=${CFLAGS+set}
11146 ac_save_CFLAGS=$CFLAGS
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11148 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11149 if test "${ac_cv_prog_cc_g+set}" = set; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 ac_save_c_werror_flag=$ac_c_werror_flag
11153 ac_c_werror_flag=yes
11154 ac_cv_prog_cc_g=no
11155 CFLAGS="-g"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11158
11159 int
11160 main ()
11161 {
11162
11163 ;
11164 return 0;
11165 }
11166 _ACEOF
11167 if ac_fn_c_try_compile "$LINENO"; then :
11168 ac_cv_prog_cc_g=yes
11169 else
11170 CFLAGS=""
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173
11174 int
11175 main ()
11176 {
11177
11178 ;
11179 return 0;
11180 }
11181 _ACEOF
11182 if ac_fn_c_try_compile "$LINENO"; then :
11183
11184 else
11185 ac_c_werror_flag=$ac_save_c_werror_flag
11186 CFLAGS="-g"
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189
11190 int
11191 main ()
11192 {
11193
11194 ;
11195 return 0;
11196 }
11197 _ACEOF
11198 if ac_fn_c_try_compile "$LINENO"; then :
11199 ac_cv_prog_cc_g=yes
11200 fi
11201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11202 fi
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204 fi
11205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 ac_c_werror_flag=$ac_save_c_werror_flag
11207 fi
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11209 $as_echo "$ac_cv_prog_cc_g" >&6; }
11210 if test "$ac_test_CFLAGS" = set; then
11211 CFLAGS=$ac_save_CFLAGS
11212 elif test $ac_cv_prog_cc_g = yes; then
11213 if test "$GCC" = yes; then
11214 CFLAGS="-g -O2"
11215 else
11216 CFLAGS="-g"
11217 fi
11218 else
11219 if test "$GCC" = yes; then
11220 CFLAGS="-O2"
11221 else
11222 CFLAGS=
11223 fi
11224 fi
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11226 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11227 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 ac_cv_prog_cc_c89=no
11231 ac_save_CC=$CC
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11234 #include <stdarg.h>
11235 #include <stdio.h>
11236 #include <sys/types.h>
11237 #include <sys/stat.h>
11238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11239 struct buf { int x; };
11240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11241 static char *e (p, i)
11242 char **p;
11243 int i;
11244 {
11245 return p[i];
11246 }
11247 static char *f (char * (*g) (char **, int), char **p, ...)
11248 {
11249 char *s;
11250 va_list v;
11251 va_start (v,p);
11252 s = g (p, va_arg (v,int));
11253 va_end (v);
11254 return s;
11255 }
11256
11257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11258 function prototypes and stuff, but not '\xHH' hex character constants.
11259 These don't provoke an error unfortunately, instead are silently treated
11260 as 'x'. The following induces an error, until -std is added to get
11261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11262 array size at least. It's necessary to write '\x00'==0 to get something
11263 that's true only with -std. */
11264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11265
11266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11267 inside strings and character constants. */
11268 #define FOO(x) 'x'
11269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11270
11271 int test (int i, double x);
11272 struct s1 {int (*f) (int a);};
11273 struct s2 {int (*f) (double a);};
11274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11275 int argc;
11276 char **argv;
11277 int
11278 main ()
11279 {
11280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11281 ;
11282 return 0;
11283 }
11284 _ACEOF
11285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11287 do
11288 CC="$ac_save_CC $ac_arg"
11289 if ac_fn_c_try_compile "$LINENO"; then :
11290 ac_cv_prog_cc_c89=$ac_arg
11291 fi
11292 rm -f core conftest.err conftest.$ac_objext
11293 test "x$ac_cv_prog_cc_c89" != "xno" && break
11294 done
11295 rm -f conftest.$ac_ext
11296 CC=$ac_save_CC
11297
11298 fi
11299 # AC_CACHE_VAL
11300 case "x$ac_cv_prog_cc_c89" in
11301 x)
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11303 $as_echo "none needed" >&6; } ;;
11304 xno)
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11306 $as_echo "unsupported" >&6; } ;;
11307 *)
11308 CC="$CC $ac_cv_prog_cc_c89"
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11310 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11311 esac
11312 if test "x$ac_cv_prog_cc_c89" != xno; then :
11313
11314 fi
11315
11316 ac_ext=c
11317 ac_cpp='$CPP $CPPFLAGS'
11318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11321
11322 depcc="$CC" am_compiler_list=
11323
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11325 $as_echo_n "checking dependency style of $depcc... " >&6; }
11326 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11330 # We make a subdir and do the tests there. Otherwise we can end up
11331 # making bogus files that we don't know about and never remove. For
11332 # instance it was reported that on HP-UX the gcc test will end up
11333 # making a dummy file named `D' -- because `-MD' means `put the output
11334 # in D'.
11335 mkdir conftest.dir
11336 # Copy depcomp to subdir because otherwise we won't find it if we're
11337 # using a relative directory.
11338 cp "$am_depcomp" conftest.dir
11339 cd conftest.dir
11340 # We will build objects and dependencies in a subdirectory because
11341 # it helps to detect inapplicable dependency modes. For instance
11342 # both Tru64's cc and ICC support -MD to output dependencies as a
11343 # side effect of compilation, but ICC will put the dependencies in
11344 # the current directory while Tru64 will put them in the object
11345 # directory.
11346 mkdir sub
11347
11348 am_cv_CC_dependencies_compiler_type=none
11349 if test "$am_compiler_list" = ""; then
11350 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11351 fi
11352 am__universal=false
11353 case " $depcc " in #(
11354 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11355 esac
11356
11357 for depmode in $am_compiler_list; do
11358 # Setup a source with many dependencies, because some compilers
11359 # like to wrap large dependency lists on column 80 (with \), and
11360 # we should not choose a depcomp mode which is confused by this.
11361 #
11362 # We need to recreate these files for each test, as the compiler may
11363 # overwrite some of them when testing with obscure command lines.
11364 # This happens at least with the AIX C compiler.
11365 : > sub/conftest.c
11366 for i in 1 2 3 4 5 6; do
11367 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11368 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11369 # Solaris 8's {/usr,}/bin/sh.
11370 touch sub/conftst$i.h
11371 done
11372 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11373
11374 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11375 # mode. It turns out that the SunPro C++ compiler does not properly
11376 # handle `-M -o', and we need to detect this. Also, some Intel
11377 # versions had trouble with output in subdirs
11378 am__obj=sub/conftest.${OBJEXT-o}
11379 am__minus_obj="-o $am__obj"
11380 case $depmode in
11381 gcc)
11382 # This depmode causes a compiler race in universal mode.
11383 test "$am__universal" = false || continue
11384 ;;
11385 nosideeffect)
11386 # after this tag, mechanisms are not by side-effect, so they'll
11387 # only be used when explicitly requested
11388 if test "x$enable_dependency_tracking" = xyes; then
11389 continue
11390 else
11391 break
11392 fi
11393 ;;
11394 msvisualcpp | msvcmsys)
11395 # This compiler won't grok `-c -o', but also, the minuso test has
11396 # not run yet. These depmodes are late enough in the game, and
11397 # so weak that their functioning should not be impacted.
11398 am__obj=conftest.${OBJEXT-o}
11399 am__minus_obj=
11400 ;;
11401 none) break ;;
11402 esac
11403 if depmode=$depmode \
11404 source=sub/conftest.c object=$am__obj \
11405 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11406 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11407 >/dev/null 2>conftest.err &&
11408 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11409 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11410 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11411 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11412 # icc doesn't choke on unknown options, it will just issue warnings
11413 # or remarks (even with -Werror). So we grep stderr for any message
11414 # that says an option was ignored or not supported.
11415 # When given -MP, icc 7.0 and 7.1 complain thusly:
11416 # icc: Command line warning: ignoring option '-M'; no argument required
11417 # The diagnosis changed in icc 8.0:
11418 # icc: Command line remark: option '-MP' not supported
11419 if (grep 'ignoring option' conftest.err ||
11420 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11421 am_cv_CC_dependencies_compiler_type=$depmode
11422 break
11423 fi
11424 fi
11425 done
11426
11427 cd ..
11428 rm -rf conftest.dir
11429 else
11430 am_cv_CC_dependencies_compiler_type=none
11431 fi
11432
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11435 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11436 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11437
11438 if
11439 test "x$enable_dependency_tracking" != xno \
11440 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11441 am__fastdepCC_TRUE=
11442 am__fastdepCC_FALSE='#'
11443 else
11444 am__fastdepCC_TRUE='#'
11445 am__fastdepCC_FALSE=
11446 fi
11447
11448
11449
11450
11451
11452
11453 if test "x$CC" != xcc; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11455 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11458 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11459 fi
11460 set dummy $CC; ac_cc=`$as_echo "$2" |
11461 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11462 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11467
11468 int
11469 main ()
11470 {
11471
11472 ;
11473 return 0;
11474 }
11475 _ACEOF
11476 # Make sure it works both with $CC and with simple cc.
11477 # We do the test twice because some compilers refuse to overwrite an
11478 # existing .o file with -o, though they will create one.
11479 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11480 rm -f conftest2.*
11481 if { { case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11484 esac
11485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11486 $as_echo "$ac_try_echo"; } >&5
11487 (eval "$ac_try") 2>&5
11488 ac_status=$?
11489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11490 test $ac_status = 0; } &&
11491 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494 esac
11495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11496 $as_echo "$ac_try_echo"; } >&5
11497 (eval "$ac_try") 2>&5
11498 ac_status=$?
11499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11500 test $ac_status = 0; };
11501 then
11502 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11503 if test "x$CC" != xcc; then
11504 # Test first that cc exists at all.
11505 if { ac_try='cc -c conftest.$ac_ext >&5'
11506 { { case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509 esac
11510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11511 $as_echo "$ac_try_echo"; } >&5
11512 (eval "$ac_try") 2>&5
11513 ac_status=$?
11514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11515 test $ac_status = 0; }; }; then
11516 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11517 rm -f conftest2.*
11518 if { { case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11521 esac
11522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11523 $as_echo "$ac_try_echo"; } >&5
11524 (eval "$ac_try") 2>&5
11525 ac_status=$?
11526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527 test $ac_status = 0; } &&
11528 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531 esac
11532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11533 $as_echo "$ac_try_echo"; } >&5
11534 (eval "$ac_try") 2>&5
11535 ac_status=$?
11536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11537 test $ac_status = 0; };
11538 then
11539 # cc works too.
11540 :
11541 else
11542 # cc exists but doesn't like -o.
11543 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11544 fi
11545 fi
11546 fi
11547 else
11548 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11549 fi
11550 rm -f core conftest*
11551
11552 fi
11553 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11555 $as_echo "yes" >&6; }
11556 else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11559
11560 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11561
11562 fi
11563
11564 # FIXME: we rely on the cache variable name because
11565 # there is no other way.
11566 set dummy $CC
11567 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11568 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11569 if test "$am_t" != yes; then
11570 # Losing compiler, so override with the script.
11571 # FIXME: It is wrong to rewrite CC.
11572 # But if we don't then we get into trouble of one sort or another.
11573 # A longer-term fix would be to have automake use am__CC in this case,
11574 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11575 CC="$am_aux_dir/compile $CC"
11576 fi
11577
11578
11579
11580 if test "x$GCC" != "xyes"; then
11581 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
11582 fi
11583 ac_ext=c
11584 ac_cpp='$CPP $CPPFLAGS'
11585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11589 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11590 # On Suns, sometimes $CPP names a directory.
11591 if test -n "$CPP" && test -d "$CPP"; then
11592 CPP=
11593 fi
11594 if test -z "$CPP"; then
11595 if test "${ac_cv_prog_CPP+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 # Double quotes because CPP needs to be expanded
11599 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11600 do
11601 ac_preproc_ok=false
11602 for ac_c_preproc_warn_flag in '' yes
11603 do
11604 # Use a header file that comes with gcc, so configuring glibc
11605 # with a fresh cross-compiler works.
11606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11607 # <limits.h> exists even on freestanding compilers.
11608 # On the NeXT, cc -E runs the code through the compiler's parser,
11609 # not just through cpp. "Syntax error" is here to catch this case.
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11612 #ifdef __STDC__
11613 # include <limits.h>
11614 #else
11615 # include <assert.h>
11616 #endif
11617 Syntax error
11618 _ACEOF
11619 if ac_fn_c_try_cpp "$LINENO"; then :
11620
11621 else
11622 # Broken: fails on valid input.
11623 continue
11624 fi
11625 rm -f conftest.err conftest.$ac_ext
11626
11627 # OK, works on sane cases. Now check whether nonexistent headers
11628 # can be detected and how.
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631 #include <ac_nonexistent.h>
11632 _ACEOF
11633 if ac_fn_c_try_cpp "$LINENO"; then :
11634 # Broken: success on invalid input.
11635 continue
11636 else
11637 # Passes both tests.
11638 ac_preproc_ok=:
11639 break
11640 fi
11641 rm -f conftest.err conftest.$ac_ext
11642
11643 done
11644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11645 rm -f conftest.err conftest.$ac_ext
11646 if $ac_preproc_ok; then :
11647 break
11648 fi
11649
11650 done
11651 ac_cv_prog_CPP=$CPP
11652
11653 fi
11654 CPP=$ac_cv_prog_CPP
11655 else
11656 ac_cv_prog_CPP=$CPP
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11659 $as_echo "$CPP" >&6; }
11660 ac_preproc_ok=false
11661 for ac_c_preproc_warn_flag in '' yes
11662 do
11663 # Use a header file that comes with gcc, so configuring glibc
11664 # with a fresh cross-compiler works.
11665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666 # <limits.h> exists even on freestanding compilers.
11667 # On the NeXT, cc -E runs the code through the compiler's parser,
11668 # not just through cpp. "Syntax error" is here to catch this case.
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671 #ifdef __STDC__
11672 # include <limits.h>
11673 #else
11674 # include <assert.h>
11675 #endif
11676 Syntax error
11677 _ACEOF
11678 if ac_fn_c_try_cpp "$LINENO"; then :
11679
11680 else
11681 # Broken: fails on valid input.
11682 continue
11683 fi
11684 rm -f conftest.err conftest.$ac_ext
11685
11686 # OK, works on sane cases. Now check whether nonexistent headers
11687 # can be detected and how.
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690 #include <ac_nonexistent.h>
11691 _ACEOF
11692 if ac_fn_c_try_cpp "$LINENO"; then :
11693 # Broken: success on invalid input.
11694 continue
11695 else
11696 # Passes both tests.
11697 ac_preproc_ok=:
11698 break
11699 fi
11700 rm -f conftest.err conftest.$ac_ext
11701
11702 done
11703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11704 rm -f conftest.err conftest.$ac_ext
11705 if $ac_preproc_ok; then :
11706
11707 else
11708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11710 as_fn_error "C preprocessor \"$CPP\" fails sanity check
11711 See \`config.log' for more details." "$LINENO" 5; }
11712 fi
11713
11714 ac_ext=c
11715 ac_cpp='$CPP $CPPFLAGS'
11716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11719
11720
11721 # Calculate toolexeclibdir
11722 # Also toolexecdir, though it's only used in toolexeclibdir
11723 case ${version_specific_libs} in
11724 yes)
11725 # Need the gcc compiler version to know where to install libraries
11726 # and header files if --enable-version-specific-runtime-libs option
11727 # is selected.
11728 toolexecdir='$(libdir)/gcc/$(target_alias)'
11729 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11730 ;;
11731 no)
11732 if test -n "$with_cross_host" &&
11733 test x"$with_cross_host" != x"no"; then
11734 # Install a library built with a cross compiler in tooldir, not libdir.
11735 toolexecdir='$(exec_prefix)/$(target_alias)'
11736 toolexeclibdir='$(toolexecdir)/lib'
11737 else
11738 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11739 toolexeclibdir='$(libdir)'
11740 fi
11741 multi_os_directory=`$CC -print-multi-os-directory`
11742 case $multi_os_directory in
11743 .) ;; # Avoid trailing /.
11744 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11745 esac
11746 ;;
11747 esac
11748
11749
11750
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
11752 $as_echo_n "checking for sqrtl in -lm... " >&6; }
11753 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
11754 $as_echo_n "(cached) " >&6
11755 else
11756 ac_check_lib_save_LIBS=$LIBS
11757 LIBS="-lm $LIBS"
11758 if test x$gcc_no_link = xyes; then
11759 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11760 fi
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11763
11764 /* Override any GCC internal prototype to avoid an error.
11765 Use char because int might match the return type of a GCC
11766 builtin and then its argument prototype would still apply. */
11767 #ifdef __cplusplus
11768 extern "C"
11769 #endif
11770 char sqrtl ();
11771 int
11772 main ()
11773 {
11774 return sqrtl ();
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 if ac_fn_c_try_link "$LINENO"; then :
11780 ac_cv_lib_m_sqrtl=yes
11781 else
11782 ac_cv_lib_m_sqrtl=no
11783 fi
11784 rm -f core conftest.err conftest.$ac_objext \
11785 conftest$ac_exeext conftest.$ac_ext
11786 LIBS=$ac_check_lib_save_LIBS
11787 fi
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
11789 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
11790 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
11791
11792 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
11793
11794 fi
11795
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
11797 $as_echo_n "checking for cbrtl in -lm... " >&6; }
11798 if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 ac_check_lib_save_LIBS=$LIBS
11802 LIBS="-lm $LIBS"
11803 if test x$gcc_no_link = xyes; then
11804 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11805 fi
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808
11809 /* Override any GCC internal prototype to avoid an error.
11810 Use char because int might match the return type of a GCC
11811 builtin and then its argument prototype would still apply. */
11812 #ifdef __cplusplus
11813 extern "C"
11814 #endif
11815 char cbrtl ();
11816 int
11817 main ()
11818 {
11819 return cbrtl ();
11820 ;
11821 return 0;
11822 }
11823 _ACEOF
11824 if ac_fn_c_try_link "$LINENO"; then :
11825 ac_cv_lib_m_cbrtl=yes
11826 else
11827 ac_cv_lib_m_cbrtl=no
11828 fi
11829 rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
11831 LIBS=$ac_check_lib_save_LIBS
11832 fi
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
11834 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
11835 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
11836
11837 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
11838
11839 fi
11840
11841
11842 # Check for symbol versioning (copied from libssp).
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
11844 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
11845 if test x$gcc_no_link = xyes; then
11846 # If we cannot link, we cannot build shared libraries, so do not use
11847 # symbol versioning.
11848 quadmath_use_symver=no
11849 else
11850 save_LDFLAGS="$LDFLAGS"
11851 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
11852 cat > conftest.map <<EOF
11853 FOO_1.0 {
11854 global: *foo*; bar; local: *;
11855 };
11856 EOF
11857 if test x$gcc_no_link = xyes; then
11858 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11859 fi
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862 int foo;
11863 int
11864 main ()
11865 {
11866
11867 ;
11868 return 0;
11869 }
11870 _ACEOF
11871 if ac_fn_c_try_link "$LINENO"; then :
11872 quadmath_use_symver=gnu
11873 else
11874 quadmath_use_symver=no
11875 fi
11876 rm -f core conftest.err conftest.$ac_objext \
11877 conftest$ac_exeext conftest.$ac_ext
11878 if test x$quadmath_use_symver = xno; then
11879 case "$target_os" in
11880 solaris2*)
11881 LDFLAGS="$save_LDFLAGS"
11882 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
11883 # Sun ld cannot handle wildcards and treats all entries as undefined.
11884 cat > conftest.map <<EOF
11885 FOO_1.0 {
11886 global: foo; local: *;
11887 };
11888 EOF
11889 if test x$gcc_no_link = xyes; then
11890 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11891 fi
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11894 int foo;
11895 int
11896 main ()
11897 {
11898
11899 ;
11900 return 0;
11901 }
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 quadmath_use_symver=sun
11905 else
11906 quadmath_use_symver=no
11907 fi
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11910 ;;
11911 esac
11912 fi
11913 LDFLAGS="$save_LDFLAGS"
11914 fi
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
11916 $as_echo "$quadmath_use_symver" >&6; }
11917 if test "x$quadmath_use_symver" != xno; then
11918 LIBQUAD_USE_SYMVER_TRUE=
11919 LIBQUAD_USE_SYMVER_FALSE='#'
11920 else
11921 LIBQUAD_USE_SYMVER_TRUE='#'
11922 LIBQUAD_USE_SYMVER_FALSE=
11923 fi
11924
11925 if test "x$quadmath_use_symver" = xgnu; then
11926 LIBQUAD_USE_SYMVER_GNU_TRUE=
11927 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
11928 else
11929 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
11930 LIBQUAD_USE_SYMVER_GNU_FALSE=
11931 fi
11932
11933 if test "x$quadmath_use_symver" = xsun; then
11934 LIBQUAD_USE_SYMVER_SUN_TRUE=
11935 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
11936 else
11937 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
11938 LIBQUAD_USE_SYMVER_SUN_FALSE=
11939 fi
11940
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
11943 $as_echo_n "checking whether __float128 is supported... " >&6; }
11944 if test x$gcc_no_link = xyes; then
11945 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11946 fi
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949
11950 typedef _Complex float __attribute__((mode(TC))) __complex128;
11951
11952 __float128 foo (__float128 x)
11953 {
11954
11955 __complex128 z1, z2;
11956
11957 z1 = x;
11958 z2 = x / 7.Q;
11959 z2 /= z1;
11960
11961 return (__float128) z2;
11962 }
11963
11964 __float128 bar (__float128 x)
11965 {
11966 return x * __builtin_huge_valq ();
11967 }
11968
11969 int
11970 main ()
11971 {
11972
11973 foo (1.2Q);
11974 bar (1.2Q);
11975
11976 ;
11977 return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_link "$LINENO"; then :
11981
11982 libquad_have_float128=yes
11983
11984 else
11985
11986 libquad_have_float128=no
11987
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_have_float128" >&5
11992 $as_echo "$libquad_have_float128" >&6; }
11993
11994
11995 if test "x$libquad_have_float128" = xyes; then
11996 BUILD_LIBQUADMATH_TRUE=
11997 BUILD_LIBQUADMATH_FALSE='#'
11998 else
11999 BUILD_LIBQUADMATH_TRUE='#'
12000 BUILD_LIBQUADMATH_FALSE=
12001 fi
12002
12003
12004 cat >confcache <<\_ACEOF
12005 # This file is a shell script that caches the results of configure
12006 # tests run on this system so they can be shared between configure
12007 # scripts and configure runs, see configure's option --config-cache.
12008 # It is not useful on other systems. If it contains results you don't
12009 # want to keep, you may remove or edit it.
12010 #
12011 # config.status only pays attention to the cache file if you give it
12012 # the --recheck option to rerun configure.
12013 #
12014 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12015 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12016 # following values.
12017
12018 _ACEOF
12019
12020 # The following way of writing the cache mishandles newlines in values,
12021 # but we know of no workaround that is simple, portable, and efficient.
12022 # So, we kill variables containing newlines.
12023 # Ultrix sh set writes to stderr and can't be redirected directly,
12024 # and sets the high bit in the cache file unless we assign to the vars.
12025 (
12026 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12027 eval ac_val=\$$ac_var
12028 case $ac_val in #(
12029 *${as_nl}*)
12030 case $ac_var in #(
12031 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12032 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12033 esac
12034 case $ac_var in #(
12035 _ | IFS | as_nl) ;; #(
12036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12037 *) { eval $ac_var=; unset $ac_var;} ;;
12038 esac ;;
12039 esac
12040 done
12041
12042 (set) 2>&1 |
12043 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12044 *${as_nl}ac_space=\ *)
12045 # `set' does not quote correctly, so add quotes: double-quote
12046 # substitution turns \\\\ into \\, and sed turns \\ into \.
12047 sed -n \
12048 "s/'/'\\\\''/g;
12049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12050 ;; #(
12051 *)
12052 # `set' quotes correctly as required by POSIX, so do not add quotes.
12053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12054 ;;
12055 esac |
12056 sort
12057 ) |
12058 sed '
12059 /^ac_cv_env_/b end
12060 t clear
12061 :clear
12062 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12063 t end
12064 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12065 :end' >>confcache
12066 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12067 if test -w "$cache_file"; then
12068 test "x$cache_file" != "x/dev/null" &&
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12070 $as_echo "$as_me: updating cache $cache_file" >&6;}
12071 cat confcache >$cache_file
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12074 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12075 fi
12076 fi
12077 rm -f confcache
12078
12079 if test ${multilib} = yes; then
12080 multilib_arg="--enable-multilib"
12081 else
12082 multilib_arg=
12083 fi
12084
12085
12086 # We would like our source tree to be readonly. However when releases or
12087 # pre-releases are generated, the flex/bison generated files as well as the
12088 # various formats of manuals need to be included along with the rest of the
12089 # sources. Therefore we have --enable-generated-files-in-srcdir to do
12090 # just that.
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12092 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
12093 # Check whether --enable-generated-files-in-srcdir was given.
12094 if test "${enable_generated_files_in_srcdir+set}" = set; then :
12095 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12096 yes) enable_generated_files_in_srcdir=yes ;;
12097 no) enable_generated_files_in_srcdir=no ;;
12098 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12099 esac
12100 else
12101 enable_generated_files_in_srcdir=no
12102 fi
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12105 $as_echo "$enable_generated_files_in_srcdir" >&6; }
12106 if test "$enable_generated_files_in_srcdir" = yes; then
12107 GENINSRC_TRUE=
12108 GENINSRC_FALSE='#'
12109 else
12110 GENINSRC_TRUE='#'
12111 GENINSRC_FALSE=
12112 fi
12113
12114
12115
12116 ac_config_files="$ac_config_files Makefile"
12117
12118 cat >confcache <<\_ACEOF
12119 # This file is a shell script that caches the results of configure
12120 # tests run on this system so they can be shared between configure
12121 # scripts and configure runs, see configure's option --config-cache.
12122 # It is not useful on other systems. If it contains results you don't
12123 # want to keep, you may remove or edit it.
12124 #
12125 # config.status only pays attention to the cache file if you give it
12126 # the --recheck option to rerun configure.
12127 #
12128 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12129 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12130 # following values.
12131
12132 _ACEOF
12133
12134 # The following way of writing the cache mishandles newlines in values,
12135 # but we know of no workaround that is simple, portable, and efficient.
12136 # So, we kill variables containing newlines.
12137 # Ultrix sh set writes to stderr and can't be redirected directly,
12138 # and sets the high bit in the cache file unless we assign to the vars.
12139 (
12140 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12141 eval ac_val=\$$ac_var
12142 case $ac_val in #(
12143 *${as_nl}*)
12144 case $ac_var in #(
12145 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12146 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12147 esac
12148 case $ac_var in #(
12149 _ | IFS | as_nl) ;; #(
12150 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12151 *) { eval $ac_var=; unset $ac_var;} ;;
12152 esac ;;
12153 esac
12154 done
12155
12156 (set) 2>&1 |
12157 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12158 *${as_nl}ac_space=\ *)
12159 # `set' does not quote correctly, so add quotes: double-quote
12160 # substitution turns \\\\ into \\, and sed turns \\ into \.
12161 sed -n \
12162 "s/'/'\\\\''/g;
12163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12164 ;; #(
12165 *)
12166 # `set' quotes correctly as required by POSIX, so do not add quotes.
12167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12168 ;;
12169 esac |
12170 sort
12171 ) |
12172 sed '
12173 /^ac_cv_env_/b end
12174 t clear
12175 :clear
12176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12177 t end
12178 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12179 :end' >>confcache
12180 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12181 if test -w "$cache_file"; then
12182 test "x$cache_file" != "x/dev/null" &&
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12184 $as_echo "$as_me: updating cache $cache_file" >&6;}
12185 cat confcache >$cache_file
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12188 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12189 fi
12190 fi
12191 rm -f confcache
12192
12193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12194 # Let make expand exec_prefix.
12195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12196
12197 DEFS=-DHAVE_CONFIG_H
12198
12199 ac_libobjs=
12200 ac_ltlibobjs=
12201 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12202 # 1. Remove the extension, and $U if already installed.
12203 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12204 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12206 # will be set to the directory where LIBOBJS objects are built.
12207 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12208 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12209 done
12210 LIBOBJS=$ac_libobjs
12211
12212 LTLIBOBJS=$ac_ltlibobjs
12213
12214
12215 if test -n "$EXEEXT"; then
12216 am__EXEEXT_TRUE=
12217 am__EXEEXT_FALSE='#'
12218 else
12219 am__EXEEXT_TRUE='#'
12220 am__EXEEXT_FALSE=
12221 fi
12222
12223 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
12224 as_fn_error "conditional \"BUILD_INFO\" was never defined.
12225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12226 fi
12227 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12228 as_fn_error "conditional \"AMDEP\" was never defined.
12229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12230 fi
12231 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12232 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12234 fi
12235 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12236 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12238 fi
12239 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12240 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12242 fi
12243 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
12244 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
12245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12246 fi
12247 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
12248 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
12249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12250 fi
12251 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
12252 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
12253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12254 fi
12255 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
12256 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
12257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12258 fi
12259 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
12260 as_fn_error "conditional \"GENINSRC\" was never defined.
12261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12262 fi
12263
12264 : ${CONFIG_STATUS=./config.status}
12265 ac_write_fail=0
12266 ac_clean_files_save=$ac_clean_files
12267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12269 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12270 as_write_fail=0
12271 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12272 #! $SHELL
12273 # Generated by $as_me.
12274 # Run this file to recreate the current configuration.
12275 # Compiler output produced by configure, useful for debugging
12276 # configure, is in config.log if it exists.
12277
12278 debug=false
12279 ac_cs_recheck=false
12280 ac_cs_silent=false
12281
12282 SHELL=\${CONFIG_SHELL-$SHELL}
12283 export SHELL
12284 _ASEOF
12285 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12286 ## -------------------- ##
12287 ## M4sh Initialization. ##
12288 ## -------------------- ##
12289
12290 # Be more Bourne compatible
12291 DUALCASE=1; export DUALCASE # for MKS sh
12292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12293 emulate sh
12294 NULLCMD=:
12295 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12296 # is contrary to our usage. Disable this feature.
12297 alias -g '${1+"$@"}'='"$@"'
12298 setopt NO_GLOB_SUBST
12299 else
12300 case `(set -o) 2>/dev/null` in #(
12301 *posix*) :
12302 set -o posix ;; #(
12303 *) :
12304 ;;
12305 esac
12306 fi
12307
12308
12309 as_nl='
12310 '
12311 export as_nl
12312 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12313 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12315 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12316 # Prefer a ksh shell builtin over an external printf program on Solaris,
12317 # but without wasting forks for bash or zsh.
12318 if test -z "$BASH_VERSION$ZSH_VERSION" \
12319 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12320 as_echo='print -r --'
12321 as_echo_n='print -rn --'
12322 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12323 as_echo='printf %s\n'
12324 as_echo_n='printf %s'
12325 else
12326 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12327 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12328 as_echo_n='/usr/ucb/echo -n'
12329 else
12330 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12331 as_echo_n_body='eval
12332 arg=$1;
12333 case $arg in #(
12334 *"$as_nl"*)
12335 expr "X$arg" : "X\\(.*\\)$as_nl";
12336 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12337 esac;
12338 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12339 '
12340 export as_echo_n_body
12341 as_echo_n='sh -c $as_echo_n_body as_echo'
12342 fi
12343 export as_echo_body
12344 as_echo='sh -c $as_echo_body as_echo'
12345 fi
12346
12347 # The user is always right.
12348 if test "${PATH_SEPARATOR+set}" != set; then
12349 PATH_SEPARATOR=:
12350 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12351 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12352 PATH_SEPARATOR=';'
12353 }
12354 fi
12355
12356
12357 # IFS
12358 # We need space, tab and new line, in precisely that order. Quoting is
12359 # there to prevent editors from complaining about space-tab.
12360 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12361 # splitting by setting IFS to empty value.)
12362 IFS=" "" $as_nl"
12363
12364 # Find who we are. Look in the path if we contain no directory separator.
12365 case $0 in #((
12366 *[\\/]* ) as_myself=$0 ;;
12367 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 for as_dir in $PATH
12369 do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12373 done
12374 IFS=$as_save_IFS
12375
12376 ;;
12377 esac
12378 # We did not find ourselves, most probably we were run as `sh COMMAND'
12379 # in which case we are not to be found in the path.
12380 if test "x$as_myself" = x; then
12381 as_myself=$0
12382 fi
12383 if test ! -f "$as_myself"; then
12384 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12385 exit 1
12386 fi
12387
12388 # Unset variables that we do not need and which cause bugs (e.g. in
12389 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12390 # suppresses any "Segmentation fault" message there. '((' could
12391 # trigger a bug in pdksh 5.2.14.
12392 for as_var in BASH_ENV ENV MAIL MAILPATH
12393 do eval test x\${$as_var+set} = xset \
12394 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12395 done
12396 PS1='$ '
12397 PS2='> '
12398 PS4='+ '
12399
12400 # NLS nuisances.
12401 LC_ALL=C
12402 export LC_ALL
12403 LANGUAGE=C
12404 export LANGUAGE
12405
12406 # CDPATH.
12407 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12408
12409
12410 # as_fn_error ERROR [LINENO LOG_FD]
12411 # ---------------------------------
12412 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12413 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12414 # script with status $?, using 1 if that was 0.
12415 as_fn_error ()
12416 {
12417 as_status=$?; test $as_status -eq 0 && as_status=1
12418 if test "$3"; then
12419 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12421 fi
12422 $as_echo "$as_me: error: $1" >&2
12423 as_fn_exit $as_status
12424 } # as_fn_error
12425
12426
12427 # as_fn_set_status STATUS
12428 # -----------------------
12429 # Set $? to STATUS, without forking.
12430 as_fn_set_status ()
12431 {
12432 return $1
12433 } # as_fn_set_status
12434
12435 # as_fn_exit STATUS
12436 # -----------------
12437 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12438 as_fn_exit ()
12439 {
12440 set +e
12441 as_fn_set_status $1
12442 exit $1
12443 } # as_fn_exit
12444
12445 # as_fn_unset VAR
12446 # ---------------
12447 # Portably unset VAR.
12448 as_fn_unset ()
12449 {
12450 { eval $1=; unset $1;}
12451 }
12452 as_unset=as_fn_unset
12453 # as_fn_append VAR VALUE
12454 # ----------------------
12455 # Append the text in VALUE to the end of the definition contained in VAR. Take
12456 # advantage of any shell optimizations that allow amortized linear growth over
12457 # repeated appends, instead of the typical quadratic growth present in naive
12458 # implementations.
12459 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12460 eval 'as_fn_append ()
12461 {
12462 eval $1+=\$2
12463 }'
12464 else
12465 as_fn_append ()
12466 {
12467 eval $1=\$$1\$2
12468 }
12469 fi # as_fn_append
12470
12471 # as_fn_arith ARG...
12472 # ------------------
12473 # Perform arithmetic evaluation on the ARGs, and store the result in the
12474 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12475 # must be portable across $(()) and expr.
12476 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12477 eval 'as_fn_arith ()
12478 {
12479 as_val=$(( $* ))
12480 }'
12481 else
12482 as_fn_arith ()
12483 {
12484 as_val=`expr "$@" || test $? -eq 1`
12485 }
12486 fi # as_fn_arith
12487
12488
12489 if expr a : '\(a\)' >/dev/null 2>&1 &&
12490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12491 as_expr=expr
12492 else
12493 as_expr=false
12494 fi
12495
12496 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12497 as_basename=basename
12498 else
12499 as_basename=false
12500 fi
12501
12502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12503 as_dirname=dirname
12504 else
12505 as_dirname=false
12506 fi
12507
12508 as_me=`$as_basename -- "$0" ||
12509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12510 X"$0" : 'X\(//\)$' \| \
12511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12512 $as_echo X/"$0" |
12513 sed '/^.*\/\([^/][^/]*\)\/*$/{
12514 s//\1/
12515 q
12516 }
12517 /^X\/\(\/\/\)$/{
12518 s//\1/
12519 q
12520 }
12521 /^X\/\(\/\).*/{
12522 s//\1/
12523 q
12524 }
12525 s/.*/./; q'`
12526
12527 # Avoid depending upon Character Ranges.
12528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12531 as_cr_digits='0123456789'
12532 as_cr_alnum=$as_cr_Letters$as_cr_digits
12533
12534 ECHO_C= ECHO_N= ECHO_T=
12535 case `echo -n x` in #(((((
12536 -n*)
12537 case `echo 'xy\c'` in
12538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12539 xy) ECHO_C='\c';;
12540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12541 ECHO_T=' ';;
12542 esac;;
12543 *)
12544 ECHO_N='-n';;
12545 esac
12546
12547 rm -f conf$$ conf$$.exe conf$$.file
12548 if test -d conf$$.dir; then
12549 rm -f conf$$.dir/conf$$.file
12550 else
12551 rm -f conf$$.dir
12552 mkdir conf$$.dir 2>/dev/null
12553 fi
12554 if (echo >conf$$.file) 2>/dev/null; then
12555 if ln -s conf$$.file conf$$ 2>/dev/null; then
12556 as_ln_s='ln -s'
12557 # ... but there are two gotchas:
12558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12560 # In both cases, we have to default to `cp -p'.
12561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12562 as_ln_s='cp -p'
12563 elif ln conf$$.file conf$$ 2>/dev/null; then
12564 as_ln_s=ln
12565 else
12566 as_ln_s='cp -p'
12567 fi
12568 else
12569 as_ln_s='cp -p'
12570 fi
12571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12572 rmdir conf$$.dir 2>/dev/null
12573
12574
12575 # as_fn_mkdir_p
12576 # -------------
12577 # Create "$as_dir" as a directory, including parents if necessary.
12578 as_fn_mkdir_p ()
12579 {
12580
12581 case $as_dir in #(
12582 -*) as_dir=./$as_dir;;
12583 esac
12584 test -d "$as_dir" || eval $as_mkdir_p || {
12585 as_dirs=
12586 while :; do
12587 case $as_dir in #(
12588 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12589 *) as_qdir=$as_dir;;
12590 esac
12591 as_dirs="'$as_qdir' $as_dirs"
12592 as_dir=`$as_dirname -- "$as_dir" ||
12593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12594 X"$as_dir" : 'X\(//\)[^/]' \| \
12595 X"$as_dir" : 'X\(//\)$' \| \
12596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12597 $as_echo X"$as_dir" |
12598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12599 s//\1/
12600 q
12601 }
12602 /^X\(\/\/\)[^/].*/{
12603 s//\1/
12604 q
12605 }
12606 /^X\(\/\/\)$/{
12607 s//\1/
12608 q
12609 }
12610 /^X\(\/\).*/{
12611 s//\1/
12612 q
12613 }
12614 s/.*/./; q'`
12615 test -d "$as_dir" && break
12616 done
12617 test -z "$as_dirs" || eval "mkdir $as_dirs"
12618 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12619
12620
12621 } # as_fn_mkdir_p
12622 if mkdir -p . 2>/dev/null; then
12623 as_mkdir_p='mkdir -p "$as_dir"'
12624 else
12625 test -d ./-p && rmdir ./-p
12626 as_mkdir_p=false
12627 fi
12628
12629 if test -x / >/dev/null 2>&1; then
12630 as_test_x='test -x'
12631 else
12632 if ls -dL / >/dev/null 2>&1; then
12633 as_ls_L_option=L
12634 else
12635 as_ls_L_option=
12636 fi
12637 as_test_x='
12638 eval sh -c '\''
12639 if test -d "$1"; then
12640 test -d "$1/.";
12641 else
12642 case $1 in #(
12643 -*)set "./$1";;
12644 esac;
12645 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12646 ???[sx]*):;;*)false;;esac;fi
12647 '\'' sh
12648 '
12649 fi
12650 as_executable_p=$as_test_x
12651
12652 # Sed expression to map a string onto a valid CPP name.
12653 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12654
12655 # Sed expression to map a string onto a valid variable name.
12656 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12657
12658
12659 exec 6>&1
12660 ## ----------------------------------- ##
12661 ## Main body of $CONFIG_STATUS script. ##
12662 ## ----------------------------------- ##
12663 _ASEOF
12664 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12665
12666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12667 # Save the log message, to keep $0 and so on meaningful, and to
12668 # report actual input values of CONFIG_FILES etc. instead of their
12669 # values after options handling.
12670 ac_log="
12671 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
12672 generated by GNU Autoconf 2.64. Invocation command line was
12673
12674 CONFIG_FILES = $CONFIG_FILES
12675 CONFIG_HEADERS = $CONFIG_HEADERS
12676 CONFIG_LINKS = $CONFIG_LINKS
12677 CONFIG_COMMANDS = $CONFIG_COMMANDS
12678 $ $0 $@
12679
12680 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12681 "
12682
12683 _ACEOF
12684
12685 case $ac_config_files in *"
12686 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12687 esac
12688
12689 case $ac_config_headers in *"
12690 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12691 esac
12692
12693
12694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12695 # Files that config.status was made for.
12696 config_files="$ac_config_files"
12697 config_headers="$ac_config_headers"
12698 config_commands="$ac_config_commands"
12699
12700 _ACEOF
12701
12702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12703 ac_cs_usage="\
12704 \`$as_me' instantiates files and other configuration actions
12705 from templates according to the current configuration. Unless the files
12706 and actions are specified as TAGs, all are instantiated by default.
12707
12708 Usage: $0 [OPTION]... [TAG]...
12709
12710 -h, --help print this help, then exit
12711 -V, --version print version number and configuration settings, then exit
12712 -q, --quiet, --silent
12713 do not print progress messages
12714 -d, --debug don't remove temporary files
12715 --recheck update $as_me by reconfiguring in the same conditions
12716 --file=FILE[:TEMPLATE]
12717 instantiate the configuration file FILE
12718 --header=FILE[:TEMPLATE]
12719 instantiate the configuration header FILE
12720
12721 Configuration files:
12722 $config_files
12723
12724 Configuration headers:
12725 $config_headers
12726
12727 Configuration commands:
12728 $config_commands
12729
12730 Report bugs to the package provider."
12731
12732 _ACEOF
12733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12734 ac_cs_version="\\
12735 GCC Quad-precision Math Library config.status 0.1
12736 configured by $0, generated by GNU Autoconf 2.64,
12737 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12738
12739 Copyright (C) 2009 Free Software Foundation, Inc.
12740 This config.status script is free software; the Free Software Foundation
12741 gives unlimited permission to copy, distribute and modify it."
12742
12743 ac_pwd='$ac_pwd'
12744 srcdir='$srcdir'
12745 INSTALL='$INSTALL'
12746 MKDIR_P='$MKDIR_P'
12747 AWK='$AWK'
12748 test -n "\$AWK" || AWK=awk
12749 _ACEOF
12750
12751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12752 # The default lists apply if the user does not specify any file.
12753 ac_need_defaults=:
12754 while test $# != 0
12755 do
12756 case $1 in
12757 --*=*)
12758 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12759 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12760 ac_shift=:
12761 ;;
12762 *)
12763 ac_option=$1
12764 ac_optarg=$2
12765 ac_shift=shift
12766 ;;
12767 esac
12768
12769 case $ac_option in
12770 # Handling of the options.
12771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12772 ac_cs_recheck=: ;;
12773 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12774 $as_echo "$ac_cs_version"; exit ;;
12775 --debug | --debu | --deb | --de | --d | -d )
12776 debug=: ;;
12777 --file | --fil | --fi | --f )
12778 $ac_shift
12779 case $ac_optarg in
12780 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12781 esac
12782 as_fn_append CONFIG_FILES " '$ac_optarg'"
12783 ac_need_defaults=false;;
12784 --header | --heade | --head | --hea )
12785 $ac_shift
12786 case $ac_optarg in
12787 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12788 esac
12789 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12790 ac_need_defaults=false;;
12791 --he | --h)
12792 # Conflict between --help and --header
12793 as_fn_error "ambiguous option: \`$1'
12794 Try \`$0 --help' for more information.";;
12795 --help | --hel | -h )
12796 $as_echo "$ac_cs_usage"; exit ;;
12797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12798 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12799 ac_cs_silent=: ;;
12800
12801 # This is an error.
12802 -*) as_fn_error "unrecognized option: \`$1'
12803 Try \`$0 --help' for more information." ;;
12804
12805 *) as_fn_append ac_config_targets " $1"
12806 ac_need_defaults=false ;;
12807
12808 esac
12809 shift
12810 done
12811
12812 ac_configure_extra_args=
12813
12814 if $ac_cs_silent; then
12815 exec 6>/dev/null
12816 ac_configure_extra_args="$ac_configure_extra_args --silent"
12817 fi
12818
12819 _ACEOF
12820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12821 if \$ac_cs_recheck; then
12822 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12823 shift
12824 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12825 CONFIG_SHELL='$SHELL'
12826 export CONFIG_SHELL
12827 exec "\$@"
12828 fi
12829
12830 _ACEOF
12831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12832 exec 5>>config.log
12833 {
12834 echo
12835 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12836 ## Running $as_me. ##
12837 _ASBOX
12838 $as_echo "$ac_log"
12839 } >&5
12840
12841 _ACEOF
12842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12843 #
12844 # INIT-COMMANDS
12845 #
12846 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12847
12848
12849 # The HP-UX ksh and POSIX shell print the target directory to stdout
12850 # if CDPATH is set.
12851 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12852
12853 sed_quote_subst='$sed_quote_subst'
12854 double_quote_subst='$double_quote_subst'
12855 delay_variable_subst='$delay_variable_subst'
12856 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12857 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12858 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12859 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12860 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12861 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12862 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12863 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12864 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12865 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12866 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12867 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12868 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12869 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12870 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12871 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12872 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12873 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12874 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12875 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12876 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12877 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12878 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12879 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12880 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12881 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12882 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12883 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12884 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12885 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12886 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12887 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12888 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12889 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12890 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12891 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12892 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12893 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12894 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12895 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12896 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12897 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12898 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12899 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12900 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12901 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12902 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12903 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12904 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"`'
12905 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12906 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12907 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12908 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12909 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12910 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12911 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12912 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12913 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12914 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12915 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12916 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12917 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12918 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12919 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12920 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12921 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12922 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12923 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12924 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12925 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12926 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12927 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12928 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12929 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12930 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12931 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12932 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12933 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12934 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12935 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12936 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12937 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12938 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12939 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12940 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12941 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12942 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12943 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12944 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12945 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12946 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12947 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12948 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12949 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12950 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12951 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12952 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12953 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12954 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12955 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12956 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12957 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12958 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12959 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12960 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12961 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12962 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12963 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12964 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12965 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12966 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12967 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12968 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12969 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12970 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12971 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12972 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12973 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12974 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12975 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12976
12977 LTCC='$LTCC'
12978 LTCFLAGS='$LTCFLAGS'
12979 compiler='$compiler_DEFAULT'
12980
12981 # A function that is used when there is no print builtin or printf.
12982 func_fallback_echo ()
12983 {
12984 eval 'cat <<_LTECHO_EOF
12985 \$1
12986 _LTECHO_EOF'
12987 }
12988
12989 # Quote evaled strings.
12990 for var in SHELL \
12991 ECHO \
12992 SED \
12993 GREP \
12994 EGREP \
12995 FGREP \
12996 LD \
12997 NM \
12998 LN_S \
12999 lt_SP2NL \
13000 lt_NL2SP \
13001 reload_flag \
13002 OBJDUMP \
13003 deplibs_check_method \
13004 file_magic_cmd \
13005 AR \
13006 AR_FLAGS \
13007 STRIP \
13008 RANLIB \
13009 CC \
13010 CFLAGS \
13011 compiler \
13012 lt_cv_sys_global_symbol_pipe \
13013 lt_cv_sys_global_symbol_to_cdecl \
13014 lt_cv_sys_global_symbol_to_c_name_address \
13015 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13016 lt_prog_compiler_no_builtin_flag \
13017 lt_prog_compiler_wl \
13018 lt_prog_compiler_pic \
13019 lt_prog_compiler_static \
13020 lt_cv_prog_compiler_c_o \
13021 need_locks \
13022 DSYMUTIL \
13023 NMEDIT \
13024 LIPO \
13025 OTOOL \
13026 OTOOL64 \
13027 shrext_cmds \
13028 export_dynamic_flag_spec \
13029 whole_archive_flag_spec \
13030 compiler_needs_object \
13031 with_gnu_ld \
13032 allow_undefined_flag \
13033 no_undefined_flag \
13034 hardcode_libdir_flag_spec \
13035 hardcode_libdir_flag_spec_ld \
13036 hardcode_libdir_separator \
13037 fix_srcfile_path \
13038 exclude_expsyms \
13039 include_expsyms \
13040 file_list_spec \
13041 variables_saved_for_relink \
13042 libname_spec \
13043 library_names_spec \
13044 soname_spec \
13045 install_override_mode \
13046 finish_eval \
13047 old_striplib \
13048 striplib; do
13049 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13050 *[\\\\\\\`\\"\\\$]*)
13051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13052 ;;
13053 *)
13054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13055 ;;
13056 esac
13057 done
13058
13059 # Double-quote double-evaled strings.
13060 for var in reload_cmds \
13061 old_postinstall_cmds \
13062 old_postuninstall_cmds \
13063 old_archive_cmds \
13064 extract_expsyms_cmds \
13065 old_archive_from_new_cmds \
13066 old_archive_from_expsyms_cmds \
13067 archive_cmds \
13068 archive_expsym_cmds \
13069 module_cmds \
13070 module_expsym_cmds \
13071 export_symbols_cmds \
13072 prelink_cmds \
13073 postinstall_cmds \
13074 postuninstall_cmds \
13075 finish_cmds \
13076 sys_lib_search_path_spec \
13077 sys_lib_dlsearch_path_spec; do
13078 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13079 *[\\\\\\\`\\"\\\$]*)
13080 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13081 ;;
13082 *)
13083 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13084 ;;
13085 esac
13086 done
13087
13088 ac_aux_dir='$ac_aux_dir'
13089 xsi_shell='$xsi_shell'
13090 lt_shell_append='$lt_shell_append'
13091
13092 # See if we are running on zsh, and set the options which allow our
13093 # commands through without removal of \ escapes INIT.
13094 if test -n "\${ZSH_VERSION+set}" ; then
13095 setopt NO_GLOB_SUBST
13096 fi
13097
13098
13099 PACKAGE='$PACKAGE'
13100 VERSION='$VERSION'
13101 TIMESTAMP='$TIMESTAMP'
13102 RM='$RM'
13103 ofile='$ofile'
13104
13105
13106
13107
13108 srcdir="$srcdir"
13109 host="$host"
13110 target="$target"
13111 with_multisubdir="$with_multisubdir"
13112 with_multisrctop="$with_multisrctop"
13113 with_target_subdir="$with_target_subdir"
13114 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13115 multi_basedir="$multi_basedir"
13116 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13117 CC="$CC"
13118 CXX="$CXX"
13119 GFORTRAN="$GFORTRAN"
13120 GCJ="$GCJ"
13121
13122 _ACEOF
13123
13124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13125
13126 # Handling of arguments.
13127 for ac_config_target in $ac_config_targets
13128 do
13129 case $ac_config_target in
13130 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13131 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13132 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13133 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13134 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13135
13136 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13137 esac
13138 done
13139
13140
13141 # If the user did not use the arguments to specify the items to instantiate,
13142 # then the envvar interface is used. Set only those that are not.
13143 # We use the long form for the default assignment because of an extremely
13144 # bizarre bug on SunOS 4.1.3.
13145 if $ac_need_defaults; then
13146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13148 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13149 fi
13150
13151 # Have a temporary directory for convenience. Make it in the build tree
13152 # simply because there is no reason against having it here, and in addition,
13153 # creating and moving files from /tmp can sometimes cause problems.
13154 # Hook for its removal unless debugging.
13155 # Note that there is a small window in which the directory will not be cleaned:
13156 # after its creation but before its name has been assigned to `$tmp'.
13157 $debug ||
13158 {
13159 tmp=
13160 trap 'exit_status=$?
13161 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13162 ' 0
13163 trap 'as_fn_exit 1' 1 2 13 15
13164 }
13165 # Create a (secure) tmp directory for tmp files.
13166
13167 {
13168 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13169 test -n "$tmp" && test -d "$tmp"
13170 } ||
13171 {
13172 tmp=./conf$$-$RANDOM
13173 (umask 077 && mkdir "$tmp")
13174 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13175
13176 # Set up the scripts for CONFIG_FILES section.
13177 # No need to generate them if there are no CONFIG_FILES.
13178 # This happens for instance with `./config.status config.h'.
13179 if test -n "$CONFIG_FILES"; then
13180
13181
13182 ac_cr=`echo X | tr X '\015'`
13183 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13184 # But we know of no other shell where ac_cr would be empty at this
13185 # point, so we can use a bashism as a fallback.
13186 if test "x$ac_cr" = x; then
13187 eval ac_cr=\$\'\\r\'
13188 fi
13189 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13190 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13191 ac_cs_awk_cr='\r'
13192 else
13193 ac_cs_awk_cr=$ac_cr
13194 fi
13195
13196 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13197 _ACEOF
13198
13199
13200 {
13201 echo "cat >conf$$subs.awk <<_ACEOF" &&
13202 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13203 echo "_ACEOF"
13204 } >conf$$subs.sh ||
13205 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13206 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13207 ac_delim='%!_!# '
13208 for ac_last_try in false false false false false :; do
13209 . ./conf$$subs.sh ||
13210 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13211
13212 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13213 if test $ac_delim_n = $ac_delim_num; then
13214 break
13215 elif $ac_last_try; then
13216 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13217 else
13218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13219 fi
13220 done
13221 rm -f conf$$subs.sh
13222
13223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13224 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13225 _ACEOF
13226 sed -n '
13227 h
13228 s/^/S["/; s/!.*/"]=/
13229 p
13230 g
13231 s/^[^!]*!//
13232 :repl
13233 t repl
13234 s/'"$ac_delim"'$//
13235 t delim
13236 :nl
13237 h
13238 s/\(.\{148\}\).*/\1/
13239 t more1
13240 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13241 p
13242 n
13243 b repl
13244 :more1
13245 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13246 p
13247 g
13248 s/.\{148\}//
13249 t nl
13250 :delim
13251 h
13252 s/\(.\{148\}\).*/\1/
13253 t more2
13254 s/["\\]/\\&/g; s/^/"/; s/$/"/
13255 p
13256 b
13257 :more2
13258 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13259 p
13260 g
13261 s/.\{148\}//
13262 t delim
13263 ' <conf$$subs.awk | sed '
13264 /^[^""]/{
13265 N
13266 s/\n//
13267 }
13268 ' >>$CONFIG_STATUS || ac_write_fail=1
13269 rm -f conf$$subs.awk
13270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13271 _ACAWK
13272 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13273 for (key in S) S_is_set[key] = 1
13274 FS = "\a"
13275
13276 }
13277 {
13278 line = $ 0
13279 nfields = split(line, field, "@")
13280 substed = 0
13281 len = length(field[1])
13282 for (i = 2; i < nfields; i++) {
13283 key = field[i]
13284 keylen = length(key)
13285 if (S_is_set[key]) {
13286 value = S[key]
13287 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13288 len += length(value) + length(field[++i])
13289 substed = 1
13290 } else
13291 len += 1 + keylen
13292 }
13293
13294 print line
13295 }
13296
13297 _ACAWK
13298 _ACEOF
13299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13300 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13301 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13302 else
13303 cat
13304 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13305 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13306 _ACEOF
13307
13308 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13309 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13310 # trailing colons and then remove the whole line if VPATH becomes empty
13311 # (actually we leave an empty line to preserve line numbers).
13312 if test "x$srcdir" = x.; then
13313 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13314 s/:*\$(srcdir):*/:/
13315 s/:*\${srcdir}:*/:/
13316 s/:*@srcdir@:*/:/
13317 s/^\([^=]*=[ ]*\):*/\1/
13318 s/:*$//
13319 s/^[^=]*=[ ]*$//
13320 }'
13321 fi
13322
13323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13324 fi # test -n "$CONFIG_FILES"
13325
13326 # Set up the scripts for CONFIG_HEADERS section.
13327 # No need to generate them if there are no CONFIG_HEADERS.
13328 # This happens for instance with `./config.status Makefile'.
13329 if test -n "$CONFIG_HEADERS"; then
13330 cat >"$tmp/defines.awk" <<\_ACAWK ||
13331 BEGIN {
13332 _ACEOF
13333
13334 # Transform confdefs.h into an awk script `defines.awk', embedded as
13335 # here-document in config.status, that substitutes the proper values into
13336 # config.h.in to produce config.h.
13337
13338 # Create a delimiter string that does not exist in confdefs.h, to ease
13339 # handling of long lines.
13340 ac_delim='%!_!# '
13341 for ac_last_try in false false :; do
13342 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13343 if test -z "$ac_t"; then
13344 break
13345 elif $ac_last_try; then
13346 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13347 else
13348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13349 fi
13350 done
13351
13352 # For the awk script, D is an array of macro values keyed by name,
13353 # likewise P contains macro parameters if any. Preserve backslash
13354 # newline sequences.
13355
13356 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13357 sed -n '
13358 s/.\{148\}/&'"$ac_delim"'/g
13359 t rset
13360 :rset
13361 s/^[ ]*#[ ]*define[ ][ ]*/ /
13362 t def
13363 d
13364 :def
13365 s/\\$//
13366 t bsnl
13367 s/["\\]/\\&/g
13368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13369 D["\1"]=" \3"/p
13370 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13371 d
13372 :bsnl
13373 s/["\\]/\\&/g
13374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13375 D["\1"]=" \3\\\\\\n"\\/p
13376 t cont
13377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13378 t cont
13379 d
13380 :cont
13381 n
13382 s/.\{148\}/&'"$ac_delim"'/g
13383 t clear
13384 :clear
13385 s/\\$//
13386 t bsnlc
13387 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13388 d
13389 :bsnlc
13390 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13391 b cont
13392 ' <confdefs.h | sed '
13393 s/'"$ac_delim"'/"\\\
13394 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13395
13396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13397 for (key in D) D_is_set[key] = 1
13398 FS = "\a"
13399 }
13400 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13401 line = \$ 0
13402 split(line, arg, " ")
13403 if (arg[1] == "#") {
13404 defundef = arg[2]
13405 mac1 = arg[3]
13406 } else {
13407 defundef = substr(arg[1], 2)
13408 mac1 = arg[2]
13409 }
13410 split(mac1, mac2, "(") #)
13411 macro = mac2[1]
13412 prefix = substr(line, 1, index(line, defundef) - 1)
13413 if (D_is_set[macro]) {
13414 # Preserve the white space surrounding the "#".
13415 print prefix "define", macro P[macro] D[macro]
13416 next
13417 } else {
13418 # Replace #undef with comments. This is necessary, for example,
13419 # in the case of _POSIX_SOURCE, which is predefined and required
13420 # on some systems where configure will not decide to define it.
13421 if (defundef == "undef") {
13422 print "/*", prefix defundef, macro, "*/"
13423 next
13424 }
13425 }
13426 }
13427 { print }
13428 _ACAWK
13429 _ACEOF
13430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13431 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13432 fi # test -n "$CONFIG_HEADERS"
13433
13434
13435 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13436 shift
13437 for ac_tag
13438 do
13439 case $ac_tag in
13440 :[FHLC]) ac_mode=$ac_tag; continue;;
13441 esac
13442 case $ac_mode$ac_tag in
13443 :[FHL]*:*);;
13444 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13445 :[FH]-) ac_tag=-:-;;
13446 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13447 esac
13448 ac_save_IFS=$IFS
13449 IFS=:
13450 set x $ac_tag
13451 IFS=$ac_save_IFS
13452 shift
13453 ac_file=$1
13454 shift
13455
13456 case $ac_mode in
13457 :L) ac_source=$1;;
13458 :[FH])
13459 ac_file_inputs=
13460 for ac_f
13461 do
13462 case $ac_f in
13463 -) ac_f="$tmp/stdin";;
13464 *) # Look for the file first in the build tree, then in the source tree
13465 # (if the path is not absolute). The absolute path cannot be DOS-style,
13466 # because $ac_f cannot contain `:'.
13467 test -f "$ac_f" ||
13468 case $ac_f in
13469 [\\/$]*) false;;
13470 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13471 esac ||
13472 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13473 esac
13474 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13475 as_fn_append ac_file_inputs " '$ac_f'"
13476 done
13477
13478 # Let's still pretend it is `configure' which instantiates (i.e., don't
13479 # use $as_me), people would be surprised to read:
13480 # /* config.h. Generated by config.status. */
13481 configure_input='Generated from '`
13482 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13483 `' by configure.'
13484 if test x"$ac_file" != x-; then
13485 configure_input="$ac_file. $configure_input"
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13487 $as_echo "$as_me: creating $ac_file" >&6;}
13488 fi
13489 # Neutralize special characters interpreted by sed in replacement strings.
13490 case $configure_input in #(
13491 *\&* | *\|* | *\\* )
13492 ac_sed_conf_input=`$as_echo "$configure_input" |
13493 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13494 *) ac_sed_conf_input=$configure_input;;
13495 esac
13496
13497 case $ac_tag in
13498 *:-:* | *:-) cat >"$tmp/stdin" \
13499 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13500 esac
13501 ;;
13502 esac
13503
13504 ac_dir=`$as_dirname -- "$ac_file" ||
13505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13506 X"$ac_file" : 'X\(//\)[^/]' \| \
13507 X"$ac_file" : 'X\(//\)$' \| \
13508 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13509 $as_echo X"$ac_file" |
13510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13511 s//\1/
13512 q
13513 }
13514 /^X\(\/\/\)[^/].*/{
13515 s//\1/
13516 q
13517 }
13518 /^X\(\/\/\)$/{
13519 s//\1/
13520 q
13521 }
13522 /^X\(\/\).*/{
13523 s//\1/
13524 q
13525 }
13526 s/.*/./; q'`
13527 as_dir="$ac_dir"; as_fn_mkdir_p
13528 ac_builddir=.
13529
13530 case "$ac_dir" in
13531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13532 *)
13533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13534 # A ".." for each directory in $ac_dir_suffix.
13535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13536 case $ac_top_builddir_sub in
13537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13539 esac ;;
13540 esac
13541 ac_abs_top_builddir=$ac_pwd
13542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13543 # for backward compatibility:
13544 ac_top_builddir=$ac_top_build_prefix
13545
13546 case $srcdir in
13547 .) # We are building in place.
13548 ac_srcdir=.
13549 ac_top_srcdir=$ac_top_builddir_sub
13550 ac_abs_top_srcdir=$ac_pwd ;;
13551 [\\/]* | ?:[\\/]* ) # Absolute name.
13552 ac_srcdir=$srcdir$ac_dir_suffix;
13553 ac_top_srcdir=$srcdir
13554 ac_abs_top_srcdir=$srcdir ;;
13555 *) # Relative name.
13556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13557 ac_top_srcdir=$ac_top_build_prefix$srcdir
13558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13559 esac
13560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13561
13562
13563 case $ac_mode in
13564 :F)
13565 #
13566 # CONFIG_FILE
13567 #
13568
13569 case $INSTALL in
13570 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13571 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13572 esac
13573 ac_MKDIR_P=$MKDIR_P
13574 case $MKDIR_P in
13575 [\\/$]* | ?:[\\/]* ) ;;
13576 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13577 esac
13578 _ACEOF
13579
13580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13581 # If the template does not know about datarootdir, expand it.
13582 # FIXME: This hack should be removed a few years after 2.60.
13583 ac_datarootdir_hack=; ac_datarootdir_seen=
13584 ac_sed_dataroot='
13585 /datarootdir/ {
13586 p
13587 q
13588 }
13589 /@datadir@/p
13590 /@docdir@/p
13591 /@infodir@/p
13592 /@localedir@/p
13593 /@mandir@/p'
13594 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13595 *datarootdir*) ac_datarootdir_seen=yes;;
13596 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13598 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13599 _ACEOF
13600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13601 ac_datarootdir_hack='
13602 s&@datadir@&$datadir&g
13603 s&@docdir@&$docdir&g
13604 s&@infodir@&$infodir&g
13605 s&@localedir@&$localedir&g
13606 s&@mandir@&$mandir&g
13607 s&\\\${datarootdir}&$datarootdir&g' ;;
13608 esac
13609 _ACEOF
13610
13611 # Neutralize VPATH when `$srcdir' = `.'.
13612 # Shell code in configure.ac might set extrasub.
13613 # FIXME: do we really want to maintain this feature?
13614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13615 ac_sed_extra="$ac_vpsub
13616 $extrasub
13617 _ACEOF
13618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13619 :t
13620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13621 s|@configure_input@|$ac_sed_conf_input|;t t
13622 s&@top_builddir@&$ac_top_builddir_sub&;t t
13623 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13624 s&@srcdir@&$ac_srcdir&;t t
13625 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13626 s&@top_srcdir@&$ac_top_srcdir&;t t
13627 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13628 s&@builddir@&$ac_builddir&;t t
13629 s&@abs_builddir@&$ac_abs_builddir&;t t
13630 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13631 s&@INSTALL@&$ac_INSTALL&;t t
13632 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13633 $ac_datarootdir_hack
13634 "
13635 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13636 || as_fn_error "could not create $ac_file" "$LINENO" 5
13637
13638 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13639 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13640 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13642 which seems to be undefined. Please make sure it is defined." >&5
13643 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13644 which seems to be undefined. Please make sure it is defined." >&2;}
13645
13646 rm -f "$tmp/stdin"
13647 case $ac_file in
13648 -) cat "$tmp/out" && rm -f "$tmp/out";;
13649 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13650 esac \
13651 || as_fn_error "could not create $ac_file" "$LINENO" 5
13652 ;;
13653 :H)
13654 #
13655 # CONFIG_HEADER
13656 #
13657 if test x"$ac_file" != x-; then
13658 {
13659 $as_echo "/* $configure_input */" \
13660 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13661 } >"$tmp/config.h" \
13662 || as_fn_error "could not create $ac_file" "$LINENO" 5
13663 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13665 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13666 else
13667 rm -f "$ac_file"
13668 mv "$tmp/config.h" "$ac_file" \
13669 || as_fn_error "could not create $ac_file" "$LINENO" 5
13670 fi
13671 else
13672 $as_echo "/* $configure_input */" \
13673 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13674 || as_fn_error "could not create -" "$LINENO" 5
13675 fi
13676 # Compute "$ac_file"'s index in $config_headers.
13677 _am_arg="$ac_file"
13678 _am_stamp_count=1
13679 for _am_header in $config_headers :; do
13680 case $_am_header in
13681 $_am_arg | $_am_arg:* )
13682 break ;;
13683 * )
13684 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13685 esac
13686 done
13687 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13688 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13689 X"$_am_arg" : 'X\(//\)[^/]' \| \
13690 X"$_am_arg" : 'X\(//\)$' \| \
13691 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13692 $as_echo X"$_am_arg" |
13693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13694 s//\1/
13695 q
13696 }
13697 /^X\(\/\/\)[^/].*/{
13698 s//\1/
13699 q
13700 }
13701 /^X\(\/\/\)$/{
13702 s//\1/
13703 q
13704 }
13705 /^X\(\/\).*/{
13706 s//\1/
13707 q
13708 }
13709 s/.*/./; q'`/stamp-h$_am_stamp_count
13710 ;;
13711
13712 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13713 $as_echo "$as_me: executing $ac_file commands" >&6;}
13714 ;;
13715 esac
13716
13717
13718 case $ac_file$ac_mode in
13719 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13720 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13721 # are listed without --file. Let's play safe and only enable the eval
13722 # if we detect the quoting.
13723 case $CONFIG_FILES in
13724 *\'*) eval set x "$CONFIG_FILES" ;;
13725 *) set x $CONFIG_FILES ;;
13726 esac
13727 shift
13728 for mf
13729 do
13730 # Strip MF so we end up with the name of the file.
13731 mf=`echo "$mf" | sed -e 's/:.*$//'`
13732 # Check whether this is an Automake generated Makefile or not.
13733 # We used to match only the files named `Makefile.in', but
13734 # some people rename them; so instead we look at the file content.
13735 # Grep'ing the first line is not enough: some people post-process
13736 # each Makefile.in and add a new line on top of each file to say so.
13737 # Grep'ing the whole file is not good either: AIX grep has a line
13738 # limit of 2048, but all sed's we know have understand at least 4000.
13739 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13740 dirpart=`$as_dirname -- "$mf" ||
13741 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13742 X"$mf" : 'X\(//\)[^/]' \| \
13743 X"$mf" : 'X\(//\)$' \| \
13744 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13745 $as_echo X"$mf" |
13746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13747 s//\1/
13748 q
13749 }
13750 /^X\(\/\/\)[^/].*/{
13751 s//\1/
13752 q
13753 }
13754 /^X\(\/\/\)$/{
13755 s//\1/
13756 q
13757 }
13758 /^X\(\/\).*/{
13759 s//\1/
13760 q
13761 }
13762 s/.*/./; q'`
13763 else
13764 continue
13765 fi
13766 # Extract the definition of DEPDIR, am__include, and am__quote
13767 # from the Makefile without running `make'.
13768 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13769 test -z "$DEPDIR" && continue
13770 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13771 test -z "am__include" && continue
13772 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13773 # When using ansi2knr, U may be empty or an underscore; expand it
13774 U=`sed -n 's/^U = //p' < "$mf"`
13775 # Find all dependency output files, they are included files with
13776 # $(DEPDIR) in their names. We invoke sed twice because it is the
13777 # simplest approach to changing $(DEPDIR) to its actual value in the
13778 # expansion.
13779 for file in `sed -n "
13780 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13781 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13782 # Make sure the directory exists.
13783 test -f "$dirpart/$file" && continue
13784 fdir=`$as_dirname -- "$file" ||
13785 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13786 X"$file" : 'X\(//\)[^/]' \| \
13787 X"$file" : 'X\(//\)$' \| \
13788 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13789 $as_echo X"$file" |
13790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13791 s//\1/
13792 q
13793 }
13794 /^X\(\/\/\)[^/].*/{
13795 s//\1/
13796 q
13797 }
13798 /^X\(\/\/\)$/{
13799 s//\1/
13800 q
13801 }
13802 /^X\(\/\).*/{
13803 s//\1/
13804 q
13805 }
13806 s/.*/./; q'`
13807 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13808 # echo "creating $dirpart/$file"
13809 echo '# dummy' > "$dirpart/$file"
13810 done
13811 done
13812 }
13813 ;;
13814 "libtool":C)
13815
13816 # See if we are running on zsh, and set the options which allow our
13817 # commands through without removal of \ escapes.
13818 if test -n "${ZSH_VERSION+set}" ; then
13819 setopt NO_GLOB_SUBST
13820 fi
13821
13822 cfgfile="${ofile}T"
13823 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13824 $RM "$cfgfile"
13825
13826 cat <<_LT_EOF >> "$cfgfile"
13827 #! $SHELL
13828
13829 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13830 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13831 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13832 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13833 #
13834 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13835 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13836 # Written by Gordon Matzigkeit, 1996
13837 #
13838 # This file is part of GNU Libtool.
13839 #
13840 # GNU Libtool is free software; you can redistribute it and/or
13841 # modify it under the terms of the GNU General Public License as
13842 # published by the Free Software Foundation; either version 2 of
13843 # the License, or (at your option) any later version.
13844 #
13845 # As a special exception to the GNU General Public License,
13846 # if you distribute this file as part of a program or library that
13847 # is built using GNU Libtool, you may include this file under the
13848 # same distribution terms that you use for the rest of that program.
13849 #
13850 # GNU Libtool is distributed in the hope that it will be useful,
13851 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13852 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13853 # GNU General Public License for more details.
13854 #
13855 # You should have received a copy of the GNU General Public License
13856 # along with GNU Libtool; see the file COPYING. If not, a copy
13857 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13858 # obtained by writing to the Free Software Foundation, Inc.,
13859 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13860
13861
13862 # The names of the tagged configurations supported by this script.
13863 available_tags=""
13864
13865 # ### BEGIN LIBTOOL CONFIG
13866
13867 # Which release of libtool.m4 was used?
13868 macro_version=$macro_version
13869 macro_revision=$macro_revision
13870
13871 # Whether or not to build shared libraries.
13872 build_libtool_libs=$enable_shared
13873
13874 # Whether or not to build static libraries.
13875 build_old_libs=$enable_static
13876
13877 # What type of objects to build.
13878 pic_mode=$pic_mode
13879
13880 # Whether or not to optimize for fast installation.
13881 fast_install=$enable_fast_install
13882
13883 # Shell to use when invoking shell scripts.
13884 SHELL=$lt_SHELL
13885
13886 # An echo program that protects backslashes.
13887 ECHO=$lt_ECHO
13888
13889 # The host system.
13890 host_alias=$host_alias
13891 host=$host
13892 host_os=$host_os
13893
13894 # The build system.
13895 build_alias=$build_alias
13896 build=$build
13897 build_os=$build_os
13898
13899 # A sed program that does not truncate output.
13900 SED=$lt_SED
13901
13902 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13903 Xsed="\$SED -e 1s/^X//"
13904
13905 # A grep program that handles long lines.
13906 GREP=$lt_GREP
13907
13908 # An ERE matcher.
13909 EGREP=$lt_EGREP
13910
13911 # A literal string matcher.
13912 FGREP=$lt_FGREP
13913
13914 # A BSD- or MS-compatible name lister.
13915 NM=$lt_NM
13916
13917 # Whether we need soft or hard links.
13918 LN_S=$lt_LN_S
13919
13920 # What is the maximum length of a command?
13921 max_cmd_len=$max_cmd_len
13922
13923 # Object file suffix (normally "o").
13924 objext=$ac_objext
13925
13926 # Executable file suffix (normally "").
13927 exeext=$exeext
13928
13929 # whether the shell understands "unset".
13930 lt_unset=$lt_unset
13931
13932 # turn spaces into newlines.
13933 SP2NL=$lt_lt_SP2NL
13934
13935 # turn newlines into spaces.
13936 NL2SP=$lt_lt_NL2SP
13937
13938 # An object symbol dumper.
13939 OBJDUMP=$lt_OBJDUMP
13940
13941 # Method to check whether dependent libraries are shared objects.
13942 deplibs_check_method=$lt_deplibs_check_method
13943
13944 # Command to use when deplibs_check_method == "file_magic".
13945 file_magic_cmd=$lt_file_magic_cmd
13946
13947 # The archiver.
13948 AR=$lt_AR
13949 AR_FLAGS=$lt_AR_FLAGS
13950
13951 # A symbol stripping program.
13952 STRIP=$lt_STRIP
13953
13954 # Commands used to install an old-style archive.
13955 RANLIB=$lt_RANLIB
13956 old_postinstall_cmds=$lt_old_postinstall_cmds
13957 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13958
13959 # Whether to use a lock for old archive extraction.
13960 lock_old_archive_extraction=$lock_old_archive_extraction
13961
13962 # A C compiler.
13963 LTCC=$lt_CC
13964
13965 # LTCC compiler flags.
13966 LTCFLAGS=$lt_CFLAGS
13967
13968 # Take the output of nm and produce a listing of raw symbols and C names.
13969 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13970
13971 # Transform the output of nm in a proper C declaration.
13972 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13973
13974 # Transform the output of nm in a C name address pair.
13975 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13976
13977 # Transform the output of nm in a C name address pair when lib prefix is needed.
13978 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13979
13980 # The name of the directory that contains temporary libtool files.
13981 objdir=$objdir
13982
13983 # Used to examine libraries when file_magic_cmd begins with "file".
13984 MAGIC_CMD=$MAGIC_CMD
13985
13986 # Must we lock files when doing compilation?
13987 need_locks=$lt_need_locks
13988
13989 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13990 DSYMUTIL=$lt_DSYMUTIL
13991
13992 # Tool to change global to local symbols on Mac OS X.
13993 NMEDIT=$lt_NMEDIT
13994
13995 # Tool to manipulate fat objects and archives on Mac OS X.
13996 LIPO=$lt_LIPO
13997
13998 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13999 OTOOL=$lt_OTOOL
14000
14001 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14002 OTOOL64=$lt_OTOOL64
14003
14004 # Old archive suffix (normally "a").
14005 libext=$libext
14006
14007 # Shared library suffix (normally ".so").
14008 shrext_cmds=$lt_shrext_cmds
14009
14010 # The commands to extract the exported symbol list from a shared archive.
14011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14012
14013 # Variables whose values should be saved in libtool wrapper scripts and
14014 # restored at link time.
14015 variables_saved_for_relink=$lt_variables_saved_for_relink
14016
14017 # Do we need the "lib" prefix for modules?
14018 need_lib_prefix=$need_lib_prefix
14019
14020 # Do we need a version for libraries?
14021 need_version=$need_version
14022
14023 # Library versioning type.
14024 version_type=$version_type
14025
14026 # Shared library runtime path variable.
14027 runpath_var=$runpath_var
14028
14029 # Shared library path variable.
14030 shlibpath_var=$shlibpath_var
14031
14032 # Is shlibpath searched before the hard-coded library search path?
14033 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14034
14035 # Format of library name prefix.
14036 libname_spec=$lt_libname_spec
14037
14038 # List of archive names. First name is the real one, the rest are links.
14039 # The last name is the one that the linker finds with -lNAME
14040 library_names_spec=$lt_library_names_spec
14041
14042 # The coded name of the library, if different from the real name.
14043 soname_spec=$lt_soname_spec
14044
14045 # Permission mode override for installation of shared libraries.
14046 install_override_mode=$lt_install_override_mode
14047
14048 # Command to use after installation of a shared archive.
14049 postinstall_cmds=$lt_postinstall_cmds
14050
14051 # Command to use after uninstallation of a shared archive.
14052 postuninstall_cmds=$lt_postuninstall_cmds
14053
14054 # Commands used to finish a libtool library installation in a directory.
14055 finish_cmds=$lt_finish_cmds
14056
14057 # As "finish_cmds", except a single script fragment to be evaled but
14058 # not shown.
14059 finish_eval=$lt_finish_eval
14060
14061 # Whether we should hardcode library paths into libraries.
14062 hardcode_into_libs=$hardcode_into_libs
14063
14064 # Compile-time system search path for libraries.
14065 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14066
14067 # Run-time system search path for libraries.
14068 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14069
14070 # Whether dlopen is supported.
14071 dlopen_support=$enable_dlopen
14072
14073 # Whether dlopen of programs is supported.
14074 dlopen_self=$enable_dlopen_self
14075
14076 # Whether dlopen of statically linked programs is supported.
14077 dlopen_self_static=$enable_dlopen_self_static
14078
14079 # Commands to strip libraries.
14080 old_striplib=$lt_old_striplib
14081 striplib=$lt_striplib
14082
14083
14084 # The linker used to build libraries.
14085 LD=$lt_LD
14086
14087 # How to create reloadable object files.
14088 reload_flag=$lt_reload_flag
14089 reload_cmds=$lt_reload_cmds
14090
14091 # Commands used to build an old-style archive.
14092 old_archive_cmds=$lt_old_archive_cmds
14093
14094 # A language specific compiler.
14095 CC=$lt_compiler
14096
14097 # Is the compiler the GNU compiler?
14098 with_gcc=$GCC
14099
14100 # Compiler flag to turn off builtin functions.
14101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14102
14103 # How to pass a linker flag through the compiler.
14104 wl=$lt_lt_prog_compiler_wl
14105
14106 # Additional compiler flags for building library objects.
14107 pic_flag=$lt_lt_prog_compiler_pic
14108
14109 # Compiler flag to prevent dynamic linking.
14110 link_static_flag=$lt_lt_prog_compiler_static
14111
14112 # Does compiler simultaneously support -c and -o options?
14113 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14114
14115 # Whether or not to add -lc for building shared libraries.
14116 build_libtool_need_lc=$archive_cmds_need_lc
14117
14118 # Whether or not to disallow shared libs when runtime libs are static.
14119 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14120
14121 # Compiler flag to allow reflexive dlopens.
14122 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14123
14124 # Compiler flag to generate shared objects directly from archives.
14125 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14126
14127 # Whether the compiler copes with passing no objects directly.
14128 compiler_needs_object=$lt_compiler_needs_object
14129
14130 # Create an old-style archive from a shared archive.
14131 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14132
14133 # Create a temporary old-style archive to link instead of a shared archive.
14134 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14135
14136 # Commands used to build a shared archive.
14137 archive_cmds=$lt_archive_cmds
14138 archive_expsym_cmds=$lt_archive_expsym_cmds
14139
14140 # Commands used to build a loadable module if different from building
14141 # a shared archive.
14142 module_cmds=$lt_module_cmds
14143 module_expsym_cmds=$lt_module_expsym_cmds
14144
14145 # Whether we are building with GNU ld or not.
14146 with_gnu_ld=$lt_with_gnu_ld
14147
14148 # Flag that allows shared libraries with undefined symbols to be built.
14149 allow_undefined_flag=$lt_allow_undefined_flag
14150
14151 # Flag that enforces no undefined symbols.
14152 no_undefined_flag=$lt_no_undefined_flag
14153
14154 # Flag to hardcode \$libdir into a binary during linking.
14155 # This must work even if \$libdir does not exist
14156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14157
14158 # If ld is used when linking, flag to hardcode \$libdir into a binary
14159 # during linking. This must work even if \$libdir does not exist.
14160 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14161
14162 # Whether we need a single "-rpath" flag with a separated argument.
14163 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14164
14165 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14166 # DIR into the resulting binary.
14167 hardcode_direct=$hardcode_direct
14168
14169 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14170 # DIR into the resulting binary and the resulting library dependency is
14171 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14172 # library is relocated.
14173 hardcode_direct_absolute=$hardcode_direct_absolute
14174
14175 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14176 # into the resulting binary.
14177 hardcode_minus_L=$hardcode_minus_L
14178
14179 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14180 # into the resulting binary.
14181 hardcode_shlibpath_var=$hardcode_shlibpath_var
14182
14183 # Set to "yes" if building a shared library automatically hardcodes DIR
14184 # into the library and all subsequent libraries and executables linked
14185 # against it.
14186 hardcode_automatic=$hardcode_automatic
14187
14188 # Set to yes if linker adds runtime paths of dependent libraries
14189 # to runtime path list.
14190 inherit_rpath=$inherit_rpath
14191
14192 # Whether libtool must link a program against all its dependency libraries.
14193 link_all_deplibs=$link_all_deplibs
14194
14195 # Fix the shell variable \$srcfile for the compiler.
14196 fix_srcfile_path=$lt_fix_srcfile_path
14197
14198 # Set to "yes" if exported symbols are required.
14199 always_export_symbols=$always_export_symbols
14200
14201 # The commands to list exported symbols.
14202 export_symbols_cmds=$lt_export_symbols_cmds
14203
14204 # Symbols that should not be listed in the preloaded symbols.
14205 exclude_expsyms=$lt_exclude_expsyms
14206
14207 # Symbols that must always be exported.
14208 include_expsyms=$lt_include_expsyms
14209
14210 # Commands necessary for linking programs (against libraries) with templates.
14211 prelink_cmds=$lt_prelink_cmds
14212
14213 # Specify filename containing input files.
14214 file_list_spec=$lt_file_list_spec
14215
14216 # How to hardcode a shared library path into an executable.
14217 hardcode_action=$hardcode_action
14218
14219 # ### END LIBTOOL CONFIG
14220
14221 _LT_EOF
14222
14223 case $host_os in
14224 aix3*)
14225 cat <<\_LT_EOF >> "$cfgfile"
14226 # AIX sometimes has problems with the GCC collect2 program. For some
14227 # reason, if we set the COLLECT_NAMES environment variable, the problems
14228 # vanish in a puff of smoke.
14229 if test "X${COLLECT_NAMES+set}" != Xset; then
14230 COLLECT_NAMES=
14231 export COLLECT_NAMES
14232 fi
14233 _LT_EOF
14234 ;;
14235 esac
14236
14237
14238 ltmain="$ac_aux_dir/ltmain.sh"
14239
14240
14241 # We use sed instead of cat because bash on DJGPP gets confused if
14242 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14243 # text mode, it properly converts lines to CR/LF. This bash problem
14244 # is reportedly fixed, but why not run on old versions too?
14245 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14246 || (rm -f "$cfgfile"; exit 1)
14247
14248 case $xsi_shell in
14249 yes)
14250 cat << \_LT_EOF >> "$cfgfile"
14251
14252 # func_dirname file append nondir_replacement
14253 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14254 # otherwise set result to NONDIR_REPLACEMENT.
14255 func_dirname ()
14256 {
14257 case ${1} in
14258 */*) func_dirname_result="${1%/*}${2}" ;;
14259 * ) func_dirname_result="${3}" ;;
14260 esac
14261 }
14262
14263 # func_basename file
14264 func_basename ()
14265 {
14266 func_basename_result="${1##*/}"
14267 }
14268
14269 # func_dirname_and_basename file append nondir_replacement
14270 # perform func_basename and func_dirname in a single function
14271 # call:
14272 # dirname: Compute the dirname of FILE. If nonempty,
14273 # add APPEND to the result, otherwise set result
14274 # to NONDIR_REPLACEMENT.
14275 # value returned in "$func_dirname_result"
14276 # basename: Compute filename of FILE.
14277 # value retuned in "$func_basename_result"
14278 # Implementation must be kept synchronized with func_dirname
14279 # and func_basename. For efficiency, we do not delegate to
14280 # those functions but instead duplicate the functionality here.
14281 func_dirname_and_basename ()
14282 {
14283 case ${1} in
14284 */*) func_dirname_result="${1%/*}${2}" ;;
14285 * ) func_dirname_result="${3}" ;;
14286 esac
14287 func_basename_result="${1##*/}"
14288 }
14289
14290 # func_stripname prefix suffix name
14291 # strip PREFIX and SUFFIX off of NAME.
14292 # PREFIX and SUFFIX must not contain globbing or regex special
14293 # characters, hashes, percent signs, but SUFFIX may contain a leading
14294 # dot (in which case that matches only a dot).
14295 func_stripname ()
14296 {
14297 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14298 # positional parameters, so assign one to ordinary parameter first.
14299 func_stripname_result=${3}
14300 func_stripname_result=${func_stripname_result#"${1}"}
14301 func_stripname_result=${func_stripname_result%"${2}"}
14302 }
14303
14304 # func_opt_split
14305 func_opt_split ()
14306 {
14307 func_opt_split_opt=${1%%=*}
14308 func_opt_split_arg=${1#*=}
14309 }
14310
14311 # func_lo2o object
14312 func_lo2o ()
14313 {
14314 case ${1} in
14315 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14316 *) func_lo2o_result=${1} ;;
14317 esac
14318 }
14319
14320 # func_xform libobj-or-source
14321 func_xform ()
14322 {
14323 func_xform_result=${1%.*}.lo
14324 }
14325
14326 # func_arith arithmetic-term...
14327 func_arith ()
14328 {
14329 func_arith_result=$(( $* ))
14330 }
14331
14332 # func_len string
14333 # STRING may not start with a hyphen.
14334 func_len ()
14335 {
14336 func_len_result=${#1}
14337 }
14338
14339 _LT_EOF
14340 ;;
14341 *) # Bourne compatible functions.
14342 cat << \_LT_EOF >> "$cfgfile"
14343
14344 # func_dirname file append nondir_replacement
14345 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14346 # otherwise set result to NONDIR_REPLACEMENT.
14347 func_dirname ()
14348 {
14349 # Extract subdirectory from the argument.
14350 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14351 if test "X$func_dirname_result" = "X${1}"; then
14352 func_dirname_result="${3}"
14353 else
14354 func_dirname_result="$func_dirname_result${2}"
14355 fi
14356 }
14357
14358 # func_basename file
14359 func_basename ()
14360 {
14361 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14362 }
14363
14364
14365 # func_stripname prefix suffix name
14366 # strip PREFIX and SUFFIX off of NAME.
14367 # PREFIX and SUFFIX must not contain globbing or regex special
14368 # characters, hashes, percent signs, but SUFFIX may contain a leading
14369 # dot (in which case that matches only a dot).
14370 # func_strip_suffix prefix name
14371 func_stripname ()
14372 {
14373 case ${2} in
14374 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14375 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14376 esac
14377 }
14378
14379 # sed scripts:
14380 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14381 my_sed_long_arg='1s/^-[^=]*=//'
14382
14383 # func_opt_split
14384 func_opt_split ()
14385 {
14386 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14387 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14388 }
14389
14390 # func_lo2o object
14391 func_lo2o ()
14392 {
14393 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14394 }
14395
14396 # func_xform libobj-or-source
14397 func_xform ()
14398 {
14399 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14400 }
14401
14402 # func_arith arithmetic-term...
14403 func_arith ()
14404 {
14405 func_arith_result=`expr "$@"`
14406 }
14407
14408 # func_len string
14409 # STRING may not start with a hyphen.
14410 func_len ()
14411 {
14412 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14413 }
14414
14415 _LT_EOF
14416 esac
14417
14418 case $lt_shell_append in
14419 yes)
14420 cat << \_LT_EOF >> "$cfgfile"
14421
14422 # func_append var value
14423 # Append VALUE to the end of shell variable VAR.
14424 func_append ()
14425 {
14426 eval "$1+=\$2"
14427 }
14428 _LT_EOF
14429 ;;
14430 *)
14431 cat << \_LT_EOF >> "$cfgfile"
14432
14433 # func_append var value
14434 # Append VALUE to the end of shell variable VAR.
14435 func_append ()
14436 {
14437 eval "$1=\$$1\$2"
14438 }
14439
14440 _LT_EOF
14441 ;;
14442 esac
14443
14444
14445 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14446 || (rm -f "$cfgfile"; exit 1)
14447
14448 mv -f "$cfgfile" "$ofile" ||
14449 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14450 chmod +x "$ofile"
14451
14452 ;;
14453 "default-1":C)
14454 # Only add multilib support code if we just rebuilt the top-level
14455 # Makefile.
14456 case " $CONFIG_FILES " in
14457 *" Makefile "*)
14458 ac_file=Makefile . ${multi_basedir}/config-ml.in
14459 ;;
14460 esac ;;
14461
14462 esac
14463 done # for ac_tag
14464
14465
14466 as_fn_exit 0
14467 _ACEOF
14468 ac_clean_files=$ac_clean_files_save
14469
14470 test $ac_write_fail = 0 ||
14471 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14472
14473
14474 # configure is writing to config.log, and then calls config.status.
14475 # config.status does its own redirection, appending to config.log.
14476 # Unfortunately, on DOS this fails, as config.log is still kept open
14477 # by configure, so config.status won't be able to write to it; its
14478 # output is simply discarded. So we exec the FD to /dev/null,
14479 # effectively closing config.log, so it can be properly (re)opened and
14480 # appended to by config.status. When coming back to configure, we
14481 # need to make the FD available again.
14482 if test "$no_create" != yes; then
14483 ac_cs_success=:
14484 ac_config_status_args=
14485 test "$silent" = yes &&
14486 ac_config_status_args="$ac_config_status_args --quiet"
14487 exec 5>/dev/null
14488 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14489 exec 5>>config.log
14490 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14491 # would make configure fail if this is the last instruction.
14492 $ac_cs_success || as_fn_exit $?
14493 fi
14494 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14496 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14497 fi
14498