comparison src/libsamplerate-0.1.8/configure @ 0:c7265573341e

Import initial set of sources
author Chris Cannam
date Mon, 18 Mar 2013 14:12:14 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c7265573341e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libsamplerate 0.1.8.
4 #
5 # Report bugs to <erikd@mega-nerd.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: erikd@mega-nerd.com about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libsamplerate'
572 PACKAGE_TARNAME='libsamplerate'
573 PACKAGE_VERSION='0.1.8'
574 PACKAGE_STRING='libsamplerate 0.1.8'
575 PACKAGE_BUGREPORT='erikd@mega-nerd.com'
576 PACKAGE_URL='http://www.mega-nerd.com/libsamplerate/'
577
578 ac_unique_file="src/samplerate.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 HAVE_SNDFILE
620 HAVE_FFTW3
621 GCC_MAJOR_VERSION
622 COMPILER_IS_GCC
623 OS_SPECIFIC_LINKS
624 OS_SPECIFIC_INCLUDES
625 SHARED_VERSION_INFO
626 SHLIB_VERSION_ARG
627 htmldocdir
628 FFTW3_LIBS
629 FFTW3_CFLAGS
630 SNDFILE_LIBS
631 SNDFILE_CFLAGS
632 PKG_CONFIG_LIBDIR
633 PKG_CONFIG_PATH
634 PKG_CONFIG
635 PEXPORTS
636 DLLWRAP
637 RC
638 CXXCPP
639 CPP
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 MANIFEST_TOOL
646 RANLIB
647 ac_ct_AR
648 AR
649 DLLTOOL
650 OBJDUMP
651 LN_S
652 NM
653 ac_ct_DUMPBIN
654 DUMPBIN
655 LD
656 FGREP
657 EGREP
658 GREP
659 LIBTOOL
660 SED
661 am__fastdepCXX_FALSE
662 am__fastdepCXX_TRUE
663 CXXDEPMODE
664 ac_ct_CXX
665 CXXFLAGS
666 CXX
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 ACLOCAL_AMFLAGS
684 AM_BACKSLASH
685 AM_DEFAULT_VERBOSITY
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_os
710 target_vendor
711 target_cpu
712 target
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_silent_rules
763 enable_dependency_tracking
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 enable_gcc_werror
772 enable_gcc_pipe
773 enable_gcc_opt
774 enable_fftw
775 enable_cpu_clip
776 enable_sndfile
777 '
778 ac_precious_vars='build_alias
779 host_alias
780 target_alias
781 CC
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
786 CXX
787 CXXFLAGS
788 CCC
789 CPP
790 CXXCPP
791 PKG_CONFIG
792 PKG_CONFIG_PATH
793 PKG_CONFIG_LIBDIR
794 SNDFILE_CFLAGS
795 SNDFILE_LIBS
796 FFTW3_CFLAGS
797 FFTW3_LIBS'
798
799
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 ac_unrecognized_opts=
804 ac_unrecognized_sep=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
821
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1254 If a cross compiler is detected then cross compile mode will be used" >&2
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures libsamplerate 0.1.8 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/libsamplerate]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1394
1395 cat <<\_ACEOF
1396
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 --target=TARGET configure for building compilers for TARGET [HOST]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of libsamplerate 0.1.8:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-silent-rules less verbose build output (undo: `make V=1')
1420 --disable-silent-rules verbose build output (undo: `make V=0')
1421 --disable-dependency-tracking speeds up one-time build
1422 --enable-dependency-tracking do not reject slow dependency extractors
1423 --enable-shared[=PKGS] build shared libraries [default=yes]
1424 --enable-static[=PKGS] build static libraries [default=yes]
1425 --enable-fast-install[=PKGS]
1426 optimize for fast installation [default=yes]
1427 --disable-libtool-lock avoid locking (might break parallel builds)
1428 --enable-gcc-werror enable -Werror in all Makefiles
1429 --disable-gcc-pipe disable gcc -pipe option
1430 --disable-gcc-opt disable gcc optimisations
1431 --disable-fftw disable usage of FFTW
1432 --disable-cpu-clip disable tricky cpu specific clipper
1433 --disable-sndfile disable support for sndfile (default=autodetect)
1434
1435 Optional Packages:
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1438 --with-pic try to use only PIC/non-PIC objects [default=use
1439 both]
1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1441 --with-sysroot=DIR Search for dependent libraries within DIR
1442 (or the compiler's sysroot if not specified).
1443
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 CXX C++ compiler command
1453 CXXFLAGS C++ compiler flags
1454 CPP C preprocessor
1455 CXXCPP C++ preprocessor
1456 PKG_CONFIG path to pkg-config utility
1457 PKG_CONFIG_PATH
1458 directories to add to pkg-config's search path
1459 PKG_CONFIG_LIBDIR
1460 path overriding pkg-config's built-in search path
1461 SNDFILE_CFLAGS
1462 C compiler flags for SNDFILE, overriding pkg-config
1463 SNDFILE_LIBS
1464 linker flags for SNDFILE, overriding pkg-config
1465 FFTW3_CFLAGS
1466 C compiler flags for FFTW3, overriding pkg-config
1467 FFTW3_LIBS linker flags for FFTW3, overriding pkg-config
1468
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1471
1472 Report bugs to <erikd@mega-nerd.com>.
1473 libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535 cat <<\_ACEOF
1536 libsamplerate configure 0.1.8
1537 generated by GNU Autoconf 2.68
1538
1539 Copyright (C) 2010 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542 _ACEOF
1543 exit
1544 fi
1545
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1549
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1554 {
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1558 case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1576 ac_retval=0
1577 else
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582 fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_compile
1587
1588 # ac_fn_cxx_try_compile LINENO
1589 # ----------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_cxx_try_compile ()
1592 {
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_cxx_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1614 ac_retval=0
1615 else
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620 fi
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624 } # ac_fn_cxx_try_compile
1625
1626 # ac_fn_c_try_link LINENO
1627 # -----------------------
1628 # Try to link conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_link ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext conftest$ac_exeext
1633 if { { ac_try="$ac_link"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_link") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest$ac_exeext && {
1652 test "$cross_compiling" = yes ||
1653 $as_test_x conftest$ac_exeext
1654 }; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1664 # interfere with the next link command; also delete a directory that is
1665 # left behind by Apple's compiler. We do this before executing the actions.
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_link
1671
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 $4
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690 eval "$3=yes"
1691 else
1692 eval "$3=no"
1693 fi
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 fi
1696 eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701 } # ac_fn_c_check_header_compile
1702
1703 # ac_fn_c_try_cpp LINENO
1704 # ----------------------
1705 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_cpp ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_cpp conftest.$ac_ext"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } > conftest.i && {
1725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 }; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_cpp
1739
1740 # ac_fn_c_try_run LINENO
1741 # ----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743 # that executables *can* be run.
1744 ac_fn_c_try_run ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>&5
1755 ac_status=$?
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758 { { case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_try") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; }; }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: program exited with status $ac_status" >&5
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=$ac_status
1775 fi
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_run
1781
1782 # ac_fn_c_check_func LINENO FUNC VAR
1783 # ----------------------------------
1784 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1785 ac_fn_c_check_func ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1792 else
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1795 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1797 #define $2 innocuous_$2
1798
1799 /* System header to define __stub macros and hopefully few prototypes,
1800 which can conflict with char $2 (); below.
1801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1802 <limits.h> exists even on freestanding compilers. */
1803
1804 #ifdef __STDC__
1805 # include <limits.h>
1806 #else
1807 # include <assert.h>
1808 #endif
1809
1810 #undef $2
1811
1812 /* Override any GCC internal prototype to avoid an error.
1813 Use char because int might match the return type of a GCC
1814 builtin and then its argument prototype would still apply. */
1815 #ifdef __cplusplus
1816 extern "C"
1817 #endif
1818 char $2 ();
1819 /* The GNU C library defines this for functions which it implements
1820 to always fail with ENOSYS. Some functions are actually named
1821 something starting with __ and the normal name is an alias. */
1822 #if defined __stub_$2 || defined __stub___$2
1823 choke me
1824 #endif
1825
1826 int
1827 main ()
1828 {
1829 return $2 ();
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_link "$LINENO"; then :
1835 eval "$3=yes"
1836 else
1837 eval "$3=no"
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext \
1840 conftest$ac_exeext conftest.$ac_ext
1841 fi
1842 eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_c_check_func
1848
1849 # ac_fn_cxx_try_cpp LINENO
1850 # ------------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_cxx_try_cpp ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } > conftest.i && {
1871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1872 test ! -s conftest.err
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1883
1884 } # ac_fn_cxx_try_cpp
1885
1886 # ac_fn_cxx_try_link LINENO
1887 # -------------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_link ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext conftest$ac_exeext
1893 if { { ac_try="$ac_link"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest$ac_exeext && {
1912 test "$cross_compiling" = yes ||
1913 $as_test_x conftest$ac_exeext
1914 }; then :
1915 ac_retval=0
1916 else
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=1
1921 fi
1922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1924 # interfere with the next link command; also delete a directory that is
1925 # left behind by Apple's compiler. We do this before executing the actions.
1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status $ac_retval
1929
1930 } # ac_fn_cxx_try_link
1931
1932 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1933 # -------------------------------------------------------
1934 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1935 # the include files in INCLUDES and setting the cache variable VAR
1936 # accordingly.
1937 ac_fn_c_check_header_mongrel ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if eval \${$3+:} false; then :
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1945 fi
1946 eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 else
1950 # Is the header compilable?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1952 $as_echo_n "checking $2 usability... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 $4
1956 #include <$2>
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 ac_header_compiler=yes
1960 else
1961 ac_header_compiler=no
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1965 $as_echo "$ac_header_compiler" >&6; }
1966
1967 # Is the header present?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1969 $as_echo_n "checking $2 presence... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 #include <$2>
1973 _ACEOF
1974 if ac_fn_c_try_cpp "$LINENO"; then :
1975 ac_header_preproc=yes
1976 else
1977 ac_header_preproc=no
1978 fi
1979 rm -f conftest.err conftest.i conftest.$ac_ext
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1981 $as_echo "$ac_header_preproc" >&6; }
1982
1983 # So? What about this header?
1984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1985 yes:no: )
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1987 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 ;;
1991 no:yes:* )
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1993 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1995 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1997 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1999 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 ( $as_echo "## ---------------------------------- ##
2003 ## Report this to erikd@mega-nerd.com ##
2004 ## ---------------------------------- ##"
2005 ) | sed "s/^/$as_me: WARNING: /" >&2
2006 ;;
2007 esac
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if eval \${$3+:} false; then :
2011 $as_echo_n "(cached) " >&6
2012 else
2013 eval "$3=\$ac_header_compiler"
2014 fi
2015 eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 fi
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_c_check_header_mongrel
2022
2023 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2024 # --------------------------------------------
2025 # Tries to find the compile-time value of EXPR in a program that includes
2026 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2027 # computed
2028 ac_fn_c_compute_int ()
2029 {
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if test "$cross_compiling" = yes; then
2032 # Depending upon the size, compute the lo and hi bounds.
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main ()
2038 {
2039 static int test_array [1 - 2 * !(($2) >= 0)];
2040 test_array [0] = 0
2041
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 ac_lo=0 ac_mid=0
2048 while :; do
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 $4
2052 int
2053 main ()
2054 {
2055 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2056 test_array [0] = 0
2057
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 ac_hi=$ac_mid; break
2064 else
2065 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2066 if test $ac_lo -le $ac_mid; then
2067 ac_lo= ac_hi=
2068 break
2069 fi
2070 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 done
2074 else
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 $4
2078 int
2079 main ()
2080 {
2081 static int test_array [1 - 2 * !(($2) < 0)];
2082 test_array [0] = 0
2083
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_hi=-1 ac_mid=-1
2090 while :; do
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2093 $4
2094 int
2095 main ()
2096 {
2097 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2098 test_array [0] = 0
2099
2100 ;
2101 return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_lo=$ac_mid; break
2106 else
2107 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2108 if test $ac_mid -le $ac_hi; then
2109 ac_lo= ac_hi=
2110 break
2111 fi
2112 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 done
2116 else
2117 ac_lo= ac_hi=
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 # Binary search between lo and hi bounds.
2123 while test "x$ac_lo" != "x$ac_hi"; do
2124 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 $4
2128 int
2129 main ()
2130 {
2131 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2132 test_array [0] = 0
2133
2134 ;
2135 return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 ac_hi=$ac_mid
2140 else
2141 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 done
2145 case $ac_lo in #((
2146 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2147 '') ac_retval=1 ;;
2148 esac
2149 else
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 $4
2153 static long int longval () { return $2; }
2154 static unsigned long int ulongval () { return $2; }
2155 #include <stdio.h>
2156 #include <stdlib.h>
2157 int
2158 main ()
2159 {
2160
2161 FILE *f = fopen ("conftest.val", "w");
2162 if (! f)
2163 return 1;
2164 if (($2) < 0)
2165 {
2166 long int i = longval ();
2167 if (i != ($2))
2168 return 1;
2169 fprintf (f, "%ld", i);
2170 }
2171 else
2172 {
2173 unsigned long int i = ulongval ();
2174 if (i != ($2))
2175 return 1;
2176 fprintf (f, "%lu", i);
2177 }
2178 /* Do not output a trailing newline, as this causes \r\n confusion
2179 on some platforms. */
2180 return ferror (f) || fclose (f) != 0;
2181
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_run "$LINENO"; then :
2187 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2188 else
2189 ac_retval=1
2190 fi
2191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2192 conftest.$ac_objext conftest.beam conftest.$ac_ext
2193 rm -f conftest.val
2194
2195 fi
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197 as_fn_set_status $ac_retval
2198
2199 } # ac_fn_c_compute_int
2200 cat >config.log <<_ACEOF
2201 This file contains any messages produced by compilers while
2202 running configure, to aid debugging if configure makes a mistake.
2203
2204 It was created by libsamplerate $as_me 0.1.8, which was
2205 generated by GNU Autoconf 2.68. Invocation command line was
2206
2207 $ $0 $@
2208
2209 _ACEOF
2210 exec 5>>config.log
2211 {
2212 cat <<_ASUNAME
2213 ## --------- ##
2214 ## Platform. ##
2215 ## --------- ##
2216
2217 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2218 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2219 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2220 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2221 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2222
2223 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2224 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2225
2226 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2227 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2228 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2229 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2230 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2231 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2232 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2233
2234 _ASUNAME
2235
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 $as_echo "PATH: $as_dir"
2242 done
2243 IFS=$as_save_IFS
2244
2245 } >&5
2246
2247 cat >&5 <<_ACEOF
2248
2249
2250 ## ----------- ##
2251 ## Core tests. ##
2252 ## ----------- ##
2253
2254 _ACEOF
2255
2256
2257 # Keep a trace of the command line.
2258 # Strip out --no-create and --no-recursion so they do not pile up.
2259 # Strip out --silent because we don't want to record it for future runs.
2260 # Also quote any args containing shell meta-characters.
2261 # Make two passes to allow for proper duplicate-argument suppression.
2262 ac_configure_args=
2263 ac_configure_args0=
2264 ac_configure_args1=
2265 ac_must_keep_next=false
2266 for ac_pass in 1 2
2267 do
2268 for ac_arg
2269 do
2270 case $ac_arg in
2271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2273 | -silent | --silent | --silen | --sile | --sil)
2274 continue ;;
2275 *\'*)
2276 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 esac
2278 case $ac_pass in
2279 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2280 2)
2281 as_fn_append ac_configure_args1 " '$ac_arg'"
2282 if test $ac_must_keep_next = true; then
2283 ac_must_keep_next=false # Got value, back to normal.
2284 else
2285 case $ac_arg in
2286 *=* | --config-cache | -C | -disable-* | --disable-* \
2287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2289 | -with-* | --with-* | -without-* | --without-* | --x)
2290 case "$ac_configure_args0 " in
2291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2292 esac
2293 ;;
2294 -* ) ac_must_keep_next=true ;;
2295 esac
2296 fi
2297 as_fn_append ac_configure_args " '$ac_arg'"
2298 ;;
2299 esac
2300 done
2301 done
2302 { ac_configure_args0=; unset ac_configure_args0;}
2303 { ac_configure_args1=; unset ac_configure_args1;}
2304
2305 # When interrupted or exit'd, cleanup temporary files, and complete
2306 # config.log. We remove comments because anyway the quotes in there
2307 # would cause problems or look ugly.
2308 # WARNING: Use '\'' to represent an apostrophe within the trap.
2309 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2310 trap 'exit_status=$?
2311 # Save into config.log some information that might help in debugging.
2312 {
2313 echo
2314
2315 $as_echo "## ---------------- ##
2316 ## Cache variables. ##
2317 ## ---------------- ##"
2318 echo
2319 # The following way of writing the cache mishandles newlines in values,
2320 (
2321 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2322 eval ac_val=\$$ac_var
2323 case $ac_val in #(
2324 *${as_nl}*)
2325 case $ac_var in #(
2326 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2327 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2328 esac
2329 case $ac_var in #(
2330 _ | IFS | as_nl) ;; #(
2331 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2332 *) { eval $ac_var=; unset $ac_var;} ;;
2333 esac ;;
2334 esac
2335 done
2336 (set) 2>&1 |
2337 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2338 *${as_nl}ac_space=\ *)
2339 sed -n \
2340 "s/'\''/'\''\\\\'\'''\''/g;
2341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2342 ;; #(
2343 *)
2344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2345 ;;
2346 esac |
2347 sort
2348 )
2349 echo
2350
2351 $as_echo "## ----------------- ##
2352 ## Output variables. ##
2353 ## ----------------- ##"
2354 echo
2355 for ac_var in $ac_subst_vars
2356 do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 $as_echo "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2364
2365 if test -n "$ac_subst_files"; then
2366 $as_echo "## ------------------- ##
2367 ## File substitutions. ##
2368 ## ------------------- ##"
2369 echo
2370 for ac_var in $ac_subst_files
2371 do
2372 eval ac_val=\$$ac_var
2373 case $ac_val in
2374 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2375 esac
2376 $as_echo "$ac_var='\''$ac_val'\''"
2377 done | sort
2378 echo
2379 fi
2380
2381 if test -s confdefs.h; then
2382 $as_echo "## ----------- ##
2383 ## confdefs.h. ##
2384 ## ----------- ##"
2385 echo
2386 cat confdefs.h
2387 echo
2388 fi
2389 test "$ac_signal" != 0 &&
2390 $as_echo "$as_me: caught signal $ac_signal"
2391 $as_echo "$as_me: exit $exit_status"
2392 } >&5
2393 rm -f core *.core core.conftest.* &&
2394 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2395 exit $exit_status
2396 ' 0
2397 for ac_signal in 1 2 13 15; do
2398 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2399 done
2400 ac_signal=0
2401
2402 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2403 rm -f -r conftest* confdefs.h
2404
2405 $as_echo "/* confdefs.h */" > confdefs.h
2406
2407 # Predefined preprocessor variables.
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_NAME "$PACKAGE_NAME"
2411 _ACEOF
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_STRING "$PACKAGE_STRING"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_URL "$PACKAGE_URL"
2431 _ACEOF
2432
2433
2434 # Let the site file select an alternate cache file if it wants to.
2435 # Prefer an explicitly selected file to automatically selected ones.
2436 ac_site_file1=NONE
2437 ac_site_file2=NONE
2438 if test -n "$CONFIG_SITE"; then
2439 # We do not want a PATH search for config.site.
2440 case $CONFIG_SITE in #((
2441 -*) ac_site_file1=./$CONFIG_SITE;;
2442 */*) ac_site_file1=$CONFIG_SITE;;
2443 *) ac_site_file1=./$CONFIG_SITE;;
2444 esac
2445 elif test "x$prefix" != xNONE; then
2446 ac_site_file1=$prefix/share/config.site
2447 ac_site_file2=$prefix/etc/config.site
2448 else
2449 ac_site_file1=$ac_default_prefix/share/config.site
2450 ac_site_file2=$ac_default_prefix/etc/config.site
2451 fi
2452 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2453 do
2454 test "x$ac_site_file" = xNONE && continue
2455 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2457 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2458 sed 's/^/| /' "$ac_site_file" >&5
2459 . "$ac_site_file" \
2460 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2462 as_fn_error $? "failed to load site script $ac_site_file
2463 See \`config.log' for more details" "$LINENO" 5; }
2464 fi
2465 done
2466
2467 if test -r "$cache_file"; then
2468 # Some versions of bash will fail to source /dev/null (special files
2469 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2470 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2472 $as_echo "$as_me: loading cache $cache_file" >&6;}
2473 case $cache_file in
2474 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2475 *) . "./$cache_file";;
2476 esac
2477 fi
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2480 $as_echo "$as_me: creating cache $cache_file" >&6;}
2481 >$cache_file
2482 fi
2483
2484 # Check that the precious variables saved in the cache have kept the same
2485 # value.
2486 ac_cache_corrupted=false
2487 for ac_var in $ac_precious_vars; do
2488 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2489 eval ac_new_set=\$ac_env_${ac_var}_set
2490 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2491 eval ac_new_val=\$ac_env_${ac_var}_value
2492 case $ac_old_set,$ac_new_set in
2493 set,)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2495 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2496 ac_cache_corrupted=: ;;
2497 ,set)
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2499 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2500 ac_cache_corrupted=: ;;
2501 ,);;
2502 *)
2503 if test "x$ac_old_val" != "x$ac_new_val"; then
2504 # differences in whitespace do not lead to failure.
2505 ac_old_val_w=`echo x $ac_old_val`
2506 ac_new_val_w=`echo x $ac_new_val`
2507 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2509 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2510 ac_cache_corrupted=:
2511 else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2513 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2514 eval $ac_var=\$ac_old_val
2515 fi
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2517 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2519 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2520 fi;;
2521 esac
2522 # Pass precious variables to config.status.
2523 if test "$ac_new_set" = set; then
2524 case $ac_new_val in
2525 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2526 *) ac_arg=$ac_var=$ac_new_val ;;
2527 esac
2528 case " $ac_configure_args " in
2529 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2530 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2531 esac
2532 fi
2533 done
2534 if $ac_cache_corrupted; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2538 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2539 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2540 fi
2541 ## -------------------- ##
2542 ## Main body of script. ##
2543 ## -------------------- ##
2544
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550
2551
2552
2553 # Put config stuff in Cfg.
2554 ac_aux_dir=
2555 for ac_dir in Cfg "$srcdir"/Cfg; do
2556 if test -f "$ac_dir/install-sh"; then
2557 ac_aux_dir=$ac_dir
2558 ac_install_sh="$ac_aux_dir/install-sh -c"
2559 break
2560 elif test -f "$ac_dir/install.sh"; then
2561 ac_aux_dir=$ac_dir
2562 ac_install_sh="$ac_aux_dir/install.sh -c"
2563 break
2564 elif test -f "$ac_dir/shtool"; then
2565 ac_aux_dir=$ac_dir
2566 ac_install_sh="$ac_aux_dir/shtool install -c"
2567 break
2568 fi
2569 done
2570 if test -z "$ac_aux_dir"; then
2571 as_fn_error $? "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5
2572 fi
2573
2574 # These three variables are undocumented and unsupported,
2575 # and are intended to be withdrawn in a future Autoconf release.
2576 # They can cause serious problems if a builder's source tree is in a directory
2577 # whose full name contains unusual characters.
2578 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2579 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2580 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2581
2582
2583
2584
2585 # Make sure we can run config.sub.
2586 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2587 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2590 $as_echo_n "checking build system type... " >&6; }
2591 if ${ac_cv_build+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 ac_build_alias=$build_alias
2595 test "x$ac_build_alias" = x &&
2596 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2597 test "x$ac_build_alias" = x &&
2598 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2599 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2601
2602 fi
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2604 $as_echo "$ac_cv_build" >&6; }
2605 case $ac_cv_build in
2606 *-*-*) ;;
2607 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2608 esac
2609 build=$ac_cv_build
2610 ac_save_IFS=$IFS; IFS='-'
2611 set x $ac_cv_build
2612 shift
2613 build_cpu=$1
2614 build_vendor=$2
2615 shift; shift
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2618 build_os=$*
2619 IFS=$ac_save_IFS
2620 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2621
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2624 $as_echo_n "checking host system type... " >&6; }
2625 if ${ac_cv_host+:} false; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test "x$host_alias" = x; then
2629 ac_cv_host=$ac_cv_build
2630 else
2631 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2632 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2633 fi
2634
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2637 $as_echo "$ac_cv_host" >&6; }
2638 case $ac_cv_host in
2639 *-*-*) ;;
2640 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2641 esac
2642 host=$ac_cv_host
2643 ac_save_IFS=$IFS; IFS='-'
2644 set x $ac_cv_host
2645 shift
2646 host_cpu=$1
2647 host_vendor=$2
2648 shift; shift
2649 # Remember, the first character of IFS is used to create $*,
2650 # except with old shells:
2651 host_os=$*
2652 IFS=$ac_save_IFS
2653 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2654
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2657 $as_echo_n "checking target system type... " >&6; }
2658 if ${ac_cv_target+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 if test "x$target_alias" = x; then
2662 ac_cv_target=$ac_cv_host
2663 else
2664 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2666 fi
2667
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2670 $as_echo "$ac_cv_target" >&6; }
2671 case $ac_cv_target in
2672 *-*-*) ;;
2673 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2674 esac
2675 target=$ac_cv_target
2676 ac_save_IFS=$IFS; IFS='-'
2677 set x $ac_cv_target
2678 shift
2679 target_cpu=$1
2680 target_vendor=$2
2681 shift; shift
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2684 target_os=$*
2685 IFS=$ac_save_IFS
2686 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2687
2688
2689 # The aliases save the names the user supplied, while $host etc.
2690 # will get canonicalized.
2691 test -n "$target_alias" &&
2692 test "$program_prefix$program_suffix$program_transform_name" = \
2693 NONENONEs,x,x, &&
2694 program_prefix=${target_alias}-
2695
2696
2697 ac_config_headers="$ac_config_headers src/config.h"
2698
2699
2700 am__api_version='1.11'
2701
2702 # Find a good install program. We prefer a C program (faster),
2703 # so one script is as good as another. But avoid the broken or
2704 # incompatible versions:
2705 # SysV /etc/install, /usr/sbin/install
2706 # SunOS /usr/etc/install
2707 # IRIX /sbin/install
2708 # AIX /bin/install
2709 # AmigaOS /C/install, which installs bootblocks on floppy discs
2710 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2711 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2712 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2713 # OS/2's system install, which has a completely different semantic
2714 # ./install, which can be erroneously created by make from ./install.sh.
2715 # Reject install programs that cannot install multiple files.
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2717 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2718 if test -z "$INSTALL"; then
2719 if ${ac_cv_path_install+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 # Account for people who put trailing slashes in PATH elements.
2728 case $as_dir/ in #((
2729 ./ | .// | /[cC]/* | \
2730 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2731 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2732 /usr/ucb/* ) ;;
2733 *)
2734 # OSF1 and SCO ODT 3.0 have their own names for install.
2735 # Don't use installbsd from OSF since it installs stuff as root
2736 # by default.
2737 for ac_prog in ginstall scoinst install; do
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2740 if test $ac_prog = install &&
2741 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2742 # AIX install. It has an incompatible calling convention.
2743 :
2744 elif test $ac_prog = install &&
2745 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2746 # program-specific install script used by HP pwplus--don't use.
2747 :
2748 else
2749 rm -rf conftest.one conftest.two conftest.dir
2750 echo one > conftest.one
2751 echo two > conftest.two
2752 mkdir conftest.dir
2753 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2754 test -s conftest.one && test -s conftest.two &&
2755 test -s conftest.dir/conftest.one &&
2756 test -s conftest.dir/conftest.two
2757 then
2758 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2759 break 3
2760 fi
2761 fi
2762 fi
2763 done
2764 done
2765 ;;
2766 esac
2767
2768 done
2769 IFS=$as_save_IFS
2770
2771 rm -rf conftest.one conftest.two conftest.dir
2772
2773 fi
2774 if test "${ac_cv_path_install+set}" = set; then
2775 INSTALL=$ac_cv_path_install
2776 else
2777 # As a last resort, use the slow shell script. Don't cache a
2778 # value for INSTALL within a source directory, because that will
2779 # break other packages using the cache if that directory is
2780 # removed, or if the value is a relative name.
2781 INSTALL=$ac_install_sh
2782 fi
2783 fi
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2785 $as_echo "$INSTALL" >&6; }
2786
2787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2788 # It thinks the first close brace ends the variable substitution.
2789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2790
2791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2792
2793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2794
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2796 $as_echo_n "checking whether build environment is sane... " >&6; }
2797 # Just in case
2798 sleep 1
2799 echo timestamp > conftest.file
2800 # Reject unsafe characters in $srcdir or the absolute working directory
2801 # name. Accept space and tab only in the latter.
2802 am_lf='
2803 '
2804 case `pwd` in
2805 *[\\\"\#\$\&\'\`$am_lf]*)
2806 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2807 esac
2808 case $srcdir in
2809 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2810 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2811 esac
2812
2813 # Do `set' in a subshell so we don't clobber the current shell's
2814 # arguments. Must try -L first in case configure is actually a
2815 # symlink; some systems play weird games with the mod time of symlinks
2816 # (eg FreeBSD returns the mod time of the symlink's containing
2817 # directory).
2818 if (
2819 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2820 if test "$*" = "X"; then
2821 # -L didn't work.
2822 set X `ls -t "$srcdir/configure" conftest.file`
2823 fi
2824 rm -f conftest.file
2825 if test "$*" != "X $srcdir/configure conftest.file" \
2826 && test "$*" != "X conftest.file $srcdir/configure"; then
2827
2828 # If neither matched, then we have a broken ls. This can happen
2829 # if, for instance, CONFIG_SHELL is bash and it inherits a
2830 # broken ls alias from the environment. This has actually
2831 # happened. Such a system could not be considered "sane".
2832 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2833 alias in your environment" "$LINENO" 5
2834 fi
2835
2836 test "$2" = conftest.file
2837 )
2838 then
2839 # Ok.
2840 :
2841 else
2842 as_fn_error $? "newly created file is older than distributed files!
2843 Check your system clock" "$LINENO" 5
2844 fi
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2846 $as_echo "yes" >&6; }
2847 test "$program_prefix" != NONE &&
2848 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2849 # Use a double $ so make ignores it.
2850 test "$program_suffix" != NONE &&
2851 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2852 # Double any \ or $.
2853 # By default was `s,x,x', remove it if useless.
2854 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2855 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2856
2857 # expand $ac_aux_dir to an absolute path
2858 am_aux_dir=`cd $ac_aux_dir && pwd`
2859
2860 if test x"${MISSING+set}" != xset; then
2861 case $am_aux_dir in
2862 *\ * | *\ *)
2863 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2864 *)
2865 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2866 esac
2867 fi
2868 # Use eval to expand $SHELL
2869 if eval "$MISSING --run true"; then
2870 am_missing_run="$MISSING --run "
2871 else
2872 am_missing_run=
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2874 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2875 fi
2876
2877 if test x"${install_sh}" != xset; then
2878 case $am_aux_dir in
2879 *\ * | *\ *)
2880 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2881 *)
2882 install_sh="\${SHELL} $am_aux_dir/install-sh"
2883 esac
2884 fi
2885
2886 # Installed binaries are usually stripped using `strip' when the user
2887 # run `make install-strip'. However `strip' might not be the right
2888 # tool to use in cross-compilation environments, therefore Automake
2889 # will honor the `STRIP' environment variable to overrule this program.
2890 if test "$cross_compiling" != no; then
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}strip; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_STRIP+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$STRIP"; then
2900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 STRIP=$ac_cv_prog_STRIP
2920 if test -n "$STRIP"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2922 $as_echo "$STRIP" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928
2929 fi
2930 if test -z "$ac_cv_prog_STRIP"; then
2931 ac_ct_STRIP=$STRIP
2932 # Extract the first word of "strip", so it can be a program name with args.
2933 set dummy strip; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$ac_ct_STRIP"; then
2940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_ac_ct_STRIP="strip"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2960 if test -n "$ac_ct_STRIP"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2962 $as_echo "$ac_ct_STRIP" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968 if test "x$ac_ct_STRIP" = x; then
2969 STRIP=":"
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977 STRIP=$ac_ct_STRIP
2978 fi
2979 else
2980 STRIP="$ac_cv_prog_STRIP"
2981 fi
2982
2983 fi
2984 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2985
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2987 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2988 if test -z "$MKDIR_P"; then
2989 if ${ac_cv_path_mkdir+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_prog in mkdir gmkdir; do
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3000 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3001 'mkdir (GNU coreutils) '* | \
3002 'mkdir (coreutils) '* | \
3003 'mkdir (fileutils) '4.1*)
3004 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3005 break 3;;
3006 esac
3007 done
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 fi
3013
3014 test -d ./--version && rmdir ./--version
3015 if test "${ac_cv_path_mkdir+set}" = set; then
3016 MKDIR_P="$ac_cv_path_mkdir -p"
3017 else
3018 # As a last resort, use the slow shell script. Don't cache a
3019 # value for MKDIR_P within a source directory, because that will
3020 # break other packages using the cache if that directory is
3021 # removed, or if the value is a relative name.
3022 MKDIR_P="$ac_install_sh -d"
3023 fi
3024 fi
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3026 $as_echo "$MKDIR_P" >&6; }
3027
3028 mkdir_p="$MKDIR_P"
3029 case $mkdir_p in
3030 [\\/$]* | ?:[\\/]*) ;;
3031 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3032 esac
3033
3034 for ac_prog in gawk mawk nawk awk
3035 do
3036 # Extract the first word of "$ac_prog", so it can be a program name with args.
3037 set dummy $ac_prog; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_AWK+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$AWK"; then
3044 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053 ac_cv_prog_AWK="$ac_prog"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057 done
3058 done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 AWK=$ac_cv_prog_AWK
3064 if test -n "$AWK"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3066 $as_echo "$AWK" >&6; }
3067 else
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073 test -n "$AWK" && break
3074 done
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3077 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3078 set x ${MAKE-make}
3079 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3080 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 cat >conftest.make <<\_ACEOF
3084 SHELL = /bin/sh
3085 all:
3086 @echo '@@@%%%=$(MAKE)=@@@%%%'
3087 _ACEOF
3088 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3089 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3090 *@@@%%%=?*=@@@%%%*)
3091 eval ac_cv_prog_make_${ac_make}_set=yes;;
3092 *)
3093 eval ac_cv_prog_make_${ac_make}_set=no;;
3094 esac
3095 rm -f conftest.make
3096 fi
3097 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099 $as_echo "yes" >&6; }
3100 SET_MAKE=
3101 else
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 SET_MAKE="MAKE=${MAKE-make}"
3105 fi
3106
3107 rm -rf .tst 2>/dev/null
3108 mkdir .tst 2>/dev/null
3109 if test -d .tst; then
3110 am__leading_dot=.
3111 else
3112 am__leading_dot=_
3113 fi
3114 rmdir .tst 2>/dev/null
3115
3116 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3117 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3118 # is not polluted with repeated "-I."
3119 am__isrc=' -I$(srcdir)'
3120 # test to see if srcdir already configured
3121 if test -f $srcdir/config.status; then
3122 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3123 fi
3124 fi
3125
3126 # test whether we have cygpath
3127 if test -z "$CYGPATH_W"; then
3128 if (cygpath --version) >/dev/null 2>/dev/null; then
3129 CYGPATH_W='cygpath -w'
3130 else
3131 CYGPATH_W=echo
3132 fi
3133 fi
3134
3135
3136 # Define the identity of the package.
3137 PACKAGE=$PACKAGE_NAME
3138 VERSION=$PACKAGE_VERSION
3139
3140
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE "$PACKAGE"
3143 _ACEOF
3144
3145
3146 cat >>confdefs.h <<_ACEOF
3147 #define VERSION "$VERSION"
3148 _ACEOF
3149
3150 # Some tools Automake needs.
3151
3152 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3153
3154
3155 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3156
3157
3158 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3159
3160
3161 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3162
3163
3164 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3165
3166 # We need awk for the "check" target. The system "awk" is bad on
3167 # some platforms.
3168 # Always define AMTAR for backward compatibility.
3169
3170 AMTAR=${AMTAR-"${am_missing_run}tar"}
3171
3172 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3173
3174
3175
3176
3177
3178 # Check whether --enable-silent-rules was given.
3179 if test "${enable_silent_rules+set}" = set; then :
3180 enableval=$enable_silent_rules;
3181 fi
3182
3183 case $enable_silent_rules in
3184 yes) AM_DEFAULT_VERBOSITY=0;;
3185 no) AM_DEFAULT_VERBOSITY=1;;
3186 *) AM_DEFAULT_VERBOSITY=0;;
3187 esac
3188 AM_BACKSLASH='\'
3189
3190
3191 ACLOCAL_AMFLAGS="-I M4"
3192
3193
3194 ac_ext=c
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199
3200
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 if test -n "$ac_tool_prefix"; then
3207 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3208 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_CC+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228 done
3229 done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 CC=$ac_cv_prog_CC
3235 if test -n "$CC"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3237 $as_echo "$CC" >&6; }
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242
3243
3244 fi
3245 if test -z "$ac_cv_prog_CC"; then
3246 ac_ct_CC=$CC
3247 # Extract the first word of "gcc", so it can be a program name with args.
3248 set dummy gcc; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 if test -n "$ac_ct_CC"; then
3255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3259 do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264 ac_cv_prog_ac_ct_CC="gcc"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268 done
3269 done
3270 IFS=$as_save_IFS
3271
3272 fi
3273 fi
3274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3275 if test -n "$ac_ct_CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3277 $as_echo "$ac_ct_CC" >&6; }
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 fi
3282
3283 if test "x$ac_ct_CC" = x; then
3284 CC=""
3285 else
3286 case $cross_compiling:$ac_tool_warned in
3287 yes:)
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3290 ac_tool_warned=yes ;;
3291 esac
3292 CC=$ac_ct_CC
3293 fi
3294 else
3295 CC="$ac_cv_prog_CC"
3296 fi
3297
3298 if test -z "$CC"; then
3299 if test -n "$ac_tool_prefix"; then
3300 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3301 set dummy ${ac_tool_prefix}cc; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_CC+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test -n "$CC"; then
3308 ac_cv_prog_CC="$CC" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 ac_cv_prog_CC="${ac_tool_prefix}cc"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 fi
3338 fi
3339 if test -z "$CC"; then
3340 # Extract the first word of "cc", so it can be a program name with args.
3341 set dummy cc; ac_word=$2
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if ${ac_cv_prog_CC+:} false; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC="$CC" # Let the user override the test.
3349 else
3350 ac_prog_rejected=no
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3359 ac_prog_rejected=yes
3360 continue
3361 fi
3362 ac_cv_prog_CC="cc"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 break 2
3365 fi
3366 done
3367 done
3368 IFS=$as_save_IFS
3369
3370 if test $ac_prog_rejected = yes; then
3371 # We found a bogon in the path, so make sure we never use it.
3372 set dummy $ac_cv_prog_CC
3373 shift
3374 if test $# != 0; then
3375 # We chose a different compiler from the bogus one.
3376 # However, it has the same basename, so the bogon will be chosen
3377 # first if we set CC to just the basename; use the full file name.
3378 shift
3379 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3380 fi
3381 fi
3382 fi
3383 fi
3384 CC=$ac_cv_prog_CC
3385 if test -n "$CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387 $as_echo "$CC" >&6; }
3388 else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393
3394 fi
3395 if test -z "$CC"; then
3396 if test -n "$ac_tool_prefix"; then
3397 for ac_prog in cl.exe
3398 do
3399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_CC+:} false; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC="$CC" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412 IFS=$as_save_IFS
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3419 fi
3420 done
3421 done
3422 IFS=$as_save_IFS
3423
3424 fi
3425 fi
3426 CC=$ac_cv_prog_CC
3427 if test -n "$CC"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429 $as_echo "$CC" >&6; }
3430 else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3433 fi
3434
3435
3436 test -n "$CC" && break
3437 done
3438 fi
3439 if test -z "$CC"; then
3440 ac_ct_CC=$CC
3441 for ac_prog in cl.exe
3442 do
3443 # Extract the first word of "$ac_prog", so it can be a program name with args.
3444 set dummy $ac_prog; ac_word=$2
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 $as_echo_n "checking for $ac_word... " >&6; }
3447 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 if test -n "$ac_ct_CC"; then
3451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3460 ac_cv_prog_ac_ct_CC="$ac_prog"
3461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3463 fi
3464 done
3465 done
3466 IFS=$as_save_IFS
3467
3468 fi
3469 fi
3470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3471 if test -n "$ac_ct_CC"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3473 $as_echo "$ac_ct_CC" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3477 fi
3478
3479
3480 test -n "$ac_ct_CC" && break
3481 done
3482
3483 if test "x$ac_ct_CC" = x; then
3484 CC=""
3485 else
3486 case $cross_compiling:$ac_tool_warned in
3487 yes:)
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3490 ac_tool_warned=yes ;;
3491 esac
3492 CC=$ac_ct_CC
3493 fi
3494 fi
3495
3496 fi
3497
3498
3499 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501 as_fn_error $? "no acceptable C compiler found in \$PATH
3502 See \`config.log' for more details" "$LINENO" 5; }
3503
3504 # Provide some information about the compiler.
3505 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3506 set X $ac_compile
3507 ac_compiler=$2
3508 for ac_option in --version -v -V -qversion; do
3509 { { ac_try="$ac_compiler $ac_option >&5"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3517 ac_status=$?
3518 if test -s conftest.err; then
3519 sed '10a\
3520 ... rest of stderr output deleted ...
3521 10q' conftest.err >conftest.er1
3522 cat conftest.er1 >&5
3523 fi
3524 rm -f conftest.er1 conftest.err
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }
3527 done
3528
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3531
3532 int
3533 main ()
3534 {
3535
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 ac_clean_files_save=$ac_clean_files
3541 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3542 # Try to create an executable without -o first, disregard a.out.
3543 # It will help us diagnose broken compilers, and finding out an intuition
3544 # of exeext.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3546 $as_echo_n "checking whether the C compiler works... " >&6; }
3547 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3548
3549 # The possible output files:
3550 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3551
3552 ac_rmfiles=
3553 for ac_file in $ac_files
3554 do
3555 case $ac_file in
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3557 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3558 esac
3559 done
3560 rm -f $ac_rmfiles
3561
3562 if { { ac_try="$ac_link_default"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_link_default") 2>&5
3570 ac_status=$?
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; then :
3573 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3574 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3575 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3576 # so that the user can short-circuit this test for compilers unknown to
3577 # Autoconf.
3578 for ac_file in $ac_files ''
3579 do
3580 test -f "$ac_file" || continue
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3583 ;;
3584 [ab].out )
3585 # We found the default executable, but exeext='' is most
3586 # certainly right.
3587 break;;
3588 *.* )
3589 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3590 then :; else
3591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3592 fi
3593 # We set ac_cv_exeext here because the later test for it is not
3594 # safe: cross compilers may not add the suffix if given an `-o'
3595 # argument, so we may need to know it at that point already.
3596 # Even if this section looks crufty: it has the advantage of
3597 # actually working.
3598 break;;
3599 * )
3600 break;;
3601 esac
3602 done
3603 test "$ac_cv_exeext" = no && ac_cv_exeext=
3604
3605 else
3606 ac_file=''
3607 fi
3608 if test -z "$ac_file"; then :
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3611 $as_echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 as_fn_error 77 "C compiler cannot create executables
3617 See \`config.log' for more details" "$LINENO" 5; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3620 $as_echo "yes" >&6; }
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3623 $as_echo_n "checking for C compiler default output file name... " >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3625 $as_echo "$ac_file" >&6; }
3626 ac_exeext=$ac_cv_exeext
3627
3628 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3629 ac_clean_files=$ac_clean_files_save
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3631 $as_echo_n "checking for suffix of executables... " >&6; }
3632 if { { ac_try="$ac_link"
3633 case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_link") 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; then :
3643 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3644 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3645 # work properly (i.e., refer to `conftest.exe'), while it won't with
3646 # `rm'.
3647 for ac_file in conftest.exe conftest conftest.*; do
3648 test -f "$ac_file" || continue
3649 case $ac_file in
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3652 break;;
3653 * ) break;;
3654 esac
3655 done
3656 else
3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3660 See \`config.log' for more details" "$LINENO" 5; }
3661 fi
3662 rm -f conftest conftest$ac_cv_exeext
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3664 $as_echo "$ac_cv_exeext" >&6; }
3665
3666 rm -f conftest.$ac_ext
3667 EXEEXT=$ac_cv_exeext
3668 ac_exeext=$EXEEXT
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3671 #include <stdio.h>
3672 int
3673 main ()
3674 {
3675 FILE *f = fopen ("conftest.out", "w");
3676 return ferror (f) || fclose (f) != 0;
3677
3678 ;
3679 return 0;
3680 }
3681 _ACEOF
3682 ac_clean_files="$ac_clean_files conftest.out"
3683 # Check that the compiler produces executables we can run. If not, either
3684 # the compiler is broken, or we cross compile.
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3686 $as_echo_n "checking whether we are cross compiling... " >&6; }
3687 if test "$cross_compiling" != yes; then
3688 { { ac_try="$ac_link"
3689 case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695 (eval "$ac_link") 2>&5
3696 ac_status=$?
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }
3699 if { ac_try='./conftest$ac_cv_exeext'
3700 { { case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_try") 2>&5
3707 ac_status=$?
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }; }; then
3710 cross_compiling=no
3711 else
3712 if test "$cross_compiling" = maybe; then
3713 cross_compiling=yes
3714 else
3715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717 as_fn_error $? "cannot run C compiled programs.
3718 If you meant to cross compile, use \`--host'.
3719 See \`config.log' for more details" "$LINENO" 5; }
3720 fi
3721 fi
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3724 $as_echo "$cross_compiling" >&6; }
3725
3726 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3727 ac_clean_files=$ac_clean_files_save
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3729 $as_echo_n "checking for suffix of object files... " >&6; }
3730 if ${ac_cv_objext+:} false; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735
3736 int
3737 main ()
3738 {
3739
3740 ;
3741 return 0;
3742 }
3743 _ACEOF
3744 rm -f conftest.o conftest.obj
3745 if { { ac_try="$ac_compile"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_compile") 2>&5
3753 ac_status=$?
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 for ac_file in conftest.o conftest.obj conftest.*; do
3757 test -f "$ac_file" || continue;
3758 case $ac_file in
3759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3760 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3761 break;;
3762 esac
3763 done
3764 else
3765 $as_echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3767
3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $? "cannot compute suffix of object files: cannot compile
3771 See \`config.log' for more details" "$LINENO" 5; }
3772 fi
3773 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3776 $as_echo "$ac_cv_objext" >&6; }
3777 OBJEXT=$ac_cv_objext
3778 ac_objext=$OBJEXT
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3780 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3781 if ${ac_cv_c_compiler_gnu+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3786
3787 int
3788 main ()
3789 {
3790 #ifndef __GNUC__
3791 choke me
3792 #endif
3793
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_compiler_gnu=yes
3800 else
3801 ac_compiler_gnu=no
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3805
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3808 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3809 if test $ac_compiler_gnu = yes; then
3810 GCC=yes
3811 else
3812 GCC=
3813 fi
3814 ac_test_CFLAGS=${CFLAGS+set}
3815 ac_save_CFLAGS=$CFLAGS
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3817 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3818 if ${ac_cv_prog_cc_g+:} false; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821 ac_save_c_werror_flag=$ac_c_werror_flag
3822 ac_c_werror_flag=yes
3823 ac_cv_prog_cc_g=no
3824 CFLAGS="-g"
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827
3828 int
3829 main ()
3830 {
3831
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_cv_prog_cc_g=yes
3838 else
3839 CFLAGS=""
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842
3843 int
3844 main ()
3845 {
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852
3853 else
3854 ac_c_werror_flag=$ac_save_c_werror_flag
3855 CFLAGS="-g"
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3858
3859 int
3860 main ()
3861 {
3862
3863 ;
3864 return 0;
3865 }
3866 _ACEOF
3867 if ac_fn_c_try_compile "$LINENO"; then :
3868 ac_cv_prog_cc_g=yes
3869 fi
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 fi
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873 fi
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_c_werror_flag=$ac_save_c_werror_flag
3876 fi
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3878 $as_echo "$ac_cv_prog_cc_g" >&6; }
3879 if test "$ac_test_CFLAGS" = set; then
3880 CFLAGS=$ac_save_CFLAGS
3881 elif test $ac_cv_prog_cc_g = yes; then
3882 if test "$GCC" = yes; then
3883 CFLAGS="-g -O2"
3884 else
3885 CFLAGS="-g"
3886 fi
3887 else
3888 if test "$GCC" = yes; then
3889 CFLAGS="-O2"
3890 else
3891 CFLAGS=
3892 fi
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3895 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3896 if ${ac_cv_prog_cc_c89+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 ac_cv_prog_cc_c89=no
3900 ac_save_CC=$CC
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903 #include <stdarg.h>
3904 #include <stdio.h>
3905 #include <sys/types.h>
3906 #include <sys/stat.h>
3907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3908 struct buf { int x; };
3909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3910 static char *e (p, i)
3911 char **p;
3912 int i;
3913 {
3914 return p[i];
3915 }
3916 static char *f (char * (*g) (char **, int), char **p, ...)
3917 {
3918 char *s;
3919 va_list v;
3920 va_start (v,p);
3921 s = g (p, va_arg (v,int));
3922 va_end (v);
3923 return s;
3924 }
3925
3926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3927 function prototypes and stuff, but not '\xHH' hex character constants.
3928 These don't provoke an error unfortunately, instead are silently treated
3929 as 'x'. The following induces an error, until -std is added to get
3930 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3931 array size at least. It's necessary to write '\x00'==0 to get something
3932 that's true only with -std. */
3933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3934
3935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3936 inside strings and character constants. */
3937 #define FOO(x) 'x'
3938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3939
3940 int test (int i, double x);
3941 struct s1 {int (*f) (int a);};
3942 struct s2 {int (*f) (double a);};
3943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3944 int argc;
3945 char **argv;
3946 int
3947 main ()
3948 {
3949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3950 ;
3951 return 0;
3952 }
3953 _ACEOF
3954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3955 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3956 do
3957 CC="$ac_save_CC $ac_arg"
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959 ac_cv_prog_cc_c89=$ac_arg
3960 fi
3961 rm -f core conftest.err conftest.$ac_objext
3962 test "x$ac_cv_prog_cc_c89" != "xno" && break
3963 done
3964 rm -f conftest.$ac_ext
3965 CC=$ac_save_CC
3966
3967 fi
3968 # AC_CACHE_VAL
3969 case "x$ac_cv_prog_cc_c89" in
3970 x)
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3972 $as_echo "none needed" >&6; } ;;
3973 xno)
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3975 $as_echo "unsupported" >&6; } ;;
3976 *)
3977 CC="$CC $ac_cv_prog_cc_c89"
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3979 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3980 esac
3981 if test "x$ac_cv_prog_cc_c89" != xno; then :
3982
3983 fi
3984
3985 ac_ext=c
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990 DEPDIR="${am__leading_dot}deps"
3991
3992 ac_config_commands="$ac_config_commands depfiles"
3993
3994
3995 am_make=${MAKE-make}
3996 cat > confinc << 'END'
3997 am__doit:
3998 @echo this is the am__doit target
3999 .PHONY: am__doit
4000 END
4001 # If we don't find an include directive, just comment out the code.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4003 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4004 am__include="#"
4005 am__quote=
4006 _am_result=none
4007 # First try GNU make style include.
4008 echo "include confinc" > confmf
4009 # Ignore all kinds of additional output from `make'.
4010 case `$am_make -s -f confmf 2> /dev/null` in #(
4011 *the\ am__doit\ target*)
4012 am__include=include
4013 am__quote=
4014 _am_result=GNU
4015 ;;
4016 esac
4017 # Now try BSD make style include.
4018 if test "$am__include" = "#"; then
4019 echo '.include "confinc"' > confmf
4020 case `$am_make -s -f confmf 2> /dev/null` in #(
4021 *the\ am__doit\ target*)
4022 am__include=.include
4023 am__quote="\""
4024 _am_result=BSD
4025 ;;
4026 esac
4027 fi
4028
4029
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4031 $as_echo "$_am_result" >&6; }
4032 rm -f confinc confmf
4033
4034 # Check whether --enable-dependency-tracking was given.
4035 if test "${enable_dependency_tracking+set}" = set; then :
4036 enableval=$enable_dependency_tracking;
4037 fi
4038
4039 if test "x$enable_dependency_tracking" != xno; then
4040 am_depcomp="$ac_aux_dir/depcomp"
4041 AMDEPBACKSLASH='\'
4042 fi
4043 if test "x$enable_dependency_tracking" != xno; then
4044 AMDEP_TRUE=
4045 AMDEP_FALSE='#'
4046 else
4047 AMDEP_TRUE='#'
4048 AMDEP_FALSE=
4049 fi
4050
4051
4052
4053 depcc="$CC" am_compiler_list=
4054
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4056 $as_echo_n "checking dependency style of $depcc... " >&6; }
4057 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4061 # We make a subdir and do the tests there. Otherwise we can end up
4062 # making bogus files that we don't know about and never remove. For
4063 # instance it was reported that on HP-UX the gcc test will end up
4064 # making a dummy file named `D' -- because `-MD' means `put the output
4065 # in D'.
4066 mkdir conftest.dir
4067 # Copy depcomp to subdir because otherwise we won't find it if we're
4068 # using a relative directory.
4069 cp "$am_depcomp" conftest.dir
4070 cd conftest.dir
4071 # We will build objects and dependencies in a subdirectory because
4072 # it helps to detect inapplicable dependency modes. For instance
4073 # both Tru64's cc and ICC support -MD to output dependencies as a
4074 # side effect of compilation, but ICC will put the dependencies in
4075 # the current directory while Tru64 will put them in the object
4076 # directory.
4077 mkdir sub
4078
4079 am_cv_CC_dependencies_compiler_type=none
4080 if test "$am_compiler_list" = ""; then
4081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4082 fi
4083 am__universal=false
4084 case " $depcc " in #(
4085 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4086 esac
4087
4088 for depmode in $am_compiler_list; do
4089 # Setup a source with many dependencies, because some compilers
4090 # like to wrap large dependency lists on column 80 (with \), and
4091 # we should not choose a depcomp mode which is confused by this.
4092 #
4093 # We need to recreate these files for each test, as the compiler may
4094 # overwrite some of them when testing with obscure command lines.
4095 # This happens at least with the AIX C compiler.
4096 : > sub/conftest.c
4097 for i in 1 2 3 4 5 6; do
4098 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4099 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4100 # Solaris 8's {/usr,}/bin/sh.
4101 touch sub/conftst$i.h
4102 done
4103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4104
4105 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4106 # mode. It turns out that the SunPro C++ compiler does not properly
4107 # handle `-M -o', and we need to detect this. Also, some Intel
4108 # versions had trouble with output in subdirs
4109 am__obj=sub/conftest.${OBJEXT-o}
4110 am__minus_obj="-o $am__obj"
4111 case $depmode in
4112 gcc)
4113 # This depmode causes a compiler race in universal mode.
4114 test "$am__universal" = false || continue
4115 ;;
4116 nosideeffect)
4117 # after this tag, mechanisms are not by side-effect, so they'll
4118 # only be used when explicitly requested
4119 if test "x$enable_dependency_tracking" = xyes; then
4120 continue
4121 else
4122 break
4123 fi
4124 ;;
4125 msvisualcpp | msvcmsys)
4126 # This compiler won't grok `-c -o', but also, the minuso test has
4127 # not run yet. These depmodes are late enough in the game, and
4128 # so weak that their functioning should not be impacted.
4129 am__obj=conftest.${OBJEXT-o}
4130 am__minus_obj=
4131 ;;
4132 none) break ;;
4133 esac
4134 if depmode=$depmode \
4135 source=sub/conftest.c object=$am__obj \
4136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4138 >/dev/null 2>conftest.err &&
4139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4143 # icc doesn't choke on unknown options, it will just issue warnings
4144 # or remarks (even with -Werror). So we grep stderr for any message
4145 # that says an option was ignored or not supported.
4146 # When given -MP, icc 7.0 and 7.1 complain thusly:
4147 # icc: Command line warning: ignoring option '-M'; no argument required
4148 # The diagnosis changed in icc 8.0:
4149 # icc: Command line remark: option '-MP' not supported
4150 if (grep 'ignoring option' conftest.err ||
4151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4152 am_cv_CC_dependencies_compiler_type=$depmode
4153 break
4154 fi
4155 fi
4156 done
4157
4158 cd ..
4159 rm -rf conftest.dir
4160 else
4161 am_cv_CC_dependencies_compiler_type=none
4162 fi
4163
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4166 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4167 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4168
4169 if
4170 test "x$enable_dependency_tracking" != xno \
4171 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4172 am__fastdepCC_TRUE=
4173 am__fastdepCC_FALSE='#'
4174 else
4175 am__fastdepCC_TRUE='#'
4176 am__fastdepCC_FALSE=
4177 fi
4178
4179
4180 if test "x$CC" != xcc; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4182 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4185 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4186 fi
4187 set dummy $CC; ac_cc=`$as_echo "$2" |
4188 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4189 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194
4195 int
4196 main ()
4197 {
4198
4199 ;
4200 return 0;
4201 }
4202 _ACEOF
4203 # Make sure it works both with $CC and with simple cc.
4204 # We do the test twice because some compilers refuse to overwrite an
4205 # existing .o file with -o, though they will create one.
4206 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4207 rm -f conftest2.*
4208 if { { case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213 $as_echo "$ac_try_echo"; } >&5
4214 (eval "$ac_try") 2>&5
4215 ac_status=$?
4216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217 test $ac_status = 0; } &&
4218 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_try") 2>&5
4225 ac_status=$?
4226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; };
4228 then
4229 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4230 if test "x$CC" != xcc; then
4231 # Test first that cc exists at all.
4232 if { ac_try='cc -c conftest.$ac_ext >&5'
4233 { { case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236 esac
4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 $as_echo "$ac_try_echo"; } >&5
4239 (eval "$ac_try") 2>&5
4240 ac_status=$?
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }; }; then
4243 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4244 rm -f conftest2.*
4245 if { { case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; } &&
4255 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_try") 2>&5
4262 ac_status=$?
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; };
4265 then
4266 # cc works too.
4267 :
4268 else
4269 # cc exists but doesn't like -o.
4270 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4271 fi
4272 fi
4273 fi
4274 else
4275 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4276 fi
4277 rm -f core conftest*
4278
4279 fi
4280 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4282 $as_echo "yes" >&6; }
4283 else
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4286
4287 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4288
4289 fi
4290
4291 # FIXME: we rely on the cache variable name because
4292 # there is no other way.
4293 set dummy $CC
4294 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4295 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4296 if test "$am_t" != yes; then
4297 # Losing compiler, so override with the script.
4298 # FIXME: It is wrong to rewrite CC.
4299 # But if we don't then we get into trouble of one sort or another.
4300 # A longer-term fix would be to have automake use am__CC in this case,
4301 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4302 CC="$am_aux_dir/compile $CC"
4303 fi
4304
4305
4306 ac_ext=cpp
4307 ac_cpp='$CXXCPP $CPPFLAGS'
4308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4311 if test -z "$CXX"; then
4312 if test -n "$CCC"; then
4313 CXX=$CCC
4314 else
4315 if test -n "$ac_tool_prefix"; then
4316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4317 do
4318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if ${ac_cv_prog_CXX+:} false; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 if test -n "$CXX"; then
4326 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4330 do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4338 fi
4339 done
4340 done
4341 IFS=$as_save_IFS
4342
4343 fi
4344 fi
4345 CXX=$ac_cv_prog_CXX
4346 if test -n "$CXX"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4348 $as_echo "$CXX" >&6; }
4349 else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4352 fi
4353
4354
4355 test -n "$CXX" && break
4356 done
4357 fi
4358 if test -z "$CXX"; then
4359 ac_ct_CXX=$CXX
4360 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4361 do
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$ac_ct_CXX"; then
4370 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_CXX="$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383 done
4384 done
4385 IFS=$as_save_IFS
4386
4387 fi
4388 fi
4389 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4390 if test -n "$ac_ct_CXX"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4392 $as_echo "$ac_ct_CXX" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 fi
4397
4398
4399 test -n "$ac_ct_CXX" && break
4400 done
4401
4402 if test "x$ac_ct_CXX" = x; then
4403 CXX="g++"
4404 else
4405 case $cross_compiling:$ac_tool_warned in
4406 yes:)
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4410 esac
4411 CXX=$ac_ct_CXX
4412 fi
4413 fi
4414
4415 fi
4416 fi
4417 # Provide some information about the compiler.
4418 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4419 set X $ac_compile
4420 ac_compiler=$2
4421 for ac_option in --version -v -V -qversion; do
4422 { { ac_try="$ac_compiler $ac_option >&5"
4423 case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426 esac
4427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428 $as_echo "$ac_try_echo"; } >&5
4429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4430 ac_status=$?
4431 if test -s conftest.err; then
4432 sed '10a\
4433 ... rest of stderr output deleted ...
4434 10q' conftest.err >conftest.er1
4435 cat conftest.er1 >&5
4436 fi
4437 rm -f conftest.er1 conftest.err
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }
4440 done
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4443 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4444 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449
4450 int
4451 main ()
4452 {
4453 #ifndef __GNUC__
4454 choke me
4455 #endif
4456
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_cxx_try_compile "$LINENO"; then :
4462 ac_compiler_gnu=yes
4463 else
4464 ac_compiler_gnu=no
4465 fi
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4468
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4471 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4472 if test $ac_compiler_gnu = yes; then
4473 GXX=yes
4474 else
4475 GXX=
4476 fi
4477 ac_test_CXXFLAGS=${CXXFLAGS+set}
4478 ac_save_CXXFLAGS=$CXXFLAGS
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4480 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4481 if ${ac_cv_prog_cxx_g+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4485 ac_cxx_werror_flag=yes
4486 ac_cv_prog_cxx_g=no
4487 CXXFLAGS="-g"
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490
4491 int
4492 main ()
4493 {
4494
4495 ;
4496 return 0;
4497 }
4498 _ACEOF
4499 if ac_fn_cxx_try_compile "$LINENO"; then :
4500 ac_cv_prog_cxx_g=yes
4501 else
4502 CXXFLAGS=""
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505
4506 int
4507 main ()
4508 {
4509
4510 ;
4511 return 0;
4512 }
4513 _ACEOF
4514 if ac_fn_cxx_try_compile "$LINENO"; then :
4515
4516 else
4517 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4518 CXXFLAGS="-g"
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521
4522 int
4523 main ()
4524 {
4525
4526 ;
4527 return 0;
4528 }
4529 _ACEOF
4530 if ac_fn_cxx_try_compile "$LINENO"; then :
4531 ac_cv_prog_cxx_g=yes
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4541 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4542 if test "$ac_test_CXXFLAGS" = set; then
4543 CXXFLAGS=$ac_save_CXXFLAGS
4544 elif test $ac_cv_prog_cxx_g = yes; then
4545 if test "$GXX" = yes; then
4546 CXXFLAGS="-g -O2"
4547 else
4548 CXXFLAGS="-g"
4549 fi
4550 else
4551 if test "$GXX" = yes; then
4552 CXXFLAGS="-O2"
4553 else
4554 CXXFLAGS=
4555 fi
4556 fi
4557 ac_ext=c
4558 ac_cpp='$CPP $CPPFLAGS'
4559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
4563 depcc="$CXX" am_compiler_list=
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4566 $as_echo_n "checking dependency style of $depcc... " >&6; }
4567 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4571 # We make a subdir and do the tests there. Otherwise we can end up
4572 # making bogus files that we don't know about and never remove. For
4573 # instance it was reported that on HP-UX the gcc test will end up
4574 # making a dummy file named `D' -- because `-MD' means `put the output
4575 # in D'.
4576 mkdir conftest.dir
4577 # Copy depcomp to subdir because otherwise we won't find it if we're
4578 # using a relative directory.
4579 cp "$am_depcomp" conftest.dir
4580 cd conftest.dir
4581 # We will build objects and dependencies in a subdirectory because
4582 # it helps to detect inapplicable dependency modes. For instance
4583 # both Tru64's cc and ICC support -MD to output dependencies as a
4584 # side effect of compilation, but ICC will put the dependencies in
4585 # the current directory while Tru64 will put them in the object
4586 # directory.
4587 mkdir sub
4588
4589 am_cv_CXX_dependencies_compiler_type=none
4590 if test "$am_compiler_list" = ""; then
4591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4592 fi
4593 am__universal=false
4594 case " $depcc " in #(
4595 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4596 esac
4597
4598 for depmode in $am_compiler_list; do
4599 # Setup a source with many dependencies, because some compilers
4600 # like to wrap large dependency lists on column 80 (with \), and
4601 # we should not choose a depcomp mode which is confused by this.
4602 #
4603 # We need to recreate these files for each test, as the compiler may
4604 # overwrite some of them when testing with obscure command lines.
4605 # This happens at least with the AIX C compiler.
4606 : > sub/conftest.c
4607 for i in 1 2 3 4 5 6; do
4608 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4609 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4610 # Solaris 8's {/usr,}/bin/sh.
4611 touch sub/conftst$i.h
4612 done
4613 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4614
4615 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4616 # mode. It turns out that the SunPro C++ compiler does not properly
4617 # handle `-M -o', and we need to detect this. Also, some Intel
4618 # versions had trouble with output in subdirs
4619 am__obj=sub/conftest.${OBJEXT-o}
4620 am__minus_obj="-o $am__obj"
4621 case $depmode in
4622 gcc)
4623 # This depmode causes a compiler race in universal mode.
4624 test "$am__universal" = false || continue
4625 ;;
4626 nosideeffect)
4627 # after this tag, mechanisms are not by side-effect, so they'll
4628 # only be used when explicitly requested
4629 if test "x$enable_dependency_tracking" = xyes; then
4630 continue
4631 else
4632 break
4633 fi
4634 ;;
4635 msvisualcpp | msvcmsys)
4636 # This compiler won't grok `-c -o', but also, the minuso test has
4637 # not run yet. These depmodes are late enough in the game, and
4638 # so weak that their functioning should not be impacted.
4639 am__obj=conftest.${OBJEXT-o}
4640 am__minus_obj=
4641 ;;
4642 none) break ;;
4643 esac
4644 if depmode=$depmode \
4645 source=sub/conftest.c object=$am__obj \
4646 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4647 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4648 >/dev/null 2>conftest.err &&
4649 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4650 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4651 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4652 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4653 # icc doesn't choke on unknown options, it will just issue warnings
4654 # or remarks (even with -Werror). So we grep stderr for any message
4655 # that says an option was ignored or not supported.
4656 # When given -MP, icc 7.0 and 7.1 complain thusly:
4657 # icc: Command line warning: ignoring option '-M'; no argument required
4658 # The diagnosis changed in icc 8.0:
4659 # icc: Command line remark: option '-MP' not supported
4660 if (grep 'ignoring option' conftest.err ||
4661 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4662 am_cv_CXX_dependencies_compiler_type=$depmode
4663 break
4664 fi
4665 fi
4666 done
4667
4668 cd ..
4669 rm -rf conftest.dir
4670 else
4671 am_cv_CXX_dependencies_compiler_type=none
4672 fi
4673
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4676 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4677 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4678
4679 if
4680 test "x$enable_dependency_tracking" != xno \
4681 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4682 am__fastdepCXX_TRUE=
4683 am__fastdepCXX_FALSE='#'
4684 else
4685 am__fastdepCXX_TRUE='#'
4686 am__fastdepCXX_FALSE=
4687 fi
4688
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4691 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4692 if ${ac_cv_path_SED+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4696 for ac_i in 1 2 3 4 5 6 7; do
4697 ac_script="$ac_script$as_nl$ac_script"
4698 done
4699 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4700 { ac_script=; unset ac_script;}
4701 if test -z "$SED"; then
4702 ac_path_SED_found=false
4703 # Loop through the user's path and test for each of PROGNAME-LIST
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_prog in sed gsed; do
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4712 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4713 # Check for GNU ac_path_SED and select it if it is found.
4714 # Check for GNU $ac_path_SED
4715 case `"$ac_path_SED" --version 2>&1` in
4716 *GNU*)
4717 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4718 *)
4719 ac_count=0
4720 $as_echo_n 0123456789 >"conftest.in"
4721 while :
4722 do
4723 cat "conftest.in" "conftest.in" >"conftest.tmp"
4724 mv "conftest.tmp" "conftest.in"
4725 cp "conftest.in" "conftest.nl"
4726 $as_echo '' >> "conftest.nl"
4727 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4729 as_fn_arith $ac_count + 1 && ac_count=$as_val
4730 if test $ac_count -gt ${ac_path_SED_max-0}; then
4731 # Best one so far, save it but keep looking for a better one
4732 ac_cv_path_SED="$ac_path_SED"
4733 ac_path_SED_max=$ac_count
4734 fi
4735 # 10*(2^10) chars as input seems more than enough
4736 test $ac_count -gt 10 && break
4737 done
4738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4739 esac
4740
4741 $ac_path_SED_found && break 3
4742 done
4743 done
4744 done
4745 IFS=$as_save_IFS
4746 if test -z "$ac_cv_path_SED"; then
4747 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4748 fi
4749 else
4750 ac_cv_path_SED=$SED
4751 fi
4752
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4755 $as_echo "$ac_cv_path_SED" >&6; }
4756 SED="$ac_cv_path_SED"
4757 rm -f conftest.sed
4758
4759
4760 # Do not check for F77.
4761
4762 case `pwd` in
4763 *\ * | *\ *)
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4765 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4766 esac
4767
4768
4769
4770 macro_version='2.4'
4771 macro_revision='1.3293'
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785 ltmain="$ac_aux_dir/ltmain.sh"
4786
4787 # Backslashify metacharacters that are still active within
4788 # double-quoted strings.
4789 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4790
4791 # Same as above, but do not quote variable references.
4792 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4793
4794 # Sed substitution to delay expansion of an escaped shell variable in a
4795 # double_quote_subst'ed string.
4796 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4797
4798 # Sed substitution to delay expansion of an escaped single quote.
4799 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4800
4801 # Sed substitution to avoid accidental globbing in evaled expressions
4802 no_glob_subst='s/\*/\\\*/g'
4803
4804 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4805 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4806 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4807
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4809 $as_echo_n "checking how to print strings... " >&6; }
4810 # Test print first, because it will be a builtin if present.
4811 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4812 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4813 ECHO='print -r --'
4814 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4815 ECHO='printf %s\n'
4816 else
4817 # Use this function as a fallback that always works.
4818 func_fallback_echo ()
4819 {
4820 eval 'cat <<_LTECHO_EOF
4821 $1
4822 _LTECHO_EOF'
4823 }
4824 ECHO='func_fallback_echo'
4825 fi
4826
4827 # func_echo_all arg...
4828 # Invoke $ECHO with all args, space-separated.
4829 func_echo_all ()
4830 {
4831 $ECHO ""
4832 }
4833
4834 case "$ECHO" in
4835 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4836 $as_echo "printf" >&6; } ;;
4837 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4838 $as_echo "print -r" >&6; } ;;
4839 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4840 $as_echo "cat" >&6; } ;;
4841 esac
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4857 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4858 if ${ac_cv_path_SED+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4862 for ac_i in 1 2 3 4 5 6 7; do
4863 ac_script="$ac_script$as_nl$ac_script"
4864 done
4865 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4866 { ac_script=; unset ac_script;}
4867 if test -z "$SED"; then
4868 ac_path_SED_found=false
4869 # Loop through the user's path and test for each of PROGNAME-LIST
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_prog in sed gsed; do
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4878 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4879 # Check for GNU ac_path_SED and select it if it is found.
4880 # Check for GNU $ac_path_SED
4881 case `"$ac_path_SED" --version 2>&1` in
4882 *GNU*)
4883 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4884 *)
4885 ac_count=0
4886 $as_echo_n 0123456789 >"conftest.in"
4887 while :
4888 do
4889 cat "conftest.in" "conftest.in" >"conftest.tmp"
4890 mv "conftest.tmp" "conftest.in"
4891 cp "conftest.in" "conftest.nl"
4892 $as_echo '' >> "conftest.nl"
4893 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4895 as_fn_arith $ac_count + 1 && ac_count=$as_val
4896 if test $ac_count -gt ${ac_path_SED_max-0}; then
4897 # Best one so far, save it but keep looking for a better one
4898 ac_cv_path_SED="$ac_path_SED"
4899 ac_path_SED_max=$ac_count
4900 fi
4901 # 10*(2^10) chars as input seems more than enough
4902 test $ac_count -gt 10 && break
4903 done
4904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4905 esac
4906
4907 $ac_path_SED_found && break 3
4908 done
4909 done
4910 done
4911 IFS=$as_save_IFS
4912 if test -z "$ac_cv_path_SED"; then
4913 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4914 fi
4915 else
4916 ac_cv_path_SED=$SED
4917 fi
4918
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4921 $as_echo "$ac_cv_path_SED" >&6; }
4922 SED="$ac_cv_path_SED"
4923 rm -f conftest.sed
4924
4925 test -z "$SED" && SED=sed
4926 Xsed="$SED -e 1s/^X//"
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4939 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4940 if ${ac_cv_path_GREP+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -z "$GREP"; then
4944 ac_path_GREP_found=false
4945 # Loop through the user's path and test for each of PROGNAME-LIST
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4948 do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_prog in grep ggrep; do
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4954 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4955 # Check for GNU ac_path_GREP and select it if it is found.
4956 # Check for GNU $ac_path_GREP
4957 case `"$ac_path_GREP" --version 2>&1` in
4958 *GNU*)
4959 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4960 *)
4961 ac_count=0
4962 $as_echo_n 0123456789 >"conftest.in"
4963 while :
4964 do
4965 cat "conftest.in" "conftest.in" >"conftest.tmp"
4966 mv "conftest.tmp" "conftest.in"
4967 cp "conftest.in" "conftest.nl"
4968 $as_echo 'GREP' >> "conftest.nl"
4969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971 as_fn_arith $ac_count + 1 && ac_count=$as_val
4972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4973 # Best one so far, save it but keep looking for a better one
4974 ac_cv_path_GREP="$ac_path_GREP"
4975 ac_path_GREP_max=$ac_count
4976 fi
4977 # 10*(2^10) chars as input seems more than enough
4978 test $ac_count -gt 10 && break
4979 done
4980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981 esac
4982
4983 $ac_path_GREP_found && break 3
4984 done
4985 done
4986 done
4987 IFS=$as_save_IFS
4988 if test -z "$ac_cv_path_GREP"; then
4989 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4990 fi
4991 else
4992 ac_cv_path_GREP=$GREP
4993 fi
4994
4995 fi
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4997 $as_echo "$ac_cv_path_GREP" >&6; }
4998 GREP="$ac_cv_path_GREP"
4999
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5002 $as_echo_n "checking for egrep... " >&6; }
5003 if ${ac_cv_path_EGREP+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5007 then ac_cv_path_EGREP="$GREP -E"
5008 else
5009 if test -z "$EGREP"; then
5010 ac_path_EGREP_found=false
5011 # Loop through the user's path and test for each of PROGNAME-LIST
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_prog in egrep; do
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5020 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5021 # Check for GNU ac_path_EGREP and select it if it is found.
5022 # Check for GNU $ac_path_EGREP
5023 case `"$ac_path_EGREP" --version 2>&1` in
5024 *GNU*)
5025 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5026 *)
5027 ac_count=0
5028 $as_echo_n 0123456789 >"conftest.in"
5029 while :
5030 do
5031 cat "conftest.in" "conftest.in" >"conftest.tmp"
5032 mv "conftest.tmp" "conftest.in"
5033 cp "conftest.in" "conftest.nl"
5034 $as_echo 'EGREP' >> "conftest.nl"
5035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5037 as_fn_arith $ac_count + 1 && ac_count=$as_val
5038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5039 # Best one so far, save it but keep looking for a better one
5040 ac_cv_path_EGREP="$ac_path_EGREP"
5041 ac_path_EGREP_max=$ac_count
5042 fi
5043 # 10*(2^10) chars as input seems more than enough
5044 test $ac_count -gt 10 && break
5045 done
5046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5047 esac
5048
5049 $ac_path_EGREP_found && break 3
5050 done
5051 done
5052 done
5053 IFS=$as_save_IFS
5054 if test -z "$ac_cv_path_EGREP"; then
5055 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5056 fi
5057 else
5058 ac_cv_path_EGREP=$EGREP
5059 fi
5060
5061 fi
5062 fi
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5064 $as_echo "$ac_cv_path_EGREP" >&6; }
5065 EGREP="$ac_cv_path_EGREP"
5066
5067
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5069 $as_echo_n "checking for fgrep... " >&6; }
5070 if ${ac_cv_path_FGREP+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5074 then ac_cv_path_FGREP="$GREP -F"
5075 else
5076 if test -z "$FGREP"; then
5077 ac_path_FGREP_found=false
5078 # Loop through the user's path and test for each of PROGNAME-LIST
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5081 do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_prog in fgrep; do
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5087 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5088 # Check for GNU ac_path_FGREP and select it if it is found.
5089 # Check for GNU $ac_path_FGREP
5090 case `"$ac_path_FGREP" --version 2>&1` in
5091 *GNU*)
5092 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5093 *)
5094 ac_count=0
5095 $as_echo_n 0123456789 >"conftest.in"
5096 while :
5097 do
5098 cat "conftest.in" "conftest.in" >"conftest.tmp"
5099 mv "conftest.tmp" "conftest.in"
5100 cp "conftest.in" "conftest.nl"
5101 $as_echo 'FGREP' >> "conftest.nl"
5102 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5104 as_fn_arith $ac_count + 1 && ac_count=$as_val
5105 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5106 # Best one so far, save it but keep looking for a better one
5107 ac_cv_path_FGREP="$ac_path_FGREP"
5108 ac_path_FGREP_max=$ac_count
5109 fi
5110 # 10*(2^10) chars as input seems more than enough
5111 test $ac_count -gt 10 && break
5112 done
5113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5114 esac
5115
5116 $ac_path_FGREP_found && break 3
5117 done
5118 done
5119 done
5120 IFS=$as_save_IFS
5121 if test -z "$ac_cv_path_FGREP"; then
5122 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5123 fi
5124 else
5125 ac_cv_path_FGREP=$FGREP
5126 fi
5127
5128 fi
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5131 $as_echo "$ac_cv_path_FGREP" >&6; }
5132 FGREP="$ac_cv_path_FGREP"
5133
5134
5135 test -z "$GREP" && GREP=grep
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155 # Check whether --with-gnu-ld was given.
5156 if test "${with_gnu_ld+set}" = set; then :
5157 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5158 else
5159 with_gnu_ld=no
5160 fi
5161
5162 ac_prog=ld
5163 if test "$GCC" = yes; then
5164 # Check if gcc -print-prog-name=ld gives a path.
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5166 $as_echo_n "checking for ld used by $CC... " >&6; }
5167 case $host in
5168 *-*-mingw*)
5169 # gcc leaves a trailing carriage return which upsets mingw
5170 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5171 *)
5172 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5173 esac
5174 case $ac_prog in
5175 # Accept absolute paths.
5176 [\\/]* | ?:[\\/]*)
5177 re_direlt='/[^/][^/]*/\.\./'
5178 # Canonicalize the pathname of ld
5179 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5180 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5181 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5182 done
5183 test -z "$LD" && LD="$ac_prog"
5184 ;;
5185 "")
5186 # If it fails, then pretend we aren't using GCC.
5187 ac_prog=ld
5188 ;;
5189 *)
5190 # If it is relative, then search for the first ld in PATH.
5191 with_gnu_ld=unknown
5192 ;;
5193 esac
5194 elif test "$with_gnu_ld" = yes; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5196 $as_echo_n "checking for GNU ld... " >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5199 $as_echo_n "checking for non-GNU ld... " >&6; }
5200 fi
5201 if ${lt_cv_path_LD+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 if test -z "$LD"; then
5205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5206 for ac_dir in $PATH; do
5207 IFS="$lt_save_ifs"
5208 test -z "$ac_dir" && ac_dir=.
5209 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5210 lt_cv_path_LD="$ac_dir/$ac_prog"
5211 # Check to see if the program is GNU ld. I'd rather use --version,
5212 # but apparently some variants of GNU ld only accept -v.
5213 # Break only if it was the GNU/non-GNU ld that we prefer.
5214 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5215 *GNU* | *'with BFD'*)
5216 test "$with_gnu_ld" != no && break
5217 ;;
5218 *)
5219 test "$with_gnu_ld" != yes && break
5220 ;;
5221 esac
5222 fi
5223 done
5224 IFS="$lt_save_ifs"
5225 else
5226 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5227 fi
5228 fi
5229
5230 LD="$lt_cv_path_LD"
5231 if test -n "$LD"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5233 $as_echo "$LD" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5240 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5241 if ${lt_cv_prog_gnu_ld+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5245 case `$LD -v 2>&1 </dev/null` in
5246 *GNU* | *'with BFD'*)
5247 lt_cv_prog_gnu_ld=yes
5248 ;;
5249 *)
5250 lt_cv_prog_gnu_ld=no
5251 ;;
5252 esac
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5255 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5256 with_gnu_ld=$lt_cv_prog_gnu_ld
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5267 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5268 if ${lt_cv_path_NM+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$NM"; then
5272 # Let the user override the test.
5273 lt_cv_path_NM="$NM"
5274 else
5275 lt_nm_to_check="${ac_tool_prefix}nm"
5276 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5277 lt_nm_to_check="$lt_nm_to_check nm"
5278 fi
5279 for lt_tmp_nm in $lt_nm_to_check; do
5280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5281 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5282 IFS="$lt_save_ifs"
5283 test -z "$ac_dir" && ac_dir=.
5284 tmp_nm="$ac_dir/$lt_tmp_nm"
5285 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5286 # Check to see if the nm accepts a BSD-compat flag.
5287 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5288 # nm: unknown option "B" ignored
5289 # Tru64's nm complains that /dev/null is an invalid object file
5290 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5291 */dev/null* | *'Invalid file or object type'*)
5292 lt_cv_path_NM="$tmp_nm -B"
5293 break
5294 ;;
5295 *)
5296 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5297 */dev/null*)
5298 lt_cv_path_NM="$tmp_nm -p"
5299 break
5300 ;;
5301 *)
5302 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5303 continue # so that we can try to find one that supports BSD flags
5304 ;;
5305 esac
5306 ;;
5307 esac
5308 fi
5309 done
5310 IFS="$lt_save_ifs"
5311 done
5312 : ${lt_cv_path_NM=no}
5313 fi
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5316 $as_echo "$lt_cv_path_NM" >&6; }
5317 if test "$lt_cv_path_NM" != "no"; then
5318 NM="$lt_cv_path_NM"
5319 else
5320 # Didn't find any BSD compatible name lister, look for dumpbin.
5321 if test -n "$DUMPBIN"; then :
5322 # Let the user override the test.
5323 else
5324 if test -n "$ac_tool_prefix"; then
5325 for ac_prog in dumpbin "link -dump"
5326 do
5327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_DUMPBIN+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$DUMPBIN"; then
5335 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348 done
5349 done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 DUMPBIN=$ac_cv_prog_DUMPBIN
5355 if test -n "$DUMPBIN"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5357 $as_echo "$DUMPBIN" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362
5363
5364 test -n "$DUMPBIN" && break
5365 done
5366 fi
5367 if test -z "$DUMPBIN"; then
5368 ac_ct_DUMPBIN=$DUMPBIN
5369 for ac_prog in dumpbin "link -dump"
5370 do
5371 # Extract the first word of "$ac_prog", so it can be a program name with args.
5372 set dummy $ac_prog; ac_word=$2
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 if test -n "$ac_ct_DUMPBIN"; then
5379 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5380 else
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5383 do
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5388 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 break 2
5391 fi
5392 done
5393 done
5394 IFS=$as_save_IFS
5395
5396 fi
5397 fi
5398 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5399 if test -n "$ac_ct_DUMPBIN"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5401 $as_echo "$ac_ct_DUMPBIN" >&6; }
5402 else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5405 fi
5406
5407
5408 test -n "$ac_ct_DUMPBIN" && break
5409 done
5410
5411 if test "x$ac_ct_DUMPBIN" = x; then
5412 DUMPBIN=":"
5413 else
5414 case $cross_compiling:$ac_tool_warned in
5415 yes:)
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5418 ac_tool_warned=yes ;;
5419 esac
5420 DUMPBIN=$ac_ct_DUMPBIN
5421 fi
5422 fi
5423
5424 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5425 *COFF*)
5426 DUMPBIN="$DUMPBIN -symbols"
5427 ;;
5428 *)
5429 DUMPBIN=:
5430 ;;
5431 esac
5432 fi
5433
5434 if test "$DUMPBIN" != ":"; then
5435 NM="$DUMPBIN"
5436 fi
5437 fi
5438 test -z "$NM" && NM=nm
5439
5440
5441
5442
5443
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5446 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5447 if ${lt_cv_nm_interface+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 lt_cv_nm_interface="BSD nm"
5451 echo "int some_variable = 0;" > conftest.$ac_ext
5452 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5453 (eval "$ac_compile" 2>conftest.err)
5454 cat conftest.err >&5
5455 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5456 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5457 cat conftest.err >&5
5458 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5459 cat conftest.out >&5
5460 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5461 lt_cv_nm_interface="MS dumpbin"
5462 fi
5463 rm -f conftest*
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5466 $as_echo "$lt_cv_nm_interface" >&6; }
5467
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5469 $as_echo_n "checking whether ln -s works... " >&6; }
5470 LN_S=$as_ln_s
5471 if test "$LN_S" = "ln -s"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5473 $as_echo "yes" >&6; }
5474 else
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5476 $as_echo "no, using $LN_S" >&6; }
5477 fi
5478
5479 # find the maximum length of command line arguments
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5481 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5482 if ${lt_cv_sys_max_cmd_len+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 i=0
5486 teststring="ABCD"
5487
5488 case $build_os in
5489 msdosdjgpp*)
5490 # On DJGPP, this test can blow up pretty badly due to problems in libc
5491 # (any single argument exceeding 2000 bytes causes a buffer overrun
5492 # during glob expansion). Even if it were fixed, the result of this
5493 # check would be larger than it should be.
5494 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5495 ;;
5496
5497 gnu*)
5498 # Under GNU Hurd, this test is not required because there is
5499 # no limit to the length of command line arguments.
5500 # Libtool will interpret -1 as no limit whatsoever
5501 lt_cv_sys_max_cmd_len=-1;
5502 ;;
5503
5504 cygwin* | mingw* | cegcc*)
5505 # On Win9x/ME, this test blows up -- it succeeds, but takes
5506 # about 5 minutes as the teststring grows exponentially.
5507 # Worse, since 9x/ME are not pre-emptively multitasking,
5508 # you end up with a "frozen" computer, even though with patience
5509 # the test eventually succeeds (with a max line length of 256k).
5510 # Instead, let's just punt: use the minimum linelength reported by
5511 # all of the supported platforms: 8192 (on NT/2K/XP).
5512 lt_cv_sys_max_cmd_len=8192;
5513 ;;
5514
5515 mint*)
5516 # On MiNT this can take a long time and run out of memory.
5517 lt_cv_sys_max_cmd_len=8192;
5518 ;;
5519
5520 amigaos*)
5521 # On AmigaOS with pdksh, this test takes hours, literally.
5522 # So we just punt and use a minimum line length of 8192.
5523 lt_cv_sys_max_cmd_len=8192;
5524 ;;
5525
5526 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5527 # This has been around since 386BSD, at least. Likely further.
5528 if test -x /sbin/sysctl; then
5529 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5530 elif test -x /usr/sbin/sysctl; then
5531 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5532 else
5533 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5534 fi
5535 # And add a safety zone
5536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5538 ;;
5539
5540 interix*)
5541 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5542 lt_cv_sys_max_cmd_len=196608
5543 ;;
5544
5545 osf*)
5546 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5547 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5548 # nice to cause kernel panics so lets avoid the loop below.
5549 # First set a reasonable default.
5550 lt_cv_sys_max_cmd_len=16384
5551 #
5552 if test -x /sbin/sysconfig; then
5553 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5554 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5555 esac
5556 fi
5557 ;;
5558 sco3.2v5*)
5559 lt_cv_sys_max_cmd_len=102400
5560 ;;
5561 sysv5* | sco5v6* | sysv4.2uw2*)
5562 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5563 if test -n "$kargmax"; then
5564 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5565 else
5566 lt_cv_sys_max_cmd_len=32768
5567 fi
5568 ;;
5569 *)
5570 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5571 if test -n "$lt_cv_sys_max_cmd_len"; then
5572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5574 else
5575 # Make teststring a little bigger before we do anything with it.
5576 # a 1K string should be a reasonable start.
5577 for i in 1 2 3 4 5 6 7 8 ; do
5578 teststring=$teststring$teststring
5579 done
5580 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5581 # If test is not a shell built-in, we'll probably end up computing a
5582 # maximum length that is only half of the actual maximum length, but
5583 # we can't tell.
5584 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5585 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5586 test $i != 17 # 1/2 MB should be enough
5587 do
5588 i=`expr $i + 1`
5589 teststring=$teststring$teststring
5590 done
5591 # Only check the string length outside the loop.
5592 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5593 teststring=
5594 # Add a significant safety factor because C++ compilers can tack on
5595 # massive amounts of additional arguments before passing them to the
5596 # linker. It appears as though 1/2 is a usable value.
5597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5598 fi
5599 ;;
5600 esac
5601
5602 fi
5603
5604 if test -n $lt_cv_sys_max_cmd_len ; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5606 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5607 else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5609 $as_echo "none" >&6; }
5610 fi
5611 max_cmd_len=$lt_cv_sys_max_cmd_len
5612
5613
5614
5615
5616
5617
5618 : ${CP="cp -f"}
5619 : ${MV="mv -f"}
5620 : ${RM="rm -f"}
5621
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5623 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5624 # Try some XSI features
5625 xsi_shell=no
5626 ( _lt_dummy="a/b/c"
5627 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5628 = c,a/b,b/c, \
5629 && eval 'test $(( 1 + 1 )) -eq 2 \
5630 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5631 && xsi_shell=yes
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5633 $as_echo "$xsi_shell" >&6; }
5634
5635
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5637 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5638 lt_shell_append=no
5639 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5640 >/dev/null 2>&1 \
5641 && lt_shell_append=yes
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5643 $as_echo "$lt_shell_append" >&6; }
5644
5645
5646 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5647 lt_unset=unset
5648 else
5649 lt_unset=false
5650 fi
5651
5652
5653
5654
5655
5656 # test EBCDIC or ASCII
5657 case `echo X|tr X '\101'` in
5658 A) # ASCII based system
5659 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5660 lt_SP2NL='tr \040 \012'
5661 lt_NL2SP='tr \015\012 \040\040'
5662 ;;
5663 *) # EBCDIC based system
5664 lt_SP2NL='tr \100 \n'
5665 lt_NL2SP='tr \r\n \100\100'
5666 ;;
5667 esac
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5678 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5679 if ${lt_cv_to_host_file_cmd+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 case $host in
5683 *-*-mingw* )
5684 case $build in
5685 *-*-mingw* ) # actually msys
5686 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5687 ;;
5688 *-*-cygwin* )
5689 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5690 ;;
5691 * ) # otherwise, assume *nix
5692 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5693 ;;
5694 esac
5695 ;;
5696 *-*-cygwin* )
5697 case $build in
5698 *-*-mingw* ) # actually msys
5699 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5700 ;;
5701 *-*-cygwin* )
5702 lt_cv_to_host_file_cmd=func_convert_file_noop
5703 ;;
5704 * ) # otherwise, assume *nix
5705 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5706 ;;
5707 esac
5708 ;;
5709 * ) # unhandled hosts (and "normal" native builds)
5710 lt_cv_to_host_file_cmd=func_convert_file_noop
5711 ;;
5712 esac
5713
5714 fi
5715
5716 to_host_file_cmd=$lt_cv_to_host_file_cmd
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5718 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5719
5720
5721
5722
5723
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5725 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5726 if ${lt_cv_to_tool_file_cmd+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 #assume ordinary cross tools, or native build.
5730 lt_cv_to_tool_file_cmd=func_convert_file_noop
5731 case $host in
5732 *-*-mingw* )
5733 case $build in
5734 *-*-mingw* ) # actually msys
5735 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5736 ;;
5737 esac
5738 ;;
5739 esac
5740
5741 fi
5742
5743 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5745 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5746
5747
5748
5749
5750
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5752 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5753 if ${lt_cv_ld_reload_flag+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 lt_cv_ld_reload_flag='-r'
5757 fi
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5759 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5760 reload_flag=$lt_cv_ld_reload_flag
5761 case $reload_flag in
5762 "" | " "*) ;;
5763 *) reload_flag=" $reload_flag" ;;
5764 esac
5765 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5766 case $host_os in
5767 cygwin* | mingw* | pw32* | cegcc*)
5768 if test "$GCC" != yes; then
5769 reload_cmds=false
5770 fi
5771 ;;
5772 darwin*)
5773 if test "$GCC" = yes; then
5774 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5775 else
5776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5777 fi
5778 ;;
5779 esac
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 if test -n "$ac_tool_prefix"; then
5790 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5791 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_prog_OBJDUMP+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if test -n "$OBJDUMP"; then
5798 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811 done
5812 done
5813 IFS=$as_save_IFS
5814
5815 fi
5816 fi
5817 OBJDUMP=$ac_cv_prog_OBJDUMP
5818 if test -n "$OBJDUMP"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5820 $as_echo "$OBJDUMP" >&6; }
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5824 fi
5825
5826
5827 fi
5828 if test -z "$ac_cv_prog_OBJDUMP"; then
5829 ac_ct_OBJDUMP=$OBJDUMP
5830 # Extract the first word of "objdump", so it can be a program name with args.
5831 set dummy objdump; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 if test -n "$ac_ct_OBJDUMP"; then
5838 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851 done
5852 done
5853 IFS=$as_save_IFS
5854
5855 fi
5856 fi
5857 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5858 if test -n "$ac_ct_OBJDUMP"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5860 $as_echo "$ac_ct_OBJDUMP" >&6; }
5861 else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 fi
5865
5866 if test "x$ac_ct_OBJDUMP" = x; then
5867 OBJDUMP="false"
5868 else
5869 case $cross_compiling:$ac_tool_warned in
5870 yes:)
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5873 ac_tool_warned=yes ;;
5874 esac
5875 OBJDUMP=$ac_ct_OBJDUMP
5876 fi
5877 else
5878 OBJDUMP="$ac_cv_prog_OBJDUMP"
5879 fi
5880
5881 test -z "$OBJDUMP" && OBJDUMP=objdump
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5892 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5893 if ${lt_cv_deplibs_check_method+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 lt_cv_file_magic_cmd='$MAGIC_CMD'
5897 lt_cv_file_magic_test_file=
5898 lt_cv_deplibs_check_method='unknown'
5899 # Need to set the preceding variable on all platforms that support
5900 # interlibrary dependencies.
5901 # 'none' -- dependencies not supported.
5902 # `unknown' -- same as none, but documents that we really don't know.
5903 # 'pass_all' -- all dependencies passed with no checks.
5904 # 'test_compile' -- check by making test program.
5905 # 'file_magic [[regex]]' -- check by looking for files in library path
5906 # which responds to the $file_magic_cmd with a given extended regex.
5907 # If you have `file' or equivalent on your system and you're not sure
5908 # whether `pass_all' will *always* work, you probably want this one.
5909
5910 case $host_os in
5911 aix[4-9]*)
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914
5915 beos*)
5916 lt_cv_deplibs_check_method=pass_all
5917 ;;
5918
5919 bsdi[45]*)
5920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5921 lt_cv_file_magic_cmd='/usr/bin/file -L'
5922 lt_cv_file_magic_test_file=/shlib/libc.so
5923 ;;
5924
5925 cygwin*)
5926 # func_win32_libid is a shell function defined in ltmain.sh
5927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5928 lt_cv_file_magic_cmd='func_win32_libid'
5929 ;;
5930
5931 mingw* | pw32*)
5932 # Base MSYS/MinGW do not provide the 'file' command needed by
5933 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5934 # unless we find 'file', for example because we are cross-compiling.
5935 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5936 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5937 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5938 lt_cv_file_magic_cmd='func_win32_libid'
5939 else
5940 # Keep this pattern in sync with the one in func_win32_libid.
5941 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5942 lt_cv_file_magic_cmd='$OBJDUMP -f'
5943 fi
5944 ;;
5945
5946 cegcc*)
5947 # use the weaker test based on 'objdump'. See mingw*.
5948 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5949 lt_cv_file_magic_cmd='$OBJDUMP -f'
5950 ;;
5951
5952 darwin* | rhapsody*)
5953 lt_cv_deplibs_check_method=pass_all
5954 ;;
5955
5956 freebsd* | dragonfly*)
5957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5958 case $host_cpu in
5959 i*86 )
5960 # Not sure whether the presence of OpenBSD here was a mistake.
5961 # Let's accept both of them until this is cleared up.
5962 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5963 lt_cv_file_magic_cmd=/usr/bin/file
5964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5965 ;;
5966 esac
5967 else
5968 lt_cv_deplibs_check_method=pass_all
5969 fi
5970 ;;
5971
5972 gnu*)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
5975
5976 haiku*)
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
5979
5980 hpux10.20* | hpux11*)
5981 lt_cv_file_magic_cmd=/usr/bin/file
5982 case $host_cpu in
5983 ia64*)
5984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5985 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5986 ;;
5987 hppa*64*)
5988 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]'
5989 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5990 ;;
5991 *)
5992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5994 ;;
5995 esac
5996 ;;
5997
5998 interix[3-9]*)
5999 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6001 ;;
6002
6003 irix5* | irix6* | nonstopux*)
6004 case $LD in
6005 *-32|*"-32 ") libmagic=32-bit;;
6006 *-n32|*"-n32 ") libmagic=N32;;
6007 *-64|*"-64 ") libmagic=64-bit;;
6008 *) libmagic=never-match;;
6009 esac
6010 lt_cv_deplibs_check_method=pass_all
6011 ;;
6012
6013 # This must be Linux ELF.
6014 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6015 lt_cv_deplibs_check_method=pass_all
6016 ;;
6017
6018 netbsd* | netbsdelf*-gnu)
6019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6021 else
6022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6023 fi
6024 ;;
6025
6026 newos6*)
6027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6028 lt_cv_file_magic_cmd=/usr/bin/file
6029 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6030 ;;
6031
6032 *nto* | *qnx*)
6033 lt_cv_deplibs_check_method=pass_all
6034 ;;
6035
6036 openbsd*)
6037 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6039 else
6040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6041 fi
6042 ;;
6043
6044 osf3* | osf4* | osf5*)
6045 lt_cv_deplibs_check_method=pass_all
6046 ;;
6047
6048 rdos*)
6049 lt_cv_deplibs_check_method=pass_all
6050 ;;
6051
6052 solaris*)
6053 lt_cv_deplibs_check_method=pass_all
6054 ;;
6055
6056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6057 lt_cv_deplibs_check_method=pass_all
6058 ;;
6059
6060 sysv4 | sysv4.3*)
6061 case $host_vendor in
6062 motorola)
6063 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]'
6064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6065 ;;
6066 ncr)
6067 lt_cv_deplibs_check_method=pass_all
6068 ;;
6069 sequent)
6070 lt_cv_file_magic_cmd='/bin/file'
6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6072 ;;
6073 sni)
6074 lt_cv_file_magic_cmd='/bin/file'
6075 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6076 lt_cv_file_magic_test_file=/lib/libc.so
6077 ;;
6078 siemens)
6079 lt_cv_deplibs_check_method=pass_all
6080 ;;
6081 pc)
6082 lt_cv_deplibs_check_method=pass_all
6083 ;;
6084 esac
6085 ;;
6086
6087 tpf*)
6088 lt_cv_deplibs_check_method=pass_all
6089 ;;
6090 esac
6091
6092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6094 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6095
6096 file_magic_glob=
6097 want_nocaseglob=no
6098 if test "$build" = "$host"; then
6099 case $host_os in
6100 mingw* | pw32*)
6101 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6102 want_nocaseglob=yes
6103 else
6104 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6105 fi
6106 ;;
6107 esac
6108 fi
6109
6110 file_magic_cmd=$lt_cv_file_magic_cmd
6111 deplibs_check_method=$lt_cv_deplibs_check_method
6112 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_DLLTOOL+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 if test -n "$DLLTOOL"; then
6144 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6156 fi
6157 done
6158 done
6159 IFS=$as_save_IFS
6160
6161 fi
6162 fi
6163 DLLTOOL=$ac_cv_prog_DLLTOOL
6164 if test -n "$DLLTOOL"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6166 $as_echo "$DLLTOOL" >&6; }
6167 else
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171
6172
6173 fi
6174 if test -z "$ac_cv_prog_DLLTOOL"; then
6175 ac_ct_DLLTOOL=$DLLTOOL
6176 # Extract the first word of "dlltool", so it can be a program name with args.
6177 set dummy dlltool; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 if test -n "$ac_ct_DLLTOOL"; then
6184 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197 done
6198 done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6204 if test -n "$ac_ct_DLLTOOL"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6206 $as_echo "$ac_ct_DLLTOOL" >&6; }
6207 else
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6210 fi
6211
6212 if test "x$ac_ct_DLLTOOL" = x; then
6213 DLLTOOL="false"
6214 else
6215 case $cross_compiling:$ac_tool_warned in
6216 yes:)
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219 ac_tool_warned=yes ;;
6220 esac
6221 DLLTOOL=$ac_ct_DLLTOOL
6222 fi
6223 else
6224 DLLTOOL="$ac_cv_prog_DLLTOOL"
6225 fi
6226
6227 test -z "$DLLTOOL" && DLLTOOL=dlltool
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6239 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6240 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 lt_cv_sharedlib_from_linklib_cmd='unknown'
6244
6245 case $host_os in
6246 cygwin* | mingw* | pw32* | cegcc*)
6247 # two different shell functions defined in ltmain.sh
6248 # decide which to use based on capabilities of $DLLTOOL
6249 case `$DLLTOOL --help 2>&1` in
6250 *--identify-strict*)
6251 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6252 ;;
6253 *)
6254 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6255 ;;
6256 esac
6257 ;;
6258 *)
6259 # fallback: assume linklib IS sharedlib
6260 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6261 ;;
6262 esac
6263
6264 fi
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6266 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6267 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6268 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6269
6270
6271
6272
6273
6274
6275
6276
6277 if test -n "$ac_tool_prefix"; then
6278 for ac_prog in ar
6279 do
6280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_prog_AR+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 if test -n "$AR"; then
6288 ac_cv_prog_AR="$AR" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 AR=$ac_cv_prog_AR
6308 if test -n "$AR"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6310 $as_echo "$AR" >&6; }
6311 else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316
6317 test -n "$AR" && break
6318 done
6319 fi
6320 if test -z "$AR"; then
6321 ac_ct_AR=$AR
6322 for ac_prog in ar
6323 do
6324 # Extract the first word of "$ac_prog", so it can be a program name with args.
6325 set dummy $ac_prog; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6329 $as_echo_n "(cached) " >&6
6330 else
6331 if test -n "$ac_ct_AR"; then
6332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_ac_ct_AR="$ac_prog"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6344 fi
6345 done
6346 done
6347 IFS=$as_save_IFS
6348
6349 fi
6350 fi
6351 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6352 if test -n "$ac_ct_AR"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6354 $as_echo "$ac_ct_AR" >&6; }
6355 else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359
6360
6361 test -n "$ac_ct_AR" && break
6362 done
6363
6364 if test "x$ac_ct_AR" = x; then
6365 AR="false"
6366 else
6367 case $cross_compiling:$ac_tool_warned in
6368 yes:)
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned=yes ;;
6372 esac
6373 AR=$ac_ct_AR
6374 fi
6375 fi
6376
6377 : ${AR=ar}
6378 : ${AR_FLAGS=cru}
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6391 $as_echo_n "checking for archiver @FILE support... " >&6; }
6392 if ${lt_cv_ar_at_file+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 lt_cv_ar_at_file=no
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398
6399 int
6400 main ()
6401 {
6402
6403 ;
6404 return 0;
6405 }
6406 _ACEOF
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408 echo conftest.$ac_objext > conftest.lst
6409 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6411 (eval $lt_ar_try) 2>&5
6412 ac_status=$?
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; }
6415 if test "$ac_status" -eq 0; then
6416 # Ensure the archiver fails upon bogus file names.
6417 rm -f conftest.$ac_objext libconftest.a
6418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6419 (eval $lt_ar_try) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }
6423 if test "$ac_status" -ne 0; then
6424 lt_cv_ar_at_file=@
6425 fi
6426 fi
6427 rm -f conftest.* libconftest.a
6428
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431
6432 fi
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6434 $as_echo "$lt_cv_ar_at_file" >&6; }
6435
6436 if test "x$lt_cv_ar_at_file" = xno; then
6437 archiver_list_spec=
6438 else
6439 archiver_list_spec=$lt_cv_ar_at_file
6440 fi
6441
6442
6443
6444
6445
6446
6447
6448 if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}strip; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_prog_STRIP+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 if test -n "$STRIP"; then
6457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 break 2
6469 fi
6470 done
6471 done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 STRIP=$ac_cv_prog_STRIP
6477 if test -n "$STRIP"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6479 $as_echo "$STRIP" >&6; }
6480 else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485
6486 fi
6487 if test -z "$ac_cv_prog_STRIP"; then
6488 ac_ct_STRIP=$STRIP
6489 # Extract the first word of "strip", so it can be a program name with args.
6490 set dummy strip; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 if test -n "$ac_ct_STRIP"; then
6497 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_prog_ac_ct_STRIP="strip"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6509 fi
6510 done
6511 done
6512 IFS=$as_save_IFS
6513
6514 fi
6515 fi
6516 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6517 if test -n "$ac_ct_STRIP"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6519 $as_echo "$ac_ct_STRIP" >&6; }
6520 else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6523 fi
6524
6525 if test "x$ac_ct_STRIP" = x; then
6526 STRIP=":"
6527 else
6528 case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534 STRIP=$ac_ct_STRIP
6535 fi
6536 else
6537 STRIP="$ac_cv_prog_STRIP"
6538 fi
6539
6540 test -z "$STRIP" && STRIP=:
6541
6542
6543
6544
6545
6546
6547 if test -n "$ac_tool_prefix"; then
6548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if ${ac_cv_prog_RANLIB+:} false; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 if test -n "$RANLIB"; then
6556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569 done
6570 done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 RANLIB=$ac_cv_prog_RANLIB
6576 if test -n "$RANLIB"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6578 $as_echo "$RANLIB" >&6; }
6579 else
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6582 fi
6583
6584
6585 fi
6586 if test -z "$ac_cv_prog_RANLIB"; then
6587 ac_ct_RANLIB=$RANLIB
6588 # Extract the first word of "ranlib", so it can be a program name with args.
6589 set dummy ranlib; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$ac_ct_RANLIB"; then
6596 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_ac_ct_RANLIB="ranlib"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6616 if test -n "$ac_ct_RANLIB"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6618 $as_echo "$ac_ct_RANLIB" >&6; }
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6622 fi
6623
6624 if test "x$ac_ct_RANLIB" = x; then
6625 RANLIB=":"
6626 else
6627 case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633 RANLIB=$ac_ct_RANLIB
6634 fi
6635 else
6636 RANLIB="$ac_cv_prog_RANLIB"
6637 fi
6638
6639 test -z "$RANLIB" && RANLIB=:
6640
6641
6642
6643
6644
6645
6646 # Determine commands to create old-style static archives.
6647 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6648 old_postinstall_cmds='chmod 644 $oldlib'
6649 old_postuninstall_cmds=
6650
6651 if test -n "$RANLIB"; then
6652 case $host_os in
6653 openbsd*)
6654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6655 ;;
6656 *)
6657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6658 ;;
6659 esac
6660 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6661 fi
6662
6663 case $host_os in
6664 darwin*)
6665 lock_old_archive_extraction=yes ;;
6666 *)
6667 lock_old_archive_extraction=no ;;
6668 esac
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 # If no C compiler was specified, use CC.
6709 LTCC=${LTCC-"$CC"}
6710
6711 # If no C compiler flags were specified, use CFLAGS.
6712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6713
6714 # Allow CC to be a program name with arguments.
6715 compiler=$CC
6716
6717
6718 # Check for command to grab the raw symbol name followed by C symbol from nm.
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6720 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6721 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724
6725 # These are sane defaults that work on at least a few old systems.
6726 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6727
6728 # Character class describing NM global symbol codes.
6729 symcode='[BCDEGRST]'
6730
6731 # Regexp to match symbols that can be accessed directly from C.
6732 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6733
6734 # Define system-specific variables.
6735 case $host_os in
6736 aix*)
6737 symcode='[BCDT]'
6738 ;;
6739 cygwin* | mingw* | pw32* | cegcc*)
6740 symcode='[ABCDGISTW]'
6741 ;;
6742 hpux*)
6743 if test "$host_cpu" = ia64; then
6744 symcode='[ABCDEGRST]'
6745 fi
6746 ;;
6747 irix* | nonstopux*)
6748 symcode='[BCDEGRST]'
6749 ;;
6750 osf*)
6751 symcode='[BCDEGQRST]'
6752 ;;
6753 solaris*)
6754 symcode='[BDRT]'
6755 ;;
6756 sco3.2v5*)
6757 symcode='[DT]'
6758 ;;
6759 sysv4.2uw2*)
6760 symcode='[DT]'
6761 ;;
6762 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6763 symcode='[ABDT]'
6764 ;;
6765 sysv4)
6766 symcode='[DFNSTU]'
6767 ;;
6768 esac
6769
6770 # If we're using GNU nm, then use its standard symbol codes.
6771 case `$NM -V 2>&1` in
6772 *GNU* | *'with BFD'*)
6773 symcode='[ABCDGIRSTW]' ;;
6774 esac
6775
6776 # Transform an extracted symbol line into a proper C declaration.
6777 # Some systems (esp. on ia64) link data and code symbols differently,
6778 # so use this general approach.
6779 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6780
6781 # Transform an extracted symbol line into symbol name and symbol address
6782 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6783 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'"
6784
6785 # Handle CRLF in mingw tool chain
6786 opt_cr=
6787 case $build_os in
6788 mingw*)
6789 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6790 ;;
6791 esac
6792
6793 # Try without a prefix underscore, then with it.
6794 for ac_symprfx in "" "_"; do
6795
6796 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6797 symxfrm="\\1 $ac_symprfx\\2 \\2"
6798
6799 # Write the raw and C identifiers.
6800 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6801 # Fake it for dumpbin and say T for any non-static function
6802 # and D for any global variable.
6803 # Also find C++ and __fastcall symbols from MSVC++,
6804 # which start with @ or ?.
6805 lt_cv_sys_global_symbol_pipe="$AWK '"\
6806 " {last_section=section; section=\$ 3};"\
6807 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6808 " \$ 0!~/External *\|/{next};"\
6809 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6810 " {if(hide[section]) next};"\
6811 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6812 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6813 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6814 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6815 " ' prfx=^$ac_symprfx"
6816 else
6817 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6818 fi
6819 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6820
6821 # Check to see that the pipe works correctly.
6822 pipe_works=no
6823
6824 rm -f conftest*
6825 cat > conftest.$ac_ext <<_LT_EOF
6826 #ifdef __cplusplus
6827 extern "C" {
6828 #endif
6829 char nm_test_var;
6830 void nm_test_func(void);
6831 void nm_test_func(void){}
6832 #ifdef __cplusplus
6833 }
6834 #endif
6835 int main(){nm_test_var='a';nm_test_func();return(0);}
6836 _LT_EOF
6837
6838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6839 (eval $ac_compile) 2>&5
6840 ac_status=$?
6841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842 test $ac_status = 0; }; then
6843 # Now try to grab the symbols.
6844 nlist=conftest.nm
6845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6846 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6847 ac_status=$?
6848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849 test $ac_status = 0; } && test -s "$nlist"; then
6850 # Try sorting and uniquifying the output.
6851 if sort "$nlist" | uniq > "$nlist"T; then
6852 mv -f "$nlist"T "$nlist"
6853 else
6854 rm -f "$nlist"T
6855 fi
6856
6857 # Make sure that we snagged all the symbols we need.
6858 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6859 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6860 cat <<_LT_EOF > conftest.$ac_ext
6861 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6862 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6863 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6864 relocations are performed -- see ld's documentation on pseudo-relocs. */
6865 # define LT_DLSYM_CONST
6866 #elif defined(__osf__)
6867 /* This system does not cope well with relocations in const data. */
6868 # define LT_DLSYM_CONST
6869 #else
6870 # define LT_DLSYM_CONST const
6871 #endif
6872
6873 #ifdef __cplusplus
6874 extern "C" {
6875 #endif
6876
6877 _LT_EOF
6878 # Now generate the symbol file.
6879 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6880
6881 cat <<_LT_EOF >> conftest.$ac_ext
6882
6883 /* The mapping between symbol names and symbols. */
6884 LT_DLSYM_CONST struct {
6885 const char *name;
6886 void *address;
6887 }
6888 lt__PROGRAM__LTX_preloaded_symbols[] =
6889 {
6890 { "@PROGRAM@", (void *) 0 },
6891 _LT_EOF
6892 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6893 cat <<\_LT_EOF >> conftest.$ac_ext
6894 {0, (void *) 0}
6895 };
6896
6897 /* This works around a problem in FreeBSD linker */
6898 #ifdef FREEBSD_WORKAROUND
6899 static const void *lt_preloaded_setup() {
6900 return lt__PROGRAM__LTX_preloaded_symbols;
6901 }
6902 #endif
6903
6904 #ifdef __cplusplus
6905 }
6906 #endif
6907 _LT_EOF
6908 # Now try linking the two files.
6909 mv conftest.$ac_objext conftstm.$ac_objext
6910 lt_globsym_save_LIBS=$LIBS
6911 lt_globsym_save_CFLAGS=$CFLAGS
6912 LIBS="conftstm.$ac_objext"
6913 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6915 (eval $ac_link) 2>&5
6916 ac_status=$?
6917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6919 pipe_works=yes
6920 fi
6921 LIBS=$lt_globsym_save_LIBS
6922 CFLAGS=$lt_globsym_save_CFLAGS
6923 else
6924 echo "cannot find nm_test_func in $nlist" >&5
6925 fi
6926 else
6927 echo "cannot find nm_test_var in $nlist" >&5
6928 fi
6929 else
6930 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6931 fi
6932 else
6933 echo "$progname: failed program was:" >&5
6934 cat conftest.$ac_ext >&5
6935 fi
6936 rm -rf conftest* conftst*
6937
6938 # Do not use the global_symbol_pipe unless it works.
6939 if test "$pipe_works" = yes; then
6940 break
6941 else
6942 lt_cv_sys_global_symbol_pipe=
6943 fi
6944 done
6945
6946 fi
6947
6948 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6949 lt_cv_sys_global_symbol_to_cdecl=
6950 fi
6951 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6953 $as_echo "failed" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6956 $as_echo "ok" >&6; }
6957 fi
6958
6959 # Response file support.
6960 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6961 nm_file_list_spec='@'
6962 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6963 nm_file_list_spec='@'
6964 fi
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6993 $as_echo_n "checking for sysroot... " >&6; }
6994
6995 # Check whether --with-sysroot was given.
6996 if test "${with_sysroot+set}" = set; then :
6997 withval=$with_sysroot;
6998 else
6999 with_sysroot=no
7000 fi
7001
7002
7003 lt_sysroot=
7004 case ${with_sysroot} in #(
7005 yes)
7006 if test "$GCC" = yes; then
7007 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7008 fi
7009 ;; #(
7010 /*)
7011 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7012 ;; #(
7013 no|'')
7014 ;; #(
7015 *)
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7017 $as_echo "${with_sysroot}" >&6; }
7018 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7019 ;;
7020 esac
7021
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7023 $as_echo "${lt_sysroot:-no}" >&6; }
7024
7025
7026
7027
7028
7029 # Check whether --enable-libtool-lock was given.
7030 if test "${enable_libtool_lock+set}" = set; then :
7031 enableval=$enable_libtool_lock;
7032 fi
7033
7034 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7035
7036 # Some flags need to be propagated to the compiler or linker for good
7037 # libtool support.
7038 case $host in
7039 ia64-*-hpux*)
7040 # Find out which ABI we are using.
7041 echo 'int i;' > conftest.$ac_ext
7042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7043 (eval $ac_compile) 2>&5
7044 ac_status=$?
7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; }; then
7047 case `/usr/bin/file conftest.$ac_objext` in
7048 *ELF-32*)
7049 HPUX_IA64_MODE="32"
7050 ;;
7051 *ELF-64*)
7052 HPUX_IA64_MODE="64"
7053 ;;
7054 esac
7055 fi
7056 rm -rf conftest*
7057 ;;
7058 *-*-irix6*)
7059 # Find out which ABI we are using.
7060 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062 (eval $ac_compile) 2>&5
7063 ac_status=$?
7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065 test $ac_status = 0; }; then
7066 if test "$lt_cv_prog_gnu_ld" = yes; then
7067 case `/usr/bin/file conftest.$ac_objext` in
7068 *32-bit*)
7069 LD="${LD-ld} -melf32bsmip"
7070 ;;
7071 *N32*)
7072 LD="${LD-ld} -melf32bmipn32"
7073 ;;
7074 *64-bit*)
7075 LD="${LD-ld} -melf64bmip"
7076 ;;
7077 esac
7078 else
7079 case `/usr/bin/file conftest.$ac_objext` in
7080 *32-bit*)
7081 LD="${LD-ld} -32"
7082 ;;
7083 *N32*)
7084 LD="${LD-ld} -n32"
7085 ;;
7086 *64-bit*)
7087 LD="${LD-ld} -64"
7088 ;;
7089 esac
7090 fi
7091 fi
7092 rm -rf conftest*
7093 ;;
7094
7095 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7096 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7097 # Find out which ABI we are using.
7098 echo 'int i;' > conftest.$ac_ext
7099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7100 (eval $ac_compile) 2>&5
7101 ac_status=$?
7102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7103 test $ac_status = 0; }; then
7104 case `/usr/bin/file conftest.o` in
7105 *32-bit*)
7106 case $host in
7107 x86_64-*kfreebsd*-gnu)
7108 LD="${LD-ld} -m elf_i386_fbsd"
7109 ;;
7110 x86_64-*linux*)
7111 LD="${LD-ld} -m elf_i386"
7112 ;;
7113 ppc64-*linux*|powerpc64-*linux*)
7114 LD="${LD-ld} -m elf32ppclinux"
7115 ;;
7116 s390x-*linux*)
7117 LD="${LD-ld} -m elf_s390"
7118 ;;
7119 sparc64-*linux*)
7120 LD="${LD-ld} -m elf32_sparc"
7121 ;;
7122 esac
7123 ;;
7124 *64-bit*)
7125 case $host in
7126 x86_64-*kfreebsd*-gnu)
7127 LD="${LD-ld} -m elf_x86_64_fbsd"
7128 ;;
7129 x86_64-*linux*)
7130 LD="${LD-ld} -m elf_x86_64"
7131 ;;
7132 ppc*-*linux*|powerpc*-*linux*)
7133 LD="${LD-ld} -m elf64ppc"
7134 ;;
7135 s390*-*linux*|s390*-*tpf*)
7136 LD="${LD-ld} -m elf64_s390"
7137 ;;
7138 sparc*-*linux*)
7139 LD="${LD-ld} -m elf64_sparc"
7140 ;;
7141 esac
7142 ;;
7143 esac
7144 fi
7145 rm -rf conftest*
7146 ;;
7147
7148 *-*-sco3.2v5*)
7149 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7150 SAVE_CFLAGS="$CFLAGS"
7151 CFLAGS="$CFLAGS -belf"
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7153 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7154 if ${lt_cv_cc_needs_belf+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 ac_ext=c
7158 ac_cpp='$CPP $CPPFLAGS'
7159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7162
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165
7166 int
7167 main ()
7168 {
7169
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 if ac_fn_c_try_link "$LINENO"; then :
7175 lt_cv_cc_needs_belf=yes
7176 else
7177 lt_cv_cc_needs_belf=no
7178 fi
7179 rm -f core conftest.err conftest.$ac_objext \
7180 conftest$ac_exeext conftest.$ac_ext
7181 ac_ext=c
7182 ac_cpp='$CPP $CPPFLAGS'
7183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7186
7187 fi
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7189 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7190 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7191 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7192 CFLAGS="$SAVE_CFLAGS"
7193 fi
7194 ;;
7195 sparc*-*solaris*)
7196 # Find out which ABI we are using.
7197 echo 'int i;' > conftest.$ac_ext
7198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7199 (eval $ac_compile) 2>&5
7200 ac_status=$?
7201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7202 test $ac_status = 0; }; then
7203 case `/usr/bin/file conftest.o` in
7204 *64-bit*)
7205 case $lt_cv_prog_gnu_ld in
7206 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7207 *)
7208 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7209 LD="${LD-ld} -64"
7210 fi
7211 ;;
7212 esac
7213 ;;
7214 esac
7215 fi
7216 rm -rf conftest*
7217 ;;
7218 esac
7219
7220 need_locks="$enable_libtool_lock"
7221
7222 if test -n "$ac_tool_prefix"; then
7223 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7224 set dummy ${ac_tool_prefix}mt; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 if test -n "$MANIFEST_TOOL"; then
7231 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7243 fi
7244 done
7245 done
7246 IFS=$as_save_IFS
7247
7248 fi
7249 fi
7250 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7251 if test -n "$MANIFEST_TOOL"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7253 $as_echo "$MANIFEST_TOOL" >&6; }
7254 else
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7257 fi
7258
7259
7260 fi
7261 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7262 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7263 # Extract the first word of "mt", so it can be a program name with args.
7264 set dummy mt; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 if test -n "$ac_ct_MANIFEST_TOOL"; then
7271 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7291 if test -n "$ac_ct_MANIFEST_TOOL"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7293 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7294 else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7300 MANIFEST_TOOL=":"
7301 else
7302 case $cross_compiling:$ac_tool_warned in
7303 yes:)
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306 ac_tool_warned=yes ;;
7307 esac
7308 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7309 fi
7310 else
7311 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7312 fi
7313
7314 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7316 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7317 if ${lt_cv_path_mainfest_tool+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 lt_cv_path_mainfest_tool=no
7321 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7322 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7323 cat conftest.err >&5
7324 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7325 lt_cv_path_mainfest_tool=yes
7326 fi
7327 rm -f conftest*
7328 fi
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7330 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7331 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7332 MANIFEST_TOOL=:
7333 fi
7334
7335
7336
7337
7338
7339
7340 case $host_os in
7341 rhapsody* | darwin*)
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 if test -n "$DSYMUTIL"; then
7351 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364 done
7365 done
7366 IFS=$as_save_IFS
7367
7368 fi
7369 fi
7370 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7371 if test -n "$DSYMUTIL"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7373 $as_echo "$DSYMUTIL" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7377 fi
7378
7379
7380 fi
7381 if test -z "$ac_cv_prog_DSYMUTIL"; then
7382 ac_ct_DSYMUTIL=$DSYMUTIL
7383 # Extract the first word of "dsymutil", so it can be a program name with args.
7384 set dummy dsymutil; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 if test -n "$ac_ct_DSYMUTIL"; then
7391 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404 done
7405 done
7406 IFS=$as_save_IFS
7407
7408 fi
7409 fi
7410 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7411 if test -n "$ac_ct_DSYMUTIL"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7413 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7417 fi
7418
7419 if test "x$ac_ct_DSYMUTIL" = x; then
7420 DSYMUTIL=":"
7421 else
7422 case $cross_compiling:$ac_tool_warned in
7423 yes:)
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7426 ac_tool_warned=yes ;;
7427 esac
7428 DSYMUTIL=$ac_ct_DSYMUTIL
7429 fi
7430 else
7431 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7432 fi
7433
7434 if test -n "$ac_tool_prefix"; then
7435 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7436 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_NMEDIT+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 if test -n "$NMEDIT"; then
7443 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7444 else
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460 fi
7461 fi
7462 NMEDIT=$ac_cv_prog_NMEDIT
7463 if test -n "$NMEDIT"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7465 $as_echo "$NMEDIT" >&6; }
7466 else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470
7471
7472 fi
7473 if test -z "$ac_cv_prog_NMEDIT"; then
7474 ac_ct_NMEDIT=$NMEDIT
7475 # Extract the first word of "nmedit", so it can be a program name with args.
7476 set dummy nmedit; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 if test -n "$ac_ct_NMEDIT"; then
7483 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7492 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7495 fi
7496 done
7497 done
7498 IFS=$as_save_IFS
7499
7500 fi
7501 fi
7502 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7503 if test -n "$ac_ct_NMEDIT"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7505 $as_echo "$ac_ct_NMEDIT" >&6; }
7506 else
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7509 fi
7510
7511 if test "x$ac_ct_NMEDIT" = x; then
7512 NMEDIT=":"
7513 else
7514 case $cross_compiling:$ac_tool_warned in
7515 yes:)
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7518 ac_tool_warned=yes ;;
7519 esac
7520 NMEDIT=$ac_ct_NMEDIT
7521 fi
7522 else
7523 NMEDIT="$ac_cv_prog_NMEDIT"
7524 fi
7525
7526 if test -n "$ac_tool_prefix"; then
7527 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_LIPO+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 if test -n "$LIPO"; then
7535 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7544 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7547 fi
7548 done
7549 done
7550 IFS=$as_save_IFS
7551
7552 fi
7553 fi
7554 LIPO=$ac_cv_prog_LIPO
7555 if test -n "$LIPO"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7557 $as_echo "$LIPO" >&6; }
7558 else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562
7563
7564 fi
7565 if test -z "$ac_cv_prog_LIPO"; then
7566 ac_ct_LIPO=$LIPO
7567 # Extract the first word of "lipo", so it can be a program name with args.
7568 set dummy lipo; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if test -n "$ac_ct_LIPO"; then
7575 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7584 ac_cv_prog_ac_ct_LIPO="lipo"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7587 fi
7588 done
7589 done
7590 IFS=$as_save_IFS
7591
7592 fi
7593 fi
7594 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7595 if test -n "$ac_ct_LIPO"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7597 $as_echo "$ac_ct_LIPO" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7601 fi
7602
7603 if test "x$ac_ct_LIPO" = x; then
7604 LIPO=":"
7605 else
7606 case $cross_compiling:$ac_tool_warned in
7607 yes:)
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7610 ac_tool_warned=yes ;;
7611 esac
7612 LIPO=$ac_ct_LIPO
7613 fi
7614 else
7615 LIPO="$ac_cv_prog_LIPO"
7616 fi
7617
7618 if test -n "$ac_tool_prefix"; then
7619 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7620 set dummy ${ac_tool_prefix}otool; ac_word=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_prog_OTOOL+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 if test -n "$OTOOL"; then
7627 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7636 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640 done
7641 done
7642 IFS=$as_save_IFS
7643
7644 fi
7645 fi
7646 OTOOL=$ac_cv_prog_OTOOL
7647 if test -n "$OTOOL"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7649 $as_echo "$OTOOL" >&6; }
7650 else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653 fi
7654
7655
7656 fi
7657 if test -z "$ac_cv_prog_OTOOL"; then
7658 ac_ct_OTOOL=$OTOOL
7659 # Extract the first word of "otool", so it can be a program name with args.
7660 set dummy otool; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$ac_ct_OTOOL"; then
7667 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7676 ac_cv_prog_ac_ct_OTOOL="otool"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7683
7684 fi
7685 fi
7686 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7687 if test -n "$ac_ct_OTOOL"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7689 $as_echo "$ac_ct_OTOOL" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 fi
7694
7695 if test "x$ac_ct_OTOOL" = x; then
7696 OTOOL=":"
7697 else
7698 case $cross_compiling:$ac_tool_warned in
7699 yes:)
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702 ac_tool_warned=yes ;;
7703 esac
7704 OTOOL=$ac_ct_OTOOL
7705 fi
7706 else
7707 OTOOL="$ac_cv_prog_OTOOL"
7708 fi
7709
7710 if test -n "$ac_tool_prefix"; then
7711 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7712 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_OTOOL64+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 if test -n "$OTOOL64"; then
7719 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 OTOOL64=$ac_cv_prog_OTOOL64
7739 if test -n "$OTOOL64"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7741 $as_echo "$OTOOL64" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748 fi
7749 if test -z "$ac_cv_prog_OTOOL64"; then
7750 ac_ct_OTOOL64=$OTOOL64
7751 # Extract the first word of "otool64", so it can be a program name with args.
7752 set dummy otool64; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 if test -n "$ac_ct_OTOOL64"; then
7759 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7768 ac_cv_prog_ac_ct_OTOOL64="otool64"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7771 fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7775
7776 fi
7777 fi
7778 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7779 if test -n "$ac_ct_OTOOL64"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7781 $as_echo "$ac_ct_OTOOL64" >&6; }
7782 else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7785 fi
7786
7787 if test "x$ac_ct_OTOOL64" = x; then
7788 OTOOL64=":"
7789 else
7790 case $cross_compiling:$ac_tool_warned in
7791 yes:)
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7794 ac_tool_warned=yes ;;
7795 esac
7796 OTOOL64=$ac_ct_OTOOL64
7797 fi
7798 else
7799 OTOOL64="$ac_cv_prog_OTOOL64"
7800 fi
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7829 $as_echo_n "checking for -single_module linker flag... " >&6; }
7830 if ${lt_cv_apple_cc_single_mod+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 lt_cv_apple_cc_single_mod=no
7834 if test -z "${LT_MULTI_MODULE}"; then
7835 # By default we will add the -single_module flag. You can override
7836 # by either setting the environment variable LT_MULTI_MODULE
7837 # non-empty at configure time, or by adding -multi_module to the
7838 # link flags.
7839 rm -rf libconftest.dylib*
7840 echo "int foo(void){return 1;}" > conftest.c
7841 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7842 -dynamiclib -Wl,-single_module conftest.c" >&5
7843 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7844 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7845 _lt_result=$?
7846 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7847 lt_cv_apple_cc_single_mod=yes
7848 else
7849 cat conftest.err >&5
7850 fi
7851 rm -rf libconftest.dylib*
7852 rm -f conftest.*
7853 fi
7854 fi
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7856 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7858 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7859 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 lt_cv_ld_exported_symbols_list=no
7863 save_LDFLAGS=$LDFLAGS
7864 echo "_main" > conftest.sym
7865 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868
7869 int
7870 main ()
7871 {
7872
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_link "$LINENO"; then :
7878 lt_cv_ld_exported_symbols_list=yes
7879 else
7880 lt_cv_ld_exported_symbols_list=no
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 LDFLAGS="$save_LDFLAGS"
7885
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7888 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7890 $as_echo_n "checking for -force_load linker flag... " >&6; }
7891 if ${lt_cv_ld_force_load+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 lt_cv_ld_force_load=no
7895 cat > conftest.c << _LT_EOF
7896 int forced_loaded() { return 2;}
7897 _LT_EOF
7898 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7899 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7900 echo "$AR cru libconftest.a conftest.o" >&5
7901 $AR cru libconftest.a conftest.o 2>&5
7902 echo "$RANLIB libconftest.a" >&5
7903 $RANLIB libconftest.a 2>&5
7904 cat > conftest.c << _LT_EOF
7905 int main() { return 0;}
7906 _LT_EOF
7907 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7908 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7909 _lt_result=$?
7910 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7911 lt_cv_ld_force_load=yes
7912 else
7913 cat conftest.err >&5
7914 fi
7915 rm -f conftest.err libconftest.a conftest conftest.c
7916 rm -rf conftest.dSYM
7917
7918 fi
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7920 $as_echo "$lt_cv_ld_force_load" >&6; }
7921 case $host_os in
7922 rhapsody* | darwin1.[012])
7923 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7924 darwin1.*)
7925 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7926 darwin*) # darwin 5.x on
7927 # if running on 10.5 or later, the deployment target defaults
7928 # to the OS version, if on x86, and 10.4, the deployment
7929 # target defaults to 10.4. Don't you love it?
7930 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7931 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7932 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7933 10.[012]*)
7934 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7935 10.*)
7936 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7937 esac
7938 ;;
7939 esac
7940 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7941 _lt_dar_single_mod='$single_module'
7942 fi
7943 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7944 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7945 else
7946 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7947 fi
7948 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7949 _lt_dsymutil='~$DSYMUTIL $lib || :'
7950 else
7951 _lt_dsymutil=
7952 fi
7953 ;;
7954 esac
7955
7956 ac_ext=c
7957 ac_cpp='$CPP $CPPFLAGS'
7958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7962 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7963 # On Suns, sometimes $CPP names a directory.
7964 if test -n "$CPP" && test -d "$CPP"; then
7965 CPP=
7966 fi
7967 if test -z "$CPP"; then
7968 if ${ac_cv_prog_CPP+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 # Double quotes because CPP needs to be expanded
7972 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7973 do
7974 ac_preproc_ok=false
7975 for ac_c_preproc_warn_flag in '' yes
7976 do
7977 # Use a header file that comes with gcc, so configuring glibc
7978 # with a fresh cross-compiler works.
7979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7980 # <limits.h> exists even on freestanding compilers.
7981 # On the NeXT, cc -E runs the code through the compiler's parser,
7982 # not just through cpp. "Syntax error" is here to catch this case.
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 #ifdef __STDC__
7986 # include <limits.h>
7987 #else
7988 # include <assert.h>
7989 #endif
7990 Syntax error
7991 _ACEOF
7992 if ac_fn_c_try_cpp "$LINENO"; then :
7993
7994 else
7995 # Broken: fails on valid input.
7996 continue
7997 fi
7998 rm -f conftest.err conftest.i conftest.$ac_ext
7999
8000 # OK, works on sane cases. Now check whether nonexistent headers
8001 # can be detected and how.
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8004 #include <ac_nonexistent.h>
8005 _ACEOF
8006 if ac_fn_c_try_cpp "$LINENO"; then :
8007 # Broken: success on invalid input.
8008 continue
8009 else
8010 # Passes both tests.
8011 ac_preproc_ok=:
8012 break
8013 fi
8014 rm -f conftest.err conftest.i conftest.$ac_ext
8015
8016 done
8017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8018 rm -f conftest.i conftest.err conftest.$ac_ext
8019 if $ac_preproc_ok; then :
8020 break
8021 fi
8022
8023 done
8024 ac_cv_prog_CPP=$CPP
8025
8026 fi
8027 CPP=$ac_cv_prog_CPP
8028 else
8029 ac_cv_prog_CPP=$CPP
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8032 $as_echo "$CPP" >&6; }
8033 ac_preproc_ok=false
8034 for ac_c_preproc_warn_flag in '' yes
8035 do
8036 # Use a header file that comes with gcc, so configuring glibc
8037 # with a fresh cross-compiler works.
8038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8039 # <limits.h> exists even on freestanding compilers.
8040 # On the NeXT, cc -E runs the code through the compiler's parser,
8041 # not just through cpp. "Syntax error" is here to catch this case.
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044 #ifdef __STDC__
8045 # include <limits.h>
8046 #else
8047 # include <assert.h>
8048 #endif
8049 Syntax error
8050 _ACEOF
8051 if ac_fn_c_try_cpp "$LINENO"; then :
8052
8053 else
8054 # Broken: fails on valid input.
8055 continue
8056 fi
8057 rm -f conftest.err conftest.i conftest.$ac_ext
8058
8059 # OK, works on sane cases. Now check whether nonexistent headers
8060 # can be detected and how.
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8063 #include <ac_nonexistent.h>
8064 _ACEOF
8065 if ac_fn_c_try_cpp "$LINENO"; then :
8066 # Broken: success on invalid input.
8067 continue
8068 else
8069 # Passes both tests.
8070 ac_preproc_ok=:
8071 break
8072 fi
8073 rm -f conftest.err conftest.i conftest.$ac_ext
8074
8075 done
8076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8077 rm -f conftest.i conftest.err conftest.$ac_ext
8078 if $ac_preproc_ok; then :
8079
8080 else
8081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8083 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8084 See \`config.log' for more details" "$LINENO" 5; }
8085 fi
8086
8087 ac_ext=c
8088 ac_cpp='$CPP $CPPFLAGS'
8089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8092
8093
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8095 $as_echo_n "checking for ANSI C header files... " >&6; }
8096 if ${ac_cv_header_stdc+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8101 #include <stdlib.h>
8102 #include <stdarg.h>
8103 #include <string.h>
8104 #include <float.h>
8105
8106 int
8107 main ()
8108 {
8109
8110 ;
8111 return 0;
8112 }
8113 _ACEOF
8114 if ac_fn_c_try_compile "$LINENO"; then :
8115 ac_cv_header_stdc=yes
8116 else
8117 ac_cv_header_stdc=no
8118 fi
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120
8121 if test $ac_cv_header_stdc = yes; then
8122 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8125 #include <string.h>
8126
8127 _ACEOF
8128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8129 $EGREP "memchr" >/dev/null 2>&1; then :
8130
8131 else
8132 ac_cv_header_stdc=no
8133 fi
8134 rm -f conftest*
8135
8136 fi
8137
8138 if test $ac_cv_header_stdc = yes; then
8139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8142 #include <stdlib.h>
8143
8144 _ACEOF
8145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8146 $EGREP "free" >/dev/null 2>&1; then :
8147
8148 else
8149 ac_cv_header_stdc=no
8150 fi
8151 rm -f conftest*
8152
8153 fi
8154
8155 if test $ac_cv_header_stdc = yes; then
8156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8157 if test "$cross_compiling" = yes; then :
8158 :
8159 else
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 #include <ctype.h>
8163 #include <stdlib.h>
8164 #if ((' ' & 0x0FF) == 0x020)
8165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8167 #else
8168 # define ISLOWER(c) \
8169 (('a' <= (c) && (c) <= 'i') \
8170 || ('j' <= (c) && (c) <= 'r') \
8171 || ('s' <= (c) && (c) <= 'z'))
8172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8173 #endif
8174
8175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8176 int
8177 main ()
8178 {
8179 int i;
8180 for (i = 0; i < 256; i++)
8181 if (XOR (islower (i), ISLOWER (i))
8182 || toupper (i) != TOUPPER (i))
8183 return 2;
8184 return 0;
8185 }
8186 _ACEOF
8187 if ac_fn_c_try_run "$LINENO"; then :
8188
8189 else
8190 ac_cv_header_stdc=no
8191 fi
8192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8193 conftest.$ac_objext conftest.beam conftest.$ac_ext
8194 fi
8195
8196 fi
8197 fi
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8199 $as_echo "$ac_cv_header_stdc" >&6; }
8200 if test $ac_cv_header_stdc = yes; then
8201
8202 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8203
8204 fi
8205
8206 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8207 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8208 inttypes.h stdint.h unistd.h
8209 do :
8210 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8211 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8212 "
8213 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8214 cat >>confdefs.h <<_ACEOF
8215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8216 _ACEOF
8217
8218 fi
8219
8220 done
8221
8222
8223 for ac_header in dlfcn.h
8224 do :
8225 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8226 "
8227 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE_DLFCN_H 1
8230 _ACEOF
8231
8232 fi
8233
8234 done
8235
8236
8237
8238
8239 func_stripname_cnf ()
8240 {
8241 case ${2} in
8242 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8243 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8244 esac
8245 } # func_stripname_cnf
8246
8247
8248
8249
8250
8251 # Set options
8252
8253
8254
8255 enable_dlopen=no
8256
8257
8258 enable_win32_dll=no
8259
8260
8261 # Check whether --enable-shared was given.
8262 if test "${enable_shared+set}" = set; then :
8263 enableval=$enable_shared; p=${PACKAGE-default}
8264 case $enableval in
8265 yes) enable_shared=yes ;;
8266 no) enable_shared=no ;;
8267 *)
8268 enable_shared=no
8269 # Look at the argument we got. We use all the common list separators.
8270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8271 for pkg in $enableval; do
8272 IFS="$lt_save_ifs"
8273 if test "X$pkg" = "X$p"; then
8274 enable_shared=yes
8275 fi
8276 done
8277 IFS="$lt_save_ifs"
8278 ;;
8279 esac
8280 else
8281 enable_shared=yes
8282 fi
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292 # Check whether --enable-static was given.
8293 if test "${enable_static+set}" = set; then :
8294 enableval=$enable_static; p=${PACKAGE-default}
8295 case $enableval in
8296 yes) enable_static=yes ;;
8297 no) enable_static=no ;;
8298 *)
8299 enable_static=no
8300 # Look at the argument we got. We use all the common list separators.
8301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8302 for pkg in $enableval; do
8303 IFS="$lt_save_ifs"
8304 if test "X$pkg" = "X$p"; then
8305 enable_static=yes
8306 fi
8307 done
8308 IFS="$lt_save_ifs"
8309 ;;
8310 esac
8311 else
8312 enable_static=yes
8313 fi
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324 # Check whether --with-pic was given.
8325 if test "${with_pic+set}" = set; then :
8326 withval=$with_pic; pic_mode="$withval"
8327 else
8328 pic_mode=default
8329 fi
8330
8331
8332 test -z "$pic_mode" && pic_mode=default
8333
8334
8335
8336
8337
8338
8339
8340 # Check whether --enable-fast-install was given.
8341 if test "${enable_fast_install+set}" = set; then :
8342 enableval=$enable_fast_install; p=${PACKAGE-default}
8343 case $enableval in
8344 yes) enable_fast_install=yes ;;
8345 no) enable_fast_install=no ;;
8346 *)
8347 enable_fast_install=no
8348 # Look at the argument we got. We use all the common list separators.
8349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8350 for pkg in $enableval; do
8351 IFS="$lt_save_ifs"
8352 if test "X$pkg" = "X$p"; then
8353 enable_fast_install=yes
8354 fi
8355 done
8356 IFS="$lt_save_ifs"
8357 ;;
8358 esac
8359 else
8360 enable_fast_install=yes
8361 fi
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373 # This can be used to rebuild libtool when needed
8374 LIBTOOL_DEPS="$ltmain"
8375
8376 # Always use our own libtool.
8377 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404 test -z "$LN_S" && LN_S="ln -s"
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419 if test -n "${ZSH_VERSION+set}" ; then
8420 setopt NO_GLOB_SUBST
8421 fi
8422
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8424 $as_echo_n "checking for objdir... " >&6; }
8425 if ${lt_cv_objdir+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 rm -f .libs 2>/dev/null
8429 mkdir .libs 2>/dev/null
8430 if test -d .libs; then
8431 lt_cv_objdir=.libs
8432 else
8433 # MS-DOS does not allow filenames that begin with a dot.
8434 lt_cv_objdir=_libs
8435 fi
8436 rmdir .libs 2>/dev/null
8437 fi
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8439 $as_echo "$lt_cv_objdir" >&6; }
8440 objdir=$lt_cv_objdir
8441
8442
8443
8444
8445
8446 cat >>confdefs.h <<_ACEOF
8447 #define LT_OBJDIR "$lt_cv_objdir/"
8448 _ACEOF
8449
8450
8451
8452
8453 case $host_os in
8454 aix3*)
8455 # AIX sometimes has problems with the GCC collect2 program. For some
8456 # reason, if we set the COLLECT_NAMES environment variable, the problems
8457 # vanish in a puff of smoke.
8458 if test "X${COLLECT_NAMES+set}" != Xset; then
8459 COLLECT_NAMES=
8460 export COLLECT_NAMES
8461 fi
8462 ;;
8463 esac
8464
8465 # Global variables:
8466 ofile=libtool
8467 can_build_shared=yes
8468
8469 # All known linkers require a `.a' archive for static linking (except MSVC,
8470 # which needs '.lib').
8471 libext=a
8472
8473 with_gnu_ld="$lt_cv_prog_gnu_ld"
8474
8475 old_CC="$CC"
8476 old_CFLAGS="$CFLAGS"
8477
8478 # Set sane defaults for various variables
8479 test -z "$CC" && CC=cc
8480 test -z "$LTCC" && LTCC=$CC
8481 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8482 test -z "$LD" && LD=ld
8483 test -z "$ac_objext" && ac_objext=o
8484
8485 for cc_temp in $compiler""; do
8486 case $cc_temp in
8487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8489 \-*) ;;
8490 *) break;;
8491 esac
8492 done
8493 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8494
8495
8496 # Only perform the check for file, if the check method requires it
8497 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8498 case $deplibs_check_method in
8499 file_magic*)
8500 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8502 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8503 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 case $MAGIC_CMD in
8507 [\\/*] | ?:[\\/]*)
8508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8509 ;;
8510 *)
8511 lt_save_MAGIC_CMD="$MAGIC_CMD"
8512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8514 for ac_dir in $ac_dummy; do
8515 IFS="$lt_save_ifs"
8516 test -z "$ac_dir" && ac_dir=.
8517 if test -f $ac_dir/${ac_tool_prefix}file; then
8518 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8519 if test -n "$file_magic_test_file"; then
8520 case $deplibs_check_method in
8521 "file_magic "*)
8522 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8525 $EGREP "$file_magic_regex" > /dev/null; then
8526 :
8527 else
8528 cat <<_LT_EOF 1>&2
8529
8530 *** Warning: the command libtool uses to detect shared libraries,
8531 *** $file_magic_cmd, produces output that libtool cannot recognize.
8532 *** The result is that libtool may fail to recognize shared libraries
8533 *** as such. This will affect the creation of libtool libraries that
8534 *** depend on shared libraries, but programs linked with such libtool
8535 *** libraries will work regardless of this problem. Nevertheless, you
8536 *** may want to report the problem to your system manager and/or to
8537 *** bug-libtool@gnu.org
8538
8539 _LT_EOF
8540 fi ;;
8541 esac
8542 fi
8543 break
8544 fi
8545 done
8546 IFS="$lt_save_ifs"
8547 MAGIC_CMD="$lt_save_MAGIC_CMD"
8548 ;;
8549 esac
8550 fi
8551
8552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8553 if test -n "$MAGIC_CMD"; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8555 $as_echo "$MAGIC_CMD" >&6; }
8556 else
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8559 fi
8560
8561
8562
8563
8564
8565 if test -z "$lt_cv_path_MAGIC_CMD"; then
8566 if test -n "$ac_tool_prefix"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8568 $as_echo_n "checking for file... " >&6; }
8569 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 case $MAGIC_CMD in
8573 [\\/*] | ?:[\\/]*)
8574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8575 ;;
8576 *)
8577 lt_save_MAGIC_CMD="$MAGIC_CMD"
8578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8580 for ac_dir in $ac_dummy; do
8581 IFS="$lt_save_ifs"
8582 test -z "$ac_dir" && ac_dir=.
8583 if test -f $ac_dir/file; then
8584 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8585 if test -n "$file_magic_test_file"; then
8586 case $deplibs_check_method in
8587 "file_magic "*)
8588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8591 $EGREP "$file_magic_regex" > /dev/null; then
8592 :
8593 else
8594 cat <<_LT_EOF 1>&2
8595
8596 *** Warning: the command libtool uses to detect shared libraries,
8597 *** $file_magic_cmd, produces output that libtool cannot recognize.
8598 *** The result is that libtool may fail to recognize shared libraries
8599 *** as such. This will affect the creation of libtool libraries that
8600 *** depend on shared libraries, but programs linked with such libtool
8601 *** libraries will work regardless of this problem. Nevertheless, you
8602 *** may want to report the problem to your system manager and/or to
8603 *** bug-libtool@gnu.org
8604
8605 _LT_EOF
8606 fi ;;
8607 esac
8608 fi
8609 break
8610 fi
8611 done
8612 IFS="$lt_save_ifs"
8613 MAGIC_CMD="$lt_save_MAGIC_CMD"
8614 ;;
8615 esac
8616 fi
8617
8618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8619 if test -n "$MAGIC_CMD"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8621 $as_echo "$MAGIC_CMD" >&6; }
8622 else
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8625 fi
8626
8627
8628 else
8629 MAGIC_CMD=:
8630 fi
8631 fi
8632
8633 fi
8634 ;;
8635 esac
8636
8637 # Use C for the default configuration in the libtool script
8638
8639 lt_save_CC="$CC"
8640 ac_ext=c
8641 ac_cpp='$CPP $CPPFLAGS'
8642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8645
8646
8647 # Source file extension for C test sources.
8648 ac_ext=c
8649
8650 # Object file extension for compiled C test sources.
8651 objext=o
8652 objext=$objext
8653
8654 # Code to be used in simple compile tests
8655 lt_simple_compile_test_code="int some_variable = 0;"
8656
8657 # Code to be used in simple link tests
8658 lt_simple_link_test_code='int main(){return(0);}'
8659
8660
8661
8662
8663
8664
8665
8666 # If no C compiler was specified, use CC.
8667 LTCC=${LTCC-"$CC"}
8668
8669 # If no C compiler flags were specified, use CFLAGS.
8670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8671
8672 # Allow CC to be a program name with arguments.
8673 compiler=$CC
8674
8675 # Save the default compiler, since it gets overwritten when the other
8676 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8677 compiler_DEFAULT=$CC
8678
8679 # save warnings/boilerplate of simple test code
8680 ac_outfile=conftest.$ac_objext
8681 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8682 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8683 _lt_compiler_boilerplate=`cat conftest.err`
8684 $RM conftest*
8685
8686 ac_outfile=conftest.$ac_objext
8687 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8688 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8689 _lt_linker_boilerplate=`cat conftest.err`
8690 $RM -r conftest*
8691
8692
8693 ## CAVEAT EMPTOR:
8694 ## There is no encapsulation within the following macros, do not change
8695 ## the running order or otherwise move them around unless you know exactly
8696 ## what you are doing...
8697 if test -n "$compiler"; then
8698
8699 lt_prog_compiler_no_builtin_flag=
8700
8701 if test "$GCC" = yes; then
8702 case $cc_basename in
8703 nvcc*)
8704 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8705 *)
8706 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8707 esac
8708
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8710 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8711 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8712 $as_echo_n "(cached) " >&6
8713 else
8714 lt_cv_prog_compiler_rtti_exceptions=no
8715 ac_outfile=conftest.$ac_objext
8716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8717 lt_compiler_flag="-fno-rtti -fno-exceptions"
8718 # Insert the option either (1) after the last *FLAGS variable, or
8719 # (2) before a word containing "conftest.", or (3) at the end.
8720 # Note that $ac_compile itself does not contain backslashes and begins
8721 # with a dollar sign (not a hyphen), so the echo should work correctly.
8722 # The option is referenced via a variable to avoid confusing sed.
8723 lt_compile=`echo "$ac_compile" | $SED \
8724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8726 -e 's:$: $lt_compiler_flag:'`
8727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8728 (eval "$lt_compile" 2>conftest.err)
8729 ac_status=$?
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 if (exit $ac_status) && test -s "$ac_outfile"; then
8733 # The compiler can only warn and ignore the option if not recognized
8734 # So say no if there are warnings other than the usual output.
8735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8738 lt_cv_prog_compiler_rtti_exceptions=yes
8739 fi
8740 fi
8741 $RM conftest*
8742
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8745 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8746
8747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8748 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8749 else
8750 :
8751 fi
8752
8753 fi
8754
8755
8756
8757
8758
8759
8760 lt_prog_compiler_wl=
8761 lt_prog_compiler_pic=
8762 lt_prog_compiler_static=
8763
8764
8765 if test "$GCC" = yes; then
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_static='-static'
8768
8769 case $host_os in
8770 aix*)
8771 # All AIX code is PIC.
8772 if test "$host_cpu" = ia64; then
8773 # AIX 5 now supports IA64 processor
8774 lt_prog_compiler_static='-Bstatic'
8775 fi
8776 ;;
8777
8778 amigaos*)
8779 case $host_cpu in
8780 powerpc)
8781 # see comment about AmigaOS4 .so support
8782 lt_prog_compiler_pic='-fPIC'
8783 ;;
8784 m68k)
8785 # FIXME: we need at least 68020 code to build shared libraries, but
8786 # adding the `-m68020' flag to GCC prevents building anything better,
8787 # like `-m68040'.
8788 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8789 ;;
8790 esac
8791 ;;
8792
8793 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8794 # PIC is the default for these OSes.
8795 ;;
8796
8797 mingw* | cygwin* | pw32* | os2* | cegcc*)
8798 # This hack is so that the source file can tell whether it is being
8799 # built for inclusion in a dll (and should export symbols for example).
8800 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8801 # (--disable-auto-import) libraries
8802 lt_prog_compiler_pic='-DDLL_EXPORT'
8803 ;;
8804
8805 darwin* | rhapsody*)
8806 # PIC is the default on this platform
8807 # Common symbols not allowed in MH_DYLIB files
8808 lt_prog_compiler_pic='-fno-common'
8809 ;;
8810
8811 haiku*)
8812 # PIC is the default for Haiku.
8813 # The "-static" flag exists, but is broken.
8814 lt_prog_compiler_static=
8815 ;;
8816
8817 hpux*)
8818 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8819 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8820 # sets the default TLS model and affects inlining.
8821 case $host_cpu in
8822 hppa*64*)
8823 # +Z the default
8824 ;;
8825 *)
8826 lt_prog_compiler_pic='-fPIC'
8827 ;;
8828 esac
8829 ;;
8830
8831 interix[3-9]*)
8832 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8833 # Instead, we relocate shared libraries at runtime.
8834 ;;
8835
8836 msdosdjgpp*)
8837 # Just because we use GCC doesn't mean we suddenly get shared libraries
8838 # on systems that don't support them.
8839 lt_prog_compiler_can_build_shared=no
8840 enable_shared=no
8841 ;;
8842
8843 *nto* | *qnx*)
8844 # QNX uses GNU C++, but need to define -shared option too, otherwise
8845 # it will coredump.
8846 lt_prog_compiler_pic='-fPIC -shared'
8847 ;;
8848
8849 sysv4*MP*)
8850 if test -d /usr/nec; then
8851 lt_prog_compiler_pic=-Kconform_pic
8852 fi
8853 ;;
8854
8855 *)
8856 lt_prog_compiler_pic='-fPIC'
8857 ;;
8858 esac
8859
8860 case $cc_basename in
8861 nvcc*) # Cuda Compiler Driver 2.2
8862 lt_prog_compiler_wl='-Xlinker '
8863 lt_prog_compiler_pic='-Xcompiler -fPIC'
8864 ;;
8865 esac
8866 else
8867 # PORTME Check for flag to pass linker flags through the system compiler.
8868 case $host_os in
8869 aix*)
8870 lt_prog_compiler_wl='-Wl,'
8871 if test "$host_cpu" = ia64; then
8872 # AIX 5 now supports IA64 processor
8873 lt_prog_compiler_static='-Bstatic'
8874 else
8875 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8876 fi
8877 ;;
8878
8879 mingw* | cygwin* | pw32* | os2* | cegcc*)
8880 # This hack is so that the source file can tell whether it is being
8881 # built for inclusion in a dll (and should export symbols for example).
8882 lt_prog_compiler_pic='-DDLL_EXPORT'
8883 ;;
8884
8885 hpux9* | hpux10* | hpux11*)
8886 lt_prog_compiler_wl='-Wl,'
8887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8888 # not for PA HP-UX.
8889 case $host_cpu in
8890 hppa*64*|ia64*)
8891 # +Z the default
8892 ;;
8893 *)
8894 lt_prog_compiler_pic='+Z'
8895 ;;
8896 esac
8897 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8898 lt_prog_compiler_static='${wl}-a ${wl}archive'
8899 ;;
8900
8901 irix5* | irix6* | nonstopux*)
8902 lt_prog_compiler_wl='-Wl,'
8903 # PIC (with -KPIC) is the default.
8904 lt_prog_compiler_static='-non_shared'
8905 ;;
8906
8907 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8908 case $cc_basename in
8909 # old Intel for x86_64 which still supported -KPIC.
8910 ecc*)
8911 lt_prog_compiler_wl='-Wl,'
8912 lt_prog_compiler_pic='-KPIC'
8913 lt_prog_compiler_static='-static'
8914 ;;
8915 # icc used to be incompatible with GCC.
8916 # ICC 10 doesn't accept -KPIC any more.
8917 icc* | ifort*)
8918 lt_prog_compiler_wl='-Wl,'
8919 lt_prog_compiler_pic='-fPIC'
8920 lt_prog_compiler_static='-static'
8921 ;;
8922 # Lahey Fortran 8.1.
8923 lf95*)
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_pic='--shared'
8926 lt_prog_compiler_static='--static'
8927 ;;
8928 nagfor*)
8929 # NAG Fortran compiler
8930 lt_prog_compiler_wl='-Wl,-Wl,,'
8931 lt_prog_compiler_pic='-PIC'
8932 lt_prog_compiler_static='-Bstatic'
8933 ;;
8934 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8935 # Portland Group compilers (*not* the Pentium gcc compiler,
8936 # which looks to be a dead project)
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_pic='-fpic'
8939 lt_prog_compiler_static='-Bstatic'
8940 ;;
8941 ccc*)
8942 lt_prog_compiler_wl='-Wl,'
8943 # All Alpha code is PIC.
8944 lt_prog_compiler_static='-non_shared'
8945 ;;
8946 xl* | bgxl* | bgf* | mpixl*)
8947 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8948 lt_prog_compiler_wl='-Wl,'
8949 lt_prog_compiler_pic='-qpic'
8950 lt_prog_compiler_static='-qstaticlink'
8951 ;;
8952 *)
8953 case `$CC -V 2>&1 | sed 5q` in
8954 *Sun\ F* | *Sun*Fortran*)
8955 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8956 lt_prog_compiler_pic='-KPIC'
8957 lt_prog_compiler_static='-Bstatic'
8958 lt_prog_compiler_wl=''
8959 ;;
8960 *Sun\ C*)
8961 # Sun C 5.9
8962 lt_prog_compiler_pic='-KPIC'
8963 lt_prog_compiler_static='-Bstatic'
8964 lt_prog_compiler_wl='-Wl,'
8965 ;;
8966 esac
8967 ;;
8968 esac
8969 ;;
8970
8971 newsos6)
8972 lt_prog_compiler_pic='-KPIC'
8973 lt_prog_compiler_static='-Bstatic'
8974 ;;
8975
8976 *nto* | *qnx*)
8977 # QNX uses GNU C++, but need to define -shared option too, otherwise
8978 # it will coredump.
8979 lt_prog_compiler_pic='-fPIC -shared'
8980 ;;
8981
8982 osf3* | osf4* | osf5*)
8983 lt_prog_compiler_wl='-Wl,'
8984 # All OSF/1 code is PIC.
8985 lt_prog_compiler_static='-non_shared'
8986 ;;
8987
8988 rdos*)
8989 lt_prog_compiler_static='-non_shared'
8990 ;;
8991
8992 solaris*)
8993 lt_prog_compiler_pic='-KPIC'
8994 lt_prog_compiler_static='-Bstatic'
8995 case $cc_basename in
8996 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8997 lt_prog_compiler_wl='-Qoption ld ';;
8998 *)
8999 lt_prog_compiler_wl='-Wl,';;
9000 esac
9001 ;;
9002
9003 sunos4*)
9004 lt_prog_compiler_wl='-Qoption ld '
9005 lt_prog_compiler_pic='-PIC'
9006 lt_prog_compiler_static='-Bstatic'
9007 ;;
9008
9009 sysv4 | sysv4.2uw2* | sysv4.3*)
9010 lt_prog_compiler_wl='-Wl,'
9011 lt_prog_compiler_pic='-KPIC'
9012 lt_prog_compiler_static='-Bstatic'
9013 ;;
9014
9015 sysv4*MP*)
9016 if test -d /usr/nec ;then
9017 lt_prog_compiler_pic='-Kconform_pic'
9018 lt_prog_compiler_static='-Bstatic'
9019 fi
9020 ;;
9021
9022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9023 lt_prog_compiler_wl='-Wl,'
9024 lt_prog_compiler_pic='-KPIC'
9025 lt_prog_compiler_static='-Bstatic'
9026 ;;
9027
9028 unicos*)
9029 lt_prog_compiler_wl='-Wl,'
9030 lt_prog_compiler_can_build_shared=no
9031 ;;
9032
9033 uts4*)
9034 lt_prog_compiler_pic='-pic'
9035 lt_prog_compiler_static='-Bstatic'
9036 ;;
9037
9038 *)
9039 lt_prog_compiler_can_build_shared=no
9040 ;;
9041 esac
9042 fi
9043
9044 case $host_os in
9045 # For platforms which do not support PIC, -DPIC is meaningless:
9046 *djgpp*)
9047 lt_prog_compiler_pic=
9048 ;;
9049 *)
9050 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9051 ;;
9052 esac
9053
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9055 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9056 if ${lt_cv_prog_compiler_pic+:} false; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9060 fi
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9062 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9063 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9064
9065 #
9066 # Check to make sure the PIC flag actually works.
9067 #
9068 if test -n "$lt_prog_compiler_pic"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9070 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9071 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 lt_cv_prog_compiler_pic_works=no
9075 ac_outfile=conftest.$ac_objext
9076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9077 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9078 # Insert the option either (1) after the last *FLAGS variable, or
9079 # (2) before a word containing "conftest.", or (3) at the end.
9080 # Note that $ac_compile itself does not contain backslashes and begins
9081 # with a dollar sign (not a hyphen), so the echo should work correctly.
9082 # The option is referenced via a variable to avoid confusing sed.
9083 lt_compile=`echo "$ac_compile" | $SED \
9084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9086 -e 's:$: $lt_compiler_flag:'`
9087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9088 (eval "$lt_compile" 2>conftest.err)
9089 ac_status=$?
9090 cat conftest.err >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 if (exit $ac_status) && test -s "$ac_outfile"; then
9093 # The compiler can only warn and ignore the option if not recognized
9094 # So say no if there are warnings other than the usual output.
9095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9097 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9098 lt_cv_prog_compiler_pic_works=yes
9099 fi
9100 fi
9101 $RM conftest*
9102
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9105 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9106
9107 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9108 case $lt_prog_compiler_pic in
9109 "" | " "*) ;;
9110 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9111 esac
9112 else
9113 lt_prog_compiler_pic=
9114 lt_prog_compiler_can_build_shared=no
9115 fi
9116
9117 fi
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129 #
9130 # Check to make sure the static flag actually works.
9131 #
9132 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9134 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9135 if ${lt_cv_prog_compiler_static_works+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 lt_cv_prog_compiler_static_works=no
9139 save_LDFLAGS="$LDFLAGS"
9140 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9141 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9142 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9143 # The linker can only warn and ignore the option if not recognized
9144 # So say no if there are warnings
9145 if test -s conftest.err; then
9146 # Append any errors to the config.log.
9147 cat conftest.err 1>&5
9148 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9150 if diff conftest.exp conftest.er2 >/dev/null; then
9151 lt_cv_prog_compiler_static_works=yes
9152 fi
9153 else
9154 lt_cv_prog_compiler_static_works=yes
9155 fi
9156 fi
9157 $RM -r conftest*
9158 LDFLAGS="$save_LDFLAGS"
9159
9160 fi
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9162 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9163
9164 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9165 :
9166 else
9167 lt_prog_compiler_static=
9168 fi
9169
9170
9171
9172
9173
9174
9175
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9177 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9178 if ${lt_cv_prog_compiler_c_o+:} false; then :
9179 $as_echo_n "(cached) " >&6
9180 else
9181 lt_cv_prog_compiler_c_o=no
9182 $RM -r conftest 2>/dev/null
9183 mkdir conftest
9184 cd conftest
9185 mkdir out
9186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9187
9188 lt_compiler_flag="-o out/conftest2.$ac_objext"
9189 # Insert the option either (1) after the last *FLAGS variable, or
9190 # (2) before a word containing "conftest.", or (3) at the end.
9191 # Note that $ac_compile itself does not contain backslashes and begins
9192 # with a dollar sign (not a hyphen), so the echo should work correctly.
9193 lt_compile=`echo "$ac_compile" | $SED \
9194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9196 -e 's:$: $lt_compiler_flag:'`
9197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9198 (eval "$lt_compile" 2>out/conftest.err)
9199 ac_status=$?
9200 cat out/conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9203 then
9204 # The compiler can only warn and ignore the option if not recognized
9205 # So say no if there are warnings
9206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9207 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9208 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9209 lt_cv_prog_compiler_c_o=yes
9210 fi
9211 fi
9212 chmod u+w . 2>&5
9213 $RM conftest*
9214 # SGI C++ compiler will create directory out/ii_files/ for
9215 # template instantiation
9216 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9217 $RM out/* && rmdir out
9218 cd ..
9219 $RM -r conftest
9220 $RM conftest*
9221
9222 fi
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9224 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9225
9226
9227
9228
9229
9230
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9232 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9233 if ${lt_cv_prog_compiler_c_o+:} false; then :
9234 $as_echo_n "(cached) " >&6
9235 else
9236 lt_cv_prog_compiler_c_o=no
9237 $RM -r conftest 2>/dev/null
9238 mkdir conftest
9239 cd conftest
9240 mkdir out
9241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9242
9243 lt_compiler_flag="-o out/conftest2.$ac_objext"
9244 # Insert the option either (1) after the last *FLAGS variable, or
9245 # (2) before a word containing "conftest.", or (3) at the end.
9246 # Note that $ac_compile itself does not contain backslashes and begins
9247 # with a dollar sign (not a hyphen), so the echo should work correctly.
9248 lt_compile=`echo "$ac_compile" | $SED \
9249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9251 -e 's:$: $lt_compiler_flag:'`
9252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9253 (eval "$lt_compile" 2>out/conftest.err)
9254 ac_status=$?
9255 cat out/conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9258 then
9259 # The compiler can only warn and ignore the option if not recognized
9260 # So say no if there are warnings
9261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9262 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9263 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9264 lt_cv_prog_compiler_c_o=yes
9265 fi
9266 fi
9267 chmod u+w . 2>&5
9268 $RM conftest*
9269 # SGI C++ compiler will create directory out/ii_files/ for
9270 # template instantiation
9271 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9272 $RM out/* && rmdir out
9273 cd ..
9274 $RM -r conftest
9275 $RM conftest*
9276
9277 fi
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9279 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9280
9281
9282
9283
9284 hard_links="nottested"
9285 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9286 # do not overwrite the value of need_locks provided by the user
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9288 $as_echo_n "checking if we can lock with hard links... " >&6; }
9289 hard_links=yes
9290 $RM conftest*
9291 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9292 touch conftest.a
9293 ln conftest.a conftest.b 2>&5 || hard_links=no
9294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9296 $as_echo "$hard_links" >&6; }
9297 if test "$hard_links" = no; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9299 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9300 need_locks=warn
9301 fi
9302 else
9303 need_locks=no
9304 fi
9305
9306
9307
9308
9309
9310
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9312 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9313
9314 runpath_var=
9315 allow_undefined_flag=
9316 always_export_symbols=no
9317 archive_cmds=
9318 archive_expsym_cmds=
9319 compiler_needs_object=no
9320 enable_shared_with_static_runtimes=no
9321 export_dynamic_flag_spec=
9322 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9323 hardcode_automatic=no
9324 hardcode_direct=no
9325 hardcode_direct_absolute=no
9326 hardcode_libdir_flag_spec=
9327 hardcode_libdir_flag_spec_ld=
9328 hardcode_libdir_separator=
9329 hardcode_minus_L=no
9330 hardcode_shlibpath_var=unsupported
9331 inherit_rpath=no
9332 link_all_deplibs=unknown
9333 module_cmds=
9334 module_expsym_cmds=
9335 old_archive_from_new_cmds=
9336 old_archive_from_expsyms_cmds=
9337 thread_safe_flag_spec=
9338 whole_archive_flag_spec=
9339 # include_expsyms should be a list of space-separated symbols to be *always*
9340 # included in the symbol list
9341 include_expsyms=
9342 # exclude_expsyms can be an extended regexp of symbols to exclude
9343 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9344 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9345 # as well as any symbol that contains `d'.
9346 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9347 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9348 # platforms (ab)use it in PIC code, but their linkers get confused if
9349 # the symbol is explicitly referenced. Since portable code cannot
9350 # rely on this symbol name, it's probably fine to never include it in
9351 # preloaded symbol tables.
9352 # Exclude shared library initialization/finalization symbols.
9353 extract_expsyms_cmds=
9354
9355 case $host_os in
9356 cygwin* | mingw* | pw32* | cegcc*)
9357 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9358 # When not using gcc, we currently assume that we are using
9359 # Microsoft Visual C++.
9360 if test "$GCC" != yes; then
9361 with_gnu_ld=no
9362 fi
9363 ;;
9364 interix*)
9365 # we just hope/assume this is gcc and not c89 (= MSVC++)
9366 with_gnu_ld=yes
9367 ;;
9368 openbsd*)
9369 with_gnu_ld=no
9370 ;;
9371 linux* | k*bsd*-gnu | gnu*)
9372 link_all_deplibs=no
9373 ;;
9374 esac
9375
9376 ld_shlibs=yes
9377
9378 # On some targets, GNU ld is compatible enough with the native linker
9379 # that we're better off using the native interface for both.
9380 lt_use_gnu_ld_interface=no
9381 if test "$with_gnu_ld" = yes; then
9382 case $host_os in
9383 aix*)
9384 # The AIX port of GNU ld has always aspired to compatibility
9385 # with the native linker. However, as the warning in the GNU ld
9386 # block says, versions before 2.19.5* couldn't really create working
9387 # shared libraries, regardless of the interface used.
9388 case `$LD -v 2>&1` in
9389 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9390 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9391 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9392 *)
9393 lt_use_gnu_ld_interface=yes
9394 ;;
9395 esac
9396 ;;
9397 *)
9398 lt_use_gnu_ld_interface=yes
9399 ;;
9400 esac
9401 fi
9402
9403 if test "$lt_use_gnu_ld_interface" = yes; then
9404 # If archive_cmds runs LD, not CC, wlarc should be empty
9405 wlarc='${wl}'
9406
9407 # Set some defaults for GNU ld with shared library support. These
9408 # are reset later if shared libraries are not supported. Putting them
9409 # here allows them to be overridden if necessary.
9410 runpath_var=LD_RUN_PATH
9411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9412 export_dynamic_flag_spec='${wl}--export-dynamic'
9413 # ancient GNU ld didn't support --whole-archive et. al.
9414 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9415 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9416 else
9417 whole_archive_flag_spec=
9418 fi
9419 supports_anon_versioning=no
9420 case `$LD -v 2>&1` in
9421 *GNU\ gold*) supports_anon_versioning=yes ;;
9422 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9423 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9424 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9425 *\ 2.11.*) ;; # other 2.11 versions
9426 *) supports_anon_versioning=yes ;;
9427 esac
9428
9429 # See if GNU ld supports shared libraries.
9430 case $host_os in
9431 aix[3-9]*)
9432 # On AIX/PPC, the GNU linker is very broken
9433 if test "$host_cpu" != ia64; then
9434 ld_shlibs=no
9435 cat <<_LT_EOF 1>&2
9436
9437 *** Warning: the GNU linker, at least up to release 2.19, is reported
9438 *** to be unable to reliably create shared libraries on AIX.
9439 *** Therefore, libtool is disabling shared libraries support. If you
9440 *** really care for shared libraries, you may want to install binutils
9441 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9442 *** You will then need to restart the configuration process.
9443
9444 _LT_EOF
9445 fi
9446 ;;
9447
9448 amigaos*)
9449 case $host_cpu in
9450 powerpc)
9451 # see comment about AmigaOS4 .so support
9452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9453 archive_expsym_cmds=''
9454 ;;
9455 m68k)
9456 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)'
9457 hardcode_libdir_flag_spec='-L$libdir'
9458 hardcode_minus_L=yes
9459 ;;
9460 esac
9461 ;;
9462
9463 beos*)
9464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9465 allow_undefined_flag=unsupported
9466 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9467 # support --undefined. This deserves some investigation. FIXME
9468 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469 else
9470 ld_shlibs=no
9471 fi
9472 ;;
9473
9474 cygwin* | mingw* | pw32* | cegcc*)
9475 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9476 # as there is no search path for DLLs.
9477 hardcode_libdir_flag_spec='-L$libdir'
9478 export_dynamic_flag_spec='${wl}--export-all-symbols'
9479 allow_undefined_flag=unsupported
9480 always_export_symbols=no
9481 enable_shared_with_static_runtimes=yes
9482 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9483 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9484
9485 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9487 # If the export-symbols file already is a .def file (1st line
9488 # is EXPORTS), use it as is; otherwise, prepend...
9489 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9490 cp $export_symbols $output_objdir/$soname.def;
9491 else
9492 echo EXPORTS > $output_objdir/$soname.def;
9493 cat $export_symbols >> $output_objdir/$soname.def;
9494 fi~
9495 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9496 else
9497 ld_shlibs=no
9498 fi
9499 ;;
9500
9501 haiku*)
9502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503 link_all_deplibs=yes
9504 ;;
9505
9506 interix[3-9]*)
9507 hardcode_direct=no
9508 hardcode_shlibpath_var=no
9509 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9510 export_dynamic_flag_spec='${wl}-E'
9511 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9512 # Instead, shared libraries are loaded at an image base (0x10000000 by
9513 # default) and relocated if they conflict, which is a slow very memory
9514 # consuming and fragmenting process. To avoid this, we pick a random,
9515 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9516 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9517 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9518 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'
9519 ;;
9520
9521 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9522 tmp_diet=no
9523 if test "$host_os" = linux-dietlibc; then
9524 case $cc_basename in
9525 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9526 esac
9527 fi
9528 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9529 && test "$tmp_diet" = no
9530 then
9531 tmp_addflag=' $pic_flag'
9532 tmp_sharedflag='-shared'
9533 case $cc_basename,$host_cpu in
9534 pgcc*) # Portland Group C compiler
9535 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'
9536 tmp_addflag=' $pic_flag'
9537 ;;
9538 pgf77* | pgf90* | pgf95* | pgfortran*)
9539 # Portland Group f77 and f90 compilers
9540 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'
9541 tmp_addflag=' $pic_flag -Mnomain' ;;
9542 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9543 tmp_addflag=' -i_dynamic' ;;
9544 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9545 tmp_addflag=' -i_dynamic -nofor_main' ;;
9546 ifc* | ifort*) # Intel Fortran compiler
9547 tmp_addflag=' -nofor_main' ;;
9548 lf95*) # Lahey Fortran 8.1
9549 whole_archive_flag_spec=
9550 tmp_sharedflag='--shared' ;;
9551 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9552 tmp_sharedflag='-qmkshrobj'
9553 tmp_addflag= ;;
9554 nvcc*) # Cuda Compiler Driver 2.2
9555 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'
9556 compiler_needs_object=yes
9557 ;;
9558 esac
9559 case `$CC -V 2>&1 | sed 5q` in
9560 *Sun\ C*) # Sun C 5.9
9561 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'
9562 compiler_needs_object=yes
9563 tmp_sharedflag='-G' ;;
9564 *Sun\ F*) # Sun Fortran 8.3
9565 tmp_sharedflag='-G' ;;
9566 esac
9567 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568
9569 if test "x$supports_anon_versioning" = xyes; then
9570 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9572 echo "local: *; };" >> $output_objdir/$libname.ver~
9573 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9574 fi
9575
9576 case $cc_basename in
9577 xlf* | bgf* | bgxlf* | mpixlf*)
9578 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9579 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9580 hardcode_libdir_flag_spec=
9581 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9582 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9583 if test "x$supports_anon_versioning" = xyes; then
9584 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9585 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9586 echo "local: *; };" >> $output_objdir/$libname.ver~
9587 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9588 fi
9589 ;;
9590 esac
9591 else
9592 ld_shlibs=no
9593 fi
9594 ;;
9595
9596 netbsd* | netbsdelf*-gnu)
9597 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9598 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9599 wlarc=
9600 else
9601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9602 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9603 fi
9604 ;;
9605
9606 solaris*)
9607 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9608 ld_shlibs=no
9609 cat <<_LT_EOF 1>&2
9610
9611 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9612 *** create shared libraries on Solaris systems. Therefore, libtool
9613 *** is disabling shared libraries support. We urge you to upgrade GNU
9614 *** binutils to release 2.9.1 or newer. Another option is to modify
9615 *** your PATH or compiler configuration so that the native linker is
9616 *** used, and then restart.
9617
9618 _LT_EOF
9619 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9621 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9622 else
9623 ld_shlibs=no
9624 fi
9625 ;;
9626
9627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9628 case `$LD -v 2>&1` in
9629 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9630 ld_shlibs=no
9631 cat <<_LT_EOF 1>&2
9632
9633 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9634 *** reliably create shared libraries on SCO systems. Therefore, libtool
9635 *** is disabling shared libraries support. We urge you to upgrade GNU
9636 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9637 *** your PATH or compiler configuration so that the native linker is
9638 *** used, and then restart.
9639
9640 _LT_EOF
9641 ;;
9642 *)
9643 # For security reasons, it is highly recommended that you always
9644 # use absolute paths for naming shared libraries, and exclude the
9645 # DT_RUNPATH tag from executables and libraries. But doing so
9646 # requires that you compile everything twice, which is a pain.
9647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9651 else
9652 ld_shlibs=no
9653 fi
9654 ;;
9655 esac
9656 ;;
9657
9658 sunos4*)
9659 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9660 wlarc=
9661 hardcode_direct=yes
9662 hardcode_shlibpath_var=no
9663 ;;
9664
9665 *)
9666 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9667 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9668 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9669 else
9670 ld_shlibs=no
9671 fi
9672 ;;
9673 esac
9674
9675 if test "$ld_shlibs" = no; then
9676 runpath_var=
9677 hardcode_libdir_flag_spec=
9678 export_dynamic_flag_spec=
9679 whole_archive_flag_spec=
9680 fi
9681 else
9682 # PORTME fill in a description of your system's linker (not GNU ld)
9683 case $host_os in
9684 aix3*)
9685 allow_undefined_flag=unsupported
9686 always_export_symbols=yes
9687 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'
9688 # Note: this linker hardcodes the directories in LIBPATH if there
9689 # are no directories specified by -L.
9690 hardcode_minus_L=yes
9691 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9692 # Neither direct hardcoding nor static linking is supported with a
9693 # broken collect2.
9694 hardcode_direct=unsupported
9695 fi
9696 ;;
9697
9698 aix[4-9]*)
9699 if test "$host_cpu" = ia64; then
9700 # On IA64, the linker does run time linking by default, so we don't
9701 # have to do anything special.
9702 aix_use_runtimelinking=no
9703 exp_sym_flag='-Bexport'
9704 no_entry_flag=""
9705 else
9706 # If we're using GNU nm, then we don't want the "-C" option.
9707 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9708 # Also, AIX nm treats weak defined symbols like other global
9709 # defined symbols, whereas GNU nm marks them as "W".
9710 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9711 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'
9712 else
9713 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'
9714 fi
9715 aix_use_runtimelinking=no
9716
9717 # Test if we are trying to use run time linking or normal
9718 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9719 # need to do runtime linking.
9720 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9721 for ld_flag in $LDFLAGS; do
9722 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9723 aix_use_runtimelinking=yes
9724 break
9725 fi
9726 done
9727 ;;
9728 esac
9729
9730 exp_sym_flag='-bexport'
9731 no_entry_flag='-bnoentry'
9732 fi
9733
9734 # When large executables or shared objects are built, AIX ld can
9735 # have problems creating the table of contents. If linking a library
9736 # or program results in "error TOC overflow" add -mminimal-toc to
9737 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9738 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9739
9740 archive_cmds=''
9741 hardcode_direct=yes
9742 hardcode_direct_absolute=yes
9743 hardcode_libdir_separator=':'
9744 link_all_deplibs=yes
9745 file_list_spec='${wl}-f,'
9746
9747 if test "$GCC" = yes; then
9748 case $host_os in aix4.[012]|aix4.[012].*)
9749 # We only want to do this on AIX 4.2 and lower, the check
9750 # below for broken collect2 doesn't work under 4.3+
9751 collect2name=`${CC} -print-prog-name=collect2`
9752 if test -f "$collect2name" &&
9753 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9754 then
9755 # We have reworked collect2
9756 :
9757 else
9758 # We have old collect2
9759 hardcode_direct=unsupported
9760 # It fails to find uninstalled libraries when the uninstalled
9761 # path is not listed in the libpath. Setting hardcode_minus_L
9762 # to unsupported forces relinking
9763 hardcode_minus_L=yes
9764 hardcode_libdir_flag_spec='-L$libdir'
9765 hardcode_libdir_separator=
9766 fi
9767 ;;
9768 esac
9769 shared_flag='-shared'
9770 if test "$aix_use_runtimelinking" = yes; then
9771 shared_flag="$shared_flag "'${wl}-G'
9772 fi
9773 link_all_deplibs=no
9774 else
9775 # not using gcc
9776 if test "$host_cpu" = ia64; then
9777 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9778 # chokes on -Wl,-G. The following line is correct:
9779 shared_flag='-G'
9780 else
9781 if test "$aix_use_runtimelinking" = yes; then
9782 shared_flag='${wl}-G'
9783 else
9784 shared_flag='${wl}-bM:SRE'
9785 fi
9786 fi
9787 fi
9788
9789 export_dynamic_flag_spec='${wl}-bexpall'
9790 # It seems that -bexpall does not export symbols beginning with
9791 # underscore (_), so it is better to generate a list of symbols to export.
9792 always_export_symbols=yes
9793 if test "$aix_use_runtimelinking" = yes; then
9794 # Warning - without using the other runtime loading flags (-brtl),
9795 # -berok will link without error, but may produce a broken library.
9796 allow_undefined_flag='-berok'
9797 # Determine the default libpath from the value encoded in an
9798 # empty executable.
9799 if test "${lt_cv_aix_libpath+set}" = set; then
9800 aix_libpath=$lt_cv_aix_libpath
9801 else
9802 if ${lt_cv_aix_libpath_+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807
9808 int
9809 main ()
9810 {
9811
9812 ;
9813 return 0;
9814 }
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817
9818 lt_aix_libpath_sed='
9819 /Import File Strings/,/^$/ {
9820 /^0/ {
9821 s/^0 *\([^ ]*\) *$/\1/
9822 p
9823 }
9824 }'
9825 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9826 # Check for a 64-bit object if we didn't find anything.
9827 if test -z "$lt_cv_aix_libpath_"; then
9828 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9829 fi
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 if test -z "$lt_cv_aix_libpath_"; then
9834 lt_cv_aix_libpath_="/usr/lib:/lib"
9835 fi
9836
9837 fi
9838
9839 aix_libpath=$lt_cv_aix_libpath_
9840 fi
9841
9842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9843 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"
9844 else
9845 if test "$host_cpu" = ia64; then
9846 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9847 allow_undefined_flag="-z nodefs"
9848 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"
9849 else
9850 # Determine the default libpath from the value encoded in an
9851 # empty executable.
9852 if test "${lt_cv_aix_libpath+set}" = set; then
9853 aix_libpath=$lt_cv_aix_libpath
9854 else
9855 if ${lt_cv_aix_libpath_+:} false; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9860
9861 int
9862 main ()
9863 {
9864
9865 ;
9866 return 0;
9867 }
9868 _ACEOF
9869 if ac_fn_c_try_link "$LINENO"; then :
9870
9871 lt_aix_libpath_sed='
9872 /Import File Strings/,/^$/ {
9873 /^0/ {
9874 s/^0 *\([^ ]*\) *$/\1/
9875 p
9876 }
9877 }'
9878 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9879 # Check for a 64-bit object if we didn't find anything.
9880 if test -z "$lt_cv_aix_libpath_"; then
9881 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9882 fi
9883 fi
9884 rm -f core conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9886 if test -z "$lt_cv_aix_libpath_"; then
9887 lt_cv_aix_libpath_="/usr/lib:/lib"
9888 fi
9889
9890 fi
9891
9892 aix_libpath=$lt_cv_aix_libpath_
9893 fi
9894
9895 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9896 # Warning - without using the other run time loading flags,
9897 # -berok will link without error, but may produce a broken library.
9898 no_undefined_flag=' ${wl}-bernotok'
9899 allow_undefined_flag=' ${wl}-berok'
9900 if test "$with_gnu_ld" = yes; then
9901 # We only use this code for GNU lds that support --whole-archive.
9902 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9903 else
9904 # Exported symbols can be pulled into shared objects from archives
9905 whole_archive_flag_spec='$convenience'
9906 fi
9907 archive_cmds_need_lc=yes
9908 # This is similar to how AIX traditionally builds its shared libraries.
9909 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'
9910 fi
9911 fi
9912 ;;
9913
9914 amigaos*)
9915 case $host_cpu in
9916 powerpc)
9917 # see comment about AmigaOS4 .so support
9918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9919 archive_expsym_cmds=''
9920 ;;
9921 m68k)
9922 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)'
9923 hardcode_libdir_flag_spec='-L$libdir'
9924 hardcode_minus_L=yes
9925 ;;
9926 esac
9927 ;;
9928
9929 bsdi[45]*)
9930 export_dynamic_flag_spec=-rdynamic
9931 ;;
9932
9933 cygwin* | mingw* | pw32* | cegcc*)
9934 # When not using gcc, we currently assume that we are using
9935 # Microsoft Visual C++.
9936 # hardcode_libdir_flag_spec is actually meaningless, as there is
9937 # no search path for DLLs.
9938 case $cc_basename in
9939 cl*)
9940 # Native MSVC
9941 hardcode_libdir_flag_spec=' '
9942 allow_undefined_flag=unsupported
9943 always_export_symbols=yes
9944 file_list_spec='@'
9945 # Tell ltmain to make .lib files, not .a files.
9946 libext=lib
9947 # Tell ltmain to make .dll files, not .so files.
9948 shrext_cmds=".dll"
9949 # FIXME: Setting linknames here is a bad hack.
9950 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9951 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9952 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9953 else
9954 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9955 fi~
9956 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9957 linknames='
9958 # The linker will not automatically build a static lib if we build a DLL.
9959 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9960 enable_shared_with_static_runtimes=yes
9961 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9962 # Don't use ranlib
9963 old_postinstall_cmds='chmod 644 $oldlib'
9964 postlink_cmds='lt_outputfile="@OUTPUT@"~
9965 lt_tool_outputfile="@TOOL_OUTPUT@"~
9966 case $lt_outputfile in
9967 *.exe|*.EXE) ;;
9968 *)
9969 lt_outputfile="$lt_outputfile.exe"
9970 lt_tool_outputfile="$lt_tool_outputfile.exe"
9971 ;;
9972 esac~
9973 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9974 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9975 $RM "$lt_outputfile.manifest";
9976 fi'
9977 ;;
9978 *)
9979 # Assume MSVC wrapper
9980 hardcode_libdir_flag_spec=' '
9981 allow_undefined_flag=unsupported
9982 # Tell ltmain to make .lib files, not .a files.
9983 libext=lib
9984 # Tell ltmain to make .dll files, not .so files.
9985 shrext_cmds=".dll"
9986 # FIXME: Setting linknames here is a bad hack.
9987 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9988 # The linker will automatically build a .lib file if we build a DLL.
9989 old_archive_from_new_cmds='true'
9990 # FIXME: Should let the user specify the lib program.
9991 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9992 enable_shared_with_static_runtimes=yes
9993 ;;
9994 esac
9995 ;;
9996
9997 darwin* | rhapsody*)
9998
9999
10000 archive_cmds_need_lc=no
10001 hardcode_direct=no
10002 hardcode_automatic=yes
10003 hardcode_shlibpath_var=unsupported
10004 if test "$lt_cv_ld_force_load" = "yes"; then
10005 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\"`'
10006 else
10007 whole_archive_flag_spec=''
10008 fi
10009 link_all_deplibs=yes
10010 allow_undefined_flag="$_lt_dar_allow_undefined"
10011 case $cc_basename in
10012 ifort*) _lt_dar_can_shared=yes ;;
10013 *) _lt_dar_can_shared=$GCC ;;
10014 esac
10015 if test "$_lt_dar_can_shared" = "yes"; then
10016 output_verbose_link_cmd=func_echo_all
10017 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10018 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10019 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}"
10020 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}"
10021
10022 else
10023 ld_shlibs=no
10024 fi
10025
10026 ;;
10027
10028 dgux*)
10029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030 hardcode_libdir_flag_spec='-L$libdir'
10031 hardcode_shlibpath_var=no
10032 ;;
10033
10034 freebsd1*)
10035 ld_shlibs=no
10036 ;;
10037
10038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10039 # support. Future versions do this automatically, but an explicit c++rt0.o
10040 # does not break anything, and helps significantly (at the cost of a little
10041 # extra space).
10042 freebsd2.2*)
10043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10044 hardcode_libdir_flag_spec='-R$libdir'
10045 hardcode_direct=yes
10046 hardcode_shlibpath_var=no
10047 ;;
10048
10049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10050 freebsd2*)
10051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10052 hardcode_direct=yes
10053 hardcode_minus_L=yes
10054 hardcode_shlibpath_var=no
10055 ;;
10056
10057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10058 freebsd* | dragonfly*)
10059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10060 hardcode_libdir_flag_spec='-R$libdir'
10061 hardcode_direct=yes
10062 hardcode_shlibpath_var=no
10063 ;;
10064
10065 hpux9*)
10066 if test "$GCC" = yes; then
10067 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10068 else
10069 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'
10070 fi
10071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10072 hardcode_libdir_separator=:
10073 hardcode_direct=yes
10074
10075 # hardcode_minus_L: Not really in the search PATH,
10076 # but as the default location of the library.
10077 hardcode_minus_L=yes
10078 export_dynamic_flag_spec='${wl}-E'
10079 ;;
10080
10081 hpux10*)
10082 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10083 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10084 else
10085 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10086 fi
10087 if test "$with_gnu_ld" = no; then
10088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10089 hardcode_libdir_flag_spec_ld='+b $libdir'
10090 hardcode_libdir_separator=:
10091 hardcode_direct=yes
10092 hardcode_direct_absolute=yes
10093 export_dynamic_flag_spec='${wl}-E'
10094 # hardcode_minus_L: Not really in the search PATH,
10095 # but as the default location of the library.
10096 hardcode_minus_L=yes
10097 fi
10098 ;;
10099
10100 hpux11*)
10101 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10102 case $host_cpu in
10103 hppa*64*)
10104 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10105 ;;
10106 ia64*)
10107 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10108 ;;
10109 *)
10110 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10111 ;;
10112 esac
10113 else
10114 case $host_cpu in
10115 hppa*64*)
10116 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 ;;
10118 ia64*)
10119 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10120 ;;
10121 *)
10122
10123 # Older versions of the 11.00 compiler do not understand -b yet
10124 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10126 $as_echo_n "checking if $CC understands -b... " >&6; }
10127 if ${lt_cv_prog_compiler__b+:} false; then :
10128 $as_echo_n "(cached) " >&6
10129 else
10130 lt_cv_prog_compiler__b=no
10131 save_LDFLAGS="$LDFLAGS"
10132 LDFLAGS="$LDFLAGS -b"
10133 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10135 # The linker can only warn and ignore the option if not recognized
10136 # So say no if there are warnings
10137 if test -s conftest.err; then
10138 # Append any errors to the config.log.
10139 cat conftest.err 1>&5
10140 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10142 if diff conftest.exp conftest.er2 >/dev/null; then
10143 lt_cv_prog_compiler__b=yes
10144 fi
10145 else
10146 lt_cv_prog_compiler__b=yes
10147 fi
10148 fi
10149 $RM -r conftest*
10150 LDFLAGS="$save_LDFLAGS"
10151
10152 fi
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10154 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10155
10156 if test x"$lt_cv_prog_compiler__b" = xyes; then
10157 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10158 else
10159 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10160 fi
10161
10162 ;;
10163 esac
10164 fi
10165 if test "$with_gnu_ld" = no; then
10166 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10167 hardcode_libdir_separator=:
10168
10169 case $host_cpu in
10170 hppa*64*|ia64*)
10171 hardcode_direct=no
10172 hardcode_shlibpath_var=no
10173 ;;
10174 *)
10175 hardcode_direct=yes
10176 hardcode_direct_absolute=yes
10177 export_dynamic_flag_spec='${wl}-E'
10178
10179 # hardcode_minus_L: Not really in the search PATH,
10180 # but as the default location of the library.
10181 hardcode_minus_L=yes
10182 ;;
10183 esac
10184 fi
10185 ;;
10186
10187 irix5* | irix6* | nonstopux*)
10188 if test "$GCC" = yes; then
10189 archive_cmds='$CC -shared $pic_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'
10190 # Try to use the -exported_symbol ld option, if it does not
10191 # work, assume that -exports_file does not work either and
10192 # implicitly export all symbols.
10193 # This should be the same for all languages, so no per-tag cache variable.
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10195 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10196 if ${lt_cv_irix_exported_symbol+:} false; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 save_LDFLAGS="$LDFLAGS"
10200 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203 int foo (void) { return 0; }
10204 _ACEOF
10205 if ac_fn_c_try_link "$LINENO"; then :
10206 lt_cv_irix_exported_symbol=yes
10207 else
10208 lt_cv_irix_exported_symbol=no
10209 fi
10210 rm -f core conftest.err conftest.$ac_objext \
10211 conftest$ac_exeext conftest.$ac_ext
10212 LDFLAGS="$save_LDFLAGS"
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10215 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10216 if test "$lt_cv_irix_exported_symbol" = yes; then
10217 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
10218 fi
10219 else
10220 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'
10221 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'
10222 fi
10223 archive_cmds_need_lc='no'
10224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10225 hardcode_libdir_separator=:
10226 inherit_rpath=yes
10227 link_all_deplibs=yes
10228 ;;
10229
10230 netbsd* | netbsdelf*-gnu)
10231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10233 else
10234 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10235 fi
10236 hardcode_libdir_flag_spec='-R$libdir'
10237 hardcode_direct=yes
10238 hardcode_shlibpath_var=no
10239 ;;
10240
10241 newsos6)
10242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243 hardcode_direct=yes
10244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10245 hardcode_libdir_separator=:
10246 hardcode_shlibpath_var=no
10247 ;;
10248
10249 *nto* | *qnx*)
10250 ;;
10251
10252 openbsd*)
10253 if test -f /usr/libexec/ld.so; then
10254 hardcode_direct=yes
10255 hardcode_shlibpath_var=no
10256 hardcode_direct_absolute=yes
10257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10258 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10260 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10261 export_dynamic_flag_spec='${wl}-E'
10262 else
10263 case $host_os in
10264 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10266 hardcode_libdir_flag_spec='-R$libdir'
10267 ;;
10268 *)
10269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10271 ;;
10272 esac
10273 fi
10274 else
10275 ld_shlibs=no
10276 fi
10277 ;;
10278
10279 os2*)
10280 hardcode_libdir_flag_spec='-L$libdir'
10281 hardcode_minus_L=yes
10282 allow_undefined_flag=unsupported
10283 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'
10284 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10285 ;;
10286
10287 osf3*)
10288 if test "$GCC" = yes; then
10289 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10290 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'
10291 else
10292 allow_undefined_flag=' -expect_unresolved \*'
10293 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'
10294 fi
10295 archive_cmds_need_lc='no'
10296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10297 hardcode_libdir_separator=:
10298 ;;
10299
10300 osf4* | osf5*) # as osf3* with the addition of -msym flag
10301 if test "$GCC" = yes; then
10302 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10303 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
10304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10305 else
10306 allow_undefined_flag=' -expect_unresolved \*'
10307 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'
10308 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~
10309 $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'
10310
10311 # Both c and cxx compiler support -rpath directly
10312 hardcode_libdir_flag_spec='-rpath $libdir'
10313 fi
10314 archive_cmds_need_lc='no'
10315 hardcode_libdir_separator=:
10316 ;;
10317
10318 solaris*)
10319 no_undefined_flag=' -z defs'
10320 if test "$GCC" = yes; then
10321 wlarc='${wl}'
10322 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10323 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10324 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10325 else
10326 case `$CC -V 2>&1` in
10327 *"Compilers 5.0"*)
10328 wlarc=''
10329 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10330 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10331 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10332 ;;
10333 *)
10334 wlarc='${wl}'
10335 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10336 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10337 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10338 ;;
10339 esac
10340 fi
10341 hardcode_libdir_flag_spec='-R$libdir'
10342 hardcode_shlibpath_var=no
10343 case $host_os in
10344 solaris2.[0-5] | solaris2.[0-5].*) ;;
10345 *)
10346 # The compiler driver will combine and reorder linker options,
10347 # but understands `-z linker_flag'. GCC discards it without `$wl',
10348 # but is careful enough not to reorder.
10349 # Supported since Solaris 2.6 (maybe 2.5.1?)
10350 if test "$GCC" = yes; then
10351 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10352 else
10353 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10354 fi
10355 ;;
10356 esac
10357 link_all_deplibs=yes
10358 ;;
10359
10360 sunos4*)
10361 if test "x$host_vendor" = xsequent; then
10362 # Use $CC to link under sequent, because it throws in some extra .o
10363 # files that make .init and .fini sections work.
10364 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10365 else
10366 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10367 fi
10368 hardcode_libdir_flag_spec='-L$libdir'
10369 hardcode_direct=yes
10370 hardcode_minus_L=yes
10371 hardcode_shlibpath_var=no
10372 ;;
10373
10374 sysv4)
10375 case $host_vendor in
10376 sni)
10377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_direct=yes # is this really true???
10379 ;;
10380 siemens)
10381 ## LD is ld it makes a PLAMLIB
10382 ## CC just makes a GrossModule.
10383 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10384 reload_cmds='$CC -r -o $output$reload_objs'
10385 hardcode_direct=no
10386 ;;
10387 motorola)
10388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10389 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10390 ;;
10391 esac
10392 runpath_var='LD_RUN_PATH'
10393 hardcode_shlibpath_var=no
10394 ;;
10395
10396 sysv4.3*)
10397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10398 hardcode_shlibpath_var=no
10399 export_dynamic_flag_spec='-Bexport'
10400 ;;
10401
10402 sysv4*MP*)
10403 if test -d /usr/nec; then
10404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10405 hardcode_shlibpath_var=no
10406 runpath_var=LD_RUN_PATH
10407 hardcode_runpath_var=yes
10408 ld_shlibs=yes
10409 fi
10410 ;;
10411
10412 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10413 no_undefined_flag='${wl}-z,text'
10414 archive_cmds_need_lc=no
10415 hardcode_shlibpath_var=no
10416 runpath_var='LD_RUN_PATH'
10417
10418 if test "$GCC" = yes; then
10419 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 else
10422 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 fi
10425 ;;
10426
10427 sysv5* | sco3.2v5* | sco5v6*)
10428 # Note: We can NOT use -z defs as we might desire, because we do not
10429 # link with -lc, and that would cause any symbols used from libc to
10430 # always be unresolved, which means just about no library would
10431 # ever link correctly. If we're not using GNU ld we use -z text
10432 # though, which does catch some bad symbols but isn't as heavy-handed
10433 # as -z defs.
10434 no_undefined_flag='${wl}-z,text'
10435 allow_undefined_flag='${wl}-z,nodefs'
10436 archive_cmds_need_lc=no
10437 hardcode_shlibpath_var=no
10438 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10439 hardcode_libdir_separator=':'
10440 link_all_deplibs=yes
10441 export_dynamic_flag_spec='${wl}-Bexport'
10442 runpath_var='LD_RUN_PATH'
10443
10444 if test "$GCC" = yes; then
10445 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447 else
10448 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 fi
10451 ;;
10452
10453 uts4*)
10454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10455 hardcode_libdir_flag_spec='-L$libdir'
10456 hardcode_shlibpath_var=no
10457 ;;
10458
10459 *)
10460 ld_shlibs=no
10461 ;;
10462 esac
10463
10464 if test x$host_vendor = xsni; then
10465 case $host in
10466 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10467 export_dynamic_flag_spec='${wl}-Blargedynsym'
10468 ;;
10469 esac
10470 fi
10471 fi
10472
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10474 $as_echo "$ld_shlibs" >&6; }
10475 test "$ld_shlibs" = no && can_build_shared=no
10476
10477 with_gnu_ld=$with_gnu_ld
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493 #
10494 # Do we need to explicitly link libc?
10495 #
10496 case "x$archive_cmds_need_lc" in
10497 x|xyes)
10498 # Assume -lc should be added
10499 archive_cmds_need_lc=yes
10500
10501 if test "$enable_shared" = yes && test "$GCC" = yes; then
10502 case $archive_cmds in
10503 *'~'*)
10504 # FIXME: we may have to deal with multi-command sequences.
10505 ;;
10506 '$CC '*)
10507 # Test whether the compiler implicitly links with -lc since on some
10508 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10509 # to ld, don't add -lc before -lgcc.
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10511 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10512 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 $RM conftest*
10516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10517
10518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10519 (eval $ac_compile) 2>&5
10520 ac_status=$?
10521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10522 test $ac_status = 0; } 2>conftest.err; then
10523 soname=conftest
10524 lib=conftest
10525 libobjs=conftest.$ac_objext
10526 deplibs=
10527 wl=$lt_prog_compiler_wl
10528 pic_flag=$lt_prog_compiler_pic
10529 compiler_flags=-v
10530 linker_flags=-v
10531 verstring=
10532 output_objdir=.
10533 libname=conftest
10534 lt_save_allow_undefined_flag=$allow_undefined_flag
10535 allow_undefined_flag=
10536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10537 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10538 ac_status=$?
10539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10540 test $ac_status = 0; }
10541 then
10542 lt_cv_archive_cmds_need_lc=no
10543 else
10544 lt_cv_archive_cmds_need_lc=yes
10545 fi
10546 allow_undefined_flag=$lt_save_allow_undefined_flag
10547 else
10548 cat conftest.err 1>&5
10549 fi
10550 $RM conftest*
10551
10552 fi
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10554 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10555 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10556 ;;
10557 esac
10558 fi
10559 ;;
10560 esac
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10719 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10720
10721 if test "$GCC" = yes; then
10722 case $host_os in
10723 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10724 *) lt_awk_arg="/^libraries:/" ;;
10725 esac
10726 case $host_os in
10727 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10728 *) lt_sed_strip_eq="s,=/,/,g" ;;
10729 esac
10730 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10731 case $lt_search_path_spec in
10732 *\;*)
10733 # if the path contains ";" then we assume it to be the separator
10734 # otherwise default to the standard path separator (i.e. ":") - it is
10735 # assumed that no part of a normal pathname contains ";" but that should
10736 # okay in the real world where ";" in dirpaths is itself problematic.
10737 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10738 ;;
10739 *)
10740 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10741 ;;
10742 esac
10743 # Ok, now we have the path, separated by spaces, we can step through it
10744 # and add multilib dir if necessary.
10745 lt_tmp_lt_search_path_spec=
10746 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10747 for lt_sys_path in $lt_search_path_spec; do
10748 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10749 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10750 else
10751 test -d "$lt_sys_path" && \
10752 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10753 fi
10754 done
10755 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10756 BEGIN {RS=" "; FS="/|\n";} {
10757 lt_foo="";
10758 lt_count=0;
10759 for (lt_i = NF; lt_i > 0; lt_i--) {
10760 if ($lt_i != "" && $lt_i != ".") {
10761 if ($lt_i == "..") {
10762 lt_count++;
10763 } else {
10764 if (lt_count == 0) {
10765 lt_foo="/" $lt_i lt_foo;
10766 } else {
10767 lt_count--;
10768 }
10769 }
10770 }
10771 }
10772 if (lt_foo != "") { lt_freq[lt_foo]++; }
10773 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10774 }'`
10775 # AWK program above erroneously prepends '/' to C:/dos/paths
10776 # for these hosts.
10777 case $host_os in
10778 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10779 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10780 esac
10781 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10782 else
10783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10784 fi
10785 library_names_spec=
10786 libname_spec='lib$name'
10787 soname_spec=
10788 shrext_cmds=".so"
10789 postinstall_cmds=
10790 postuninstall_cmds=
10791 finish_cmds=
10792 finish_eval=
10793 shlibpath_var=
10794 shlibpath_overrides_runpath=unknown
10795 version_type=none
10796 dynamic_linker="$host_os ld.so"
10797 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10798 need_lib_prefix=unknown
10799 hardcode_into_libs=no
10800
10801 # when you set need_version to no, make sure it does not cause -set_version
10802 # flags to be left without arguments
10803 need_version=unknown
10804
10805 case $host_os in
10806 aix3*)
10807 version_type=linux
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10809 shlibpath_var=LIBPATH
10810
10811 # AIX 3 has no versioning support, so we append a major version to the name.
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 ;;
10814
10815 aix[4-9]*)
10816 version_type=linux
10817 need_lib_prefix=no
10818 need_version=no
10819 hardcode_into_libs=yes
10820 if test "$host_cpu" = ia64; then
10821 # AIX 5 supports IA64
10822 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 else
10825 # With GCC up to 2.95.x, collect2 would create an import file
10826 # for dependence libraries. The import file would start with
10827 # the line `#! .'. This would cause the generated library to
10828 # depend on `.', always an invalid library. This was fixed in
10829 # development snapshots of GCC prior to 3.0.
10830 case $host_os in
10831 aix4 | aix4.[01] | aix4.[01].*)
10832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10833 echo ' yes '
10834 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10835 :
10836 else
10837 can_build_shared=no
10838 fi
10839 ;;
10840 esac
10841 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10842 # soname into executable. Probably we can add versioning support to
10843 # collect2, so additional links can be useful in future.
10844 if test "$aix_use_runtimelinking" = yes; then
10845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10846 # instead of lib<name>.a to let people know that these are not
10847 # typical AIX shared libraries.
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 else
10850 # We preserve .a as extension for shared libraries through AIX4.2
10851 # and later when we are not doing run time linking.
10852 library_names_spec='${libname}${release}.a $libname.a'
10853 soname_spec='${libname}${release}${shared_ext}$major'
10854 fi
10855 shlibpath_var=LIBPATH
10856 fi
10857 ;;
10858
10859 amigaos*)
10860 case $host_cpu in
10861 powerpc)
10862 # Since July 2007 AmigaOS4 officially supports .so libraries.
10863 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10865 ;;
10866 m68k)
10867 library_names_spec='$libname.ixlibrary $libname.a'
10868 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10869 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'
10870 ;;
10871 esac
10872 ;;
10873
10874 beos*)
10875 library_names_spec='${libname}${shared_ext}'
10876 dynamic_linker="$host_os ld.so"
10877 shlibpath_var=LIBRARY_PATH
10878 ;;
10879
10880 bsdi[45]*)
10881 version_type=linux
10882 need_version=no
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10888 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10889 # the default ld.so.conf also contains /usr/contrib/lib and
10890 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10891 # libtool to hard-code these into programs
10892 ;;
10893
10894 cygwin* | mingw* | pw32* | cegcc*)
10895 version_type=windows
10896 shrext_cmds=".dll"
10897 need_version=no
10898 need_lib_prefix=no
10899
10900 case $GCC,$cc_basename in
10901 yes,*)
10902 # gcc
10903 library_names_spec='$libname.dll.a'
10904 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10905 postinstall_cmds='base_file=`basename \${file}`~
10906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10907 dldir=$destdir/`dirname \$dlpath`~
10908 test -d \$dldir || mkdir -p \$dldir~
10909 $install_prog $dir/$dlname \$dldir/$dlname~
10910 chmod a+x \$dldir/$dlname~
10911 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10912 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10913 fi'
10914 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10915 dlpath=$dir/\$dldll~
10916 $RM \$dlpath'
10917 shlibpath_overrides_runpath=yes
10918
10919 case $host_os in
10920 cygwin*)
10921 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10922 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10923
10924 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10925 ;;
10926 mingw* | cegcc*)
10927 # MinGW DLLs use traditional 'lib' prefix
10928 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10929 ;;
10930 pw32*)
10931 # pw32 DLLs use 'pw' prefix rather than 'lib'
10932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10933 ;;
10934 esac
10935 dynamic_linker='Win32 ld.exe'
10936 ;;
10937
10938 *,cl*)
10939 # Native MSVC
10940 libname_spec='$name'
10941 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10942 library_names_spec='${libname}.dll.lib'
10943
10944 case $build_os in
10945 mingw*)
10946 sys_lib_search_path_spec=
10947 lt_save_ifs=$IFS
10948 IFS=';'
10949 for lt_path in $LIB
10950 do
10951 IFS=$lt_save_ifs
10952 # Let DOS variable expansion print the short 8.3 style file name.
10953 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10954 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10955 done
10956 IFS=$lt_save_ifs
10957 # Convert to MSYS style.
10958 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10959 ;;
10960 cygwin*)
10961 # Convert to unix form, then to dos form, then back to unix form
10962 # but this time dos style (no spaces!) so that the unix form looks
10963 # like /cygdrive/c/PROGRA~1:/cygdr...
10964 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10965 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10966 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10967 ;;
10968 *)
10969 sys_lib_search_path_spec="$LIB"
10970 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10971 # It is most probably a Windows format PATH.
10972 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10973 else
10974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10975 fi
10976 # FIXME: find the short name or the path components, as spaces are
10977 # common. (e.g. "Program Files" -> "PROGRA~1")
10978 ;;
10979 esac
10980
10981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10982 postinstall_cmds='base_file=`basename \${file}`~
10983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10984 dldir=$destdir/`dirname \$dlpath`~
10985 test -d \$dldir || mkdir -p \$dldir~
10986 $install_prog $dir/$dlname \$dldir/$dlname'
10987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10988 dlpath=$dir/\$dldll~
10989 $RM \$dlpath'
10990 shlibpath_overrides_runpath=yes
10991 dynamic_linker='Win32 link.exe'
10992 ;;
10993
10994 *)
10995 # Assume MSVC wrapper
10996 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10997 dynamic_linker='Win32 ld.exe'
10998 ;;
10999 esac
11000 # FIXME: first we should search . and the directory the executable is in
11001 shlibpath_var=PATH
11002 ;;
11003
11004 darwin* | rhapsody*)
11005 dynamic_linker="$host_os dyld"
11006 version_type=darwin
11007 need_lib_prefix=no
11008 need_version=no
11009 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11010 soname_spec='${libname}${release}${major}$shared_ext'
11011 shlibpath_overrides_runpath=yes
11012 shlibpath_var=DYLD_LIBRARY_PATH
11013 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11014
11015 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11016 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11017 ;;
11018
11019 dgux*)
11020 version_type=linux
11021 need_lib_prefix=no
11022 need_version=no
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 shlibpath_var=LD_LIBRARY_PATH
11026 ;;
11027
11028 freebsd1*)
11029 dynamic_linker=no
11030 ;;
11031
11032 freebsd* | dragonfly*)
11033 # DragonFly does not have aout. When/if they implement a new
11034 # versioning mechanism, adjust this.
11035 if test -x /usr/bin/objformat; then
11036 objformat=`/usr/bin/objformat`
11037 else
11038 case $host_os in
11039 freebsd[123]*) objformat=aout ;;
11040 *) objformat=elf ;;
11041 esac
11042 fi
11043 version_type=freebsd-$objformat
11044 case $version_type in
11045 freebsd-elf*)
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11047 need_version=no
11048 need_lib_prefix=no
11049 ;;
11050 freebsd-*)
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11052 need_version=yes
11053 ;;
11054 esac
11055 shlibpath_var=LD_LIBRARY_PATH
11056 case $host_os in
11057 freebsd2*)
11058 shlibpath_overrides_runpath=yes
11059 ;;
11060 freebsd3.[01]* | freebsdelf3.[01]*)
11061 shlibpath_overrides_runpath=yes
11062 hardcode_into_libs=yes
11063 ;;
11064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11066 shlibpath_overrides_runpath=no
11067 hardcode_into_libs=yes
11068 ;;
11069 *) # from 4.6 on, and DragonFly
11070 shlibpath_overrides_runpath=yes
11071 hardcode_into_libs=yes
11072 ;;
11073 esac
11074 ;;
11075
11076 gnu*)
11077 version_type=linux
11078 need_lib_prefix=no
11079 need_version=no
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11081 soname_spec='${libname}${release}${shared_ext}$major'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 shlibpath_overrides_runpath=no
11084 hardcode_into_libs=yes
11085 ;;
11086
11087 haiku*)
11088 version_type=linux
11089 need_lib_prefix=no
11090 need_version=no
11091 dynamic_linker="$host_os runtime_loader"
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 shlibpath_var=LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11096 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11097 hardcode_into_libs=yes
11098 ;;
11099
11100 hpux9* | hpux10* | hpux11*)
11101 # Give a soname corresponding to the major version so that dld.sl refuses to
11102 # link against other versions.
11103 version_type=sunos
11104 need_lib_prefix=no
11105 need_version=no
11106 case $host_cpu in
11107 ia64*)
11108 shrext_cmds='.so'
11109 hardcode_into_libs=yes
11110 dynamic_linker="$host_os dld.so"
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 if test "X$HPUX_IA64_MODE" = X32; then
11116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11117 else
11118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11119 fi
11120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11121 ;;
11122 hppa*64*)
11123 shrext_cmds='.sl'
11124 hardcode_into_libs=yes
11125 dynamic_linker="$host_os dld.sl"
11126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129 soname_spec='${libname}${release}${shared_ext}$major'
11130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11132 ;;
11133 *)
11134 shrext_cmds='.sl'
11135 dynamic_linker="$host_os dld.sl"
11136 shlibpath_var=SHLIB_PATH
11137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 ;;
11141 esac
11142 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11143 postinstall_cmds='chmod 555 $lib'
11144 # or fails outright, so override atomically:
11145 install_override_mode=555
11146 ;;
11147
11148 interix[3-9]*)
11149 version_type=linux
11150 need_lib_prefix=no
11151 need_version=no
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=no
11157 hardcode_into_libs=yes
11158 ;;
11159
11160 irix5* | irix6* | nonstopux*)
11161 case $host_os in
11162 nonstopux*) version_type=nonstopux ;;
11163 *)
11164 if test "$lt_cv_prog_gnu_ld" = yes; then
11165 version_type=linux
11166 else
11167 version_type=irix
11168 fi ;;
11169 esac
11170 need_lib_prefix=no
11171 need_version=no
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11174 case $host_os in
11175 irix5* | nonstopux*)
11176 libsuff= shlibsuff=
11177 ;;
11178 *)
11179 case $LD in # libtool.m4 will add one of these switches to LD
11180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11181 libsuff= shlibsuff= libmagic=32-bit;;
11182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11183 libsuff=32 shlibsuff=N32 libmagic=N32;;
11184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11186 *) libsuff= shlibsuff= libmagic=never-match;;
11187 esac
11188 ;;
11189 esac
11190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11191 shlibpath_overrides_runpath=no
11192 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11193 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11194 hardcode_into_libs=yes
11195 ;;
11196
11197 # No shared lib support for Linux oldld, aout, or coff.
11198 linux*oldld* | linux*aout* | linux*coff*)
11199 dynamic_linker=no
11200 ;;
11201
11202 # This must be Linux ELF.
11203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11204 version_type=linux
11205 need_lib_prefix=no
11206 need_version=no
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 shlibpath_overrides_runpath=no
11212
11213 # Some binutils ld are patched to set DT_RUNPATH
11214 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 lt_cv_shlibpath_overrides_runpath=no
11218 save_LDFLAGS=$LDFLAGS
11219 save_libdir=$libdir
11220 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11221 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11224
11225 int
11226 main ()
11227 {
11228
11229 ;
11230 return 0;
11231 }
11232 _ACEOF
11233 if ac_fn_c_try_link "$LINENO"; then :
11234 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11235 lt_cv_shlibpath_overrides_runpath=yes
11236 fi
11237 fi
11238 rm -f core conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
11240 LDFLAGS=$save_LDFLAGS
11241 libdir=$save_libdir
11242
11243 fi
11244
11245 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11246
11247 # This implies no fast_install, which is unacceptable.
11248 # Some rework will be needed to allow for fast_install
11249 # before this can be enabled.
11250 hardcode_into_libs=yes
11251
11252 # Append ld.so.conf contents to the search path
11253 if test -f /etc/ld.so.conf; then
11254 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' ' '`
11255 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11256 fi
11257
11258 # We used to test for /lib/ld.so.1 and disable shared libraries on
11259 # powerpc, because MkLinux only supported shared libraries with the
11260 # GNU dynamic linker. Since this was broken with cross compilers,
11261 # most powerpc-linux boxes support dynamic linking these days and
11262 # people can always --disable-shared, the test was removed, and we
11263 # assume the GNU/Linux dynamic linker is in use.
11264 dynamic_linker='GNU/Linux ld.so'
11265 ;;
11266
11267 netbsdelf*-gnu)
11268 version_type=linux
11269 need_lib_prefix=no
11270 need_version=no
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=no
11275 hardcode_into_libs=yes
11276 dynamic_linker='NetBSD ld.elf_so'
11277 ;;
11278
11279 netbsd*)
11280 version_type=sunos
11281 need_lib_prefix=no
11282 need_version=no
11283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11286 dynamic_linker='NetBSD (a.out) ld.so'
11287 else
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 dynamic_linker='NetBSD ld.elf_so'
11291 fi
11292 shlibpath_var=LD_LIBRARY_PATH
11293 shlibpath_overrides_runpath=yes
11294 hardcode_into_libs=yes
11295 ;;
11296
11297 newsos6)
11298 version_type=linux
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11300 shlibpath_var=LD_LIBRARY_PATH
11301 shlibpath_overrides_runpath=yes
11302 ;;
11303
11304 *nto* | *qnx*)
11305 version_type=qnx
11306 need_lib_prefix=no
11307 need_version=no
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 shlibpath_var=LD_LIBRARY_PATH
11311 shlibpath_overrides_runpath=no
11312 hardcode_into_libs=yes
11313 dynamic_linker='ldqnx.so'
11314 ;;
11315
11316 openbsd*)
11317 version_type=sunos
11318 sys_lib_dlsearch_path_spec="/usr/lib"
11319 need_lib_prefix=no
11320 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11321 case $host_os in
11322 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11323 *) need_version=no ;;
11324 esac
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11329 case $host_os in
11330 openbsd2.[89] | openbsd2.[89].*)
11331 shlibpath_overrides_runpath=no
11332 ;;
11333 *)
11334 shlibpath_overrides_runpath=yes
11335 ;;
11336 esac
11337 else
11338 shlibpath_overrides_runpath=yes
11339 fi
11340 ;;
11341
11342 os2*)
11343 libname_spec='$name'
11344 shrext_cmds=".dll"
11345 need_lib_prefix=no
11346 library_names_spec='$libname${shared_ext} $libname.a'
11347 dynamic_linker='OS/2 ld.exe'
11348 shlibpath_var=LIBPATH
11349 ;;
11350
11351 osf3* | osf4* | osf5*)
11352 version_type=osf
11353 need_lib_prefix=no
11354 need_version=no
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 shlibpath_var=LD_LIBRARY_PATH
11358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11360 ;;
11361
11362 rdos*)
11363 dynamic_linker=no
11364 ;;
11365
11366 solaris*)
11367 version_type=linux
11368 need_lib_prefix=no
11369 need_version=no
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 shlibpath_var=LD_LIBRARY_PATH
11373 shlibpath_overrides_runpath=yes
11374 hardcode_into_libs=yes
11375 # ldd complains unless libraries are executable
11376 postinstall_cmds='chmod +x $lib'
11377 ;;
11378
11379 sunos4*)
11380 version_type=sunos
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11383 shlibpath_var=LD_LIBRARY_PATH
11384 shlibpath_overrides_runpath=yes
11385 if test "$with_gnu_ld" = yes; then
11386 need_lib_prefix=no
11387 fi
11388 need_version=yes
11389 ;;
11390
11391 sysv4 | sysv4.3*)
11392 version_type=linux
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 shlibpath_var=LD_LIBRARY_PATH
11396 case $host_vendor in
11397 sni)
11398 shlibpath_overrides_runpath=no
11399 need_lib_prefix=no
11400 runpath_var=LD_RUN_PATH
11401 ;;
11402 siemens)
11403 need_lib_prefix=no
11404 ;;
11405 motorola)
11406 need_lib_prefix=no
11407 need_version=no
11408 shlibpath_overrides_runpath=no
11409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11410 ;;
11411 esac
11412 ;;
11413
11414 sysv4*MP*)
11415 if test -d /usr/nec ;then
11416 version_type=linux
11417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11418 soname_spec='$libname${shared_ext}.$major'
11419 shlibpath_var=LD_LIBRARY_PATH
11420 fi
11421 ;;
11422
11423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11424 version_type=freebsd-elf
11425 need_lib_prefix=no
11426 need_version=no
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11428 soname_spec='${libname}${release}${shared_ext}$major'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 shlibpath_overrides_runpath=yes
11431 hardcode_into_libs=yes
11432 if test "$with_gnu_ld" = yes; then
11433 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11434 else
11435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11436 case $host_os in
11437 sco3.2v5*)
11438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11439 ;;
11440 esac
11441 fi
11442 sys_lib_dlsearch_path_spec='/usr/lib'
11443 ;;
11444
11445 tpf*)
11446 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11447 version_type=linux
11448 need_lib_prefix=no
11449 need_version=no
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 shlibpath_var=LD_LIBRARY_PATH
11452 shlibpath_overrides_runpath=no
11453 hardcode_into_libs=yes
11454 ;;
11455
11456 uts4*)
11457 version_type=linux
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 ;;
11462
11463 *)
11464 dynamic_linker=no
11465 ;;
11466 esac
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11468 $as_echo "$dynamic_linker" >&6; }
11469 test "$dynamic_linker" = no && can_build_shared=no
11470
11471 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11472 if test "$GCC" = yes; then
11473 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11474 fi
11475
11476 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11477 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11478 fi
11479 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11480 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11481 fi
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11575 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11576 hardcode_action=
11577 if test -n "$hardcode_libdir_flag_spec" ||
11578 test -n "$runpath_var" ||
11579 test "X$hardcode_automatic" = "Xyes" ; then
11580
11581 # We can hardcode non-existent directories.
11582 if test "$hardcode_direct" != no &&
11583 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11584 # have to relink, otherwise we might link with an installed library
11585 # when we should be linking with a yet-to-be-installed one
11586 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11587 test "$hardcode_minus_L" != no; then
11588 # Linking always hardcodes the temporary library directory.
11589 hardcode_action=relink
11590 else
11591 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11592 hardcode_action=immediate
11593 fi
11594 else
11595 # We cannot hardcode anything, or else we can only hardcode existing
11596 # directories.
11597 hardcode_action=unsupported
11598 fi
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11600 $as_echo "$hardcode_action" >&6; }
11601
11602 if test "$hardcode_action" = relink ||
11603 test "$inherit_rpath" = yes; then
11604 # Fast installation is not supported
11605 enable_fast_install=no
11606 elif test "$shlibpath_overrides_runpath" = yes ||
11607 test "$enable_shared" = no; then
11608 # Fast installation is not necessary
11609 enable_fast_install=needless
11610 fi
11611
11612
11613
11614
11615
11616
11617 if test "x$enable_dlopen" != xyes; then
11618 enable_dlopen=unknown
11619 enable_dlopen_self=unknown
11620 enable_dlopen_self_static=unknown
11621 else
11622 lt_cv_dlopen=no
11623 lt_cv_dlopen_libs=
11624
11625 case $host_os in
11626 beos*)
11627 lt_cv_dlopen="load_add_on"
11628 lt_cv_dlopen_libs=
11629 lt_cv_dlopen_self=yes
11630 ;;
11631
11632 mingw* | pw32* | cegcc*)
11633 lt_cv_dlopen="LoadLibrary"
11634 lt_cv_dlopen_libs=
11635 ;;
11636
11637 cygwin*)
11638 lt_cv_dlopen="dlopen"
11639 lt_cv_dlopen_libs=
11640 ;;
11641
11642 darwin*)
11643 # if libdl is installed we need to link against it
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11645 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11646 if ${ac_cv_lib_dl_dlopen+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-ldl $LIBS"
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 dlopen ();
11661 int
11662 main ()
11663 {
11664 return dlopen ();
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"; then :
11670 ac_cv_lib_dl_dlopen=yes
11671 else
11672 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
11679 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11680 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11682 else
11683
11684 lt_cv_dlopen="dyld"
11685 lt_cv_dlopen_libs=
11686 lt_cv_dlopen_self=yes
11687
11688 fi
11689
11690 ;;
11691
11692 *)
11693 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11694 if test "x$ac_cv_func_shl_load" = xyes; then :
11695 lt_cv_dlopen="shl_load"
11696 else
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11698 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11699 if ${ac_cv_lib_dld_shl_load+:} false; then :
11700 $as_echo_n "(cached) " >&6
11701 else
11702 ac_check_lib_save_LIBS=$LIBS
11703 LIBS="-ldld $LIBS"
11704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705 /* end confdefs.h. */
11706
11707 /* Override any GCC internal prototype to avoid an error.
11708 Use char because int might match the return type of a GCC
11709 builtin and then its argument prototype would still apply. */
11710 #ifdef __cplusplus
11711 extern "C"
11712 #endif
11713 char shl_load ();
11714 int
11715 main ()
11716 {
11717 return shl_load ();
11718 ;
11719 return 0;
11720 }
11721 _ACEOF
11722 if ac_fn_c_try_link "$LINENO"; then :
11723 ac_cv_lib_dld_shl_load=yes
11724 else
11725 ac_cv_lib_dld_shl_load=no
11726 fi
11727 rm -f core conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11729 LIBS=$ac_check_lib_save_LIBS
11730 fi
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11732 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11733 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11734 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11735 else
11736 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11737 if test "x$ac_cv_func_dlopen" = xyes; then :
11738 lt_cv_dlopen="dlopen"
11739 else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11741 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11742 if ${ac_cv_lib_dl_dlopen+:} false; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 ac_check_lib_save_LIBS=$LIBS
11746 LIBS="-ldl $LIBS"
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749
11750 /* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11753 #ifdef __cplusplus
11754 extern "C"
11755 #endif
11756 char dlopen ();
11757 int
11758 main ()
11759 {
11760 return dlopen ();
11761 ;
11762 return 0;
11763 }
11764 _ACEOF
11765 if ac_fn_c_try_link "$LINENO"; then :
11766 ac_cv_lib_dl_dlopen=yes
11767 else
11768 ac_cv_lib_dl_dlopen=no
11769 fi
11770 rm -f core conftest.err conftest.$ac_objext \
11771 conftest$ac_exeext conftest.$ac_ext
11772 LIBS=$ac_check_lib_save_LIBS
11773 fi
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11775 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11776 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11780 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11781 if ${ac_cv_lib_svld_dlopen+:} false; then :
11782 $as_echo_n "(cached) " >&6
11783 else
11784 ac_check_lib_save_LIBS=$LIBS
11785 LIBS="-lsvld $LIBS"
11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h. */
11788
11789 /* Override any GCC internal prototype to avoid an error.
11790 Use char because int might match the return type of a GCC
11791 builtin and then its argument prototype would still apply. */
11792 #ifdef __cplusplus
11793 extern "C"
11794 #endif
11795 char dlopen ();
11796 int
11797 main ()
11798 {
11799 return dlopen ();
11800 ;
11801 return 0;
11802 }
11803 _ACEOF
11804 if ac_fn_c_try_link "$LINENO"; then :
11805 ac_cv_lib_svld_dlopen=yes
11806 else
11807 ac_cv_lib_svld_dlopen=no
11808 fi
11809 rm -f core conftest.err conftest.$ac_objext \
11810 conftest$ac_exeext conftest.$ac_ext
11811 LIBS=$ac_check_lib_save_LIBS
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11814 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11815 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11816 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11817 else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11819 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11820 if ${ac_cv_lib_dld_dld_link+:} false; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 ac_check_lib_save_LIBS=$LIBS
11824 LIBS="-ldld $LIBS"
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11827
11828 /* Override any GCC internal prototype to avoid an error.
11829 Use char because int might match the return type of a GCC
11830 builtin and then its argument prototype would still apply. */
11831 #ifdef __cplusplus
11832 extern "C"
11833 #endif
11834 char dld_link ();
11835 int
11836 main ()
11837 {
11838 return dld_link ();
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_c_try_link "$LINENO"; then :
11844 ac_cv_lib_dld_dld_link=yes
11845 else
11846 ac_cv_lib_dld_dld_link=no
11847 fi
11848 rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11850 LIBS=$ac_check_lib_save_LIBS
11851 fi
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11853 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11854 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11855 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11856 fi
11857
11858
11859 fi
11860
11861
11862 fi
11863
11864
11865 fi
11866
11867
11868 fi
11869
11870
11871 fi
11872
11873 ;;
11874 esac
11875
11876 if test "x$lt_cv_dlopen" != xno; then
11877 enable_dlopen=yes
11878 else
11879 enable_dlopen=no
11880 fi
11881
11882 case $lt_cv_dlopen in
11883 dlopen)
11884 save_CPPFLAGS="$CPPFLAGS"
11885 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11886
11887 save_LDFLAGS="$LDFLAGS"
11888 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11889
11890 save_LIBS="$LIBS"
11891 LIBS="$lt_cv_dlopen_libs $LIBS"
11892
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11894 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11895 if ${lt_cv_dlopen_self+:} false; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 if test "$cross_compiling" = yes; then :
11899 lt_cv_dlopen_self=cross
11900 else
11901 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11902 lt_status=$lt_dlunknown
11903 cat > conftest.$ac_ext <<_LT_EOF
11904 #line $LINENO "configure"
11905 #include "confdefs.h"
11906
11907 #if HAVE_DLFCN_H
11908 #include <dlfcn.h>
11909 #endif
11910
11911 #include <stdio.h>
11912
11913 #ifdef RTLD_GLOBAL
11914 # define LT_DLGLOBAL RTLD_GLOBAL
11915 #else
11916 # ifdef DL_GLOBAL
11917 # define LT_DLGLOBAL DL_GLOBAL
11918 # else
11919 # define LT_DLGLOBAL 0
11920 # endif
11921 #endif
11922
11923 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11924 find out it does not work in some platform. */
11925 #ifndef LT_DLLAZY_OR_NOW
11926 # ifdef RTLD_LAZY
11927 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11928 # else
11929 # ifdef DL_LAZY
11930 # define LT_DLLAZY_OR_NOW DL_LAZY
11931 # else
11932 # ifdef RTLD_NOW
11933 # define LT_DLLAZY_OR_NOW RTLD_NOW
11934 # else
11935 # ifdef DL_NOW
11936 # define LT_DLLAZY_OR_NOW DL_NOW
11937 # else
11938 # define LT_DLLAZY_OR_NOW 0
11939 # endif
11940 # endif
11941 # endif
11942 # endif
11943 #endif
11944
11945 /* When -fvisbility=hidden is used, assume the code has been annotated
11946 correspondingly for the symbols needed. */
11947 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11948 int fnord () __attribute__((visibility("default")));
11949 #endif
11950
11951 int fnord () { return 42; }
11952 int main ()
11953 {
11954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11955 int status = $lt_dlunknown;
11956
11957 if (self)
11958 {
11959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11960 else
11961 {
11962 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11963 else puts (dlerror ());
11964 }
11965 /* dlclose (self); */
11966 }
11967 else
11968 puts (dlerror ());
11969
11970 return status;
11971 }
11972 _LT_EOF
11973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11974 (eval $ac_link) 2>&5
11975 ac_status=$?
11976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11977 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11978 (./conftest; exit; ) >&5 2>/dev/null
11979 lt_status=$?
11980 case x$lt_status in
11981 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11982 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11983 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11984 esac
11985 else :
11986 # compilation failed
11987 lt_cv_dlopen_self=no
11988 fi
11989 fi
11990 rm -fr conftest*
11991
11992
11993 fi
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11995 $as_echo "$lt_cv_dlopen_self" >&6; }
11996
11997 if test "x$lt_cv_dlopen_self" = xyes; then
11998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12000 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12001 if ${lt_cv_dlopen_self_static+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 if test "$cross_compiling" = yes; then :
12005 lt_cv_dlopen_self_static=cross
12006 else
12007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12008 lt_status=$lt_dlunknown
12009 cat > conftest.$ac_ext <<_LT_EOF
12010 #line $LINENO "configure"
12011 #include "confdefs.h"
12012
12013 #if HAVE_DLFCN_H
12014 #include <dlfcn.h>
12015 #endif
12016
12017 #include <stdio.h>
12018
12019 #ifdef RTLD_GLOBAL
12020 # define LT_DLGLOBAL RTLD_GLOBAL
12021 #else
12022 # ifdef DL_GLOBAL
12023 # define LT_DLGLOBAL DL_GLOBAL
12024 # else
12025 # define LT_DLGLOBAL 0
12026 # endif
12027 #endif
12028
12029 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12030 find out it does not work in some platform. */
12031 #ifndef LT_DLLAZY_OR_NOW
12032 # ifdef RTLD_LAZY
12033 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12034 # else
12035 # ifdef DL_LAZY
12036 # define LT_DLLAZY_OR_NOW DL_LAZY
12037 # else
12038 # ifdef RTLD_NOW
12039 # define LT_DLLAZY_OR_NOW RTLD_NOW
12040 # else
12041 # ifdef DL_NOW
12042 # define LT_DLLAZY_OR_NOW DL_NOW
12043 # else
12044 # define LT_DLLAZY_OR_NOW 0
12045 # endif
12046 # endif
12047 # endif
12048 # endif
12049 #endif
12050
12051 /* When -fvisbility=hidden is used, assume the code has been annotated
12052 correspondingly for the symbols needed. */
12053 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12054 int fnord () __attribute__((visibility("default")));
12055 #endif
12056
12057 int fnord () { return 42; }
12058 int main ()
12059 {
12060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12061 int status = $lt_dlunknown;
12062
12063 if (self)
12064 {
12065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12066 else
12067 {
12068 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12069 else puts (dlerror ());
12070 }
12071 /* dlclose (self); */
12072 }
12073 else
12074 puts (dlerror ());
12075
12076 return status;
12077 }
12078 _LT_EOF
12079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12080 (eval $ac_link) 2>&5
12081 ac_status=$?
12082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12083 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12084 (./conftest; exit; ) >&5 2>/dev/null
12085 lt_status=$?
12086 case x$lt_status in
12087 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12088 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12089 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12090 esac
12091 else :
12092 # compilation failed
12093 lt_cv_dlopen_self_static=no
12094 fi
12095 fi
12096 rm -fr conftest*
12097
12098
12099 fi
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12101 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12102 fi
12103
12104 CPPFLAGS="$save_CPPFLAGS"
12105 LDFLAGS="$save_LDFLAGS"
12106 LIBS="$save_LIBS"
12107 ;;
12108 esac
12109
12110 case $lt_cv_dlopen_self in
12111 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12112 *) enable_dlopen_self=unknown ;;
12113 esac
12114
12115 case $lt_cv_dlopen_self_static in
12116 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12117 *) enable_dlopen_self_static=unknown ;;
12118 esac
12119 fi
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137 striplib=
12138 old_striplib=
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12140 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12141 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12142 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12143 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12145 $as_echo "yes" >&6; }
12146 else
12147 # FIXME - insert some real tests, host_os isn't really good enough
12148 case $host_os in
12149 darwin*)
12150 if test -n "$STRIP" ; then
12151 striplib="$STRIP -x"
12152 old_striplib="$STRIP -S"
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12154 $as_echo "yes" >&6; }
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12158 fi
12159 ;;
12160 *)
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12163 ;;
12164 esac
12165 fi
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178 # Report which library types will actually be built
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12180 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12182 $as_echo "$can_build_shared" >&6; }
12183
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12185 $as_echo_n "checking whether to build shared libraries... " >&6; }
12186 test "$can_build_shared" = "no" && enable_shared=no
12187
12188 # On AIX, shared libraries and static libraries use the same namespace, and
12189 # are all built from PIC.
12190 case $host_os in
12191 aix3*)
12192 test "$enable_shared" = yes && enable_static=no
12193 if test -n "$RANLIB"; then
12194 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12195 postinstall_cmds='$RANLIB $lib'
12196 fi
12197 ;;
12198
12199 aix[4-9]*)
12200 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12201 test "$enable_shared" = yes && enable_static=no
12202 fi
12203 ;;
12204 esac
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12206 $as_echo "$enable_shared" >&6; }
12207
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12209 $as_echo_n "checking whether to build static libraries... " >&6; }
12210 # Make sure either enable_shared or enable_static is yes.
12211 test "$enable_shared" = yes || enable_static=yes
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12213 $as_echo "$enable_static" >&6; }
12214
12215
12216
12217
12218 fi
12219 ac_ext=c
12220 ac_cpp='$CPP $CPPFLAGS'
12221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12224
12225 CC="$lt_save_CC"
12226
12227 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12228 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12229 (test "X$CXX" != "Xg++"))) ; then
12230 ac_ext=cpp
12231 ac_cpp='$CXXCPP $CPPFLAGS'
12232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12236 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12237 if test -z "$CXXCPP"; then
12238 if ${ac_cv_prog_CXXCPP+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 # Double quotes because CXXCPP needs to be expanded
12242 for CXXCPP in "$CXX -E" "/lib/cpp"
12243 do
12244 ac_preproc_ok=false
12245 for ac_cxx_preproc_warn_flag in '' yes
12246 do
12247 # Use a header file that comes with gcc, so configuring glibc
12248 # with a fresh cross-compiler works.
12249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12250 # <limits.h> exists even on freestanding compilers.
12251 # On the NeXT, cc -E runs the code through the compiler's parser,
12252 # not just through cpp. "Syntax error" is here to catch this case.
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12255 #ifdef __STDC__
12256 # include <limits.h>
12257 #else
12258 # include <assert.h>
12259 #endif
12260 Syntax error
12261 _ACEOF
12262 if ac_fn_cxx_try_cpp "$LINENO"; then :
12263
12264 else
12265 # Broken: fails on valid input.
12266 continue
12267 fi
12268 rm -f conftest.err conftest.i conftest.$ac_ext
12269
12270 # OK, works on sane cases. Now check whether nonexistent headers
12271 # can be detected and how.
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12274 #include <ac_nonexistent.h>
12275 _ACEOF
12276 if ac_fn_cxx_try_cpp "$LINENO"; then :
12277 # Broken: success on invalid input.
12278 continue
12279 else
12280 # Passes both tests.
12281 ac_preproc_ok=:
12282 break
12283 fi
12284 rm -f conftest.err conftest.i conftest.$ac_ext
12285
12286 done
12287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12288 rm -f conftest.i conftest.err conftest.$ac_ext
12289 if $ac_preproc_ok; then :
12290 break
12291 fi
12292
12293 done
12294 ac_cv_prog_CXXCPP=$CXXCPP
12295
12296 fi
12297 CXXCPP=$ac_cv_prog_CXXCPP
12298 else
12299 ac_cv_prog_CXXCPP=$CXXCPP
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12302 $as_echo "$CXXCPP" >&6; }
12303 ac_preproc_ok=false
12304 for ac_cxx_preproc_warn_flag in '' yes
12305 do
12306 # Use a header file that comes with gcc, so configuring glibc
12307 # with a fresh cross-compiler works.
12308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12309 # <limits.h> exists even on freestanding compilers.
12310 # On the NeXT, cc -E runs the code through the compiler's parser,
12311 # not just through cpp. "Syntax error" is here to catch this case.
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314 #ifdef __STDC__
12315 # include <limits.h>
12316 #else
12317 # include <assert.h>
12318 #endif
12319 Syntax error
12320 _ACEOF
12321 if ac_fn_cxx_try_cpp "$LINENO"; then :
12322
12323 else
12324 # Broken: fails on valid input.
12325 continue
12326 fi
12327 rm -f conftest.err conftest.i conftest.$ac_ext
12328
12329 # OK, works on sane cases. Now check whether nonexistent headers
12330 # can be detected and how.
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333 #include <ac_nonexistent.h>
12334 _ACEOF
12335 if ac_fn_cxx_try_cpp "$LINENO"; then :
12336 # Broken: success on invalid input.
12337 continue
12338 else
12339 # Passes both tests.
12340 ac_preproc_ok=:
12341 break
12342 fi
12343 rm -f conftest.err conftest.i conftest.$ac_ext
12344
12345 done
12346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12347 rm -f conftest.i conftest.err conftest.$ac_ext
12348 if $ac_preproc_ok; then :
12349
12350 else
12351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12353 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12354 See \`config.log' for more details" "$LINENO" 5; }
12355 fi
12356
12357 ac_ext=c
12358 ac_cpp='$CPP $CPPFLAGS'
12359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12362
12363 else
12364 _lt_caught_CXX_error=yes
12365 fi
12366
12367 ac_ext=cpp
12368 ac_cpp='$CXXCPP $CPPFLAGS'
12369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12372
12373 archive_cmds_need_lc_CXX=no
12374 allow_undefined_flag_CXX=
12375 always_export_symbols_CXX=no
12376 archive_expsym_cmds_CXX=
12377 compiler_needs_object_CXX=no
12378 export_dynamic_flag_spec_CXX=
12379 hardcode_direct_CXX=no
12380 hardcode_direct_absolute_CXX=no
12381 hardcode_libdir_flag_spec_CXX=
12382 hardcode_libdir_flag_spec_ld_CXX=
12383 hardcode_libdir_separator_CXX=
12384 hardcode_minus_L_CXX=no
12385 hardcode_shlibpath_var_CXX=unsupported
12386 hardcode_automatic_CXX=no
12387 inherit_rpath_CXX=no
12388 module_cmds_CXX=
12389 module_expsym_cmds_CXX=
12390 link_all_deplibs_CXX=unknown
12391 old_archive_cmds_CXX=$old_archive_cmds
12392 reload_flag_CXX=$reload_flag
12393 reload_cmds_CXX=$reload_cmds
12394 no_undefined_flag_CXX=
12395 whole_archive_flag_spec_CXX=
12396 enable_shared_with_static_runtimes_CXX=no
12397
12398 # Source file extension for C++ test sources.
12399 ac_ext=cpp
12400
12401 # Object file extension for compiled C++ test sources.
12402 objext=o
12403 objext_CXX=$objext
12404
12405 # No sense in running all these tests if we already determined that
12406 # the CXX compiler isn't working. Some variables (like enable_shared)
12407 # are currently assumed to apply to all compilers on this platform,
12408 # and will be corrupted by setting them based on a non-working compiler.
12409 if test "$_lt_caught_CXX_error" != yes; then
12410 # Code to be used in simple compile tests
12411 lt_simple_compile_test_code="int some_variable = 0;"
12412
12413 # Code to be used in simple link tests
12414 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12415
12416 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12417
12418
12419
12420
12421
12422
12423 # If no C compiler was specified, use CC.
12424 LTCC=${LTCC-"$CC"}
12425
12426 # If no C compiler flags were specified, use CFLAGS.
12427 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12428
12429 # Allow CC to be a program name with arguments.
12430 compiler=$CC
12431
12432
12433 # save warnings/boilerplate of simple test code
12434 ac_outfile=conftest.$ac_objext
12435 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12436 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12437 _lt_compiler_boilerplate=`cat conftest.err`
12438 $RM conftest*
12439
12440 ac_outfile=conftest.$ac_objext
12441 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12442 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12443 _lt_linker_boilerplate=`cat conftest.err`
12444 $RM -r conftest*
12445
12446
12447 # Allow CC to be a program name with arguments.
12448 lt_save_CC=$CC
12449 lt_save_CFLAGS=$CFLAGS
12450 lt_save_LD=$LD
12451 lt_save_GCC=$GCC
12452 GCC=$GXX
12453 lt_save_with_gnu_ld=$with_gnu_ld
12454 lt_save_path_LD=$lt_cv_path_LD
12455 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12456 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12457 else
12458 $as_unset lt_cv_prog_gnu_ld
12459 fi
12460 if test -n "${lt_cv_path_LDCXX+set}"; then
12461 lt_cv_path_LD=$lt_cv_path_LDCXX
12462 else
12463 $as_unset lt_cv_path_LD
12464 fi
12465 test -z "${LDCXX+set}" || LD=$LDCXX
12466 CC=${CXX-"c++"}
12467 CFLAGS=$CXXFLAGS
12468 compiler=$CC
12469 compiler_CXX=$CC
12470 for cc_temp in $compiler""; do
12471 case $cc_temp in
12472 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12473 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12474 \-*) ;;
12475 *) break;;
12476 esac
12477 done
12478 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12479
12480
12481 if test -n "$compiler"; then
12482 # We don't want -fno-exception when compiling C++ code, so set the
12483 # no_builtin_flag separately
12484 if test "$GXX" = yes; then
12485 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12486 else
12487 lt_prog_compiler_no_builtin_flag_CXX=
12488 fi
12489
12490 if test "$GXX" = yes; then
12491 # Set up default GNU C++ configuration
12492
12493
12494
12495 # Check whether --with-gnu-ld was given.
12496 if test "${with_gnu_ld+set}" = set; then :
12497 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12498 else
12499 with_gnu_ld=no
12500 fi
12501
12502 ac_prog=ld
12503 if test "$GCC" = yes; then
12504 # Check if gcc -print-prog-name=ld gives a path.
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12506 $as_echo_n "checking for ld used by $CC... " >&6; }
12507 case $host in
12508 *-*-mingw*)
12509 # gcc leaves a trailing carriage return which upsets mingw
12510 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12511 *)
12512 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12513 esac
12514 case $ac_prog in
12515 # Accept absolute paths.
12516 [\\/]* | ?:[\\/]*)
12517 re_direlt='/[^/][^/]*/\.\./'
12518 # Canonicalize the pathname of ld
12519 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12520 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12521 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12522 done
12523 test -z "$LD" && LD="$ac_prog"
12524 ;;
12525 "")
12526 # If it fails, then pretend we aren't using GCC.
12527 ac_prog=ld
12528 ;;
12529 *)
12530 # If it is relative, then search for the first ld in PATH.
12531 with_gnu_ld=unknown
12532 ;;
12533 esac
12534 elif test "$with_gnu_ld" = yes; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12536 $as_echo_n "checking for GNU ld... " >&6; }
12537 else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12539 $as_echo_n "checking for non-GNU ld... " >&6; }
12540 fi
12541 if ${lt_cv_path_LD+:} false; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 if test -z "$LD"; then
12545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12546 for ac_dir in $PATH; do
12547 IFS="$lt_save_ifs"
12548 test -z "$ac_dir" && ac_dir=.
12549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12550 lt_cv_path_LD="$ac_dir/$ac_prog"
12551 # Check to see if the program is GNU ld. I'd rather use --version,
12552 # but apparently some variants of GNU ld only accept -v.
12553 # Break only if it was the GNU/non-GNU ld that we prefer.
12554 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12555 *GNU* | *'with BFD'*)
12556 test "$with_gnu_ld" != no && break
12557 ;;
12558 *)
12559 test "$with_gnu_ld" != yes && break
12560 ;;
12561 esac
12562 fi
12563 done
12564 IFS="$lt_save_ifs"
12565 else
12566 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12567 fi
12568 fi
12569
12570 LD="$lt_cv_path_LD"
12571 if test -n "$LD"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12573 $as_echo "$LD" >&6; }
12574 else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12577 fi
12578 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12581 if ${lt_cv_prog_gnu_ld+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12585 case `$LD -v 2>&1 </dev/null` in
12586 *GNU* | *'with BFD'*)
12587 lt_cv_prog_gnu_ld=yes
12588 ;;
12589 *)
12590 lt_cv_prog_gnu_ld=no
12591 ;;
12592 esac
12593 fi
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12595 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12596 with_gnu_ld=$lt_cv_prog_gnu_ld
12597
12598
12599
12600
12601
12602
12603
12604 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12605 # archiving commands below assume that GNU ld is being used.
12606 if test "$with_gnu_ld" = yes; then
12607 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12608 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12609
12610 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12611 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12612
12613 # If archive_cmds runs LD, not CC, wlarc should be empty
12614 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12615 # investigate it a little bit more. (MM)
12616 wlarc='${wl}'
12617
12618 # ancient GNU ld didn't support --whole-archive et. al.
12619 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12620 $GREP 'no-whole-archive' > /dev/null; then
12621 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12622 else
12623 whole_archive_flag_spec_CXX=
12624 fi
12625 else
12626 with_gnu_ld=no
12627 wlarc=
12628
12629 # A generic and very simple default shared library creation
12630 # command for GNU C++ for the case where it uses the native
12631 # linker, instead of GNU ld. If possible, this setting should
12632 # overridden to take advantage of the native linker features on
12633 # the platform it is being used on.
12634 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12635 fi
12636
12637 # Commands to make compiler produce verbose output that lists
12638 # what "hidden" libraries, object files and flags are used when
12639 # linking a shared library.
12640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12641
12642 else
12643 GXX=no
12644 with_gnu_ld=no
12645 wlarc=
12646 fi
12647
12648 # PORTME: fill in a description of your system's C++ link characteristics
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12650 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12651 ld_shlibs_CXX=yes
12652 case $host_os in
12653 aix3*)
12654 # FIXME: insert proper C++ library support
12655 ld_shlibs_CXX=no
12656 ;;
12657 aix[4-9]*)
12658 if test "$host_cpu" = ia64; then
12659 # On IA64, the linker does run time linking by default, so we don't
12660 # have to do anything special.
12661 aix_use_runtimelinking=no
12662 exp_sym_flag='-Bexport'
12663 no_entry_flag=""
12664 else
12665 aix_use_runtimelinking=no
12666
12667 # Test if we are trying to use run time linking or normal
12668 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12669 # need to do runtime linking.
12670 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12671 for ld_flag in $LDFLAGS; do
12672 case $ld_flag in
12673 *-brtl*)
12674 aix_use_runtimelinking=yes
12675 break
12676 ;;
12677 esac
12678 done
12679 ;;
12680 esac
12681
12682 exp_sym_flag='-bexport'
12683 no_entry_flag='-bnoentry'
12684 fi
12685
12686 # When large executables or shared objects are built, AIX ld can
12687 # have problems creating the table of contents. If linking a library
12688 # or program results in "error TOC overflow" add -mminimal-toc to
12689 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12690 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12691
12692 archive_cmds_CXX=''
12693 hardcode_direct_CXX=yes
12694 hardcode_direct_absolute_CXX=yes
12695 hardcode_libdir_separator_CXX=':'
12696 link_all_deplibs_CXX=yes
12697 file_list_spec_CXX='${wl}-f,'
12698
12699 if test "$GXX" = yes; then
12700 case $host_os in aix4.[012]|aix4.[012].*)
12701 # We only want to do this on AIX 4.2 and lower, the check
12702 # below for broken collect2 doesn't work under 4.3+
12703 collect2name=`${CC} -print-prog-name=collect2`
12704 if test -f "$collect2name" &&
12705 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12706 then
12707 # We have reworked collect2
12708 :
12709 else
12710 # We have old collect2
12711 hardcode_direct_CXX=unsupported
12712 # It fails to find uninstalled libraries when the uninstalled
12713 # path is not listed in the libpath. Setting hardcode_minus_L
12714 # to unsupported forces relinking
12715 hardcode_minus_L_CXX=yes
12716 hardcode_libdir_flag_spec_CXX='-L$libdir'
12717 hardcode_libdir_separator_CXX=
12718 fi
12719 esac
12720 shared_flag='-shared'
12721 if test "$aix_use_runtimelinking" = yes; then
12722 shared_flag="$shared_flag "'${wl}-G'
12723 fi
12724 else
12725 # not using gcc
12726 if test "$host_cpu" = ia64; then
12727 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12728 # chokes on -Wl,-G. The following line is correct:
12729 shared_flag='-G'
12730 else
12731 if test "$aix_use_runtimelinking" = yes; then
12732 shared_flag='${wl}-G'
12733 else
12734 shared_flag='${wl}-bM:SRE'
12735 fi
12736 fi
12737 fi
12738
12739 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12740 # It seems that -bexpall does not export symbols beginning with
12741 # underscore (_), so it is better to generate a list of symbols to
12742 # export.
12743 always_export_symbols_CXX=yes
12744 if test "$aix_use_runtimelinking" = yes; then
12745 # Warning - without using the other runtime loading flags (-brtl),
12746 # -berok will link without error, but may produce a broken library.
12747 allow_undefined_flag_CXX='-berok'
12748 # Determine the default libpath from the value encoded in an empty
12749 # executable.
12750 if test "${lt_cv_aix_libpath+set}" = set; then
12751 aix_libpath=$lt_cv_aix_libpath
12752 else
12753 if ${lt_cv_aix_libpath__CXX+:} false; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12758
12759 int
12760 main ()
12761 {
12762
12763 ;
12764 return 0;
12765 }
12766 _ACEOF
12767 if ac_fn_cxx_try_link "$LINENO"; then :
12768
12769 lt_aix_libpath_sed='
12770 /Import File Strings/,/^$/ {
12771 /^0/ {
12772 s/^0 *\([^ ]*\) *$/\1/
12773 p
12774 }
12775 }'
12776 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12777 # Check for a 64-bit object if we didn't find anything.
12778 if test -z "$lt_cv_aix_libpath__CXX"; then
12779 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12780 fi
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 if test -z "$lt_cv_aix_libpath__CXX"; then
12785 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12786 fi
12787
12788 fi
12789
12790 aix_libpath=$lt_cv_aix_libpath__CXX
12791 fi
12792
12793 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12794
12795 archive_expsym_cmds_CXX='$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"
12796 else
12797 if test "$host_cpu" = ia64; then
12798 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12799 allow_undefined_flag_CXX="-z nodefs"
12800 archive_expsym_cmds_CXX="\$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"
12801 else
12802 # Determine the default libpath from the value encoded in an
12803 # empty executable.
12804 if test "${lt_cv_aix_libpath+set}" = set; then
12805 aix_libpath=$lt_cv_aix_libpath
12806 else
12807 if ${lt_cv_aix_libpath__CXX+:} false; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12812
12813 int
12814 main ()
12815 {
12816
12817 ;
12818 return 0;
12819 }
12820 _ACEOF
12821 if ac_fn_cxx_try_link "$LINENO"; then :
12822
12823 lt_aix_libpath_sed='
12824 /Import File Strings/,/^$/ {
12825 /^0/ {
12826 s/^0 *\([^ ]*\) *$/\1/
12827 p
12828 }
12829 }'
12830 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12831 # Check for a 64-bit object if we didn't find anything.
12832 if test -z "$lt_cv_aix_libpath__CXX"; then
12833 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12834 fi
12835 fi
12836 rm -f core conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext conftest.$ac_ext
12838 if test -z "$lt_cv_aix_libpath__CXX"; then
12839 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12840 fi
12841
12842 fi
12843
12844 aix_libpath=$lt_cv_aix_libpath__CXX
12845 fi
12846
12847 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12848 # Warning - without using the other run time loading flags,
12849 # -berok will link without error, but may produce a broken library.
12850 no_undefined_flag_CXX=' ${wl}-bernotok'
12851 allow_undefined_flag_CXX=' ${wl}-berok'
12852 if test "$with_gnu_ld" = yes; then
12853 # We only use this code for GNU lds that support --whole-archive.
12854 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12855 else
12856 # Exported symbols can be pulled into shared objects from archives
12857 whole_archive_flag_spec_CXX='$convenience'
12858 fi
12859 archive_cmds_need_lc_CXX=yes
12860 # This is similar to how AIX traditionally builds its shared
12861 # libraries.
12862 archive_expsym_cmds_CXX="\$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'
12863 fi
12864 fi
12865 ;;
12866
12867 beos*)
12868 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12869 allow_undefined_flag_CXX=unsupported
12870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12871 # support --undefined. This deserves some investigation. FIXME
12872 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12873 else
12874 ld_shlibs_CXX=no
12875 fi
12876 ;;
12877
12878 chorus*)
12879 case $cc_basename in
12880 *)
12881 # FIXME: insert proper C++ library support
12882 ld_shlibs_CXX=no
12883 ;;
12884 esac
12885 ;;
12886
12887 cygwin* | mingw* | pw32* | cegcc*)
12888 case $GXX,$cc_basename in
12889 ,cl* | no,cl*)
12890 # Native MSVC
12891 # hardcode_libdir_flag_spec is actually meaningless, as there is
12892 # no search path for DLLs.
12893 hardcode_libdir_flag_spec_CXX=' '
12894 allow_undefined_flag_CXX=unsupported
12895 always_export_symbols_CXX=yes
12896 file_list_spec_CXX='@'
12897 # Tell ltmain to make .lib files, not .a files.
12898 libext=lib
12899 # Tell ltmain to make .dll files, not .so files.
12900 shrext_cmds=".dll"
12901 # FIXME: Setting linknames here is a bad hack.
12902 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12903 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12904 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12905 else
12906 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12907 fi~
12908 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12909 linknames='
12910 # The linker will not automatically build a static lib if we build a DLL.
12911 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12912 enable_shared_with_static_runtimes_CXX=yes
12913 # Don't use ranlib
12914 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12915 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12916 lt_tool_outputfile="@TOOL_OUTPUT@"~
12917 case $lt_outputfile in
12918 *.exe|*.EXE) ;;
12919 *)
12920 lt_outputfile="$lt_outputfile.exe"
12921 lt_tool_outputfile="$lt_tool_outputfile.exe"
12922 ;;
12923 esac~
12924 func_to_tool_file "$lt_outputfile"~
12925 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12926 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12927 $RM "$lt_outputfile.manifest";
12928 fi'
12929 ;;
12930 *)
12931 # g++
12932 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12933 # as there is no search path for DLLs.
12934 hardcode_libdir_flag_spec_CXX='-L$libdir'
12935 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12936 allow_undefined_flag_CXX=unsupported
12937 always_export_symbols_CXX=no
12938 enable_shared_with_static_runtimes_CXX=yes
12939
12940 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12941 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12942 # If the export-symbols file already is a .def file (1st line
12943 # is EXPORTS), use it as is; otherwise, prepend...
12944 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12945 cp $export_symbols $output_objdir/$soname.def;
12946 else
12947 echo EXPORTS > $output_objdir/$soname.def;
12948 cat $export_symbols >> $output_objdir/$soname.def;
12949 fi~
12950 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12951 else
12952 ld_shlibs_CXX=no
12953 fi
12954 ;;
12955 esac
12956 ;;
12957 darwin* | rhapsody*)
12958
12959
12960 archive_cmds_need_lc_CXX=no
12961 hardcode_direct_CXX=no
12962 hardcode_automatic_CXX=yes
12963 hardcode_shlibpath_var_CXX=unsupported
12964 if test "$lt_cv_ld_force_load" = "yes"; then
12965 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12966 else
12967 whole_archive_flag_spec_CXX=''
12968 fi
12969 link_all_deplibs_CXX=yes
12970 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12971 case $cc_basename in
12972 ifort*) _lt_dar_can_shared=yes ;;
12973 *) _lt_dar_can_shared=$GCC ;;
12974 esac
12975 if test "$_lt_dar_can_shared" = "yes"; then
12976 output_verbose_link_cmd=func_echo_all
12977 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12978 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12979 archive_expsym_cmds_CXX="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}"
12980 module_expsym_cmds_CXX="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}"
12981 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12982 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12983 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12984 fi
12985
12986 else
12987 ld_shlibs_CXX=no
12988 fi
12989
12990 ;;
12991
12992 dgux*)
12993 case $cc_basename in
12994 ec++*)
12995 # FIXME: insert proper C++ library support
12996 ld_shlibs_CXX=no
12997 ;;
12998 ghcx*)
12999 # Green Hills C++ Compiler
13000 # FIXME: insert proper C++ library support
13001 ld_shlibs_CXX=no
13002 ;;
13003 *)
13004 # FIXME: insert proper C++ library support
13005 ld_shlibs_CXX=no
13006 ;;
13007 esac
13008 ;;
13009
13010 freebsd[12]*)
13011 # C++ shared libraries reported to be fairly broken before
13012 # switch to ELF
13013 ld_shlibs_CXX=no
13014 ;;
13015
13016 freebsd-elf*)
13017 archive_cmds_need_lc_CXX=no
13018 ;;
13019
13020 freebsd* | dragonfly*)
13021 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13022 # conventions
13023 ld_shlibs_CXX=yes
13024 ;;
13025
13026 gnu*)
13027 ;;
13028
13029 haiku*)
13030 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13031 link_all_deplibs_CXX=yes
13032 ;;
13033
13034 hpux9*)
13035 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13036 hardcode_libdir_separator_CXX=:
13037 export_dynamic_flag_spec_CXX='${wl}-E'
13038 hardcode_direct_CXX=yes
13039 hardcode_minus_L_CXX=yes # Not in the search PATH,
13040 # but as the default
13041 # location of the library.
13042
13043 case $cc_basename in
13044 CC*)
13045 # FIXME: insert proper C++ library support
13046 ld_shlibs_CXX=no
13047 ;;
13048 aCC*)
13049 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13050 # Commands to make compiler produce verbose output that lists
13051 # what "hidden" libraries, object files and flags are used when
13052 # linking a shared library.
13053 #
13054 # There doesn't appear to be a way to prevent this compiler from
13055 # explicitly linking system object files so we need to strip them
13056 # from the output so that they don't get included in the library
13057 # dependencies.
13058 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13059 ;;
13060 *)
13061 if test "$GXX" = yes; then
13062 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13063 else
13064 # FIXME: insert proper C++ library support
13065 ld_shlibs_CXX=no
13066 fi
13067 ;;
13068 esac
13069 ;;
13070
13071 hpux10*|hpux11*)
13072 if test $with_gnu_ld = no; then
13073 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13074 hardcode_libdir_separator_CXX=:
13075
13076 case $host_cpu in
13077 hppa*64*|ia64*)
13078 ;;
13079 *)
13080 export_dynamic_flag_spec_CXX='${wl}-E'
13081 ;;
13082 esac
13083 fi
13084 case $host_cpu in
13085 hppa*64*|ia64*)
13086 hardcode_direct_CXX=no
13087 hardcode_shlibpath_var_CXX=no
13088 ;;
13089 *)
13090 hardcode_direct_CXX=yes
13091 hardcode_direct_absolute_CXX=yes
13092 hardcode_minus_L_CXX=yes # Not in the search PATH,
13093 # but as the default
13094 # location of the library.
13095 ;;
13096 esac
13097
13098 case $cc_basename in
13099 CC*)
13100 # FIXME: insert proper C++ library support
13101 ld_shlibs_CXX=no
13102 ;;
13103 aCC*)
13104 case $host_cpu in
13105 hppa*64*)
13106 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13107 ;;
13108 ia64*)
13109 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13110 ;;
13111 *)
13112 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13113 ;;
13114 esac
13115 # Commands to make compiler produce verbose output that lists
13116 # what "hidden" libraries, object files and flags are used when
13117 # linking a shared library.
13118 #
13119 # There doesn't appear to be a way to prevent this compiler from
13120 # explicitly linking system object files so we need to strip them
13121 # from the output so that they don't get included in the library
13122 # dependencies.
13123 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13124 ;;
13125 *)
13126 if test "$GXX" = yes; then
13127 if test $with_gnu_ld = no; then
13128 case $host_cpu in
13129 hppa*64*)
13130 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13131 ;;
13132 ia64*)
13133 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13134 ;;
13135 *)
13136 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13137 ;;
13138 esac
13139 fi
13140 else
13141 # FIXME: insert proper C++ library support
13142 ld_shlibs_CXX=no
13143 fi
13144 ;;
13145 esac
13146 ;;
13147
13148 interix[3-9]*)
13149 hardcode_direct_CXX=no
13150 hardcode_shlibpath_var_CXX=no
13151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13152 export_dynamic_flag_spec_CXX='${wl}-E'
13153 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13154 # Instead, shared libraries are loaded at an image base (0x10000000 by
13155 # default) and relocated if they conflict, which is a slow very memory
13156 # consuming and fragmenting process. To avoid this, we pick a random,
13157 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13158 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13159 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13160 archive_expsym_cmds_CXX='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'
13161 ;;
13162 irix5* | irix6*)
13163 case $cc_basename in
13164 CC*)
13165 # SGI C++
13166 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13167
13168 # Archives containing C++ object files must be created using
13169 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13170 # necessary to make sure instantiated templates are included
13171 # in the archive.
13172 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13173 ;;
13174 *)
13175 if test "$GXX" = yes; then
13176 if test "$with_gnu_ld" = no; then
13177 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13178 else
13179 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13180 fi
13181 fi
13182 link_all_deplibs_CXX=yes
13183 ;;
13184 esac
13185 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13186 hardcode_libdir_separator_CXX=:
13187 inherit_rpath_CXX=yes
13188 ;;
13189
13190 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13191 case $cc_basename in
13192 KCC*)
13193 # Kuck and Associates, Inc. (KAI) C++ Compiler
13194
13195 # KCC will only create a shared library if the output file
13196 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13197 # to its proper name (with version) after linking.
13198 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13199 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13200 # Commands to make compiler produce verbose output that lists
13201 # what "hidden" libraries, object files and flags are used when
13202 # linking a shared library.
13203 #
13204 # There doesn't appear to be a way to prevent this compiler from
13205 # explicitly linking system object files so we need to strip them
13206 # from the output so that they don't get included in the library
13207 # dependencies.
13208 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13209
13210 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13211 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13212
13213 # Archives containing C++ object files must be created using
13214 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13215 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13216 ;;
13217 icpc* | ecpc* )
13218 # Intel C++
13219 with_gnu_ld=yes
13220 # version 8.0 and above of icpc choke on multiply defined symbols
13221 # if we add $predep_objects and $postdep_objects, however 7.1 and
13222 # earlier do not add the objects themselves.
13223 case `$CC -V 2>&1` in
13224 *"Version 7."*)
13225 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13227 ;;
13228 *) # Version 8.0 or newer
13229 tmp_idyn=
13230 case $host_cpu in
13231 ia64*) tmp_idyn=' -i_dynamic';;
13232 esac
13233 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13234 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13235 ;;
13236 esac
13237 archive_cmds_need_lc_CXX=no
13238 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13239 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13240 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13241 ;;
13242 pgCC* | pgcpp*)
13243 # Portland Group C++ compiler
13244 case `$CC -V` in
13245 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13246 prelink_cmds_CXX='tpldir=Template.dir~
13247 rm -rf $tpldir~
13248 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13249 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13250 old_archive_cmds_CXX='tpldir=Template.dir~
13251 rm -rf $tpldir~
13252 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13253 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13254 $RANLIB $oldlib'
13255 archive_cmds_CXX='tpldir=Template.dir~
13256 rm -rf $tpldir~
13257 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13258 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13259 archive_expsym_cmds_CXX='tpldir=Template.dir~
13260 rm -rf $tpldir~
13261 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13262 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13263 ;;
13264 *) # Version 6 and above use weak symbols
13265 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13266 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13267 ;;
13268 esac
13269
13270 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13272 whole_archive_flag_spec_CXX='${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'
13273 ;;
13274 cxx*)
13275 # Compaq C++
13276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13277 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13278
13279 runpath_var=LD_RUN_PATH
13280 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13281 hardcode_libdir_separator_CXX=:
13282
13283 # Commands to make compiler produce verbose output that lists
13284 # what "hidden" libraries, object files and flags are used when
13285 # linking a shared library.
13286 #
13287 # There doesn't appear to be a way to prevent this compiler from
13288 # explicitly linking system object files so we need to strip them
13289 # from the output so that they don't get included in the library
13290 # dependencies.
13291 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13292 ;;
13293 xl* | mpixl* | bgxl*)
13294 # IBM XL 8.0 on PPC, with GNU ld
13295 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13296 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13297 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298 if test "x$supports_anon_versioning" = xyes; then
13299 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13301 echo "local: *; };" >> $output_objdir/$libname.ver~
13302 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13303 fi
13304 ;;
13305 *)
13306 case `$CC -V 2>&1 | sed 5q` in
13307 *Sun\ C*)
13308 # Sun C++ 5.9
13309 no_undefined_flag_CXX=' -zdefs'
13310 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13311 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13312 hardcode_libdir_flag_spec_CXX='-R$libdir'
13313 whole_archive_flag_spec_CXX='${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'
13314 compiler_needs_object_CXX=yes
13315
13316 # Not sure whether something based on
13317 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13318 # would be better.
13319 output_verbose_link_cmd='func_echo_all'
13320
13321 # Archives containing C++ object files must be created using
13322 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13323 # necessary to make sure instantiated templates are included
13324 # in the archive.
13325 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13326 ;;
13327 esac
13328 ;;
13329 esac
13330 ;;
13331
13332 lynxos*)
13333 # FIXME: insert proper C++ library support
13334 ld_shlibs_CXX=no
13335 ;;
13336
13337 m88k*)
13338 # FIXME: insert proper C++ library support
13339 ld_shlibs_CXX=no
13340 ;;
13341
13342 mvs*)
13343 case $cc_basename in
13344 cxx*)
13345 # FIXME: insert proper C++ library support
13346 ld_shlibs_CXX=no
13347 ;;
13348 *)
13349 # FIXME: insert proper C++ library support
13350 ld_shlibs_CXX=no
13351 ;;
13352 esac
13353 ;;
13354
13355 netbsd*)
13356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13357 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13358 wlarc=
13359 hardcode_libdir_flag_spec_CXX='-R$libdir'
13360 hardcode_direct_CXX=yes
13361 hardcode_shlibpath_var_CXX=no
13362 fi
13363 # Workaround some broken pre-1.5 toolchains
13364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13365 ;;
13366
13367 *nto* | *qnx*)
13368 ld_shlibs_CXX=yes
13369 ;;
13370
13371 openbsd2*)
13372 # C++ shared libraries are fairly broken
13373 ld_shlibs_CXX=no
13374 ;;
13375
13376 openbsd*)
13377 if test -f /usr/libexec/ld.so; then
13378 hardcode_direct_CXX=yes
13379 hardcode_shlibpath_var_CXX=no
13380 hardcode_direct_absolute_CXX=yes
13381 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13382 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13384 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13385 export_dynamic_flag_spec_CXX='${wl}-E'
13386 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13387 fi
13388 output_verbose_link_cmd=func_echo_all
13389 else
13390 ld_shlibs_CXX=no
13391 fi
13392 ;;
13393
13394 osf3* | osf4* | osf5*)
13395 case $cc_basename in
13396 KCC*)
13397 # Kuck and Associates, Inc. (KAI) C++ Compiler
13398
13399 # KCC will only create a shared library if the output file
13400 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13401 # to its proper name (with version) after linking.
13402 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13403
13404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13405 hardcode_libdir_separator_CXX=:
13406
13407 # Archives containing C++ object files must be created using
13408 # the KAI C++ compiler.
13409 case $host in
13410 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13411 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13412 esac
13413 ;;
13414 RCC*)
13415 # Rational C++ 2.4.1
13416 # FIXME: insert proper C++ library support
13417 ld_shlibs_CXX=no
13418 ;;
13419 cxx*)
13420 case $host in
13421 osf3*)
13422 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13423 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13425 ;;
13426 *)
13427 allow_undefined_flag_CXX=' -expect_unresolved \*'
13428 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13429 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13430 echo "-hidden">> $lib.exp~
13431 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13432 $RM $lib.exp'
13433 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13434 ;;
13435 esac
13436
13437 hardcode_libdir_separator_CXX=:
13438
13439 # Commands to make compiler produce verbose output that lists
13440 # what "hidden" libraries, object files and flags are used when
13441 # linking a shared library.
13442 #
13443 # There doesn't appear to be a way to prevent this compiler from
13444 # explicitly linking system object files so we need to strip them
13445 # from the output so that they don't get included in the library
13446 # dependencies.
13447 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13448 ;;
13449 *)
13450 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13451 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13452 case $host in
13453 osf3*)
13454 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13455 ;;
13456 *)
13457 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13458 ;;
13459 esac
13460
13461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13462 hardcode_libdir_separator_CXX=:
13463
13464 # Commands to make compiler produce verbose output that lists
13465 # what "hidden" libraries, object files and flags are used when
13466 # linking a shared library.
13467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13468
13469 else
13470 # FIXME: insert proper C++ library support
13471 ld_shlibs_CXX=no
13472 fi
13473 ;;
13474 esac
13475 ;;
13476
13477 psos*)
13478 # FIXME: insert proper C++ library support
13479 ld_shlibs_CXX=no
13480 ;;
13481
13482 sunos4*)
13483 case $cc_basename in
13484 CC*)
13485 # Sun C++ 4.x
13486 # FIXME: insert proper C++ library support
13487 ld_shlibs_CXX=no
13488 ;;
13489 lcc*)
13490 # Lucid
13491 # FIXME: insert proper C++ library support
13492 ld_shlibs_CXX=no
13493 ;;
13494 *)
13495 # FIXME: insert proper C++ library support
13496 ld_shlibs_CXX=no
13497 ;;
13498 esac
13499 ;;
13500
13501 solaris*)
13502 case $cc_basename in
13503 CC* | sunCC*)
13504 # Sun C++ 4.2, 5.x and Centerline C++
13505 archive_cmds_need_lc_CXX=yes
13506 no_undefined_flag_CXX=' -zdefs'
13507 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13508 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13509 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13510
13511 hardcode_libdir_flag_spec_CXX='-R$libdir'
13512 hardcode_shlibpath_var_CXX=no
13513 case $host_os in
13514 solaris2.[0-5] | solaris2.[0-5].*) ;;
13515 *)
13516 # The compiler driver will combine and reorder linker options,
13517 # but understands `-z linker_flag'.
13518 # Supported since Solaris 2.6 (maybe 2.5.1?)
13519 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13520 ;;
13521 esac
13522 link_all_deplibs_CXX=yes
13523
13524 output_verbose_link_cmd='func_echo_all'
13525
13526 # Archives containing C++ object files must be created using
13527 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13528 # necessary to make sure instantiated templates are included
13529 # in the archive.
13530 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13531 ;;
13532 gcx*)
13533 # Green Hills C++ Compiler
13534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13535
13536 # The C++ compiler must be used to create the archive.
13537 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13538 ;;
13539 *)
13540 # GNU C++ compiler with Solaris linker
13541 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13542 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13543 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13544 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13545 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13546 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13547
13548 # Commands to make compiler produce verbose output that lists
13549 # what "hidden" libraries, object files and flags are used when
13550 # linking a shared library.
13551 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13552 else
13553 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13554 # platform.
13555 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13556 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13557 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13558
13559 # Commands to make compiler produce verbose output that lists
13560 # what "hidden" libraries, object files and flags are used when
13561 # linking a shared library.
13562 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13563 fi
13564
13565 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13566 case $host_os in
13567 solaris2.[0-5] | solaris2.[0-5].*) ;;
13568 *)
13569 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13570 ;;
13571 esac
13572 fi
13573 ;;
13574 esac
13575 ;;
13576
13577 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13578 no_undefined_flag_CXX='${wl}-z,text'
13579 archive_cmds_need_lc_CXX=no
13580 hardcode_shlibpath_var_CXX=no
13581 runpath_var='LD_RUN_PATH'
13582
13583 case $cc_basename in
13584 CC*)
13585 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13586 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587 ;;
13588 *)
13589 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13590 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13591 ;;
13592 esac
13593 ;;
13594
13595 sysv5* | sco3.2v5* | sco5v6*)
13596 # Note: We can NOT use -z defs as we might desire, because we do not
13597 # link with -lc, and that would cause any symbols used from libc to
13598 # always be unresolved, which means just about no library would
13599 # ever link correctly. If we're not using GNU ld we use -z text
13600 # though, which does catch some bad symbols but isn't as heavy-handed
13601 # as -z defs.
13602 no_undefined_flag_CXX='${wl}-z,text'
13603 allow_undefined_flag_CXX='${wl}-z,nodefs'
13604 archive_cmds_need_lc_CXX=no
13605 hardcode_shlibpath_var_CXX=no
13606 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13607 hardcode_libdir_separator_CXX=':'
13608 link_all_deplibs_CXX=yes
13609 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13610 runpath_var='LD_RUN_PATH'
13611
13612 case $cc_basename in
13613 CC*)
13614 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13615 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13616 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13617 '"$old_archive_cmds_CXX"
13618 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13619 '"$reload_cmds_CXX"
13620 ;;
13621 *)
13622 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13623 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13624 ;;
13625 esac
13626 ;;
13627
13628 tandem*)
13629 case $cc_basename in
13630 NCC*)
13631 # NonStop-UX NCC 3.20
13632 # FIXME: insert proper C++ library support
13633 ld_shlibs_CXX=no
13634 ;;
13635 *)
13636 # FIXME: insert proper C++ library support
13637 ld_shlibs_CXX=no
13638 ;;
13639 esac
13640 ;;
13641
13642 vxworks*)
13643 # FIXME: insert proper C++ library support
13644 ld_shlibs_CXX=no
13645 ;;
13646
13647 *)
13648 # FIXME: insert proper C++ library support
13649 ld_shlibs_CXX=no
13650 ;;
13651 esac
13652
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13654 $as_echo "$ld_shlibs_CXX" >&6; }
13655 test "$ld_shlibs_CXX" = no && can_build_shared=no
13656
13657 GCC_CXX="$GXX"
13658 LD_CXX="$LD"
13659
13660 ## CAVEAT EMPTOR:
13661 ## There is no encapsulation within the following macros, do not change
13662 ## the running order or otherwise move them around unless you know exactly
13663 ## what you are doing...
13664 # Dependencies to place before and after the object being linked:
13665 predep_objects_CXX=
13666 postdep_objects_CXX=
13667 predeps_CXX=
13668 postdeps_CXX=
13669 compiler_lib_search_path_CXX=
13670
13671 cat > conftest.$ac_ext <<_LT_EOF
13672 class Foo
13673 {
13674 public:
13675 Foo (void) { a = 0; }
13676 private:
13677 int a;
13678 };
13679 _LT_EOF
13680
13681
13682 _lt_libdeps_save_CFLAGS=$CFLAGS
13683 case "$CC $CFLAGS " in #(
13684 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13685 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13686 esac
13687
13688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13689 (eval $ac_compile) 2>&5
13690 ac_status=$?
13691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13692 test $ac_status = 0; }; then
13693 # Parse the compiler output and extract the necessary
13694 # objects, libraries and library flags.
13695
13696 # Sentinel used to keep track of whether or not we are before
13697 # the conftest object file.
13698 pre_test_object_deps_done=no
13699
13700 for p in `eval "$output_verbose_link_cmd"`; do
13701 case ${prev}${p} in
13702
13703 -L* | -R* | -l*)
13704 # Some compilers place space between "-{L,R}" and the path.
13705 # Remove the space.
13706 if test $p = "-L" ||
13707 test $p = "-R"; then
13708 prev=$p
13709 continue
13710 fi
13711
13712 # Expand the sysroot to ease extracting the directories later.
13713 if test -z "$prev"; then
13714 case $p in
13715 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13716 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13717 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13718 esac
13719 fi
13720 case $p in
13721 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13722 esac
13723 if test "$pre_test_object_deps_done" = no; then
13724 case ${prev} in
13725 -L | -R)
13726 # Internal compiler library paths should come after those
13727 # provided the user. The postdeps already come after the
13728 # user supplied libs so there is no need to process them.
13729 if test -z "$compiler_lib_search_path_CXX"; then
13730 compiler_lib_search_path_CXX="${prev}${p}"
13731 else
13732 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13733 fi
13734 ;;
13735 # The "-l" case would never come before the object being
13736 # linked, so don't bother handling this case.
13737 esac
13738 else
13739 if test -z "$postdeps_CXX"; then
13740 postdeps_CXX="${prev}${p}"
13741 else
13742 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13743 fi
13744 fi
13745 prev=
13746 ;;
13747
13748 *.lto.$objext) ;; # Ignore GCC LTO objects
13749 *.$objext)
13750 # This assumes that the test object file only shows up
13751 # once in the compiler output.
13752 if test "$p" = "conftest.$objext"; then
13753 pre_test_object_deps_done=yes
13754 continue
13755 fi
13756
13757 if test "$pre_test_object_deps_done" = no; then
13758 if test -z "$predep_objects_CXX"; then
13759 predep_objects_CXX="$p"
13760 else
13761 predep_objects_CXX="$predep_objects_CXX $p"
13762 fi
13763 else
13764 if test -z "$postdep_objects_CXX"; then
13765 postdep_objects_CXX="$p"
13766 else
13767 postdep_objects_CXX="$postdep_objects_CXX $p"
13768 fi
13769 fi
13770 ;;
13771
13772 *) ;; # Ignore the rest.
13773
13774 esac
13775 done
13776
13777 # Clean up.
13778 rm -f a.out a.exe
13779 else
13780 echo "libtool.m4: error: problem compiling CXX test program"
13781 fi
13782
13783 $RM -f confest.$objext
13784 CFLAGS=$_lt_libdeps_save_CFLAGS
13785
13786 # PORTME: override above test on systems where it is broken
13787 case $host_os in
13788 interix[3-9]*)
13789 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13790 # hack all around it, let's just trust "g++" to DTRT.
13791 predep_objects_CXX=
13792 postdep_objects_CXX=
13793 postdeps_CXX=
13794 ;;
13795
13796 linux*)
13797 case `$CC -V 2>&1 | sed 5q` in
13798 *Sun\ C*)
13799 # Sun C++ 5.9
13800
13801 # The more standards-conforming stlport4 library is
13802 # incompatible with the Cstd library. Avoid specifying
13803 # it if it's in CXXFLAGS. Ignore libCrun as
13804 # -library=stlport4 depends on it.
13805 case " $CXX $CXXFLAGS " in
13806 *" -library=stlport4 "*)
13807 solaris_use_stlport4=yes
13808 ;;
13809 esac
13810
13811 if test "$solaris_use_stlport4" != yes; then
13812 postdeps_CXX='-library=Cstd -library=Crun'
13813 fi
13814 ;;
13815 esac
13816 ;;
13817
13818 solaris*)
13819 case $cc_basename in
13820 CC* | sunCC*)
13821 # The more standards-conforming stlport4 library is
13822 # incompatible with the Cstd library. Avoid specifying
13823 # it if it's in CXXFLAGS. Ignore libCrun as
13824 # -library=stlport4 depends on it.
13825 case " $CXX $CXXFLAGS " in
13826 *" -library=stlport4 "*)
13827 solaris_use_stlport4=yes
13828 ;;
13829 esac
13830
13831 # Adding this requires a known-good setup of shared libraries for
13832 # Sun compiler versions before 5.6, else PIC objects from an old
13833 # archive will be linked into the output, leading to subtle bugs.
13834 if test "$solaris_use_stlport4" != yes; then
13835 postdeps_CXX='-library=Cstd -library=Crun'
13836 fi
13837 ;;
13838 esac
13839 ;;
13840 esac
13841
13842
13843 case " $postdeps_CXX " in
13844 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13845 esac
13846 compiler_lib_search_dirs_CXX=
13847 if test -n "${compiler_lib_search_path_CXX}"; then
13848 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13849 fi
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881 lt_prog_compiler_wl_CXX=
13882 lt_prog_compiler_pic_CXX=
13883 lt_prog_compiler_static_CXX=
13884
13885
13886 # C++ specific cases for pic, static, wl, etc.
13887 if test "$GXX" = yes; then
13888 lt_prog_compiler_wl_CXX='-Wl,'
13889 lt_prog_compiler_static_CXX='-static'
13890
13891 case $host_os in
13892 aix*)
13893 # All AIX code is PIC.
13894 if test "$host_cpu" = ia64; then
13895 # AIX 5 now supports IA64 processor
13896 lt_prog_compiler_static_CXX='-Bstatic'
13897 fi
13898 ;;
13899
13900 amigaos*)
13901 case $host_cpu in
13902 powerpc)
13903 # see comment about AmigaOS4 .so support
13904 lt_prog_compiler_pic_CXX='-fPIC'
13905 ;;
13906 m68k)
13907 # FIXME: we need at least 68020 code to build shared libraries, but
13908 # adding the `-m68020' flag to GCC prevents building anything better,
13909 # like `-m68040'.
13910 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13911 ;;
13912 esac
13913 ;;
13914
13915 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13916 # PIC is the default for these OSes.
13917 ;;
13918 mingw* | cygwin* | os2* | pw32* | cegcc*)
13919 # This hack is so that the source file can tell whether it is being
13920 # built for inclusion in a dll (and should export symbols for example).
13921 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13922 # (--disable-auto-import) libraries
13923 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13924 ;;
13925 darwin* | rhapsody*)
13926 # PIC is the default on this platform
13927 # Common symbols not allowed in MH_DYLIB files
13928 lt_prog_compiler_pic_CXX='-fno-common'
13929 ;;
13930 *djgpp*)
13931 # DJGPP does not support shared libraries at all
13932 lt_prog_compiler_pic_CXX=
13933 ;;
13934 haiku*)
13935 # PIC is the default for Haiku.
13936 # The "-static" flag exists, but is broken.
13937 lt_prog_compiler_static_CXX=
13938 ;;
13939 interix[3-9]*)
13940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13941 # Instead, we relocate shared libraries at runtime.
13942 ;;
13943 sysv4*MP*)
13944 if test -d /usr/nec; then
13945 lt_prog_compiler_pic_CXX=-Kconform_pic
13946 fi
13947 ;;
13948 hpux*)
13949 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13950 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13951 # sets the default TLS model and affects inlining.
13952 case $host_cpu in
13953 hppa*64*)
13954 ;;
13955 *)
13956 lt_prog_compiler_pic_CXX='-fPIC'
13957 ;;
13958 esac
13959 ;;
13960 *qnx* | *nto*)
13961 # QNX uses GNU C++, but need to define -shared option too, otherwise
13962 # it will coredump.
13963 lt_prog_compiler_pic_CXX='-fPIC -shared'
13964 ;;
13965 *)
13966 lt_prog_compiler_pic_CXX='-fPIC'
13967 ;;
13968 esac
13969 else
13970 case $host_os in
13971 aix[4-9]*)
13972 # All AIX code is PIC.
13973 if test "$host_cpu" = ia64; then
13974 # AIX 5 now supports IA64 processor
13975 lt_prog_compiler_static_CXX='-Bstatic'
13976 else
13977 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13978 fi
13979 ;;
13980 chorus*)
13981 case $cc_basename in
13982 cxch68*)
13983 # Green Hills C++ Compiler
13984 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13985 ;;
13986 esac
13987 ;;
13988 mingw* | cygwin* | os2* | pw32* | cegcc*)
13989 # This hack is so that the source file can tell whether it is being
13990 # built for inclusion in a dll (and should export symbols for example).
13991 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13992 ;;
13993 dgux*)
13994 case $cc_basename in
13995 ec++*)
13996 lt_prog_compiler_pic_CXX='-KPIC'
13997 ;;
13998 ghcx*)
13999 # Green Hills C++ Compiler
14000 lt_prog_compiler_pic_CXX='-pic'
14001 ;;
14002 *)
14003 ;;
14004 esac
14005 ;;
14006 freebsd* | dragonfly*)
14007 # FreeBSD uses GNU C++
14008 ;;
14009 hpux9* | hpux10* | hpux11*)
14010 case $cc_basename in
14011 CC*)
14012 lt_prog_compiler_wl_CXX='-Wl,'
14013 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14014 if test "$host_cpu" != ia64; then
14015 lt_prog_compiler_pic_CXX='+Z'
14016 fi
14017 ;;
14018 aCC*)
14019 lt_prog_compiler_wl_CXX='-Wl,'
14020 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14021 case $host_cpu in
14022 hppa*64*|ia64*)
14023 # +Z the default
14024 ;;
14025 *)
14026 lt_prog_compiler_pic_CXX='+Z'
14027 ;;
14028 esac
14029 ;;
14030 *)
14031 ;;
14032 esac
14033 ;;
14034 interix*)
14035 # This is c89, which is MS Visual C++ (no shared libs)
14036 # Anyone wants to do a port?
14037 ;;
14038 irix5* | irix6* | nonstopux*)
14039 case $cc_basename in
14040 CC*)
14041 lt_prog_compiler_wl_CXX='-Wl,'
14042 lt_prog_compiler_static_CXX='-non_shared'
14043 # CC pic flag -KPIC is the default.
14044 ;;
14045 *)
14046 ;;
14047 esac
14048 ;;
14049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14050 case $cc_basename in
14051 KCC*)
14052 # KAI C++ Compiler
14053 lt_prog_compiler_wl_CXX='--backend -Wl,'
14054 lt_prog_compiler_pic_CXX='-fPIC'
14055 ;;
14056 ecpc* )
14057 # old Intel C++ for x86_64 which still supported -KPIC.
14058 lt_prog_compiler_wl_CXX='-Wl,'
14059 lt_prog_compiler_pic_CXX='-KPIC'
14060 lt_prog_compiler_static_CXX='-static'
14061 ;;
14062 icpc* )
14063 # Intel C++, used to be incompatible with GCC.
14064 # ICC 10 doesn't accept -KPIC any more.
14065 lt_prog_compiler_wl_CXX='-Wl,'
14066 lt_prog_compiler_pic_CXX='-fPIC'
14067 lt_prog_compiler_static_CXX='-static'
14068 ;;
14069 pgCC* | pgcpp*)
14070 # Portland Group C++ compiler
14071 lt_prog_compiler_wl_CXX='-Wl,'
14072 lt_prog_compiler_pic_CXX='-fpic'
14073 lt_prog_compiler_static_CXX='-Bstatic'
14074 ;;
14075 cxx*)
14076 # Compaq C++
14077 # Make sure the PIC flag is empty. It appears that all Alpha
14078 # Linux and Compaq Tru64 Unix objects are PIC.
14079 lt_prog_compiler_pic_CXX=
14080 lt_prog_compiler_static_CXX='-non_shared'
14081 ;;
14082 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14083 # IBM XL 8.0, 9.0 on PPC and BlueGene
14084 lt_prog_compiler_wl_CXX='-Wl,'
14085 lt_prog_compiler_pic_CXX='-qpic'
14086 lt_prog_compiler_static_CXX='-qstaticlink'
14087 ;;
14088 *)
14089 case `$CC -V 2>&1 | sed 5q` in
14090 *Sun\ C*)
14091 # Sun C++ 5.9
14092 lt_prog_compiler_pic_CXX='-KPIC'
14093 lt_prog_compiler_static_CXX='-Bstatic'
14094 lt_prog_compiler_wl_CXX='-Qoption ld '
14095 ;;
14096 esac
14097 ;;
14098 esac
14099 ;;
14100 lynxos*)
14101 ;;
14102 m88k*)
14103 ;;
14104 mvs*)
14105 case $cc_basename in
14106 cxx*)
14107 lt_prog_compiler_pic_CXX='-W c,exportall'
14108 ;;
14109 *)
14110 ;;
14111 esac
14112 ;;
14113 netbsd* | netbsdelf*-gnu)
14114 ;;
14115 *qnx* | *nto*)
14116 # QNX uses GNU C++, but need to define -shared option too, otherwise
14117 # it will coredump.
14118 lt_prog_compiler_pic_CXX='-fPIC -shared'
14119 ;;
14120 osf3* | osf4* | osf5*)
14121 case $cc_basename in
14122 KCC*)
14123 lt_prog_compiler_wl_CXX='--backend -Wl,'
14124 ;;
14125 RCC*)
14126 # Rational C++ 2.4.1
14127 lt_prog_compiler_pic_CXX='-pic'
14128 ;;
14129 cxx*)
14130 # Digital/Compaq C++
14131 lt_prog_compiler_wl_CXX='-Wl,'
14132 # Make sure the PIC flag is empty. It appears that all Alpha
14133 # Linux and Compaq Tru64 Unix objects are PIC.
14134 lt_prog_compiler_pic_CXX=
14135 lt_prog_compiler_static_CXX='-non_shared'
14136 ;;
14137 *)
14138 ;;
14139 esac
14140 ;;
14141 psos*)
14142 ;;
14143 solaris*)
14144 case $cc_basename in
14145 CC* | sunCC*)
14146 # Sun C++ 4.2, 5.x and Centerline C++
14147 lt_prog_compiler_pic_CXX='-KPIC'
14148 lt_prog_compiler_static_CXX='-Bstatic'
14149 lt_prog_compiler_wl_CXX='-Qoption ld '
14150 ;;
14151 gcx*)
14152 # Green Hills C++ Compiler
14153 lt_prog_compiler_pic_CXX='-PIC'
14154 ;;
14155 *)
14156 ;;
14157 esac
14158 ;;
14159 sunos4*)
14160 case $cc_basename in
14161 CC*)
14162 # Sun C++ 4.x
14163 lt_prog_compiler_pic_CXX='-pic'
14164 lt_prog_compiler_static_CXX='-Bstatic'
14165 ;;
14166 lcc*)
14167 # Lucid
14168 lt_prog_compiler_pic_CXX='-pic'
14169 ;;
14170 *)
14171 ;;
14172 esac
14173 ;;
14174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14175 case $cc_basename in
14176 CC*)
14177 lt_prog_compiler_wl_CXX='-Wl,'
14178 lt_prog_compiler_pic_CXX='-KPIC'
14179 lt_prog_compiler_static_CXX='-Bstatic'
14180 ;;
14181 esac
14182 ;;
14183 tandem*)
14184 case $cc_basename in
14185 NCC*)
14186 # NonStop-UX NCC 3.20
14187 lt_prog_compiler_pic_CXX='-KPIC'
14188 ;;
14189 *)
14190 ;;
14191 esac
14192 ;;
14193 vxworks*)
14194 ;;
14195 *)
14196 lt_prog_compiler_can_build_shared_CXX=no
14197 ;;
14198 esac
14199 fi
14200
14201 case $host_os in
14202 # For platforms which do not support PIC, -DPIC is meaningless:
14203 *djgpp*)
14204 lt_prog_compiler_pic_CXX=
14205 ;;
14206 *)
14207 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14208 ;;
14209 esac
14210
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14212 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14213 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14217 fi
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14219 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14220 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14221
14222 #
14223 # Check to make sure the PIC flag actually works.
14224 #
14225 if test -n "$lt_prog_compiler_pic_CXX"; then
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14227 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14228 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 lt_cv_prog_compiler_pic_works_CXX=no
14232 ac_outfile=conftest.$ac_objext
14233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14234 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14235 # Insert the option either (1) after the last *FLAGS variable, or
14236 # (2) before a word containing "conftest.", or (3) at the end.
14237 # Note that $ac_compile itself does not contain backslashes and begins
14238 # with a dollar sign (not a hyphen), so the echo should work correctly.
14239 # The option is referenced via a variable to avoid confusing sed.
14240 lt_compile=`echo "$ac_compile" | $SED \
14241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14243 -e 's:$: $lt_compiler_flag:'`
14244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14245 (eval "$lt_compile" 2>conftest.err)
14246 ac_status=$?
14247 cat conftest.err >&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 if (exit $ac_status) && test -s "$ac_outfile"; then
14250 # The compiler can only warn and ignore the option if not recognized
14251 # So say no if there are warnings other than the usual output.
14252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14255 lt_cv_prog_compiler_pic_works_CXX=yes
14256 fi
14257 fi
14258 $RM conftest*
14259
14260 fi
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14262 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14263
14264 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14265 case $lt_prog_compiler_pic_CXX in
14266 "" | " "*) ;;
14267 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14268 esac
14269 else
14270 lt_prog_compiler_pic_CXX=
14271 lt_prog_compiler_can_build_shared_CXX=no
14272 fi
14273
14274 fi
14275
14276
14277
14278
14279
14280 #
14281 # Check to make sure the static flag actually works.
14282 #
14283 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14285 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14286 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 lt_cv_prog_compiler_static_works_CXX=no
14290 save_LDFLAGS="$LDFLAGS"
14291 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14294 # The linker can only warn and ignore the option if not recognized
14295 # So say no if there are warnings
14296 if test -s conftest.err; then
14297 # Append any errors to the config.log.
14298 cat conftest.err 1>&5
14299 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14301 if diff conftest.exp conftest.er2 >/dev/null; then
14302 lt_cv_prog_compiler_static_works_CXX=yes
14303 fi
14304 else
14305 lt_cv_prog_compiler_static_works_CXX=yes
14306 fi
14307 fi
14308 $RM -r conftest*
14309 LDFLAGS="$save_LDFLAGS"
14310
14311 fi
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14313 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14314
14315 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14316 :
14317 else
14318 lt_prog_compiler_static_CXX=
14319 fi
14320
14321
14322
14323
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14325 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14326 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14327 $as_echo_n "(cached) " >&6
14328 else
14329 lt_cv_prog_compiler_c_o_CXX=no
14330 $RM -r conftest 2>/dev/null
14331 mkdir conftest
14332 cd conftest
14333 mkdir out
14334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14335
14336 lt_compiler_flag="-o out/conftest2.$ac_objext"
14337 # Insert the option either (1) after the last *FLAGS variable, or
14338 # (2) before a word containing "conftest.", or (3) at the end.
14339 # Note that $ac_compile itself does not contain backslashes and begins
14340 # with a dollar sign (not a hyphen), so the echo should work correctly.
14341 lt_compile=`echo "$ac_compile" | $SED \
14342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14344 -e 's:$: $lt_compiler_flag:'`
14345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14346 (eval "$lt_compile" 2>out/conftest.err)
14347 ac_status=$?
14348 cat out/conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14351 then
14352 # The compiler can only warn and ignore the option if not recognized
14353 # So say no if there are warnings
14354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14357 lt_cv_prog_compiler_c_o_CXX=yes
14358 fi
14359 fi
14360 chmod u+w . 2>&5
14361 $RM conftest*
14362 # SGI C++ compiler will create directory out/ii_files/ for
14363 # template instantiation
14364 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14365 $RM out/* && rmdir out
14366 cd ..
14367 $RM -r conftest
14368 $RM conftest*
14369
14370 fi
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14372 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14373
14374
14375
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14378 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381 lt_cv_prog_compiler_c_o_CXX=no
14382 $RM -r conftest 2>/dev/null
14383 mkdir conftest
14384 cd conftest
14385 mkdir out
14386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14387
14388 lt_compiler_flag="-o out/conftest2.$ac_objext"
14389 # Insert the option either (1) after the last *FLAGS variable, or
14390 # (2) before a word containing "conftest.", or (3) at the end.
14391 # Note that $ac_compile itself does not contain backslashes and begins
14392 # with a dollar sign (not a hyphen), so the echo should work correctly.
14393 lt_compile=`echo "$ac_compile" | $SED \
14394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14396 -e 's:$: $lt_compiler_flag:'`
14397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14398 (eval "$lt_compile" 2>out/conftest.err)
14399 ac_status=$?
14400 cat out/conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14403 then
14404 # The compiler can only warn and ignore the option if not recognized
14405 # So say no if there are warnings
14406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14409 lt_cv_prog_compiler_c_o_CXX=yes
14410 fi
14411 fi
14412 chmod u+w . 2>&5
14413 $RM conftest*
14414 # SGI C++ compiler will create directory out/ii_files/ for
14415 # template instantiation
14416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14417 $RM out/* && rmdir out
14418 cd ..
14419 $RM -r conftest
14420 $RM conftest*
14421
14422 fi
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14424 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14425
14426
14427
14428
14429 hard_links="nottested"
14430 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14431 # do not overwrite the value of need_locks provided by the user
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14433 $as_echo_n "checking if we can lock with hard links... " >&6; }
14434 hard_links=yes
14435 $RM conftest*
14436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14437 touch conftest.a
14438 ln conftest.a conftest.b 2>&5 || hard_links=no
14439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14441 $as_echo "$hard_links" >&6; }
14442 if test "$hard_links" = no; then
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14444 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14445 need_locks=warn
14446 fi
14447 else
14448 need_locks=no
14449 fi
14450
14451
14452
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14454 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14455
14456 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14457 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14458 case $host_os in
14459 aix[4-9]*)
14460 # If we're using GNU nm, then we don't want the "-C" option.
14461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14462 # Also, AIX nm treats weak defined symbols like other global defined
14463 # symbols, whereas GNU nm marks them as "W".
14464 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14465 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14466 else
14467 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14468 fi
14469 ;;
14470 pw32*)
14471 export_symbols_cmds_CXX="$ltdll_cmds"
14472 ;;
14473 cygwin* | mingw* | cegcc*)
14474 case $cc_basename in
14475 cl*) ;;
14476 *)
14477 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14478 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14479 ;;
14480 esac
14481 ;;
14482 linux* | k*bsd*-gnu | gnu*)
14483 link_all_deplibs_CXX=no
14484 ;;
14485 *)
14486 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14487 ;;
14488 esac
14489
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14491 $as_echo "$ld_shlibs_CXX" >&6; }
14492 test "$ld_shlibs_CXX" = no && can_build_shared=no
14493
14494 with_gnu_ld_CXX=$with_gnu_ld
14495
14496
14497
14498
14499
14500
14501 #
14502 # Do we need to explicitly link libc?
14503 #
14504 case "x$archive_cmds_need_lc_CXX" in
14505 x|xyes)
14506 # Assume -lc should be added
14507 archive_cmds_need_lc_CXX=yes
14508
14509 if test "$enable_shared" = yes && test "$GCC" = yes; then
14510 case $archive_cmds_CXX in
14511 *'~'*)
14512 # FIXME: we may have to deal with multi-command sequences.
14513 ;;
14514 '$CC '*)
14515 # Test whether the compiler implicitly links with -lc since on some
14516 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14517 # to ld, don't add -lc before -lgcc.
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14519 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14520 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 $RM conftest*
14524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14525
14526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14527 (eval $ac_compile) 2>&5
14528 ac_status=$?
14529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14530 test $ac_status = 0; } 2>conftest.err; then
14531 soname=conftest
14532 lib=conftest
14533 libobjs=conftest.$ac_objext
14534 deplibs=
14535 wl=$lt_prog_compiler_wl_CXX
14536 pic_flag=$lt_prog_compiler_pic_CXX
14537 compiler_flags=-v
14538 linker_flags=-v
14539 verstring=
14540 output_objdir=.
14541 libname=conftest
14542 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14543 allow_undefined_flag_CXX=
14544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14545 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14546 ac_status=$?
14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14548 test $ac_status = 0; }
14549 then
14550 lt_cv_archive_cmds_need_lc_CXX=no
14551 else
14552 lt_cv_archive_cmds_need_lc_CXX=yes
14553 fi
14554 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14555 else
14556 cat conftest.err 1>&5
14557 fi
14558 $RM conftest*
14559
14560 fi
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14562 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14563 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14564 ;;
14565 esac
14566 fi
14567 ;;
14568 esac
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14634 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14635
14636 library_names_spec=
14637 libname_spec='lib$name'
14638 soname_spec=
14639 shrext_cmds=".so"
14640 postinstall_cmds=
14641 postuninstall_cmds=
14642 finish_cmds=
14643 finish_eval=
14644 shlibpath_var=
14645 shlibpath_overrides_runpath=unknown
14646 version_type=none
14647 dynamic_linker="$host_os ld.so"
14648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14649 need_lib_prefix=unknown
14650 hardcode_into_libs=no
14651
14652 # when you set need_version to no, make sure it does not cause -set_version
14653 # flags to be left without arguments
14654 need_version=unknown
14655
14656 case $host_os in
14657 aix3*)
14658 version_type=linux
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14660 shlibpath_var=LIBPATH
14661
14662 # AIX 3 has no versioning support, so we append a major version to the name.
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 ;;
14665
14666 aix[4-9]*)
14667 version_type=linux
14668 need_lib_prefix=no
14669 need_version=no
14670 hardcode_into_libs=yes
14671 if test "$host_cpu" = ia64; then
14672 # AIX 5 supports IA64
14673 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14674 shlibpath_var=LD_LIBRARY_PATH
14675 else
14676 # With GCC up to 2.95.x, collect2 would create an import file
14677 # for dependence libraries. The import file would start with
14678 # the line `#! .'. This would cause the generated library to
14679 # depend on `.', always an invalid library. This was fixed in
14680 # development snapshots of GCC prior to 3.0.
14681 case $host_os in
14682 aix4 | aix4.[01] | aix4.[01].*)
14683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14684 echo ' yes '
14685 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14686 :
14687 else
14688 can_build_shared=no
14689 fi
14690 ;;
14691 esac
14692 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14693 # soname into executable. Probably we can add versioning support to
14694 # collect2, so additional links can be useful in future.
14695 if test "$aix_use_runtimelinking" = yes; then
14696 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14697 # instead of lib<name>.a to let people know that these are not
14698 # typical AIX shared libraries.
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700 else
14701 # We preserve .a as extension for shared libraries through AIX4.2
14702 # and later when we are not doing run time linking.
14703 library_names_spec='${libname}${release}.a $libname.a'
14704 soname_spec='${libname}${release}${shared_ext}$major'
14705 fi
14706 shlibpath_var=LIBPATH
14707 fi
14708 ;;
14709
14710 amigaos*)
14711 case $host_cpu in
14712 powerpc)
14713 # Since July 2007 AmigaOS4 officially supports .so libraries.
14714 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 ;;
14717 m68k)
14718 library_names_spec='$libname.ixlibrary $libname.a'
14719 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14720 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'
14721 ;;
14722 esac
14723 ;;
14724
14725 beos*)
14726 library_names_spec='${libname}${shared_ext}'
14727 dynamic_linker="$host_os ld.so"
14728 shlibpath_var=LIBRARY_PATH
14729 ;;
14730
14731 bsdi[45]*)
14732 version_type=linux
14733 need_version=no
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735 soname_spec='${libname}${release}${shared_ext}$major'
14736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14737 shlibpath_var=LD_LIBRARY_PATH
14738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14740 # the default ld.so.conf also contains /usr/contrib/lib and
14741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14742 # libtool to hard-code these into programs
14743 ;;
14744
14745 cygwin* | mingw* | pw32* | cegcc*)
14746 version_type=windows
14747 shrext_cmds=".dll"
14748 need_version=no
14749 need_lib_prefix=no
14750
14751 case $GCC,$cc_basename in
14752 yes,*)
14753 # gcc
14754 library_names_spec='$libname.dll.a'
14755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14756 postinstall_cmds='base_file=`basename \${file}`~
14757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14758 dldir=$destdir/`dirname \$dlpath`~
14759 test -d \$dldir || mkdir -p \$dldir~
14760 $install_prog $dir/$dlname \$dldir/$dlname~
14761 chmod a+x \$dldir/$dlname~
14762 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14763 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14764 fi'
14765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14766 dlpath=$dir/\$dldll~
14767 $RM \$dlpath'
14768 shlibpath_overrides_runpath=yes
14769
14770 case $host_os in
14771 cygwin*)
14772 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14773 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14774
14775 ;;
14776 mingw* | cegcc*)
14777 # MinGW DLLs use traditional 'lib' prefix
14778 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14779 ;;
14780 pw32*)
14781 # pw32 DLLs use 'pw' prefix rather than 'lib'
14782 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14783 ;;
14784 esac
14785 dynamic_linker='Win32 ld.exe'
14786 ;;
14787
14788 *,cl*)
14789 # Native MSVC
14790 libname_spec='$name'
14791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14792 library_names_spec='${libname}.dll.lib'
14793
14794 case $build_os in
14795 mingw*)
14796 sys_lib_search_path_spec=
14797 lt_save_ifs=$IFS
14798 IFS=';'
14799 for lt_path in $LIB
14800 do
14801 IFS=$lt_save_ifs
14802 # Let DOS variable expansion print the short 8.3 style file name.
14803 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14804 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14805 done
14806 IFS=$lt_save_ifs
14807 # Convert to MSYS style.
14808 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14809 ;;
14810 cygwin*)
14811 # Convert to unix form, then to dos form, then back to unix form
14812 # but this time dos style (no spaces!) so that the unix form looks
14813 # like /cygdrive/c/PROGRA~1:/cygdr...
14814 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14815 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14816 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14817 ;;
14818 *)
14819 sys_lib_search_path_spec="$LIB"
14820 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14821 # It is most probably a Windows format PATH.
14822 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14823 else
14824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14825 fi
14826 # FIXME: find the short name or the path components, as spaces are
14827 # common. (e.g. "Program Files" -> "PROGRA~1")
14828 ;;
14829 esac
14830
14831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14832 postinstall_cmds='base_file=`basename \${file}`~
14833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14834 dldir=$destdir/`dirname \$dlpath`~
14835 test -d \$dldir || mkdir -p \$dldir~
14836 $install_prog $dir/$dlname \$dldir/$dlname'
14837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14838 dlpath=$dir/\$dldll~
14839 $RM \$dlpath'
14840 shlibpath_overrides_runpath=yes
14841 dynamic_linker='Win32 link.exe'
14842 ;;
14843
14844 *)
14845 # Assume MSVC wrapper
14846 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14847 dynamic_linker='Win32 ld.exe'
14848 ;;
14849 esac
14850 # FIXME: first we should search . and the directory the executable is in
14851 shlibpath_var=PATH
14852 ;;
14853
14854 darwin* | rhapsody*)
14855 dynamic_linker="$host_os dyld"
14856 version_type=darwin
14857 need_lib_prefix=no
14858 need_version=no
14859 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14860 soname_spec='${libname}${release}${major}$shared_ext'
14861 shlibpath_overrides_runpath=yes
14862 shlibpath_var=DYLD_LIBRARY_PATH
14863 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14864
14865 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14866 ;;
14867
14868 dgux*)
14869 version_type=linux
14870 need_lib_prefix=no
14871 need_version=no
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 ;;
14876
14877 freebsd1*)
14878 dynamic_linker=no
14879 ;;
14880
14881 freebsd* | dragonfly*)
14882 # DragonFly does not have aout. When/if they implement a new
14883 # versioning mechanism, adjust this.
14884 if test -x /usr/bin/objformat; then
14885 objformat=`/usr/bin/objformat`
14886 else
14887 case $host_os in
14888 freebsd[123]*) objformat=aout ;;
14889 *) objformat=elf ;;
14890 esac
14891 fi
14892 version_type=freebsd-$objformat
14893 case $version_type in
14894 freebsd-elf*)
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14896 need_version=no
14897 need_lib_prefix=no
14898 ;;
14899 freebsd-*)
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14901 need_version=yes
14902 ;;
14903 esac
14904 shlibpath_var=LD_LIBRARY_PATH
14905 case $host_os in
14906 freebsd2*)
14907 shlibpath_overrides_runpath=yes
14908 ;;
14909 freebsd3.[01]* | freebsdelf3.[01]*)
14910 shlibpath_overrides_runpath=yes
14911 hardcode_into_libs=yes
14912 ;;
14913 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14914 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14915 shlibpath_overrides_runpath=no
14916 hardcode_into_libs=yes
14917 ;;
14918 *) # from 4.6 on, and DragonFly
14919 shlibpath_overrides_runpath=yes
14920 hardcode_into_libs=yes
14921 ;;
14922 esac
14923 ;;
14924
14925 gnu*)
14926 version_type=linux
14927 need_lib_prefix=no
14928 need_version=no
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=no
14933 hardcode_into_libs=yes
14934 ;;
14935
14936 haiku*)
14937 version_type=linux
14938 need_lib_prefix=no
14939 need_version=no
14940 dynamic_linker="$host_os runtime_loader"
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14942 soname_spec='${libname}${release}${shared_ext}$major'
14943 shlibpath_var=LIBRARY_PATH
14944 shlibpath_overrides_runpath=yes
14945 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14946 hardcode_into_libs=yes
14947 ;;
14948
14949 hpux9* | hpux10* | hpux11*)
14950 # Give a soname corresponding to the major version so that dld.sl refuses to
14951 # link against other versions.
14952 version_type=sunos
14953 need_lib_prefix=no
14954 need_version=no
14955 case $host_cpu in
14956 ia64*)
14957 shrext_cmds='.so'
14958 hardcode_into_libs=yes
14959 dynamic_linker="$host_os dld.so"
14960 shlibpath_var=LD_LIBRARY_PATH
14961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 if test "X$HPUX_IA64_MODE" = X32; then
14965 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14966 else
14967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14968 fi
14969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14970 ;;
14971 hppa*64*)
14972 shrext_cmds='.sl'
14973 hardcode_into_libs=yes
14974 dynamic_linker="$host_os dld.sl"
14975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14981 ;;
14982 *)
14983 shrext_cmds='.sl'
14984 dynamic_linker="$host_os dld.sl"
14985 shlibpath_var=SHLIB_PATH
14986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988 soname_spec='${libname}${release}${shared_ext}$major'
14989 ;;
14990 esac
14991 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14992 postinstall_cmds='chmod 555 $lib'
14993 # or fails outright, so override atomically:
14994 install_override_mode=555
14995 ;;
14996
14997 interix[3-9]*)
14998 version_type=linux
14999 need_lib_prefix=no
15000 need_version=no
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15004 shlibpath_var=LD_LIBRARY_PATH
15005 shlibpath_overrides_runpath=no
15006 hardcode_into_libs=yes
15007 ;;
15008
15009 irix5* | irix6* | nonstopux*)
15010 case $host_os in
15011 nonstopux*) version_type=nonstopux ;;
15012 *)
15013 if test "$lt_cv_prog_gnu_ld" = yes; then
15014 version_type=linux
15015 else
15016 version_type=irix
15017 fi ;;
15018 esac
15019 need_lib_prefix=no
15020 need_version=no
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15023 case $host_os in
15024 irix5* | nonstopux*)
15025 libsuff= shlibsuff=
15026 ;;
15027 *)
15028 case $LD in # libtool.m4 will add one of these switches to LD
15029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15030 libsuff= shlibsuff= libmagic=32-bit;;
15031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15032 libsuff=32 shlibsuff=N32 libmagic=N32;;
15033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15035 *) libsuff= shlibsuff= libmagic=never-match;;
15036 esac
15037 ;;
15038 esac
15039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15040 shlibpath_overrides_runpath=no
15041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15043 hardcode_into_libs=yes
15044 ;;
15045
15046 # No shared lib support for Linux oldld, aout, or coff.
15047 linux*oldld* | linux*aout* | linux*coff*)
15048 dynamic_linker=no
15049 ;;
15050
15051 # This must be Linux ELF.
15052 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15053 version_type=linux
15054 need_lib_prefix=no
15055 need_version=no
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15059 shlibpath_var=LD_LIBRARY_PATH
15060 shlibpath_overrides_runpath=no
15061
15062 # Some binutils ld are patched to set DT_RUNPATH
15063 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 lt_cv_shlibpath_overrides_runpath=no
15067 save_LDFLAGS=$LDFLAGS
15068 save_libdir=$libdir
15069 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15070 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15073
15074 int
15075 main ()
15076 {
15077
15078 ;
15079 return 0;
15080 }
15081 _ACEOF
15082 if ac_fn_cxx_try_link "$LINENO"; then :
15083 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15084 lt_cv_shlibpath_overrides_runpath=yes
15085 fi
15086 fi
15087 rm -f core conftest.err conftest.$ac_objext \
15088 conftest$ac_exeext conftest.$ac_ext
15089 LDFLAGS=$save_LDFLAGS
15090 libdir=$save_libdir
15091
15092 fi
15093
15094 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15095
15096 # This implies no fast_install, which is unacceptable.
15097 # Some rework will be needed to allow for fast_install
15098 # before this can be enabled.
15099 hardcode_into_libs=yes
15100
15101 # Append ld.so.conf contents to the search path
15102 if test -f /etc/ld.so.conf; then
15103 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' ' '`
15104 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15105 fi
15106
15107 # We used to test for /lib/ld.so.1 and disable shared libraries on
15108 # powerpc, because MkLinux only supported shared libraries with the
15109 # GNU dynamic linker. Since this was broken with cross compilers,
15110 # most powerpc-linux boxes support dynamic linking these days and
15111 # people can always --disable-shared, the test was removed, and we
15112 # assume the GNU/Linux dynamic linker is in use.
15113 dynamic_linker='GNU/Linux ld.so'
15114 ;;
15115
15116 netbsdelf*-gnu)
15117 version_type=linux
15118 need_lib_prefix=no
15119 need_version=no
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15121 soname_spec='${libname}${release}${shared_ext}$major'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 shlibpath_overrides_runpath=no
15124 hardcode_into_libs=yes
15125 dynamic_linker='NetBSD ld.elf_so'
15126 ;;
15127
15128 netbsd*)
15129 version_type=sunos
15130 need_lib_prefix=no
15131 need_version=no
15132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15135 dynamic_linker='NetBSD (a.out) ld.so'
15136 else
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 dynamic_linker='NetBSD ld.elf_so'
15140 fi
15141 shlibpath_var=LD_LIBRARY_PATH
15142 shlibpath_overrides_runpath=yes
15143 hardcode_into_libs=yes
15144 ;;
15145
15146 newsos6)
15147 version_type=linux
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 shlibpath_var=LD_LIBRARY_PATH
15150 shlibpath_overrides_runpath=yes
15151 ;;
15152
15153 *nto* | *qnx*)
15154 version_type=qnx
15155 need_lib_prefix=no
15156 need_version=no
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 shlibpath_overrides_runpath=no
15161 hardcode_into_libs=yes
15162 dynamic_linker='ldqnx.so'
15163 ;;
15164
15165 openbsd*)
15166 version_type=sunos
15167 sys_lib_dlsearch_path_spec="/usr/lib"
15168 need_lib_prefix=no
15169 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15170 case $host_os in
15171 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15172 *) need_version=no ;;
15173 esac
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15178 case $host_os in
15179 openbsd2.[89] | openbsd2.[89].*)
15180 shlibpath_overrides_runpath=no
15181 ;;
15182 *)
15183 shlibpath_overrides_runpath=yes
15184 ;;
15185 esac
15186 else
15187 shlibpath_overrides_runpath=yes
15188 fi
15189 ;;
15190
15191 os2*)
15192 libname_spec='$name'
15193 shrext_cmds=".dll"
15194 need_lib_prefix=no
15195 library_names_spec='$libname${shared_ext} $libname.a'
15196 dynamic_linker='OS/2 ld.exe'
15197 shlibpath_var=LIBPATH
15198 ;;
15199
15200 osf3* | osf4* | osf5*)
15201 version_type=osf
15202 need_lib_prefix=no
15203 need_version=no
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15208 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15209 ;;
15210
15211 rdos*)
15212 dynamic_linker=no
15213 ;;
15214
15215 solaris*)
15216 version_type=linux
15217 need_lib_prefix=no
15218 need_version=no
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220 soname_spec='${libname}${release}${shared_ext}$major'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 shlibpath_overrides_runpath=yes
15223 hardcode_into_libs=yes
15224 # ldd complains unless libraries are executable
15225 postinstall_cmds='chmod +x $lib'
15226 ;;
15227
15228 sunos4*)
15229 version_type=sunos
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 shlibpath_overrides_runpath=yes
15234 if test "$with_gnu_ld" = yes; then
15235 need_lib_prefix=no
15236 fi
15237 need_version=yes
15238 ;;
15239
15240 sysv4 | sysv4.3*)
15241 version_type=linux
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243 soname_spec='${libname}${release}${shared_ext}$major'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 case $host_vendor in
15246 sni)
15247 shlibpath_overrides_runpath=no
15248 need_lib_prefix=no
15249 runpath_var=LD_RUN_PATH
15250 ;;
15251 siemens)
15252 need_lib_prefix=no
15253 ;;
15254 motorola)
15255 need_lib_prefix=no
15256 need_version=no
15257 shlibpath_overrides_runpath=no
15258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15259 ;;
15260 esac
15261 ;;
15262
15263 sysv4*MP*)
15264 if test -d /usr/nec ;then
15265 version_type=linux
15266 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15267 soname_spec='$libname${shared_ext}.$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 fi
15270 ;;
15271
15272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15273 version_type=freebsd-elf
15274 need_lib_prefix=no
15275 need_version=no
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 shlibpath_overrides_runpath=yes
15280 hardcode_into_libs=yes
15281 if test "$with_gnu_ld" = yes; then
15282 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15283 else
15284 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15285 case $host_os in
15286 sco3.2v5*)
15287 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15288 ;;
15289 esac
15290 fi
15291 sys_lib_dlsearch_path_spec='/usr/lib'
15292 ;;
15293
15294 tpf*)
15295 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15296 version_type=linux
15297 need_lib_prefix=no
15298 need_version=no
15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=no
15302 hardcode_into_libs=yes
15303 ;;
15304
15305 uts4*)
15306 version_type=linux
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 ;;
15311
15312 *)
15313 dynamic_linker=no
15314 ;;
15315 esac
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15317 $as_echo "$dynamic_linker" >&6; }
15318 test "$dynamic_linker" = no && can_build_shared=no
15319
15320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15321 if test "$GCC" = yes; then
15322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15323 fi
15324
15325 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15326 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15327 fi
15328 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15329 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15330 fi
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15370 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15371 hardcode_action_CXX=
15372 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15373 test -n "$runpath_var_CXX" ||
15374 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15375
15376 # We can hardcode non-existent directories.
15377 if test "$hardcode_direct_CXX" != no &&
15378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15379 # have to relink, otherwise we might link with an installed library
15380 # when we should be linking with a yet-to-be-installed one
15381 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15382 test "$hardcode_minus_L_CXX" != no; then
15383 # Linking always hardcodes the temporary library directory.
15384 hardcode_action_CXX=relink
15385 else
15386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15387 hardcode_action_CXX=immediate
15388 fi
15389 else
15390 # We cannot hardcode anything, or else we can only hardcode existing
15391 # directories.
15392 hardcode_action_CXX=unsupported
15393 fi
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15395 $as_echo "$hardcode_action_CXX" >&6; }
15396
15397 if test "$hardcode_action_CXX" = relink ||
15398 test "$inherit_rpath_CXX" = yes; then
15399 # Fast installation is not supported
15400 enable_fast_install=no
15401 elif test "$shlibpath_overrides_runpath" = yes ||
15402 test "$enable_shared" = no; then
15403 # Fast installation is not necessary
15404 enable_fast_install=needless
15405 fi
15406
15407
15408
15409
15410
15411
15412
15413 fi # test -n "$compiler"
15414
15415 CC=$lt_save_CC
15416 CFLAGS=$lt_save_CFLAGS
15417 LDCXX=$LD
15418 LD=$lt_save_LD
15419 GCC=$lt_save_GCC
15420 with_gnu_ld=$lt_save_with_gnu_ld
15421 lt_cv_path_LDCXX=$lt_cv_path_LD
15422 lt_cv_path_LD=$lt_save_path_LD
15423 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15424 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15425 fi # test "$_lt_caught_CXX_error" != yes
15426
15427 ac_ext=c
15428 ac_cpp='$CPP $CPPFLAGS'
15429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445 ac_config_commands="$ac_config_commands libtool"
15446
15447
15448
15449
15450 # Only expand once:
15451
15452
15453 if test -n "$ac_tool_prefix"; then
15454 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15455 set dummy ${ac_tool_prefix}windres; ac_word=$2
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15457 $as_echo_n "checking for $ac_word... " >&6; }
15458 if ${ac_cv_prog_RC+:} false; then :
15459 $as_echo_n "(cached) " >&6
15460 else
15461 if test -n "$RC"; then
15462 ac_cv_prog_RC="$RC" # Let the user override the test.
15463 else
15464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15465 for as_dir in $PATH
15466 do
15467 IFS=$as_save_IFS
15468 test -z "$as_dir" && as_dir=.
15469 for ac_exec_ext in '' $ac_executable_extensions; do
15470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15471 ac_cv_prog_RC="${ac_tool_prefix}windres"
15472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15473 break 2
15474 fi
15475 done
15476 done
15477 IFS=$as_save_IFS
15478
15479 fi
15480 fi
15481 RC=$ac_cv_prog_RC
15482 if test -n "$RC"; then
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
15484 $as_echo "$RC" >&6; }
15485 else
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15487 $as_echo "no" >&6; }
15488 fi
15489
15490
15491 fi
15492 if test -z "$ac_cv_prog_RC"; then
15493 ac_ct_RC=$RC
15494 # Extract the first word of "windres", so it can be a program name with args.
15495 set dummy windres; ac_word=$2
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15497 $as_echo_n "checking for $ac_word... " >&6; }
15498 if ${ac_cv_prog_ac_ct_RC+:} false; then :
15499 $as_echo_n "(cached) " >&6
15500 else
15501 if test -n "$ac_ct_RC"; then
15502 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
15503 else
15504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15505 for as_dir in $PATH
15506 do
15507 IFS=$as_save_IFS
15508 test -z "$as_dir" && as_dir=.
15509 for ac_exec_ext in '' $ac_executable_extensions; do
15510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15511 ac_cv_prog_ac_ct_RC="windres"
15512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15513 break 2
15514 fi
15515 done
15516 done
15517 IFS=$as_save_IFS
15518
15519 fi
15520 fi
15521 ac_ct_RC=$ac_cv_prog_ac_ct_RC
15522 if test -n "$ac_ct_RC"; then
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
15524 $as_echo "$ac_ct_RC" >&6; }
15525 else
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15527 $as_echo "no" >&6; }
15528 fi
15529
15530 if test "x$ac_ct_RC" = x; then
15531 RC=""
15532 else
15533 case $cross_compiling:$ac_tool_warned in
15534 yes:)
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15537 ac_tool_warned=yes ;;
15538 esac
15539 RC=$ac_ct_RC
15540 fi
15541 else
15542 RC="$ac_cv_prog_RC"
15543 fi
15544
15545
15546
15547 # Source file extension for RC test sources.
15548 ac_ext=rc
15549
15550 # Object file extension for compiled RC test sources.
15551 objext=o
15552 objext_RC=$objext
15553
15554 # Code to be used in simple compile tests
15555 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
15556
15557 # Code to be used in simple link tests
15558 lt_simple_link_test_code="$lt_simple_compile_test_code"
15559
15560 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15561
15562
15563
15564
15565
15566
15567 # If no C compiler was specified, use CC.
15568 LTCC=${LTCC-"$CC"}
15569
15570 # If no C compiler flags were specified, use CFLAGS.
15571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15572
15573 # Allow CC to be a program name with arguments.
15574 compiler=$CC
15575
15576
15577 # save warnings/boilerplate of simple test code
15578 ac_outfile=conftest.$ac_objext
15579 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15581 _lt_compiler_boilerplate=`cat conftest.err`
15582 $RM conftest*
15583
15584 ac_outfile=conftest.$ac_objext
15585 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15587 _lt_linker_boilerplate=`cat conftest.err`
15588 $RM -r conftest*
15589
15590
15591 # Allow CC to be a program name with arguments.
15592 lt_save_CC="$CC"
15593 lt_save_CFLAGS=$CFLAGS
15594 lt_save_GCC=$GCC
15595 GCC=
15596 CC=${RC-"windres"}
15597 CFLAGS=
15598 compiler=$CC
15599 compiler_RC=$CC
15600 for cc_temp in $compiler""; do
15601 case $cc_temp in
15602 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15603 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15604 \-*) ;;
15605 *) break;;
15606 esac
15607 done
15608 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15609
15610 lt_cv_prog_compiler_c_o_RC=yes
15611
15612 if test -n "$compiler"; then
15613 :
15614
15615
15616
15617 fi
15618
15619 GCC=$lt_save_GCC
15620 ac_ext=c
15621 ac_cpp='$CPP $CPPFLAGS'
15622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15625
15626 CC=$lt_save_CC
15627 CFLAGS=$lt_save_CFLAGS
15628
15629
15630
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15632 $as_echo_n "checking whether ln -s works... " >&6; }
15633 LN_S=$as_ln_s
15634 if test "$LN_S" = "ln -s"; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15636 $as_echo "yes" >&6; }
15637 else
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15639 $as_echo "no, using $LN_S" >&6; }
15640 fi
15641
15642
15643 #------------------------------------------------------------------------------------
15644 # Rules for library version information:
15645 #
15646 # 1. Start with version information of `0:0:0' for each libtool library.
15647 # 2. Update the version information only immediately before a public release of
15648 # your software. More frequent updates are unnecessary, and only guarantee
15649 # that the current interface number gets larger faster.
15650 # 3. If the library source code has changed at all since the last update, then
15651 # increment revision (`c:r:a' becomes `c:r+1:a').
15652 # 4. If any interfaces have been added, removed, or changed since the last update,
15653 # increment current, and set revision to 0.
15654 # 5. If any interfaces have been added since the last public release, then increment
15655 # age.
15656 # 6. If any interfaces have been removed since the last public release, then set age
15657 # to 0.
15658
15659 SHARED_VERSION_INFO="1:8:1"
15660
15661
15662
15663
15664
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15666 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15667 set x ${MAKE-make}
15668 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15669 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15670 $as_echo_n "(cached) " >&6
15671 else
15672 cat >conftest.make <<\_ACEOF
15673 SHELL = /bin/sh
15674 all:
15675 @echo '@@@%%%=$(MAKE)=@@@%%%'
15676 _ACEOF
15677 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15678 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15679 *@@@%%%=?*=@@@%%%*)
15680 eval ac_cv_prog_make_${ac_make}_set=yes;;
15681 *)
15682 eval ac_cv_prog_make_${ac_make}_set=no;;
15683 esac
15684 rm -f conftest.make
15685 fi
15686 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15688 $as_echo "yes" >&6; }
15689 SET_MAKE=
15690 else
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15693 SET_MAKE="MAKE=${MAKE-make}"
15694 fi
15695
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15697 $as_echo_n "checking whether ln -s works... " >&6; }
15698 LN_S=$as_ln_s
15699 if test "$LN_S" = "ln -s"; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15701 $as_echo "yes" >&6; }
15702 else
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15704 $as_echo "no, using $LN_S" >&6; }
15705 fi
15706
15707
15708
15709 if test "x-$build_os-$host_os-$target_os" = x-mingw32-mingw32-mingw32 ; then
15710 # Extract the first word of "dlltool", so it can be a program name with args.
15711 set dummy dlltool; ac_word=$2
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15713 $as_echo_n "checking for $ac_word... " >&6; }
15714 if ${ac_cv_prog_DLLTOOL+:} false; then :
15715 $as_echo_n "(cached) " >&6
15716 else
15717 if test -n "$DLLTOOL"; then
15718 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15719 else
15720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15721 for as_dir in $PATH
15722 do
15723 IFS=$as_save_IFS
15724 test -z "$as_dir" && as_dir=.
15725 for ac_exec_ext in '' $ac_executable_extensions; do
15726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15727 ac_cv_prog_DLLTOOL="dlltool"
15728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15729 break 2
15730 fi
15731 done
15732 done
15733 IFS=$as_save_IFS
15734
15735 fi
15736 fi
15737 DLLTOOL=$ac_cv_prog_DLLTOOL
15738 if test -n "$DLLTOOL"; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
15740 $as_echo "$DLLTOOL" >&6; }
15741 else
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15743 $as_echo "no" >&6; }
15744 fi
15745
15746
15747 # Extract the first word of "dllwrap", so it can be a program name with args.
15748 set dummy dllwrap; ac_word=$2
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15750 $as_echo_n "checking for $ac_word... " >&6; }
15751 if ${ac_cv_prog_DLLWRAP+:} false; then :
15752 $as_echo_n "(cached) " >&6
15753 else
15754 if test -n "$DLLWRAP"; then
15755 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15756 else
15757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15759 do
15760 IFS=$as_save_IFS
15761 test -z "$as_dir" && as_dir=.
15762 for ac_exec_ext in '' $ac_executable_extensions; do
15763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15764 ac_cv_prog_DLLWRAP="dllwrap"
15765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15766 break 2
15767 fi
15768 done
15769 done
15770 IFS=$as_save_IFS
15771
15772 fi
15773 fi
15774 DLLWRAP=$ac_cv_prog_DLLWRAP
15775 if test -n "$DLLWRAP"; then
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
15777 $as_echo "$DLLWRAP" >&6; }
15778 else
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15780 $as_echo "no" >&6; }
15781 fi
15782
15783
15784 # Extract the first word of "pexports", so it can be a program name with args.
15785 set dummy pexports; ac_word=$2
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15787 $as_echo_n "checking for $ac_word... " >&6; }
15788 if ${ac_cv_prog_PEXPORTS+:} false; then :
15789 $as_echo_n "(cached) " >&6
15790 else
15791 if test -n "$PEXPORTS"; then
15792 ac_cv_prog_PEXPORTS="$PEXPORTS" # Let the user override the test.
15793 else
15794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15795 for as_dir in $PATH
15796 do
15797 IFS=$as_save_IFS
15798 test -z "$as_dir" && as_dir=.
15799 for ac_exec_ext in '' $ac_executable_extensions; do
15800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15801 ac_cv_prog_PEXPORTS="pexports"
15802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15803 break 2
15804 fi
15805 done
15806 done
15807 IFS=$as_save_IFS
15808
15809 fi
15810 fi
15811 PEXPORTS=$ac_cv_prog_PEXPORTS
15812 if test -n "$PEXPORTS"; then
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PEXPORTS" >&5
15814 $as_echo "$PEXPORTS" >&6; }
15815 else
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15817 $as_echo "no" >&6; }
15818 fi
15819
15820
15821 fi
15822
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15824 $as_echo_n "checking for ANSI C header files... " >&6; }
15825 if ${ac_cv_header_stdc+:} false; then :
15826 $as_echo_n "(cached) " >&6
15827 else
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15830 #include <stdlib.h>
15831 #include <stdarg.h>
15832 #include <string.h>
15833 #include <float.h>
15834
15835 int
15836 main ()
15837 {
15838
15839 ;
15840 return 0;
15841 }
15842 _ACEOF
15843 if ac_fn_c_try_compile "$LINENO"; then :
15844 ac_cv_header_stdc=yes
15845 else
15846 ac_cv_header_stdc=no
15847 fi
15848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849
15850 if test $ac_cv_header_stdc = yes; then
15851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15854 #include <string.h>
15855
15856 _ACEOF
15857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15858 $EGREP "memchr" >/dev/null 2>&1; then :
15859
15860 else
15861 ac_cv_header_stdc=no
15862 fi
15863 rm -f conftest*
15864
15865 fi
15866
15867 if test $ac_cv_header_stdc = yes; then
15868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15871 #include <stdlib.h>
15872
15873 _ACEOF
15874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15875 $EGREP "free" >/dev/null 2>&1; then :
15876
15877 else
15878 ac_cv_header_stdc=no
15879 fi
15880 rm -f conftest*
15881
15882 fi
15883
15884 if test $ac_cv_header_stdc = yes; then
15885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15886 if test "$cross_compiling" = yes; then :
15887 :
15888 else
15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h. */
15891 #include <ctype.h>
15892 #include <stdlib.h>
15893 #if ((' ' & 0x0FF) == 0x020)
15894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15896 #else
15897 # define ISLOWER(c) \
15898 (('a' <= (c) && (c) <= 'i') \
15899 || ('j' <= (c) && (c) <= 'r') \
15900 || ('s' <= (c) && (c) <= 'z'))
15901 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15902 #endif
15903
15904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15905 int
15906 main ()
15907 {
15908 int i;
15909 for (i = 0; i < 256; i++)
15910 if (XOR (islower (i), ISLOWER (i))
15911 || toupper (i) != TOUPPER (i))
15912 return 2;
15913 return 0;
15914 }
15915 _ACEOF
15916 if ac_fn_c_try_run "$LINENO"; then :
15917
15918 else
15919 ac_cv_header_stdc=no
15920 fi
15921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15922 conftest.$ac_objext conftest.beam conftest.$ac_ext
15923 fi
15924
15925 fi
15926 fi
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15928 $as_echo "$ac_cv_header_stdc" >&6; }
15929 if test $ac_cv_header_stdc = yes; then
15930
15931 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15932
15933 fi
15934
15935
15936 for ac_header in stdint.h sys/times.h
15937 do :
15938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15939 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15941 cat >>confdefs.h <<_ACEOF
15942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15943 _ACEOF
15944
15945 fi
15946
15947 done
15948
15949
15950 #====================================================================================
15951 # Couple of initializations here. Fill in real values later.
15952
15953 SHLIB_VERSION_ARG=""
15954
15955 #====================================================================================
15956 # Finished checking, handle options.
15957
15958 # Check whether --enable-gcc-werror was given.
15959 if test "${enable_gcc_werror+set}" = set; then :
15960 enableval=$enable_gcc_werror; ac_arg_gcc_werror=yes
15961 else
15962 ac_arg_gcc_werror=no
15963 fi
15964
15965
15966 # Check whether --enable-gcc-pipe was given.
15967 if test "${enable_gcc_pipe+set}" = set; then :
15968 enableval=$enable_gcc_pipe; ac_arg_gcc_pipe="N"
15969 else
15970 ac_arg_gcc_pipe="Y"
15971 fi
15972
15973
15974 # Check whether --enable-gcc-opt was given.
15975 if test "${enable_gcc_opt+set}" = set; then :
15976 enableval=$enable_gcc_opt; ac_arg_gcc_opt="N"
15977 else
15978 ac_arg_gcc_opt="Y"
15979 fi
15980
15981
15982 # Check whether --enable-fftw was given.
15983 if test "${enable_fftw+set}" = set; then :
15984 enableval=$enable_fftw; ac_arg_fftw="N"
15985 else
15986 ac_arg_fftw="Y"
15987 fi
15988
15989
15990 # Check whether --enable-cpu-clip was given.
15991 if test "${enable_cpu_clip+set}" = set; then :
15992 enableval=$enable_cpu_clip; ac_arg_cpu_clip="N"
15993 else
15994 ac_arg_cpu_clip="Y"
15995 fi
15996
15997
15998 #====================================================================================
15999 # Check types and their sizes.
16000
16001 # The cast to long int works around a bug in the HP C Compiler
16002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16004 # This bug is HP SR number 8606223364.
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16006 $as_echo_n "checking size of int... " >&6; }
16007 if ${ac_cv_sizeof_int+:} false; then :
16008 $as_echo_n "(cached) " >&6
16009 else
16010 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16011
16012 else
16013 if test "$ac_cv_type_int" = yes; then
16014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16016 as_fn_error 77 "cannot compute sizeof (int)
16017 See \`config.log' for more details" "$LINENO" 5; }
16018 else
16019 ac_cv_sizeof_int=0
16020 fi
16021 fi
16022
16023 fi
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16025 $as_echo "$ac_cv_sizeof_int" >&6; }
16026
16027
16028
16029 cat >>confdefs.h <<_ACEOF
16030 #define SIZEOF_INT $ac_cv_sizeof_int
16031 _ACEOF
16032
16033
16034 # The cast to long int works around a bug in the HP C Compiler
16035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16037 # This bug is HP SR number 8606223364.
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16039 $as_echo_n "checking size of long... " >&6; }
16040 if ${ac_cv_sizeof_long+:} false; then :
16041 $as_echo_n "(cached) " >&6
16042 else
16043 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16044
16045 else
16046 if test "$ac_cv_type_long" = yes; then
16047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16049 as_fn_error 77 "cannot compute sizeof (long)
16050 See \`config.log' for more details" "$LINENO" 5; }
16051 else
16052 ac_cv_sizeof_long=0
16053 fi
16054 fi
16055
16056 fi
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16058 $as_echo "$ac_cv_sizeof_long" >&6; }
16059
16060
16061
16062 cat >>confdefs.h <<_ACEOF
16063 #define SIZEOF_LONG $ac_cv_sizeof_long
16064 _ACEOF
16065
16066
16067 # The cast to long int works around a bug in the HP C Compiler
16068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16070 # This bug is HP SR number 8606223364.
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
16072 $as_echo_n "checking size of float... " >&6; }
16073 if ${ac_cv_sizeof_float+:} false; then :
16074 $as_echo_n "(cached) " >&6
16075 else
16076 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
16077
16078 else
16079 if test "$ac_cv_type_float" = yes; then
16080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16082 as_fn_error 77 "cannot compute sizeof (float)
16083 See \`config.log' for more details" "$LINENO" 5; }
16084 else
16085 ac_cv_sizeof_float=0
16086 fi
16087 fi
16088
16089 fi
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
16091 $as_echo "$ac_cv_sizeof_float" >&6; }
16092
16093
16094
16095 cat >>confdefs.h <<_ACEOF
16096 #define SIZEOF_FLOAT $ac_cv_sizeof_float
16097 _ACEOF
16098
16099
16100 # The cast to long int works around a bug in the HP C Compiler
16101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16103 # This bug is HP SR number 8606223364.
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
16105 $as_echo_n "checking size of double... " >&6; }
16106 if ${ac_cv_sizeof_double+:} false; then :
16107 $as_echo_n "(cached) " >&6
16108 else
16109 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
16110
16111 else
16112 if test "$ac_cv_type_double" = yes; then
16113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16115 as_fn_error 77 "cannot compute sizeof (double)
16116 See \`config.log' for more details" "$LINENO" 5; }
16117 else
16118 ac_cv_sizeof_double=0
16119 fi
16120 fi
16121
16122 fi
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
16124 $as_echo "$ac_cv_sizeof_double" >&6; }
16125
16126
16127
16128 cat >>confdefs.h <<_ACEOF
16129 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
16130 _ACEOF
16131
16132
16133
16134 #====================================================================================
16135 # Determine endian-ness of target processor.
16136
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5
16138 $as_echo_n "checking processor byte ordering... " >&6; }
16139 if ${ac_cv_c_byte_order+:} false; then :
16140 $as_echo_n "(cached) " >&6
16141 else
16142 # Initialize to unknown
16143 ac_cv_c_byte_order=unknown
16144
16145 if test x$ac_cv_header_endian_h = xyes ; then
16146
16147 # First try <endian.h> which should set BYTE_ORDER.
16148
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16151
16152 #include <endian.h>
16153 #if BYTE_ORDER != LITTLE_ENDIAN
16154 not big endian
16155 #endif
16156
16157 int
16158 main ()
16159 {
16160 return 0 ;
16161 ;
16162 return 0;
16163 }
16164 _ACEOF
16165 if ac_fn_c_try_link "$LINENO"; then :
16166 ac_cv_c_byte_order=little
16167
16168 fi
16169 rm -f core conftest.err conftest.$ac_objext \
16170 conftest$ac_exeext conftest.$ac_ext
16171
16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173 /* end confdefs.h. */
16174
16175 #include <endian.h>
16176 #if BYTE_ORDER != BIG_ENDIAN
16177 not big endian
16178 #endif
16179
16180 int
16181 main ()
16182 {
16183 return 0 ;
16184 ;
16185 return 0;
16186 }
16187 _ACEOF
16188 if ac_fn_c_try_link "$LINENO"; then :
16189 ac_cv_c_byte_order=big
16190
16191 fi
16192 rm -f core conftest.err conftest.$ac_objext \
16193 conftest$ac_exeext conftest.$ac_ext
16194
16195 fi
16196
16197 if test $ac_cv_c_byte_order = unknown ; then
16198
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16201
16202 #include <sys/types.h>
16203 #include <sys/param.h>
16204 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16205 bogus endian macros
16206 #endif
16207
16208 int
16209 main ()
16210 {
16211 return 0 ;
16212 ;
16213 return 0;
16214 }
16215 _ACEOF
16216 if ac_fn_c_try_link "$LINENO"; then :
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16219
16220 #include <sys/types.h>
16221 #include <sys/param.h>
16222 #if BYTE_ORDER != LITTLE_ENDIAN
16223 not big endian
16224 #endif
16225
16226 int
16227 main ()
16228 {
16229 return 0 ;
16230 ;
16231 return 0;
16232 }
16233 _ACEOF
16234 if ac_fn_c_try_link "$LINENO"; then :
16235 ac_cv_c_byte_order=little
16236
16237 fi
16238 rm -f core conftest.err conftest.$ac_objext \
16239 conftest$ac_exeext conftest.$ac_ext
16240
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243
16244 #include <sys/types.h>
16245 #include <sys/param.h>
16246 #if BYTE_ORDER != LITTLE_ENDIAN
16247 not big endian
16248 #endif
16249
16250 int
16251 main ()
16252 {
16253 return 0 ;
16254 ;
16255 return 0;
16256 }
16257 _ACEOF
16258 if ac_fn_c_try_link "$LINENO"; then :
16259 ac_cv_c_byte_order=little
16260
16261 fi
16262 rm -f core conftest.err conftest.$ac_objext \
16263 conftest$ac_exeext conftest.$ac_ext
16264
16265
16266 fi
16267 rm -f core conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16269
16270 fi
16271
16272 if test $ac_cv_c_byte_order = unknown ; then
16273 if test $cross_compiling = yes ; then
16274 # This is the last resort. Try to guess the target processor endian-ness
16275 # by looking at the target CPU type.
16276
16277 case "$target_cpu" in
16278 alpha* | i?86* | mipsel* | ia64*)
16279 ac_cv_c_byte_order=little
16280 ;;
16281
16282 m68* | mips* | powerpc* | hppa* | sparc*)
16283 ac_cv_c_byte_order=big
16284 ;;
16285
16286 esac
16287
16288 else
16289 if test "$cross_compiling" = yes; then :
16290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16292 as_fn_error $? "cannot run test program while cross compiling
16293 See \`config.log' for more details" "$LINENO" 5; }
16294 else
16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h. */
16297
16298 int main (void)
16299 { /* Are we little or big endian? From Harbison&Steele. */
16300 union
16301 { long l ;
16302 char c [sizeof (long)] ;
16303 } u ;
16304 u.l = 1 ;
16305 return (u.c [sizeof (long) - 1] == 1);
16306 }
16307
16308 _ACEOF
16309 if ac_fn_c_try_run "$LINENO"; then :
16310
16311 else
16312 ac_cv_c_byte_order=big
16313 fi
16314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16315 conftest.$ac_objext conftest.beam conftest.$ac_ext
16316 fi
16317
16318
16319 if test "$cross_compiling" = yes; then :
16320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16322 as_fn_error $? "cannot run test program while cross compiling
16323 See \`config.log' for more details" "$LINENO" 5; }
16324 else
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16327 int main (void)
16328 { /* Are we little or big endian? From Harbison&Steele. */
16329 union
16330 { long l ;
16331 char c [sizeof (long)] ;
16332 } u ;
16333 u.l = 1 ;
16334 return (u.c [0] == 1);
16335 }
16336 _ACEOF
16337 if ac_fn_c_try_run "$LINENO"; then :
16338
16339 else
16340 ac_cv_c_byte_order=little
16341 fi
16342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16343 conftest.$ac_objext conftest.beam conftest.$ac_ext
16344 fi
16345
16346 fi
16347 fi
16348
16349
16350 fi
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5
16352 $as_echo "$ac_cv_c_byte_order" >&6; }
16353
16354 if test $ac_cv_c_byte_order = big ; then
16355 ac_cv_c_big_endian=1
16356 ac_cv_c_little_endian=0
16357 elif test $ac_cv_c_byte_order = little ; then
16358 ac_cv_c_big_endian=0
16359 ac_cv_c_little_endian=1
16360 else
16361 ac_cv_c_big_endian=0
16362 ac_cv_c_little_endian=0
16363
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
16365 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
16367 $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
16369 $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5
16371 $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;}
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
16373 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
16374 fi
16375
16376
16377
16378
16379
16380 cat >>confdefs.h <<_ACEOF
16381 #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
16382 _ACEOF
16383
16384
16385 cat >>confdefs.h <<_ACEOF
16386 #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
16387 _ACEOF
16388
16389
16390 #====================================================================================
16391 # Check for functions.
16392
16393 for ac_func in malloc calloc free memcpy memmove alarm signal
16394 do :
16395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16396 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16397 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16398 cat >>confdefs.h <<_ACEOF
16399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16400 _ACEOF
16401
16402 fi
16403 done
16404
16405
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
16407 $as_echo_n "checking for floor in -lm... " >&6; }
16408 if ${ac_cv_lib_m_floor+:} false; then :
16409 $as_echo_n "(cached) " >&6
16410 else
16411 ac_check_lib_save_LIBS=$LIBS
16412 LIBS="-lm $LIBS"
16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415
16416 /* Override any GCC internal prototype to avoid an error.
16417 Use char because int might match the return type of a GCC
16418 builtin and then its argument prototype would still apply. */
16419 #ifdef __cplusplus
16420 extern "C"
16421 #endif
16422 char floor ();
16423 int
16424 main ()
16425 {
16426 return floor ();
16427 ;
16428 return 0;
16429 }
16430 _ACEOF
16431 if ac_fn_c_try_link "$LINENO"; then :
16432 ac_cv_lib_m_floor=yes
16433 else
16434 ac_cv_lib_m_floor=no
16435 fi
16436 rm -f core conftest.err conftest.$ac_objext \
16437 conftest$ac_exeext conftest.$ac_ext
16438 LIBS=$ac_check_lib_save_LIBS
16439 fi
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
16441 $as_echo "$ac_cv_lib_m_floor" >&6; }
16442 if test "x$ac_cv_lib_m_floor" = xyes; then :
16443 cat >>confdefs.h <<_ACEOF
16444 #define HAVE_LIBM 1
16445 _ACEOF
16446
16447 LIBS="-lm $LIBS"
16448
16449 fi
16450
16451 for ac_func in floor ceil fmod
16452 do :
16453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16454 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16455 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16456 cat >>confdefs.h <<_ACEOF
16457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16458 _ACEOF
16459
16460 fi
16461 done
16462
16463
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGALRM" >&5
16465 $as_echo_n "checking for SIGALRM... " >&6; }
16466 if ${ac_cv_signal_SIGALRM+:} false; then :
16467 $as_echo_n "(cached) " >&6
16468 else
16469
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16472
16473 #include <signal.h>
16474
16475
16476 int
16477 main ()
16478 {
16479 signal(SIGALRM, SIG_DFL) ;
16480 ;
16481 return 0;
16482 }
16483 _ACEOF
16484 if ac_fn_c_try_link "$LINENO"; then :
16485 ac_cv_signal_SIGALRM=yes
16486 else
16487 ac_cv_signal_SIGALRM=no
16488 fi
16489 rm -f core conftest.err conftest.$ac_objext \
16490 conftest$ac_exeext conftest.$ac_ext
16491
16492
16493 fi
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_signal_SIGALRM" >&5
16495 $as_echo "$ac_cv_signal_SIGALRM" >&6; }
16496
16497 if test "$ac_cv_signal_SIGALRM" = yes; then
16498
16499 $as_echo "#define HAVE_SIGALRM 1" >>confdefs.h
16500
16501 fi
16502
16503
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
16505 $as_echo_n "checking for lrint... " >&6; }
16506 if ${ac_cv_c99_lrint+:} false; then :
16507 $as_echo_n "(cached) " >&6
16508 else
16509
16510 lrint_save_CFLAGS=$CFLAGS
16511 CFLAGS="-lm"
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16514
16515 #define _ISOC9X_SOURCE 1
16516 #define _ISOC99_SOURCE 1
16517 #define __USE_ISOC99 1
16518 #define __USE_ISOC9X 1
16519
16520 #include <math.h>
16521
16522 int
16523 main ()
16524 {
16525 if (!lrint(3.14159)) lrint(2.7183);
16526 ;
16527 return 0;
16528 }
16529 _ACEOF
16530 if ac_fn_c_try_link "$LINENO"; then :
16531 ac_cv_c99_lrint=yes
16532 else
16533 ac_cv_c99_lrint=no
16534 fi
16535 rm -f core conftest.err conftest.$ac_objext \
16536 conftest$ac_exeext conftest.$ac_ext
16537
16538 CFLAGS=$lrint_save_CFLAGS
16539
16540
16541 fi
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
16543 $as_echo "$ac_cv_c99_lrint" >&6; }
16544
16545 if test "$ac_cv_c99_lrint" = yes; then
16546
16547 $as_echo "#define HAVE_LRINT 1" >>confdefs.h
16548
16549 fi
16550
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
16552 $as_echo_n "checking for lrintf... " >&6; }
16553 if ${ac_cv_c99_lrintf+:} false; then :
16554 $as_echo_n "(cached) " >&6
16555 else
16556
16557 lrintf_save_CFLAGS=$CFLAGS
16558 CFLAGS="-lm"
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16561
16562 #define _ISOC9X_SOURCE 1
16563 #define _ISOC99_SOURCE 1
16564 #define __USE_ISOC99 1
16565 #define __USE_ISOC9X 1
16566
16567 #include <math.h>
16568
16569 int
16570 main ()
16571 {
16572 if (!lrintf(3.14159)) lrintf(2.7183);
16573 ;
16574 return 0;
16575 }
16576 _ACEOF
16577 if ac_fn_c_try_link "$LINENO"; then :
16578 ac_cv_c99_lrintf=yes
16579 else
16580 ac_cv_c99_lrintf=no
16581 fi
16582 rm -f core conftest.err conftest.$ac_objext \
16583 conftest$ac_exeext conftest.$ac_ext
16584
16585 CFLAGS=$lrintf_save_CFLAGS
16586
16587
16588 fi
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
16590 $as_echo "$ac_cv_c99_lrintf" >&6; }
16591
16592 if test "$ac_cv_c99_lrintf" = yes; then
16593
16594 $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
16595
16596 fi
16597
16598 # AC_C99_FUNC_LLRINT Don't need this (yet?).
16599
16600 case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in
16601 xyesyes)
16602 ;;
16603 *)
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5
16605 $as_echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;}
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5
16607 $as_echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;}
16608 ;;
16609 esac
16610
16611 #====================================================================================
16612 # Determine if the processor can do clipping on float to int conversions.
16613
16614 if test x$ac_arg_cpu_clip = "xY" ; then
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
16616 $as_echo_n "checking processor clipping capabilities... " >&6; }
16617 if ${ac_cv_c_clip_type+:} false; then :
16618 $as_echo_n "(cached) " >&6
16619 else
16620 # Initialize to unknown
16621 ac_cv_c_clip_positive=unknown
16622 ac_cv_c_clip_negative=unknown
16623
16624
16625 if test $ac_cv_c_clip_positive = unknown ; then
16626 if test "$cross_compiling" = yes; then :
16627 ac_cv_c_clip_positive=unknown
16628
16629 else
16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h. */
16632
16633 #define _ISOC9X_SOURCE 1
16634 #define _ISOC99_SOURCE 1
16635 #define __USE_ISOC99 1
16636 #define __USE_ISOC9X 1
16637 #include <math.h>
16638 int main (void)
16639 { double fval ;
16640 int k, ival ;
16641
16642 fval = 1.0 * 0x7FFFFFFF ;
16643 for (k = 0 ; k < 100 ; k++)
16644 { ival = (lrint (fval)) >> 24 ;
16645 if (ival != 127)
16646 return 1 ;
16647
16648 fval *= 1.2499999 ;
16649 } ;
16650
16651 return 0 ;
16652 }
16653
16654 _ACEOF
16655 if ac_fn_c_try_run "$LINENO"; then :
16656 ac_cv_c_clip_positive=yes
16657 else
16658 ac_cv_c_clip_positive=no
16659 fi
16660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16661 conftest.$ac_objext conftest.beam conftest.$ac_ext
16662 fi
16663
16664
16665 if test "$cross_compiling" = yes; then :
16666 ac_cv_c_clip_negative=unknown
16667
16668 else
16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16670 /* end confdefs.h. */
16671
16672 #define _ISOC9X_SOURCE 1
16673 #define _ISOC99_SOURCE 1
16674 #define __USE_ISOC99 1
16675 #define __USE_ISOC9X 1
16676 #include <math.h>
16677 int main (void)
16678 { double fval ;
16679 int k, ival ;
16680
16681 fval = -8.0 * 0x10000000 ;
16682 for (k = 0 ; k < 100 ; k++)
16683 { ival = (lrint (fval)) >> 24 ;
16684 if (ival != -128)
16685 return 1 ;
16686
16687 fval *= 1.2499999 ;
16688 } ;
16689
16690 return 0 ;
16691 }
16692
16693 _ACEOF
16694 if ac_fn_c_try_run "$LINENO"; then :
16695 ac_cv_c_clip_negative=yes
16696 else
16697 ac_cv_c_clip_negative=no
16698 fi
16699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16700 conftest.$ac_objext conftest.beam conftest.$ac_ext
16701 fi
16702
16703 fi
16704
16705 if test $ac_cv_c_clip_positive = yes ; then
16706 ac_cv_c_clip_positive=1
16707 else
16708 ac_cv_c_clip_positive=0
16709 fi
16710
16711 if test $ac_cv_c_clip_negative = yes ; then
16712 ac_cv_c_clip_negative=1
16713 else
16714 ac_cv_c_clip_negative=0
16715 fi
16716
16717
16718 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
16719 "00")
16720 ac_cv_c_clip_type="none"
16721 ;;
16722 "10")
16723 ac_cv_c_clip_type="positive"
16724 ;;
16725 "01")
16726 ac_cv_c_clip_type="negative"
16727 ;;
16728 "11")
16729 ac_cv_c_clip_type="both"
16730 ;;
16731 esac
16732
16733
16734
16735 fi
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
16737 $as_echo "$ac_cv_c_clip_type" >&6; }
16738
16739
16740
16741 else
16742 echo "checking processor clipping capabilities... disabled"
16743 ac_cv_c_clip_positive=0
16744 ac_cv_c_clip_negative=0
16745 fi
16746
16747
16748 cat >>confdefs.h <<_ACEOF
16749 #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
16750 _ACEOF
16751
16752
16753 cat >>confdefs.h <<_ACEOF
16754 #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
16755 _ACEOF
16756
16757
16758 #====================================================================================
16759 # Check for libsndfile which is required for the test and example programs.
16760
16761 # Check whether --enable-sndfile was given.
16762 if test "${enable_sndfile+set}" = set; then :
16763 enableval=$enable_sndfile; enable_sndfile=$enableval
16764 else
16765 enable_sndfile=yes
16766 fi
16767
16768
16769 # Check for pkg-config outside the if statement.
16770
16771
16772
16773
16774
16775
16776
16777 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16778 if test -n "$ac_tool_prefix"; then
16779 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16780 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16782 $as_echo_n "checking for $ac_word... " >&6; }
16783 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16784 $as_echo_n "(cached) " >&6
16785 else
16786 case $PKG_CONFIG in
16787 [\\/]* | ?:[\\/]*)
16788 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16789 ;;
16790 *)
16791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16792 for as_dir in $PATH
16793 do
16794 IFS=$as_save_IFS
16795 test -z "$as_dir" && as_dir=.
16796 for ac_exec_ext in '' $ac_executable_extensions; do
16797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16798 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16800 break 2
16801 fi
16802 done
16803 done
16804 IFS=$as_save_IFS
16805
16806 ;;
16807 esac
16808 fi
16809 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16810 if test -n "$PKG_CONFIG"; then
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16812 $as_echo "$PKG_CONFIG" >&6; }
16813 else
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16815 $as_echo "no" >&6; }
16816 fi
16817
16818
16819 fi
16820 if test -z "$ac_cv_path_PKG_CONFIG"; then
16821 ac_pt_PKG_CONFIG=$PKG_CONFIG
16822 # Extract the first word of "pkg-config", so it can be a program name with args.
16823 set dummy pkg-config; ac_word=$2
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16825 $as_echo_n "checking for $ac_word... " >&6; }
16826 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829 case $ac_pt_PKG_CONFIG in
16830 [\\/]* | ?:[\\/]*)
16831 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16832 ;;
16833 *)
16834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16835 for as_dir in $PATH
16836 do
16837 IFS=$as_save_IFS
16838 test -z "$as_dir" && as_dir=.
16839 for ac_exec_ext in '' $ac_executable_extensions; do
16840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16841 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16843 break 2
16844 fi
16845 done
16846 done
16847 IFS=$as_save_IFS
16848
16849 ;;
16850 esac
16851 fi
16852 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16853 if test -n "$ac_pt_PKG_CONFIG"; then
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16855 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16856 else
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16858 $as_echo "no" >&6; }
16859 fi
16860
16861 if test "x$ac_pt_PKG_CONFIG" = x; then
16862 PKG_CONFIG=""
16863 else
16864 case $cross_compiling:$ac_tool_warned in
16865 yes:)
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16868 ac_tool_warned=yes ;;
16869 esac
16870 PKG_CONFIG=$ac_pt_PKG_CONFIG
16871 fi
16872 else
16873 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16874 fi
16875
16876 fi
16877 if test -n "$PKG_CONFIG"; then
16878 _pkg_min_version=0.9.0
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16880 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16881 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16883 $as_echo "yes" >&6; }
16884 else
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886 $as_echo "no" >&6; }
16887 PKG_CONFIG=""
16888 fi
16889 fi
16890
16891 if test "x$enable_sndfile" = "xyes"; then
16892
16893 pkg_failed=no
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
16895 $as_echo_n "checking for SNDFILE... " >&6; }
16896
16897 if test -n "$SNDFILE_CFLAGS"; then
16898 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
16899 elif test -n "$PKG_CONFIG"; then
16900 if test -n "$PKG_CONFIG" && \
16901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
16902 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
16903 ac_status=$?
16904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16905 test $ac_status = 0; }; then
16906 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.6" 2>/dev/null`
16907 test "x$?" != "x0" && pkg_failed=yes
16908 else
16909 pkg_failed=yes
16910 fi
16911 else
16912 pkg_failed=untried
16913 fi
16914 if test -n "$SNDFILE_LIBS"; then
16915 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
16916 elif test -n "$PKG_CONFIG"; then
16917 if test -n "$PKG_CONFIG" && \
16918 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
16919 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
16920 ac_status=$?
16921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16922 test $ac_status = 0; }; then
16923 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.6" 2>/dev/null`
16924 test "x$?" != "x0" && pkg_failed=yes
16925 else
16926 pkg_failed=yes
16927 fi
16928 else
16929 pkg_failed=untried
16930 fi
16931
16932
16933
16934 if test $pkg_failed = yes; then
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16936 $as_echo "no" >&6; }
16937
16938 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16939 _pkg_short_errors_supported=yes
16940 else
16941 _pkg_short_errors_supported=no
16942 fi
16943 if test $_pkg_short_errors_supported = yes; then
16944 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
16945 else
16946 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
16947 fi
16948 # Put the nasty error message in config.log where it belongs
16949 echo "$SNDFILE_PKG_ERRORS" >&5
16950
16951 ac_cv_sndfile=0
16952 elif test $pkg_failed = untried; then
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16954 $as_echo "no" >&6; }
16955 ac_cv_sndfile=0
16956 else
16957 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
16958 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16960 $as_echo "yes" >&6; }
16961 ac_cv_sndfile=1
16962 fi
16963 else
16964 ac_cv_sndfile=0
16965 fi
16966
16967
16968 cat >>confdefs.h <<_ACEOF
16969 #define HAVE_SNDFILE $ac_cv_sndfile
16970 _ACEOF
16971
16972
16973 if test x$ac_cv_sndfile = x1 ; then
16974 ac_cv_sndfile=yes
16975 HAVE_SNDFILE=1
16976 else
16977 ac_cv_sndfile=no
16978 HAVE_SNDFILE=0
16979 fi
16980
16981 #====================================================================================
16982 # Check for libfftw3 which is required for the test and example programs.
16983
16984 if test $ac_arg_fftw = "Y" ; then
16985
16986 pkg_failed=no
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3" >&5
16988 $as_echo_n "checking for FFTW3... " >&6; }
16989
16990 if test -n "$FFTW3_CFLAGS"; then
16991 pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS"
16992 elif test -n "$PKG_CONFIG"; then
16993 if test -n "$PKG_CONFIG" && \
16994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
16995 ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
16996 ac_status=$?
16997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16998 test $ac_status = 0; }; then
16999 pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 0.15.0" 2>/dev/null`
17000 test "x$?" != "x0" && pkg_failed=yes
17001 else
17002 pkg_failed=yes
17003 fi
17004 else
17005 pkg_failed=untried
17006 fi
17007 if test -n "$FFTW3_LIBS"; then
17008 pkg_cv_FFTW3_LIBS="$FFTW3_LIBS"
17009 elif test -n "$PKG_CONFIG"; then
17010 if test -n "$PKG_CONFIG" && \
17011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
17012 ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
17013 ac_status=$?
17014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17015 test $ac_status = 0; }; then
17016 pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 0.15.0" 2>/dev/null`
17017 test "x$?" != "x0" && pkg_failed=yes
17018 else
17019 pkg_failed=yes
17020 fi
17021 else
17022 pkg_failed=untried
17023 fi
17024
17025
17026
17027 if test $pkg_failed = yes; then
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17029 $as_echo "no" >&6; }
17030
17031 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17032 _pkg_short_errors_supported=yes
17033 else
17034 _pkg_short_errors_supported=no
17035 fi
17036 if test $_pkg_short_errors_supported = yes; then
17037 FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
17038 else
17039 FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
17040 fi
17041 # Put the nasty error message in config.log where it belongs
17042 echo "$FFTW3_PKG_ERRORS" >&5
17043
17044 ac_cv_fftw3=0
17045 elif test $pkg_failed = untried; then
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17047 $as_echo "no" >&6; }
17048 ac_cv_fftw3=0
17049 else
17050 FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS
17051 FFTW3_LIBS=$pkg_cv_FFTW3_LIBS
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17053 $as_echo "yes" >&6; }
17054 ac_cv_fftw3=1
17055 fi
17056
17057 cat >>confdefs.h <<_ACEOF
17058 #define HAVE_FFTW3 $ac_cv_fftw3
17059 _ACEOF
17060
17061
17062 if test x$ac_cv_fftw3 = x1 ; then
17063 ac_cv_fftw3=yes
17064 HAVE_FFTW3=1
17065 fi
17066 fi
17067
17068 if test x$ac_cv_fftw3 != xyes ; then
17069 ac_cv_fftw3=no
17070 HAVE_FFTW3=0
17071 fi
17072
17073 #====================================================================================
17074 # GCC stuff.
17075
17076 if test $ac_cv_c_compiler_gnu = yes ; then
17077 CFLAGS="$CFLAGS -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wpointer-arith"
17078 # -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion -Winline"
17079 if test "$ac_arg_gcc_opt" = "N" ; then
17080 temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"`
17081 CFLAGS=$temp_CFLAGS
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5
17083 $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
17084 fi
17085
17086 # Disable -Wall for Apple Darwin/Rhapsody.
17087 # System headers on these systems are broken.
17088 case "$target_os" in
17089 darwin* | rhapsody*)
17090 temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall//"`
17091 CFLAGS=$temp_CFLAGS
17092 ;;
17093
17094 linux*|kfreebsd*-gnu*|gnu*)
17095 SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
17096 ;;
17097 *)
17098 ;;
17099 esac
17100 if test x$ac_arg_gcc_pipe != "xN" ; then
17101 CFLAGS="$CFLAGS -pipe"
17102 fi
17103
17104 if test x$ac_arg_gcc_werror = "xyes" ; then
17105 CFLAGS="-Werror $CFLAGS"
17106 fi
17107
17108
17109 $as_echo "#define COMPILER_IS_GCC 1" >>confdefs.h
17110
17111 GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`
17112
17113 cat >>confdefs.h <<_ACEOF
17114 #define GCC_MAJOR_VERSION ${GCC_MAJOR_VERSION}
17115 _ACEOF
17116
17117 fi
17118
17119 #====================================================================================
17120 # Find known target OS.
17121
17122 OS_SPECIFIC_INCLUDES=""
17123 os_is_win32=0
17124
17125 case "$target_os" in
17126 darwin* | rhapsody*)
17127 OS_SPECIFIC_INCLUDES="-fpascal-strings -I/Developer/Headers/FlatCarbon"
17128 OS_SPECIFIC_LINKS="-framework CoreAudio"
17129 ;;
17130 mingw32*)
17131 OS_SPECIFIC_LINKS="-lwinmm"
17132 os_is_win32=1
17133 ;;
17134 *)
17135 OS_SPECIFIC_INCLUDES=""
17136 OS_SPECIFIC_LINKS=""
17137 ;;
17138 esac
17139
17140 htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
17141
17142 if test $prefix = "NONE" ; then
17143 htmldocdir=/usr/local/share/doc/libsamplerate0-dev/html
17144 else
17145 htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
17146 fi
17147
17148 #====================================================================================
17149 # Now use the information from the checking stage.
17150
17151
17152 cat >>confdefs.h <<_ACEOF
17153 #define OS_IS_WIN32 ${os_is_win32}
17154 _ACEOF
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175 ac_config_files="$ac_config_files Makefile M4/Makefile src/Version_script Win32/Makefile Win32/Makefile.mingw src/Makefile examples/Makefile tests/Makefile doc/Makefile libsamplerate.spec samplerate.pc"
17176
17177 cat >confcache <<\_ACEOF
17178 # This file is a shell script that caches the results of configure
17179 # tests run on this system so they can be shared between configure
17180 # scripts and configure runs, see configure's option --config-cache.
17181 # It is not useful on other systems. If it contains results you don't
17182 # want to keep, you may remove or edit it.
17183 #
17184 # config.status only pays attention to the cache file if you give it
17185 # the --recheck option to rerun configure.
17186 #
17187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17189 # following values.
17190
17191 _ACEOF
17192
17193 # The following way of writing the cache mishandles newlines in values,
17194 # but we know of no workaround that is simple, portable, and efficient.
17195 # So, we kill variables containing newlines.
17196 # Ultrix sh set writes to stderr and can't be redirected directly,
17197 # and sets the high bit in the cache file unless we assign to the vars.
17198 (
17199 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17200 eval ac_val=\$$ac_var
17201 case $ac_val in #(
17202 *${as_nl}*)
17203 case $ac_var in #(
17204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17206 esac
17207 case $ac_var in #(
17208 _ | IFS | as_nl) ;; #(
17209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17210 *) { eval $ac_var=; unset $ac_var;} ;;
17211 esac ;;
17212 esac
17213 done
17214
17215 (set) 2>&1 |
17216 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17217 *${as_nl}ac_space=\ *)
17218 # `set' does not quote correctly, so add quotes: double-quote
17219 # substitution turns \\\\ into \\, and sed turns \\ into \.
17220 sed -n \
17221 "s/'/'\\\\''/g;
17222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17223 ;; #(
17224 *)
17225 # `set' quotes correctly as required by POSIX, so do not add quotes.
17226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17227 ;;
17228 esac |
17229 sort
17230 ) |
17231 sed '
17232 /^ac_cv_env_/b end
17233 t clear
17234 :clear
17235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17236 t end
17237 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17238 :end' >>confcache
17239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17240 if test -w "$cache_file"; then
17241 if test "x$cache_file" != "x/dev/null"; then
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17243 $as_echo "$as_me: updating cache $cache_file" >&6;}
17244 if test ! -f "$cache_file" || test -h "$cache_file"; then
17245 cat confcache >"$cache_file"
17246 else
17247 case $cache_file in #(
17248 */* | ?:*)
17249 mv -f confcache "$cache_file"$$ &&
17250 mv -f "$cache_file"$$ "$cache_file" ;; #(
17251 *)
17252 mv -f confcache "$cache_file" ;;
17253 esac
17254 fi
17255 fi
17256 else
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17258 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17259 fi
17260 fi
17261 rm -f confcache
17262
17263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17264 # Let make expand exec_prefix.
17265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17266
17267 DEFS=-DHAVE_CONFIG_H
17268
17269 ac_libobjs=
17270 ac_ltlibobjs=
17271 U=
17272 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17273 # 1. Remove the extension, and $U if already installed.
17274 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17275 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17276 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17277 # will be set to the directory where LIBOBJS objects are built.
17278 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17279 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17280 done
17281 LIBOBJS=$ac_libobjs
17282
17283 LTLIBOBJS=$ac_ltlibobjs
17284
17285
17286 if test -n "$EXEEXT"; then
17287 am__EXEEXT_TRUE=
17288 am__EXEEXT_FALSE='#'
17289 else
17290 am__EXEEXT_TRUE='#'
17291 am__EXEEXT_FALSE=
17292 fi
17293
17294 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17295 as_fn_error $? "conditional \"AMDEP\" was never defined.
17296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17297 fi
17298 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17299 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17301 fi
17302 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17303 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17305 fi
17306
17307 : "${CONFIG_STATUS=./config.status}"
17308 ac_write_fail=0
17309 ac_clean_files_save=$ac_clean_files
17310 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17312 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17313 as_write_fail=0
17314 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17315 #! $SHELL
17316 # Generated by $as_me.
17317 # Run this file to recreate the current configuration.
17318 # Compiler output produced by configure, useful for debugging
17319 # configure, is in config.log if it exists.
17320
17321 debug=false
17322 ac_cs_recheck=false
17323 ac_cs_silent=false
17324
17325 SHELL=\${CONFIG_SHELL-$SHELL}
17326 export SHELL
17327 _ASEOF
17328 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17329 ## -------------------- ##
17330 ## M4sh Initialization. ##
17331 ## -------------------- ##
17332
17333 # Be more Bourne compatible
17334 DUALCASE=1; export DUALCASE # for MKS sh
17335 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17336 emulate sh
17337 NULLCMD=:
17338 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17339 # is contrary to our usage. Disable this feature.
17340 alias -g '${1+"$@"}'='"$@"'
17341 setopt NO_GLOB_SUBST
17342 else
17343 case `(set -o) 2>/dev/null` in #(
17344 *posix*) :
17345 set -o posix ;; #(
17346 *) :
17347 ;;
17348 esac
17349 fi
17350
17351
17352 as_nl='
17353 '
17354 export as_nl
17355 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17356 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17357 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17358 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17359 # Prefer a ksh shell builtin over an external printf program on Solaris,
17360 # but without wasting forks for bash or zsh.
17361 if test -z "$BASH_VERSION$ZSH_VERSION" \
17362 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17363 as_echo='print -r --'
17364 as_echo_n='print -rn --'
17365 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17366 as_echo='printf %s\n'
17367 as_echo_n='printf %s'
17368 else
17369 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17370 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17371 as_echo_n='/usr/ucb/echo -n'
17372 else
17373 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17374 as_echo_n_body='eval
17375 arg=$1;
17376 case $arg in #(
17377 *"$as_nl"*)
17378 expr "X$arg" : "X\\(.*\\)$as_nl";
17379 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17380 esac;
17381 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17382 '
17383 export as_echo_n_body
17384 as_echo_n='sh -c $as_echo_n_body as_echo'
17385 fi
17386 export as_echo_body
17387 as_echo='sh -c $as_echo_body as_echo'
17388 fi
17389
17390 # The user is always right.
17391 if test "${PATH_SEPARATOR+set}" != set; then
17392 PATH_SEPARATOR=:
17393 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17394 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17395 PATH_SEPARATOR=';'
17396 }
17397 fi
17398
17399
17400 # IFS
17401 # We need space, tab and new line, in precisely that order. Quoting is
17402 # there to prevent editors from complaining about space-tab.
17403 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17404 # splitting by setting IFS to empty value.)
17405 IFS=" "" $as_nl"
17406
17407 # Find who we are. Look in the path if we contain no directory separator.
17408 as_myself=
17409 case $0 in #((
17410 *[\\/]* ) as_myself=$0 ;;
17411 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17412 for as_dir in $PATH
17413 do
17414 IFS=$as_save_IFS
17415 test -z "$as_dir" && as_dir=.
17416 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17417 done
17418 IFS=$as_save_IFS
17419
17420 ;;
17421 esac
17422 # We did not find ourselves, most probably we were run as `sh COMMAND'
17423 # in which case we are not to be found in the path.
17424 if test "x$as_myself" = x; then
17425 as_myself=$0
17426 fi
17427 if test ! -f "$as_myself"; then
17428 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17429 exit 1
17430 fi
17431
17432 # Unset variables that we do not need and which cause bugs (e.g. in
17433 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17434 # suppresses any "Segmentation fault" message there. '((' could
17435 # trigger a bug in pdksh 5.2.14.
17436 for as_var in BASH_ENV ENV MAIL MAILPATH
17437 do eval test x\${$as_var+set} = xset \
17438 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17439 done
17440 PS1='$ '
17441 PS2='> '
17442 PS4='+ '
17443
17444 # NLS nuisances.
17445 LC_ALL=C
17446 export LC_ALL
17447 LANGUAGE=C
17448 export LANGUAGE
17449
17450 # CDPATH.
17451 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17452
17453
17454 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17455 # ----------------------------------------
17456 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17457 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17458 # script with STATUS, using 1 if that was 0.
17459 as_fn_error ()
17460 {
17461 as_status=$1; test $as_status -eq 0 && as_status=1
17462 if test "$4"; then
17463 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17464 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17465 fi
17466 $as_echo "$as_me: error: $2" >&2
17467 as_fn_exit $as_status
17468 } # as_fn_error
17469
17470
17471 # as_fn_set_status STATUS
17472 # -----------------------
17473 # Set $? to STATUS, without forking.
17474 as_fn_set_status ()
17475 {
17476 return $1
17477 } # as_fn_set_status
17478
17479 # as_fn_exit STATUS
17480 # -----------------
17481 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17482 as_fn_exit ()
17483 {
17484 set +e
17485 as_fn_set_status $1
17486 exit $1
17487 } # as_fn_exit
17488
17489 # as_fn_unset VAR
17490 # ---------------
17491 # Portably unset VAR.
17492 as_fn_unset ()
17493 {
17494 { eval $1=; unset $1;}
17495 }
17496 as_unset=as_fn_unset
17497 # as_fn_append VAR VALUE
17498 # ----------------------
17499 # Append the text in VALUE to the end of the definition contained in VAR. Take
17500 # advantage of any shell optimizations that allow amortized linear growth over
17501 # repeated appends, instead of the typical quadratic growth present in naive
17502 # implementations.
17503 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17504 eval 'as_fn_append ()
17505 {
17506 eval $1+=\$2
17507 }'
17508 else
17509 as_fn_append ()
17510 {
17511 eval $1=\$$1\$2
17512 }
17513 fi # as_fn_append
17514
17515 # as_fn_arith ARG...
17516 # ------------------
17517 # Perform arithmetic evaluation on the ARGs, and store the result in the
17518 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17519 # must be portable across $(()) and expr.
17520 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17521 eval 'as_fn_arith ()
17522 {
17523 as_val=$(( $* ))
17524 }'
17525 else
17526 as_fn_arith ()
17527 {
17528 as_val=`expr "$@" || test $? -eq 1`
17529 }
17530 fi # as_fn_arith
17531
17532
17533 if expr a : '\(a\)' >/dev/null 2>&1 &&
17534 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17535 as_expr=expr
17536 else
17537 as_expr=false
17538 fi
17539
17540 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17541 as_basename=basename
17542 else
17543 as_basename=false
17544 fi
17545
17546 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17547 as_dirname=dirname
17548 else
17549 as_dirname=false
17550 fi
17551
17552 as_me=`$as_basename -- "$0" ||
17553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17554 X"$0" : 'X\(//\)$' \| \
17555 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17556 $as_echo X/"$0" |
17557 sed '/^.*\/\([^/][^/]*\)\/*$/{
17558 s//\1/
17559 q
17560 }
17561 /^X\/\(\/\/\)$/{
17562 s//\1/
17563 q
17564 }
17565 /^X\/\(\/\).*/{
17566 s//\1/
17567 q
17568 }
17569 s/.*/./; q'`
17570
17571 # Avoid depending upon Character Ranges.
17572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17575 as_cr_digits='0123456789'
17576 as_cr_alnum=$as_cr_Letters$as_cr_digits
17577
17578 ECHO_C= ECHO_N= ECHO_T=
17579 case `echo -n x` in #(((((
17580 -n*)
17581 case `echo 'xy\c'` in
17582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17583 xy) ECHO_C='\c';;
17584 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17585 ECHO_T=' ';;
17586 esac;;
17587 *)
17588 ECHO_N='-n';;
17589 esac
17590
17591 rm -f conf$$ conf$$.exe conf$$.file
17592 if test -d conf$$.dir; then
17593 rm -f conf$$.dir/conf$$.file
17594 else
17595 rm -f conf$$.dir
17596 mkdir conf$$.dir 2>/dev/null
17597 fi
17598 if (echo >conf$$.file) 2>/dev/null; then
17599 if ln -s conf$$.file conf$$ 2>/dev/null; then
17600 as_ln_s='ln -s'
17601 # ... but there are two gotchas:
17602 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17603 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17604 # In both cases, we have to default to `cp -p'.
17605 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17606 as_ln_s='cp -p'
17607 elif ln conf$$.file conf$$ 2>/dev/null; then
17608 as_ln_s=ln
17609 else
17610 as_ln_s='cp -p'
17611 fi
17612 else
17613 as_ln_s='cp -p'
17614 fi
17615 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17616 rmdir conf$$.dir 2>/dev/null
17617
17618
17619 # as_fn_mkdir_p
17620 # -------------
17621 # Create "$as_dir" as a directory, including parents if necessary.
17622 as_fn_mkdir_p ()
17623 {
17624
17625 case $as_dir in #(
17626 -*) as_dir=./$as_dir;;
17627 esac
17628 test -d "$as_dir" || eval $as_mkdir_p || {
17629 as_dirs=
17630 while :; do
17631 case $as_dir in #(
17632 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17633 *) as_qdir=$as_dir;;
17634 esac
17635 as_dirs="'$as_qdir' $as_dirs"
17636 as_dir=`$as_dirname -- "$as_dir" ||
17637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17638 X"$as_dir" : 'X\(//\)[^/]' \| \
17639 X"$as_dir" : 'X\(//\)$' \| \
17640 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17641 $as_echo X"$as_dir" |
17642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17643 s//\1/
17644 q
17645 }
17646 /^X\(\/\/\)[^/].*/{
17647 s//\1/
17648 q
17649 }
17650 /^X\(\/\/\)$/{
17651 s//\1/
17652 q
17653 }
17654 /^X\(\/\).*/{
17655 s//\1/
17656 q
17657 }
17658 s/.*/./; q'`
17659 test -d "$as_dir" && break
17660 done
17661 test -z "$as_dirs" || eval "mkdir $as_dirs"
17662 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17663
17664
17665 } # as_fn_mkdir_p
17666 if mkdir -p . 2>/dev/null; then
17667 as_mkdir_p='mkdir -p "$as_dir"'
17668 else
17669 test -d ./-p && rmdir ./-p
17670 as_mkdir_p=false
17671 fi
17672
17673 if test -x / >/dev/null 2>&1; then
17674 as_test_x='test -x'
17675 else
17676 if ls -dL / >/dev/null 2>&1; then
17677 as_ls_L_option=L
17678 else
17679 as_ls_L_option=
17680 fi
17681 as_test_x='
17682 eval sh -c '\''
17683 if test -d "$1"; then
17684 test -d "$1/.";
17685 else
17686 case $1 in #(
17687 -*)set "./$1";;
17688 esac;
17689 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17690 ???[sx]*):;;*)false;;esac;fi
17691 '\'' sh
17692 '
17693 fi
17694 as_executable_p=$as_test_x
17695
17696 # Sed expression to map a string onto a valid CPP name.
17697 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17698
17699 # Sed expression to map a string onto a valid variable name.
17700 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17701
17702
17703 exec 6>&1
17704 ## ----------------------------------- ##
17705 ## Main body of $CONFIG_STATUS script. ##
17706 ## ----------------------------------- ##
17707 _ASEOF
17708 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17709
17710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17711 # Save the log message, to keep $0 and so on meaningful, and to
17712 # report actual input values of CONFIG_FILES etc. instead of their
17713 # values after options handling.
17714 ac_log="
17715 This file was extended by libsamplerate $as_me 0.1.8, which was
17716 generated by GNU Autoconf 2.68. Invocation command line was
17717
17718 CONFIG_FILES = $CONFIG_FILES
17719 CONFIG_HEADERS = $CONFIG_HEADERS
17720 CONFIG_LINKS = $CONFIG_LINKS
17721 CONFIG_COMMANDS = $CONFIG_COMMANDS
17722 $ $0 $@
17723
17724 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17725 "
17726
17727 _ACEOF
17728
17729 case $ac_config_files in *"
17730 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17731 esac
17732
17733 case $ac_config_headers in *"
17734 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17735 esac
17736
17737
17738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17739 # Files that config.status was made for.
17740 config_files="$ac_config_files"
17741 config_headers="$ac_config_headers"
17742 config_commands="$ac_config_commands"
17743
17744 _ACEOF
17745
17746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17747 ac_cs_usage="\
17748 \`$as_me' instantiates files and other configuration actions
17749 from templates according to the current configuration. Unless the files
17750 and actions are specified as TAGs, all are instantiated by default.
17751
17752 Usage: $0 [OPTION]... [TAG]...
17753
17754 -h, --help print this help, then exit
17755 -V, --version print version number and configuration settings, then exit
17756 --config print configuration, then exit
17757 -q, --quiet, --silent
17758 do not print progress messages
17759 -d, --debug don't remove temporary files
17760 --recheck update $as_me by reconfiguring in the same conditions
17761 --file=FILE[:TEMPLATE]
17762 instantiate the configuration file FILE
17763 --header=FILE[:TEMPLATE]
17764 instantiate the configuration header FILE
17765
17766 Configuration files:
17767 $config_files
17768
17769 Configuration headers:
17770 $config_headers
17771
17772 Configuration commands:
17773 $config_commands
17774
17775 Report bugs to <erikd@mega-nerd.com>.
17776 libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>."
17777
17778 _ACEOF
17779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17780 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17781 ac_cs_version="\\
17782 libsamplerate config.status 0.1.8
17783 configured by $0, generated by GNU Autoconf 2.68,
17784 with options \\"\$ac_cs_config\\"
17785
17786 Copyright (C) 2010 Free Software Foundation, Inc.
17787 This config.status script is free software; the Free Software Foundation
17788 gives unlimited permission to copy, distribute and modify it."
17789
17790 ac_pwd='$ac_pwd'
17791 srcdir='$srcdir'
17792 INSTALL='$INSTALL'
17793 MKDIR_P='$MKDIR_P'
17794 AWK='$AWK'
17795 test -n "\$AWK" || AWK=awk
17796 _ACEOF
17797
17798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17799 # The default lists apply if the user does not specify any file.
17800 ac_need_defaults=:
17801 while test $# != 0
17802 do
17803 case $1 in
17804 --*=?*)
17805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17807 ac_shift=:
17808 ;;
17809 --*=)
17810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17811 ac_optarg=
17812 ac_shift=:
17813 ;;
17814 *)
17815 ac_option=$1
17816 ac_optarg=$2
17817 ac_shift=shift
17818 ;;
17819 esac
17820
17821 case $ac_option in
17822 # Handling of the options.
17823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17824 ac_cs_recheck=: ;;
17825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17826 $as_echo "$ac_cs_version"; exit ;;
17827 --config | --confi | --conf | --con | --co | --c )
17828 $as_echo "$ac_cs_config"; exit ;;
17829 --debug | --debu | --deb | --de | --d | -d )
17830 debug=: ;;
17831 --file | --fil | --fi | --f )
17832 $ac_shift
17833 case $ac_optarg in
17834 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17835 '') as_fn_error $? "missing file argument" ;;
17836 esac
17837 as_fn_append CONFIG_FILES " '$ac_optarg'"
17838 ac_need_defaults=false;;
17839 --header | --heade | --head | --hea )
17840 $ac_shift
17841 case $ac_optarg in
17842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17843 esac
17844 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17845 ac_need_defaults=false;;
17846 --he | --h)
17847 # Conflict between --help and --header
17848 as_fn_error $? "ambiguous option: \`$1'
17849 Try \`$0 --help' for more information.";;
17850 --help | --hel | -h )
17851 $as_echo "$ac_cs_usage"; exit ;;
17852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17854 ac_cs_silent=: ;;
17855
17856 # This is an error.
17857 -*) as_fn_error $? "unrecognized option: \`$1'
17858 Try \`$0 --help' for more information." ;;
17859
17860 *) as_fn_append ac_config_targets " $1"
17861 ac_need_defaults=false ;;
17862
17863 esac
17864 shift
17865 done
17866
17867 ac_configure_extra_args=
17868
17869 if $ac_cs_silent; then
17870 exec 6>/dev/null
17871 ac_configure_extra_args="$ac_configure_extra_args --silent"
17872 fi
17873
17874 _ACEOF
17875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17876 if \$ac_cs_recheck; then
17877 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17878 shift
17879 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17880 CONFIG_SHELL='$SHELL'
17881 export CONFIG_SHELL
17882 exec "\$@"
17883 fi
17884
17885 _ACEOF
17886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17887 exec 5>>config.log
17888 {
17889 echo
17890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17891 ## Running $as_me. ##
17892 _ASBOX
17893 $as_echo "$ac_log"
17894 } >&5
17895
17896 _ACEOF
17897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17898 #
17899 # INIT-COMMANDS
17900 #
17901 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17902
17903
17904 # The HP-UX ksh and POSIX shell print the target directory to stdout
17905 # if CDPATH is set.
17906 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17907
17908 sed_quote_subst='$sed_quote_subst'
17909 double_quote_subst='$double_quote_subst'
17910 delay_variable_subst='$delay_variable_subst'
17911 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17912 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17913 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17914 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17915 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17916 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17917 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17918 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17919 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17920 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17921 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17922 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17923 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17924 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17925 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17926 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17927 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17928 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17929 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17930 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17931 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17932 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17933 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17934 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17935 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17936 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17937 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17938 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17939 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17940 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17941 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17942 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17943 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17944 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17945 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17946 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17947 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17948 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17949 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17950 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17951 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17952 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17953 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17954 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17955 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17956 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17957 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17958 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17959 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17960 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17961 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17962 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17963 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17964 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17965 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17966 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"`'
17967 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17968 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17969 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17970 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17971 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17972 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17973 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17974 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17975 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17976 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17977 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17978 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17979 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17980 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17981 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17982 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17983 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17984 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17985 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17986 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17987 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17988 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17989 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17990 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17991 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17992 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17993 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17994 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17995 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17996 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17997 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17998 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17999 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18000 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18001 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18002 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18003 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18004 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18005 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18006 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18007 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18008 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18009 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18010 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18011 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18012 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18013 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18014 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18015 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18016 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18017 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18018 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18019 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18020 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18021 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18022 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18023 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18024 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18025 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18026 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18027 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18028 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18029 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18030 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18031 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18032 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18033 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18034 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18035 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18036 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18037 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18038 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18039 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18040 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18041 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18042 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18043 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18044 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18045 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18046 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18047 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18048 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
18049 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18050 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
18051 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18052 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
18053 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18054 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
18055 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18056 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
18057 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18058 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
18059 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18060 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
18061 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18062 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
18063 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18064 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
18065 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18066 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
18067 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18068 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
18069 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18070 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
18071 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18072 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
18073 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18074 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18075 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18076 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18077 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18078 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
18079 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18080 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
18081 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18082 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
18083 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18084 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
18085 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18086 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
18087 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18088 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
18089 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18090 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
18091 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18092 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
18093 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18094 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
18095 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18096 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
18097 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18098 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18099 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18100 hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
18101 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18102 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
18103 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18104 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
18105 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18106 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
18107 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18108 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
18109 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18110 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
18111 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18112 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
18113 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18114 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
18115 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18116 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
18117 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18118 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
18119 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18120 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
18121 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18122 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
18123 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18124 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
18125 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18126 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
18127 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18128 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
18129 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18130 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
18131 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18132 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
18133 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18134 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
18135 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18136 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
18137 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18138 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
18139 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18140 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
18141 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18142 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
18143 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18144 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
18145
18146 LTCC='$LTCC'
18147 LTCFLAGS='$LTCFLAGS'
18148 compiler='$compiler_DEFAULT'
18149
18150 # A function that is used when there is no print builtin or printf.
18151 func_fallback_echo ()
18152 {
18153 eval 'cat <<_LTECHO_EOF
18154 \$1
18155 _LTECHO_EOF'
18156 }
18157
18158 # Quote evaled strings.
18159 for var in SHELL \
18160 ECHO \
18161 SED \
18162 GREP \
18163 EGREP \
18164 FGREP \
18165 LD \
18166 NM \
18167 LN_S \
18168 lt_SP2NL \
18169 lt_NL2SP \
18170 reload_flag \
18171 OBJDUMP \
18172 deplibs_check_method \
18173 file_magic_cmd \
18174 file_magic_glob \
18175 want_nocaseglob \
18176 DLLTOOL \
18177 sharedlib_from_linklib_cmd \
18178 AR \
18179 AR_FLAGS \
18180 archiver_list_spec \
18181 STRIP \
18182 RANLIB \
18183 CC \
18184 CFLAGS \
18185 compiler \
18186 lt_cv_sys_global_symbol_pipe \
18187 lt_cv_sys_global_symbol_to_cdecl \
18188 lt_cv_sys_global_symbol_to_c_name_address \
18189 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18190 nm_file_list_spec \
18191 lt_prog_compiler_no_builtin_flag \
18192 lt_prog_compiler_pic \
18193 lt_prog_compiler_wl \
18194 lt_prog_compiler_static \
18195 lt_cv_prog_compiler_c_o \
18196 need_locks \
18197 MANIFEST_TOOL \
18198 DSYMUTIL \
18199 NMEDIT \
18200 LIPO \
18201 OTOOL \
18202 OTOOL64 \
18203 shrext_cmds \
18204 export_dynamic_flag_spec \
18205 whole_archive_flag_spec \
18206 compiler_needs_object \
18207 with_gnu_ld \
18208 allow_undefined_flag \
18209 no_undefined_flag \
18210 hardcode_libdir_flag_spec \
18211 hardcode_libdir_flag_spec_ld \
18212 hardcode_libdir_separator \
18213 exclude_expsyms \
18214 include_expsyms \
18215 file_list_spec \
18216 variables_saved_for_relink \
18217 libname_spec \
18218 library_names_spec \
18219 soname_spec \
18220 install_override_mode \
18221 finish_eval \
18222 old_striplib \
18223 striplib \
18224 compiler_lib_search_dirs \
18225 predep_objects \
18226 postdep_objects \
18227 predeps \
18228 postdeps \
18229 compiler_lib_search_path \
18230 LD_CXX \
18231 LD_RC \
18232 reload_flag_CXX \
18233 reload_flag_RC \
18234 compiler_CXX \
18235 compiler_RC \
18236 lt_prog_compiler_no_builtin_flag_CXX \
18237 lt_prog_compiler_no_builtin_flag_RC \
18238 lt_prog_compiler_pic_CXX \
18239 lt_prog_compiler_pic_RC \
18240 lt_prog_compiler_wl_CXX \
18241 lt_prog_compiler_wl_RC \
18242 lt_prog_compiler_static_CXX \
18243 lt_prog_compiler_static_RC \
18244 lt_cv_prog_compiler_c_o_CXX \
18245 lt_cv_prog_compiler_c_o_RC \
18246 export_dynamic_flag_spec_CXX \
18247 export_dynamic_flag_spec_RC \
18248 whole_archive_flag_spec_CXX \
18249 whole_archive_flag_spec_RC \
18250 compiler_needs_object_CXX \
18251 compiler_needs_object_RC \
18252 with_gnu_ld_CXX \
18253 with_gnu_ld_RC \
18254 allow_undefined_flag_CXX \
18255 allow_undefined_flag_RC \
18256 no_undefined_flag_CXX \
18257 no_undefined_flag_RC \
18258 hardcode_libdir_flag_spec_CXX \
18259 hardcode_libdir_flag_spec_RC \
18260 hardcode_libdir_flag_spec_ld_CXX \
18261 hardcode_libdir_flag_spec_ld_RC \
18262 hardcode_libdir_separator_CXX \
18263 hardcode_libdir_separator_RC \
18264 exclude_expsyms_CXX \
18265 exclude_expsyms_RC \
18266 include_expsyms_CXX \
18267 include_expsyms_RC \
18268 file_list_spec_CXX \
18269 file_list_spec_RC \
18270 compiler_lib_search_dirs_CXX \
18271 compiler_lib_search_dirs_RC \
18272 predep_objects_CXX \
18273 predep_objects_RC \
18274 postdep_objects_CXX \
18275 postdep_objects_RC \
18276 predeps_CXX \
18277 predeps_RC \
18278 postdeps_CXX \
18279 postdeps_RC \
18280 compiler_lib_search_path_CXX \
18281 compiler_lib_search_path_RC; do
18282 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18283 *[\\\\\\\`\\"\\\$]*)
18284 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18285 ;;
18286 *)
18287 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18288 ;;
18289 esac
18290 done
18291
18292 # Double-quote double-evaled strings.
18293 for var in reload_cmds \
18294 old_postinstall_cmds \
18295 old_postuninstall_cmds \
18296 old_archive_cmds \
18297 extract_expsyms_cmds \
18298 old_archive_from_new_cmds \
18299 old_archive_from_expsyms_cmds \
18300 archive_cmds \
18301 archive_expsym_cmds \
18302 module_cmds \
18303 module_expsym_cmds \
18304 export_symbols_cmds \
18305 prelink_cmds \
18306 postlink_cmds \
18307 postinstall_cmds \
18308 postuninstall_cmds \
18309 finish_cmds \
18310 sys_lib_search_path_spec \
18311 sys_lib_dlsearch_path_spec \
18312 reload_cmds_CXX \
18313 reload_cmds_RC \
18314 old_archive_cmds_CXX \
18315 old_archive_cmds_RC \
18316 old_archive_from_new_cmds_CXX \
18317 old_archive_from_new_cmds_RC \
18318 old_archive_from_expsyms_cmds_CXX \
18319 old_archive_from_expsyms_cmds_RC \
18320 archive_cmds_CXX \
18321 archive_cmds_RC \
18322 archive_expsym_cmds_CXX \
18323 archive_expsym_cmds_RC \
18324 module_cmds_CXX \
18325 module_cmds_RC \
18326 module_expsym_cmds_CXX \
18327 module_expsym_cmds_RC \
18328 export_symbols_cmds_CXX \
18329 export_symbols_cmds_RC \
18330 prelink_cmds_CXX \
18331 prelink_cmds_RC \
18332 postlink_cmds_CXX \
18333 postlink_cmds_RC; do
18334 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18335 *[\\\\\\\`\\"\\\$]*)
18336 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18337 ;;
18338 *)
18339 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18340 ;;
18341 esac
18342 done
18343
18344 ac_aux_dir='$ac_aux_dir'
18345 xsi_shell='$xsi_shell'
18346 lt_shell_append='$lt_shell_append'
18347
18348 # See if we are running on zsh, and set the options which allow our
18349 # commands through without removal of \ escapes INIT.
18350 if test -n "\${ZSH_VERSION+set}" ; then
18351 setopt NO_GLOB_SUBST
18352 fi
18353
18354
18355 PACKAGE='$PACKAGE'
18356 VERSION='$VERSION'
18357 TIMESTAMP='$TIMESTAMP'
18358 RM='$RM'
18359 ofile='$ofile'
18360
18361
18362
18363
18364
18365
18366
18367
18368 _ACEOF
18369
18370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18371
18372 # Handling of arguments.
18373 for ac_config_target in $ac_config_targets
18374 do
18375 case $ac_config_target in
18376 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18377 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18378 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18379 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18380 "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;;
18381 "src/Version_script") CONFIG_FILES="$CONFIG_FILES src/Version_script" ;;
18382 "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
18383 "Win32/Makefile.mingw") CONFIG_FILES="$CONFIG_FILES Win32/Makefile.mingw" ;;
18384 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18385 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18386 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18387 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18388 "libsamplerate.spec") CONFIG_FILES="$CONFIG_FILES libsamplerate.spec" ;;
18389 "samplerate.pc") CONFIG_FILES="$CONFIG_FILES samplerate.pc" ;;
18390
18391 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18392 esac
18393 done
18394
18395
18396 # If the user did not use the arguments to specify the items to instantiate,
18397 # then the envvar interface is used. Set only those that are not.
18398 # We use the long form for the default assignment because of an extremely
18399 # bizarre bug on SunOS 4.1.3.
18400 if $ac_need_defaults; then
18401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18403 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18404 fi
18405
18406 # Have a temporary directory for convenience. Make it in the build tree
18407 # simply because there is no reason against having it here, and in addition,
18408 # creating and moving files from /tmp can sometimes cause problems.
18409 # Hook for its removal unless debugging.
18410 # Note that there is a small window in which the directory will not be cleaned:
18411 # after its creation but before its name has been assigned to `$tmp'.
18412 $debug ||
18413 {
18414 tmp= ac_tmp=
18415 trap 'exit_status=$?
18416 : "${ac_tmp:=$tmp}"
18417 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18418 ' 0
18419 trap 'as_fn_exit 1' 1 2 13 15
18420 }
18421 # Create a (secure) tmp directory for tmp files.
18422
18423 {
18424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18425 test -d "$tmp"
18426 } ||
18427 {
18428 tmp=./conf$$-$RANDOM
18429 (umask 077 && mkdir "$tmp")
18430 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18431 ac_tmp=$tmp
18432
18433 # Set up the scripts for CONFIG_FILES section.
18434 # No need to generate them if there are no CONFIG_FILES.
18435 # This happens for instance with `./config.status config.h'.
18436 if test -n "$CONFIG_FILES"; then
18437
18438
18439 ac_cr=`echo X | tr X '\015'`
18440 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18441 # But we know of no other shell where ac_cr would be empty at this
18442 # point, so we can use a bashism as a fallback.
18443 if test "x$ac_cr" = x; then
18444 eval ac_cr=\$\'\\r\'
18445 fi
18446 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18447 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18448 ac_cs_awk_cr='\\r'
18449 else
18450 ac_cs_awk_cr=$ac_cr
18451 fi
18452
18453 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18454 _ACEOF
18455
18456
18457 {
18458 echo "cat >conf$$subs.awk <<_ACEOF" &&
18459 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18460 echo "_ACEOF"
18461 } >conf$$subs.sh ||
18462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18463 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18464 ac_delim='%!_!# '
18465 for ac_last_try in false false false false false :; do
18466 . ./conf$$subs.sh ||
18467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18468
18469 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18470 if test $ac_delim_n = $ac_delim_num; then
18471 break
18472 elif $ac_last_try; then
18473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18474 else
18475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18476 fi
18477 done
18478 rm -f conf$$subs.sh
18479
18480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18481 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18482 _ACEOF
18483 sed -n '
18484 h
18485 s/^/S["/; s/!.*/"]=/
18486 p
18487 g
18488 s/^[^!]*!//
18489 :repl
18490 t repl
18491 s/'"$ac_delim"'$//
18492 t delim
18493 :nl
18494 h
18495 s/\(.\{148\}\)..*/\1/
18496 t more1
18497 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18498 p
18499 n
18500 b repl
18501 :more1
18502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18503 p
18504 g
18505 s/.\{148\}//
18506 t nl
18507 :delim
18508 h
18509 s/\(.\{148\}\)..*/\1/
18510 t more2
18511 s/["\\]/\\&/g; s/^/"/; s/$/"/
18512 p
18513 b
18514 :more2
18515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18516 p
18517 g
18518 s/.\{148\}//
18519 t delim
18520 ' <conf$$subs.awk | sed '
18521 /^[^""]/{
18522 N
18523 s/\n//
18524 }
18525 ' >>$CONFIG_STATUS || ac_write_fail=1
18526 rm -f conf$$subs.awk
18527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18528 _ACAWK
18529 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18530 for (key in S) S_is_set[key] = 1
18531 FS = ""
18532
18533 }
18534 {
18535 line = $ 0
18536 nfields = split(line, field, "@")
18537 substed = 0
18538 len = length(field[1])
18539 for (i = 2; i < nfields; i++) {
18540 key = field[i]
18541 keylen = length(key)
18542 if (S_is_set[key]) {
18543 value = S[key]
18544 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18545 len += length(value) + length(field[++i])
18546 substed = 1
18547 } else
18548 len += 1 + keylen
18549 }
18550
18551 print line
18552 }
18553
18554 _ACAWK
18555 _ACEOF
18556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18557 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18558 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18559 else
18560 cat
18561 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18562 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18563 _ACEOF
18564
18565 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18566 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18567 # trailing colons and then remove the whole line if VPATH becomes empty
18568 # (actually we leave an empty line to preserve line numbers).
18569 if test "x$srcdir" = x.; then
18570 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18571 h
18572 s///
18573 s/^/:/
18574 s/[ ]*$/:/
18575 s/:\$(srcdir):/:/g
18576 s/:\${srcdir}:/:/g
18577 s/:@srcdir@:/:/g
18578 s/^:*//
18579 s/:*$//
18580 x
18581 s/\(=[ ]*\).*/\1/
18582 G
18583 s/\n//
18584 s/^[^=]*=[ ]*$//
18585 }'
18586 fi
18587
18588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18589 fi # test -n "$CONFIG_FILES"
18590
18591 # Set up the scripts for CONFIG_HEADERS section.
18592 # No need to generate them if there are no CONFIG_HEADERS.
18593 # This happens for instance with `./config.status Makefile'.
18594 if test -n "$CONFIG_HEADERS"; then
18595 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18596 BEGIN {
18597 _ACEOF
18598
18599 # Transform confdefs.h into an awk script `defines.awk', embedded as
18600 # here-document in config.status, that substitutes the proper values into
18601 # config.h.in to produce config.h.
18602
18603 # Create a delimiter string that does not exist in confdefs.h, to ease
18604 # handling of long lines.
18605 ac_delim='%!_!# '
18606 for ac_last_try in false false :; do
18607 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18608 if test -z "$ac_tt"; then
18609 break
18610 elif $ac_last_try; then
18611 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18612 else
18613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18614 fi
18615 done
18616
18617 # For the awk script, D is an array of macro values keyed by name,
18618 # likewise P contains macro parameters if any. Preserve backslash
18619 # newline sequences.
18620
18621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18622 sed -n '
18623 s/.\{148\}/&'"$ac_delim"'/g
18624 t rset
18625 :rset
18626 s/^[ ]*#[ ]*define[ ][ ]*/ /
18627 t def
18628 d
18629 :def
18630 s/\\$//
18631 t bsnl
18632 s/["\\]/\\&/g
18633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18634 D["\1"]=" \3"/p
18635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18636 d
18637 :bsnl
18638 s/["\\]/\\&/g
18639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18640 D["\1"]=" \3\\\\\\n"\\/p
18641 t cont
18642 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18643 t cont
18644 d
18645 :cont
18646 n
18647 s/.\{148\}/&'"$ac_delim"'/g
18648 t clear
18649 :clear
18650 s/\\$//
18651 t bsnlc
18652 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18653 d
18654 :bsnlc
18655 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18656 b cont
18657 ' <confdefs.h | sed '
18658 s/'"$ac_delim"'/"\\\
18659 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18660
18661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18662 for (key in D) D_is_set[key] = 1
18663 FS = ""
18664 }
18665 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18666 line = \$ 0
18667 split(line, arg, " ")
18668 if (arg[1] == "#") {
18669 defundef = arg[2]
18670 mac1 = arg[3]
18671 } else {
18672 defundef = substr(arg[1], 2)
18673 mac1 = arg[2]
18674 }
18675 split(mac1, mac2, "(") #)
18676 macro = mac2[1]
18677 prefix = substr(line, 1, index(line, defundef) - 1)
18678 if (D_is_set[macro]) {
18679 # Preserve the white space surrounding the "#".
18680 print prefix "define", macro P[macro] D[macro]
18681 next
18682 } else {
18683 # Replace #undef with comments. This is necessary, for example,
18684 # in the case of _POSIX_SOURCE, which is predefined and required
18685 # on some systems where configure will not decide to define it.
18686 if (defundef == "undef") {
18687 print "/*", prefix defundef, macro, "*/"
18688 next
18689 }
18690 }
18691 }
18692 { print }
18693 _ACAWK
18694 _ACEOF
18695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18696 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18697 fi # test -n "$CONFIG_HEADERS"
18698
18699
18700 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18701 shift
18702 for ac_tag
18703 do
18704 case $ac_tag in
18705 :[FHLC]) ac_mode=$ac_tag; continue;;
18706 esac
18707 case $ac_mode$ac_tag in
18708 :[FHL]*:*);;
18709 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18710 :[FH]-) ac_tag=-:-;;
18711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18712 esac
18713 ac_save_IFS=$IFS
18714 IFS=:
18715 set x $ac_tag
18716 IFS=$ac_save_IFS
18717 shift
18718 ac_file=$1
18719 shift
18720
18721 case $ac_mode in
18722 :L) ac_source=$1;;
18723 :[FH])
18724 ac_file_inputs=
18725 for ac_f
18726 do
18727 case $ac_f in
18728 -) ac_f="$ac_tmp/stdin";;
18729 *) # Look for the file first in the build tree, then in the source tree
18730 # (if the path is not absolute). The absolute path cannot be DOS-style,
18731 # because $ac_f cannot contain `:'.
18732 test -f "$ac_f" ||
18733 case $ac_f in
18734 [\\/$]*) false;;
18735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18736 esac ||
18737 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18738 esac
18739 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18740 as_fn_append ac_file_inputs " '$ac_f'"
18741 done
18742
18743 # Let's still pretend it is `configure' which instantiates (i.e., don't
18744 # use $as_me), people would be surprised to read:
18745 # /* config.h. Generated by config.status. */
18746 configure_input='Generated from '`
18747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18748 `' by configure.'
18749 if test x"$ac_file" != x-; then
18750 configure_input="$ac_file. $configure_input"
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18752 $as_echo "$as_me: creating $ac_file" >&6;}
18753 fi
18754 # Neutralize special characters interpreted by sed in replacement strings.
18755 case $configure_input in #(
18756 *\&* | *\|* | *\\* )
18757 ac_sed_conf_input=`$as_echo "$configure_input" |
18758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18759 *) ac_sed_conf_input=$configure_input;;
18760 esac
18761
18762 case $ac_tag in
18763 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18765 esac
18766 ;;
18767 esac
18768
18769 ac_dir=`$as_dirname -- "$ac_file" ||
18770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18771 X"$ac_file" : 'X\(//\)[^/]' \| \
18772 X"$ac_file" : 'X\(//\)$' \| \
18773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18774 $as_echo X"$ac_file" |
18775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18776 s//\1/
18777 q
18778 }
18779 /^X\(\/\/\)[^/].*/{
18780 s//\1/
18781 q
18782 }
18783 /^X\(\/\/\)$/{
18784 s//\1/
18785 q
18786 }
18787 /^X\(\/\).*/{
18788 s//\1/
18789 q
18790 }
18791 s/.*/./; q'`
18792 as_dir="$ac_dir"; as_fn_mkdir_p
18793 ac_builddir=.
18794
18795 case "$ac_dir" in
18796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18797 *)
18798 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18799 # A ".." for each directory in $ac_dir_suffix.
18800 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18801 case $ac_top_builddir_sub in
18802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18804 esac ;;
18805 esac
18806 ac_abs_top_builddir=$ac_pwd
18807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18808 # for backward compatibility:
18809 ac_top_builddir=$ac_top_build_prefix
18810
18811 case $srcdir in
18812 .) # We are building in place.
18813 ac_srcdir=.
18814 ac_top_srcdir=$ac_top_builddir_sub
18815 ac_abs_top_srcdir=$ac_pwd ;;
18816 [\\/]* | ?:[\\/]* ) # Absolute name.
18817 ac_srcdir=$srcdir$ac_dir_suffix;
18818 ac_top_srcdir=$srcdir
18819 ac_abs_top_srcdir=$srcdir ;;
18820 *) # Relative name.
18821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18822 ac_top_srcdir=$ac_top_build_prefix$srcdir
18823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18824 esac
18825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18826
18827
18828 case $ac_mode in
18829 :F)
18830 #
18831 # CONFIG_FILE
18832 #
18833
18834 case $INSTALL in
18835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18837 esac
18838 ac_MKDIR_P=$MKDIR_P
18839 case $MKDIR_P in
18840 [\\/$]* | ?:[\\/]* ) ;;
18841 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18842 esac
18843 _ACEOF
18844
18845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18846 # If the template does not know about datarootdir, expand it.
18847 # FIXME: This hack should be removed a few years after 2.60.
18848 ac_datarootdir_hack=; ac_datarootdir_seen=
18849 ac_sed_dataroot='
18850 /datarootdir/ {
18851 p
18852 q
18853 }
18854 /@datadir@/p
18855 /@docdir@/p
18856 /@infodir@/p
18857 /@localedir@/p
18858 /@mandir@/p'
18859 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18860 *datarootdir*) ac_datarootdir_seen=yes;;
18861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18863 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18864 _ACEOF
18865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18866 ac_datarootdir_hack='
18867 s&@datadir@&$datadir&g
18868 s&@docdir@&$docdir&g
18869 s&@infodir@&$infodir&g
18870 s&@localedir@&$localedir&g
18871 s&@mandir@&$mandir&g
18872 s&\\\${datarootdir}&$datarootdir&g' ;;
18873 esac
18874 _ACEOF
18875
18876 # Neutralize VPATH when `$srcdir' = `.'.
18877 # Shell code in configure.ac might set extrasub.
18878 # FIXME: do we really want to maintain this feature?
18879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18880 ac_sed_extra="$ac_vpsub
18881 $extrasub
18882 _ACEOF
18883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18884 :t
18885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18886 s|@configure_input@|$ac_sed_conf_input|;t t
18887 s&@top_builddir@&$ac_top_builddir_sub&;t t
18888 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18889 s&@srcdir@&$ac_srcdir&;t t
18890 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18891 s&@top_srcdir@&$ac_top_srcdir&;t t
18892 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18893 s&@builddir@&$ac_builddir&;t t
18894 s&@abs_builddir@&$ac_abs_builddir&;t t
18895 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18896 s&@INSTALL@&$ac_INSTALL&;t t
18897 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18898 $ac_datarootdir_hack
18899 "
18900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18901 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18902
18903 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18904 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18905 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18906 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18908 which seems to be undefined. Please make sure it is defined" >&5
18909 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18910 which seems to be undefined. Please make sure it is defined" >&2;}
18911
18912 rm -f "$ac_tmp/stdin"
18913 case $ac_file in
18914 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18915 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18916 esac \
18917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18918 ;;
18919 :H)
18920 #
18921 # CONFIG_HEADER
18922 #
18923 if test x"$ac_file" != x-; then
18924 {
18925 $as_echo "/* $configure_input */" \
18926 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18927 } >"$ac_tmp/config.h" \
18928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18929 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18931 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18932 else
18933 rm -f "$ac_file"
18934 mv "$ac_tmp/config.h" "$ac_file" \
18935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18936 fi
18937 else
18938 $as_echo "/* $configure_input */" \
18939 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18940 || as_fn_error $? "could not create -" "$LINENO" 5
18941 fi
18942 # Compute "$ac_file"'s index in $config_headers.
18943 _am_arg="$ac_file"
18944 _am_stamp_count=1
18945 for _am_header in $config_headers :; do
18946 case $_am_header in
18947 $_am_arg | $_am_arg:* )
18948 break ;;
18949 * )
18950 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18951 esac
18952 done
18953 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18954 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18955 X"$_am_arg" : 'X\(//\)[^/]' \| \
18956 X"$_am_arg" : 'X\(//\)$' \| \
18957 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18958 $as_echo X"$_am_arg" |
18959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18960 s//\1/
18961 q
18962 }
18963 /^X\(\/\/\)[^/].*/{
18964 s//\1/
18965 q
18966 }
18967 /^X\(\/\/\)$/{
18968 s//\1/
18969 q
18970 }
18971 /^X\(\/\).*/{
18972 s//\1/
18973 q
18974 }
18975 s/.*/./; q'`/stamp-h$_am_stamp_count
18976 ;;
18977
18978 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18979 $as_echo "$as_me: executing $ac_file commands" >&6;}
18980 ;;
18981 esac
18982
18983
18984 case $ac_file$ac_mode in
18985 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18986 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18987 # are listed without --file. Let's play safe and only enable the eval
18988 # if we detect the quoting.
18989 case $CONFIG_FILES in
18990 *\'*) eval set x "$CONFIG_FILES" ;;
18991 *) set x $CONFIG_FILES ;;
18992 esac
18993 shift
18994 for mf
18995 do
18996 # Strip MF so we end up with the name of the file.
18997 mf=`echo "$mf" | sed -e 's/:.*$//'`
18998 # Check whether this is an Automake generated Makefile or not.
18999 # We used to match only the files named `Makefile.in', but
19000 # some people rename them; so instead we look at the file content.
19001 # Grep'ing the first line is not enough: some people post-process
19002 # each Makefile.in and add a new line on top of each file to say so.
19003 # Grep'ing the whole file is not good either: AIX grep has a line
19004 # limit of 2048, but all sed's we know have understand at least 4000.
19005 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19006 dirpart=`$as_dirname -- "$mf" ||
19007 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19008 X"$mf" : 'X\(//\)[^/]' \| \
19009 X"$mf" : 'X\(//\)$' \| \
19010 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19011 $as_echo X"$mf" |
19012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19013 s//\1/
19014 q
19015 }
19016 /^X\(\/\/\)[^/].*/{
19017 s//\1/
19018 q
19019 }
19020 /^X\(\/\/\)$/{
19021 s//\1/
19022 q
19023 }
19024 /^X\(\/\).*/{
19025 s//\1/
19026 q
19027 }
19028 s/.*/./; q'`
19029 else
19030 continue
19031 fi
19032 # Extract the definition of DEPDIR, am__include, and am__quote
19033 # from the Makefile without running `make'.
19034 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19035 test -z "$DEPDIR" && continue
19036 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19037 test -z "am__include" && continue
19038 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19039 # When using ansi2knr, U may be empty or an underscore; expand it
19040 U=`sed -n 's/^U = //p' < "$mf"`
19041 # Find all dependency output files, they are included files with
19042 # $(DEPDIR) in their names. We invoke sed twice because it is the
19043 # simplest approach to changing $(DEPDIR) to its actual value in the
19044 # expansion.
19045 for file in `sed -n "
19046 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19047 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19048 # Make sure the directory exists.
19049 test -f "$dirpart/$file" && continue
19050 fdir=`$as_dirname -- "$file" ||
19051 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19052 X"$file" : 'X\(//\)[^/]' \| \
19053 X"$file" : 'X\(//\)$' \| \
19054 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19055 $as_echo X"$file" |
19056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19057 s//\1/
19058 q
19059 }
19060 /^X\(\/\/\)[^/].*/{
19061 s//\1/
19062 q
19063 }
19064 /^X\(\/\/\)$/{
19065 s//\1/
19066 q
19067 }
19068 /^X\(\/\).*/{
19069 s//\1/
19070 q
19071 }
19072 s/.*/./; q'`
19073 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19074 # echo "creating $dirpart/$file"
19075 echo '# dummy' > "$dirpart/$file"
19076 done
19077 done
19078 }
19079 ;;
19080 "libtool":C)
19081
19082 # See if we are running on zsh, and set the options which allow our
19083 # commands through without removal of \ escapes.
19084 if test -n "${ZSH_VERSION+set}" ; then
19085 setopt NO_GLOB_SUBST
19086 fi
19087
19088 cfgfile="${ofile}T"
19089 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19090 $RM "$cfgfile"
19091
19092 cat <<_LT_EOF >> "$cfgfile"
19093 #! $SHELL
19094
19095 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19096 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19097 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19098 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19099 #
19100 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19101 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19102 # Inc.
19103 # Written by Gordon Matzigkeit, 1996
19104 #
19105 # This file is part of GNU Libtool.
19106 #
19107 # GNU Libtool is free software; you can redistribute it and/or
19108 # modify it under the terms of the GNU General Public License as
19109 # published by the Free Software Foundation; either version 2 of
19110 # the License, or (at your option) any later version.
19111 #
19112 # As a special exception to the GNU General Public License,
19113 # if you distribute this file as part of a program or library that
19114 # is built using GNU Libtool, you may include this file under the
19115 # same distribution terms that you use for the rest of that program.
19116 #
19117 # GNU Libtool is distributed in the hope that it will be useful,
19118 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19119 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19120 # GNU General Public License for more details.
19121 #
19122 # You should have received a copy of the GNU General Public License
19123 # along with GNU Libtool; see the file COPYING. If not, a copy
19124 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19125 # obtained by writing to the Free Software Foundation, Inc.,
19126 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19127
19128
19129 # The names of the tagged configurations supported by this script.
19130 available_tags="CXX RC "
19131
19132 # ### BEGIN LIBTOOL CONFIG
19133
19134 # Which release of libtool.m4 was used?
19135 macro_version=$macro_version
19136 macro_revision=$macro_revision
19137
19138 # Whether or not to build shared libraries.
19139 build_libtool_libs=$enable_shared
19140
19141 # Whether or not to build static libraries.
19142 build_old_libs=$enable_static
19143
19144 # What type of objects to build.
19145 pic_mode=$pic_mode
19146
19147 # Whether or not to optimize for fast installation.
19148 fast_install=$enable_fast_install
19149
19150 # Shell to use when invoking shell scripts.
19151 SHELL=$lt_SHELL
19152
19153 # An echo program that protects backslashes.
19154 ECHO=$lt_ECHO
19155
19156 # The host system.
19157 host_alias=$host_alias
19158 host=$host
19159 host_os=$host_os
19160
19161 # The build system.
19162 build_alias=$build_alias
19163 build=$build
19164 build_os=$build_os
19165
19166 # A sed program that does not truncate output.
19167 SED=$lt_SED
19168
19169 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19170 Xsed="\$SED -e 1s/^X//"
19171
19172 # A grep program that handles long lines.
19173 GREP=$lt_GREP
19174
19175 # An ERE matcher.
19176 EGREP=$lt_EGREP
19177
19178 # A literal string matcher.
19179 FGREP=$lt_FGREP
19180
19181 # A BSD- or MS-compatible name lister.
19182 NM=$lt_NM
19183
19184 # Whether we need soft or hard links.
19185 LN_S=$lt_LN_S
19186
19187 # What is the maximum length of a command?
19188 max_cmd_len=$max_cmd_len
19189
19190 # Object file suffix (normally "o").
19191 objext=$ac_objext
19192
19193 # Executable file suffix (normally "").
19194 exeext=$exeext
19195
19196 # whether the shell understands "unset".
19197 lt_unset=$lt_unset
19198
19199 # turn spaces into newlines.
19200 SP2NL=$lt_lt_SP2NL
19201
19202 # turn newlines into spaces.
19203 NL2SP=$lt_lt_NL2SP
19204
19205 # convert \$build file names to \$host format.
19206 to_host_file_cmd=$lt_cv_to_host_file_cmd
19207
19208 # convert \$build files to toolchain format.
19209 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19210
19211 # An object symbol dumper.
19212 OBJDUMP=$lt_OBJDUMP
19213
19214 # Method to check whether dependent libraries are shared objects.
19215 deplibs_check_method=$lt_deplibs_check_method
19216
19217 # Command to use when deplibs_check_method = "file_magic".
19218 file_magic_cmd=$lt_file_magic_cmd
19219
19220 # How to find potential files when deplibs_check_method = "file_magic".
19221 file_magic_glob=$lt_file_magic_glob
19222
19223 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19224 want_nocaseglob=$lt_want_nocaseglob
19225
19226 # DLL creation program.
19227 DLLTOOL=$lt_DLLTOOL
19228
19229 # Command to associate shared and link libraries.
19230 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19231
19232 # The archiver.
19233 AR=$lt_AR
19234
19235 # Flags to create an archive.
19236 AR_FLAGS=$lt_AR_FLAGS
19237
19238 # How to feed a file listing to the archiver.
19239 archiver_list_spec=$lt_archiver_list_spec
19240
19241 # A symbol stripping program.
19242 STRIP=$lt_STRIP
19243
19244 # Commands used to install an old-style archive.
19245 RANLIB=$lt_RANLIB
19246 old_postinstall_cmds=$lt_old_postinstall_cmds
19247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19248
19249 # Whether to use a lock for old archive extraction.
19250 lock_old_archive_extraction=$lock_old_archive_extraction
19251
19252 # A C compiler.
19253 LTCC=$lt_CC
19254
19255 # LTCC compiler flags.
19256 LTCFLAGS=$lt_CFLAGS
19257
19258 # Take the output of nm and produce a listing of raw symbols and C names.
19259 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19260
19261 # Transform the output of nm in a proper C declaration.
19262 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19263
19264 # Transform the output of nm in a C name address pair.
19265 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19266
19267 # Transform the output of nm in a C name address pair when lib prefix is needed.
19268 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19269
19270 # Specify filename containing input files for \$NM.
19271 nm_file_list_spec=$lt_nm_file_list_spec
19272
19273 # The root where to search for dependent libraries,and in which our libraries should be installed.
19274 lt_sysroot=$lt_sysroot
19275
19276 # The name of the directory that contains temporary libtool files.
19277 objdir=$objdir
19278
19279 # Used to examine libraries when file_magic_cmd begins with "file".
19280 MAGIC_CMD=$MAGIC_CMD
19281
19282 # Must we lock files when doing compilation?
19283 need_locks=$lt_need_locks
19284
19285 # Manifest tool.
19286 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19287
19288 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19289 DSYMUTIL=$lt_DSYMUTIL
19290
19291 # Tool to change global to local symbols on Mac OS X.
19292 NMEDIT=$lt_NMEDIT
19293
19294 # Tool to manipulate fat objects and archives on Mac OS X.
19295 LIPO=$lt_LIPO
19296
19297 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19298 OTOOL=$lt_OTOOL
19299
19300 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19301 OTOOL64=$lt_OTOOL64
19302
19303 # Old archive suffix (normally "a").
19304 libext=$libext
19305
19306 # Shared library suffix (normally ".so").
19307 shrext_cmds=$lt_shrext_cmds
19308
19309 # The commands to extract the exported symbol list from a shared archive.
19310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19311
19312 # Variables whose values should be saved in libtool wrapper scripts and
19313 # restored at link time.
19314 variables_saved_for_relink=$lt_variables_saved_for_relink
19315
19316 # Do we need the "lib" prefix for modules?
19317 need_lib_prefix=$need_lib_prefix
19318
19319 # Do we need a version for libraries?
19320 need_version=$need_version
19321
19322 # Library versioning type.
19323 version_type=$version_type
19324
19325 # Shared library runtime path variable.
19326 runpath_var=$runpath_var
19327
19328 # Shared library path variable.
19329 shlibpath_var=$shlibpath_var
19330
19331 # Is shlibpath searched before the hard-coded library search path?
19332 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19333
19334 # Format of library name prefix.
19335 libname_spec=$lt_libname_spec
19336
19337 # List of archive names. First name is the real one, the rest are links.
19338 # The last name is the one that the linker finds with -lNAME
19339 library_names_spec=$lt_library_names_spec
19340
19341 # The coded name of the library, if different from the real name.
19342 soname_spec=$lt_soname_spec
19343
19344 # Permission mode override for installation of shared libraries.
19345 install_override_mode=$lt_install_override_mode
19346
19347 # Command to use after installation of a shared archive.
19348 postinstall_cmds=$lt_postinstall_cmds
19349
19350 # Command to use after uninstallation of a shared archive.
19351 postuninstall_cmds=$lt_postuninstall_cmds
19352
19353 # Commands used to finish a libtool library installation in a directory.
19354 finish_cmds=$lt_finish_cmds
19355
19356 # As "finish_cmds", except a single script fragment to be evaled but
19357 # not shown.
19358 finish_eval=$lt_finish_eval
19359
19360 # Whether we should hardcode library paths into libraries.
19361 hardcode_into_libs=$hardcode_into_libs
19362
19363 # Compile-time system search path for libraries.
19364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19365
19366 # Run-time system search path for libraries.
19367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19368
19369 # Whether dlopen is supported.
19370 dlopen_support=$enable_dlopen
19371
19372 # Whether dlopen of programs is supported.
19373 dlopen_self=$enable_dlopen_self
19374
19375 # Whether dlopen of statically linked programs is supported.
19376 dlopen_self_static=$enable_dlopen_self_static
19377
19378 # Commands to strip libraries.
19379 old_striplib=$lt_old_striplib
19380 striplib=$lt_striplib
19381
19382
19383 # The linker used to build libraries.
19384 LD=$lt_LD
19385
19386 # How to create reloadable object files.
19387 reload_flag=$lt_reload_flag
19388 reload_cmds=$lt_reload_cmds
19389
19390 # Commands used to build an old-style archive.
19391 old_archive_cmds=$lt_old_archive_cmds
19392
19393 # A language specific compiler.
19394 CC=$lt_compiler
19395
19396 # Is the compiler the GNU compiler?
19397 with_gcc=$GCC
19398
19399 # Compiler flag to turn off builtin functions.
19400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19401
19402 # Additional compiler flags for building library objects.
19403 pic_flag=$lt_lt_prog_compiler_pic
19404
19405 # How to pass a linker flag through the compiler.
19406 wl=$lt_lt_prog_compiler_wl
19407
19408 # Compiler flag to prevent dynamic linking.
19409 link_static_flag=$lt_lt_prog_compiler_static
19410
19411 # Does compiler simultaneously support -c and -o options?
19412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19413
19414 # Whether or not to add -lc for building shared libraries.
19415 build_libtool_need_lc=$archive_cmds_need_lc
19416
19417 # Whether or not to disallow shared libs when runtime libs are static.
19418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19419
19420 # Compiler flag to allow reflexive dlopens.
19421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19422
19423 # Compiler flag to generate shared objects directly from archives.
19424 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19425
19426 # Whether the compiler copes with passing no objects directly.
19427 compiler_needs_object=$lt_compiler_needs_object
19428
19429 # Create an old-style archive from a shared archive.
19430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19431
19432 # Create a temporary old-style archive to link instead of a shared archive.
19433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19434
19435 # Commands used to build a shared archive.
19436 archive_cmds=$lt_archive_cmds
19437 archive_expsym_cmds=$lt_archive_expsym_cmds
19438
19439 # Commands used to build a loadable module if different from building
19440 # a shared archive.
19441 module_cmds=$lt_module_cmds
19442 module_expsym_cmds=$lt_module_expsym_cmds
19443
19444 # Whether we are building with GNU ld or not.
19445 with_gnu_ld=$lt_with_gnu_ld
19446
19447 # Flag that allows shared libraries with undefined symbols to be built.
19448 allow_undefined_flag=$lt_allow_undefined_flag
19449
19450 # Flag that enforces no undefined symbols.
19451 no_undefined_flag=$lt_no_undefined_flag
19452
19453 # Flag to hardcode \$libdir into a binary during linking.
19454 # This must work even if \$libdir does not exist
19455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19456
19457 # If ld is used when linking, flag to hardcode \$libdir into a binary
19458 # during linking. This must work even if \$libdir does not exist.
19459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19460
19461 # Whether we need a single "-rpath" flag with a separated argument.
19462 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19463
19464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19465 # DIR into the resulting binary.
19466 hardcode_direct=$hardcode_direct
19467
19468 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19469 # DIR into the resulting binary and the resulting library dependency is
19470 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19471 # library is relocated.
19472 hardcode_direct_absolute=$hardcode_direct_absolute
19473
19474 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19475 # into the resulting binary.
19476 hardcode_minus_L=$hardcode_minus_L
19477
19478 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19479 # into the resulting binary.
19480 hardcode_shlibpath_var=$hardcode_shlibpath_var
19481
19482 # Set to "yes" if building a shared library automatically hardcodes DIR
19483 # into the library and all subsequent libraries and executables linked
19484 # against it.
19485 hardcode_automatic=$hardcode_automatic
19486
19487 # Set to yes if linker adds runtime paths of dependent libraries
19488 # to runtime path list.
19489 inherit_rpath=$inherit_rpath
19490
19491 # Whether libtool must link a program against all its dependency libraries.
19492 link_all_deplibs=$link_all_deplibs
19493
19494 # Set to "yes" if exported symbols are required.
19495 always_export_symbols=$always_export_symbols
19496
19497 # The commands to list exported symbols.
19498 export_symbols_cmds=$lt_export_symbols_cmds
19499
19500 # Symbols that should not be listed in the preloaded symbols.
19501 exclude_expsyms=$lt_exclude_expsyms
19502
19503 # Symbols that must always be exported.
19504 include_expsyms=$lt_include_expsyms
19505
19506 # Commands necessary for linking programs (against libraries) with templates.
19507 prelink_cmds=$lt_prelink_cmds
19508
19509 # Commands necessary for finishing linking programs.
19510 postlink_cmds=$lt_postlink_cmds
19511
19512 # Specify filename containing input files.
19513 file_list_spec=$lt_file_list_spec
19514
19515 # How to hardcode a shared library path into an executable.
19516 hardcode_action=$hardcode_action
19517
19518 # The directories searched by this compiler when creating a shared library.
19519 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19520
19521 # Dependencies to place before and after the objects being linked to
19522 # create a shared library.
19523 predep_objects=$lt_predep_objects
19524 postdep_objects=$lt_postdep_objects
19525 predeps=$lt_predeps
19526 postdeps=$lt_postdeps
19527
19528 # The library search path used internally by the compiler when linking
19529 # a shared library.
19530 compiler_lib_search_path=$lt_compiler_lib_search_path
19531
19532 # ### END LIBTOOL CONFIG
19533
19534 _LT_EOF
19535
19536 case $host_os in
19537 aix3*)
19538 cat <<\_LT_EOF >> "$cfgfile"
19539 # AIX sometimes has problems with the GCC collect2 program. For some
19540 # reason, if we set the COLLECT_NAMES environment variable, the problems
19541 # vanish in a puff of smoke.
19542 if test "X${COLLECT_NAMES+set}" != Xset; then
19543 COLLECT_NAMES=
19544 export COLLECT_NAMES
19545 fi
19546 _LT_EOF
19547 ;;
19548 esac
19549
19550
19551 ltmain="$ac_aux_dir/ltmain.sh"
19552
19553
19554 # We use sed instead of cat because bash on DJGPP gets confused if
19555 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19556 # text mode, it properly converts lines to CR/LF. This bash problem
19557 # is reportedly fixed, but why not run on old versions too?
19558 sed '$q' "$ltmain" >> "$cfgfile" \
19559 || (rm -f "$cfgfile"; exit 1)
19560
19561 if test x"$xsi_shell" = xyes; then
19562 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19563 func_dirname ()\
19564 {\
19565 \ case ${1} in\
19566 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19567 \ * ) func_dirname_result="${3}" ;;\
19568 \ esac\
19569 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19570 && mv -f "$cfgfile.tmp" "$cfgfile" \
19571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19572 test 0 -eq $? || _lt_function_replace_fail=:
19573
19574
19575 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19576 func_basename ()\
19577 {\
19578 \ func_basename_result="${1##*/}"\
19579 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19580 && mv -f "$cfgfile.tmp" "$cfgfile" \
19581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19582 test 0 -eq $? || _lt_function_replace_fail=:
19583
19584
19585 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19586 func_dirname_and_basename ()\
19587 {\
19588 \ case ${1} in\
19589 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19590 \ * ) func_dirname_result="${3}" ;;\
19591 \ esac\
19592 \ func_basename_result="${1##*/}"\
19593 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19594 && mv -f "$cfgfile.tmp" "$cfgfile" \
19595 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19596 test 0 -eq $? || _lt_function_replace_fail=:
19597
19598
19599 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19600 func_stripname ()\
19601 {\
19602 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19603 \ # positional parameters, so assign one to ordinary parameter first.\
19604 \ func_stripname_result=${3}\
19605 \ func_stripname_result=${func_stripname_result#"${1}"}\
19606 \ func_stripname_result=${func_stripname_result%"${2}"}\
19607 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19608 && mv -f "$cfgfile.tmp" "$cfgfile" \
19609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19610 test 0 -eq $? || _lt_function_replace_fail=:
19611
19612
19613 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19614 func_split_long_opt ()\
19615 {\
19616 \ func_split_long_opt_name=${1%%=*}\
19617 \ func_split_long_opt_arg=${1#*=}\
19618 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19619 && mv -f "$cfgfile.tmp" "$cfgfile" \
19620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19621 test 0 -eq $? || _lt_function_replace_fail=:
19622
19623
19624 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19625 func_split_short_opt ()\
19626 {\
19627 \ func_split_short_opt_arg=${1#??}\
19628 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19629 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19630 && mv -f "$cfgfile.tmp" "$cfgfile" \
19631 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19632 test 0 -eq $? || _lt_function_replace_fail=:
19633
19634
19635 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19636 func_lo2o ()\
19637 {\
19638 \ case ${1} in\
19639 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19640 \ *) func_lo2o_result=${1} ;;\
19641 \ esac\
19642 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19643 && mv -f "$cfgfile.tmp" "$cfgfile" \
19644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19645 test 0 -eq $? || _lt_function_replace_fail=:
19646
19647
19648 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19649 func_xform ()\
19650 {\
19651 func_xform_result=${1%.*}.lo\
19652 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19653 && mv -f "$cfgfile.tmp" "$cfgfile" \
19654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19655 test 0 -eq $? || _lt_function_replace_fail=:
19656
19657
19658 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19659 func_arith ()\
19660 {\
19661 func_arith_result=$(( $* ))\
19662 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19663 && mv -f "$cfgfile.tmp" "$cfgfile" \
19664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19665 test 0 -eq $? || _lt_function_replace_fail=:
19666
19667
19668 sed -e '/^func_len ()$/,/^} # func_len /c\
19669 func_len ()\
19670 {\
19671 func_len_result=${#1}\
19672 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19673 && mv -f "$cfgfile.tmp" "$cfgfile" \
19674 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19675 test 0 -eq $? || _lt_function_replace_fail=:
19676
19677 fi
19678
19679 if test x"$lt_shell_append" = xyes; then
19680 sed -e '/^func_append ()$/,/^} # func_append /c\
19681 func_append ()\
19682 {\
19683 eval "${1}+=\\${2}"\
19684 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19685 && mv -f "$cfgfile.tmp" "$cfgfile" \
19686 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19687 test 0 -eq $? || _lt_function_replace_fail=:
19688
19689
19690 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19691 func_append_quoted ()\
19692 {\
19693 \ func_quote_for_eval "${2}"\
19694 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19695 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19696 && mv -f "$cfgfile.tmp" "$cfgfile" \
19697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19698 test 0 -eq $? || _lt_function_replace_fail=:
19699
19700
19701 # Save a `func_append' function call where possible by direct use of '+='
19702 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19703 && mv -f "$cfgfile.tmp" "$cfgfile" \
19704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19705 test 0 -eq $? || _lt_function_replace_fail=:
19706 else
19707 # Save a `func_append' function call even when '+=' is not available
19708 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19709 && mv -f "$cfgfile.tmp" "$cfgfile" \
19710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19711 test 0 -eq $? || _lt_function_replace_fail=:
19712 fi
19713
19714 if test x"$_lt_function_replace_fail" = x":"; then
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19716 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19717 fi
19718
19719
19720 mv -f "$cfgfile" "$ofile" ||
19721 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19722 chmod +x "$ofile"
19723
19724
19725 cat <<_LT_EOF >> "$ofile"
19726
19727 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19728
19729 # The linker used to build libraries.
19730 LD=$lt_LD_CXX
19731
19732 # How to create reloadable object files.
19733 reload_flag=$lt_reload_flag_CXX
19734 reload_cmds=$lt_reload_cmds_CXX
19735
19736 # Commands used to build an old-style archive.
19737 old_archive_cmds=$lt_old_archive_cmds_CXX
19738
19739 # A language specific compiler.
19740 CC=$lt_compiler_CXX
19741
19742 # Is the compiler the GNU compiler?
19743 with_gcc=$GCC_CXX
19744
19745 # Compiler flag to turn off builtin functions.
19746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19747
19748 # Additional compiler flags for building library objects.
19749 pic_flag=$lt_lt_prog_compiler_pic_CXX
19750
19751 # How to pass a linker flag through the compiler.
19752 wl=$lt_lt_prog_compiler_wl_CXX
19753
19754 # Compiler flag to prevent dynamic linking.
19755 link_static_flag=$lt_lt_prog_compiler_static_CXX
19756
19757 # Does compiler simultaneously support -c and -o options?
19758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19759
19760 # Whether or not to add -lc for building shared libraries.
19761 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19762
19763 # Whether or not to disallow shared libs when runtime libs are static.
19764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19765
19766 # Compiler flag to allow reflexive dlopens.
19767 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19768
19769 # Compiler flag to generate shared objects directly from archives.
19770 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19771
19772 # Whether the compiler copes with passing no objects directly.
19773 compiler_needs_object=$lt_compiler_needs_object_CXX
19774
19775 # Create an old-style archive from a shared archive.
19776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19777
19778 # Create a temporary old-style archive to link instead of a shared archive.
19779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19780
19781 # Commands used to build a shared archive.
19782 archive_cmds=$lt_archive_cmds_CXX
19783 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19784
19785 # Commands used to build a loadable module if different from building
19786 # a shared archive.
19787 module_cmds=$lt_module_cmds_CXX
19788 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19789
19790 # Whether we are building with GNU ld or not.
19791 with_gnu_ld=$lt_with_gnu_ld_CXX
19792
19793 # Flag that allows shared libraries with undefined symbols to be built.
19794 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19795
19796 # Flag that enforces no undefined symbols.
19797 no_undefined_flag=$lt_no_undefined_flag_CXX
19798
19799 # Flag to hardcode \$libdir into a binary during linking.
19800 # This must work even if \$libdir does not exist
19801 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19802
19803 # If ld is used when linking, flag to hardcode \$libdir into a binary
19804 # during linking. This must work even if \$libdir does not exist.
19805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19806
19807 # Whether we need a single "-rpath" flag with a separated argument.
19808 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19809
19810 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19811 # DIR into the resulting binary.
19812 hardcode_direct=$hardcode_direct_CXX
19813
19814 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19815 # DIR into the resulting binary and the resulting library dependency is
19816 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19817 # library is relocated.
19818 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19819
19820 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19821 # into the resulting binary.
19822 hardcode_minus_L=$hardcode_minus_L_CXX
19823
19824 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19825 # into the resulting binary.
19826 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19827
19828 # Set to "yes" if building a shared library automatically hardcodes DIR
19829 # into the library and all subsequent libraries and executables linked
19830 # against it.
19831 hardcode_automatic=$hardcode_automatic_CXX
19832
19833 # Set to yes if linker adds runtime paths of dependent libraries
19834 # to runtime path list.
19835 inherit_rpath=$inherit_rpath_CXX
19836
19837 # Whether libtool must link a program against all its dependency libraries.
19838 link_all_deplibs=$link_all_deplibs_CXX
19839
19840 # Set to "yes" if exported symbols are required.
19841 always_export_symbols=$always_export_symbols_CXX
19842
19843 # The commands to list exported symbols.
19844 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19845
19846 # Symbols that should not be listed in the preloaded symbols.
19847 exclude_expsyms=$lt_exclude_expsyms_CXX
19848
19849 # Symbols that must always be exported.
19850 include_expsyms=$lt_include_expsyms_CXX
19851
19852 # Commands necessary for linking programs (against libraries) with templates.
19853 prelink_cmds=$lt_prelink_cmds_CXX
19854
19855 # Commands necessary for finishing linking programs.
19856 postlink_cmds=$lt_postlink_cmds_CXX
19857
19858 # Specify filename containing input files.
19859 file_list_spec=$lt_file_list_spec_CXX
19860
19861 # How to hardcode a shared library path into an executable.
19862 hardcode_action=$hardcode_action_CXX
19863
19864 # The directories searched by this compiler when creating a shared library.
19865 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19866
19867 # Dependencies to place before and after the objects being linked to
19868 # create a shared library.
19869 predep_objects=$lt_predep_objects_CXX
19870 postdep_objects=$lt_postdep_objects_CXX
19871 predeps=$lt_predeps_CXX
19872 postdeps=$lt_postdeps_CXX
19873
19874 # The library search path used internally by the compiler when linking
19875 # a shared library.
19876 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19877
19878 # ### END LIBTOOL TAG CONFIG: CXX
19879 _LT_EOF
19880
19881
19882 cat <<_LT_EOF >> "$ofile"
19883
19884 # ### BEGIN LIBTOOL TAG CONFIG: RC
19885
19886 # The linker used to build libraries.
19887 LD=$lt_LD_RC
19888
19889 # How to create reloadable object files.
19890 reload_flag=$lt_reload_flag_RC
19891 reload_cmds=$lt_reload_cmds_RC
19892
19893 # Commands used to build an old-style archive.
19894 old_archive_cmds=$lt_old_archive_cmds_RC
19895
19896 # A language specific compiler.
19897 CC=$lt_compiler_RC
19898
19899 # Is the compiler the GNU compiler?
19900 with_gcc=$GCC_RC
19901
19902 # Compiler flag to turn off builtin functions.
19903 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19904
19905 # Additional compiler flags for building library objects.
19906 pic_flag=$lt_lt_prog_compiler_pic_RC
19907
19908 # How to pass a linker flag through the compiler.
19909 wl=$lt_lt_prog_compiler_wl_RC
19910
19911 # Compiler flag to prevent dynamic linking.
19912 link_static_flag=$lt_lt_prog_compiler_static_RC
19913
19914 # Does compiler simultaneously support -c and -o options?
19915 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19916
19917 # Whether or not to add -lc for building shared libraries.
19918 build_libtool_need_lc=$archive_cmds_need_lc_RC
19919
19920 # Whether or not to disallow shared libs when runtime libs are static.
19921 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19922
19923 # Compiler flag to allow reflexive dlopens.
19924 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19925
19926 # Compiler flag to generate shared objects directly from archives.
19927 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19928
19929 # Whether the compiler copes with passing no objects directly.
19930 compiler_needs_object=$lt_compiler_needs_object_RC
19931
19932 # Create an old-style archive from a shared archive.
19933 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19934
19935 # Create a temporary old-style archive to link instead of a shared archive.
19936 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19937
19938 # Commands used to build a shared archive.
19939 archive_cmds=$lt_archive_cmds_RC
19940 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19941
19942 # Commands used to build a loadable module if different from building
19943 # a shared archive.
19944 module_cmds=$lt_module_cmds_RC
19945 module_expsym_cmds=$lt_module_expsym_cmds_RC
19946
19947 # Whether we are building with GNU ld or not.
19948 with_gnu_ld=$lt_with_gnu_ld_RC
19949
19950 # Flag that allows shared libraries with undefined symbols to be built.
19951 allow_undefined_flag=$lt_allow_undefined_flag_RC
19952
19953 # Flag that enforces no undefined symbols.
19954 no_undefined_flag=$lt_no_undefined_flag_RC
19955
19956 # Flag to hardcode \$libdir into a binary during linking.
19957 # This must work even if \$libdir does not exist
19958 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19959
19960 # If ld is used when linking, flag to hardcode \$libdir into a binary
19961 # during linking. This must work even if \$libdir does not exist.
19962 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19963
19964 # Whether we need a single "-rpath" flag with a separated argument.
19965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19966
19967 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19968 # DIR into the resulting binary.
19969 hardcode_direct=$hardcode_direct_RC
19970
19971 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19972 # DIR into the resulting binary and the resulting library dependency is
19973 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19974 # library is relocated.
19975 hardcode_direct_absolute=$hardcode_direct_absolute_RC
19976
19977 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19978 # into the resulting binary.
19979 hardcode_minus_L=$hardcode_minus_L_RC
19980
19981 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19982 # into the resulting binary.
19983 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19984
19985 # Set to "yes" if building a shared library automatically hardcodes DIR
19986 # into the library and all subsequent libraries and executables linked
19987 # against it.
19988 hardcode_automatic=$hardcode_automatic_RC
19989
19990 # Set to yes if linker adds runtime paths of dependent libraries
19991 # to runtime path list.
19992 inherit_rpath=$inherit_rpath_RC
19993
19994 # Whether libtool must link a program against all its dependency libraries.
19995 link_all_deplibs=$link_all_deplibs_RC
19996
19997 # Set to "yes" if exported symbols are required.
19998 always_export_symbols=$always_export_symbols_RC
19999
20000 # The commands to list exported symbols.
20001 export_symbols_cmds=$lt_export_symbols_cmds_RC
20002
20003 # Symbols that should not be listed in the preloaded symbols.
20004 exclude_expsyms=$lt_exclude_expsyms_RC
20005
20006 # Symbols that must always be exported.
20007 include_expsyms=$lt_include_expsyms_RC
20008
20009 # Commands necessary for linking programs (against libraries) with templates.
20010 prelink_cmds=$lt_prelink_cmds_RC
20011
20012 # Commands necessary for finishing linking programs.
20013 postlink_cmds=$lt_postlink_cmds_RC
20014
20015 # Specify filename containing input files.
20016 file_list_spec=$lt_file_list_spec_RC
20017
20018 # How to hardcode a shared library path into an executable.
20019 hardcode_action=$hardcode_action_RC
20020
20021 # The directories searched by this compiler when creating a shared library.
20022 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20023
20024 # Dependencies to place before and after the objects being linked to
20025 # create a shared library.
20026 predep_objects=$lt_predep_objects_RC
20027 postdep_objects=$lt_postdep_objects_RC
20028 predeps=$lt_predeps_RC
20029 postdeps=$lt_postdeps_RC
20030
20031 # The library search path used internally by the compiler when linking
20032 # a shared library.
20033 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20034
20035 # ### END LIBTOOL TAG CONFIG: RC
20036 _LT_EOF
20037
20038 ;;
20039
20040 esac
20041 done # for ac_tag
20042
20043
20044 as_fn_exit 0
20045 _ACEOF
20046 ac_clean_files=$ac_clean_files_save
20047
20048 test $ac_write_fail = 0 ||
20049 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20050
20051
20052 # configure is writing to config.log, and then calls config.status.
20053 # config.status does its own redirection, appending to config.log.
20054 # Unfortunately, on DOS this fails, as config.log is still kept open
20055 # by configure, so config.status won't be able to write to it; its
20056 # output is simply discarded. So we exec the FD to /dev/null,
20057 # effectively closing config.log, so it can be properly (re)opened and
20058 # appended to by config.status. When coming back to configure, we
20059 # need to make the FD available again.
20060 if test "$no_create" != yes; then
20061 ac_cs_success=:
20062 ac_config_status_args=
20063 test "$silent" = yes &&
20064 ac_config_status_args="$ac_config_status_args --quiet"
20065 exec 5>/dev/null
20066 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20067 exec 5>>config.log
20068 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20069 # would make configure fail if this is the last instruction.
20070 $ac_cs_success || as_fn_exit 1
20071 fi
20072 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20074 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20075 fi
20076
20077
20078 #====================================================================================
20079
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20081 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
20082
20083 Configuration summary :
20084
20085 Version : ..................... ${VERSION}
20086
20087 Host CPU : .................... ${host_cpu}
20088 Host Vendor : ................. ${host_vendor}
20089 Host OS : ..................... ${host_os}
20090 " >&5
20091 $as_echo "
20092 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
20093
20094 Configuration summary :
20095
20096 Version : ..................... ${VERSION}
20097
20098 Host CPU : .................... ${host_cpu}
20099 Host Vendor : ................. ${host_vendor}
20100 Host OS : ..................... ${host_os}
20101 " >&6; }
20102
20103 if test x$ac_cv_c_compiler_gnu = xyes ; then
20104 echo -e " Tools :\n"
20105 echo " Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}"
20106 echo " GCC major version : ........... ${GCC_MAJOR_VERSION}"
20107 fi
20108
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20110 Extra tools required for testing and examples :
20111
20112 Use FFTW : .................... ${ac_cv_fftw3}" >&5
20113 $as_echo "
20114 Extra tools required for testing and examples :
20115
20116 Use FFTW : .................... ${ac_cv_fftw3}" >&6; }
20117
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have libsndfile : ............. ${ac_cv_sndfile}
20119 " >&5
20120 $as_echo " Have libsndfile : ............. ${ac_cv_sndfile}
20121 " >&6; }
20122
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Installation directories :
20124
20125 Library directory : ........... ${prefix}/lib
20126 Program directory : ........... ${prefix}/bin
20127 Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
20128 " >&5
20129 $as_echo " Installation directories :
20130
20131 Library directory : ........... ${prefix}/lib
20132 Program directory : ........... ${prefix}/bin
20133 Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
20134 " >&6; }
20135
20136 if test x$prefix != "x/usr" ; then
20137 echo "Compiling some other packages against ${PACKAGE} may require "
20138 echo -e "the addition of \"${prefix}/lib/pkgconfig\" to the "
20139 echo -e "PKG_CONFIG_PATH environment variable.\n"
20140 fi
20141