configure: Regenerated.
[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 BUILD_LIBQUADMATH_FALSE
605 BUILD_LIBQUADMATH_TRUE
606 LIBQUAD_USE_SYMVER_SUN_FALSE
607 LIBQUAD_USE_SYMVER_SUN_TRUE
608 LIBQUAD_USE_SYMVER_GNU_FALSE
609 LIBQUAD_USE_SYMVER_GNU_TRUE
610 LIBQUAD_USE_SYMVER_FALSE
611 LIBQUAD_USE_SYMVER_TRUE
612 toolexeclibdir
613 toolexecdir
614 multi_basedir
615 MAINT
616 MAINTAINER_MODE_FALSE
617 MAINTAINER_MODE_TRUE
618 enable_static
619 enable_shared
620 CPP
621 OTOOL64
622 OTOOL
623 LIPO
624 NMEDIT
625 DSYMUTIL
626 RANLIB
627 AR
628 OBJDUMP
629 LN_S
630 NM
631 ac_ct_DUMPBIN
632 DUMPBIN
633 LD
634 FGREP
635 EGREP
636 GREP
637 SED
638 am__fastdepCC_FALSE
639 am__fastdepCC_TRUE
640 CCDEPMODE
641 AMDEPBACKSLASH
642 AMDEP_FALSE
643 AMDEP_TRUE
644 am__quote
645 am__include
646 DEPDIR
647 OBJEXT
648 EXEEXT
649 ac_ct_CC
650 CPPFLAGS
651 LDFLAGS
652 CFLAGS
653 CC
654 LIBTOOL
655 am__untar
656 am__tar
657 AMTAR
658 am__leading_dot
659 SET_MAKE
660 AWK
661 mkdir_p
662 MKDIR_P
663 INSTALL_STRIP_PROGRAM
664 STRIP
665 install_sh
666 MAKEINFO
667 AUTOHEADER
668 AUTOMAKE
669 AUTOCONF
670 ACLOCAL
671 VERSION
672 PACKAGE
673 CYGPATH_W
674 am__isrc
675 INSTALL_DATA
676 INSTALL_SCRIPT
677 INSTALL_PROGRAM
678 target_noncanonical
679 target_os
680 target_vendor
681 target_cpu
682 target
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_version_specific_runtime_libs
733 enable_shared
734 enable_static
735 with_pic
736 enable_fast_install
737 enable_dependency_tracking
738 with_gnu_ld
739 enable_libtool_lock
740 enable_maintainer_mode
741 enable_multilib
742 '
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
746 CC
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
751 CPP'
752
753
754 # Initialize some variables set by options.
755 ac_init_help=
756 ac_init_version=false
757 ac_unrecognized_opts=
758 ac_unrecognized_sep=
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
761 cache_file=/dev/null
762 exec_prefix=NONE
763 no_create=
764 no_recursion=
765 prefix=NONE
766 program_prefix=NONE
767 program_suffix=NONE
768 program_transform_name=s,x,x,
769 silent=
770 site=
771 srcdir=
772 verbose=
773 x_includes=NONE
774 x_libraries=NONE
775
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir='${exec_prefix}/bin'
783 sbindir='${exec_prefix}/sbin'
784 libexecdir='${exec_prefix}/libexec'
785 datarootdir='${prefix}/share'
786 datadir='${datarootdir}'
787 sysconfdir='${prefix}/etc'
788 sharedstatedir='${prefix}/com'
789 localstatedir='${prefix}/var'
790 includedir='${prefix}/include'
791 oldincludedir='/usr/include'
792 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793 infodir='${datarootdir}/info'
794 htmldir='${docdir}'
795 dvidir='${docdir}'
796 pdfdir='${docdir}'
797 psdir='${docdir}'
798 libdir='${exec_prefix}/lib'
799 localedir='${datarootdir}/locale'
800 mandir='${datarootdir}/man'
801
802 ac_prev=
803 ac_dashdash=
804 for ac_option
805 do
806 # If the previous option needs an argument, assign it.
807 if test -n "$ac_prev"; then
808 eval $ac_prev=\$ac_option
809 ac_prev=
810 continue
811 fi
812
813 case $ac_option in
814 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 *) ac_optarg=yes ;;
816 esac
817
818 # Accept the important Cygnus configure options, so we can diagnose typos.
819
820 case $ac_dashdash$ac_option in
821 --)
822 ac_dashdash=yes ;;
823
824 -bindir | --bindir | --bindi | --bind | --bin | --bi)
825 ac_prev=bindir ;;
826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827 bindir=$ac_optarg ;;
828
829 -build | --build | --buil | --bui | --bu)
830 ac_prev=build_alias ;;
831 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832 build_alias=$ac_optarg ;;
833
834 -cache-file | --cache-file | --cache-fil | --cache-fi \
835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836 ac_prev=cache_file ;;
837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839 cache_file=$ac_optarg ;;
840
841 --config-cache | -C)
842 cache_file=config.cache ;;
843
844 -datadir | --datadir | --datadi | --datad)
845 ac_prev=datadir ;;
846 -datadir=* | --datadir=* | --datadi=* | --datad=*)
847 datadir=$ac_optarg ;;
848
849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850 | --dataroo | --dataro | --datar)
851 ac_prev=datarootdir ;;
852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854 datarootdir=$ac_optarg ;;
855
856 -disable-* | --disable-*)
857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860 as_fn_error "invalid feature name: $ac_useropt"
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
864 *"
865 "enable_$ac_useropt"
866 "*) ;;
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
869 esac
870 eval enable_$ac_useropt=no ;;
871
872 -docdir | --docdir | --docdi | --doc | --do)
873 ac_prev=docdir ;;
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875 docdir=$ac_optarg ;;
876
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878 ac_prev=dvidir ;;
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880 dvidir=$ac_optarg ;;
881
882 -enable-* | --enable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
890 *"
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=\$ac_optarg ;;
897
898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900 | --exec | --exe | --ex)
901 ac_prev=exec_prefix ;;
902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904 | --exec=* | --exe=* | --ex=*)
905 exec_prefix=$ac_optarg ;;
906
907 -gas | --gas | --ga | --g)
908 # Obsolete; use --with-gas.
909 with_gas=yes ;;
910
911 -help | --help | --hel | --he | -h)
912 ac_init_help=long ;;
913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914 ac_init_help=recursive ;;
915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916 ac_init_help=short ;;
917
918 -host | --host | --hos | --ho)
919 ac_prev=host_alias ;;
920 -host=* | --host=* | --hos=* | --ho=*)
921 host_alias=$ac_optarg ;;
922
923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924 ac_prev=htmldir ;;
925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926 | --ht=*)
927 htmldir=$ac_optarg ;;
928
929 -includedir | --includedir | --includedi | --included | --include \
930 | --includ | --inclu | --incl | --inc)
931 ac_prev=includedir ;;
932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933 | --includ=* | --inclu=* | --incl=* | --inc=*)
934 includedir=$ac_optarg ;;
935
936 -infodir | --infodir | --infodi | --infod | --info | --inf)
937 ac_prev=infodir ;;
938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939 infodir=$ac_optarg ;;
940
941 -libdir | --libdir | --libdi | --libd)
942 ac_prev=libdir ;;
943 -libdir=* | --libdir=* | --libdi=* | --libd=*)
944 libdir=$ac_optarg ;;
945
946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947 | --libexe | --libex | --libe)
948 ac_prev=libexecdir ;;
949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950 | --libexe=* | --libex=* | --libe=*)
951 libexecdir=$ac_optarg ;;
952
953 -localedir | --localedir | --localedi | --localed | --locale)
954 ac_prev=localedir ;;
955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956 localedir=$ac_optarg ;;
957
958 -localstatedir | --localstatedir | --localstatedi | --localstated \
959 | --localstate | --localstat | --localsta | --localst | --locals)
960 ac_prev=localstatedir ;;
961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963 localstatedir=$ac_optarg ;;
964
965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966 ac_prev=mandir ;;
967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
968 mandir=$ac_optarg ;;
969
970 -nfp | --nfp | --nf)
971 # Obsolete; use --without-fp.
972 with_fp=no ;;
973
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975 | --no-cr | --no-c | -n)
976 no_create=yes ;;
977
978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980 no_recursion=yes ;;
981
982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984 | --oldin | --oldi | --old | --ol | --o)
985 ac_prev=oldincludedir ;;
986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989 oldincludedir=$ac_optarg ;;
990
991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992 ac_prev=prefix ;;
993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994 prefix=$ac_optarg ;;
995
996 -program-prefix | --program-prefix | --program-prefi | --program-pref \
997 | --program-pre | --program-pr | --program-p)
998 ac_prev=program_prefix ;;
999 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001 program_prefix=$ac_optarg ;;
1002
1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004 | --program-suf | --program-su | --program-s)
1005 ac_prev=program_suffix ;;
1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008 program_suffix=$ac_optarg ;;
1009
1010 -program-transform-name | --program-transform-name \
1011 | --program-transform-nam | --program-transform-na \
1012 | --program-transform-n | --program-transform- \
1013 | --program-transform | --program-transfor \
1014 | --program-transfo | --program-transf \
1015 | --program-trans | --program-tran \
1016 | --progr-tra | --program-tr | --program-t)
1017 ac_prev=program_transform_name ;;
1018 -program-transform-name=* | --program-transform-name=* \
1019 | --program-transform-nam=* | --program-transform-na=* \
1020 | --program-transform-n=* | --program-transform-=* \
1021 | --program-transform=* | --program-transfor=* \
1022 | --program-transfo=* | --program-transf=* \
1023 | --program-trans=* | --program-tran=* \
1024 | --progr-tra=* | --program-tr=* | --program-t=*)
1025 program_transform_name=$ac_optarg ;;
1026
1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028 ac_prev=pdfdir ;;
1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030 pdfdir=$ac_optarg ;;
1031
1032 -psdir | --psdir | --psdi | --psd | --ps)
1033 ac_prev=psdir ;;
1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035 psdir=$ac_optarg ;;
1036
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1039 silent=yes ;;
1040
1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042 ac_prev=sbindir ;;
1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044 | --sbi=* | --sb=*)
1045 sbindir=$ac_optarg ;;
1046
1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049 | --sharedst | --shareds | --shared | --share | --shar \
1050 | --sha | --sh)
1051 ac_prev=sharedstatedir ;;
1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055 | --sha=* | --sh=*)
1056 sharedstatedir=$ac_optarg ;;
1057
1058 -site | --site | --sit)
1059 ac_prev=site ;;
1060 -site=* | --site=* | --sit=*)
1061 site=$ac_optarg ;;
1062
1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064 ac_prev=srcdir ;;
1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 srcdir=$ac_optarg ;;
1067
1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069 | --syscon | --sysco | --sysc | --sys | --sy)
1070 ac_prev=sysconfdir ;;
1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073 sysconfdir=$ac_optarg ;;
1074
1075 -target | --target | --targe | --targ | --tar | --ta | --t)
1076 ac_prev=target_alias ;;
1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078 target_alias=$ac_optarg ;;
1079
1080 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081 verbose=yes ;;
1082
1083 -version | --version | --versio | --versi | --vers | -V)
1084 ac_init_version=: ;;
1085
1086 -with-* | --with-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095 "with_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=\$ac_optarg ;;
1101
1102 -without-* | --without-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1110 *"
1111 "with_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval with_$ac_useropt=no ;;
1117
1118 --x)
1119 # Obsolete; use --with-x.
1120 with_x=yes ;;
1121
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1128
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1135
1136 -*) as_fn_error "unrecognized option: \`$ac_option'
1137 Try \`$0 --help' for more information."
1138 ;;
1139
1140 *=*)
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 case $ac_envvar in #(
1144 '' | [0-9]* | *[!_$as_cr_alnum]* )
1145 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1146 esac
1147 eval $ac_envvar=\$ac_optarg
1148 export $ac_envvar ;;
1149
1150 *)
1151 # FIXME: should be removed in autoconf 3.0.
1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1156 ;;
1157
1158 esac
1159 done
1160
1161 if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163 as_fn_error "missing argument to $ac_option"
1164 fi
1165
1166 if test -n "$ac_unrecognized_opts"; then
1167 case $enable_option_checking in
1168 no) ;;
1169 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171 esac
1172 fi
1173
1174 # Check all directory arguments for consistency.
1175 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1179 do
1180 eval ac_val=\$$ac_var
1181 # Remove trailing slashes.
1182 case $ac_val in
1183 */ )
1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185 eval $ac_var=\$ac_val;;
1186 esac
1187 # Be sure to have absolute directory names.
1188 case $ac_val in
1189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1191 esac
1192 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1193 done
1194
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1198 build=$build_alias
1199 host=$host_alias
1200 target=$target_alias
1201
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x; then
1204 if test "x$build_alias" = x; then
1205 cross_compiling=maybe
1206 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1207 If a cross compiler is detected then cross compile mode will be used." >&2
1208 elif test "x$build_alias" != "x$host_alias"; then
1209 cross_compiling=yes
1210 fi
1211 fi
1212
1213 ac_tool_prefix=
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215
1216 test "$silent" = yes && exec 6>/dev/null
1217
1218
1219 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di=`ls -di .` &&
1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222 as_fn_error "working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 as_fn_error "pwd does not report name of working directory"
1225
1226
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 $as_echo X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
1254 srcdir=$ac_confdir
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 srcdir=..
1257 fi
1258 else
1259 ac_srcdir_defaulted=no
1260 fi
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1264 fi
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 ac_abs_confdir=`(
1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1268 pwd)`
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 srcdir=.
1272 fi
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1276 case $srcdir in
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 esac
1279 for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284 done
1285
1286 #
1287 # Report the --help message.
1288 #
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1292 cat <<_ACEOF
1293 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1294
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1296
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1299
1300 Defaults for the options are specified in brackets.
1301
1302 Configuration:
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 [PREFIX]
1318
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1323
1324 For better control, use the options below.
1325
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1346 _ACEOF
1347
1348 cat <<\_ACEOF
1349
1350 Program names:
1351 --program-prefix=PREFIX prepend PREFIX to installed program names
1352 --program-suffix=SUFFIX append SUFFIX to installed program names
1353 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1354
1355 System types:
1356 --build=BUILD configure for building on BUILD [guessed]
1357 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1358 --target=TARGET configure for building compilers for TARGET [HOST]
1359 _ACEOF
1360 fi
1361
1362 if test -n "$ac_init_help"; then
1363 case $ac_init_help in
1364 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1365 esac
1366 cat <<\_ACEOF
1367
1368 Optional Features:
1369 --disable-option-checking ignore unrecognized --enable/--with options
1370 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1371 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1372 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1373 --enable-shared[=PKGS] build shared libraries [default=yes]
1374 --enable-static[=PKGS] build static libraries [default=yes]
1375 --enable-fast-install[=PKGS]
1376 optimize for fast installation [default=yes]
1377 --disable-dependency-tracking speeds up one-time build
1378 --enable-dependency-tracking do not reject slow dependency extractors
1379 --disable-libtool-lock avoid locking (might break parallel builds)
1380 --enable-maintainer-mode enable make rules and dependencies not useful
1381 (and sometimes confusing) to the casual installer
1382 --enable-multilib build many library versions (default)
1383
1384 Optional Packages:
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1387 --with-pic try to use only PIC/non-PIC objects [default=use
1388 both]
1389 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1390
1391 Some influential environment variables:
1392 CC C compiler command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395 nonstandard directory <lib dir>
1396 LIBS libraries to pass to the linker, e.g. -l<library>
1397 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398 you have headers in a nonstandard directory <include dir>
1399 CPP C preprocessor
1400
1401 Use these variables to override the choices made by `configure' or to help
1402 it to find libraries and programs with nonstandard names/locations.
1403
1404 Report bugs to the package provider.
1405 _ACEOF
1406 ac_status=$?
1407 fi
1408
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" ||
1413 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1414 continue
1415 ac_builddir=.
1416
1417 case "$ac_dir" in
1418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *)
1420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1421 # A ".." for each directory in $ac_dir_suffix.
1422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1423 case $ac_top_builddir_sub in
1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426 esac ;;
1427 esac
1428 ac_abs_top_builddir=$ac_pwd
1429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430 # for backward compatibility:
1431 ac_top_builddir=$ac_top_build_prefix
1432
1433 case $srcdir in
1434 .) # We are building in place.
1435 ac_srcdir=.
1436 ac_top_srcdir=$ac_top_builddir_sub
1437 ac_abs_top_srcdir=$ac_pwd ;;
1438 [\\/]* | ?:[\\/]* ) # Absolute name.
1439 ac_srcdir=$srcdir$ac_dir_suffix;
1440 ac_top_srcdir=$srcdir
1441 ac_abs_top_srcdir=$srcdir ;;
1442 *) # Relative name.
1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444 ac_top_srcdir=$ac_top_build_prefix$srcdir
1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1446 esac
1447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1448
1449 cd "$ac_dir" || { ac_status=$?; continue; }
1450 # Check for guested configure.
1451 if test -f "$ac_srcdir/configure.gnu"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454 elif test -f "$ac_srcdir/configure"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure" --help=recursive
1457 else
1458 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1459 fi || ac_status=$?
1460 cd "$ac_pwd" || { ac_status=$?; break; }
1461 done
1462 fi
1463
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
1466 cat <<\_ACEOF
1467 GCC Quad-precision Math Library configure 0.1
1468 generated by GNU Autoconf 2.64
1469
1470 Copyright (C) 2009 Free Software Foundation, Inc.
1471 This configure script is free software; the Free Software Foundation
1472 gives unlimited permission to copy, distribute and modify it.
1473 _ACEOF
1474 exit
1475 fi
1476
1477 ## ------------------------ ##
1478 ## Autoconf initialization. ##
1479 ## ------------------------ ##
1480
1481 # ac_fn_c_try_compile LINENO
1482 # --------------------------
1483 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1484 ac_fn_c_try_compile ()
1485 {
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 rm -f conftest.$ac_objext
1488 if { { ac_try="$ac_compile"
1489 case "(($ac_try" in
1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1492 esac
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_compile") 2>conftest.err
1496 ac_status=$?
1497 if test -s conftest.err; then
1498 grep -v '^ *+' conftest.err >conftest.er1
1499 cat conftest.er1 >&5
1500 mv -f conftest.er1 conftest.err
1501 fi
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } && {
1504 test -z "$ac_c_werror_flag" ||
1505 test ! -s conftest.err
1506 } && test -s conftest.$ac_objext; then :
1507 ac_retval=0
1508 else
1509 $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.$ac_ext >&5
1511
1512 ac_retval=1
1513 fi
1514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1515 return $ac_retval
1516
1517 } # ac_fn_c_try_compile
1518
1519 # ac_fn_c_try_link LINENO
1520 # -----------------------
1521 # Try to link conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_link ()
1523 {
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext conftest$ac_exeext
1526 if { { ac_try="$ac_link"
1527 case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_link") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1539 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest$ac_exeext && {
1545 test "$cross_compiling" = yes ||
1546 $as_test_x conftest$ac_exeext
1547 }; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1552
1553 ac_retval=1
1554 fi
1555 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1556 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1557 # interfere with the next link command; also delete a directory that is
1558 # left behind by Apple's compiler. We do this before executing the actions.
1559 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 return $ac_retval
1562
1563 } # ac_fn_c_try_link
1564
1565 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1566 # -------------------------------------------------------
1567 # Tests whether HEADER exists and can be compiled using the include files in
1568 # INCLUDES, setting the cache variable VAR accordingly.
1569 ac_fn_c_check_header_compile ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573 $as_echo_n "checking for $2... " >&6; }
1574 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1575 $as_echo_n "(cached) " >&6
1576 else
1577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1578 /* end confdefs.h. */
1579 $4
1580 #include <$2>
1581 _ACEOF
1582 if ac_fn_c_try_compile "$LINENO"; then :
1583 eval "$3=yes"
1584 else
1585 eval "$3=no"
1586 fi
1587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1588 fi
1589 eval ac_res=\$$3
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591 $as_echo "$ac_res" >&6; }
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593
1594 } # ac_fn_c_check_header_compile
1595
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_cpp ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } >/dev/null && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 }; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 return $ac_retval
1630
1631 } # ac_fn_c_try_cpp
1632
1633 # ac_fn_c_try_run LINENO
1634 # ----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1636 # that executables *can* be run.
1637 ac_fn_c_try_run ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>&5
1648 ac_status=$?
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1651 { { case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_try") 2>&5
1658 ac_status=$?
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; }; }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: program exited with status $ac_status" >&5
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=$ac_status
1668 fi
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 return $ac_retval
1672
1673 } # ac_fn_c_try_run
1674
1675 # ac_fn_c_check_func LINENO FUNC VAR
1676 # ----------------------------------
1677 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1678 ac_fn_c_check_func ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684 $as_echo_n "(cached) " >&6
1685 else
1686 if test x$gcc_no_link = xyes; then
1687 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1688 fi
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1693 #define $2 innocuous_$2
1694
1695 /* System header to define __stub macros and hopefully few prototypes,
1696 which can conflict with char $2 (); below.
1697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1698 <limits.h> exists even on freestanding compilers. */
1699
1700 #ifdef __STDC__
1701 # include <limits.h>
1702 #else
1703 # include <assert.h>
1704 #endif
1705
1706 #undef $2
1707
1708 /* Override any GCC internal prototype to avoid an error.
1709 Use char because int might match the return type of a GCC
1710 builtin and then its argument prototype would still apply. */
1711 #ifdef __cplusplus
1712 extern "C"
1713 #endif
1714 char $2 ();
1715 /* The GNU C library defines this for functions which it implements
1716 to always fail with ENOSYS. Some functions are actually named
1717 something starting with __ and the normal name is an alias. */
1718 #if defined __stub_$2 || defined __stub___$2
1719 choke me
1720 #endif
1721
1722 int
1723 main ()
1724 {
1725 return $2 ();
1726 ;
1727 return 0;
1728 }
1729 _ACEOF
1730 if ac_fn_c_try_link "$LINENO"; then :
1731 eval "$3=yes"
1732 else
1733 eval "$3=no"
1734 fi
1735 rm -f core conftest.err conftest.$ac_objext \
1736 conftest$ac_exeext conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742
1743 } # ac_fn_c_check_func
1744 cat >config.log <<_ACEOF
1745 This file contains any messages produced by compilers while
1746 running configure, to aid debugging if configure makes a mistake.
1747
1748 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1749 generated by GNU Autoconf 2.64. Invocation command line was
1750
1751 $ $0 $@
1752
1753 _ACEOF
1754 exec 5>>config.log
1755 {
1756 cat <<_ASUNAME
1757 ## --------- ##
1758 ## Platform. ##
1759 ## --------- ##
1760
1761 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1762 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1763 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1764 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1765 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1766
1767 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1768 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1769
1770 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1771 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1772 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1773 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1774 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1775 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1776 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1777
1778 _ASUNAME
1779
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 for as_dir in $PATH
1782 do
1783 IFS=$as_save_IFS
1784 test -z "$as_dir" && as_dir=.
1785 $as_echo "PATH: $as_dir"
1786 done
1787 IFS=$as_save_IFS
1788
1789 } >&5
1790
1791 cat >&5 <<_ACEOF
1792
1793
1794 ## ----------- ##
1795 ## Core tests. ##
1796 ## ----------- ##
1797
1798 _ACEOF
1799
1800
1801 # Keep a trace of the command line.
1802 # Strip out --no-create and --no-recursion so they do not pile up.
1803 # Strip out --silent because we don't want to record it for future runs.
1804 # Also quote any args containing shell meta-characters.
1805 # Make two passes to allow for proper duplicate-argument suppression.
1806 ac_configure_args=
1807 ac_configure_args0=
1808 ac_configure_args1=
1809 ac_must_keep_next=false
1810 for ac_pass in 1 2
1811 do
1812 for ac_arg
1813 do
1814 case $ac_arg in
1815 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1817 | -silent | --silent | --silen | --sile | --sil)
1818 continue ;;
1819 *\'*)
1820 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1821 esac
1822 case $ac_pass in
1823 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1824 2)
1825 as_fn_append ac_configure_args1 " '$ac_arg'"
1826 if test $ac_must_keep_next = true; then
1827 ac_must_keep_next=false # Got value, back to normal.
1828 else
1829 case $ac_arg in
1830 *=* | --config-cache | -C | -disable-* | --disable-* \
1831 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1832 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1833 | -with-* | --with-* | -without-* | --without-* | --x)
1834 case "$ac_configure_args0 " in
1835 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1836 esac
1837 ;;
1838 -* ) ac_must_keep_next=true ;;
1839 esac
1840 fi
1841 as_fn_append ac_configure_args " '$ac_arg'"
1842 ;;
1843 esac
1844 done
1845 done
1846 { ac_configure_args0=; unset ac_configure_args0;}
1847 { ac_configure_args1=; unset ac_configure_args1;}
1848
1849 # When interrupted or exit'd, cleanup temporary files, and complete
1850 # config.log. We remove comments because anyway the quotes in there
1851 # would cause problems or look ugly.
1852 # WARNING: Use '\'' to represent an apostrophe within the trap.
1853 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1854 trap 'exit_status=$?
1855 # Save into config.log some information that might help in debugging.
1856 {
1857 echo
1858
1859 cat <<\_ASBOX
1860 ## ---------------- ##
1861 ## Cache variables. ##
1862 ## ---------------- ##
1863 _ASBOX
1864 echo
1865 # The following way of writing the cache mishandles newlines in values,
1866 (
1867 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1868 eval ac_val=\$$ac_var
1869 case $ac_val in #(
1870 *${as_nl}*)
1871 case $ac_var in #(
1872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1874 esac
1875 case $ac_var in #(
1876 _ | IFS | as_nl) ;; #(
1877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1878 *) { eval $ac_var=; unset $ac_var;} ;;
1879 esac ;;
1880 esac
1881 done
1882 (set) 2>&1 |
1883 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1884 *${as_nl}ac_space=\ *)
1885 sed -n \
1886 "s/'\''/'\''\\\\'\'''\''/g;
1887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1888 ;; #(
1889 *)
1890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1891 ;;
1892 esac |
1893 sort
1894 )
1895 echo
1896
1897 cat <<\_ASBOX
1898 ## ----------------- ##
1899 ## Output variables. ##
1900 ## ----------------- ##
1901 _ASBOX
1902 echo
1903 for ac_var in $ac_subst_vars
1904 do
1905 eval ac_val=\$$ac_var
1906 case $ac_val in
1907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908 esac
1909 $as_echo "$ac_var='\''$ac_val'\''"
1910 done | sort
1911 echo
1912
1913 if test -n "$ac_subst_files"; then
1914 cat <<\_ASBOX
1915 ## ------------------- ##
1916 ## File substitutions. ##
1917 ## ------------------- ##
1918 _ASBOX
1919 echo
1920 for ac_var in $ac_subst_files
1921 do
1922 eval ac_val=\$$ac_var
1923 case $ac_val in
1924 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1925 esac
1926 $as_echo "$ac_var='\''$ac_val'\''"
1927 done | sort
1928 echo
1929 fi
1930
1931 if test -s confdefs.h; then
1932 cat <<\_ASBOX
1933 ## ----------- ##
1934 ## confdefs.h. ##
1935 ## ----------- ##
1936 _ASBOX
1937 echo
1938 cat confdefs.h
1939 echo
1940 fi
1941 test "$ac_signal" != 0 &&
1942 $as_echo "$as_me: caught signal $ac_signal"
1943 $as_echo "$as_me: exit $exit_status"
1944 } >&5
1945 rm -f core *.core core.conftest.* &&
1946 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1947 exit $exit_status
1948 ' 0
1949 for ac_signal in 1 2 13 15; do
1950 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1951 done
1952 ac_signal=0
1953
1954 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1955 rm -f -r conftest* confdefs.h
1956
1957 $as_echo "/* confdefs.h */" > confdefs.h
1958
1959 # Predefined preprocessor variables.
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_NAME "$PACKAGE_NAME"
1963 _ACEOF
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1967 _ACEOF
1968
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1971 _ACEOF
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_STRING "$PACKAGE_STRING"
1975 _ACEOF
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1979 _ACEOF
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_URL "$PACKAGE_URL"
1983 _ACEOF
1984
1985
1986 # Let the site file select an alternate cache file if it wants to.
1987 # Prefer an explicitly selected file to automatically selected ones.
1988 ac_site_file1=NONE
1989 ac_site_file2=NONE
1990 if test -n "$CONFIG_SITE"; then
1991 ac_site_file1=$CONFIG_SITE
1992 elif test "x$prefix" != xNONE; then
1993 ac_site_file1=$prefix/share/config.site
1994 ac_site_file2=$prefix/etc/config.site
1995 else
1996 ac_site_file1=$ac_default_prefix/share/config.site
1997 ac_site_file2=$ac_default_prefix/etc/config.site
1998 fi
1999 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2000 do
2001 test "x$ac_site_file" = xNONE && continue
2002 if test -r "$ac_site_file"; then
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2004 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2005 sed 's/^/| /' "$ac_site_file" >&5
2006 . "$ac_site_file"
2007 fi
2008 done
2009
2010 if test -r "$cache_file"; then
2011 # Some versions of bash will fail to source /dev/null (special
2012 # files actually), so we avoid doing that.
2013 if test -f "$cache_file"; then
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2015 $as_echo "$as_me: loading cache $cache_file" >&6;}
2016 case $cache_file in
2017 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2018 *) . "./$cache_file";;
2019 esac
2020 fi
2021 else
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2023 $as_echo "$as_me: creating cache $cache_file" >&6;}
2024 >$cache_file
2025 fi
2026
2027 # Check that the precious variables saved in the cache have kept the same
2028 # value.
2029 ac_cache_corrupted=false
2030 for ac_var in $ac_precious_vars; do
2031 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2032 eval ac_new_set=\$ac_env_${ac_var}_set
2033 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2034 eval ac_new_val=\$ac_env_${ac_var}_value
2035 case $ac_old_set,$ac_new_set in
2036 set,)
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2038 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2039 ac_cache_corrupted=: ;;
2040 ,set)
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2042 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2043 ac_cache_corrupted=: ;;
2044 ,);;
2045 *)
2046 if test "x$ac_old_val" != "x$ac_new_val"; then
2047 # differences in whitespace do not lead to failure.
2048 ac_old_val_w=`echo x $ac_old_val`
2049 ac_new_val_w=`echo x $ac_new_val`
2050 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2052 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2053 ac_cache_corrupted=:
2054 else
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2056 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2057 eval $ac_var=\$ac_old_val
2058 fi
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2060 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2062 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2063 fi;;
2064 esac
2065 # Pass precious variables to config.status.
2066 if test "$ac_new_set" = set; then
2067 case $ac_new_val in
2068 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2069 *) ac_arg=$ac_var=$ac_new_val ;;
2070 esac
2071 case " $ac_configure_args " in
2072 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2073 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2074 esac
2075 fi
2076 done
2077 if $ac_cache_corrupted; then
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2081 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2082 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2083 fi
2084 ## -------------------- ##
2085 ## Main body of script. ##
2086 ## -------------------- ##
2087
2088 ac_ext=c
2089 ac_cpp='$CPP $CPPFLAGS'
2090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093
2094
2095
2096
2097
2098 ac_config_headers="$ac_config_headers config.h"
2099
2100
2101 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2102 #
2103 # You will slowly go insane if you do not grok the following fact: when
2104 # building this library, the top-level /target/ becomes the library's /host/.
2105 #
2106 # configure then causes --target to default to --host, exactly like any
2107 # other package using autoconf. Therefore, 'target' and 'host' will
2108 # always be the same. This makes sense both for native and cross compilers
2109 # just think about it for a little while. :-)
2110 #
2111 # Also, if this library is being configured as part of a cross compiler, the
2112 # top-level configure script will pass the "real" host as $with_cross_host.
2113 #
2114 # Do not delete or change the following two lines. For why, see
2115 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2116 ac_aux_dir=
2117 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2118 for ac_t in install-sh install.sh shtool; do
2119 if test -f "$ac_dir/$ac_t"; then
2120 ac_aux_dir=$ac_dir
2121 ac_install_sh="$ac_aux_dir/$ac_t -c"
2122 break 2
2123 fi
2124 done
2125 done
2126 if test -z "$ac_aux_dir"; then
2127 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2128 fi
2129
2130 # These three variables are undocumented and unsupported,
2131 # and are intended to be withdrawn in a future Autoconf release.
2132 # They can cause serious problems if a builder's source tree is in a directory
2133 # whose full name contains unusual characters.
2134 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2135 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2136 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2137
2138
2139 # Make sure we can run config.sub.
2140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2141 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2142
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2144 $as_echo_n "checking build system type... " >&6; }
2145 if test "${ac_cv_build+set}" = set; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 ac_build_alias=$build_alias
2149 test "x$ac_build_alias" = x &&
2150 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2151 test "x$ac_build_alias" = x &&
2152 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2153 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2154 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2155
2156 fi
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2158 $as_echo "$ac_cv_build" >&6; }
2159 case $ac_cv_build in
2160 *-*-*) ;;
2161 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2162 esac
2163 build=$ac_cv_build
2164 ac_save_IFS=$IFS; IFS='-'
2165 set x $ac_cv_build
2166 shift
2167 build_cpu=$1
2168 build_vendor=$2
2169 shift; shift
2170 # Remember, the first character of IFS is used to create $*,
2171 # except with old shells:
2172 build_os=$*
2173 IFS=$ac_save_IFS
2174 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2175
2176
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2178 $as_echo_n "checking host system type... " >&6; }
2179 if test "${ac_cv_host+set}" = set; then :
2180 $as_echo_n "(cached) " >&6
2181 else
2182 if test "x$host_alias" = x; then
2183 ac_cv_host=$ac_cv_build
2184 else
2185 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2186 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2187 fi
2188
2189 fi
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2191 $as_echo "$ac_cv_host" >&6; }
2192 case $ac_cv_host in
2193 *-*-*) ;;
2194 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2195 esac
2196 host=$ac_cv_host
2197 ac_save_IFS=$IFS; IFS='-'
2198 set x $ac_cv_host
2199 shift
2200 host_cpu=$1
2201 host_vendor=$2
2202 shift; shift
2203 # Remember, the first character of IFS is used to create $*,
2204 # except with old shells:
2205 host_os=$*
2206 IFS=$ac_save_IFS
2207 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2208
2209
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2211 $as_echo_n "checking target system type... " >&6; }
2212 if test "${ac_cv_target+set}" = set; then :
2213 $as_echo_n "(cached) " >&6
2214 else
2215 if test "x$target_alias" = x; then
2216 ac_cv_target=$ac_cv_host
2217 else
2218 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2219 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2220 fi
2221
2222 fi
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2224 $as_echo "$ac_cv_target" >&6; }
2225 case $ac_cv_target in
2226 *-*-*) ;;
2227 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2228 esac
2229 target=$ac_cv_target
2230 ac_save_IFS=$IFS; IFS='-'
2231 set x $ac_cv_target
2232 shift
2233 target_cpu=$1
2234 target_vendor=$2
2235 shift; shift
2236 # Remember, the first character of IFS is used to create $*,
2237 # except with old shells:
2238 target_os=$*
2239 IFS=$ac_save_IFS
2240 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2241
2242
2243 # The aliases save the names the user supplied, while $host etc.
2244 # will get canonicalized.
2245 test -n "$target_alias" &&
2246 test "$program_prefix$program_suffix$program_transform_name" = \
2247 NONENONEs,x,x, &&
2248 program_prefix=${target_alias}-
2249
2250 case ${build_alias} in
2251 "") build_noncanonical=${build} ;;
2252 *) build_noncanonical=${build_alias} ;;
2253 esac
2254
2255 case ${host_alias} in
2256 "") host_noncanonical=${build_noncanonical} ;;
2257 *) host_noncanonical=${host_alias} ;;
2258 esac
2259
2260 case ${target_alias} in
2261 "") target_noncanonical=${host_noncanonical} ;;
2262 *) target_noncanonical=${target_alias} ;;
2263 esac
2264
2265
2266
2267
2268 target_alias=${target_alias-$host_alias}
2269
2270
2271 am__api_version='1.11'
2272
2273 # Find a good install program. We prefer a C program (faster),
2274 # so one script is as good as another. But avoid the broken or
2275 # incompatible versions:
2276 # SysV /etc/install, /usr/sbin/install
2277 # SunOS /usr/etc/install
2278 # IRIX /sbin/install
2279 # AIX /bin/install
2280 # AmigaOS /C/install, which installs bootblocks on floppy discs
2281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2284 # OS/2's system install, which has a completely different semantic
2285 # ./install, which can be erroneously created by make from ./install.sh.
2286 # Reject install programs that cannot install multiple files.
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2288 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2289 if test -z "$INSTALL"; then
2290 if test "${ac_cv_path_install+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 # Account for people who put trailing slashes in PATH elements.
2299 case $as_dir/ in #((
2300 ./ | .// | /[cC]/* | \
2301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2302 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2303 /usr/ucb/* ) ;;
2304 *)
2305 # OSF1 and SCO ODT 3.0 have their own names for install.
2306 # Don't use installbsd from OSF since it installs stuff as root
2307 # by default.
2308 for ac_prog in ginstall scoinst install; do
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2311 if test $ac_prog = install &&
2312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313 # AIX install. It has an incompatible calling convention.
2314 :
2315 elif test $ac_prog = install &&
2316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # program-specific install script used by HP pwplus--don't use.
2318 :
2319 else
2320 rm -rf conftest.one conftest.two conftest.dir
2321 echo one > conftest.one
2322 echo two > conftest.two
2323 mkdir conftest.dir
2324 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2325 test -s conftest.one && test -s conftest.two &&
2326 test -s conftest.dir/conftest.one &&
2327 test -s conftest.dir/conftest.two
2328 then
2329 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2330 break 3
2331 fi
2332 fi
2333 fi
2334 done
2335 done
2336 ;;
2337 esac
2338
2339 done
2340 IFS=$as_save_IFS
2341
2342 rm -rf conftest.one conftest.two conftest.dir
2343
2344 fi
2345 if test "${ac_cv_path_install+set}" = set; then
2346 INSTALL=$ac_cv_path_install
2347 else
2348 # As a last resort, use the slow shell script. Don't cache a
2349 # value for INSTALL within a source directory, because that will
2350 # break other packages using the cache if that directory is
2351 # removed, or if the value is a relative name.
2352 INSTALL=$ac_install_sh
2353 fi
2354 fi
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2356 $as_echo "$INSTALL" >&6; }
2357
2358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2359 # It thinks the first close brace ends the variable substitution.
2360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2361
2362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2363
2364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2365
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2367 $as_echo_n "checking whether build environment is sane... " >&6; }
2368 # Just in case
2369 sleep 1
2370 echo timestamp > conftest.file
2371 # Reject unsafe characters in $srcdir or the absolute working directory
2372 # name. Accept space and tab only in the latter.
2373 am_lf='
2374 '
2375 case `pwd` in
2376 *[\\\"\#\$\&\'\`$am_lf]*)
2377 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2378 esac
2379 case $srcdir in
2380 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2381 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2382 esac
2383
2384 # Do `set' in a subshell so we don't clobber the current shell's
2385 # arguments. Must try -L first in case configure is actually a
2386 # symlink; some systems play weird games with the mod time of symlinks
2387 # (eg FreeBSD returns the mod time of the symlink's containing
2388 # directory).
2389 if (
2390 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2391 if test "$*" = "X"; then
2392 # -L didn't work.
2393 set X `ls -t "$srcdir/configure" conftest.file`
2394 fi
2395 rm -f conftest.file
2396 if test "$*" != "X $srcdir/configure conftest.file" \
2397 && test "$*" != "X conftest.file $srcdir/configure"; then
2398
2399 # If neither matched, then we have a broken ls. This can happen
2400 # if, for instance, CONFIG_SHELL is bash and it inherits a
2401 # broken ls alias from the environment. This has actually
2402 # happened. Such a system could not be considered "sane".
2403 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2404 alias in your environment" "$LINENO" 5
2405 fi
2406
2407 test "$2" = conftest.file
2408 )
2409 then
2410 # Ok.
2411 :
2412 else
2413 as_fn_error "newly created file is older than distributed files!
2414 Check your system clock" "$LINENO" 5
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2417 $as_echo "yes" >&6; }
2418 test "$program_prefix" != NONE &&
2419 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2420 # Use a double $ so make ignores it.
2421 test "$program_suffix" != NONE &&
2422 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2423 # Double any \ or $.
2424 # By default was `s,x,x', remove it if useless.
2425 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2426 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2427
2428 # expand $ac_aux_dir to an absolute path
2429 am_aux_dir=`cd $ac_aux_dir && pwd`
2430
2431 if test x"${MISSING+set}" != xset; then
2432 case $am_aux_dir in
2433 *\ * | *\ *)
2434 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2435 *)
2436 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2437 esac
2438 fi
2439 # Use eval to expand $SHELL
2440 if eval "$MISSING --run true"; then
2441 am_missing_run="$MISSING --run "
2442 else
2443 am_missing_run=
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2445 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2446 fi
2447
2448 if test x"${install_sh}" != xset; then
2449 case $am_aux_dir in
2450 *\ * | *\ *)
2451 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2452 *)
2453 install_sh="\${SHELL} $am_aux_dir/install-sh"
2454 esac
2455 fi
2456
2457 # Installed binaries are usually stripped using `strip' when the user
2458 # run `make install-strip'. However `strip' might not be the right
2459 # tool to use in cross-compilation environments, therefore Automake
2460 # will honor the `STRIP' environment variable to overrule this program.
2461 if test "$cross_compiling" != no; then
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}strip; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if test "${ac_cv_prog_STRIP+set}" = set; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 if test -n "$STRIP"; then
2471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 STRIP=$ac_cv_prog_STRIP
2491 if test -n "$STRIP"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2493 $as_echo "$STRIP" >&6; }
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2497 fi
2498
2499
2500 fi
2501 if test -z "$ac_cv_prog_STRIP"; then
2502 ac_ct_STRIP=$STRIP
2503 # Extract the first word of "strip", so it can be a program name with args.
2504 set dummy strip; ac_word=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 if test -n "$ac_ct_STRIP"; then
2511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_STRIP="strip"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2523 fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2531 if test -n "$ac_ct_STRIP"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2533 $as_echo "$ac_ct_STRIP" >&6; }
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539 if test "x$ac_ct_STRIP" = x; then
2540 STRIP=":"
2541 else
2542 case $cross_compiling:$ac_tool_warned in
2543 yes:)
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2546 ac_tool_warned=yes ;;
2547 esac
2548 STRIP=$ac_ct_STRIP
2549 fi
2550 else
2551 STRIP="$ac_cv_prog_STRIP"
2552 fi
2553
2554 fi
2555 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2556
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2558 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2559 if test -z "$MKDIR_P"; then
2560 if test "${ac_cv_path_mkdir+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2565 do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_prog in mkdir gmkdir; do
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2571 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2572 'mkdir (GNU coreutils) '* | \
2573 'mkdir (coreutils) '* | \
2574 'mkdir (fileutils) '4.1*)
2575 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2576 break 3;;
2577 esac
2578 done
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584
2585 if test "${ac_cv_path_mkdir+set}" = set; then
2586 MKDIR_P="$ac_cv_path_mkdir -p"
2587 else
2588 # As a last resort, use the slow shell script. Don't cache a
2589 # value for MKDIR_P within a source directory, because that will
2590 # break other packages using the cache if that directory is
2591 # removed, or if the value is a relative name.
2592 test -d ./--version && rmdir ./--version
2593 MKDIR_P="$ac_install_sh -d"
2594 fi
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2597 $as_echo "$MKDIR_P" >&6; }
2598
2599 mkdir_p="$MKDIR_P"
2600 case $mkdir_p in
2601 [\\/$]* | ?:[\\/]*) ;;
2602 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2603 esac
2604
2605 for ac_prog in gawk mawk nawk awk
2606 do
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_AWK+set}" = set; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$AWK"; then
2615 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_AWK="$ac_prog"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 AWK=$ac_cv_prog_AWK
2635 if test -n "$AWK"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2637 $as_echo "$AWK" >&6; }
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2641 fi
2642
2643
2644 test -n "$AWK" && break
2645 done
2646
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2648 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2649 set x ${MAKE-make}
2650 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2651 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 cat >conftest.make <<\_ACEOF
2655 SHELL = /bin/sh
2656 all:
2657 @echo '@@@%%%=$(MAKE)=@@@%%%'
2658 _ACEOF
2659 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2660 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2661 *@@@%%%=?*=@@@%%%*)
2662 eval ac_cv_prog_make_${ac_make}_set=yes;;
2663 *)
2664 eval ac_cv_prog_make_${ac_make}_set=no;;
2665 esac
2666 rm -f conftest.make
2667 fi
2668 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2670 $as_echo "yes" >&6; }
2671 SET_MAKE=
2672 else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2675 SET_MAKE="MAKE=${MAKE-make}"
2676 fi
2677
2678 rm -rf .tst 2>/dev/null
2679 mkdir .tst 2>/dev/null
2680 if test -d .tst; then
2681 am__leading_dot=.
2682 else
2683 am__leading_dot=_
2684 fi
2685 rmdir .tst 2>/dev/null
2686
2687 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2688 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2689 # is not polluted with repeated "-I."
2690 am__isrc=' -I$(srcdir)'
2691 # test to see if srcdir already configured
2692 if test -f $srcdir/config.status; then
2693 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2694 fi
2695 fi
2696
2697 # test whether we have cygpath
2698 if test -z "$CYGPATH_W"; then
2699 if (cygpath --version) >/dev/null 2>/dev/null; then
2700 CYGPATH_W='cygpath -w'
2701 else
2702 CYGPATH_W=echo
2703 fi
2704 fi
2705
2706
2707 # Define the identity of the package.
2708 PACKAGE='libquadmath'
2709 VERSION='0.1'
2710
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE "$PACKAGE"
2714 _ACEOF
2715
2716
2717 cat >>confdefs.h <<_ACEOF
2718 #define VERSION "$VERSION"
2719 _ACEOF
2720
2721 # Some tools Automake needs.
2722
2723 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2724
2725
2726 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2727
2728
2729 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2730
2731
2732 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2733
2734
2735 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2736
2737 # We need awk for the "check" target. The system "awk" is bad on
2738 # some platforms.
2739 # Always define AMTAR for backward compatibility.
2740
2741 AMTAR=${AMTAR-"${am_missing_run}tar"}
2742
2743 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2744
2745
2746
2747
2748
2749
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2751 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2752 # Check whether --enable-version-specific-runtime-libs was given.
2753 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2754 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2755 yes) version_specific_libs=yes ;;
2756 no) version_specific_libs=no ;;
2757 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2758 esac
2759 else
2760 version_specific_libs=no
2761 fi
2762
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2764 $as_echo "$version_specific_libs" >&6; }
2765
2766
2767
2768 # Configure libtool
2769 case `pwd` in
2770 *\ * | *\ *)
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2772 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2773 esac
2774
2775
2776
2777 macro_version='2.2.7a'
2778 macro_revision='1.3134'
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792 ltmain="$ac_aux_dir/ltmain.sh"
2793
2794 # Backslashify metacharacters that are still active within
2795 # double-quoted strings.
2796 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2797
2798 # Same as above, but do not quote variable references.
2799 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2800
2801 # Sed substitution to delay expansion of an escaped shell variable in a
2802 # double_quote_subst'ed string.
2803 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2804
2805 # Sed substitution to delay expansion of an escaped single quote.
2806 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2807
2808 # Sed substitution to avoid accidental globbing in evaled expressions
2809 no_glob_subst='s/\*/\\\*/g'
2810
2811 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2812 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2813 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2814
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2816 $as_echo_n "checking how to print strings... " >&6; }
2817 # Test print first, because it will be a builtin if present.
2818 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2819 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2820 ECHO='print -r --'
2821 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2822 ECHO='printf %s\n'
2823 else
2824 # Use this function as a fallback that always works.
2825 func_fallback_echo ()
2826 {
2827 eval 'cat <<_LTECHO_EOF
2828 $1
2829 _LTECHO_EOF'
2830 }
2831 ECHO='func_fallback_echo'
2832 fi
2833
2834 # func_echo_all arg...
2835 # Invoke $ECHO with all args, space-separated.
2836 func_echo_all ()
2837 {
2838 $ECHO ""
2839 }
2840
2841 case "$ECHO" in
2842 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2843 $as_echo "printf" >&6; } ;;
2844 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2845 $as_echo "print -r" >&6; } ;;
2846 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2847 $as_echo "cat" >&6; } ;;
2848 esac
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863 DEPDIR="${am__leading_dot}deps"
2864
2865 ac_config_commands="$ac_config_commands depfiles"
2866
2867
2868 am_make=${MAKE-make}
2869 cat > confinc << 'END'
2870 am__doit:
2871 @echo this is the am__doit target
2872 .PHONY: am__doit
2873 END
2874 # If we don't find an include directive, just comment out the code.
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2876 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2877 am__include="#"
2878 am__quote=
2879 _am_result=none
2880 # First try GNU make style include.
2881 echo "include confinc" > confmf
2882 # Ignore all kinds of additional output from `make'.
2883 case `$am_make -s -f confmf 2> /dev/null` in #(
2884 *the\ am__doit\ target*)
2885 am__include=include
2886 am__quote=
2887 _am_result=GNU
2888 ;;
2889 esac
2890 # Now try BSD make style include.
2891 if test "$am__include" = "#"; then
2892 echo '.include "confinc"' > confmf
2893 case `$am_make -s -f confmf 2> /dev/null` in #(
2894 *the\ am__doit\ target*)
2895 am__include=.include
2896 am__quote="\""
2897 _am_result=BSD
2898 ;;
2899 esac
2900 fi
2901
2902
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2904 $as_echo "$_am_result" >&6; }
2905 rm -f confinc confmf
2906
2907 # Check whether --enable-dependency-tracking was given.
2908 if test "${enable_dependency_tracking+set}" = set; then :
2909 enableval=$enable_dependency_tracking;
2910 fi
2911
2912 if test "x$enable_dependency_tracking" != xno; then
2913 am_depcomp="$ac_aux_dir/depcomp"
2914 AMDEPBACKSLASH='\'
2915 fi
2916 if test "x$enable_dependency_tracking" != xno; then
2917 AMDEP_TRUE=
2918 AMDEP_FALSE='#'
2919 else
2920 AMDEP_TRUE='#'
2921 AMDEP_FALSE=
2922 fi
2923
2924
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2951 fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968 fi
2969 if test -z "$ac_cv_prog_CC"; then
2970 ac_ct_CC=$CC
2971 # Extract the first word of "gcc", so it can be a program name with args.
2972 set dummy gcc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test -n "$ac_ct_CC"; then
2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_ac_ct_CC="gcc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992 done
2993 done
2994 IFS=$as_save_IFS
2995
2996 fi
2997 fi
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3001 $as_echo "$ac_ct_CC" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 fi
3006
3007 if test "x$ac_ct_CC" = x; then
3008 CC=""
3009 else
3010 case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016 CC=$ac_ct_CC
3017 fi
3018 else
3019 CC="$ac_cv_prog_CC"
3020 fi
3021
3022 if test -z "$CC"; then
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3025 set dummy ${ac_tool_prefix}cc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if test "${ac_cv_prog_CC+set}" = set; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041 ac_cv_prog_CC="${ac_tool_prefix}cc"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3044 fi
3045 done
3046 done
3047 IFS=$as_save_IFS
3048
3049 fi
3050 fi
3051 CC=$ac_cv_prog_CC
3052 if test -n "$CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 fi
3059
3060
3061 fi
3062 fi
3063 if test -z "$CC"; then
3064 # Extract the first word of "cc", so it can be a program name with args.
3065 set dummy cc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if test "${ac_cv_prog_CC+set}" = set; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 ac_prog_rejected=no
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3083 ac_prog_rejected=yes
3084 continue
3085 fi
3086 ac_cv_prog_CC="cc"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3089 fi
3090 done
3091 done
3092 IFS=$as_save_IFS
3093
3094 if test $ac_prog_rejected = yes; then
3095 # We found a bogon in the path, so make sure we never use it.
3096 set dummy $ac_cv_prog_CC
3097 shift
3098 if test $# != 0; then
3099 # We chose a different compiler from the bogus one.
3100 # However, it has the same basename, so the bogon will be chosen
3101 # first if we set CC to just the basename; use the full file name.
3102 shift
3103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3104 fi
3105 fi
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 for ac_prog in cl.exe
3122 do
3123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if test "${ac_cv_prog_CC+set}" = set; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144 done
3145 done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160 test -n "$CC" && break
3161 done
3162 fi
3163 if test -z "$CC"; then
3164 ac_ct_CC=$CC
3165 for ac_prog in cl.exe
3166 do
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$ac_ct_CC"; then
3175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 ac_cv_prog_ac_ct_CC="$ac_prog"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188 done
3189 done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197 $as_echo "$ac_ct_CC" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204 test -n "$ac_ct_CC" && break
3205 done
3206
3207 if test "x$ac_ct_CC" = x; then
3208 CC=""
3209 else
3210 case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216 CC=$ac_ct_CC
3217 fi
3218 fi
3219
3220 fi
3221
3222
3223 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error "no acceptable C compiler found in \$PATH
3226 See \`config.log' for more details." "$LINENO" 5; }
3227
3228 # Provide some information about the compiler.
3229 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3230 set X $ac_compile
3231 ac_compiler=$2
3232 for ac_option in --version -v -V -qversion; do
3233 { { ac_try="$ac_compiler $ac_option >&5"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3241 ac_status=$?
3242 if test -s conftest.err; then
3243 sed '10a\
3244 ... rest of stderr output deleted ...
3245 10q' conftest.err >conftest.er1
3246 cat conftest.er1 >&5
3247 rm -f conftest.er1 conftest.err
3248 fi
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }
3251 done
3252
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3255
3256 int
3257 main ()
3258 {
3259
3260 ;
3261 return 0;
3262 }
3263 _ACEOF
3264 # FIXME: Cleanup?
3265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3266 (eval $ac_link) 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 gcc_no_link=no
3271 else
3272 gcc_no_link=yes
3273 fi
3274 if test x$gcc_no_link = xyes; then
3275 # Setting cross_compile will disable run tests; it will
3276 # also disable AC_CHECK_FILE but that's generally
3277 # correct if we can't link.
3278 cross_compiling=yes
3279 EXEEXT=
3280 else
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3283
3284 int
3285 main ()
3286 {
3287
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3296 # of exeext.
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3303
3304 ac_rmfiles=
3305 for ac_file in $ac_files
3306 do
3307 case $ac_file in
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3310 esac
3311 done
3312 rm -f $ac_rmfiles
3313
3314 if { { ac_try="$ac_link_default"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link_default") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }; then :
3325 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3329 # Autoconf.
3330 for ac_file in $ac_files ''
3331 do
3332 test -f "$ac_file" || continue
3333 case $ac_file in
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3335 ;;
3336 [ab].out )
3337 # We found the default executable, but exeext='' is most
3338 # certainly right.
3339 break;;
3340 *.* )
3341 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3342 then :; else
3343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344 fi
3345 # We set ac_cv_exeext here because the later test for it is not
3346 # safe: cross compilers may not add the suffix if given an `-o'
3347 # argument, so we may need to know it at that point already.
3348 # Even if this section looks crufty: it has the advantage of
3349 # actually working.
3350 break;;
3351 * )
3352 break;;
3353 esac
3354 done
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3356
3357 else
3358 ac_file=''
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3361 $as_echo "$ac_file" >&6; }
3362 if test -z "$ac_file"; then :
3363 $as_echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 { as_fn_set_status 77
3369 as_fn_error "C compiler cannot create executables
3370 See \`config.log' for more details." "$LINENO" 5; }; }
3371 fi
3372 ac_exeext=$ac_cv_exeext
3373
3374 # Check that the compiler produces executables we can run. If not, either
3375 # the compiler is broken, or we cross compile.
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3377 $as_echo_n "checking whether the C compiler works... " >&6; }
3378 # If not cross compiling, check that we can run a simple program.
3379 if test "$cross_compiling" != yes; then
3380 if { ac_try='./$ac_file'
3381 { { case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_try") 2>&5
3388 ac_status=$?
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; }; then
3391 cross_compiling=no
3392 else
3393 if test "$cross_compiling" = maybe; then
3394 cross_compiling=yes
3395 else
3396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398 as_fn_error "cannot run C compiled programs.
3399 If you meant to cross compile, use \`--host'.
3400 See \`config.log' for more details." "$LINENO" 5; }
3401 fi
3402 fi
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3405 $as_echo "yes" >&6; }
3406
3407 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3408 ac_clean_files=$ac_clean_files_save
3409 # Check that the compiler produces executables we can run. If not, either
3410 # the compiler is broken, or we cross compile.
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3412 $as_echo_n "checking whether we are cross compiling... " >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3414 $as_echo "$cross_compiling" >&6; }
3415
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3417 $as_echo_n "checking for suffix of executables... " >&6; }
3418 if { { ac_try="$ac_link"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_link") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }; then :
3429 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3430 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3431 # work properly (i.e., refer to `conftest.exe'), while it won't with
3432 # `rm'.
3433 for ac_file in conftest.exe conftest conftest.*; do
3434 test -f "$ac_file" || continue
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3438 break;;
3439 * ) break;;
3440 esac
3441 done
3442 else
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error "cannot compute suffix of executables: cannot compile and link
3446 See \`config.log' for more details." "$LINENO" 5; }
3447 fi
3448 rm -f conftest$ac_cv_exeext
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3450 $as_echo "$ac_cv_exeext" >&6; }
3451
3452 rm -f conftest.$ac_ext
3453 EXEEXT=$ac_cv_exeext
3454 ac_exeext=$EXEEXT
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3457 $as_echo_n "checking for suffix of object files... " >&6; }
3458 if test "${ac_cv_objext+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3463
3464 int
3465 main ()
3466 {
3467
3468 ;
3469 return 0;
3470 }
3471 _ACEOF
3472 rm -f conftest.o conftest.obj
3473 if { { ac_try="$ac_compile"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_compile") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; then :
3484 for ac_file in conftest.o conftest.obj conftest.*; do
3485 test -f "$ac_file" || continue;
3486 case $ac_file in
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3489 break;;
3490 esac
3491 done
3492 else
3493 $as_echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498 as_fn_error "cannot compute suffix of object files: cannot compile
3499 See \`config.log' for more details." "$LINENO" 5; }
3500 fi
3501 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3504 $as_echo "$ac_cv_objext" >&6; }
3505 OBJEXT=$ac_cv_objext
3506 ac_objext=$OBJEXT
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3508 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3509 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514
3515 int
3516 main ()
3517 {
3518 #ifndef __GNUC__
3519 choke me
3520 #endif
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"; then :
3527 ac_compiler_gnu=yes
3528 else
3529 ac_compiler_gnu=no
3530 fi
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3533
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3536 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3537 if test $ac_compiler_gnu = yes; then
3538 GCC=yes
3539 else
3540 GCC=
3541 fi
3542 ac_test_CFLAGS=${CFLAGS+set}
3543 ac_save_CFLAGS=$CFLAGS
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3545 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3546 if test "${ac_cv_prog_cc_g+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 ac_save_c_werror_flag=$ac_c_werror_flag
3550 ac_c_werror_flag=yes
3551 ac_cv_prog_cc_g=no
3552 CFLAGS="-g"
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555
3556 int
3557 main ()
3558 {
3559
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_cv_prog_cc_g=yes
3566 else
3567 CFLAGS=""
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3570
3571 int
3572 main ()
3573 {
3574
3575 ;
3576 return 0;
3577 }
3578 _ACEOF
3579 if ac_fn_c_try_compile "$LINENO"; then :
3580
3581 else
3582 ac_c_werror_flag=$ac_save_c_werror_flag
3583 CFLAGS="-g"
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586
3587 int
3588 main ()
3589 {
3590
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_cv_prog_cc_g=yes
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 ac_c_werror_flag=$ac_save_c_werror_flag
3604 fi
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3606 $as_echo "$ac_cv_prog_cc_g" >&6; }
3607 if test "$ac_test_CFLAGS" = set; then
3608 CFLAGS=$ac_save_CFLAGS
3609 elif test $ac_cv_prog_cc_g = yes; then
3610 if test "$GCC" = yes; then
3611 CFLAGS="-g -O2"
3612 else
3613 CFLAGS="-g"
3614 fi
3615 else
3616 if test "$GCC" = yes; then
3617 CFLAGS="-O2"
3618 else
3619 CFLAGS=
3620 fi
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3623 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3624 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 ac_cv_prog_cc_c89=no
3628 ac_save_CC=$CC
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3631 #include <stdarg.h>
3632 #include <stdio.h>
3633 #include <sys/types.h>
3634 #include <sys/stat.h>
3635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3636 struct buf { int x; };
3637 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3638 static char *e (p, i)
3639 char **p;
3640 int i;
3641 {
3642 return p[i];
3643 }
3644 static char *f (char * (*g) (char **, int), char **p, ...)
3645 {
3646 char *s;
3647 va_list v;
3648 va_start (v,p);
3649 s = g (p, va_arg (v,int));
3650 va_end (v);
3651 return s;
3652 }
3653
3654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3655 function prototypes and stuff, but not '\xHH' hex character constants.
3656 These don't provoke an error unfortunately, instead are silently treated
3657 as 'x'. The following induces an error, until -std is added to get
3658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3659 array size at least. It's necessary to write '\x00'==0 to get something
3660 that's true only with -std. */
3661 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3662
3663 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3664 inside strings and character constants. */
3665 #define FOO(x) 'x'
3666 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3667
3668 int test (int i, double x);
3669 struct s1 {int (*f) (int a);};
3670 struct s2 {int (*f) (double a);};
3671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3672 int argc;
3673 char **argv;
3674 int
3675 main ()
3676 {
3677 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3678 ;
3679 return 0;
3680 }
3681 _ACEOF
3682 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3684 do
3685 CC="$ac_save_CC $ac_arg"
3686 if ac_fn_c_try_compile "$LINENO"; then :
3687 ac_cv_prog_cc_c89=$ac_arg
3688 fi
3689 rm -f core conftest.err conftest.$ac_objext
3690 test "x$ac_cv_prog_cc_c89" != "xno" && break
3691 done
3692 rm -f conftest.$ac_ext
3693 CC=$ac_save_CC
3694
3695 fi
3696 # AC_CACHE_VAL
3697 case "x$ac_cv_prog_cc_c89" in
3698 x)
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3700 $as_echo "none needed" >&6; } ;;
3701 xno)
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3703 $as_echo "unsupported" >&6; } ;;
3704 *)
3705 CC="$CC $ac_cv_prog_cc_c89"
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3707 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3708 esac
3709 if test "x$ac_cv_prog_cc_c89" != xno; then :
3710
3711 fi
3712
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718
3719 depcc="$CC" am_compiler_list=
3720
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3722 $as_echo_n "checking dependency style of $depcc... " >&6; }
3723 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3727 # We make a subdir and do the tests there. Otherwise we can end up
3728 # making bogus files that we don't know about and never remove. For
3729 # instance it was reported that on HP-UX the gcc test will end up
3730 # making a dummy file named `D' -- because `-MD' means `put the output
3731 # in D'.
3732 mkdir conftest.dir
3733 # Copy depcomp to subdir because otherwise we won't find it if we're
3734 # using a relative directory.
3735 cp "$am_depcomp" conftest.dir
3736 cd conftest.dir
3737 # We will build objects and dependencies in a subdirectory because
3738 # it helps to detect inapplicable dependency modes. For instance
3739 # both Tru64's cc and ICC support -MD to output dependencies as a
3740 # side effect of compilation, but ICC will put the dependencies in
3741 # the current directory while Tru64 will put them in the object
3742 # directory.
3743 mkdir sub
3744
3745 am_cv_CC_dependencies_compiler_type=none
3746 if test "$am_compiler_list" = ""; then
3747 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3748 fi
3749 am__universal=false
3750 case " $depcc " in #(
3751 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3752 esac
3753
3754 for depmode in $am_compiler_list; do
3755 # Setup a source with many dependencies, because some compilers
3756 # like to wrap large dependency lists on column 80 (with \), and
3757 # we should not choose a depcomp mode which is confused by this.
3758 #
3759 # We need to recreate these files for each test, as the compiler may
3760 # overwrite some of them when testing with obscure command lines.
3761 # This happens at least with the AIX C compiler.
3762 : > sub/conftest.c
3763 for i in 1 2 3 4 5 6; do
3764 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3765 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3766 # Solaris 8's {/usr,}/bin/sh.
3767 touch sub/conftst$i.h
3768 done
3769 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3770
3771 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3772 # mode. It turns out that the SunPro C++ compiler does not properly
3773 # handle `-M -o', and we need to detect this. Also, some Intel
3774 # versions had trouble with output in subdirs
3775 am__obj=sub/conftest.${OBJEXT-o}
3776 am__minus_obj="-o $am__obj"
3777 case $depmode in
3778 gcc)
3779 # This depmode causes a compiler race in universal mode.
3780 test "$am__universal" = false || continue
3781 ;;
3782 nosideeffect)
3783 # after this tag, mechanisms are not by side-effect, so they'll
3784 # only be used when explicitly requested
3785 if test "x$enable_dependency_tracking" = xyes; then
3786 continue
3787 else
3788 break
3789 fi
3790 ;;
3791 msvisualcpp | msvcmsys)
3792 # This compiler won't grok `-c -o', but also, the minuso test has
3793 # not run yet. These depmodes are late enough in the game, and
3794 # so weak that their functioning should not be impacted.
3795 am__obj=conftest.${OBJEXT-o}
3796 am__minus_obj=
3797 ;;
3798 none) break ;;
3799 esac
3800 if depmode=$depmode \
3801 source=sub/conftest.c object=$am__obj \
3802 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3803 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3804 >/dev/null 2>conftest.err &&
3805 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3806 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3807 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3808 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3809 # icc doesn't choke on unknown options, it will just issue warnings
3810 # or remarks (even with -Werror). So we grep stderr for any message
3811 # that says an option was ignored or not supported.
3812 # When given -MP, icc 7.0 and 7.1 complain thusly:
3813 # icc: Command line warning: ignoring option '-M'; no argument required
3814 # The diagnosis changed in icc 8.0:
3815 # icc: Command line remark: option '-MP' not supported
3816 if (grep 'ignoring option' conftest.err ||
3817 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3818 am_cv_CC_dependencies_compiler_type=$depmode
3819 break
3820 fi
3821 fi
3822 done
3823
3824 cd ..
3825 rm -rf conftest.dir
3826 else
3827 am_cv_CC_dependencies_compiler_type=none
3828 fi
3829
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3832 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3833 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3834
3835 if
3836 test "x$enable_dependency_tracking" != xno \
3837 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3838 am__fastdepCC_TRUE=
3839 am__fastdepCC_FALSE='#'
3840 else
3841 am__fastdepCC_TRUE='#'
3842 am__fastdepCC_FALSE=
3843 fi
3844
3845
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3847 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3848 if test "${ac_cv_path_SED+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3852 for ac_i in 1 2 3 4 5 6 7; do
3853 ac_script="$ac_script$as_nl$ac_script"
3854 done
3855 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3856 { ac_script=; unset ac_script;}
3857 if test -z "$SED"; then
3858 ac_path_SED_found=false
3859 # Loop through the user's path and test for each of PROGNAME-LIST
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_prog in sed gsed; do
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3868 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3869 # Check for GNU ac_path_SED and select it if it is found.
3870 # Check for GNU $ac_path_SED
3871 case `"$ac_path_SED" --version 2>&1` in
3872 *GNU*)
3873 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3874 *)
3875 ac_count=0
3876 $as_echo_n 0123456789 >"conftest.in"
3877 while :
3878 do
3879 cat "conftest.in" "conftest.in" >"conftest.tmp"
3880 mv "conftest.tmp" "conftest.in"
3881 cp "conftest.in" "conftest.nl"
3882 $as_echo '' >> "conftest.nl"
3883 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3885 as_fn_arith $ac_count + 1 && ac_count=$as_val
3886 if test $ac_count -gt ${ac_path_SED_max-0}; then
3887 # Best one so far, save it but keep looking for a better one
3888 ac_cv_path_SED="$ac_path_SED"
3889 ac_path_SED_max=$ac_count
3890 fi
3891 # 10*(2^10) chars as input seems more than enough
3892 test $ac_count -gt 10 && break
3893 done
3894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3895 esac
3896
3897 $ac_path_SED_found && break 3
3898 done
3899 done
3900 done
3901 IFS=$as_save_IFS
3902 if test -z "$ac_cv_path_SED"; then
3903 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3904 fi
3905 else
3906 ac_cv_path_SED=$SED
3907 fi
3908
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3911 $as_echo "$ac_cv_path_SED" >&6; }
3912 SED="$ac_cv_path_SED"
3913 rm -f conftest.sed
3914
3915 test -z "$SED" && SED=sed
3916 Xsed="$SED -e 1s/^X//"
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3929 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3930 if test "${ac_cv_path_GREP+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 if test -z "$GREP"; then
3934 ac_path_GREP_found=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938 do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_prog in grep ggrep; do
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3945 # Check for GNU ac_path_GREP and select it if it is found.
3946 # Check for GNU $ac_path_GREP
3947 case `"$ac_path_GREP" --version 2>&1` in
3948 *GNU*)
3949 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3950 *)
3951 ac_count=0
3952 $as_echo_n 0123456789 >"conftest.in"
3953 while :
3954 do
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
3958 $as_echo 'GREP' >> "conftest.nl"
3959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961 as_fn_arith $ac_count + 1 && ac_count=$as_val
3962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_GREP="$ac_path_GREP"
3965 ac_path_GREP_max=$ac_count
3966 fi
3967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3969 done
3970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971 esac
3972
3973 $ac_path_GREP_found && break 3
3974 done
3975 done
3976 done
3977 IFS=$as_save_IFS
3978 if test -z "$ac_cv_path_GREP"; then
3979 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3980 fi
3981 else
3982 ac_cv_path_GREP=$GREP
3983 fi
3984
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3987 $as_echo "$ac_cv_path_GREP" >&6; }
3988 GREP="$ac_cv_path_GREP"
3989
3990
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3992 $as_echo_n "checking for egrep... " >&6; }
3993 if test "${ac_cv_path_EGREP+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3997 then ac_cv_path_EGREP="$GREP -E"
3998 else
3999 if test -z "$EGREP"; then
4000 ac_path_EGREP_found=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004 do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_prog in egrep; do
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4010 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4011 # Check for GNU ac_path_EGREP and select it if it is found.
4012 # Check for GNU $ac_path_EGREP
4013 case `"$ac_path_EGREP" --version 2>&1` in
4014 *GNU*)
4015 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4016 *)
4017 ac_count=0
4018 $as_echo_n 0123456789 >"conftest.in"
4019 while :
4020 do
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
4024 $as_echo 'EGREP' >> "conftest.nl"
4025 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027 as_fn_arith $ac_count + 1 && ac_count=$as_val
4028 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_EGREP="$ac_path_EGREP"
4031 ac_path_EGREP_max=$ac_count
4032 fi
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4035 done
4036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037 esac
4038
4039 $ac_path_EGREP_found && break 3
4040 done
4041 done
4042 done
4043 IFS=$as_save_IFS
4044 if test -z "$ac_cv_path_EGREP"; then
4045 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4046 fi
4047 else
4048 ac_cv_path_EGREP=$EGREP
4049 fi
4050
4051 fi
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4054 $as_echo "$ac_cv_path_EGREP" >&6; }
4055 EGREP="$ac_cv_path_EGREP"
4056
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4059 $as_echo_n "checking for fgrep... " >&6; }
4060 if test "${ac_cv_path_FGREP+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4064 then ac_cv_path_FGREP="$GREP -F"
4065 else
4066 if test -z "$FGREP"; then
4067 ac_path_FGREP_found=false
4068 # Loop through the user's path and test for each of PROGNAME-LIST
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071 do
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_prog in fgrep; do
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4077 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4078 # Check for GNU ac_path_FGREP and select it if it is found.
4079 # Check for GNU $ac_path_FGREP
4080 case `"$ac_path_FGREP" --version 2>&1` in
4081 *GNU*)
4082 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4083 *)
4084 ac_count=0
4085 $as_echo_n 0123456789 >"conftest.in"
4086 while :
4087 do
4088 cat "conftest.in" "conftest.in" >"conftest.tmp"
4089 mv "conftest.tmp" "conftest.in"
4090 cp "conftest.in" "conftest.nl"
4091 $as_echo 'FGREP' >> "conftest.nl"
4092 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094 as_fn_arith $ac_count + 1 && ac_count=$as_val
4095 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4096 # Best one so far, save it but keep looking for a better one
4097 ac_cv_path_FGREP="$ac_path_FGREP"
4098 ac_path_FGREP_max=$ac_count
4099 fi
4100 # 10*(2^10) chars as input seems more than enough
4101 test $ac_count -gt 10 && break
4102 done
4103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104 esac
4105
4106 $ac_path_FGREP_found && break 3
4107 done
4108 done
4109 done
4110 IFS=$as_save_IFS
4111 if test -z "$ac_cv_path_FGREP"; then
4112 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4113 fi
4114 else
4115 ac_cv_path_FGREP=$FGREP
4116 fi
4117
4118 fi
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4121 $as_echo "$ac_cv_path_FGREP" >&6; }
4122 FGREP="$ac_cv_path_FGREP"
4123
4124
4125 test -z "$GREP" && GREP=grep
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145 # Check whether --with-gnu-ld was given.
4146 if test "${with_gnu_ld+set}" = set; then :
4147 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4148 else
4149 with_gnu_ld=no
4150 fi
4151
4152 ac_prog=ld
4153 if test "$GCC" = yes; then
4154 # Check if gcc -print-prog-name=ld gives a path.
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4156 $as_echo_n "checking for ld used by $CC... " >&6; }
4157 case $host in
4158 *-*-mingw*)
4159 # gcc leaves a trailing carriage return which upsets mingw
4160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4161 *)
4162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4163 esac
4164 case $ac_prog in
4165 # Accept absolute paths.
4166 [\\/]* | ?:[\\/]*)
4167 re_direlt='/[^/][^/]*/\.\./'
4168 # Canonicalize the pathname of ld
4169 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4170 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4171 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4172 done
4173 test -z "$LD" && LD="$ac_prog"
4174 ;;
4175 "")
4176 # If it fails, then pretend we aren't using GCC.
4177 ac_prog=ld
4178 ;;
4179 *)
4180 # If it is relative, then search for the first ld in PATH.
4181 with_gnu_ld=unknown
4182 ;;
4183 esac
4184 elif test "$with_gnu_ld" = yes; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4186 $as_echo_n "checking for GNU ld... " >&6; }
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4189 $as_echo_n "checking for non-GNU ld... " >&6; }
4190 fi
4191 if test "${lt_cv_path_LD+set}" = set; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -z "$LD"; then
4195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4196 for ac_dir in $PATH; do
4197 IFS="$lt_save_ifs"
4198 test -z "$ac_dir" && ac_dir=.
4199 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4200 lt_cv_path_LD="$ac_dir/$ac_prog"
4201 # Check to see if the program is GNU ld. I'd rather use --version,
4202 # but apparently some variants of GNU ld only accept -v.
4203 # Break only if it was the GNU/non-GNU ld that we prefer.
4204 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4205 *GNU* | *'with BFD'*)
4206 test "$with_gnu_ld" != no && break
4207 ;;
4208 *)
4209 test "$with_gnu_ld" != yes && break
4210 ;;
4211 esac
4212 fi
4213 done
4214 IFS="$lt_save_ifs"
4215 else
4216 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4217 fi
4218 fi
4219
4220 LD="$lt_cv_path_LD"
4221 if test -n "$LD"; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4223 $as_echo "$LD" >&6; }
4224 else
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4227 fi
4228 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4231 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4235 case `$LD -v 2>&1 </dev/null` in
4236 *GNU* | *'with BFD'*)
4237 lt_cv_prog_gnu_ld=yes
4238 ;;
4239 *)
4240 lt_cv_prog_gnu_ld=no
4241 ;;
4242 esac
4243 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4245 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4246 with_gnu_ld=$lt_cv_prog_gnu_ld
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4257 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4258 if test "${lt_cv_path_NM+set}" = set; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if test -n "$NM"; then
4262 # Let the user override the test.
4263 lt_cv_path_NM="$NM"
4264 else
4265 lt_nm_to_check="${ac_tool_prefix}nm"
4266 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4267 lt_nm_to_check="$lt_nm_to_check nm"
4268 fi
4269 for lt_tmp_nm in $lt_nm_to_check; do
4270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4271 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4272 IFS="$lt_save_ifs"
4273 test -z "$ac_dir" && ac_dir=.
4274 tmp_nm="$ac_dir/$lt_tmp_nm"
4275 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4276 # Check to see if the nm accepts a BSD-compat flag.
4277 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4278 # nm: unknown option "B" ignored
4279 # Tru64's nm complains that /dev/null is an invalid object file
4280 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4281 */dev/null* | *'Invalid file or object type'*)
4282 lt_cv_path_NM="$tmp_nm -B"
4283 break
4284 ;;
4285 *)
4286 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4287 */dev/null*)
4288 lt_cv_path_NM="$tmp_nm -p"
4289 break
4290 ;;
4291 *)
4292 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4293 continue # so that we can try to find one that supports BSD flags
4294 ;;
4295 esac
4296 ;;
4297 esac
4298 fi
4299 done
4300 IFS="$lt_save_ifs"
4301 done
4302 : ${lt_cv_path_NM=no}
4303 fi
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4306 $as_echo "$lt_cv_path_NM" >&6; }
4307 if test "$lt_cv_path_NM" != "no"; then
4308 NM="$lt_cv_path_NM"
4309 else
4310 # Didn't find any BSD compatible name lister, look for dumpbin.
4311 if test -n "$DUMPBIN"; then :
4312 # Let the user override the test.
4313 else
4314 if test -n "$ac_tool_prefix"; then
4315 for ac_prog in dumpbin "link -dump"
4316 do
4317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if test -n "$DUMPBIN"; then
4325 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4329 do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338 done
4339 done
4340 IFS=$as_save_IFS
4341
4342 fi
4343 fi
4344 DUMPBIN=$ac_cv_prog_DUMPBIN
4345 if test -n "$DUMPBIN"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4347 $as_echo "$DUMPBIN" >&6; }
4348 else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352
4353
4354 test -n "$DUMPBIN" && break
4355 done
4356 fi
4357 if test -z "$DUMPBIN"; then
4358 ac_ct_DUMPBIN=$DUMPBIN
4359 for ac_prog in dumpbin "link -dump"
4360 do
4361 # Extract the first word of "$ac_prog", so it can be a program name with args.
4362 set dummy $ac_prog; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 if test -n "$ac_ct_DUMPBIN"; then
4369 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH
4373 do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4381 fi
4382 done
4383 done
4384 IFS=$as_save_IFS
4385
4386 fi
4387 fi
4388 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4389 if test -n "$ac_ct_DUMPBIN"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4391 $as_echo "$ac_ct_DUMPBIN" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4395 fi
4396
4397
4398 test -n "$ac_ct_DUMPBIN" && break
4399 done
4400
4401 if test "x$ac_ct_DUMPBIN" = x; then
4402 DUMPBIN=":"
4403 else
4404 case $cross_compiling:$ac_tool_warned in
4405 yes:)
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4408 ac_tool_warned=yes ;;
4409 esac
4410 DUMPBIN=$ac_ct_DUMPBIN
4411 fi
4412 fi
4413
4414 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4415 *COFF*)
4416 DUMPBIN="$DUMPBIN -symbols"
4417 ;;
4418 *)
4419 DUMPBIN=:
4420 ;;
4421 esac
4422 fi
4423
4424 if test "$DUMPBIN" != ":"; then
4425 NM="$DUMPBIN"
4426 fi
4427 fi
4428 test -z "$NM" && NM=nm
4429
4430
4431
4432
4433
4434
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4436 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4437 if test "${lt_cv_nm_interface+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 lt_cv_nm_interface="BSD nm"
4441 echo "int some_variable = 0;" > conftest.$ac_ext
4442 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4443 (eval "$ac_compile" 2>conftest.err)
4444 cat conftest.err >&5
4445 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4446 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4447 cat conftest.err >&5
4448 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4449 cat conftest.out >&5
4450 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4451 lt_cv_nm_interface="MS dumpbin"
4452 fi
4453 rm -f conftest*
4454 fi
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4456 $as_echo "$lt_cv_nm_interface" >&6; }
4457
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4459 $as_echo_n "checking whether ln -s works... " >&6; }
4460 LN_S=$as_ln_s
4461 if test "$LN_S" = "ln -s"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4463 $as_echo "yes" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4466 $as_echo "no, using $LN_S" >&6; }
4467 fi
4468
4469 # find the maximum length of command line arguments
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4471 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4472 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 i=0
4476 teststring="ABCD"
4477
4478 case $build_os in
4479 msdosdjgpp*)
4480 # On DJGPP, this test can blow up pretty badly due to problems in libc
4481 # (any single argument exceeding 2000 bytes causes a buffer overrun
4482 # during glob expansion). Even if it were fixed, the result of this
4483 # check would be larger than it should be.
4484 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4485 ;;
4486
4487 gnu*)
4488 # Under GNU Hurd, this test is not required because there is
4489 # no limit to the length of command line arguments.
4490 # Libtool will interpret -1 as no limit whatsoever
4491 lt_cv_sys_max_cmd_len=-1;
4492 ;;
4493
4494 cygwin* | mingw* | cegcc*)
4495 # On Win9x/ME, this test blows up -- it succeeds, but takes
4496 # about 5 minutes as the teststring grows exponentially.
4497 # Worse, since 9x/ME are not pre-emptively multitasking,
4498 # you end up with a "frozen" computer, even though with patience
4499 # the test eventually succeeds (with a max line length of 256k).
4500 # Instead, let's just punt: use the minimum linelength reported by
4501 # all of the supported platforms: 8192 (on NT/2K/XP).
4502 lt_cv_sys_max_cmd_len=8192;
4503 ;;
4504
4505 mint*)
4506 # On MiNT this can take a long time and run out of memory.
4507 lt_cv_sys_max_cmd_len=8192;
4508 ;;
4509
4510 amigaos*)
4511 # On AmigaOS with pdksh, this test takes hours, literally.
4512 # So we just punt and use a minimum line length of 8192.
4513 lt_cv_sys_max_cmd_len=8192;
4514 ;;
4515
4516 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4517 # This has been around since 386BSD, at least. Likely further.
4518 if test -x /sbin/sysctl; then
4519 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4520 elif test -x /usr/sbin/sysctl; then
4521 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4522 else
4523 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4524 fi
4525 # And add a safety zone
4526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4528 ;;
4529
4530 interix*)
4531 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4532 lt_cv_sys_max_cmd_len=196608
4533 ;;
4534
4535 osf*)
4536 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4537 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4538 # nice to cause kernel panics so lets avoid the loop below.
4539 # First set a reasonable default.
4540 lt_cv_sys_max_cmd_len=16384
4541 #
4542 if test -x /sbin/sysconfig; then
4543 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4544 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4545 esac
4546 fi
4547 ;;
4548 sco3.2v5*)
4549 lt_cv_sys_max_cmd_len=102400
4550 ;;
4551 sysv5* | sco5v6* | sysv4.2uw2*)
4552 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4553 if test -n "$kargmax"; then
4554 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4555 else
4556 lt_cv_sys_max_cmd_len=32768
4557 fi
4558 ;;
4559 *)
4560 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4561 if test -n "$lt_cv_sys_max_cmd_len"; then
4562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4564 else
4565 # Make teststring a little bigger before we do anything with it.
4566 # a 1K string should be a reasonable start.
4567 for i in 1 2 3 4 5 6 7 8 ; do
4568 teststring=$teststring$teststring
4569 done
4570 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4571 # If test is not a shell built-in, we'll probably end up computing a
4572 # maximum length that is only half of the actual maximum length, but
4573 # we can't tell.
4574 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4575 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4576 test $i != 17 # 1/2 MB should be enough
4577 do
4578 i=`expr $i + 1`
4579 teststring=$teststring$teststring
4580 done
4581 # Only check the string length outside the loop.
4582 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4583 teststring=
4584 # Add a significant safety factor because C++ compilers can tack on
4585 # massive amounts of additional arguments before passing them to the
4586 # linker. It appears as though 1/2 is a usable value.
4587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4588 fi
4589 ;;
4590 esac
4591
4592 fi
4593
4594 if test -n $lt_cv_sys_max_cmd_len ; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4596 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4597 else
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4599 $as_echo "none" >&6; }
4600 fi
4601 max_cmd_len=$lt_cv_sys_max_cmd_len
4602
4603
4604
4605
4606
4607
4608 : ${CP="cp -f"}
4609 : ${MV="mv -f"}
4610 : ${RM="rm -f"}
4611
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4613 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4614 # Try some XSI features
4615 xsi_shell=no
4616 ( _lt_dummy="a/b/c"
4617 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4618 = c,a/b,, \
4619 && eval 'test $(( 1 + 1 )) -eq 2 \
4620 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4621 && xsi_shell=yes
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4623 $as_echo "$xsi_shell" >&6; }
4624
4625
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4627 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4628 lt_shell_append=no
4629 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4630 >/dev/null 2>&1 \
4631 && lt_shell_append=yes
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4633 $as_echo "$lt_shell_append" >&6; }
4634
4635
4636 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4637 lt_unset=unset
4638 else
4639 lt_unset=false
4640 fi
4641
4642
4643
4644
4645
4646 # test EBCDIC or ASCII
4647 case `echo X|tr X '\101'` in
4648 A) # ASCII based system
4649 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4650 lt_SP2NL='tr \040 \012'
4651 lt_NL2SP='tr \015\012 \040\040'
4652 ;;
4653 *) # EBCDIC based system
4654 lt_SP2NL='tr \100 \n'
4655 lt_NL2SP='tr \r\n \100\100'
4656 ;;
4657 esac
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4668 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4669 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 lt_cv_ld_reload_flag='-r'
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4675 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4676 reload_flag=$lt_cv_ld_reload_flag
4677 case $reload_flag in
4678 "" | " "*) ;;
4679 *) reload_flag=" $reload_flag" ;;
4680 esac
4681 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4682 case $host_os in
4683 darwin*)
4684 if test "$GCC" = yes; then
4685 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4686 else
4687 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4688 fi
4689 ;;
4690 esac
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700 if test -n "$ac_tool_prefix"; then
4701 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4702 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if test -n "$OBJDUMP"; then
4709 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4721 fi
4722 done
4723 done
4724 IFS=$as_save_IFS
4725
4726 fi
4727 fi
4728 OBJDUMP=$ac_cv_prog_OBJDUMP
4729 if test -n "$OBJDUMP"; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4731 $as_echo "$OBJDUMP" >&6; }
4732 else
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 fi
4736
4737
4738 fi
4739 if test -z "$ac_cv_prog_OBJDUMP"; then
4740 ac_ct_OBJDUMP=$OBJDUMP
4741 # Extract the first word of "objdump", so it can be a program name with args.
4742 set dummy objdump; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if test -n "$ac_ct_OBJDUMP"; then
4749 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762 done
4763 done
4764 IFS=$as_save_IFS
4765
4766 fi
4767 fi
4768 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4769 if test -n "$ac_ct_OBJDUMP"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4771 $as_echo "$ac_ct_OBJDUMP" >&6; }
4772 else
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776
4777 if test "x$ac_ct_OBJDUMP" = x; then
4778 OBJDUMP="false"
4779 else
4780 case $cross_compiling:$ac_tool_warned in
4781 yes:)
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4784 ac_tool_warned=yes ;;
4785 esac
4786 OBJDUMP=$ac_ct_OBJDUMP
4787 fi
4788 else
4789 OBJDUMP="$ac_cv_prog_OBJDUMP"
4790 fi
4791
4792 test -z "$OBJDUMP" && OBJDUMP=objdump
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4803 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4804 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 lt_cv_file_magic_cmd='$MAGIC_CMD'
4808 lt_cv_file_magic_test_file=
4809 lt_cv_deplibs_check_method='unknown'
4810 # Need to set the preceding variable on all platforms that support
4811 # interlibrary dependencies.
4812 # 'none' -- dependencies not supported.
4813 # `unknown' -- same as none, but documents that we really don't know.
4814 # 'pass_all' -- all dependencies passed with no checks.
4815 # 'test_compile' -- check by making test program.
4816 # 'file_magic [[regex]]' -- check by looking for files in library path
4817 # which responds to the $file_magic_cmd with a given extended regex.
4818 # If you have `file' or equivalent on your system and you're not sure
4819 # whether `pass_all' will *always* work, you probably want this one.
4820
4821 case $host_os in
4822 aix[4-9]*)
4823 lt_cv_deplibs_check_method=pass_all
4824 ;;
4825
4826 beos*)
4827 lt_cv_deplibs_check_method=pass_all
4828 ;;
4829
4830 bsdi[45]*)
4831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4832 lt_cv_file_magic_cmd='/usr/bin/file -L'
4833 lt_cv_file_magic_test_file=/shlib/libc.so
4834 ;;
4835
4836 cygwin*)
4837 # func_win32_libid is a shell function defined in ltmain.sh
4838 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4839 lt_cv_file_magic_cmd='func_win32_libid'
4840 ;;
4841
4842 mingw* | pw32*)
4843 # Base MSYS/MinGW do not provide the 'file' command needed by
4844 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4845 # unless we find 'file', for example because we are cross-compiling.
4846 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4847 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4848 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4849 lt_cv_file_magic_cmd='func_win32_libid'
4850 else
4851 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4852 lt_cv_file_magic_cmd='$OBJDUMP -f'
4853 fi
4854 ;;
4855
4856 cegcc*)
4857 # use the weaker test based on 'objdump'. See mingw*.
4858 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4859 lt_cv_file_magic_cmd='$OBJDUMP -f'
4860 ;;
4861
4862 darwin* | rhapsody*)
4863 lt_cv_deplibs_check_method=pass_all
4864 ;;
4865
4866 freebsd* | dragonfly*)
4867 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4868 case $host_cpu in
4869 i*86 )
4870 # Not sure whether the presence of OpenBSD here was a mistake.
4871 # Let's accept both of them until this is cleared up.
4872 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4873 lt_cv_file_magic_cmd=/usr/bin/file
4874 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4875 ;;
4876 esac
4877 else
4878 lt_cv_deplibs_check_method=pass_all
4879 fi
4880 ;;
4881
4882 gnu*)
4883 lt_cv_deplibs_check_method=pass_all
4884 ;;
4885
4886 haiku*)
4887 lt_cv_deplibs_check_method=pass_all
4888 ;;
4889
4890 hpux10.20* | hpux11*)
4891 lt_cv_file_magic_cmd=/usr/bin/file
4892 case $host_cpu in
4893 ia64*)
4894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4895 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4896 ;;
4897 hppa*64*)
4898 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]'
4899 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4900 ;;
4901 *)
4902 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4903 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4904 ;;
4905 esac
4906 ;;
4907
4908 interix[3-9]*)
4909 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4911 ;;
4912
4913 irix5* | irix6* | nonstopux*)
4914 case $LD in
4915 *-32|*"-32 ") libmagic=32-bit;;
4916 *-n32|*"-n32 ") libmagic=N32;;
4917 *-64|*"-64 ") libmagic=64-bit;;
4918 *) libmagic=never-match;;
4919 esac
4920 lt_cv_deplibs_check_method=pass_all
4921 ;;
4922
4923 # This must be Linux ELF.
4924 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4925 lt_cv_deplibs_check_method=pass_all
4926 ;;
4927
4928 netbsd*)
4929 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4931 else
4932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4933 fi
4934 ;;
4935
4936 newos6*)
4937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4938 lt_cv_file_magic_cmd=/usr/bin/file
4939 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4940 ;;
4941
4942 *nto* | *qnx*)
4943 lt_cv_deplibs_check_method=pass_all
4944 ;;
4945
4946 openbsd*)
4947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4949 else
4950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4951 fi
4952 ;;
4953
4954 osf3* | osf4* | osf5*)
4955 lt_cv_deplibs_check_method=pass_all
4956 ;;
4957
4958 rdos*)
4959 lt_cv_deplibs_check_method=pass_all
4960 ;;
4961
4962 solaris*)
4963 lt_cv_deplibs_check_method=pass_all
4964 ;;
4965
4966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
4969
4970 sysv4 | sysv4.3*)
4971 case $host_vendor in
4972 motorola)
4973 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]'
4974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4975 ;;
4976 ncr)
4977 lt_cv_deplibs_check_method=pass_all
4978 ;;
4979 sequent)
4980 lt_cv_file_magic_cmd='/bin/file'
4981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4982 ;;
4983 sni)
4984 lt_cv_file_magic_cmd='/bin/file'
4985 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4986 lt_cv_file_magic_test_file=/lib/libc.so
4987 ;;
4988 siemens)
4989 lt_cv_deplibs_check_method=pass_all
4990 ;;
4991 pc)
4992 lt_cv_deplibs_check_method=pass_all
4993 ;;
4994 esac
4995 ;;
4996
4997 tpf*)
4998 lt_cv_deplibs_check_method=pass_all
4999 ;;
5000 esac
5001
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5004 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5005 file_magic_cmd=$lt_cv_file_magic_cmd
5006 deplibs_check_method=$lt_cv_deplibs_check_method
5007 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020 if test -n "$ac_tool_prefix"; then
5021 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5022 set dummy ${ac_tool_prefix}ar; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if test "${ac_cv_prog_AR+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$AR"; then
5029 ac_cv_prog_AR="$AR" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_AR="${ac_tool_prefix}ar"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042 done
5043 done
5044 IFS=$as_save_IFS
5045
5046 fi
5047 fi
5048 AR=$ac_cv_prog_AR
5049 if test -n "$AR"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5051 $as_echo "$AR" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056
5057
5058 fi
5059 if test -z "$ac_cv_prog_AR"; then
5060 ac_ct_AR=$AR
5061 # Extract the first word of "ar", so it can be a program name with args.
5062 set dummy ar; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$ac_ct_AR"; then
5069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_prog_ac_ct_AR="ar"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5089 if test -n "$ac_ct_AR"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5091 $as_echo "$ac_ct_AR" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097 if test "x$ac_ct_AR" = x; then
5098 AR="false"
5099 else
5100 case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106 AR=$ac_ct_AR
5107 fi
5108 else
5109 AR="$ac_cv_prog_AR"
5110 fi
5111
5112 test -z "$AR" && AR=ar
5113 test -z "$AR_FLAGS" && AR_FLAGS=cru
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125 if test -n "$ac_tool_prefix"; then
5126 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5127 set dummy ${ac_tool_prefix}strip; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if test "${ac_cv_prog_STRIP+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -n "$STRIP"; then
5134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147 done
5148 done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 STRIP=$ac_cv_prog_STRIP
5154 if test -n "$STRIP"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5156 $as_echo "$STRIP" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162
5163 fi
5164 if test -z "$ac_cv_prog_STRIP"; then
5165 ac_ct_STRIP=$STRIP
5166 # Extract the first word of "strip", so it can be a program name with args.
5167 set dummy strip; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -n "$ac_ct_STRIP"; then
5174 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5178 do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_prog_ac_ct_STRIP="strip"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5186 fi
5187 done
5188 done
5189 IFS=$as_save_IFS
5190
5191 fi
5192 fi
5193 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5194 if test -n "$ac_ct_STRIP"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5196 $as_echo "$ac_ct_STRIP" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5200 fi
5201
5202 if test "x$ac_ct_STRIP" = x; then
5203 STRIP=":"
5204 else
5205 case $cross_compiling:$ac_tool_warned in
5206 yes:)
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209 ac_tool_warned=yes ;;
5210 esac
5211 STRIP=$ac_ct_STRIP
5212 fi
5213 else
5214 STRIP="$ac_cv_prog_STRIP"
5215 fi
5216
5217 test -z "$STRIP" && STRIP=:
5218
5219
5220
5221
5222
5223
5224 if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5226 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -n "$RANLIB"; then
5233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246 done
5247 done
5248 IFS=$as_save_IFS
5249
5250 fi
5251 fi
5252 RANLIB=$ac_cv_prog_RANLIB
5253 if test -n "$RANLIB"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5255 $as_echo "$RANLIB" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261
5262 fi
5263 if test -z "$ac_cv_prog_RANLIB"; then
5264 ac_ct_RANLIB=$RANLIB
5265 # Extract the first word of "ranlib", so it can be a program name with args.
5266 set dummy ranlib; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$ac_ct_RANLIB"; then
5273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_ac_ct_RANLIB="ranlib"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5293 if test -n "$ac_ct_RANLIB"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5295 $as_echo "$ac_ct_RANLIB" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301 if test "x$ac_ct_RANLIB" = x; then
5302 RANLIB=":"
5303 else
5304 case $cross_compiling:$ac_tool_warned in
5305 yes:)
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308 ac_tool_warned=yes ;;
5309 esac
5310 RANLIB=$ac_ct_RANLIB
5311 fi
5312 else
5313 RANLIB="$ac_cv_prog_RANLIB"
5314 fi
5315
5316 test -z "$RANLIB" && RANLIB=:
5317
5318
5319
5320
5321
5322
5323 # Determine commands to create old-style static archives.
5324 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5325 old_postinstall_cmds='chmod 644 $oldlib'
5326 old_postuninstall_cmds=
5327
5328 if test -n "$RANLIB"; then
5329 case $host_os in
5330 openbsd*)
5331 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5332 ;;
5333 *)
5334 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5335 ;;
5336 esac
5337 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5338 fi
5339
5340 case $host_os in
5341 darwin*)
5342 lock_old_archive_extraction=yes ;;
5343 *)
5344 lock_old_archive_extraction=no ;;
5345 esac
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 # If no C compiler was specified, use CC.
5386 LTCC=${LTCC-"$CC"}
5387
5388 # If no C compiler flags were specified, use CFLAGS.
5389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5390
5391 # Allow CC to be a program name with arguments.
5392 compiler=$CC
5393
5394
5395 # Check for command to grab the raw symbol name followed by C symbol from nm.
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5397 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5398 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401
5402 # These are sane defaults that work on at least a few old systems.
5403 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5404
5405 # Character class describing NM global symbol codes.
5406 symcode='[BCDEGRST]'
5407
5408 # Regexp to match symbols that can be accessed directly from C.
5409 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5410
5411 # Define system-specific variables.
5412 case $host_os in
5413 aix*)
5414 symcode='[BCDT]'
5415 ;;
5416 cygwin* | mingw* | pw32* | cegcc*)
5417 symcode='[ABCDGISTW]'
5418 ;;
5419 hpux*)
5420 if test "$host_cpu" = ia64; then
5421 symcode='[ABCDEGRST]'
5422 fi
5423 ;;
5424 irix* | nonstopux*)
5425 symcode='[BCDEGRST]'
5426 ;;
5427 osf*)
5428 symcode='[BCDEGQRST]'
5429 ;;
5430 solaris*)
5431 symcode='[BDRT]'
5432 ;;
5433 sco3.2v5*)
5434 symcode='[DT]'
5435 ;;
5436 sysv4.2uw2*)
5437 symcode='[DT]'
5438 ;;
5439 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5440 symcode='[ABDT]'
5441 ;;
5442 sysv4)
5443 symcode='[DFNSTU]'
5444 ;;
5445 esac
5446
5447 # If we're using GNU nm, then use its standard symbol codes.
5448 case `$NM -V 2>&1` in
5449 *GNU* | *'with BFD'*)
5450 symcode='[ABCDGIRSTW]' ;;
5451 esac
5452
5453 # Transform an extracted symbol line into a proper C declaration.
5454 # Some systems (esp. on ia64) link data and code symbols differently,
5455 # so use this general approach.
5456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5457
5458 # Transform an extracted symbol line into symbol name and symbol address
5459 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5460 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'"
5461
5462 # Handle CRLF in mingw tool chain
5463 opt_cr=
5464 case $build_os in
5465 mingw*)
5466 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5467 ;;
5468 esac
5469
5470 # Try without a prefix underscore, then with it.
5471 for ac_symprfx in "" "_"; do
5472
5473 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5474 symxfrm="\\1 $ac_symprfx\\2 \\2"
5475
5476 # Write the raw and C identifiers.
5477 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5478 # Fake it for dumpbin and say T for any non-static function
5479 # and D for any global variable.
5480 # Also find C++ and __fastcall symbols from MSVC++,
5481 # which start with @ or ?.
5482 lt_cv_sys_global_symbol_pipe="$AWK '"\
5483 " {last_section=section; section=\$ 3};"\
5484 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5485 " \$ 0!~/External *\|/{next};"\
5486 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5487 " {if(hide[section]) next};"\
5488 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5489 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5490 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5491 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5492 " ' prfx=^$ac_symprfx"
5493 else
5494 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5495 fi
5496
5497 # Check to see that the pipe works correctly.
5498 pipe_works=no
5499
5500 rm -f conftest*
5501 cat > conftest.$ac_ext <<_LT_EOF
5502 #ifdef __cplusplus
5503 extern "C" {
5504 #endif
5505 char nm_test_var;
5506 void nm_test_func(void);
5507 void nm_test_func(void){}
5508 #ifdef __cplusplus
5509 }
5510 #endif
5511 int main(){nm_test_var='a';nm_test_func();return(0);}
5512 _LT_EOF
5513
5514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5515 (eval $ac_compile) 2>&5
5516 ac_status=$?
5517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5518 test $ac_status = 0; }; then
5519 # Now try to grab the symbols.
5520 nlist=conftest.nm
5521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5522 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5523 ac_status=$?
5524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5525 test $ac_status = 0; } && test -s "$nlist"; then
5526 # Try sorting and uniquifying the output.
5527 if sort "$nlist" | uniq > "$nlist"T; then
5528 mv -f "$nlist"T "$nlist"
5529 else
5530 rm -f "$nlist"T
5531 fi
5532
5533 # Make sure that we snagged all the symbols we need.
5534 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5535 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5536 cat <<_LT_EOF > conftest.$ac_ext
5537 #ifdef __cplusplus
5538 extern "C" {
5539 #endif
5540
5541 _LT_EOF
5542 # Now generate the symbol file.
5543 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5544
5545 cat <<_LT_EOF >> conftest.$ac_ext
5546
5547 /* The mapping between symbol names and symbols. */
5548 const struct {
5549 const char *name;
5550 void *address;
5551 }
5552 lt__PROGRAM__LTX_preloaded_symbols[] =
5553 {
5554 { "@PROGRAM@", (void *) 0 },
5555 _LT_EOF
5556 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5557 cat <<\_LT_EOF >> conftest.$ac_ext
5558 {0, (void *) 0}
5559 };
5560
5561 /* This works around a problem in FreeBSD linker */
5562 #ifdef FREEBSD_WORKAROUND
5563 static const void *lt_preloaded_setup() {
5564 return lt__PROGRAM__LTX_preloaded_symbols;
5565 }
5566 #endif
5567
5568 #ifdef __cplusplus
5569 }
5570 #endif
5571 _LT_EOF
5572 # Now try linking the two files.
5573 mv conftest.$ac_objext conftstm.$ac_objext
5574 lt_save_LIBS="$LIBS"
5575 lt_save_CFLAGS="$CFLAGS"
5576 LIBS="conftstm.$ac_objext"
5577 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5579 (eval $ac_link) 2>&5
5580 ac_status=$?
5581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5582 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5583 pipe_works=yes
5584 fi
5585 LIBS="$lt_save_LIBS"
5586 CFLAGS="$lt_save_CFLAGS"
5587 else
5588 echo "cannot find nm_test_func in $nlist" >&5
5589 fi
5590 else
5591 echo "cannot find nm_test_var in $nlist" >&5
5592 fi
5593 else
5594 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5595 fi
5596 else
5597 echo "$progname: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5599 fi
5600 rm -rf conftest* conftst*
5601
5602 # Do not use the global_symbol_pipe unless it works.
5603 if test "$pipe_works" = yes; then
5604 break
5605 else
5606 lt_cv_sys_global_symbol_pipe=
5607 fi
5608 done
5609
5610 fi
5611
5612 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5613 lt_cv_sys_global_symbol_to_cdecl=
5614 fi
5615 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5617 $as_echo "failed" >&6; }
5618 else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5620 $as_echo "ok" >&6; }
5621 fi
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 # Check whether --enable-libtool-lock was given.
5646 if test "${enable_libtool_lock+set}" = set; then :
5647 enableval=$enable_libtool_lock;
5648 fi
5649
5650 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5651
5652 # Some flags need to be propagated to the compiler or linker for good
5653 # libtool support.
5654 case $host in
5655 ia64-*-hpux*)
5656 # Find out which ABI we are using.
5657 echo 'int i;' > conftest.$ac_ext
5658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5659 (eval $ac_compile) 2>&5
5660 ac_status=$?
5661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662 test $ac_status = 0; }; then
5663 case `/usr/bin/file conftest.$ac_objext` in
5664 *ELF-32*)
5665 HPUX_IA64_MODE="32"
5666 ;;
5667 *ELF-64*)
5668 HPUX_IA64_MODE="64"
5669 ;;
5670 esac
5671 fi
5672 rm -rf conftest*
5673 ;;
5674 *-*-irix6*)
5675 # Find out which ABI we are using.
5676 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5678 (eval $ac_compile) 2>&5
5679 ac_status=$?
5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681 test $ac_status = 0; }; then
5682 if test "$lt_cv_prog_gnu_ld" = yes; then
5683 case `/usr/bin/file conftest.$ac_objext` in
5684 *32-bit*)
5685 LD="${LD-ld} -melf32bsmip"
5686 ;;
5687 *N32*)
5688 LD="${LD-ld} -melf32bmipn32"
5689 ;;
5690 *64-bit*)
5691 LD="${LD-ld} -melf64bmip"
5692 ;;
5693 esac
5694 else
5695 case `/usr/bin/file conftest.$ac_objext` in
5696 *32-bit*)
5697 LD="${LD-ld} -32"
5698 ;;
5699 *N32*)
5700 LD="${LD-ld} -n32"
5701 ;;
5702 *64-bit*)
5703 LD="${LD-ld} -64"
5704 ;;
5705 esac
5706 fi
5707 fi
5708 rm -rf conftest*
5709 ;;
5710
5711 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5712 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5713 # Find out which ABI we are using.
5714 echo 'int i;' > conftest.$ac_ext
5715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5716 (eval $ac_compile) 2>&5
5717 ac_status=$?
5718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5719 test $ac_status = 0; }; then
5720 case `/usr/bin/file conftest.o` in
5721 *32-bit*)
5722 case $host in
5723 x86_64-*kfreebsd*-gnu)
5724 LD="${LD-ld} -m elf_i386_fbsd"
5725 ;;
5726 x86_64-*linux*)
5727 LD="${LD-ld} -m elf_i386"
5728 ;;
5729 ppc64-*linux*|powerpc64-*linux*)
5730 LD="${LD-ld} -m elf32ppclinux"
5731 ;;
5732 s390x-*linux*)
5733 LD="${LD-ld} -m elf_s390"
5734 ;;
5735 sparc64-*linux*)
5736 LD="${LD-ld} -m elf32_sparc"
5737 ;;
5738 esac
5739 ;;
5740 *64-bit*)
5741 case $host in
5742 x86_64-*kfreebsd*-gnu)
5743 LD="${LD-ld} -m elf_x86_64_fbsd"
5744 ;;
5745 x86_64-*linux*)
5746 LD="${LD-ld} -m elf_x86_64"
5747 ;;
5748 ppc*-*linux*|powerpc*-*linux*)
5749 LD="${LD-ld} -m elf64ppc"
5750 ;;
5751 s390*-*linux*|s390*-*tpf*)
5752 LD="${LD-ld} -m elf64_s390"
5753 ;;
5754 sparc*-*linux*)
5755 LD="${LD-ld} -m elf64_sparc"
5756 ;;
5757 esac
5758 ;;
5759 esac
5760 fi
5761 rm -rf conftest*
5762 ;;
5763
5764 *-*-sco3.2v5*)
5765 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5766 SAVE_CFLAGS="$CFLAGS"
5767 CFLAGS="$CFLAGS -belf"
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5769 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5770 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 ac_ext=c
5774 ac_cpp='$CPP $CPPFLAGS'
5775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5778
5779 if test x$gcc_no_link = xyes; then
5780 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5781 fi
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784
5785 int
5786 main ()
5787 {
5788
5789 ;
5790 return 0;
5791 }
5792 _ACEOF
5793 if ac_fn_c_try_link "$LINENO"; then :
5794 lt_cv_cc_needs_belf=yes
5795 else
5796 lt_cv_cc_needs_belf=no
5797 fi
5798 rm -f core conftest.err conftest.$ac_objext \
5799 conftest$ac_exeext conftest.$ac_ext
5800 ac_ext=c
5801 ac_cpp='$CPP $CPPFLAGS'
5802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5805
5806 fi
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5808 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5809 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5810 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5811 CFLAGS="$SAVE_CFLAGS"
5812 fi
5813 ;;
5814 sparc*-*solaris*)
5815 # Find out which ABI we are using.
5816 echo 'int i;' > conftest.$ac_ext
5817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5818 (eval $ac_compile) 2>&5
5819 ac_status=$?
5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821 test $ac_status = 0; }; then
5822 case `/usr/bin/file conftest.o` in
5823 *64-bit*)
5824 case $lt_cv_prog_gnu_ld in
5825 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5826 *)
5827 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5828 LD="${LD-ld} -64"
5829 fi
5830 ;;
5831 esac
5832 ;;
5833 esac
5834 fi
5835 rm -rf conftest*
5836 ;;
5837 esac
5838
5839 need_locks="$enable_libtool_lock"
5840
5841
5842 case $host_os in
5843 rhapsody* | darwin*)
5844 if test -n "$ac_tool_prefix"; then
5845 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5846 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 if test -n "$DSYMUTIL"; then
5853 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5873 if test -n "$DSYMUTIL"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5875 $as_echo "$DSYMUTIL" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881
5882 fi
5883 if test -z "$ac_cv_prog_DSYMUTIL"; then
5884 ac_ct_DSYMUTIL=$DSYMUTIL
5885 # Extract the first word of "dsymutil", so it can be a program name with args.
5886 set dummy dsymutil; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 if test -n "$ac_ct_DSYMUTIL"; then
5893 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5905 fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5913 if test -n "$ac_ct_DSYMUTIL"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5915 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5916 else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920
5921 if test "x$ac_ct_DSYMUTIL" = x; then
5922 DSYMUTIL=":"
5923 else
5924 case $cross_compiling:$ac_tool_warned in
5925 yes:)
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928 ac_tool_warned=yes ;;
5929 esac
5930 DSYMUTIL=$ac_ct_DSYMUTIL
5931 fi
5932 else
5933 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5934 fi
5935
5936 if test -n "$ac_tool_prefix"; then
5937 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if test -n "$NMEDIT"; then
5945 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5954 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958 done
5959 done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 NMEDIT=$ac_cv_prog_NMEDIT
5965 if test -n "$NMEDIT"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5967 $as_echo "$NMEDIT" >&6; }
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972
5973
5974 fi
5975 if test -z "$ac_cv_prog_NMEDIT"; then
5976 ac_ct_NMEDIT=$NMEDIT
5977 # Extract the first word of "nmedit", so it can be a program name with args.
5978 set dummy nmedit; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 if test -n "$ac_ct_NMEDIT"; then
5985 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998 done
5999 done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6005 if test -n "$ac_ct_NMEDIT"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6007 $as_echo "$ac_ct_NMEDIT" >&6; }
6008 else
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012
6013 if test "x$ac_ct_NMEDIT" = x; then
6014 NMEDIT=":"
6015 else
6016 case $cross_compiling:$ac_tool_warned in
6017 yes:)
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6020 ac_tool_warned=yes ;;
6021 esac
6022 NMEDIT=$ac_ct_NMEDIT
6023 fi
6024 else
6025 NMEDIT="$ac_cv_prog_NMEDIT"
6026 fi
6027
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_LIPO+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$LIPO"; then
6037 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050 done
6051 done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 LIPO=$ac_cv_prog_LIPO
6057 if test -n "$LIPO"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6059 $as_echo "$LIPO" >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065
6066 fi
6067 if test -z "$ac_cv_prog_LIPO"; then
6068 ac_ct_LIPO=$LIPO
6069 # Extract the first word of "lipo", so it can be a program name with args.
6070 set dummy lipo; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -n "$ac_ct_LIPO"; then
6077 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_ac_ct_LIPO="lipo"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090 done
6091 done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6097 if test -n "$ac_ct_LIPO"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6099 $as_echo "$ac_ct_LIPO" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105 if test "x$ac_ct_LIPO" = x; then
6106 LIPO=":"
6107 else
6108 case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6113 esac
6114 LIPO=$ac_ct_LIPO
6115 fi
6116 else
6117 LIPO="$ac_cv_prog_LIPO"
6118 fi
6119
6120 if test -n "$ac_tool_prefix"; then
6121 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6122 set dummy ${ac_tool_prefix}otool; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 if test -n "$OTOOL"; then
6129 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6141 fi
6142 done
6143 done
6144 IFS=$as_save_IFS
6145
6146 fi
6147 fi
6148 OTOOL=$ac_cv_prog_OTOOL
6149 if test -n "$OTOOL"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6151 $as_echo "$OTOOL" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156
6157
6158 fi
6159 if test -z "$ac_cv_prog_OTOOL"; then
6160 ac_ct_OTOOL=$OTOOL
6161 # Extract the first word of "otool", so it can be a program name with args.
6162 set dummy otool; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if test -n "$ac_ct_OTOOL"; then
6169 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_ac_ct_OTOOL="otool"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6181 fi
6182 done
6183 done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6189 if test -n "$ac_ct_OTOOL"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6191 $as_echo "$ac_ct_OTOOL" >&6; }
6192 else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197 if test "x$ac_ct_OTOOL" = x; then
6198 OTOOL=":"
6199 else
6200 case $cross_compiling:$ac_tool_warned in
6201 yes:)
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6204 ac_tool_warned=yes ;;
6205 esac
6206 OTOOL=$ac_ct_OTOOL
6207 fi
6208 else
6209 OTOOL="$ac_cv_prog_OTOOL"
6210 fi
6211
6212 if test -n "$ac_tool_prefix"; then
6213 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$OTOOL64"; then
6221 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234 done
6235 done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 OTOOL64=$ac_cv_prog_OTOOL64
6241 if test -n "$OTOOL64"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6243 $as_echo "$OTOOL64" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249
6250 fi
6251 if test -z "$ac_cv_prog_OTOOL64"; then
6252 ac_ct_OTOOL64=$OTOOL64
6253 # Extract the first word of "otool64", so it can be a program name with args.
6254 set dummy otool64; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 if test -n "$ac_ct_OTOOL64"; then
6261 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_ac_ct_OTOOL64="otool64"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274 done
6275 done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6281 if test -n "$ac_ct_OTOOL64"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6283 $as_echo "$ac_ct_OTOOL64" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288
6289 if test "x$ac_ct_OTOOL64" = x; then
6290 OTOOL64=":"
6291 else
6292 case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6297 esac
6298 OTOOL64=$ac_ct_OTOOL64
6299 fi
6300 else
6301 OTOOL64="$ac_cv_prog_OTOOL64"
6302 fi
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6331 $as_echo_n "checking for -single_module linker flag... " >&6; }
6332 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 lt_cv_apple_cc_single_mod=no
6336 if test -z "${LT_MULTI_MODULE}"; then
6337 # By default we will add the -single_module flag. You can override
6338 # by either setting the environment variable LT_MULTI_MODULE
6339 # non-empty at configure time, or by adding -multi_module to the
6340 # link flags.
6341 rm -rf libconftest.dylib*
6342 echo "int foo(void){return 1;}" > conftest.c
6343 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6344 -dynamiclib -Wl,-single_module conftest.c" >&5
6345 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6346 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6347 _lt_result=$?
6348 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6349 lt_cv_apple_cc_single_mod=yes
6350 else
6351 cat conftest.err >&5
6352 fi
6353 rm -rf libconftest.dylib*
6354 rm -f conftest.*
6355 fi
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6358 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6360 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6361 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 lt_cv_ld_exported_symbols_list=no
6365 save_LDFLAGS=$LDFLAGS
6366 echo "_main" > conftest.sym
6367 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6368 if test x$gcc_no_link = xyes; then
6369 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6370 fi
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6373
6374 int
6375 main ()
6376 {
6377
6378 ;
6379 return 0;
6380 }
6381 _ACEOF
6382 if ac_fn_c_try_link "$LINENO"; then :
6383 lt_cv_ld_exported_symbols_list=yes
6384 else
6385 lt_cv_ld_exported_symbols_list=no
6386 fi
6387 rm -f core conftest.err conftest.$ac_objext \
6388 conftest$ac_exeext conftest.$ac_ext
6389 LDFLAGS="$save_LDFLAGS"
6390
6391 fi
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6393 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6395 $as_echo_n "checking for -force_load linker flag... " >&6; }
6396 if test "${lt_cv_ld_force_load+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 lt_cv_ld_force_load=no
6400 cat > conftest.c << _LT_EOF
6401 int forced_loaded() { return 2;}
6402 _LT_EOF
6403 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6404 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6405 echo "$AR cru libconftest.a conftest.o" >&5
6406 $AR cru libconftest.a conftest.o 2>&5
6407 cat > conftest.c << _LT_EOF
6408 int main() { return 0;}
6409 _LT_EOF
6410 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6411 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6412 _lt_result=$?
6413 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6414 lt_cv_ld_force_load=yes
6415 else
6416 cat conftest.err >&5
6417 fi
6418 rm -f conftest.err libconftest.a conftest conftest.c
6419 rm -rf conftest.dSYM
6420
6421 fi
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6423 $as_echo "$lt_cv_ld_force_load" >&6; }
6424 case $host_os in
6425 rhapsody* | darwin1.[012])
6426 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6427 darwin1.*)
6428 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6429 darwin*) # darwin 5.x on
6430 # if running on 10.5 or later, the deployment target defaults
6431 # to the OS version, if on x86, and 10.4, the deployment
6432 # target defaults to 10.4. Don't you love it?
6433 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6434 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6435 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6436 10.[012]*)
6437 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6438 10.*)
6439 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6440 esac
6441 ;;
6442 esac
6443 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6444 _lt_dar_single_mod='$single_module'
6445 fi
6446 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6447 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6448 else
6449 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6450 fi
6451 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6452 _lt_dsymutil='~$DSYMUTIL $lib || :'
6453 else
6454 _lt_dsymutil=
6455 fi
6456 ;;
6457 esac
6458
6459 ac_ext=c
6460 ac_cpp='$CPP $CPPFLAGS'
6461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6465 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6466 # On Suns, sometimes $CPP names a directory.
6467 if test -n "$CPP" && test -d "$CPP"; then
6468 CPP=
6469 fi
6470 if test -z "$CPP"; then
6471 if test "${ac_cv_prog_CPP+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 # Double quotes because CPP needs to be expanded
6475 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6476 do
6477 ac_preproc_ok=false
6478 for ac_c_preproc_warn_flag in '' yes
6479 do
6480 # Use a header file that comes with gcc, so configuring glibc
6481 # with a fresh cross-compiler works.
6482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6483 # <limits.h> exists even on freestanding compilers.
6484 # On the NeXT, cc -E runs the code through the compiler's parser,
6485 # not just through cpp. "Syntax error" is here to catch this case.
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 #ifdef __STDC__
6489 # include <limits.h>
6490 #else
6491 # include <assert.h>
6492 #endif
6493 Syntax error
6494 _ACEOF
6495 if ac_fn_c_try_cpp "$LINENO"; then :
6496
6497 else
6498 # Broken: fails on valid input.
6499 continue
6500 fi
6501 rm -f conftest.err conftest.$ac_ext
6502
6503 # OK, works on sane cases. Now check whether nonexistent headers
6504 # can be detected and how.
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507 #include <ac_nonexistent.h>
6508 _ACEOF
6509 if ac_fn_c_try_cpp "$LINENO"; then :
6510 # Broken: success on invalid input.
6511 continue
6512 else
6513 # Passes both tests.
6514 ac_preproc_ok=:
6515 break
6516 fi
6517 rm -f conftest.err conftest.$ac_ext
6518
6519 done
6520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6521 rm -f conftest.err conftest.$ac_ext
6522 if $ac_preproc_ok; then :
6523 break
6524 fi
6525
6526 done
6527 ac_cv_prog_CPP=$CPP
6528
6529 fi
6530 CPP=$ac_cv_prog_CPP
6531 else
6532 ac_cv_prog_CPP=$CPP
6533 fi
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6535 $as_echo "$CPP" >&6; }
6536 ac_preproc_ok=false
6537 for ac_c_preproc_warn_flag in '' yes
6538 do
6539 # Use a header file that comes with gcc, so configuring glibc
6540 # with a fresh cross-compiler works.
6541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6542 # <limits.h> exists even on freestanding compilers.
6543 # On the NeXT, cc -E runs the code through the compiler's parser,
6544 # not just through cpp. "Syntax error" is here to catch this case.
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 #ifdef __STDC__
6548 # include <limits.h>
6549 #else
6550 # include <assert.h>
6551 #endif
6552 Syntax error
6553 _ACEOF
6554 if ac_fn_c_try_cpp "$LINENO"; then :
6555
6556 else
6557 # Broken: fails on valid input.
6558 continue
6559 fi
6560 rm -f conftest.err conftest.$ac_ext
6561
6562 # OK, works on sane cases. Now check whether nonexistent headers
6563 # can be detected and how.
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6566 #include <ac_nonexistent.h>
6567 _ACEOF
6568 if ac_fn_c_try_cpp "$LINENO"; then :
6569 # Broken: success on invalid input.
6570 continue
6571 else
6572 # Passes both tests.
6573 ac_preproc_ok=:
6574 break
6575 fi
6576 rm -f conftest.err conftest.$ac_ext
6577
6578 done
6579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6580 rm -f conftest.err conftest.$ac_ext
6581 if $ac_preproc_ok; then :
6582
6583 else
6584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6586 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6587 See \`config.log' for more details." "$LINENO" 5; }
6588 fi
6589
6590 ac_ext=c
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595
6596
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6598 $as_echo_n "checking for ANSI C header files... " >&6; }
6599 if test "${ac_cv_header_stdc+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 #include <stdlib.h>
6605 #include <stdarg.h>
6606 #include <string.h>
6607 #include <float.h>
6608
6609 int
6610 main ()
6611 {
6612
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_c_try_compile "$LINENO"; then :
6618 ac_cv_header_stdc=yes
6619 else
6620 ac_cv_header_stdc=no
6621 fi
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623
6624 if test $ac_cv_header_stdc = yes; then
6625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628 #include <string.h>
6629
6630 _ACEOF
6631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6632 $EGREP "memchr" >/dev/null 2>&1; then :
6633
6634 else
6635 ac_cv_header_stdc=no
6636 fi
6637 rm -f conftest*
6638
6639 fi
6640
6641 if test $ac_cv_header_stdc = yes; then
6642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645 #include <stdlib.h>
6646
6647 _ACEOF
6648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6649 $EGREP "free" >/dev/null 2>&1; then :
6650
6651 else
6652 ac_cv_header_stdc=no
6653 fi
6654 rm -f conftest*
6655
6656 fi
6657
6658 if test $ac_cv_header_stdc = yes; then
6659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6660 if test "$cross_compiling" = yes; then :
6661 :
6662 else
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 #include <ctype.h>
6666 #include <stdlib.h>
6667 #if ((' ' & 0x0FF) == 0x020)
6668 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6669 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6670 #else
6671 # define ISLOWER(c) \
6672 (('a' <= (c) && (c) <= 'i') \
6673 || ('j' <= (c) && (c) <= 'r') \
6674 || ('s' <= (c) && (c) <= 'z'))
6675 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6676 #endif
6677
6678 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6679 int
6680 main ()
6681 {
6682 int i;
6683 for (i = 0; i < 256; i++)
6684 if (XOR (islower (i), ISLOWER (i))
6685 || toupper (i) != TOUPPER (i))
6686 return 2;
6687 return 0;
6688 }
6689 _ACEOF
6690 if ac_fn_c_try_run "$LINENO"; then :
6691
6692 else
6693 ac_cv_header_stdc=no
6694 fi
6695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6696 conftest.$ac_objext conftest.beam conftest.$ac_ext
6697 fi
6698
6699 fi
6700 fi
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6702 $as_echo "$ac_cv_header_stdc" >&6; }
6703 if test $ac_cv_header_stdc = yes; then
6704
6705 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6706
6707 fi
6708
6709 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6710 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6711 inttypes.h stdint.h unistd.h
6712 do :
6713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6714 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6715 "
6716 eval as_val=\$$as_ac_Header
6717 if test "x$as_val" = x""yes; then :
6718 cat >>confdefs.h <<_ACEOF
6719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6720 _ACEOF
6721
6722 fi
6723
6724 done
6725
6726
6727 for ac_header in dlfcn.h
6728 do :
6729 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6730 "
6731 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6732 cat >>confdefs.h <<_ACEOF
6733 #define HAVE_DLFCN_H 1
6734 _ACEOF
6735
6736 fi
6737
6738 done
6739
6740
6741
6742
6743
6744 # Set options
6745
6746
6747
6748 enable_dlopen=no
6749
6750
6751 enable_win32_dll=no
6752
6753
6754 # Check whether --enable-shared was given.
6755 if test "${enable_shared+set}" = set; then :
6756 enableval=$enable_shared; p=${PACKAGE-default}
6757 case $enableval in
6758 yes) enable_shared=yes ;;
6759 no) enable_shared=no ;;
6760 *)
6761 enable_shared=no
6762 # Look at the argument we got. We use all the common list separators.
6763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6764 for pkg in $enableval; do
6765 IFS="$lt_save_ifs"
6766 if test "X$pkg" = "X$p"; then
6767 enable_shared=yes
6768 fi
6769 done
6770 IFS="$lt_save_ifs"
6771 ;;
6772 esac
6773 else
6774 enable_shared=yes
6775 fi
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785 # Check whether --enable-static was given.
6786 if test "${enable_static+set}" = set; then :
6787 enableval=$enable_static; p=${PACKAGE-default}
6788 case $enableval in
6789 yes) enable_static=yes ;;
6790 no) enable_static=no ;;
6791 *)
6792 enable_static=no
6793 # Look at the argument we got. We use all the common list separators.
6794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6795 for pkg in $enableval; do
6796 IFS="$lt_save_ifs"
6797 if test "X$pkg" = "X$p"; then
6798 enable_static=yes
6799 fi
6800 done
6801 IFS="$lt_save_ifs"
6802 ;;
6803 esac
6804 else
6805 enable_static=yes
6806 fi
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817 # Check whether --with-pic was given.
6818 if test "${with_pic+set}" = set; then :
6819 withval=$with_pic; pic_mode="$withval"
6820 else
6821 pic_mode=default
6822 fi
6823
6824
6825 test -z "$pic_mode" && pic_mode=default
6826
6827
6828
6829
6830
6831
6832
6833 # Check whether --enable-fast-install was given.
6834 if test "${enable_fast_install+set}" = set; then :
6835 enableval=$enable_fast_install; p=${PACKAGE-default}
6836 case $enableval in
6837 yes) enable_fast_install=yes ;;
6838 no) enable_fast_install=no ;;
6839 *)
6840 enable_fast_install=no
6841 # Look at the argument we got. We use all the common list separators.
6842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6843 for pkg in $enableval; do
6844 IFS="$lt_save_ifs"
6845 if test "X$pkg" = "X$p"; then
6846 enable_fast_install=yes
6847 fi
6848 done
6849 IFS="$lt_save_ifs"
6850 ;;
6851 esac
6852 else
6853 enable_fast_install=yes
6854 fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866 # This can be used to rebuild libtool when needed
6867 LIBTOOL_DEPS="$ltmain"
6868
6869 # Always use our own libtool.
6870 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897 test -z "$LN_S" && LN_S="ln -s"
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912 if test -n "${ZSH_VERSION+set}" ; then
6913 setopt NO_GLOB_SUBST
6914 fi
6915
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6917 $as_echo_n "checking for objdir... " >&6; }
6918 if test "${lt_cv_objdir+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 rm -f .libs 2>/dev/null
6922 mkdir .libs 2>/dev/null
6923 if test -d .libs; then
6924 lt_cv_objdir=.libs
6925 else
6926 # MS-DOS does not allow filenames that begin with a dot.
6927 lt_cv_objdir=_libs
6928 fi
6929 rmdir .libs 2>/dev/null
6930 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6932 $as_echo "$lt_cv_objdir" >&6; }
6933 objdir=$lt_cv_objdir
6934
6935
6936
6937
6938
6939 cat >>confdefs.h <<_ACEOF
6940 #define LT_OBJDIR "$lt_cv_objdir/"
6941 _ACEOF
6942
6943
6944
6945
6946 case $host_os in
6947 aix3*)
6948 # AIX sometimes has problems with the GCC collect2 program. For some
6949 # reason, if we set the COLLECT_NAMES environment variable, the problems
6950 # vanish in a puff of smoke.
6951 if test "X${COLLECT_NAMES+set}" != Xset; then
6952 COLLECT_NAMES=
6953 export COLLECT_NAMES
6954 fi
6955 ;;
6956 esac
6957
6958 # Global variables:
6959 ofile=libtool
6960 can_build_shared=yes
6961
6962 # All known linkers require a `.a' archive for static linking (except MSVC,
6963 # which needs '.lib').
6964 libext=a
6965
6966 with_gnu_ld="$lt_cv_prog_gnu_ld"
6967
6968 old_CC="$CC"
6969 old_CFLAGS="$CFLAGS"
6970
6971 # Set sane defaults for various variables
6972 test -z "$CC" && CC=cc
6973 test -z "$LTCC" && LTCC=$CC
6974 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6975 test -z "$LD" && LD=ld
6976 test -z "$ac_objext" && ac_objext=o
6977
6978 for cc_temp in $compiler""; do
6979 case $cc_temp in
6980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6982 \-*) ;;
6983 *) break;;
6984 esac
6985 done
6986 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6987
6988
6989 # Only perform the check for file, if the check method requires it
6990 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6991 case $deplibs_check_method in
6992 file_magic*)
6993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6996 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 case $MAGIC_CMD in
7000 [\\/*] | ?:[\\/]*)
7001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7002 ;;
7003 *)
7004 lt_save_MAGIC_CMD="$MAGIC_CMD"
7005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7007 for ac_dir in $ac_dummy; do
7008 IFS="$lt_save_ifs"
7009 test -z "$ac_dir" && ac_dir=.
7010 if test -f $ac_dir/${ac_tool_prefix}file; then
7011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7012 if test -n "$file_magic_test_file"; then
7013 case $deplibs_check_method in
7014 "file_magic "*)
7015 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7018 $EGREP "$file_magic_regex" > /dev/null; then
7019 :
7020 else
7021 cat <<_LT_EOF 1>&2
7022
7023 *** Warning: the command libtool uses to detect shared libraries,
7024 *** $file_magic_cmd, produces output that libtool cannot recognize.
7025 *** The result is that libtool may fail to recognize shared libraries
7026 *** as such. This will affect the creation of libtool libraries that
7027 *** depend on shared libraries, but programs linked with such libtool
7028 *** libraries will work regardless of this problem. Nevertheless, you
7029 *** may want to report the problem to your system manager and/or to
7030 *** bug-libtool@gnu.org
7031
7032 _LT_EOF
7033 fi ;;
7034 esac
7035 fi
7036 break
7037 fi
7038 done
7039 IFS="$lt_save_ifs"
7040 MAGIC_CMD="$lt_save_MAGIC_CMD"
7041 ;;
7042 esac
7043 fi
7044
7045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7046 if test -n "$MAGIC_CMD"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7048 $as_echo "$MAGIC_CMD" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053
7054
7055
7056
7057
7058 if test -z "$lt_cv_path_MAGIC_CMD"; then
7059 if test -n "$ac_tool_prefix"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7061 $as_echo_n "checking for file... " >&6; }
7062 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 case $MAGIC_CMD in
7066 [\\/*] | ?:[\\/]*)
7067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7068 ;;
7069 *)
7070 lt_save_MAGIC_CMD="$MAGIC_CMD"
7071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7073 for ac_dir in $ac_dummy; do
7074 IFS="$lt_save_ifs"
7075 test -z "$ac_dir" && ac_dir=.
7076 if test -f $ac_dir/file; then
7077 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7078 if test -n "$file_magic_test_file"; then
7079 case $deplibs_check_method in
7080 "file_magic "*)
7081 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7084 $EGREP "$file_magic_regex" > /dev/null; then
7085 :
7086 else
7087 cat <<_LT_EOF 1>&2
7088
7089 *** Warning: the command libtool uses to detect shared libraries,
7090 *** $file_magic_cmd, produces output that libtool cannot recognize.
7091 *** The result is that libtool may fail to recognize shared libraries
7092 *** as such. This will affect the creation of libtool libraries that
7093 *** depend on shared libraries, but programs linked with such libtool
7094 *** libraries will work regardless of this problem. Nevertheless, you
7095 *** may want to report the problem to your system manager and/or to
7096 *** bug-libtool@gnu.org
7097
7098 _LT_EOF
7099 fi ;;
7100 esac
7101 fi
7102 break
7103 fi
7104 done
7105 IFS="$lt_save_ifs"
7106 MAGIC_CMD="$lt_save_MAGIC_CMD"
7107 ;;
7108 esac
7109 fi
7110
7111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7112 if test -n "$MAGIC_CMD"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7114 $as_echo "$MAGIC_CMD" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 fi
7119
7120
7121 else
7122 MAGIC_CMD=:
7123 fi
7124 fi
7125
7126 fi
7127 ;;
7128 esac
7129
7130 # Use C for the default configuration in the libtool script
7131
7132 lt_save_CC="$CC"
7133 ac_ext=c
7134 ac_cpp='$CPP $CPPFLAGS'
7135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138
7139
7140 # Source file extension for C test sources.
7141 ac_ext=c
7142
7143 # Object file extension for compiled C test sources.
7144 objext=o
7145 objext=$objext
7146
7147 # Code to be used in simple compile tests
7148 lt_simple_compile_test_code="int some_variable = 0;"
7149
7150 # Code to be used in simple link tests
7151 lt_simple_link_test_code='int main(){return(0);}'
7152
7153
7154
7155
7156
7157
7158
7159 # If no C compiler was specified, use CC.
7160 LTCC=${LTCC-"$CC"}
7161
7162 # If no C compiler flags were specified, use CFLAGS.
7163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7164
7165 # Allow CC to be a program name with arguments.
7166 compiler=$CC
7167
7168 # Save the default compiler, since it gets overwritten when the other
7169 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7170 compiler_DEFAULT=$CC
7171
7172 # save warnings/boilerplate of simple test code
7173 ac_outfile=conftest.$ac_objext
7174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7176 _lt_compiler_boilerplate=`cat conftest.err`
7177 $RM conftest*
7178
7179 ac_outfile=conftest.$ac_objext
7180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7182 _lt_linker_boilerplate=`cat conftest.err`
7183 $RM -r conftest*
7184
7185
7186 ## CAVEAT EMPTOR:
7187 ## There is no encapsulation within the following macros, do not change
7188 ## the running order or otherwise move them around unless you know exactly
7189 ## what you are doing...
7190 if test -n "$compiler"; then
7191
7192 lt_prog_compiler_no_builtin_flag=
7193
7194 if test "$GCC" = yes; then
7195 case $cc_basename in
7196 nvcc*)
7197 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7198 *)
7199 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7200 esac
7201
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7203 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7204 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 lt_cv_prog_compiler_rtti_exceptions=no
7208 ac_outfile=conftest.$ac_objext
7209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7210 lt_compiler_flag="-fno-rtti -fno-exceptions"
7211 # Insert the option either (1) after the last *FLAGS variable, or
7212 # (2) before a word containing "conftest.", or (3) at the end.
7213 # Note that $ac_compile itself does not contain backslashes and begins
7214 # with a dollar sign (not a hyphen), so the echo should work correctly.
7215 # The option is referenced via a variable to avoid confusing sed.
7216 lt_compile=`echo "$ac_compile" | $SED \
7217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7219 -e 's:$: $lt_compiler_flag:'`
7220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7221 (eval "$lt_compile" 2>conftest.err)
7222 ac_status=$?
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 if (exit $ac_status) && test -s "$ac_outfile"; then
7226 # The compiler can only warn and ignore the option if not recognized
7227 # So say no if there are warnings other than the usual output.
7228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7230 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7231 lt_cv_prog_compiler_rtti_exceptions=yes
7232 fi
7233 fi
7234 $RM conftest*
7235
7236 fi
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7238 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7239
7240 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7241 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7242 else
7243 :
7244 fi
7245
7246 fi
7247
7248
7249
7250
7251
7252
7253 lt_prog_compiler_wl=
7254 lt_prog_compiler_pic=
7255 lt_prog_compiler_static=
7256
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7258 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7259
7260 if test "$GCC" = yes; then
7261 lt_prog_compiler_wl='-Wl,'
7262 lt_prog_compiler_static='-static'
7263
7264 case $host_os in
7265 aix*)
7266 # All AIX code is PIC.
7267 if test "$host_cpu" = ia64; then
7268 # AIX 5 now supports IA64 processor
7269 lt_prog_compiler_static='-Bstatic'
7270 fi
7271 ;;
7272
7273 amigaos*)
7274 case $host_cpu in
7275 powerpc)
7276 # see comment about AmigaOS4 .so support
7277 lt_prog_compiler_pic='-fPIC'
7278 ;;
7279 m68k)
7280 # FIXME: we need at least 68020 code to build shared libraries, but
7281 # adding the `-m68020' flag to GCC prevents building anything better,
7282 # like `-m68040'.
7283 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7284 ;;
7285 esac
7286 ;;
7287
7288 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7289 # PIC is the default for these OSes.
7290 ;;
7291
7292 mingw* | cygwin* | pw32* | os2* | cegcc*)
7293 # This hack is so that the source file can tell whether it is being
7294 # built for inclusion in a dll (and should export symbols for example).
7295 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7296 # (--disable-auto-import) libraries
7297 lt_prog_compiler_pic='-DDLL_EXPORT'
7298 ;;
7299
7300 darwin* | rhapsody*)
7301 # PIC is the default on this platform
7302 # Common symbols not allowed in MH_DYLIB files
7303 lt_prog_compiler_pic='-fno-common'
7304 ;;
7305
7306 haiku*)
7307 # PIC is the default for Haiku.
7308 # The "-static" flag exists, but is broken.
7309 lt_prog_compiler_static=
7310 ;;
7311
7312 hpux*)
7313 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7314 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7315 # sets the default TLS model and affects inlining.
7316 case $host_cpu in
7317 hppa*64*)
7318 # +Z the default
7319 ;;
7320 *)
7321 lt_prog_compiler_pic='-fPIC'
7322 ;;
7323 esac
7324 ;;
7325
7326 interix[3-9]*)
7327 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7328 # Instead, we relocate shared libraries at runtime.
7329 ;;
7330
7331 msdosdjgpp*)
7332 # Just because we use GCC doesn't mean we suddenly get shared libraries
7333 # on systems that don't support them.
7334 lt_prog_compiler_can_build_shared=no
7335 enable_shared=no
7336 ;;
7337
7338 *nto* | *qnx*)
7339 # QNX uses GNU C++, but need to define -shared option too, otherwise
7340 # it will coredump.
7341 lt_prog_compiler_pic='-fPIC -shared'
7342 ;;
7343
7344 sysv4*MP*)
7345 if test -d /usr/nec; then
7346 lt_prog_compiler_pic=-Kconform_pic
7347 fi
7348 ;;
7349
7350 *)
7351 lt_prog_compiler_pic='-fPIC'
7352 ;;
7353 esac
7354
7355 case $cc_basename in
7356 nvcc*) # Cuda Compiler Driver 2.2
7357 lt_prog_compiler_wl='-Xlinker '
7358 lt_prog_compiler_pic='-Xcompiler -fPIC'
7359 ;;
7360 esac
7361 else
7362 # PORTME Check for flag to pass linker flags through the system compiler.
7363 case $host_os in
7364 aix*)
7365 lt_prog_compiler_wl='-Wl,'
7366 if test "$host_cpu" = ia64; then
7367 # AIX 5 now supports IA64 processor
7368 lt_prog_compiler_static='-Bstatic'
7369 else
7370 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7371 fi
7372 ;;
7373
7374 mingw* | cygwin* | pw32* | os2* | cegcc*)
7375 # This hack is so that the source file can tell whether it is being
7376 # built for inclusion in a dll (and should export symbols for example).
7377 lt_prog_compiler_pic='-DDLL_EXPORT'
7378 ;;
7379
7380 hpux9* | hpux10* | hpux11*)
7381 lt_prog_compiler_wl='-Wl,'
7382 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7383 # not for PA HP-UX.
7384 case $host_cpu in
7385 hppa*64*|ia64*)
7386 # +Z the default
7387 ;;
7388 *)
7389 lt_prog_compiler_pic='+Z'
7390 ;;
7391 esac
7392 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7393 lt_prog_compiler_static='${wl}-a ${wl}archive'
7394 ;;
7395
7396 irix5* | irix6* | nonstopux*)
7397 lt_prog_compiler_wl='-Wl,'
7398 # PIC (with -KPIC) is the default.
7399 lt_prog_compiler_static='-non_shared'
7400 ;;
7401
7402 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7403 case $cc_basename in
7404 # old Intel for x86_64 which still supported -KPIC.
7405 ecc*)
7406 lt_prog_compiler_wl='-Wl,'
7407 lt_prog_compiler_pic='-KPIC'
7408 lt_prog_compiler_static='-static'
7409 ;;
7410 # icc used to be incompatible with GCC.
7411 # ICC 10 doesn't accept -KPIC any more.
7412 icc* | ifort*)
7413 lt_prog_compiler_wl='-Wl,'
7414 lt_prog_compiler_pic='-fPIC'
7415 lt_prog_compiler_static='-static'
7416 ;;
7417 # Lahey Fortran 8.1.
7418 lf95*)
7419 lt_prog_compiler_wl='-Wl,'
7420 lt_prog_compiler_pic='--shared'
7421 lt_prog_compiler_static='--static'
7422 ;;
7423 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7424 # Portland Group compilers (*not* the Pentium gcc compiler,
7425 # which looks to be a dead project)
7426 lt_prog_compiler_wl='-Wl,'
7427 lt_prog_compiler_pic='-fpic'
7428 lt_prog_compiler_static='-Bstatic'
7429 ;;
7430 ccc*)
7431 lt_prog_compiler_wl='-Wl,'
7432 # All Alpha code is PIC.
7433 lt_prog_compiler_static='-non_shared'
7434 ;;
7435 xl* | bgxl* | bgf* | mpixl*)
7436 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7437 lt_prog_compiler_wl='-Wl,'
7438 lt_prog_compiler_pic='-qpic'
7439 lt_prog_compiler_static='-qstaticlink'
7440 ;;
7441 *)
7442 case `$CC -V 2>&1 | sed 5q` in
7443 *Sun\ F* | *Sun*Fortran*)
7444 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7445 lt_prog_compiler_pic='-KPIC'
7446 lt_prog_compiler_static='-Bstatic'
7447 lt_prog_compiler_wl=''
7448 ;;
7449 *Sun\ C*)
7450 # Sun C 5.9
7451 lt_prog_compiler_pic='-KPIC'
7452 lt_prog_compiler_static='-Bstatic'
7453 lt_prog_compiler_wl='-Wl,'
7454 ;;
7455 esac
7456 ;;
7457 esac
7458 ;;
7459
7460 newsos6)
7461 lt_prog_compiler_pic='-KPIC'
7462 lt_prog_compiler_static='-Bstatic'
7463 ;;
7464
7465 *nto* | *qnx*)
7466 # QNX uses GNU C++, but need to define -shared option too, otherwise
7467 # it will coredump.
7468 lt_prog_compiler_pic='-fPIC -shared'
7469 ;;
7470
7471 osf3* | osf4* | osf5*)
7472 lt_prog_compiler_wl='-Wl,'
7473 # All OSF/1 code is PIC.
7474 lt_prog_compiler_static='-non_shared'
7475 ;;
7476
7477 rdos*)
7478 lt_prog_compiler_static='-non_shared'
7479 ;;
7480
7481 solaris*)
7482 lt_prog_compiler_pic='-KPIC'
7483 lt_prog_compiler_static='-Bstatic'
7484 case $cc_basename in
7485 f77* | f90* | f95*)
7486 lt_prog_compiler_wl='-Qoption ld ';;
7487 *)
7488 lt_prog_compiler_wl='-Wl,';;
7489 esac
7490 ;;
7491
7492 sunos4*)
7493 lt_prog_compiler_wl='-Qoption ld '
7494 lt_prog_compiler_pic='-PIC'
7495 lt_prog_compiler_static='-Bstatic'
7496 ;;
7497
7498 sysv4 | sysv4.2uw2* | sysv4.3*)
7499 lt_prog_compiler_wl='-Wl,'
7500 lt_prog_compiler_pic='-KPIC'
7501 lt_prog_compiler_static='-Bstatic'
7502 ;;
7503
7504 sysv4*MP*)
7505 if test -d /usr/nec ;then
7506 lt_prog_compiler_pic='-Kconform_pic'
7507 lt_prog_compiler_static='-Bstatic'
7508 fi
7509 ;;
7510
7511 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7512 lt_prog_compiler_wl='-Wl,'
7513 lt_prog_compiler_pic='-KPIC'
7514 lt_prog_compiler_static='-Bstatic'
7515 ;;
7516
7517 unicos*)
7518 lt_prog_compiler_wl='-Wl,'
7519 lt_prog_compiler_can_build_shared=no
7520 ;;
7521
7522 uts4*)
7523 lt_prog_compiler_pic='-pic'
7524 lt_prog_compiler_static='-Bstatic'
7525 ;;
7526
7527 *)
7528 lt_prog_compiler_can_build_shared=no
7529 ;;
7530 esac
7531 fi
7532
7533 case $host_os in
7534 # For platforms which do not support PIC, -DPIC is meaningless:
7535 *djgpp*)
7536 lt_prog_compiler_pic=
7537 ;;
7538 *)
7539 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7540 ;;
7541 esac
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7543 $as_echo "$lt_prog_compiler_pic" >&6; }
7544
7545
7546
7547
7548
7549
7550 #
7551 # Check to make sure the PIC flag actually works.
7552 #
7553 if test -n "$lt_prog_compiler_pic"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7555 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7556 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 lt_cv_prog_compiler_pic_works=no
7560 ac_outfile=conftest.$ac_objext
7561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7562 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7563 # Insert the option either (1) after the last *FLAGS variable, or
7564 # (2) before a word containing "conftest.", or (3) at the end.
7565 # Note that $ac_compile itself does not contain backslashes and begins
7566 # with a dollar sign (not a hyphen), so the echo should work correctly.
7567 # The option is referenced via a variable to avoid confusing sed.
7568 lt_compile=`echo "$ac_compile" | $SED \
7569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7571 -e 's:$: $lt_compiler_flag:'`
7572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7573 (eval "$lt_compile" 2>conftest.err)
7574 ac_status=$?
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 if (exit $ac_status) && test -s "$ac_outfile"; then
7578 # The compiler can only warn and ignore the option if not recognized
7579 # So say no if there are warnings other than the usual output.
7580 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7582 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7583 lt_cv_prog_compiler_pic_works=yes
7584 fi
7585 fi
7586 $RM conftest*
7587
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7590 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7591
7592 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7593 case $lt_prog_compiler_pic in
7594 "" | " "*) ;;
7595 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7596 esac
7597 else
7598 lt_prog_compiler_pic=
7599 lt_prog_compiler_can_build_shared=no
7600 fi
7601
7602 fi
7603
7604
7605
7606
7607
7608
7609 #
7610 # Check to make sure the static flag actually works.
7611 #
7612 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7614 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7615 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 lt_cv_prog_compiler_static_works=no
7619 save_LDFLAGS="$LDFLAGS"
7620 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7621 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7622 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7623 # The linker can only warn and ignore the option if not recognized
7624 # So say no if there are warnings
7625 if test -s conftest.err; then
7626 # Append any errors to the config.log.
7627 cat conftest.err 1>&5
7628 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7630 if diff conftest.exp conftest.er2 >/dev/null; then
7631 lt_cv_prog_compiler_static_works=yes
7632 fi
7633 else
7634 lt_cv_prog_compiler_static_works=yes
7635 fi
7636 fi
7637 $RM -r conftest*
7638 LDFLAGS="$save_LDFLAGS"
7639
7640 fi
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7642 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7643
7644 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7645 :
7646 else
7647 lt_prog_compiler_static=
7648 fi
7649
7650
7651
7652
7653
7654
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7658 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 lt_cv_prog_compiler_c_o=no
7662 $RM -r conftest 2>/dev/null
7663 mkdir conftest
7664 cd conftest
7665 mkdir out
7666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7667
7668 lt_compiler_flag="-o out/conftest2.$ac_objext"
7669 # Insert the option either (1) after the last *FLAGS variable, or
7670 # (2) before a word containing "conftest.", or (3) at the end.
7671 # Note that $ac_compile itself does not contain backslashes and begins
7672 # with a dollar sign (not a hyphen), so the echo should work correctly.
7673 lt_compile=`echo "$ac_compile" | $SED \
7674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7676 -e 's:$: $lt_compiler_flag:'`
7677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7678 (eval "$lt_compile" 2>out/conftest.err)
7679 ac_status=$?
7680 cat out/conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7683 then
7684 # The compiler can only warn and ignore the option if not recognized
7685 # So say no if there are warnings
7686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7689 lt_cv_prog_compiler_c_o=yes
7690 fi
7691 fi
7692 chmod u+w . 2>&5
7693 $RM conftest*
7694 # SGI C++ compiler will create directory out/ii_files/ for
7695 # template instantiation
7696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7697 $RM out/* && rmdir out
7698 cd ..
7699 $RM -r conftest
7700 $RM conftest*
7701
7702 fi
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7704 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7705
7706
7707
7708
7709
7710
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7712 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7713 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 lt_cv_prog_compiler_c_o=no
7717 $RM -r conftest 2>/dev/null
7718 mkdir conftest
7719 cd conftest
7720 mkdir out
7721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7722
7723 lt_compiler_flag="-o out/conftest2.$ac_objext"
7724 # Insert the option either (1) after the last *FLAGS variable, or
7725 # (2) before a word containing "conftest.", or (3) at the end.
7726 # Note that $ac_compile itself does not contain backslashes and begins
7727 # with a dollar sign (not a hyphen), so the echo should work correctly.
7728 lt_compile=`echo "$ac_compile" | $SED \
7729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7731 -e 's:$: $lt_compiler_flag:'`
7732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7733 (eval "$lt_compile" 2>out/conftest.err)
7734 ac_status=$?
7735 cat out/conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7738 then
7739 # The compiler can only warn and ignore the option if not recognized
7740 # So say no if there are warnings
7741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7742 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7743 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7744 lt_cv_prog_compiler_c_o=yes
7745 fi
7746 fi
7747 chmod u+w . 2>&5
7748 $RM conftest*
7749 # SGI C++ compiler will create directory out/ii_files/ for
7750 # template instantiation
7751 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7752 $RM out/* && rmdir out
7753 cd ..
7754 $RM -r conftest
7755 $RM conftest*
7756
7757 fi
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7759 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7760
7761
7762
7763
7764 hard_links="nottested"
7765 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7766 # do not overwrite the value of need_locks provided by the user
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7768 $as_echo_n "checking if we can lock with hard links... " >&6; }
7769 hard_links=yes
7770 $RM conftest*
7771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7772 touch conftest.a
7773 ln conftest.a conftest.b 2>&5 || hard_links=no
7774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7776 $as_echo "$hard_links" >&6; }
7777 if test "$hard_links" = no; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7779 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7780 need_locks=warn
7781 fi
7782 else
7783 need_locks=no
7784 fi
7785
7786
7787
7788
7789
7790
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7793
7794 runpath_var=
7795 allow_undefined_flag=
7796 always_export_symbols=no
7797 archive_cmds=
7798 archive_expsym_cmds=
7799 compiler_needs_object=no
7800 enable_shared_with_static_runtimes=no
7801 export_dynamic_flag_spec=
7802 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7803 hardcode_automatic=no
7804 hardcode_direct=no
7805 hardcode_direct_absolute=no
7806 hardcode_libdir_flag_spec=
7807 hardcode_libdir_flag_spec_ld=
7808 hardcode_libdir_separator=
7809 hardcode_minus_L=no
7810 hardcode_shlibpath_var=unsupported
7811 inherit_rpath=no
7812 link_all_deplibs=unknown
7813 module_cmds=
7814 module_expsym_cmds=
7815 old_archive_from_new_cmds=
7816 old_archive_from_expsyms_cmds=
7817 thread_safe_flag_spec=
7818 whole_archive_flag_spec=
7819 # include_expsyms should be a list of space-separated symbols to be *always*
7820 # included in the symbol list
7821 include_expsyms=
7822 # exclude_expsyms can be an extended regexp of symbols to exclude
7823 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7824 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7825 # as well as any symbol that contains `d'.
7826 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7827 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7828 # platforms (ab)use it in PIC code, but their linkers get confused if
7829 # the symbol is explicitly referenced. Since portable code cannot
7830 # rely on this symbol name, it's probably fine to never include it in
7831 # preloaded symbol tables.
7832 # Exclude shared library initialization/finalization symbols.
7833 extract_expsyms_cmds=
7834
7835 case $host_os in
7836 cygwin* | mingw* | pw32* | cegcc*)
7837 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7838 # When not using gcc, we currently assume that we are using
7839 # Microsoft Visual C++.
7840 if test "$GCC" != yes; then
7841 with_gnu_ld=no
7842 fi
7843 ;;
7844 interix*)
7845 # we just hope/assume this is gcc and not c89 (= MSVC++)
7846 with_gnu_ld=yes
7847 ;;
7848 openbsd*)
7849 with_gnu_ld=no
7850 ;;
7851 esac
7852
7853 ld_shlibs=yes
7854
7855 # On some targets, GNU ld is compatible enough with the native linker
7856 # that we're better off using the native interface for both.
7857 lt_use_gnu_ld_interface=no
7858 if test "$with_gnu_ld" = yes; then
7859 case $host_os in
7860 aix*)
7861 # The AIX port of GNU ld has always aspired to compatibility
7862 # with the native linker. However, as the warning in the GNU ld
7863 # block says, versions before 2.19.5* couldn't really create working
7864 # shared libraries, regardless of the interface used.
7865 case `$LD -v 2>&1` in
7866 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7867 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7868 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7869 *)
7870 lt_use_gnu_ld_interface=yes
7871 ;;
7872 esac
7873 ;;
7874 *)
7875 lt_use_gnu_ld_interface=yes
7876 ;;
7877 esac
7878 fi
7879
7880 if test "$lt_use_gnu_ld_interface" = yes; then
7881 # If archive_cmds runs LD, not CC, wlarc should be empty
7882 wlarc='${wl}'
7883
7884 # Set some defaults for GNU ld with shared library support. These
7885 # are reset later if shared libraries are not supported. Putting them
7886 # here allows them to be overridden if necessary.
7887 runpath_var=LD_RUN_PATH
7888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7889 export_dynamic_flag_spec='${wl}--export-dynamic'
7890 # ancient GNU ld didn't support --whole-archive et. al.
7891 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7892 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7893 else
7894 whole_archive_flag_spec=
7895 fi
7896 supports_anon_versioning=no
7897 case `$LD -v 2>&1` in
7898 *GNU\ gold*) supports_anon_versioning=yes ;;
7899 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7900 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7901 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7902 *\ 2.11.*) ;; # other 2.11 versions
7903 *) supports_anon_versioning=yes ;;
7904 esac
7905
7906 # See if GNU ld supports shared libraries.
7907 case $host_os in
7908 aix[3-9]*)
7909 # On AIX/PPC, the GNU linker is very broken
7910 if test "$host_cpu" != ia64; then
7911 ld_shlibs=no
7912 cat <<_LT_EOF 1>&2
7913
7914 *** Warning: the GNU linker, at least up to release 2.19, is reported
7915 *** to be unable to reliably create shared libraries on AIX.
7916 *** Therefore, libtool is disabling shared libraries support. If you
7917 *** really care for shared libraries, you may want to install binutils
7918 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7919 *** You will then need to restart the configuration process.
7920
7921 _LT_EOF
7922 fi
7923 ;;
7924
7925 amigaos*)
7926 case $host_cpu in
7927 powerpc)
7928 # see comment about AmigaOS4 .so support
7929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7930 archive_expsym_cmds=''
7931 ;;
7932 m68k)
7933 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)'
7934 hardcode_libdir_flag_spec='-L$libdir'
7935 hardcode_minus_L=yes
7936 ;;
7937 esac
7938 ;;
7939
7940 beos*)
7941 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7942 allow_undefined_flag=unsupported
7943 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7944 # support --undefined. This deserves some investigation. FIXME
7945 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7946 else
7947 ld_shlibs=no
7948 fi
7949 ;;
7950
7951 cygwin* | mingw* | pw32* | cegcc*)
7952 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7953 # as there is no search path for DLLs.
7954 hardcode_libdir_flag_spec='-L$libdir'
7955 export_dynamic_flag_spec='${wl}--export-all-symbols'
7956 allow_undefined_flag=unsupported
7957 always_export_symbols=no
7958 enable_shared_with_static_runtimes=yes
7959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7960
7961 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7963 # If the export-symbols file already is a .def file (1st line
7964 # is EXPORTS), use it as is; otherwise, prepend...
7965 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7966 cp $export_symbols $output_objdir/$soname.def;
7967 else
7968 echo EXPORTS > $output_objdir/$soname.def;
7969 cat $export_symbols >> $output_objdir/$soname.def;
7970 fi~
7971 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7972 else
7973 ld_shlibs=no
7974 fi
7975 ;;
7976
7977 haiku*)
7978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7979 link_all_deplibs=yes
7980 ;;
7981
7982 interix[3-9]*)
7983 hardcode_direct=no
7984 hardcode_shlibpath_var=no
7985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7986 export_dynamic_flag_spec='${wl}-E'
7987 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7988 # Instead, shared libraries are loaded at an image base (0x10000000 by
7989 # default) and relocated if they conflict, which is a slow very memory
7990 # consuming and fragmenting process. To avoid this, we pick a random,
7991 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7992 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7993 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7994 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'
7995 ;;
7996
7997 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7998 tmp_diet=no
7999 if test "$host_os" = linux-dietlibc; then
8000 case $cc_basename in
8001 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8002 esac
8003 fi
8004 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8005 && test "$tmp_diet" = no
8006 then
8007 tmp_addflag=
8008 tmp_sharedflag='-shared'
8009 case $cc_basename,$host_cpu in
8010 pgcc*) # Portland Group C compiler
8011 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'
8012 tmp_addflag=' $pic_flag'
8013 ;;
8014 pgf77* | pgf90* | pgf95* | pgfortran*)
8015 # Portland Group f77 and f90 compilers
8016 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'
8017 tmp_addflag=' $pic_flag -Mnomain' ;;
8018 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8019 tmp_addflag=' -i_dynamic' ;;
8020 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8021 tmp_addflag=' -i_dynamic -nofor_main' ;;
8022 ifc* | ifort*) # Intel Fortran compiler
8023 tmp_addflag=' -nofor_main' ;;
8024 lf95*) # Lahey Fortran 8.1
8025 whole_archive_flag_spec=
8026 tmp_sharedflag='--shared' ;;
8027 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8028 tmp_sharedflag='-qmkshrobj'
8029 tmp_addflag= ;;
8030 nvcc*) # Cuda Compiler Driver 2.2
8031 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'
8032 compiler_needs_object=yes
8033 ;;
8034 esac
8035 case `$CC -V 2>&1 | sed 5q` in
8036 *Sun\ C*) # Sun C 5.9
8037 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'
8038 compiler_needs_object=yes
8039 tmp_sharedflag='-G' ;;
8040 *Sun\ F*) # Sun Fortran 8.3
8041 tmp_sharedflag='-G' ;;
8042 esac
8043 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8044
8045 if test "x$supports_anon_versioning" = xyes; then
8046 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8048 echo "local: *; };" >> $output_objdir/$libname.ver~
8049 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8050 fi
8051
8052 case $cc_basename in
8053 xlf* | bgf* | bgxlf* | mpixlf*)
8054 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8055 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8056 hardcode_libdir_flag_spec=
8057 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8058 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8059 if test "x$supports_anon_versioning" = xyes; then
8060 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8061 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8062 echo "local: *; };" >> $output_objdir/$libname.ver~
8063 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8064 fi
8065 ;;
8066 esac
8067 else
8068 ld_shlibs=no
8069 fi
8070 ;;
8071
8072 netbsd*)
8073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8074 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8075 wlarc=
8076 else
8077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8078 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8079 fi
8080 ;;
8081
8082 solaris*)
8083 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8084 ld_shlibs=no
8085 cat <<_LT_EOF 1>&2
8086
8087 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8088 *** create shared libraries on Solaris systems. Therefore, libtool
8089 *** is disabling shared libraries support. We urge you to upgrade GNU
8090 *** binutils to release 2.9.1 or newer. Another option is to modify
8091 *** your PATH or compiler configuration so that the native linker is
8092 *** used, and then restart.
8093
8094 _LT_EOF
8095 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8098 else
8099 ld_shlibs=no
8100 fi
8101 ;;
8102
8103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8104 case `$LD -v 2>&1` in
8105 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8106 ld_shlibs=no
8107 cat <<_LT_EOF 1>&2
8108
8109 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8110 *** reliably create shared libraries on SCO systems. Therefore, libtool
8111 *** is disabling shared libraries support. We urge you to upgrade GNU
8112 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8113 *** your PATH or compiler configuration so that the native linker is
8114 *** used, and then restart.
8115
8116 _LT_EOF
8117 ;;
8118 *)
8119 # For security reasons, it is highly recommended that you always
8120 # use absolute paths for naming shared libraries, and exclude the
8121 # DT_RUNPATH tag from executables and libraries. But doing so
8122 # requires that you compile everything twice, which is a pain.
8123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8127 else
8128 ld_shlibs=no
8129 fi
8130 ;;
8131 esac
8132 ;;
8133
8134 sunos4*)
8135 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8136 wlarc=
8137 hardcode_direct=yes
8138 hardcode_shlibpath_var=no
8139 ;;
8140
8141 *)
8142 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8145 else
8146 ld_shlibs=no
8147 fi
8148 ;;
8149 esac
8150
8151 if test "$ld_shlibs" = no; then
8152 runpath_var=
8153 hardcode_libdir_flag_spec=
8154 export_dynamic_flag_spec=
8155 whole_archive_flag_spec=
8156 fi
8157 else
8158 # PORTME fill in a description of your system's linker (not GNU ld)
8159 case $host_os in
8160 aix3*)
8161 allow_undefined_flag=unsupported
8162 always_export_symbols=yes
8163 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'
8164 # Note: this linker hardcodes the directories in LIBPATH if there
8165 # are no directories specified by -L.
8166 hardcode_minus_L=yes
8167 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8168 # Neither direct hardcoding nor static linking is supported with a
8169 # broken collect2.
8170 hardcode_direct=unsupported
8171 fi
8172 ;;
8173
8174 aix[4-9]*)
8175 if test "$host_cpu" = ia64; then
8176 # On IA64, the linker does run time linking by default, so we don't
8177 # have to do anything special.
8178 aix_use_runtimelinking=no
8179 exp_sym_flag='-Bexport'
8180 no_entry_flag=""
8181 else
8182 # If we're using GNU nm, then we don't want the "-C" option.
8183 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8184 # Also, AIX nm treats weak defined symbols like other global
8185 # defined symbols, whereas GNU nm marks them as "W".
8186 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8187 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'
8188 else
8189 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'
8190 fi
8191 aix_use_runtimelinking=no
8192
8193 # Test if we are trying to use run time linking or normal
8194 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8195 # need to do runtime linking.
8196 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8197 for ld_flag in $LDFLAGS; do
8198 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8199 aix_use_runtimelinking=yes
8200 break
8201 fi
8202 done
8203 ;;
8204 esac
8205
8206 exp_sym_flag='-bexport'
8207 no_entry_flag='-bnoentry'
8208 fi
8209
8210 # When large executables or shared objects are built, AIX ld can
8211 # have problems creating the table of contents. If linking a library
8212 # or program results in "error TOC overflow" add -mminimal-toc to
8213 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8214 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8215
8216 archive_cmds=''
8217 hardcode_direct=yes
8218 hardcode_direct_absolute=yes
8219 hardcode_libdir_separator=':'
8220 link_all_deplibs=yes
8221 file_list_spec='${wl}-f,'
8222
8223 if test "$GCC" = yes; then
8224 case $host_os in aix4.[012]|aix4.[012].*)
8225 # We only want to do this on AIX 4.2 and lower, the check
8226 # below for broken collect2 doesn't work under 4.3+
8227 collect2name=`${CC} -print-prog-name=collect2`
8228 if test -f "$collect2name" &&
8229 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8230 then
8231 # We have reworked collect2
8232 :
8233 else
8234 # We have old collect2
8235 hardcode_direct=unsupported
8236 # It fails to find uninstalled libraries when the uninstalled
8237 # path is not listed in the libpath. Setting hardcode_minus_L
8238 # to unsupported forces relinking
8239 hardcode_minus_L=yes
8240 hardcode_libdir_flag_spec='-L$libdir'
8241 hardcode_libdir_separator=
8242 fi
8243 ;;
8244 esac
8245 shared_flag='-shared'
8246 if test "$aix_use_runtimelinking" = yes; then
8247 shared_flag="$shared_flag "'${wl}-G'
8248 fi
8249 else
8250 # not using gcc
8251 if test "$host_cpu" = ia64; then
8252 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8253 # chokes on -Wl,-G. The following line is correct:
8254 shared_flag='-G'
8255 else
8256 if test "$aix_use_runtimelinking" = yes; then
8257 shared_flag='${wl}-G'
8258 else
8259 shared_flag='${wl}-bM:SRE'
8260 fi
8261 fi
8262 fi
8263
8264 export_dynamic_flag_spec='${wl}-bexpall'
8265 # It seems that -bexpall does not export symbols beginning with
8266 # underscore (_), so it is better to generate a list of symbols to export.
8267 always_export_symbols=yes
8268 if test "$aix_use_runtimelinking" = yes; then
8269 # Warning - without using the other runtime loading flags (-brtl),
8270 # -berok will link without error, but may produce a broken library.
8271 allow_undefined_flag='-berok'
8272 # Determine the default libpath from the value encoded in an
8273 # empty executable.
8274 if test x$gcc_no_link = xyes; then
8275 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8276 fi
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8279
8280 int
8281 main ()
8282 {
8283
8284 ;
8285 return 0;
8286 }
8287 _ACEOF
8288 if ac_fn_c_try_link "$LINENO"; then :
8289
8290 lt_aix_libpath_sed='
8291 /Import File Strings/,/^$/ {
8292 /^0/ {
8293 s/^0 *\(.*\)$/\1/
8294 p
8295 }
8296 }'
8297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8298 # Check for a 64-bit object if we didn't find anything.
8299 if test -z "$aix_libpath"; then
8300 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8301 fi
8302 fi
8303 rm -f core conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8306
8307 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8308 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"
8309 else
8310 if test "$host_cpu" = ia64; then
8311 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8312 allow_undefined_flag="-z nodefs"
8313 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"
8314 else
8315 # Determine the default libpath from the value encoded in an
8316 # empty executable.
8317 if test x$gcc_no_link = xyes; then
8318 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8319 fi
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322
8323 int
8324 main ()
8325 {
8326
8327 ;
8328 return 0;
8329 }
8330 _ACEOF
8331 if ac_fn_c_try_link "$LINENO"; then :
8332
8333 lt_aix_libpath_sed='
8334 /Import File Strings/,/^$/ {
8335 /^0/ {
8336 s/^0 *\(.*\)$/\1/
8337 p
8338 }
8339 }'
8340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8341 # Check for a 64-bit object if we didn't find anything.
8342 if test -z "$aix_libpath"; then
8343 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8344 fi
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8349
8350 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8351 # Warning - without using the other run time loading flags,
8352 # -berok will link without error, but may produce a broken library.
8353 no_undefined_flag=' ${wl}-bernotok'
8354 allow_undefined_flag=' ${wl}-berok'
8355 if test "$with_gnu_ld" = yes; then
8356 # We only use this code for GNU lds that support --whole-archive.
8357 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8358 else
8359 # Exported symbols can be pulled into shared objects from archives
8360 whole_archive_flag_spec='$convenience'
8361 fi
8362 archive_cmds_need_lc=yes
8363 # This is similar to how AIX traditionally builds its shared libraries.
8364 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'
8365 fi
8366 fi
8367 ;;
8368
8369 amigaos*)
8370 case $host_cpu in
8371 powerpc)
8372 # see comment about AmigaOS4 .so support
8373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8374 archive_expsym_cmds=''
8375 ;;
8376 m68k)
8377 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)'
8378 hardcode_libdir_flag_spec='-L$libdir'
8379 hardcode_minus_L=yes
8380 ;;
8381 esac
8382 ;;
8383
8384 bsdi[45]*)
8385 export_dynamic_flag_spec=-rdynamic
8386 ;;
8387
8388 cygwin* | mingw* | pw32* | cegcc*)
8389 # When not using gcc, we currently assume that we are using
8390 # Microsoft Visual C++.
8391 # hardcode_libdir_flag_spec is actually meaningless, as there is
8392 # no search path for DLLs.
8393 hardcode_libdir_flag_spec=' '
8394 allow_undefined_flag=unsupported
8395 # Tell ltmain to make .lib files, not .a files.
8396 libext=lib
8397 # Tell ltmain to make .dll files, not .so files.
8398 shrext_cmds=".dll"
8399 # FIXME: Setting linknames here is a bad hack.
8400 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8401 # The linker will automatically build a .lib file if we build a DLL.
8402 old_archive_from_new_cmds='true'
8403 # FIXME: Should let the user specify the lib program.
8404 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8405 fix_srcfile_path='`cygpath -w "$srcfile"`'
8406 enable_shared_with_static_runtimes=yes
8407 ;;
8408
8409 darwin* | rhapsody*)
8410
8411
8412 archive_cmds_need_lc=no
8413 hardcode_direct=no
8414 hardcode_automatic=yes
8415 hardcode_shlibpath_var=unsupported
8416 if test "$lt_cv_ld_force_load" = "yes"; then
8417 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\"`'
8418 else
8419 whole_archive_flag_spec=''
8420 fi
8421 link_all_deplibs=yes
8422 allow_undefined_flag="$_lt_dar_allow_undefined"
8423 case $cc_basename in
8424 ifort*) _lt_dar_can_shared=yes ;;
8425 *) _lt_dar_can_shared=$GCC ;;
8426 esac
8427 if test "$_lt_dar_can_shared" = "yes"; then
8428 output_verbose_link_cmd=func_echo_all
8429 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8430 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8431 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}"
8432 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}"
8433
8434 else
8435 ld_shlibs=no
8436 fi
8437
8438 ;;
8439
8440 dgux*)
8441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8442 hardcode_libdir_flag_spec='-L$libdir'
8443 hardcode_shlibpath_var=no
8444 ;;
8445
8446 freebsd1*)
8447 ld_shlibs=no
8448 ;;
8449
8450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8451 # support. Future versions do this automatically, but an explicit c++rt0.o
8452 # does not break anything, and helps significantly (at the cost of a little
8453 # extra space).
8454 freebsd2.2*)
8455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8456 hardcode_libdir_flag_spec='-R$libdir'
8457 hardcode_direct=yes
8458 hardcode_shlibpath_var=no
8459 ;;
8460
8461 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8462 freebsd2*)
8463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8464 hardcode_direct=yes
8465 hardcode_minus_L=yes
8466 hardcode_shlibpath_var=no
8467 ;;
8468
8469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8470 freebsd* | dragonfly*)
8471 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8472 hardcode_libdir_flag_spec='-R$libdir'
8473 hardcode_direct=yes
8474 hardcode_shlibpath_var=no
8475 ;;
8476
8477 hpux9*)
8478 if test "$GCC" = yes; then
8479 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'
8480 else
8481 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'
8482 fi
8483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8484 hardcode_libdir_separator=:
8485 hardcode_direct=yes
8486
8487 # hardcode_minus_L: Not really in the search PATH,
8488 # but as the default location of the library.
8489 hardcode_minus_L=yes
8490 export_dynamic_flag_spec='${wl}-E'
8491 ;;
8492
8493 hpux10*)
8494 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8496 else
8497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8498 fi
8499 if test "$with_gnu_ld" = no; then
8500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8501 hardcode_libdir_flag_spec_ld='+b $libdir'
8502 hardcode_libdir_separator=:
8503 hardcode_direct=yes
8504 hardcode_direct_absolute=yes
8505 export_dynamic_flag_spec='${wl}-E'
8506 # hardcode_minus_L: Not really in the search PATH,
8507 # but as the default location of the library.
8508 hardcode_minus_L=yes
8509 fi
8510 ;;
8511
8512 hpux11*)
8513 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8514 case $host_cpu in
8515 hppa*64*)
8516 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8517 ;;
8518 ia64*)
8519 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8520 ;;
8521 *)
8522 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8523 ;;
8524 esac
8525 else
8526 case $host_cpu in
8527 hppa*64*)
8528 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 ;;
8530 ia64*)
8531 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8532 ;;
8533 *)
8534
8535 # Older versions of the 11.00 compiler do not understand -b yet
8536 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8538 $as_echo_n "checking if $CC understands -b... " >&6; }
8539 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 lt_cv_prog_compiler__b=no
8543 save_LDFLAGS="$LDFLAGS"
8544 LDFLAGS="$LDFLAGS -b"
8545 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8547 # The linker can only warn and ignore the option if not recognized
8548 # So say no if there are warnings
8549 if test -s conftest.err; then
8550 # Append any errors to the config.log.
8551 cat conftest.err 1>&5
8552 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8554 if diff conftest.exp conftest.er2 >/dev/null; then
8555 lt_cv_prog_compiler__b=yes
8556 fi
8557 else
8558 lt_cv_prog_compiler__b=yes
8559 fi
8560 fi
8561 $RM -r conftest*
8562 LDFLAGS="$save_LDFLAGS"
8563
8564 fi
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8566 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8567
8568 if test x"$lt_cv_prog_compiler__b" = xyes; then
8569 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8570 else
8571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8572 fi
8573
8574 ;;
8575 esac
8576 fi
8577 if test "$with_gnu_ld" = no; then
8578 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8579 hardcode_libdir_separator=:
8580
8581 case $host_cpu in
8582 hppa*64*|ia64*)
8583 hardcode_direct=no
8584 hardcode_shlibpath_var=no
8585 ;;
8586 *)
8587 hardcode_direct=yes
8588 hardcode_direct_absolute=yes
8589 export_dynamic_flag_spec='${wl}-E'
8590
8591 # hardcode_minus_L: Not really in the search PATH,
8592 # but as the default location of the library.
8593 hardcode_minus_L=yes
8594 ;;
8595 esac
8596 fi
8597 ;;
8598
8599 irix5* | irix6* | nonstopux*)
8600 if test "$GCC" = yes; then
8601 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'
8602 # Try to use the -exported_symbol ld option, if it does not
8603 # work, assume that -exports_file does not work either and
8604 # implicitly export all symbols.
8605 save_LDFLAGS="$LDFLAGS"
8606 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8607 if test x$gcc_no_link = xyes; then
8608 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8609 fi
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 int foo(void) {}
8613 _ACEOF
8614 if ac_fn_c_try_link "$LINENO"; then :
8615 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'
8616
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext \
8619 conftest$ac_exeext conftest.$ac_ext
8620 LDFLAGS="$save_LDFLAGS"
8621 else
8622 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'
8623 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'
8624 fi
8625 archive_cmds_need_lc='no'
8626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8627 hardcode_libdir_separator=:
8628 inherit_rpath=yes
8629 link_all_deplibs=yes
8630 ;;
8631
8632 netbsd*)
8633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8635 else
8636 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8637 fi
8638 hardcode_libdir_flag_spec='-R$libdir'
8639 hardcode_direct=yes
8640 hardcode_shlibpath_var=no
8641 ;;
8642
8643 newsos6)
8644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645 hardcode_direct=yes
8646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8647 hardcode_libdir_separator=:
8648 hardcode_shlibpath_var=no
8649 ;;
8650
8651 *nto* | *qnx*)
8652 ;;
8653
8654 openbsd*)
8655 if test -f /usr/libexec/ld.so; then
8656 hardcode_direct=yes
8657 hardcode_shlibpath_var=no
8658 hardcode_direct_absolute=yes
8659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8660 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8661 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8662 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8663 export_dynamic_flag_spec='${wl}-E'
8664 else
8665 case $host_os in
8666 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8668 hardcode_libdir_flag_spec='-R$libdir'
8669 ;;
8670 *)
8671 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8672 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8673 ;;
8674 esac
8675 fi
8676 else
8677 ld_shlibs=no
8678 fi
8679 ;;
8680
8681 os2*)
8682 hardcode_libdir_flag_spec='-L$libdir'
8683 hardcode_minus_L=yes
8684 allow_undefined_flag=unsupported
8685 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'
8686 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8687 ;;
8688
8689 osf3*)
8690 if test "$GCC" = yes; then
8691 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8692 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'
8693 else
8694 allow_undefined_flag=' -expect_unresolved \*'
8695 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'
8696 fi
8697 archive_cmds_need_lc='no'
8698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8699 hardcode_libdir_separator=:
8700 ;;
8701
8702 osf4* | osf5*) # as osf3* with the addition of -msym flag
8703 if test "$GCC" = yes; then
8704 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8705 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'
8706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8707 else
8708 allow_undefined_flag=' -expect_unresolved \*'
8709 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'
8710 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~
8711 $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'
8712
8713 # Both c and cxx compiler support -rpath directly
8714 hardcode_libdir_flag_spec='-rpath $libdir'
8715 fi
8716 archive_cmds_need_lc='no'
8717 hardcode_libdir_separator=:
8718 ;;
8719
8720 solaris*)
8721 no_undefined_flag=' -z defs'
8722 if test "$GCC" = yes; then
8723 wlarc='${wl}'
8724 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8725 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8726 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8727 else
8728 case `$CC -V 2>&1` in
8729 *"Compilers 5.0"*)
8730 wlarc=''
8731 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8734 ;;
8735 *)
8736 wlarc='${wl}'
8737 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8738 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8739 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8740 ;;
8741 esac
8742 fi
8743 hardcode_libdir_flag_spec='-R$libdir'
8744 hardcode_shlibpath_var=no
8745 case $host_os in
8746 solaris2.[0-5] | solaris2.[0-5].*) ;;
8747 *)
8748 # The compiler driver will combine and reorder linker options,
8749 # but understands `-z linker_flag'. GCC discards it without `$wl',
8750 # but is careful enough not to reorder.
8751 # Supported since Solaris 2.6 (maybe 2.5.1?)
8752 if test "$GCC" = yes; then
8753 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8754 else
8755 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8756 fi
8757 ;;
8758 esac
8759 link_all_deplibs=yes
8760 ;;
8761
8762 sunos4*)
8763 if test "x$host_vendor" = xsequent; then
8764 # Use $CC to link under sequent, because it throws in some extra .o
8765 # files that make .init and .fini sections work.
8766 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8767 else
8768 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8769 fi
8770 hardcode_libdir_flag_spec='-L$libdir'
8771 hardcode_direct=yes
8772 hardcode_minus_L=yes
8773 hardcode_shlibpath_var=no
8774 ;;
8775
8776 sysv4)
8777 case $host_vendor in
8778 sni)
8779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780 hardcode_direct=yes # is this really true???
8781 ;;
8782 siemens)
8783 ## LD is ld it makes a PLAMLIB
8784 ## CC just makes a GrossModule.
8785 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8786 reload_cmds='$CC -r -o $output$reload_objs'
8787 hardcode_direct=no
8788 ;;
8789 motorola)
8790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8792 ;;
8793 esac
8794 runpath_var='LD_RUN_PATH'
8795 hardcode_shlibpath_var=no
8796 ;;
8797
8798 sysv4.3*)
8799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800 hardcode_shlibpath_var=no
8801 export_dynamic_flag_spec='-Bexport'
8802 ;;
8803
8804 sysv4*MP*)
8805 if test -d /usr/nec; then
8806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_shlibpath_var=no
8808 runpath_var=LD_RUN_PATH
8809 hardcode_runpath_var=yes
8810 ld_shlibs=yes
8811 fi
8812 ;;
8813
8814 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8815 no_undefined_flag='${wl}-z,text'
8816 archive_cmds_need_lc=no
8817 hardcode_shlibpath_var=no
8818 runpath_var='LD_RUN_PATH'
8819
8820 if test "$GCC" = yes; then
8821 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8822 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8823 else
8824 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826 fi
8827 ;;
8828
8829 sysv5* | sco3.2v5* | sco5v6*)
8830 # Note: We can NOT use -z defs as we might desire, because we do not
8831 # link with -lc, and that would cause any symbols used from libc to
8832 # always be unresolved, which means just about no library would
8833 # ever link correctly. If we're not using GNU ld we use -z text
8834 # though, which does catch some bad symbols but isn't as heavy-handed
8835 # as -z defs.
8836 no_undefined_flag='${wl}-z,text'
8837 allow_undefined_flag='${wl}-z,nodefs'
8838 archive_cmds_need_lc=no
8839 hardcode_shlibpath_var=no
8840 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8841 hardcode_libdir_separator=':'
8842 link_all_deplibs=yes
8843 export_dynamic_flag_spec='${wl}-Bexport'
8844 runpath_var='LD_RUN_PATH'
8845
8846 if test "$GCC" = yes; then
8847 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8848 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 else
8850 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 fi
8853 ;;
8854
8855 uts4*)
8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 hardcode_libdir_flag_spec='-L$libdir'
8858 hardcode_shlibpath_var=no
8859 ;;
8860
8861 *)
8862 ld_shlibs=no
8863 ;;
8864 esac
8865
8866 if test x$host_vendor = xsni; then
8867 case $host in
8868 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8869 export_dynamic_flag_spec='${wl}-Blargedynsym'
8870 ;;
8871 esac
8872 fi
8873 fi
8874
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8876 $as_echo "$ld_shlibs" >&6; }
8877 test "$ld_shlibs" = no && can_build_shared=no
8878
8879 with_gnu_ld=$with_gnu_ld
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895 #
8896 # Do we need to explicitly link libc?
8897 #
8898 case "x$archive_cmds_need_lc" in
8899 x|xyes)
8900 # Assume -lc should be added
8901 archive_cmds_need_lc=yes
8902
8903 if test "$enable_shared" = yes && test "$GCC" = yes; then
8904 case $archive_cmds in
8905 *'~'*)
8906 # FIXME: we may have to deal with multi-command sequences.
8907 ;;
8908 '$CC '*)
8909 # Test whether the compiler implicitly links with -lc since on some
8910 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8911 # to ld, don't add -lc before -lgcc.
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8913 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8914 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 $RM conftest*
8918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8919
8920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8921 (eval $ac_compile) 2>&5
8922 ac_status=$?
8923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8924 test $ac_status = 0; } 2>conftest.err; then
8925 soname=conftest
8926 lib=conftest
8927 libobjs=conftest.$ac_objext
8928 deplibs=
8929 wl=$lt_prog_compiler_wl
8930 pic_flag=$lt_prog_compiler_pic
8931 compiler_flags=-v
8932 linker_flags=-v
8933 verstring=
8934 output_objdir=.
8935 libname=conftest
8936 lt_save_allow_undefined_flag=$allow_undefined_flag
8937 allow_undefined_flag=
8938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8939 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8940 ac_status=$?
8941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8942 test $ac_status = 0; }
8943 then
8944 lt_cv_archive_cmds_need_lc=no
8945 else
8946 lt_cv_archive_cmds_need_lc=yes
8947 fi
8948 allow_undefined_flag=$lt_save_allow_undefined_flag
8949 else
8950 cat conftest.err 1>&5
8951 fi
8952 $RM conftest*
8953
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8956 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8957 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8958 ;;
8959 esac
8960 fi
8961 ;;
8962 esac
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9121 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9122
9123 if test "$GCC" = yes; then
9124 case $host_os in
9125 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9126 *) lt_awk_arg="/^libraries:/" ;;
9127 esac
9128 case $host_os in
9129 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9130 *) lt_sed_strip_eq="s,=/,/,g" ;;
9131 esac
9132 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9133 case $lt_search_path_spec in
9134 *\;*)
9135 # if the path contains ";" then we assume it to be the separator
9136 # otherwise default to the standard path separator (i.e. ":") - it is
9137 # assumed that no part of a normal pathname contains ";" but that should
9138 # okay in the real world where ";" in dirpaths is itself problematic.
9139 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9140 ;;
9141 *)
9142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9143 ;;
9144 esac
9145 # Ok, now we have the path, separated by spaces, we can step through it
9146 # and add multilib dir if necessary.
9147 lt_tmp_lt_search_path_spec=
9148 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9149 for lt_sys_path in $lt_search_path_spec; do
9150 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9151 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9152 else
9153 test -d "$lt_sys_path" && \
9154 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9155 fi
9156 done
9157 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9158 BEGIN {RS=" "; FS="/|\n";} {
9159 lt_foo="";
9160 lt_count=0;
9161 for (lt_i = NF; lt_i > 0; lt_i--) {
9162 if ($lt_i != "" && $lt_i != ".") {
9163 if ($lt_i == "..") {
9164 lt_count++;
9165 } else {
9166 if (lt_count == 0) {
9167 lt_foo="/" $lt_i lt_foo;
9168 } else {
9169 lt_count--;
9170 }
9171 }
9172 }
9173 }
9174 if (lt_foo != "") { lt_freq[lt_foo]++; }
9175 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9176 }'`
9177 # AWK program above erroneously prepends '/' to C:/dos/paths
9178 # for these hosts.
9179 case $host_os in
9180 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9181 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9182 esac
9183 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9184 else
9185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9186 fi
9187 library_names_spec=
9188 libname_spec='lib$name'
9189 soname_spec=
9190 shrext_cmds=".so"
9191 postinstall_cmds=
9192 postuninstall_cmds=
9193 finish_cmds=
9194 finish_eval=
9195 shlibpath_var=
9196 shlibpath_overrides_runpath=unknown
9197 version_type=none
9198 dynamic_linker="$host_os ld.so"
9199 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9200 need_lib_prefix=unknown
9201 hardcode_into_libs=no
9202
9203 # when you set need_version to no, make sure it does not cause -set_version
9204 # flags to be left without arguments
9205 need_version=unknown
9206
9207 case $host_os in
9208 aix3*)
9209 version_type=linux
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9211 shlibpath_var=LIBPATH
9212
9213 # AIX 3 has no versioning support, so we append a major version to the name.
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 ;;
9216
9217 aix[4-9]*)
9218 version_type=linux
9219 need_lib_prefix=no
9220 need_version=no
9221 hardcode_into_libs=yes
9222 if test "$host_cpu" = ia64; then
9223 # AIX 5 supports IA64
9224 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 else
9227 # With GCC up to 2.95.x, collect2 would create an import file
9228 # for dependence libraries. The import file would start with
9229 # the line `#! .'. This would cause the generated library to
9230 # depend on `.', always an invalid library. This was fixed in
9231 # development snapshots of GCC prior to 3.0.
9232 case $host_os in
9233 aix4 | aix4.[01] | aix4.[01].*)
9234 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9235 echo ' yes '
9236 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9237 :
9238 else
9239 can_build_shared=no
9240 fi
9241 ;;
9242 esac
9243 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9244 # soname into executable. Probably we can add versioning support to
9245 # collect2, so additional links can be useful in future.
9246 if test "$aix_use_runtimelinking" = yes; then
9247 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9248 # instead of lib<name>.a to let people know that these are not
9249 # typical AIX shared libraries.
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251 else
9252 # We preserve .a as extension for shared libraries through AIX4.2
9253 # and later when we are not doing run time linking.
9254 library_names_spec='${libname}${release}.a $libname.a'
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 fi
9257 shlibpath_var=LIBPATH
9258 fi
9259 ;;
9260
9261 amigaos*)
9262 case $host_cpu in
9263 powerpc)
9264 # Since July 2007 AmigaOS4 officially supports .so libraries.
9265 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 ;;
9268 m68k)
9269 library_names_spec='$libname.ixlibrary $libname.a'
9270 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9271 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'
9272 ;;
9273 esac
9274 ;;
9275
9276 beos*)
9277 library_names_spec='${libname}${shared_ext}'
9278 dynamic_linker="$host_os ld.so"
9279 shlibpath_var=LIBRARY_PATH
9280 ;;
9281
9282 bsdi[45]*)
9283 version_type=linux
9284 need_version=no
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9288 shlibpath_var=LD_LIBRARY_PATH
9289 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9290 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9291 # the default ld.so.conf also contains /usr/contrib/lib and
9292 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9293 # libtool to hard-code these into programs
9294 ;;
9295
9296 cygwin* | mingw* | pw32* | cegcc*)
9297 version_type=windows
9298 shrext_cmds=".dll"
9299 need_version=no
9300 need_lib_prefix=no
9301
9302 case $GCC,$host_os in
9303 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9304 library_names_spec='$libname.dll.a'
9305 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9306 postinstall_cmds='base_file=`basename \${file}`~
9307 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9308 dldir=$destdir/`dirname \$dlpath`~
9309 test -d \$dldir || mkdir -p \$dldir~
9310 $install_prog $dir/$dlname \$dldir/$dlname~
9311 chmod a+x \$dldir/$dlname~
9312 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9313 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9314 fi'
9315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9316 dlpath=$dir/\$dldll~
9317 $RM \$dlpath'
9318 shlibpath_overrides_runpath=yes
9319
9320 case $host_os in
9321 cygwin*)
9322 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9323 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9324
9325 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9326 ;;
9327 mingw* | cegcc*)
9328 # MinGW DLLs use traditional 'lib' prefix
9329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9330 ;;
9331 pw32*)
9332 # pw32 DLLs use 'pw' prefix rather than 'lib'
9333 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9334 ;;
9335 esac
9336 ;;
9337
9338 *)
9339 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9340 ;;
9341 esac
9342 dynamic_linker='Win32 ld.exe'
9343 # FIXME: first we should search . and the directory the executable is in
9344 shlibpath_var=PATH
9345 ;;
9346
9347 darwin* | rhapsody*)
9348 dynamic_linker="$host_os dyld"
9349 version_type=darwin
9350 need_lib_prefix=no
9351 need_version=no
9352 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9353 soname_spec='${libname}${release}${major}$shared_ext'
9354 shlibpath_overrides_runpath=yes
9355 shlibpath_var=DYLD_LIBRARY_PATH
9356 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9357
9358 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9360 ;;
9361
9362 dgux*)
9363 version_type=linux
9364 need_lib_prefix=no
9365 need_version=no
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 ;;
9370
9371 freebsd1*)
9372 dynamic_linker=no
9373 ;;
9374
9375 freebsd* | dragonfly*)
9376 # DragonFly does not have aout. When/if they implement a new
9377 # versioning mechanism, adjust this.
9378 if test -x /usr/bin/objformat; then
9379 objformat=`/usr/bin/objformat`
9380 else
9381 case $host_os in
9382 freebsd[123]*) objformat=aout ;;
9383 *) objformat=elf ;;
9384 esac
9385 fi
9386 version_type=freebsd-$objformat
9387 case $version_type in
9388 freebsd-elf*)
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9390 need_version=no
9391 need_lib_prefix=no
9392 ;;
9393 freebsd-*)
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9395 need_version=yes
9396 ;;
9397 esac
9398 shlibpath_var=LD_LIBRARY_PATH
9399 case $host_os in
9400 freebsd2*)
9401 shlibpath_overrides_runpath=yes
9402 ;;
9403 freebsd3.[01]* | freebsdelf3.[01]*)
9404 shlibpath_overrides_runpath=yes
9405 hardcode_into_libs=yes
9406 ;;
9407 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9408 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9409 shlibpath_overrides_runpath=no
9410 hardcode_into_libs=yes
9411 ;;
9412 *) # from 4.6 on, and DragonFly
9413 shlibpath_overrides_runpath=yes
9414 hardcode_into_libs=yes
9415 ;;
9416 esac
9417 ;;
9418
9419 gnu*)
9420 version_type=linux
9421 need_lib_prefix=no
9422 need_version=no
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9424 soname_spec='${libname}${release}${shared_ext}$major'
9425 shlibpath_var=LD_LIBRARY_PATH
9426 hardcode_into_libs=yes
9427 ;;
9428
9429 haiku*)
9430 version_type=linux
9431 need_lib_prefix=no
9432 need_version=no
9433 dynamic_linker="$host_os runtime_loader"
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9435 soname_spec='${libname}${release}${shared_ext}$major'
9436 shlibpath_var=LIBRARY_PATH
9437 shlibpath_overrides_runpath=yes
9438 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9439 hardcode_into_libs=yes
9440 ;;
9441
9442 hpux9* | hpux10* | hpux11*)
9443 # Give a soname corresponding to the major version so that dld.sl refuses to
9444 # link against other versions.
9445 version_type=sunos
9446 need_lib_prefix=no
9447 need_version=no
9448 case $host_cpu in
9449 ia64*)
9450 shrext_cmds='.so'
9451 hardcode_into_libs=yes
9452 dynamic_linker="$host_os dld.so"
9453 shlibpath_var=LD_LIBRARY_PATH
9454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 if test "X$HPUX_IA64_MODE" = X32; then
9458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9459 else
9460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9461 fi
9462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9463 ;;
9464 hppa*64*)
9465 shrext_cmds='.sl'
9466 hardcode_into_libs=yes
9467 dynamic_linker="$host_os dld.sl"
9468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9474 ;;
9475 *)
9476 shrext_cmds='.sl'
9477 dynamic_linker="$host_os dld.sl"
9478 shlibpath_var=SHLIB_PATH
9479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9481 soname_spec='${libname}${release}${shared_ext}$major'
9482 ;;
9483 esac
9484 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9485 postinstall_cmds='chmod 555 $lib'
9486 # or fails outright, so override atomically:
9487 install_override_mode=555
9488 ;;
9489
9490 interix[3-9]*)
9491 version_type=linux
9492 need_lib_prefix=no
9493 need_version=no
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 shlibpath_overrides_runpath=no
9499 hardcode_into_libs=yes
9500 ;;
9501
9502 irix5* | irix6* | nonstopux*)
9503 case $host_os in
9504 nonstopux*) version_type=nonstopux ;;
9505 *)
9506 if test "$lt_cv_prog_gnu_ld" = yes; then
9507 version_type=linux
9508 else
9509 version_type=irix
9510 fi ;;
9511 esac
9512 need_lib_prefix=no
9513 need_version=no
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9516 case $host_os in
9517 irix5* | nonstopux*)
9518 libsuff= shlibsuff=
9519 ;;
9520 *)
9521 case $LD in # libtool.m4 will add one of these switches to LD
9522 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9523 libsuff= shlibsuff= libmagic=32-bit;;
9524 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9525 libsuff=32 shlibsuff=N32 libmagic=N32;;
9526 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9527 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9528 *) libsuff= shlibsuff= libmagic=never-match;;
9529 esac
9530 ;;
9531 esac
9532 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9533 shlibpath_overrides_runpath=no
9534 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9535 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9536 hardcode_into_libs=yes
9537 ;;
9538
9539 # No shared lib support for Linux oldld, aout, or coff.
9540 linux*oldld* | linux*aout* | linux*coff*)
9541 dynamic_linker=no
9542 ;;
9543
9544 # This must be Linux ELF.
9545 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9546 version_type=linux
9547 need_lib_prefix=no
9548 need_version=no
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 shlibpath_overrides_runpath=no
9554
9555 # Some binutils ld are patched to set DT_RUNPATH
9556 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 lt_cv_shlibpath_overrides_runpath=no
9560 save_LDFLAGS=$LDFLAGS
9561 save_libdir=$libdir
9562 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9563 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9564 if test x$gcc_no_link = xyes; then
9565 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9566 fi
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9569
9570 int
9571 main ()
9572 {
9573
9574 ;
9575 return 0;
9576 }
9577 _ACEOF
9578 if ac_fn_c_try_link "$LINENO"; then :
9579 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9580 lt_cv_shlibpath_overrides_runpath=yes
9581 fi
9582 fi
9583 rm -f core conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 LDFLAGS=$save_LDFLAGS
9586 libdir=$save_libdir
9587
9588 fi
9589
9590 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9591
9592 # This implies no fast_install, which is unacceptable.
9593 # Some rework will be needed to allow for fast_install
9594 # before this can be enabled.
9595 hardcode_into_libs=yes
9596
9597 # Append ld.so.conf contents to the search path
9598 if test -f /etc/ld.so.conf; then
9599 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' ' '`
9600 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9601 fi
9602
9603 # We used to test for /lib/ld.so.1 and disable shared libraries on
9604 # powerpc, because MkLinux only supported shared libraries with the
9605 # GNU dynamic linker. Since this was broken with cross compilers,
9606 # most powerpc-linux boxes support dynamic linking these days and
9607 # people can always --disable-shared, the test was removed, and we
9608 # assume the GNU/Linux dynamic linker is in use.
9609 dynamic_linker='GNU/Linux ld.so'
9610 ;;
9611
9612 netbsd*)
9613 version_type=sunos
9614 need_lib_prefix=no
9615 need_version=no
9616 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9619 dynamic_linker='NetBSD (a.out) ld.so'
9620 else
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 dynamic_linker='NetBSD ld.elf_so'
9624 fi
9625 shlibpath_var=LD_LIBRARY_PATH
9626 shlibpath_overrides_runpath=yes
9627 hardcode_into_libs=yes
9628 ;;
9629
9630 newsos6)
9631 version_type=linux
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 shlibpath_overrides_runpath=yes
9635 ;;
9636
9637 *nto* | *qnx*)
9638 version_type=qnx
9639 need_lib_prefix=no
9640 need_version=no
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 shlibpath_var=LD_LIBRARY_PATH
9644 shlibpath_overrides_runpath=no
9645 hardcode_into_libs=yes
9646 dynamic_linker='ldqnx.so'
9647 ;;
9648
9649 openbsd*)
9650 version_type=sunos
9651 sys_lib_dlsearch_path_spec="/usr/lib"
9652 need_lib_prefix=no
9653 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9654 case $host_os in
9655 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9656 *) need_version=no ;;
9657 esac
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9662 case $host_os in
9663 openbsd2.[89] | openbsd2.[89].*)
9664 shlibpath_overrides_runpath=no
9665 ;;
9666 *)
9667 shlibpath_overrides_runpath=yes
9668 ;;
9669 esac
9670 else
9671 shlibpath_overrides_runpath=yes
9672 fi
9673 ;;
9674
9675 os2*)
9676 libname_spec='$name'
9677 shrext_cmds=".dll"
9678 need_lib_prefix=no
9679 library_names_spec='$libname${shared_ext} $libname.a'
9680 dynamic_linker='OS/2 ld.exe'
9681 shlibpath_var=LIBPATH
9682 ;;
9683
9684 osf3* | osf4* | osf5*)
9685 version_type=osf
9686 need_lib_prefix=no
9687 need_version=no
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9693 ;;
9694
9695 rdos*)
9696 dynamic_linker=no
9697 ;;
9698
9699 solaris*)
9700 version_type=linux
9701 need_lib_prefix=no
9702 need_version=no
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=yes
9707 hardcode_into_libs=yes
9708 # ldd complains unless libraries are executable
9709 postinstall_cmds='chmod +x $lib'
9710 ;;
9711
9712 sunos4*)
9713 version_type=sunos
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 shlibpath_overrides_runpath=yes
9718 if test "$with_gnu_ld" = yes; then
9719 need_lib_prefix=no
9720 fi
9721 need_version=yes
9722 ;;
9723
9724 sysv4 | sysv4.3*)
9725 version_type=linux
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 shlibpath_var=LD_LIBRARY_PATH
9729 case $host_vendor in
9730 sni)
9731 shlibpath_overrides_runpath=no
9732 need_lib_prefix=no
9733 runpath_var=LD_RUN_PATH
9734 ;;
9735 siemens)
9736 need_lib_prefix=no
9737 ;;
9738 motorola)
9739 need_lib_prefix=no
9740 need_version=no
9741 shlibpath_overrides_runpath=no
9742 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9743 ;;
9744 esac
9745 ;;
9746
9747 sysv4*MP*)
9748 if test -d /usr/nec ;then
9749 version_type=linux
9750 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9751 soname_spec='$libname${shared_ext}.$major'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 fi
9754 ;;
9755
9756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9757 version_type=freebsd-elf
9758 need_lib_prefix=no
9759 need_version=no
9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9761 soname_spec='${libname}${release}${shared_ext}$major'
9762 shlibpath_var=LD_LIBRARY_PATH
9763 shlibpath_overrides_runpath=yes
9764 hardcode_into_libs=yes
9765 if test "$with_gnu_ld" = yes; then
9766 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9767 else
9768 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9769 case $host_os in
9770 sco3.2v5*)
9771 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9772 ;;
9773 esac
9774 fi
9775 sys_lib_dlsearch_path_spec='/usr/lib'
9776 ;;
9777
9778 tpf*)
9779 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9780 version_type=linux
9781 need_lib_prefix=no
9782 need_version=no
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784 shlibpath_var=LD_LIBRARY_PATH
9785 shlibpath_overrides_runpath=no
9786 hardcode_into_libs=yes
9787 ;;
9788
9789 uts4*)
9790 version_type=linux
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 ;;
9795
9796 *)
9797 dynamic_linker=no
9798 ;;
9799 esac
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9801 $as_echo "$dynamic_linker" >&6; }
9802 test "$dynamic_linker" = no && can_build_shared=no
9803
9804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9805 if test "$GCC" = yes; then
9806 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9807 fi
9808
9809 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9810 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9811 fi
9812 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9813 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9814 fi
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9908 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9909 hardcode_action=
9910 if test -n "$hardcode_libdir_flag_spec" ||
9911 test -n "$runpath_var" ||
9912 test "X$hardcode_automatic" = "Xyes" ; then
9913
9914 # We can hardcode non-existent directories.
9915 if test "$hardcode_direct" != no &&
9916 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9917 # have to relink, otherwise we might link with an installed library
9918 # when we should be linking with a yet-to-be-installed one
9919 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9920 test "$hardcode_minus_L" != no; then
9921 # Linking always hardcodes the temporary library directory.
9922 hardcode_action=relink
9923 else
9924 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9925 hardcode_action=immediate
9926 fi
9927 else
9928 # We cannot hardcode anything, or else we can only hardcode existing
9929 # directories.
9930 hardcode_action=unsupported
9931 fi
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9933 $as_echo "$hardcode_action" >&6; }
9934
9935 if test "$hardcode_action" = relink ||
9936 test "$inherit_rpath" = yes; then
9937 # Fast installation is not supported
9938 enable_fast_install=no
9939 elif test "$shlibpath_overrides_runpath" = yes ||
9940 test "$enable_shared" = no; then
9941 # Fast installation is not necessary
9942 enable_fast_install=needless
9943 fi
9944
9945
9946
9947
9948
9949
9950 if test "x$enable_dlopen" != xyes; then
9951 enable_dlopen=unknown
9952 enable_dlopen_self=unknown
9953 enable_dlopen_self_static=unknown
9954 else
9955 lt_cv_dlopen=no
9956 lt_cv_dlopen_libs=
9957
9958 case $host_os in
9959 beos*)
9960 lt_cv_dlopen="load_add_on"
9961 lt_cv_dlopen_libs=
9962 lt_cv_dlopen_self=yes
9963 ;;
9964
9965 mingw* | pw32* | cegcc*)
9966 lt_cv_dlopen="LoadLibrary"
9967 lt_cv_dlopen_libs=
9968 ;;
9969
9970 cygwin*)
9971 lt_cv_dlopen="dlopen"
9972 lt_cv_dlopen_libs=
9973 ;;
9974
9975 darwin*)
9976 # if libdl is installed we need to link against it
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9978 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 ac_check_lib_save_LIBS=$LIBS
9983 LIBS="-ldl $LIBS"
9984 if test x$gcc_no_link = xyes; then
9985 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9986 fi
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989
9990 /* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9993 #ifdef __cplusplus
9994 extern "C"
9995 #endif
9996 char dlopen ();
9997 int
9998 main ()
9999 {
10000 return dlopen ();
10001 ;
10002 return 0;
10003 }
10004 _ACEOF
10005 if ac_fn_c_try_link "$LINENO"; then :
10006 ac_cv_lib_dl_dlopen=yes
10007 else
10008 ac_cv_lib_dl_dlopen=no
10009 fi
10010 rm -f core conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
10012 LIBS=$ac_check_lib_save_LIBS
10013 fi
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10015 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10016 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10018 else
10019
10020 lt_cv_dlopen="dyld"
10021 lt_cv_dlopen_libs=
10022 lt_cv_dlopen_self=yes
10023
10024 fi
10025
10026 ;;
10027
10028 *)
10029 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10030 if test "x$ac_cv_func_shl_load" = x""yes; then :
10031 lt_cv_dlopen="shl_load"
10032 else
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10034 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 ac_check_lib_save_LIBS=$LIBS
10039 LIBS="-ldld $LIBS"
10040 if test x$gcc_no_link = xyes; then
10041 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10042 fi
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045
10046 /* Override any GCC internal prototype to avoid an error.
10047 Use char because int might match the return type of a GCC
10048 builtin and then its argument prototype would still apply. */
10049 #ifdef __cplusplus
10050 extern "C"
10051 #endif
10052 char shl_load ();
10053 int
10054 main ()
10055 {
10056 return shl_load ();
10057 ;
10058 return 0;
10059 }
10060 _ACEOF
10061 if ac_fn_c_try_link "$LINENO"; then :
10062 ac_cv_lib_dld_shl_load=yes
10063 else
10064 ac_cv_lib_dld_shl_load=no
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 LIBS=$ac_check_lib_save_LIBS
10069 fi
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10071 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10072 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10073 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10074 else
10075 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10076 if test "x$ac_cv_func_dlopen" = x""yes; then :
10077 lt_cv_dlopen="dlopen"
10078 else
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10080 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10081 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 ac_check_lib_save_LIBS=$LIBS
10085 LIBS="-ldl $LIBS"
10086 if test x$gcc_no_link = xyes; then
10087 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10088 fi
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091
10092 /* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
10095 #ifdef __cplusplus
10096 extern "C"
10097 #endif
10098 char dlopen ();
10099 int
10100 main ()
10101 {
10102 return dlopen ();
10103 ;
10104 return 0;
10105 }
10106 _ACEOF
10107 if ac_fn_c_try_link "$LINENO"; then :
10108 ac_cv_lib_dl_dlopen=yes
10109 else
10110 ac_cv_lib_dl_dlopen=no
10111 fi
10112 rm -f core conftest.err conftest.$ac_objext \
10113 conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10117 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10118 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10119 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10120 else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10122 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10123 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 ac_check_lib_save_LIBS=$LIBS
10127 LIBS="-lsvld $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 dlopen ();
10141 int
10142 main ()
10143 {
10144 return dlopen ();
10145 ;
10146 return 0;
10147 }
10148 _ACEOF
10149 if ac_fn_c_try_link "$LINENO"; then :
10150 ac_cv_lib_svld_dlopen=yes
10151 else
10152 ac_cv_lib_svld_dlopen=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_svld_dlopen" >&5
10159 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10160 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10162 else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10164 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10165 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 ac_check_lib_save_LIBS=$LIBS
10169 LIBS="-ldld $LIBS"
10170 if test x$gcc_no_link = xyes; then
10171 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10172 fi
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175
10176 /* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
10179 #ifdef __cplusplus
10180 extern "C"
10181 #endif
10182 char dld_link ();
10183 int
10184 main ()
10185 {
10186 return dld_link ();
10187 ;
10188 return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192 ac_cv_lib_dld_dld_link=yes
10193 else
10194 ac_cv_lib_dld_dld_link=no
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 LIBS=$ac_check_lib_save_LIBS
10199 fi
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10201 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10202 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10203 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10204 fi
10205
10206
10207 fi
10208
10209
10210 fi
10211
10212
10213 fi
10214
10215
10216 fi
10217
10218
10219 fi
10220
10221 ;;
10222 esac
10223
10224 if test "x$lt_cv_dlopen" != xno; then
10225 enable_dlopen=yes
10226 else
10227 enable_dlopen=no
10228 fi
10229
10230 case $lt_cv_dlopen in
10231 dlopen)
10232 save_CPPFLAGS="$CPPFLAGS"
10233 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10234
10235 save_LDFLAGS="$LDFLAGS"
10236 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10237
10238 save_LIBS="$LIBS"
10239 LIBS="$lt_cv_dlopen_libs $LIBS"
10240
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10242 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10243 if test "${lt_cv_dlopen_self+set}" = set; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 if test "$cross_compiling" = yes; then :
10247 lt_cv_dlopen_self=cross
10248 else
10249 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10250 lt_status=$lt_dlunknown
10251 cat > conftest.$ac_ext <<_LT_EOF
10252 #line 10252 "configure"
10253 #include "confdefs.h"
10254
10255 #if HAVE_DLFCN_H
10256 #include <dlfcn.h>
10257 #endif
10258
10259 #include <stdio.h>
10260
10261 #ifdef RTLD_GLOBAL
10262 # define LT_DLGLOBAL RTLD_GLOBAL
10263 #else
10264 # ifdef DL_GLOBAL
10265 # define LT_DLGLOBAL DL_GLOBAL
10266 # else
10267 # define LT_DLGLOBAL 0
10268 # endif
10269 #endif
10270
10271 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10272 find out it does not work in some platform. */
10273 #ifndef LT_DLLAZY_OR_NOW
10274 # ifdef RTLD_LAZY
10275 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10276 # else
10277 # ifdef DL_LAZY
10278 # define LT_DLLAZY_OR_NOW DL_LAZY
10279 # else
10280 # ifdef RTLD_NOW
10281 # define LT_DLLAZY_OR_NOW RTLD_NOW
10282 # else
10283 # ifdef DL_NOW
10284 # define LT_DLLAZY_OR_NOW DL_NOW
10285 # else
10286 # define LT_DLLAZY_OR_NOW 0
10287 # endif
10288 # endif
10289 # endif
10290 # endif
10291 #endif
10292
10293 /* When -fvisbility=hidden is used, assume the code has been annotated
10294 correspondingly for the symbols needed. */
10295 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10296 void fnord () __attribute__((visibility("default")));
10297 #endif
10298
10299 void fnord () { int i=42; }
10300 int main ()
10301 {
10302 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10303 int status = $lt_dlunknown;
10304
10305 if (self)
10306 {
10307 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10308 else
10309 {
10310 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10311 else puts (dlerror ());
10312 }
10313 /* dlclose (self); */
10314 }
10315 else
10316 puts (dlerror ());
10317
10318 return status;
10319 }
10320 _LT_EOF
10321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10322 (eval $ac_link) 2>&5
10323 ac_status=$?
10324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10326 (./conftest; exit; ) >&5 2>/dev/null
10327 lt_status=$?
10328 case x$lt_status in
10329 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10330 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10331 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10332 esac
10333 else :
10334 # compilation failed
10335 lt_cv_dlopen_self=no
10336 fi
10337 fi
10338 rm -fr conftest*
10339
10340
10341 fi
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10343 $as_echo "$lt_cv_dlopen_self" >&6; }
10344
10345 if test "x$lt_cv_dlopen_self" = xyes; then
10346 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10348 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10349 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 if test "$cross_compiling" = yes; then :
10353 lt_cv_dlopen_self_static=cross
10354 else
10355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10356 lt_status=$lt_dlunknown
10357 cat > conftest.$ac_ext <<_LT_EOF
10358 #line 10358 "configure"
10359 #include "confdefs.h"
10360
10361 #if HAVE_DLFCN_H
10362 #include <dlfcn.h>
10363 #endif
10364
10365 #include <stdio.h>
10366
10367 #ifdef RTLD_GLOBAL
10368 # define LT_DLGLOBAL RTLD_GLOBAL
10369 #else
10370 # ifdef DL_GLOBAL
10371 # define LT_DLGLOBAL DL_GLOBAL
10372 # else
10373 # define LT_DLGLOBAL 0
10374 # endif
10375 #endif
10376
10377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10378 find out it does not work in some platform. */
10379 #ifndef LT_DLLAZY_OR_NOW
10380 # ifdef RTLD_LAZY
10381 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10382 # else
10383 # ifdef DL_LAZY
10384 # define LT_DLLAZY_OR_NOW DL_LAZY
10385 # else
10386 # ifdef RTLD_NOW
10387 # define LT_DLLAZY_OR_NOW RTLD_NOW
10388 # else
10389 # ifdef DL_NOW
10390 # define LT_DLLAZY_OR_NOW DL_NOW
10391 # else
10392 # define LT_DLLAZY_OR_NOW 0
10393 # endif
10394 # endif
10395 # endif
10396 # endif
10397 #endif
10398
10399 /* When -fvisbility=hidden is used, assume the code has been annotated
10400 correspondingly for the symbols needed. */
10401 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10402 void fnord () __attribute__((visibility("default")));
10403 #endif
10404
10405 void fnord () { int i=42; }
10406 int main ()
10407 {
10408 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10409 int status = $lt_dlunknown;
10410
10411 if (self)
10412 {
10413 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10414 else
10415 {
10416 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10417 else puts (dlerror ());
10418 }
10419 /* dlclose (self); */
10420 }
10421 else
10422 puts (dlerror ());
10423
10424 return status;
10425 }
10426 _LT_EOF
10427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10428 (eval $ac_link) 2>&5
10429 ac_status=$?
10430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10431 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10432 (./conftest; exit; ) >&5 2>/dev/null
10433 lt_status=$?
10434 case x$lt_status in
10435 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10436 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10437 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10438 esac
10439 else :
10440 # compilation failed
10441 lt_cv_dlopen_self_static=no
10442 fi
10443 fi
10444 rm -fr conftest*
10445
10446
10447 fi
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10449 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10450 fi
10451
10452 CPPFLAGS="$save_CPPFLAGS"
10453 LDFLAGS="$save_LDFLAGS"
10454 LIBS="$save_LIBS"
10455 ;;
10456 esac
10457
10458 case $lt_cv_dlopen_self in
10459 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10460 *) enable_dlopen_self=unknown ;;
10461 esac
10462
10463 case $lt_cv_dlopen_self_static in
10464 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10465 *) enable_dlopen_self_static=unknown ;;
10466 esac
10467 fi
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485 striplib=
10486 old_striplib=
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10488 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10489 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10490 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10491 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10493 $as_echo "yes" >&6; }
10494 else
10495 # FIXME - insert some real tests, host_os isn't really good enough
10496 case $host_os in
10497 darwin*)
10498 if test -n "$STRIP" ; then
10499 striplib="$STRIP -x"
10500 old_striplib="$STRIP -S"
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10502 $as_echo "yes" >&6; }
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10506 fi
10507 ;;
10508 *)
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 $as_echo "no" >&6; }
10511 ;;
10512 esac
10513 fi
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526 # Report which library types will actually be built
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10528 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10530 $as_echo "$can_build_shared" >&6; }
10531
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10533 $as_echo_n "checking whether to build shared libraries... " >&6; }
10534 test "$can_build_shared" = "no" && enable_shared=no
10535
10536 # On AIX, shared libraries and static libraries use the same namespace, and
10537 # are all built from PIC.
10538 case $host_os in
10539 aix3*)
10540 test "$enable_shared" = yes && enable_static=no
10541 if test -n "$RANLIB"; then
10542 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10543 postinstall_cmds='$RANLIB $lib'
10544 fi
10545 ;;
10546
10547 aix[4-9]*)
10548 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10549 test "$enable_shared" = yes && enable_static=no
10550 fi
10551 ;;
10552 esac
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10554 $as_echo "$enable_shared" >&6; }
10555
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10557 $as_echo_n "checking whether to build static libraries... " >&6; }
10558 # Make sure either enable_shared or enable_static is yes.
10559 test "$enable_shared" = yes || enable_static=yes
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10561 $as_echo "$enable_static" >&6; }
10562
10563
10564
10565
10566 fi
10567 ac_ext=c
10568 ac_cpp='$CPP $CPPFLAGS'
10569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10572
10573 CC="$lt_save_CC"
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587 ac_config_commands="$ac_config_commands libtool"
10588
10589
10590
10591
10592 # Only expand once:
10593
10594
10595
10596
10597
10598
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10600 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10601 # Check whether --enable-maintainer-mode was given.
10602 if test "${enable_maintainer_mode+set}" = set; then :
10603 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10604 else
10605 USE_MAINTAINER_MODE=no
10606 fi
10607
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10609 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10610 if test $USE_MAINTAINER_MODE = yes; then
10611 MAINTAINER_MODE_TRUE=
10612 MAINTAINER_MODE_FALSE='#'
10613 else
10614 MAINTAINER_MODE_TRUE='#'
10615 MAINTAINER_MODE_FALSE=
10616 fi
10617
10618 MAINT=$MAINTAINER_MODE_TRUE
10619
10620
10621 # Default to --enable-multilib
10622 # Check whether --enable-multilib was given.
10623 if test "${enable_multilib+set}" = set; then :
10624 enableval=$enable_multilib; case "$enableval" in
10625 yes) multilib=yes ;;
10626 no) multilib=no ;;
10627 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
10628 esac
10629 else
10630 multilib=yes
10631 fi
10632
10633
10634 # We may get other options which we leave undocumented:
10635 # --with-target-subdir, --with-multisrctop, --with-multisubdir
10636 # See config-ml.in if you want the gory details.
10637
10638 if test "$srcdir" = "."; then
10639 if test "$with_target_subdir" != "."; then
10640 multi_basedir="$srcdir/$with_multisrctop../.."
10641 else
10642 multi_basedir="$srcdir/$with_multisrctop.."
10643 fi
10644 else
10645 multi_basedir="$srcdir/.."
10646 fi
10647
10648
10649 # Even if the default multilib is not a cross compilation,
10650 # it may be that some of the other multilibs are.
10651 if test $cross_compiling = no && test $multilib = yes \
10652 && test "x${with_multisubdir}" != x ; then
10653 cross_compiling=maybe
10654 fi
10655
10656 ac_config_commands="$ac_config_commands default-1"
10657
10658
10659 ac_ext=c
10660 ac_cpp='$CPP $CPPFLAGS'
10661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10664
10665 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
10666 # We must force CC to /not/ be precious variables; otherwise
10667 # the wrong, non-multilib-adjusted value will be used in multilibs.
10668 # As a side effect, we have to subst CFLAGS ourselves.
10669
10670
10671
10672 ac_ext=c
10673 ac_cpp='$CPP $CPPFLAGS'
10674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10677 if test -n "$ac_tool_prefix"; then
10678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681 $as_echo_n "checking for $ac_word... " >&6; }
10682 if test "${ac_cv_prog_CC+set}" = set; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685 if test -n "$CC"; then
10686 ac_cv_prog_CC="$CC" # Let the user override the test.
10687 else
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10690 do
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10695 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 break 2
10698 fi
10699 done
10700 done
10701 IFS=$as_save_IFS
10702
10703 fi
10704 fi
10705 CC=$ac_cv_prog_CC
10706 if test -n "$CC"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10708 $as_echo "$CC" >&6; }
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10712 fi
10713
10714
10715 fi
10716 if test -z "$ac_cv_prog_CC"; then
10717 ac_ct_CC=$CC
10718 # Extract the first word of "gcc", so it can be a program name with args.
10719 set dummy gcc; ac_word=$2
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10721 $as_echo_n "checking for $ac_word... " >&6; }
10722 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10723 $as_echo_n "(cached) " >&6
10724 else
10725 if test -n "$ac_ct_CC"; then
10726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10727 else
10728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729 for as_dir in $PATH
10730 do
10731 IFS=$as_save_IFS
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10735 ac_cv_prog_ac_ct_CC="gcc"
10736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 break 2
10738 fi
10739 done
10740 done
10741 IFS=$as_save_IFS
10742
10743 fi
10744 fi
10745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10746 if test -n "$ac_ct_CC"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10748 $as_echo "$ac_ct_CC" >&6; }
10749 else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; }
10752 fi
10753
10754 if test "x$ac_ct_CC" = x; then
10755 CC=""
10756 else
10757 case $cross_compiling:$ac_tool_warned in
10758 yes:)
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10761 ac_tool_warned=yes ;;
10762 esac
10763 CC=$ac_ct_CC
10764 fi
10765 else
10766 CC="$ac_cv_prog_CC"
10767 fi
10768
10769 if test -z "$CC"; then
10770 if test -n "$ac_tool_prefix"; then
10771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10772 set dummy ${ac_tool_prefix}cc; ac_word=$2
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10774 $as_echo_n "checking for $ac_word... " >&6; }
10775 if test "${ac_cv_prog_CC+set}" = set; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 if test -n "$CC"; then
10779 ac_cv_prog_CC="$CC" # Let the user override the test.
10780 else
10781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782 for as_dir in $PATH
10783 do
10784 IFS=$as_save_IFS
10785 test -z "$as_dir" && as_dir=.
10786 for ac_exec_ext in '' $ac_executable_extensions; do
10787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10788 ac_cv_prog_CC="${ac_tool_prefix}cc"
10789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10790 break 2
10791 fi
10792 done
10793 done
10794 IFS=$as_save_IFS
10795
10796 fi
10797 fi
10798 CC=$ac_cv_prog_CC
10799 if test -n "$CC"; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10801 $as_echo "$CC" >&6; }
10802 else
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804 $as_echo "no" >&6; }
10805 fi
10806
10807
10808 fi
10809 fi
10810 if test -z "$CC"; then
10811 # Extract the first word of "cc", so it can be a program name with args.
10812 set dummy cc; ac_word=$2
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10814 $as_echo_n "checking for $ac_word... " >&6; }
10815 if test "${ac_cv_prog_CC+set}" = set; then :
10816 $as_echo_n "(cached) " >&6
10817 else
10818 if test -n "$CC"; then
10819 ac_cv_prog_CC="$CC" # Let the user override the test.
10820 else
10821 ac_prog_rejected=no
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823 for as_dir in $PATH
10824 do
10825 IFS=$as_save_IFS
10826 test -z "$as_dir" && as_dir=.
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10829 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10830 ac_prog_rejected=yes
10831 continue
10832 fi
10833 ac_cv_prog_CC="cc"
10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10836 fi
10837 done
10838 done
10839 IFS=$as_save_IFS
10840
10841 if test $ac_prog_rejected = yes; then
10842 # We found a bogon in the path, so make sure we never use it.
10843 set dummy $ac_cv_prog_CC
10844 shift
10845 if test $# != 0; then
10846 # We chose a different compiler from the bogus one.
10847 # However, it has the same basename, so the bogon will be chosen
10848 # first if we set CC to just the basename; use the full file name.
10849 shift
10850 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10851 fi
10852 fi
10853 fi
10854 fi
10855 CC=$ac_cv_prog_CC
10856 if test -n "$CC"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10858 $as_echo "$CC" >&6; }
10859 else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10862 fi
10863
10864
10865 fi
10866 if test -z "$CC"; then
10867 if test -n "$ac_tool_prefix"; then
10868 for ac_prog in cl.exe
10869 do
10870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if test "${ac_cv_prog_CC+set}" = set; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 if test -n "$CC"; then
10878 ac_cv_prog_CC="$CC" # Let the user override the test.
10879 else
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10882 do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10887 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10890 fi
10891 done
10892 done
10893 IFS=$as_save_IFS
10894
10895 fi
10896 fi
10897 CC=$ac_cv_prog_CC
10898 if test -n "$CC"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10900 $as_echo "$CC" >&6; }
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10904 fi
10905
10906
10907 test -n "$CC" && break
10908 done
10909 fi
10910 if test -z "$CC"; then
10911 ac_ct_CC=$CC
10912 for ac_prog in cl.exe
10913 do
10914 # Extract the first word of "$ac_prog", so it can be a program name with args.
10915 set dummy $ac_prog; ac_word=$2
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10917 $as_echo_n "checking for $ac_word... " >&6; }
10918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10919 $as_echo_n "(cached) " >&6
10920 else
10921 if test -n "$ac_ct_CC"; then
10922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10923 else
10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10926 do
10927 IFS=$as_save_IFS
10928 test -z "$as_dir" && as_dir=.
10929 for ac_exec_ext in '' $ac_executable_extensions; do
10930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10931 ac_cv_prog_ac_ct_CC="$ac_prog"
10932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 break 2
10934 fi
10935 done
10936 done
10937 IFS=$as_save_IFS
10938
10939 fi
10940 fi
10941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10942 if test -n "$ac_ct_CC"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10944 $as_echo "$ac_ct_CC" >&6; }
10945 else
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10948 fi
10949
10950
10951 test -n "$ac_ct_CC" && break
10952 done
10953
10954 if test "x$ac_ct_CC" = x; then
10955 CC=""
10956 else
10957 case $cross_compiling:$ac_tool_warned in
10958 yes:)
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10961 ac_tool_warned=yes ;;
10962 esac
10963 CC=$ac_ct_CC
10964 fi
10965 fi
10966
10967 fi
10968
10969
10970 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10972 as_fn_error "no acceptable C compiler found in \$PATH
10973 See \`config.log' for more details." "$LINENO" 5; }
10974
10975 # Provide some information about the compiler.
10976 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10977 set X $ac_compile
10978 ac_compiler=$2
10979 for ac_option in --version -v -V -qversion; do
10980 { { ac_try="$ac_compiler $ac_option >&5"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984 esac
10985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10986 $as_echo "$ac_try_echo"; } >&5
10987 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10988 ac_status=$?
10989 if test -s conftest.err; then
10990 sed '10a\
10991 ... rest of stderr output deleted ...
10992 10q' conftest.err >conftest.er1
10993 cat conftest.er1 >&5
10994 rm -f conftest.er1 conftest.err
10995 fi
10996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10997 test $ac_status = 0; }
10998 done
10999
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11001 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11002 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11007
11008 int
11009 main ()
11010 {
11011 #ifndef __GNUC__
11012 choke me
11013 #endif
11014
11015 ;
11016 return 0;
11017 }
11018 _ACEOF
11019 if ac_fn_c_try_compile "$LINENO"; then :
11020 ac_compiler_gnu=yes
11021 else
11022 ac_compiler_gnu=no
11023 fi
11024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11026
11027 fi
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11029 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11030 if test $ac_compiler_gnu = yes; then
11031 GCC=yes
11032 else
11033 GCC=
11034 fi
11035 ac_test_CFLAGS=${CFLAGS+set}
11036 ac_save_CFLAGS=$CFLAGS
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11038 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11039 if test "${ac_cv_prog_cc_g+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 ac_save_c_werror_flag=$ac_c_werror_flag
11043 ac_c_werror_flag=yes
11044 ac_cv_prog_cc_g=no
11045 CFLAGS="-g"
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11048
11049 int
11050 main ()
11051 {
11052
11053 ;
11054 return 0;
11055 }
11056 _ACEOF
11057 if ac_fn_c_try_compile "$LINENO"; then :
11058 ac_cv_prog_cc_g=yes
11059 else
11060 CFLAGS=""
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11063
11064 int
11065 main ()
11066 {
11067
11068 ;
11069 return 0;
11070 }
11071 _ACEOF
11072 if ac_fn_c_try_compile "$LINENO"; then :
11073
11074 else
11075 ac_c_werror_flag=$ac_save_c_werror_flag
11076 CFLAGS="-g"
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079
11080 int
11081 main ()
11082 {
11083
11084 ;
11085 return 0;
11086 }
11087 _ACEOF
11088 if ac_fn_c_try_compile "$LINENO"; then :
11089 ac_cv_prog_cc_g=yes
11090 fi
11091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11092 fi
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 ac_c_werror_flag=$ac_save_c_werror_flag
11097 fi
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11099 $as_echo "$ac_cv_prog_cc_g" >&6; }
11100 if test "$ac_test_CFLAGS" = set; then
11101 CFLAGS=$ac_save_CFLAGS
11102 elif test $ac_cv_prog_cc_g = yes; then
11103 if test "$GCC" = yes; then
11104 CFLAGS="-g -O2"
11105 else
11106 CFLAGS="-g"
11107 fi
11108 else
11109 if test "$GCC" = yes; then
11110 CFLAGS="-O2"
11111 else
11112 CFLAGS=
11113 fi
11114 fi
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11116 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11117 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 ac_cv_prog_cc_c89=no
11121 ac_save_CC=$CC
11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11124 #include <stdarg.h>
11125 #include <stdio.h>
11126 #include <sys/types.h>
11127 #include <sys/stat.h>
11128 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11129 struct buf { int x; };
11130 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11131 static char *e (p, i)
11132 char **p;
11133 int i;
11134 {
11135 return p[i];
11136 }
11137 static char *f (char * (*g) (char **, int), char **p, ...)
11138 {
11139 char *s;
11140 va_list v;
11141 va_start (v,p);
11142 s = g (p, va_arg (v,int));
11143 va_end (v);
11144 return s;
11145 }
11146
11147 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11148 function prototypes and stuff, but not '\xHH' hex character constants.
11149 These don't provoke an error unfortunately, instead are silently treated
11150 as 'x'. The following induces an error, until -std is added to get
11151 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11152 array size at least. It's necessary to write '\x00'==0 to get something
11153 that's true only with -std. */
11154 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11155
11156 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11157 inside strings and character constants. */
11158 #define FOO(x) 'x'
11159 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11160
11161 int test (int i, double x);
11162 struct s1 {int (*f) (int a);};
11163 struct s2 {int (*f) (double a);};
11164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11165 int argc;
11166 char **argv;
11167 int
11168 main ()
11169 {
11170 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11171 ;
11172 return 0;
11173 }
11174 _ACEOF
11175 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11176 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11177 do
11178 CC="$ac_save_CC $ac_arg"
11179 if ac_fn_c_try_compile "$LINENO"; then :
11180 ac_cv_prog_cc_c89=$ac_arg
11181 fi
11182 rm -f core conftest.err conftest.$ac_objext
11183 test "x$ac_cv_prog_cc_c89" != "xno" && break
11184 done
11185 rm -f conftest.$ac_ext
11186 CC=$ac_save_CC
11187
11188 fi
11189 # AC_CACHE_VAL
11190 case "x$ac_cv_prog_cc_c89" in
11191 x)
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11193 $as_echo "none needed" >&6; } ;;
11194 xno)
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11196 $as_echo "unsupported" >&6; } ;;
11197 *)
11198 CC="$CC $ac_cv_prog_cc_c89"
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11200 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11201 esac
11202 if test "x$ac_cv_prog_cc_c89" != xno; then :
11203
11204 fi
11205
11206 ac_ext=c
11207 ac_cpp='$CPP $CPPFLAGS'
11208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11211
11212 depcc="$CC" am_compiler_list=
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11215 $as_echo_n "checking dependency style of $depcc... " >&6; }
11216 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11220 # We make a subdir and do the tests there. Otherwise we can end up
11221 # making bogus files that we don't know about and never remove. For
11222 # instance it was reported that on HP-UX the gcc test will end up
11223 # making a dummy file named `D' -- because `-MD' means `put the output
11224 # in D'.
11225 mkdir conftest.dir
11226 # Copy depcomp to subdir because otherwise we won't find it if we're
11227 # using a relative directory.
11228 cp "$am_depcomp" conftest.dir
11229 cd conftest.dir
11230 # We will build objects and dependencies in a subdirectory because
11231 # it helps to detect inapplicable dependency modes. For instance
11232 # both Tru64's cc and ICC support -MD to output dependencies as a
11233 # side effect of compilation, but ICC will put the dependencies in
11234 # the current directory while Tru64 will put them in the object
11235 # directory.
11236 mkdir sub
11237
11238 am_cv_CC_dependencies_compiler_type=none
11239 if test "$am_compiler_list" = ""; then
11240 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11241 fi
11242 am__universal=false
11243 case " $depcc " in #(
11244 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11245 esac
11246
11247 for depmode in $am_compiler_list; do
11248 # Setup a source with many dependencies, because some compilers
11249 # like to wrap large dependency lists on column 80 (with \), and
11250 # we should not choose a depcomp mode which is confused by this.
11251 #
11252 # We need to recreate these files for each test, as the compiler may
11253 # overwrite some of them when testing with obscure command lines.
11254 # This happens at least with the AIX C compiler.
11255 : > sub/conftest.c
11256 for i in 1 2 3 4 5 6; do
11257 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11258 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11259 # Solaris 8's {/usr,}/bin/sh.
11260 touch sub/conftst$i.h
11261 done
11262 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11263
11264 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11265 # mode. It turns out that the SunPro C++ compiler does not properly
11266 # handle `-M -o', and we need to detect this. Also, some Intel
11267 # versions had trouble with output in subdirs
11268 am__obj=sub/conftest.${OBJEXT-o}
11269 am__minus_obj="-o $am__obj"
11270 case $depmode in
11271 gcc)
11272 # This depmode causes a compiler race in universal mode.
11273 test "$am__universal" = false || continue
11274 ;;
11275 nosideeffect)
11276 # after this tag, mechanisms are not by side-effect, so they'll
11277 # only be used when explicitly requested
11278 if test "x$enable_dependency_tracking" = xyes; then
11279 continue
11280 else
11281 break
11282 fi
11283 ;;
11284 msvisualcpp | msvcmsys)
11285 # This compiler won't grok `-c -o', but also, the minuso test has
11286 # not run yet. These depmodes are late enough in the game, and
11287 # so weak that their functioning should not be impacted.
11288 am__obj=conftest.${OBJEXT-o}
11289 am__minus_obj=
11290 ;;
11291 none) break ;;
11292 esac
11293 if depmode=$depmode \
11294 source=sub/conftest.c object=$am__obj \
11295 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11296 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11297 >/dev/null 2>conftest.err &&
11298 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11299 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11300 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11301 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11302 # icc doesn't choke on unknown options, it will just issue warnings
11303 # or remarks (even with -Werror). So we grep stderr for any message
11304 # that says an option was ignored or not supported.
11305 # When given -MP, icc 7.0 and 7.1 complain thusly:
11306 # icc: Command line warning: ignoring option '-M'; no argument required
11307 # The diagnosis changed in icc 8.0:
11308 # icc: Command line remark: option '-MP' not supported
11309 if (grep 'ignoring option' conftest.err ||
11310 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11311 am_cv_CC_dependencies_compiler_type=$depmode
11312 break
11313 fi
11314 fi
11315 done
11316
11317 cd ..
11318 rm -rf conftest.dir
11319 else
11320 am_cv_CC_dependencies_compiler_type=none
11321 fi
11322
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11325 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11326 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11327
11328 if
11329 test "x$enable_dependency_tracking" != xno \
11330 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11331 am__fastdepCC_TRUE=
11332 am__fastdepCC_FALSE='#'
11333 else
11334 am__fastdepCC_TRUE='#'
11335 am__fastdepCC_FALSE=
11336 fi
11337
11338
11339
11340
11341
11342
11343 if test "x$CC" != xcc; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11345 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11348 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11349 fi
11350 set dummy $CC; ac_cc=`$as_echo "$2" |
11351 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11352 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357
11358 int
11359 main ()
11360 {
11361
11362 ;
11363 return 0;
11364 }
11365 _ACEOF
11366 # Make sure it works both with $CC and with simple cc.
11367 # We do the test twice because some compilers refuse to overwrite an
11368 # existing .o file with -o, though they will create one.
11369 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11370 rm -f conftest2.*
11371 if { { case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374 esac
11375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11376 $as_echo "$ac_try_echo"; } >&5
11377 (eval "$ac_try") 2>&5
11378 ac_status=$?
11379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11380 test $ac_status = 0; } &&
11381 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384 esac
11385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11386 $as_echo "$ac_try_echo"; } >&5
11387 (eval "$ac_try") 2>&5
11388 ac_status=$?
11389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11390 test $ac_status = 0; };
11391 then
11392 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11393 if test "x$CC" != xcc; then
11394 # Test first that cc exists at all.
11395 if { ac_try='cc -c conftest.$ac_ext >&5'
11396 { { case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399 esac
11400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11401 $as_echo "$ac_try_echo"; } >&5
11402 (eval "$ac_try") 2>&5
11403 ac_status=$?
11404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11405 test $ac_status = 0; }; }; then
11406 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11407 rm -f conftest2.*
11408 if { { case "(($ac_try" in
11409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11410 *) ac_try_echo=$ac_try;;
11411 esac
11412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11413 $as_echo "$ac_try_echo"; } >&5
11414 (eval "$ac_try") 2>&5
11415 ac_status=$?
11416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11417 test $ac_status = 0; } &&
11418 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11421 esac
11422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11423 $as_echo "$ac_try_echo"; } >&5
11424 (eval "$ac_try") 2>&5
11425 ac_status=$?
11426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11427 test $ac_status = 0; };
11428 then
11429 # cc works too.
11430 :
11431 else
11432 # cc exists but doesn't like -o.
11433 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11434 fi
11435 fi
11436 fi
11437 else
11438 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11439 fi
11440 rm -f core conftest*
11441
11442 fi
11443 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11445 $as_echo "yes" >&6; }
11446 else
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11449
11450 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11451
11452 fi
11453
11454 # FIXME: we rely on the cache variable name because
11455 # there is no other way.
11456 set dummy $CC
11457 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11458 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11459 if test "$am_t" != yes; then
11460 # Losing compiler, so override with the script.
11461 # FIXME: It is wrong to rewrite CC.
11462 # But if we don't then we get into trouble of one sort or another.
11463 # A longer-term fix would be to have automake use am__CC in this case,
11464 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11465 CC="$am_aux_dir/compile $CC"
11466 fi
11467
11468
11469
11470 if test "x$GCC" != "xyes"; then
11471 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
11472 fi
11473 ac_ext=c
11474 ac_cpp='$CPP $CPPFLAGS'
11475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11479 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11480 # On Suns, sometimes $CPP names a directory.
11481 if test -n "$CPP" && test -d "$CPP"; then
11482 CPP=
11483 fi
11484 if test -z "$CPP"; then
11485 if test "${ac_cv_prog_CPP+set}" = set; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 # Double quotes because CPP needs to be expanded
11489 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11490 do
11491 ac_preproc_ok=false
11492 for ac_c_preproc_warn_flag in '' yes
11493 do
11494 # Use a header file that comes with gcc, so configuring glibc
11495 # with a fresh cross-compiler works.
11496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11497 # <limits.h> exists even on freestanding compilers.
11498 # On the NeXT, cc -E runs the code through the compiler's parser,
11499 # not just through cpp. "Syntax error" is here to catch this case.
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502 #ifdef __STDC__
11503 # include <limits.h>
11504 #else
11505 # include <assert.h>
11506 #endif
11507 Syntax error
11508 _ACEOF
11509 if ac_fn_c_try_cpp "$LINENO"; then :
11510
11511 else
11512 # Broken: fails on valid input.
11513 continue
11514 fi
11515 rm -f conftest.err conftest.$ac_ext
11516
11517 # OK, works on sane cases. Now check whether nonexistent headers
11518 # can be detected and how.
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11521 #include <ac_nonexistent.h>
11522 _ACEOF
11523 if ac_fn_c_try_cpp "$LINENO"; then :
11524 # Broken: success on invalid input.
11525 continue
11526 else
11527 # Passes both tests.
11528 ac_preproc_ok=:
11529 break
11530 fi
11531 rm -f conftest.err conftest.$ac_ext
11532
11533 done
11534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11535 rm -f conftest.err conftest.$ac_ext
11536 if $ac_preproc_ok; then :
11537 break
11538 fi
11539
11540 done
11541 ac_cv_prog_CPP=$CPP
11542
11543 fi
11544 CPP=$ac_cv_prog_CPP
11545 else
11546 ac_cv_prog_CPP=$CPP
11547 fi
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11549 $as_echo "$CPP" >&6; }
11550 ac_preproc_ok=false
11551 for ac_c_preproc_warn_flag in '' yes
11552 do
11553 # Use a header file that comes with gcc, so configuring glibc
11554 # with a fresh cross-compiler works.
11555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11556 # <limits.h> exists even on freestanding compilers.
11557 # On the NeXT, cc -E runs the code through the compiler's parser,
11558 # not just through cpp. "Syntax error" is here to catch this case.
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561 #ifdef __STDC__
11562 # include <limits.h>
11563 #else
11564 # include <assert.h>
11565 #endif
11566 Syntax error
11567 _ACEOF
11568 if ac_fn_c_try_cpp "$LINENO"; then :
11569
11570 else
11571 # Broken: fails on valid input.
11572 continue
11573 fi
11574 rm -f conftest.err conftest.$ac_ext
11575
11576 # OK, works on sane cases. Now check whether nonexistent headers
11577 # can be detected and how.
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h. */
11580 #include <ac_nonexistent.h>
11581 _ACEOF
11582 if ac_fn_c_try_cpp "$LINENO"; then :
11583 # Broken: success on invalid input.
11584 continue
11585 else
11586 # Passes both tests.
11587 ac_preproc_ok=:
11588 break
11589 fi
11590 rm -f conftest.err conftest.$ac_ext
11591
11592 done
11593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11594 rm -f conftest.err conftest.$ac_ext
11595 if $ac_preproc_ok; then :
11596
11597 else
11598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11600 as_fn_error "C preprocessor \"$CPP\" fails sanity check
11601 See \`config.log' for more details." "$LINENO" 5; }
11602 fi
11603
11604 ac_ext=c
11605 ac_cpp='$CPP $CPPFLAGS'
11606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11609
11610
11611 # Calculate toolexeclibdir
11612 # Also toolexecdir, though it's only used in toolexeclibdir
11613 case ${version_specific_libs} in
11614 yes)
11615 # Need the gcc compiler version to know where to install libraries
11616 # and header files if --enable-version-specific-runtime-libs option
11617 # is selected.
11618 toolexecdir='$(libdir)/gcc/$(target_alias)'
11619 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11620 ;;
11621 no)
11622 if test -n "$with_cross_host" &&
11623 test x"$with_cross_host" != x"no"; then
11624 # Install a library built with a cross compiler in tooldir, not libdir.
11625 toolexecdir='$(exec_prefix)/$(target_alias)'
11626 toolexeclibdir='$(toolexecdir)/lib'
11627 else
11628 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11629 toolexeclibdir='$(libdir)'
11630 fi
11631 multi_os_directory=`$CC -print-multi-os-directory`
11632 case $multi_os_directory in
11633 .) ;; # Avoid trailing /.
11634 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11635 esac
11636 ;;
11637 esac
11638
11639
11640
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
11642 $as_echo_n "checking for sqrtl in -lm... " >&6; }
11643 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 ac_check_lib_save_LIBS=$LIBS
11647 LIBS="-lm $LIBS"
11648 if test x$gcc_no_link = xyes; then
11649 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11650 fi
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11653
11654 /* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11657 #ifdef __cplusplus
11658 extern "C"
11659 #endif
11660 char sqrtl ();
11661 int
11662 main ()
11663 {
11664 return sqrtl ();
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"; then :
11670 ac_cv_lib_m_sqrtl=yes
11671 else
11672 ac_cv_lib_m_sqrtl=no
11673 fi
11674 rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11677 fi
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
11679 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
11680 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
11681
11682 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
11683
11684 fi
11685
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
11687 $as_echo_n "checking for cbrtl in -lm... " >&6; }
11688 if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 ac_check_lib_save_LIBS=$LIBS
11692 LIBS="-lm $LIBS"
11693 if test x$gcc_no_link = xyes; then
11694 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11695 fi
11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11698
11699 /* Override any GCC internal prototype to avoid an error.
11700 Use char because int might match the return type of a GCC
11701 builtin and then its argument prototype would still apply. */
11702 #ifdef __cplusplus
11703 extern "C"
11704 #endif
11705 char cbrtl ();
11706 int
11707 main ()
11708 {
11709 return cbrtl ();
11710 ;
11711 return 0;
11712 }
11713 _ACEOF
11714 if ac_fn_c_try_link "$LINENO"; then :
11715 ac_cv_lib_m_cbrtl=yes
11716 else
11717 ac_cv_lib_m_cbrtl=no
11718 fi
11719 rm -f core conftest.err conftest.$ac_objext \
11720 conftest$ac_exeext conftest.$ac_ext
11721 LIBS=$ac_check_lib_save_LIBS
11722 fi
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
11724 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
11725 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
11726
11727 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
11728
11729 fi
11730
11731
11732 # Check for symbol versioning (copied from libssp).
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
11734 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
11735 if test x$gcc_no_link = xyes; then
11736 # If we cannot link, we cannot build shared libraries, so do not use
11737 # symbol versioning.
11738 quadmath_use_symver=no
11739 else
11740 save_LDFLAGS="$LDFLAGS"
11741 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
11742 cat > conftest.map <<EOF
11743 FOO_1.0 {
11744 global: *foo*; bar; local: *;
11745 };
11746 EOF
11747 if test x$gcc_no_link = xyes; then
11748 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11749 fi
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752 int foo;
11753 int
11754 main ()
11755 {
11756
11757 ;
11758 return 0;
11759 }
11760 _ACEOF
11761 if ac_fn_c_try_link "$LINENO"; then :
11762 quadmath_use_symver=gnu
11763 else
11764 quadmath_use_symver=no
11765 fi
11766 rm -f core conftest.err conftest.$ac_objext \
11767 conftest$ac_exeext conftest.$ac_ext
11768 if test x$quadmath_use_symver = xno; then
11769 case "$target_os" in
11770 solaris2*)
11771 LDFLAGS="$save_LDFLAGS"
11772 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
11773 # Sun ld cannot handle wildcards and treats all entries as undefined.
11774 cat > conftest.map <<EOF
11775 FOO_1.0 {
11776 global: foo; local: *;
11777 };
11778 EOF
11779 if test x$gcc_no_link = xyes; then
11780 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11781 fi
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784 int foo;
11785 int
11786 main ()
11787 {
11788
11789 ;
11790 return 0;
11791 }
11792 _ACEOF
11793 if ac_fn_c_try_link "$LINENO"; then :
11794 quadmath_use_symver=sun
11795 else
11796 quadmath_use_symver=no
11797 fi
11798 rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11800 ;;
11801 esac
11802 fi
11803 LDFLAGS="$save_LDFLAGS"
11804 fi
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
11806 $as_echo "$quadmath_use_symver" >&6; }
11807 if test "x$quadmath_use_symver" != xno; then
11808 LIBQUAD_USE_SYMVER_TRUE=
11809 LIBQUAD_USE_SYMVER_FALSE='#'
11810 else
11811 LIBQUAD_USE_SYMVER_TRUE='#'
11812 LIBQUAD_USE_SYMVER_FALSE=
11813 fi
11814
11815 if test "x$quadmath_use_symver" = xgnu; then
11816 LIBQUAD_USE_SYMVER_GNU_TRUE=
11817 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
11818 else
11819 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
11820 LIBQUAD_USE_SYMVER_GNU_FALSE=
11821 fi
11822
11823 if test "x$quadmath_use_symver" = xsun; then
11824 LIBQUAD_USE_SYMVER_SUN_TRUE=
11825 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
11826 else
11827 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
11828 LIBQUAD_USE_SYMVER_SUN_FALSE=
11829 fi
11830
11831
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
11833 $as_echo_n "checking whether __float128 is supported... " >&6; }
11834 if test x$gcc_no_link = xyes; then
11835 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11836 fi
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h. */
11839
11840 typedef _Complex float __attribute__((mode(TC))) __complex128;
11841
11842 __float128 foo (__float128 x)
11843 {
11844
11845 __complex128 z1, z2;
11846
11847 z1 = x;
11848 z2 = x / 7.Q;
11849 z2 /= z1;
11850
11851 return (__float128) z2;
11852 }
11853
11854 __float128 bar (__float128 x)
11855 {
11856 return x * __builtin_huge_valq ();
11857 }
11858
11859 int
11860 main ()
11861 {
11862
11863 foo (1.2Q);
11864 bar (1.2Q);
11865
11866 ;
11867 return 0;
11868 }
11869 _ACEOF
11870 if ac_fn_c_try_link "$LINENO"; then :
11871
11872 libquad_have_float128=yes
11873
11874 else
11875
11876 libquad_have_float128=no
11877
11878 fi
11879 rm -f core conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_have_float128" >&5
11882 $as_echo "$libquad_have_float128" >&6; }
11883
11884
11885 if test "x$libquad_have_float128" = xyes; then
11886 BUILD_LIBQUADMATH_TRUE=
11887 BUILD_LIBQUADMATH_FALSE='#'
11888 else
11889 BUILD_LIBQUADMATH_TRUE='#'
11890 BUILD_LIBQUADMATH_FALSE=
11891 fi
11892
11893
11894 cat >confcache <<\_ACEOF
11895 # This file is a shell script that caches the results of configure
11896 # tests run on this system so they can be shared between configure
11897 # scripts and configure runs, see configure's option --config-cache.
11898 # It is not useful on other systems. If it contains results you don't
11899 # want to keep, you may remove or edit it.
11900 #
11901 # config.status only pays attention to the cache file if you give it
11902 # the --recheck option to rerun configure.
11903 #
11904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11906 # following values.
11907
11908 _ACEOF
11909
11910 # The following way of writing the cache mishandles newlines in values,
11911 # but we know of no workaround that is simple, portable, and efficient.
11912 # So, we kill variables containing newlines.
11913 # Ultrix sh set writes to stderr and can't be redirected directly,
11914 # and sets the high bit in the cache file unless we assign to the vars.
11915 (
11916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11917 eval ac_val=\$$ac_var
11918 case $ac_val in #(
11919 *${as_nl}*)
11920 case $ac_var in #(
11921 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11922 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11923 esac
11924 case $ac_var in #(
11925 _ | IFS | as_nl) ;; #(
11926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11927 *) { eval $ac_var=; unset $ac_var;} ;;
11928 esac ;;
11929 esac
11930 done
11931
11932 (set) 2>&1 |
11933 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11934 *${as_nl}ac_space=\ *)
11935 # `set' does not quote correctly, so add quotes: double-quote
11936 # substitution turns \\\\ into \\, and sed turns \\ into \.
11937 sed -n \
11938 "s/'/'\\\\''/g;
11939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11940 ;; #(
11941 *)
11942 # `set' quotes correctly as required by POSIX, so do not add quotes.
11943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11944 ;;
11945 esac |
11946 sort
11947 ) |
11948 sed '
11949 /^ac_cv_env_/b end
11950 t clear
11951 :clear
11952 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11953 t end
11954 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11955 :end' >>confcache
11956 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11957 if test -w "$cache_file"; then
11958 test "x$cache_file" != "x/dev/null" &&
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11960 $as_echo "$as_me: updating cache $cache_file" >&6;}
11961 cat confcache >$cache_file
11962 else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11964 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11965 fi
11966 fi
11967 rm -f confcache
11968
11969 if test ${multilib} = yes; then
11970 multilib_arg="--enable-multilib"
11971 else
11972 multilib_arg=
11973 fi
11974
11975 ac_config_files="$ac_config_files Makefile"
11976
11977 cat >confcache <<\_ACEOF
11978 # This file is a shell script that caches the results of configure
11979 # tests run on this system so they can be shared between configure
11980 # scripts and configure runs, see configure's option --config-cache.
11981 # It is not useful on other systems. If it contains results you don't
11982 # want to keep, you may remove or edit it.
11983 #
11984 # config.status only pays attention to the cache file if you give it
11985 # the --recheck option to rerun configure.
11986 #
11987 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11988 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11989 # following values.
11990
11991 _ACEOF
11992
11993 # The following way of writing the cache mishandles newlines in values,
11994 # but we know of no workaround that is simple, portable, and efficient.
11995 # So, we kill variables containing newlines.
11996 # Ultrix sh set writes to stderr and can't be redirected directly,
11997 # and sets the high bit in the cache file unless we assign to the vars.
11998 (
11999 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12000 eval ac_val=\$$ac_var
12001 case $ac_val in #(
12002 *${as_nl}*)
12003 case $ac_var in #(
12004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12006 esac
12007 case $ac_var in #(
12008 _ | IFS | as_nl) ;; #(
12009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12010 *) { eval $ac_var=; unset $ac_var;} ;;
12011 esac ;;
12012 esac
12013 done
12014
12015 (set) 2>&1 |
12016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12017 *${as_nl}ac_space=\ *)
12018 # `set' does not quote correctly, so add quotes: double-quote
12019 # substitution turns \\\\ into \\, and sed turns \\ into \.
12020 sed -n \
12021 "s/'/'\\\\''/g;
12022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12023 ;; #(
12024 *)
12025 # `set' quotes correctly as required by POSIX, so do not add quotes.
12026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12027 ;;
12028 esac |
12029 sort
12030 ) |
12031 sed '
12032 /^ac_cv_env_/b end
12033 t clear
12034 :clear
12035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12036 t end
12037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12038 :end' >>confcache
12039 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12040 if test -w "$cache_file"; then
12041 test "x$cache_file" != "x/dev/null" &&
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12043 $as_echo "$as_me: updating cache $cache_file" >&6;}
12044 cat confcache >$cache_file
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12048 fi
12049 fi
12050 rm -f confcache
12051
12052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12053 # Let make expand exec_prefix.
12054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12055
12056 DEFS=-DHAVE_CONFIG_H
12057
12058 ac_libobjs=
12059 ac_ltlibobjs=
12060 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12061 # 1. Remove the extension, and $U if already installed.
12062 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12063 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12064 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12065 # will be set to the directory where LIBOBJS objects are built.
12066 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12067 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12068 done
12069 LIBOBJS=$ac_libobjs
12070
12071 LTLIBOBJS=$ac_ltlibobjs
12072
12073
12074 if test -n "$EXEEXT"; then
12075 am__EXEEXT_TRUE=
12076 am__EXEEXT_FALSE='#'
12077 else
12078 am__EXEEXT_TRUE='#'
12079 am__EXEEXT_FALSE=
12080 fi
12081
12082 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12083 as_fn_error "conditional \"AMDEP\" was never defined.
12084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12085 fi
12086 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12087 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12089 fi
12090 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12091 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12093 fi
12094 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12095 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12097 fi
12098 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
12099 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
12100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12101 fi
12102 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
12103 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
12104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12105 fi
12106 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
12107 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
12108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12109 fi
12110 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
12111 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
12112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12113 fi
12114
12115 : ${CONFIG_STATUS=./config.status}
12116 ac_write_fail=0
12117 ac_clean_files_save=$ac_clean_files
12118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12121 as_write_fail=0
12122 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12123 #! $SHELL
12124 # Generated by $as_me.
12125 # Run this file to recreate the current configuration.
12126 # Compiler output produced by configure, useful for debugging
12127 # configure, is in config.log if it exists.
12128
12129 debug=false
12130 ac_cs_recheck=false
12131 ac_cs_silent=false
12132
12133 SHELL=\${CONFIG_SHELL-$SHELL}
12134 export SHELL
12135 _ASEOF
12136 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12137 ## -------------------- ##
12138 ## M4sh Initialization. ##
12139 ## -------------------- ##
12140
12141 # Be more Bourne compatible
12142 DUALCASE=1; export DUALCASE # for MKS sh
12143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12144 emulate sh
12145 NULLCMD=:
12146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12147 # is contrary to our usage. Disable this feature.
12148 alias -g '${1+"$@"}'='"$@"'
12149 setopt NO_GLOB_SUBST
12150 else
12151 case `(set -o) 2>/dev/null` in #(
12152 *posix*) :
12153 set -o posix ;; #(
12154 *) :
12155 ;;
12156 esac
12157 fi
12158
12159
12160 as_nl='
12161 '
12162 export as_nl
12163 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12164 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12165 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12167 # Prefer a ksh shell builtin over an external printf program on Solaris,
12168 # but without wasting forks for bash or zsh.
12169 if test -z "$BASH_VERSION$ZSH_VERSION" \
12170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12171 as_echo='print -r --'
12172 as_echo_n='print -rn --'
12173 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12174 as_echo='printf %s\n'
12175 as_echo_n='printf %s'
12176 else
12177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12178 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12179 as_echo_n='/usr/ucb/echo -n'
12180 else
12181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12182 as_echo_n_body='eval
12183 arg=$1;
12184 case $arg in #(
12185 *"$as_nl"*)
12186 expr "X$arg" : "X\\(.*\\)$as_nl";
12187 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12188 esac;
12189 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12190 '
12191 export as_echo_n_body
12192 as_echo_n='sh -c $as_echo_n_body as_echo'
12193 fi
12194 export as_echo_body
12195 as_echo='sh -c $as_echo_body as_echo'
12196 fi
12197
12198 # The user is always right.
12199 if test "${PATH_SEPARATOR+set}" != set; then
12200 PATH_SEPARATOR=:
12201 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12202 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12203 PATH_SEPARATOR=';'
12204 }
12205 fi
12206
12207
12208 # IFS
12209 # We need space, tab and new line, in precisely that order. Quoting is
12210 # there to prevent editors from complaining about space-tab.
12211 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12212 # splitting by setting IFS to empty value.)
12213 IFS=" "" $as_nl"
12214
12215 # Find who we are. Look in the path if we contain no directory separator.
12216 case $0 in #((
12217 *[\\/]* ) as_myself=$0 ;;
12218 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219 for as_dir in $PATH
12220 do
12221 IFS=$as_save_IFS
12222 test -z "$as_dir" && as_dir=.
12223 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12224 done
12225 IFS=$as_save_IFS
12226
12227 ;;
12228 esac
12229 # We did not find ourselves, most probably we were run as `sh COMMAND'
12230 # in which case we are not to be found in the path.
12231 if test "x$as_myself" = x; then
12232 as_myself=$0
12233 fi
12234 if test ! -f "$as_myself"; then
12235 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12236 exit 1
12237 fi
12238
12239 # Unset variables that we do not need and which cause bugs (e.g. in
12240 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12241 # suppresses any "Segmentation fault" message there. '((' could
12242 # trigger a bug in pdksh 5.2.14.
12243 for as_var in BASH_ENV ENV MAIL MAILPATH
12244 do eval test x\${$as_var+set} = xset \
12245 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12246 done
12247 PS1='$ '
12248 PS2='> '
12249 PS4='+ '
12250
12251 # NLS nuisances.
12252 LC_ALL=C
12253 export LC_ALL
12254 LANGUAGE=C
12255 export LANGUAGE
12256
12257 # CDPATH.
12258 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12259
12260
12261 # as_fn_error ERROR [LINENO LOG_FD]
12262 # ---------------------------------
12263 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12264 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12265 # script with status $?, using 1 if that was 0.
12266 as_fn_error ()
12267 {
12268 as_status=$?; test $as_status -eq 0 && as_status=1
12269 if test "$3"; then
12270 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12271 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12272 fi
12273 $as_echo "$as_me: error: $1" >&2
12274 as_fn_exit $as_status
12275 } # as_fn_error
12276
12277
12278 # as_fn_set_status STATUS
12279 # -----------------------
12280 # Set $? to STATUS, without forking.
12281 as_fn_set_status ()
12282 {
12283 return $1
12284 } # as_fn_set_status
12285
12286 # as_fn_exit STATUS
12287 # -----------------
12288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12289 as_fn_exit ()
12290 {
12291 set +e
12292 as_fn_set_status $1
12293 exit $1
12294 } # as_fn_exit
12295
12296 # as_fn_unset VAR
12297 # ---------------
12298 # Portably unset VAR.
12299 as_fn_unset ()
12300 {
12301 { eval $1=; unset $1;}
12302 }
12303 as_unset=as_fn_unset
12304 # as_fn_append VAR VALUE
12305 # ----------------------
12306 # Append the text in VALUE to the end of the definition contained in VAR. Take
12307 # advantage of any shell optimizations that allow amortized linear growth over
12308 # repeated appends, instead of the typical quadratic growth present in naive
12309 # implementations.
12310 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12311 eval 'as_fn_append ()
12312 {
12313 eval $1+=\$2
12314 }'
12315 else
12316 as_fn_append ()
12317 {
12318 eval $1=\$$1\$2
12319 }
12320 fi # as_fn_append
12321
12322 # as_fn_arith ARG...
12323 # ------------------
12324 # Perform arithmetic evaluation on the ARGs, and store the result in the
12325 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12326 # must be portable across $(()) and expr.
12327 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12328 eval 'as_fn_arith ()
12329 {
12330 as_val=$(( $* ))
12331 }'
12332 else
12333 as_fn_arith ()
12334 {
12335 as_val=`expr "$@" || test $? -eq 1`
12336 }
12337 fi # as_fn_arith
12338
12339
12340 if expr a : '\(a\)' >/dev/null 2>&1 &&
12341 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12342 as_expr=expr
12343 else
12344 as_expr=false
12345 fi
12346
12347 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12348 as_basename=basename
12349 else
12350 as_basename=false
12351 fi
12352
12353 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12354 as_dirname=dirname
12355 else
12356 as_dirname=false
12357 fi
12358
12359 as_me=`$as_basename -- "$0" ||
12360 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12361 X"$0" : 'X\(//\)$' \| \
12362 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12363 $as_echo X/"$0" |
12364 sed '/^.*\/\([^/][^/]*\)\/*$/{
12365 s//\1/
12366 q
12367 }
12368 /^X\/\(\/\/\)$/{
12369 s//\1/
12370 q
12371 }
12372 /^X\/\(\/\).*/{
12373 s//\1/
12374 q
12375 }
12376 s/.*/./; q'`
12377
12378 # Avoid depending upon Character Ranges.
12379 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12380 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12381 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12382 as_cr_digits='0123456789'
12383 as_cr_alnum=$as_cr_Letters$as_cr_digits
12384
12385 ECHO_C= ECHO_N= ECHO_T=
12386 case `echo -n x` in #(((((
12387 -n*)
12388 case `echo 'xy\c'` in
12389 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12390 xy) ECHO_C='\c';;
12391 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12392 ECHO_T=' ';;
12393 esac;;
12394 *)
12395 ECHO_N='-n';;
12396 esac
12397
12398 rm -f conf$$ conf$$.exe conf$$.file
12399 if test -d conf$$.dir; then
12400 rm -f conf$$.dir/conf$$.file
12401 else
12402 rm -f conf$$.dir
12403 mkdir conf$$.dir 2>/dev/null
12404 fi
12405 if (echo >conf$$.file) 2>/dev/null; then
12406 if ln -s conf$$.file conf$$ 2>/dev/null; then
12407 as_ln_s='ln -s'
12408 # ... but there are two gotchas:
12409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12411 # In both cases, we have to default to `cp -p'.
12412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12413 as_ln_s='cp -p'
12414 elif ln conf$$.file conf$$ 2>/dev/null; then
12415 as_ln_s=ln
12416 else
12417 as_ln_s='cp -p'
12418 fi
12419 else
12420 as_ln_s='cp -p'
12421 fi
12422 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12423 rmdir conf$$.dir 2>/dev/null
12424
12425
12426 # as_fn_mkdir_p
12427 # -------------
12428 # Create "$as_dir" as a directory, including parents if necessary.
12429 as_fn_mkdir_p ()
12430 {
12431
12432 case $as_dir in #(
12433 -*) as_dir=./$as_dir;;
12434 esac
12435 test -d "$as_dir" || eval $as_mkdir_p || {
12436 as_dirs=
12437 while :; do
12438 case $as_dir in #(
12439 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12440 *) as_qdir=$as_dir;;
12441 esac
12442 as_dirs="'$as_qdir' $as_dirs"
12443 as_dir=`$as_dirname -- "$as_dir" ||
12444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12445 X"$as_dir" : 'X\(//\)[^/]' \| \
12446 X"$as_dir" : 'X\(//\)$' \| \
12447 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12448 $as_echo X"$as_dir" |
12449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12450 s//\1/
12451 q
12452 }
12453 /^X\(\/\/\)[^/].*/{
12454 s//\1/
12455 q
12456 }
12457 /^X\(\/\/\)$/{
12458 s//\1/
12459 q
12460 }
12461 /^X\(\/\).*/{
12462 s//\1/
12463 q
12464 }
12465 s/.*/./; q'`
12466 test -d "$as_dir" && break
12467 done
12468 test -z "$as_dirs" || eval "mkdir $as_dirs"
12469 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12470
12471
12472 } # as_fn_mkdir_p
12473 if mkdir -p . 2>/dev/null; then
12474 as_mkdir_p='mkdir -p "$as_dir"'
12475 else
12476 test -d ./-p && rmdir ./-p
12477 as_mkdir_p=false
12478 fi
12479
12480 if test -x / >/dev/null 2>&1; then
12481 as_test_x='test -x'
12482 else
12483 if ls -dL / >/dev/null 2>&1; then
12484 as_ls_L_option=L
12485 else
12486 as_ls_L_option=
12487 fi
12488 as_test_x='
12489 eval sh -c '\''
12490 if test -d "$1"; then
12491 test -d "$1/.";
12492 else
12493 case $1 in #(
12494 -*)set "./$1";;
12495 esac;
12496 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12497 ???[sx]*):;;*)false;;esac;fi
12498 '\'' sh
12499 '
12500 fi
12501 as_executable_p=$as_test_x
12502
12503 # Sed expression to map a string onto a valid CPP name.
12504 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12505
12506 # Sed expression to map a string onto a valid variable name.
12507 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12508
12509
12510 exec 6>&1
12511 ## ----------------------------------- ##
12512 ## Main body of $CONFIG_STATUS script. ##
12513 ## ----------------------------------- ##
12514 _ASEOF
12515 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12516
12517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12518 # Save the log message, to keep $0 and so on meaningful, and to
12519 # report actual input values of CONFIG_FILES etc. instead of their
12520 # values after options handling.
12521 ac_log="
12522 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
12523 generated by GNU Autoconf 2.64. Invocation command line was
12524
12525 CONFIG_FILES = $CONFIG_FILES
12526 CONFIG_HEADERS = $CONFIG_HEADERS
12527 CONFIG_LINKS = $CONFIG_LINKS
12528 CONFIG_COMMANDS = $CONFIG_COMMANDS
12529 $ $0 $@
12530
12531 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12532 "
12533
12534 _ACEOF
12535
12536 case $ac_config_files in *"
12537 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12538 esac
12539
12540 case $ac_config_headers in *"
12541 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12542 esac
12543
12544
12545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12546 # Files that config.status was made for.
12547 config_files="$ac_config_files"
12548 config_headers="$ac_config_headers"
12549 config_commands="$ac_config_commands"
12550
12551 _ACEOF
12552
12553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12554 ac_cs_usage="\
12555 \`$as_me' instantiates files and other configuration actions
12556 from templates according to the current configuration. Unless the files
12557 and actions are specified as TAGs, all are instantiated by default.
12558
12559 Usage: $0 [OPTION]... [TAG]...
12560
12561 -h, --help print this help, then exit
12562 -V, --version print version number and configuration settings, then exit
12563 -q, --quiet, --silent
12564 do not print progress messages
12565 -d, --debug don't remove temporary files
12566 --recheck update $as_me by reconfiguring in the same conditions
12567 --file=FILE[:TEMPLATE]
12568 instantiate the configuration file FILE
12569 --header=FILE[:TEMPLATE]
12570 instantiate the configuration header FILE
12571
12572 Configuration files:
12573 $config_files
12574
12575 Configuration headers:
12576 $config_headers
12577
12578 Configuration commands:
12579 $config_commands
12580
12581 Report bugs to the package provider."
12582
12583 _ACEOF
12584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12585 ac_cs_version="\\
12586 GCC Quad-precision Math Library config.status 0.1
12587 configured by $0, generated by GNU Autoconf 2.64,
12588 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12589
12590 Copyright (C) 2009 Free Software Foundation, Inc.
12591 This config.status script is free software; the Free Software Foundation
12592 gives unlimited permission to copy, distribute and modify it."
12593
12594 ac_pwd='$ac_pwd'
12595 srcdir='$srcdir'
12596 INSTALL='$INSTALL'
12597 MKDIR_P='$MKDIR_P'
12598 AWK='$AWK'
12599 test -n "\$AWK" || AWK=awk
12600 _ACEOF
12601
12602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12603 # The default lists apply if the user does not specify any file.
12604 ac_need_defaults=:
12605 while test $# != 0
12606 do
12607 case $1 in
12608 --*=*)
12609 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12610 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12611 ac_shift=:
12612 ;;
12613 *)
12614 ac_option=$1
12615 ac_optarg=$2
12616 ac_shift=shift
12617 ;;
12618 esac
12619
12620 case $ac_option in
12621 # Handling of the options.
12622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12623 ac_cs_recheck=: ;;
12624 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12625 $as_echo "$ac_cs_version"; exit ;;
12626 --debug | --debu | --deb | --de | --d | -d )
12627 debug=: ;;
12628 --file | --fil | --fi | --f )
12629 $ac_shift
12630 case $ac_optarg in
12631 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12632 esac
12633 as_fn_append CONFIG_FILES " '$ac_optarg'"
12634 ac_need_defaults=false;;
12635 --header | --heade | --head | --hea )
12636 $ac_shift
12637 case $ac_optarg in
12638 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12639 esac
12640 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12641 ac_need_defaults=false;;
12642 --he | --h)
12643 # Conflict between --help and --header
12644 as_fn_error "ambiguous option: \`$1'
12645 Try \`$0 --help' for more information.";;
12646 --help | --hel | -h )
12647 $as_echo "$ac_cs_usage"; exit ;;
12648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12649 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12650 ac_cs_silent=: ;;
12651
12652 # This is an error.
12653 -*) as_fn_error "unrecognized option: \`$1'
12654 Try \`$0 --help' for more information." ;;
12655
12656 *) as_fn_append ac_config_targets " $1"
12657 ac_need_defaults=false ;;
12658
12659 esac
12660 shift
12661 done
12662
12663 ac_configure_extra_args=
12664
12665 if $ac_cs_silent; then
12666 exec 6>/dev/null
12667 ac_configure_extra_args="$ac_configure_extra_args --silent"
12668 fi
12669
12670 _ACEOF
12671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12672 if \$ac_cs_recheck; then
12673 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12674 shift
12675 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12676 CONFIG_SHELL='$SHELL'
12677 export CONFIG_SHELL
12678 exec "\$@"
12679 fi
12680
12681 _ACEOF
12682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12683 exec 5>>config.log
12684 {
12685 echo
12686 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12687 ## Running $as_me. ##
12688 _ASBOX
12689 $as_echo "$ac_log"
12690 } >&5
12691
12692 _ACEOF
12693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12694 #
12695 # INIT-COMMANDS
12696 #
12697 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12698
12699
12700 # The HP-UX ksh and POSIX shell print the target directory to stdout
12701 # if CDPATH is set.
12702 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12703
12704 sed_quote_subst='$sed_quote_subst'
12705 double_quote_subst='$double_quote_subst'
12706 delay_variable_subst='$delay_variable_subst'
12707 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12708 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12709 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12710 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12711 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12712 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12713 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12714 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12715 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12716 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12717 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12718 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12719 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12720 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12721 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12722 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12723 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12724 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12725 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12726 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12727 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12728 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12729 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12730 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12731 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12732 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12733 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12734 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12735 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12736 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12737 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12738 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12739 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12740 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12741 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12742 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12743 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12744 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12745 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12746 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12747 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12748 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12749 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12750 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12751 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12752 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12753 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12754 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12755 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"`'
12756 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12757 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12758 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12759 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12760 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12761 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12762 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12763 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12764 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12765 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12766 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12767 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12768 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12769 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12770 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12771 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12772 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12773 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12774 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12775 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12776 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12777 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12778 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12779 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12780 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12781 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12782 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12783 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12784 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12785 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12786 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12787 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12788 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12789 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12790 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12791 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12792 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12793 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12794 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12795 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12796 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12797 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12798 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12799 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12800 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12801 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12802 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12803 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12804 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12805 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12806 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12807 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12808 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12809 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12810 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12811 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12812 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12813 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12814 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12815 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12816 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12817 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12818 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12819 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12820 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12821 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12822 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12823 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12824 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12825 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12826 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12827
12828 LTCC='$LTCC'
12829 LTCFLAGS='$LTCFLAGS'
12830 compiler='$compiler_DEFAULT'
12831
12832 # A function that is used when there is no print builtin or printf.
12833 func_fallback_echo ()
12834 {
12835 eval 'cat <<_LTECHO_EOF
12836 \$1
12837 _LTECHO_EOF'
12838 }
12839
12840 # Quote evaled strings.
12841 for var in SHELL \
12842 ECHO \
12843 SED \
12844 GREP \
12845 EGREP \
12846 FGREP \
12847 LD \
12848 NM \
12849 LN_S \
12850 lt_SP2NL \
12851 lt_NL2SP \
12852 reload_flag \
12853 OBJDUMP \
12854 deplibs_check_method \
12855 file_magic_cmd \
12856 AR \
12857 AR_FLAGS \
12858 STRIP \
12859 RANLIB \
12860 CC \
12861 CFLAGS \
12862 compiler \
12863 lt_cv_sys_global_symbol_pipe \
12864 lt_cv_sys_global_symbol_to_cdecl \
12865 lt_cv_sys_global_symbol_to_c_name_address \
12866 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12867 lt_prog_compiler_no_builtin_flag \
12868 lt_prog_compiler_wl \
12869 lt_prog_compiler_pic \
12870 lt_prog_compiler_static \
12871 lt_cv_prog_compiler_c_o \
12872 need_locks \
12873 DSYMUTIL \
12874 NMEDIT \
12875 LIPO \
12876 OTOOL \
12877 OTOOL64 \
12878 shrext_cmds \
12879 export_dynamic_flag_spec \
12880 whole_archive_flag_spec \
12881 compiler_needs_object \
12882 with_gnu_ld \
12883 allow_undefined_flag \
12884 no_undefined_flag \
12885 hardcode_libdir_flag_spec \
12886 hardcode_libdir_flag_spec_ld \
12887 hardcode_libdir_separator \
12888 fix_srcfile_path \
12889 exclude_expsyms \
12890 include_expsyms \
12891 file_list_spec \
12892 variables_saved_for_relink \
12893 libname_spec \
12894 library_names_spec \
12895 soname_spec \
12896 install_override_mode \
12897 finish_eval \
12898 old_striplib \
12899 striplib; do
12900 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12901 *[\\\\\\\`\\"\\\$]*)
12902 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12903 ;;
12904 *)
12905 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12906 ;;
12907 esac
12908 done
12909
12910 # Double-quote double-evaled strings.
12911 for var in reload_cmds \
12912 old_postinstall_cmds \
12913 old_postuninstall_cmds \
12914 old_archive_cmds \
12915 extract_expsyms_cmds \
12916 old_archive_from_new_cmds \
12917 old_archive_from_expsyms_cmds \
12918 archive_cmds \
12919 archive_expsym_cmds \
12920 module_cmds \
12921 module_expsym_cmds \
12922 export_symbols_cmds \
12923 prelink_cmds \
12924 postinstall_cmds \
12925 postuninstall_cmds \
12926 finish_cmds \
12927 sys_lib_search_path_spec \
12928 sys_lib_dlsearch_path_spec; do
12929 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12930 *[\\\\\\\`\\"\\\$]*)
12931 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12932 ;;
12933 *)
12934 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12935 ;;
12936 esac
12937 done
12938
12939 ac_aux_dir='$ac_aux_dir'
12940 xsi_shell='$xsi_shell'
12941 lt_shell_append='$lt_shell_append'
12942
12943 # See if we are running on zsh, and set the options which allow our
12944 # commands through without removal of \ escapes INIT.
12945 if test -n "\${ZSH_VERSION+set}" ; then
12946 setopt NO_GLOB_SUBST
12947 fi
12948
12949
12950 PACKAGE='$PACKAGE'
12951 VERSION='$VERSION'
12952 TIMESTAMP='$TIMESTAMP'
12953 RM='$RM'
12954 ofile='$ofile'
12955
12956
12957
12958
12959 srcdir="$srcdir"
12960 host="$host"
12961 target="$target"
12962 with_multisubdir="$with_multisubdir"
12963 with_multisrctop="$with_multisrctop"
12964 with_target_subdir="$with_target_subdir"
12965 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12966 multi_basedir="$multi_basedir"
12967 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12968 CC="$CC"
12969 CXX="$CXX"
12970 GFORTRAN="$GFORTRAN"
12971 GCJ="$GCJ"
12972
12973 _ACEOF
12974
12975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12976
12977 # Handling of arguments.
12978 for ac_config_target in $ac_config_targets
12979 do
12980 case $ac_config_target in
12981 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12982 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12983 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12984 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12985 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12986
12987 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12988 esac
12989 done
12990
12991
12992 # If the user did not use the arguments to specify the items to instantiate,
12993 # then the envvar interface is used. Set only those that are not.
12994 # We use the long form for the default assignment because of an extremely
12995 # bizarre bug on SunOS 4.1.3.
12996 if $ac_need_defaults; then
12997 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12998 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12999 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13000 fi
13001
13002 # Have a temporary directory for convenience. Make it in the build tree
13003 # simply because there is no reason against having it here, and in addition,
13004 # creating and moving files from /tmp can sometimes cause problems.
13005 # Hook for its removal unless debugging.
13006 # Note that there is a small window in which the directory will not be cleaned:
13007 # after its creation but before its name has been assigned to `$tmp'.
13008 $debug ||
13009 {
13010 tmp=
13011 trap 'exit_status=$?
13012 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13013 ' 0
13014 trap 'as_fn_exit 1' 1 2 13 15
13015 }
13016 # Create a (secure) tmp directory for tmp files.
13017
13018 {
13019 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13020 test -n "$tmp" && test -d "$tmp"
13021 } ||
13022 {
13023 tmp=./conf$$-$RANDOM
13024 (umask 077 && mkdir "$tmp")
13025 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13026
13027 # Set up the scripts for CONFIG_FILES section.
13028 # No need to generate them if there are no CONFIG_FILES.
13029 # This happens for instance with `./config.status config.h'.
13030 if test -n "$CONFIG_FILES"; then
13031
13032
13033 ac_cr=`echo X | tr X '\015'`
13034 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13035 # But we know of no other shell where ac_cr would be empty at this
13036 # point, so we can use a bashism as a fallback.
13037 if test "x$ac_cr" = x; then
13038 eval ac_cr=\$\'\\r\'
13039 fi
13040 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13041 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13042 ac_cs_awk_cr='\r'
13043 else
13044 ac_cs_awk_cr=$ac_cr
13045 fi
13046
13047 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13048 _ACEOF
13049
13050
13051 {
13052 echo "cat >conf$$subs.awk <<_ACEOF" &&
13053 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13054 echo "_ACEOF"
13055 } >conf$$subs.sh ||
13056 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13057 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13058 ac_delim='%!_!# '
13059 for ac_last_try in false false false false false :; do
13060 . ./conf$$subs.sh ||
13061 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13062
13063 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13064 if test $ac_delim_n = $ac_delim_num; then
13065 break
13066 elif $ac_last_try; then
13067 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13068 else
13069 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13070 fi
13071 done
13072 rm -f conf$$subs.sh
13073
13074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13075 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13076 _ACEOF
13077 sed -n '
13078 h
13079 s/^/S["/; s/!.*/"]=/
13080 p
13081 g
13082 s/^[^!]*!//
13083 :repl
13084 t repl
13085 s/'"$ac_delim"'$//
13086 t delim
13087 :nl
13088 h
13089 s/\(.\{148\}\).*/\1/
13090 t more1
13091 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13092 p
13093 n
13094 b repl
13095 :more1
13096 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13097 p
13098 g
13099 s/.\{148\}//
13100 t nl
13101 :delim
13102 h
13103 s/\(.\{148\}\).*/\1/
13104 t more2
13105 s/["\\]/\\&/g; s/^/"/; s/$/"/
13106 p
13107 b
13108 :more2
13109 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13110 p
13111 g
13112 s/.\{148\}//
13113 t delim
13114 ' <conf$$subs.awk | sed '
13115 /^[^""]/{
13116 N
13117 s/\n//
13118 }
13119 ' >>$CONFIG_STATUS || ac_write_fail=1
13120 rm -f conf$$subs.awk
13121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13122 _ACAWK
13123 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13124 for (key in S) S_is_set[key] = 1
13125 FS = "\a"
13126
13127 }
13128 {
13129 line = $ 0
13130 nfields = split(line, field, "@")
13131 substed = 0
13132 len = length(field[1])
13133 for (i = 2; i < nfields; i++) {
13134 key = field[i]
13135 keylen = length(key)
13136 if (S_is_set[key]) {
13137 value = S[key]
13138 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13139 len += length(value) + length(field[++i])
13140 substed = 1
13141 } else
13142 len += 1 + keylen
13143 }
13144
13145 print line
13146 }
13147
13148 _ACAWK
13149 _ACEOF
13150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13151 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13152 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13153 else
13154 cat
13155 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13156 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13157 _ACEOF
13158
13159 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13160 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13161 # trailing colons and then remove the whole line if VPATH becomes empty
13162 # (actually we leave an empty line to preserve line numbers).
13163 if test "x$srcdir" = x.; then
13164 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13165 s/:*\$(srcdir):*/:/
13166 s/:*\${srcdir}:*/:/
13167 s/:*@srcdir@:*/:/
13168 s/^\([^=]*=[ ]*\):*/\1/
13169 s/:*$//
13170 s/^[^=]*=[ ]*$//
13171 }'
13172 fi
13173
13174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13175 fi # test -n "$CONFIG_FILES"
13176
13177 # Set up the scripts for CONFIG_HEADERS section.
13178 # No need to generate them if there are no CONFIG_HEADERS.
13179 # This happens for instance with `./config.status Makefile'.
13180 if test -n "$CONFIG_HEADERS"; then
13181 cat >"$tmp/defines.awk" <<\_ACAWK ||
13182 BEGIN {
13183 _ACEOF
13184
13185 # Transform confdefs.h into an awk script `defines.awk', embedded as
13186 # here-document in config.status, that substitutes the proper values into
13187 # config.h.in to produce config.h.
13188
13189 # Create a delimiter string that does not exist in confdefs.h, to ease
13190 # handling of long lines.
13191 ac_delim='%!_!# '
13192 for ac_last_try in false false :; do
13193 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13194 if test -z "$ac_t"; then
13195 break
13196 elif $ac_last_try; then
13197 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13198 else
13199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13200 fi
13201 done
13202
13203 # For the awk script, D is an array of macro values keyed by name,
13204 # likewise P contains macro parameters if any. Preserve backslash
13205 # newline sequences.
13206
13207 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13208 sed -n '
13209 s/.\{148\}/&'"$ac_delim"'/g
13210 t rset
13211 :rset
13212 s/^[ ]*#[ ]*define[ ][ ]*/ /
13213 t def
13214 d
13215 :def
13216 s/\\$//
13217 t bsnl
13218 s/["\\]/\\&/g
13219 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13220 D["\1"]=" \3"/p
13221 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13222 d
13223 :bsnl
13224 s/["\\]/\\&/g
13225 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13226 D["\1"]=" \3\\\\\\n"\\/p
13227 t cont
13228 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13229 t cont
13230 d
13231 :cont
13232 n
13233 s/.\{148\}/&'"$ac_delim"'/g
13234 t clear
13235 :clear
13236 s/\\$//
13237 t bsnlc
13238 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13239 d
13240 :bsnlc
13241 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13242 b cont
13243 ' <confdefs.h | sed '
13244 s/'"$ac_delim"'/"\\\
13245 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13246
13247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13248 for (key in D) D_is_set[key] = 1
13249 FS = "\a"
13250 }
13251 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13252 line = \$ 0
13253 split(line, arg, " ")
13254 if (arg[1] == "#") {
13255 defundef = arg[2]
13256 mac1 = arg[3]
13257 } else {
13258 defundef = substr(arg[1], 2)
13259 mac1 = arg[2]
13260 }
13261 split(mac1, mac2, "(") #)
13262 macro = mac2[1]
13263 prefix = substr(line, 1, index(line, defundef) - 1)
13264 if (D_is_set[macro]) {
13265 # Preserve the white space surrounding the "#".
13266 print prefix "define", macro P[macro] D[macro]
13267 next
13268 } else {
13269 # Replace #undef with comments. This is necessary, for example,
13270 # in the case of _POSIX_SOURCE, which is predefined and required
13271 # on some systems where configure will not decide to define it.
13272 if (defundef == "undef") {
13273 print "/*", prefix defundef, macro, "*/"
13274 next
13275 }
13276 }
13277 }
13278 { print }
13279 _ACAWK
13280 _ACEOF
13281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13282 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13283 fi # test -n "$CONFIG_HEADERS"
13284
13285
13286 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13287 shift
13288 for ac_tag
13289 do
13290 case $ac_tag in
13291 :[FHLC]) ac_mode=$ac_tag; continue;;
13292 esac
13293 case $ac_mode$ac_tag in
13294 :[FHL]*:*);;
13295 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13296 :[FH]-) ac_tag=-:-;;
13297 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13298 esac
13299 ac_save_IFS=$IFS
13300 IFS=:
13301 set x $ac_tag
13302 IFS=$ac_save_IFS
13303 shift
13304 ac_file=$1
13305 shift
13306
13307 case $ac_mode in
13308 :L) ac_source=$1;;
13309 :[FH])
13310 ac_file_inputs=
13311 for ac_f
13312 do
13313 case $ac_f in
13314 -) ac_f="$tmp/stdin";;
13315 *) # Look for the file first in the build tree, then in the source tree
13316 # (if the path is not absolute). The absolute path cannot be DOS-style,
13317 # because $ac_f cannot contain `:'.
13318 test -f "$ac_f" ||
13319 case $ac_f in
13320 [\\/$]*) false;;
13321 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13322 esac ||
13323 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13324 esac
13325 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13326 as_fn_append ac_file_inputs " '$ac_f'"
13327 done
13328
13329 # Let's still pretend it is `configure' which instantiates (i.e., don't
13330 # use $as_me), people would be surprised to read:
13331 # /* config.h. Generated by config.status. */
13332 configure_input='Generated from '`
13333 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13334 `' by configure.'
13335 if test x"$ac_file" != x-; then
13336 configure_input="$ac_file. $configure_input"
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13338 $as_echo "$as_me: creating $ac_file" >&6;}
13339 fi
13340 # Neutralize special characters interpreted by sed in replacement strings.
13341 case $configure_input in #(
13342 *\&* | *\|* | *\\* )
13343 ac_sed_conf_input=`$as_echo "$configure_input" |
13344 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13345 *) ac_sed_conf_input=$configure_input;;
13346 esac
13347
13348 case $ac_tag in
13349 *:-:* | *:-) cat >"$tmp/stdin" \
13350 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13351 esac
13352 ;;
13353 esac
13354
13355 ac_dir=`$as_dirname -- "$ac_file" ||
13356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13357 X"$ac_file" : 'X\(//\)[^/]' \| \
13358 X"$ac_file" : 'X\(//\)$' \| \
13359 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13360 $as_echo X"$ac_file" |
13361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13362 s//\1/
13363 q
13364 }
13365 /^X\(\/\/\)[^/].*/{
13366 s//\1/
13367 q
13368 }
13369 /^X\(\/\/\)$/{
13370 s//\1/
13371 q
13372 }
13373 /^X\(\/\).*/{
13374 s//\1/
13375 q
13376 }
13377 s/.*/./; q'`
13378 as_dir="$ac_dir"; as_fn_mkdir_p
13379 ac_builddir=.
13380
13381 case "$ac_dir" in
13382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13383 *)
13384 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13385 # A ".." for each directory in $ac_dir_suffix.
13386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13387 case $ac_top_builddir_sub in
13388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13390 esac ;;
13391 esac
13392 ac_abs_top_builddir=$ac_pwd
13393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13394 # for backward compatibility:
13395 ac_top_builddir=$ac_top_build_prefix
13396
13397 case $srcdir in
13398 .) # We are building in place.
13399 ac_srcdir=.
13400 ac_top_srcdir=$ac_top_builddir_sub
13401 ac_abs_top_srcdir=$ac_pwd ;;
13402 [\\/]* | ?:[\\/]* ) # Absolute name.
13403 ac_srcdir=$srcdir$ac_dir_suffix;
13404 ac_top_srcdir=$srcdir
13405 ac_abs_top_srcdir=$srcdir ;;
13406 *) # Relative name.
13407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13408 ac_top_srcdir=$ac_top_build_prefix$srcdir
13409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13410 esac
13411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13412
13413
13414 case $ac_mode in
13415 :F)
13416 #
13417 # CONFIG_FILE
13418 #
13419
13420 case $INSTALL in
13421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13423 esac
13424 ac_MKDIR_P=$MKDIR_P
13425 case $MKDIR_P in
13426 [\\/$]* | ?:[\\/]* ) ;;
13427 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13428 esac
13429 _ACEOF
13430
13431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13432 # If the template does not know about datarootdir, expand it.
13433 # FIXME: This hack should be removed a few years after 2.60.
13434 ac_datarootdir_hack=; ac_datarootdir_seen=
13435 ac_sed_dataroot='
13436 /datarootdir/ {
13437 p
13438 q
13439 }
13440 /@datadir@/p
13441 /@docdir@/p
13442 /@infodir@/p
13443 /@localedir@/p
13444 /@mandir@/p'
13445 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13446 *datarootdir*) ac_datarootdir_seen=yes;;
13447 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13449 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13450 _ACEOF
13451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13452 ac_datarootdir_hack='
13453 s&@datadir@&$datadir&g
13454 s&@docdir@&$docdir&g
13455 s&@infodir@&$infodir&g
13456 s&@localedir@&$localedir&g
13457 s&@mandir@&$mandir&g
13458 s&\\\${datarootdir}&$datarootdir&g' ;;
13459 esac
13460 _ACEOF
13461
13462 # Neutralize VPATH when `$srcdir' = `.'.
13463 # Shell code in configure.ac might set extrasub.
13464 # FIXME: do we really want to maintain this feature?
13465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13466 ac_sed_extra="$ac_vpsub
13467 $extrasub
13468 _ACEOF
13469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13470 :t
13471 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13472 s|@configure_input@|$ac_sed_conf_input|;t t
13473 s&@top_builddir@&$ac_top_builddir_sub&;t t
13474 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13475 s&@srcdir@&$ac_srcdir&;t t
13476 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13477 s&@top_srcdir@&$ac_top_srcdir&;t t
13478 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13479 s&@builddir@&$ac_builddir&;t t
13480 s&@abs_builddir@&$ac_abs_builddir&;t t
13481 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13482 s&@INSTALL@&$ac_INSTALL&;t t
13483 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13484 $ac_datarootdir_hack
13485 "
13486 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13487 || as_fn_error "could not create $ac_file" "$LINENO" 5
13488
13489 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13490 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13491 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13493 which seems to be undefined. Please make sure it is defined." >&5
13494 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13495 which seems to be undefined. Please make sure it is defined." >&2;}
13496
13497 rm -f "$tmp/stdin"
13498 case $ac_file in
13499 -) cat "$tmp/out" && rm -f "$tmp/out";;
13500 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13501 esac \
13502 || as_fn_error "could not create $ac_file" "$LINENO" 5
13503 ;;
13504 :H)
13505 #
13506 # CONFIG_HEADER
13507 #
13508 if test x"$ac_file" != x-; then
13509 {
13510 $as_echo "/* $configure_input */" \
13511 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13512 } >"$tmp/config.h" \
13513 || as_fn_error "could not create $ac_file" "$LINENO" 5
13514 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13516 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13517 else
13518 rm -f "$ac_file"
13519 mv "$tmp/config.h" "$ac_file" \
13520 || as_fn_error "could not create $ac_file" "$LINENO" 5
13521 fi
13522 else
13523 $as_echo "/* $configure_input */" \
13524 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13525 || as_fn_error "could not create -" "$LINENO" 5
13526 fi
13527 # Compute "$ac_file"'s index in $config_headers.
13528 _am_arg="$ac_file"
13529 _am_stamp_count=1
13530 for _am_header in $config_headers :; do
13531 case $_am_header in
13532 $_am_arg | $_am_arg:* )
13533 break ;;
13534 * )
13535 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13536 esac
13537 done
13538 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13539 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13540 X"$_am_arg" : 'X\(//\)[^/]' \| \
13541 X"$_am_arg" : 'X\(//\)$' \| \
13542 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13543 $as_echo X"$_am_arg" |
13544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13545 s//\1/
13546 q
13547 }
13548 /^X\(\/\/\)[^/].*/{
13549 s//\1/
13550 q
13551 }
13552 /^X\(\/\/\)$/{
13553 s//\1/
13554 q
13555 }
13556 /^X\(\/\).*/{
13557 s//\1/
13558 q
13559 }
13560 s/.*/./; q'`/stamp-h$_am_stamp_count
13561 ;;
13562
13563 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13564 $as_echo "$as_me: executing $ac_file commands" >&6;}
13565 ;;
13566 esac
13567
13568
13569 case $ac_file$ac_mode in
13570 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13571 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13572 # are listed without --file. Let's play safe and only enable the eval
13573 # if we detect the quoting.
13574 case $CONFIG_FILES in
13575 *\'*) eval set x "$CONFIG_FILES" ;;
13576 *) set x $CONFIG_FILES ;;
13577 esac
13578 shift
13579 for mf
13580 do
13581 # Strip MF so we end up with the name of the file.
13582 mf=`echo "$mf" | sed -e 's/:.*$//'`
13583 # Check whether this is an Automake generated Makefile or not.
13584 # We used to match only the files named `Makefile.in', but
13585 # some people rename them; so instead we look at the file content.
13586 # Grep'ing the first line is not enough: some people post-process
13587 # each Makefile.in and add a new line on top of each file to say so.
13588 # Grep'ing the whole file is not good either: AIX grep has a line
13589 # limit of 2048, but all sed's we know have understand at least 4000.
13590 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13591 dirpart=`$as_dirname -- "$mf" ||
13592 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13593 X"$mf" : 'X\(//\)[^/]' \| \
13594 X"$mf" : 'X\(//\)$' \| \
13595 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13596 $as_echo X"$mf" |
13597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13598 s//\1/
13599 q
13600 }
13601 /^X\(\/\/\)[^/].*/{
13602 s//\1/
13603 q
13604 }
13605 /^X\(\/\/\)$/{
13606 s//\1/
13607 q
13608 }
13609 /^X\(\/\).*/{
13610 s//\1/
13611 q
13612 }
13613 s/.*/./; q'`
13614 else
13615 continue
13616 fi
13617 # Extract the definition of DEPDIR, am__include, and am__quote
13618 # from the Makefile without running `make'.
13619 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13620 test -z "$DEPDIR" && continue
13621 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13622 test -z "am__include" && continue
13623 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13624 # When using ansi2knr, U may be empty or an underscore; expand it
13625 U=`sed -n 's/^U = //p' < "$mf"`
13626 # Find all dependency output files, they are included files with
13627 # $(DEPDIR) in their names. We invoke sed twice because it is the
13628 # simplest approach to changing $(DEPDIR) to its actual value in the
13629 # expansion.
13630 for file in `sed -n "
13631 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13632 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13633 # Make sure the directory exists.
13634 test -f "$dirpart/$file" && continue
13635 fdir=`$as_dirname -- "$file" ||
13636 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13637 X"$file" : 'X\(//\)[^/]' \| \
13638 X"$file" : 'X\(//\)$' \| \
13639 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13640 $as_echo X"$file" |
13641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13642 s//\1/
13643 q
13644 }
13645 /^X\(\/\/\)[^/].*/{
13646 s//\1/
13647 q
13648 }
13649 /^X\(\/\/\)$/{
13650 s//\1/
13651 q
13652 }
13653 /^X\(\/\).*/{
13654 s//\1/
13655 q
13656 }
13657 s/.*/./; q'`
13658 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13659 # echo "creating $dirpart/$file"
13660 echo '# dummy' > "$dirpart/$file"
13661 done
13662 done
13663 }
13664 ;;
13665 "libtool":C)
13666
13667 # See if we are running on zsh, and set the options which allow our
13668 # commands through without removal of \ escapes.
13669 if test -n "${ZSH_VERSION+set}" ; then
13670 setopt NO_GLOB_SUBST
13671 fi
13672
13673 cfgfile="${ofile}T"
13674 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13675 $RM "$cfgfile"
13676
13677 cat <<_LT_EOF >> "$cfgfile"
13678 #! $SHELL
13679
13680 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13681 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13682 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13683 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13684 #
13685 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13686 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13687 # Written by Gordon Matzigkeit, 1996
13688 #
13689 # This file is part of GNU Libtool.
13690 #
13691 # GNU Libtool is free software; you can redistribute it and/or
13692 # modify it under the terms of the GNU General Public License as
13693 # published by the Free Software Foundation; either version 2 of
13694 # the License, or (at your option) any later version.
13695 #
13696 # As a special exception to the GNU General Public License,
13697 # if you distribute this file as part of a program or library that
13698 # is built using GNU Libtool, you may include this file under the
13699 # same distribution terms that you use for the rest of that program.
13700 #
13701 # GNU Libtool is distributed in the hope that it will be useful,
13702 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13703 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13704 # GNU General Public License for more details.
13705 #
13706 # You should have received a copy of the GNU General Public License
13707 # along with GNU Libtool; see the file COPYING. If not, a copy
13708 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13709 # obtained by writing to the Free Software Foundation, Inc.,
13710 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13711
13712
13713 # The names of the tagged configurations supported by this script.
13714 available_tags=""
13715
13716 # ### BEGIN LIBTOOL CONFIG
13717
13718 # Which release of libtool.m4 was used?
13719 macro_version=$macro_version
13720 macro_revision=$macro_revision
13721
13722 # Whether or not to build shared libraries.
13723 build_libtool_libs=$enable_shared
13724
13725 # Whether or not to build static libraries.
13726 build_old_libs=$enable_static
13727
13728 # What type of objects to build.
13729 pic_mode=$pic_mode
13730
13731 # Whether or not to optimize for fast installation.
13732 fast_install=$enable_fast_install
13733
13734 # Shell to use when invoking shell scripts.
13735 SHELL=$lt_SHELL
13736
13737 # An echo program that protects backslashes.
13738 ECHO=$lt_ECHO
13739
13740 # The host system.
13741 host_alias=$host_alias
13742 host=$host
13743 host_os=$host_os
13744
13745 # The build system.
13746 build_alias=$build_alias
13747 build=$build
13748 build_os=$build_os
13749
13750 # A sed program that does not truncate output.
13751 SED=$lt_SED
13752
13753 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13754 Xsed="\$SED -e 1s/^X//"
13755
13756 # A grep program that handles long lines.
13757 GREP=$lt_GREP
13758
13759 # An ERE matcher.
13760 EGREP=$lt_EGREP
13761
13762 # A literal string matcher.
13763 FGREP=$lt_FGREP
13764
13765 # A BSD- or MS-compatible name lister.
13766 NM=$lt_NM
13767
13768 # Whether we need soft or hard links.
13769 LN_S=$lt_LN_S
13770
13771 # What is the maximum length of a command?
13772 max_cmd_len=$max_cmd_len
13773
13774 # Object file suffix (normally "o").
13775 objext=$ac_objext
13776
13777 # Executable file suffix (normally "").
13778 exeext=$exeext
13779
13780 # whether the shell understands "unset".
13781 lt_unset=$lt_unset
13782
13783 # turn spaces into newlines.
13784 SP2NL=$lt_lt_SP2NL
13785
13786 # turn newlines into spaces.
13787 NL2SP=$lt_lt_NL2SP
13788
13789 # An object symbol dumper.
13790 OBJDUMP=$lt_OBJDUMP
13791
13792 # Method to check whether dependent libraries are shared objects.
13793 deplibs_check_method=$lt_deplibs_check_method
13794
13795 # Command to use when deplibs_check_method == "file_magic".
13796 file_magic_cmd=$lt_file_magic_cmd
13797
13798 # The archiver.
13799 AR=$lt_AR
13800 AR_FLAGS=$lt_AR_FLAGS
13801
13802 # A symbol stripping program.
13803 STRIP=$lt_STRIP
13804
13805 # Commands used to install an old-style archive.
13806 RANLIB=$lt_RANLIB
13807 old_postinstall_cmds=$lt_old_postinstall_cmds
13808 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13809
13810 # Whether to use a lock for old archive extraction.
13811 lock_old_archive_extraction=$lock_old_archive_extraction
13812
13813 # A C compiler.
13814 LTCC=$lt_CC
13815
13816 # LTCC compiler flags.
13817 LTCFLAGS=$lt_CFLAGS
13818
13819 # Take the output of nm and produce a listing of raw symbols and C names.
13820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13821
13822 # Transform the output of nm in a proper C declaration.
13823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13824
13825 # Transform the output of nm in a C name address pair.
13826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13827
13828 # Transform the output of nm in a C name address pair when lib prefix is needed.
13829 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13830
13831 # The name of the directory that contains temporary libtool files.
13832 objdir=$objdir
13833
13834 # Used to examine libraries when file_magic_cmd begins with "file".
13835 MAGIC_CMD=$MAGIC_CMD
13836
13837 # Must we lock files when doing compilation?
13838 need_locks=$lt_need_locks
13839
13840 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13841 DSYMUTIL=$lt_DSYMUTIL
13842
13843 # Tool to change global to local symbols on Mac OS X.
13844 NMEDIT=$lt_NMEDIT
13845
13846 # Tool to manipulate fat objects and archives on Mac OS X.
13847 LIPO=$lt_LIPO
13848
13849 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13850 OTOOL=$lt_OTOOL
13851
13852 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13853 OTOOL64=$lt_OTOOL64
13854
13855 # Old archive suffix (normally "a").
13856 libext=$libext
13857
13858 # Shared library suffix (normally ".so").
13859 shrext_cmds=$lt_shrext_cmds
13860
13861 # The commands to extract the exported symbol list from a shared archive.
13862 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13863
13864 # Variables whose values should be saved in libtool wrapper scripts and
13865 # restored at link time.
13866 variables_saved_for_relink=$lt_variables_saved_for_relink
13867
13868 # Do we need the "lib" prefix for modules?
13869 need_lib_prefix=$need_lib_prefix
13870
13871 # Do we need a version for libraries?
13872 need_version=$need_version
13873
13874 # Library versioning type.
13875 version_type=$version_type
13876
13877 # Shared library runtime path variable.
13878 runpath_var=$runpath_var
13879
13880 # Shared library path variable.
13881 shlibpath_var=$shlibpath_var
13882
13883 # Is shlibpath searched before the hard-coded library search path?
13884 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13885
13886 # Format of library name prefix.
13887 libname_spec=$lt_libname_spec
13888
13889 # List of archive names. First name is the real one, the rest are links.
13890 # The last name is the one that the linker finds with -lNAME
13891 library_names_spec=$lt_library_names_spec
13892
13893 # The coded name of the library, if different from the real name.
13894 soname_spec=$lt_soname_spec
13895
13896 # Permission mode override for installation of shared libraries.
13897 install_override_mode=$lt_install_override_mode
13898
13899 # Command to use after installation of a shared archive.
13900 postinstall_cmds=$lt_postinstall_cmds
13901
13902 # Command to use after uninstallation of a shared archive.
13903 postuninstall_cmds=$lt_postuninstall_cmds
13904
13905 # Commands used to finish a libtool library installation in a directory.
13906 finish_cmds=$lt_finish_cmds
13907
13908 # As "finish_cmds", except a single script fragment to be evaled but
13909 # not shown.
13910 finish_eval=$lt_finish_eval
13911
13912 # Whether we should hardcode library paths into libraries.
13913 hardcode_into_libs=$hardcode_into_libs
13914
13915 # Compile-time system search path for libraries.
13916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13917
13918 # Run-time system search path for libraries.
13919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13920
13921 # Whether dlopen is supported.
13922 dlopen_support=$enable_dlopen
13923
13924 # Whether dlopen of programs is supported.
13925 dlopen_self=$enable_dlopen_self
13926
13927 # Whether dlopen of statically linked programs is supported.
13928 dlopen_self_static=$enable_dlopen_self_static
13929
13930 # Commands to strip libraries.
13931 old_striplib=$lt_old_striplib
13932 striplib=$lt_striplib
13933
13934
13935 # The linker used to build libraries.
13936 LD=$lt_LD
13937
13938 # How to create reloadable object files.
13939 reload_flag=$lt_reload_flag
13940 reload_cmds=$lt_reload_cmds
13941
13942 # Commands used to build an old-style archive.
13943 old_archive_cmds=$lt_old_archive_cmds
13944
13945 # A language specific compiler.
13946 CC=$lt_compiler
13947
13948 # Is the compiler the GNU compiler?
13949 with_gcc=$GCC
13950
13951 # Compiler flag to turn off builtin functions.
13952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13953
13954 # How to pass a linker flag through the compiler.
13955 wl=$lt_lt_prog_compiler_wl
13956
13957 # Additional compiler flags for building library objects.
13958 pic_flag=$lt_lt_prog_compiler_pic
13959
13960 # Compiler flag to prevent dynamic linking.
13961 link_static_flag=$lt_lt_prog_compiler_static
13962
13963 # Does compiler simultaneously support -c and -o options?
13964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13965
13966 # Whether or not to add -lc for building shared libraries.
13967 build_libtool_need_lc=$archive_cmds_need_lc
13968
13969 # Whether or not to disallow shared libs when runtime libs are static.
13970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13971
13972 # Compiler flag to allow reflexive dlopens.
13973 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13974
13975 # Compiler flag to generate shared objects directly from archives.
13976 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13977
13978 # Whether the compiler copes with passing no objects directly.
13979 compiler_needs_object=$lt_compiler_needs_object
13980
13981 # Create an old-style archive from a shared archive.
13982 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13983
13984 # Create a temporary old-style archive to link instead of a shared archive.
13985 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13986
13987 # Commands used to build a shared archive.
13988 archive_cmds=$lt_archive_cmds
13989 archive_expsym_cmds=$lt_archive_expsym_cmds
13990
13991 # Commands used to build a loadable module if different from building
13992 # a shared archive.
13993 module_cmds=$lt_module_cmds
13994 module_expsym_cmds=$lt_module_expsym_cmds
13995
13996 # Whether we are building with GNU ld or not.
13997 with_gnu_ld=$lt_with_gnu_ld
13998
13999 # Flag that allows shared libraries with undefined symbols to be built.
14000 allow_undefined_flag=$lt_allow_undefined_flag
14001
14002 # Flag that enforces no undefined symbols.
14003 no_undefined_flag=$lt_no_undefined_flag
14004
14005 # Flag to hardcode \$libdir into a binary during linking.
14006 # This must work even if \$libdir does not exist
14007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14008
14009 # If ld is used when linking, flag to hardcode \$libdir into a binary
14010 # during linking. This must work even if \$libdir does not exist.
14011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14012
14013 # Whether we need a single "-rpath" flag with a separated argument.
14014 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14015
14016 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14017 # DIR into the resulting binary.
14018 hardcode_direct=$hardcode_direct
14019
14020 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14021 # DIR into the resulting binary and the resulting library dependency is
14022 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14023 # library is relocated.
14024 hardcode_direct_absolute=$hardcode_direct_absolute
14025
14026 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14027 # into the resulting binary.
14028 hardcode_minus_L=$hardcode_minus_L
14029
14030 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14031 # into the resulting binary.
14032 hardcode_shlibpath_var=$hardcode_shlibpath_var
14033
14034 # Set to "yes" if building a shared library automatically hardcodes DIR
14035 # into the library and all subsequent libraries and executables linked
14036 # against it.
14037 hardcode_automatic=$hardcode_automatic
14038
14039 # Set to yes if linker adds runtime paths of dependent libraries
14040 # to runtime path list.
14041 inherit_rpath=$inherit_rpath
14042
14043 # Whether libtool must link a program against all its dependency libraries.
14044 link_all_deplibs=$link_all_deplibs
14045
14046 # Fix the shell variable \$srcfile for the compiler.
14047 fix_srcfile_path=$lt_fix_srcfile_path
14048
14049 # Set to "yes" if exported symbols are required.
14050 always_export_symbols=$always_export_symbols
14051
14052 # The commands to list exported symbols.
14053 export_symbols_cmds=$lt_export_symbols_cmds
14054
14055 # Symbols that should not be listed in the preloaded symbols.
14056 exclude_expsyms=$lt_exclude_expsyms
14057
14058 # Symbols that must always be exported.
14059 include_expsyms=$lt_include_expsyms
14060
14061 # Commands necessary for linking programs (against libraries) with templates.
14062 prelink_cmds=$lt_prelink_cmds
14063
14064 # Specify filename containing input files.
14065 file_list_spec=$lt_file_list_spec
14066
14067 # How to hardcode a shared library path into an executable.
14068 hardcode_action=$hardcode_action
14069
14070 # ### END LIBTOOL CONFIG
14071
14072 _LT_EOF
14073
14074 case $host_os in
14075 aix3*)
14076 cat <<\_LT_EOF >> "$cfgfile"
14077 # AIX sometimes has problems with the GCC collect2 program. For some
14078 # reason, if we set the COLLECT_NAMES environment variable, the problems
14079 # vanish in a puff of smoke.
14080 if test "X${COLLECT_NAMES+set}" != Xset; then
14081 COLLECT_NAMES=
14082 export COLLECT_NAMES
14083 fi
14084 _LT_EOF
14085 ;;
14086 esac
14087
14088
14089 ltmain="$ac_aux_dir/ltmain.sh"
14090
14091
14092 # We use sed instead of cat because bash on DJGPP gets confused if
14093 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14094 # text mode, it properly converts lines to CR/LF. This bash problem
14095 # is reportedly fixed, but why not run on old versions too?
14096 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14097 || (rm -f "$cfgfile"; exit 1)
14098
14099 case $xsi_shell in
14100 yes)
14101 cat << \_LT_EOF >> "$cfgfile"
14102
14103 # func_dirname file append nondir_replacement
14104 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14105 # otherwise set result to NONDIR_REPLACEMENT.
14106 func_dirname ()
14107 {
14108 case ${1} in
14109 */*) func_dirname_result="${1%/*}${2}" ;;
14110 * ) func_dirname_result="${3}" ;;
14111 esac
14112 }
14113
14114 # func_basename file
14115 func_basename ()
14116 {
14117 func_basename_result="${1##*/}"
14118 }
14119
14120 # func_dirname_and_basename file append nondir_replacement
14121 # perform func_basename and func_dirname in a single function
14122 # call:
14123 # dirname: Compute the dirname of FILE. If nonempty,
14124 # add APPEND to the result, otherwise set result
14125 # to NONDIR_REPLACEMENT.
14126 # value returned in "$func_dirname_result"
14127 # basename: Compute filename of FILE.
14128 # value retuned in "$func_basename_result"
14129 # Implementation must be kept synchronized with func_dirname
14130 # and func_basename. For efficiency, we do not delegate to
14131 # those functions but instead duplicate the functionality here.
14132 func_dirname_and_basename ()
14133 {
14134 case ${1} in
14135 */*) func_dirname_result="${1%/*}${2}" ;;
14136 * ) func_dirname_result="${3}" ;;
14137 esac
14138 func_basename_result="${1##*/}"
14139 }
14140
14141 # func_stripname prefix suffix name
14142 # strip PREFIX and SUFFIX off of NAME.
14143 # PREFIX and SUFFIX must not contain globbing or regex special
14144 # characters, hashes, percent signs, but SUFFIX may contain a leading
14145 # dot (in which case that matches only a dot).
14146 func_stripname ()
14147 {
14148 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14149 # positional parameters, so assign one to ordinary parameter first.
14150 func_stripname_result=${3}
14151 func_stripname_result=${func_stripname_result#"${1}"}
14152 func_stripname_result=${func_stripname_result%"${2}"}
14153 }
14154
14155 # func_opt_split
14156 func_opt_split ()
14157 {
14158 func_opt_split_opt=${1%%=*}
14159 func_opt_split_arg=${1#*=}
14160 }
14161
14162 # func_lo2o object
14163 func_lo2o ()
14164 {
14165 case ${1} in
14166 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14167 *) func_lo2o_result=${1} ;;
14168 esac
14169 }
14170
14171 # func_xform libobj-or-source
14172 func_xform ()
14173 {
14174 func_xform_result=${1%.*}.lo
14175 }
14176
14177 # func_arith arithmetic-term...
14178 func_arith ()
14179 {
14180 func_arith_result=$(( $* ))
14181 }
14182
14183 # func_len string
14184 # STRING may not start with a hyphen.
14185 func_len ()
14186 {
14187 func_len_result=${#1}
14188 }
14189
14190 _LT_EOF
14191 ;;
14192 *) # Bourne compatible functions.
14193 cat << \_LT_EOF >> "$cfgfile"
14194
14195 # func_dirname file append nondir_replacement
14196 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14197 # otherwise set result to NONDIR_REPLACEMENT.
14198 func_dirname ()
14199 {
14200 # Extract subdirectory from the argument.
14201 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14202 if test "X$func_dirname_result" = "X${1}"; then
14203 func_dirname_result="${3}"
14204 else
14205 func_dirname_result="$func_dirname_result${2}"
14206 fi
14207 }
14208
14209 # func_basename file
14210 func_basename ()
14211 {
14212 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14213 }
14214
14215
14216 # func_stripname prefix suffix name
14217 # strip PREFIX and SUFFIX off of NAME.
14218 # PREFIX and SUFFIX must not contain globbing or regex special
14219 # characters, hashes, percent signs, but SUFFIX may contain a leading
14220 # dot (in which case that matches only a dot).
14221 # func_strip_suffix prefix name
14222 func_stripname ()
14223 {
14224 case ${2} in
14225 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14226 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14227 esac
14228 }
14229
14230 # sed scripts:
14231 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14232 my_sed_long_arg='1s/^-[^=]*=//'
14233
14234 # func_opt_split
14235 func_opt_split ()
14236 {
14237 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14238 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14239 }
14240
14241 # func_lo2o object
14242 func_lo2o ()
14243 {
14244 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14245 }
14246
14247 # func_xform libobj-or-source
14248 func_xform ()
14249 {
14250 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14251 }
14252
14253 # func_arith arithmetic-term...
14254 func_arith ()
14255 {
14256 func_arith_result=`expr "$@"`
14257 }
14258
14259 # func_len string
14260 # STRING may not start with a hyphen.
14261 func_len ()
14262 {
14263 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14264 }
14265
14266 _LT_EOF
14267 esac
14268
14269 case $lt_shell_append in
14270 yes)
14271 cat << \_LT_EOF >> "$cfgfile"
14272
14273 # func_append var value
14274 # Append VALUE to the end of shell variable VAR.
14275 func_append ()
14276 {
14277 eval "$1+=\$2"
14278 }
14279 _LT_EOF
14280 ;;
14281 *)
14282 cat << \_LT_EOF >> "$cfgfile"
14283
14284 # func_append var value
14285 # Append VALUE to the end of shell variable VAR.
14286 func_append ()
14287 {
14288 eval "$1=\$$1\$2"
14289 }
14290
14291 _LT_EOF
14292 ;;
14293 esac
14294
14295
14296 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14297 || (rm -f "$cfgfile"; exit 1)
14298
14299 mv -f "$cfgfile" "$ofile" ||
14300 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14301 chmod +x "$ofile"
14302
14303 ;;
14304 "default-1":C)
14305 # Only add multilib support code if we just rebuilt the top-level
14306 # Makefile.
14307 case " $CONFIG_FILES " in
14308 *" Makefile "*)
14309 ac_file=Makefile . ${multi_basedir}/config-ml.in
14310 ;;
14311 esac ;;
14312
14313 esac
14314 done # for ac_tag
14315
14316
14317 as_fn_exit 0
14318 _ACEOF
14319 ac_clean_files=$ac_clean_files_save
14320
14321 test $ac_write_fail = 0 ||
14322 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14323
14324
14325 # configure is writing to config.log, and then calls config.status.
14326 # config.status does its own redirection, appending to config.log.
14327 # Unfortunately, on DOS this fails, as config.log is still kept open
14328 # by configure, so config.status won't be able to write to it; its
14329 # output is simply discarded. So we exec the FD to /dev/null,
14330 # effectively closing config.log, so it can be properly (re)opened and
14331 # appended to by config.status. When coming back to configure, we
14332 # need to make the FD available again.
14333 if test "$no_create" != yes; then
14334 ac_cs_success=:
14335 ac_config_status_args=
14336 test "$silent" = yes &&
14337 ac_config_status_args="$ac_config_status_args --quiet"
14338 exec 5>/dev/null
14339 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14340 exec 5>>config.log
14341 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14342 # would make configure fail if this is the last instruction.
14343 $ac_cs_success || as_fn_exit $?
14344 fi
14345 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14347 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14348 fi
14349