comparison src/libsndfile-1.0.27/configure @ 125:cd6cdf86811e

Current libsndfile source
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 18 Oct 2016 13:22:47 +0100
parents
children
comparison
equal deleted inserted replaced
124:e3d5853d5918 125:cd6cdf86811e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libsndfile 1.0.27.
4 #
5 # Report bugs to <sndfile@mega-nerd.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: sndfile@mega-nerd.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libsndfile'
592 PACKAGE_TARNAME='libsndfile'
593 PACKAGE_VERSION='1.0.27'
594 PACKAGE_STRING='libsndfile 1.0.27'
595 PACKAGE_BUGREPORT='sndfile@mega-nerd.com'
596 PACKAGE_URL='http://www.mega-nerd.com/libsndfile/'
597
598 ac_unique_file="src/sndfile.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 LIBTOOL_DEPS
640 TEST_BINDIR
641 SRC_BINDIR
642 EXTERNAL_XIPH_LIBS
643 EXTERNAL_XIPH_CFLAGS
644 SNDIO_LIBS
645 ALSA_LIBS
646 OS_SPECIFIC_LINKS
647 OS_SPECIFIC_CFLAGS
648 HAVE_EXTERNAL_XIPH_LIBS
649 WIN_RC_VERSION
650 CLEAN_VERSION
651 SHARED_VERSION_INFO
652 SHLIB_VERSION_ARG
653 HTML_FGCOLOUR
654 HTML_BGCOLOUR
655 HOST_TRIPLET
656 GCC_MINOR_VERSION
657 GCC_MAJOR_VERSION
658 GCC_VERSION
659 USE_WIN_VERSION_FILE_FALSE
660 USE_WIN_VERSION_FILE_TRUE
661 SQLITE3_LIBS
662 SQLITE3_CFLAGS
663 VORBISENC_LIBS
664 VORBISENC_CFLAGS
665 VORBIS_LIBS
666 VORBIS_CFLAGS
667 SPEEX_LIBS
668 SPEEX_CFLAGS
669 OGG_LIBS
670 OGG_CFLAGS
671 FLAC_LIBS
672 FLAC_CFLAGS
673 pkgconfigdir
674 PKG_CONFIG_LIBDIR
675 PKG_CONFIG_PATH
676 PKG_CONFIG
677 OCTAVE_DEST_MDIR
678 OCTAVE_DEST_ODIR
679 OCTAVE_CONFIG_VERSION
680 OCTAVE_CONFIG
681 HAVE_OCTAVE_CONFIG
682 MKOCTFILE_VERSION
683 MKOCTFILE
684 HAVE_MKOCTFILE
685 OCTAVE
686 OCTAVE_VERSION
687 HAVE_OCTAVE
688 BUILD_OCTAVE_MOD_FALSE
689 BUILD_OCTAVE_MOD_TRUE
690 SF_COUNT_MAX
691 SIZEOF_SF_COUNT_T
692 TYPEOF_SF_COUNT_T
693 ENABLE_TEST_COVERAGE_FALSE
694 ENABLE_TEST_COVERAGE_TRUE
695 LINUX_MINGW_CROSS_TEST_FALSE
696 LINUX_MINGW_CROSS_TEST_TRUE
697 HAVE_XCODE_SELECT
698 HAVE_WINE
699 HAVE_AUTOGEN
700 RC
701 CXXCPP
702 LT_SYS_LIBRARY_PATH
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 MANIFEST_TOOL
709 RANLIB
710 ac_ct_AR
711 AR
712 DLLTOOL
713 OBJDUMP
714 LN_S
715 NM
716 ac_ct_DUMPBIN
717 DUMPBIN
718 LD
719 FGREP
720 LIBTOOL
721 SED
722 am__fastdepCXX_FALSE
723 am__fastdepCXX_TRUE
724 CXXDEPMODE
725 ac_ct_CXX
726 CXXFLAGS
727 CXX
728 EGREP
729 GREP
730 CPP
731 am__fastdepCC_FALSE
732 am__fastdepCC_TRUE
733 CCDEPMODE
734 am__nodep
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__quote
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 AM_BACKSLASH
749 AM_DEFAULT_VERBOSITY
750 AM_DEFAULT_V
751 AM_V
752 am__untar
753 am__tar
754 AMTAR
755 am__leading_dot
756 SET_MAKE
757 AWK
758 mkdir_p
759 MKDIR_P
760 INSTALL_STRIP_PROGRAM
761 STRIP
762 install_sh
763 MAKEINFO
764 AUTOHEADER
765 AUTOMAKE
766 AUTOCONF
767 ACLOCAL
768 VERSION
769 PACKAGE
770 CYGPATH_W
771 am__isrc
772 INSTALL_DATA
773 INSTALL_SCRIPT
774 INSTALL_PROGRAM
775 target_os
776 target_vendor
777 target_cpu
778 target
779 host_os
780 host_vendor
781 host_cpu
782 host
783 build_os
784 build_vendor
785 build_cpu
786 build
787 target_alias
788 host_alias
789 build_alias
790 LIBS
791 ECHO_T
792 ECHO_N
793 ECHO_C
794 DEFS
795 mandir
796 localedir
797 libdir
798 psdir
799 pdfdir
800 dvidir
801 htmldir
802 infodir
803 docdir
804 oldincludedir
805 includedir
806 runstatedir
807 localstatedir
808 sharedstatedir
809 sysconfdir
810 datadir
811 datarootdir
812 libexecdir
813 sbindir
814 bindir
815 program_transform_name
816 prefix
817 exec_prefix
818 PACKAGE_URL
819 PACKAGE_BUGREPORT
820 PACKAGE_STRING
821 PACKAGE_VERSION
822 PACKAGE_TARNAME
823 PACKAGE_NAME
824 PATH_SEPARATOR
825 SHELL'
826 ac_subst_files=''
827 ac_user_opts='
828 enable_option_checking
829 enable_silent_rules
830 enable_dependency_tracking
831 enable_shared
832 enable_static
833 with_pic
834 enable_fast_install
835 with_aix_soname
836 with_gnu_ld
837 with_sysroot
838 enable_libtool_lock
839 enable_experimental
840 enable_werror
841 enable_stack_smash_protection
842 enable_gcc_pipe
843 enable_gcc_opt
844 enable_cpu_clip
845 enable_bow_docs
846 enable_sqlite
847 enable_alsa
848 enable_external_libs
849 enable_octave
850 enable_test_coverage
851 enable_largefile
852 with_octave
853 with_mkoctfile
854 with_octave_config
855 with_pkgconfigdir
856 '
857 ac_precious_vars='build_alias
858 host_alias
859 target_alias
860 CC
861 CFLAGS
862 LDFLAGS
863 LIBS
864 CPPFLAGS
865 CPP
866 CXX
867 CXXFLAGS
868 CCC
869 LT_SYS_LIBRARY_PATH
870 CXXCPP
871 PKG_CONFIG
872 PKG_CONFIG_PATH
873 PKG_CONFIG_LIBDIR
874 FLAC_CFLAGS
875 FLAC_LIBS
876 OGG_CFLAGS
877 OGG_LIBS
878 SPEEX_CFLAGS
879 SPEEX_LIBS
880 VORBIS_CFLAGS
881 VORBIS_LIBS
882 VORBISENC_CFLAGS
883 VORBISENC_LIBS
884 SQLITE3_CFLAGS
885 SQLITE3_LIBS'
886
887
888 # Initialize some variables set by options.
889 ac_init_help=
890 ac_init_version=false
891 ac_unrecognized_opts=
892 ac_unrecognized_sep=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
895 cache_file=/dev/null
896 exec_prefix=NONE
897 no_create=
898 no_recursion=
899 prefix=NONE
900 program_prefix=NONE
901 program_suffix=NONE
902 program_transform_name=s,x,x,
903 silent=
904 site=
905 srcdir=
906 verbose=
907 x_includes=NONE
908 x_libraries=NONE
909
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 runstatedir='${localstatedir}/run'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
936
937 ac_prev=
938 ac_dashdash=
939 for ac_option
940 do
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
946 fi
947
948 case $ac_option in
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
952 esac
953
954 # Accept the important Cygnus configure options, so we can diagnose typos.
955
956 case $ac_dashdash$ac_option in
957 --)
958 ac_dashdash=yes ;;
959
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
964
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
969
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
976
977 --config-cache | -C)
978 cache_file=config.cache ;;
979
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
984
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
991
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1017
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -runstatedir | --runstatedir | --runstatedi | --runstated \
1178 | --runstate | --runstat | --runsta | --runst | --runs \
1179 | --run | --ru | --r)
1180 ac_prev=runstatedir ;;
1181 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1182 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1183 | --run=* | --ru=* | --r=*)
1184 runstatedir=$ac_optarg ;;
1185
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 ac_prev=sbindir ;;
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 | --sbi=* | --sb=*)
1190 sbindir=$ac_optarg ;;
1191
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1195 | --sha | --sh)
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 | --sha=* | --sh=*)
1201 sharedstatedir=$ac_optarg ;;
1202
1203 -site | --site | --sit)
1204 ac_prev=site ;;
1205 -site=* | --site=* | --sit=*)
1206 site=$ac_optarg ;;
1207
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 ac_prev=srcdir ;;
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1212
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1219
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1224
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 verbose=yes ;;
1227
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1230
1231 -with-* | --with-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=\$ac_optarg ;;
1246
1247 -without-* | --without-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=no ;;
1262
1263 --x)
1264 # Obsolete; use --with-x.
1265 with_x=yes ;;
1266
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1273
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1280
1281 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1282 Try \`$0 --help' for more information"
1283 ;;
1284
1285 *=*)
1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
1288 case $ac_envvar in #(
1289 '' | [0-9]* | *[!_$as_cr_alnum]* )
1290 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1291 esac
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1294
1295 *)
1296 # FIXME: should be removed in autoconf 3.0.
1297 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1301 ;;
1302
1303 esac
1304 done
1305
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 as_fn_error $? "missing argument to $ac_option"
1309 fi
1310
1311 if test -n "$ac_unrecognized_opts"; then
1312 case $enable_option_checking in
1313 no) ;;
1314 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1315 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 esac
1317 fi
1318
1319 # Check all directory arguments for consistency.
1320 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321 datadir sysconfdir sharedstatedir localstatedir includedir \
1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323 libdir localedir mandir runstatedir
1324 do
1325 eval ac_val=\$$ac_var
1326 # Remove trailing slashes.
1327 case $ac_val in
1328 */ )
1329 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330 eval $ac_var=\$ac_val;;
1331 esac
1332 # Be sure to have absolute directory names.
1333 case $ac_val in
1334 [\\/$]* | ?:[\\/]* ) continue;;
1335 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336 esac
1337 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1338 done
1339
1340 # There might be people who depend on the old broken behavior: `$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1343 build=$build_alias
1344 host=$host_alias
1345 target=$target_alias
1346
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x; then
1349 if test "x$build_alias" = x; then
1350 cross_compiling=maybe
1351 elif test "x$build_alias" != "x$host_alias"; then
1352 cross_compiling=yes
1353 fi
1354 fi
1355
1356 ac_tool_prefix=
1357 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358
1359 test "$silent" = yes && exec 6>/dev/null
1360
1361
1362 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363 ac_ls_di=`ls -di .` &&
1364 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1365 as_fn_error $? "working directory cannot be determined"
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 as_fn_error $? "pwd does not report name of working directory"
1368
1369
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
1397 srcdir=$ac_confdir
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 srcdir=..
1400 fi
1401 else
1402 ac_srcdir_defaulted=no
1403 fi
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407 fi
1408 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 ac_abs_confdir=`(
1410 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411 pwd)`
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1415 fi
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1419 case $srcdir in
1420 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 esac
1422 for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1428
1429 #
1430 # Report the --help message.
1431 #
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
1436 \`configure' configures libsndfile 1.0.27 to adapt to many kinds of systems.
1437
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1442
1443 Defaults for the options are specified in brackets.
1444
1445 Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking ...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 [PREFIX]
1461
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1466
1467 For better control, use the options below.
1468
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/libsndfile]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1490 _ACEOF
1491
1492 cat <<\_ACEOF
1493
1494 Program names:
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498
1499 System types:
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 --target=TARGET configure for building compilers for TARGET [HOST]
1503 _ACEOF
1504 fi
1505
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive ) echo "Configuration of libsndfile 1.0.27:";;
1509 esac
1510 cat <<\_ACEOF
1511
1512 Optional Features:
1513 --disable-option-checking ignore unrecognized --enable/--with options
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --enable-silent-rules less verbose build output (undo: "make V=1")
1517 --disable-silent-rules verbose build output (undo: "make V=0")
1518 --enable-dependency-tracking
1519 do not reject slow dependency extractors
1520 --disable-dependency-tracking
1521 speeds up one-time build
1522 --enable-shared[=PKGS] build shared libraries [default=yes]
1523 --enable-static[=PKGS] build static libraries [default=yes]
1524 --enable-fast-install[=PKGS]
1525 optimize for fast installation [default=yes]
1526 --disable-libtool-lock avoid locking (might break parallel builds)
1527 --enable-experimental enable experimental code
1528 --enable-werror enable -Werror in all Makefiles
1529 --enable-stack-smash-protection
1530 Enable GNU GCC stack smash protection
1531 --disable-gcc-pipe disable gcc -pipe option
1532 --disable-gcc-opt disable gcc optimisations
1533 --disable-cpu-clip disable tricky cpu specific clipper
1534 --enable-bow-docs enable black-on-white html docs
1535 --disable-sqlite disable use of sqlite
1536 --disable-alsa disable use of ALSA
1537 --disable-external-libs disable use of FLAC, Ogg and Vorbis [[default=no]]
1538 --enable-octave disable building of GNU Octave module
1539 --enable-test-coverage enable test coverage
1540 --disable-largefile omit support for large files
1541
1542 Optional Packages:
1543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1545 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1546 both]
1547 --with-aix-soname=aix|svr4|both
1548 shared library versioning (aka "SONAME") variant to
1549 provide on AIX, [default=aix].
1550 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1551 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1552 compiler's sysroot if not specified).
1553 --with-octave choose the octave version
1554 --with-mkoctfile choose the mkoctfile version
1555 --with-octave-config choose the octave-config version
1556 --with-pkgconfigdir pkg-config installation directory
1557 ['${libdir}/pkgconfig']
1558
1559 Some influential environment variables:
1560 CC C compiler command
1561 CFLAGS C compiler flags
1562 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1563 nonstandard directory <lib dir>
1564 LIBS libraries to pass to the linker, e.g. -l<library>
1565 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
1567 CPP C preprocessor
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
1570 LT_SYS_LIBRARY_PATH
1571 User-defined run-time library search path.
1572 CXXCPP C++ preprocessor
1573 PKG_CONFIG path to pkg-config utility
1574 PKG_CONFIG_PATH
1575 directories to add to pkg-config's search path
1576 PKG_CONFIG_LIBDIR
1577 path overriding pkg-config's built-in search path
1578 FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config
1579 FLAC_LIBS linker flags for FLAC, overriding pkg-config
1580 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1581 OGG_LIBS linker flags for OGG, overriding pkg-config
1582 SPEEX_CFLAGS
1583 C compiler flags for SPEEX, overriding pkg-config
1584 SPEEX_LIBS linker flags for SPEEX, overriding pkg-config
1585 VORBIS_CFLAGS
1586 C compiler flags for VORBIS, overriding pkg-config
1587 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1588 VORBISENC_CFLAGS
1589 C compiler flags for VORBISENC, overriding pkg-config
1590 VORBISENC_LIBS
1591 linker flags for VORBISENC, overriding pkg-config
1592 SQLITE3_CFLAGS
1593 C compiler flags for SQLITE3, overriding pkg-config
1594 SQLITE3_LIBS
1595 linker flags for SQLITE3, overriding pkg-config
1596
1597 Use these variables to override the choices made by `configure' or to help
1598 it to find libraries and programs with nonstandard names/locations.
1599
1600 Report bugs to <sndfile@mega-nerd.com>.
1601 libsndfile home page: <http://www.mega-nerd.com/libsndfile/>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
1612 ac_builddir=.
1613
1614 case "$ac_dir" in
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *)
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624 esac
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1629
1630 case $srcdir in
1631 .) # We are building in place.
1632 ac_srcdir=.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 esac
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663 cat <<\_ACEOF
1664 libsndfile configure 1.0.27
1665 generated by GNU Autoconf 2.69
1666
1667 Copyright (C) 2012 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1672 fi
1673
1674 ## ------------------------ ##
1675 ## Autoconf initialization. ##
1676 ## ------------------------ ##
1677
1678 # ac_fn_c_try_compile LINENO
1679 # --------------------------
1680 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_compile ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext
1685 if { { ac_try="$ac_compile"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_compile
1715
1716 # ac_fn_c_try_cpp LINENO
1717 # ----------------------
1718 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_cpp ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_cpp conftest.$ac_ext"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1735 fi
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } > conftest.i && {
1738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1
1747 fi
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_cpp
1752
1753 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1756 # the include files in INCLUDES and setting the cache variable VAR
1757 # accordingly.
1758 ac_fn_c_check_header_mongrel ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if eval \${$3+:} false; then :
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 fi
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 else
1771 # Is the header compilable?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1773 $as_echo_n "checking $2 usability... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 ac_header_compiler=yes
1781 else
1782 ac_header_compiler=no
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1786 $as_echo "$ac_header_compiler" >&6; }
1787
1788 # Is the header present?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1790 $as_echo_n "checking $2 presence... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_cpp "$LINENO"; then :
1796 ac_header_preproc=yes
1797 else
1798 ac_header_preproc=no
1799 fi
1800 rm -f conftest.err conftest.i conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1802 $as_echo "$ac_header_preproc" >&6; }
1803
1804 # So? What about this header?
1805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1806 yes:no: )
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1808 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1811 ;;
1812 no:yes:* )
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1814 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1816 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1818 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1820 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 ( $as_echo "## ------------------------------------ ##
1824 ## Report this to sndfile@mega-nerd.com ##
1825 ## ------------------------------------ ##"
1826 ) | sed "s/^/$as_me: WARNING: /" >&2
1827 ;;
1828 esac
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 eval "$3=\$ac_header_compiler"
1835 fi
1836 eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 fi
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_header_mongrel
1843
1844 # ac_fn_c_try_run LINENO
1845 # ----------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1847 # that executables *can* be run.
1848 ac_fn_c_try_run ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_link"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862 { { case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_try") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; }; }; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: program exited with status $ac_status" >&5
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=$ac_status
1879 fi
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_run
1885
1886 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists and can be compiled using the include files in
1889 # INCLUDES, setting the cache variable VAR accordingly.
1890 ac_fn_c_check_header_compile ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1897 else
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $4
1901 #include <$2>
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 eval "$3=yes"
1905 else
1906 eval "$3=no"
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 fi
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915 } # ac_fn_c_check_header_compile
1916
1917 # ac_fn_cxx_try_compile LINENO
1918 # ----------------------------
1919 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_compile ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext
1924 if { { ac_try="$ac_compile"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_compile") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1937 fi
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest.$ac_objext; then :
1943 ac_retval=0
1944 else
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 ac_retval=1
1949 fi
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1952
1953 } # ac_fn_cxx_try_compile
1954
1955 # ac_fn_c_try_link LINENO
1956 # -----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_c_try_link ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1963 case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1970 ac_status=$?
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1975 fi
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_c_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 test -x conftest$ac_exeext
1983 }; then :
1984 ac_retval=0
1985 else
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990 fi
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
1998
1999 } # ac_fn_c_try_link
2000
2001 # ac_fn_c_check_func LINENO FUNC VAR
2002 # ----------------------------------
2003 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2004 ac_fn_c_check_func ()
2005 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if eval \${$3+:} false; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2016 #define $2 innocuous_$2
2017
2018 /* System header to define __stub macros and hopefully few prototypes,
2019 which can conflict with char $2 (); below.
2020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2021 <limits.h> exists even on freestanding compilers. */
2022
2023 #ifdef __STDC__
2024 # include <limits.h>
2025 #else
2026 # include <assert.h>
2027 #endif
2028
2029 #undef $2
2030
2031 /* Override any GCC internal prototype to avoid an error.
2032 Use char because int might match the return type of a GCC
2033 builtin and then its argument prototype would still apply. */
2034 #ifdef __cplusplus
2035 extern "C"
2036 #endif
2037 char $2 ();
2038 /* The GNU C library defines this for functions which it implements
2039 to always fail with ENOSYS. Some functions are actually named
2040 something starting with __ and the normal name is an alias. */
2041 #if defined __stub_$2 || defined __stub___$2
2042 choke me
2043 #endif
2044
2045 int
2046 main ()
2047 {
2048 return $2 ();
2049 ;
2050 return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_link "$LINENO"; then :
2054 eval "$3=yes"
2055 else
2056 eval "$3=no"
2057 fi
2058 rm -f core conftest.err conftest.$ac_objext \
2059 conftest$ac_exeext conftest.$ac_ext
2060 fi
2061 eval ac_res=\$$3
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065
2066 } # ac_fn_c_check_func
2067
2068 # ac_fn_cxx_try_cpp LINENO
2069 # ------------------------
2070 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2071 ac_fn_cxx_try_cpp ()
2072 {
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if { { ac_try="$ac_cpp conftest.$ac_ext"
2075 case "(($ac_try" in
2076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2077 *) ac_try_echo=$ac_try;;
2078 esac
2079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080 $as_echo "$ac_try_echo"; } >&5
2081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2082 ac_status=$?
2083 if test -s conftest.err; then
2084 grep -v '^ *+' conftest.err >conftest.er1
2085 cat conftest.er1 >&5
2086 mv -f conftest.er1 conftest.err
2087 fi
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; } > conftest.i && {
2090 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2091 test ! -s conftest.err
2092 }; then :
2093 ac_retval=0
2094 else
2095 $as_echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 ac_retval=1
2099 fi
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2102
2103 } # ac_fn_cxx_try_cpp
2104
2105 # ac_fn_cxx_try_link LINENO
2106 # -------------------------
2107 # Try to link conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_cxx_try_link ()
2109 {
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 rm -f conftest.$ac_objext conftest$ac_exeext
2112 if { { ac_try="$ac_link"
2113 case "(($ac_try" in
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2116 esac
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119 (eval "$ac_link") 2>conftest.err
2120 ac_status=$?
2121 if test -s conftest.err; then
2122 grep -v '^ *+' conftest.err >conftest.er1
2123 cat conftest.er1 >&5
2124 mv -f conftest.er1 conftest.err
2125 fi
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && {
2128 test -z "$ac_cxx_werror_flag" ||
2129 test ! -s conftest.err
2130 } && test -s conftest$ac_exeext && {
2131 test "$cross_compiling" = yes ||
2132 test -x conftest$ac_exeext
2133 }; then :
2134 ac_retval=0
2135 else
2136 $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2138
2139 ac_retval=1
2140 fi
2141 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2142 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2143 # interfere with the next link command; also delete a directory that is
2144 # left behind by Apple's compiler. We do this before executing the actions.
2145 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147 as_fn_set_status $ac_retval
2148
2149 } # ac_fn_cxx_try_link
2150
2151 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2152 # ---------------------------------------------
2153 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2154 # accordingly.
2155 ac_fn_c_check_decl ()
2156 {
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 as_decl_name=`echo $2|sed 's/ *(.*//'`
2159 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2161 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2162 if eval \${$3+:} false; then :
2163 $as_echo_n "(cached) " >&6
2164 else
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2167 $4
2168 int
2169 main ()
2170 {
2171 #ifndef $as_decl_name
2172 #ifdef __cplusplus
2173 (void) $as_decl_use;
2174 #else
2175 (void) $as_decl_name;
2176 #endif
2177 #endif
2178
2179 ;
2180 return 0;
2181 }
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184 eval "$3=yes"
2185 else
2186 eval "$3=no"
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 fi
2190 eval ac_res=\$$3
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194
2195 } # ac_fn_c_check_decl
2196
2197 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2198 # --------------------------------------------
2199 # Tries to find the compile-time value of EXPR in a program that includes
2200 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2201 # computed
2202 ac_fn_c_compute_int ()
2203 {
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 if test "$cross_compiling" = yes; then
2206 # Depending upon the size, compute the lo and hi bounds.
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 int
2211 main ()
2212 {
2213 static int test_array [1 - 2 * !(($2) >= 0)];
2214 test_array [0] = 0;
2215 return test_array [0];
2216
2217 ;
2218 return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 ac_lo=0 ac_mid=0
2223 while :; do
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $4
2227 int
2228 main ()
2229 {
2230 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2231 test_array [0] = 0;
2232 return test_array [0];
2233
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 ac_hi=$ac_mid; break
2240 else
2241 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2242 if test $ac_lo -le $ac_mid; then
2243 ac_lo= ac_hi=
2244 break
2245 fi
2246 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2247 fi
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 done
2250 else
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 $4
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) < 0)];
2258 test_array [0] = 0;
2259 return test_array [0];
2260
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 ac_hi=-1 ac_mid=-1
2267 while :; do
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2270 $4
2271 int
2272 main ()
2273 {
2274 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2275 test_array [0] = 0;
2276 return test_array [0];
2277
2278 ;
2279 return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283 ac_lo=$ac_mid; break
2284 else
2285 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2286 if test $ac_mid -le $ac_hi; then
2287 ac_lo= ac_hi=
2288 break
2289 fi
2290 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 done
2294 else
2295 ac_lo= ac_hi=
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 fi
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 # Binary search between lo and hi bounds.
2301 while test "x$ac_lo" != "x$ac_hi"; do
2302 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2305 $4
2306 int
2307 main ()
2308 {
2309 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2310 test_array [0] = 0;
2311 return test_array [0];
2312
2313 ;
2314 return 0;
2315 }
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318 ac_hi=$ac_mid
2319 else
2320 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 done
2324 case $ac_lo in #((
2325 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2326 '') ac_retval=1 ;;
2327 esac
2328 else
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2331 $4
2332 static long int longval () { return $2; }
2333 static unsigned long int ulongval () { return $2; }
2334 #include <stdio.h>
2335 #include <stdlib.h>
2336 int
2337 main ()
2338 {
2339
2340 FILE *f = fopen ("conftest.val", "w");
2341 if (! f)
2342 return 1;
2343 if (($2) < 0)
2344 {
2345 long int i = longval ();
2346 if (i != ($2))
2347 return 1;
2348 fprintf (f, "%ld", i);
2349 }
2350 else
2351 {
2352 unsigned long int i = ulongval ();
2353 if (i != ($2))
2354 return 1;
2355 fprintf (f, "%lu", i);
2356 }
2357 /* Do not output a trailing newline, as this causes \r\n confusion
2358 on some platforms. */
2359 return ferror (f) || fclose (f) != 0;
2360
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 if ac_fn_c_try_run "$LINENO"; then :
2366 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2367 else
2368 ac_retval=1
2369 fi
2370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2371 conftest.$ac_objext conftest.beam conftest.$ac_ext
2372 rm -f conftest.val
2373
2374 fi
2375 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2376 as_fn_set_status $ac_retval
2377
2378 } # ac_fn_c_compute_int
2379
2380 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2381 # -------------------------------------------
2382 # Tests whether TYPE exists after having included INCLUDES, setting cache
2383 # variable VAR accordingly.
2384 ac_fn_c_check_type ()
2385 {
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2388 $as_echo_n "checking for $2... " >&6; }
2389 if eval \${$3+:} false; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 eval "$3=no"
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395 $4
2396 int
2397 main ()
2398 {
2399 if (sizeof ($2))
2400 return 0;
2401 ;
2402 return 0;
2403 }
2404 _ACEOF
2405 if ac_fn_c_try_compile "$LINENO"; then :
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2408 $4
2409 int
2410 main ()
2411 {
2412 if (sizeof (($2)))
2413 return 0;
2414 ;
2415 return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419
2420 else
2421 eval "$3=yes"
2422 fi
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 fi
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 fi
2427 eval ac_res=\$$3
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2431
2432 } # ac_fn_c_check_type
2433 cat >config.log <<_ACEOF
2434 This file contains any messages produced by compilers while
2435 running configure, to aid debugging if configure makes a mistake.
2436
2437 It was created by libsndfile $as_me 1.0.27, which was
2438 generated by GNU Autoconf 2.69. Invocation command line was
2439
2440 $ $0 $@
2441
2442 _ACEOF
2443 exec 5>>config.log
2444 {
2445 cat <<_ASUNAME
2446 ## --------- ##
2447 ## Platform. ##
2448 ## --------- ##
2449
2450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2455
2456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2457 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2458
2459 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2460 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2462 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2463 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2464 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2465 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2466
2467 _ASUNAME
2468
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 $as_echo "PATH: $as_dir"
2475 done
2476 IFS=$as_save_IFS
2477
2478 } >&5
2479
2480 cat >&5 <<_ACEOF
2481
2482
2483 ## ----------- ##
2484 ## Core tests. ##
2485 ## ----------- ##
2486
2487 _ACEOF
2488
2489
2490 # Keep a trace of the command line.
2491 # Strip out --no-create and --no-recursion so they do not pile up.
2492 # Strip out --silent because we don't want to record it for future runs.
2493 # Also quote any args containing shell meta-characters.
2494 # Make two passes to allow for proper duplicate-argument suppression.
2495 ac_configure_args=
2496 ac_configure_args0=
2497 ac_configure_args1=
2498 ac_must_keep_next=false
2499 for ac_pass in 1 2
2500 do
2501 for ac_arg
2502 do
2503 case $ac_arg in
2504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2506 | -silent | --silent | --silen | --sile | --sil)
2507 continue ;;
2508 *\'*)
2509 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2510 esac
2511 case $ac_pass in
2512 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2513 2)
2514 as_fn_append ac_configure_args1 " '$ac_arg'"
2515 if test $ac_must_keep_next = true; then
2516 ac_must_keep_next=false # Got value, back to normal.
2517 else
2518 case $ac_arg in
2519 *=* | --config-cache | -C | -disable-* | --disable-* \
2520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2522 | -with-* | --with-* | -without-* | --without-* | --x)
2523 case "$ac_configure_args0 " in
2524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2525 esac
2526 ;;
2527 -* ) ac_must_keep_next=true ;;
2528 esac
2529 fi
2530 as_fn_append ac_configure_args " '$ac_arg'"
2531 ;;
2532 esac
2533 done
2534 done
2535 { ac_configure_args0=; unset ac_configure_args0;}
2536 { ac_configure_args1=; unset ac_configure_args1;}
2537
2538 # When interrupted or exit'd, cleanup temporary files, and complete
2539 # config.log. We remove comments because anyway the quotes in there
2540 # would cause problems or look ugly.
2541 # WARNING: Use '\'' to represent an apostrophe within the trap.
2542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2543 trap 'exit_status=$?
2544 # Save into config.log some information that might help in debugging.
2545 {
2546 echo
2547
2548 $as_echo "## ---------------- ##
2549 ## Cache variables. ##
2550 ## ---------------- ##"
2551 echo
2552 # The following way of writing the cache mishandles newlines in values,
2553 (
2554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2555 eval ac_val=\$$ac_var
2556 case $ac_val in #(
2557 *${as_nl}*)
2558 case $ac_var in #(
2559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2561 esac
2562 case $ac_var in #(
2563 _ | IFS | as_nl) ;; #(
2564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2565 *) { eval $ac_var=; unset $ac_var;} ;;
2566 esac ;;
2567 esac
2568 done
2569 (set) 2>&1 |
2570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2571 *${as_nl}ac_space=\ *)
2572 sed -n \
2573 "s/'\''/'\''\\\\'\'''\''/g;
2574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2575 ;; #(
2576 *)
2577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2578 ;;
2579 esac |
2580 sort
2581 )
2582 echo
2583
2584 $as_echo "## ----------------- ##
2585 ## Output variables. ##
2586 ## ----------------- ##"
2587 echo
2588 for ac_var in $ac_subst_vars
2589 do
2590 eval ac_val=\$$ac_var
2591 case $ac_val in
2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2593 esac
2594 $as_echo "$ac_var='\''$ac_val'\''"
2595 done | sort
2596 echo
2597
2598 if test -n "$ac_subst_files"; then
2599 $as_echo "## ------------------- ##
2600 ## File substitutions. ##
2601 ## ------------------- ##"
2602 echo
2603 for ac_var in $ac_subst_files
2604 do
2605 eval ac_val=\$$ac_var
2606 case $ac_val in
2607 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2608 esac
2609 $as_echo "$ac_var='\''$ac_val'\''"
2610 done | sort
2611 echo
2612 fi
2613
2614 if test -s confdefs.h; then
2615 $as_echo "## ----------- ##
2616 ## confdefs.h. ##
2617 ## ----------- ##"
2618 echo
2619 cat confdefs.h
2620 echo
2621 fi
2622 test "$ac_signal" != 0 &&
2623 $as_echo "$as_me: caught signal $ac_signal"
2624 $as_echo "$as_me: exit $exit_status"
2625 } >&5
2626 rm -f core *.core core.conftest.* &&
2627 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2628 exit $exit_status
2629 ' 0
2630 for ac_signal in 1 2 13 15; do
2631 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2632 done
2633 ac_signal=0
2634
2635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2636 rm -f -r conftest* confdefs.h
2637
2638 $as_echo "/* confdefs.h */" > confdefs.h
2639
2640 # Predefined preprocessor variables.
2641
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_NAME "$PACKAGE_NAME"
2644 _ACEOF
2645
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2648 _ACEOF
2649
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2652 _ACEOF
2653
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_STRING "$PACKAGE_STRING"
2656 _ACEOF
2657
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2660 _ACEOF
2661
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_URL "$PACKAGE_URL"
2664 _ACEOF
2665
2666
2667 # Let the site file select an alternate cache file if it wants to.
2668 # Prefer an explicitly selected file to automatically selected ones.
2669 ac_site_file1=NONE
2670 ac_site_file2=NONE
2671 if test -n "$CONFIG_SITE"; then
2672 # We do not want a PATH search for config.site.
2673 case $CONFIG_SITE in #((
2674 -*) ac_site_file1=./$CONFIG_SITE;;
2675 */*) ac_site_file1=$CONFIG_SITE;;
2676 *) ac_site_file1=./$CONFIG_SITE;;
2677 esac
2678 elif test "x$prefix" != xNONE; then
2679 ac_site_file1=$prefix/share/config.site
2680 ac_site_file2=$prefix/etc/config.site
2681 else
2682 ac_site_file1=$ac_default_prefix/share/config.site
2683 ac_site_file2=$ac_default_prefix/etc/config.site
2684 fi
2685 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2686 do
2687 test "x$ac_site_file" = xNONE && continue
2688 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2690 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2691 sed 's/^/| /' "$ac_site_file" >&5
2692 . "$ac_site_file" \
2693 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 as_fn_error $? "failed to load site script $ac_site_file
2696 See \`config.log' for more details" "$LINENO" 5; }
2697 fi
2698 done
2699
2700 if test -r "$cache_file"; then
2701 # Some versions of bash will fail to source /dev/null (special files
2702 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2703 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2705 $as_echo "$as_me: loading cache $cache_file" >&6;}
2706 case $cache_file in
2707 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2708 *) . "./$cache_file";;
2709 esac
2710 fi
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2713 $as_echo "$as_me: creating cache $cache_file" >&6;}
2714 >$cache_file
2715 fi
2716
2717 # Check that the precious variables saved in the cache have kept the same
2718 # value.
2719 ac_cache_corrupted=false
2720 for ac_var in $ac_precious_vars; do
2721 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2722 eval ac_new_set=\$ac_env_${ac_var}_set
2723 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2724 eval ac_new_val=\$ac_env_${ac_var}_value
2725 case $ac_old_set,$ac_new_set in
2726 set,)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2728 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2729 ac_cache_corrupted=: ;;
2730 ,set)
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2732 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2733 ac_cache_corrupted=: ;;
2734 ,);;
2735 *)
2736 if test "x$ac_old_val" != "x$ac_new_val"; then
2737 # differences in whitespace do not lead to failure.
2738 ac_old_val_w=`echo x $ac_old_val`
2739 ac_new_val_w=`echo x $ac_new_val`
2740 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2742 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2743 ac_cache_corrupted=:
2744 else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2746 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2747 eval $ac_var=\$ac_old_val
2748 fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2750 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2752 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2753 fi;;
2754 esac
2755 # Pass precious variables to config.status.
2756 if test "$ac_new_set" = set; then
2757 case $ac_new_val in
2758 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2759 *) ac_arg=$ac_var=$ac_new_val ;;
2760 esac
2761 case " $ac_configure_args " in
2762 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2763 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2764 esac
2765 fi
2766 done
2767 if $ac_cache_corrupted; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2771 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2772 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2773 fi
2774 ## -------------------- ##
2775 ## Main body of script. ##
2776 ## -------------------- ##
2777
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783
2784
2785
2786 # Put config stuff in Cfg.
2787 ac_aux_dir=
2788 for ac_dir in Cfg "$srcdir"/Cfg; do
2789 if test -f "$ac_dir/install-sh"; then
2790 ac_aux_dir=$ac_dir
2791 ac_install_sh="$ac_aux_dir/install-sh -c"
2792 break
2793 elif test -f "$ac_dir/install.sh"; then
2794 ac_aux_dir=$ac_dir
2795 ac_install_sh="$ac_aux_dir/install.sh -c"
2796 break
2797 elif test -f "$ac_dir/shtool"; then
2798 ac_aux_dir=$ac_dir
2799 ac_install_sh="$ac_aux_dir/shtool install -c"
2800 break
2801 fi
2802 done
2803 if test -z "$ac_aux_dir"; then
2804 as_fn_error $? "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5
2805 fi
2806
2807 # These three variables are undocumented and unsupported,
2808 # and are intended to be withdrawn in a future Autoconf release.
2809 # They can cause serious problems if a builder's source tree is in a directory
2810 # whose full name contains unusual characters.
2811 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2812 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2813 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2814
2815
2816
2817
2818
2819 # Make sure we can run config.sub.
2820 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2821 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2822
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2824 $as_echo_n "checking build system type... " >&6; }
2825 if ${ac_cv_build+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 ac_build_alias=$build_alias
2829 test "x$ac_build_alias" = x &&
2830 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2831 test "x$ac_build_alias" = x &&
2832 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2833 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2834 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2835
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2838 $as_echo "$ac_cv_build" >&6; }
2839 case $ac_cv_build in
2840 *-*-*) ;;
2841 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2842 esac
2843 build=$ac_cv_build
2844 ac_save_IFS=$IFS; IFS='-'
2845 set x $ac_cv_build
2846 shift
2847 build_cpu=$1
2848 build_vendor=$2
2849 shift; shift
2850 # Remember, the first character of IFS is used to create $*,
2851 # except with old shells:
2852 build_os=$*
2853 IFS=$ac_save_IFS
2854 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2855
2856
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2858 $as_echo_n "checking host system type... " >&6; }
2859 if ${ac_cv_host+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test "x$host_alias" = x; then
2863 ac_cv_host=$ac_cv_build
2864 else
2865 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2866 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2867 fi
2868
2869 fi
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2871 $as_echo "$ac_cv_host" >&6; }
2872 case $ac_cv_host in
2873 *-*-*) ;;
2874 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2875 esac
2876 host=$ac_cv_host
2877 ac_save_IFS=$IFS; IFS='-'
2878 set x $ac_cv_host
2879 shift
2880 host_cpu=$1
2881 host_vendor=$2
2882 shift; shift
2883 # Remember, the first character of IFS is used to create $*,
2884 # except with old shells:
2885 host_os=$*
2886 IFS=$ac_save_IFS
2887 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2888
2889
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2891 $as_echo_n "checking target system type... " >&6; }
2892 if ${ac_cv_target+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test "x$target_alias" = x; then
2896 ac_cv_target=$ac_cv_host
2897 else
2898 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2899 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2900 fi
2901
2902 fi
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2904 $as_echo "$ac_cv_target" >&6; }
2905 case $ac_cv_target in
2906 *-*-*) ;;
2907 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2908 esac
2909 target=$ac_cv_target
2910 ac_save_IFS=$IFS; IFS='-'
2911 set x $ac_cv_target
2912 shift
2913 target_cpu=$1
2914 target_vendor=$2
2915 shift; shift
2916 # Remember, the first character of IFS is used to create $*,
2917 # except with old shells:
2918 target_os=$*
2919 IFS=$ac_save_IFS
2920 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2921
2922
2923 # The aliases save the names the user supplied, while $host etc.
2924 # will get canonicalized.
2925 test -n "$target_alias" &&
2926 test "$program_prefix$program_suffix$program_transform_name" = \
2927 NONENONEs,x,x, &&
2928 program_prefix=${target_alias}-
2929
2930 ac_config_headers="$ac_config_headers src/config.h"
2931
2932
2933 am__api_version='1.15'
2934
2935 # Find a good install program. We prefer a C program (faster),
2936 # so one script is as good as another. But avoid the broken or
2937 # incompatible versions:
2938 # SysV /etc/install, /usr/sbin/install
2939 # SunOS /usr/etc/install
2940 # IRIX /sbin/install
2941 # AIX /bin/install
2942 # AmigaOS /C/install, which installs bootblocks on floppy discs
2943 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2944 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2945 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2946 # OS/2's system install, which has a completely different semantic
2947 # ./install, which can be erroneously created by make from ./install.sh.
2948 # Reject install programs that cannot install multiple files.
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2950 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2951 if test -z "$INSTALL"; then
2952 if ${ac_cv_path_install+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 # Account for people who put trailing slashes in PATH elements.
2961 case $as_dir/ in #((
2962 ./ | .// | /[cC]/* | \
2963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2964 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2965 /usr/ucb/* ) ;;
2966 *)
2967 # OSF1 and SCO ODT 3.0 have their own names for install.
2968 # Don't use installbsd from OSF since it installs stuff as root
2969 # by default.
2970 for ac_prog in ginstall scoinst install; do
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2973 if test $ac_prog = install &&
2974 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2975 # AIX install. It has an incompatible calling convention.
2976 :
2977 elif test $ac_prog = install &&
2978 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2979 # program-specific install script used by HP pwplus--don't use.
2980 :
2981 else
2982 rm -rf conftest.one conftest.two conftest.dir
2983 echo one > conftest.one
2984 echo two > conftest.two
2985 mkdir conftest.dir
2986 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2987 test -s conftest.one && test -s conftest.two &&
2988 test -s conftest.dir/conftest.one &&
2989 test -s conftest.dir/conftest.two
2990 then
2991 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2992 break 3
2993 fi
2994 fi
2995 fi
2996 done
2997 done
2998 ;;
2999 esac
3000
3001 done
3002 IFS=$as_save_IFS
3003
3004 rm -rf conftest.one conftest.two conftest.dir
3005
3006 fi
3007 if test "${ac_cv_path_install+set}" = set; then
3008 INSTALL=$ac_cv_path_install
3009 else
3010 # As a last resort, use the slow shell script. Don't cache a
3011 # value for INSTALL within a source directory, because that will
3012 # break other packages using the cache if that directory is
3013 # removed, or if the value is a relative name.
3014 INSTALL=$ac_install_sh
3015 fi
3016 fi
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3018 $as_echo "$INSTALL" >&6; }
3019
3020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3021 # It thinks the first close brace ends the variable substitution.
3022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3023
3024 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3025
3026 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3027
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3029 $as_echo_n "checking whether build environment is sane... " >&6; }
3030 # Reject unsafe characters in $srcdir or the absolute working directory
3031 # name. Accept space and tab only in the latter.
3032 am_lf='
3033 '
3034 case `pwd` in
3035 *[\\\"\#\$\&\'\`$am_lf]*)
3036 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3037 esac
3038 case $srcdir in
3039 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3040 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3041 esac
3042
3043 # Do 'set' in a subshell so we don't clobber the current shell's
3044 # arguments. Must try -L first in case configure is actually a
3045 # symlink; some systems play weird games with the mod time of symlinks
3046 # (eg FreeBSD returns the mod time of the symlink's containing
3047 # directory).
3048 if (
3049 am_has_slept=no
3050 for am_try in 1 2; do
3051 echo "timestamp, slept: $am_has_slept" > conftest.file
3052 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3053 if test "$*" = "X"; then
3054 # -L didn't work.
3055 set X `ls -t "$srcdir/configure" conftest.file`
3056 fi
3057 if test "$*" != "X $srcdir/configure conftest.file" \
3058 && test "$*" != "X conftest.file $srcdir/configure"; then
3059
3060 # If neither matched, then we have a broken ls. This can happen
3061 # if, for instance, CONFIG_SHELL is bash and it inherits a
3062 # broken ls alias from the environment. This has actually
3063 # happened. Such a system could not be considered "sane".
3064 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3065 alias in your environment" "$LINENO" 5
3066 fi
3067 if test "$2" = conftest.file || test $am_try -eq 2; then
3068 break
3069 fi
3070 # Just in case.
3071 sleep 1
3072 am_has_slept=yes
3073 done
3074 test "$2" = conftest.file
3075 )
3076 then
3077 # Ok.
3078 :
3079 else
3080 as_fn_error $? "newly created file is older than distributed files!
3081 Check your system clock" "$LINENO" 5
3082 fi
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3085 # If we didn't sleep, we still need to ensure time stamps of config.status and
3086 # generated files are strictly newer.
3087 am_sleep_pid=
3088 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3089 ( sleep 1 ) &
3090 am_sleep_pid=$!
3091 fi
3092
3093 rm -f conftest.file
3094
3095 test "$program_prefix" != NONE &&
3096 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3097 # Use a double $ so make ignores it.
3098 test "$program_suffix" != NONE &&
3099 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3100 # Double any \ or $.
3101 # By default was `s,x,x', remove it if useless.
3102 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3103 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3104
3105 # Expand $ac_aux_dir to an absolute path.
3106 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3107
3108 if test x"${MISSING+set}" != xset; then
3109 case $am_aux_dir in
3110 *\ * | *\ *)
3111 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3112 *)
3113 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3114 esac
3115 fi
3116 # Use eval to expand $SHELL
3117 if eval "$MISSING --is-lightweight"; then
3118 am_missing_run="$MISSING "
3119 else
3120 am_missing_run=
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3122 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3123 fi
3124
3125 if test x"${install_sh+set}" != xset; then
3126 case $am_aux_dir in
3127 *\ * | *\ *)
3128 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3129 *)
3130 install_sh="\${SHELL} $am_aux_dir/install-sh"
3131 esac
3132 fi
3133
3134 # Installed binaries are usually stripped using 'strip' when the user
3135 # run "make install-strip". However 'strip' might not be the right
3136 # tool to use in cross-compilation environments, therefore Automake
3137 # will honor the 'STRIP' environment variable to overrule this program.
3138 if test "$cross_compiling" != no; then
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}strip; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_STRIP+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$STRIP"; then
3148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 STRIP=$ac_cv_prog_STRIP
3168 if test -n "$STRIP"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3170 $as_echo "$STRIP" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176
3177 fi
3178 if test -z "$ac_cv_prog_STRIP"; then
3179 ac_ct_STRIP=$STRIP
3180 # Extract the first word of "strip", so it can be a program name with args.
3181 set dummy strip; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$ac_ct_STRIP"; then
3188 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_ac_ct_STRIP="strip"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3208 if test -n "$ac_ct_STRIP"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3210 $as_echo "$ac_ct_STRIP" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216 if test "x$ac_ct_STRIP" = x; then
3217 STRIP=":"
3218 else
3219 case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225 STRIP=$ac_ct_STRIP
3226 fi
3227 else
3228 STRIP="$ac_cv_prog_STRIP"
3229 fi
3230
3231 fi
3232 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3233
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3235 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3236 if test -z "$MKDIR_P"; then
3237 if ${ac_cv_path_mkdir+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3242 do
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_prog in mkdir gmkdir; do
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3248 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3249 'mkdir (GNU coreutils) '* | \
3250 'mkdir (coreutils) '* | \
3251 'mkdir (fileutils) '4.1*)
3252 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3253 break 3;;
3254 esac
3255 done
3256 done
3257 done
3258 IFS=$as_save_IFS
3259
3260 fi
3261
3262 test -d ./--version && rmdir ./--version
3263 if test "${ac_cv_path_mkdir+set}" = set; then
3264 MKDIR_P="$ac_cv_path_mkdir -p"
3265 else
3266 # As a last resort, use the slow shell script. Don't cache a
3267 # value for MKDIR_P within a source directory, because that will
3268 # break other packages using the cache if that directory is
3269 # removed, or if the value is a relative name.
3270 MKDIR_P="$ac_install_sh -d"
3271 fi
3272 fi
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3274 $as_echo "$MKDIR_P" >&6; }
3275
3276 for ac_prog in gawk mawk nawk awk
3277 do
3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_AWK+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$AWK"; then
3286 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_AWK="$ac_prog"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 AWK=$ac_cv_prog_AWK
3306 if test -n "$AWK"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3308 $as_echo "$AWK" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 test -n "$AWK" && break
3316 done
3317
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3319 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3320 set x ${MAKE-make}
3321 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3322 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 cat >conftest.make <<\_ACEOF
3326 SHELL = /bin/sh
3327 all:
3328 @echo '@@@%%%=$(MAKE)=@@@%%%'
3329 _ACEOF
3330 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3331 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3332 *@@@%%%=?*=@@@%%%*)
3333 eval ac_cv_prog_make_${ac_make}_set=yes;;
3334 *)
3335 eval ac_cv_prog_make_${ac_make}_set=no;;
3336 esac
3337 rm -f conftest.make
3338 fi
3339 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3342 SET_MAKE=
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 SET_MAKE="MAKE=${MAKE-make}"
3347 fi
3348
3349 rm -rf .tst 2>/dev/null
3350 mkdir .tst 2>/dev/null
3351 if test -d .tst; then
3352 am__leading_dot=.
3353 else
3354 am__leading_dot=_
3355 fi
3356 rmdir .tst 2>/dev/null
3357
3358 # Check whether --enable-silent-rules was given.
3359 if test "${enable_silent_rules+set}" = set; then :
3360 enableval=$enable_silent_rules;
3361 fi
3362
3363 case $enable_silent_rules in # (((
3364 yes) AM_DEFAULT_VERBOSITY=0;;
3365 no) AM_DEFAULT_VERBOSITY=1;;
3366 *) AM_DEFAULT_VERBOSITY=1;;
3367 esac
3368 am_make=${MAKE-make}
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3370 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3371 if ${am_cv_make_support_nested_variables+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if $as_echo 'TRUE=$(BAR$(V))
3375 BAR0=false
3376 BAR1=true
3377 V=1
3378 am__doit:
3379 @$(TRUE)
3380 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3381 am_cv_make_support_nested_variables=yes
3382 else
3383 am_cv_make_support_nested_variables=no
3384 fi
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3387 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3388 if test $am_cv_make_support_nested_variables = yes; then
3389 AM_V='$(V)'
3390 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3391 else
3392 AM_V=$AM_DEFAULT_VERBOSITY
3393 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3394 fi
3395 AM_BACKSLASH='\'
3396
3397 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3398 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3399 # is not polluted with repeated "-I."
3400 am__isrc=' -I$(srcdir)'
3401 # test to see if srcdir already configured
3402 if test -f $srcdir/config.status; then
3403 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3404 fi
3405 fi
3406
3407 # test whether we have cygpath
3408 if test -z "$CYGPATH_W"; then
3409 if (cygpath --version) >/dev/null 2>/dev/null; then
3410 CYGPATH_W='cygpath -w'
3411 else
3412 CYGPATH_W=echo
3413 fi
3414 fi
3415
3416
3417 # Define the identity of the package.
3418 PACKAGE='libsndfile'
3419 VERSION='1.0.27'
3420
3421
3422 cat >>confdefs.h <<_ACEOF
3423 #define PACKAGE "$PACKAGE"
3424 _ACEOF
3425
3426
3427 cat >>confdefs.h <<_ACEOF
3428 #define VERSION "$VERSION"
3429 _ACEOF
3430
3431 # Some tools Automake needs.
3432
3433 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3434
3435
3436 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3437
3438
3439 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3440
3441
3442 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3443
3444
3445 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3446
3447 # For better backward compatibility. To be removed once Automake 1.9.x
3448 # dies out for good. For more background, see:
3449 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3450 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3451 mkdir_p='$(MKDIR_P)'
3452
3453 # We need awk for the "check" target (and possibly the TAP driver). The
3454 # system "awk" is bad on some platforms.
3455 # Always define AMTAR for backward compatibility. Yes, it's still used
3456 # in the wild :-( We should find a proper way to deprecate it ...
3457 AMTAR='$${TAR-tar}'
3458
3459
3460 # We'll loop over all known methods to create a tar archive until one works.
3461 _am_tools='gnutar pax cpio none'
3462
3463 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3464
3465
3466
3467
3468
3469
3470 # POSIX will say in a future version that running "rm -f" with no argument
3471 # is OK; and we want to be able to make that assumption in our Makefile
3472 # recipes. So use an aggressive probe to check that the usage we want is
3473 # actually supported "in the wild" to an acceptable degree.
3474 # See automake bug#10828.
3475 # To make any issue more visible, cause the running configure to be aborted
3476 # by default if the 'rm' program in use doesn't match our expectations; the
3477 # user can still override this though.
3478 if rm -f && rm -fr && rm -rf; then : OK; else
3479 cat >&2 <<'END'
3480 Oops!
3481
3482 Your 'rm' program seems unable to run without file operands specified
3483 on the command line, even when the '-f' option is present. This is contrary
3484 to the behaviour of most rm programs out there, and not conforming with
3485 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3486
3487 Please tell bug-automake@gnu.org about your system, including the value
3488 of your $PATH and any error possibly output before this message. This
3489 can help us improve future automake versions.
3490
3491 END
3492 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3493 echo 'Configuration will proceed anyway, since you have set the' >&2
3494 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3495 echo >&2
3496 else
3497 cat >&2 <<'END'
3498 Aborting the configuration process, to ensure you take notice of the issue.
3499
3500 You can download and install GNU coreutils to get an 'rm' implementation
3501 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3502
3503 If you want to complete the configuration process using your problematic
3504 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3505 to "yes", and re-run configure.
3506
3507 END
3508 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3509 fi
3510 fi
3511
3512 # Check whether --enable-silent-rules was given.
3513 if test "${enable_silent_rules+set}" = set; then :
3514 enableval=$enable_silent_rules;
3515 fi
3516
3517 case $enable_silent_rules in # (((
3518 yes) AM_DEFAULT_VERBOSITY=0;;
3519 no) AM_DEFAULT_VERBOSITY=1;;
3520 *) AM_DEFAULT_VERBOSITY=0;;
3521 esac
3522 am_make=${MAKE-make}
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3524 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3525 if ${am_cv_make_support_nested_variables+:} false; then :
3526 $as_echo_n "(cached) " >&6
3527 else
3528 if $as_echo 'TRUE=$(BAR$(V))
3529 BAR0=false
3530 BAR1=true
3531 V=1
3532 am__doit:
3533 @$(TRUE)
3534 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3535 am_cv_make_support_nested_variables=yes
3536 else
3537 am_cv_make_support_nested_variables=no
3538 fi
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3541 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3542 if test $am_cv_make_support_nested_variables = yes; then
3543 AM_V='$(V)'
3544 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3545 else
3546 AM_V=$AM_DEFAULT_VERBOSITY
3547 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3548 fi
3549 AM_BACKSLASH='\'
3550
3551
3552 ac_ext=c
3553 ac_cpp='$CPP $CPPFLAGS'
3554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557
3558
3559 DEPDIR="${am__leading_dot}deps"
3560
3561 ac_config_commands="$ac_config_commands depfiles"
3562
3563
3564 am_make=${MAKE-make}
3565 cat > confinc << 'END'
3566 am__doit:
3567 @echo this is the am__doit target
3568 .PHONY: am__doit
3569 END
3570 # If we don't find an include directive, just comment out the code.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3572 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3573 am__include="#"
3574 am__quote=
3575 _am_result=none
3576 # First try GNU make style include.
3577 echo "include confinc" > confmf
3578 # Ignore all kinds of additional output from 'make'.
3579 case `$am_make -s -f confmf 2> /dev/null` in #(
3580 *the\ am__doit\ target*)
3581 am__include=include
3582 am__quote=
3583 _am_result=GNU
3584 ;;
3585 esac
3586 # Now try BSD make style include.
3587 if test "$am__include" = "#"; then
3588 echo '.include "confinc"' > confmf
3589 case `$am_make -s -f confmf 2> /dev/null` in #(
3590 *the\ am__doit\ target*)
3591 am__include=.include
3592 am__quote="\""
3593 _am_result=BSD
3594 ;;
3595 esac
3596 fi
3597
3598
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3600 $as_echo "$_am_result" >&6; }
3601 rm -f confinc confmf
3602
3603 # Check whether --enable-dependency-tracking was given.
3604 if test "${enable_dependency_tracking+set}" = set; then :
3605 enableval=$enable_dependency_tracking;
3606 fi
3607
3608 if test "x$enable_dependency_tracking" != xno; then
3609 am_depcomp="$ac_aux_dir/depcomp"
3610 AMDEPBACKSLASH='\'
3611 am__nodep='_no'
3612 fi
3613 if test "x$enable_dependency_tracking" != xno; then
3614 AMDEP_TRUE=
3615 AMDEP_FALSE='#'
3616 else
3617 AMDEP_TRUE='#'
3618 AMDEP_FALSE=
3619 fi
3620
3621
3622 ac_ext=c
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if ${ac_cv_prog_CC+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649 done
3650 done
3651 IFS=$as_save_IFS
3652
3653 fi
3654 fi
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662 fi
3663
3664
3665 fi
3666 if test -z "$ac_cv_prog_CC"; then
3667 ac_ct_CC=$CC
3668 # Extract the first word of "gcc", so it can be a program name with args.
3669 set dummy gcc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$ac_ct_CC"; then
3676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_ac_ct_CC="gcc"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3688 fi
3689 done
3690 done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3696 if test -n "$ac_ct_CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3698 $as_echo "$ac_ct_CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 fi
3703
3704 if test "x$ac_ct_CC" = x; then
3705 CC=""
3706 else
3707 case $cross_compiling:$ac_tool_warned in
3708 yes:)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3711 ac_tool_warned=yes ;;
3712 esac
3713 CC=$ac_ct_CC
3714 fi
3715 else
3716 CC="$ac_cv_prog_CC"
3717 fi
3718
3719 if test -z "$CC"; then
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}cc; ac_word=$2
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if ${ac_cv_prog_CC+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if test -n "$CC"; then
3729 ac_cv_prog_CC="$CC" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_CC="${ac_tool_prefix}cc"
3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3741 fi
3742 done
3743 done
3744 IFS=$as_save_IFS
3745
3746 fi
3747 fi
3748 CC=$ac_cv_prog_CC
3749 if test -n "$CC"; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3751 $as_echo "$CC" >&6; }
3752 else
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3754 $as_echo "no" >&6; }
3755 fi
3756
3757
3758 fi
3759 fi
3760 if test -z "$CC"; then
3761 # Extract the first word of "cc", so it can be a program name with args.
3762 set dummy cc; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_CC+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 else
3771 ac_prog_rejected=no
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3780 ac_prog_rejected=yes
3781 continue
3782 fi
3783 ac_cv_prog_CC="cc"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3786 fi
3787 done
3788 done
3789 IFS=$as_save_IFS
3790
3791 if test $ac_prog_rejected = yes; then
3792 # We found a bogon in the path, so make sure we never use it.
3793 set dummy $ac_cv_prog_CC
3794 shift
3795 if test $# != 0; then
3796 # We chose a different compiler from the bogus one.
3797 # However, it has the same basename, so the bogon will be chosen
3798 # first if we set CC to just the basename; use the full file name.
3799 shift
3800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3801 fi
3802 fi
3803 fi
3804 fi
3805 CC=$ac_cv_prog_CC
3806 if test -n "$CC"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808 $as_echo "$CC" >&6; }
3809 else
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 fi
3813
3814
3815 fi
3816 if test -z "$CC"; then
3817 if test -n "$ac_tool_prefix"; then
3818 for ac_prog in cl.exe
3819 do
3820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if ${ac_cv_prog_CC+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 if test -n "$CC"; then
3828 ac_cv_prog_CC="$CC" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
3840 fi
3841 done
3842 done
3843 IFS=$as_save_IFS
3844
3845 fi
3846 fi
3847 CC=$ac_cv_prog_CC
3848 if test -n "$CC"; then
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3850 $as_echo "$CC" >&6; }
3851 else
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 $as_echo "no" >&6; }
3854 fi
3855
3856
3857 test -n "$CC" && break
3858 done
3859 fi
3860 if test -z "$CC"; then
3861 ac_ct_CC=$CC
3862 for ac_prog in cl.exe
3863 do
3864 # Extract the first word of "$ac_prog", so it can be a program name with args.
3865 set dummy $ac_prog; ac_word=$2
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 if test -n "$ac_ct_CC"; then
3872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_prog_ac_ct_CC="$ac_prog"
3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885 done
3886 done
3887 IFS=$as_save_IFS
3888
3889 fi
3890 fi
3891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3892 if test -n "$ac_ct_CC"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3894 $as_echo "$ac_ct_CC" >&6; }
3895 else
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
3898 fi
3899
3900
3901 test -n "$ac_ct_CC" && break
3902 done
3903
3904 if test "x$ac_ct_CC" = x; then
3905 CC=""
3906 else
3907 case $cross_compiling:$ac_tool_warned in
3908 yes:)
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3911 ac_tool_warned=yes ;;
3912 esac
3913 CC=$ac_ct_CC
3914 fi
3915 fi
3916
3917 fi
3918
3919
3920 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error $? "no acceptable C compiler found in \$PATH
3923 See \`config.log' for more details" "$LINENO" 5; }
3924
3925 # Provide some information about the compiler.
3926 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3927 set X $ac_compile
3928 ac_compiler=$2
3929 for ac_option in --version -v -V -qversion; do
3930 { { ac_try="$ac_compiler $ac_option >&5"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3938 ac_status=$?
3939 if test -s conftest.err; then
3940 sed '10a\
3941 ... rest of stderr output deleted ...
3942 10q' conftest.err >conftest.er1
3943 cat conftest.er1 >&5
3944 fi
3945 rm -f conftest.er1 conftest.err
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }
3948 done
3949
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952
3953 int
3954 main ()
3955 {
3956
3957 ;
3958 return 0;
3959 }
3960 _ACEOF
3961 ac_clean_files_save=$ac_clean_files
3962 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3963 # Try to create an executable without -o first, disregard a.out.
3964 # It will help us diagnose broken compilers, and finding out an intuition
3965 # of exeext.
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3967 $as_echo_n "checking whether the C compiler works... " >&6; }
3968 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3969
3970 # The possible output files:
3971 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3972
3973 ac_rmfiles=
3974 for ac_file in $ac_files
3975 do
3976 case $ac_file in
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3979 esac
3980 done
3981 rm -f $ac_rmfiles
3982
3983 if { { ac_try="$ac_link_default"
3984 case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987 esac
3988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3989 $as_echo "$ac_try_echo"; } >&5
3990 (eval "$ac_link_default") 2>&5
3991 ac_status=$?
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }; then :
3994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3995 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3996 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3997 # so that the user can short-circuit this test for compilers unknown to
3998 # Autoconf.
3999 for ac_file in $ac_files ''
4000 do
4001 test -f "$ac_file" || continue
4002 case $ac_file in
4003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4004 ;;
4005 [ab].out )
4006 # We found the default executable, but exeext='' is most
4007 # certainly right.
4008 break;;
4009 *.* )
4010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4011 then :; else
4012 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4013 fi
4014 # We set ac_cv_exeext here because the later test for it is not
4015 # safe: cross compilers may not add the suffix if given an `-o'
4016 # argument, so we may need to know it at that point already.
4017 # Even if this section looks crufty: it has the advantage of
4018 # actually working.
4019 break;;
4020 * )
4021 break;;
4022 esac
4023 done
4024 test "$ac_cv_exeext" = no && ac_cv_exeext=
4025
4026 else
4027 ac_file=''
4028 fi
4029 if test -z "$ac_file"; then :
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4032 $as_echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error 77 "C compiler cannot create executables
4038 See \`config.log' for more details" "$LINENO" 5; }
4039 else
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4041 $as_echo "yes" >&6; }
4042 fi
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4044 $as_echo_n "checking for C compiler default output file name... " >&6; }
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4046 $as_echo "$ac_file" >&6; }
4047 ac_exeext=$ac_cv_exeext
4048
4049 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4050 ac_clean_files=$ac_clean_files_save
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4052 $as_echo_n "checking for suffix of executables... " >&6; }
4053 if { { ac_try="$ac_link"
4054 case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 $as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_link") 2>&5
4061 ac_status=$?
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }; then :
4064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4065 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4066 # work properly (i.e., refer to `conftest.exe'), while it won't with
4067 # `rm'.
4068 for ac_file in conftest.exe conftest conftest.*; do
4069 test -f "$ac_file" || continue
4070 case $ac_file in
4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4073 break;;
4074 * ) break;;
4075 esac
4076 done
4077 else
4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4081 See \`config.log' for more details" "$LINENO" 5; }
4082 fi
4083 rm -f conftest conftest$ac_cv_exeext
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4085 $as_echo "$ac_cv_exeext" >&6; }
4086
4087 rm -f conftest.$ac_ext
4088 EXEEXT=$ac_cv_exeext
4089 ac_exeext=$EXEEXT
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #include <stdio.h>
4093 int
4094 main ()
4095 {
4096 FILE *f = fopen ("conftest.out", "w");
4097 return ferror (f) || fclose (f) != 0;
4098
4099 ;
4100 return 0;
4101 }
4102 _ACEOF
4103 ac_clean_files="$ac_clean_files conftest.out"
4104 # Check that the compiler produces executables we can run. If not, either
4105 # the compiler is broken, or we cross compile.
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4107 $as_echo_n "checking whether we are cross compiling... " >&6; }
4108 if test "$cross_compiling" != yes; then
4109 { { ac_try="$ac_link"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 $as_echo "$ac_try_echo"; } >&5
4116 (eval "$ac_link") 2>&5
4117 ac_status=$?
4118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; }
4120 if { ac_try='./conftest$ac_cv_exeext'
4121 { { case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124 esac
4125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4126 $as_echo "$ac_try_echo"; } >&5
4127 (eval "$ac_try") 2>&5
4128 ac_status=$?
4129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4130 test $ac_status = 0; }; }; then
4131 cross_compiling=no
4132 else
4133 if test "$cross_compiling" = maybe; then
4134 cross_compiling=yes
4135 else
4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138 as_fn_error $? "cannot run C compiled programs.
4139 If you meant to cross compile, use \`--host'.
4140 See \`config.log' for more details" "$LINENO" 5; }
4141 fi
4142 fi
4143 fi
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4145 $as_echo "$cross_compiling" >&6; }
4146
4147 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4148 ac_clean_files=$ac_clean_files_save
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4150 $as_echo_n "checking for suffix of object files... " >&6; }
4151 if ${ac_cv_objext+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156
4157 int
4158 main ()
4159 {
4160
4161 ;
4162 return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.o conftest.obj
4166 if { { ac_try="$ac_compile"
4167 case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4170 esac
4171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4172 $as_echo "$ac_try_echo"; } >&5
4173 (eval "$ac_compile") 2>&5
4174 ac_status=$?
4175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4176 test $ac_status = 0; }; then :
4177 for ac_file in conftest.o conftest.obj conftest.*; do
4178 test -f "$ac_file" || continue;
4179 case $ac_file in
4180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4182 break;;
4183 esac
4184 done
4185 else
4186 $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 as_fn_error $? "cannot compute suffix of object files: cannot compile
4192 See \`config.log' for more details" "$LINENO" 5; }
4193 fi
4194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4197 $as_echo "$ac_cv_objext" >&6; }
4198 OBJEXT=$ac_cv_objext
4199 ac_objext=$OBJEXT
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4201 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4202 if ${ac_cv_c_compiler_gnu+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207
4208 int
4209 main ()
4210 {
4211 #ifndef __GNUC__
4212 choke me
4213 #endif
4214
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_compiler_gnu=yes
4221 else
4222 ac_compiler_gnu=no
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4226
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4229 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4230 if test $ac_compiler_gnu = yes; then
4231 GCC=yes
4232 else
4233 GCC=
4234 fi
4235 ac_test_CFLAGS=${CFLAGS+set}
4236 ac_save_CFLAGS=$CFLAGS
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4238 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4239 if ${ac_cv_prog_cc_g+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 ac_save_c_werror_flag=$ac_c_werror_flag
4243 ac_c_werror_flag=yes
4244 ac_cv_prog_cc_g=no
4245 CFLAGS="-g"
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248
4249 int
4250 main ()
4251 {
4252
4253 ;
4254 return 0;
4255 }
4256 _ACEOF
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_prog_cc_g=yes
4259 else
4260 CFLAGS=""
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263
4264 int
4265 main ()
4266 {
4267
4268 ;
4269 return 0;
4270 }
4271 _ACEOF
4272 if ac_fn_c_try_compile "$LINENO"; then :
4273
4274 else
4275 ac_c_werror_flag=$ac_save_c_werror_flag
4276 CFLAGS="-g"
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279
4280 int
4281 main ()
4282 {
4283
4284 ;
4285 return 0;
4286 }
4287 _ACEOF
4288 if ac_fn_c_try_compile "$LINENO"; then :
4289 ac_cv_prog_cc_g=yes
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 ac_c_werror_flag=$ac_save_c_werror_flag
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4299 $as_echo "$ac_cv_prog_cc_g" >&6; }
4300 if test "$ac_test_CFLAGS" = set; then
4301 CFLAGS=$ac_save_CFLAGS
4302 elif test $ac_cv_prog_cc_g = yes; then
4303 if test "$GCC" = yes; then
4304 CFLAGS="-g -O2"
4305 else
4306 CFLAGS="-g"
4307 fi
4308 else
4309 if test "$GCC" = yes; then
4310 CFLAGS="-O2"
4311 else
4312 CFLAGS=
4313 fi
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4316 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4317 if ${ac_cv_prog_cc_c89+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 ac_cv_prog_cc_c89=no
4321 ac_save_CC=$CC
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324 #include <stdarg.h>
4325 #include <stdio.h>
4326 struct stat;
4327 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4328 struct buf { int x; };
4329 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4330 static char *e (p, i)
4331 char **p;
4332 int i;
4333 {
4334 return p[i];
4335 }
4336 static char *f (char * (*g) (char **, int), char **p, ...)
4337 {
4338 char *s;
4339 va_list v;
4340 va_start (v,p);
4341 s = g (p, va_arg (v,int));
4342 va_end (v);
4343 return s;
4344 }
4345
4346 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4347 function prototypes and stuff, but not '\xHH' hex character constants.
4348 These don't provoke an error unfortunately, instead are silently treated
4349 as 'x'. The following induces an error, until -std is added to get
4350 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4351 array size at least. It's necessary to write '\x00'==0 to get something
4352 that's true only with -std. */
4353 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4354
4355 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4356 inside strings and character constants. */
4357 #define FOO(x) 'x'
4358 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4359
4360 int test (int i, double x);
4361 struct s1 {int (*f) (int a);};
4362 struct s2 {int (*f) (double a);};
4363 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4364 int argc;
4365 char **argv;
4366 int
4367 main ()
4368 {
4369 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4375 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4376 do
4377 CC="$ac_save_CC $ac_arg"
4378 if ac_fn_c_try_compile "$LINENO"; then :
4379 ac_cv_prog_cc_c89=$ac_arg
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext
4382 test "x$ac_cv_prog_cc_c89" != "xno" && break
4383 done
4384 rm -f conftest.$ac_ext
4385 CC=$ac_save_CC
4386
4387 fi
4388 # AC_CACHE_VAL
4389 case "x$ac_cv_prog_cc_c89" in
4390 x)
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4392 $as_echo "none needed" >&6; } ;;
4393 xno)
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4395 $as_echo "unsupported" >&6; } ;;
4396 *)
4397 CC="$CC $ac_cv_prog_cc_c89"
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4399 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4400 esac
4401 if test "x$ac_cv_prog_cc_c89" != xno; then :
4402
4403 fi
4404
4405 ac_ext=c
4406 ac_cpp='$CPP $CPPFLAGS'
4407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4410
4411 ac_ext=c
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4417 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4418 if ${am_cv_prog_cc_c_o+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4423
4424 int
4425 main ()
4426 {
4427
4428 ;
4429 return 0;
4430 }
4431 _ACEOF
4432 # Make sure it works both with $CC and with simple cc.
4433 # Following AC_PROG_CC_C_O, we do the test twice because some
4434 # compilers refuse to overwrite an existing .o file with -o,
4435 # though they will create one.
4436 am_cv_prog_cc_c_o=yes
4437 for am_i in 1 2; do
4438 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4439 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } \
4443 && test -f conftest2.$ac_objext; then
4444 : OK
4445 else
4446 am_cv_prog_cc_c_o=no
4447 break
4448 fi
4449 done
4450 rm -f core conftest*
4451 unset am_i
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4454 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4455 if test "$am_cv_prog_cc_c_o" != yes; then
4456 # Losing compiler, so override with the script.
4457 # FIXME: It is wrong to rewrite CC.
4458 # But if we don't then we get into trouble of one sort or another.
4459 # A longer-term fix would be to have automake use am__CC in this case,
4460 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4461 CC="$am_aux_dir/compile $CC"
4462 fi
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468
4469
4470 depcc="$CC" am_compiler_list=
4471
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4473 $as_echo_n "checking dependency style of $depcc... " >&6; }
4474 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4478 # We make a subdir and do the tests there. Otherwise we can end up
4479 # making bogus files that we don't know about and never remove. For
4480 # instance it was reported that on HP-UX the gcc test will end up
4481 # making a dummy file named 'D' -- because '-MD' means "put the output
4482 # in D".
4483 rm -rf conftest.dir
4484 mkdir conftest.dir
4485 # Copy depcomp to subdir because otherwise we won't find it if we're
4486 # using a relative directory.
4487 cp "$am_depcomp" conftest.dir
4488 cd conftest.dir
4489 # We will build objects and dependencies in a subdirectory because
4490 # it helps to detect inapplicable dependency modes. For instance
4491 # both Tru64's cc and ICC support -MD to output dependencies as a
4492 # side effect of compilation, but ICC will put the dependencies in
4493 # the current directory while Tru64 will put them in the object
4494 # directory.
4495 mkdir sub
4496
4497 am_cv_CC_dependencies_compiler_type=none
4498 if test "$am_compiler_list" = ""; then
4499 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4500 fi
4501 am__universal=false
4502 case " $depcc " in #(
4503 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4504 esac
4505
4506 for depmode in $am_compiler_list; do
4507 # Setup a source with many dependencies, because some compilers
4508 # like to wrap large dependency lists on column 80 (with \), and
4509 # we should not choose a depcomp mode which is confused by this.
4510 #
4511 # We need to recreate these files for each test, as the compiler may
4512 # overwrite some of them when testing with obscure command lines.
4513 # This happens at least with the AIX C compiler.
4514 : > sub/conftest.c
4515 for i in 1 2 3 4 5 6; do
4516 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4517 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4518 # Solaris 10 /bin/sh.
4519 echo '/* dummy */' > sub/conftst$i.h
4520 done
4521 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4522
4523 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4524 # mode. It turns out that the SunPro C++ compiler does not properly
4525 # handle '-M -o', and we need to detect this. Also, some Intel
4526 # versions had trouble with output in subdirs.
4527 am__obj=sub/conftest.${OBJEXT-o}
4528 am__minus_obj="-o $am__obj"
4529 case $depmode in
4530 gcc)
4531 # This depmode causes a compiler race in universal mode.
4532 test "$am__universal" = false || continue
4533 ;;
4534 nosideeffect)
4535 # After this tag, mechanisms are not by side-effect, so they'll
4536 # only be used when explicitly requested.
4537 if test "x$enable_dependency_tracking" = xyes; then
4538 continue
4539 else
4540 break
4541 fi
4542 ;;
4543 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4544 # This compiler won't grok '-c -o', but also, the minuso test has
4545 # not run yet. These depmodes are late enough in the game, and
4546 # so weak that their functioning should not be impacted.
4547 am__obj=conftest.${OBJEXT-o}
4548 am__minus_obj=
4549 ;;
4550 none) break ;;
4551 esac
4552 if depmode=$depmode \
4553 source=sub/conftest.c object=$am__obj \
4554 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4555 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4556 >/dev/null 2>conftest.err &&
4557 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4558 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4559 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4560 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4561 # icc doesn't choke on unknown options, it will just issue warnings
4562 # or remarks (even with -Werror). So we grep stderr for any message
4563 # that says an option was ignored or not supported.
4564 # When given -MP, icc 7.0 and 7.1 complain thusly:
4565 # icc: Command line warning: ignoring option '-M'; no argument required
4566 # The diagnosis changed in icc 8.0:
4567 # icc: Command line remark: option '-MP' not supported
4568 if (grep 'ignoring option' conftest.err ||
4569 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4570 am_cv_CC_dependencies_compiler_type=$depmode
4571 break
4572 fi
4573 fi
4574 done
4575
4576 cd ..
4577 rm -rf conftest.dir
4578 else
4579 am_cv_CC_dependencies_compiler_type=none
4580 fi
4581
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4584 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4585 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4586
4587 if
4588 test "x$enable_dependency_tracking" != xno \
4589 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4590 am__fastdepCC_TRUE=
4591 am__fastdepCC_FALSE='#'
4592 else
4593 am__fastdepCC_TRUE='#'
4594 am__fastdepCC_FALSE=
4595 fi
4596
4597
4598 case $ac_cv_prog_cc_stdc in #(
4599 no) :
4600 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4601 *) :
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4603 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4604 if ${ac_cv_prog_cc_c99+:} false; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 ac_cv_prog_cc_c99=no
4608 ac_save_CC=$CC
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4611 #include <stdarg.h>
4612 #include <stdbool.h>
4613 #include <stdlib.h>
4614 #include <wchar.h>
4615 #include <stdio.h>
4616
4617 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4618 #define debug(...) fprintf (stderr, __VA_ARGS__)
4619 #define showlist(...) puts (#__VA_ARGS__)
4620 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4621 static void
4622 test_varargs_macros (void)
4623 {
4624 int x = 1234;
4625 int y = 5678;
4626 debug ("Flag");
4627 debug ("X = %d\n", x);
4628 showlist (The first, second, and third items.);
4629 report (x>y, "x is %d but y is %d", x, y);
4630 }
4631
4632 // Check long long types.
4633 #define BIG64 18446744073709551615ull
4634 #define BIG32 4294967295ul
4635 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4636 #if !BIG_OK
4637 your preprocessor is broken;
4638 #endif
4639 #if BIG_OK
4640 #else
4641 your preprocessor is broken;
4642 #endif
4643 static long long int bignum = -9223372036854775807LL;
4644 static unsigned long long int ubignum = BIG64;
4645
4646 struct incomplete_array
4647 {
4648 int datasize;
4649 double data[];
4650 };
4651
4652 struct named_init {
4653 int number;
4654 const wchar_t *name;
4655 double average;
4656 };
4657
4658 typedef const char *ccp;
4659
4660 static inline int
4661 test_restrict (ccp restrict text)
4662 {
4663 // See if C++-style comments work.
4664 // Iterate through items via the restricted pointer.
4665 // Also check for declarations in for loops.
4666 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4667 continue;
4668 return 0;
4669 }
4670
4671 // Check varargs and va_copy.
4672 static void
4673 test_varargs (const char *format, ...)
4674 {
4675 va_list args;
4676 va_start (args, format);
4677 va_list args_copy;
4678 va_copy (args_copy, args);
4679
4680 const char *str;
4681 int number;
4682 float fnumber;
4683
4684 while (*format)
4685 {
4686 switch (*format++)
4687 {
4688 case 's': // string
4689 str = va_arg (args_copy, const char *);
4690 break;
4691 case 'd': // int
4692 number = va_arg (args_copy, int);
4693 break;
4694 case 'f': // float
4695 fnumber = va_arg (args_copy, double);
4696 break;
4697 default:
4698 break;
4699 }
4700 }
4701 va_end (args_copy);
4702 va_end (args);
4703 }
4704
4705 int
4706 main ()
4707 {
4708
4709 // Check bool.
4710 _Bool success = false;
4711
4712 // Check restrict.
4713 if (test_restrict ("String literal") == 0)
4714 success = true;
4715 char *restrict newvar = "Another string";
4716
4717 // Check varargs.
4718 test_varargs ("s, d' f .", "string", 65, 34.234);
4719 test_varargs_macros ();
4720
4721 // Check flexible array members.
4722 struct incomplete_array *ia =
4723 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4724 ia->datasize = 10;
4725 for (int i = 0; i < ia->datasize; ++i)
4726 ia->data[i] = i * 1.234;
4727
4728 // Check named initializers.
4729 struct named_init ni = {
4730 .number = 34,
4731 .name = L"Test wide string",
4732 .average = 543.34343,
4733 };
4734
4735 ni.number = 58;
4736
4737 int dynamic_array[ni.number];
4738 dynamic_array[ni.number - 1] = 543;
4739
4740 // work around unused variable warnings
4741 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4742 || dynamic_array[ni.number - 1] != 543);
4743
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4749 do
4750 CC="$ac_save_CC $ac_arg"
4751 if ac_fn_c_try_compile "$LINENO"; then :
4752 ac_cv_prog_cc_c99=$ac_arg
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext
4755 test "x$ac_cv_prog_cc_c99" != "xno" && break
4756 done
4757 rm -f conftest.$ac_ext
4758 CC=$ac_save_CC
4759
4760 fi
4761 # AC_CACHE_VAL
4762 case "x$ac_cv_prog_cc_c99" in
4763 x)
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4765 $as_echo "none needed" >&6; } ;;
4766 xno)
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4768 $as_echo "unsupported" >&6; } ;;
4769 *)
4770 CC="$CC $ac_cv_prog_cc_c99"
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4772 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4773 esac
4774 if test "x$ac_cv_prog_cc_c99" != xno; then :
4775 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4778 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4779 if ${ac_cv_prog_cc_c89+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 ac_cv_prog_cc_c89=no
4783 ac_save_CC=$CC
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 #include <stdarg.h>
4787 #include <stdio.h>
4788 struct stat;
4789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4790 struct buf { int x; };
4791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4792 static char *e (p, i)
4793 char **p;
4794 int i;
4795 {
4796 return p[i];
4797 }
4798 static char *f (char * (*g) (char **, int), char **p, ...)
4799 {
4800 char *s;
4801 va_list v;
4802 va_start (v,p);
4803 s = g (p, va_arg (v,int));
4804 va_end (v);
4805 return s;
4806 }
4807
4808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4809 function prototypes and stuff, but not '\xHH' hex character constants.
4810 These don't provoke an error unfortunately, instead are silently treated
4811 as 'x'. The following induces an error, until -std is added to get
4812 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4813 array size at least. It's necessary to write '\x00'==0 to get something
4814 that's true only with -std. */
4815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4816
4817 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4818 inside strings and character constants. */
4819 #define FOO(x) 'x'
4820 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4821
4822 int test (int i, double x);
4823 struct s1 {int (*f) (int a);};
4824 struct s2 {int (*f) (double a);};
4825 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4826 int argc;
4827 char **argv;
4828 int
4829 main ()
4830 {
4831 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4832 ;
4833 return 0;
4834 }
4835 _ACEOF
4836 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4837 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4838 do
4839 CC="$ac_save_CC $ac_arg"
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 ac_cv_prog_cc_c89=$ac_arg
4842 fi
4843 rm -f core conftest.err conftest.$ac_objext
4844 test "x$ac_cv_prog_cc_c89" != "xno" && break
4845 done
4846 rm -f conftest.$ac_ext
4847 CC=$ac_save_CC
4848
4849 fi
4850 # AC_CACHE_VAL
4851 case "x$ac_cv_prog_cc_c89" in
4852 x)
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4854 $as_echo "none needed" >&6; } ;;
4855 xno)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4857 $as_echo "unsupported" >&6; } ;;
4858 *)
4859 CC="$CC $ac_cv_prog_cc_c89"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4861 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4862 esac
4863 if test "x$ac_cv_prog_cc_c89" != xno; then :
4864 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4865 else
4866 ac_cv_prog_cc_stdc=no
4867 fi
4868
4869 fi
4870 ;;
4871 esac
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4873 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4874 if ${ac_cv_prog_cc_stdc+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 fi
4877
4878 case $ac_cv_prog_cc_stdc in #(
4879 no) :
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4881 $as_echo "unsupported" >&6; } ;; #(
4882 '') :
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4884 $as_echo "none needed" >&6; } ;; #(
4885 *) :
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4887 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4888 esac
4889
4890
4891 ac_ext=c
4892 ac_cpp='$CPP $CPPFLAGS'
4893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4897 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4898 # On Suns, sometimes $CPP names a directory.
4899 if test -n "$CPP" && test -d "$CPP"; then
4900 CPP=
4901 fi
4902 if test -z "$CPP"; then
4903 if ${ac_cv_prog_CPP+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 # Double quotes because CPP needs to be expanded
4907 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4908 do
4909 ac_preproc_ok=false
4910 for ac_c_preproc_warn_flag in '' yes
4911 do
4912 # Use a header file that comes with gcc, so configuring glibc
4913 # with a fresh cross-compiler works.
4914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915 # <limits.h> exists even on freestanding compilers.
4916 # On the NeXT, cc -E runs the code through the compiler's parser,
4917 # not just through cpp. "Syntax error" is here to catch this case.
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4920 #ifdef __STDC__
4921 # include <limits.h>
4922 #else
4923 # include <assert.h>
4924 #endif
4925 Syntax error
4926 _ACEOF
4927 if ac_fn_c_try_cpp "$LINENO"; then :
4928
4929 else
4930 # Broken: fails on valid input.
4931 continue
4932 fi
4933 rm -f conftest.err conftest.i conftest.$ac_ext
4934
4935 # OK, works on sane cases. Now check whether nonexistent headers
4936 # can be detected and how.
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939 #include <ac_nonexistent.h>
4940 _ACEOF
4941 if ac_fn_c_try_cpp "$LINENO"; then :
4942 # Broken: success on invalid input.
4943 continue
4944 else
4945 # Passes both tests.
4946 ac_preproc_ok=:
4947 break
4948 fi
4949 rm -f conftest.err conftest.i conftest.$ac_ext
4950
4951 done
4952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4953 rm -f conftest.i conftest.err conftest.$ac_ext
4954 if $ac_preproc_ok; then :
4955 break
4956 fi
4957
4958 done
4959 ac_cv_prog_CPP=$CPP
4960
4961 fi
4962 CPP=$ac_cv_prog_CPP
4963 else
4964 ac_cv_prog_CPP=$CPP
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4967 $as_echo "$CPP" >&6; }
4968 ac_preproc_ok=false
4969 for ac_c_preproc_warn_flag in '' yes
4970 do
4971 # Use a header file that comes with gcc, so configuring glibc
4972 # with a fresh cross-compiler works.
4973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4974 # <limits.h> exists even on freestanding compilers.
4975 # On the NeXT, cc -E runs the code through the compiler's parser,
4976 # not just through cpp. "Syntax error" is here to catch this case.
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979 #ifdef __STDC__
4980 # include <limits.h>
4981 #else
4982 # include <assert.h>
4983 #endif
4984 Syntax error
4985 _ACEOF
4986 if ac_fn_c_try_cpp "$LINENO"; then :
4987
4988 else
4989 # Broken: fails on valid input.
4990 continue
4991 fi
4992 rm -f conftest.err conftest.i conftest.$ac_ext
4993
4994 # OK, works on sane cases. Now check whether nonexistent headers
4995 # can be detected and how.
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 #include <ac_nonexistent.h>
4999 _ACEOF
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5001 # Broken: success on invalid input.
5002 continue
5003 else
5004 # Passes both tests.
5005 ac_preproc_ok=:
5006 break
5007 fi
5008 rm -f conftest.err conftest.i conftest.$ac_ext
5009
5010 done
5011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5012 rm -f conftest.i conftest.err conftest.$ac_ext
5013 if $ac_preproc_ok; then :
5014
5015 else
5016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5018 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5019 See \`config.log' for more details" "$LINENO" 5; }
5020 fi
5021
5022 ac_ext=c
5023 ac_cpp='$CPP $CPPFLAGS'
5024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027
5028
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5030 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5031 if ${ac_cv_path_GREP+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -z "$GREP"; then
5035 ac_path_GREP_found=false
5036 # Loop through the user's path and test for each of PROGNAME-LIST
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5039 do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_prog in grep ggrep; do
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5045 as_fn_executable_p "$ac_path_GREP" || continue
5046 # Check for GNU ac_path_GREP and select it if it is found.
5047 # Check for GNU $ac_path_GREP
5048 case `"$ac_path_GREP" --version 2>&1` in
5049 *GNU*)
5050 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5051 *)
5052 ac_count=0
5053 $as_echo_n 0123456789 >"conftest.in"
5054 while :
5055 do
5056 cat "conftest.in" "conftest.in" >"conftest.tmp"
5057 mv "conftest.tmp" "conftest.in"
5058 cp "conftest.in" "conftest.nl"
5059 $as_echo 'GREP' >> "conftest.nl"
5060 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5062 as_fn_arith $ac_count + 1 && ac_count=$as_val
5063 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5064 # Best one so far, save it but keep looking for a better one
5065 ac_cv_path_GREP="$ac_path_GREP"
5066 ac_path_GREP_max=$ac_count
5067 fi
5068 # 10*(2^10) chars as input seems more than enough
5069 test $ac_count -gt 10 && break
5070 done
5071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5072 esac
5073
5074 $ac_path_GREP_found && break 3
5075 done
5076 done
5077 done
5078 IFS=$as_save_IFS
5079 if test -z "$ac_cv_path_GREP"; then
5080 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5081 fi
5082 else
5083 ac_cv_path_GREP=$GREP
5084 fi
5085
5086 fi
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5088 $as_echo "$ac_cv_path_GREP" >&6; }
5089 GREP="$ac_cv_path_GREP"
5090
5091
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5093 $as_echo_n "checking for egrep... " >&6; }
5094 if ${ac_cv_path_EGREP+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5098 then ac_cv_path_EGREP="$GREP -E"
5099 else
5100 if test -z "$EGREP"; then
5101 ac_path_EGREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in egrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5111 as_fn_executable_p "$ac_path_EGREP" || continue
5112 # Check for GNU ac_path_EGREP and select it if it is found.
5113 # Check for GNU $ac_path_EGREP
5114 case `"$ac_path_EGREP" --version 2>&1` in
5115 *GNU*)
5116 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5117 *)
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5121 do
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo 'EGREP' >> "conftest.nl"
5126 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_EGREP="$ac_path_EGREP"
5132 ac_path_EGREP_max=$ac_count
5133 fi
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138 esac
5139
5140 $ac_path_EGREP_found && break 3
5141 done
5142 done
5143 done
5144 IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_EGREP"; then
5146 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5147 fi
5148 else
5149 ac_cv_path_EGREP=$EGREP
5150 fi
5151
5152 fi
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5155 $as_echo "$ac_cv_path_EGREP" >&6; }
5156 EGREP="$ac_cv_path_EGREP"
5157
5158
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5160 $as_echo_n "checking for ANSI C header files... " >&6; }
5161 if ${ac_cv_header_stdc+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5166 #include <stdlib.h>
5167 #include <stdarg.h>
5168 #include <string.h>
5169 #include <float.h>
5170
5171 int
5172 main ()
5173 {
5174
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 if ac_fn_c_try_compile "$LINENO"; then :
5180 ac_cv_header_stdc=yes
5181 else
5182 ac_cv_header_stdc=no
5183 fi
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185
5186 if test $ac_cv_header_stdc = yes; then
5187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190 #include <string.h>
5191
5192 _ACEOF
5193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5194 $EGREP "memchr" >/dev/null 2>&1; then :
5195
5196 else
5197 ac_cv_header_stdc=no
5198 fi
5199 rm -f conftest*
5200
5201 fi
5202
5203 if test $ac_cv_header_stdc = yes; then
5204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 #include <stdlib.h>
5208
5209 _ACEOF
5210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5211 $EGREP "free" >/dev/null 2>&1; then :
5212
5213 else
5214 ac_cv_header_stdc=no
5215 fi
5216 rm -f conftest*
5217
5218 fi
5219
5220 if test $ac_cv_header_stdc = yes; then
5221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5222 if test "$cross_compiling" = yes; then :
5223 :
5224 else
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227 #include <ctype.h>
5228 #include <stdlib.h>
5229 #if ((' ' & 0x0FF) == 0x020)
5230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5232 #else
5233 # define ISLOWER(c) \
5234 (('a' <= (c) && (c) <= 'i') \
5235 || ('j' <= (c) && (c) <= 'r') \
5236 || ('s' <= (c) && (c) <= 'z'))
5237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5238 #endif
5239
5240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5241 int
5242 main ()
5243 {
5244 int i;
5245 for (i = 0; i < 256; i++)
5246 if (XOR (islower (i), ISLOWER (i))
5247 || toupper (i) != TOUPPER (i))
5248 return 2;
5249 return 0;
5250 }
5251 _ACEOF
5252 if ac_fn_c_try_run "$LINENO"; then :
5253
5254 else
5255 ac_cv_header_stdc=no
5256 fi
5257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5258 conftest.$ac_objext conftest.beam conftest.$ac_ext
5259 fi
5260
5261 fi
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5264 $as_echo "$ac_cv_header_stdc" >&6; }
5265 if test $ac_cv_header_stdc = yes; then
5266
5267 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5268
5269 fi
5270
5271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5272 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5273 inttypes.h stdint.h unistd.h
5274 do :
5275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5276 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5277 "
5278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5279 cat >>confdefs.h <<_ACEOF
5280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5281 _ACEOF
5282
5283 fi
5284
5285 done
5286
5287
5288
5289 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5290 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5291 MINIX=yes
5292 else
5293 MINIX=
5294 fi
5295
5296
5297 if test "$MINIX" = yes; then
5298
5299 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5300
5301
5302 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5303
5304
5305 $as_echo "#define _MINIX 1" >>confdefs.h
5306
5307 fi
5308
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5311 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5312 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317
5318 # define __EXTENSIONS__ 1
5319 $ac_includes_default
5320 int
5321 main ()
5322 {
5323
5324 ;
5325 return 0;
5326 }
5327 _ACEOF
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329 ac_cv_safe_to_define___extensions__=yes
5330 else
5331 ac_cv_safe_to_define___extensions__=no
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5336 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5337 test $ac_cv_safe_to_define___extensions__ = yes &&
5338 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5339
5340 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5341
5342 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5343
5344 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5345
5346 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5347
5348
5349
5350 ac_ext=cpp
5351 ac_cpp='$CXXCPP $CPPFLAGS'
5352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5355 if test -z "$CXX"; then
5356 if test -n "$CCC"; then
5357 CXX=$CCC
5358 else
5359 if test -n "$ac_tool_prefix"; then
5360 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5361 do
5362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if ${ac_cv_prog_CXX+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 if test -n "$CXX"; then
5370 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 CXX=$ac_cv_prog_CXX
5390 if test -n "$CXX"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5392 $as_echo "$CXX" >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399 test -n "$CXX" && break
5400 done
5401 fi
5402 if test -z "$CXX"; then
5403 ac_ct_CXX=$CXX
5404 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5405 do
5406 # Extract the first word of "$ac_prog", so it can be a program name with args.
5407 set dummy $ac_prog; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -n "$ac_ct_CXX"; then
5414 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423 ac_cv_prog_ac_ct_CXX="$ac_prog"
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 break 2
5426 fi
5427 done
5428 done
5429 IFS=$as_save_IFS
5430
5431 fi
5432 fi
5433 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5434 if test -n "$ac_ct_CXX"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5436 $as_echo "$ac_ct_CXX" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441
5442
5443 test -n "$ac_ct_CXX" && break
5444 done
5445
5446 if test "x$ac_ct_CXX" = x; then
5447 CXX="g++"
5448 else
5449 case $cross_compiling:$ac_tool_warned in
5450 yes:)
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5453 ac_tool_warned=yes ;;
5454 esac
5455 CXX=$ac_ct_CXX
5456 fi
5457 fi
5458
5459 fi
5460 fi
5461 # Provide some information about the compiler.
5462 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5463 set X $ac_compile
5464 ac_compiler=$2
5465 for ac_option in --version -v -V -qversion; do
5466 { { ac_try="$ac_compiler $ac_option >&5"
5467 case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470 esac
5471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5472 $as_echo "$ac_try_echo"; } >&5
5473 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5474 ac_status=$?
5475 if test -s conftest.err; then
5476 sed '10a\
5477 ... rest of stderr output deleted ...
5478 10q' conftest.err >conftest.er1
5479 cat conftest.er1 >&5
5480 fi
5481 rm -f conftest.er1 conftest.err
5482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5483 test $ac_status = 0; }
5484 done
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5487 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5488 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493
5494 int
5495 main ()
5496 {
5497 #ifndef __GNUC__
5498 choke me
5499 #endif
5500
5501 ;
5502 return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_cxx_try_compile "$LINENO"; then :
5506 ac_compiler_gnu=yes
5507 else
5508 ac_compiler_gnu=no
5509 fi
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5512
5513 fi
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5515 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5516 if test $ac_compiler_gnu = yes; then
5517 GXX=yes
5518 else
5519 GXX=
5520 fi
5521 ac_test_CXXFLAGS=${CXXFLAGS+set}
5522 ac_save_CXXFLAGS=$CXXFLAGS
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5524 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5525 if ${ac_cv_prog_cxx_g+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5529 ac_cxx_werror_flag=yes
5530 ac_cv_prog_cxx_g=no
5531 CXXFLAGS="-g"
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534
5535 int
5536 main ()
5537 {
5538
5539 ;
5540 return 0;
5541 }
5542 _ACEOF
5543 if ac_fn_cxx_try_compile "$LINENO"; then :
5544 ac_cv_prog_cxx_g=yes
5545 else
5546 CXXFLAGS=""
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549
5550 int
5551 main ()
5552 {
5553
5554 ;
5555 return 0;
5556 }
5557 _ACEOF
5558 if ac_fn_cxx_try_compile "$LINENO"; then :
5559
5560 else
5561 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5562 CXXFLAGS="-g"
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565
5566 int
5567 main ()
5568 {
5569
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 if ac_fn_cxx_try_compile "$LINENO"; then :
5575 ac_cv_prog_cxx_g=yes
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5585 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5586 if test "$ac_test_CXXFLAGS" = set; then
5587 CXXFLAGS=$ac_save_CXXFLAGS
5588 elif test $ac_cv_prog_cxx_g = yes; then
5589 if test "$GXX" = yes; then
5590 CXXFLAGS="-g -O2"
5591 else
5592 CXXFLAGS="-g"
5593 fi
5594 else
5595 if test "$GXX" = yes; then
5596 CXXFLAGS="-O2"
5597 else
5598 CXXFLAGS=
5599 fi
5600 fi
5601 ac_ext=c
5602 ac_cpp='$CPP $CPPFLAGS'
5603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5606
5607 depcc="$CXX" am_compiler_list=
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5610 $as_echo_n "checking dependency style of $depcc... " >&6; }
5611 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5615 # We make a subdir and do the tests there. Otherwise we can end up
5616 # making bogus files that we don't know about and never remove. For
5617 # instance it was reported that on HP-UX the gcc test will end up
5618 # making a dummy file named 'D' -- because '-MD' means "put the output
5619 # in D".
5620 rm -rf conftest.dir
5621 mkdir conftest.dir
5622 # Copy depcomp to subdir because otherwise we won't find it if we're
5623 # using a relative directory.
5624 cp "$am_depcomp" conftest.dir
5625 cd conftest.dir
5626 # We will build objects and dependencies in a subdirectory because
5627 # it helps to detect inapplicable dependency modes. For instance
5628 # both Tru64's cc and ICC support -MD to output dependencies as a
5629 # side effect of compilation, but ICC will put the dependencies in
5630 # the current directory while Tru64 will put them in the object
5631 # directory.
5632 mkdir sub
5633
5634 am_cv_CXX_dependencies_compiler_type=none
5635 if test "$am_compiler_list" = ""; then
5636 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5637 fi
5638 am__universal=false
5639 case " $depcc " in #(
5640 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5641 esac
5642
5643 for depmode in $am_compiler_list; do
5644 # Setup a source with many dependencies, because some compilers
5645 # like to wrap large dependency lists on column 80 (with \), and
5646 # we should not choose a depcomp mode which is confused by this.
5647 #
5648 # We need to recreate these files for each test, as the compiler may
5649 # overwrite some of them when testing with obscure command lines.
5650 # This happens at least with the AIX C compiler.
5651 : > sub/conftest.c
5652 for i in 1 2 3 4 5 6; do
5653 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5654 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5655 # Solaris 10 /bin/sh.
5656 echo '/* dummy */' > sub/conftst$i.h
5657 done
5658 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5659
5660 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5661 # mode. It turns out that the SunPro C++ compiler does not properly
5662 # handle '-M -o', and we need to detect this. Also, some Intel
5663 # versions had trouble with output in subdirs.
5664 am__obj=sub/conftest.${OBJEXT-o}
5665 am__minus_obj="-o $am__obj"
5666 case $depmode in
5667 gcc)
5668 # This depmode causes a compiler race in universal mode.
5669 test "$am__universal" = false || continue
5670 ;;
5671 nosideeffect)
5672 # After this tag, mechanisms are not by side-effect, so they'll
5673 # only be used when explicitly requested.
5674 if test "x$enable_dependency_tracking" = xyes; then
5675 continue
5676 else
5677 break
5678 fi
5679 ;;
5680 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5681 # This compiler won't grok '-c -o', but also, the minuso test has
5682 # not run yet. These depmodes are late enough in the game, and
5683 # so weak that their functioning should not be impacted.
5684 am__obj=conftest.${OBJEXT-o}
5685 am__minus_obj=
5686 ;;
5687 none) break ;;
5688 esac
5689 if depmode=$depmode \
5690 source=sub/conftest.c object=$am__obj \
5691 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5692 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5693 >/dev/null 2>conftest.err &&
5694 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5695 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5696 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5697 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5698 # icc doesn't choke on unknown options, it will just issue warnings
5699 # or remarks (even with -Werror). So we grep stderr for any message
5700 # that says an option was ignored or not supported.
5701 # When given -MP, icc 7.0 and 7.1 complain thusly:
5702 # icc: Command line warning: ignoring option '-M'; no argument required
5703 # The diagnosis changed in icc 8.0:
5704 # icc: Command line remark: option '-MP' not supported
5705 if (grep 'ignoring option' conftest.err ||
5706 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5707 am_cv_CXX_dependencies_compiler_type=$depmode
5708 break
5709 fi
5710 fi
5711 done
5712
5713 cd ..
5714 rm -rf conftest.dir
5715 else
5716 am_cv_CXX_dependencies_compiler_type=none
5717 fi
5718
5719 fi
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5721 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5722 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5723
5724 if
5725 test "x$enable_dependency_tracking" != xno \
5726 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5727 am__fastdepCXX_TRUE=
5728 am__fastdepCXX_FALSE='#'
5729 else
5730 am__fastdepCXX_TRUE='#'
5731 am__fastdepCXX_FALSE=
5732 fi
5733
5734
5735
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the CLANG C compiler" >&5
5737 $as_echo_n "checking whether we are using the CLANG C compiler... " >&6; }
5738 if ${mn_cv_c_compiler_clang+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744
5745 #include <stdio.h>
5746
5747 int
5748 main ()
5749 {
5750
5751 #ifndef __clang__
5752 This is not clang!
5753 #endif
5754
5755 ;
5756 return 0;
5757 }
5758 _ACEOF
5759 if ac_fn_c_try_link "$LINENO"; then :
5760 mn_cv_c_compiler_clang=yes
5761 else
5762 mn_cv_c_compiler_clang=no
5763
5764 fi
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mn_cv_c_compiler_clang" >&5
5766 $as_echo "$mn_cv_c_compiler_clang" >&6; }
5767
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext \
5770 conftest$ac_exeext conftest.$ac_ext
5771
5772
5773 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776
5777 #include <stdio.h>
5778
5779 int
5780 main ()
5781 {
5782
5783 #ifdef __clang__
5784 This is clang!
5785 #endif
5786
5787 ;
5788 return 0;
5789 }
5790 _ACEOF
5791 if ac_fn_c_try_link "$LINENO"; then :
5792 ac_cv_c_compiler_gnu=yes
5793 else
5794 ac_cv_c_compiler_gnu=no
5795
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext \
5798 conftest$ac_exeext conftest.$ac_ext
5799 fi
5800
5801
5802
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5804 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5805 if ${ac_cv_path_SED+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5809 for ac_i in 1 2 3 4 5 6 7; do
5810 ac_script="$ac_script$as_nl$ac_script"
5811 done
5812 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5813 { ac_script=; unset ac_script;}
5814 if test -z "$SED"; then
5815 ac_path_SED_found=false
5816 # Loop through the user's path and test for each of PROGNAME-LIST
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_prog in sed gsed; do
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5825 as_fn_executable_p "$ac_path_SED" || continue
5826 # Check for GNU ac_path_SED and select it if it is found.
5827 # Check for GNU $ac_path_SED
5828 case `"$ac_path_SED" --version 2>&1` in
5829 *GNU*)
5830 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5831 *)
5832 ac_count=0
5833 $as_echo_n 0123456789 >"conftest.in"
5834 while :
5835 do
5836 cat "conftest.in" "conftest.in" >"conftest.tmp"
5837 mv "conftest.tmp" "conftest.in"
5838 cp "conftest.in" "conftest.nl"
5839 $as_echo '' >> "conftest.nl"
5840 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5842 as_fn_arith $ac_count + 1 && ac_count=$as_val
5843 if test $ac_count -gt ${ac_path_SED_max-0}; then
5844 # Best one so far, save it but keep looking for a better one
5845 ac_cv_path_SED="$ac_path_SED"
5846 ac_path_SED_max=$ac_count
5847 fi
5848 # 10*(2^10) chars as input seems more than enough
5849 test $ac_count -gt 10 && break
5850 done
5851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5852 esac
5853
5854 $ac_path_SED_found && break 3
5855 done
5856 done
5857 done
5858 IFS=$as_save_IFS
5859 if test -z "$ac_cv_path_SED"; then
5860 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5861 fi
5862 else
5863 ac_cv_path_SED=$SED
5864 fi
5865
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5868 $as_echo "$ac_cv_path_SED" >&6; }
5869 SED="$ac_cv_path_SED"
5870 rm -f conftest.sed
5871
5872
5873 # Do not check for F77.
5874
5875 case `pwd` in
5876 *\ * | *\ *)
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5878 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5879 esac
5880
5881
5882
5883 macro_version='2.4.6'
5884 macro_revision='2.4.6'
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898 ltmain=$ac_aux_dir/ltmain.sh
5899
5900 # Backslashify metacharacters that are still active within
5901 # double-quoted strings.
5902 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5903
5904 # Same as above, but do not quote variable references.
5905 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5906
5907 # Sed substitution to delay expansion of an escaped shell variable in a
5908 # double_quote_subst'ed string.
5909 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5910
5911 # Sed substitution to delay expansion of an escaped single quote.
5912 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5913
5914 # Sed substitution to avoid accidental globbing in evaled expressions
5915 no_glob_subst='s/\*/\\\*/g'
5916
5917 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5918 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5919 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5920
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5922 $as_echo_n "checking how to print strings... " >&6; }
5923 # Test print first, because it will be a builtin if present.
5924 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5925 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5926 ECHO='print -r --'
5927 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5928 ECHO='printf %s\n'
5929 else
5930 # Use this function as a fallback that always works.
5931 func_fallback_echo ()
5932 {
5933 eval 'cat <<_LTECHO_EOF
5934 $1
5935 _LTECHO_EOF'
5936 }
5937 ECHO='func_fallback_echo'
5938 fi
5939
5940 # func_echo_all arg...
5941 # Invoke $ECHO with all args, space-separated.
5942 func_echo_all ()
5943 {
5944 $ECHO ""
5945 }
5946
5947 case $ECHO in
5948 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5949 $as_echo "printf" >&6; } ;;
5950 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5951 $as_echo "print -r" >&6; } ;;
5952 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5953 $as_echo "cat" >&6; } ;;
5954 esac
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5970 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5971 if ${ac_cv_path_SED+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5975 for ac_i in 1 2 3 4 5 6 7; do
5976 ac_script="$ac_script$as_nl$ac_script"
5977 done
5978 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5979 { ac_script=; unset ac_script;}
5980 if test -z "$SED"; then
5981 ac_path_SED_found=false
5982 # Loop through the user's path and test for each of PROGNAME-LIST
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_prog in sed gsed; do
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5991 as_fn_executable_p "$ac_path_SED" || continue
5992 # Check for GNU ac_path_SED and select it if it is found.
5993 # Check for GNU $ac_path_SED
5994 case `"$ac_path_SED" --version 2>&1` in
5995 *GNU*)
5996 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5997 *)
5998 ac_count=0
5999 $as_echo_n 0123456789 >"conftest.in"
6000 while :
6001 do
6002 cat "conftest.in" "conftest.in" >"conftest.tmp"
6003 mv "conftest.tmp" "conftest.in"
6004 cp "conftest.in" "conftest.nl"
6005 $as_echo '' >> "conftest.nl"
6006 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6008 as_fn_arith $ac_count + 1 && ac_count=$as_val
6009 if test $ac_count -gt ${ac_path_SED_max-0}; then
6010 # Best one so far, save it but keep looking for a better one
6011 ac_cv_path_SED="$ac_path_SED"
6012 ac_path_SED_max=$ac_count
6013 fi
6014 # 10*(2^10) chars as input seems more than enough
6015 test $ac_count -gt 10 && break
6016 done
6017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6018 esac
6019
6020 $ac_path_SED_found && break 3
6021 done
6022 done
6023 done
6024 IFS=$as_save_IFS
6025 if test -z "$ac_cv_path_SED"; then
6026 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6027 fi
6028 else
6029 ac_cv_path_SED=$SED
6030 fi
6031
6032 fi
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6034 $as_echo "$ac_cv_path_SED" >&6; }
6035 SED="$ac_cv_path_SED"
6036 rm -f conftest.sed
6037
6038 test -z "$SED" && SED=sed
6039 Xsed="$SED -e 1s/^X//"
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6052 $as_echo_n "checking for fgrep... " >&6; }
6053 if ${ac_cv_path_FGREP+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6057 then ac_cv_path_FGREP="$GREP -F"
6058 else
6059 if test -z "$FGREP"; then
6060 ac_path_FGREP_found=false
6061 # Loop through the user's path and test for each of PROGNAME-LIST
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6064 do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_prog in fgrep; do
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6070 as_fn_executable_p "$ac_path_FGREP" || continue
6071 # Check for GNU ac_path_FGREP and select it if it is found.
6072 # Check for GNU $ac_path_FGREP
6073 case `"$ac_path_FGREP" --version 2>&1` in
6074 *GNU*)
6075 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6076 *)
6077 ac_count=0
6078 $as_echo_n 0123456789 >"conftest.in"
6079 while :
6080 do
6081 cat "conftest.in" "conftest.in" >"conftest.tmp"
6082 mv "conftest.tmp" "conftest.in"
6083 cp "conftest.in" "conftest.nl"
6084 $as_echo 'FGREP' >> "conftest.nl"
6085 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6087 as_fn_arith $ac_count + 1 && ac_count=$as_val
6088 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6089 # Best one so far, save it but keep looking for a better one
6090 ac_cv_path_FGREP="$ac_path_FGREP"
6091 ac_path_FGREP_max=$ac_count
6092 fi
6093 # 10*(2^10) chars as input seems more than enough
6094 test $ac_count -gt 10 && break
6095 done
6096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6097 esac
6098
6099 $ac_path_FGREP_found && break 3
6100 done
6101 done
6102 done
6103 IFS=$as_save_IFS
6104 if test -z "$ac_cv_path_FGREP"; then
6105 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6106 fi
6107 else
6108 ac_cv_path_FGREP=$FGREP
6109 fi
6110
6111 fi
6112 fi
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6114 $as_echo "$ac_cv_path_FGREP" >&6; }
6115 FGREP="$ac_cv_path_FGREP"
6116
6117
6118 test -z "$GREP" && GREP=grep
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138 # Check whether --with-gnu-ld was given.
6139 if test "${with_gnu_ld+set}" = set; then :
6140 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6141 else
6142 with_gnu_ld=no
6143 fi
6144
6145 ac_prog=ld
6146 if test yes = "$GCC"; then
6147 # Check if gcc -print-prog-name=ld gives a path.
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6149 $as_echo_n "checking for ld used by $CC... " >&6; }
6150 case $host in
6151 *-*-mingw*)
6152 # gcc leaves a trailing carriage return, which upsets mingw
6153 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6154 *)
6155 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6156 esac
6157 case $ac_prog in
6158 # Accept absolute paths.
6159 [\\/]* | ?:[\\/]*)
6160 re_direlt='/[^/][^/]*/\.\./'
6161 # Canonicalize the pathname of ld
6162 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6163 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6164 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6165 done
6166 test -z "$LD" && LD=$ac_prog
6167 ;;
6168 "")
6169 # If it fails, then pretend we aren't using GCC.
6170 ac_prog=ld
6171 ;;
6172 *)
6173 # If it is relative, then search for the first ld in PATH.
6174 with_gnu_ld=unknown
6175 ;;
6176 esac
6177 elif test yes = "$with_gnu_ld"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6179 $as_echo_n "checking for GNU ld... " >&6; }
6180 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6182 $as_echo_n "checking for non-GNU ld... " >&6; }
6183 fi
6184 if ${lt_cv_path_LD+:} false; then :
6185 $as_echo_n "(cached) " >&6
6186 else
6187 if test -z "$LD"; then
6188 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6189 for ac_dir in $PATH; do
6190 IFS=$lt_save_ifs
6191 test -z "$ac_dir" && ac_dir=.
6192 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6193 lt_cv_path_LD=$ac_dir/$ac_prog
6194 # Check to see if the program is GNU ld. I'd rather use --version,
6195 # but apparently some variants of GNU ld only accept -v.
6196 # Break only if it was the GNU/non-GNU ld that we prefer.
6197 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6198 *GNU* | *'with BFD'*)
6199 test no != "$with_gnu_ld" && break
6200 ;;
6201 *)
6202 test yes != "$with_gnu_ld" && break
6203 ;;
6204 esac
6205 fi
6206 done
6207 IFS=$lt_save_ifs
6208 else
6209 lt_cv_path_LD=$LD # Let the user override the test with a path.
6210 fi
6211 fi
6212
6213 LD=$lt_cv_path_LD
6214 if test -n "$LD"; then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6216 $as_echo "$LD" >&6; }
6217 else
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6220 fi
6221 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6223 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6224 if ${lt_cv_prog_gnu_ld+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6228 case `$LD -v 2>&1 </dev/null` in
6229 *GNU* | *'with BFD'*)
6230 lt_cv_prog_gnu_ld=yes
6231 ;;
6232 *)
6233 lt_cv_prog_gnu_ld=no
6234 ;;
6235 esac
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6238 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6239 with_gnu_ld=$lt_cv_prog_gnu_ld
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6250 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6251 if ${lt_cv_path_NM+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 if test -n "$NM"; then
6255 # Let the user override the test.
6256 lt_cv_path_NM=$NM
6257 else
6258 lt_nm_to_check=${ac_tool_prefix}nm
6259 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6260 lt_nm_to_check="$lt_nm_to_check nm"
6261 fi
6262 for lt_tmp_nm in $lt_nm_to_check; do
6263 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6264 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6265 IFS=$lt_save_ifs
6266 test -z "$ac_dir" && ac_dir=.
6267 tmp_nm=$ac_dir/$lt_tmp_nm
6268 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6269 # Check to see if the nm accepts a BSD-compat flag.
6270 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6271 # nm: unknown option "B" ignored
6272 # Tru64's nm complains that /dev/null is an invalid object file
6273 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6274 case $build_os in
6275 mingw*) lt_bad_file=conftest.nm/nofile ;;
6276 *) lt_bad_file=/dev/null ;;
6277 esac
6278 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6279 *$lt_bad_file* | *'Invalid file or object type'*)
6280 lt_cv_path_NM="$tmp_nm -B"
6281 break 2
6282 ;;
6283 *)
6284 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6285 */dev/null*)
6286 lt_cv_path_NM="$tmp_nm -p"
6287 break 2
6288 ;;
6289 *)
6290 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6291 continue # so that we can try to find one that supports BSD flags
6292 ;;
6293 esac
6294 ;;
6295 esac
6296 fi
6297 done
6298 IFS=$lt_save_ifs
6299 done
6300 : ${lt_cv_path_NM=no}
6301 fi
6302 fi
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6304 $as_echo "$lt_cv_path_NM" >&6; }
6305 if test no != "$lt_cv_path_NM"; then
6306 NM=$lt_cv_path_NM
6307 else
6308 # Didn't find any BSD compatible name lister, look for dumpbin.
6309 if test -n "$DUMPBIN"; then :
6310 # Let the user override the test.
6311 else
6312 if test -n "$ac_tool_prefix"; then
6313 for ac_prog in dumpbin "link -dump"
6314 do
6315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_DUMPBIN+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$DUMPBIN"; then
6323 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6335 fi
6336 done
6337 done
6338 IFS=$as_save_IFS
6339
6340 fi
6341 fi
6342 DUMPBIN=$ac_cv_prog_DUMPBIN
6343 if test -n "$DUMPBIN"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6345 $as_echo "$DUMPBIN" >&6; }
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6349 fi
6350
6351
6352 test -n "$DUMPBIN" && break
6353 done
6354 fi
6355 if test -z "$DUMPBIN"; then
6356 ac_ct_DUMPBIN=$DUMPBIN
6357 for ac_prog in dumpbin "link -dump"
6358 do
6359 # Extract the first word of "$ac_prog", so it can be a program name with args.
6360 set dummy $ac_prog; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 if test -n "$ac_ct_DUMPBIN"; then
6367 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380 done
6381 done
6382 IFS=$as_save_IFS
6383
6384 fi
6385 fi
6386 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6387 if test -n "$ac_ct_DUMPBIN"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6389 $as_echo "$ac_ct_DUMPBIN" >&6; }
6390 else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6393 fi
6394
6395
6396 test -n "$ac_ct_DUMPBIN" && break
6397 done
6398
6399 if test "x$ac_ct_DUMPBIN" = x; then
6400 DUMPBIN=":"
6401 else
6402 case $cross_compiling:$ac_tool_warned in
6403 yes:)
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406 ac_tool_warned=yes ;;
6407 esac
6408 DUMPBIN=$ac_ct_DUMPBIN
6409 fi
6410 fi
6411
6412 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6413 *COFF*)
6414 DUMPBIN="$DUMPBIN -symbols -headers"
6415 ;;
6416 *)
6417 DUMPBIN=:
6418 ;;
6419 esac
6420 fi
6421
6422 if test : != "$DUMPBIN"; then
6423 NM=$DUMPBIN
6424 fi
6425 fi
6426 test -z "$NM" && NM=nm
6427
6428
6429
6430
6431
6432
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6434 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6435 if ${lt_cv_nm_interface+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 lt_cv_nm_interface="BSD nm"
6439 echo "int some_variable = 0;" > conftest.$ac_ext
6440 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6441 (eval "$ac_compile" 2>conftest.err)
6442 cat conftest.err >&5
6443 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6444 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6445 cat conftest.err >&5
6446 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6447 cat conftest.out >&5
6448 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6449 lt_cv_nm_interface="MS dumpbin"
6450 fi
6451 rm -f conftest*
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6454 $as_echo "$lt_cv_nm_interface" >&6; }
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6457 $as_echo_n "checking whether ln -s works... " >&6; }
6458 LN_S=$as_ln_s
6459 if test "$LN_S" = "ln -s"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6461 $as_echo "yes" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6464 $as_echo "no, using $LN_S" >&6; }
6465 fi
6466
6467 # find the maximum length of command line arguments
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6469 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6470 if ${lt_cv_sys_max_cmd_len+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 i=0
6474 teststring=ABCD
6475
6476 case $build_os in
6477 msdosdjgpp*)
6478 # On DJGPP, this test can blow up pretty badly due to problems in libc
6479 # (any single argument exceeding 2000 bytes causes a buffer overrun
6480 # during glob expansion). Even if it were fixed, the result of this
6481 # check would be larger than it should be.
6482 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6483 ;;
6484
6485 gnu*)
6486 # Under GNU Hurd, this test is not required because there is
6487 # no limit to the length of command line arguments.
6488 # Libtool will interpret -1 as no limit whatsoever
6489 lt_cv_sys_max_cmd_len=-1;
6490 ;;
6491
6492 cygwin* | mingw* | cegcc*)
6493 # On Win9x/ME, this test blows up -- it succeeds, but takes
6494 # about 5 minutes as the teststring grows exponentially.
6495 # Worse, since 9x/ME are not pre-emptively multitasking,
6496 # you end up with a "frozen" computer, even though with patience
6497 # the test eventually succeeds (with a max line length of 256k).
6498 # Instead, let's just punt: use the minimum linelength reported by
6499 # all of the supported platforms: 8192 (on NT/2K/XP).
6500 lt_cv_sys_max_cmd_len=8192;
6501 ;;
6502
6503 mint*)
6504 # On MiNT this can take a long time and run out of memory.
6505 lt_cv_sys_max_cmd_len=8192;
6506 ;;
6507
6508 amigaos*)
6509 # On AmigaOS with pdksh, this test takes hours, literally.
6510 # So we just punt and use a minimum line length of 8192.
6511 lt_cv_sys_max_cmd_len=8192;
6512 ;;
6513
6514 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6515 # This has been around since 386BSD, at least. Likely further.
6516 if test -x /sbin/sysctl; then
6517 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6518 elif test -x /usr/sbin/sysctl; then
6519 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6520 else
6521 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6522 fi
6523 # And add a safety zone
6524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6526 ;;
6527
6528 interix*)
6529 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6530 lt_cv_sys_max_cmd_len=196608
6531 ;;
6532
6533 os2*)
6534 # The test takes a long time on OS/2.
6535 lt_cv_sys_max_cmd_len=8192
6536 ;;
6537
6538 osf*)
6539 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6540 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6541 # nice to cause kernel panics so lets avoid the loop below.
6542 # First set a reasonable default.
6543 lt_cv_sys_max_cmd_len=16384
6544 #
6545 if test -x /sbin/sysconfig; then
6546 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6547 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6548 esac
6549 fi
6550 ;;
6551 sco3.2v5*)
6552 lt_cv_sys_max_cmd_len=102400
6553 ;;
6554 sysv5* | sco5v6* | sysv4.2uw2*)
6555 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6556 if test -n "$kargmax"; then
6557 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6558 else
6559 lt_cv_sys_max_cmd_len=32768
6560 fi
6561 ;;
6562 *)
6563 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6564 if test -n "$lt_cv_sys_max_cmd_len" && \
6565 test undefined != "$lt_cv_sys_max_cmd_len"; then
6566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6568 else
6569 # Make teststring a little bigger before we do anything with it.
6570 # a 1K string should be a reasonable start.
6571 for i in 1 2 3 4 5 6 7 8; do
6572 teststring=$teststring$teststring
6573 done
6574 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6575 # If test is not a shell built-in, we'll probably end up computing a
6576 # maximum length that is only half of the actual maximum length, but
6577 # we can't tell.
6578 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6579 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6580 test 17 != "$i" # 1/2 MB should be enough
6581 do
6582 i=`expr $i + 1`
6583 teststring=$teststring$teststring
6584 done
6585 # Only check the string length outside the loop.
6586 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6587 teststring=
6588 # Add a significant safety factor because C++ compilers can tack on
6589 # massive amounts of additional arguments before passing them to the
6590 # linker. It appears as though 1/2 is a usable value.
6591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6592 fi
6593 ;;
6594 esac
6595
6596 fi
6597
6598 if test -n "$lt_cv_sys_max_cmd_len"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6600 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6603 $as_echo "none" >&6; }
6604 fi
6605 max_cmd_len=$lt_cv_sys_max_cmd_len
6606
6607
6608
6609
6610
6611
6612 : ${CP="cp -f"}
6613 : ${MV="mv -f"}
6614 : ${RM="rm -f"}
6615
6616 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6617 lt_unset=unset
6618 else
6619 lt_unset=false
6620 fi
6621
6622
6623
6624
6625
6626 # test EBCDIC or ASCII
6627 case `echo X|tr X '\101'` in
6628 A) # ASCII based system
6629 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6630 lt_SP2NL='tr \040 \012'
6631 lt_NL2SP='tr \015\012 \040\040'
6632 ;;
6633 *) # EBCDIC based system
6634 lt_SP2NL='tr \100 \n'
6635 lt_NL2SP='tr \r\n \100\100'
6636 ;;
6637 esac
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6648 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6649 if ${lt_cv_to_host_file_cmd+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 case $host in
6653 *-*-mingw* )
6654 case $build in
6655 *-*-mingw* ) # actually msys
6656 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6657 ;;
6658 *-*-cygwin* )
6659 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6660 ;;
6661 * ) # otherwise, assume *nix
6662 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6663 ;;
6664 esac
6665 ;;
6666 *-*-cygwin* )
6667 case $build in
6668 *-*-mingw* ) # actually msys
6669 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6670 ;;
6671 *-*-cygwin* )
6672 lt_cv_to_host_file_cmd=func_convert_file_noop
6673 ;;
6674 * ) # otherwise, assume *nix
6675 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6676 ;;
6677 esac
6678 ;;
6679 * ) # unhandled hosts (and "normal" native builds)
6680 lt_cv_to_host_file_cmd=func_convert_file_noop
6681 ;;
6682 esac
6683
6684 fi
6685
6686 to_host_file_cmd=$lt_cv_to_host_file_cmd
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6688 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6689
6690
6691
6692
6693
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6695 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6696 if ${lt_cv_to_tool_file_cmd+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 #assume ordinary cross tools, or native build.
6700 lt_cv_to_tool_file_cmd=func_convert_file_noop
6701 case $host in
6702 *-*-mingw* )
6703 case $build in
6704 *-*-mingw* ) # actually msys
6705 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6706 ;;
6707 esac
6708 ;;
6709 esac
6710
6711 fi
6712
6713 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6715 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6716
6717
6718
6719
6720
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6722 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6723 if ${lt_cv_ld_reload_flag+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 lt_cv_ld_reload_flag='-r'
6727 fi
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6729 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6730 reload_flag=$lt_cv_ld_reload_flag
6731 case $reload_flag in
6732 "" | " "*) ;;
6733 *) reload_flag=" $reload_flag" ;;
6734 esac
6735 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6736 case $host_os in
6737 cygwin* | mingw* | pw32* | cegcc*)
6738 if test yes != "$GCC"; then
6739 reload_cmds=false
6740 fi
6741 ;;
6742 darwin*)
6743 if test yes = "$GCC"; then
6744 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6745 else
6746 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6747 fi
6748 ;;
6749 esac
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if ${ac_cv_prog_OBJDUMP+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 if test -n "$OBJDUMP"; then
6768 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 OBJDUMP=$ac_cv_prog_OBJDUMP
6788 if test -n "$OBJDUMP"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6790 $as_echo "$OBJDUMP" >&6; }
6791 else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795
6796
6797 fi
6798 if test -z "$ac_cv_prog_OBJDUMP"; then
6799 ac_ct_OBJDUMP=$OBJDUMP
6800 # Extract the first word of "objdump", so it can be a program name with args.
6801 set dummy objdump; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$ac_ct_OBJDUMP"; then
6808 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6828 if test -n "$ac_ct_OBJDUMP"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6830 $as_echo "$ac_ct_OBJDUMP" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836 if test "x$ac_ct_OBJDUMP" = x; then
6837 OBJDUMP="false"
6838 else
6839 case $cross_compiling:$ac_tool_warned in
6840 yes:)
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845 OBJDUMP=$ac_ct_OBJDUMP
6846 fi
6847 else
6848 OBJDUMP="$ac_cv_prog_OBJDUMP"
6849 fi
6850
6851 test -z "$OBJDUMP" && OBJDUMP=objdump
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6862 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6863 if ${lt_cv_deplibs_check_method+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 lt_cv_file_magic_cmd='$MAGIC_CMD'
6867 lt_cv_file_magic_test_file=
6868 lt_cv_deplibs_check_method='unknown'
6869 # Need to set the preceding variable on all platforms that support
6870 # interlibrary dependencies.
6871 # 'none' -- dependencies not supported.
6872 # 'unknown' -- same as none, but documents that we really don't know.
6873 # 'pass_all' -- all dependencies passed with no checks.
6874 # 'test_compile' -- check by making test program.
6875 # 'file_magic [[regex]]' -- check by looking for files in library path
6876 # that responds to the $file_magic_cmd with a given extended regex.
6877 # If you have 'file' or equivalent on your system and you're not sure
6878 # whether 'pass_all' will *always* work, you probably want this one.
6879
6880 case $host_os in
6881 aix[4-9]*)
6882 lt_cv_deplibs_check_method=pass_all
6883 ;;
6884
6885 beos*)
6886 lt_cv_deplibs_check_method=pass_all
6887 ;;
6888
6889 bsdi[45]*)
6890 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6891 lt_cv_file_magic_cmd='/usr/bin/file -L'
6892 lt_cv_file_magic_test_file=/shlib/libc.so
6893 ;;
6894
6895 cygwin*)
6896 # func_win32_libid is a shell function defined in ltmain.sh
6897 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6898 lt_cv_file_magic_cmd='func_win32_libid'
6899 ;;
6900
6901 mingw* | pw32*)
6902 # Base MSYS/MinGW do not provide the 'file' command needed by
6903 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6904 # unless we find 'file', for example because we are cross-compiling.
6905 if ( file / ) >/dev/null 2>&1; then
6906 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6907 lt_cv_file_magic_cmd='func_win32_libid'
6908 else
6909 # Keep this pattern in sync with the one in func_win32_libid.
6910 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6911 lt_cv_file_magic_cmd='$OBJDUMP -f'
6912 fi
6913 ;;
6914
6915 cegcc*)
6916 # use the weaker test based on 'objdump'. See mingw*.
6917 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6918 lt_cv_file_magic_cmd='$OBJDUMP -f'
6919 ;;
6920
6921 darwin* | rhapsody*)
6922 lt_cv_deplibs_check_method=pass_all
6923 ;;
6924
6925 freebsd* | dragonfly*)
6926 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6927 case $host_cpu in
6928 i*86 )
6929 # Not sure whether the presence of OpenBSD here was a mistake.
6930 # Let's accept both of them until this is cleared up.
6931 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6932 lt_cv_file_magic_cmd=/usr/bin/file
6933 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6934 ;;
6935 esac
6936 else
6937 lt_cv_deplibs_check_method=pass_all
6938 fi
6939 ;;
6940
6941 haiku*)
6942 lt_cv_deplibs_check_method=pass_all
6943 ;;
6944
6945 hpux10.20* | hpux11*)
6946 lt_cv_file_magic_cmd=/usr/bin/file
6947 case $host_cpu in
6948 ia64*)
6949 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6950 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6951 ;;
6952 hppa*64*)
6953 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]'
6954 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6955 ;;
6956 *)
6957 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6958 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6959 ;;
6960 esac
6961 ;;
6962
6963 interix[3-9]*)
6964 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6966 ;;
6967
6968 irix5* | irix6* | nonstopux*)
6969 case $LD in
6970 *-32|*"-32 ") libmagic=32-bit;;
6971 *-n32|*"-n32 ") libmagic=N32;;
6972 *-64|*"-64 ") libmagic=64-bit;;
6973 *) libmagic=never-match;;
6974 esac
6975 lt_cv_deplibs_check_method=pass_all
6976 ;;
6977
6978 # This must be glibc/ELF.
6979 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6980 lt_cv_deplibs_check_method=pass_all
6981 ;;
6982
6983 netbsd* | netbsdelf*-gnu)
6984 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6986 else
6987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6988 fi
6989 ;;
6990
6991 newos6*)
6992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6993 lt_cv_file_magic_cmd=/usr/bin/file
6994 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6995 ;;
6996
6997 *nto* | *qnx*)
6998 lt_cv_deplibs_check_method=pass_all
6999 ;;
7000
7001 openbsd* | bitrig*)
7002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7004 else
7005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7006 fi
7007 ;;
7008
7009 osf3* | osf4* | osf5*)
7010 lt_cv_deplibs_check_method=pass_all
7011 ;;
7012
7013 rdos*)
7014 lt_cv_deplibs_check_method=pass_all
7015 ;;
7016
7017 solaris*)
7018 lt_cv_deplibs_check_method=pass_all
7019 ;;
7020
7021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7022 lt_cv_deplibs_check_method=pass_all
7023 ;;
7024
7025 sysv4 | sysv4.3*)
7026 case $host_vendor in
7027 motorola)
7028 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]'
7029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7030 ;;
7031 ncr)
7032 lt_cv_deplibs_check_method=pass_all
7033 ;;
7034 sequent)
7035 lt_cv_file_magic_cmd='/bin/file'
7036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7037 ;;
7038 sni)
7039 lt_cv_file_magic_cmd='/bin/file'
7040 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7041 lt_cv_file_magic_test_file=/lib/libc.so
7042 ;;
7043 siemens)
7044 lt_cv_deplibs_check_method=pass_all
7045 ;;
7046 pc)
7047 lt_cv_deplibs_check_method=pass_all
7048 ;;
7049 esac
7050 ;;
7051
7052 tpf*)
7053 lt_cv_deplibs_check_method=pass_all
7054 ;;
7055 os2*)
7056 lt_cv_deplibs_check_method=pass_all
7057 ;;
7058 esac
7059
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7062 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7063
7064 file_magic_glob=
7065 want_nocaseglob=no
7066 if test "$build" = "$host"; then
7067 case $host_os in
7068 mingw* | pw32*)
7069 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7070 want_nocaseglob=yes
7071 else
7072 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7073 fi
7074 ;;
7075 esac
7076 fi
7077
7078 file_magic_cmd=$lt_cv_file_magic_cmd
7079 deplibs_check_method=$lt_cv_deplibs_check_method
7080 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103 if test -n "$ac_tool_prefix"; then
7104 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7105 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_DLLTOOL+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 if test -n "$DLLTOOL"; then
7112 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125 done
7126 done
7127 IFS=$as_save_IFS
7128
7129 fi
7130 fi
7131 DLLTOOL=$ac_cv_prog_DLLTOOL
7132 if test -n "$DLLTOOL"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7134 $as_echo "$DLLTOOL" >&6; }
7135 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7138 fi
7139
7140
7141 fi
7142 if test -z "$ac_cv_prog_DLLTOOL"; then
7143 ac_ct_DLLTOOL=$DLLTOOL
7144 # Extract the first word of "dlltool", so it can be a program name with args.
7145 set dummy dlltool; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 if test -n "$ac_ct_DLLTOOL"; then
7152 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7164 fi
7165 done
7166 done
7167 IFS=$as_save_IFS
7168
7169 fi
7170 fi
7171 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7172 if test -n "$ac_ct_DLLTOOL"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7174 $as_echo "$ac_ct_DLLTOOL" >&6; }
7175 else
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7178 fi
7179
7180 if test "x$ac_ct_DLLTOOL" = x; then
7181 DLLTOOL="false"
7182 else
7183 case $cross_compiling:$ac_tool_warned in
7184 yes:)
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7187 ac_tool_warned=yes ;;
7188 esac
7189 DLLTOOL=$ac_ct_DLLTOOL
7190 fi
7191 else
7192 DLLTOOL="$ac_cv_prog_DLLTOOL"
7193 fi
7194
7195 test -z "$DLLTOOL" && DLLTOOL=dlltool
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7207 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7208 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 lt_cv_sharedlib_from_linklib_cmd='unknown'
7212
7213 case $host_os in
7214 cygwin* | mingw* | pw32* | cegcc*)
7215 # two different shell functions defined in ltmain.sh;
7216 # decide which one to use based on capabilities of $DLLTOOL
7217 case `$DLLTOOL --help 2>&1` in
7218 *--identify-strict*)
7219 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7220 ;;
7221 *)
7222 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7223 ;;
7224 esac
7225 ;;
7226 *)
7227 # fallback: assume linklib IS sharedlib
7228 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7229 ;;
7230 esac
7231
7232 fi
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7234 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7235 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7236 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7237
7238
7239
7240
7241
7242
7243
7244 if test -n "$ac_tool_prefix"; then
7245 for ac_prog in ar
7246 do
7247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_AR+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 if test -n "$AR"; then
7255 ac_cv_prog_AR="$AR" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 break 2
7267 fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272 fi
7273 fi
7274 AR=$ac_cv_prog_AR
7275 if test -n "$AR"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7277 $as_echo "$AR" >&6; }
7278 else
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283
7284 test -n "$AR" && break
7285 done
7286 fi
7287 if test -z "$AR"; then
7288 ac_ct_AR=$AR
7289 for ac_prog in ar
7290 do
7291 # Extract the first word of "$ac_prog", so it can be a program name with args.
7292 set dummy $ac_prog; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 if test -n "$ac_ct_AR"; then
7299 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_ac_ct_AR="$ac_prog"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7311 fi
7312 done
7313 done
7314 IFS=$as_save_IFS
7315
7316 fi
7317 fi
7318 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7319 if test -n "$ac_ct_AR"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7321 $as_echo "$ac_ct_AR" >&6; }
7322 else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7325 fi
7326
7327
7328 test -n "$ac_ct_AR" && break
7329 done
7330
7331 if test "x$ac_ct_AR" = x; then
7332 AR="false"
7333 else
7334 case $cross_compiling:$ac_tool_warned in
7335 yes:)
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7338 ac_tool_warned=yes ;;
7339 esac
7340 AR=$ac_ct_AR
7341 fi
7342 fi
7343
7344 : ${AR=ar}
7345 : ${AR_FLAGS=cru}
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7358 $as_echo_n "checking for archiver @FILE support... " >&6; }
7359 if ${lt_cv_ar_at_file+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 lt_cv_ar_at_file=no
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365
7366 int
7367 main ()
7368 {
7369
7370 ;
7371 return 0;
7372 }
7373 _ACEOF
7374 if ac_fn_c_try_compile "$LINENO"; then :
7375 echo conftest.$ac_objext > conftest.lst
7376 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7378 (eval $lt_ar_try) 2>&5
7379 ac_status=$?
7380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7381 test $ac_status = 0; }
7382 if test 0 -eq "$ac_status"; then
7383 # Ensure the archiver fails upon bogus file names.
7384 rm -f conftest.$ac_objext libconftest.a
7385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7386 (eval $lt_ar_try) 2>&5
7387 ac_status=$?
7388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7389 test $ac_status = 0; }
7390 if test 0 -ne "$ac_status"; then
7391 lt_cv_ar_at_file=@
7392 fi
7393 fi
7394 rm -f conftest.* libconftest.a
7395
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398
7399 fi
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7401 $as_echo "$lt_cv_ar_at_file" >&6; }
7402
7403 if test no = "$lt_cv_ar_at_file"; then
7404 archiver_list_spec=
7405 else
7406 archiver_list_spec=$lt_cv_ar_at_file
7407 fi
7408
7409
7410
7411
7412
7413
7414
7415 if test -n "$ac_tool_prefix"; then
7416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}strip; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_prog_STRIP+:} false; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 if test -n "$STRIP"; then
7424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7436 fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 STRIP=$ac_cv_prog_STRIP
7444 if test -n "$STRIP"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7446 $as_echo "$STRIP" >&6; }
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452
7453 fi
7454 if test -z "$ac_cv_prog_STRIP"; then
7455 ac_ct_STRIP=$STRIP
7456 # Extract the first word of "strip", so it can be a program name with args.
7457 set dummy strip; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 if test -n "$ac_ct_STRIP"; then
7464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_prog_ac_ct_STRIP="strip"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7484 if test -n "$ac_ct_STRIP"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7486 $as_echo "$ac_ct_STRIP" >&6; }
7487 else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491
7492 if test "x$ac_ct_STRIP" = x; then
7493 STRIP=":"
7494 else
7495 case $cross_compiling:$ac_tool_warned in
7496 yes:)
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7499 ac_tool_warned=yes ;;
7500 esac
7501 STRIP=$ac_ct_STRIP
7502 fi
7503 else
7504 STRIP="$ac_cv_prog_STRIP"
7505 fi
7506
7507 test -z "$STRIP" && STRIP=:
7508
7509
7510
7511
7512
7513
7514 if test -n "$ac_tool_prefix"; then
7515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_RANLIB+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 if test -n "$RANLIB"; then
7523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7535 fi
7536 done
7537 done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 RANLIB=$ac_cv_prog_RANLIB
7543 if test -n "$RANLIB"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7545 $as_echo "$RANLIB" >&6; }
7546 else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551
7552 fi
7553 if test -z "$ac_cv_prog_RANLIB"; then
7554 ac_ct_RANLIB=$RANLIB
7555 # Extract the first word of "ranlib", so it can be a program name with args.
7556 set dummy ranlib; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 if test -n "$ac_ct_RANLIB"; then
7563 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572 ac_cv_prog_ac_ct_RANLIB="ranlib"
7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7575 fi
7576 done
7577 done
7578 IFS=$as_save_IFS
7579
7580 fi
7581 fi
7582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7583 if test -n "$ac_ct_RANLIB"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7585 $as_echo "$ac_ct_RANLIB" >&6; }
7586 else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7589 fi
7590
7591 if test "x$ac_ct_RANLIB" = x; then
7592 RANLIB=":"
7593 else
7594 case $cross_compiling:$ac_tool_warned in
7595 yes:)
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7598 ac_tool_warned=yes ;;
7599 esac
7600 RANLIB=$ac_ct_RANLIB
7601 fi
7602 else
7603 RANLIB="$ac_cv_prog_RANLIB"
7604 fi
7605
7606 test -z "$RANLIB" && RANLIB=:
7607
7608
7609
7610
7611
7612
7613 # Determine commands to create old-style static archives.
7614 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7615 old_postinstall_cmds='chmod 644 $oldlib'
7616 old_postuninstall_cmds=
7617
7618 if test -n "$RANLIB"; then
7619 case $host_os in
7620 bitrig* | openbsd*)
7621 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7622 ;;
7623 *)
7624 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7625 ;;
7626 esac
7627 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7628 fi
7629
7630 case $host_os in
7631 darwin*)
7632 lock_old_archive_extraction=yes ;;
7633 *)
7634 lock_old_archive_extraction=no ;;
7635 esac
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 # If no C compiler was specified, use CC.
7676 LTCC=${LTCC-"$CC"}
7677
7678 # If no C compiler flags were specified, use CFLAGS.
7679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7680
7681 # Allow CC to be a program name with arguments.
7682 compiler=$CC
7683
7684
7685 # Check for command to grab the raw symbol name followed by C symbol from nm.
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7687 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7688 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691
7692 # These are sane defaults that work on at least a few old systems.
7693 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7694
7695 # Character class describing NM global symbol codes.
7696 symcode='[BCDEGRST]'
7697
7698 # Regexp to match symbols that can be accessed directly from C.
7699 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7700
7701 # Define system-specific variables.
7702 case $host_os in
7703 aix*)
7704 symcode='[BCDT]'
7705 ;;
7706 cygwin* | mingw* | pw32* | cegcc*)
7707 symcode='[ABCDGISTW]'
7708 ;;
7709 hpux*)
7710 if test ia64 = "$host_cpu"; then
7711 symcode='[ABCDEGRST]'
7712 fi
7713 ;;
7714 irix* | nonstopux*)
7715 symcode='[BCDEGRST]'
7716 ;;
7717 osf*)
7718 symcode='[BCDEGQRST]'
7719 ;;
7720 solaris*)
7721 symcode='[BDRT]'
7722 ;;
7723 sco3.2v5*)
7724 symcode='[DT]'
7725 ;;
7726 sysv4.2uw2*)
7727 symcode='[DT]'
7728 ;;
7729 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7730 symcode='[ABDT]'
7731 ;;
7732 sysv4)
7733 symcode='[DFNSTU]'
7734 ;;
7735 esac
7736
7737 # If we're using GNU nm, then use its standard symbol codes.
7738 case `$NM -V 2>&1` in
7739 *GNU* | *'with BFD'*)
7740 symcode='[ABCDGIRSTW]' ;;
7741 esac
7742
7743 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7744 # Gets list of data symbols to import.
7745 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7746 # Adjust the below global symbol transforms to fixup imported variables.
7747 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7748 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7749 lt_c_name_lib_hook="\
7750 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7751 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7752 else
7753 # Disable hooks by default.
7754 lt_cv_sys_global_symbol_to_import=
7755 lt_cdecl_hook=
7756 lt_c_name_hook=
7757 lt_c_name_lib_hook=
7758 fi
7759
7760 # Transform an extracted symbol line into a proper C declaration.
7761 # Some systems (esp. on ia64) link data and code symbols differently,
7762 # so use this general approach.
7763 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7764 $lt_cdecl_hook\
7765 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7766 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7767
7768 # Transform an extracted symbol line into symbol name and symbol address
7769 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7770 $lt_c_name_hook\
7771 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7772 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7773
7774 # Transform an extracted symbol line into symbol name with lib prefix and
7775 # symbol address.
7776 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7777 $lt_c_name_lib_hook\
7778 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7779 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7780 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7781
7782 # Handle CRLF in mingw tool chain
7783 opt_cr=
7784 case $build_os in
7785 mingw*)
7786 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7787 ;;
7788 esac
7789
7790 # Try without a prefix underscore, then with it.
7791 for ac_symprfx in "" "_"; do
7792
7793 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7794 symxfrm="\\1 $ac_symprfx\\2 \\2"
7795
7796 # Write the raw and C identifiers.
7797 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7798 # Fake it for dumpbin and say T for any non-static function,
7799 # D for any global variable and I for any imported variable.
7800 # Also find C++ and __fastcall symbols from MSVC++,
7801 # which start with @ or ?.
7802 lt_cv_sys_global_symbol_pipe="$AWK '"\
7803 " {last_section=section; section=\$ 3};"\
7804 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7805 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7806 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7807 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7808 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7809 " \$ 0!~/External *\|/{next};"\
7810 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7811 " {if(hide[section]) next};"\
7812 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7813 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7814 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7815 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7816 " ' prfx=^$ac_symprfx"
7817 else
7818 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7819 fi
7820 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7821
7822 # Check to see that the pipe works correctly.
7823 pipe_works=no
7824
7825 rm -f conftest*
7826 cat > conftest.$ac_ext <<_LT_EOF
7827 #ifdef __cplusplus
7828 extern "C" {
7829 #endif
7830 char nm_test_var;
7831 void nm_test_func(void);
7832 void nm_test_func(void){}
7833 #ifdef __cplusplus
7834 }
7835 #endif
7836 int main(){nm_test_var='a';nm_test_func();return(0);}
7837 _LT_EOF
7838
7839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7840 (eval $ac_compile) 2>&5
7841 ac_status=$?
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; }; then
7844 # Now try to grab the symbols.
7845 nlist=conftest.nm
7846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7847 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7848 ac_status=$?
7849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7850 test $ac_status = 0; } && test -s "$nlist"; then
7851 # Try sorting and uniquifying the output.
7852 if sort "$nlist" | uniq > "$nlist"T; then
7853 mv -f "$nlist"T "$nlist"
7854 else
7855 rm -f "$nlist"T
7856 fi
7857
7858 # Make sure that we snagged all the symbols we need.
7859 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7860 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7861 cat <<_LT_EOF > conftest.$ac_ext
7862 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7863 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7864 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7865 relocations are performed -- see ld's documentation on pseudo-relocs. */
7866 # define LT_DLSYM_CONST
7867 #elif defined __osf__
7868 /* This system does not cope well with relocations in const data. */
7869 # define LT_DLSYM_CONST
7870 #else
7871 # define LT_DLSYM_CONST const
7872 #endif
7873
7874 #ifdef __cplusplus
7875 extern "C" {
7876 #endif
7877
7878 _LT_EOF
7879 # Now generate the symbol file.
7880 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7881
7882 cat <<_LT_EOF >> conftest.$ac_ext
7883
7884 /* The mapping between symbol names and symbols. */
7885 LT_DLSYM_CONST struct {
7886 const char *name;
7887 void *address;
7888 }
7889 lt__PROGRAM__LTX_preloaded_symbols[] =
7890 {
7891 { "@PROGRAM@", (void *) 0 },
7892 _LT_EOF
7893 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7894 cat <<\_LT_EOF >> conftest.$ac_ext
7895 {0, (void *) 0}
7896 };
7897
7898 /* This works around a problem in FreeBSD linker */
7899 #ifdef FREEBSD_WORKAROUND
7900 static const void *lt_preloaded_setup() {
7901 return lt__PROGRAM__LTX_preloaded_symbols;
7902 }
7903 #endif
7904
7905 #ifdef __cplusplus
7906 }
7907 #endif
7908 _LT_EOF
7909 # Now try linking the two files.
7910 mv conftest.$ac_objext conftstm.$ac_objext
7911 lt_globsym_save_LIBS=$LIBS
7912 lt_globsym_save_CFLAGS=$CFLAGS
7913 LIBS=conftstm.$ac_objext
7914 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7916 (eval $ac_link) 2>&5
7917 ac_status=$?
7918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7919 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7920 pipe_works=yes
7921 fi
7922 LIBS=$lt_globsym_save_LIBS
7923 CFLAGS=$lt_globsym_save_CFLAGS
7924 else
7925 echo "cannot find nm_test_func in $nlist" >&5
7926 fi
7927 else
7928 echo "cannot find nm_test_var in $nlist" >&5
7929 fi
7930 else
7931 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7932 fi
7933 else
7934 echo "$progname: failed program was:" >&5
7935 cat conftest.$ac_ext >&5
7936 fi
7937 rm -rf conftest* conftst*
7938
7939 # Do not use the global_symbol_pipe unless it works.
7940 if test yes = "$pipe_works"; then
7941 break
7942 else
7943 lt_cv_sys_global_symbol_pipe=
7944 fi
7945 done
7946
7947 fi
7948
7949 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7950 lt_cv_sys_global_symbol_to_cdecl=
7951 fi
7952 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7954 $as_echo "failed" >&6; }
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7957 $as_echo "ok" >&6; }
7958 fi
7959
7960 # Response file support.
7961 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7962 nm_file_list_spec='@'
7963 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7964 nm_file_list_spec='@'
7965 fi
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8004 $as_echo_n "checking for sysroot... " >&6; }
8005
8006 # Check whether --with-sysroot was given.
8007 if test "${with_sysroot+set}" = set; then :
8008 withval=$with_sysroot;
8009 else
8010 with_sysroot=no
8011 fi
8012
8013
8014 lt_sysroot=
8015 case $with_sysroot in #(
8016 yes)
8017 if test yes = "$GCC"; then
8018 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8019 fi
8020 ;; #(
8021 /*)
8022 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8023 ;; #(
8024 no|'')
8025 ;; #(
8026 *)
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8028 $as_echo "$with_sysroot" >&6; }
8029 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8030 ;;
8031 esac
8032
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8034 $as_echo "${lt_sysroot:-no}" >&6; }
8035
8036
8037
8038
8039
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8041 $as_echo_n "checking for a working dd... " >&6; }
8042 if ${ac_cv_path_lt_DD+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 printf 0123456789abcdef0123456789abcdef >conftest.i
8046 cat conftest.i conftest.i >conftest2.i
8047 : ${lt_DD:=$DD}
8048 if test -z "$lt_DD"; then
8049 ac_path_lt_DD_found=false
8050 # Loop through the user's path and test for each of PROGNAME-LIST
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_prog in dd; do
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8059 as_fn_executable_p "$ac_path_lt_DD" || continue
8060 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8061 cmp -s conftest.i conftest.out \
8062 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8063 fi
8064 $ac_path_lt_DD_found && break 3
8065 done
8066 done
8067 done
8068 IFS=$as_save_IFS
8069 if test -z "$ac_cv_path_lt_DD"; then
8070 :
8071 fi
8072 else
8073 ac_cv_path_lt_DD=$lt_DD
8074 fi
8075
8076 rm -f conftest.i conftest2.i conftest.out
8077 fi
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8079 $as_echo "$ac_cv_path_lt_DD" >&6; }
8080
8081
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8083 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8084 if ${lt_cv_truncate_bin+:} false; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 printf 0123456789abcdef0123456789abcdef >conftest.i
8088 cat conftest.i conftest.i >conftest2.i
8089 lt_cv_truncate_bin=
8090 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8091 cmp -s conftest.i conftest.out \
8092 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8093 fi
8094 rm -f conftest.i conftest2.i conftest.out
8095 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8096 fi
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8098 $as_echo "$lt_cv_truncate_bin" >&6; }
8099
8100
8101
8102
8103
8104
8105
8106 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8107 func_cc_basename ()
8108 {
8109 for cc_temp in $*""; do
8110 case $cc_temp in
8111 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8112 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8113 \-*) ;;
8114 *) break;;
8115 esac
8116 done
8117 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8118 }
8119
8120 # Check whether --enable-libtool-lock was given.
8121 if test "${enable_libtool_lock+set}" = set; then :
8122 enableval=$enable_libtool_lock;
8123 fi
8124
8125 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8126
8127 # Some flags need to be propagated to the compiler or linker for good
8128 # libtool support.
8129 case $host in
8130 ia64-*-hpux*)
8131 # Find out what ABI is being produced by ac_compile, and set mode
8132 # options accordingly.
8133 echo 'int i;' > conftest.$ac_ext
8134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8135 (eval $ac_compile) 2>&5
8136 ac_status=$?
8137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8138 test $ac_status = 0; }; then
8139 case `/usr/bin/file conftest.$ac_objext` in
8140 *ELF-32*)
8141 HPUX_IA64_MODE=32
8142 ;;
8143 *ELF-64*)
8144 HPUX_IA64_MODE=64
8145 ;;
8146 esac
8147 fi
8148 rm -rf conftest*
8149 ;;
8150 *-*-irix6*)
8151 # Find out what ABI is being produced by ac_compile, and set linker
8152 # options accordingly.
8153 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8155 (eval $ac_compile) 2>&5
8156 ac_status=$?
8157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8158 test $ac_status = 0; }; then
8159 if test yes = "$lt_cv_prog_gnu_ld"; then
8160 case `/usr/bin/file conftest.$ac_objext` in
8161 *32-bit*)
8162 LD="${LD-ld} -melf32bsmip"
8163 ;;
8164 *N32*)
8165 LD="${LD-ld} -melf32bmipn32"
8166 ;;
8167 *64-bit*)
8168 LD="${LD-ld} -melf64bmip"
8169 ;;
8170 esac
8171 else
8172 case `/usr/bin/file conftest.$ac_objext` in
8173 *32-bit*)
8174 LD="${LD-ld} -32"
8175 ;;
8176 *N32*)
8177 LD="${LD-ld} -n32"
8178 ;;
8179 *64-bit*)
8180 LD="${LD-ld} -64"
8181 ;;
8182 esac
8183 fi
8184 fi
8185 rm -rf conftest*
8186 ;;
8187
8188 mips64*-*linux*)
8189 # Find out what ABI is being produced by ac_compile, and set linker
8190 # options accordingly.
8191 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8193 (eval $ac_compile) 2>&5
8194 ac_status=$?
8195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8196 test $ac_status = 0; }; then
8197 emul=elf
8198 case `/usr/bin/file conftest.$ac_objext` in
8199 *32-bit*)
8200 emul="${emul}32"
8201 ;;
8202 *64-bit*)
8203 emul="${emul}64"
8204 ;;
8205 esac
8206 case `/usr/bin/file conftest.$ac_objext` in
8207 *MSB*)
8208 emul="${emul}btsmip"
8209 ;;
8210 *LSB*)
8211 emul="${emul}ltsmip"
8212 ;;
8213 esac
8214 case `/usr/bin/file conftest.$ac_objext` in
8215 *N32*)
8216 emul="${emul}n32"
8217 ;;
8218 esac
8219 LD="${LD-ld} -m $emul"
8220 fi
8221 rm -rf conftest*
8222 ;;
8223
8224 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8225 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8226 # Find out what ABI is being produced by ac_compile, and set linker
8227 # options accordingly. Note that the listed cases only cover the
8228 # situations where additional linker options are needed (such as when
8229 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8230 # vice versa); the common cases where no linker options are needed do
8231 # not appear in the list.
8232 echo 'int i;' > conftest.$ac_ext
8233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8234 (eval $ac_compile) 2>&5
8235 ac_status=$?
8236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8237 test $ac_status = 0; }; then
8238 case `/usr/bin/file conftest.o` in
8239 *32-bit*)
8240 case $host in
8241 x86_64-*kfreebsd*-gnu)
8242 LD="${LD-ld} -m elf_i386_fbsd"
8243 ;;
8244 x86_64-*linux*)
8245 case `/usr/bin/file conftest.o` in
8246 *x86-64*)
8247 LD="${LD-ld} -m elf32_x86_64"
8248 ;;
8249 *)
8250 LD="${LD-ld} -m elf_i386"
8251 ;;
8252 esac
8253 ;;
8254 powerpc64le-*linux*)
8255 LD="${LD-ld} -m elf32lppclinux"
8256 ;;
8257 powerpc64-*linux*)
8258 LD="${LD-ld} -m elf32ppclinux"
8259 ;;
8260 s390x-*linux*)
8261 LD="${LD-ld} -m elf_s390"
8262 ;;
8263 sparc64-*linux*)
8264 LD="${LD-ld} -m elf32_sparc"
8265 ;;
8266 esac
8267 ;;
8268 *64-bit*)
8269 case $host in
8270 x86_64-*kfreebsd*-gnu)
8271 LD="${LD-ld} -m elf_x86_64_fbsd"
8272 ;;
8273 x86_64-*linux*)
8274 LD="${LD-ld} -m elf_x86_64"
8275 ;;
8276 powerpcle-*linux*)
8277 LD="${LD-ld} -m elf64lppc"
8278 ;;
8279 powerpc-*linux*)
8280 LD="${LD-ld} -m elf64ppc"
8281 ;;
8282 s390*-*linux*|s390*-*tpf*)
8283 LD="${LD-ld} -m elf64_s390"
8284 ;;
8285 sparc*-*linux*)
8286 LD="${LD-ld} -m elf64_sparc"
8287 ;;
8288 esac
8289 ;;
8290 esac
8291 fi
8292 rm -rf conftest*
8293 ;;
8294
8295 *-*-sco3.2v5*)
8296 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8297 SAVE_CFLAGS=$CFLAGS
8298 CFLAGS="$CFLAGS -belf"
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8300 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8301 if ${lt_cv_cc_needs_belf+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 ac_ext=c
8305 ac_cpp='$CPP $CPPFLAGS'
8306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8309
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8312
8313 int
8314 main ()
8315 {
8316
8317 ;
8318 return 0;
8319 }
8320 _ACEOF
8321 if ac_fn_c_try_link "$LINENO"; then :
8322 lt_cv_cc_needs_belf=yes
8323 else
8324 lt_cv_cc_needs_belf=no
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8328 ac_ext=c
8329 ac_cpp='$CPP $CPPFLAGS'
8330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8333
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8336 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8337 if test yes != "$lt_cv_cc_needs_belf"; then
8338 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8339 CFLAGS=$SAVE_CFLAGS
8340 fi
8341 ;;
8342 *-*solaris*)
8343 # Find out what ABI is being produced by ac_compile, and set linker
8344 # options accordingly.
8345 echo 'int i;' > conftest.$ac_ext
8346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8347 (eval $ac_compile) 2>&5
8348 ac_status=$?
8349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8350 test $ac_status = 0; }; then
8351 case `/usr/bin/file conftest.o` in
8352 *64-bit*)
8353 case $lt_cv_prog_gnu_ld in
8354 yes*)
8355 case $host in
8356 i?86-*-solaris*|x86_64-*-solaris*)
8357 LD="${LD-ld} -m elf_x86_64"
8358 ;;
8359 sparc*-*-solaris*)
8360 LD="${LD-ld} -m elf64_sparc"
8361 ;;
8362 esac
8363 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8364 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8365 LD=${LD-ld}_sol2
8366 fi
8367 ;;
8368 *)
8369 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8370 LD="${LD-ld} -64"
8371 fi
8372 ;;
8373 esac
8374 ;;
8375 esac
8376 fi
8377 rm -rf conftest*
8378 ;;
8379 esac
8380
8381 need_locks=$enable_libtool_lock
8382
8383 if test -n "$ac_tool_prefix"; then
8384 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8385 set dummy ${ac_tool_prefix}mt; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 if test -n "$MANIFEST_TOOL"; then
8392 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405 done
8406 done
8407 IFS=$as_save_IFS
8408
8409 fi
8410 fi
8411 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8412 if test -n "$MANIFEST_TOOL"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8414 $as_echo "$MANIFEST_TOOL" >&6; }
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419
8420
8421 fi
8422 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8423 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8424 # Extract the first word of "mt", so it can be a program name with args.
8425 set dummy mt; ac_word=$2
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427 $as_echo_n "checking for $ac_word... " >&6; }
8428 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8429 $as_echo_n "(cached) " >&6
8430 else
8431 if test -n "$ac_ct_MANIFEST_TOOL"; then
8432 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8433 else
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8436 do
8437 IFS=$as_save_IFS
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8441 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 break 2
8444 fi
8445 done
8446 done
8447 IFS=$as_save_IFS
8448
8449 fi
8450 fi
8451 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8452 if test -n "$ac_ct_MANIFEST_TOOL"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8454 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8458 fi
8459
8460 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8461 MANIFEST_TOOL=":"
8462 else
8463 case $cross_compiling:$ac_tool_warned in
8464 yes:)
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8467 ac_tool_warned=yes ;;
8468 esac
8469 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8470 fi
8471 else
8472 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8473 fi
8474
8475 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8477 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8478 if ${lt_cv_path_mainfest_tool+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 lt_cv_path_mainfest_tool=no
8482 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8483 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8484 cat conftest.err >&5
8485 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8486 lt_cv_path_mainfest_tool=yes
8487 fi
8488 rm -f conftest*
8489 fi
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8491 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8492 if test yes != "$lt_cv_path_mainfest_tool"; then
8493 MANIFEST_TOOL=:
8494 fi
8495
8496
8497
8498
8499
8500
8501 case $host_os in
8502 rhapsody* | darwin*)
8503 if test -n "$ac_tool_prefix"; then
8504 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8505 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 if test -n "$DSYMUTIL"; then
8512 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8524 fi
8525 done
8526 done
8527 IFS=$as_save_IFS
8528
8529 fi
8530 fi
8531 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8532 if test -n "$DSYMUTIL"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8534 $as_echo "$DSYMUTIL" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538 fi
8539
8540
8541 fi
8542 if test -z "$ac_cv_prog_DSYMUTIL"; then
8543 ac_ct_DSYMUTIL=$DSYMUTIL
8544 # Extract the first word of "dsymutil", so it can be a program name with args.
8545 set dummy dsymutil; ac_word=$2
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547 $as_echo_n "checking for $ac_word... " >&6; }
8548 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 if test -n "$ac_ct_DSYMUTIL"; then
8552 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8553 else
8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555 for as_dir in $PATH
8556 do
8557 IFS=$as_save_IFS
8558 test -z "$as_dir" && as_dir=.
8559 for ac_exec_ext in '' $ac_executable_extensions; do
8560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8561 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8563 break 2
8564 fi
8565 done
8566 done
8567 IFS=$as_save_IFS
8568
8569 fi
8570 fi
8571 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8572 if test -n "$ac_ct_DSYMUTIL"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8574 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8575 else
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8578 fi
8579
8580 if test "x$ac_ct_DSYMUTIL" = x; then
8581 DSYMUTIL=":"
8582 else
8583 case $cross_compiling:$ac_tool_warned in
8584 yes:)
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8587 ac_tool_warned=yes ;;
8588 esac
8589 DSYMUTIL=$ac_ct_DSYMUTIL
8590 fi
8591 else
8592 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8593 fi
8594
8595 if test -n "$ac_tool_prefix"; then
8596 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8597 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_prog_NMEDIT+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 if test -n "$NMEDIT"; then
8604 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8608 do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8616 fi
8617 done
8618 done
8619 IFS=$as_save_IFS
8620
8621 fi
8622 fi
8623 NMEDIT=$ac_cv_prog_NMEDIT
8624 if test -n "$NMEDIT"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8626 $as_echo "$NMEDIT" >&6; }
8627 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8630 fi
8631
8632
8633 fi
8634 if test -z "$ac_cv_prog_NMEDIT"; then
8635 ac_ct_NMEDIT=$NMEDIT
8636 # Extract the first word of "nmedit", so it can be a program name with args.
8637 set dummy nmedit; ac_word=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639 $as_echo_n "checking for $ac_word... " >&6; }
8640 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 if test -n "$ac_ct_NMEDIT"; then
8644 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8645 else
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8648 do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8656 fi
8657 done
8658 done
8659 IFS=$as_save_IFS
8660
8661 fi
8662 fi
8663 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8664 if test -n "$ac_ct_NMEDIT"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8666 $as_echo "$ac_ct_NMEDIT" >&6; }
8667 else
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8670 fi
8671
8672 if test "x$ac_ct_NMEDIT" = x; then
8673 NMEDIT=":"
8674 else
8675 case $cross_compiling:$ac_tool_warned in
8676 yes:)
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8679 ac_tool_warned=yes ;;
8680 esac
8681 NMEDIT=$ac_ct_NMEDIT
8682 fi
8683 else
8684 NMEDIT="$ac_cv_prog_NMEDIT"
8685 fi
8686
8687 if test -n "$ac_tool_prefix"; then
8688 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8689 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if ${ac_cv_prog_LIPO+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 if test -n "$LIPO"; then
8696 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8697 else
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8700 do
8701 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8705 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707 break 2
8708 fi
8709 done
8710 done
8711 IFS=$as_save_IFS
8712
8713 fi
8714 fi
8715 LIPO=$ac_cv_prog_LIPO
8716 if test -n "$LIPO"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8718 $as_echo "$LIPO" >&6; }
8719 else
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8722 fi
8723
8724
8725 fi
8726 if test -z "$ac_cv_prog_LIPO"; then
8727 ac_ct_LIPO=$LIPO
8728 # Extract the first word of "lipo", so it can be a program name with args.
8729 set dummy lipo; ac_word=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8733 $as_echo_n "(cached) " >&6
8734 else
8735 if test -n "$ac_ct_LIPO"; then
8736 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8737 else
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8740 do
8741 IFS=$as_save_IFS
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8745 ac_cv_prog_ac_ct_LIPO="lipo"
8746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 break 2
8748 fi
8749 done
8750 done
8751 IFS=$as_save_IFS
8752
8753 fi
8754 fi
8755 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8756 if test -n "$ac_ct_LIPO"; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8758 $as_echo "$ac_ct_LIPO" >&6; }
8759 else
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8762 fi
8763
8764 if test "x$ac_ct_LIPO" = x; then
8765 LIPO=":"
8766 else
8767 case $cross_compiling:$ac_tool_warned in
8768 yes:)
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8771 ac_tool_warned=yes ;;
8772 esac
8773 LIPO=$ac_ct_LIPO
8774 fi
8775 else
8776 LIPO="$ac_cv_prog_LIPO"
8777 fi
8778
8779 if test -n "$ac_tool_prefix"; then
8780 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8781 set dummy ${ac_tool_prefix}otool; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if ${ac_cv_prog_OTOOL+:} false; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 if test -n "$OTOOL"; then
8788 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8789 else
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 for as_dir in $PATH
8792 do
8793 IFS=$as_save_IFS
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8797 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 break 2
8800 fi
8801 done
8802 done
8803 IFS=$as_save_IFS
8804
8805 fi
8806 fi
8807 OTOOL=$ac_cv_prog_OTOOL
8808 if test -n "$OTOOL"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8810 $as_echo "$OTOOL" >&6; }
8811 else
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8814 fi
8815
8816
8817 fi
8818 if test -z "$ac_cv_prog_OTOOL"; then
8819 ac_ct_OTOOL=$OTOOL
8820 # Extract the first word of "otool", so it can be a program name with args.
8821 set dummy otool; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 if test -n "$ac_ct_OTOOL"; then
8828 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8829 else
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8832 do
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8837 ac_cv_prog_ac_ct_OTOOL="otool"
8838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 break 2
8840 fi
8841 done
8842 done
8843 IFS=$as_save_IFS
8844
8845 fi
8846 fi
8847 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8848 if test -n "$ac_ct_OTOOL"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8850 $as_echo "$ac_ct_OTOOL" >&6; }
8851 else
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8854 fi
8855
8856 if test "x$ac_ct_OTOOL" = x; then
8857 OTOOL=":"
8858 else
8859 case $cross_compiling:$ac_tool_warned in
8860 yes:)
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8863 ac_tool_warned=yes ;;
8864 esac
8865 OTOOL=$ac_ct_OTOOL
8866 fi
8867 else
8868 OTOOL="$ac_cv_prog_OTOOL"
8869 fi
8870
8871 if test -n "$ac_tool_prefix"; then
8872 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8873 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if ${ac_cv_prog_OTOOL64+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 if test -n "$OTOOL64"; then
8880 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8881 else
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8884 do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8892 fi
8893 done
8894 done
8895 IFS=$as_save_IFS
8896
8897 fi
8898 fi
8899 OTOOL64=$ac_cv_prog_OTOOL64
8900 if test -n "$OTOOL64"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8902 $as_echo "$OTOOL64" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8906 fi
8907
8908
8909 fi
8910 if test -z "$ac_cv_prog_OTOOL64"; then
8911 ac_ct_OTOOL64=$OTOOL64
8912 # Extract the first word of "otool64", so it can be a program name with args.
8913 set dummy otool64; ac_word=$2
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915 $as_echo_n "checking for $ac_word... " >&6; }
8916 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 if test -n "$ac_ct_OTOOL64"; then
8920 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8921 else
8922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923 for as_dir in $PATH
8924 do
8925 IFS=$as_save_IFS
8926 test -z "$as_dir" && as_dir=.
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8929 ac_cv_prog_ac_ct_OTOOL64="otool64"
8930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 break 2
8932 fi
8933 done
8934 done
8935 IFS=$as_save_IFS
8936
8937 fi
8938 fi
8939 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8940 if test -n "$ac_ct_OTOOL64"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8942 $as_echo "$ac_ct_OTOOL64" >&6; }
8943 else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8946 fi
8947
8948 if test "x$ac_ct_OTOOL64" = x; then
8949 OTOOL64=":"
8950 else
8951 case $cross_compiling:$ac_tool_warned in
8952 yes:)
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8955 ac_tool_warned=yes ;;
8956 esac
8957 OTOOL64=$ac_ct_OTOOL64
8958 fi
8959 else
8960 OTOOL64="$ac_cv_prog_OTOOL64"
8961 fi
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8990 $as_echo_n "checking for -single_module linker flag... " >&6; }
8991 if ${lt_cv_apple_cc_single_mod+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 lt_cv_apple_cc_single_mod=no
8995 if test -z "$LT_MULTI_MODULE"; then
8996 # By default we will add the -single_module flag. You can override
8997 # by either setting the environment variable LT_MULTI_MODULE
8998 # non-empty at configure time, or by adding -multi_module to the
8999 # link flags.
9000 rm -rf libconftest.dylib*
9001 echo "int foo(void){return 1;}" > conftest.c
9002 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9003 -dynamiclib -Wl,-single_module conftest.c" >&5
9004 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9005 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9006 _lt_result=$?
9007 # If there is a non-empty error log, and "single_module"
9008 # appears in it, assume the flag caused a linker warning
9009 if test -s conftest.err && $GREP single_module conftest.err; then
9010 cat conftest.err >&5
9011 # Otherwise, if the output was created with a 0 exit code from
9012 # the compiler, it worked.
9013 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9014 lt_cv_apple_cc_single_mod=yes
9015 else
9016 cat conftest.err >&5
9017 fi
9018 rm -rf libconftest.dylib*
9019 rm -f conftest.*
9020 fi
9021 fi
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9023 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9024
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9026 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9027 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 lt_cv_ld_exported_symbols_list=no
9031 save_LDFLAGS=$LDFLAGS
9032 echo "_main" > conftest.sym
9033 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036
9037 int
9038 main ()
9039 {
9040
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045 if ac_fn_c_try_link "$LINENO"; then :
9046 lt_cv_ld_exported_symbols_list=yes
9047 else
9048 lt_cv_ld_exported_symbols_list=no
9049 fi
9050 rm -f core conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
9052 LDFLAGS=$save_LDFLAGS
9053
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9056 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9057
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9059 $as_echo_n "checking for -force_load linker flag... " >&6; }
9060 if ${lt_cv_ld_force_load+:} false; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 lt_cv_ld_force_load=no
9064 cat > conftest.c << _LT_EOF
9065 int forced_loaded() { return 2;}
9066 _LT_EOF
9067 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9068 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9069 echo "$AR cru libconftest.a conftest.o" >&5
9070 $AR cru libconftest.a conftest.o 2>&5
9071 echo "$RANLIB libconftest.a" >&5
9072 $RANLIB libconftest.a 2>&5
9073 cat > conftest.c << _LT_EOF
9074 int main() { return 0;}
9075 _LT_EOF
9076 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9077 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9078 _lt_result=$?
9079 if test -s conftest.err && $GREP force_load conftest.err; then
9080 cat conftest.err >&5
9081 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9082 lt_cv_ld_force_load=yes
9083 else
9084 cat conftest.err >&5
9085 fi
9086 rm -f conftest.err libconftest.a conftest conftest.c
9087 rm -rf conftest.dSYM
9088
9089 fi
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9091 $as_echo "$lt_cv_ld_force_load" >&6; }
9092 case $host_os in
9093 rhapsody* | darwin1.[012])
9094 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9095 darwin1.*)
9096 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9097 darwin*) # darwin 5.x on
9098 # if running on 10.5 or later, the deployment target defaults
9099 # to the OS version, if on x86, and 10.4, the deployment
9100 # target defaults to 10.4. Don't you love it?
9101 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9102 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9103 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9104 10.[012][,.]*)
9105 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9106 10.*)
9107 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9108 esac
9109 ;;
9110 esac
9111 if test yes = "$lt_cv_apple_cc_single_mod"; then
9112 _lt_dar_single_mod='$single_module'
9113 fi
9114 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9115 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9116 else
9117 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9118 fi
9119 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9120 _lt_dsymutil='~$DSYMUTIL $lib || :'
9121 else
9122 _lt_dsymutil=
9123 fi
9124 ;;
9125 esac
9126
9127 # func_munge_path_list VARIABLE PATH
9128 # -----------------------------------
9129 # VARIABLE is name of variable containing _space_ separated list of
9130 # directories to be munged by the contents of PATH, which is string
9131 # having a format:
9132 # "DIR[:DIR]:"
9133 # string "DIR[ DIR]" will be prepended to VARIABLE
9134 # ":DIR[:DIR]"
9135 # string "DIR[ DIR]" will be appended to VARIABLE
9136 # "DIRP[:DIRP]::[DIRA:]DIRA"
9137 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9138 # "DIRA[ DIRA]" will be appended to VARIABLE
9139 # "DIR[:DIR]"
9140 # VARIABLE will be replaced by "DIR[ DIR]"
9141 func_munge_path_list ()
9142 {
9143 case x$2 in
9144 x)
9145 ;;
9146 *:)
9147 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9148 ;;
9149 x:*)
9150 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9151 ;;
9152 *::*)
9153 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9154 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9155 ;;
9156 *)
9157 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9158 ;;
9159 esac
9160 }
9161
9162 for ac_header in dlfcn.h
9163 do :
9164 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9165 "
9166 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9167 cat >>confdefs.h <<_ACEOF
9168 #define HAVE_DLFCN_H 1
9169 _ACEOF
9170
9171 fi
9172
9173 done
9174
9175
9176
9177
9178 func_stripname_cnf ()
9179 {
9180 case $2 in
9181 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9182 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9183 esac
9184 } # func_stripname_cnf
9185
9186
9187
9188
9189
9190 # Set options
9191
9192
9193
9194 enable_dlopen=no
9195
9196
9197 enable_win32_dll=no
9198
9199
9200 # Check whether --enable-shared was given.
9201 if test "${enable_shared+set}" = set; then :
9202 enableval=$enable_shared; p=${PACKAGE-default}
9203 case $enableval in
9204 yes) enable_shared=yes ;;
9205 no) enable_shared=no ;;
9206 *)
9207 enable_shared=no
9208 # Look at the argument we got. We use all the common list separators.
9209 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9210 for pkg in $enableval; do
9211 IFS=$lt_save_ifs
9212 if test "X$pkg" = "X$p"; then
9213 enable_shared=yes
9214 fi
9215 done
9216 IFS=$lt_save_ifs
9217 ;;
9218 esac
9219 else
9220 enable_shared=yes
9221 fi
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231 # Check whether --enable-static was given.
9232 if test "${enable_static+set}" = set; then :
9233 enableval=$enable_static; p=${PACKAGE-default}
9234 case $enableval in
9235 yes) enable_static=yes ;;
9236 no) enable_static=no ;;
9237 *)
9238 enable_static=no
9239 # Look at the argument we got. We use all the common list separators.
9240 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9241 for pkg in $enableval; do
9242 IFS=$lt_save_ifs
9243 if test "X$pkg" = "X$p"; then
9244 enable_static=yes
9245 fi
9246 done
9247 IFS=$lt_save_ifs
9248 ;;
9249 esac
9250 else
9251 enable_static=yes
9252 fi
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263 # Check whether --with-pic was given.
9264 if test "${with_pic+set}" = set; then :
9265 withval=$with_pic; lt_p=${PACKAGE-default}
9266 case $withval in
9267 yes|no) pic_mode=$withval ;;
9268 *)
9269 pic_mode=default
9270 # Look at the argument we got. We use all the common list separators.
9271 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9272 for lt_pkg in $withval; do
9273 IFS=$lt_save_ifs
9274 if test "X$lt_pkg" = "X$lt_p"; then
9275 pic_mode=yes
9276 fi
9277 done
9278 IFS=$lt_save_ifs
9279 ;;
9280 esac
9281 else
9282 pic_mode=default
9283 fi
9284
9285
9286
9287
9288
9289
9290
9291
9292 # Check whether --enable-fast-install was given.
9293 if test "${enable_fast_install+set}" = set; then :
9294 enableval=$enable_fast_install; p=${PACKAGE-default}
9295 case $enableval in
9296 yes) enable_fast_install=yes ;;
9297 no) enable_fast_install=no ;;
9298 *)
9299 enable_fast_install=no
9300 # Look at the argument we got. We use all the common list separators.
9301 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9302 for pkg in $enableval; do
9303 IFS=$lt_save_ifs
9304 if test "X$pkg" = "X$p"; then
9305 enable_fast_install=yes
9306 fi
9307 done
9308 IFS=$lt_save_ifs
9309 ;;
9310 esac
9311 else
9312 enable_fast_install=yes
9313 fi
9314
9315
9316
9317
9318
9319
9320
9321
9322 shared_archive_member_spec=
9323 case $host,$enable_shared in
9324 power*-*-aix[5-9]*,yes)
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9326 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9327
9328 # Check whether --with-aix-soname was given.
9329 if test "${with_aix_soname+set}" = set; then :
9330 withval=$with_aix_soname; case $withval in
9331 aix|svr4|both)
9332 ;;
9333 *)
9334 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9335 ;;
9336 esac
9337 lt_cv_with_aix_soname=$with_aix_soname
9338 else
9339 if ${lt_cv_with_aix_soname+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 lt_cv_with_aix_soname=aix
9343 fi
9344
9345 with_aix_soname=$lt_cv_with_aix_soname
9346 fi
9347
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9349 $as_echo "$with_aix_soname" >&6; }
9350 if test aix != "$with_aix_soname"; then
9351 # For the AIX way of multilib, we name the shared archive member
9352 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9353 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9354 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9355 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9356 if test 64 = "${OBJECT_MODE-32}"; then
9357 shared_archive_member_spec=shr_64
9358 else
9359 shared_archive_member_spec=shr
9360 fi
9361 fi
9362 ;;
9363 *)
9364 with_aix_soname=aix
9365 ;;
9366 esac
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377 # This can be used to rebuild libtool when needed
9378 LIBTOOL_DEPS=$ltmain
9379
9380 # Always use our own libtool.
9381 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412 test -z "$LN_S" && LN_S="ln -s"
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427 if test -n "${ZSH_VERSION+set}"; then
9428 setopt NO_GLOB_SUBST
9429 fi
9430
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9432 $as_echo_n "checking for objdir... " >&6; }
9433 if ${lt_cv_objdir+:} false; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 rm -f .libs 2>/dev/null
9437 mkdir .libs 2>/dev/null
9438 if test -d .libs; then
9439 lt_cv_objdir=.libs
9440 else
9441 # MS-DOS does not allow filenames that begin with a dot.
9442 lt_cv_objdir=_libs
9443 fi
9444 rmdir .libs 2>/dev/null
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9447 $as_echo "$lt_cv_objdir" >&6; }
9448 objdir=$lt_cv_objdir
9449
9450
9451
9452
9453
9454 cat >>confdefs.h <<_ACEOF
9455 #define LT_OBJDIR "$lt_cv_objdir/"
9456 _ACEOF
9457
9458
9459
9460
9461 case $host_os in
9462 aix3*)
9463 # AIX sometimes has problems with the GCC collect2 program. For some
9464 # reason, if we set the COLLECT_NAMES environment variable, the problems
9465 # vanish in a puff of smoke.
9466 if test set != "${COLLECT_NAMES+set}"; then
9467 COLLECT_NAMES=
9468 export COLLECT_NAMES
9469 fi
9470 ;;
9471 esac
9472
9473 # Global variables:
9474 ofile=libtool
9475 can_build_shared=yes
9476
9477 # All known linkers require a '.a' archive for static linking (except MSVC,
9478 # which needs '.lib').
9479 libext=a
9480
9481 with_gnu_ld=$lt_cv_prog_gnu_ld
9482
9483 old_CC=$CC
9484 old_CFLAGS=$CFLAGS
9485
9486 # Set sane defaults for various variables
9487 test -z "$CC" && CC=cc
9488 test -z "$LTCC" && LTCC=$CC
9489 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9490 test -z "$LD" && LD=ld
9491 test -z "$ac_objext" && ac_objext=o
9492
9493 func_cc_basename $compiler
9494 cc_basename=$func_cc_basename_result
9495
9496
9497 # Only perform the check for file, if the check method requires it
9498 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9499 case $deplibs_check_method in
9500 file_magic*)
9501 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9503 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9504 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 case $MAGIC_CMD in
9508 [\\/*] | ?:[\\/]*)
9509 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9510 ;;
9511 *)
9512 lt_save_MAGIC_CMD=$MAGIC_CMD
9513 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9515 for ac_dir in $ac_dummy; do
9516 IFS=$lt_save_ifs
9517 test -z "$ac_dir" && ac_dir=.
9518 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9519 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9520 if test -n "$file_magic_test_file"; then
9521 case $deplibs_check_method in
9522 "file_magic "*)
9523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9524 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9526 $EGREP "$file_magic_regex" > /dev/null; then
9527 :
9528 else
9529 cat <<_LT_EOF 1>&2
9530
9531 *** Warning: the command libtool uses to detect shared libraries,
9532 *** $file_magic_cmd, produces output that libtool cannot recognize.
9533 *** The result is that libtool may fail to recognize shared libraries
9534 *** as such. This will affect the creation of libtool libraries that
9535 *** depend on shared libraries, but programs linked with such libtool
9536 *** libraries will work regardless of this problem. Nevertheless, you
9537 *** may want to report the problem to your system manager and/or to
9538 *** bug-libtool@gnu.org
9539
9540 _LT_EOF
9541 fi ;;
9542 esac
9543 fi
9544 break
9545 fi
9546 done
9547 IFS=$lt_save_ifs
9548 MAGIC_CMD=$lt_save_MAGIC_CMD
9549 ;;
9550 esac
9551 fi
9552
9553 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9554 if test -n "$MAGIC_CMD"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9556 $as_echo "$MAGIC_CMD" >&6; }
9557 else
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9560 fi
9561
9562
9563
9564
9565
9566 if test -z "$lt_cv_path_MAGIC_CMD"; then
9567 if test -n "$ac_tool_prefix"; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9569 $as_echo_n "checking for file... " >&6; }
9570 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 case $MAGIC_CMD in
9574 [\\/*] | ?:[\\/]*)
9575 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9576 ;;
9577 *)
9578 lt_save_MAGIC_CMD=$MAGIC_CMD
9579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9580 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9581 for ac_dir in $ac_dummy; do
9582 IFS=$lt_save_ifs
9583 test -z "$ac_dir" && ac_dir=.
9584 if test -f "$ac_dir/file"; then
9585 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9586 if test -n "$file_magic_test_file"; then
9587 case $deplibs_check_method in
9588 "file_magic "*)
9589 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9590 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9591 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9592 $EGREP "$file_magic_regex" > /dev/null; then
9593 :
9594 else
9595 cat <<_LT_EOF 1>&2
9596
9597 *** Warning: the command libtool uses to detect shared libraries,
9598 *** $file_magic_cmd, produces output that libtool cannot recognize.
9599 *** The result is that libtool may fail to recognize shared libraries
9600 *** as such. This will affect the creation of libtool libraries that
9601 *** depend on shared libraries, but programs linked with such libtool
9602 *** libraries will work regardless of this problem. Nevertheless, you
9603 *** may want to report the problem to your system manager and/or to
9604 *** bug-libtool@gnu.org
9605
9606 _LT_EOF
9607 fi ;;
9608 esac
9609 fi
9610 break
9611 fi
9612 done
9613 IFS=$lt_save_ifs
9614 MAGIC_CMD=$lt_save_MAGIC_CMD
9615 ;;
9616 esac
9617 fi
9618
9619 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9620 if test -n "$MAGIC_CMD"; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9622 $as_echo "$MAGIC_CMD" >&6; }
9623 else
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625 $as_echo "no" >&6; }
9626 fi
9627
9628
9629 else
9630 MAGIC_CMD=:
9631 fi
9632 fi
9633
9634 fi
9635 ;;
9636 esac
9637
9638 # Use C for the default configuration in the libtool script
9639
9640 lt_save_CC=$CC
9641 ac_ext=c
9642 ac_cpp='$CPP $CPPFLAGS'
9643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9646
9647
9648 # Source file extension for C test sources.
9649 ac_ext=c
9650
9651 # Object file extension for compiled C test sources.
9652 objext=o
9653 objext=$objext
9654
9655 # Code to be used in simple compile tests
9656 lt_simple_compile_test_code="int some_variable = 0;"
9657
9658 # Code to be used in simple link tests
9659 lt_simple_link_test_code='int main(){return(0);}'
9660
9661
9662
9663
9664
9665
9666
9667 # If no C compiler was specified, use CC.
9668 LTCC=${LTCC-"$CC"}
9669
9670 # If no C compiler flags were specified, use CFLAGS.
9671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9672
9673 # Allow CC to be a program name with arguments.
9674 compiler=$CC
9675
9676 # Save the default compiler, since it gets overwritten when the other
9677 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9678 compiler_DEFAULT=$CC
9679
9680 # save warnings/boilerplate of simple test code
9681 ac_outfile=conftest.$ac_objext
9682 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9683 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9684 _lt_compiler_boilerplate=`cat conftest.err`
9685 $RM conftest*
9686
9687 ac_outfile=conftest.$ac_objext
9688 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9689 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9690 _lt_linker_boilerplate=`cat conftest.err`
9691 $RM -r conftest*
9692
9693
9694 ## CAVEAT EMPTOR:
9695 ## There is no encapsulation within the following macros, do not change
9696 ## the running order or otherwise move them around unless you know exactly
9697 ## what you are doing...
9698 if test -n "$compiler"; then
9699
9700 lt_prog_compiler_no_builtin_flag=
9701
9702 if test yes = "$GCC"; then
9703 case $cc_basename in
9704 nvcc*)
9705 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9706 *)
9707 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9708 esac
9709
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9711 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9712 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 lt_cv_prog_compiler_rtti_exceptions=no
9716 ac_outfile=conftest.$ac_objext
9717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9718 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9719 # Insert the option either (1) after the last *FLAGS variable, or
9720 # (2) before a word containing "conftest.", or (3) at the end.
9721 # Note that $ac_compile itself does not contain backslashes and begins
9722 # with a dollar sign (not a hyphen), so the echo should work correctly.
9723 # The option is referenced via a variable to avoid confusing sed.
9724 lt_compile=`echo "$ac_compile" | $SED \
9725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9727 -e 's:$: $lt_compiler_flag:'`
9728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9729 (eval "$lt_compile" 2>conftest.err)
9730 ac_status=$?
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 if (exit $ac_status) && test -s "$ac_outfile"; then
9734 # The compiler can only warn and ignore the option if not recognized
9735 # So say no if there are warnings other than the usual output.
9736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9739 lt_cv_prog_compiler_rtti_exceptions=yes
9740 fi
9741 fi
9742 $RM conftest*
9743
9744 fi
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9746 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9747
9748 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9749 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9750 else
9751 :
9752 fi
9753
9754 fi
9755
9756
9757
9758
9759
9760
9761 lt_prog_compiler_wl=
9762 lt_prog_compiler_pic=
9763 lt_prog_compiler_static=
9764
9765
9766 if test yes = "$GCC"; then
9767 lt_prog_compiler_wl='-Wl,'
9768 lt_prog_compiler_static='-static'
9769
9770 case $host_os in
9771 aix*)
9772 # All AIX code is PIC.
9773 if test ia64 = "$host_cpu"; then
9774 # AIX 5 now supports IA64 processor
9775 lt_prog_compiler_static='-Bstatic'
9776 fi
9777 lt_prog_compiler_pic='-fPIC'
9778 ;;
9779
9780 amigaos*)
9781 case $host_cpu in
9782 powerpc)
9783 # see comment about AmigaOS4 .so support
9784 lt_prog_compiler_pic='-fPIC'
9785 ;;
9786 m68k)
9787 # FIXME: we need at least 68020 code to build shared libraries, but
9788 # adding the '-m68020' flag to GCC prevents building anything better,
9789 # like '-m68040'.
9790 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9791 ;;
9792 esac
9793 ;;
9794
9795 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9796 # PIC is the default for these OSes.
9797 ;;
9798
9799 mingw* | cygwin* | pw32* | os2* | cegcc*)
9800 # This hack is so that the source file can tell whether it is being
9801 # built for inclusion in a dll (and should export symbols for example).
9802 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9803 # (--disable-auto-import) libraries
9804 lt_prog_compiler_pic='-DDLL_EXPORT'
9805 case $host_os in
9806 os2*)
9807 lt_prog_compiler_static='$wl-static'
9808 ;;
9809 esac
9810 ;;
9811
9812 darwin* | rhapsody*)
9813 # PIC is the default on this platform
9814 # Common symbols not allowed in MH_DYLIB files
9815 lt_prog_compiler_pic='-fno-common'
9816 ;;
9817
9818 haiku*)
9819 # PIC is the default for Haiku.
9820 # The "-static" flag exists, but is broken.
9821 lt_prog_compiler_static=
9822 ;;
9823
9824 hpux*)
9825 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9826 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9827 # sets the default TLS model and affects inlining.
9828 case $host_cpu in
9829 hppa*64*)
9830 # +Z the default
9831 ;;
9832 *)
9833 lt_prog_compiler_pic='-fPIC'
9834 ;;
9835 esac
9836 ;;
9837
9838 interix[3-9]*)
9839 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9840 # Instead, we relocate shared libraries at runtime.
9841 ;;
9842
9843 msdosdjgpp*)
9844 # Just because we use GCC doesn't mean we suddenly get shared libraries
9845 # on systems that don't support them.
9846 lt_prog_compiler_can_build_shared=no
9847 enable_shared=no
9848 ;;
9849
9850 *nto* | *qnx*)
9851 # QNX uses GNU C++, but need to define -shared option too, otherwise
9852 # it will coredump.
9853 lt_prog_compiler_pic='-fPIC -shared'
9854 ;;
9855
9856 sysv4*MP*)
9857 if test -d /usr/nec; then
9858 lt_prog_compiler_pic=-Kconform_pic
9859 fi
9860 ;;
9861
9862 *)
9863 lt_prog_compiler_pic='-fPIC'
9864 ;;
9865 esac
9866
9867 case $cc_basename in
9868 nvcc*) # Cuda Compiler Driver 2.2
9869 lt_prog_compiler_wl='-Xlinker '
9870 if test -n "$lt_prog_compiler_pic"; then
9871 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9872 fi
9873 ;;
9874 esac
9875 else
9876 # PORTME Check for flag to pass linker flags through the system compiler.
9877 case $host_os in
9878 aix*)
9879 lt_prog_compiler_wl='-Wl,'
9880 if test ia64 = "$host_cpu"; then
9881 # AIX 5 now supports IA64 processor
9882 lt_prog_compiler_static='-Bstatic'
9883 else
9884 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9885 fi
9886 ;;
9887
9888 darwin* | rhapsody*)
9889 # PIC is the default on this platform
9890 # Common symbols not allowed in MH_DYLIB files
9891 lt_prog_compiler_pic='-fno-common'
9892 case $cc_basename in
9893 nagfor*)
9894 # NAG Fortran compiler
9895 lt_prog_compiler_wl='-Wl,-Wl,,'
9896 lt_prog_compiler_pic='-PIC'
9897 lt_prog_compiler_static='-Bstatic'
9898 ;;
9899 esac
9900 ;;
9901
9902 mingw* | cygwin* | pw32* | os2* | cegcc*)
9903 # This hack is so that the source file can tell whether it is being
9904 # built for inclusion in a dll (and should export symbols for example).
9905 lt_prog_compiler_pic='-DDLL_EXPORT'
9906 case $host_os in
9907 os2*)
9908 lt_prog_compiler_static='$wl-static'
9909 ;;
9910 esac
9911 ;;
9912
9913 hpux9* | hpux10* | hpux11*)
9914 lt_prog_compiler_wl='-Wl,'
9915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9916 # not for PA HP-UX.
9917 case $host_cpu in
9918 hppa*64*|ia64*)
9919 # +Z the default
9920 ;;
9921 *)
9922 lt_prog_compiler_pic='+Z'
9923 ;;
9924 esac
9925 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9926 lt_prog_compiler_static='$wl-a ${wl}archive'
9927 ;;
9928
9929 irix5* | irix6* | nonstopux*)
9930 lt_prog_compiler_wl='-Wl,'
9931 # PIC (with -KPIC) is the default.
9932 lt_prog_compiler_static='-non_shared'
9933 ;;
9934
9935 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9936 case $cc_basename in
9937 # old Intel for x86_64, which still supported -KPIC.
9938 ecc*)
9939 lt_prog_compiler_wl='-Wl,'
9940 lt_prog_compiler_pic='-KPIC'
9941 lt_prog_compiler_static='-static'
9942 ;;
9943 # icc used to be incompatible with GCC.
9944 # ICC 10 doesn't accept -KPIC any more.
9945 icc* | ifort*)
9946 lt_prog_compiler_wl='-Wl,'
9947 lt_prog_compiler_pic='-fPIC'
9948 lt_prog_compiler_static='-static'
9949 ;;
9950 # Lahey Fortran 8.1.
9951 lf95*)
9952 lt_prog_compiler_wl='-Wl,'
9953 lt_prog_compiler_pic='--shared'
9954 lt_prog_compiler_static='--static'
9955 ;;
9956 nagfor*)
9957 # NAG Fortran compiler
9958 lt_prog_compiler_wl='-Wl,-Wl,,'
9959 lt_prog_compiler_pic='-PIC'
9960 lt_prog_compiler_static='-Bstatic'
9961 ;;
9962 tcc*)
9963 # Fabrice Bellard et al's Tiny C Compiler
9964 lt_prog_compiler_wl='-Wl,'
9965 lt_prog_compiler_pic='-fPIC'
9966 lt_prog_compiler_static='-static'
9967 ;;
9968 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9969 # Portland Group compilers (*not* the Pentium gcc compiler,
9970 # which looks to be a dead project)
9971 lt_prog_compiler_wl='-Wl,'
9972 lt_prog_compiler_pic='-fpic'
9973 lt_prog_compiler_static='-Bstatic'
9974 ;;
9975 ccc*)
9976 lt_prog_compiler_wl='-Wl,'
9977 # All Alpha code is PIC.
9978 lt_prog_compiler_static='-non_shared'
9979 ;;
9980 xl* | bgxl* | bgf* | mpixl*)
9981 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9982 lt_prog_compiler_wl='-Wl,'
9983 lt_prog_compiler_pic='-qpic'
9984 lt_prog_compiler_static='-qstaticlink'
9985 ;;
9986 *)
9987 case `$CC -V 2>&1 | sed 5q` in
9988 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9989 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9990 lt_prog_compiler_pic='-KPIC'
9991 lt_prog_compiler_static='-Bstatic'
9992 lt_prog_compiler_wl=''
9993 ;;
9994 *Sun\ F* | *Sun*Fortran*)
9995 lt_prog_compiler_pic='-KPIC'
9996 lt_prog_compiler_static='-Bstatic'
9997 lt_prog_compiler_wl='-Qoption ld '
9998 ;;
9999 *Sun\ C*)
10000 # Sun C 5.9
10001 lt_prog_compiler_pic='-KPIC'
10002 lt_prog_compiler_static='-Bstatic'
10003 lt_prog_compiler_wl='-Wl,'
10004 ;;
10005 *Intel*\ [CF]*Compiler*)
10006 lt_prog_compiler_wl='-Wl,'
10007 lt_prog_compiler_pic='-fPIC'
10008 lt_prog_compiler_static='-static'
10009 ;;
10010 *Portland\ Group*)
10011 lt_prog_compiler_wl='-Wl,'
10012 lt_prog_compiler_pic='-fpic'
10013 lt_prog_compiler_static='-Bstatic'
10014 ;;
10015 esac
10016 ;;
10017 esac
10018 ;;
10019
10020 newsos6)
10021 lt_prog_compiler_pic='-KPIC'
10022 lt_prog_compiler_static='-Bstatic'
10023 ;;
10024
10025 *nto* | *qnx*)
10026 # QNX uses GNU C++, but need to define -shared option too, otherwise
10027 # it will coredump.
10028 lt_prog_compiler_pic='-fPIC -shared'
10029 ;;
10030
10031 osf3* | osf4* | osf5*)
10032 lt_prog_compiler_wl='-Wl,'
10033 # All OSF/1 code is PIC.
10034 lt_prog_compiler_static='-non_shared'
10035 ;;
10036
10037 rdos*)
10038 lt_prog_compiler_static='-non_shared'
10039 ;;
10040
10041 solaris*)
10042 lt_prog_compiler_pic='-KPIC'
10043 lt_prog_compiler_static='-Bstatic'
10044 case $cc_basename in
10045 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10046 lt_prog_compiler_wl='-Qoption ld ';;
10047 *)
10048 lt_prog_compiler_wl='-Wl,';;
10049 esac
10050 ;;
10051
10052 sunos4*)
10053 lt_prog_compiler_wl='-Qoption ld '
10054 lt_prog_compiler_pic='-PIC'
10055 lt_prog_compiler_static='-Bstatic'
10056 ;;
10057
10058 sysv4 | sysv4.2uw2* | sysv4.3*)
10059 lt_prog_compiler_wl='-Wl,'
10060 lt_prog_compiler_pic='-KPIC'
10061 lt_prog_compiler_static='-Bstatic'
10062 ;;
10063
10064 sysv4*MP*)
10065 if test -d /usr/nec; then
10066 lt_prog_compiler_pic='-Kconform_pic'
10067 lt_prog_compiler_static='-Bstatic'
10068 fi
10069 ;;
10070
10071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10072 lt_prog_compiler_wl='-Wl,'
10073 lt_prog_compiler_pic='-KPIC'
10074 lt_prog_compiler_static='-Bstatic'
10075 ;;
10076
10077 unicos*)
10078 lt_prog_compiler_wl='-Wl,'
10079 lt_prog_compiler_can_build_shared=no
10080 ;;
10081
10082 uts4*)
10083 lt_prog_compiler_pic='-pic'
10084 lt_prog_compiler_static='-Bstatic'
10085 ;;
10086
10087 *)
10088 lt_prog_compiler_can_build_shared=no
10089 ;;
10090 esac
10091 fi
10092
10093 case $host_os in
10094 # For platforms that do not support PIC, -DPIC is meaningless:
10095 *djgpp*)
10096 lt_prog_compiler_pic=
10097 ;;
10098 *)
10099 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10100 ;;
10101 esac
10102
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10104 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10105 if ${lt_cv_prog_compiler_pic+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10109 fi
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10111 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10112 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10113
10114 #
10115 # Check to make sure the PIC flag actually works.
10116 #
10117 if test -n "$lt_prog_compiler_pic"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10119 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10120 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 lt_cv_prog_compiler_pic_works=no
10124 ac_outfile=conftest.$ac_objext
10125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10126 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10127 # Insert the option either (1) after the last *FLAGS variable, or
10128 # (2) before a word containing "conftest.", or (3) at the end.
10129 # Note that $ac_compile itself does not contain backslashes and begins
10130 # with a dollar sign (not a hyphen), so the echo should work correctly.
10131 # The option is referenced via a variable to avoid confusing sed.
10132 lt_compile=`echo "$ac_compile" | $SED \
10133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10135 -e 's:$: $lt_compiler_flag:'`
10136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10137 (eval "$lt_compile" 2>conftest.err)
10138 ac_status=$?
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 if (exit $ac_status) && test -s "$ac_outfile"; then
10142 # The compiler can only warn and ignore the option if not recognized
10143 # So say no if there are warnings other than the usual output.
10144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10147 lt_cv_prog_compiler_pic_works=yes
10148 fi
10149 fi
10150 $RM conftest*
10151
10152 fi
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10154 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10155
10156 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10157 case $lt_prog_compiler_pic in
10158 "" | " "*) ;;
10159 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10160 esac
10161 else
10162 lt_prog_compiler_pic=
10163 lt_prog_compiler_can_build_shared=no
10164 fi
10165
10166 fi
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178 #
10179 # Check to make sure the static flag actually works.
10180 #
10181 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10183 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10184 if ${lt_cv_prog_compiler_static_works+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 lt_cv_prog_compiler_static_works=no
10188 save_LDFLAGS=$LDFLAGS
10189 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10190 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10191 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10192 # The linker can only warn and ignore the option if not recognized
10193 # So say no if there are warnings
10194 if test -s conftest.err; then
10195 # Append any errors to the config.log.
10196 cat conftest.err 1>&5
10197 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10199 if diff conftest.exp conftest.er2 >/dev/null; then
10200 lt_cv_prog_compiler_static_works=yes
10201 fi
10202 else
10203 lt_cv_prog_compiler_static_works=yes
10204 fi
10205 fi
10206 $RM -r conftest*
10207 LDFLAGS=$save_LDFLAGS
10208
10209 fi
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10211 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10212
10213 if test yes = "$lt_cv_prog_compiler_static_works"; then
10214 :
10215 else
10216 lt_prog_compiler_static=
10217 fi
10218
10219
10220
10221
10222
10223
10224
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10226 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10227 if ${lt_cv_prog_compiler_c_o+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 lt_cv_prog_compiler_c_o=no
10231 $RM -r conftest 2>/dev/null
10232 mkdir conftest
10233 cd conftest
10234 mkdir out
10235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10236
10237 lt_compiler_flag="-o out/conftest2.$ac_objext"
10238 # Insert the option either (1) after the last *FLAGS variable, or
10239 # (2) before a word containing "conftest.", or (3) at the end.
10240 # Note that $ac_compile itself does not contain backslashes and begins
10241 # with a dollar sign (not a hyphen), so the echo should work correctly.
10242 lt_compile=`echo "$ac_compile" | $SED \
10243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10245 -e 's:$: $lt_compiler_flag:'`
10246 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10247 (eval "$lt_compile" 2>out/conftest.err)
10248 ac_status=$?
10249 cat out/conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10252 then
10253 # The compiler can only warn and ignore the option if not recognized
10254 # So say no if there are warnings
10255 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10256 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10257 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10258 lt_cv_prog_compiler_c_o=yes
10259 fi
10260 fi
10261 chmod u+w . 2>&5
10262 $RM conftest*
10263 # SGI C++ compiler will create directory out/ii_files/ for
10264 # template instantiation
10265 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10266 $RM out/* && rmdir out
10267 cd ..
10268 $RM -r conftest
10269 $RM conftest*
10270
10271 fi
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10273 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10274
10275
10276
10277
10278
10279
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10281 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10282 if ${lt_cv_prog_compiler_c_o+:} false; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10285 lt_cv_prog_compiler_c_o=no
10286 $RM -r conftest 2>/dev/null
10287 mkdir conftest
10288 cd conftest
10289 mkdir out
10290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10291
10292 lt_compiler_flag="-o out/conftest2.$ac_objext"
10293 # Insert the option either (1) after the last *FLAGS variable, or
10294 # (2) before a word containing "conftest.", or (3) at the end.
10295 # Note that $ac_compile itself does not contain backslashes and begins
10296 # with a dollar sign (not a hyphen), so the echo should work correctly.
10297 lt_compile=`echo "$ac_compile" | $SED \
10298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10300 -e 's:$: $lt_compiler_flag:'`
10301 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10302 (eval "$lt_compile" 2>out/conftest.err)
10303 ac_status=$?
10304 cat out/conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10307 then
10308 # The compiler can only warn and ignore the option if not recognized
10309 # So say no if there are warnings
10310 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10313 lt_cv_prog_compiler_c_o=yes
10314 fi
10315 fi
10316 chmod u+w . 2>&5
10317 $RM conftest*
10318 # SGI C++ compiler will create directory out/ii_files/ for
10319 # template instantiation
10320 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10321 $RM out/* && rmdir out
10322 cd ..
10323 $RM -r conftest
10324 $RM conftest*
10325
10326 fi
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10328 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10329
10330
10331
10332
10333 hard_links=nottested
10334 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10335 # do not overwrite the value of need_locks provided by the user
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10337 $as_echo_n "checking if we can lock with hard links... " >&6; }
10338 hard_links=yes
10339 $RM conftest*
10340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10341 touch conftest.a
10342 ln conftest.a conftest.b 2>&5 || hard_links=no
10343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10345 $as_echo "$hard_links" >&6; }
10346 if test no = "$hard_links"; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10348 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10349 need_locks=warn
10350 fi
10351 else
10352 need_locks=no
10353 fi
10354
10355
10356
10357
10358
10359
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10361 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10362
10363 runpath_var=
10364 allow_undefined_flag=
10365 always_export_symbols=no
10366 archive_cmds=
10367 archive_expsym_cmds=
10368 compiler_needs_object=no
10369 enable_shared_with_static_runtimes=no
10370 export_dynamic_flag_spec=
10371 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10372 hardcode_automatic=no
10373 hardcode_direct=no
10374 hardcode_direct_absolute=no
10375 hardcode_libdir_flag_spec=
10376 hardcode_libdir_separator=
10377 hardcode_minus_L=no
10378 hardcode_shlibpath_var=unsupported
10379 inherit_rpath=no
10380 link_all_deplibs=unknown
10381 module_cmds=
10382 module_expsym_cmds=
10383 old_archive_from_new_cmds=
10384 old_archive_from_expsyms_cmds=
10385 thread_safe_flag_spec=
10386 whole_archive_flag_spec=
10387 # include_expsyms should be a list of space-separated symbols to be *always*
10388 # included in the symbol list
10389 include_expsyms=
10390 # exclude_expsyms can be an extended regexp of symbols to exclude
10391 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10392 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10393 # as well as any symbol that contains 'd'.
10394 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10395 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10396 # platforms (ab)use it in PIC code, but their linkers get confused if
10397 # the symbol is explicitly referenced. Since portable code cannot
10398 # rely on this symbol name, it's probably fine to never include it in
10399 # preloaded symbol tables.
10400 # Exclude shared library initialization/finalization symbols.
10401 extract_expsyms_cmds=
10402
10403 case $host_os in
10404 cygwin* | mingw* | pw32* | cegcc*)
10405 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10406 # When not using gcc, we currently assume that we are using
10407 # Microsoft Visual C++.
10408 if test yes != "$GCC"; then
10409 with_gnu_ld=no
10410 fi
10411 ;;
10412 interix*)
10413 # we just hope/assume this is gcc and not c89 (= MSVC++)
10414 with_gnu_ld=yes
10415 ;;
10416 openbsd* | bitrig*)
10417 with_gnu_ld=no
10418 ;;
10419 linux* | k*bsd*-gnu | gnu*)
10420 link_all_deplibs=no
10421 ;;
10422 esac
10423
10424 ld_shlibs=yes
10425
10426 # On some targets, GNU ld is compatible enough with the native linker
10427 # that we're better off using the native interface for both.
10428 lt_use_gnu_ld_interface=no
10429 if test yes = "$with_gnu_ld"; then
10430 case $host_os in
10431 aix*)
10432 # The AIX port of GNU ld has always aspired to compatibility
10433 # with the native linker. However, as the warning in the GNU ld
10434 # block says, versions before 2.19.5* couldn't really create working
10435 # shared libraries, regardless of the interface used.
10436 case `$LD -v 2>&1` in
10437 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10438 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10439 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10440 *)
10441 lt_use_gnu_ld_interface=yes
10442 ;;
10443 esac
10444 ;;
10445 *)
10446 lt_use_gnu_ld_interface=yes
10447 ;;
10448 esac
10449 fi
10450
10451 if test yes = "$lt_use_gnu_ld_interface"; then
10452 # If archive_cmds runs LD, not CC, wlarc should be empty
10453 wlarc='$wl'
10454
10455 # Set some defaults for GNU ld with shared library support. These
10456 # are reset later if shared libraries are not supported. Putting them
10457 # here allows them to be overridden if necessary.
10458 runpath_var=LD_RUN_PATH
10459 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10460 export_dynamic_flag_spec='$wl--export-dynamic'
10461 # ancient GNU ld didn't support --whole-archive et. al.
10462 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10463 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10464 else
10465 whole_archive_flag_spec=
10466 fi
10467 supports_anon_versioning=no
10468 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10469 *GNU\ gold*) supports_anon_versioning=yes ;;
10470 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10471 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10472 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10473 *\ 2.11.*) ;; # other 2.11 versions
10474 *) supports_anon_versioning=yes ;;
10475 esac
10476
10477 # See if GNU ld supports shared libraries.
10478 case $host_os in
10479 aix[3-9]*)
10480 # On AIX/PPC, the GNU linker is very broken
10481 if test ia64 != "$host_cpu"; then
10482 ld_shlibs=no
10483 cat <<_LT_EOF 1>&2
10484
10485 *** Warning: the GNU linker, at least up to release 2.19, is reported
10486 *** to be unable to reliably create shared libraries on AIX.
10487 *** Therefore, libtool is disabling shared libraries support. If you
10488 *** really care for shared libraries, you may want to install binutils
10489 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10490 *** You will then need to restart the configuration process.
10491
10492 _LT_EOF
10493 fi
10494 ;;
10495
10496 amigaos*)
10497 case $host_cpu in
10498 powerpc)
10499 # see comment about AmigaOS4 .so support
10500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10501 archive_expsym_cmds=''
10502 ;;
10503 m68k)
10504 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)'
10505 hardcode_libdir_flag_spec='-L$libdir'
10506 hardcode_minus_L=yes
10507 ;;
10508 esac
10509 ;;
10510
10511 beos*)
10512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10513 allow_undefined_flag=unsupported
10514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10515 # support --undefined. This deserves some investigation. FIXME
10516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10517 else
10518 ld_shlibs=no
10519 fi
10520 ;;
10521
10522 cygwin* | mingw* | pw32* | cegcc*)
10523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10524 # as there is no search path for DLLs.
10525 hardcode_libdir_flag_spec='-L$libdir'
10526 export_dynamic_flag_spec='$wl--export-all-symbols'
10527 allow_undefined_flag=unsupported
10528 always_export_symbols=no
10529 enable_shared_with_static_runtimes=yes
10530 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'
10531 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10532
10533 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10535 # If the export-symbols file already is a .def file, use it as
10536 # is; otherwise, prepend EXPORTS...
10537 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10538 cp $export_symbols $output_objdir/$soname.def;
10539 else
10540 echo EXPORTS > $output_objdir/$soname.def;
10541 cat $export_symbols >> $output_objdir/$soname.def;
10542 fi~
10543 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10544 else
10545 ld_shlibs=no
10546 fi
10547 ;;
10548
10549 haiku*)
10550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10551 link_all_deplibs=yes
10552 ;;
10553
10554 os2*)
10555 hardcode_libdir_flag_spec='-L$libdir'
10556 hardcode_minus_L=yes
10557 allow_undefined_flag=unsupported
10558 shrext_cmds=.dll
10559 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10560 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10561 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10562 $ECHO EXPORTS >> $output_objdir/$libname.def~
10563 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10564 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10565 emximp -o $lib $output_objdir/$libname.def'
10566 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10567 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10568 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10569 $ECHO EXPORTS >> $output_objdir/$libname.def~
10570 prefix_cmds="$SED"~
10571 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10572 prefix_cmds="$prefix_cmds -e 1d";
10573 fi~
10574 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10575 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10576 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10577 emximp -o $lib $output_objdir/$libname.def'
10578 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10579 enable_shared_with_static_runtimes=yes
10580 ;;
10581
10582 interix[3-9]*)
10583 hardcode_direct=no
10584 hardcode_shlibpath_var=no
10585 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10586 export_dynamic_flag_spec='$wl-E'
10587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10588 # Instead, shared libraries are loaded at an image base (0x10000000 by
10589 # default) and relocated if they conflict, which is a slow very memory
10590 # consuming and fragmenting process. To avoid this, we pick a random,
10591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10592 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10593 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10594 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'
10595 ;;
10596
10597 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10598 tmp_diet=no
10599 if test linux-dietlibc = "$host_os"; then
10600 case $cc_basename in
10601 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10602 esac
10603 fi
10604 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10605 && test no = "$tmp_diet"
10606 then
10607 tmp_addflag=' $pic_flag'
10608 tmp_sharedflag='-shared'
10609 case $cc_basename,$host_cpu in
10610 pgcc*) # Portland Group C compiler
10611 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'
10612 tmp_addflag=' $pic_flag'
10613 ;;
10614 pgf77* | pgf90* | pgf95* | pgfortran*)
10615 # Portland Group f77 and f90 compilers
10616 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'
10617 tmp_addflag=' $pic_flag -Mnomain' ;;
10618 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10619 tmp_addflag=' -i_dynamic' ;;
10620 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10621 tmp_addflag=' -i_dynamic -nofor_main' ;;
10622 ifc* | ifort*) # Intel Fortran compiler
10623 tmp_addflag=' -nofor_main' ;;
10624 lf95*) # Lahey Fortran 8.1
10625 whole_archive_flag_spec=
10626 tmp_sharedflag='--shared' ;;
10627 nagfor*) # NAGFOR 5.3
10628 tmp_sharedflag='-Wl,-shared' ;;
10629 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10630 tmp_sharedflag='-qmkshrobj'
10631 tmp_addflag= ;;
10632 nvcc*) # Cuda Compiler Driver 2.2
10633 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'
10634 compiler_needs_object=yes
10635 ;;
10636 esac
10637 case `$CC -V 2>&1 | sed 5q` in
10638 *Sun\ C*) # Sun C 5.9
10639 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'
10640 compiler_needs_object=yes
10641 tmp_sharedflag='-G' ;;
10642 *Sun\ F*) # Sun Fortran 8.3
10643 tmp_sharedflag='-G' ;;
10644 esac
10645 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10646
10647 if test yes = "$supports_anon_versioning"; then
10648 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10650 echo "local: *; };" >> $output_objdir/$libname.ver~
10651 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10652 fi
10653
10654 case $cc_basename in
10655 tcc*)
10656 export_dynamic_flag_spec='-rdynamic'
10657 ;;
10658 xlf* | bgf* | bgxlf* | mpixlf*)
10659 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10660 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10661 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10662 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10663 if test yes = "$supports_anon_versioning"; then
10664 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10665 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10666 echo "local: *; };" >> $output_objdir/$libname.ver~
10667 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10668 fi
10669 ;;
10670 esac
10671 else
10672 ld_shlibs=no
10673 fi
10674 ;;
10675
10676 netbsd* | netbsdelf*-gnu)
10677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10678 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10679 wlarc=
10680 else
10681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10682 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10683 fi
10684 ;;
10685
10686 solaris*)
10687 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10688 ld_shlibs=no
10689 cat <<_LT_EOF 1>&2
10690
10691 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10692 *** create shared libraries on Solaris systems. Therefore, libtool
10693 *** is disabling shared libraries support. We urge you to upgrade GNU
10694 *** binutils to release 2.9.1 or newer. Another option is to modify
10695 *** your PATH or compiler configuration so that the native linker is
10696 *** used, and then restart.
10697
10698 _LT_EOF
10699 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10700 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10701 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10702 else
10703 ld_shlibs=no
10704 fi
10705 ;;
10706
10707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10708 case `$LD -v 2>&1` in
10709 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10710 ld_shlibs=no
10711 cat <<_LT_EOF 1>&2
10712
10713 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10714 *** reliably create shared libraries on SCO systems. Therefore, libtool
10715 *** is disabling shared libraries support. We urge you to upgrade GNU
10716 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10717 *** your PATH or compiler configuration so that the native linker is
10718 *** used, and then restart.
10719
10720 _LT_EOF
10721 ;;
10722 *)
10723 # For security reasons, it is highly recommended that you always
10724 # use absolute paths for naming shared libraries, and exclude the
10725 # DT_RUNPATH tag from executables and libraries. But doing so
10726 # requires that you compile everything twice, which is a pain.
10727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10728 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10731 else
10732 ld_shlibs=no
10733 fi
10734 ;;
10735 esac
10736 ;;
10737
10738 sunos4*)
10739 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10740 wlarc=
10741 hardcode_direct=yes
10742 hardcode_shlibpath_var=no
10743 ;;
10744
10745 *)
10746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10748 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10749 else
10750 ld_shlibs=no
10751 fi
10752 ;;
10753 esac
10754
10755 if test no = "$ld_shlibs"; then
10756 runpath_var=
10757 hardcode_libdir_flag_spec=
10758 export_dynamic_flag_spec=
10759 whole_archive_flag_spec=
10760 fi
10761 else
10762 # PORTME fill in a description of your system's linker (not GNU ld)
10763 case $host_os in
10764 aix3*)
10765 allow_undefined_flag=unsupported
10766 always_export_symbols=yes
10767 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'
10768 # Note: this linker hardcodes the directories in LIBPATH if there
10769 # are no directories specified by -L.
10770 hardcode_minus_L=yes
10771 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10772 # Neither direct hardcoding nor static linking is supported with a
10773 # broken collect2.
10774 hardcode_direct=unsupported
10775 fi
10776 ;;
10777
10778 aix[4-9]*)
10779 if test ia64 = "$host_cpu"; then
10780 # On IA64, the linker does run time linking by default, so we don't
10781 # have to do anything special.
10782 aix_use_runtimelinking=no
10783 exp_sym_flag='-Bexport'
10784 no_entry_flag=
10785 else
10786 # If we're using GNU nm, then we don't want the "-C" option.
10787 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10788 # Without the "-l" option, or with the "-B" option, AIX nm treats
10789 # weak defined symbols like other global defined symbols, whereas
10790 # GNU nm marks them as "W".
10791 # While the 'weak' keyword is ignored in the Export File, we need
10792 # it in the Import File for the 'aix-soname' feature, so we have
10793 # to replace the "-B" option with "-P" for AIX nm.
10794 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10795 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10796 else
10797 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10798 fi
10799 aix_use_runtimelinking=no
10800
10801 # Test if we are trying to use run time linking or normal
10802 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10803 # have runtime linking enabled, and use it for executables.
10804 # For shared libraries, we enable/disable runtime linking
10805 # depending on the kind of the shared library created -
10806 # when "with_aix_soname,aix_use_runtimelinking" is:
10807 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10808 # "aix,yes" lib.so shared, rtl:yes, for executables
10809 # lib.a static archive
10810 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10811 # lib.a(lib.so.V) shared, rtl:no, for executables
10812 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10813 # lib.a(lib.so.V) shared, rtl:no
10814 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10815 # lib.a static archive
10816 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10817 for ld_flag in $LDFLAGS; do
10818 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10819 aix_use_runtimelinking=yes
10820 break
10821 fi
10822 done
10823 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10824 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10825 # so we don't have lib.a shared libs to link our executables.
10826 # We have to force runtime linking in this case.
10827 aix_use_runtimelinking=yes
10828 LDFLAGS="$LDFLAGS -Wl,-brtl"
10829 fi
10830 ;;
10831 esac
10832
10833 exp_sym_flag='-bexport'
10834 no_entry_flag='-bnoentry'
10835 fi
10836
10837 # When large executables or shared objects are built, AIX ld can
10838 # have problems creating the table of contents. If linking a library
10839 # or program results in "error TOC overflow" add -mminimal-toc to
10840 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10841 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10842
10843 archive_cmds=''
10844 hardcode_direct=yes
10845 hardcode_direct_absolute=yes
10846 hardcode_libdir_separator=':'
10847 link_all_deplibs=yes
10848 file_list_spec='$wl-f,'
10849 case $with_aix_soname,$aix_use_runtimelinking in
10850 aix,*) ;; # traditional, no import file
10851 svr4,* | *,yes) # use import file
10852 # The Import File defines what to hardcode.
10853 hardcode_direct=no
10854 hardcode_direct_absolute=no
10855 ;;
10856 esac
10857
10858 if test yes = "$GCC"; then
10859 case $host_os in aix4.[012]|aix4.[012].*)
10860 # We only want to do this on AIX 4.2 and lower, the check
10861 # below for broken collect2 doesn't work under 4.3+
10862 collect2name=`$CC -print-prog-name=collect2`
10863 if test -f "$collect2name" &&
10864 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10865 then
10866 # We have reworked collect2
10867 :
10868 else
10869 # We have old collect2
10870 hardcode_direct=unsupported
10871 # It fails to find uninstalled libraries when the uninstalled
10872 # path is not listed in the libpath. Setting hardcode_minus_L
10873 # to unsupported forces relinking
10874 hardcode_minus_L=yes
10875 hardcode_libdir_flag_spec='-L$libdir'
10876 hardcode_libdir_separator=
10877 fi
10878 ;;
10879 esac
10880 shared_flag='-shared'
10881 if test yes = "$aix_use_runtimelinking"; then
10882 shared_flag="$shared_flag "'$wl-G'
10883 fi
10884 # Need to ensure runtime linking is disabled for the traditional
10885 # shared library, or the linker may eventually find shared libraries
10886 # /with/ Import File - we do not want to mix them.
10887 shared_flag_aix='-shared'
10888 shared_flag_svr4='-shared $wl-G'
10889 else
10890 # not using gcc
10891 if test ia64 = "$host_cpu"; then
10892 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10893 # chokes on -Wl,-G. The following line is correct:
10894 shared_flag='-G'
10895 else
10896 if test yes = "$aix_use_runtimelinking"; then
10897 shared_flag='$wl-G'
10898 else
10899 shared_flag='$wl-bM:SRE'
10900 fi
10901 shared_flag_aix='$wl-bM:SRE'
10902 shared_flag_svr4='$wl-G'
10903 fi
10904 fi
10905
10906 export_dynamic_flag_spec='$wl-bexpall'
10907 # It seems that -bexpall does not export symbols beginning with
10908 # underscore (_), so it is better to generate a list of symbols to export.
10909 always_export_symbols=yes
10910 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10911 # Warning - without using the other runtime loading flags (-brtl),
10912 # -berok will link without error, but may produce a broken library.
10913 allow_undefined_flag='-berok'
10914 # Determine the default libpath from the value encoded in an
10915 # empty executable.
10916 if test set = "${lt_cv_aix_libpath+set}"; then
10917 aix_libpath=$lt_cv_aix_libpath
10918 else
10919 if ${lt_cv_aix_libpath_+:} false; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924
10925 int
10926 main ()
10927 {
10928
10929 ;
10930 return 0;
10931 }
10932 _ACEOF
10933 if ac_fn_c_try_link "$LINENO"; then :
10934
10935 lt_aix_libpath_sed='
10936 /Import File Strings/,/^$/ {
10937 /^0/ {
10938 s/^0 *\([^ ]*\) *$/\1/
10939 p
10940 }
10941 }'
10942 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10943 # Check for a 64-bit object if we didn't find anything.
10944 if test -z "$lt_cv_aix_libpath_"; then
10945 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10946 fi
10947 fi
10948 rm -f core conftest.err conftest.$ac_objext \
10949 conftest$ac_exeext conftest.$ac_ext
10950 if test -z "$lt_cv_aix_libpath_"; then
10951 lt_cv_aix_libpath_=/usr/lib:/lib
10952 fi
10953
10954 fi
10955
10956 aix_libpath=$lt_cv_aix_libpath_
10957 fi
10958
10959 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10960 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10961 else
10962 if test ia64 = "$host_cpu"; then
10963 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10964 allow_undefined_flag="-z nodefs"
10965 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"
10966 else
10967 # Determine the default libpath from the value encoded in an
10968 # empty executable.
10969 if test set = "${lt_cv_aix_libpath+set}"; then
10970 aix_libpath=$lt_cv_aix_libpath
10971 else
10972 if ${lt_cv_aix_libpath_+:} false; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977
10978 int
10979 main ()
10980 {
10981
10982 ;
10983 return 0;
10984 }
10985 _ACEOF
10986 if ac_fn_c_try_link "$LINENO"; then :
10987
10988 lt_aix_libpath_sed='
10989 /Import File Strings/,/^$/ {
10990 /^0/ {
10991 s/^0 *\([^ ]*\) *$/\1/
10992 p
10993 }
10994 }'
10995 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10996 # Check for a 64-bit object if we didn't find anything.
10997 if test -z "$lt_cv_aix_libpath_"; then
10998 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10999 fi
11000 fi
11001 rm -f core conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
11003 if test -z "$lt_cv_aix_libpath_"; then
11004 lt_cv_aix_libpath_=/usr/lib:/lib
11005 fi
11006
11007 fi
11008
11009 aix_libpath=$lt_cv_aix_libpath_
11010 fi
11011
11012 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11013 # Warning - without using the other run time loading flags,
11014 # -berok will link without error, but may produce a broken library.
11015 no_undefined_flag=' $wl-bernotok'
11016 allow_undefined_flag=' $wl-berok'
11017 if test yes = "$with_gnu_ld"; then
11018 # We only use this code for GNU lds that support --whole-archive.
11019 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11020 else
11021 # Exported symbols can be pulled into shared objects from archives
11022 whole_archive_flag_spec='$convenience'
11023 fi
11024 archive_cmds_need_lc=yes
11025 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11026 # -brtl affects multiple linker settings, -berok does not and is overridden later
11027 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11028 if test svr4 != "$with_aix_soname"; then
11029 # This is similar to how AIX traditionally builds its shared libraries.
11030 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11031 fi
11032 if test aix != "$with_aix_soname"; then
11033 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11034 else
11035 # used by -dlpreopen to get the symbols
11036 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11037 fi
11038 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11039 fi
11040 fi
11041 ;;
11042
11043 amigaos*)
11044 case $host_cpu in
11045 powerpc)
11046 # see comment about AmigaOS4 .so support
11047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11048 archive_expsym_cmds=''
11049 ;;
11050 m68k)
11051 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)'
11052 hardcode_libdir_flag_spec='-L$libdir'
11053 hardcode_minus_L=yes
11054 ;;
11055 esac
11056 ;;
11057
11058 bsdi[45]*)
11059 export_dynamic_flag_spec=-rdynamic
11060 ;;
11061
11062 cygwin* | mingw* | pw32* | cegcc*)
11063 # When not using gcc, we currently assume that we are using
11064 # Microsoft Visual C++.
11065 # hardcode_libdir_flag_spec is actually meaningless, as there is
11066 # no search path for DLLs.
11067 case $cc_basename in
11068 cl*)
11069 # Native MSVC
11070 hardcode_libdir_flag_spec=' '
11071 allow_undefined_flag=unsupported
11072 always_export_symbols=yes
11073 file_list_spec='@'
11074 # Tell ltmain to make .lib files, not .a files.
11075 libext=lib
11076 # Tell ltmain to make .dll files, not .so files.
11077 shrext_cmds=.dll
11078 # FIXME: Setting linknames here is a bad hack.
11079 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11080 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11081 cp "$export_symbols" "$output_objdir/$soname.def";
11082 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11083 else
11084 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11085 fi~
11086 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11087 linknames='
11088 # The linker will not automatically build a static lib if we build a DLL.
11089 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11090 enable_shared_with_static_runtimes=yes
11091 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11092 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11093 # Don't use ranlib
11094 old_postinstall_cmds='chmod 644 $oldlib'
11095 postlink_cmds='lt_outputfile="@OUTPUT@"~
11096 lt_tool_outputfile="@TOOL_OUTPUT@"~
11097 case $lt_outputfile in
11098 *.exe|*.EXE) ;;
11099 *)
11100 lt_outputfile=$lt_outputfile.exe
11101 lt_tool_outputfile=$lt_tool_outputfile.exe
11102 ;;
11103 esac~
11104 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11105 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11106 $RM "$lt_outputfile.manifest";
11107 fi'
11108 ;;
11109 *)
11110 # Assume MSVC wrapper
11111 hardcode_libdir_flag_spec=' '
11112 allow_undefined_flag=unsupported
11113 # Tell ltmain to make .lib files, not .a files.
11114 libext=lib
11115 # Tell ltmain to make .dll files, not .so files.
11116 shrext_cmds=.dll
11117 # FIXME: Setting linknames here is a bad hack.
11118 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11119 # The linker will automatically build a .lib file if we build a DLL.
11120 old_archive_from_new_cmds='true'
11121 # FIXME: Should let the user specify the lib program.
11122 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11123 enable_shared_with_static_runtimes=yes
11124 ;;
11125 esac
11126 ;;
11127
11128 darwin* | rhapsody*)
11129
11130
11131 archive_cmds_need_lc=no
11132 hardcode_direct=no
11133 hardcode_automatic=yes
11134 hardcode_shlibpath_var=unsupported
11135 if test yes = "$lt_cv_ld_force_load"; then
11136 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\"`'
11137
11138 else
11139 whole_archive_flag_spec=''
11140 fi
11141 link_all_deplibs=yes
11142 allow_undefined_flag=$_lt_dar_allow_undefined
11143 case $cc_basename in
11144 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11145 *) _lt_dar_can_shared=$GCC ;;
11146 esac
11147 if test yes = "$_lt_dar_can_shared"; then
11148 output_verbose_link_cmd=func_echo_all
11149 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11150 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11151 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"
11152 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"
11153
11154 else
11155 ld_shlibs=no
11156 fi
11157
11158 ;;
11159
11160 dgux*)
11161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11162 hardcode_libdir_flag_spec='-L$libdir'
11163 hardcode_shlibpath_var=no
11164 ;;
11165
11166 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11167 # support. Future versions do this automatically, but an explicit c++rt0.o
11168 # does not break anything, and helps significantly (at the cost of a little
11169 # extra space).
11170 freebsd2.2*)
11171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11172 hardcode_libdir_flag_spec='-R$libdir'
11173 hardcode_direct=yes
11174 hardcode_shlibpath_var=no
11175 ;;
11176
11177 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11178 freebsd2.*)
11179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11180 hardcode_direct=yes
11181 hardcode_minus_L=yes
11182 hardcode_shlibpath_var=no
11183 ;;
11184
11185 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11186 freebsd* | dragonfly*)
11187 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11188 hardcode_libdir_flag_spec='-R$libdir'
11189 hardcode_direct=yes
11190 hardcode_shlibpath_var=no
11191 ;;
11192
11193 hpux9*)
11194 if test yes = "$GCC"; then
11195 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11196 else
11197 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11198 fi
11199 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11200 hardcode_libdir_separator=:
11201 hardcode_direct=yes
11202
11203 # hardcode_minus_L: Not really in the search PATH,
11204 # but as the default location of the library.
11205 hardcode_minus_L=yes
11206 export_dynamic_flag_spec='$wl-E'
11207 ;;
11208
11209 hpux10*)
11210 if test yes,no = "$GCC,$with_gnu_ld"; then
11211 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11212 else
11213 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11214 fi
11215 if test no = "$with_gnu_ld"; then
11216 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11217 hardcode_libdir_separator=:
11218 hardcode_direct=yes
11219 hardcode_direct_absolute=yes
11220 export_dynamic_flag_spec='$wl-E'
11221 # hardcode_minus_L: Not really in the search PATH,
11222 # but as the default location of the library.
11223 hardcode_minus_L=yes
11224 fi
11225 ;;
11226
11227 hpux11*)
11228 if test yes,no = "$GCC,$with_gnu_ld"; then
11229 case $host_cpu in
11230 hppa*64*)
11231 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11232 ;;
11233 ia64*)
11234 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11235 ;;
11236 *)
11237 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11238 ;;
11239 esac
11240 else
11241 case $host_cpu in
11242 hppa*64*)
11243 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11244 ;;
11245 ia64*)
11246 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11247 ;;
11248 *)
11249
11250 # Older versions of the 11.00 compiler do not understand -b yet
11251 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11253 $as_echo_n "checking if $CC understands -b... " >&6; }
11254 if ${lt_cv_prog_compiler__b+:} false; then :
11255 $as_echo_n "(cached) " >&6
11256 else
11257 lt_cv_prog_compiler__b=no
11258 save_LDFLAGS=$LDFLAGS
11259 LDFLAGS="$LDFLAGS -b"
11260 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11261 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11262 # The linker can only warn and ignore the option if not recognized
11263 # So say no if there are warnings
11264 if test -s conftest.err; then
11265 # Append any errors to the config.log.
11266 cat conftest.err 1>&5
11267 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11269 if diff conftest.exp conftest.er2 >/dev/null; then
11270 lt_cv_prog_compiler__b=yes
11271 fi
11272 else
11273 lt_cv_prog_compiler__b=yes
11274 fi
11275 fi
11276 $RM -r conftest*
11277 LDFLAGS=$save_LDFLAGS
11278
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11281 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11282
11283 if test yes = "$lt_cv_prog_compiler__b"; then
11284 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11285 else
11286 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11287 fi
11288
11289 ;;
11290 esac
11291 fi
11292 if test no = "$with_gnu_ld"; then
11293 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11294 hardcode_libdir_separator=:
11295
11296 case $host_cpu in
11297 hppa*64*|ia64*)
11298 hardcode_direct=no
11299 hardcode_shlibpath_var=no
11300 ;;
11301 *)
11302 hardcode_direct=yes
11303 hardcode_direct_absolute=yes
11304 export_dynamic_flag_spec='$wl-E'
11305
11306 # hardcode_minus_L: Not really in the search PATH,
11307 # but as the default location of the library.
11308 hardcode_minus_L=yes
11309 ;;
11310 esac
11311 fi
11312 ;;
11313
11314 irix5* | irix6* | nonstopux*)
11315 if test yes = "$GCC"; then
11316 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'
11317 # Try to use the -exported_symbol ld option, if it does not
11318 # work, assume that -exports_file does not work either and
11319 # implicitly export all symbols.
11320 # This should be the same for all languages, so no per-tag cache variable.
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11322 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11323 if ${lt_cv_irix_exported_symbol+:} false; then :
11324 $as_echo_n "(cached) " >&6
11325 else
11326 save_LDFLAGS=$LDFLAGS
11327 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330 int foo (void) { return 0; }
11331 _ACEOF
11332 if ac_fn_c_try_link "$LINENO"; then :
11333 lt_cv_irix_exported_symbol=yes
11334 else
11335 lt_cv_irix_exported_symbol=no
11336 fi
11337 rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
11339 LDFLAGS=$save_LDFLAGS
11340 fi
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11342 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11343 if test yes = "$lt_cv_irix_exported_symbol"; then
11344 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'
11345 fi
11346 link_all_deplibs=no
11347 else
11348 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'
11349 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'
11350 fi
11351 archive_cmds_need_lc='no'
11352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11353 hardcode_libdir_separator=:
11354 inherit_rpath=yes
11355 link_all_deplibs=yes
11356 ;;
11357
11358 linux*)
11359 case $cc_basename in
11360 tcc*)
11361 # Fabrice Bellard et al's Tiny C Compiler
11362 ld_shlibs=yes
11363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11364 ;;
11365 esac
11366 ;;
11367
11368 netbsd* | netbsdelf*-gnu)
11369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11371 else
11372 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11373 fi
11374 hardcode_libdir_flag_spec='-R$libdir'
11375 hardcode_direct=yes
11376 hardcode_shlibpath_var=no
11377 ;;
11378
11379 newsos6)
11380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11381 hardcode_direct=yes
11382 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11383 hardcode_libdir_separator=:
11384 hardcode_shlibpath_var=no
11385 ;;
11386
11387 *nto* | *qnx*)
11388 ;;
11389
11390 openbsd* | bitrig*)
11391 if test -f /usr/libexec/ld.so; then
11392 hardcode_direct=yes
11393 hardcode_shlibpath_var=no
11394 hardcode_direct_absolute=yes
11395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11396 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11397 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11398 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11399 export_dynamic_flag_spec='$wl-E'
11400 else
11401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11402 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11403 fi
11404 else
11405 ld_shlibs=no
11406 fi
11407 ;;
11408
11409 os2*)
11410 hardcode_libdir_flag_spec='-L$libdir'
11411 hardcode_minus_L=yes
11412 allow_undefined_flag=unsupported
11413 shrext_cmds=.dll
11414 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11415 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11416 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11417 $ECHO EXPORTS >> $output_objdir/$libname.def~
11418 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11419 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11420 emximp -o $lib $output_objdir/$libname.def'
11421 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11422 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11423 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11424 $ECHO EXPORTS >> $output_objdir/$libname.def~
11425 prefix_cmds="$SED"~
11426 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11427 prefix_cmds="$prefix_cmds -e 1d";
11428 fi~
11429 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11430 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11431 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11432 emximp -o $lib $output_objdir/$libname.def'
11433 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11434 enable_shared_with_static_runtimes=yes
11435 ;;
11436
11437 osf3*)
11438 if test yes = "$GCC"; then
11439 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11440 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'
11441 else
11442 allow_undefined_flag=' -expect_unresolved \*'
11443 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'
11444 fi
11445 archive_cmds_need_lc='no'
11446 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11447 hardcode_libdir_separator=:
11448 ;;
11449
11450 osf4* | osf5*) # as osf3* with the addition of -msym flag
11451 if test yes = "$GCC"; then
11452 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11453 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'
11454 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11455 else
11456 allow_undefined_flag=' -expect_unresolved \*'
11457 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'
11458 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~
11459 $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'
11460
11461 # Both c and cxx compiler support -rpath directly
11462 hardcode_libdir_flag_spec='-rpath $libdir'
11463 fi
11464 archive_cmds_need_lc='no'
11465 hardcode_libdir_separator=:
11466 ;;
11467
11468 solaris*)
11469 no_undefined_flag=' -z defs'
11470 if test yes = "$GCC"; then
11471 wlarc='$wl'
11472 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11473 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11474 $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'
11475 else
11476 case `$CC -V 2>&1` in
11477 *"Compilers 5.0"*)
11478 wlarc=''
11479 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11481 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11482 ;;
11483 *)
11484 wlarc='$wl'
11485 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11486 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11487 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11488 ;;
11489 esac
11490 fi
11491 hardcode_libdir_flag_spec='-R$libdir'
11492 hardcode_shlibpath_var=no
11493 case $host_os in
11494 solaris2.[0-5] | solaris2.[0-5].*) ;;
11495 *)
11496 # The compiler driver will combine and reorder linker options,
11497 # but understands '-z linker_flag'. GCC discards it without '$wl',
11498 # but is careful enough not to reorder.
11499 # Supported since Solaris 2.6 (maybe 2.5.1?)
11500 if test yes = "$GCC"; then
11501 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11502 else
11503 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11504 fi
11505 ;;
11506 esac
11507 link_all_deplibs=yes
11508 ;;
11509
11510 sunos4*)
11511 if test sequent = "$host_vendor"; then
11512 # Use $CC to link under sequent, because it throws in some extra .o
11513 # files that make .init and .fini sections work.
11514 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11515 else
11516 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11517 fi
11518 hardcode_libdir_flag_spec='-L$libdir'
11519 hardcode_direct=yes
11520 hardcode_minus_L=yes
11521 hardcode_shlibpath_var=no
11522 ;;
11523
11524 sysv4)
11525 case $host_vendor in
11526 sni)
11527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11528 hardcode_direct=yes # is this really true???
11529 ;;
11530 siemens)
11531 ## LD is ld it makes a PLAMLIB
11532 ## CC just makes a GrossModule.
11533 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11534 reload_cmds='$CC -r -o $output$reload_objs'
11535 hardcode_direct=no
11536 ;;
11537 motorola)
11538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11539 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11540 ;;
11541 esac
11542 runpath_var='LD_RUN_PATH'
11543 hardcode_shlibpath_var=no
11544 ;;
11545
11546 sysv4.3*)
11547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11548 hardcode_shlibpath_var=no
11549 export_dynamic_flag_spec='-Bexport'
11550 ;;
11551
11552 sysv4*MP*)
11553 if test -d /usr/nec; then
11554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11555 hardcode_shlibpath_var=no
11556 runpath_var=LD_RUN_PATH
11557 hardcode_runpath_var=yes
11558 ld_shlibs=yes
11559 fi
11560 ;;
11561
11562 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11563 no_undefined_flag='$wl-z,text'
11564 archive_cmds_need_lc=no
11565 hardcode_shlibpath_var=no
11566 runpath_var='LD_RUN_PATH'
11567
11568 if test yes = "$GCC"; then
11569 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11570 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11571 else
11572 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11573 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11574 fi
11575 ;;
11576
11577 sysv5* | sco3.2v5* | sco5v6*)
11578 # Note: We CANNOT use -z defs as we might desire, because we do not
11579 # link with -lc, and that would cause any symbols used from libc to
11580 # always be unresolved, which means just about no library would
11581 # ever link correctly. If we're not using GNU ld we use -z text
11582 # though, which does catch some bad symbols but isn't as heavy-handed
11583 # as -z defs.
11584 no_undefined_flag='$wl-z,text'
11585 allow_undefined_flag='$wl-z,nodefs'
11586 archive_cmds_need_lc=no
11587 hardcode_shlibpath_var=no
11588 hardcode_libdir_flag_spec='$wl-R,$libdir'
11589 hardcode_libdir_separator=':'
11590 link_all_deplibs=yes
11591 export_dynamic_flag_spec='$wl-Bexport'
11592 runpath_var='LD_RUN_PATH'
11593
11594 if test yes = "$GCC"; then
11595 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11596 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11597 else
11598 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11599 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11600 fi
11601 ;;
11602
11603 uts4*)
11604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11605 hardcode_libdir_flag_spec='-L$libdir'
11606 hardcode_shlibpath_var=no
11607 ;;
11608
11609 *)
11610 ld_shlibs=no
11611 ;;
11612 esac
11613
11614 if test sni = "$host_vendor"; then
11615 case $host in
11616 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11617 export_dynamic_flag_spec='$wl-Blargedynsym'
11618 ;;
11619 esac
11620 fi
11621 fi
11622
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11624 $as_echo "$ld_shlibs" >&6; }
11625 test no = "$ld_shlibs" && can_build_shared=no
11626
11627 with_gnu_ld=$with_gnu_ld
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643 #
11644 # Do we need to explicitly link libc?
11645 #
11646 case "x$archive_cmds_need_lc" in
11647 x|xyes)
11648 # Assume -lc should be added
11649 archive_cmds_need_lc=yes
11650
11651 if test yes,yes = "$GCC,$enable_shared"; then
11652 case $archive_cmds in
11653 *'~'*)
11654 # FIXME: we may have to deal with multi-command sequences.
11655 ;;
11656 '$CC '*)
11657 # Test whether the compiler implicitly links with -lc since on some
11658 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11659 # to ld, don't add -lc before -lgcc.
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11661 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11662 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 $RM conftest*
11666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11667
11668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11669 (eval $ac_compile) 2>&5
11670 ac_status=$?
11671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11672 test $ac_status = 0; } 2>conftest.err; then
11673 soname=conftest
11674 lib=conftest
11675 libobjs=conftest.$ac_objext
11676 deplibs=
11677 wl=$lt_prog_compiler_wl
11678 pic_flag=$lt_prog_compiler_pic
11679 compiler_flags=-v
11680 linker_flags=-v
11681 verstring=
11682 output_objdir=.
11683 libname=conftest
11684 lt_save_allow_undefined_flag=$allow_undefined_flag
11685 allow_undefined_flag=
11686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11687 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11688 ac_status=$?
11689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11690 test $ac_status = 0; }
11691 then
11692 lt_cv_archive_cmds_need_lc=no
11693 else
11694 lt_cv_archive_cmds_need_lc=yes
11695 fi
11696 allow_undefined_flag=$lt_save_allow_undefined_flag
11697 else
11698 cat conftest.err 1>&5
11699 fi
11700 $RM conftest*
11701
11702 fi
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11704 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11705 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11706 ;;
11707 esac
11708 fi
11709 ;;
11710 esac
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11864 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11865
11866 if test yes = "$GCC"; then
11867 case $host_os in
11868 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11869 *) lt_awk_arg='/^libraries:/' ;;
11870 esac
11871 case $host_os in
11872 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11873 *) lt_sed_strip_eq='s|=/|/|g' ;;
11874 esac
11875 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11876 case $lt_search_path_spec in
11877 *\;*)
11878 # if the path contains ";" then we assume it to be the separator
11879 # otherwise default to the standard path separator (i.e. ":") - it is
11880 # assumed that no part of a normal pathname contains ";" but that should
11881 # okay in the real world where ";" in dirpaths is itself problematic.
11882 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11883 ;;
11884 *)
11885 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11886 ;;
11887 esac
11888 # Ok, now we have the path, separated by spaces, we can step through it
11889 # and add multilib dir if necessary...
11890 lt_tmp_lt_search_path_spec=
11891 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11892 # ...but if some path component already ends with the multilib dir we assume
11893 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11894 case "$lt_multi_os_dir; $lt_search_path_spec " in
11895 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11896 lt_multi_os_dir=
11897 ;;
11898 esac
11899 for lt_sys_path in $lt_search_path_spec; do
11900 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11901 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11902 elif test -n "$lt_multi_os_dir"; then
11903 test -d "$lt_sys_path" && \
11904 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11905 fi
11906 done
11907 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11908 BEGIN {RS = " "; FS = "/|\n";} {
11909 lt_foo = "";
11910 lt_count = 0;
11911 for (lt_i = NF; lt_i > 0; lt_i--) {
11912 if ($lt_i != "" && $lt_i != ".") {
11913 if ($lt_i == "..") {
11914 lt_count++;
11915 } else {
11916 if (lt_count == 0) {
11917 lt_foo = "/" $lt_i lt_foo;
11918 } else {
11919 lt_count--;
11920 }
11921 }
11922 }
11923 }
11924 if (lt_foo != "") { lt_freq[lt_foo]++; }
11925 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11926 }'`
11927 # AWK program above erroneously prepends '/' to C:/dos/paths
11928 # for these hosts.
11929 case $host_os in
11930 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11931 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11932 esac
11933 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11934 else
11935 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11936 fi
11937 library_names_spec=
11938 libname_spec='lib$name'
11939 soname_spec=
11940 shrext_cmds=.so
11941 postinstall_cmds=
11942 postuninstall_cmds=
11943 finish_cmds=
11944 finish_eval=
11945 shlibpath_var=
11946 shlibpath_overrides_runpath=unknown
11947 version_type=none
11948 dynamic_linker="$host_os ld.so"
11949 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11950 need_lib_prefix=unknown
11951 hardcode_into_libs=no
11952
11953 # when you set need_version to no, make sure it does not cause -set_version
11954 # flags to be left without arguments
11955 need_version=unknown
11956
11957
11958
11959 case $host_os in
11960 aix3*)
11961 version_type=linux # correct to gnu/linux during the next big refactor
11962 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11963 shlibpath_var=LIBPATH
11964
11965 # AIX 3 has no versioning support, so we append a major version to the name.
11966 soname_spec='$libname$release$shared_ext$major'
11967 ;;
11968
11969 aix[4-9]*)
11970 version_type=linux # correct to gnu/linux during the next big refactor
11971 need_lib_prefix=no
11972 need_version=no
11973 hardcode_into_libs=yes
11974 if test ia64 = "$host_cpu"; then
11975 # AIX 5 supports IA64
11976 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11977 shlibpath_var=LD_LIBRARY_PATH
11978 else
11979 # With GCC up to 2.95.x, collect2 would create an import file
11980 # for dependence libraries. The import file would start with
11981 # the line '#! .'. This would cause the generated library to
11982 # depend on '.', always an invalid library. This was fixed in
11983 # development snapshots of GCC prior to 3.0.
11984 case $host_os in
11985 aix4 | aix4.[01] | aix4.[01].*)
11986 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11987 echo ' yes '
11988 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11989 :
11990 else
11991 can_build_shared=no
11992 fi
11993 ;;
11994 esac
11995 # Using Import Files as archive members, it is possible to support
11996 # filename-based versioning of shared library archives on AIX. While
11997 # this would work for both with and without runtime linking, it will
11998 # prevent static linking of such archives. So we do filename-based
11999 # shared library versioning with .so extension only, which is used
12000 # when both runtime linking and shared linking is enabled.
12001 # Unfortunately, runtime linking may impact performance, so we do
12002 # not want this to be the default eventually. Also, we use the
12003 # versioned .so libs for executables only if there is the -brtl
12004 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12005 # To allow for filename-based versioning support, we need to create
12006 # libNAME.so.V as an archive file, containing:
12007 # *) an Import File, referring to the versioned filename of the
12008 # archive as well as the shared archive member, telling the
12009 # bitwidth (32 or 64) of that shared object, and providing the
12010 # list of exported symbols of that shared object, eventually
12011 # decorated with the 'weak' keyword
12012 # *) the shared object with the F_LOADONLY flag set, to really avoid
12013 # it being seen by the linker.
12014 # At run time we better use the real file rather than another symlink,
12015 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12016
12017 case $with_aix_soname,$aix_use_runtimelinking in
12018 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12019 # soname into executable. Probably we can add versioning support to
12020 # collect2, so additional links can be useful in future.
12021 aix,yes) # traditional libtool
12022 dynamic_linker='AIX unversionable lib.so'
12023 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12024 # instead of lib<name>.a to let people know that these are not
12025 # typical AIX shared libraries.
12026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12027 ;;
12028 aix,no) # traditional AIX only
12029 dynamic_linker='AIX lib.a(lib.so.V)'
12030 # We preserve .a as extension for shared libraries through AIX4.2
12031 # and later when we are not doing run time linking.
12032 library_names_spec='$libname$release.a $libname.a'
12033 soname_spec='$libname$release$shared_ext$major'
12034 ;;
12035 svr4,*) # full svr4 only
12036 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12037 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12038 # We do not specify a path in Import Files, so LIBPATH fires.
12039 shlibpath_overrides_runpath=yes
12040 ;;
12041 *,yes) # both, prefer svr4
12042 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12043 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12044 # unpreferred sharedlib libNAME.a needs extra handling
12045 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12046 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12047 # We do not specify a path in Import Files, so LIBPATH fires.
12048 shlibpath_overrides_runpath=yes
12049 ;;
12050 *,no) # both, prefer aix
12051 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12052 library_names_spec='$libname$release.a $libname.a'
12053 soname_spec='$libname$release$shared_ext$major'
12054 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12055 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12056 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12057 ;;
12058 esac
12059 shlibpath_var=LIBPATH
12060 fi
12061 ;;
12062
12063 amigaos*)
12064 case $host_cpu in
12065 powerpc)
12066 # Since July 2007 AmigaOS4 officially supports .so libraries.
12067 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12069 ;;
12070 m68k)
12071 library_names_spec='$libname.ixlibrary $libname.a'
12072 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12073 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12074 ;;
12075 esac
12076 ;;
12077
12078 beos*)
12079 library_names_spec='$libname$shared_ext'
12080 dynamic_linker="$host_os ld.so"
12081 shlibpath_var=LIBRARY_PATH
12082 ;;
12083
12084 bsdi[45]*)
12085 version_type=linux # correct to gnu/linux during the next big refactor
12086 need_version=no
12087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12088 soname_spec='$libname$release$shared_ext$major'
12089 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12092 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12093 # the default ld.so.conf also contains /usr/contrib/lib and
12094 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12095 # libtool to hard-code these into programs
12096 ;;
12097
12098 cygwin* | mingw* | pw32* | cegcc*)
12099 version_type=windows
12100 shrext_cmds=.dll
12101 need_version=no
12102 need_lib_prefix=no
12103
12104 case $GCC,$cc_basename in
12105 yes,*)
12106 # gcc
12107 library_names_spec='$libname.dll.a'
12108 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12109 postinstall_cmds='base_file=`basename \$file`~
12110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12111 dldir=$destdir/`dirname \$dlpath`~
12112 test -d \$dldir || mkdir -p \$dldir~
12113 $install_prog $dir/$dlname \$dldir/$dlname~
12114 chmod a+x \$dldir/$dlname~
12115 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12116 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12117 fi'
12118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12119 dlpath=$dir/\$dldll~
12120 $RM \$dlpath'
12121 shlibpath_overrides_runpath=yes
12122
12123 case $host_os in
12124 cygwin*)
12125 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12126 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12127
12128 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12129 ;;
12130 mingw* | cegcc*)
12131 # MinGW DLLs use traditional 'lib' prefix
12132 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12133 ;;
12134 pw32*)
12135 # pw32 DLLs use 'pw' prefix rather than 'lib'
12136 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12137 ;;
12138 esac
12139 dynamic_linker='Win32 ld.exe'
12140 ;;
12141
12142 *,cl*)
12143 # Native MSVC
12144 libname_spec='$name'
12145 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12146 library_names_spec='$libname.dll.lib'
12147
12148 case $build_os in
12149 mingw*)
12150 sys_lib_search_path_spec=
12151 lt_save_ifs=$IFS
12152 IFS=';'
12153 for lt_path in $LIB
12154 do
12155 IFS=$lt_save_ifs
12156 # Let DOS variable expansion print the short 8.3 style file name.
12157 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12158 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12159 done
12160 IFS=$lt_save_ifs
12161 # Convert to MSYS style.
12162 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12163 ;;
12164 cygwin*)
12165 # Convert to unix form, then to dos form, then back to unix form
12166 # but this time dos style (no spaces!) so that the unix form looks
12167 # like /cygdrive/c/PROGRA~1:/cygdr...
12168 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12169 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12170 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12171 ;;
12172 *)
12173 sys_lib_search_path_spec=$LIB
12174 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12175 # It is most probably a Windows format PATH.
12176 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12177 else
12178 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12179 fi
12180 # FIXME: find the short name or the path components, as spaces are
12181 # common. (e.g. "Program Files" -> "PROGRA~1")
12182 ;;
12183 esac
12184
12185 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12186 postinstall_cmds='base_file=`basename \$file`~
12187 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12188 dldir=$destdir/`dirname \$dlpath`~
12189 test -d \$dldir || mkdir -p \$dldir~
12190 $install_prog $dir/$dlname \$dldir/$dlname'
12191 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12192 dlpath=$dir/\$dldll~
12193 $RM \$dlpath'
12194 shlibpath_overrides_runpath=yes
12195 dynamic_linker='Win32 link.exe'
12196 ;;
12197
12198 *)
12199 # Assume MSVC wrapper
12200 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12201 dynamic_linker='Win32 ld.exe'
12202 ;;
12203 esac
12204 # FIXME: first we should search . and the directory the executable is in
12205 shlibpath_var=PATH
12206 ;;
12207
12208 darwin* | rhapsody*)
12209 dynamic_linker="$host_os dyld"
12210 version_type=darwin
12211 need_lib_prefix=no
12212 need_version=no
12213 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12214 soname_spec='$libname$release$major$shared_ext'
12215 shlibpath_overrides_runpath=yes
12216 shlibpath_var=DYLD_LIBRARY_PATH
12217 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12218
12219 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12220 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12221 ;;
12222
12223 dgux*)
12224 version_type=linux # correct to gnu/linux during the next big refactor
12225 need_lib_prefix=no
12226 need_version=no
12227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12228 soname_spec='$libname$release$shared_ext$major'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 ;;
12231
12232 freebsd* | dragonfly*)
12233 # DragonFly does not have aout. When/if they implement a new
12234 # versioning mechanism, adjust this.
12235 if test -x /usr/bin/objformat; then
12236 objformat=`/usr/bin/objformat`
12237 else
12238 case $host_os in
12239 freebsd[23].*) objformat=aout ;;
12240 *) objformat=elf ;;
12241 esac
12242 fi
12243 version_type=freebsd-$objformat
12244 case $version_type in
12245 freebsd-elf*)
12246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12247 soname_spec='$libname$release$shared_ext$major'
12248 need_version=no
12249 need_lib_prefix=no
12250 ;;
12251 freebsd-*)
12252 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12253 need_version=yes
12254 ;;
12255 esac
12256 shlibpath_var=LD_LIBRARY_PATH
12257 case $host_os in
12258 freebsd2.*)
12259 shlibpath_overrides_runpath=yes
12260 ;;
12261 freebsd3.[01]* | freebsdelf3.[01]*)
12262 shlibpath_overrides_runpath=yes
12263 hardcode_into_libs=yes
12264 ;;
12265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12267 shlibpath_overrides_runpath=no
12268 hardcode_into_libs=yes
12269 ;;
12270 *) # from 4.6 on, and DragonFly
12271 shlibpath_overrides_runpath=yes
12272 hardcode_into_libs=yes
12273 ;;
12274 esac
12275 ;;
12276
12277 haiku*)
12278 version_type=linux # correct to gnu/linux during the next big refactor
12279 need_lib_prefix=no
12280 need_version=no
12281 dynamic_linker="$host_os runtime_loader"
12282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12283 soname_spec='$libname$release$shared_ext$major'
12284 shlibpath_var=LIBRARY_PATH
12285 shlibpath_overrides_runpath=no
12286 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12287 hardcode_into_libs=yes
12288 ;;
12289
12290 hpux9* | hpux10* | hpux11*)
12291 # Give a soname corresponding to the major version so that dld.sl refuses to
12292 # link against other versions.
12293 version_type=sunos
12294 need_lib_prefix=no
12295 need_version=no
12296 case $host_cpu in
12297 ia64*)
12298 shrext_cmds='.so'
12299 hardcode_into_libs=yes
12300 dynamic_linker="$host_os dld.so"
12301 shlibpath_var=LD_LIBRARY_PATH
12302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12304 soname_spec='$libname$release$shared_ext$major'
12305 if test 32 = "$HPUX_IA64_MODE"; then
12306 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12307 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12308 else
12309 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12310 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12311 fi
12312 ;;
12313 hppa*64*)
12314 shrext_cmds='.sl'
12315 hardcode_into_libs=yes
12316 dynamic_linker="$host_os dld.sl"
12317 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12320 soname_spec='$libname$release$shared_ext$major'
12321 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12323 ;;
12324 *)
12325 shrext_cmds='.sl'
12326 dynamic_linker="$host_os dld.sl"
12327 shlibpath_var=SHLIB_PATH
12328 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12330 soname_spec='$libname$release$shared_ext$major'
12331 ;;
12332 esac
12333 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12334 postinstall_cmds='chmod 555 $lib'
12335 # or fails outright, so override atomically:
12336 install_override_mode=555
12337 ;;
12338
12339 interix[3-9]*)
12340 version_type=linux # correct to gnu/linux during the next big refactor
12341 need_lib_prefix=no
12342 need_version=no
12343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12344 soname_spec='$libname$release$shared_ext$major'
12345 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12346 shlibpath_var=LD_LIBRARY_PATH
12347 shlibpath_overrides_runpath=no
12348 hardcode_into_libs=yes
12349 ;;
12350
12351 irix5* | irix6* | nonstopux*)
12352 case $host_os in
12353 nonstopux*) version_type=nonstopux ;;
12354 *)
12355 if test yes = "$lt_cv_prog_gnu_ld"; then
12356 version_type=linux # correct to gnu/linux during the next big refactor
12357 else
12358 version_type=irix
12359 fi ;;
12360 esac
12361 need_lib_prefix=no
12362 need_version=no
12363 soname_spec='$libname$release$shared_ext$major'
12364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12365 case $host_os in
12366 irix5* | nonstopux*)
12367 libsuff= shlibsuff=
12368 ;;
12369 *)
12370 case $LD in # libtool.m4 will add one of these switches to LD
12371 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12372 libsuff= shlibsuff= libmagic=32-bit;;
12373 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12374 libsuff=32 shlibsuff=N32 libmagic=N32;;
12375 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12376 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12377 *) libsuff= shlibsuff= libmagic=never-match;;
12378 esac
12379 ;;
12380 esac
12381 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12382 shlibpath_overrides_runpath=no
12383 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12384 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12385 hardcode_into_libs=yes
12386 ;;
12387
12388 # No shared lib support for Linux oldld, aout, or coff.
12389 linux*oldld* | linux*aout* | linux*coff*)
12390 dynamic_linker=no
12391 ;;
12392
12393 linux*android*)
12394 version_type=none # Android doesn't support versioned libraries.
12395 need_lib_prefix=no
12396 need_version=no
12397 library_names_spec='$libname$release$shared_ext'
12398 soname_spec='$libname$release$shared_ext'
12399 finish_cmds=
12400 shlibpath_var=LD_LIBRARY_PATH
12401 shlibpath_overrides_runpath=yes
12402
12403 # This implies no fast_install, which is unacceptable.
12404 # Some rework will be needed to allow for fast_install
12405 # before this can be enabled.
12406 hardcode_into_libs=yes
12407
12408 dynamic_linker='Android linker'
12409 # Don't embed -rpath directories since the linker doesn't support them.
12410 hardcode_libdir_flag_spec='-L$libdir'
12411 ;;
12412
12413 # This must be glibc/ELF.
12414 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12415 version_type=linux # correct to gnu/linux during the next big refactor
12416 need_lib_prefix=no
12417 need_version=no
12418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12419 soname_spec='$libname$release$shared_ext$major'
12420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12421 shlibpath_var=LD_LIBRARY_PATH
12422 shlibpath_overrides_runpath=no
12423
12424 # Some binutils ld are patched to set DT_RUNPATH
12425 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 lt_cv_shlibpath_overrides_runpath=no
12429 save_LDFLAGS=$LDFLAGS
12430 save_libdir=$libdir
12431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12435
12436 int
12437 main ()
12438 {
12439
12440 ;
12441 return 0;
12442 }
12443 _ACEOF
12444 if ac_fn_c_try_link "$LINENO"; then :
12445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12446 lt_cv_shlibpath_overrides_runpath=yes
12447 fi
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext \
12450 conftest$ac_exeext conftest.$ac_ext
12451 LDFLAGS=$save_LDFLAGS
12452 libdir=$save_libdir
12453
12454 fi
12455
12456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12457
12458 # This implies no fast_install, which is unacceptable.
12459 # Some rework will be needed to allow for fast_install
12460 # before this can be enabled.
12461 hardcode_into_libs=yes
12462
12463 # Ideally, we could use ldconfig to report *all* directores which are
12464 # searched for libraries, however this is still not possible. Aside from not
12465 # being certain /sbin/ldconfig is available, command
12466 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12467 # even though it is searched at run-time. Try to do the best guess by
12468 # appending ld.so.conf contents (and includes) to the search path.
12469 if test -f /etc/ld.so.conf; then
12470 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' ' '`
12471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12472 fi
12473
12474 # We used to test for /lib/ld.so.1 and disable shared libraries on
12475 # powerpc, because MkLinux only supported shared libraries with the
12476 # GNU dynamic linker. Since this was broken with cross compilers,
12477 # most powerpc-linux boxes support dynamic linking these days and
12478 # people can always --disable-shared, the test was removed, and we
12479 # assume the GNU/Linux dynamic linker is in use.
12480 dynamic_linker='GNU/Linux ld.so'
12481 ;;
12482
12483 netbsdelf*-gnu)
12484 version_type=linux
12485 need_lib_prefix=no
12486 need_version=no
12487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12488 soname_spec='${libname}${release}${shared_ext}$major'
12489 shlibpath_var=LD_LIBRARY_PATH
12490 shlibpath_overrides_runpath=no
12491 hardcode_into_libs=yes
12492 dynamic_linker='NetBSD ld.elf_so'
12493 ;;
12494
12495 netbsd*)
12496 version_type=sunos
12497 need_lib_prefix=no
12498 need_version=no
12499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12500 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12502 dynamic_linker='NetBSD (a.out) ld.so'
12503 else
12504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12505 soname_spec='$libname$release$shared_ext$major'
12506 dynamic_linker='NetBSD ld.elf_so'
12507 fi
12508 shlibpath_var=LD_LIBRARY_PATH
12509 shlibpath_overrides_runpath=yes
12510 hardcode_into_libs=yes
12511 ;;
12512
12513 newsos6)
12514 version_type=linux # correct to gnu/linux during the next big refactor
12515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12516 shlibpath_var=LD_LIBRARY_PATH
12517 shlibpath_overrides_runpath=yes
12518 ;;
12519
12520 *nto* | *qnx*)
12521 version_type=qnx
12522 need_lib_prefix=no
12523 need_version=no
12524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12525 soname_spec='$libname$release$shared_ext$major'
12526 shlibpath_var=LD_LIBRARY_PATH
12527 shlibpath_overrides_runpath=no
12528 hardcode_into_libs=yes
12529 dynamic_linker='ldqnx.so'
12530 ;;
12531
12532 openbsd* | bitrig*)
12533 version_type=sunos
12534 sys_lib_dlsearch_path_spec=/usr/lib
12535 need_lib_prefix=no
12536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12537 need_version=no
12538 else
12539 need_version=yes
12540 fi
12541 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12543 shlibpath_var=LD_LIBRARY_PATH
12544 shlibpath_overrides_runpath=yes
12545 ;;
12546
12547 os2*)
12548 libname_spec='$name'
12549 version_type=windows
12550 shrext_cmds=.dll
12551 need_version=no
12552 need_lib_prefix=no
12553 # OS/2 can only load a DLL with a base name of 8 characters or less.
12554 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12555 v=$($ECHO $release$versuffix | tr -d .-);
12556 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12557 $ECHO $n$v`$shared_ext'
12558 library_names_spec='${libname}_dll.$libext'
12559 dynamic_linker='OS/2 ld.exe'
12560 shlibpath_var=BEGINLIBPATH
12561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12563 postinstall_cmds='base_file=`basename \$file`~
12564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12565 dldir=$destdir/`dirname \$dlpath`~
12566 test -d \$dldir || mkdir -p \$dldir~
12567 $install_prog $dir/$dlname \$dldir/$dlname~
12568 chmod a+x \$dldir/$dlname~
12569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12570 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12571 fi'
12572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12573 dlpath=$dir/\$dldll~
12574 $RM \$dlpath'
12575 ;;
12576
12577 osf3* | osf4* | osf5*)
12578 version_type=osf
12579 need_lib_prefix=no
12580 need_version=no
12581 soname_spec='$libname$release$shared_ext$major'
12582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12583 shlibpath_var=LD_LIBRARY_PATH
12584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12586 ;;
12587
12588 rdos*)
12589 dynamic_linker=no
12590 ;;
12591
12592 solaris*)
12593 version_type=linux # correct to gnu/linux during the next big refactor
12594 need_lib_prefix=no
12595 need_version=no
12596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12597 soname_spec='$libname$release$shared_ext$major'
12598 shlibpath_var=LD_LIBRARY_PATH
12599 shlibpath_overrides_runpath=yes
12600 hardcode_into_libs=yes
12601 # ldd complains unless libraries are executable
12602 postinstall_cmds='chmod +x $lib'
12603 ;;
12604
12605 sunos4*)
12606 version_type=sunos
12607 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12609 shlibpath_var=LD_LIBRARY_PATH
12610 shlibpath_overrides_runpath=yes
12611 if test yes = "$with_gnu_ld"; then
12612 need_lib_prefix=no
12613 fi
12614 need_version=yes
12615 ;;
12616
12617 sysv4 | sysv4.3*)
12618 version_type=linux # correct to gnu/linux during the next big refactor
12619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12620 soname_spec='$libname$release$shared_ext$major'
12621 shlibpath_var=LD_LIBRARY_PATH
12622 case $host_vendor in
12623 sni)
12624 shlibpath_overrides_runpath=no
12625 need_lib_prefix=no
12626 runpath_var=LD_RUN_PATH
12627 ;;
12628 siemens)
12629 need_lib_prefix=no
12630 ;;
12631 motorola)
12632 need_lib_prefix=no
12633 need_version=no
12634 shlibpath_overrides_runpath=no
12635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12636 ;;
12637 esac
12638 ;;
12639
12640 sysv4*MP*)
12641 if test -d /usr/nec; then
12642 version_type=linux # correct to gnu/linux during the next big refactor
12643 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12644 soname_spec='$libname$shared_ext.$major'
12645 shlibpath_var=LD_LIBRARY_PATH
12646 fi
12647 ;;
12648
12649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12650 version_type=sco
12651 need_lib_prefix=no
12652 need_version=no
12653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12654 soname_spec='$libname$release$shared_ext$major'
12655 shlibpath_var=LD_LIBRARY_PATH
12656 shlibpath_overrides_runpath=yes
12657 hardcode_into_libs=yes
12658 if test yes = "$with_gnu_ld"; then
12659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12660 else
12661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12662 case $host_os in
12663 sco3.2v5*)
12664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12665 ;;
12666 esac
12667 fi
12668 sys_lib_dlsearch_path_spec='/usr/lib'
12669 ;;
12670
12671 tpf*)
12672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12673 version_type=linux # correct to gnu/linux during the next big refactor
12674 need_lib_prefix=no
12675 need_version=no
12676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12677 shlibpath_var=LD_LIBRARY_PATH
12678 shlibpath_overrides_runpath=no
12679 hardcode_into_libs=yes
12680 ;;
12681
12682 uts4*)
12683 version_type=linux # correct to gnu/linux during the next big refactor
12684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12685 soname_spec='$libname$release$shared_ext$major'
12686 shlibpath_var=LD_LIBRARY_PATH
12687 ;;
12688
12689 *)
12690 dynamic_linker=no
12691 ;;
12692 esac
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12694 $as_echo "$dynamic_linker" >&6; }
12695 test no = "$dynamic_linker" && can_build_shared=no
12696
12697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12698 if test yes = "$GCC"; then
12699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12700 fi
12701
12702 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12703 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12704 fi
12705
12706 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12707 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12708 fi
12709
12710 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12711 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12712
12713 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12714 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12715
12716 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12717 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12816 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12817 hardcode_action=
12818 if test -n "$hardcode_libdir_flag_spec" ||
12819 test -n "$runpath_var" ||
12820 test yes = "$hardcode_automatic"; then
12821
12822 # We can hardcode non-existent directories.
12823 if test no != "$hardcode_direct" &&
12824 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12825 # have to relink, otherwise we might link with an installed library
12826 # when we should be linking with a yet-to-be-installed one
12827 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12828 test no != "$hardcode_minus_L"; then
12829 # Linking always hardcodes the temporary library directory.
12830 hardcode_action=relink
12831 else
12832 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12833 hardcode_action=immediate
12834 fi
12835 else
12836 # We cannot hardcode anything, or else we can only hardcode existing
12837 # directories.
12838 hardcode_action=unsupported
12839 fi
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12841 $as_echo "$hardcode_action" >&6; }
12842
12843 if test relink = "$hardcode_action" ||
12844 test yes = "$inherit_rpath"; then
12845 # Fast installation is not supported
12846 enable_fast_install=no
12847 elif test yes = "$shlibpath_overrides_runpath" ||
12848 test no = "$enable_shared"; then
12849 # Fast installation is not necessary
12850 enable_fast_install=needless
12851 fi
12852
12853
12854
12855
12856
12857
12858 if test yes != "$enable_dlopen"; then
12859 enable_dlopen=unknown
12860 enable_dlopen_self=unknown
12861 enable_dlopen_self_static=unknown
12862 else
12863 lt_cv_dlopen=no
12864 lt_cv_dlopen_libs=
12865
12866 case $host_os in
12867 beos*)
12868 lt_cv_dlopen=load_add_on
12869 lt_cv_dlopen_libs=
12870 lt_cv_dlopen_self=yes
12871 ;;
12872
12873 mingw* | pw32* | cegcc*)
12874 lt_cv_dlopen=LoadLibrary
12875 lt_cv_dlopen_libs=
12876 ;;
12877
12878 cygwin*)
12879 lt_cv_dlopen=dlopen
12880 lt_cv_dlopen_libs=
12881 ;;
12882
12883 darwin*)
12884 # if libdl is installed we need to link against it
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12886 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12887 if ${ac_cv_lib_dl_dlopen+:} false; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 ac_check_lib_save_LIBS=$LIBS
12891 LIBS="-ldl $LIBS"
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12894
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char dlopen ();
12902 int
12903 main ()
12904 {
12905 return dlopen ();
12906 ;
12907 return 0;
12908 }
12909 _ACEOF
12910 if ac_fn_c_try_link "$LINENO"; then :
12911 ac_cv_lib_dl_dlopen=yes
12912 else
12913 ac_cv_lib_dl_dlopen=no
12914 fi
12915 rm -f core conftest.err conftest.$ac_objext \
12916 conftest$ac_exeext conftest.$ac_ext
12917 LIBS=$ac_check_lib_save_LIBS
12918 fi
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12920 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12921 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12922 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12923 else
12924
12925 lt_cv_dlopen=dyld
12926 lt_cv_dlopen_libs=
12927 lt_cv_dlopen_self=yes
12928
12929 fi
12930
12931 ;;
12932
12933 tpf*)
12934 # Don't try to run any link tests for TPF. We know it's impossible
12935 # because TPF is a cross-compiler, and we know how we open DSOs.
12936 lt_cv_dlopen=dlopen
12937 lt_cv_dlopen_libs=
12938 lt_cv_dlopen_self=no
12939 ;;
12940
12941 *)
12942 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12943 if test "x$ac_cv_func_shl_load" = xyes; then :
12944 lt_cv_dlopen=shl_load
12945 else
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12947 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12948 if ${ac_cv_lib_dld_shl_load+:} false; then :
12949 $as_echo_n "(cached) " >&6
12950 else
12951 ac_check_lib_save_LIBS=$LIBS
12952 LIBS="-ldld $LIBS"
12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12955
12956 /* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
12959 #ifdef __cplusplus
12960 extern "C"
12961 #endif
12962 char shl_load ();
12963 int
12964 main ()
12965 {
12966 return shl_load ();
12967 ;
12968 return 0;
12969 }
12970 _ACEOF
12971 if ac_fn_c_try_link "$LINENO"; then :
12972 ac_cv_lib_dld_shl_load=yes
12973 else
12974 ac_cv_lib_dld_shl_load=no
12975 fi
12976 rm -f core conftest.err conftest.$ac_objext \
12977 conftest$ac_exeext conftest.$ac_ext
12978 LIBS=$ac_check_lib_save_LIBS
12979 fi
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12981 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12982 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12983 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12984 else
12985 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12986 if test "x$ac_cv_func_dlopen" = xyes; then :
12987 lt_cv_dlopen=dlopen
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12990 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12991 if ${ac_cv_lib_dl_dlopen+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 ac_check_lib_save_LIBS=$LIBS
12995 LIBS="-ldl $LIBS"
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13002 #ifdef __cplusplus
13003 extern "C"
13004 #endif
13005 char dlopen ();
13006 int
13007 main ()
13008 {
13009 return dlopen ();
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13015 ac_cv_lib_dl_dlopen=yes
13016 else
13017 ac_cv_lib_dl_dlopen=no
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13022 fi
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13024 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13025 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13026 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13027 else
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13029 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13030 if ${ac_cv_lib_svld_dlopen+:} false; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 ac_check_lib_save_LIBS=$LIBS
13034 LIBS="-lsvld $LIBS"
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13037
13038 /* Override any GCC internal prototype to avoid an error.
13039 Use char because int might match the return type of a GCC
13040 builtin and then its argument prototype would still apply. */
13041 #ifdef __cplusplus
13042 extern "C"
13043 #endif
13044 char dlopen ();
13045 int
13046 main ()
13047 {
13048 return dlopen ();
13049 ;
13050 return 0;
13051 }
13052 _ACEOF
13053 if ac_fn_c_try_link "$LINENO"; then :
13054 ac_cv_lib_svld_dlopen=yes
13055 else
13056 ac_cv_lib_svld_dlopen=no
13057 fi
13058 rm -f core conftest.err conftest.$ac_objext \
13059 conftest$ac_exeext conftest.$ac_ext
13060 LIBS=$ac_check_lib_save_LIBS
13061 fi
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13063 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13064 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13065 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13066 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13068 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13069 if ${ac_cv_lib_dld_dld_link+:} false; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 ac_check_lib_save_LIBS=$LIBS
13073 LIBS="-ldld $LIBS"
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char dld_link ();
13084 int
13085 main ()
13086 {
13087 return dld_link ();
13088 ;
13089 return 0;
13090 }
13091 _ACEOF
13092 if ac_fn_c_try_link "$LINENO"; then :
13093 ac_cv_lib_dld_dld_link=yes
13094 else
13095 ac_cv_lib_dld_dld_link=no
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099 LIBS=$ac_check_lib_save_LIBS
13100 fi
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13102 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13103 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13104 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13105 fi
13106
13107
13108 fi
13109
13110
13111 fi
13112
13113
13114 fi
13115
13116
13117 fi
13118
13119
13120 fi
13121
13122 ;;
13123 esac
13124
13125 if test no = "$lt_cv_dlopen"; then
13126 enable_dlopen=no
13127 else
13128 enable_dlopen=yes
13129 fi
13130
13131 case $lt_cv_dlopen in
13132 dlopen)
13133 save_CPPFLAGS=$CPPFLAGS
13134 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13135
13136 save_LDFLAGS=$LDFLAGS
13137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13138
13139 save_LIBS=$LIBS
13140 LIBS="$lt_cv_dlopen_libs $LIBS"
13141
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13143 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13144 if ${lt_cv_dlopen_self+:} false; then :
13145 $as_echo_n "(cached) " >&6
13146 else
13147 if test yes = "$cross_compiling"; then :
13148 lt_cv_dlopen_self=cross
13149 else
13150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13151 lt_status=$lt_dlunknown
13152 cat > conftest.$ac_ext <<_LT_EOF
13153 #line $LINENO "configure"
13154 #include "confdefs.h"
13155
13156 #if HAVE_DLFCN_H
13157 #include <dlfcn.h>
13158 #endif
13159
13160 #include <stdio.h>
13161
13162 #ifdef RTLD_GLOBAL
13163 # define LT_DLGLOBAL RTLD_GLOBAL
13164 #else
13165 # ifdef DL_GLOBAL
13166 # define LT_DLGLOBAL DL_GLOBAL
13167 # else
13168 # define LT_DLGLOBAL 0
13169 # endif
13170 #endif
13171
13172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13173 find out it does not work in some platform. */
13174 #ifndef LT_DLLAZY_OR_NOW
13175 # ifdef RTLD_LAZY
13176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13177 # else
13178 # ifdef DL_LAZY
13179 # define LT_DLLAZY_OR_NOW DL_LAZY
13180 # else
13181 # ifdef RTLD_NOW
13182 # define LT_DLLAZY_OR_NOW RTLD_NOW
13183 # else
13184 # ifdef DL_NOW
13185 # define LT_DLLAZY_OR_NOW DL_NOW
13186 # else
13187 # define LT_DLLAZY_OR_NOW 0
13188 # endif
13189 # endif
13190 # endif
13191 # endif
13192 #endif
13193
13194 /* When -fvisibility=hidden is used, assume the code has been annotated
13195 correspondingly for the symbols needed. */
13196 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13197 int fnord () __attribute__((visibility("default")));
13198 #endif
13199
13200 int fnord () { return 42; }
13201 int main ()
13202 {
13203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13204 int status = $lt_dlunknown;
13205
13206 if (self)
13207 {
13208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13209 else
13210 {
13211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13212 else puts (dlerror ());
13213 }
13214 /* dlclose (self); */
13215 }
13216 else
13217 puts (dlerror ());
13218
13219 return status;
13220 }
13221 _LT_EOF
13222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13223 (eval $ac_link) 2>&5
13224 ac_status=$?
13225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13226 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13227 (./conftest; exit; ) >&5 2>/dev/null
13228 lt_status=$?
13229 case x$lt_status in
13230 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13231 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13232 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13233 esac
13234 else :
13235 # compilation failed
13236 lt_cv_dlopen_self=no
13237 fi
13238 fi
13239 rm -fr conftest*
13240
13241
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13244 $as_echo "$lt_cv_dlopen_self" >&6; }
13245
13246 if test yes = "$lt_cv_dlopen_self"; then
13247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13249 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13250 if ${lt_cv_dlopen_self_static+:} false; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 if test yes = "$cross_compiling"; then :
13254 lt_cv_dlopen_self_static=cross
13255 else
13256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13257 lt_status=$lt_dlunknown
13258 cat > conftest.$ac_ext <<_LT_EOF
13259 #line $LINENO "configure"
13260 #include "confdefs.h"
13261
13262 #if HAVE_DLFCN_H
13263 #include <dlfcn.h>
13264 #endif
13265
13266 #include <stdio.h>
13267
13268 #ifdef RTLD_GLOBAL
13269 # define LT_DLGLOBAL RTLD_GLOBAL
13270 #else
13271 # ifdef DL_GLOBAL
13272 # define LT_DLGLOBAL DL_GLOBAL
13273 # else
13274 # define LT_DLGLOBAL 0
13275 # endif
13276 #endif
13277
13278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13279 find out it does not work in some platform. */
13280 #ifndef LT_DLLAZY_OR_NOW
13281 # ifdef RTLD_LAZY
13282 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13283 # else
13284 # ifdef DL_LAZY
13285 # define LT_DLLAZY_OR_NOW DL_LAZY
13286 # else
13287 # ifdef RTLD_NOW
13288 # define LT_DLLAZY_OR_NOW RTLD_NOW
13289 # else
13290 # ifdef DL_NOW
13291 # define LT_DLLAZY_OR_NOW DL_NOW
13292 # else
13293 # define LT_DLLAZY_OR_NOW 0
13294 # endif
13295 # endif
13296 # endif
13297 # endif
13298 #endif
13299
13300 /* When -fvisibility=hidden is used, assume the code has been annotated
13301 correspondingly for the symbols needed. */
13302 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13303 int fnord () __attribute__((visibility("default")));
13304 #endif
13305
13306 int fnord () { return 42; }
13307 int main ()
13308 {
13309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13310 int status = $lt_dlunknown;
13311
13312 if (self)
13313 {
13314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13315 else
13316 {
13317 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13318 else puts (dlerror ());
13319 }
13320 /* dlclose (self); */
13321 }
13322 else
13323 puts (dlerror ());
13324
13325 return status;
13326 }
13327 _LT_EOF
13328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13329 (eval $ac_link) 2>&5
13330 ac_status=$?
13331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13332 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13333 (./conftest; exit; ) >&5 2>/dev/null
13334 lt_status=$?
13335 case x$lt_status in
13336 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13337 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13338 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13339 esac
13340 else :
13341 # compilation failed
13342 lt_cv_dlopen_self_static=no
13343 fi
13344 fi
13345 rm -fr conftest*
13346
13347
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13350 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13351 fi
13352
13353 CPPFLAGS=$save_CPPFLAGS
13354 LDFLAGS=$save_LDFLAGS
13355 LIBS=$save_LIBS
13356 ;;
13357 esac
13358
13359 case $lt_cv_dlopen_self in
13360 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13361 *) enable_dlopen_self=unknown ;;
13362 esac
13363
13364 case $lt_cv_dlopen_self_static in
13365 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13366 *) enable_dlopen_self_static=unknown ;;
13367 esac
13368 fi
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386 striplib=
13387 old_striplib=
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13389 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13390 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13391 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13392 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13394 $as_echo "yes" >&6; }
13395 else
13396 # FIXME - insert some real tests, host_os isn't really good enough
13397 case $host_os in
13398 darwin*)
13399 if test -n "$STRIP"; then
13400 striplib="$STRIP -x"
13401 old_striplib="$STRIP -S"
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13403 $as_echo "yes" >&6; }
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13407 fi
13408 ;;
13409 *)
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13412 ;;
13413 esac
13414 fi
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427 # Report what library types will actually be built
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13429 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13431 $as_echo "$can_build_shared" >&6; }
13432
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13434 $as_echo_n "checking whether to build shared libraries... " >&6; }
13435 test no = "$can_build_shared" && enable_shared=no
13436
13437 # On AIX, shared libraries and static libraries use the same namespace, and
13438 # are all built from PIC.
13439 case $host_os in
13440 aix3*)
13441 test yes = "$enable_shared" && enable_static=no
13442 if test -n "$RANLIB"; then
13443 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13444 postinstall_cmds='$RANLIB $lib'
13445 fi
13446 ;;
13447
13448 aix[4-9]*)
13449 if test ia64 != "$host_cpu"; then
13450 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13451 yes,aix,yes) ;; # shared object as lib.so file only
13452 yes,svr4,*) ;; # shared object as lib.so archive member only
13453 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13454 esac
13455 fi
13456 ;;
13457 esac
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13459 $as_echo "$enable_shared" >&6; }
13460
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13462 $as_echo_n "checking whether to build static libraries... " >&6; }
13463 # Make sure either enable_shared or enable_static is yes.
13464 test yes = "$enable_shared" || enable_static=yes
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13466 $as_echo "$enable_static" >&6; }
13467
13468
13469
13470
13471 fi
13472 ac_ext=c
13473 ac_cpp='$CPP $CPPFLAGS'
13474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13477
13478 CC=$lt_save_CC
13479
13480 if test -n "$CXX" && ( test no != "$CXX" &&
13481 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13482 (test g++ != "$CXX"))); then
13483 ac_ext=cpp
13484 ac_cpp='$CXXCPP $CPPFLAGS'
13485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13489 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13490 if test -z "$CXXCPP"; then
13491 if ${ac_cv_prog_CXXCPP+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 # Double quotes because CXXCPP needs to be expanded
13495 for CXXCPP in "$CXX -E" "/lib/cpp"
13496 do
13497 ac_preproc_ok=false
13498 for ac_cxx_preproc_warn_flag in '' yes
13499 do
13500 # Use a header file that comes with gcc, so configuring glibc
13501 # with a fresh cross-compiler works.
13502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13503 # <limits.h> exists even on freestanding compilers.
13504 # On the NeXT, cc -E runs the code through the compiler's parser,
13505 # not just through cpp. "Syntax error" is here to catch this case.
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508 #ifdef __STDC__
13509 # include <limits.h>
13510 #else
13511 # include <assert.h>
13512 #endif
13513 Syntax error
13514 _ACEOF
13515 if ac_fn_cxx_try_cpp "$LINENO"; then :
13516
13517 else
13518 # Broken: fails on valid input.
13519 continue
13520 fi
13521 rm -f conftest.err conftest.i conftest.$ac_ext
13522
13523 # OK, works on sane cases. Now check whether nonexistent headers
13524 # can be detected and how.
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13527 #include <ac_nonexistent.h>
13528 _ACEOF
13529 if ac_fn_cxx_try_cpp "$LINENO"; then :
13530 # Broken: success on invalid input.
13531 continue
13532 else
13533 # Passes both tests.
13534 ac_preproc_ok=:
13535 break
13536 fi
13537 rm -f conftest.err conftest.i conftest.$ac_ext
13538
13539 done
13540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13541 rm -f conftest.i conftest.err conftest.$ac_ext
13542 if $ac_preproc_ok; then :
13543 break
13544 fi
13545
13546 done
13547 ac_cv_prog_CXXCPP=$CXXCPP
13548
13549 fi
13550 CXXCPP=$ac_cv_prog_CXXCPP
13551 else
13552 ac_cv_prog_CXXCPP=$CXXCPP
13553 fi
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13555 $as_echo "$CXXCPP" >&6; }
13556 ac_preproc_ok=false
13557 for ac_cxx_preproc_warn_flag in '' yes
13558 do
13559 # Use a header file that comes with gcc, so configuring glibc
13560 # with a fresh cross-compiler works.
13561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13562 # <limits.h> exists even on freestanding compilers.
13563 # On the NeXT, cc -E runs the code through the compiler's parser,
13564 # not just through cpp. "Syntax error" is here to catch this case.
13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13567 #ifdef __STDC__
13568 # include <limits.h>
13569 #else
13570 # include <assert.h>
13571 #endif
13572 Syntax error
13573 _ACEOF
13574 if ac_fn_cxx_try_cpp "$LINENO"; then :
13575
13576 else
13577 # Broken: fails on valid input.
13578 continue
13579 fi
13580 rm -f conftest.err conftest.i conftest.$ac_ext
13581
13582 # OK, works on sane cases. Now check whether nonexistent headers
13583 # can be detected and how.
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13586 #include <ac_nonexistent.h>
13587 _ACEOF
13588 if ac_fn_cxx_try_cpp "$LINENO"; then :
13589 # Broken: success on invalid input.
13590 continue
13591 else
13592 # Passes both tests.
13593 ac_preproc_ok=:
13594 break
13595 fi
13596 rm -f conftest.err conftest.i conftest.$ac_ext
13597
13598 done
13599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13600 rm -f conftest.i conftest.err conftest.$ac_ext
13601 if $ac_preproc_ok; then :
13602
13603 else
13604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13606 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13607 See \`config.log' for more details" "$LINENO" 5; }
13608 fi
13609
13610 ac_ext=c
13611 ac_cpp='$CPP $CPPFLAGS'
13612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13615
13616 else
13617 _lt_caught_CXX_error=yes
13618 fi
13619
13620 ac_ext=cpp
13621 ac_cpp='$CXXCPP $CPPFLAGS'
13622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13625
13626 archive_cmds_need_lc_CXX=no
13627 allow_undefined_flag_CXX=
13628 always_export_symbols_CXX=no
13629 archive_expsym_cmds_CXX=
13630 compiler_needs_object_CXX=no
13631 export_dynamic_flag_spec_CXX=
13632 hardcode_direct_CXX=no
13633 hardcode_direct_absolute_CXX=no
13634 hardcode_libdir_flag_spec_CXX=
13635 hardcode_libdir_separator_CXX=
13636 hardcode_minus_L_CXX=no
13637 hardcode_shlibpath_var_CXX=unsupported
13638 hardcode_automatic_CXX=no
13639 inherit_rpath_CXX=no
13640 module_cmds_CXX=
13641 module_expsym_cmds_CXX=
13642 link_all_deplibs_CXX=unknown
13643 old_archive_cmds_CXX=$old_archive_cmds
13644 reload_flag_CXX=$reload_flag
13645 reload_cmds_CXX=$reload_cmds
13646 no_undefined_flag_CXX=
13647 whole_archive_flag_spec_CXX=
13648 enable_shared_with_static_runtimes_CXX=no
13649
13650 # Source file extension for C++ test sources.
13651 ac_ext=cpp
13652
13653 # Object file extension for compiled C++ test sources.
13654 objext=o
13655 objext_CXX=$objext
13656
13657 # No sense in running all these tests if we already determined that
13658 # the CXX compiler isn't working. Some variables (like enable_shared)
13659 # are currently assumed to apply to all compilers on this platform,
13660 # and will be corrupted by setting them based on a non-working compiler.
13661 if test yes != "$_lt_caught_CXX_error"; then
13662 # Code to be used in simple compile tests
13663 lt_simple_compile_test_code="int some_variable = 0;"
13664
13665 # Code to be used in simple link tests
13666 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13667
13668 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13669
13670
13671
13672
13673
13674
13675 # If no C compiler was specified, use CC.
13676 LTCC=${LTCC-"$CC"}
13677
13678 # If no C compiler flags were specified, use CFLAGS.
13679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13680
13681 # Allow CC to be a program name with arguments.
13682 compiler=$CC
13683
13684
13685 # save warnings/boilerplate of simple test code
13686 ac_outfile=conftest.$ac_objext
13687 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13688 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13689 _lt_compiler_boilerplate=`cat conftest.err`
13690 $RM conftest*
13691
13692 ac_outfile=conftest.$ac_objext
13693 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13694 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13695 _lt_linker_boilerplate=`cat conftest.err`
13696 $RM -r conftest*
13697
13698
13699 # Allow CC to be a program name with arguments.
13700 lt_save_CC=$CC
13701 lt_save_CFLAGS=$CFLAGS
13702 lt_save_LD=$LD
13703 lt_save_GCC=$GCC
13704 GCC=$GXX
13705 lt_save_with_gnu_ld=$with_gnu_ld
13706 lt_save_path_LD=$lt_cv_path_LD
13707 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13708 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13709 else
13710 $as_unset lt_cv_prog_gnu_ld
13711 fi
13712 if test -n "${lt_cv_path_LDCXX+set}"; then
13713 lt_cv_path_LD=$lt_cv_path_LDCXX
13714 else
13715 $as_unset lt_cv_path_LD
13716 fi
13717 test -z "${LDCXX+set}" || LD=$LDCXX
13718 CC=${CXX-"c++"}
13719 CFLAGS=$CXXFLAGS
13720 compiler=$CC
13721 compiler_CXX=$CC
13722 func_cc_basename $compiler
13723 cc_basename=$func_cc_basename_result
13724
13725
13726 if test -n "$compiler"; then
13727 # We don't want -fno-exception when compiling C++ code, so set the
13728 # no_builtin_flag separately
13729 if test yes = "$GXX"; then
13730 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13731 else
13732 lt_prog_compiler_no_builtin_flag_CXX=
13733 fi
13734
13735 if test yes = "$GXX"; then
13736 # Set up default GNU C++ configuration
13737
13738
13739
13740 # Check whether --with-gnu-ld was given.
13741 if test "${with_gnu_ld+set}" = set; then :
13742 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13743 else
13744 with_gnu_ld=no
13745 fi
13746
13747 ac_prog=ld
13748 if test yes = "$GCC"; then
13749 # Check if gcc -print-prog-name=ld gives a path.
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13751 $as_echo_n "checking for ld used by $CC... " >&6; }
13752 case $host in
13753 *-*-mingw*)
13754 # gcc leaves a trailing carriage return, which upsets mingw
13755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13756 *)
13757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13758 esac
13759 case $ac_prog in
13760 # Accept absolute paths.
13761 [\\/]* | ?:[\\/]*)
13762 re_direlt='/[^/][^/]*/\.\./'
13763 # Canonicalize the pathname of ld
13764 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13765 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13766 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13767 done
13768 test -z "$LD" && LD=$ac_prog
13769 ;;
13770 "")
13771 # If it fails, then pretend we aren't using GCC.
13772 ac_prog=ld
13773 ;;
13774 *)
13775 # If it is relative, then search for the first ld in PATH.
13776 with_gnu_ld=unknown
13777 ;;
13778 esac
13779 elif test yes = "$with_gnu_ld"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13781 $as_echo_n "checking for GNU ld... " >&6; }
13782 else
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13784 $as_echo_n "checking for non-GNU ld... " >&6; }
13785 fi
13786 if ${lt_cv_path_LD+:} false; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13789 if test -z "$LD"; then
13790 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13791 for ac_dir in $PATH; do
13792 IFS=$lt_save_ifs
13793 test -z "$ac_dir" && ac_dir=.
13794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13795 lt_cv_path_LD=$ac_dir/$ac_prog
13796 # Check to see if the program is GNU ld. I'd rather use --version,
13797 # but apparently some variants of GNU ld only accept -v.
13798 # Break only if it was the GNU/non-GNU ld that we prefer.
13799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13800 *GNU* | *'with BFD'*)
13801 test no != "$with_gnu_ld" && break
13802 ;;
13803 *)
13804 test yes != "$with_gnu_ld" && break
13805 ;;
13806 esac
13807 fi
13808 done
13809 IFS=$lt_save_ifs
13810 else
13811 lt_cv_path_LD=$LD # Let the user override the test with a path.
13812 fi
13813 fi
13814
13815 LD=$lt_cv_path_LD
13816 if test -n "$LD"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13818 $as_echo "$LD" >&6; }
13819 else
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13822 fi
13823 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13825 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13826 if ${lt_cv_prog_gnu_ld+:} false; then :
13827 $as_echo_n "(cached) " >&6
13828 else
13829 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13830 case `$LD -v 2>&1 </dev/null` in
13831 *GNU* | *'with BFD'*)
13832 lt_cv_prog_gnu_ld=yes
13833 ;;
13834 *)
13835 lt_cv_prog_gnu_ld=no
13836 ;;
13837 esac
13838 fi
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13840 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13841 with_gnu_ld=$lt_cv_prog_gnu_ld
13842
13843
13844
13845
13846
13847
13848
13849 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13850 # archiving commands below assume that GNU ld is being used.
13851 if test yes = "$with_gnu_ld"; then
13852 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13853 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'
13854
13855 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13856 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13857
13858 # If archive_cmds runs LD, not CC, wlarc should be empty
13859 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13860 # investigate it a little bit more. (MM)
13861 wlarc='$wl'
13862
13863 # ancient GNU ld didn't support --whole-archive et. al.
13864 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13865 $GREP 'no-whole-archive' > /dev/null; then
13866 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13867 else
13868 whole_archive_flag_spec_CXX=
13869 fi
13870 else
13871 with_gnu_ld=no
13872 wlarc=
13873
13874 # A generic and very simple default shared library creation
13875 # command for GNU C++ for the case where it uses the native
13876 # linker, instead of GNU ld. If possible, this setting should
13877 # overridden to take advantage of the native linker features on
13878 # the platform it is being used on.
13879 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13880 fi
13881
13882 # Commands to make compiler produce verbose output that lists
13883 # what "hidden" libraries, object files and flags are used when
13884 # linking a shared library.
13885 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13886
13887 else
13888 GXX=no
13889 with_gnu_ld=no
13890 wlarc=
13891 fi
13892
13893 # PORTME: fill in a description of your system's C++ link characteristics
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13895 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13896 ld_shlibs_CXX=yes
13897 case $host_os in
13898 aix3*)
13899 # FIXME: insert proper C++ library support
13900 ld_shlibs_CXX=no
13901 ;;
13902 aix[4-9]*)
13903 if test ia64 = "$host_cpu"; then
13904 # On IA64, the linker does run time linking by default, so we don't
13905 # have to do anything special.
13906 aix_use_runtimelinking=no
13907 exp_sym_flag='-Bexport'
13908 no_entry_flag=
13909 else
13910 aix_use_runtimelinking=no
13911
13912 # Test if we are trying to use run time linking or normal
13913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13914 # have runtime linking enabled, and use it for executables.
13915 # For shared libraries, we enable/disable runtime linking
13916 # depending on the kind of the shared library created -
13917 # when "with_aix_soname,aix_use_runtimelinking" is:
13918 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13919 # "aix,yes" lib.so shared, rtl:yes, for executables
13920 # lib.a static archive
13921 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13922 # lib.a(lib.so.V) shared, rtl:no, for executables
13923 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13924 # lib.a(lib.so.V) shared, rtl:no
13925 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13926 # lib.a static archive
13927 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13928 for ld_flag in $LDFLAGS; do
13929 case $ld_flag in
13930 *-brtl*)
13931 aix_use_runtimelinking=yes
13932 break
13933 ;;
13934 esac
13935 done
13936 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13937 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13938 # so we don't have lib.a shared libs to link our executables.
13939 # We have to force runtime linking in this case.
13940 aix_use_runtimelinking=yes
13941 LDFLAGS="$LDFLAGS -Wl,-brtl"
13942 fi
13943 ;;
13944 esac
13945
13946 exp_sym_flag='-bexport'
13947 no_entry_flag='-bnoentry'
13948 fi
13949
13950 # When large executables or shared objects are built, AIX ld can
13951 # have problems creating the table of contents. If linking a library
13952 # or program results in "error TOC overflow" add -mminimal-toc to
13953 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13954 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13955
13956 archive_cmds_CXX=''
13957 hardcode_direct_CXX=yes
13958 hardcode_direct_absolute_CXX=yes
13959 hardcode_libdir_separator_CXX=':'
13960 link_all_deplibs_CXX=yes
13961 file_list_spec_CXX='$wl-f,'
13962 case $with_aix_soname,$aix_use_runtimelinking in
13963 aix,*) ;; # no import file
13964 svr4,* | *,yes) # use import file
13965 # The Import File defines what to hardcode.
13966 hardcode_direct_CXX=no
13967 hardcode_direct_absolute_CXX=no
13968 ;;
13969 esac
13970
13971 if test yes = "$GXX"; then
13972 case $host_os in aix4.[012]|aix4.[012].*)
13973 # We only want to do this on AIX 4.2 and lower, the check
13974 # below for broken collect2 doesn't work under 4.3+
13975 collect2name=`$CC -print-prog-name=collect2`
13976 if test -f "$collect2name" &&
13977 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13978 then
13979 # We have reworked collect2
13980 :
13981 else
13982 # We have old collect2
13983 hardcode_direct_CXX=unsupported
13984 # It fails to find uninstalled libraries when the uninstalled
13985 # path is not listed in the libpath. Setting hardcode_minus_L
13986 # to unsupported forces relinking
13987 hardcode_minus_L_CXX=yes
13988 hardcode_libdir_flag_spec_CXX='-L$libdir'
13989 hardcode_libdir_separator_CXX=
13990 fi
13991 esac
13992 shared_flag='-shared'
13993 if test yes = "$aix_use_runtimelinking"; then
13994 shared_flag=$shared_flag' $wl-G'
13995 fi
13996 # Need to ensure runtime linking is disabled for the traditional
13997 # shared library, or the linker may eventually find shared libraries
13998 # /with/ Import File - we do not want to mix them.
13999 shared_flag_aix='-shared'
14000 shared_flag_svr4='-shared $wl-G'
14001 else
14002 # not using gcc
14003 if test ia64 = "$host_cpu"; then
14004 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14005 # chokes on -Wl,-G. The following line is correct:
14006 shared_flag='-G'
14007 else
14008 if test yes = "$aix_use_runtimelinking"; then
14009 shared_flag='$wl-G'
14010 else
14011 shared_flag='$wl-bM:SRE'
14012 fi
14013 shared_flag_aix='$wl-bM:SRE'
14014 shared_flag_svr4='$wl-G'
14015 fi
14016 fi
14017
14018 export_dynamic_flag_spec_CXX='$wl-bexpall'
14019 # It seems that -bexpall does not export symbols beginning with
14020 # underscore (_), so it is better to generate a list of symbols to
14021 # export.
14022 always_export_symbols_CXX=yes
14023 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14024 # Warning - without using the other runtime loading flags (-brtl),
14025 # -berok will link without error, but may produce a broken library.
14026 # The "-G" linker flag allows undefined symbols.
14027 no_undefined_flag_CXX='-bernotok'
14028 # Determine the default libpath from the value encoded in an empty
14029 # executable.
14030 if test set = "${lt_cv_aix_libpath+set}"; then
14031 aix_libpath=$lt_cv_aix_libpath
14032 else
14033 if ${lt_cv_aix_libpath__CXX+:} false; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038
14039 int
14040 main ()
14041 {
14042
14043 ;
14044 return 0;
14045 }
14046 _ACEOF
14047 if ac_fn_cxx_try_link "$LINENO"; then :
14048
14049 lt_aix_libpath_sed='
14050 /Import File Strings/,/^$/ {
14051 /^0/ {
14052 s/^0 *\([^ ]*\) *$/\1/
14053 p
14054 }
14055 }'
14056 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14057 # Check for a 64-bit object if we didn't find anything.
14058 if test -z "$lt_cv_aix_libpath__CXX"; then
14059 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14060 fi
14061 fi
14062 rm -f core conftest.err conftest.$ac_objext \
14063 conftest$ac_exeext conftest.$ac_ext
14064 if test -z "$lt_cv_aix_libpath__CXX"; then
14065 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14066 fi
14067
14068 fi
14069
14070 aix_libpath=$lt_cv_aix_libpath__CXX
14071 fi
14072
14073 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14074
14075 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14076 else
14077 if test ia64 = "$host_cpu"; then
14078 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14079 allow_undefined_flag_CXX="-z nodefs"
14080 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"
14081 else
14082 # Determine the default libpath from the value encoded in an
14083 # empty executable.
14084 if test set = "${lt_cv_aix_libpath+set}"; then
14085 aix_libpath=$lt_cv_aix_libpath
14086 else
14087 if ${lt_cv_aix_libpath__CXX+:} false; then :
14088 $as_echo_n "(cached) " >&6
14089 else
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092
14093 int
14094 main ()
14095 {
14096
14097 ;
14098 return 0;
14099 }
14100 _ACEOF
14101 if ac_fn_cxx_try_link "$LINENO"; then :
14102
14103 lt_aix_libpath_sed='
14104 /Import File Strings/,/^$/ {
14105 /^0/ {
14106 s/^0 *\([^ ]*\) *$/\1/
14107 p
14108 }
14109 }'
14110 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14111 # Check for a 64-bit object if we didn't find anything.
14112 if test -z "$lt_cv_aix_libpath__CXX"; then
14113 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14114 fi
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118 if test -z "$lt_cv_aix_libpath__CXX"; then
14119 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14120 fi
14121
14122 fi
14123
14124 aix_libpath=$lt_cv_aix_libpath__CXX
14125 fi
14126
14127 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14128 # Warning - without using the other run time loading flags,
14129 # -berok will link without error, but may produce a broken library.
14130 no_undefined_flag_CXX=' $wl-bernotok'
14131 allow_undefined_flag_CXX=' $wl-berok'
14132 if test yes = "$with_gnu_ld"; then
14133 # We only use this code for GNU lds that support --whole-archive.
14134 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14135 else
14136 # Exported symbols can be pulled into shared objects from archives
14137 whole_archive_flag_spec_CXX='$convenience'
14138 fi
14139 archive_cmds_need_lc_CXX=yes
14140 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14141 # -brtl affects multiple linker settings, -berok does not and is overridden later
14142 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14143 if test svr4 != "$with_aix_soname"; then
14144 # This is similar to how AIX traditionally builds its shared
14145 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14146 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14147 fi
14148 if test aix != "$with_aix_soname"; then
14149 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14150 else
14151 # used by -dlpreopen to get the symbols
14152 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14153 fi
14154 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14155 fi
14156 fi
14157 ;;
14158
14159 beos*)
14160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14161 allow_undefined_flag_CXX=unsupported
14162 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14163 # support --undefined. This deserves some investigation. FIXME
14164 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14165 else
14166 ld_shlibs_CXX=no
14167 fi
14168 ;;
14169
14170 chorus*)
14171 case $cc_basename in
14172 *)
14173 # FIXME: insert proper C++ library support
14174 ld_shlibs_CXX=no
14175 ;;
14176 esac
14177 ;;
14178
14179 cygwin* | mingw* | pw32* | cegcc*)
14180 case $GXX,$cc_basename in
14181 ,cl* | no,cl*)
14182 # Native MSVC
14183 # hardcode_libdir_flag_spec is actually meaningless, as there is
14184 # no search path for DLLs.
14185 hardcode_libdir_flag_spec_CXX=' '
14186 allow_undefined_flag_CXX=unsupported
14187 always_export_symbols_CXX=yes
14188 file_list_spec_CXX='@'
14189 # Tell ltmain to make .lib files, not .a files.
14190 libext=lib
14191 # Tell ltmain to make .dll files, not .so files.
14192 shrext_cmds=.dll
14193 # FIXME: Setting linknames here is a bad hack.
14194 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14195 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14196 cp "$export_symbols" "$output_objdir/$soname.def";
14197 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14198 else
14199 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14200 fi~
14201 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14202 linknames='
14203 # The linker will not automatically build a static lib if we build a DLL.
14204 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14205 enable_shared_with_static_runtimes_CXX=yes
14206 # Don't use ranlib
14207 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14208 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14209 lt_tool_outputfile="@TOOL_OUTPUT@"~
14210 case $lt_outputfile in
14211 *.exe|*.EXE) ;;
14212 *)
14213 lt_outputfile=$lt_outputfile.exe
14214 lt_tool_outputfile=$lt_tool_outputfile.exe
14215 ;;
14216 esac~
14217 func_to_tool_file "$lt_outputfile"~
14218 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14219 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14220 $RM "$lt_outputfile.manifest";
14221 fi'
14222 ;;
14223 *)
14224 # g++
14225 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14226 # as there is no search path for DLLs.
14227 hardcode_libdir_flag_spec_CXX='-L$libdir'
14228 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14229 allow_undefined_flag_CXX=unsupported
14230 always_export_symbols_CXX=no
14231 enable_shared_with_static_runtimes_CXX=yes
14232
14233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14234 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'
14235 # If the export-symbols file already is a .def file, use it as
14236 # is; otherwise, prepend EXPORTS...
14237 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14238 cp $export_symbols $output_objdir/$soname.def;
14239 else
14240 echo EXPORTS > $output_objdir/$soname.def;
14241 cat $export_symbols >> $output_objdir/$soname.def;
14242 fi~
14243 $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'
14244 else
14245 ld_shlibs_CXX=no
14246 fi
14247 ;;
14248 esac
14249 ;;
14250 darwin* | rhapsody*)
14251
14252
14253 archive_cmds_need_lc_CXX=no
14254 hardcode_direct_CXX=no
14255 hardcode_automatic_CXX=yes
14256 hardcode_shlibpath_var_CXX=unsupported
14257 if test yes = "$lt_cv_ld_force_load"; then
14258 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\"`'
14259
14260 else
14261 whole_archive_flag_spec_CXX=''
14262 fi
14263 link_all_deplibs_CXX=yes
14264 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14265 case $cc_basename in
14266 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14267 *) _lt_dar_can_shared=$GCC ;;
14268 esac
14269 if test yes = "$_lt_dar_can_shared"; then
14270 output_verbose_link_cmd=func_echo_all
14271 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"
14272 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14273 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"
14274 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"
14275 if test yes != "$lt_cv_apple_cc_single_mod"; then
14276 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"
14277 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"
14278 fi
14279
14280 else
14281 ld_shlibs_CXX=no
14282 fi
14283
14284 ;;
14285
14286 os2*)
14287 hardcode_libdir_flag_spec_CXX='-L$libdir'
14288 hardcode_minus_L_CXX=yes
14289 allow_undefined_flag_CXX=unsupported
14290 shrext_cmds=.dll
14291 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14292 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14293 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14294 $ECHO EXPORTS >> $output_objdir/$libname.def~
14295 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14296 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14297 emximp -o $lib $output_objdir/$libname.def'
14298 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14299 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14300 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14301 $ECHO EXPORTS >> $output_objdir/$libname.def~
14302 prefix_cmds="$SED"~
14303 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14304 prefix_cmds="$prefix_cmds -e 1d";
14305 fi~
14306 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14307 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14308 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14309 emximp -o $lib $output_objdir/$libname.def'
14310 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14311 enable_shared_with_static_runtimes_CXX=yes
14312 ;;
14313
14314 dgux*)
14315 case $cc_basename in
14316 ec++*)
14317 # FIXME: insert proper C++ library support
14318 ld_shlibs_CXX=no
14319 ;;
14320 ghcx*)
14321 # Green Hills C++ Compiler
14322 # FIXME: insert proper C++ library support
14323 ld_shlibs_CXX=no
14324 ;;
14325 *)
14326 # FIXME: insert proper C++ library support
14327 ld_shlibs_CXX=no
14328 ;;
14329 esac
14330 ;;
14331
14332 freebsd2.*)
14333 # C++ shared libraries reported to be fairly broken before
14334 # switch to ELF
14335 ld_shlibs_CXX=no
14336 ;;
14337
14338 freebsd-elf*)
14339 archive_cmds_need_lc_CXX=no
14340 ;;
14341
14342 freebsd* | dragonfly*)
14343 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14344 # conventions
14345 ld_shlibs_CXX=yes
14346 ;;
14347
14348 haiku*)
14349 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14350 link_all_deplibs_CXX=yes
14351 ;;
14352
14353 hpux9*)
14354 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14355 hardcode_libdir_separator_CXX=:
14356 export_dynamic_flag_spec_CXX='$wl-E'
14357 hardcode_direct_CXX=yes
14358 hardcode_minus_L_CXX=yes # Not in the search PATH,
14359 # but as the default
14360 # location of the library.
14361
14362 case $cc_basename in
14363 CC*)
14364 # FIXME: insert proper C++ library support
14365 ld_shlibs_CXX=no
14366 ;;
14367 aCC*)
14368 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14369 # Commands to make compiler produce verbose output that lists
14370 # what "hidden" libraries, object files and flags are used when
14371 # linking a shared library.
14372 #
14373 # There doesn't appear to be a way to prevent this compiler from
14374 # explicitly linking system object files so we need to strip them
14375 # from the output so that they don't get included in the library
14376 # dependencies.
14377 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"'
14378 ;;
14379 *)
14380 if test yes = "$GXX"; then
14381 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14382 else
14383 # FIXME: insert proper C++ library support
14384 ld_shlibs_CXX=no
14385 fi
14386 ;;
14387 esac
14388 ;;
14389
14390 hpux10*|hpux11*)
14391 if test no = "$with_gnu_ld"; then
14392 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14393 hardcode_libdir_separator_CXX=:
14394
14395 case $host_cpu in
14396 hppa*64*|ia64*)
14397 ;;
14398 *)
14399 export_dynamic_flag_spec_CXX='$wl-E'
14400 ;;
14401 esac
14402 fi
14403 case $host_cpu in
14404 hppa*64*|ia64*)
14405 hardcode_direct_CXX=no
14406 hardcode_shlibpath_var_CXX=no
14407 ;;
14408 *)
14409 hardcode_direct_CXX=yes
14410 hardcode_direct_absolute_CXX=yes
14411 hardcode_minus_L_CXX=yes # Not in the search PATH,
14412 # but as the default
14413 # location of the library.
14414 ;;
14415 esac
14416
14417 case $cc_basename in
14418 CC*)
14419 # FIXME: insert proper C++ library support
14420 ld_shlibs_CXX=no
14421 ;;
14422 aCC*)
14423 case $host_cpu in
14424 hppa*64*)
14425 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14426 ;;
14427 ia64*)
14428 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14429 ;;
14430 *)
14431 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14432 ;;
14433 esac
14434 # Commands to make compiler produce verbose output that lists
14435 # what "hidden" libraries, object files and flags are used when
14436 # linking a shared library.
14437 #
14438 # There doesn't appear to be a way to prevent this compiler from
14439 # explicitly linking system object files so we need to strip them
14440 # from the output so that they don't get included in the library
14441 # dependencies.
14442 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"'
14443 ;;
14444 *)
14445 if test yes = "$GXX"; then
14446 if test no = "$with_gnu_ld"; then
14447 case $host_cpu in
14448 hppa*64*)
14449 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14450 ;;
14451 ia64*)
14452 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14453 ;;
14454 *)
14455 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'
14456 ;;
14457 esac
14458 fi
14459 else
14460 # FIXME: insert proper C++ library support
14461 ld_shlibs_CXX=no
14462 fi
14463 ;;
14464 esac
14465 ;;
14466
14467 interix[3-9]*)
14468 hardcode_direct_CXX=no
14469 hardcode_shlibpath_var_CXX=no
14470 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14471 export_dynamic_flag_spec_CXX='$wl-E'
14472 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14473 # Instead, shared libraries are loaded at an image base (0x10000000 by
14474 # default) and relocated if they conflict, which is a slow very memory
14475 # consuming and fragmenting process. To avoid this, we pick a random,
14476 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14477 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14478 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'
14479 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'
14480 ;;
14481 irix5* | irix6*)
14482 case $cc_basename in
14483 CC*)
14484 # SGI C++
14485 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'
14486
14487 # Archives containing C++ object files must be created using
14488 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14489 # necessary to make sure instantiated templates are included
14490 # in the archive.
14491 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14492 ;;
14493 *)
14494 if test yes = "$GXX"; then
14495 if test no = "$with_gnu_ld"; then
14496 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'
14497 else
14498 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'
14499 fi
14500 fi
14501 link_all_deplibs_CXX=yes
14502 ;;
14503 esac
14504 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14505 hardcode_libdir_separator_CXX=:
14506 inherit_rpath_CXX=yes
14507 ;;
14508
14509 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14510 case $cc_basename in
14511 KCC*)
14512 # Kuck and Associates, Inc. (KAI) C++ Compiler
14513
14514 # KCC will only create a shared library if the output file
14515 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14516 # to its proper name (with version) after linking.
14517 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'
14518 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'
14519 # Commands to make compiler produce verbose output that lists
14520 # what "hidden" libraries, object files and flags are used when
14521 # linking a shared library.
14522 #
14523 # There doesn't appear to be a way to prevent this compiler from
14524 # explicitly linking system object files so we need to strip them
14525 # from the output so that they don't get included in the library
14526 # dependencies.
14527 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"'
14528
14529 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14530 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14531
14532 # Archives containing C++ object files must be created using
14533 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14534 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14535 ;;
14536 icpc* | ecpc* )
14537 # Intel C++
14538 with_gnu_ld=yes
14539 # version 8.0 and above of icpc choke on multiply defined symbols
14540 # if we add $predep_objects and $postdep_objects, however 7.1 and
14541 # earlier do not add the objects themselves.
14542 case `$CC -V 2>&1` in
14543 *"Version 7."*)
14544 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14545 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'
14546 ;;
14547 *) # Version 8.0 or newer
14548 tmp_idyn=
14549 case $host_cpu in
14550 ia64*) tmp_idyn=' -i_dynamic';;
14551 esac
14552 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14553 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'
14554 ;;
14555 esac
14556 archive_cmds_need_lc_CXX=no
14557 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14558 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14559 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14560 ;;
14561 pgCC* | pgcpp*)
14562 # Portland Group C++ compiler
14563 case `$CC -V` in
14564 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14565 prelink_cmds_CXX='tpldir=Template.dir~
14566 rm -rf $tpldir~
14567 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14568 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14569 old_archive_cmds_CXX='tpldir=Template.dir~
14570 rm -rf $tpldir~
14571 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14572 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14573 $RANLIB $oldlib'
14574 archive_cmds_CXX='tpldir=Template.dir~
14575 rm -rf $tpldir~
14576 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14577 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14578 archive_expsym_cmds_CXX='tpldir=Template.dir~
14579 rm -rf $tpldir~
14580 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14581 $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'
14582 ;;
14583 *) # Version 6 and above use weak symbols
14584 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14585 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'
14586 ;;
14587 esac
14588
14589 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14590 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14591 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'
14592 ;;
14593 cxx*)
14594 # Compaq C++
14595 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14596 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'
14597
14598 runpath_var=LD_RUN_PATH
14599 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14600 hardcode_libdir_separator_CXX=:
14601
14602 # Commands to make compiler produce verbose output that lists
14603 # what "hidden" libraries, object files and flags are used when
14604 # linking a shared library.
14605 #
14606 # There doesn't appear to be a way to prevent this compiler from
14607 # explicitly linking system object files so we need to strip them
14608 # from the output so that they don't get included in the library
14609 # dependencies.
14610 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'
14611 ;;
14612 xl* | mpixl* | bgxl*)
14613 # IBM XL 8.0 on PPC, with GNU ld
14614 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14615 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14616 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14617 if test yes = "$supports_anon_versioning"; then
14618 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14620 echo "local: *; };" >> $output_objdir/$libname.ver~
14621 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14622 fi
14623 ;;
14624 *)
14625 case `$CC -V 2>&1 | sed 5q` in
14626 *Sun\ C*)
14627 # Sun C++ 5.9
14628 no_undefined_flag_CXX=' -zdefs'
14629 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14630 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'
14631 hardcode_libdir_flag_spec_CXX='-R$libdir'
14632 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'
14633 compiler_needs_object_CXX=yes
14634
14635 # Not sure whether something based on
14636 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14637 # would be better.
14638 output_verbose_link_cmd='func_echo_all'
14639
14640 # Archives containing C++ object files must be created using
14641 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14642 # necessary to make sure instantiated templates are included
14643 # in the archive.
14644 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14645 ;;
14646 esac
14647 ;;
14648 esac
14649 ;;
14650
14651 lynxos*)
14652 # FIXME: insert proper C++ library support
14653 ld_shlibs_CXX=no
14654 ;;
14655
14656 m88k*)
14657 # FIXME: insert proper C++ library support
14658 ld_shlibs_CXX=no
14659 ;;
14660
14661 mvs*)
14662 case $cc_basename in
14663 cxx*)
14664 # FIXME: insert proper C++ library support
14665 ld_shlibs_CXX=no
14666 ;;
14667 *)
14668 # FIXME: insert proper C++ library support
14669 ld_shlibs_CXX=no
14670 ;;
14671 esac
14672 ;;
14673
14674 netbsd*)
14675 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14676 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14677 wlarc=
14678 hardcode_libdir_flag_spec_CXX='-R$libdir'
14679 hardcode_direct_CXX=yes
14680 hardcode_shlibpath_var_CXX=no
14681 fi
14682 # Workaround some broken pre-1.5 toolchains
14683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14684 ;;
14685
14686 *nto* | *qnx*)
14687 ld_shlibs_CXX=yes
14688 ;;
14689
14690 openbsd* | bitrig*)
14691 if test -f /usr/libexec/ld.so; then
14692 hardcode_direct_CXX=yes
14693 hardcode_shlibpath_var_CXX=no
14694 hardcode_direct_absolute_CXX=yes
14695 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14696 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14698 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14699 export_dynamic_flag_spec_CXX='$wl-E'
14700 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14701 fi
14702 output_verbose_link_cmd=func_echo_all
14703 else
14704 ld_shlibs_CXX=no
14705 fi
14706 ;;
14707
14708 osf3* | osf4* | osf5*)
14709 case $cc_basename in
14710 KCC*)
14711 # Kuck and Associates, Inc. (KAI) C++ Compiler
14712
14713 # KCC will only create a shared library if the output file
14714 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14715 # to its proper name (with version) after linking.
14716 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'
14717
14718 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14719 hardcode_libdir_separator_CXX=:
14720
14721 # Archives containing C++ object files must be created using
14722 # the KAI C++ compiler.
14723 case $host in
14724 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14725 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14726 esac
14727 ;;
14728 RCC*)
14729 # Rational C++ 2.4.1
14730 # FIXME: insert proper C++ library support
14731 ld_shlibs_CXX=no
14732 ;;
14733 cxx*)
14734 case $host in
14735 osf3*)
14736 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14737 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'
14738 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14739 ;;
14740 *)
14741 allow_undefined_flag_CXX=' -expect_unresolved \*'
14742 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'
14743 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14744 echo "-hidden">> $lib.exp~
14745 $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~
14746 $RM $lib.exp'
14747 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14748 ;;
14749 esac
14750
14751 hardcode_libdir_separator_CXX=:
14752
14753 # Commands to make compiler produce verbose output that lists
14754 # what "hidden" libraries, object files and flags are used when
14755 # linking a shared library.
14756 #
14757 # There doesn't appear to be a way to prevent this compiler from
14758 # explicitly linking system object files so we need to strip them
14759 # from the output so that they don't get included in the library
14760 # dependencies.
14761 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"'
14762 ;;
14763 *)
14764 if test yes,no = "$GXX,$with_gnu_ld"; then
14765 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14766 case $host in
14767 osf3*)
14768 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'
14769 ;;
14770 *)
14771 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'
14772 ;;
14773 esac
14774
14775 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14776 hardcode_libdir_separator_CXX=:
14777
14778 # Commands to make compiler produce verbose output that lists
14779 # what "hidden" libraries, object files and flags are used when
14780 # linking a shared library.
14781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14782
14783 else
14784 # FIXME: insert proper C++ library support
14785 ld_shlibs_CXX=no
14786 fi
14787 ;;
14788 esac
14789 ;;
14790
14791 psos*)
14792 # FIXME: insert proper C++ library support
14793 ld_shlibs_CXX=no
14794 ;;
14795
14796 sunos4*)
14797 case $cc_basename in
14798 CC*)
14799 # Sun C++ 4.x
14800 # FIXME: insert proper C++ library support
14801 ld_shlibs_CXX=no
14802 ;;
14803 lcc*)
14804 # Lucid
14805 # FIXME: insert proper C++ library support
14806 ld_shlibs_CXX=no
14807 ;;
14808 *)
14809 # FIXME: insert proper C++ library support
14810 ld_shlibs_CXX=no
14811 ;;
14812 esac
14813 ;;
14814
14815 solaris*)
14816 case $cc_basename in
14817 CC* | sunCC*)
14818 # Sun C++ 4.2, 5.x and Centerline C++
14819 archive_cmds_need_lc_CXX=yes
14820 no_undefined_flag_CXX=' -zdefs'
14821 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14822 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14823 $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'
14824
14825 hardcode_libdir_flag_spec_CXX='-R$libdir'
14826 hardcode_shlibpath_var_CXX=no
14827 case $host_os in
14828 solaris2.[0-5] | solaris2.[0-5].*) ;;
14829 *)
14830 # The compiler driver will combine and reorder linker options,
14831 # but understands '-z linker_flag'.
14832 # Supported since Solaris 2.6 (maybe 2.5.1?)
14833 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14834 ;;
14835 esac
14836 link_all_deplibs_CXX=yes
14837
14838 output_verbose_link_cmd='func_echo_all'
14839
14840 # Archives containing C++ object files must be created using
14841 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14842 # necessary to make sure instantiated templates are included
14843 # in the archive.
14844 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14845 ;;
14846 gcx*)
14847 # Green Hills C++ Compiler
14848 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14849
14850 # The C++ compiler must be used to create the archive.
14851 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14852 ;;
14853 *)
14854 # GNU C++ compiler with Solaris linker
14855 if test yes,no = "$GXX,$with_gnu_ld"; then
14856 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14857 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14858 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14859 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14860 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14861
14862 # Commands to make compiler produce verbose output that lists
14863 # what "hidden" libraries, object files and flags are used when
14864 # linking a shared library.
14865 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14866 else
14867 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14868 # platform.
14869 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14870 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14871 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14872
14873 # Commands to make compiler produce verbose output that lists
14874 # what "hidden" libraries, object files and flags are used when
14875 # linking a shared library.
14876 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14877 fi
14878
14879 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14880 case $host_os in
14881 solaris2.[0-5] | solaris2.[0-5].*) ;;
14882 *)
14883 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14884 ;;
14885 esac
14886 fi
14887 ;;
14888 esac
14889 ;;
14890
14891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14892 no_undefined_flag_CXX='$wl-z,text'
14893 archive_cmds_need_lc_CXX=no
14894 hardcode_shlibpath_var_CXX=no
14895 runpath_var='LD_RUN_PATH'
14896
14897 case $cc_basename in
14898 CC*)
14899 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14900 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14901 ;;
14902 *)
14903 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14904 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14905 ;;
14906 esac
14907 ;;
14908
14909 sysv5* | sco3.2v5* | sco5v6*)
14910 # Note: We CANNOT use -z defs as we might desire, because we do not
14911 # link with -lc, and that would cause any symbols used from libc to
14912 # always be unresolved, which means just about no library would
14913 # ever link correctly. If we're not using GNU ld we use -z text
14914 # though, which does catch some bad symbols but isn't as heavy-handed
14915 # as -z defs.
14916 no_undefined_flag_CXX='$wl-z,text'
14917 allow_undefined_flag_CXX='$wl-z,nodefs'
14918 archive_cmds_need_lc_CXX=no
14919 hardcode_shlibpath_var_CXX=no
14920 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14921 hardcode_libdir_separator_CXX=':'
14922 link_all_deplibs_CXX=yes
14923 export_dynamic_flag_spec_CXX='$wl-Bexport'
14924 runpath_var='LD_RUN_PATH'
14925
14926 case $cc_basename in
14927 CC*)
14928 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14929 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14930 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14931 '"$old_archive_cmds_CXX"
14932 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14933 '"$reload_cmds_CXX"
14934 ;;
14935 *)
14936 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14937 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14938 ;;
14939 esac
14940 ;;
14941
14942 tandem*)
14943 case $cc_basename in
14944 NCC*)
14945 # NonStop-UX NCC 3.20
14946 # FIXME: insert proper C++ library support
14947 ld_shlibs_CXX=no
14948 ;;
14949 *)
14950 # FIXME: insert proper C++ library support
14951 ld_shlibs_CXX=no
14952 ;;
14953 esac
14954 ;;
14955
14956 vxworks*)
14957 # FIXME: insert proper C++ library support
14958 ld_shlibs_CXX=no
14959 ;;
14960
14961 *)
14962 # FIXME: insert proper C++ library support
14963 ld_shlibs_CXX=no
14964 ;;
14965 esac
14966
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14968 $as_echo "$ld_shlibs_CXX" >&6; }
14969 test no = "$ld_shlibs_CXX" && can_build_shared=no
14970
14971 GCC_CXX=$GXX
14972 LD_CXX=$LD
14973
14974 ## CAVEAT EMPTOR:
14975 ## There is no encapsulation within the following macros, do not change
14976 ## the running order or otherwise move them around unless you know exactly
14977 ## what you are doing...
14978 # Dependencies to place before and after the object being linked:
14979 predep_objects_CXX=
14980 postdep_objects_CXX=
14981 predeps_CXX=
14982 postdeps_CXX=
14983 compiler_lib_search_path_CXX=
14984
14985 cat > conftest.$ac_ext <<_LT_EOF
14986 class Foo
14987 {
14988 public:
14989 Foo (void) { a = 0; }
14990 private:
14991 int a;
14992 };
14993 _LT_EOF
14994
14995
14996 _lt_libdeps_save_CFLAGS=$CFLAGS
14997 case "$CC $CFLAGS " in #(
14998 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14999 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15000 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15001 esac
15002
15003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15004 (eval $ac_compile) 2>&5
15005 ac_status=$?
15006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15007 test $ac_status = 0; }; then
15008 # Parse the compiler output and extract the necessary
15009 # objects, libraries and library flags.
15010
15011 # Sentinel used to keep track of whether or not we are before
15012 # the conftest object file.
15013 pre_test_object_deps_done=no
15014
15015 for p in `eval "$output_verbose_link_cmd"`; do
15016 case $prev$p in
15017
15018 -L* | -R* | -l*)
15019 # Some compilers place space between "-{L,R}" and the path.
15020 # Remove the space.
15021 if test x-L = "$p" ||
15022 test x-R = "$p"; then
15023 prev=$p
15024 continue
15025 fi
15026
15027 # Expand the sysroot to ease extracting the directories later.
15028 if test -z "$prev"; then
15029 case $p in
15030 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15031 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15032 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15033 esac
15034 fi
15035 case $p in
15036 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15037 esac
15038 if test no = "$pre_test_object_deps_done"; then
15039 case $prev in
15040 -L | -R)
15041 # Internal compiler library paths should come after those
15042 # provided the user. The postdeps already come after the
15043 # user supplied libs so there is no need to process them.
15044 if test -z "$compiler_lib_search_path_CXX"; then
15045 compiler_lib_search_path_CXX=$prev$p
15046 else
15047 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15048 fi
15049 ;;
15050 # The "-l" case would never come before the object being
15051 # linked, so don't bother handling this case.
15052 esac
15053 else
15054 if test -z "$postdeps_CXX"; then
15055 postdeps_CXX=$prev$p
15056 else
15057 postdeps_CXX="${postdeps_CXX} $prev$p"
15058 fi
15059 fi
15060 prev=
15061 ;;
15062
15063 *.lto.$objext) ;; # Ignore GCC LTO objects
15064 *.$objext)
15065 # This assumes that the test object file only shows up
15066 # once in the compiler output.
15067 if test "$p" = "conftest.$objext"; then
15068 pre_test_object_deps_done=yes
15069 continue
15070 fi
15071
15072 if test no = "$pre_test_object_deps_done"; then
15073 if test -z "$predep_objects_CXX"; then
15074 predep_objects_CXX=$p
15075 else
15076 predep_objects_CXX="$predep_objects_CXX $p"
15077 fi
15078 else
15079 if test -z "$postdep_objects_CXX"; then
15080 postdep_objects_CXX=$p
15081 else
15082 postdep_objects_CXX="$postdep_objects_CXX $p"
15083 fi
15084 fi
15085 ;;
15086
15087 *) ;; # Ignore the rest.
15088
15089 esac
15090 done
15091
15092 # Clean up.
15093 rm -f a.out a.exe
15094 else
15095 echo "libtool.m4: error: problem compiling CXX test program"
15096 fi
15097
15098 $RM -f confest.$objext
15099 CFLAGS=$_lt_libdeps_save_CFLAGS
15100
15101 # PORTME: override above test on systems where it is broken
15102 case $host_os in
15103 interix[3-9]*)
15104 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15105 # hack all around it, let's just trust "g++" to DTRT.
15106 predep_objects_CXX=
15107 postdep_objects_CXX=
15108 postdeps_CXX=
15109 ;;
15110 esac
15111
15112
15113 case " $postdeps_CXX " in
15114 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15115 esac
15116 compiler_lib_search_dirs_CXX=
15117 if test -n "${compiler_lib_search_path_CXX}"; then
15118 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15119 fi
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151 lt_prog_compiler_wl_CXX=
15152 lt_prog_compiler_pic_CXX=
15153 lt_prog_compiler_static_CXX=
15154
15155
15156 # C++ specific cases for pic, static, wl, etc.
15157 if test yes = "$GXX"; then
15158 lt_prog_compiler_wl_CXX='-Wl,'
15159 lt_prog_compiler_static_CXX='-static'
15160
15161 case $host_os in
15162 aix*)
15163 # All AIX code is PIC.
15164 if test ia64 = "$host_cpu"; then
15165 # AIX 5 now supports IA64 processor
15166 lt_prog_compiler_static_CXX='-Bstatic'
15167 fi
15168 lt_prog_compiler_pic_CXX='-fPIC'
15169 ;;
15170
15171 amigaos*)
15172 case $host_cpu in
15173 powerpc)
15174 # see comment about AmigaOS4 .so support
15175 lt_prog_compiler_pic_CXX='-fPIC'
15176 ;;
15177 m68k)
15178 # FIXME: we need at least 68020 code to build shared libraries, but
15179 # adding the '-m68020' flag to GCC prevents building anything better,
15180 # like '-m68040'.
15181 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15182 ;;
15183 esac
15184 ;;
15185
15186 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15187 # PIC is the default for these OSes.
15188 ;;
15189 mingw* | cygwin* | os2* | pw32* | cegcc*)
15190 # This hack is so that the source file can tell whether it is being
15191 # built for inclusion in a dll (and should export symbols for example).
15192 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15193 # (--disable-auto-import) libraries
15194 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15195 case $host_os in
15196 os2*)
15197 lt_prog_compiler_static_CXX='$wl-static'
15198 ;;
15199 esac
15200 ;;
15201 darwin* | rhapsody*)
15202 # PIC is the default on this platform
15203 # Common symbols not allowed in MH_DYLIB files
15204 lt_prog_compiler_pic_CXX='-fno-common'
15205 ;;
15206 *djgpp*)
15207 # DJGPP does not support shared libraries at all
15208 lt_prog_compiler_pic_CXX=
15209 ;;
15210 haiku*)
15211 # PIC is the default for Haiku.
15212 # The "-static" flag exists, but is broken.
15213 lt_prog_compiler_static_CXX=
15214 ;;
15215 interix[3-9]*)
15216 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15217 # Instead, we relocate shared libraries at runtime.
15218 ;;
15219 sysv4*MP*)
15220 if test -d /usr/nec; then
15221 lt_prog_compiler_pic_CXX=-Kconform_pic
15222 fi
15223 ;;
15224 hpux*)
15225 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15226 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15227 # sets the default TLS model and affects inlining.
15228 case $host_cpu in
15229 hppa*64*)
15230 ;;
15231 *)
15232 lt_prog_compiler_pic_CXX='-fPIC'
15233 ;;
15234 esac
15235 ;;
15236 *qnx* | *nto*)
15237 # QNX uses GNU C++, but need to define -shared option too, otherwise
15238 # it will coredump.
15239 lt_prog_compiler_pic_CXX='-fPIC -shared'
15240 ;;
15241 *)
15242 lt_prog_compiler_pic_CXX='-fPIC'
15243 ;;
15244 esac
15245 else
15246 case $host_os in
15247 aix[4-9]*)
15248 # All AIX code is PIC.
15249 if test ia64 = "$host_cpu"; then
15250 # AIX 5 now supports IA64 processor
15251 lt_prog_compiler_static_CXX='-Bstatic'
15252 else
15253 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15254 fi
15255 ;;
15256 chorus*)
15257 case $cc_basename in
15258 cxch68*)
15259 # Green Hills C++ Compiler
15260 # _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"
15261 ;;
15262 esac
15263 ;;
15264 mingw* | cygwin* | os2* | pw32* | cegcc*)
15265 # This hack is so that the source file can tell whether it is being
15266 # built for inclusion in a dll (and should export symbols for example).
15267 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15268 ;;
15269 dgux*)
15270 case $cc_basename in
15271 ec++*)
15272 lt_prog_compiler_pic_CXX='-KPIC'
15273 ;;
15274 ghcx*)
15275 # Green Hills C++ Compiler
15276 lt_prog_compiler_pic_CXX='-pic'
15277 ;;
15278 *)
15279 ;;
15280 esac
15281 ;;
15282 freebsd* | dragonfly*)
15283 # FreeBSD uses GNU C++
15284 ;;
15285 hpux9* | hpux10* | hpux11*)
15286 case $cc_basename in
15287 CC*)
15288 lt_prog_compiler_wl_CXX='-Wl,'
15289 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15290 if test ia64 != "$host_cpu"; then
15291 lt_prog_compiler_pic_CXX='+Z'
15292 fi
15293 ;;
15294 aCC*)
15295 lt_prog_compiler_wl_CXX='-Wl,'
15296 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15297 case $host_cpu in
15298 hppa*64*|ia64*)
15299 # +Z the default
15300 ;;
15301 *)
15302 lt_prog_compiler_pic_CXX='+Z'
15303 ;;
15304 esac
15305 ;;
15306 *)
15307 ;;
15308 esac
15309 ;;
15310 interix*)
15311 # This is c89, which is MS Visual C++ (no shared libs)
15312 # Anyone wants to do a port?
15313 ;;
15314 irix5* | irix6* | nonstopux*)
15315 case $cc_basename in
15316 CC*)
15317 lt_prog_compiler_wl_CXX='-Wl,'
15318 lt_prog_compiler_static_CXX='-non_shared'
15319 # CC pic flag -KPIC is the default.
15320 ;;
15321 *)
15322 ;;
15323 esac
15324 ;;
15325 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15326 case $cc_basename in
15327 KCC*)
15328 # KAI C++ Compiler
15329 lt_prog_compiler_wl_CXX='--backend -Wl,'
15330 lt_prog_compiler_pic_CXX='-fPIC'
15331 ;;
15332 ecpc* )
15333 # old Intel C++ for x86_64, which still supported -KPIC.
15334 lt_prog_compiler_wl_CXX='-Wl,'
15335 lt_prog_compiler_pic_CXX='-KPIC'
15336 lt_prog_compiler_static_CXX='-static'
15337 ;;
15338 icpc* )
15339 # Intel C++, used to be incompatible with GCC.
15340 # ICC 10 doesn't accept -KPIC any more.
15341 lt_prog_compiler_wl_CXX='-Wl,'
15342 lt_prog_compiler_pic_CXX='-fPIC'
15343 lt_prog_compiler_static_CXX='-static'
15344 ;;
15345 pgCC* | pgcpp*)
15346 # Portland Group C++ compiler
15347 lt_prog_compiler_wl_CXX='-Wl,'
15348 lt_prog_compiler_pic_CXX='-fpic'
15349 lt_prog_compiler_static_CXX='-Bstatic'
15350 ;;
15351 cxx*)
15352 # Compaq C++
15353 # Make sure the PIC flag is empty. It appears that all Alpha
15354 # Linux and Compaq Tru64 Unix objects are PIC.
15355 lt_prog_compiler_pic_CXX=
15356 lt_prog_compiler_static_CXX='-non_shared'
15357 ;;
15358 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15359 # IBM XL 8.0, 9.0 on PPC and BlueGene
15360 lt_prog_compiler_wl_CXX='-Wl,'
15361 lt_prog_compiler_pic_CXX='-qpic'
15362 lt_prog_compiler_static_CXX='-qstaticlink'
15363 ;;
15364 *)
15365 case `$CC -V 2>&1 | sed 5q` in
15366 *Sun\ C*)
15367 # Sun C++ 5.9
15368 lt_prog_compiler_pic_CXX='-KPIC'
15369 lt_prog_compiler_static_CXX='-Bstatic'
15370 lt_prog_compiler_wl_CXX='-Qoption ld '
15371 ;;
15372 esac
15373 ;;
15374 esac
15375 ;;
15376 lynxos*)
15377 ;;
15378 m88k*)
15379 ;;
15380 mvs*)
15381 case $cc_basename in
15382 cxx*)
15383 lt_prog_compiler_pic_CXX='-W c,exportall'
15384 ;;
15385 *)
15386 ;;
15387 esac
15388 ;;
15389 netbsd* | netbsdelf*-gnu)
15390 ;;
15391 *qnx* | *nto*)
15392 # QNX uses GNU C++, but need to define -shared option too, otherwise
15393 # it will coredump.
15394 lt_prog_compiler_pic_CXX='-fPIC -shared'
15395 ;;
15396 osf3* | osf4* | osf5*)
15397 case $cc_basename in
15398 KCC*)
15399 lt_prog_compiler_wl_CXX='--backend -Wl,'
15400 ;;
15401 RCC*)
15402 # Rational C++ 2.4.1
15403 lt_prog_compiler_pic_CXX='-pic'
15404 ;;
15405 cxx*)
15406 # Digital/Compaq C++
15407 lt_prog_compiler_wl_CXX='-Wl,'
15408 # Make sure the PIC flag is empty. It appears that all Alpha
15409 # Linux and Compaq Tru64 Unix objects are PIC.
15410 lt_prog_compiler_pic_CXX=
15411 lt_prog_compiler_static_CXX='-non_shared'
15412 ;;
15413 *)
15414 ;;
15415 esac
15416 ;;
15417 psos*)
15418 ;;
15419 solaris*)
15420 case $cc_basename in
15421 CC* | sunCC*)
15422 # Sun C++ 4.2, 5.x and Centerline C++
15423 lt_prog_compiler_pic_CXX='-KPIC'
15424 lt_prog_compiler_static_CXX='-Bstatic'
15425 lt_prog_compiler_wl_CXX='-Qoption ld '
15426 ;;
15427 gcx*)
15428 # Green Hills C++ Compiler
15429 lt_prog_compiler_pic_CXX='-PIC'
15430 ;;
15431 *)
15432 ;;
15433 esac
15434 ;;
15435 sunos4*)
15436 case $cc_basename in
15437 CC*)
15438 # Sun C++ 4.x
15439 lt_prog_compiler_pic_CXX='-pic'
15440 lt_prog_compiler_static_CXX='-Bstatic'
15441 ;;
15442 lcc*)
15443 # Lucid
15444 lt_prog_compiler_pic_CXX='-pic'
15445 ;;
15446 *)
15447 ;;
15448 esac
15449 ;;
15450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15451 case $cc_basename in
15452 CC*)
15453 lt_prog_compiler_wl_CXX='-Wl,'
15454 lt_prog_compiler_pic_CXX='-KPIC'
15455 lt_prog_compiler_static_CXX='-Bstatic'
15456 ;;
15457 esac
15458 ;;
15459 tandem*)
15460 case $cc_basename in
15461 NCC*)
15462 # NonStop-UX NCC 3.20
15463 lt_prog_compiler_pic_CXX='-KPIC'
15464 ;;
15465 *)
15466 ;;
15467 esac
15468 ;;
15469 vxworks*)
15470 ;;
15471 *)
15472 lt_prog_compiler_can_build_shared_CXX=no
15473 ;;
15474 esac
15475 fi
15476
15477 case $host_os in
15478 # For platforms that do not support PIC, -DPIC is meaningless:
15479 *djgpp*)
15480 lt_prog_compiler_pic_CXX=
15481 ;;
15482 *)
15483 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15484 ;;
15485 esac
15486
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15488 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15489 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15490 $as_echo_n "(cached) " >&6
15491 else
15492 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15493 fi
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15495 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15496 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15497
15498 #
15499 # Check to make sure the PIC flag actually works.
15500 #
15501 if test -n "$lt_prog_compiler_pic_CXX"; then
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15503 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15504 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15505 $as_echo_n "(cached) " >&6
15506 else
15507 lt_cv_prog_compiler_pic_works_CXX=no
15508 ac_outfile=conftest.$ac_objext
15509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15510 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15511 # Insert the option either (1) after the last *FLAGS variable, or
15512 # (2) before a word containing "conftest.", or (3) at the end.
15513 # Note that $ac_compile itself does not contain backslashes and begins
15514 # with a dollar sign (not a hyphen), so the echo should work correctly.
15515 # The option is referenced via a variable to avoid confusing sed.
15516 lt_compile=`echo "$ac_compile" | $SED \
15517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15519 -e 's:$: $lt_compiler_flag:'`
15520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15521 (eval "$lt_compile" 2>conftest.err)
15522 ac_status=$?
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 if (exit $ac_status) && test -s "$ac_outfile"; then
15526 # The compiler can only warn and ignore the option if not recognized
15527 # So say no if there are warnings other than the usual output.
15528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15531 lt_cv_prog_compiler_pic_works_CXX=yes
15532 fi
15533 fi
15534 $RM conftest*
15535
15536 fi
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15538 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15539
15540 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15541 case $lt_prog_compiler_pic_CXX in
15542 "" | " "*) ;;
15543 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15544 esac
15545 else
15546 lt_prog_compiler_pic_CXX=
15547 lt_prog_compiler_can_build_shared_CXX=no
15548 fi
15549
15550 fi
15551
15552
15553
15554
15555
15556 #
15557 # Check to make sure the static flag actually works.
15558 #
15559 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15561 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15562 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15565 lt_cv_prog_compiler_static_works_CXX=no
15566 save_LDFLAGS=$LDFLAGS
15567 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15568 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15569 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15570 # The linker can only warn and ignore the option if not recognized
15571 # So say no if there are warnings
15572 if test -s conftest.err; then
15573 # Append any errors to the config.log.
15574 cat conftest.err 1>&5
15575 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15577 if diff conftest.exp conftest.er2 >/dev/null; then
15578 lt_cv_prog_compiler_static_works_CXX=yes
15579 fi
15580 else
15581 lt_cv_prog_compiler_static_works_CXX=yes
15582 fi
15583 fi
15584 $RM -r conftest*
15585 LDFLAGS=$save_LDFLAGS
15586
15587 fi
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15589 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15590
15591 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15592 :
15593 else
15594 lt_prog_compiler_static_CXX=
15595 fi
15596
15597
15598
15599
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15601 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15602 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15603 $as_echo_n "(cached) " >&6
15604 else
15605 lt_cv_prog_compiler_c_o_CXX=no
15606 $RM -r conftest 2>/dev/null
15607 mkdir conftest
15608 cd conftest
15609 mkdir out
15610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15611
15612 lt_compiler_flag="-o out/conftest2.$ac_objext"
15613 # Insert the option either (1) after the last *FLAGS variable, or
15614 # (2) before a word containing "conftest.", or (3) at the end.
15615 # Note that $ac_compile itself does not contain backslashes and begins
15616 # with a dollar sign (not a hyphen), so the echo should work correctly.
15617 lt_compile=`echo "$ac_compile" | $SED \
15618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15620 -e 's:$: $lt_compiler_flag:'`
15621 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15622 (eval "$lt_compile" 2>out/conftest.err)
15623 ac_status=$?
15624 cat out/conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15627 then
15628 # The compiler can only warn and ignore the option if not recognized
15629 # So say no if there are warnings
15630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15631 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15632 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15633 lt_cv_prog_compiler_c_o_CXX=yes
15634 fi
15635 fi
15636 chmod u+w . 2>&5
15637 $RM conftest*
15638 # SGI C++ compiler will create directory out/ii_files/ for
15639 # template instantiation
15640 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15641 $RM out/* && rmdir out
15642 cd ..
15643 $RM -r conftest
15644 $RM conftest*
15645
15646 fi
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15648 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15649
15650
15651
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15653 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15654 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15655 $as_echo_n "(cached) " >&6
15656 else
15657 lt_cv_prog_compiler_c_o_CXX=no
15658 $RM -r conftest 2>/dev/null
15659 mkdir conftest
15660 cd conftest
15661 mkdir out
15662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15663
15664 lt_compiler_flag="-o out/conftest2.$ac_objext"
15665 # Insert the option either (1) after the last *FLAGS variable, or
15666 # (2) before a word containing "conftest.", or (3) at the end.
15667 # Note that $ac_compile itself does not contain backslashes and begins
15668 # with a dollar sign (not a hyphen), so the echo should work correctly.
15669 lt_compile=`echo "$ac_compile" | $SED \
15670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15672 -e 's:$: $lt_compiler_flag:'`
15673 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15674 (eval "$lt_compile" 2>out/conftest.err)
15675 ac_status=$?
15676 cat out/conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15679 then
15680 # The compiler can only warn and ignore the option if not recognized
15681 # So say no if there are warnings
15682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15683 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15684 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15685 lt_cv_prog_compiler_c_o_CXX=yes
15686 fi
15687 fi
15688 chmod u+w . 2>&5
15689 $RM conftest*
15690 # SGI C++ compiler will create directory out/ii_files/ for
15691 # template instantiation
15692 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15693 $RM out/* && rmdir out
15694 cd ..
15695 $RM -r conftest
15696 $RM conftest*
15697
15698 fi
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15700 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15701
15702
15703
15704
15705 hard_links=nottested
15706 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15707 # do not overwrite the value of need_locks provided by the user
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15709 $as_echo_n "checking if we can lock with hard links... " >&6; }
15710 hard_links=yes
15711 $RM conftest*
15712 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15713 touch conftest.a
15714 ln conftest.a conftest.b 2>&5 || hard_links=no
15715 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15717 $as_echo "$hard_links" >&6; }
15718 if test no = "$hard_links"; then
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15720 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15721 need_locks=warn
15722 fi
15723 else
15724 need_locks=no
15725 fi
15726
15727
15728
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15730 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15731
15732 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15733 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15734 case $host_os in
15735 aix[4-9]*)
15736 # If we're using GNU nm, then we don't want the "-C" option.
15737 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15738 # Without the "-l" option, or with the "-B" option, AIX nm treats
15739 # weak defined symbols like other global defined symbols, whereas
15740 # GNU nm marks them as "W".
15741 # While the 'weak' keyword is ignored in the Export File, we need
15742 # it in the Import File for the 'aix-soname' feature, so we have
15743 # to replace the "-B" option with "-P" for AIX nm.
15744 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15745 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15746 else
15747 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15748 fi
15749 ;;
15750 pw32*)
15751 export_symbols_cmds_CXX=$ltdll_cmds
15752 ;;
15753 cygwin* | mingw* | cegcc*)
15754 case $cc_basename in
15755 cl*)
15756 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15757 ;;
15758 *)
15759 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'
15760 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15761 ;;
15762 esac
15763 ;;
15764 linux* | k*bsd*-gnu | gnu*)
15765 link_all_deplibs_CXX=no
15766 ;;
15767 *)
15768 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15769 ;;
15770 esac
15771
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15773 $as_echo "$ld_shlibs_CXX" >&6; }
15774 test no = "$ld_shlibs_CXX" && can_build_shared=no
15775
15776 with_gnu_ld_CXX=$with_gnu_ld
15777
15778
15779
15780
15781
15782
15783 #
15784 # Do we need to explicitly link libc?
15785 #
15786 case "x$archive_cmds_need_lc_CXX" in
15787 x|xyes)
15788 # Assume -lc should be added
15789 archive_cmds_need_lc_CXX=yes
15790
15791 if test yes,yes = "$GCC,$enable_shared"; then
15792 case $archive_cmds_CXX in
15793 *'~'*)
15794 # FIXME: we may have to deal with multi-command sequences.
15795 ;;
15796 '$CC '*)
15797 # Test whether the compiler implicitly links with -lc since on some
15798 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15799 # to ld, don't add -lc before -lgcc.
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15801 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15802 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15803 $as_echo_n "(cached) " >&6
15804 else
15805 $RM conftest*
15806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15807
15808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15809 (eval $ac_compile) 2>&5
15810 ac_status=$?
15811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15812 test $ac_status = 0; } 2>conftest.err; then
15813 soname=conftest
15814 lib=conftest
15815 libobjs=conftest.$ac_objext
15816 deplibs=
15817 wl=$lt_prog_compiler_wl_CXX
15818 pic_flag=$lt_prog_compiler_pic_CXX
15819 compiler_flags=-v
15820 linker_flags=-v
15821 verstring=
15822 output_objdir=.
15823 libname=conftest
15824 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15825 allow_undefined_flag_CXX=
15826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15827 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15828 ac_status=$?
15829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15830 test $ac_status = 0; }
15831 then
15832 lt_cv_archive_cmds_need_lc_CXX=no
15833 else
15834 lt_cv_archive_cmds_need_lc_CXX=yes
15835 fi
15836 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15837 else
15838 cat conftest.err 1>&5
15839 fi
15840 $RM conftest*
15841
15842 fi
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15844 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15845 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15846 ;;
15847 esac
15848 fi
15849 ;;
15850 esac
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15914 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15915
15916 library_names_spec=
15917 libname_spec='lib$name'
15918 soname_spec=
15919 shrext_cmds=.so
15920 postinstall_cmds=
15921 postuninstall_cmds=
15922 finish_cmds=
15923 finish_eval=
15924 shlibpath_var=
15925 shlibpath_overrides_runpath=unknown
15926 version_type=none
15927 dynamic_linker="$host_os ld.so"
15928 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15929 need_lib_prefix=unknown
15930 hardcode_into_libs=no
15931
15932 # when you set need_version to no, make sure it does not cause -set_version
15933 # flags to be left without arguments
15934 need_version=unknown
15935
15936
15937
15938 case $host_os in
15939 aix3*)
15940 version_type=linux # correct to gnu/linux during the next big refactor
15941 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15942 shlibpath_var=LIBPATH
15943
15944 # AIX 3 has no versioning support, so we append a major version to the name.
15945 soname_spec='$libname$release$shared_ext$major'
15946 ;;
15947
15948 aix[4-9]*)
15949 version_type=linux # correct to gnu/linux during the next big refactor
15950 need_lib_prefix=no
15951 need_version=no
15952 hardcode_into_libs=yes
15953 if test ia64 = "$host_cpu"; then
15954 # AIX 5 supports IA64
15955 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 else
15958 # With GCC up to 2.95.x, collect2 would create an import file
15959 # for dependence libraries. The import file would start with
15960 # the line '#! .'. This would cause the generated library to
15961 # depend on '.', always an invalid library. This was fixed in
15962 # development snapshots of GCC prior to 3.0.
15963 case $host_os in
15964 aix4 | aix4.[01] | aix4.[01].*)
15965 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15966 echo ' yes '
15967 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15968 :
15969 else
15970 can_build_shared=no
15971 fi
15972 ;;
15973 esac
15974 # Using Import Files as archive members, it is possible to support
15975 # filename-based versioning of shared library archives on AIX. While
15976 # this would work for both with and without runtime linking, it will
15977 # prevent static linking of such archives. So we do filename-based
15978 # shared library versioning with .so extension only, which is used
15979 # when both runtime linking and shared linking is enabled.
15980 # Unfortunately, runtime linking may impact performance, so we do
15981 # not want this to be the default eventually. Also, we use the
15982 # versioned .so libs for executables only if there is the -brtl
15983 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15984 # To allow for filename-based versioning support, we need to create
15985 # libNAME.so.V as an archive file, containing:
15986 # *) an Import File, referring to the versioned filename of the
15987 # archive as well as the shared archive member, telling the
15988 # bitwidth (32 or 64) of that shared object, and providing the
15989 # list of exported symbols of that shared object, eventually
15990 # decorated with the 'weak' keyword
15991 # *) the shared object with the F_LOADONLY flag set, to really avoid
15992 # it being seen by the linker.
15993 # At run time we better use the real file rather than another symlink,
15994 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15995
15996 case $with_aix_soname,$aix_use_runtimelinking in
15997 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15998 # soname into executable. Probably we can add versioning support to
15999 # collect2, so additional links can be useful in future.
16000 aix,yes) # traditional libtool
16001 dynamic_linker='AIX unversionable lib.so'
16002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16003 # instead of lib<name>.a to let people know that these are not
16004 # typical AIX shared libraries.
16005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16006 ;;
16007 aix,no) # traditional AIX only
16008 dynamic_linker='AIX lib.a(lib.so.V)'
16009 # We preserve .a as extension for shared libraries through AIX4.2
16010 # and later when we are not doing run time linking.
16011 library_names_spec='$libname$release.a $libname.a'
16012 soname_spec='$libname$release$shared_ext$major'
16013 ;;
16014 svr4,*) # full svr4 only
16015 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16016 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16017 # We do not specify a path in Import Files, so LIBPATH fires.
16018 shlibpath_overrides_runpath=yes
16019 ;;
16020 *,yes) # both, prefer svr4
16021 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16022 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16023 # unpreferred sharedlib libNAME.a needs extra handling
16024 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16025 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16026 # We do not specify a path in Import Files, so LIBPATH fires.
16027 shlibpath_overrides_runpath=yes
16028 ;;
16029 *,no) # both, prefer aix
16030 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16031 library_names_spec='$libname$release.a $libname.a'
16032 soname_spec='$libname$release$shared_ext$major'
16033 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16034 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16035 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16036 ;;
16037 esac
16038 shlibpath_var=LIBPATH
16039 fi
16040 ;;
16041
16042 amigaos*)
16043 case $host_cpu in
16044 powerpc)
16045 # Since July 2007 AmigaOS4 officially supports .so libraries.
16046 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16048 ;;
16049 m68k)
16050 library_names_spec='$libname.ixlibrary $libname.a'
16051 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16052 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16053 ;;
16054 esac
16055 ;;
16056
16057 beos*)
16058 library_names_spec='$libname$shared_ext'
16059 dynamic_linker="$host_os ld.so"
16060 shlibpath_var=LIBRARY_PATH
16061 ;;
16062
16063 bsdi[45]*)
16064 version_type=linux # correct to gnu/linux during the next big refactor
16065 need_version=no
16066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16067 soname_spec='$libname$release$shared_ext$major'
16068 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16069 shlibpath_var=LD_LIBRARY_PATH
16070 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16071 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16072 # the default ld.so.conf also contains /usr/contrib/lib and
16073 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16074 # libtool to hard-code these into programs
16075 ;;
16076
16077 cygwin* | mingw* | pw32* | cegcc*)
16078 version_type=windows
16079 shrext_cmds=.dll
16080 need_version=no
16081 need_lib_prefix=no
16082
16083 case $GCC,$cc_basename in
16084 yes,*)
16085 # gcc
16086 library_names_spec='$libname.dll.a'
16087 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16088 postinstall_cmds='base_file=`basename \$file`~
16089 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16090 dldir=$destdir/`dirname \$dlpath`~
16091 test -d \$dldir || mkdir -p \$dldir~
16092 $install_prog $dir/$dlname \$dldir/$dlname~
16093 chmod a+x \$dldir/$dlname~
16094 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16095 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16096 fi'
16097 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16098 dlpath=$dir/\$dldll~
16099 $RM \$dlpath'
16100 shlibpath_overrides_runpath=yes
16101
16102 case $host_os in
16103 cygwin*)
16104 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16105 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16106
16107 ;;
16108 mingw* | cegcc*)
16109 # MinGW DLLs use traditional 'lib' prefix
16110 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16111 ;;
16112 pw32*)
16113 # pw32 DLLs use 'pw' prefix rather than 'lib'
16114 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16115 ;;
16116 esac
16117 dynamic_linker='Win32 ld.exe'
16118 ;;
16119
16120 *,cl*)
16121 # Native MSVC
16122 libname_spec='$name'
16123 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16124 library_names_spec='$libname.dll.lib'
16125
16126 case $build_os in
16127 mingw*)
16128 sys_lib_search_path_spec=
16129 lt_save_ifs=$IFS
16130 IFS=';'
16131 for lt_path in $LIB
16132 do
16133 IFS=$lt_save_ifs
16134 # Let DOS variable expansion print the short 8.3 style file name.
16135 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16136 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16137 done
16138 IFS=$lt_save_ifs
16139 # Convert to MSYS style.
16140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16141 ;;
16142 cygwin*)
16143 # Convert to unix form, then to dos form, then back to unix form
16144 # but this time dos style (no spaces!) so that the unix form looks
16145 # like /cygdrive/c/PROGRA~1:/cygdr...
16146 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16147 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16148 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16149 ;;
16150 *)
16151 sys_lib_search_path_spec=$LIB
16152 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16153 # It is most probably a Windows format PATH.
16154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16155 else
16156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16157 fi
16158 # FIXME: find the short name or the path components, as spaces are
16159 # common. (e.g. "Program Files" -> "PROGRA~1")
16160 ;;
16161 esac
16162
16163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16164 postinstall_cmds='base_file=`basename \$file`~
16165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16166 dldir=$destdir/`dirname \$dlpath`~
16167 test -d \$dldir || mkdir -p \$dldir~
16168 $install_prog $dir/$dlname \$dldir/$dlname'
16169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16170 dlpath=$dir/\$dldll~
16171 $RM \$dlpath'
16172 shlibpath_overrides_runpath=yes
16173 dynamic_linker='Win32 link.exe'
16174 ;;
16175
16176 *)
16177 # Assume MSVC wrapper
16178 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16179 dynamic_linker='Win32 ld.exe'
16180 ;;
16181 esac
16182 # FIXME: first we should search . and the directory the executable is in
16183 shlibpath_var=PATH
16184 ;;
16185
16186 darwin* | rhapsody*)
16187 dynamic_linker="$host_os dyld"
16188 version_type=darwin
16189 need_lib_prefix=no
16190 need_version=no
16191 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16192 soname_spec='$libname$release$major$shared_ext'
16193 shlibpath_overrides_runpath=yes
16194 shlibpath_var=DYLD_LIBRARY_PATH
16195 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16196
16197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16198 ;;
16199
16200 dgux*)
16201 version_type=linux # correct to gnu/linux during the next big refactor
16202 need_lib_prefix=no
16203 need_version=no
16204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16205 soname_spec='$libname$release$shared_ext$major'
16206 shlibpath_var=LD_LIBRARY_PATH
16207 ;;
16208
16209 freebsd* | dragonfly*)
16210 # DragonFly does not have aout. When/if they implement a new
16211 # versioning mechanism, adjust this.
16212 if test -x /usr/bin/objformat; then
16213 objformat=`/usr/bin/objformat`
16214 else
16215 case $host_os in
16216 freebsd[23].*) objformat=aout ;;
16217 *) objformat=elf ;;
16218 esac
16219 fi
16220 version_type=freebsd-$objformat
16221 case $version_type in
16222 freebsd-elf*)
16223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16224 soname_spec='$libname$release$shared_ext$major'
16225 need_version=no
16226 need_lib_prefix=no
16227 ;;
16228 freebsd-*)
16229 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16230 need_version=yes
16231 ;;
16232 esac
16233 shlibpath_var=LD_LIBRARY_PATH
16234 case $host_os in
16235 freebsd2.*)
16236 shlibpath_overrides_runpath=yes
16237 ;;
16238 freebsd3.[01]* | freebsdelf3.[01]*)
16239 shlibpath_overrides_runpath=yes
16240 hardcode_into_libs=yes
16241 ;;
16242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16244 shlibpath_overrides_runpath=no
16245 hardcode_into_libs=yes
16246 ;;
16247 *) # from 4.6 on, and DragonFly
16248 shlibpath_overrides_runpath=yes
16249 hardcode_into_libs=yes
16250 ;;
16251 esac
16252 ;;
16253
16254 haiku*)
16255 version_type=linux # correct to gnu/linux during the next big refactor
16256 need_lib_prefix=no
16257 need_version=no
16258 dynamic_linker="$host_os runtime_loader"
16259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16260 soname_spec='$libname$release$shared_ext$major'
16261 shlibpath_var=LIBRARY_PATH
16262 shlibpath_overrides_runpath=no
16263 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16264 hardcode_into_libs=yes
16265 ;;
16266
16267 hpux9* | hpux10* | hpux11*)
16268 # Give a soname corresponding to the major version so that dld.sl refuses to
16269 # link against other versions.
16270 version_type=sunos
16271 need_lib_prefix=no
16272 need_version=no
16273 case $host_cpu in
16274 ia64*)
16275 shrext_cmds='.so'
16276 hardcode_into_libs=yes
16277 dynamic_linker="$host_os dld.so"
16278 shlibpath_var=LD_LIBRARY_PATH
16279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16281 soname_spec='$libname$release$shared_ext$major'
16282 if test 32 = "$HPUX_IA64_MODE"; then
16283 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16284 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16285 else
16286 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16287 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16288 fi
16289 ;;
16290 hppa*64*)
16291 shrext_cmds='.sl'
16292 hardcode_into_libs=yes
16293 dynamic_linker="$host_os dld.sl"
16294 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16297 soname_spec='$libname$release$shared_ext$major'
16298 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16300 ;;
16301 *)
16302 shrext_cmds='.sl'
16303 dynamic_linker="$host_os dld.sl"
16304 shlibpath_var=SHLIB_PATH
16305 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16307 soname_spec='$libname$release$shared_ext$major'
16308 ;;
16309 esac
16310 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16311 postinstall_cmds='chmod 555 $lib'
16312 # or fails outright, so override atomically:
16313 install_override_mode=555
16314 ;;
16315
16316 interix[3-9]*)
16317 version_type=linux # correct to gnu/linux during the next big refactor
16318 need_lib_prefix=no
16319 need_version=no
16320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16321 soname_spec='$libname$release$shared_ext$major'
16322 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=no
16325 hardcode_into_libs=yes
16326 ;;
16327
16328 irix5* | irix6* | nonstopux*)
16329 case $host_os in
16330 nonstopux*) version_type=nonstopux ;;
16331 *)
16332 if test yes = "$lt_cv_prog_gnu_ld"; then
16333 version_type=linux # correct to gnu/linux during the next big refactor
16334 else
16335 version_type=irix
16336 fi ;;
16337 esac
16338 need_lib_prefix=no
16339 need_version=no
16340 soname_spec='$libname$release$shared_ext$major'
16341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16342 case $host_os in
16343 irix5* | nonstopux*)
16344 libsuff= shlibsuff=
16345 ;;
16346 *)
16347 case $LD in # libtool.m4 will add one of these switches to LD
16348 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16349 libsuff= shlibsuff= libmagic=32-bit;;
16350 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16351 libsuff=32 shlibsuff=N32 libmagic=N32;;
16352 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16353 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16354 *) libsuff= shlibsuff= libmagic=never-match;;
16355 esac
16356 ;;
16357 esac
16358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16359 shlibpath_overrides_runpath=no
16360 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16361 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16362 hardcode_into_libs=yes
16363 ;;
16364
16365 # No shared lib support for Linux oldld, aout, or coff.
16366 linux*oldld* | linux*aout* | linux*coff*)
16367 dynamic_linker=no
16368 ;;
16369
16370 linux*android*)
16371 version_type=none # Android doesn't support versioned libraries.
16372 need_lib_prefix=no
16373 need_version=no
16374 library_names_spec='$libname$release$shared_ext'
16375 soname_spec='$libname$release$shared_ext'
16376 finish_cmds=
16377 shlibpath_var=LD_LIBRARY_PATH
16378 shlibpath_overrides_runpath=yes
16379
16380 # This implies no fast_install, which is unacceptable.
16381 # Some rework will be needed to allow for fast_install
16382 # before this can be enabled.
16383 hardcode_into_libs=yes
16384
16385 dynamic_linker='Android linker'
16386 # Don't embed -rpath directories since the linker doesn't support them.
16387 hardcode_libdir_flag_spec_CXX='-L$libdir'
16388 ;;
16389
16390 # This must be glibc/ELF.
16391 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16392 version_type=linux # correct to gnu/linux during the next big refactor
16393 need_lib_prefix=no
16394 need_version=no
16395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16396 soname_spec='$libname$release$shared_ext$major'
16397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16398 shlibpath_var=LD_LIBRARY_PATH
16399 shlibpath_overrides_runpath=no
16400
16401 # Some binutils ld are patched to set DT_RUNPATH
16402 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16403 $as_echo_n "(cached) " >&6
16404 else
16405 lt_cv_shlibpath_overrides_runpath=no
16406 save_LDFLAGS=$LDFLAGS
16407 save_libdir=$libdir
16408 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16409 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412
16413 int
16414 main ()
16415 {
16416
16417 ;
16418 return 0;
16419 }
16420 _ACEOF
16421 if ac_fn_cxx_try_link "$LINENO"; then :
16422 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16423 lt_cv_shlibpath_overrides_runpath=yes
16424 fi
16425 fi
16426 rm -f core conftest.err conftest.$ac_objext \
16427 conftest$ac_exeext conftest.$ac_ext
16428 LDFLAGS=$save_LDFLAGS
16429 libdir=$save_libdir
16430
16431 fi
16432
16433 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16434
16435 # This implies no fast_install, which is unacceptable.
16436 # Some rework will be needed to allow for fast_install
16437 # before this can be enabled.
16438 hardcode_into_libs=yes
16439
16440 # Ideally, we could use ldconfig to report *all* directores which are
16441 # searched for libraries, however this is still not possible. Aside from not
16442 # being certain /sbin/ldconfig is available, command
16443 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16444 # even though it is searched at run-time. Try to do the best guess by
16445 # appending ld.so.conf contents (and includes) to the search path.
16446 if test -f /etc/ld.so.conf; then
16447 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' ' '`
16448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16449 fi
16450
16451 # We used to test for /lib/ld.so.1 and disable shared libraries on
16452 # powerpc, because MkLinux only supported shared libraries with the
16453 # GNU dynamic linker. Since this was broken with cross compilers,
16454 # most powerpc-linux boxes support dynamic linking these days and
16455 # people can always --disable-shared, the test was removed, and we
16456 # assume the GNU/Linux dynamic linker is in use.
16457 dynamic_linker='GNU/Linux ld.so'
16458 ;;
16459
16460 netbsdelf*-gnu)
16461 version_type=linux
16462 need_lib_prefix=no
16463 need_version=no
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16465 soname_spec='${libname}${release}${shared_ext}$major'
16466 shlibpath_var=LD_LIBRARY_PATH
16467 shlibpath_overrides_runpath=no
16468 hardcode_into_libs=yes
16469 dynamic_linker='NetBSD ld.elf_so'
16470 ;;
16471
16472 netbsd*)
16473 version_type=sunos
16474 need_lib_prefix=no
16475 need_version=no
16476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16477 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16479 dynamic_linker='NetBSD (a.out) ld.so'
16480 else
16481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16482 soname_spec='$libname$release$shared_ext$major'
16483 dynamic_linker='NetBSD ld.elf_so'
16484 fi
16485 shlibpath_var=LD_LIBRARY_PATH
16486 shlibpath_overrides_runpath=yes
16487 hardcode_into_libs=yes
16488 ;;
16489
16490 newsos6)
16491 version_type=linux # correct to gnu/linux during the next big refactor
16492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16493 shlibpath_var=LD_LIBRARY_PATH
16494 shlibpath_overrides_runpath=yes
16495 ;;
16496
16497 *nto* | *qnx*)
16498 version_type=qnx
16499 need_lib_prefix=no
16500 need_version=no
16501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16502 soname_spec='$libname$release$shared_ext$major'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 shlibpath_overrides_runpath=no
16505 hardcode_into_libs=yes
16506 dynamic_linker='ldqnx.so'
16507 ;;
16508
16509 openbsd* | bitrig*)
16510 version_type=sunos
16511 sys_lib_dlsearch_path_spec=/usr/lib
16512 need_lib_prefix=no
16513 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16514 need_version=no
16515 else
16516 need_version=yes
16517 fi
16518 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 shlibpath_overrides_runpath=yes
16522 ;;
16523
16524 os2*)
16525 libname_spec='$name'
16526 version_type=windows
16527 shrext_cmds=.dll
16528 need_version=no
16529 need_lib_prefix=no
16530 # OS/2 can only load a DLL with a base name of 8 characters or less.
16531 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16532 v=$($ECHO $release$versuffix | tr -d .-);
16533 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16534 $ECHO $n$v`$shared_ext'
16535 library_names_spec='${libname}_dll.$libext'
16536 dynamic_linker='OS/2 ld.exe'
16537 shlibpath_var=BEGINLIBPATH
16538 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16540 postinstall_cmds='base_file=`basename \$file`~
16541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16542 dldir=$destdir/`dirname \$dlpath`~
16543 test -d \$dldir || mkdir -p \$dldir~
16544 $install_prog $dir/$dlname \$dldir/$dlname~
16545 chmod a+x \$dldir/$dlname~
16546 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16547 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16548 fi'
16549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16550 dlpath=$dir/\$dldll~
16551 $RM \$dlpath'
16552 ;;
16553
16554 osf3* | osf4* | osf5*)
16555 version_type=osf
16556 need_lib_prefix=no
16557 need_version=no
16558 soname_spec='$libname$release$shared_ext$major'
16559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16560 shlibpath_var=LD_LIBRARY_PATH
16561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16563 ;;
16564
16565 rdos*)
16566 dynamic_linker=no
16567 ;;
16568
16569 solaris*)
16570 version_type=linux # correct to gnu/linux during the next big refactor
16571 need_lib_prefix=no
16572 need_version=no
16573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16574 soname_spec='$libname$release$shared_ext$major'
16575 shlibpath_var=LD_LIBRARY_PATH
16576 shlibpath_overrides_runpath=yes
16577 hardcode_into_libs=yes
16578 # ldd complains unless libraries are executable
16579 postinstall_cmds='chmod +x $lib'
16580 ;;
16581
16582 sunos4*)
16583 version_type=sunos
16584 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 shlibpath_overrides_runpath=yes
16588 if test yes = "$with_gnu_ld"; then
16589 need_lib_prefix=no
16590 fi
16591 need_version=yes
16592 ;;
16593
16594 sysv4 | sysv4.3*)
16595 version_type=linux # correct to gnu/linux during the next big refactor
16596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16597 soname_spec='$libname$release$shared_ext$major'
16598 shlibpath_var=LD_LIBRARY_PATH
16599 case $host_vendor in
16600 sni)
16601 shlibpath_overrides_runpath=no
16602 need_lib_prefix=no
16603 runpath_var=LD_RUN_PATH
16604 ;;
16605 siemens)
16606 need_lib_prefix=no
16607 ;;
16608 motorola)
16609 need_lib_prefix=no
16610 need_version=no
16611 shlibpath_overrides_runpath=no
16612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16613 ;;
16614 esac
16615 ;;
16616
16617 sysv4*MP*)
16618 if test -d /usr/nec; then
16619 version_type=linux # correct to gnu/linux during the next big refactor
16620 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16621 soname_spec='$libname$shared_ext.$major'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 fi
16624 ;;
16625
16626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16627 version_type=sco
16628 need_lib_prefix=no
16629 need_version=no
16630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16631 soname_spec='$libname$release$shared_ext$major'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes
16634 hardcode_into_libs=yes
16635 if test yes = "$with_gnu_ld"; then
16636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16637 else
16638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16639 case $host_os in
16640 sco3.2v5*)
16641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16642 ;;
16643 esac
16644 fi
16645 sys_lib_dlsearch_path_spec='/usr/lib'
16646 ;;
16647
16648 tpf*)
16649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16650 version_type=linux # correct to gnu/linux during the next big refactor
16651 need_lib_prefix=no
16652 need_version=no
16653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16654 shlibpath_var=LD_LIBRARY_PATH
16655 shlibpath_overrides_runpath=no
16656 hardcode_into_libs=yes
16657 ;;
16658
16659 uts4*)
16660 version_type=linux # correct to gnu/linux during the next big refactor
16661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16662 soname_spec='$libname$release$shared_ext$major'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 ;;
16665
16666 *)
16667 dynamic_linker=no
16668 ;;
16669 esac
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16671 $as_echo "$dynamic_linker" >&6; }
16672 test no = "$dynamic_linker" && can_build_shared=no
16673
16674 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16675 if test yes = "$GCC"; then
16676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16677 fi
16678
16679 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16680 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16681 fi
16682
16683 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16684 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16685 fi
16686
16687 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16688 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16689
16690 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16691 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16692
16693 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16694 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16736 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16737 hardcode_action_CXX=
16738 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16739 test -n "$runpath_var_CXX" ||
16740 test yes = "$hardcode_automatic_CXX"; then
16741
16742 # We can hardcode non-existent directories.
16743 if test no != "$hardcode_direct_CXX" &&
16744 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16745 # have to relink, otherwise we might link with an installed library
16746 # when we should be linking with a yet-to-be-installed one
16747 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16748 test no != "$hardcode_minus_L_CXX"; then
16749 # Linking always hardcodes the temporary library directory.
16750 hardcode_action_CXX=relink
16751 else
16752 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16753 hardcode_action_CXX=immediate
16754 fi
16755 else
16756 # We cannot hardcode anything, or else we can only hardcode existing
16757 # directories.
16758 hardcode_action_CXX=unsupported
16759 fi
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16761 $as_echo "$hardcode_action_CXX" >&6; }
16762
16763 if test relink = "$hardcode_action_CXX" ||
16764 test yes = "$inherit_rpath_CXX"; then
16765 # Fast installation is not supported
16766 enable_fast_install=no
16767 elif test yes = "$shlibpath_overrides_runpath" ||
16768 test no = "$enable_shared"; then
16769 # Fast installation is not necessary
16770 enable_fast_install=needless
16771 fi
16772
16773
16774
16775
16776
16777
16778
16779 fi # test -n "$compiler"
16780
16781 CC=$lt_save_CC
16782 CFLAGS=$lt_save_CFLAGS
16783 LDCXX=$LD
16784 LD=$lt_save_LD
16785 GCC=$lt_save_GCC
16786 with_gnu_ld=$lt_save_with_gnu_ld
16787 lt_cv_path_LDCXX=$lt_cv_path_LD
16788 lt_cv_path_LD=$lt_save_path_LD
16789 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16790 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16791 fi # test yes != "$_lt_caught_CXX_error"
16792
16793 ac_ext=c
16794 ac_cpp='$CPP $CPPFLAGS'
16795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813 ac_config_commands="$ac_config_commands libtool"
16814
16815
16816
16817
16818 # Only expand once:
16819
16820
16821 if test -n "$ac_tool_prefix"; then
16822 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16823 set dummy ${ac_tool_prefix}windres; 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_prog_RC+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829 if test -n "$RC"; then
16830 ac_cv_prog_RC="$RC" # Let the user override the test.
16831 else
16832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16833 for as_dir in $PATH
16834 do
16835 IFS=$as_save_IFS
16836 test -z "$as_dir" && as_dir=.
16837 for ac_exec_ext in '' $ac_executable_extensions; do
16838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16839 ac_cv_prog_RC="${ac_tool_prefix}windres"
16840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16841 break 2
16842 fi
16843 done
16844 done
16845 IFS=$as_save_IFS
16846
16847 fi
16848 fi
16849 RC=$ac_cv_prog_RC
16850 if test -n "$RC"; then
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16852 $as_echo "$RC" >&6; }
16853 else
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16855 $as_echo "no" >&6; }
16856 fi
16857
16858
16859 fi
16860 if test -z "$ac_cv_prog_RC"; then
16861 ac_ct_RC=$RC
16862 # Extract the first word of "windres", so it can be a program name with args.
16863 set dummy windres; ac_word=$2
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16865 $as_echo_n "checking for $ac_word... " >&6; }
16866 if ${ac_cv_prog_ac_ct_RC+:} false; then :
16867 $as_echo_n "(cached) " >&6
16868 else
16869 if test -n "$ac_ct_RC"; then
16870 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16871 else
16872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16873 for as_dir in $PATH
16874 do
16875 IFS=$as_save_IFS
16876 test -z "$as_dir" && as_dir=.
16877 for ac_exec_ext in '' $ac_executable_extensions; do
16878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16879 ac_cv_prog_ac_ct_RC="windres"
16880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16881 break 2
16882 fi
16883 done
16884 done
16885 IFS=$as_save_IFS
16886
16887 fi
16888 fi
16889 ac_ct_RC=$ac_cv_prog_ac_ct_RC
16890 if test -n "$ac_ct_RC"; then
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16892 $as_echo "$ac_ct_RC" >&6; }
16893 else
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16895 $as_echo "no" >&6; }
16896 fi
16897
16898 if test "x$ac_ct_RC" = x; then
16899 RC=""
16900 else
16901 case $cross_compiling:$ac_tool_warned in
16902 yes:)
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16905 ac_tool_warned=yes ;;
16906 esac
16907 RC=$ac_ct_RC
16908 fi
16909 else
16910 RC="$ac_cv_prog_RC"
16911 fi
16912
16913
16914
16915 # Source file extension for RC test sources.
16916 ac_ext=rc
16917
16918 # Object file extension for compiled RC test sources.
16919 objext=o
16920 objext_RC=$objext
16921
16922 # Code to be used in simple compile tests
16923 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16924
16925 # Code to be used in simple link tests
16926 lt_simple_link_test_code=$lt_simple_compile_test_code
16927
16928 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16929
16930
16931
16932
16933
16934
16935 # If no C compiler was specified, use CC.
16936 LTCC=${LTCC-"$CC"}
16937
16938 # If no C compiler flags were specified, use CFLAGS.
16939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16940
16941 # Allow CC to be a program name with arguments.
16942 compiler=$CC
16943
16944
16945 # save warnings/boilerplate of simple test code
16946 ac_outfile=conftest.$ac_objext
16947 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16948 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16949 _lt_compiler_boilerplate=`cat conftest.err`
16950 $RM conftest*
16951
16952 ac_outfile=conftest.$ac_objext
16953 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16954 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16955 _lt_linker_boilerplate=`cat conftest.err`
16956 $RM -r conftest*
16957
16958
16959 # Allow CC to be a program name with arguments.
16960 lt_save_CC=$CC
16961 lt_save_CFLAGS=$CFLAGS
16962 lt_save_GCC=$GCC
16963 GCC=
16964 CC=${RC-"windres"}
16965 CFLAGS=
16966 compiler=$CC
16967 compiler_RC=$CC
16968 func_cc_basename $compiler
16969 cc_basename=$func_cc_basename_result
16970
16971 lt_cv_prog_compiler_c_o_RC=yes
16972
16973 if test -n "$compiler"; then
16974 :
16975
16976
16977
16978 fi
16979
16980 GCC=$lt_save_GCC
16981 ac_ext=c
16982 ac_cpp='$CPP $CPPFLAGS'
16983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16986
16987 CC=$lt_save_CC
16988 CFLAGS=$lt_save_CFLAGS
16989
16990
16991
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16993 $as_echo_n "checking whether ln -s works... " >&6; }
16994 LN_S=$as_ln_s
16995 if test "$LN_S" = "ln -s"; then
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16997 $as_echo "yes" >&6; }
16998 else
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17000 $as_echo "no, using $LN_S" >&6; }
17001 fi
17002
17003
17004 # Extract the first word of "autogen", so it can be a program name with args.
17005 set dummy autogen; ac_word=$2
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17007 $as_echo_n "checking for $ac_word... " >&6; }
17008 if ${ac_cv_prog_HAVE_AUTOGEN+:} false; then :
17009 $as_echo_n "(cached) " >&6
17010 else
17011 if test -n "$HAVE_AUTOGEN"; then
17012 ac_cv_prog_HAVE_AUTOGEN="$HAVE_AUTOGEN" # Let the user override the test.
17013 else
17014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17015 for as_dir in $PATH
17016 do
17017 IFS=$as_save_IFS
17018 test -z "$as_dir" && as_dir=.
17019 for ac_exec_ext in '' $ac_executable_extensions; do
17020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17021 ac_cv_prog_HAVE_AUTOGEN="yes"
17022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17023 break 2
17024 fi
17025 done
17026 done
17027 IFS=$as_save_IFS
17028
17029 test -z "$ac_cv_prog_HAVE_AUTOGEN" && ac_cv_prog_HAVE_AUTOGEN="no"
17030 fi
17031 fi
17032 HAVE_AUTOGEN=$ac_cv_prog_HAVE_AUTOGEN
17033 if test -n "$HAVE_AUTOGEN"; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_AUTOGEN" >&5
17035 $as_echo "$HAVE_AUTOGEN" >&6; }
17036 else
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17038 $as_echo "no" >&6; }
17039 fi
17040
17041
17042 # Extract the first word of "wine", so it can be a program name with args.
17043 set dummy wine; ac_word=$2
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17045 $as_echo_n "checking for $ac_word... " >&6; }
17046 if ${ac_cv_prog_HAVE_WINE+:} false; then :
17047 $as_echo_n "(cached) " >&6
17048 else
17049 if test -n "$HAVE_WINE"; then
17050 ac_cv_prog_HAVE_WINE="$HAVE_WINE" # Let the user override the test.
17051 else
17052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17053 for as_dir in $PATH
17054 do
17055 IFS=$as_save_IFS
17056 test -z "$as_dir" && as_dir=.
17057 for ac_exec_ext in '' $ac_executable_extensions; do
17058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17059 ac_cv_prog_HAVE_WINE="yes"
17060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17061 break 2
17062 fi
17063 done
17064 done
17065 IFS=$as_save_IFS
17066
17067 test -z "$ac_cv_prog_HAVE_WINE" && ac_cv_prog_HAVE_WINE="no"
17068 fi
17069 fi
17070 HAVE_WINE=$ac_cv_prog_HAVE_WINE
17071 if test -n "$HAVE_WINE"; then
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WINE" >&5
17073 $as_echo "$HAVE_WINE" >&6; }
17074 else
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17076 $as_echo "no" >&6; }
17077 fi
17078
17079
17080 # Extract the first word of "xcode-select", so it can be a program name with args.
17081 set dummy xcode-select; ac_word=$2
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17083 $as_echo_n "checking for $ac_word... " >&6; }
17084 if ${ac_cv_prog_HAVE_XCODE_SELECT+:} false; then :
17085 $as_echo_n "(cached) " >&6
17086 else
17087 if test -n "$HAVE_XCODE_SELECT"; then
17088 ac_cv_prog_HAVE_XCODE_SELECT="$HAVE_XCODE_SELECT" # Let the user override the test.
17089 else
17090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17091 for as_dir in $PATH
17092 do
17093 IFS=$as_save_IFS
17094 test -z "$as_dir" && as_dir=.
17095 for ac_exec_ext in '' $ac_executable_extensions; do
17096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17097 ac_cv_prog_HAVE_XCODE_SELECT="yes"
17098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17099 break 2
17100 fi
17101 done
17102 done
17103 IFS=$as_save_IFS
17104
17105 test -z "$ac_cv_prog_HAVE_XCODE_SELECT" && ac_cv_prog_HAVE_XCODE_SELECT="no"
17106 fi
17107 fi
17108 HAVE_XCODE_SELECT=$ac_cv_prog_HAVE_XCODE_SELECT
17109 if test -n "$HAVE_XCODE_SELECT"; then
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XCODE_SELECT" >&5
17111 $as_echo "$HAVE_XCODE_SELECT" >&6; }
17112 else
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17114 $as_echo "no" >&6; }
17115 fi
17116
17117
17118
17119 #------------------------------------------------------------------------------------
17120 # Rules for library version information:
17121 #
17122 # 1. Start with version information of `0:0:0' for each libtool library.
17123 # 2. Update the version information only immediately before a public release of
17124 # your software. More frequent updates are unnecessary, and only guarantee
17125 # that the current interface number gets larger faster.
17126 # 3. If the library source code has changed at all since the last update, then
17127 # increment revision (`c:r:a' becomes `c:r+1:a').
17128 # 4. If any interfaces have been added, removed, or changed since the last update,
17129 # increment current, and set revision to 0.
17130 # 5. If any interfaces have been added since the last public release, then increment
17131 # age.
17132 # 6. If any interfaces have been removed since the last public release, then set age
17133 # to 0.
17134
17135 CLEAN_VERSION=`echo $PACKAGE_VERSION | $SED "s/p.*//"`
17136 VERSION_MINOR=`echo $CLEAN_VERSION | $SED "s/.*\.//"`
17137
17138 SHARED_VERSION_INFO="1:$VERSION_MINOR:0"
17139
17140 #------------------------------------------------------------------------------------
17141
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17143 $as_echo_n "checking for ANSI C header files... " >&6; }
17144 if ${ac_cv_header_stdc+:} false; then :
17145 $as_echo_n "(cached) " >&6
17146 else
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17149 #include <stdlib.h>
17150 #include <stdarg.h>
17151 #include <string.h>
17152 #include <float.h>
17153
17154 int
17155 main ()
17156 {
17157
17158 ;
17159 return 0;
17160 }
17161 _ACEOF
17162 if ac_fn_c_try_compile "$LINENO"; then :
17163 ac_cv_header_stdc=yes
17164 else
17165 ac_cv_header_stdc=no
17166 fi
17167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168
17169 if test $ac_cv_header_stdc = yes; then
17170 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17173 #include <string.h>
17174
17175 _ACEOF
17176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17177 $EGREP "memchr" >/dev/null 2>&1; then :
17178
17179 else
17180 ac_cv_header_stdc=no
17181 fi
17182 rm -f conftest*
17183
17184 fi
17185
17186 if test $ac_cv_header_stdc = yes; then
17187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189 /* end confdefs.h. */
17190 #include <stdlib.h>
17191
17192 _ACEOF
17193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17194 $EGREP "free" >/dev/null 2>&1; then :
17195
17196 else
17197 ac_cv_header_stdc=no
17198 fi
17199 rm -f conftest*
17200
17201 fi
17202
17203 if test $ac_cv_header_stdc = yes; then
17204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17205 if test "$cross_compiling" = yes; then :
17206 :
17207 else
17208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17209 /* end confdefs.h. */
17210 #include <ctype.h>
17211 #include <stdlib.h>
17212 #if ((' ' & 0x0FF) == 0x020)
17213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17215 #else
17216 # define ISLOWER(c) \
17217 (('a' <= (c) && (c) <= 'i') \
17218 || ('j' <= (c) && (c) <= 'r') \
17219 || ('s' <= (c) && (c) <= 'z'))
17220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17221 #endif
17222
17223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17224 int
17225 main ()
17226 {
17227 int i;
17228 for (i = 0; i < 256; i++)
17229 if (XOR (islower (i), ISLOWER (i))
17230 || toupper (i) != TOUPPER (i))
17231 return 2;
17232 return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_run "$LINENO"; then :
17236
17237 else
17238 ac_cv_header_stdc=no
17239 fi
17240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17241 conftest.$ac_objext conftest.beam conftest.$ac_ext
17242 fi
17243
17244 fi
17245 fi
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17247 $as_echo "$ac_cv_header_stdc" >&6; }
17248 if test $ac_cv_header_stdc = yes; then
17249
17250 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17251
17252 fi
17253
17254
17255 for ac_header in endian.h
17256 do :
17257 ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
17258 if test "x$ac_cv_header_endian_h" = xyes; then :
17259 cat >>confdefs.h <<_ACEOF
17260 #define HAVE_ENDIAN_H 1
17261 _ACEOF
17262
17263 fi
17264
17265 done
17266
17267 for ac_header in byteswap.h
17268 do :
17269 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
17270 if test "x$ac_cv_header_byteswap_h" = xyes; then :
17271 cat >>confdefs.h <<_ACEOF
17272 #define HAVE_BYTESWAP_H 1
17273 _ACEOF
17274
17275 fi
17276
17277 done
17278
17279 for ac_header in locale.h
17280 do :
17281 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
17282 if test "x$ac_cv_header_locale_h" = xyes; then :
17283 cat >>confdefs.h <<_ACEOF
17284 #define HAVE_LOCALE_H 1
17285 _ACEOF
17286
17287 fi
17288
17289 done
17290
17291 for ac_header in sys/time.h
17292 do :
17293 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
17294 if test "x$ac_cv_header_sys_time_h" = xyes; then :
17295 cat >>confdefs.h <<_ACEOF
17296 #define HAVE_SYS_TIME_H 1
17297 _ACEOF
17298
17299 fi
17300
17301 done
17302
17303
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
17305 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
17306 if ${ac_cv_header_sys_wait_h+:} false; then :
17307 $as_echo_n "(cached) " >&6
17308 else
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310 /* end confdefs.h. */
17311 #include <sys/types.h>
17312 #include <sys/wait.h>
17313 #ifndef WEXITSTATUS
17314 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17315 #endif
17316 #ifndef WIFEXITED
17317 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17318 #endif
17319
17320 int
17321 main ()
17322 {
17323 int s;
17324 wait (&s);
17325 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17326 ;
17327 return 0;
17328 }
17329 _ACEOF
17330 if ac_fn_c_try_compile "$LINENO"; then :
17331 ac_cv_header_sys_wait_h=yes
17332 else
17333 ac_cv_header_sys_wait_h=no
17334 fi
17335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17336 fi
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
17338 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
17339 if test $ac_cv_header_sys_wait_h = yes; then
17340
17341 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
17342
17343 fi
17344
17345
17346 ac_fn_c_check_decl "$LINENO" "S_IRGRP" "ac_cv_have_decl_S_IRGRP" "$ac_includes_default"
17347 if test "x$ac_cv_have_decl_S_IRGRP" = xyes; then :
17348 ac_have_decl=1
17349 else
17350 ac_have_decl=0
17351 fi
17352
17353 cat >>confdefs.h <<_ACEOF
17354 #define HAVE_DECL_S_IRGRP $ac_have_decl
17355 _ACEOF
17356
17357 if test x$ac_cv_have_decl_S_IRGRP = xyes ; then
17358
17359 cat >>confdefs.h <<_ACEOF
17360 #define HAVE_DECL_S_IRGRP 1
17361 _ACEOF
17362
17363 else
17364 cat >>confdefs.h <<_ACEOF
17365 #define HAVE_DECL_S_IRGRP 0
17366 _ACEOF
17367
17368 fi
17369
17370 if test "$build_os:$target_os:$host_os:$HAVE_WINE" = "linux-gnu:mingw32msvc:mingw32msvc:yes"; then
17371 LINUX_MINGW_CROSS_TEST_TRUE=
17372 LINUX_MINGW_CROSS_TEST_FALSE='#'
17373 else
17374 LINUX_MINGW_CROSS_TEST_TRUE='#'
17375 LINUX_MINGW_CROSS_TEST_FALSE=
17376 fi
17377
17378
17379 #====================================================================================
17380 # Couple of initializations here. Fill in real values later.
17381
17382 SHLIB_VERSION_ARG=""
17383
17384 #====================================================================================
17385 # Finished checking, handle options.
17386
17387 # Check whether --enable-experimental was given.
17388 if test "${enable_experimental+set}" = set; then :
17389 enableval=$enable_experimental;
17390 fi
17391
17392
17393 EXPERIMENTAL_CODE=0
17394 if test x$enable_experimental = xyes ; then
17395 EXPERIMENTAL_CODE=1
17396 fi
17397
17398 cat >>confdefs.h <<_ACEOF
17399 #define ENABLE_EXPERIMENTAL_CODE ${EXPERIMENTAL_CODE}
17400 _ACEOF
17401
17402
17403 # Check whether --enable-werror was given.
17404 if test "${enable_werror+set}" = set; then :
17405 enableval=$enable_werror;
17406 fi
17407
17408
17409 # Check whether --enable-stack-smash-protection was given.
17410 if test "${enable_stack_smash_protection+set}" = set; then :
17411 enableval=$enable_stack_smash_protection;
17412 fi
17413
17414
17415 # Check whether --enable-gcc-pipe was given.
17416 if test "${enable_gcc_pipe+set}" = set; then :
17417 enableval=$enable_gcc_pipe;
17418 fi
17419
17420
17421 # Check whether --enable-gcc-opt was given.
17422 if test "${enable_gcc_opt+set}" = set; then :
17423 enableval=$enable_gcc_opt;
17424 fi
17425
17426
17427 # Check whether --enable-cpu-clip was given.
17428 if test "${enable_cpu_clip+set}" = set; then :
17429 enableval=$enable_cpu_clip;
17430 fi
17431
17432
17433 # Check whether --enable-bow-docs was given.
17434 if test "${enable_bow_docs+set}" = set; then :
17435 enableval=$enable_bow_docs;
17436 fi
17437
17438
17439 # Check whether --enable-sqlite was given.
17440 if test "${enable_sqlite+set}" = set; then :
17441 enableval=$enable_sqlite;
17442 fi
17443
17444
17445 # Check whether --enable-alsa was given.
17446 if test "${enable_alsa+set}" = set; then :
17447 enableval=$enable_alsa;
17448 fi
17449
17450
17451 # Check whether --enable-external-libs was given.
17452 if test "${enable_external_libs+set}" = set; then :
17453 enableval=$enable_external_libs;
17454 fi
17455
17456
17457 # Check whether --enable-octave was given.
17458 if test "${enable_octave+set}" = set; then :
17459 enableval=$enable_octave;
17460 fi
17461
17462
17463 # Check whether --enable-test-coverage was given.
17464 if test "${enable_test_coverage+set}" = set; then :
17465 enableval=$enable_test_coverage;
17466 fi
17467
17468 if test "$enable_test_coverage" = yes; then
17469 ENABLE_TEST_COVERAGE_TRUE=
17470 ENABLE_TEST_COVERAGE_FALSE='#'
17471 else
17472 ENABLE_TEST_COVERAGE_TRUE='#'
17473 ENABLE_TEST_COVERAGE_FALSE=
17474 fi
17475
17476
17477 #====================================================================================
17478 # Check types and their sizes.
17479
17480 # The cast to long int works around a bug in the HP C Compiler
17481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17482 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17483 # This bug is HP SR number 8606223364.
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
17485 $as_echo_n "checking size of wchar_t... " >&6; }
17486 if ${ac_cv_sizeof_wchar_t+:} false; then :
17487 $as_echo_n "(cached) " >&6
17488 else
17489 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
17490
17491 else
17492 if test "$ac_cv_type_wchar_t" = yes; then
17493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17495 as_fn_error 77 "cannot compute sizeof (wchar_t)
17496 See \`config.log' for more details" "$LINENO" 5; }
17497 else
17498 ac_cv_sizeof_wchar_t=0
17499 fi
17500 fi
17501
17502 fi
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
17504 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
17505
17506
17507
17508 cat >>confdefs.h <<_ACEOF
17509 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
17510 _ACEOF
17511
17512
17513 # The cast to long int works around a bug in the HP C Compiler
17514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17516 # This bug is HP SR number 8606223364.
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17518 $as_echo_n "checking size of short... " >&6; }
17519 if ${ac_cv_sizeof_short+:} false; then :
17520 $as_echo_n "(cached) " >&6
17521 else
17522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
17523
17524 else
17525 if test "$ac_cv_type_short" = yes; then
17526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17528 as_fn_error 77 "cannot compute sizeof (short)
17529 See \`config.log' for more details" "$LINENO" 5; }
17530 else
17531 ac_cv_sizeof_short=0
17532 fi
17533 fi
17534
17535 fi
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17537 $as_echo "$ac_cv_sizeof_short" >&6; }
17538
17539
17540
17541 cat >>confdefs.h <<_ACEOF
17542 #define SIZEOF_SHORT $ac_cv_sizeof_short
17543 _ACEOF
17544
17545
17546 # The cast to long int works around a bug in the HP C Compiler
17547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17549 # This bug is HP SR number 8606223364.
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17551 $as_echo_n "checking size of int... " >&6; }
17552 if ${ac_cv_sizeof_int+:} false; then :
17553 $as_echo_n "(cached) " >&6
17554 else
17555 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
17556
17557 else
17558 if test "$ac_cv_type_int" = yes; then
17559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17561 as_fn_error 77 "cannot compute sizeof (int)
17562 See \`config.log' for more details" "$LINENO" 5; }
17563 else
17564 ac_cv_sizeof_int=0
17565 fi
17566 fi
17567
17568 fi
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17570 $as_echo "$ac_cv_sizeof_int" >&6; }
17571
17572
17573
17574 cat >>confdefs.h <<_ACEOF
17575 #define SIZEOF_INT $ac_cv_sizeof_int
17576 _ACEOF
17577
17578
17579 # The cast to long int works around a bug in the HP C Compiler
17580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17582 # This bug is HP SR number 8606223364.
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17584 $as_echo_n "checking size of long... " >&6; }
17585 if ${ac_cv_sizeof_long+:} false; then :
17586 $as_echo_n "(cached) " >&6
17587 else
17588 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
17589
17590 else
17591 if test "$ac_cv_type_long" = yes; then
17592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17594 as_fn_error 77 "cannot compute sizeof (long)
17595 See \`config.log' for more details" "$LINENO" 5; }
17596 else
17597 ac_cv_sizeof_long=0
17598 fi
17599 fi
17600
17601 fi
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17603 $as_echo "$ac_cv_sizeof_long" >&6; }
17604
17605
17606
17607 cat >>confdefs.h <<_ACEOF
17608 #define SIZEOF_LONG $ac_cv_sizeof_long
17609 _ACEOF
17610
17611
17612 # The cast to long int works around a bug in the HP C Compiler
17613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17615 # This bug is HP SR number 8606223364.
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
17617 $as_echo_n "checking size of float... " >&6; }
17618 if ${ac_cv_sizeof_float+:} false; then :
17619 $as_echo_n "(cached) " >&6
17620 else
17621 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
17622
17623 else
17624 if test "$ac_cv_type_float" = yes; then
17625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17627 as_fn_error 77 "cannot compute sizeof (float)
17628 See \`config.log' for more details" "$LINENO" 5; }
17629 else
17630 ac_cv_sizeof_float=0
17631 fi
17632 fi
17633
17634 fi
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
17636 $as_echo "$ac_cv_sizeof_float" >&6; }
17637
17638
17639
17640 cat >>confdefs.h <<_ACEOF
17641 #define SIZEOF_FLOAT $ac_cv_sizeof_float
17642 _ACEOF
17643
17644
17645 # The cast to long int works around a bug in the HP C Compiler
17646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17648 # This bug is HP SR number 8606223364.
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
17650 $as_echo_n "checking size of double... " >&6; }
17651 if ${ac_cv_sizeof_double+:} false; then :
17652 $as_echo_n "(cached) " >&6
17653 else
17654 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
17655
17656 else
17657 if test "$ac_cv_type_double" = yes; then
17658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17660 as_fn_error 77 "cannot compute sizeof (double)
17661 See \`config.log' for more details" "$LINENO" 5; }
17662 else
17663 ac_cv_sizeof_double=0
17664 fi
17665 fi
17666
17667 fi
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
17669 $as_echo "$ac_cv_sizeof_double" >&6; }
17670
17671
17672
17673 cat >>confdefs.h <<_ACEOF
17674 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
17675 _ACEOF
17676
17677
17678 # The cast to long int works around a bug in the HP C Compiler
17679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17681 # This bug is HP SR number 8606223364.
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
17683 $as_echo_n "checking size of void*... " >&6; }
17684 if ${ac_cv_sizeof_voidp+:} false; then :
17685 $as_echo_n "(cached) " >&6
17686 else
17687 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
17688
17689 else
17690 if test "$ac_cv_type_voidp" = yes; then
17691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17693 as_fn_error 77 "cannot compute sizeof (void*)
17694 See \`config.log' for more details" "$LINENO" 5; }
17695 else
17696 ac_cv_sizeof_voidp=0
17697 fi
17698 fi
17699
17700 fi
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
17702 $as_echo "$ac_cv_sizeof_voidp" >&6; }
17703
17704
17705
17706 cat >>confdefs.h <<_ACEOF
17707 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
17708 _ACEOF
17709
17710
17711 # The cast to long int works around a bug in the HP C Compiler
17712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17714 # This bug is HP SR number 8606223364.
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17716 $as_echo_n "checking size of size_t... " >&6; }
17717 if ${ac_cv_sizeof_size_t+:} false; then :
17718 $as_echo_n "(cached) " >&6
17719 else
17720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
17721
17722 else
17723 if test "$ac_cv_type_size_t" = yes; then
17724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17726 as_fn_error 77 "cannot compute sizeof (size_t)
17727 See \`config.log' for more details" "$LINENO" 5; }
17728 else
17729 ac_cv_sizeof_size_t=0
17730 fi
17731 fi
17732
17733 fi
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17735 $as_echo "$ac_cv_sizeof_size_t" >&6; }
17736
17737
17738
17739 cat >>confdefs.h <<_ACEOF
17740 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17741 _ACEOF
17742
17743
17744 # The cast to long int works around a bug in the HP C Compiler
17745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17747 # This bug is HP SR number 8606223364.
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
17749 $as_echo_n "checking size of int64_t... " >&6; }
17750 if ${ac_cv_sizeof_int64_t+:} false; then :
17751 $as_echo_n "(cached) " >&6
17752 else
17753 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
17754
17755 else
17756 if test "$ac_cv_type_int64_t" = yes; then
17757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17759 as_fn_error 77 "cannot compute sizeof (int64_t)
17760 See \`config.log' for more details" "$LINENO" 5; }
17761 else
17762 ac_cv_sizeof_int64_t=0
17763 fi
17764 fi
17765
17766 fi
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
17768 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
17769
17770
17771
17772 cat >>confdefs.h <<_ACEOF
17773 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
17774 _ACEOF
17775
17776
17777 # The cast to long int works around a bug in the HP C Compiler
17778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17780 # This bug is HP SR number 8606223364.
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
17782 $as_echo_n "checking size of long long... " >&6; }
17783 if ${ac_cv_sizeof_long_long+:} false; then :
17784 $as_echo_n "(cached) " >&6
17785 else
17786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
17787
17788 else
17789 if test "$ac_cv_type_long_long" = yes; then
17790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17792 as_fn_error 77 "cannot compute sizeof (long long)
17793 See \`config.log' for more details" "$LINENO" 5; }
17794 else
17795 ac_cv_sizeof_long_long=0
17796 fi
17797 fi
17798
17799 fi
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
17801 $as_echo "$ac_cv_sizeof_long_long" >&6; }
17802
17803
17804
17805 cat >>confdefs.h <<_ACEOF
17806 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17807 _ACEOF
17808
17809
17810
17811 #====================================================================================
17812 # Find an appropriate type for sf_count_t.
17813 # On systems supporting files larger than 2 Gig, sf_count_t must be a 64 bit value.
17814 # Unfortunately there is more than one way of ensuring this so need to do some
17815 # pretty rigourous testing here.
17816
17817 # Check for common 64 bit file offset types.
17818 # The cast to long int works around a bug in the HP C Compiler
17819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17821 # This bug is HP SR number 8606223364.
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
17823 $as_echo_n "checking size of off_t... " >&6; }
17824 if ${ac_cv_sizeof_off_t+:} false; then :
17825 $as_echo_n "(cached) " >&6
17826 else
17827 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
17828
17829 else
17830 if test "$ac_cv_type_off_t" = yes; then
17831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17833 as_fn_error 77 "cannot compute sizeof (off_t)
17834 See \`config.log' for more details" "$LINENO" 5; }
17835 else
17836 ac_cv_sizeof_off_t=0
17837 fi
17838 fi
17839
17840 fi
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
17842 $as_echo "$ac_cv_sizeof_off_t" >&6; }
17843
17844
17845
17846 cat >>confdefs.h <<_ACEOF
17847 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
17848 _ACEOF
17849
17850
17851 # The cast to long int works around a bug in the HP C Compiler
17852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17854 # This bug is HP SR number 8606223364.
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of loff_t" >&5
17856 $as_echo_n "checking size of loff_t... " >&6; }
17857 if ${ac_cv_sizeof_loff_t+:} false; then :
17858 $as_echo_n "(cached) " >&6
17859 else
17860 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (loff_t))" "ac_cv_sizeof_loff_t" "$ac_includes_default"; then :
17861
17862 else
17863 if test "$ac_cv_type_loff_t" = yes; then
17864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17866 as_fn_error 77 "cannot compute sizeof (loff_t)
17867 See \`config.log' for more details" "$LINENO" 5; }
17868 else
17869 ac_cv_sizeof_loff_t=0
17870 fi
17871 fi
17872
17873 fi
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_loff_t" >&5
17875 $as_echo "$ac_cv_sizeof_loff_t" >&6; }
17876
17877
17878
17879 cat >>confdefs.h <<_ACEOF
17880 #define SIZEOF_LOFF_T $ac_cv_sizeof_loff_t
17881 _ACEOF
17882
17883
17884 # The cast to long int works around a bug in the HP C Compiler
17885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17887 # This bug is HP SR number 8606223364.
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
17889 $as_echo_n "checking size of off64_t... " >&6; }
17890 if ${ac_cv_sizeof_off64_t+:} false; then :
17891 $as_echo_n "(cached) " >&6
17892 else
17893 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default"; then :
17894
17895 else
17896 if test "$ac_cv_type_off64_t" = yes; then
17897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17899 as_fn_error 77 "cannot compute sizeof (off64_t)
17900 See \`config.log' for more details" "$LINENO" 5; }
17901 else
17902 ac_cv_sizeof_off64_t=0
17903 fi
17904 fi
17905
17906 fi
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
17908 $as_echo "$ac_cv_sizeof_off64_t" >&6; }
17909
17910
17911
17912 cat >>confdefs.h <<_ACEOF
17913 #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
17914 _ACEOF
17915
17916
17917
17918 if test "$enable_largefile:$ac_cv_sizeof_off_t" = "no:8" ; then
17919 echo
17920 echo "Error : Cannot disable large file support because sizeof (off_t) == 8."
17921 echo
17922 exit 1
17923 fi
17924
17925
17926 case "$host_os" in
17927 mingw32*)
17928 TYPEOF_SF_COUNT_T="__int64"
17929 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
17930 SIZEOF_SF_COUNT_T=8
17931
17932 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
17933
17934 ;;
17935 *)
17936 SIZEOF_SF_COUNT_T=0
17937 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
17938 # If sizeof (off_t) is 8, no further checking is needed.
17939 TYPEOF_SF_COUNT_T="int64_t"
17940 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
17941 SIZEOF_SF_COUNT_T=8
17942 elif test "x$ac_cv_sizeof_loff_t" = "x8" ; then
17943 TYPEOF_SF_COUNT_T="int64_t"
17944 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
17945 SIZEOF_SF_COUNT_T=8
17946 elif test "x$ac_cv_sizeof_off64_t" = "x8" ; then
17947 TYPEOF_SF_COUNT_T="int64_t"
17948 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
17949 SIZEOF_SF_COUNT_T=8
17950 else
17951 # Save the old sizeof (off_t) value and then unset it to see if it
17952 # changes when Large File Support is enabled.
17953 pre_largefile_sizeof_off_t=$ac_cv_sizeof_off_t
17954 unset ac_cv_sizeof_off_t
17955
17956 # Check whether --enable-largefile was given.
17957 if test "${enable_largefile+set}" = set; then :
17958 enableval=$enable_largefile;
17959 fi
17960
17961 if test "$enable_largefile" != no; then
17962
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17964 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17965 if ${ac_cv_sys_largefile_CC+:} false; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 ac_cv_sys_largefile_CC=no
17969 if test "$GCC" != yes; then
17970 ac_save_CC=$CC
17971 while :; do
17972 # IRIX 6.2 and later do not support large files by default,
17973 # so use the C compiler's -n32 option if that helps.
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17976 #include <sys/types.h>
17977 /* Check that off_t can represent 2**63 - 1 correctly.
17978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17979 since some C++ compilers masquerading as C compilers
17980 incorrectly reject 9223372036854775807. */
17981 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17983 && LARGE_OFF_T % 2147483647 == 1)
17984 ? 1 : -1];
17985 int
17986 main ()
17987 {
17988
17989 ;
17990 return 0;
17991 }
17992 _ACEOF
17993 if ac_fn_c_try_compile "$LINENO"; then :
17994 break
17995 fi
17996 rm -f core conftest.err conftest.$ac_objext
17997 CC="$CC -n32"
17998 if ac_fn_c_try_compile "$LINENO"; then :
17999 ac_cv_sys_largefile_CC=' -n32'; break
18000 fi
18001 rm -f core conftest.err conftest.$ac_objext
18002 break
18003 done
18004 CC=$ac_save_CC
18005 rm -f conftest.$ac_ext
18006 fi
18007 fi
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18009 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18010 if test "$ac_cv_sys_largefile_CC" != no; then
18011 CC=$CC$ac_cv_sys_largefile_CC
18012 fi
18013
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18015 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18016 if ${ac_cv_sys_file_offset_bits+:} false; then :
18017 $as_echo_n "(cached) " >&6
18018 else
18019 while :; do
18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18022 #include <sys/types.h>
18023 /* Check that off_t can represent 2**63 - 1 correctly.
18024 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18025 since some C++ compilers masquerading as C compilers
18026 incorrectly reject 9223372036854775807. */
18027 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18028 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18029 && LARGE_OFF_T % 2147483647 == 1)
18030 ? 1 : -1];
18031 int
18032 main ()
18033 {
18034
18035 ;
18036 return 0;
18037 }
18038 _ACEOF
18039 if ac_fn_c_try_compile "$LINENO"; then :
18040 ac_cv_sys_file_offset_bits=no; break
18041 fi
18042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044 /* end confdefs.h. */
18045 #define _FILE_OFFSET_BITS 64
18046 #include <sys/types.h>
18047 /* Check that off_t can represent 2**63 - 1 correctly.
18048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18049 since some C++ compilers masquerading as C compilers
18050 incorrectly reject 9223372036854775807. */
18051 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18053 && LARGE_OFF_T % 2147483647 == 1)
18054 ? 1 : -1];
18055 int
18056 main ()
18057 {
18058
18059 ;
18060 return 0;
18061 }
18062 _ACEOF
18063 if ac_fn_c_try_compile "$LINENO"; then :
18064 ac_cv_sys_file_offset_bits=64; break
18065 fi
18066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18067 ac_cv_sys_file_offset_bits=unknown
18068 break
18069 done
18070 fi
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18072 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18073 case $ac_cv_sys_file_offset_bits in #(
18074 no | unknown) ;;
18075 *)
18076 cat >>confdefs.h <<_ACEOF
18077 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18078 _ACEOF
18079 ;;
18080 esac
18081 rm -rf conftest*
18082 if test $ac_cv_sys_file_offset_bits = unknown; then
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18084 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18085 if ${ac_cv_sys_large_files+:} false; then :
18086 $as_echo_n "(cached) " >&6
18087 else
18088 while :; do
18089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18090 /* end confdefs.h. */
18091 #include <sys/types.h>
18092 /* Check that off_t can represent 2**63 - 1 correctly.
18093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18094 since some C++ compilers masquerading as C compilers
18095 incorrectly reject 9223372036854775807. */
18096 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18098 && LARGE_OFF_T % 2147483647 == 1)
18099 ? 1 : -1];
18100 int
18101 main ()
18102 {
18103
18104 ;
18105 return 0;
18106 }
18107 _ACEOF
18108 if ac_fn_c_try_compile "$LINENO"; then :
18109 ac_cv_sys_large_files=no; break
18110 fi
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18113 /* end confdefs.h. */
18114 #define _LARGE_FILES 1
18115 #include <sys/types.h>
18116 /* Check that off_t can represent 2**63 - 1 correctly.
18117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18118 since some C++ compilers masquerading as C compilers
18119 incorrectly reject 9223372036854775807. */
18120 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18122 && LARGE_OFF_T % 2147483647 == 1)
18123 ? 1 : -1];
18124 int
18125 main ()
18126 {
18127
18128 ;
18129 return 0;
18130 }
18131 _ACEOF
18132 if ac_fn_c_try_compile "$LINENO"; then :
18133 ac_cv_sys_large_files=1; break
18134 fi
18135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18136 ac_cv_sys_large_files=unknown
18137 break
18138 done
18139 fi
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18141 $as_echo "$ac_cv_sys_large_files" >&6; }
18142 case $ac_cv_sys_large_files in #(
18143 no | unknown) ;;
18144 *)
18145 cat >>confdefs.h <<_ACEOF
18146 #define _LARGE_FILES $ac_cv_sys_large_files
18147 _ACEOF
18148 ;;
18149 esac
18150 rm -rf conftest*
18151 fi
18152
18153
18154 fi
18155
18156
18157 if test "x$ac_cv_sys_largefile_CFLAGS" = "xno" ; then
18158 ac_cv_sys_largefile_CFLAGS=""
18159 fi
18160 if test "x$ac_cv_sys_largefile_LDFLAGS" = "xno" ; then
18161 ac_cv_sys_largefile_LDFLAGS=""
18162 fi
18163 if test "x$ac_cv_sys_largefile_LIBS" = "xno" ; then
18164 ac_cv_sys_largefile_LIBS=""
18165 fi
18166
18167 # The cast to long int works around a bug in the HP C Compiler
18168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18170 # This bug is HP SR number 8606223364.
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
18172 $as_echo_n "checking size of off_t... " >&6; }
18173 if ${ac_cv_sizeof_off_t+:} false; then :
18174 $as_echo_n "(cached) " >&6
18175 else
18176 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
18177
18178 else
18179 if test "$ac_cv_type_off_t" = yes; then
18180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18182 as_fn_error 77 "cannot compute sizeof (off_t)
18183 See \`config.log' for more details" "$LINENO" 5; }
18184 else
18185 ac_cv_sizeof_off_t=0
18186 fi
18187 fi
18188
18189 fi
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
18191 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18192
18193
18194
18195 cat >>confdefs.h <<_ACEOF
18196 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18197 _ACEOF
18198
18199
18200
18201 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
18202 TYPEOF_SF_COUNT_T="int64_t"
18203 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
18204 elif test "x$TYPEOF_SF_COUNT_T" = "xunknown" ; then
18205 echo
18206 echo "*** The configure process has determined that this system is capable"
18207 echo "*** of Large File Support but has not been able to find a type which"
18208 echo "*** is an unambiguous 64 bit file offset."
18209 echo "*** Please contact the author to help resolve this problem."
18210 echo
18211 as_fn_error $? "Bad file offset type." "$LINENO" 5
18212 fi
18213 fi
18214 ;;
18215 esac
18216
18217 if test $SIZEOF_SF_COUNT_T = 4 ; then
18218 SF_COUNT_MAX="0x7FFFFFFF"
18219 fi
18220
18221
18222 cat >>confdefs.h <<_ACEOF
18223 #define TYPEOF_SF_COUNT_T ${TYPEOF_SF_COUNT_T}
18224 _ACEOF
18225
18226
18227
18228
18229 cat >>confdefs.h <<_ACEOF
18230 #define SIZEOF_SF_COUNT_T ${SIZEOF_SF_COUNT_T}
18231 _ACEOF
18232
18233
18234
18235
18236 cat >>confdefs.h <<_ACEOF
18237 #define SF_COUNT_MAX ${SF_COUNT_MAX}
18238 _ACEOF
18239
18240
18241
18242 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18243 if test "x$ac_cv_type_ssize_t" = xyes; then :
18244
18245 cat >>confdefs.h <<_ACEOF
18246 #define HAVE_SSIZE_T 1
18247 _ACEOF
18248
18249
18250 fi
18251
18252 # The cast to long int works around a bug in the HP C Compiler
18253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18255 # This bug is HP SR number 8606223364.
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
18257 $as_echo_n "checking size of ssize_t... " >&6; }
18258 if ${ac_cv_sizeof_ssize_t+:} false; then :
18259 $as_echo_n "(cached) " >&6
18260 else
18261 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
18262
18263 else
18264 if test "$ac_cv_type_ssize_t" = yes; then
18265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18267 as_fn_error 77 "cannot compute sizeof (ssize_t)
18268 See \`config.log' for more details" "$LINENO" 5; }
18269 else
18270 ac_cv_sizeof_ssize_t=0
18271 fi
18272 fi
18273
18274 fi
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
18276 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
18277
18278
18279
18280 cat >>confdefs.h <<_ACEOF
18281 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
18282 _ACEOF
18283
18284
18285
18286 #====================================================================================
18287 # Determine endian-ness of target processor.
18288
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5
18290 $as_echo_n "checking processor byte ordering... " >&6; }
18291 if ${ac_cv_c_byte_order+:} false; then :
18292 $as_echo_n "(cached) " >&6
18293 else
18294 # Initialize to unknown
18295 ac_cv_c_byte_order=unknown
18296
18297 if test x$ac_cv_header_endian_h = xyes ; then
18298
18299 # First try <endian.h> which should set BYTE_ORDER.
18300
18301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302 /* end confdefs.h. */
18303
18304 #include <endian.h>
18305 #if BYTE_ORDER != LITTLE_ENDIAN
18306 not big endian
18307 #endif
18308
18309 int
18310 main ()
18311 {
18312 return 0 ;
18313 ;
18314 return 0;
18315 }
18316 _ACEOF
18317 if ac_fn_c_try_link "$LINENO"; then :
18318 ac_cv_c_byte_order=little
18319
18320 fi
18321 rm -f core conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext conftest.$ac_ext
18323
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326
18327 #include <endian.h>
18328 #if BYTE_ORDER != BIG_ENDIAN
18329 not big endian
18330 #endif
18331
18332 int
18333 main ()
18334 {
18335 return 0 ;
18336 ;
18337 return 0;
18338 }
18339 _ACEOF
18340 if ac_fn_c_try_link "$LINENO"; then :
18341 ac_cv_c_byte_order=big
18342
18343 fi
18344 rm -f core conftest.err conftest.$ac_objext \
18345 conftest$ac_exeext conftest.$ac_ext
18346
18347 fi
18348
18349 if test $ac_cv_c_byte_order = unknown ; then
18350
18351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18353
18354 #include <sys/types.h>
18355 #include <sys/param.h>
18356 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18357 bogus endian macros
18358 #endif
18359
18360 int
18361 main ()
18362 {
18363 return 0 ;
18364 ;
18365 return 0;
18366 }
18367 _ACEOF
18368 if ac_fn_c_try_link "$LINENO"; then :
18369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h. */
18371
18372 #include <sys/types.h>
18373 #include <sys/param.h>
18374 #if BYTE_ORDER != LITTLE_ENDIAN
18375 not big endian
18376 #endif
18377
18378 int
18379 main ()
18380 {
18381 return 0 ;
18382 ;
18383 return 0;
18384 }
18385 _ACEOF
18386 if ac_fn_c_try_link "$LINENO"; then :
18387 ac_cv_c_byte_order=little
18388
18389 fi
18390 rm -f core conftest.err conftest.$ac_objext \
18391 conftest$ac_exeext conftest.$ac_ext
18392
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18395
18396 #include <sys/types.h>
18397 #include <sys/param.h>
18398 #if BYTE_ORDER != LITTLE_ENDIAN
18399 not big endian
18400 #endif
18401
18402 int
18403 main ()
18404 {
18405 return 0 ;
18406 ;
18407 return 0;
18408 }
18409 _ACEOF
18410 if ac_fn_c_try_link "$LINENO"; then :
18411 ac_cv_c_byte_order=little
18412
18413 fi
18414 rm -f core conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416
18417
18418 fi
18419 rm -f core conftest.err conftest.$ac_objext \
18420 conftest$ac_exeext conftest.$ac_ext
18421
18422 fi
18423
18424 if test $ac_cv_c_byte_order = unknown ; then
18425 if test $cross_compiling = yes ; then
18426 # This is the last resort. Try to guess the target processor endian-ness
18427 # by looking at the target CPU type.
18428
18429 case "$target_cpu" in
18430 alpha* | i?86* | mipsel* | ia64*)
18431 ac_cv_c_byte_order=little
18432 ;;
18433
18434 m68* | mips* | powerpc* | hppa* | sparc*)
18435 ac_cv_c_byte_order=big
18436 ;;
18437
18438 esac
18439
18440 else
18441 if test "$cross_compiling" = yes; then :
18442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18444 as_fn_error $? "cannot run test program while cross compiling
18445 See \`config.log' for more details" "$LINENO" 5; }
18446 else
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18449
18450 int main (void)
18451 { /* Are we little or big endian? From Harbison&Steele. */
18452 union
18453 { long l ;
18454 char c [sizeof (long)] ;
18455 } u ;
18456 u.l = 1 ;
18457 return (u.c [sizeof (long) - 1] == 1);
18458 }
18459
18460 _ACEOF
18461 if ac_fn_c_try_run "$LINENO"; then :
18462
18463 else
18464 ac_cv_c_byte_order=big
18465 fi
18466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18467 conftest.$ac_objext conftest.beam conftest.$ac_ext
18468 fi
18469
18470
18471 if test "$cross_compiling" = yes; then :
18472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18474 as_fn_error $? "cannot run test program while cross compiling
18475 See \`config.log' for more details" "$LINENO" 5; }
18476 else
18477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18478 /* end confdefs.h. */
18479 int main (void)
18480 { /* Are we little or big endian? From Harbison&Steele. */
18481 union
18482 { long l ;
18483 char c [sizeof (long)] ;
18484 } u ;
18485 u.l = 1 ;
18486 return (u.c [0] == 1);
18487 }
18488 _ACEOF
18489 if ac_fn_c_try_run "$LINENO"; then :
18490
18491 else
18492 ac_cv_c_byte_order=little
18493 fi
18494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18495 conftest.$ac_objext conftest.beam conftest.$ac_ext
18496 fi
18497
18498 fi
18499 fi
18500
18501
18502 fi
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5
18504 $as_echo "$ac_cv_c_byte_order" >&6; }
18505
18506 if test $ac_cv_c_byte_order = big ; then
18507 ac_cv_c_big_endian=1
18508 ac_cv_c_little_endian=0
18509 elif test $ac_cv_c_byte_order = little ; then
18510 ac_cv_c_big_endian=0
18511 ac_cv_c_little_endian=1
18512 else
18513 ac_cv_c_big_endian=0
18514 ac_cv_c_little_endian=0
18515
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
18517 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
18519 $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
18521 $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5
18523 $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;}
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
18525 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
18526 fi
18527
18528
18529
18530
18531
18532 cat >>confdefs.h <<_ACEOF
18533 #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
18534 _ACEOF
18535
18536
18537 cat >>confdefs.h <<_ACEOF
18538 #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
18539 _ACEOF
18540
18541
18542 cat >>confdefs.h <<_ACEOF
18543 #define WORDS_BIGENDIAN ${ac_cv_c_big_endian}
18544 _ACEOF
18545
18546
18547 #====================================================================================
18548 # Check for functions.
18549
18550 for ac_func in malloc calloc realloc free
18551 do :
18552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18553 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18554 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18555 cat >>confdefs.h <<_ACEOF
18556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18557 _ACEOF
18558
18559 fi
18560 done
18561
18562 for ac_func in open read write lseek lseek64
18563 do :
18564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18565 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18566 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18567 cat >>confdefs.h <<_ACEOF
18568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18569 _ACEOF
18570
18571 fi
18572 done
18573
18574 for ac_func in fstat fstat64 ftruncate fsync
18575 do :
18576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18577 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18578 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18579 cat >>confdefs.h <<_ACEOF
18580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18581 _ACEOF
18582
18583 fi
18584 done
18585
18586 for ac_func in snprintf vsnprintf
18587 do :
18588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18589 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18590 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18591 cat >>confdefs.h <<_ACEOF
18592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18593 _ACEOF
18594
18595 fi
18596 done
18597
18598 for ac_func in gmtime gmtime_r localtime localtime_r gettimeofday
18599 do :
18600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18602 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18603 cat >>confdefs.h <<_ACEOF
18604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18605 _ACEOF
18606
18607 fi
18608 done
18609
18610 for ac_func in mmap getpagesize
18611 do :
18612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18613 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18614 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18615 cat >>confdefs.h <<_ACEOF
18616 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18617 _ACEOF
18618
18619 fi
18620 done
18621
18622 for ac_func in setlocale
18623 do :
18624 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18625 if test "x$ac_cv_func_setlocale" = xyes; then :
18626 cat >>confdefs.h <<_ACEOF
18627 #define HAVE_SETLOCALE 1
18628 _ACEOF
18629
18630 fi
18631 done
18632
18633 for ac_func in pipe waitpid
18634 do :
18635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18636 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18637 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18638 cat >>confdefs.h <<_ACEOF
18639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18640 _ACEOF
18641
18642 fi
18643 done
18644
18645
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
18647 $as_echo_n "checking for floor in -lm... " >&6; }
18648 if ${ac_cv_lib_m_floor+:} false; then :
18649 $as_echo_n "(cached) " >&6
18650 else
18651 ac_check_lib_save_LIBS=$LIBS
18652 LIBS="-lm $LIBS"
18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h. */
18655
18656 /* Override any GCC internal prototype to avoid an error.
18657 Use char because int might match the return type of a GCC
18658 builtin and then its argument prototype would still apply. */
18659 #ifdef __cplusplus
18660 extern "C"
18661 #endif
18662 char floor ();
18663 int
18664 main ()
18665 {
18666 return floor ();
18667 ;
18668 return 0;
18669 }
18670 _ACEOF
18671 if ac_fn_c_try_link "$LINENO"; then :
18672 ac_cv_lib_m_floor=yes
18673 else
18674 ac_cv_lib_m_floor=no
18675 fi
18676 rm -f core conftest.err conftest.$ac_objext \
18677 conftest$ac_exeext conftest.$ac_ext
18678 LIBS=$ac_check_lib_save_LIBS
18679 fi
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
18681 $as_echo "$ac_cv_lib_m_floor" >&6; }
18682 if test "x$ac_cv_lib_m_floor" = xyes; then :
18683 cat >>confdefs.h <<_ACEOF
18684 #define HAVE_LIBM 1
18685 _ACEOF
18686
18687 LIBS="-lm $LIBS"
18688
18689 fi
18690
18691 for ac_func in floor ceil fmod lround
18692 do :
18693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18696 cat >>confdefs.h <<_ACEOF
18697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18698 _ACEOF
18699
18700 fi
18701 done
18702
18703
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
18705 $as_echo_n "checking for lrint... " >&6; }
18706 if ${ac_cv_c99_lrint+:} false; then :
18707 $as_echo_n "(cached) " >&6
18708 else
18709
18710 lrint_save_CFLAGS=$CFLAGS
18711 CFLAGS="-lm"
18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18714
18715 #define _ISOC9X_SOURCE 1
18716 #define _ISOC99_SOURCE 1
18717 #define __USE_ISOC99 1
18718 #define __USE_ISOC9X 1
18719
18720 #include <math.h>
18721
18722 int
18723 main ()
18724 {
18725 if (!lrint(3.14159)) lrint(2.7183);
18726 ;
18727 return 0;
18728 }
18729 _ACEOF
18730 if ac_fn_c_try_link "$LINENO"; then :
18731 ac_cv_c99_lrint=yes
18732 else
18733 ac_cv_c99_lrint=no
18734 fi
18735 rm -f core conftest.err conftest.$ac_objext \
18736 conftest$ac_exeext conftest.$ac_ext
18737
18738 CFLAGS=$lrint_save_CFLAGS
18739
18740
18741 fi
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
18743 $as_echo "$ac_cv_c99_lrint" >&6; }
18744
18745 if test "$ac_cv_c99_lrint" = yes; then
18746
18747 $as_echo "#define HAVE_LRINT 1" >>confdefs.h
18748
18749 fi
18750
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
18752 $as_echo_n "checking for lrintf... " >&6; }
18753 if ${ac_cv_c99_lrintf+:} false; then :
18754 $as_echo_n "(cached) " >&6
18755 else
18756
18757 lrintf_save_CFLAGS=$CFLAGS
18758 CFLAGS="-lm"
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18761
18762 #define _ISOC9X_SOURCE 1
18763 #define _ISOC99_SOURCE 1
18764 #define __USE_ISOC99 1
18765 #define __USE_ISOC9X 1
18766
18767 #include <math.h>
18768
18769 int
18770 main ()
18771 {
18772 if (!lrintf(3.14159)) lrintf(2.7183);
18773 ;
18774 return 0;
18775 }
18776 _ACEOF
18777 if ac_fn_c_try_link "$LINENO"; then :
18778 ac_cv_c99_lrintf=yes
18779 else
18780 ac_cv_c99_lrintf=no
18781 fi
18782 rm -f core conftest.err conftest.$ac_objext \
18783 conftest$ac_exeext conftest.$ac_ext
18784
18785 CFLAGS=$lrintf_save_CFLAGS
18786
18787
18788 fi
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
18790 $as_echo "$ac_cv_c99_lrintf" >&6; }
18791
18792 if test "$ac_cv_c99_lrintf" = yes; then
18793
18794 $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
18795
18796 fi
18797
18798
18799 #====================================================================================
18800 # Check for requirements for building plugins for other languages/enviroments.
18801
18802 if test x$cross_compiling = xno ; then
18803 if test x$enable_octave = xno ; then
18804 if false; then
18805 BUILD_OCTAVE_MOD_TRUE=
18806 BUILD_OCTAVE_MOD_FALSE='#'
18807 else
18808 BUILD_OCTAVE_MOD_TRUE='#'
18809 BUILD_OCTAVE_MOD_FALSE=
18810 fi
18811
18812 else
18813
18814
18815 OCTAVE_BUILD=no
18816
18817
18818
18819
18820 # Check whether --with-octave was given.
18821 if test "${with_octave+set}" = set; then :
18822 withval=$with_octave; with_octave=$withval
18823 fi
18824
18825
18826 test -z "$with_octave" && with_octave=octave
18827
18828 # Extract the first word of "$with_octave", so it can be a program name with args.
18829 set dummy $with_octave; ac_word=$2
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18831 $as_echo_n "checking for $ac_word... " >&6; }
18832 if ${ac_cv_prog_HAVE_OCTAVE+:} false; then :
18833 $as_echo_n "(cached) " >&6
18834 else
18835 if test -n "$HAVE_OCTAVE"; then
18836 ac_cv_prog_HAVE_OCTAVE="$HAVE_OCTAVE" # Let the user override the test.
18837 else
18838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18839 for as_dir in $PATH
18840 do
18841 IFS=$as_save_IFS
18842 test -z "$as_dir" && as_dir=.
18843 for ac_exec_ext in '' $ac_executable_extensions; do
18844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18845 ac_cv_prog_HAVE_OCTAVE="yes"
18846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18847 break 2
18848 fi
18849 done
18850 done
18851 IFS=$as_save_IFS
18852
18853 test -z "$ac_cv_prog_HAVE_OCTAVE" && ac_cv_prog_HAVE_OCTAVE="no"
18854 fi
18855 fi
18856 HAVE_OCTAVE=$ac_cv_prog_HAVE_OCTAVE
18857 if test -n "$HAVE_OCTAVE"; then
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE" >&5
18859 $as_echo "$HAVE_OCTAVE" >&6; }
18860 else
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18862 $as_echo "no" >&6; }
18863 fi
18864
18865
18866
18867 if test "x$ac_cv_prog_HAVE_OCTAVE" = "xyes" ; then
18868 OCTAVE=$with_octave
18869
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCTAVE_VERSION in $OCTAVE" >&5
18871 $as_echo_n "checking for OCTAVE_VERSION in $OCTAVE... " >&6; }
18872 OCTAVE_VERSION=`TERM=;$OCTAVE -qfH --eval "disp(OCTAVE_VERSION)"`
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_VERSION" >&5
18874 $as_echo "$OCTAVE_VERSION" >&6; }
18875
18876
18877 fi
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887 # Check whether --with-mkoctfile was given.
18888 if test "${with_mkoctfile+set}" = set; then :
18889 withval=$with_mkoctfile; with_mkoctfile=$withval
18890 fi
18891
18892
18893 test -z "$with_mkoctfile" && with_mkoctfile=mkoctfile
18894
18895 # Extract the first word of "$with_mkoctfile", so it can be a program name with args.
18896 set dummy $with_mkoctfile; ac_word=$2
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18898 $as_echo_n "checking for $ac_word... " >&6; }
18899 if ${ac_cv_prog_HAVE_MKOCTFILE+:} false; then :
18900 $as_echo_n "(cached) " >&6
18901 else
18902 if test -n "$HAVE_MKOCTFILE"; then
18903 ac_cv_prog_HAVE_MKOCTFILE="$HAVE_MKOCTFILE" # Let the user override the test.
18904 else
18905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18906 for as_dir in $PATH
18907 do
18908 IFS=$as_save_IFS
18909 test -z "$as_dir" && as_dir=.
18910 for ac_exec_ext in '' $ac_executable_extensions; do
18911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18912 ac_cv_prog_HAVE_MKOCTFILE="yes"
18913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18914 break 2
18915 fi
18916 done
18917 done
18918 IFS=$as_save_IFS
18919
18920 test -z "$ac_cv_prog_HAVE_MKOCTFILE" && ac_cv_prog_HAVE_MKOCTFILE="no"
18921 fi
18922 fi
18923 HAVE_MKOCTFILE=$ac_cv_prog_HAVE_MKOCTFILE
18924 if test -n "$HAVE_MKOCTFILE"; then
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MKOCTFILE" >&5
18926 $as_echo "$HAVE_MKOCTFILE" >&6; }
18927 else
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18929 $as_echo "no" >&6; }
18930 fi
18931
18932
18933
18934 if test "x$ac_cv_prog_HAVE_MKOCTFILE" = "xyes" ; then
18935 MKOCTFILE=$with_mkoctfile
18936
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $MKOCTFILE" >&5
18938 $as_echo_n "checking for version of $MKOCTFILE... " >&6; }
18939 MKOCTFILE_VERSION=`$with_mkoctfile --version 2>&1 | sed 's/mkoctfile, version //g'`
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE_VERSION" >&5
18941 $as_echo "$MKOCTFILE_VERSION" >&6; }
18942 fi
18943
18944
18945
18946
18947
18948
18949
18950
18951 # Check whether --with-octave-config was given.
18952 if test "${with_octave_config+set}" = set; then :
18953 withval=$with_octave_config; with_octave_config=$withval
18954 fi
18955
18956
18957 test -z "$with_octave_config" && with_octave_config=octave-config
18958
18959 # Extract the first word of "$with_octave_config", so it can be a program name with args.
18960 set dummy $with_octave_config; ac_word=$2
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18962 $as_echo_n "checking for $ac_word... " >&6; }
18963 if ${ac_cv_prog_HAVE_OCTAVE_CONFIG+:} false; then :
18964 $as_echo_n "(cached) " >&6
18965 else
18966 if test -n "$HAVE_OCTAVE_CONFIG"; then
18967 ac_cv_prog_HAVE_OCTAVE_CONFIG="$HAVE_OCTAVE_CONFIG" # Let the user override the test.
18968 else
18969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18970 for as_dir in $PATH
18971 do
18972 IFS=$as_save_IFS
18973 test -z "$as_dir" && as_dir=.
18974 for ac_exec_ext in '' $ac_executable_extensions; do
18975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18976 ac_cv_prog_HAVE_OCTAVE_CONFIG="yes"
18977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18978 break 2
18979 fi
18980 done
18981 done
18982 IFS=$as_save_IFS
18983
18984 test -z "$ac_cv_prog_HAVE_OCTAVE_CONFIG" && ac_cv_prog_HAVE_OCTAVE_CONFIG="no"
18985 fi
18986 fi
18987 HAVE_OCTAVE_CONFIG=$ac_cv_prog_HAVE_OCTAVE_CONFIG
18988 if test -n "$HAVE_OCTAVE_CONFIG"; then
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE_CONFIG" >&5
18990 $as_echo "$HAVE_OCTAVE_CONFIG" >&6; }
18991 else
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18993 $as_echo "no" >&6; }
18994 fi
18995
18996
18997
18998 if test "x$ac_cv_prog_HAVE_OCTAVE_CONFIG" = "xyes" ; then
18999 OCTAVE_CONFIG=$with_octave_config
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $OCTAVE_CONFIG" >&5
19001 $as_echo_n "checking for version of $OCTAVE_CONFIG... " >&6; }
19002 OCTAVE_CONFIG_VERSION=`$OCTAVE_CONFIG --version`
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG_VERSION" >&5
19004 $as_echo "$OCTAVE_CONFIG_VERSION" >&6; }
19005 fi
19006
19007
19008
19009
19010
19011
19012 prog_concat="$ac_cv_prog_HAVE_OCTAVE$ac_cv_prog_HAVE_OCTAVE_CONFIG$ac_cv_prog_HAVE_MKOCTFILE"
19013
19014 if test "x$prog_concat" = "xyesyesyes" ; then
19015 if test "x$OCTAVE_VERSION" != "x$MKOCTFILE_VERSION" ; then
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&5
19017 $as_echo "$as_me: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&2;}
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built. **" >&5
19019 $as_echo "$as_me: WARNING: ** Octave libsndfile modules will not be built. **" >&2;}
19020 elif test "x$OCTAVE_VERSION" != "x$OCTAVE_CONFIG_VERSION" ; then
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and octave-config. **" >&5
19022 $as_echo "$as_me: WARNING: ** Mismatch between versions of octave and octave-config. **" >&2;}
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built. **" >&5
19024 $as_echo "$as_me: WARNING: ** Octave libsndfile modules will not be built. **" >&2;}
19025 else
19026 case "$MKOCTFILE_VERSION" in
19027 2.*)
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version 2.X is not supported." >&5
19029 $as_echo "$as_me: WARNING: Octave version 2.X is not supported." >&2;}
19030 ;;
19031 3.*)
19032 OCTAVE_DEST_ODIR=`$OCTAVE_CONFIG --oct-site-dir | sed 's%^/usr%${prefix}%'`
19033 OCTAVE_DEST_MDIR=`$OCTAVE_CONFIG --m-site-dir | sed 's%^/usr%${prefix}%'`
19034
19035 OCTAVE_BUILD=yes
19036 ;;
19037 *)
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&5
19039 $as_echo "$as_me: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&2;}
19040 ;;
19041 esac
19042 fi
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: building octave libsndfile module... $OCTAVE_BUILD" >&5
19044 $as_echo "building octave libsndfile module... $OCTAVE_BUILD" >&6; }
19045 fi
19046
19047
19048
19049
19050
19051
19052 if test "x$OCTAVE_BUILD" = xyes; then
19053 BUILD_OCTAVE_MOD_TRUE=
19054 BUILD_OCTAVE_MOD_FALSE='#'
19055 else
19056 BUILD_OCTAVE_MOD_TRUE='#'
19057 BUILD_OCTAVE_MOD_FALSE=
19058 fi
19059
19060
19061
19062 fi
19063 else
19064 if false; then
19065 BUILD_OCTAVE_MOD_TRUE=
19066 BUILD_OCTAVE_MOD_FALSE='#'
19067 else
19068 BUILD_OCTAVE_MOD_TRUE='#'
19069 BUILD_OCTAVE_MOD_FALSE=
19070 fi
19071
19072 fi
19073
19074 #====================================================================================
19075 # Check for Ogg, Vorbis and FLAC.
19076
19077 HAVE_EXTERNAL_XIPH_LIBS=0
19078 EXTERNAL_XIPH_CFLAGS=""
19079 EXTERNAL_XIPH_LIBS=""
19080
19081 # Check for pkg-config outside the if statement.
19082
19083
19084
19085
19086
19087
19088
19089 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19090 if test -n "$ac_tool_prefix"; then
19091 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19092 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19094 $as_echo_n "checking for $ac_word... " >&6; }
19095 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19096 $as_echo_n "(cached) " >&6
19097 else
19098 case $PKG_CONFIG in
19099 [\\/]* | ?:[\\/]*)
19100 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19101 ;;
19102 *)
19103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19104 for as_dir in $PATH
19105 do
19106 IFS=$as_save_IFS
19107 test -z "$as_dir" && as_dir=.
19108 for ac_exec_ext in '' $ac_executable_extensions; do
19109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19110 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19112 break 2
19113 fi
19114 done
19115 done
19116 IFS=$as_save_IFS
19117
19118 ;;
19119 esac
19120 fi
19121 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19122 if test -n "$PKG_CONFIG"; then
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19124 $as_echo "$PKG_CONFIG" >&6; }
19125 else
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19127 $as_echo "no" >&6; }
19128 fi
19129
19130
19131 fi
19132 if test -z "$ac_cv_path_PKG_CONFIG"; then
19133 ac_pt_PKG_CONFIG=$PKG_CONFIG
19134 # Extract the first word of "pkg-config", so it can be a program name with args.
19135 set dummy pkg-config; ac_word=$2
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19137 $as_echo_n "checking for $ac_word... " >&6; }
19138 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19139 $as_echo_n "(cached) " >&6
19140 else
19141 case $ac_pt_PKG_CONFIG in
19142 [\\/]* | ?:[\\/]*)
19143 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19144 ;;
19145 *)
19146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19147 for as_dir in $PATH
19148 do
19149 IFS=$as_save_IFS
19150 test -z "$as_dir" && as_dir=.
19151 for ac_exec_ext in '' $ac_executable_extensions; do
19152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19153 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19155 break 2
19156 fi
19157 done
19158 done
19159 IFS=$as_save_IFS
19160
19161 ;;
19162 esac
19163 fi
19164 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19165 if test -n "$ac_pt_PKG_CONFIG"; then
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19167 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19168 else
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19170 $as_echo "no" >&6; }
19171 fi
19172
19173 if test "x$ac_pt_PKG_CONFIG" = x; then
19174 PKG_CONFIG=""
19175 else
19176 case $cross_compiling:$ac_tool_warned in
19177 yes:)
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19180 ac_tool_warned=yes ;;
19181 esac
19182 PKG_CONFIG=$ac_pt_PKG_CONFIG
19183 fi
19184 else
19185 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19186 fi
19187
19188 fi
19189 if test -n "$PKG_CONFIG"; then
19190 _pkg_min_version=0.9.0
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19192 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19193 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19195 $as_echo "yes" >&6; }
19196 else
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19198 $as_echo "no" >&6; }
19199 PKG_CONFIG=""
19200 fi
19201 fi
19202
19203
19204
19205 # Check whether --with-pkgconfigdir was given.
19206 if test "${with_pkgconfigdir+set}" = set; then :
19207 withval=$with_pkgconfigdir;
19208 else
19209 with_pkgconfigdir='${libdir}/pkgconfig'
19210 fi
19211
19212 pkgconfigdir=$with_pkgconfigdir
19213
19214
19215
19216
19217
19218 if test -n "$PKG_CONFIG" ; then
19219 if test x$enable_external_libs = xno ; then
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&5
19221 $as_echo "$as_me: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&2;}
19222 else
19223
19224 pkg_failed=no
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flac >= 1.3.1 " >&5
19226 $as_echo_n "checking for flac >= 1.3.1 ... " >&6; }
19227
19228 if test -n "$FLAC_CFLAGS"; then
19229 pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS"
19230 elif test -n "$PKG_CONFIG"; then
19231 if test -n "$PKG_CONFIG" && \
19232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.3.1\""; } >&5
19233 ($PKG_CONFIG --exists --print-errors "flac >= 1.3.1") 2>&5
19234 ac_status=$?
19235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19236 test $ac_status = 0; }; then
19237 pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "flac >= 1.3.1" 2>/dev/null`
19238 test "x$?" != "x0" && pkg_failed=yes
19239 else
19240 pkg_failed=yes
19241 fi
19242 else
19243 pkg_failed=untried
19244 fi
19245 if test -n "$FLAC_LIBS"; then
19246 pkg_cv_FLAC_LIBS="$FLAC_LIBS"
19247 elif test -n "$PKG_CONFIG"; then
19248 if test -n "$PKG_CONFIG" && \
19249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.3.1\""; } >&5
19250 ($PKG_CONFIG --exists --print-errors "flac >= 1.3.1") 2>&5
19251 ac_status=$?
19252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19253 test $ac_status = 0; }; then
19254 pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "flac >= 1.3.1" 2>/dev/null`
19255 test "x$?" != "x0" && pkg_failed=yes
19256 else
19257 pkg_failed=yes
19258 fi
19259 else
19260 pkg_failed=untried
19261 fi
19262
19263 pkg_link_saved_CFLAGS=$CFLAGS
19264 pkg_link_saved_LIBS=$LIBS
19265
19266 eval "pkg_CFLAGS=\${pkg_cv_FLAC_CFLAGS}"
19267 eval "pkg_LIBS=\${pkg_cv_FLAC_LIBS}"
19268
19269 CFLAGS="$CFLAGS $pkg_CFLAGS"
19270 LIBS="$LIBS $pkg_LIBS"
19271
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19274
19275 int
19276 main ()
19277 {
19278 puts ("");
19279 ;
19280 return 0;
19281 }
19282 _ACEOF
19283 if ac_fn_c_try_link "$LINENO"; then :
19284 pkg_link=yes
19285 else
19286 pkg_link=no
19287 fi
19288 rm -f core conftest.err conftest.$ac_objext \
19289 conftest$ac_exeext conftest.$ac_ext
19290
19291 CFLAGS=$pkg_link_saved_CFLAGS
19292 LIBS=$pkg_link_saved_LIBS
19293
19294 if test $pkg_link = no ; then
19295 $as_echo_n "link failed ... "
19296 pkg_failed=yes
19297 fi
19298
19299
19300
19301 if test $pkg_failed = yes; then
19302
19303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19304 _pkg_short_errors_supported=yes
19305 else
19306 _pkg_short_errors_supported=no
19307 fi
19308 if test $_pkg_short_errors_supported = yes; then
19309 FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "flac >= 1.3.1"`
19310 else
19311 FLAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "flac >= 1.3.1"`
19312 fi
19313 # Put the nasty error message in config.log where it belongs
19314 echo "$FLAC_PKG_ERRORS" >&5
19315
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19317 $as_echo "no" >&6; }
19318 ac_cv_flac=no
19319 elif test $pkg_failed = untried; then
19320 ac_cv_flac=no
19321 else
19322 FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS
19323 FLAC_LIBS=$pkg_cv_FLAC_LIBS
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19325 $as_echo "yes" >&6; }
19326 ac_cv_flac=yes
19327 fi
19328
19329 # Make sure the FLAC_CFLAGS value is sane.
19330 FLAC_CFLAGS=`echo $FLAC_CFLAGS | $SED "s|include/FLAC|include|"`
19331
19332
19333 pkg_failed=no
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg >= 1.1.3 " >&5
19335 $as_echo_n "checking for ogg >= 1.1.3 ... " >&6; }
19336
19337 if test -n "$OGG_CFLAGS"; then
19338 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
19339 elif test -n "$PKG_CONFIG"; then
19340 if test -n "$PKG_CONFIG" && \
19341 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1.3\""; } >&5
19342 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1.3") 2>&5
19343 ac_status=$?
19344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19345 test $ac_status = 0; }; then
19346 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.1.3" 2>/dev/null`
19347 test "x$?" != "x0" && pkg_failed=yes
19348 else
19349 pkg_failed=yes
19350 fi
19351 else
19352 pkg_failed=untried
19353 fi
19354 if test -n "$OGG_LIBS"; then
19355 pkg_cv_OGG_LIBS="$OGG_LIBS"
19356 elif test -n "$PKG_CONFIG"; then
19357 if test -n "$PKG_CONFIG" && \
19358 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1.3\""; } >&5
19359 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1.3") 2>&5
19360 ac_status=$?
19361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19362 test $ac_status = 0; }; then
19363 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.1.3" 2>/dev/null`
19364 test "x$?" != "x0" && pkg_failed=yes
19365 else
19366 pkg_failed=yes
19367 fi
19368 else
19369 pkg_failed=untried
19370 fi
19371
19372 pkg_link_saved_CFLAGS=$CFLAGS
19373 pkg_link_saved_LIBS=$LIBS
19374
19375 eval "pkg_CFLAGS=\${pkg_cv_OGG_CFLAGS}"
19376 eval "pkg_LIBS=\${pkg_cv_OGG_LIBS}"
19377
19378 CFLAGS="$CFLAGS $pkg_CFLAGS"
19379 LIBS="$LIBS $pkg_LIBS"
19380
19381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382 /* end confdefs.h. */
19383
19384 int
19385 main ()
19386 {
19387 puts ("");
19388 ;
19389 return 0;
19390 }
19391 _ACEOF
19392 if ac_fn_c_try_link "$LINENO"; then :
19393 pkg_link=yes
19394 else
19395 pkg_link=no
19396 fi
19397 rm -f core conftest.err conftest.$ac_objext \
19398 conftest$ac_exeext conftest.$ac_ext
19399
19400 CFLAGS=$pkg_link_saved_CFLAGS
19401 LIBS=$pkg_link_saved_LIBS
19402
19403 if test $pkg_link = no ; then
19404 $as_echo_n "link failed ... "
19405 pkg_failed=yes
19406 fi
19407
19408
19409
19410 if test $pkg_failed = yes; then
19411
19412 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19413 _pkg_short_errors_supported=yes
19414 else
19415 _pkg_short_errors_supported=no
19416 fi
19417 if test $_pkg_short_errors_supported = yes; then
19418 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.1.3"`
19419 else
19420 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.1.3"`
19421 fi
19422 # Put the nasty error message in config.log where it belongs
19423 echo "$OGG_PKG_ERRORS" >&5
19424
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19426 $as_echo "no" >&6; }
19427 ac_cv_ogg=no
19428 elif test $pkg_failed = untried; then
19429 ac_cv_ogg=no
19430 else
19431 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
19432 OGG_LIBS=$pkg_cv_OGG_LIBS
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19434 $as_echo "yes" >&6; }
19435 ac_cv_ogg=yes
19436 fi
19437
19438 if test x$enable_experimental = xyes ; then
19439
19440 pkg_failed=no
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex >= 1.2 " >&5
19442 $as_echo_n "checking for speex >= 1.2 ... " >&6; }
19443
19444 if test -n "$SPEEX_CFLAGS"; then
19445 pkg_cv_SPEEX_CFLAGS="$SPEEX_CFLAGS"
19446 elif test -n "$PKG_CONFIG"; then
19447 if test -n "$PKG_CONFIG" && \
19448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speex >= 1.2\""; } >&5
19449 ($PKG_CONFIG --exists --print-errors "speex >= 1.2") 2>&5
19450 ac_status=$?
19451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19452 test $ac_status = 0; }; then
19453 pkg_cv_SPEEX_CFLAGS=`$PKG_CONFIG --cflags "speex >= 1.2" 2>/dev/null`
19454 test "x$?" != "x0" && pkg_failed=yes
19455 else
19456 pkg_failed=yes
19457 fi
19458 else
19459 pkg_failed=untried
19460 fi
19461 if test -n "$SPEEX_LIBS"; then
19462 pkg_cv_SPEEX_LIBS="$SPEEX_LIBS"
19463 elif test -n "$PKG_CONFIG"; then
19464 if test -n "$PKG_CONFIG" && \
19465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speex >= 1.2\""; } >&5
19466 ($PKG_CONFIG --exists --print-errors "speex >= 1.2") 2>&5
19467 ac_status=$?
19468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19469 test $ac_status = 0; }; then
19470 pkg_cv_SPEEX_LIBS=`$PKG_CONFIG --libs "speex >= 1.2" 2>/dev/null`
19471 test "x$?" != "x0" && pkg_failed=yes
19472 else
19473 pkg_failed=yes
19474 fi
19475 else
19476 pkg_failed=untried
19477 fi
19478
19479 pkg_link_saved_CFLAGS=$CFLAGS
19480 pkg_link_saved_LIBS=$LIBS
19481
19482 eval "pkg_CFLAGS=\${pkg_cv_SPEEX_CFLAGS}"
19483 eval "pkg_LIBS=\${pkg_cv_SPEEX_LIBS}"
19484
19485 CFLAGS="$CFLAGS $pkg_CFLAGS"
19486 LIBS="$LIBS $pkg_LIBS"
19487
19488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19489 /* end confdefs.h. */
19490
19491 int
19492 main ()
19493 {
19494 puts ("");
19495 ;
19496 return 0;
19497 }
19498 _ACEOF
19499 if ac_fn_c_try_link "$LINENO"; then :
19500 pkg_link=yes
19501 else
19502 pkg_link=no
19503 fi
19504 rm -f core conftest.err conftest.$ac_objext \
19505 conftest$ac_exeext conftest.$ac_ext
19506
19507 CFLAGS=$pkg_link_saved_CFLAGS
19508 LIBS=$pkg_link_saved_LIBS
19509
19510 if test $pkg_link = no ; then
19511 $as_echo_n "link failed ... "
19512 pkg_failed=yes
19513 fi
19514
19515
19516
19517 if test $pkg_failed = yes; then
19518
19519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19520 _pkg_short_errors_supported=yes
19521 else
19522 _pkg_short_errors_supported=no
19523 fi
19524 if test $_pkg_short_errors_supported = yes; then
19525 SPEEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "speex >= 1.2"`
19526 else
19527 SPEEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "speex >= 1.2"`
19528 fi
19529 # Put the nasty error message in config.log where it belongs
19530 echo "$SPEEX_PKG_ERRORS" >&5
19531
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19533 $as_echo "no" >&6; }
19534 ac_cv_speex=no
19535 elif test $pkg_failed = untried; then
19536 ac_cv_speex=no
19537 else
19538 SPEEX_CFLAGS=$pkg_cv_SPEEX_CFLAGS
19539 SPEEX_LIBS=$pkg_cv_SPEEX_LIBS
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19541 $as_echo "yes" >&6; }
19542 ac_cv_speex=yes
19543 fi
19544 else
19545 SPEEX_CFLAGS=""
19546 SPEEX_LIBS=""
19547 fi
19548
19549 # Vorbis versions earlier than 1.2.3 have bugs that cause the libsndfile
19550 # test suite to fail on MIPS, PowerPC and others.
19551 # See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549899
19552
19553 pkg_failed=no
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis >= 1.2.3 " >&5
19555 $as_echo_n "checking for vorbis >= 1.2.3 ... " >&6; }
19556
19557 if test -n "$VORBIS_CFLAGS"; then
19558 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
19559 elif test -n "$PKG_CONFIG"; then
19560 if test -n "$PKG_CONFIG" && \
19561 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
19562 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
19563 ac_status=$?
19564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19565 test $ac_status = 0; }; then
19566 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.2.3" 2>/dev/null`
19567 test "x$?" != "x0" && pkg_failed=yes
19568 else
19569 pkg_failed=yes
19570 fi
19571 else
19572 pkg_failed=untried
19573 fi
19574 if test -n "$VORBIS_LIBS"; then
19575 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
19576 elif test -n "$PKG_CONFIG"; then
19577 if test -n "$PKG_CONFIG" && \
19578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
19579 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
19580 ac_status=$?
19581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19582 test $ac_status = 0; }; then
19583 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.2.3" 2>/dev/null`
19584 test "x$?" != "x0" && pkg_failed=yes
19585 else
19586 pkg_failed=yes
19587 fi
19588 else
19589 pkg_failed=untried
19590 fi
19591
19592 pkg_link_saved_CFLAGS=$CFLAGS
19593 pkg_link_saved_LIBS=$LIBS
19594
19595 eval "pkg_CFLAGS=\${pkg_cv_VORBIS_CFLAGS}"
19596 eval "pkg_LIBS=\${pkg_cv_VORBIS_LIBS}"
19597
19598 CFLAGS="$CFLAGS $pkg_CFLAGS"
19599 LIBS="$LIBS $pkg_LIBS"
19600
19601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19602 /* end confdefs.h. */
19603
19604 int
19605 main ()
19606 {
19607 puts ("");
19608 ;
19609 return 0;
19610 }
19611 _ACEOF
19612 if ac_fn_c_try_link "$LINENO"; then :
19613 pkg_link=yes
19614 else
19615 pkg_link=no
19616 fi
19617 rm -f core conftest.err conftest.$ac_objext \
19618 conftest$ac_exeext conftest.$ac_ext
19619
19620 CFLAGS=$pkg_link_saved_CFLAGS
19621 LIBS=$pkg_link_saved_LIBS
19622
19623 if test $pkg_link = no ; then
19624 $as_echo_n "link failed ... "
19625 pkg_failed=yes
19626 fi
19627
19628
19629
19630 if test $pkg_failed = yes; then
19631
19632 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19633 _pkg_short_errors_supported=yes
19634 else
19635 _pkg_short_errors_supported=no
19636 fi
19637 if test $_pkg_short_errors_supported = yes; then
19638 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
19639 else
19640 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
19641 fi
19642 # Put the nasty error message in config.log where it belongs
19643 echo "$VORBIS_PKG_ERRORS" >&5
19644
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19646 $as_echo "no" >&6; }
19647 ac_cv_vorbis=no
19648 elif test $pkg_failed = untried; then
19649 ac_cv_vorbis=no
19650 else
19651 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
19652 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19654 $as_echo "yes" >&6; }
19655 ac_cv_vorbis=yes
19656 fi
19657
19658 pkg_failed=no
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbisenc >= 1.2.3 " >&5
19660 $as_echo_n "checking for vorbisenc >= 1.2.3 ... " >&6; }
19661
19662 if test -n "$VORBISENC_CFLAGS"; then
19663 pkg_cv_VORBISENC_CFLAGS="$VORBISENC_CFLAGS"
19664 elif test -n "$PKG_CONFIG"; then
19665 if test -n "$PKG_CONFIG" && \
19666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
19667 ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
19668 ac_status=$?
19669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19670 test $ac_status = 0; }; then
19671 pkg_cv_VORBISENC_CFLAGS=`$PKG_CONFIG --cflags "vorbisenc >= 1.2.3" 2>/dev/null`
19672 test "x$?" != "x0" && pkg_failed=yes
19673 else
19674 pkg_failed=yes
19675 fi
19676 else
19677 pkg_failed=untried
19678 fi
19679 if test -n "$VORBISENC_LIBS"; then
19680 pkg_cv_VORBISENC_LIBS="$VORBISENC_LIBS"
19681 elif test -n "$PKG_CONFIG"; then
19682 if test -n "$PKG_CONFIG" && \
19683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
19684 ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
19685 ac_status=$?
19686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19687 test $ac_status = 0; }; then
19688 pkg_cv_VORBISENC_LIBS=`$PKG_CONFIG --libs "vorbisenc >= 1.2.3" 2>/dev/null`
19689 test "x$?" != "x0" && pkg_failed=yes
19690 else
19691 pkg_failed=yes
19692 fi
19693 else
19694 pkg_failed=untried
19695 fi
19696
19697 pkg_link_saved_CFLAGS=$CFLAGS
19698 pkg_link_saved_LIBS=$LIBS
19699
19700 eval "pkg_CFLAGS=\${pkg_cv_VORBISENC_CFLAGS}"
19701 eval "pkg_LIBS=\${pkg_cv_VORBISENC_LIBS}"
19702
19703 CFLAGS="$CFLAGS $pkg_CFLAGS"
19704 LIBS="$LIBS $pkg_LIBS"
19705
19706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19707 /* end confdefs.h. */
19708
19709 int
19710 main ()
19711 {
19712 puts ("");
19713 ;
19714 return 0;
19715 }
19716 _ACEOF
19717 if ac_fn_c_try_link "$LINENO"; then :
19718 pkg_link=yes
19719 else
19720 pkg_link=no
19721 fi
19722 rm -f core conftest.err conftest.$ac_objext \
19723 conftest$ac_exeext conftest.$ac_ext
19724
19725 CFLAGS=$pkg_link_saved_CFLAGS
19726 LIBS=$pkg_link_saved_LIBS
19727
19728 if test $pkg_link = no ; then
19729 $as_echo_n "link failed ... "
19730 pkg_failed=yes
19731 fi
19732
19733
19734
19735 if test $pkg_failed = yes; then
19736
19737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19738 _pkg_short_errors_supported=yes
19739 else
19740 _pkg_short_errors_supported=no
19741 fi
19742 if test $_pkg_short_errors_supported = yes; then
19743 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
19744 else
19745 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
19746 fi
19747 # Put the nasty error message in config.log where it belongs
19748 echo "$VORBISENC_PKG_ERRORS" >&5
19749
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19751 $as_echo "no" >&6; }
19752 ac_cv_vorbisenc=no
19753 elif test $pkg_failed = untried; then
19754 ac_cv_vorbisenc=no
19755 else
19756 VORBISENC_CFLAGS=$pkg_cv_VORBISENC_CFLAGS
19757 VORBISENC_LIBS=$pkg_cv_VORBISENC_LIBS
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19759 $as_echo "yes" >&6; }
19760 ac_cv_vorbisenc=yes
19761 fi
19762 enable_external_libs=yes
19763 fi
19764
19765 if test x$ac_cv_flac$ac_cv_ogg$ac_cv_vorbis$ac_cv_vorbisenc = "xyesyesyesyes" ; then
19766 HAVE_EXTERNAL_XIPH_LIBS=1
19767 enable_external_libs=yes
19768
19769 EXTERNAL_XIPH_CFLAGS="$FLAC_CFLAGS $OGG_CFLAGS $VORBIS_CFLAGS $VORBISENC_CFLAGS $SPEEX_CFLAGS"
19770 EXTERNAL_XIPH_LIBS="$FLAC_LIBS $OGG_LIBS $VORBIS_LIBS $VORBISENC_LIBS $SPEEX_LIBS "
19771 else
19772 echo
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** One or more of the external libraries (ie libflac, libogg and" >&5
19774 $as_echo "$as_me: WARNING: *** One or more of the external libraries (ie libflac, libogg and" >&2;}
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libvorbis) is either missing (possibly only the development" >&5
19776 $as_echo "$as_me: WARNING: *** libvorbis) is either missing (possibly only the development" >&2;}
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** headers) or is of an unsupported version." >&5
19778 $as_echo "$as_me: WARNING: *** headers) or is of an unsupported version." >&2;}
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
19780 $as_echo "$as_me: WARNING: ***" >&2;}
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unfortunately, for ease of maintenance, the external libs" >&5
19782 $as_echo "$as_me: WARNING: *** Unfortunately, for ease of maintenance, the external libs" >&2;}
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** are an all or nothing affair." >&5
19784 $as_echo "$as_me: WARNING: *** are an all or nothing affair." >&2;}
19785 echo
19786 enable_external_libs=no
19787 fi
19788 fi
19789
19790
19791 cat >>confdefs.h <<_ACEOF
19792 #define HAVE_EXTERNAL_XIPH_LIBS $HAVE_EXTERNAL_XIPH_LIBS
19793 _ACEOF
19794
19795
19796 #====================================================================================
19797 # Check for libsqlite3 (only used in regtest).
19798
19799 ac_cv_sqlite3=no
19800 if test x$enable_sqlite != xno ; then
19801
19802 pkg_failed=no
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.2 " >&5
19804 $as_echo_n "checking for sqlite3 >= 3.2 ... " >&6; }
19805
19806 if test -n "$SQLITE3_CFLAGS"; then
19807 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
19808 elif test -n "$PKG_CONFIG"; then
19809 if test -n "$PKG_CONFIG" && \
19810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
19811 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
19812 ac_status=$?
19813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19814 test $ac_status = 0; }; then
19815 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.2" 2>/dev/null`
19816 test "x$?" != "x0" && pkg_failed=yes
19817 else
19818 pkg_failed=yes
19819 fi
19820 else
19821 pkg_failed=untried
19822 fi
19823 if test -n "$SQLITE3_LIBS"; then
19824 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
19825 elif test -n "$PKG_CONFIG"; then
19826 if test -n "$PKG_CONFIG" && \
19827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
19828 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
19829 ac_status=$?
19830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19831 test $ac_status = 0; }; then
19832 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.2" 2>/dev/null`
19833 test "x$?" != "x0" && pkg_failed=yes
19834 else
19835 pkg_failed=yes
19836 fi
19837 else
19838 pkg_failed=untried
19839 fi
19840
19841 pkg_link_saved_CFLAGS=$CFLAGS
19842 pkg_link_saved_LIBS=$LIBS
19843
19844 eval "pkg_CFLAGS=\${pkg_cv_SQLITE3_CFLAGS}"
19845 eval "pkg_LIBS=\${pkg_cv_SQLITE3_LIBS}"
19846
19847 CFLAGS="$CFLAGS $pkg_CFLAGS"
19848 LIBS="$LIBS $pkg_LIBS"
19849
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h. */
19852
19853 int
19854 main ()
19855 {
19856 puts ("");
19857 ;
19858 return 0;
19859 }
19860 _ACEOF
19861 if ac_fn_c_try_link "$LINENO"; then :
19862 pkg_link=yes
19863 else
19864 pkg_link=no
19865 fi
19866 rm -f core conftest.err conftest.$ac_objext \
19867 conftest$ac_exeext conftest.$ac_ext
19868
19869 CFLAGS=$pkg_link_saved_CFLAGS
19870 LIBS=$pkg_link_saved_LIBS
19871
19872 if test $pkg_link = no ; then
19873 $as_echo_n "link failed ... "
19874 pkg_failed=yes
19875 fi
19876
19877
19878
19879 if test $pkg_failed = yes; then
19880
19881 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19882 _pkg_short_errors_supported=yes
19883 else
19884 _pkg_short_errors_supported=no
19885 fi
19886 if test $_pkg_short_errors_supported = yes; then
19887 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
19888 else
19889 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
19890 fi
19891 # Put the nasty error message in config.log where it belongs
19892 echo "$SQLITE3_PKG_ERRORS" >&5
19893
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19895 $as_echo "no" >&6; }
19896 ac_cv_sqlite3=no
19897 elif test $pkg_failed = untried; then
19898 ac_cv_sqlite3=no
19899 else
19900 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
19901 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19903 $as_echo "yes" >&6; }
19904 ac_cv_sqlite3=yes
19905 fi
19906 fi
19907
19908 if test x$ac_cv_sqlite3 = "xyes" ; then
19909 HAVE_SQLITE3=1
19910 else
19911 HAVE_SQLITE3=0
19912 fi
19913
19914
19915 cat >>confdefs.h <<_ACEOF
19916 #define HAVE_SQLITE3 $HAVE_SQLITE3
19917 _ACEOF
19918
19919
19920 #====================================================================================
19921 # Determine if the processor can do clipping on float to int conversions.
19922
19923 if test x$enable_cpu_clip != "xno" ; then
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
19925 $as_echo_n "checking processor clipping capabilities... " >&6; }
19926 if ${ac_cv_c_clip_type+:} false; then :
19927 $as_echo_n "(cached) " >&6
19928 else
19929 # Initialize to unknown
19930 ac_cv_c_clip_positive=unknown
19931 ac_cv_c_clip_negative=unknown
19932
19933
19934 if test $ac_cv_c_clip_positive = unknown ; then
19935 if test "$cross_compiling" = yes; then :
19936 ac_cv_c_clip_positive=unknown
19937
19938 else
19939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19940 /* end confdefs.h. */
19941
19942 #define _ISOC9X_SOURCE 1
19943 #define _ISOC99_SOURCE 1
19944 #define __USE_ISOC99 1
19945 #define __USE_ISOC9X 1
19946 #include <math.h>
19947 int main (void)
19948 { double fval ;
19949 int k, ival ;
19950
19951 fval = 1.0 * 0x7FFFFFFF ;
19952 for (k = 0 ; k < 100 ; k++)
19953 { ival = (lrint (fval)) >> 24 ;
19954 if (ival != 127)
19955 return 1 ;
19956
19957 fval *= 1.2499999 ;
19958 } ;
19959
19960 return 0 ;
19961 }
19962
19963 _ACEOF
19964 if ac_fn_c_try_run "$LINENO"; then :
19965 ac_cv_c_clip_positive=yes
19966 else
19967 ac_cv_c_clip_positive=no
19968 fi
19969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19970 conftest.$ac_objext conftest.beam conftest.$ac_ext
19971 fi
19972
19973
19974 if test "$cross_compiling" = yes; then :
19975 ac_cv_c_clip_negative=unknown
19976
19977 else
19978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979 /* end confdefs.h. */
19980
19981 #define _ISOC9X_SOURCE 1
19982 #define _ISOC99_SOURCE 1
19983 #define __USE_ISOC99 1
19984 #define __USE_ISOC9X 1
19985 #include <math.h>
19986 int main (void)
19987 { double fval ;
19988 int k, ival ;
19989
19990 fval = -8.0 * 0x10000000 ;
19991 for (k = 0 ; k < 100 ; k++)
19992 { ival = (lrint (fval)) >> 24 ;
19993 if (ival != -128)
19994 return 1 ;
19995
19996 fval *= 1.2499999 ;
19997 } ;
19998
19999 return 0 ;
20000 }
20001
20002 _ACEOF
20003 if ac_fn_c_try_run "$LINENO"; then :
20004 ac_cv_c_clip_negative=yes
20005 else
20006 ac_cv_c_clip_negative=no
20007 fi
20008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20009 conftest.$ac_objext conftest.beam conftest.$ac_ext
20010 fi
20011
20012 fi
20013
20014 if test $ac_cv_c_clip_positive = yes ; then
20015 ac_cv_c_clip_positive=1
20016 else
20017 ac_cv_c_clip_positive=0
20018 fi
20019
20020 if test $ac_cv_c_clip_negative = yes ; then
20021 ac_cv_c_clip_negative=1
20022 else
20023 ac_cv_c_clip_negative=0
20024 fi
20025
20026
20027 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
20028 "00")
20029 ac_cv_c_clip_type="none"
20030 ;;
20031 "10")
20032 ac_cv_c_clip_type="positive"
20033 ;;
20034 "01")
20035 ac_cv_c_clip_type="negative"
20036 ;;
20037 "11")
20038 ac_cv_c_clip_type="both"
20039 ;;
20040 esac
20041
20042
20043
20044 fi
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
20046 $as_echo "$ac_cv_c_clip_type" >&6; }
20047
20048
20049
20050 else
20051 echo "checking processor clipping capabilities... disabled"
20052 ac_cv_c_clip_positive=0
20053 ac_cv_c_clip_negative=0
20054 fi
20055
20056
20057 cat >>confdefs.h <<_ACEOF
20058 #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
20059 _ACEOF
20060
20061
20062 cat >>confdefs.h <<_ACEOF
20063 #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
20064 _ACEOF
20065
20066
20067 #====================================================================================
20068 # Target OS specific stuff.
20069
20070 OS_SPECIFIC_CFLAGS=""
20071 OS_SPECIFIC_LINKS=""
20072 os_is_win32=0
20073 os_is_openbsd=0
20074 use_windows_api=0
20075 osx_darwin_version=0
20076
20077 case "$host_os" in
20078 darwin* | rhapsody*)
20079 osx_darwin_version=$(echo "$host_os" | sed 's/\..*//;s/darwin//g')
20080 if test x$HAVE_XCODE_SELECT = xyes ; then
20081 developer_path=`xcode-select --print-path`
20082 else
20083 developer_path="/Developer"
20084 fi
20085 OS_SPECIFIC_LINKS="-framework CoreAudio -framework AudioToolbox -framework CoreFoundation"
20086 ;;
20087 mingw*)
20088 os_is_win32=1
20089 use_windows_api=1
20090 OS_SPECIFIC_LINKS="-lwinmm"
20091 ;;
20092 openbsd*)
20093 os_is_openbsd=1
20094 ;;
20095 esac
20096
20097
20098 cat >>confdefs.h <<_ACEOF
20099 #define OS_IS_WIN32 ${os_is_win32}
20100 _ACEOF
20101
20102
20103 cat >>confdefs.h <<_ACEOF
20104 #define OS_IS_OPENBSD ${os_is_openbsd}
20105 _ACEOF
20106
20107
20108 cat >>confdefs.h <<_ACEOF
20109 #define USE_WINDOWS_API ${use_windows_api}
20110 _ACEOF
20111
20112
20113 cat >>confdefs.h <<_ACEOF
20114 #define OSX_DARWIN_VERSION ${osx_darwin_version}
20115 _ACEOF
20116
20117 if test ${use_windows_api} -eq 1; then
20118 USE_WIN_VERSION_FILE_TRUE=
20119 USE_WIN_VERSION_FILE_FALSE='#'
20120 else
20121 USE_WIN_VERSION_FILE_TRUE='#'
20122 USE_WIN_VERSION_FILE_FALSE=
20123 fi
20124
20125
20126 #====================================================================================
20127 # Check for ALSA.
20128
20129 ALSA_LIBS=""
20130
20131 if test x$enable_alsa != xno ; then
20132 for ac_header in alsa/asoundlib.h
20133 do :
20134 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
20135 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
20136 cat >>confdefs.h <<_ACEOF
20137 #define HAVE_ALSA_ASOUNDLIB_H 1
20138 _ACEOF
20139
20140 fi
20141
20142 done
20143
20144 if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
20145 ALSA_LIBS="-lasound"
20146 enable_alsa=yes
20147 fi
20148 fi
20149
20150 #====================================================================================
20151 # Check for OpenBSD's sndio.
20152
20153 SNDIO_LIBS=""
20154 HAVE_SNDIO_H=0
20155 case "$host_os" in
20156 openbsd*)
20157 for ac_header in sndio.h
20158 do :
20159 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
20160 if test "x$ac_cv_header_sndio_h" = xyes; then :
20161 cat >>confdefs.h <<_ACEOF
20162 #define HAVE_SNDIO_H 1
20163 _ACEOF
20164
20165 fi
20166
20167 done
20168
20169 if test x$ac_cv_header_sndio_h = xyes ; then
20170 SNDIO_LIBS="-lsndio"
20171 HAVE_SNDIO_H=1
20172 fi
20173 ;;
20174 *)
20175 ;;
20176 esac
20177
20178
20179 cat >>confdefs.h <<_ACEOF
20180 #define HAVE_SNDIO_H ${HAVE_SNDIO_H}
20181 _ACEOF
20182
20183
20184 #====================================================================================
20185 # Test for sanity when cross-compiling.
20186
20187 if test $ac_cv_sizeof_short != 2 ; then
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
20189 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (short) != 2. " >&5
20191 $as_echo "$as_me: WARNING: *** sizeof (short) != 2. " >&2;}
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
20193 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
20194 fi
20195
20196 if test $ac_cv_sizeof_int != 4 ; then
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
20198 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (int) != 4 " >&5
20200 $as_echo "$as_me: WARNING: *** sizeof (int) != 4 " >&2;}
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
20202 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
20203 fi
20204
20205 if test $ac_cv_sizeof_float != 4 ; then
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
20207 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (float) != 4. " >&5
20209 $as_echo "$as_me: WARNING: *** sizeof (float) != 4. " >&2;}
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
20211 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
20212 fi
20213
20214 if test $ac_cv_sizeof_double != 8 ; then
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
20216 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (double) != 8. " >&5
20218 $as_echo "$as_me: WARNING: *** sizeof (double) != 8. " >&2;}
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
20220 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
20221 fi
20222
20223 if test x"$ac_cv_prog_HAVE_AUTOGEN" = "xno" ; then
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Touching files in directory tests/." >&5
20225 $as_echo "$as_me: WARNING: Touching files in directory tests/." >&2;}
20226 touch tests/*.c tests/*.h
20227 fi
20228
20229 #====================================================================================
20230 # Settings for the HTML documentation.
20231
20232 if test x$enable_bow_docs = "xyes" ; then
20233 HTML_BGCOLOUR="white"
20234 HTML_FGCOLOUR="black"
20235 else
20236 HTML_BGCOLOUR="black"
20237 HTML_FGCOLOUR="white"
20238 fi
20239
20240 #====================================================================================
20241 # Now use the information from the checking stage.
20242
20243 win32_target_dll=0
20244 COMPILER_IS_GCC=0
20245
20246 if test x$ac_cv_c_compiler_gnu = xyes ; then
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=gnu99" >&5
20248 $as_echo_n "checking if $CC accepts -std=gnu99... " >&6; }
20249 ac_add_cflags__old_cflags="$CFLAGS"
20250 CFLAGS="-std=gnu99"
20251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20252 /* end confdefs.h. */
20253
20254 #include <stdio.h>
20255
20256 int
20257 main ()
20258 {
20259 puts("Hello, World!"); return 0;
20260 ;
20261 return 0;
20262 }
20263 _ACEOF
20264 if ac_fn_c_try_link "$LINENO"; then :
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20266 $as_echo "yes" >&6; }
20267 CFLAGS="$ac_add_cflags__old_cflags -std=gnu99"
20268 else
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20270 $as_echo "no" >&6; }
20271 CFLAGS="$ac_add_cflags__old_cflags"
20272
20273 fi
20274 rm -f core conftest.err conftest.$ac_objext \
20275 conftest$ac_exeext conftest.$ac_ext
20276
20277
20278
20279 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
20280
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $CC" >&5
20282 $as_echo_n "checking for version of $CC... " >&6; }
20283 GCC_VERSION=`$CC -dumpversion`
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
20285 $as_echo "$GCC_VERSION" >&6; }
20286
20287 GCC_MAJOR_VERSION=`echo $GCC_VERSION | sed "s/\..*//"`
20288 GCC_MINOR_VERSION=`echo $GCC_VERSION | sed "s/$GCC_MAJOR_VERSION\.//" | sed "s/\..*//"`
20289 fi
20290
20291
20292
20293
20294
20295
20296
20297 if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x42" ; then
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****************************************************************" >&5
20299 $as_echo "$as_me: WARNING: ****************************************************************" >&2;}
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** GCC version 4.2 warns about the inline keyword for no good **" >&5
20301 $as_echo "$as_me: WARNING: ** GCC version 4.2 warns about the inline keyword for no good **" >&2;}
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** reason but the maintainers do not see it as a bug. **" >&5
20303 $as_echo "$as_me: WARNING: ** reason but the maintainers do not see it as a bug. **" >&2;}
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995 **" >&5
20305 $as_echo "$as_me: WARNING: ** See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995 **" >&2;}
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Using -fgnu-inline to avoid this stupidity. **" >&5
20307 $as_echo "$as_me: WARNING: ** Using -fgnu-inline to avoid this stupidity. **" >&2;}
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****************************************************************" >&5
20309 $as_echo "$as_me: WARNING: ****************************************************************" >&2;}
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fgnu89-inline" >&5
20311 $as_echo_n "checking if $CC accepts -fgnu89-inline... " >&6; }
20312 ac_add_cflags__old_cflags="$CFLAGS"
20313 CFLAGS="-fgnu89-inline"
20314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20315 /* end confdefs.h. */
20316
20317 #include <stdio.h>
20318
20319 int
20320 main ()
20321 {
20322 puts("Hello, World!"); return 0;
20323 ;
20324 return 0;
20325 }
20326 _ACEOF
20327 if ac_fn_c_try_link "$LINENO"; then :
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20329 $as_echo "yes" >&6; }
20330 CFLAGS="$ac_add_cflags__old_cflags -fgnu89-inline"
20331 else
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20333 $as_echo "no" >&6; }
20334 CFLAGS="$ac_add_cflags__old_cflags"
20335
20336 fi
20337 rm -f core conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
20339
20340 fi
20341
20342 CFLAGS="$CFLAGS -Wall"
20343 CXXFLAGS="$CXXFLAGS -Wall"
20344
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra" >&5
20346 $as_echo_n "checking if $CC accepts -Wextra... " >&6; }
20347 ac_add_cflags__old_cflags="$CFLAGS"
20348 CFLAGS="-Wextra"
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20351
20352 #include <stdio.h>
20353
20354 int
20355 main ()
20356 {
20357 puts("Hello, World!"); return 0;
20358 ;
20359 return 0;
20360 }
20361 _ACEOF
20362 if ac_fn_c_try_link "$LINENO"; then :
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20364 $as_echo "yes" >&6; }
20365 CFLAGS="$ac_add_cflags__old_cflags -Wextra"
20366 else
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20368 $as_echo "no" >&6; }
20369 CFLAGS="$ac_add_cflags__old_cflags"
20370
20371 fi
20372 rm -f core conftest.err conftest.$ac_objext \
20373 conftest$ac_exeext conftest.$ac_ext
20374
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
20376 $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
20377 ac_add_cflags__old_cflags="$CFLAGS"
20378 CFLAGS="-Wdeclaration-after-statement"
20379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20380 /* end confdefs.h. */
20381
20382 #include <stdio.h>
20383
20384 int
20385 main ()
20386 {
20387 puts("Hello, World!"); return 0;
20388 ;
20389 return 0;
20390 }
20391 _ACEOF
20392 if ac_fn_c_try_link "$LINENO"; then :
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20394 $as_echo "yes" >&6; }
20395 CFLAGS="$ac_add_cflags__old_cflags -Wdeclaration-after-statement"
20396 else
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20398 $as_echo "no" >&6; }
20399 CFLAGS="$ac_add_cflags__old_cflags"
20400
20401 fi
20402 rm -f core conftest.err conftest.$ac_objext \
20403 conftest$ac_exeext conftest.$ac_ext
20404
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wpointer-arith" >&5
20406 $as_echo_n "checking if $CC accepts -Wpointer-arith... " >&6; }
20407 ac_add_cflags__old_cflags="$CFLAGS"
20408 CFLAGS="-Wpointer-arith"
20409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20410 /* end confdefs.h. */
20411
20412 #include <stdio.h>
20413
20414 int
20415 main ()
20416 {
20417 puts("Hello, World!"); return 0;
20418 ;
20419 return 0;
20420 }
20421 _ACEOF
20422 if ac_fn_c_try_link "$LINENO"; then :
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20424 $as_echo "yes" >&6; }
20425 CFLAGS="$ac_add_cflags__old_cflags -Wpointer-arith"
20426 else
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20428 $as_echo "no" >&6; }
20429 CFLAGS="$ac_add_cflags__old_cflags"
20430
20431 fi
20432 rm -f core conftest.err conftest.$ac_objext \
20433 conftest$ac_exeext conftest.$ac_ext
20434
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -funsigned-char" >&5
20436 $as_echo_n "checking if $CC accepts -funsigned-char... " >&6; }
20437 ac_add_cflags__old_cflags="$CFLAGS"
20438 CFLAGS="-funsigned-char"
20439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20440 /* end confdefs.h. */
20441
20442 #include <stdio.h>
20443
20444 int
20445 main ()
20446 {
20447 puts("Hello, World!"); return 0;
20448 ;
20449 return 0;
20450 }
20451 _ACEOF
20452 if ac_fn_c_try_link "$LINENO"; then :
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20454 $as_echo "yes" >&6; }
20455 CFLAGS="$ac_add_cflags__old_cflags -funsigned-char"
20456 else
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20458 $as_echo "no" >&6; }
20459 CFLAGS="$ac_add_cflags__old_cflags"
20460
20461 fi
20462 rm -f core conftest.err conftest.$ac_objext \
20463 conftest$ac_exeext conftest.$ac_ext
20464
20465
20466 ac_ext=cpp
20467 ac_cpp='$CXXCPP $CPPFLAGS'
20468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20471
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra" >&5
20473 $as_echo_n "checking if $CXX accepts -Wextra... " >&6; }
20474
20475 ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
20476 CXXFLAGS="-Wextra"
20477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478 /* end confdefs.h. */
20479
20480 #include <cstdio>
20481
20482 int
20483 main ()
20484 {
20485 puts("Hello, World!"); return 0;
20486 ;
20487 return 0;
20488 }
20489 _ACEOF
20490 if ac_fn_cxx_try_link "$LINENO"; then :
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20492 $as_echo "yes" >&6; }
20493 CXXFLAGS="$ac_add_cxxflags__old_cxxflags -Wextra"
20494 else
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20496 $as_echo "no" >&6; }
20497 CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
20498
20499 fi
20500 rm -f core conftest.err conftest.$ac_objext \
20501 conftest$ac_exeext conftest.$ac_ext
20502
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wpointer-arith" >&5
20504 $as_echo_n "checking if $CXX accepts -Wpointer-arith... " >&6; }
20505
20506 ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
20507 CXXFLAGS="-Wpointer-arith"
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h. */
20510
20511 #include <cstdio>
20512
20513 int
20514 main ()
20515 {
20516 puts("Hello, World!"); return 0;
20517 ;
20518 return 0;
20519 }
20520 _ACEOF
20521 if ac_fn_cxx_try_link "$LINENO"; then :
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20523 $as_echo "yes" >&6; }
20524 CXXFLAGS="$ac_add_cxxflags__old_cxxflags -Wpointer-arith"
20525 else
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20527 $as_echo "no" >&6; }
20528 CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
20529
20530 fi
20531 rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20533
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -funsigned-char" >&5
20535 $as_echo_n "checking if $CXX accepts -funsigned-char... " >&6; }
20536
20537 ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
20538 CXXFLAGS="-funsigned-char"
20539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20540 /* end confdefs.h. */
20541
20542 #include <cstdio>
20543
20544 int
20545 main ()
20546 {
20547 puts("Hello, World!"); return 0;
20548 ;
20549 return 0;
20550 }
20551 _ACEOF
20552 if ac_fn_cxx_try_link "$LINENO"; then :
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20554 $as_echo "yes" >&6; }
20555 CXXFLAGS="$ac_add_cxxflags__old_cxxflags -funsigned-char"
20556 else
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20558 $as_echo "no" >&6; }
20559 CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
20560
20561 fi
20562 rm -f core conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20564
20565 ac_ext=c
20566 ac_cpp='$CPP $CPPFLAGS'
20567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20570
20571
20572
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -D_FORTIFY_SOURCE=2" >&5
20574 $as_echo_n "checking if $CC accepts -D_FORTIFY_SOURCE=2... " >&6; }
20575 ac_add_cflags__old_cflags="$CFLAGS"
20576 CFLAGS="-D_FORTIFY_SOURCE=2"
20577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20578 /* end confdefs.h. */
20579
20580 #include <stdio.h>
20581
20582 int
20583 main ()
20584 {
20585 puts("Hello, World!"); return 0;
20586 ;
20587 return 0;
20588 }
20589 _ACEOF
20590 if ac_fn_c_try_link "$LINENO"; then :
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20592 $as_echo "yes" >&6; }
20593 CFLAGS="$ac_add_cflags__old_cflags -D_FORTIFY_SOURCE=2"
20594 else
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20596 $as_echo "no" >&6; }
20597 CFLAGS="$ac_add_cflags__old_cflags"
20598
20599 fi
20600 rm -f core conftest.err conftest.$ac_objext \
20601 conftest$ac_exeext conftest.$ac_ext
20602
20603
20604 if test x$enable_stack_smash_protection = "xyes" ; then
20605
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports stack smash protection" >&5
20607 $as_echo_n "checking if $CC supports stack smash protection... " >&6; }
20608 xiph_stack_check_old_cflags="$CFLAGS"
20609 SSP_FLAGS="-fstack-protector --param ssp-buffer-size=4"
20610 CFLAGS=$SSP_FLAGS
20611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20612 /* end confdefs.h. */
20613
20614 #include <stdio.h>
20615
20616 int
20617 main ()
20618 {
20619 puts("Hello, World!"); return 0;
20620 ;
20621 return 0;
20622 }
20623 _ACEOF
20624 if ac_fn_c_try_link "$LINENO"; then :
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20626 $as_echo "yes" >&6; }
20627 CFLAGS="$xiph_stack_check_old_cflags $SSP_FLAGS"
20628 else
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20630 $as_echo "no" >&6; }
20631 CFLAGS="$xiph_stack_check_old_cflags"
20632
20633 fi
20634 rm -f core conftest.err conftest.$ac_objext \
20635 conftest$ac_exeext conftest.$ac_ext
20636
20637 ac_ext=cpp
20638 ac_cpp='$CXXCPP $CPPFLAGS'
20639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20642
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports stack smash protection" >&5
20644 $as_echo_n "checking if $CXX supports stack smash protection... " >&6; }
20645 xiph_stack_check_old_cflags="$CFLAGS"
20646 SSP_FLAGS="-fstack-protector --param ssp-buffer-size=4"
20647 CFLAGS=$SSP_FLAGS
20648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20649 /* end confdefs.h. */
20650
20651 #include <cstdio>
20652
20653 int
20654 main ()
20655 {
20656 puts("Hello, World!"); return 0;
20657 ;
20658 return 0;
20659 }
20660 _ACEOF
20661 if ac_fn_cxx_try_link "$LINENO"; then :
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20663 $as_echo "yes" >&6; }
20664 CFLAGS="$xiph_stack_check_old_cflags $SSP_FLAGS"
20665 else
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20667 $as_echo "no" >&6; }
20668 CFLAGS="$xiph_stack_check_old_cflags"
20669
20670 fi
20671 rm -f core conftest.err conftest.$ac_objext \
20672 conftest$ac_exeext conftest.$ac_ext
20673 ac_ext=c
20674 ac_cpp='$CPP $CPPFLAGS'
20675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20678
20679
20680 fi
20681
20682 if test x$enable_test_coverage = "xyes" ; then
20683 # MN_ADD_CFLAGS([-ftest-coverage])
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -coverage" >&5
20685 $as_echo_n "checking if $CC accepts -coverage... " >&6; }
20686 ac_add_cflags__old_cflags="$CFLAGS"
20687 CFLAGS="-coverage"
20688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20689 /* end confdefs.h. */
20690
20691 #include <stdio.h>
20692
20693 int
20694 main ()
20695 {
20696 puts("Hello, World!"); return 0;
20697 ;
20698 return 0;
20699 }
20700 _ACEOF
20701 if ac_fn_c_try_link "$LINENO"; then :
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20703 $as_echo "yes" >&6; }
20704 CFLAGS="$ac_add_cflags__old_cflags -coverage"
20705 else
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20707 $as_echo "no" >&6; }
20708 CFLAGS="$ac_add_cflags__old_cflags"
20709
20710 fi
20711 rm -f core conftest.err conftest.$ac_objext \
20712 conftest$ac_exeext conftest.$ac_ext
20713
20714 fi
20715
20716 common_flags="-Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wundef -Wuninitialized -Winit-self"
20717
20718 # -Winline -Wconversion "
20719 CFLAGS="$CFLAGS $common_flags -Wbad-function-cast -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Waggregate-return"
20720 CXXFLAGS="$CXXFLAGS $common_flags -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo"
20721
20722 if test "x$enable_gcc_opt" = "xno" ; then
20723 temp_CFLAGS=`echo $CFLAGS | $SED "s/O2/O0/"`
20724 CFLAGS=$temp_CFLAGS
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5
20726 $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
20727 fi
20728
20729 # OS specific tweaks.
20730 case "$host_os" in
20731 darwin* | rhapsody*)
20732 # Disable -Wall, -pedantic and -Wshadow for Apple Darwin/Rhapsody.
20733 # System headers on these systems are broken.
20734 temp_CFLAGS=`echo $CFLAGS | $SED "s/-Wall -pedantic//" | $SED "s/-Wshadow//" | $SED "s/-Waggregate-return//"`
20735 CFLAGS=$temp_CFLAGS
20736 SHLIB_VERSION_ARG="-Wl,-exported_symbols_list -Wl,\$(srcdir)/Symbols.darwin"
20737 ;;
20738 linux*|kfreebsd*-gnu*|gnu*)
20739 SHLIB_VERSION_ARG="-Wl,--version-script=\$(srcdir)/Symbols.gnu-binutils"
20740 ;;
20741 mingw*)
20742 SHLIB_VERSION_ARG="-Wc,-static-libgcc -Wl,\$(srcdir)/libsndfile-1.def"
20743 win32_target_dll=1
20744 if test x"$enable_shared" = xno ; then
20745 win32_target_dll=0
20746 fi
20747 ;;
20748 os2*)
20749 SHLIB_VERSION_ARG="-Wl,-export-symbols \$(srcdir)/Symbols.os2"
20750 ;;
20751 *)
20752 ;;
20753 esac
20754 if test x$enable_gcc_pipe != "xno" ; then
20755 CFLAGS="$CFLAGS -pipe"
20756 fi
20757
20758 COMPILER_IS_GCC=1
20759 fi
20760
20761 if test x$enable_werror = "xyes" ; then
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror" >&5
20763 $as_echo_n "checking if $CC accepts -Werror... " >&6; }
20764 ac_add_cflags__old_cflags="$CFLAGS"
20765 CFLAGS="-Werror"
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20768
20769 #include <stdio.h>
20770
20771 int
20772 main ()
20773 {
20774 puts("Hello, World!"); return 0;
20775 ;
20776 return 0;
20777 }
20778 _ACEOF
20779 if ac_fn_c_try_link "$LINENO"; then :
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20781 $as_echo "yes" >&6; }
20782 CFLAGS="$ac_add_cflags__old_cflags -Werror"
20783 else
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20785 $as_echo "no" >&6; }
20786 CFLAGS="$ac_add_cflags__old_cflags"
20787
20788 fi
20789 rm -f core conftest.err conftest.$ac_objext \
20790 conftest$ac_exeext conftest.$ac_ext
20791
20792
20793 ac_ext=cpp
20794 ac_cpp='$CXXCPP $CPPFLAGS'
20795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20798
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror" >&5
20800 $as_echo_n "checking if $CXX accepts -Werror... " >&6; }
20801
20802 ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
20803 CXXFLAGS="-Werror"
20804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20805 /* end confdefs.h. */
20806
20807 #include <cstdio>
20808
20809 int
20810 main ()
20811 {
20812 puts("Hello, World!"); return 0;
20813 ;
20814 return 0;
20815 }
20816 _ACEOF
20817 if ac_fn_cxx_try_link "$LINENO"; then :
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20819 $as_echo "yes" >&6; }
20820 CXXFLAGS="$ac_add_cxxflags__old_cxxflags -Werror"
20821 else
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20823 $as_echo "no" >&6; }
20824 CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
20825
20826 fi
20827 rm -f core conftest.err conftest.$ac_objext \
20828 conftest$ac_exeext conftest.$ac_ext
20829
20830 ac_ext=c
20831 ac_cpp='$CPP $CPPFLAGS'
20832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20835
20836 fi
20837
20838
20839
20840 cat >>confdefs.h <<_ACEOF
20841 #define WIN32_TARGET_DLL ${win32_target_dll}
20842 _ACEOF
20843
20844
20845 cat >>confdefs.h <<_ACEOF
20846 #define COMPILER_IS_GCC ${COMPILER_IS_GCC}
20847 _ACEOF
20848
20849
20850 CFLAGS="$CFLAGS $OS_SPECIFIC_CFLAGS"
20851
20852 if test x"$CFLAGS" = x ; then
20853 echo "Error in configure script. CFLAGS has been screwed up."
20854 exit
20855 fi
20856
20857 HOST_TRIPLET="${host_cpu}-${host_vendor}-${host_os}"
20858
20859
20860 cat >>confdefs.h <<_ACEOF
20861 #define HOST_TRIPLET "${HOST_TRIPLET}"
20862 _ACEOF
20863
20864
20865 if test "$HOST_TRIPLET" = "x86_64-w64-mingw32" ; then
20866 OS_SPECIFIC_LINKS=" -static-libgcc $OS_SPECIFIC_LINKS"
20867 fi
20868
20869 WIN_RC_VERSION=`echo $PACKAGE_VERSION | $SED -e "s/p.*//" -e "s/\./,/g"`
20870
20871
20872 if test "$enable_static" = no ; then
20873 SRC_BINDIR=src/.libs/
20874 TEST_BINDIR=tests/.libs/
20875 else
20876 SRC_BINDIR=src/
20877 TEST_BINDIR=tests/
20878 fi
20879
20880 #-------------------------------------------------------------------------------
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905 ac_config_files="$ac_config_files src/Makefile man/Makefile examples/Makefile tests/Makefile regtest/Makefile M4/Makefile doc/Makefile Win32/Makefile Octave/Makefile programs/Makefile Makefile src/version-metadata.rc tests/test_wrapper.sh tests/pedantic-header-test.sh doc/libsndfile.css Scripts/build-test-tarball.mk libsndfile.spec sndfile.pc src/sndfile.h echo-install-dirs"
20906
20907 cat >confcache <<\_ACEOF
20908 # This file is a shell script that caches the results of configure
20909 # tests run on this system so they can be shared between configure
20910 # scripts and configure runs, see configure's option --config-cache.
20911 # It is not useful on other systems. If it contains results you don't
20912 # want to keep, you may remove or edit it.
20913 #
20914 # config.status only pays attention to the cache file if you give it
20915 # the --recheck option to rerun configure.
20916 #
20917 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20919 # following values.
20920
20921 _ACEOF
20922
20923 # The following way of writing the cache mishandles newlines in values,
20924 # but we know of no workaround that is simple, portable, and efficient.
20925 # So, we kill variables containing newlines.
20926 # Ultrix sh set writes to stderr and can't be redirected directly,
20927 # and sets the high bit in the cache file unless we assign to the vars.
20928 (
20929 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20930 eval ac_val=\$$ac_var
20931 case $ac_val in #(
20932 *${as_nl}*)
20933 case $ac_var in #(
20934 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20935 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20936 esac
20937 case $ac_var in #(
20938 _ | IFS | as_nl) ;; #(
20939 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20940 *) { eval $ac_var=; unset $ac_var;} ;;
20941 esac ;;
20942 esac
20943 done
20944
20945 (set) 2>&1 |
20946 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20947 *${as_nl}ac_space=\ *)
20948 # `set' does not quote correctly, so add quotes: double-quote
20949 # substitution turns \\\\ into \\, and sed turns \\ into \.
20950 sed -n \
20951 "s/'/'\\\\''/g;
20952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20953 ;; #(
20954 *)
20955 # `set' quotes correctly as required by POSIX, so do not add quotes.
20956 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20957 ;;
20958 esac |
20959 sort
20960 ) |
20961 sed '
20962 /^ac_cv_env_/b end
20963 t clear
20964 :clear
20965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20966 t end
20967 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20968 :end' >>confcache
20969 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20970 if test -w "$cache_file"; then
20971 if test "x$cache_file" != "x/dev/null"; then
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20973 $as_echo "$as_me: updating cache $cache_file" >&6;}
20974 if test ! -f "$cache_file" || test -h "$cache_file"; then
20975 cat confcache >"$cache_file"
20976 else
20977 case $cache_file in #(
20978 */* | ?:*)
20979 mv -f confcache "$cache_file"$$ &&
20980 mv -f "$cache_file"$$ "$cache_file" ;; #(
20981 *)
20982 mv -f confcache "$cache_file" ;;
20983 esac
20984 fi
20985 fi
20986 else
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20988 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20989 fi
20990 fi
20991 rm -f confcache
20992
20993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20994 # Let make expand exec_prefix.
20995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20996
20997 DEFS=-DHAVE_CONFIG_H
20998
20999 ac_libobjs=
21000 ac_ltlibobjs=
21001 U=
21002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21003 # 1. Remove the extension, and $U if already installed.
21004 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21005 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21006 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21007 # will be set to the directory where LIBOBJS objects are built.
21008 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21009 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21010 done
21011 LIBOBJS=$ac_libobjs
21012
21013 LTLIBOBJS=$ac_ltlibobjs
21014
21015
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21017 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21018 if test -n "$am_sleep_pid"; then
21019 # Hide warnings about reused PIDs.
21020 wait $am_sleep_pid 2>/dev/null
21021 fi
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21023 $as_echo "done" >&6; }
21024 if test -n "$EXEEXT"; then
21025 am__EXEEXT_TRUE=
21026 am__EXEEXT_FALSE='#'
21027 else
21028 am__EXEEXT_TRUE='#'
21029 am__EXEEXT_FALSE=
21030 fi
21031
21032 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21033 as_fn_error $? "conditional \"AMDEP\" was never defined.
21034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21035 fi
21036 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21037 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21039 fi
21040 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21041 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21043 fi
21044 if test -z "${LINUX_MINGW_CROSS_TEST_TRUE}" && test -z "${LINUX_MINGW_CROSS_TEST_FALSE}"; then
21045 as_fn_error $? "conditional \"LINUX_MINGW_CROSS_TEST\" was never defined.
21046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21047 fi
21048 if test -z "${ENABLE_TEST_COVERAGE_TRUE}" && test -z "${ENABLE_TEST_COVERAGE_FALSE}"; then
21049 as_fn_error $? "conditional \"ENABLE_TEST_COVERAGE\" was never defined.
21050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21051 fi
21052 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
21053 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
21054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21055 fi
21056 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
21057 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
21058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21059 fi
21060 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
21061 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
21062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21063 fi
21064 if test -z "${USE_WIN_VERSION_FILE_TRUE}" && test -z "${USE_WIN_VERSION_FILE_FALSE}"; then
21065 as_fn_error $? "conditional \"USE_WIN_VERSION_FILE\" was never defined.
21066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21067 fi
21068
21069 : "${CONFIG_STATUS=./config.status}"
21070 ac_write_fail=0
21071 ac_clean_files_save=$ac_clean_files
21072 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21074 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21075 as_write_fail=0
21076 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21077 #! $SHELL
21078 # Generated by $as_me.
21079 # Run this file to recreate the current configuration.
21080 # Compiler output produced by configure, useful for debugging
21081 # configure, is in config.log if it exists.
21082
21083 debug=false
21084 ac_cs_recheck=false
21085 ac_cs_silent=false
21086
21087 SHELL=\${CONFIG_SHELL-$SHELL}
21088 export SHELL
21089 _ASEOF
21090 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21091 ## -------------------- ##
21092 ## M4sh Initialization. ##
21093 ## -------------------- ##
21094
21095 # Be more Bourne compatible
21096 DUALCASE=1; export DUALCASE # for MKS sh
21097 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21098 emulate sh
21099 NULLCMD=:
21100 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21101 # is contrary to our usage. Disable this feature.
21102 alias -g '${1+"$@"}'='"$@"'
21103 setopt NO_GLOB_SUBST
21104 else
21105 case `(set -o) 2>/dev/null` in #(
21106 *posix*) :
21107 set -o posix ;; #(
21108 *) :
21109 ;;
21110 esac
21111 fi
21112
21113
21114 as_nl='
21115 '
21116 export as_nl
21117 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21118 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21119 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21120 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21121 # Prefer a ksh shell builtin over an external printf program on Solaris,
21122 # but without wasting forks for bash or zsh.
21123 if test -z "$BASH_VERSION$ZSH_VERSION" \
21124 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21125 as_echo='print -r --'
21126 as_echo_n='print -rn --'
21127 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21128 as_echo='printf %s\n'
21129 as_echo_n='printf %s'
21130 else
21131 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21132 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21133 as_echo_n='/usr/ucb/echo -n'
21134 else
21135 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21136 as_echo_n_body='eval
21137 arg=$1;
21138 case $arg in #(
21139 *"$as_nl"*)
21140 expr "X$arg" : "X\\(.*\\)$as_nl";
21141 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21142 esac;
21143 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21144 '
21145 export as_echo_n_body
21146 as_echo_n='sh -c $as_echo_n_body as_echo'
21147 fi
21148 export as_echo_body
21149 as_echo='sh -c $as_echo_body as_echo'
21150 fi
21151
21152 # The user is always right.
21153 if test "${PATH_SEPARATOR+set}" != set; then
21154 PATH_SEPARATOR=:
21155 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21156 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21157 PATH_SEPARATOR=';'
21158 }
21159 fi
21160
21161
21162 # IFS
21163 # We need space, tab and new line, in precisely that order. Quoting is
21164 # there to prevent editors from complaining about space-tab.
21165 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21166 # splitting by setting IFS to empty value.)
21167 IFS=" "" $as_nl"
21168
21169 # Find who we are. Look in the path if we contain no directory separator.
21170 as_myself=
21171 case $0 in #((
21172 *[\\/]* ) as_myself=$0 ;;
21173 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21174 for as_dir in $PATH
21175 do
21176 IFS=$as_save_IFS
21177 test -z "$as_dir" && as_dir=.
21178 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21179 done
21180 IFS=$as_save_IFS
21181
21182 ;;
21183 esac
21184 # We did not find ourselves, most probably we were run as `sh COMMAND'
21185 # in which case we are not to be found in the path.
21186 if test "x$as_myself" = x; then
21187 as_myself=$0
21188 fi
21189 if test ! -f "$as_myself"; then
21190 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21191 exit 1
21192 fi
21193
21194 # Unset variables that we do not need and which cause bugs (e.g. in
21195 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21196 # suppresses any "Segmentation fault" message there. '((' could
21197 # trigger a bug in pdksh 5.2.14.
21198 for as_var in BASH_ENV ENV MAIL MAILPATH
21199 do eval test x\${$as_var+set} = xset \
21200 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21201 done
21202 PS1='$ '
21203 PS2='> '
21204 PS4='+ '
21205
21206 # NLS nuisances.
21207 LC_ALL=C
21208 export LC_ALL
21209 LANGUAGE=C
21210 export LANGUAGE
21211
21212 # CDPATH.
21213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21214
21215
21216 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21217 # ----------------------------------------
21218 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21219 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21220 # script with STATUS, using 1 if that was 0.
21221 as_fn_error ()
21222 {
21223 as_status=$1; test $as_status -eq 0 && as_status=1
21224 if test "$4"; then
21225 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21226 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21227 fi
21228 $as_echo "$as_me: error: $2" >&2
21229 as_fn_exit $as_status
21230 } # as_fn_error
21231
21232
21233 # as_fn_set_status STATUS
21234 # -----------------------
21235 # Set $? to STATUS, without forking.
21236 as_fn_set_status ()
21237 {
21238 return $1
21239 } # as_fn_set_status
21240
21241 # as_fn_exit STATUS
21242 # -----------------
21243 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21244 as_fn_exit ()
21245 {
21246 set +e
21247 as_fn_set_status $1
21248 exit $1
21249 } # as_fn_exit
21250
21251 # as_fn_unset VAR
21252 # ---------------
21253 # Portably unset VAR.
21254 as_fn_unset ()
21255 {
21256 { eval $1=; unset $1;}
21257 }
21258 as_unset=as_fn_unset
21259 # as_fn_append VAR VALUE
21260 # ----------------------
21261 # Append the text in VALUE to the end of the definition contained in VAR. Take
21262 # advantage of any shell optimizations that allow amortized linear growth over
21263 # repeated appends, instead of the typical quadratic growth present in naive
21264 # implementations.
21265 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21266 eval 'as_fn_append ()
21267 {
21268 eval $1+=\$2
21269 }'
21270 else
21271 as_fn_append ()
21272 {
21273 eval $1=\$$1\$2
21274 }
21275 fi # as_fn_append
21276
21277 # as_fn_arith ARG...
21278 # ------------------
21279 # Perform arithmetic evaluation on the ARGs, and store the result in the
21280 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21281 # must be portable across $(()) and expr.
21282 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21283 eval 'as_fn_arith ()
21284 {
21285 as_val=$(( $* ))
21286 }'
21287 else
21288 as_fn_arith ()
21289 {
21290 as_val=`expr "$@" || test $? -eq 1`
21291 }
21292 fi # as_fn_arith
21293
21294
21295 if expr a : '\(a\)' >/dev/null 2>&1 &&
21296 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21297 as_expr=expr
21298 else
21299 as_expr=false
21300 fi
21301
21302 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21303 as_basename=basename
21304 else
21305 as_basename=false
21306 fi
21307
21308 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21309 as_dirname=dirname
21310 else
21311 as_dirname=false
21312 fi
21313
21314 as_me=`$as_basename -- "$0" ||
21315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21316 X"$0" : 'X\(//\)$' \| \
21317 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21318 $as_echo X/"$0" |
21319 sed '/^.*\/\([^/][^/]*\)\/*$/{
21320 s//\1/
21321 q
21322 }
21323 /^X\/\(\/\/\)$/{
21324 s//\1/
21325 q
21326 }
21327 /^X\/\(\/\).*/{
21328 s//\1/
21329 q
21330 }
21331 s/.*/./; q'`
21332
21333 # Avoid depending upon Character Ranges.
21334 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21335 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21336 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21337 as_cr_digits='0123456789'
21338 as_cr_alnum=$as_cr_Letters$as_cr_digits
21339
21340 ECHO_C= ECHO_N= ECHO_T=
21341 case `echo -n x` in #(((((
21342 -n*)
21343 case `echo 'xy\c'` in
21344 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21345 xy) ECHO_C='\c';;
21346 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21347 ECHO_T=' ';;
21348 esac;;
21349 *)
21350 ECHO_N='-n';;
21351 esac
21352
21353 rm -f conf$$ conf$$.exe conf$$.file
21354 if test -d conf$$.dir; then
21355 rm -f conf$$.dir/conf$$.file
21356 else
21357 rm -f conf$$.dir
21358 mkdir conf$$.dir 2>/dev/null
21359 fi
21360 if (echo >conf$$.file) 2>/dev/null; then
21361 if ln -s conf$$.file conf$$ 2>/dev/null; then
21362 as_ln_s='ln -s'
21363 # ... but there are two gotchas:
21364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21366 # In both cases, we have to default to `cp -pR'.
21367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21368 as_ln_s='cp -pR'
21369 elif ln conf$$.file conf$$ 2>/dev/null; then
21370 as_ln_s=ln
21371 else
21372 as_ln_s='cp -pR'
21373 fi
21374 else
21375 as_ln_s='cp -pR'
21376 fi
21377 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21378 rmdir conf$$.dir 2>/dev/null
21379
21380
21381 # as_fn_mkdir_p
21382 # -------------
21383 # Create "$as_dir" as a directory, including parents if necessary.
21384 as_fn_mkdir_p ()
21385 {
21386
21387 case $as_dir in #(
21388 -*) as_dir=./$as_dir;;
21389 esac
21390 test -d "$as_dir" || eval $as_mkdir_p || {
21391 as_dirs=
21392 while :; do
21393 case $as_dir in #(
21394 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21395 *) as_qdir=$as_dir;;
21396 esac
21397 as_dirs="'$as_qdir' $as_dirs"
21398 as_dir=`$as_dirname -- "$as_dir" ||
21399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21400 X"$as_dir" : 'X\(//\)[^/]' \| \
21401 X"$as_dir" : 'X\(//\)$' \| \
21402 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21403 $as_echo X"$as_dir" |
21404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21405 s//\1/
21406 q
21407 }
21408 /^X\(\/\/\)[^/].*/{
21409 s//\1/
21410 q
21411 }
21412 /^X\(\/\/\)$/{
21413 s//\1/
21414 q
21415 }
21416 /^X\(\/\).*/{
21417 s//\1/
21418 q
21419 }
21420 s/.*/./; q'`
21421 test -d "$as_dir" && break
21422 done
21423 test -z "$as_dirs" || eval "mkdir $as_dirs"
21424 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21425
21426
21427 } # as_fn_mkdir_p
21428 if mkdir -p . 2>/dev/null; then
21429 as_mkdir_p='mkdir -p "$as_dir"'
21430 else
21431 test -d ./-p && rmdir ./-p
21432 as_mkdir_p=false
21433 fi
21434
21435
21436 # as_fn_executable_p FILE
21437 # -----------------------
21438 # Test if FILE is an executable regular file.
21439 as_fn_executable_p ()
21440 {
21441 test -f "$1" && test -x "$1"
21442 } # as_fn_executable_p
21443 as_test_x='test -x'
21444 as_executable_p=as_fn_executable_p
21445
21446 # Sed expression to map a string onto a valid CPP name.
21447 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21448
21449 # Sed expression to map a string onto a valid variable name.
21450 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21451
21452
21453 exec 6>&1
21454 ## ----------------------------------- ##
21455 ## Main body of $CONFIG_STATUS script. ##
21456 ## ----------------------------------- ##
21457 _ASEOF
21458 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21459
21460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21461 # Save the log message, to keep $0 and so on meaningful, and to
21462 # report actual input values of CONFIG_FILES etc. instead of their
21463 # values after options handling.
21464 ac_log="
21465 This file was extended by libsndfile $as_me 1.0.27, which was
21466 generated by GNU Autoconf 2.69. Invocation command line was
21467
21468 CONFIG_FILES = $CONFIG_FILES
21469 CONFIG_HEADERS = $CONFIG_HEADERS
21470 CONFIG_LINKS = $CONFIG_LINKS
21471 CONFIG_COMMANDS = $CONFIG_COMMANDS
21472 $ $0 $@
21473
21474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21475 "
21476
21477 _ACEOF
21478
21479 case $ac_config_files in *"
21480 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21481 esac
21482
21483 case $ac_config_headers in *"
21484 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21485 esac
21486
21487
21488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21489 # Files that config.status was made for.
21490 config_files="$ac_config_files"
21491 config_headers="$ac_config_headers"
21492 config_commands="$ac_config_commands"
21493
21494 _ACEOF
21495
21496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21497 ac_cs_usage="\
21498 \`$as_me' instantiates files and other configuration actions
21499 from templates according to the current configuration. Unless the files
21500 and actions are specified as TAGs, all are instantiated by default.
21501
21502 Usage: $0 [OPTION]... [TAG]...
21503
21504 -h, --help print this help, then exit
21505 -V, --version print version number and configuration settings, then exit
21506 --config print configuration, then exit
21507 -q, --quiet, --silent
21508 do not print progress messages
21509 -d, --debug don't remove temporary files
21510 --recheck update $as_me by reconfiguring in the same conditions
21511 --file=FILE[:TEMPLATE]
21512 instantiate the configuration file FILE
21513 --header=FILE[:TEMPLATE]
21514 instantiate the configuration header FILE
21515
21516 Configuration files:
21517 $config_files
21518
21519 Configuration headers:
21520 $config_headers
21521
21522 Configuration commands:
21523 $config_commands
21524
21525 Report bugs to <sndfile@mega-nerd.com>.
21526 libsndfile home page: <http://www.mega-nerd.com/libsndfile/>."
21527
21528 _ACEOF
21529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21530 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21531 ac_cs_version="\\
21532 libsndfile config.status 1.0.27
21533 configured by $0, generated by GNU Autoconf 2.69,
21534 with options \\"\$ac_cs_config\\"
21535
21536 Copyright (C) 2012 Free Software Foundation, Inc.
21537 This config.status script is free software; the Free Software Foundation
21538 gives unlimited permission to copy, distribute and modify it."
21539
21540 ac_pwd='$ac_pwd'
21541 srcdir='$srcdir'
21542 INSTALL='$INSTALL'
21543 MKDIR_P='$MKDIR_P'
21544 AWK='$AWK'
21545 test -n "\$AWK" || AWK=awk
21546 _ACEOF
21547
21548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21549 # The default lists apply if the user does not specify any file.
21550 ac_need_defaults=:
21551 while test $# != 0
21552 do
21553 case $1 in
21554 --*=?*)
21555 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21556 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21557 ac_shift=:
21558 ;;
21559 --*=)
21560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21561 ac_optarg=
21562 ac_shift=:
21563 ;;
21564 *)
21565 ac_option=$1
21566 ac_optarg=$2
21567 ac_shift=shift
21568 ;;
21569 esac
21570
21571 case $ac_option in
21572 # Handling of the options.
21573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21574 ac_cs_recheck=: ;;
21575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21576 $as_echo "$ac_cs_version"; exit ;;
21577 --config | --confi | --conf | --con | --co | --c )
21578 $as_echo "$ac_cs_config"; exit ;;
21579 --debug | --debu | --deb | --de | --d | -d )
21580 debug=: ;;
21581 --file | --fil | --fi | --f )
21582 $ac_shift
21583 case $ac_optarg in
21584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21585 '') as_fn_error $? "missing file argument" ;;
21586 esac
21587 as_fn_append CONFIG_FILES " '$ac_optarg'"
21588 ac_need_defaults=false;;
21589 --header | --heade | --head | --hea )
21590 $ac_shift
21591 case $ac_optarg in
21592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21593 esac
21594 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21595 ac_need_defaults=false;;
21596 --he | --h)
21597 # Conflict between --help and --header
21598 as_fn_error $? "ambiguous option: \`$1'
21599 Try \`$0 --help' for more information.";;
21600 --help | --hel | -h )
21601 $as_echo "$ac_cs_usage"; exit ;;
21602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21603 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21604 ac_cs_silent=: ;;
21605
21606 # This is an error.
21607 -*) as_fn_error $? "unrecognized option: \`$1'
21608 Try \`$0 --help' for more information." ;;
21609
21610 *) as_fn_append ac_config_targets " $1"
21611 ac_need_defaults=false ;;
21612
21613 esac
21614 shift
21615 done
21616
21617 ac_configure_extra_args=
21618
21619 if $ac_cs_silent; then
21620 exec 6>/dev/null
21621 ac_configure_extra_args="$ac_configure_extra_args --silent"
21622 fi
21623
21624 _ACEOF
21625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21626 if \$ac_cs_recheck; then
21627 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21628 shift
21629 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21630 CONFIG_SHELL='$SHELL'
21631 export CONFIG_SHELL
21632 exec "\$@"
21633 fi
21634
21635 _ACEOF
21636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21637 exec 5>>config.log
21638 {
21639 echo
21640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21641 ## Running $as_me. ##
21642 _ASBOX
21643 $as_echo "$ac_log"
21644 } >&5
21645
21646 _ACEOF
21647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21648 #
21649 # INIT-COMMANDS
21650 #
21651 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21652
21653
21654 # The HP-UX ksh and POSIX shell print the target directory to stdout
21655 # if CDPATH is set.
21656 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21657
21658 sed_quote_subst='$sed_quote_subst'
21659 double_quote_subst='$double_quote_subst'
21660 delay_variable_subst='$delay_variable_subst'
21661 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21662 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21663 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21664 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21665 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21666 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21667 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21668 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21669 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21670 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21671 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21672 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21673 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21674 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21675 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21676 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21677 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21678 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21679 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21680 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21681 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21682 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21683 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21684 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21685 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21686 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21687 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21688 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21689 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21690 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21691 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21692 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21693 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21694 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21695 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21696 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21697 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21698 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21699 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21700 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21701 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21702 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21703 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21704 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21705 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21706 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21707 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21708 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21709 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21710 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21711 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21712 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21713 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21714 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21715 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21716 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21717 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21718 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21719 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"`'
21720 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21721 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21722 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21723 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21724 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21725 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21726 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21727 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21728 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21729 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21730 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21731 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21732 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21733 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21734 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21735 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21736 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21737 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21738 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21739 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21740 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21741 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21742 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21743 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21744 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21745 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21746 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21747 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21748 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21749 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21750 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21751 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21752 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21753 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21754 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21755 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21756 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21757 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21758 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21759 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21760 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21761 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21762 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21763 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21764 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21765 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21766 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21767 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21768 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21769 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21770 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21771 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21772 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21773 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21774 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21775 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21776 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21777 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21778 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21779 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21780 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21781 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21782 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21783 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21784 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21785 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21786 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21787 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21788 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21789 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21790 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21791 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21792 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21793 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21794 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21795 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21796 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21797 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21798 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21799 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21800 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21801 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21802 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21803 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
21804 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21805 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
21806 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21807 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
21808 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21809 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
21810 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21811 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
21812 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21813 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
21814 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21815 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
21816 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21817 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
21818 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21819 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
21820 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21821 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
21822 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21823 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
21824 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21825 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
21826 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21827 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
21828 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21829 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
21830 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21831 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
21832 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21833 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
21834 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21835 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
21836 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21837 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
21838 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21839 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
21840 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21841 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
21842 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21843 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
21844 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21845 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
21846 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21847 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
21848 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21849 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
21850 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21851 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
21852 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21853 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
21854 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21855 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
21856 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21857 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
21858 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21859 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
21860 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21861 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
21862 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21863 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
21864 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21865 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
21866 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21867 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
21868 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21869 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
21870 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21871 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
21872 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21873 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
21874 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21875 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
21876 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21877 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
21878 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21879 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
21880 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21881 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
21882 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21883 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
21884 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21885 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
21886 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21887 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
21888 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21889 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
21890 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21891 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
21892 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21893 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
21894 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21895 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
21896 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21897 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
21898
21899 LTCC='$LTCC'
21900 LTCFLAGS='$LTCFLAGS'
21901 compiler='$compiler_DEFAULT'
21902
21903 # A function that is used when there is no print builtin or printf.
21904 func_fallback_echo ()
21905 {
21906 eval 'cat <<_LTECHO_EOF
21907 \$1
21908 _LTECHO_EOF'
21909 }
21910
21911 # Quote evaled strings.
21912 for var in SHELL \
21913 ECHO \
21914 PATH_SEPARATOR \
21915 SED \
21916 GREP \
21917 EGREP \
21918 FGREP \
21919 LD \
21920 NM \
21921 LN_S \
21922 lt_SP2NL \
21923 lt_NL2SP \
21924 reload_flag \
21925 OBJDUMP \
21926 deplibs_check_method \
21927 file_magic_cmd \
21928 file_magic_glob \
21929 want_nocaseglob \
21930 DLLTOOL \
21931 sharedlib_from_linklib_cmd \
21932 AR \
21933 AR_FLAGS \
21934 archiver_list_spec \
21935 STRIP \
21936 RANLIB \
21937 CC \
21938 CFLAGS \
21939 compiler \
21940 lt_cv_sys_global_symbol_pipe \
21941 lt_cv_sys_global_symbol_to_cdecl \
21942 lt_cv_sys_global_symbol_to_import \
21943 lt_cv_sys_global_symbol_to_c_name_address \
21944 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21945 lt_cv_nm_interface \
21946 nm_file_list_spec \
21947 lt_cv_truncate_bin \
21948 lt_prog_compiler_no_builtin_flag \
21949 lt_prog_compiler_pic \
21950 lt_prog_compiler_wl \
21951 lt_prog_compiler_static \
21952 lt_cv_prog_compiler_c_o \
21953 need_locks \
21954 MANIFEST_TOOL \
21955 DSYMUTIL \
21956 NMEDIT \
21957 LIPO \
21958 OTOOL \
21959 OTOOL64 \
21960 shrext_cmds \
21961 export_dynamic_flag_spec \
21962 whole_archive_flag_spec \
21963 compiler_needs_object \
21964 with_gnu_ld \
21965 allow_undefined_flag \
21966 no_undefined_flag \
21967 hardcode_libdir_flag_spec \
21968 hardcode_libdir_separator \
21969 exclude_expsyms \
21970 include_expsyms \
21971 file_list_spec \
21972 variables_saved_for_relink \
21973 libname_spec \
21974 library_names_spec \
21975 soname_spec \
21976 install_override_mode \
21977 finish_eval \
21978 old_striplib \
21979 striplib \
21980 compiler_lib_search_dirs \
21981 predep_objects \
21982 postdep_objects \
21983 predeps \
21984 postdeps \
21985 compiler_lib_search_path \
21986 LD_CXX \
21987 LD_RC \
21988 reload_flag_CXX \
21989 reload_flag_RC \
21990 compiler_CXX \
21991 compiler_RC \
21992 lt_prog_compiler_no_builtin_flag_CXX \
21993 lt_prog_compiler_no_builtin_flag_RC \
21994 lt_prog_compiler_pic_CXX \
21995 lt_prog_compiler_pic_RC \
21996 lt_prog_compiler_wl_CXX \
21997 lt_prog_compiler_wl_RC \
21998 lt_prog_compiler_static_CXX \
21999 lt_prog_compiler_static_RC \
22000 lt_cv_prog_compiler_c_o_CXX \
22001 lt_cv_prog_compiler_c_o_RC \
22002 export_dynamic_flag_spec_CXX \
22003 export_dynamic_flag_spec_RC \
22004 whole_archive_flag_spec_CXX \
22005 whole_archive_flag_spec_RC \
22006 compiler_needs_object_CXX \
22007 compiler_needs_object_RC \
22008 with_gnu_ld_CXX \
22009 with_gnu_ld_RC \
22010 allow_undefined_flag_CXX \
22011 allow_undefined_flag_RC \
22012 no_undefined_flag_CXX \
22013 no_undefined_flag_RC \
22014 hardcode_libdir_flag_spec_CXX \
22015 hardcode_libdir_flag_spec_RC \
22016 hardcode_libdir_separator_CXX \
22017 hardcode_libdir_separator_RC \
22018 exclude_expsyms_CXX \
22019 exclude_expsyms_RC \
22020 include_expsyms_CXX \
22021 include_expsyms_RC \
22022 file_list_spec_CXX \
22023 file_list_spec_RC \
22024 compiler_lib_search_dirs_CXX \
22025 compiler_lib_search_dirs_RC \
22026 predep_objects_CXX \
22027 predep_objects_RC \
22028 postdep_objects_CXX \
22029 postdep_objects_RC \
22030 predeps_CXX \
22031 predeps_RC \
22032 postdeps_CXX \
22033 postdeps_RC \
22034 compiler_lib_search_path_CXX \
22035 compiler_lib_search_path_RC; do
22036 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22037 *[\\\\\\\`\\"\\\$]*)
22038 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22039 ;;
22040 *)
22041 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22042 ;;
22043 esac
22044 done
22045
22046 # Double-quote double-evaled strings.
22047 for var in reload_cmds \
22048 old_postinstall_cmds \
22049 old_postuninstall_cmds \
22050 old_archive_cmds \
22051 extract_expsyms_cmds \
22052 old_archive_from_new_cmds \
22053 old_archive_from_expsyms_cmds \
22054 archive_cmds \
22055 archive_expsym_cmds \
22056 module_cmds \
22057 module_expsym_cmds \
22058 export_symbols_cmds \
22059 prelink_cmds \
22060 postlink_cmds \
22061 postinstall_cmds \
22062 postuninstall_cmds \
22063 finish_cmds \
22064 sys_lib_search_path_spec \
22065 configure_time_dlsearch_path \
22066 configure_time_lt_sys_library_path \
22067 reload_cmds_CXX \
22068 reload_cmds_RC \
22069 old_archive_cmds_CXX \
22070 old_archive_cmds_RC \
22071 old_archive_from_new_cmds_CXX \
22072 old_archive_from_new_cmds_RC \
22073 old_archive_from_expsyms_cmds_CXX \
22074 old_archive_from_expsyms_cmds_RC \
22075 archive_cmds_CXX \
22076 archive_cmds_RC \
22077 archive_expsym_cmds_CXX \
22078 archive_expsym_cmds_RC \
22079 module_cmds_CXX \
22080 module_cmds_RC \
22081 module_expsym_cmds_CXX \
22082 module_expsym_cmds_RC \
22083 export_symbols_cmds_CXX \
22084 export_symbols_cmds_RC \
22085 prelink_cmds_CXX \
22086 prelink_cmds_RC \
22087 postlink_cmds_CXX \
22088 postlink_cmds_RC; do
22089 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22090 *[\\\\\\\`\\"\\\$]*)
22091 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22092 ;;
22093 *)
22094 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22095 ;;
22096 esac
22097 done
22098
22099 ac_aux_dir='$ac_aux_dir'
22100
22101 # See if we are running on zsh, and set the options that allow our
22102 # commands through without removal of \ escapes INIT.
22103 if test -n "\${ZSH_VERSION+set}"; then
22104 setopt NO_GLOB_SUBST
22105 fi
22106
22107
22108 PACKAGE='$PACKAGE'
22109 VERSION='$VERSION'
22110 RM='$RM'
22111 ofile='$ofile'
22112
22113
22114
22115
22116
22117
22118
22119
22120 _ACEOF
22121
22122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22123
22124 # Handling of arguments.
22125 for ac_config_target in $ac_config_targets
22126 do
22127 case $ac_config_target in
22128 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22129 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22130 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22131 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22132 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22133 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22134 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22135 "regtest/Makefile") CONFIG_FILES="$CONFIG_FILES regtest/Makefile" ;;
22136 "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;;
22137 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22138 "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
22139 "Octave/Makefile") CONFIG_FILES="$CONFIG_FILES Octave/Makefile" ;;
22140 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
22141 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22142 "src/version-metadata.rc") CONFIG_FILES="$CONFIG_FILES src/version-metadata.rc" ;;
22143 "tests/test_wrapper.sh") CONFIG_FILES="$CONFIG_FILES tests/test_wrapper.sh" ;;
22144 "tests/pedantic-header-test.sh") CONFIG_FILES="$CONFIG_FILES tests/pedantic-header-test.sh" ;;
22145 "doc/libsndfile.css") CONFIG_FILES="$CONFIG_FILES doc/libsndfile.css" ;;
22146 "Scripts/build-test-tarball.mk") CONFIG_FILES="$CONFIG_FILES Scripts/build-test-tarball.mk" ;;
22147 "libsndfile.spec") CONFIG_FILES="$CONFIG_FILES libsndfile.spec" ;;
22148 "sndfile.pc") CONFIG_FILES="$CONFIG_FILES sndfile.pc" ;;
22149 "src/sndfile.h") CONFIG_FILES="$CONFIG_FILES src/sndfile.h" ;;
22150 "echo-install-dirs") CONFIG_FILES="$CONFIG_FILES echo-install-dirs" ;;
22151
22152 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22153 esac
22154 done
22155
22156
22157 # If the user did not use the arguments to specify the items to instantiate,
22158 # then the envvar interface is used. Set only those that are not.
22159 # We use the long form for the default assignment because of an extremely
22160 # bizarre bug on SunOS 4.1.3.
22161 if $ac_need_defaults; then
22162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22165 fi
22166
22167 # Have a temporary directory for convenience. Make it in the build tree
22168 # simply because there is no reason against having it here, and in addition,
22169 # creating and moving files from /tmp can sometimes cause problems.
22170 # Hook for its removal unless debugging.
22171 # Note that there is a small window in which the directory will not be cleaned:
22172 # after its creation but before its name has been assigned to `$tmp'.
22173 $debug ||
22174 {
22175 tmp= ac_tmp=
22176 trap 'exit_status=$?
22177 : "${ac_tmp:=$tmp}"
22178 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22179 ' 0
22180 trap 'as_fn_exit 1' 1 2 13 15
22181 }
22182 # Create a (secure) tmp directory for tmp files.
22183
22184 {
22185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22186 test -d "$tmp"
22187 } ||
22188 {
22189 tmp=./conf$$-$RANDOM
22190 (umask 077 && mkdir "$tmp")
22191 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22192 ac_tmp=$tmp
22193
22194 # Set up the scripts for CONFIG_FILES section.
22195 # No need to generate them if there are no CONFIG_FILES.
22196 # This happens for instance with `./config.status config.h'.
22197 if test -n "$CONFIG_FILES"; then
22198
22199
22200 ac_cr=`echo X | tr X '\015'`
22201 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22202 # But we know of no other shell where ac_cr would be empty at this
22203 # point, so we can use a bashism as a fallback.
22204 if test "x$ac_cr" = x; then
22205 eval ac_cr=\$\'\\r\'
22206 fi
22207 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22208 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22209 ac_cs_awk_cr='\\r'
22210 else
22211 ac_cs_awk_cr=$ac_cr
22212 fi
22213
22214 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22215 _ACEOF
22216
22217
22218 {
22219 echo "cat >conf$$subs.awk <<_ACEOF" &&
22220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22221 echo "_ACEOF"
22222 } >conf$$subs.sh ||
22223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22224 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22225 ac_delim='%!_!# '
22226 for ac_last_try in false false false false false :; do
22227 . ./conf$$subs.sh ||
22228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22229
22230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22231 if test $ac_delim_n = $ac_delim_num; then
22232 break
22233 elif $ac_last_try; then
22234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22235 else
22236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22237 fi
22238 done
22239 rm -f conf$$subs.sh
22240
22241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22242 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22243 _ACEOF
22244 sed -n '
22245 h
22246 s/^/S["/; s/!.*/"]=/
22247 p
22248 g
22249 s/^[^!]*!//
22250 :repl
22251 t repl
22252 s/'"$ac_delim"'$//
22253 t delim
22254 :nl
22255 h
22256 s/\(.\{148\}\)..*/\1/
22257 t more1
22258 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22259 p
22260 n
22261 b repl
22262 :more1
22263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22264 p
22265 g
22266 s/.\{148\}//
22267 t nl
22268 :delim
22269 h
22270 s/\(.\{148\}\)..*/\1/
22271 t more2
22272 s/["\\]/\\&/g; s/^/"/; s/$/"/
22273 p
22274 b
22275 :more2
22276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22277 p
22278 g
22279 s/.\{148\}//
22280 t delim
22281 ' <conf$$subs.awk | sed '
22282 /^[^""]/{
22283 N
22284 s/\n//
22285 }
22286 ' >>$CONFIG_STATUS || ac_write_fail=1
22287 rm -f conf$$subs.awk
22288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22289 _ACAWK
22290 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22291 for (key in S) S_is_set[key] = 1
22292 FS = ""
22293
22294 }
22295 {
22296 line = $ 0
22297 nfields = split(line, field, "@")
22298 substed = 0
22299 len = length(field[1])
22300 for (i = 2; i < nfields; i++) {
22301 key = field[i]
22302 keylen = length(key)
22303 if (S_is_set[key]) {
22304 value = S[key]
22305 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22306 len += length(value) + length(field[++i])
22307 substed = 1
22308 } else
22309 len += 1 + keylen
22310 }
22311
22312 print line
22313 }
22314
22315 _ACAWK
22316 _ACEOF
22317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22318 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22319 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22320 else
22321 cat
22322 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22323 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22324 _ACEOF
22325
22326 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22327 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22328 # trailing colons and then remove the whole line if VPATH becomes empty
22329 # (actually we leave an empty line to preserve line numbers).
22330 if test "x$srcdir" = x.; then
22331 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22332 h
22333 s///
22334 s/^/:/
22335 s/[ ]*$/:/
22336 s/:\$(srcdir):/:/g
22337 s/:\${srcdir}:/:/g
22338 s/:@srcdir@:/:/g
22339 s/^:*//
22340 s/:*$//
22341 x
22342 s/\(=[ ]*\).*/\1/
22343 G
22344 s/\n//
22345 s/^[^=]*=[ ]*$//
22346 }'
22347 fi
22348
22349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22350 fi # test -n "$CONFIG_FILES"
22351
22352 # Set up the scripts for CONFIG_HEADERS section.
22353 # No need to generate them if there are no CONFIG_HEADERS.
22354 # This happens for instance with `./config.status Makefile'.
22355 if test -n "$CONFIG_HEADERS"; then
22356 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22357 BEGIN {
22358 _ACEOF
22359
22360 # Transform confdefs.h into an awk script `defines.awk', embedded as
22361 # here-document in config.status, that substitutes the proper values into
22362 # config.h.in to produce config.h.
22363
22364 # Create a delimiter string that does not exist in confdefs.h, to ease
22365 # handling of long lines.
22366 ac_delim='%!_!# '
22367 for ac_last_try in false false :; do
22368 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22369 if test -z "$ac_tt"; then
22370 break
22371 elif $ac_last_try; then
22372 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22373 else
22374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22375 fi
22376 done
22377
22378 # For the awk script, D is an array of macro values keyed by name,
22379 # likewise P contains macro parameters if any. Preserve backslash
22380 # newline sequences.
22381
22382 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22383 sed -n '
22384 s/.\{148\}/&'"$ac_delim"'/g
22385 t rset
22386 :rset
22387 s/^[ ]*#[ ]*define[ ][ ]*/ /
22388 t def
22389 d
22390 :def
22391 s/\\$//
22392 t bsnl
22393 s/["\\]/\\&/g
22394 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22395 D["\1"]=" \3"/p
22396 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22397 d
22398 :bsnl
22399 s/["\\]/\\&/g
22400 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22401 D["\1"]=" \3\\\\\\n"\\/p
22402 t cont
22403 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22404 t cont
22405 d
22406 :cont
22407 n
22408 s/.\{148\}/&'"$ac_delim"'/g
22409 t clear
22410 :clear
22411 s/\\$//
22412 t bsnlc
22413 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22414 d
22415 :bsnlc
22416 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22417 b cont
22418 ' <confdefs.h | sed '
22419 s/'"$ac_delim"'/"\\\
22420 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22421
22422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22423 for (key in D) D_is_set[key] = 1
22424 FS = ""
22425 }
22426 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22427 line = \$ 0
22428 split(line, arg, " ")
22429 if (arg[1] == "#") {
22430 defundef = arg[2]
22431 mac1 = arg[3]
22432 } else {
22433 defundef = substr(arg[1], 2)
22434 mac1 = arg[2]
22435 }
22436 split(mac1, mac2, "(") #)
22437 macro = mac2[1]
22438 prefix = substr(line, 1, index(line, defundef) - 1)
22439 if (D_is_set[macro]) {
22440 # Preserve the white space surrounding the "#".
22441 print prefix "define", macro P[macro] D[macro]
22442 next
22443 } else {
22444 # Replace #undef with comments. This is necessary, for example,
22445 # in the case of _POSIX_SOURCE, which is predefined and required
22446 # on some systems where configure will not decide to define it.
22447 if (defundef == "undef") {
22448 print "/*", prefix defundef, macro, "*/"
22449 next
22450 }
22451 }
22452 }
22453 { print }
22454 _ACAWK
22455 _ACEOF
22456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22457 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22458 fi # test -n "$CONFIG_HEADERS"
22459
22460
22461 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22462 shift
22463 for ac_tag
22464 do
22465 case $ac_tag in
22466 :[FHLC]) ac_mode=$ac_tag; continue;;
22467 esac
22468 case $ac_mode$ac_tag in
22469 :[FHL]*:*);;
22470 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22471 :[FH]-) ac_tag=-:-;;
22472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22473 esac
22474 ac_save_IFS=$IFS
22475 IFS=:
22476 set x $ac_tag
22477 IFS=$ac_save_IFS
22478 shift
22479 ac_file=$1
22480 shift
22481
22482 case $ac_mode in
22483 :L) ac_source=$1;;
22484 :[FH])
22485 ac_file_inputs=
22486 for ac_f
22487 do
22488 case $ac_f in
22489 -) ac_f="$ac_tmp/stdin";;
22490 *) # Look for the file first in the build tree, then in the source tree
22491 # (if the path is not absolute). The absolute path cannot be DOS-style,
22492 # because $ac_f cannot contain `:'.
22493 test -f "$ac_f" ||
22494 case $ac_f in
22495 [\\/$]*) false;;
22496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22497 esac ||
22498 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22499 esac
22500 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22501 as_fn_append ac_file_inputs " '$ac_f'"
22502 done
22503
22504 # Let's still pretend it is `configure' which instantiates (i.e., don't
22505 # use $as_me), people would be surprised to read:
22506 # /* config.h. Generated by config.status. */
22507 configure_input='Generated from '`
22508 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22509 `' by configure.'
22510 if test x"$ac_file" != x-; then
22511 configure_input="$ac_file. $configure_input"
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22513 $as_echo "$as_me: creating $ac_file" >&6;}
22514 fi
22515 # Neutralize special characters interpreted by sed in replacement strings.
22516 case $configure_input in #(
22517 *\&* | *\|* | *\\* )
22518 ac_sed_conf_input=`$as_echo "$configure_input" |
22519 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22520 *) ac_sed_conf_input=$configure_input;;
22521 esac
22522
22523 case $ac_tag in
22524 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22526 esac
22527 ;;
22528 esac
22529
22530 ac_dir=`$as_dirname -- "$ac_file" ||
22531 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22532 X"$ac_file" : 'X\(//\)[^/]' \| \
22533 X"$ac_file" : 'X\(//\)$' \| \
22534 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22535 $as_echo X"$ac_file" |
22536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22537 s//\1/
22538 q
22539 }
22540 /^X\(\/\/\)[^/].*/{
22541 s//\1/
22542 q
22543 }
22544 /^X\(\/\/\)$/{
22545 s//\1/
22546 q
22547 }
22548 /^X\(\/\).*/{
22549 s//\1/
22550 q
22551 }
22552 s/.*/./; q'`
22553 as_dir="$ac_dir"; as_fn_mkdir_p
22554 ac_builddir=.
22555
22556 case "$ac_dir" in
22557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22558 *)
22559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22560 # A ".." for each directory in $ac_dir_suffix.
22561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22562 case $ac_top_builddir_sub in
22563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22565 esac ;;
22566 esac
22567 ac_abs_top_builddir=$ac_pwd
22568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22569 # for backward compatibility:
22570 ac_top_builddir=$ac_top_build_prefix
22571
22572 case $srcdir in
22573 .) # We are building in place.
22574 ac_srcdir=.
22575 ac_top_srcdir=$ac_top_builddir_sub
22576 ac_abs_top_srcdir=$ac_pwd ;;
22577 [\\/]* | ?:[\\/]* ) # Absolute name.
22578 ac_srcdir=$srcdir$ac_dir_suffix;
22579 ac_top_srcdir=$srcdir
22580 ac_abs_top_srcdir=$srcdir ;;
22581 *) # Relative name.
22582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22583 ac_top_srcdir=$ac_top_build_prefix$srcdir
22584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22585 esac
22586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22587
22588
22589 case $ac_mode in
22590 :F)
22591 #
22592 # CONFIG_FILE
22593 #
22594
22595 case $INSTALL in
22596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22598 esac
22599 ac_MKDIR_P=$MKDIR_P
22600 case $MKDIR_P in
22601 [\\/$]* | ?:[\\/]* ) ;;
22602 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22603 esac
22604 _ACEOF
22605
22606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22607 # If the template does not know about datarootdir, expand it.
22608 # FIXME: This hack should be removed a few years after 2.60.
22609 ac_datarootdir_hack=; ac_datarootdir_seen=
22610 ac_sed_dataroot='
22611 /datarootdir/ {
22612 p
22613 q
22614 }
22615 /@datadir@/p
22616 /@docdir@/p
22617 /@infodir@/p
22618 /@localedir@/p
22619 /@mandir@/p'
22620 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22621 *datarootdir*) ac_datarootdir_seen=yes;;
22622 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22624 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22625 _ACEOF
22626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22627 ac_datarootdir_hack='
22628 s&@datadir@&$datadir&g
22629 s&@docdir@&$docdir&g
22630 s&@infodir@&$infodir&g
22631 s&@localedir@&$localedir&g
22632 s&@mandir@&$mandir&g
22633 s&\\\${datarootdir}&$datarootdir&g' ;;
22634 esac
22635 _ACEOF
22636
22637 # Neutralize VPATH when `$srcdir' = `.'.
22638 # Shell code in configure.ac might set extrasub.
22639 # FIXME: do we really want to maintain this feature?
22640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22641 ac_sed_extra="$ac_vpsub
22642 $extrasub
22643 _ACEOF
22644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22645 :t
22646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22647 s|@configure_input@|$ac_sed_conf_input|;t t
22648 s&@top_builddir@&$ac_top_builddir_sub&;t t
22649 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22650 s&@srcdir@&$ac_srcdir&;t t
22651 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22652 s&@top_srcdir@&$ac_top_srcdir&;t t
22653 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22654 s&@builddir@&$ac_builddir&;t t
22655 s&@abs_builddir@&$ac_abs_builddir&;t t
22656 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22657 s&@INSTALL@&$ac_INSTALL&;t t
22658 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22659 $ac_datarootdir_hack
22660 "
22661 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22662 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22663
22664 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22665 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22667 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22669 which seems to be undefined. Please make sure it is defined" >&5
22670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22671 which seems to be undefined. Please make sure it is defined" >&2;}
22672
22673 rm -f "$ac_tmp/stdin"
22674 case $ac_file in
22675 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22676 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22677 esac \
22678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22679 ;;
22680 :H)
22681 #
22682 # CONFIG_HEADER
22683 #
22684 if test x"$ac_file" != x-; then
22685 {
22686 $as_echo "/* $configure_input */" \
22687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22688 } >"$ac_tmp/config.h" \
22689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22690 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22693 else
22694 rm -f "$ac_file"
22695 mv "$ac_tmp/config.h" "$ac_file" \
22696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22697 fi
22698 else
22699 $as_echo "/* $configure_input */" \
22700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22701 || as_fn_error $? "could not create -" "$LINENO" 5
22702 fi
22703 # Compute "$ac_file"'s index in $config_headers.
22704 _am_arg="$ac_file"
22705 _am_stamp_count=1
22706 for _am_header in $config_headers :; do
22707 case $_am_header in
22708 $_am_arg | $_am_arg:* )
22709 break ;;
22710 * )
22711 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22712 esac
22713 done
22714 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22715 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22716 X"$_am_arg" : 'X\(//\)[^/]' \| \
22717 X"$_am_arg" : 'X\(//\)$' \| \
22718 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22719 $as_echo X"$_am_arg" |
22720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22721 s//\1/
22722 q
22723 }
22724 /^X\(\/\/\)[^/].*/{
22725 s//\1/
22726 q
22727 }
22728 /^X\(\/\/\)$/{
22729 s//\1/
22730 q
22731 }
22732 /^X\(\/\).*/{
22733 s//\1/
22734 q
22735 }
22736 s/.*/./; q'`/stamp-h$_am_stamp_count
22737 ;;
22738
22739 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22740 $as_echo "$as_me: executing $ac_file commands" >&6;}
22741 ;;
22742 esac
22743
22744
22745 case $ac_file$ac_mode in
22746 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22747 # Older Autoconf quotes --file arguments for eval, but not when files
22748 # are listed without --file. Let's play safe and only enable the eval
22749 # if we detect the quoting.
22750 case $CONFIG_FILES in
22751 *\'*) eval set x "$CONFIG_FILES" ;;
22752 *) set x $CONFIG_FILES ;;
22753 esac
22754 shift
22755 for mf
22756 do
22757 # Strip MF so we end up with the name of the file.
22758 mf=`echo "$mf" | sed -e 's/:.*$//'`
22759 # Check whether this is an Automake generated Makefile or not.
22760 # We used to match only the files named 'Makefile.in', but
22761 # some people rename them; so instead we look at the file content.
22762 # Grep'ing the first line is not enough: some people post-process
22763 # each Makefile.in and add a new line on top of each file to say so.
22764 # Grep'ing the whole file is not good either: AIX grep has a line
22765 # limit of 2048, but all sed's we know have understand at least 4000.
22766 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22767 dirpart=`$as_dirname -- "$mf" ||
22768 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22769 X"$mf" : 'X\(//\)[^/]' \| \
22770 X"$mf" : 'X\(//\)$' \| \
22771 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22772 $as_echo X"$mf" |
22773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22774 s//\1/
22775 q
22776 }
22777 /^X\(\/\/\)[^/].*/{
22778 s//\1/
22779 q
22780 }
22781 /^X\(\/\/\)$/{
22782 s//\1/
22783 q
22784 }
22785 /^X\(\/\).*/{
22786 s//\1/
22787 q
22788 }
22789 s/.*/./; q'`
22790 else
22791 continue
22792 fi
22793 # Extract the definition of DEPDIR, am__include, and am__quote
22794 # from the Makefile without running 'make'.
22795 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22796 test -z "$DEPDIR" && continue
22797 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22798 test -z "$am__include" && continue
22799 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22800 # Find all dependency output files, they are included files with
22801 # $(DEPDIR) in their names. We invoke sed twice because it is the
22802 # simplest approach to changing $(DEPDIR) to its actual value in the
22803 # expansion.
22804 for file in `sed -n "
22805 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22806 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22807 # Make sure the directory exists.
22808 test -f "$dirpart/$file" && continue
22809 fdir=`$as_dirname -- "$file" ||
22810 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22811 X"$file" : 'X\(//\)[^/]' \| \
22812 X"$file" : 'X\(//\)$' \| \
22813 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22814 $as_echo X"$file" |
22815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22816 s//\1/
22817 q
22818 }
22819 /^X\(\/\/\)[^/].*/{
22820 s//\1/
22821 q
22822 }
22823 /^X\(\/\/\)$/{
22824 s//\1/
22825 q
22826 }
22827 /^X\(\/\).*/{
22828 s//\1/
22829 q
22830 }
22831 s/.*/./; q'`
22832 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22833 # echo "creating $dirpart/$file"
22834 echo '# dummy' > "$dirpart/$file"
22835 done
22836 done
22837 }
22838 ;;
22839 "libtool":C)
22840
22841 # See if we are running on zsh, and set the options that allow our
22842 # commands through without removal of \ escapes.
22843 if test -n "${ZSH_VERSION+set}"; then
22844 setopt NO_GLOB_SUBST
22845 fi
22846
22847 cfgfile=${ofile}T
22848 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22849 $RM "$cfgfile"
22850
22851 cat <<_LT_EOF >> "$cfgfile"
22852 #! $SHELL
22853 # Generated automatically by $as_me ($PACKAGE) $VERSION
22854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22855 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22856
22857 # Provide generalized library-building support services.
22858 # Written by Gordon Matzigkeit, 1996
22859
22860 # Copyright (C) 2014 Free Software Foundation, Inc.
22861 # This is free software; see the source for copying conditions. There is NO
22862 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22863
22864 # GNU Libtool is free software; you can redistribute it and/or modify
22865 # it under the terms of the GNU General Public License as published by
22866 # the Free Software Foundation; either version 2 of of the License, or
22867 # (at your option) any later version.
22868 #
22869 # As a special exception to the GNU General Public License, if you
22870 # distribute this file as part of a program or library that is built
22871 # using GNU Libtool, you may include this file under the same
22872 # distribution terms that you use for the rest of that program.
22873 #
22874 # GNU Libtool is distributed in the hope that it will be useful, but
22875 # WITHOUT ANY WARRANTY; without even the implied warranty of
22876 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22877 # GNU General Public License for more details.
22878 #
22879 # You should have received a copy of the GNU General Public License
22880 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22881
22882
22883 # The names of the tagged configurations supported by this script.
22884 available_tags='CXX RC '
22885
22886 # Configured defaults for sys_lib_dlsearch_path munging.
22887 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22888
22889 # ### BEGIN LIBTOOL CONFIG
22890
22891 # Which release of libtool.m4 was used?
22892 macro_version=$macro_version
22893 macro_revision=$macro_revision
22894
22895 # Whether or not to build shared libraries.
22896 build_libtool_libs=$enable_shared
22897
22898 # Whether or not to build static libraries.
22899 build_old_libs=$enable_static
22900
22901 # What type of objects to build.
22902 pic_mode=$pic_mode
22903
22904 # Whether or not to optimize for fast installation.
22905 fast_install=$enable_fast_install
22906
22907 # Shared archive member basename,for filename based shared library versioning on AIX.
22908 shared_archive_member_spec=$shared_archive_member_spec
22909
22910 # Shell to use when invoking shell scripts.
22911 SHELL=$lt_SHELL
22912
22913 # An echo program that protects backslashes.
22914 ECHO=$lt_ECHO
22915
22916 # The PATH separator for the build system.
22917 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22918
22919 # The host system.
22920 host_alias=$host_alias
22921 host=$host
22922 host_os=$host_os
22923
22924 # The build system.
22925 build_alias=$build_alias
22926 build=$build
22927 build_os=$build_os
22928
22929 # A sed program that does not truncate output.
22930 SED=$lt_SED
22931
22932 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22933 Xsed="\$SED -e 1s/^X//"
22934
22935 # A grep program that handles long lines.
22936 GREP=$lt_GREP
22937
22938 # An ERE matcher.
22939 EGREP=$lt_EGREP
22940
22941 # A literal string matcher.
22942 FGREP=$lt_FGREP
22943
22944 # A BSD- or MS-compatible name lister.
22945 NM=$lt_NM
22946
22947 # Whether we need soft or hard links.
22948 LN_S=$lt_LN_S
22949
22950 # What is the maximum length of a command?
22951 max_cmd_len=$max_cmd_len
22952
22953 # Object file suffix (normally "o").
22954 objext=$ac_objext
22955
22956 # Executable file suffix (normally "").
22957 exeext=$exeext
22958
22959 # whether the shell understands "unset".
22960 lt_unset=$lt_unset
22961
22962 # turn spaces into newlines.
22963 SP2NL=$lt_lt_SP2NL
22964
22965 # turn newlines into spaces.
22966 NL2SP=$lt_lt_NL2SP
22967
22968 # convert \$build file names to \$host format.
22969 to_host_file_cmd=$lt_cv_to_host_file_cmd
22970
22971 # convert \$build files to toolchain format.
22972 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22973
22974 # An object symbol dumper.
22975 OBJDUMP=$lt_OBJDUMP
22976
22977 # Method to check whether dependent libraries are shared objects.
22978 deplibs_check_method=$lt_deplibs_check_method
22979
22980 # Command to use when deplibs_check_method = "file_magic".
22981 file_magic_cmd=$lt_file_magic_cmd
22982
22983 # How to find potential files when deplibs_check_method = "file_magic".
22984 file_magic_glob=$lt_file_magic_glob
22985
22986 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22987 want_nocaseglob=$lt_want_nocaseglob
22988
22989 # DLL creation program.
22990 DLLTOOL=$lt_DLLTOOL
22991
22992 # Command to associate shared and link libraries.
22993 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22994
22995 # The archiver.
22996 AR=$lt_AR
22997
22998 # Flags to create an archive.
22999 AR_FLAGS=$lt_AR_FLAGS
23000
23001 # How to feed a file listing to the archiver.
23002 archiver_list_spec=$lt_archiver_list_spec
23003
23004 # A symbol stripping program.
23005 STRIP=$lt_STRIP
23006
23007 # Commands used to install an old-style archive.
23008 RANLIB=$lt_RANLIB
23009 old_postinstall_cmds=$lt_old_postinstall_cmds
23010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23011
23012 # Whether to use a lock for old archive extraction.
23013 lock_old_archive_extraction=$lock_old_archive_extraction
23014
23015 # A C compiler.
23016 LTCC=$lt_CC
23017
23018 # LTCC compiler flags.
23019 LTCFLAGS=$lt_CFLAGS
23020
23021 # Take the output of nm and produce a listing of raw symbols and C names.
23022 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23023
23024 # Transform the output of nm in a proper C declaration.
23025 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23026
23027 # Transform the output of nm into a list of symbols to manually relocate.
23028 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23029
23030 # Transform the output of nm in a C name address pair.
23031 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23032
23033 # Transform the output of nm in a C name address pair when lib prefix is needed.
23034 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23035
23036 # The name lister interface.
23037 nm_interface=$lt_lt_cv_nm_interface
23038
23039 # Specify filename containing input files for \$NM.
23040 nm_file_list_spec=$lt_nm_file_list_spec
23041
23042 # The root where to search for dependent libraries,and where our libraries should be installed.
23043 lt_sysroot=$lt_sysroot
23044
23045 # Command to truncate a binary pipe.
23046 lt_truncate_bin=$lt_lt_cv_truncate_bin
23047
23048 # The name of the directory that contains temporary libtool files.
23049 objdir=$objdir
23050
23051 # Used to examine libraries when file_magic_cmd begins with "file".
23052 MAGIC_CMD=$MAGIC_CMD
23053
23054 # Must we lock files when doing compilation?
23055 need_locks=$lt_need_locks
23056
23057 # Manifest tool.
23058 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23059
23060 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23061 DSYMUTIL=$lt_DSYMUTIL
23062
23063 # Tool to change global to local symbols on Mac OS X.
23064 NMEDIT=$lt_NMEDIT
23065
23066 # Tool to manipulate fat objects and archives on Mac OS X.
23067 LIPO=$lt_LIPO
23068
23069 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23070 OTOOL=$lt_OTOOL
23071
23072 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23073 OTOOL64=$lt_OTOOL64
23074
23075 # Old archive suffix (normally "a").
23076 libext=$libext
23077
23078 # Shared library suffix (normally ".so").
23079 shrext_cmds=$lt_shrext_cmds
23080
23081 # The commands to extract the exported symbol list from a shared archive.
23082 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23083
23084 # Variables whose values should be saved in libtool wrapper scripts and
23085 # restored at link time.
23086 variables_saved_for_relink=$lt_variables_saved_for_relink
23087
23088 # Do we need the "lib" prefix for modules?
23089 need_lib_prefix=$need_lib_prefix
23090
23091 # Do we need a version for libraries?
23092 need_version=$need_version
23093
23094 # Library versioning type.
23095 version_type=$version_type
23096
23097 # Shared library runtime path variable.
23098 runpath_var=$runpath_var
23099
23100 # Shared library path variable.
23101 shlibpath_var=$shlibpath_var
23102
23103 # Is shlibpath searched before the hard-coded library search path?
23104 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23105
23106 # Format of library name prefix.
23107 libname_spec=$lt_libname_spec
23108
23109 # List of archive names. First name is the real one, the rest are links.
23110 # The last name is the one that the linker finds with -lNAME
23111 library_names_spec=$lt_library_names_spec
23112
23113 # The coded name of the library, if different from the real name.
23114 soname_spec=$lt_soname_spec
23115
23116 # Permission mode override for installation of shared libraries.
23117 install_override_mode=$lt_install_override_mode
23118
23119 # Command to use after installation of a shared archive.
23120 postinstall_cmds=$lt_postinstall_cmds
23121
23122 # Command to use after uninstallation of a shared archive.
23123 postuninstall_cmds=$lt_postuninstall_cmds
23124
23125 # Commands used to finish a libtool library installation in a directory.
23126 finish_cmds=$lt_finish_cmds
23127
23128 # As "finish_cmds", except a single script fragment to be evaled but
23129 # not shown.
23130 finish_eval=$lt_finish_eval
23131
23132 # Whether we should hardcode library paths into libraries.
23133 hardcode_into_libs=$hardcode_into_libs
23134
23135 # Compile-time system search path for libraries.
23136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23137
23138 # Detected run-time system search path for libraries.
23139 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23140
23141 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23142 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23143
23144 # Whether dlopen is supported.
23145 dlopen_support=$enable_dlopen
23146
23147 # Whether dlopen of programs is supported.
23148 dlopen_self=$enable_dlopen_self
23149
23150 # Whether dlopen of statically linked programs is supported.
23151 dlopen_self_static=$enable_dlopen_self_static
23152
23153 # Commands to strip libraries.
23154 old_striplib=$lt_old_striplib
23155 striplib=$lt_striplib
23156
23157
23158 # The linker used to build libraries.
23159 LD=$lt_LD
23160
23161 # How to create reloadable object files.
23162 reload_flag=$lt_reload_flag
23163 reload_cmds=$lt_reload_cmds
23164
23165 # Commands used to build an old-style archive.
23166 old_archive_cmds=$lt_old_archive_cmds
23167
23168 # A language specific compiler.
23169 CC=$lt_compiler
23170
23171 # Is the compiler the GNU compiler?
23172 with_gcc=$GCC
23173
23174 # Compiler flag to turn off builtin functions.
23175 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23176
23177 # Additional compiler flags for building library objects.
23178 pic_flag=$lt_lt_prog_compiler_pic
23179
23180 # How to pass a linker flag through the compiler.
23181 wl=$lt_lt_prog_compiler_wl
23182
23183 # Compiler flag to prevent dynamic linking.
23184 link_static_flag=$lt_lt_prog_compiler_static
23185
23186 # Does compiler simultaneously support -c and -o options?
23187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23188
23189 # Whether or not to add -lc for building shared libraries.
23190 build_libtool_need_lc=$archive_cmds_need_lc
23191
23192 # Whether or not to disallow shared libs when runtime libs are static.
23193 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23194
23195 # Compiler flag to allow reflexive dlopens.
23196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23197
23198 # Compiler flag to generate shared objects directly from archives.
23199 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23200
23201 # Whether the compiler copes with passing no objects directly.
23202 compiler_needs_object=$lt_compiler_needs_object
23203
23204 # Create an old-style archive from a shared archive.
23205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23206
23207 # Create a temporary old-style archive to link instead of a shared archive.
23208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23209
23210 # Commands used to build a shared archive.
23211 archive_cmds=$lt_archive_cmds
23212 archive_expsym_cmds=$lt_archive_expsym_cmds
23213
23214 # Commands used to build a loadable module if different from building
23215 # a shared archive.
23216 module_cmds=$lt_module_cmds
23217 module_expsym_cmds=$lt_module_expsym_cmds
23218
23219 # Whether we are building with GNU ld or not.
23220 with_gnu_ld=$lt_with_gnu_ld
23221
23222 # Flag that allows shared libraries with undefined symbols to be built.
23223 allow_undefined_flag=$lt_allow_undefined_flag
23224
23225 # Flag that enforces no undefined symbols.
23226 no_undefined_flag=$lt_no_undefined_flag
23227
23228 # Flag to hardcode \$libdir into a binary during linking.
23229 # This must work even if \$libdir does not exist
23230 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23231
23232 # Whether we need a single "-rpath" flag with a separated argument.
23233 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23234
23235 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23236 # DIR into the resulting binary.
23237 hardcode_direct=$hardcode_direct
23238
23239 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23240 # DIR into the resulting binary and the resulting library dependency is
23241 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23242 # library is relocated.
23243 hardcode_direct_absolute=$hardcode_direct_absolute
23244
23245 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23246 # into the resulting binary.
23247 hardcode_minus_L=$hardcode_minus_L
23248
23249 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23250 # into the resulting binary.
23251 hardcode_shlibpath_var=$hardcode_shlibpath_var
23252
23253 # Set to "yes" if building a shared library automatically hardcodes DIR
23254 # into the library and all subsequent libraries and executables linked
23255 # against it.
23256 hardcode_automatic=$hardcode_automatic
23257
23258 # Set to yes if linker adds runtime paths of dependent libraries
23259 # to runtime path list.
23260 inherit_rpath=$inherit_rpath
23261
23262 # Whether libtool must link a program against all its dependency libraries.
23263 link_all_deplibs=$link_all_deplibs
23264
23265 # Set to "yes" if exported symbols are required.
23266 always_export_symbols=$always_export_symbols
23267
23268 # The commands to list exported symbols.
23269 export_symbols_cmds=$lt_export_symbols_cmds
23270
23271 # Symbols that should not be listed in the preloaded symbols.
23272 exclude_expsyms=$lt_exclude_expsyms
23273
23274 # Symbols that must always be exported.
23275 include_expsyms=$lt_include_expsyms
23276
23277 # Commands necessary for linking programs (against libraries) with templates.
23278 prelink_cmds=$lt_prelink_cmds
23279
23280 # Commands necessary for finishing linking programs.
23281 postlink_cmds=$lt_postlink_cmds
23282
23283 # Specify filename containing input files.
23284 file_list_spec=$lt_file_list_spec
23285
23286 # How to hardcode a shared library path into an executable.
23287 hardcode_action=$hardcode_action
23288
23289 # The directories searched by this compiler when creating a shared library.
23290 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23291
23292 # Dependencies to place before and after the objects being linked to
23293 # create a shared library.
23294 predep_objects=$lt_predep_objects
23295 postdep_objects=$lt_postdep_objects
23296 predeps=$lt_predeps
23297 postdeps=$lt_postdeps
23298
23299 # The library search path used internally by the compiler when linking
23300 # a shared library.
23301 compiler_lib_search_path=$lt_compiler_lib_search_path
23302
23303 # ### END LIBTOOL CONFIG
23304
23305 _LT_EOF
23306
23307 cat <<'_LT_EOF' >> "$cfgfile"
23308
23309 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23310
23311 # func_munge_path_list VARIABLE PATH
23312 # -----------------------------------
23313 # VARIABLE is name of variable containing _space_ separated list of
23314 # directories to be munged by the contents of PATH, which is string
23315 # having a format:
23316 # "DIR[:DIR]:"
23317 # string "DIR[ DIR]" will be prepended to VARIABLE
23318 # ":DIR[:DIR]"
23319 # string "DIR[ DIR]" will be appended to VARIABLE
23320 # "DIRP[:DIRP]::[DIRA:]DIRA"
23321 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23322 # "DIRA[ DIRA]" will be appended to VARIABLE
23323 # "DIR[:DIR]"
23324 # VARIABLE will be replaced by "DIR[ DIR]"
23325 func_munge_path_list ()
23326 {
23327 case x$2 in
23328 x)
23329 ;;
23330 *:)
23331 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23332 ;;
23333 x:*)
23334 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23335 ;;
23336 *::*)
23337 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23338 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23339 ;;
23340 *)
23341 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23342 ;;
23343 esac
23344 }
23345
23346
23347 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23348 func_cc_basename ()
23349 {
23350 for cc_temp in $*""; do
23351 case $cc_temp in
23352 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23353 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23354 \-*) ;;
23355 *) break;;
23356 esac
23357 done
23358 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23359 }
23360
23361
23362 # ### END FUNCTIONS SHARED WITH CONFIGURE
23363
23364 _LT_EOF
23365
23366 case $host_os in
23367 aix3*)
23368 cat <<\_LT_EOF >> "$cfgfile"
23369 # AIX sometimes has problems with the GCC collect2 program. For some
23370 # reason, if we set the COLLECT_NAMES environment variable, the problems
23371 # vanish in a puff of smoke.
23372 if test set != "${COLLECT_NAMES+set}"; then
23373 COLLECT_NAMES=
23374 export COLLECT_NAMES
23375 fi
23376 _LT_EOF
23377 ;;
23378 esac
23379
23380
23381 ltmain=$ac_aux_dir/ltmain.sh
23382
23383
23384 # We use sed instead of cat because bash on DJGPP gets confused if
23385 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23386 # text mode, it properly converts lines to CR/LF. This bash problem
23387 # is reportedly fixed, but why not run on old versions too?
23388 sed '$q' "$ltmain" >> "$cfgfile" \
23389 || (rm -f "$cfgfile"; exit 1)
23390
23391 mv -f "$cfgfile" "$ofile" ||
23392 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23393 chmod +x "$ofile"
23394
23395
23396 cat <<_LT_EOF >> "$ofile"
23397
23398 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23399
23400 # The linker used to build libraries.
23401 LD=$lt_LD_CXX
23402
23403 # How to create reloadable object files.
23404 reload_flag=$lt_reload_flag_CXX
23405 reload_cmds=$lt_reload_cmds_CXX
23406
23407 # Commands used to build an old-style archive.
23408 old_archive_cmds=$lt_old_archive_cmds_CXX
23409
23410 # A language specific compiler.
23411 CC=$lt_compiler_CXX
23412
23413 # Is the compiler the GNU compiler?
23414 with_gcc=$GCC_CXX
23415
23416 # Compiler flag to turn off builtin functions.
23417 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23418
23419 # Additional compiler flags for building library objects.
23420 pic_flag=$lt_lt_prog_compiler_pic_CXX
23421
23422 # How to pass a linker flag through the compiler.
23423 wl=$lt_lt_prog_compiler_wl_CXX
23424
23425 # Compiler flag to prevent dynamic linking.
23426 link_static_flag=$lt_lt_prog_compiler_static_CXX
23427
23428 # Does compiler simultaneously support -c and -o options?
23429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23430
23431 # Whether or not to add -lc for building shared libraries.
23432 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23433
23434 # Whether or not to disallow shared libs when runtime libs are static.
23435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23436
23437 # Compiler flag to allow reflexive dlopens.
23438 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23439
23440 # Compiler flag to generate shared objects directly from archives.
23441 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23442
23443 # Whether the compiler copes with passing no objects directly.
23444 compiler_needs_object=$lt_compiler_needs_object_CXX
23445
23446 # Create an old-style archive from a shared archive.
23447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23448
23449 # Create a temporary old-style archive to link instead of a shared archive.
23450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23451
23452 # Commands used to build a shared archive.
23453 archive_cmds=$lt_archive_cmds_CXX
23454 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23455
23456 # Commands used to build a loadable module if different from building
23457 # a shared archive.
23458 module_cmds=$lt_module_cmds_CXX
23459 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23460
23461 # Whether we are building with GNU ld or not.
23462 with_gnu_ld=$lt_with_gnu_ld_CXX
23463
23464 # Flag that allows shared libraries with undefined symbols to be built.
23465 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23466
23467 # Flag that enforces no undefined symbols.
23468 no_undefined_flag=$lt_no_undefined_flag_CXX
23469
23470 # Flag to hardcode \$libdir into a binary during linking.
23471 # This must work even if \$libdir does not exist
23472 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23473
23474 # Whether we need a single "-rpath" flag with a separated argument.
23475 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23476
23477 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23478 # DIR into the resulting binary.
23479 hardcode_direct=$hardcode_direct_CXX
23480
23481 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23482 # DIR into the resulting binary and the resulting library dependency is
23483 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23484 # library is relocated.
23485 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23486
23487 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23488 # into the resulting binary.
23489 hardcode_minus_L=$hardcode_minus_L_CXX
23490
23491 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23492 # into the resulting binary.
23493 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23494
23495 # Set to "yes" if building a shared library automatically hardcodes DIR
23496 # into the library and all subsequent libraries and executables linked
23497 # against it.
23498 hardcode_automatic=$hardcode_automatic_CXX
23499
23500 # Set to yes if linker adds runtime paths of dependent libraries
23501 # to runtime path list.
23502 inherit_rpath=$inherit_rpath_CXX
23503
23504 # Whether libtool must link a program against all its dependency libraries.
23505 link_all_deplibs=$link_all_deplibs_CXX
23506
23507 # Set to "yes" if exported symbols are required.
23508 always_export_symbols=$always_export_symbols_CXX
23509
23510 # The commands to list exported symbols.
23511 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23512
23513 # Symbols that should not be listed in the preloaded symbols.
23514 exclude_expsyms=$lt_exclude_expsyms_CXX
23515
23516 # Symbols that must always be exported.
23517 include_expsyms=$lt_include_expsyms_CXX
23518
23519 # Commands necessary for linking programs (against libraries) with templates.
23520 prelink_cmds=$lt_prelink_cmds_CXX
23521
23522 # Commands necessary for finishing linking programs.
23523 postlink_cmds=$lt_postlink_cmds_CXX
23524
23525 # Specify filename containing input files.
23526 file_list_spec=$lt_file_list_spec_CXX
23527
23528 # How to hardcode a shared library path into an executable.
23529 hardcode_action=$hardcode_action_CXX
23530
23531 # The directories searched by this compiler when creating a shared library.
23532 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23533
23534 # Dependencies to place before and after the objects being linked to
23535 # create a shared library.
23536 predep_objects=$lt_predep_objects_CXX
23537 postdep_objects=$lt_postdep_objects_CXX
23538 predeps=$lt_predeps_CXX
23539 postdeps=$lt_postdeps_CXX
23540
23541 # The library search path used internally by the compiler when linking
23542 # a shared library.
23543 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23544
23545 # ### END LIBTOOL TAG CONFIG: CXX
23546 _LT_EOF
23547
23548
23549 cat <<_LT_EOF >> "$ofile"
23550
23551 # ### BEGIN LIBTOOL TAG CONFIG: RC
23552
23553 # The linker used to build libraries.
23554 LD=$lt_LD_RC
23555
23556 # How to create reloadable object files.
23557 reload_flag=$lt_reload_flag_RC
23558 reload_cmds=$lt_reload_cmds_RC
23559
23560 # Commands used to build an old-style archive.
23561 old_archive_cmds=$lt_old_archive_cmds_RC
23562
23563 # A language specific compiler.
23564 CC=$lt_compiler_RC
23565
23566 # Is the compiler the GNU compiler?
23567 with_gcc=$GCC_RC
23568
23569 # Compiler flag to turn off builtin functions.
23570 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
23571
23572 # Additional compiler flags for building library objects.
23573 pic_flag=$lt_lt_prog_compiler_pic_RC
23574
23575 # How to pass a linker flag through the compiler.
23576 wl=$lt_lt_prog_compiler_wl_RC
23577
23578 # Compiler flag to prevent dynamic linking.
23579 link_static_flag=$lt_lt_prog_compiler_static_RC
23580
23581 # Does compiler simultaneously support -c and -o options?
23582 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
23583
23584 # Whether or not to add -lc for building shared libraries.
23585 build_libtool_need_lc=$archive_cmds_need_lc_RC
23586
23587 # Whether or not to disallow shared libs when runtime libs are static.
23588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
23589
23590 # Compiler flag to allow reflexive dlopens.
23591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
23592
23593 # Compiler flag to generate shared objects directly from archives.
23594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
23595
23596 # Whether the compiler copes with passing no objects directly.
23597 compiler_needs_object=$lt_compiler_needs_object_RC
23598
23599 # Create an old-style archive from a shared archive.
23600 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
23601
23602 # Create a temporary old-style archive to link instead of a shared archive.
23603 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
23604
23605 # Commands used to build a shared archive.
23606 archive_cmds=$lt_archive_cmds_RC
23607 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
23608
23609 # Commands used to build a loadable module if different from building
23610 # a shared archive.
23611 module_cmds=$lt_module_cmds_RC
23612 module_expsym_cmds=$lt_module_expsym_cmds_RC
23613
23614 # Whether we are building with GNU ld or not.
23615 with_gnu_ld=$lt_with_gnu_ld_RC
23616
23617 # Flag that allows shared libraries with undefined symbols to be built.
23618 allow_undefined_flag=$lt_allow_undefined_flag_RC
23619
23620 # Flag that enforces no undefined symbols.
23621 no_undefined_flag=$lt_no_undefined_flag_RC
23622
23623 # Flag to hardcode \$libdir into a binary during linking.
23624 # This must work even if \$libdir does not exist
23625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
23626
23627 # Whether we need a single "-rpath" flag with a separated argument.
23628 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
23629
23630 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23631 # DIR into the resulting binary.
23632 hardcode_direct=$hardcode_direct_RC
23633
23634 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23635 # DIR into the resulting binary and the resulting library dependency is
23636 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23637 # library is relocated.
23638 hardcode_direct_absolute=$hardcode_direct_absolute_RC
23639
23640 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23641 # into the resulting binary.
23642 hardcode_minus_L=$hardcode_minus_L_RC
23643
23644 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23645 # into the resulting binary.
23646 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
23647
23648 # Set to "yes" if building a shared library automatically hardcodes DIR
23649 # into the library and all subsequent libraries and executables linked
23650 # against it.
23651 hardcode_automatic=$hardcode_automatic_RC
23652
23653 # Set to yes if linker adds runtime paths of dependent libraries
23654 # to runtime path list.
23655 inherit_rpath=$inherit_rpath_RC
23656
23657 # Whether libtool must link a program against all its dependency libraries.
23658 link_all_deplibs=$link_all_deplibs_RC
23659
23660 # Set to "yes" if exported symbols are required.
23661 always_export_symbols=$always_export_symbols_RC
23662
23663 # The commands to list exported symbols.
23664 export_symbols_cmds=$lt_export_symbols_cmds_RC
23665
23666 # Symbols that should not be listed in the preloaded symbols.
23667 exclude_expsyms=$lt_exclude_expsyms_RC
23668
23669 # Symbols that must always be exported.
23670 include_expsyms=$lt_include_expsyms_RC
23671
23672 # Commands necessary for linking programs (against libraries) with templates.
23673 prelink_cmds=$lt_prelink_cmds_RC
23674
23675 # Commands necessary for finishing linking programs.
23676 postlink_cmds=$lt_postlink_cmds_RC
23677
23678 # Specify filename containing input files.
23679 file_list_spec=$lt_file_list_spec_RC
23680
23681 # How to hardcode a shared library path into an executable.
23682 hardcode_action=$hardcode_action_RC
23683
23684 # The directories searched by this compiler when creating a shared library.
23685 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
23686
23687 # Dependencies to place before and after the objects being linked to
23688 # create a shared library.
23689 predep_objects=$lt_predep_objects_RC
23690 postdep_objects=$lt_postdep_objects_RC
23691 predeps=$lt_predeps_RC
23692 postdeps=$lt_postdeps_RC
23693
23694 # The library search path used internally by the compiler when linking
23695 # a shared library.
23696 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
23697
23698 # ### END LIBTOOL TAG CONFIG: RC
23699 _LT_EOF
23700
23701 ;;
23702
23703 esac
23704 done # for ac_tag
23705
23706
23707 as_fn_exit 0
23708 _ACEOF
23709 ac_clean_files=$ac_clean_files_save
23710
23711 test $ac_write_fail = 0 ||
23712 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23713
23714
23715 # configure is writing to config.log, and then calls config.status.
23716 # config.status does its own redirection, appending to config.log.
23717 # Unfortunately, on DOS this fails, as config.log is still kept open
23718 # by configure, so config.status won't be able to write to it; its
23719 # output is simply discarded. So we exec the FD to /dev/null,
23720 # effectively closing config.log, so it can be properly (re)opened and
23721 # appended to by config.status. When coming back to configure, we
23722 # need to make the FD available again.
23723 if test "$no_create" != yes; then
23724 ac_cs_success=:
23725 ac_config_status_args=
23726 test "$silent" = yes &&
23727 ac_config_status_args="$ac_config_status_args --quiet"
23728 exec 5>/dev/null
23729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23730 exec 5>>config.log
23731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23732 # would make configure fail if this is the last instruction.
23733 $ac_cs_success || as_fn_exit 1
23734 fi
23735 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23737 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23738 fi
23739
23740
23741 # Make sure these are executable.
23742 chmod u+x tests/test_wrapper.sh Scripts/build-test-tarball.mk echo-install-dirs
23743
23744 #====================================================================================
23745
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
23747 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
23748
23749 Configuration summary :
23750
23751 libsndfile version : .................. ${VERSION}
23752
23753 Host CPU : ............................ ${host_cpu}
23754 Host Vendor : ......................... ${host_vendor}
23755 Host OS : ............................. ${host_os}
23756
23757 Experimental code : ................... ${enable_experimental:-no}
23758 Using ALSA in example programs : ...... ${enable_alsa:-no}
23759 External FLAC/Ogg/Vorbis : ............ ${enable_external_libs:-no}
23760 " >&5
23761 $as_echo "
23762 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
23763
23764 Configuration summary :
23765
23766 libsndfile version : .................. ${VERSION}
23767
23768 Host CPU : ............................ ${host_cpu}
23769 Host Vendor : ......................... ${host_vendor}
23770 Host OS : ............................. ${host_os}
23771
23772 Experimental code : ................... ${enable_experimental:-no}
23773 Using ALSA in example programs : ...... ${enable_alsa:-no}
23774 External FLAC/Ogg/Vorbis : ............ ${enable_external_libs:-no}
23775 " >&6; }
23776
23777 if test -z "$PKG_CONFIG" ; then
23778 echo " *****************************************************************"
23779 echo " *** The pkg-config program is missing. ***"
23780 echo " *** External FLAC/Ogg/Vorbis libs cannot be found without it. ***"
23781 echo " *** http://pkg-config.freedesktop.org/wiki/ ***"
23782 echo " *****************************************************************"
23783 echo
23784 fi
23785
23786 echo " Tools :"
23787 echo
23788 echo " Compiler is Clang : ................... ${mn_cv_c_compiler_clang}"
23789 echo " Compiler is GCC : ..................... ${ac_cv_c_compiler_gnu}"
23790
23791 if test x$ac_cv_c_compiler_gnu = xyes ; then
23792 echo " GCC version : ......................... ${GCC_VERSION}"
23793 if test $GCC_MAJOR_VERSION -lt 3 ; then
23794 echo "\n"
23795 echo " ** This compiler version allows applications to write"
23796 echo " ** to static strings within the library."
23797 echo " ** Compile with GCC version 3.X or above to avoid this problem."
23798 fi
23799 fi
23800 echo " Sanitizer enabled : ................... ${enable_sanitizer:-no}"
23801 echo " Stack smash protection : .............. ${enable_stack_smash_protection:-no}"
23802
23803 ./echo-install-dirs
23804
23805 # Remove symlink created by Scripts/android-configure.sh.
23806 test -h gdbclient && rm -f gdbclient
23807
23808 (cd src && make genfiles)
23809 (cd tests && make genfiles)