Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for audiofile 0.3.6.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='audiofile'
589 PACKAGE_TARNAME='audiofile'
590 PACKAGE_VERSION='0.3.6'
591 PACKAGE_STRING='audiofile 0.3.6'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libaudiofile/AIFF.cpp"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 ENABLE_FLAC_FALSE
637 ENABLE_FLAC_TRUE
638 FLAC_LIBS
639 FLAC_CFLAGS
640 PKG_CONFIG_LIBDIR
641 PKG_CONFIG_PATH
642 PKG_CONFIG
643 ASCIIDOC
644 A2X
645 ENABLE_DOCUMENTATION_FALSE
646 ENABLE_DOCUMENTATION_TRUE
647 VALGRIND
648 ENABLE_VALGRIND_FALSE
649 ENABLE_VALGRIND_TRUE
650 GENHTML
651 LCOV
652 COVERAGE_LIBS
653 COVERAGE_CFLAGS
654 ENABLE_COVERAGE_FALSE
655 ENABLE_COVERAGE_TRUE
656 WERROR_CFLAGS
657 ENABLE_WERROR_FALSE
658 ENABLE_WERROR_TRUE
659 TEST_BIN
660 CXXCPP
661 CPP
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 MANIFEST_TOOL
668 RANLIB
669 ac_ct_AR
670 AR
671 DLLTOOL
672 OBJDUMP
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 LIBTOOL
691 am__fastdepCXX_FALSE
692 am__fastdepCXX_TRUE
693 CXXDEPMODE
694 ac_ct_CXX
695 CXXFLAGS
696 CXX
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 AUDIOFILE_VERSION_INFO
738 AUDIOFILE_VERSION
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_dependency_tracking
781 enable_shared
782 enable_static
783 with_pic
784 enable_fast_install
785 with_gnu_ld
786 with_sysroot
787 enable_libtool_lock
788 enable_largefile
789 enable_werror
790 enable_coverage
791 enable_valgrind
792 enable_docs
793 enable_examples
794 enable_flac
795 '
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
804 CXX
805 CXXFLAGS
806 CCC
807 CPP
808 CXXCPP
809 PKG_CONFIG
810 PKG_CONFIG_PATH
811 PKG_CONFIG_LIBDIR
812 FLAC_CFLAGS
813 FLAC_LIBS'
814
815
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 ac_unrecognized_opts=
820 ac_unrecognized_sep=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
873 fi
874
875 case $ac_option in
876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *=) ac_optarg= ;;
878 *) ac_optarg=yes ;;
879 esac
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
911
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
934
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
939
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
944
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=\$ac_optarg ;;
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
980
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
985
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1015
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1089
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1164
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
1199 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 ;;
1220
1221 esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1242 do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272 fi
1273
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277 test "$silent" = yes && exec 6>/dev/null
1278
1279
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1318 fi
1319 else
1320 ac_srcdir_defaulted=no
1321 fi
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 fi
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 \`configure' configures audiofile 0.3.6 to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1379
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/audiofile]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1408
1409 cat <<\_ACEOF
1410
1411 Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of audiofile 0.3.6:";;
1425 esac
1426 cat <<\_ACEOF
1427
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --disable-dependency-tracking speeds up one-time build
1433 --enable-dependency-tracking do not reject slow dependency extractors
1434 --enable-shared[=PKGS] build shared libraries [default=yes]
1435 --enable-static[=PKGS] build static libraries [default=yes]
1436 --enable-fast-install[=PKGS]
1437 optimize for fast installation [default=yes]
1438 --disable-libtool-lock avoid locking (might break parallel builds)
1439 --disable-largefile omit support for large files
1440 --enable-werror treat compiler warnings as errors
1441 --enable-coverage enable code coverage
1442 --enable-valgrind enable testing with Valgrind
1443 --disable-docs disable documentation
1444 --disable-examples disable examples
1445 --disable-flac disable FLAC
1446
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1451 both]
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1453 --with-sysroot=DIR Search for dependent libraries within DIR
1454 (or the compiler's sysroot if not specified).
1455
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1466 CPP C preprocessor
1467 CXXCPP C++ preprocessor
1468 PKG_CONFIG path to pkg-config utility
1469 PKG_CONFIG_PATH
1470 directories to add to pkg-config's search path
1471 PKG_CONFIG_LIBDIR
1472 path overriding pkg-config's built-in search path
1473 FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config
1474 FLAC_LIBS linker flags for FLAC, overriding pkg-config
1475
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1478
1479 Report bugs to the package provider.
1480 _ACEOF
1481 ac_status=$?
1482 fi
1483
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
1490 ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1537 fi
1538
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541 cat <<\_ACEOF
1542 audiofile configure 0.3.6
1543 generated by GNU Autoconf 2.69
1544
1545 Copyright (C) 2012 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548 _ACEOF
1549 exit
1550 fi
1551
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1555
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile ()
1560 {
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588 fi
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1591
1592 } # ac_fn_c_try_compile
1593
1594 # ac_fn_cxx_try_compile LINENO
1595 # ----------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_cxx_try_compile ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_cxx_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_cxx_try_compile
1631
1632 # ac_fn_c_try_link LINENO
1633 # -----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_link ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext conftest$ac_exeext
1639 if { { ac_try="$ac_link"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest$ac_exeext && {
1658 test "$cross_compiling" = yes ||
1659 test -x conftest$ac_exeext
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1670 # interfere with the next link command; also delete a directory that is
1671 # left behind by Apple's compiler. We do this before executing the actions.
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_link
1677
1678 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679 # -------------------------------------------------------
1680 # Tests whether HEADER exists and can be compiled using the include files in
1681 # INCLUDES, setting the cache variable VAR accordingly.
1682 ac_fn_c_check_header_compile ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1689 else
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 $4
1693 #include <$2>
1694 _ACEOF
1695 if ac_fn_c_try_compile "$LINENO"; then :
1696 eval "$3=yes"
1697 else
1698 eval "$3=no"
1699 fi
1700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701 fi
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707 } # ac_fn_c_check_header_compile
1708
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_cpp ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i && {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=1
1740 fi
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_cpp
1745
1746 # ac_fn_c_try_run LINENO
1747 # ----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749 # that executables *can* be run.
1750 ac_fn_c_try_run ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_link"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764 { { case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_try") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; }; }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: program exited with status $ac_status" >&5
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=$ac_status
1781 fi
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_run
1787
1788 # ac_fn_c_check_func LINENO FUNC VAR
1789 # ----------------------------------
1790 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1791 ac_fn_c_check_func ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803 #define $2 innocuous_$2
1804
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (); below.
1807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1808 <limits.h> exists even on freestanding compilers. */
1809
1810 #ifdef __STDC__
1811 # include <limits.h>
1812 #else
1813 # include <assert.h>
1814 #endif
1815
1816 #undef $2
1817
1818 /* Override any GCC internal prototype to avoid an error.
1819 Use char because int might match the return type of a GCC
1820 builtin and then its argument prototype would still apply. */
1821 #ifdef __cplusplus
1822 extern "C"
1823 #endif
1824 char $2 ();
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined __stub_$2 || defined __stub___$2
1829 choke me
1830 #endif
1831
1832 int
1833 main ()
1834 {
1835 return $2 ();
1836 ;
1837 return 0;
1838 }
1839 _ACEOF
1840 if ac_fn_c_try_link "$LINENO"; then :
1841 eval "$3=yes"
1842 else
1843 eval "$3=no"
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext \
1846 conftest$ac_exeext conftest.$ac_ext
1847 fi
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1853 } # ac_fn_c_check_func
1854
1855 # ac_fn_cxx_try_cpp LINENO
1856 # ------------------------
1857 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_cxx_try_cpp ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1869 ac_status=$?
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1874 fi
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } > conftest.i && {
1877 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1878 test ! -s conftest.err
1879 }; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885 ac_retval=1
1886 fi
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1889
1890 } # ac_fn_cxx_try_cpp
1891
1892 # ac_fn_cxx_try_link LINENO
1893 # -------------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_cxx_try_link ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 test -x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927 fi
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1935
1936 } # ac_fn_cxx_try_link
1937
1938 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1939 # -------------------------------------------------------
1940 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1941 # the include files in INCLUDES and setting the cache variable VAR
1942 # accordingly.
1943 ac_fn_c_check_header_mongrel ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if eval \${$3+:} false; then :
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1951 fi
1952 eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 else
1956 # Is the header compilable?
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1958 $as_echo_n "checking $2 usability... " >&6; }
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 $4
1962 #include <$2>
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_header_compiler=yes
1966 else
1967 ac_header_compiler=no
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1971 $as_echo "$ac_header_compiler" >&6; }
1972
1973 # Is the header present?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1975 $as_echo_n "checking $2 presence... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 #include <$2>
1979 _ACEOF
1980 if ac_fn_c_try_cpp "$LINENO"; then :
1981 ac_header_preproc=yes
1982 else
1983 ac_header_preproc=no
1984 fi
1985 rm -f conftest.err conftest.i conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1987 $as_echo "$ac_header_preproc" >&6; }
1988
1989 # So? What about this header?
1990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1991 yes:no: )
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1993 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 ;;
1997 no:yes:* )
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1999 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2001 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2003 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2005 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 ;;
2009 esac
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2014 else
2015 eval "$3=\$ac_header_compiler"
2016 fi
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 fi
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023 } # ac_fn_c_check_header_mongrel
2024
2025 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2026 # -------------------------------------------
2027 # Tests whether TYPE exists after having included INCLUDES, setting cache
2028 # variable VAR accordingly.
2029 ac_fn_c_check_type ()
2030 {
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 eval "$3=no"
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 $4
2041 int
2042 main ()
2043 {
2044 if (sizeof ($2))
2045 return 0;
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2053 $4
2054 int
2055 main ()
2056 {
2057 if (sizeof (($2)))
2058 return 0;
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064
2065 else
2066 eval "$3=yes"
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 fi
2072 eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076
2077 } # ac_fn_c_check_type
2078 cat >config.log <<_ACEOF
2079 This file contains any messages produced by compilers while
2080 running configure, to aid debugging if configure makes a mistake.
2081
2082 It was created by audiofile $as_me 0.3.6, which was
2083 generated by GNU Autoconf 2.69. Invocation command line was
2084
2085 $ $0 $@
2086
2087 _ACEOF
2088 exec 5>>config.log
2089 {
2090 cat <<_ASUNAME
2091 ## --------- ##
2092 ## Platform. ##
2093 ## --------- ##
2094
2095 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2096 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2097 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2098 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2099 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2100
2101 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2102 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2103
2104 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2105 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2106 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2107 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2108 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2109 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2110 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2111
2112 _ASUNAME
2113
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 $as_echo "PATH: $as_dir"
2120 done
2121 IFS=$as_save_IFS
2122
2123 } >&5
2124
2125 cat >&5 <<_ACEOF
2126
2127
2128 ## ----------- ##
2129 ## Core tests. ##
2130 ## ----------- ##
2131
2132 _ACEOF
2133
2134
2135 # Keep a trace of the command line.
2136 # Strip out --no-create and --no-recursion so they do not pile up.
2137 # Strip out --silent because we don't want to record it for future runs.
2138 # Also quote any args containing shell meta-characters.
2139 # Make two passes to allow for proper duplicate-argument suppression.
2140 ac_configure_args=
2141 ac_configure_args0=
2142 ac_configure_args1=
2143 ac_must_keep_next=false
2144 for ac_pass in 1 2
2145 do
2146 for ac_arg
2147 do
2148 case $ac_arg in
2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151 | -silent | --silent | --silen | --sile | --sil)
2152 continue ;;
2153 *\'*)
2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2155 esac
2156 case $ac_pass in
2157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2158 2)
2159 as_fn_append ac_configure_args1 " '$ac_arg'"
2160 if test $ac_must_keep_next = true; then
2161 ac_must_keep_next=false # Got value, back to normal.
2162 else
2163 case $ac_arg in
2164 *=* | --config-cache | -C | -disable-* | --disable-* \
2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167 | -with-* | --with-* | -without-* | --without-* | --x)
2168 case "$ac_configure_args0 " in
2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2170 esac
2171 ;;
2172 -* ) ac_must_keep_next=true ;;
2173 esac
2174 fi
2175 as_fn_append ac_configure_args " '$ac_arg'"
2176 ;;
2177 esac
2178 done
2179 done
2180 { ac_configure_args0=; unset ac_configure_args0;}
2181 { ac_configure_args1=; unset ac_configure_args1;}
2182
2183 # When interrupted or exit'd, cleanup temporary files, and complete
2184 # config.log. We remove comments because anyway the quotes in there
2185 # would cause problems or look ugly.
2186 # WARNING: Use '\'' to represent an apostrophe within the trap.
2187 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2188 trap 'exit_status=$?
2189 # Save into config.log some information that might help in debugging.
2190 {
2191 echo
2192
2193 $as_echo "## ---------------- ##
2194 ## Cache variables. ##
2195 ## ---------------- ##"
2196 echo
2197 # The following way of writing the cache mishandles newlines in values,
2198 (
2199 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2200 eval ac_val=\$$ac_var
2201 case $ac_val in #(
2202 *${as_nl}*)
2203 case $ac_var in #(
2204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2206 esac
2207 case $ac_var in #(
2208 _ | IFS | as_nl) ;; #(
2209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2210 *) { eval $ac_var=; unset $ac_var;} ;;
2211 esac ;;
2212 esac
2213 done
2214 (set) 2>&1 |
2215 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2216 *${as_nl}ac_space=\ *)
2217 sed -n \
2218 "s/'\''/'\''\\\\'\'''\''/g;
2219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2220 ;; #(
2221 *)
2222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2223 ;;
2224 esac |
2225 sort
2226 )
2227 echo
2228
2229 $as_echo "## ----------------- ##
2230 ## Output variables. ##
2231 ## ----------------- ##"
2232 echo
2233 for ac_var in $ac_subst_vars
2234 do
2235 eval ac_val=\$$ac_var
2236 case $ac_val in
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238 esac
2239 $as_echo "$ac_var='\''$ac_val'\''"
2240 done | sort
2241 echo
2242
2243 if test -n "$ac_subst_files"; then
2244 $as_echo "## ------------------- ##
2245 ## File substitutions. ##
2246 ## ------------------- ##"
2247 echo
2248 for ac_var in $ac_subst_files
2249 do
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
2255 done | sort
2256 echo
2257 fi
2258
2259 if test -s confdefs.h; then
2260 $as_echo "## ----------- ##
2261 ## confdefs.h. ##
2262 ## ----------- ##"
2263 echo
2264 cat confdefs.h
2265 echo
2266 fi
2267 test "$ac_signal" != 0 &&
2268 $as_echo "$as_me: caught signal $ac_signal"
2269 $as_echo "$as_me: exit $exit_status"
2270 } >&5
2271 rm -f core *.core core.conftest.* &&
2272 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2273 exit $exit_status
2274 ' 0
2275 for ac_signal in 1 2 13 15; do
2276 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2277 done
2278 ac_signal=0
2279
2280 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2281 rm -f -r conftest* confdefs.h
2282
2283 $as_echo "/* confdefs.h */" > confdefs.h
2284
2285 # Predefined preprocessor variables.
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_NAME "$PACKAGE_NAME"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_STRING "$PACKAGE_STRING"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_URL "$PACKAGE_URL"
2309 _ACEOF
2310
2311
2312 # Let the site file select an alternate cache file if it wants to.
2313 # Prefer an explicitly selected file to automatically selected ones.
2314 ac_site_file1=NONE
2315 ac_site_file2=NONE
2316 if test -n "$CONFIG_SITE"; then
2317 # We do not want a PATH search for config.site.
2318 case $CONFIG_SITE in #((
2319 -*) ac_site_file1=./$CONFIG_SITE;;
2320 */*) ac_site_file1=$CONFIG_SITE;;
2321 *) ac_site_file1=./$CONFIG_SITE;;
2322 esac
2323 elif test "x$prefix" != xNONE; then
2324 ac_site_file1=$prefix/share/config.site
2325 ac_site_file2=$prefix/etc/config.site
2326 else
2327 ac_site_file1=$ac_default_prefix/share/config.site
2328 ac_site_file2=$ac_default_prefix/etc/config.site
2329 fi
2330 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331 do
2332 test "x$ac_site_file" = xNONE && continue
2333 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336 sed 's/^/| /' "$ac_site_file" >&5
2337 . "$ac_site_file" \
2338 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340 as_fn_error $? "failed to load site script $ac_site_file
2341 See \`config.log' for more details" "$LINENO" 5; }
2342 fi
2343 done
2344
2345 if test -r "$cache_file"; then
2346 # Some versions of bash will fail to source /dev/null (special files
2347 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2350 $as_echo "$as_me: loading cache $cache_file" >&6;}
2351 case $cache_file in
2352 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2353 *) . "./$cache_file";;
2354 esac
2355 fi
2356 else
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2358 $as_echo "$as_me: creating cache $cache_file" >&6;}
2359 >$cache_file
2360 fi
2361
2362 # Check that the precious variables saved in the cache have kept the same
2363 # value.
2364 ac_cache_corrupted=false
2365 for ac_var in $ac_precious_vars; do
2366 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2367 eval ac_new_set=\$ac_env_${ac_var}_set
2368 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2369 eval ac_new_val=\$ac_env_${ac_var}_value
2370 case $ac_old_set,$ac_new_set in
2371 set,)
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2373 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2374 ac_cache_corrupted=: ;;
2375 ,set)
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2377 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2378 ac_cache_corrupted=: ;;
2379 ,);;
2380 *)
2381 if test "x$ac_old_val" != "x$ac_new_val"; then
2382 # differences in whitespace do not lead to failure.
2383 ac_old_val_w=`echo x $ac_old_val`
2384 ac_new_val_w=`echo x $ac_new_val`
2385 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2387 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2388 ac_cache_corrupted=:
2389 else
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2391 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2392 eval $ac_var=\$ac_old_val
2393 fi
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2395 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2397 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2398 fi;;
2399 esac
2400 # Pass precious variables to config.status.
2401 if test "$ac_new_set" = set; then
2402 case $ac_new_val in
2403 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2404 *) ac_arg=$ac_var=$ac_new_val ;;
2405 esac
2406 case " $ac_configure_args " in
2407 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2408 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2409 esac
2410 fi
2411 done
2412 if $ac_cache_corrupted; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2416 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2417 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2418 fi
2419 ## -------------------- ##
2420 ## Main body of script. ##
2421 ## -------------------- ##
2422
2423 ac_ext=c
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428
2429
2430
2431
2432 AUDIOFILE_VERSION_INFO=1:0:0
2433 AUDIOFILE_VERSION=$PACKAGE_VERSION
2434
2435
2436
2437
2438 am__api_version='1.11'
2439
2440 ac_aux_dir=
2441 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2442 if test -f "$ac_dir/install-sh"; then
2443 ac_aux_dir=$ac_dir
2444 ac_install_sh="$ac_aux_dir/install-sh -c"
2445 break
2446 elif test -f "$ac_dir/install.sh"; then
2447 ac_aux_dir=$ac_dir
2448 ac_install_sh="$ac_aux_dir/install.sh -c"
2449 break
2450 elif test -f "$ac_dir/shtool"; then
2451 ac_aux_dir=$ac_dir
2452 ac_install_sh="$ac_aux_dir/shtool install -c"
2453 break
2454 fi
2455 done
2456 if test -z "$ac_aux_dir"; then
2457 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2458 fi
2459
2460 # These three variables are undocumented and unsupported,
2461 # and are intended to be withdrawn in a future Autoconf release.
2462 # They can cause serious problems if a builder's source tree is in a directory
2463 # whose full name contains unusual characters.
2464 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2465 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2466 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2467
2468
2469 # Find a good install program. We prefer a C program (faster),
2470 # so one script is as good as another. But avoid the broken or
2471 # incompatible versions:
2472 # SysV /etc/install, /usr/sbin/install
2473 # SunOS /usr/etc/install
2474 # IRIX /sbin/install
2475 # AIX /bin/install
2476 # AmigaOS /C/install, which installs bootblocks on floppy discs
2477 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2478 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2479 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2480 # OS/2's system install, which has a completely different semantic
2481 # ./install, which can be erroneously created by make from ./install.sh.
2482 # Reject install programs that cannot install multiple files.
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2484 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2485 if test -z "$INSTALL"; then
2486 if ${ac_cv_path_install+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 # Account for people who put trailing slashes in PATH elements.
2495 case $as_dir/ in #((
2496 ./ | .// | /[cC]/* | \
2497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2498 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2499 /usr/ucb/* ) ;;
2500 *)
2501 # OSF1 and SCO ODT 3.0 have their own names for install.
2502 # Don't use installbsd from OSF since it installs stuff as root
2503 # by default.
2504 for ac_prog in ginstall scoinst install; do
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2507 if test $ac_prog = install &&
2508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2509 # AIX install. It has an incompatible calling convention.
2510 :
2511 elif test $ac_prog = install &&
2512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2513 # program-specific install script used by HP pwplus--don't use.
2514 :
2515 else
2516 rm -rf conftest.one conftest.two conftest.dir
2517 echo one > conftest.one
2518 echo two > conftest.two
2519 mkdir conftest.dir
2520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2521 test -s conftest.one && test -s conftest.two &&
2522 test -s conftest.dir/conftest.one &&
2523 test -s conftest.dir/conftest.two
2524 then
2525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2526 break 3
2527 fi
2528 fi
2529 fi
2530 done
2531 done
2532 ;;
2533 esac
2534
2535 done
2536 IFS=$as_save_IFS
2537
2538 rm -rf conftest.one conftest.two conftest.dir
2539
2540 fi
2541 if test "${ac_cv_path_install+set}" = set; then
2542 INSTALL=$ac_cv_path_install
2543 else
2544 # As a last resort, use the slow shell script. Don't cache a
2545 # value for INSTALL within a source directory, because that will
2546 # break other packages using the cache if that directory is
2547 # removed, or if the value is a relative name.
2548 INSTALL=$ac_install_sh
2549 fi
2550 fi
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2552 $as_echo "$INSTALL" >&6; }
2553
2554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2555 # It thinks the first close brace ends the variable substitution.
2556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2557
2558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2559
2560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2561
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2563 $as_echo_n "checking whether build environment is sane... " >&6; }
2564 # Just in case
2565 sleep 1
2566 echo timestamp > conftest.file
2567 # Reject unsafe characters in $srcdir or the absolute working directory
2568 # name. Accept space and tab only in the latter.
2569 am_lf='
2570 '
2571 case `pwd` in
2572 *[\\\"\#\$\&\'\`$am_lf]*)
2573 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2574 esac
2575 case $srcdir in
2576 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2577 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2578 esac
2579
2580 # Do `set' in a subshell so we don't clobber the current shell's
2581 # arguments. Must try -L first in case configure is actually a
2582 # symlink; some systems play weird games with the mod time of symlinks
2583 # (eg FreeBSD returns the mod time of the symlink's containing
2584 # directory).
2585 if (
2586 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2587 if test "$*" = "X"; then
2588 # -L didn't work.
2589 set X `ls -t "$srcdir/configure" conftest.file`
2590 fi
2591 rm -f conftest.file
2592 if test "$*" != "X $srcdir/configure conftest.file" \
2593 && test "$*" != "X conftest.file $srcdir/configure"; then
2594
2595 # If neither matched, then we have a broken ls. This can happen
2596 # if, for instance, CONFIG_SHELL is bash and it inherits a
2597 # broken ls alias from the environment. This has actually
2598 # happened. Such a system could not be considered "sane".
2599 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2600 alias in your environment" "$LINENO" 5
2601 fi
2602
2603 test "$2" = conftest.file
2604 )
2605 then
2606 # Ok.
2607 :
2608 else
2609 as_fn_error $? "newly created file is older than distributed files!
2610 Check your system clock" "$LINENO" 5
2611 fi
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2613 $as_echo "yes" >&6; }
2614 test "$program_prefix" != NONE &&
2615 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2616 # Use a double $ so make ignores it.
2617 test "$program_suffix" != NONE &&
2618 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2619 # Double any \ or $.
2620 # By default was `s,x,x', remove it if useless.
2621 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2622 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2623
2624 # expand $ac_aux_dir to an absolute path
2625 am_aux_dir=`cd $ac_aux_dir && pwd`
2626
2627 if test x"${MISSING+set}" != xset; then
2628 case $am_aux_dir in
2629 *\ * | *\ *)
2630 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2631 *)
2632 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2633 esac
2634 fi
2635 # Use eval to expand $SHELL
2636 if eval "$MISSING --run true"; then
2637 am_missing_run="$MISSING --run "
2638 else
2639 am_missing_run=
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2641 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2642 fi
2643
2644 if test x"${install_sh}" != xset; then
2645 case $am_aux_dir in
2646 *\ * | *\ *)
2647 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2648 *)
2649 install_sh="\${SHELL} $am_aux_dir/install-sh"
2650 esac
2651 fi
2652
2653 # Installed binaries are usually stripped using `strip' when the user
2654 # run `make install-strip'. However `strip' might not be the right
2655 # tool to use in cross-compilation environments, therefore Automake
2656 # will honor the `STRIP' environment variable to overrule this program.
2657 if test "$cross_compiling" != no; then
2658 if test -n "$ac_tool_prefix"; then
2659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}strip; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_STRIP+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test -n "$STRIP"; then
2667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 STRIP=$ac_cv_prog_STRIP
2687 if test -n "$STRIP"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2689 $as_echo "$STRIP" >&6; }
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695
2696 fi
2697 if test -z "$ac_cv_prog_STRIP"; then
2698 ac_ct_STRIP=$STRIP
2699 # Extract the first word of "strip", so it can be a program name with args.
2700 set dummy strip; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if test -n "$ac_ct_STRIP"; then
2707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_STRIP="strip"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2727 if test -n "$ac_ct_STRIP"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2729 $as_echo "$ac_ct_STRIP" >&6; }
2730 else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2733 fi
2734
2735 if test "x$ac_ct_STRIP" = x; then
2736 STRIP=":"
2737 else
2738 case $cross_compiling:$ac_tool_warned in
2739 yes:)
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742 ac_tool_warned=yes ;;
2743 esac
2744 STRIP=$ac_ct_STRIP
2745 fi
2746 else
2747 STRIP="$ac_cv_prog_STRIP"
2748 fi
2749
2750 fi
2751 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2752
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2754 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2755 if test -z "$MKDIR_P"; then
2756 if ${ac_cv_path_mkdir+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_prog in mkdir gmkdir; do
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2767 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2768 'mkdir (GNU coreutils) '* | \
2769 'mkdir (coreutils) '* | \
2770 'mkdir (fileutils) '4.1*)
2771 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2772 break 3;;
2773 esac
2774 done
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780
2781 test -d ./--version && rmdir ./--version
2782 if test "${ac_cv_path_mkdir+set}" = set; then
2783 MKDIR_P="$ac_cv_path_mkdir -p"
2784 else
2785 # As a last resort, use the slow shell script. Don't cache a
2786 # value for MKDIR_P within a source directory, because that will
2787 # break other packages using the cache if that directory is
2788 # removed, or if the value is a relative name.
2789 MKDIR_P="$ac_install_sh -d"
2790 fi
2791 fi
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2793 $as_echo "$MKDIR_P" >&6; }
2794
2795 mkdir_p="$MKDIR_P"
2796 case $mkdir_p in
2797 [\\/$]* | ?:[\\/]*) ;;
2798 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2799 esac
2800
2801 for ac_prog in gawk mawk nawk awk
2802 do
2803 # Extract the first word of "$ac_prog", so it can be a program name with args.
2804 set dummy $ac_prog; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if ${ac_cv_prog_AWK+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$AWK"; then
2811 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_AWK="$ac_prog"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824 done
2825 done
2826 IFS=$as_save_IFS
2827
2828 fi
2829 fi
2830 AWK=$ac_cv_prog_AWK
2831 if test -n "$AWK"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2833 $as_echo "$AWK" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2837 fi
2838
2839
2840 test -n "$AWK" && break
2841 done
2842
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2844 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2845 set x ${MAKE-make}
2846 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2847 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 cat >conftest.make <<\_ACEOF
2851 SHELL = /bin/sh
2852 all:
2853 @echo '@@@%%%=$(MAKE)=@@@%%%'
2854 _ACEOF
2855 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2856 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2857 *@@@%%%=?*=@@@%%%*)
2858 eval ac_cv_prog_make_${ac_make}_set=yes;;
2859 *)
2860 eval ac_cv_prog_make_${ac_make}_set=no;;
2861 esac
2862 rm -f conftest.make
2863 fi
2864 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866 $as_echo "yes" >&6; }
2867 SET_MAKE=
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 SET_MAKE="MAKE=${MAKE-make}"
2872 fi
2873
2874 rm -rf .tst 2>/dev/null
2875 mkdir .tst 2>/dev/null
2876 if test -d .tst; then
2877 am__leading_dot=.
2878 else
2879 am__leading_dot=_
2880 fi
2881 rmdir .tst 2>/dev/null
2882
2883 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2884 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2885 # is not polluted with repeated "-I."
2886 am__isrc=' -I$(srcdir)'
2887 # test to see if srcdir already configured
2888 if test -f $srcdir/config.status; then
2889 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2890 fi
2891 fi
2892
2893 # test whether we have cygpath
2894 if test -z "$CYGPATH_W"; then
2895 if (cygpath --version) >/dev/null 2>/dev/null; then
2896 CYGPATH_W='cygpath -w'
2897 else
2898 CYGPATH_W=echo
2899 fi
2900 fi
2901
2902
2903 # Define the identity of the package.
2904 PACKAGE=$PACKAGE_NAME
2905 VERSION=$PACKAGE_VERSION
2906
2907
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE "$PACKAGE"
2910 _ACEOF
2911
2912
2913 cat >>confdefs.h <<_ACEOF
2914 #define VERSION "$VERSION"
2915 _ACEOF
2916
2917 # Some tools Automake needs.
2918
2919 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2920
2921
2922 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2923
2924
2925 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2926
2927
2928 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2929
2930
2931 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2932
2933 # We need awk for the "check" target. The system "awk" is bad on
2934 # some platforms.
2935 # Always define AMTAR for backward compatibility. Yes, it's still used
2936 # in the wild :-( We should find a proper way to deprecate it ...
2937 AMTAR='$${TAR-tar}'
2938
2939 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2940
2941
2942
2943
2944
2945 ac_config_headers="$ac_config_headers config.h"
2946
2947
2948 DEPDIR="${am__leading_dot}deps"
2949
2950 ac_config_commands="$ac_config_commands depfiles"
2951
2952
2953 am_make=${MAKE-make}
2954 cat > confinc << 'END'
2955 am__doit:
2956 @echo this is the am__doit target
2957 .PHONY: am__doit
2958 END
2959 # If we don't find an include directive, just comment out the code.
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2961 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2962 am__include="#"
2963 am__quote=
2964 _am_result=none
2965 # First try GNU make style include.
2966 echo "include confinc" > confmf
2967 # Ignore all kinds of additional output from `make'.
2968 case `$am_make -s -f confmf 2> /dev/null` in #(
2969 *the\ am__doit\ target*)
2970 am__include=include
2971 am__quote=
2972 _am_result=GNU
2973 ;;
2974 esac
2975 # Now try BSD make style include.
2976 if test "$am__include" = "#"; then
2977 echo '.include "confinc"' > confmf
2978 case `$am_make -s -f confmf 2> /dev/null` in #(
2979 *the\ am__doit\ target*)
2980 am__include=.include
2981 am__quote="\""
2982 _am_result=BSD
2983 ;;
2984 esac
2985 fi
2986
2987
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2989 $as_echo "$_am_result" >&6; }
2990 rm -f confinc confmf
2991
2992 # Check whether --enable-dependency-tracking was given.
2993 if test "${enable_dependency_tracking+set}" = set; then :
2994 enableval=$enable_dependency_tracking;
2995 fi
2996
2997 if test "x$enable_dependency_tracking" != xno; then
2998 am_depcomp="$ac_aux_dir/depcomp"
2999 AMDEPBACKSLASH='\'
3000 am__nodep='_no'
3001 fi
3002 if test "x$enable_dependency_tracking" != xno; then
3003 AMDEP_TRUE=
3004 AMDEP_FALSE='#'
3005 else
3006 AMDEP_TRUE='#'
3007 AMDEP_FALSE=
3008 fi
3009
3010
3011 ac_ext=c
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 if test -n "$ac_tool_prefix"; then
3017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_CC+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3037 fi
3038 done
3039 done
3040 IFS=$as_save_IFS
3041
3042 fi
3043 fi
3044 CC=$ac_cv_prog_CC
3045 if test -n "$CC"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3047 $as_echo "$CC" >&6; }
3048 else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 fi
3052
3053
3054 fi
3055 if test -z "$ac_cv_prog_CC"; then
3056 ac_ct_CC=$CC
3057 # Extract the first word of "gcc", so it can be a program name with args.
3058 set dummy gcc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 if test -n "$ac_ct_CC"; then
3065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_ac_ct_CC="gcc"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078 done
3079 done
3080 IFS=$as_save_IFS
3081
3082 fi
3083 fi
3084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3085 if test -n "$ac_ct_CC"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3087 $as_echo "$ac_ct_CC" >&6; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093 if test "x$ac_ct_CC" = x; then
3094 CC=""
3095 else
3096 case $cross_compiling:$ac_tool_warned in
3097 yes:)
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3100 ac_tool_warned=yes ;;
3101 esac
3102 CC=$ac_ct_CC
3103 fi
3104 else
3105 CC="$ac_cv_prog_CC"
3106 fi
3107
3108 if test -z "$CC"; then
3109 if test -n "$ac_tool_prefix"; then
3110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}cc; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_CC+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -n "$CC"; then
3118 ac_cv_prog_CC="$CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_CC="${ac_tool_prefix}cc"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 fi
3148 fi
3149 if test -z "$CC"; then
3150 # Extract the first word of "cc", so it can be a program name with args.
3151 set dummy cc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_CC+:} false; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 ac_prog_rejected=no
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3169 ac_prog_rejected=yes
3170 continue
3171 fi
3172 ac_cv_prog_CC="cc"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3175 fi
3176 done
3177 done
3178 IFS=$as_save_IFS
3179
3180 if test $ac_prog_rejected = yes; then
3181 # We found a bogon in the path, so make sure we never use it.
3182 set dummy $ac_cv_prog_CC
3183 shift
3184 if test $# != 0; then
3185 # We chose a different compiler from the bogus one.
3186 # However, it has the same basename, so the bogon will be chosen
3187 # first if we set CC to just the basename; use the full file name.
3188 shift
3189 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3190 fi
3191 fi
3192 fi
3193 fi
3194 CC=$ac_cv_prog_CC
3195 if test -n "$CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204 fi
3205 if test -z "$CC"; then
3206 if test -n "$ac_tool_prefix"; then
3207 for ac_prog in cl.exe
3208 do
3209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_CC+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 CC=$ac_cv_prog_CC
3237 if test -n "$CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239 $as_echo "$CC" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246 test -n "$CC" && break
3247 done
3248 fi
3249 if test -z "$CC"; then
3250 ac_ct_CC=$CC
3251 for ac_prog in cl.exe
3252 do
3253 # Extract the first word of "$ac_prog", so it can be a program name with args.
3254 set dummy $ac_prog; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$ac_ct_CC"; then
3261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_ac_ct_CC="$ac_prog"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3281 if test -n "$ac_ct_CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3283 $as_echo "$ac_ct_CC" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 test -n "$ac_ct_CC" && break
3291 done
3292
3293 if test "x$ac_ct_CC" = x; then
3294 CC=""
3295 else
3296 case $cross_compiling:$ac_tool_warned in
3297 yes:)
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3300 ac_tool_warned=yes ;;
3301 esac
3302 CC=$ac_ct_CC
3303 fi
3304 fi
3305
3306 fi
3307
3308
3309 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "no acceptable C compiler found in \$PATH
3312 See \`config.log' for more details" "$LINENO" 5; }
3313
3314 # Provide some information about the compiler.
3315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3316 set X $ac_compile
3317 ac_compiler=$2
3318 for ac_option in --version -v -V -qversion; do
3319 { { ac_try="$ac_compiler $ac_option >&5"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3327 ac_status=$?
3328 if test -s conftest.err; then
3329 sed '10a\
3330 ... rest of stderr output deleted ...
3331 10q' conftest.err >conftest.er1
3332 cat conftest.er1 >&5
3333 fi
3334 rm -f conftest.er1 conftest.err
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }
3337 done
3338
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3341
3342 int
3343 main ()
3344 {
3345
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 ac_clean_files_save=$ac_clean_files
3351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3352 # Try to create an executable without -o first, disregard a.out.
3353 # It will help us diagnose broken compilers, and finding out an intuition
3354 # of exeext.
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3356 $as_echo_n "checking whether the C compiler works... " >&6; }
3357 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3358
3359 # The possible output files:
3360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3361
3362 ac_rmfiles=
3363 for ac_file in $ac_files
3364 do
3365 case $ac_file in
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3368 esac
3369 done
3370 rm -f $ac_rmfiles
3371
3372 if { { ac_try="$ac_link_default"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link_default") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3386 # so that the user can short-circuit this test for compilers unknown to
3387 # Autoconf.
3388 for ac_file in $ac_files ''
3389 do
3390 test -f "$ac_file" || continue
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3393 ;;
3394 [ab].out )
3395 # We found the default executable, but exeext='' is most
3396 # certainly right.
3397 break;;
3398 *.* )
3399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3400 then :; else
3401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 fi
3403 # We set ac_cv_exeext here because the later test for it is not
3404 # safe: cross compilers may not add the suffix if given an `-o'
3405 # argument, so we may need to know it at that point already.
3406 # Even if this section looks crufty: it has the advantage of
3407 # actually working.
3408 break;;
3409 * )
3410 break;;
3411 esac
3412 done
3413 test "$ac_cv_exeext" = no && ac_cv_exeext=
3414
3415 else
3416 ac_file=''
3417 fi
3418 if test -z "$ac_file"; then :
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error 77 "C compiler cannot create executables
3427 See \`config.log' for more details" "$LINENO" 5; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430 $as_echo "yes" >&6; }
3431 fi
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3433 $as_echo_n "checking for C compiler default output file name... " >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3435 $as_echo "$ac_file" >&6; }
3436 ac_exeext=$ac_cv_exeext
3437
3438 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3439 ac_clean_files=$ac_clean_files_save
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3441 $as_echo_n "checking for suffix of executables... " >&6; }
3442 if { { ac_try="$ac_link"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_link") 2>&5
3450 ac_status=$?
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3455 # work properly (i.e., refer to `conftest.exe'), while it won't with
3456 # `rm'.
3457 for ac_file in conftest.exe conftest conftest.*; do
3458 test -f "$ac_file" || continue
3459 case $ac_file in
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3462 break;;
3463 * ) break;;
3464 esac
3465 done
3466 else
3467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3470 See \`config.log' for more details" "$LINENO" 5; }
3471 fi
3472 rm -f conftest conftest$ac_cv_exeext
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3474 $as_echo "$ac_cv_exeext" >&6; }
3475
3476 rm -f conftest.$ac_ext
3477 EXEEXT=$ac_cv_exeext
3478 ac_exeext=$EXEEXT
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481 #include <stdio.h>
3482 int
3483 main ()
3484 {
3485 FILE *f = fopen ("conftest.out", "w");
3486 return ferror (f) || fclose (f) != 0;
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 ac_clean_files="$ac_clean_files conftest.out"
3493 # Check that the compiler produces executables we can run. If not, either
3494 # the compiler is broken, or we cross compile.
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3496 $as_echo_n "checking whether we are cross compiling... " >&6; }
3497 if test "$cross_compiling" != yes; then
3498 { { ac_try="$ac_link"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_link") 2>&5
3506 ac_status=$?
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }
3509 if { ac_try='./conftest$ac_cv_exeext'
3510 { { case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_try") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; }; then
3520 cross_compiling=no
3521 else
3522 if test "$cross_compiling" = maybe; then
3523 cross_compiling=yes
3524 else
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot run C compiled programs.
3528 If you meant to cross compile, use \`--host'.
3529 See \`config.log' for more details" "$LINENO" 5; }
3530 fi
3531 fi
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3534 $as_echo "$cross_compiling" >&6; }
3535
3536 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3537 ac_clean_files=$ac_clean_files_save
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3539 $as_echo_n "checking for suffix of object files... " >&6; }
3540 if ${ac_cv_objext+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545
3546 int
3547 main ()
3548 {
3549
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.o conftest.obj
3555 if { { ac_try="$ac_compile"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_compile") 2>&5
3563 ac_status=$?
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }; then :
3566 for ac_file in conftest.o conftest.obj conftest.*; do
3567 test -f "$ac_file" || continue;
3568 case $ac_file in
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3571 break;;
3572 esac
3573 done
3574 else
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "cannot compute suffix of object files: cannot compile
3581 See \`config.log' for more details" "$LINENO" 5; }
3582 fi
3583 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3586 $as_echo "$ac_cv_objext" >&6; }
3587 OBJEXT=$ac_cv_objext
3588 ac_objext=$OBJEXT
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3590 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3591 if ${ac_cv_c_compiler_gnu+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596
3597 int
3598 main ()
3599 {
3600 #ifndef __GNUC__
3601 choke me
3602 #endif
3603
3604 ;
3605 return 0;
3606 }
3607 _ACEOF
3608 if ac_fn_c_try_compile "$LINENO"; then :
3609 ac_compiler_gnu=yes
3610 else
3611 ac_compiler_gnu=no
3612 fi
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3615
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3618 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3619 if test $ac_compiler_gnu = yes; then
3620 GCC=yes
3621 else
3622 GCC=
3623 fi
3624 ac_test_CFLAGS=${CFLAGS+set}
3625 ac_save_CFLAGS=$CFLAGS
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3627 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3628 if ${ac_cv_prog_cc_g+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 ac_save_c_werror_flag=$ac_c_werror_flag
3632 ac_c_werror_flag=yes
3633 ac_cv_prog_cc_g=no
3634 CFLAGS="-g"
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3637
3638 int
3639 main ()
3640 {
3641
3642 ;
3643 return 0;
3644 }
3645 _ACEOF
3646 if ac_fn_c_try_compile "$LINENO"; then :
3647 ac_cv_prog_cc_g=yes
3648 else
3649 CFLAGS=""
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3652
3653 int
3654 main ()
3655 {
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662
3663 else
3664 ac_c_werror_flag=$ac_save_c_werror_flag
3665 CFLAGS="-g"
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_g=yes
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 fi
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3688 $as_echo "$ac_cv_prog_cc_g" >&6; }
3689 if test "$ac_test_CFLAGS" = set; then
3690 CFLAGS=$ac_save_CFLAGS
3691 elif test $ac_cv_prog_cc_g = yes; then
3692 if test "$GCC" = yes; then
3693 CFLAGS="-g -O2"
3694 else
3695 CFLAGS="-g"
3696 fi
3697 else
3698 if test "$GCC" = yes; then
3699 CFLAGS="-O2"
3700 else
3701 CFLAGS=
3702 fi
3703 fi
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3705 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3706 if ${ac_cv_prog_cc_c89+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 ac_cv_prog_cc_c89=no
3710 ac_save_CC=$CC
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713 #include <stdarg.h>
3714 #include <stdio.h>
3715 struct stat;
3716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3717 struct buf { int x; };
3718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3719 static char *e (p, i)
3720 char **p;
3721 int i;
3722 {
3723 return p[i];
3724 }
3725 static char *f (char * (*g) (char **, int), char **p, ...)
3726 {
3727 char *s;
3728 va_list v;
3729 va_start (v,p);
3730 s = g (p, va_arg (v,int));
3731 va_end (v);
3732 return s;
3733 }
3734
3735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3736 function prototypes and stuff, but not '\xHH' hex character constants.
3737 These don't provoke an error unfortunately, instead are silently treated
3738 as 'x'. The following induces an error, until -std is added to get
3739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3740 array size at least. It's necessary to write '\x00'==0 to get something
3741 that's true only with -std. */
3742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3743
3744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3745 inside strings and character constants. */
3746 #define FOO(x) 'x'
3747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3748
3749 int test (int i, double x);
3750 struct s1 {int (*f) (int a);};
3751 struct s2 {int (*f) (double a);};
3752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3753 int argc;
3754 char **argv;
3755 int
3756 main ()
3757 {
3758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3765 do
3766 CC="$ac_save_CC $ac_arg"
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_cv_prog_cc_c89=$ac_arg
3769 fi
3770 rm -f core conftest.err conftest.$ac_objext
3771 test "x$ac_cv_prog_cc_c89" != "xno" && break
3772 done
3773 rm -f conftest.$ac_ext
3774 CC=$ac_save_CC
3775
3776 fi
3777 # AC_CACHE_VAL
3778 case "x$ac_cv_prog_cc_c89" in
3779 x)
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3781 $as_echo "none needed" >&6; } ;;
3782 xno)
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3784 $as_echo "unsupported" >&6; } ;;
3785 *)
3786 CC="$CC $ac_cv_prog_cc_c89"
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3789 esac
3790 if test "x$ac_cv_prog_cc_c89" != xno; then :
3791
3792 fi
3793
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799
3800 depcc="$CC" am_compiler_list=
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3803 $as_echo_n "checking dependency style of $depcc... " >&6; }
3804 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3808 # We make a subdir and do the tests there. Otherwise we can end up
3809 # making bogus files that we don't know about and never remove. For
3810 # instance it was reported that on HP-UX the gcc test will end up
3811 # making a dummy file named `D' -- because `-MD' means `put the output
3812 # in D'.
3813 rm -rf conftest.dir
3814 mkdir conftest.dir
3815 # Copy depcomp to subdir because otherwise we won't find it if we're
3816 # using a relative directory.
3817 cp "$am_depcomp" conftest.dir
3818 cd conftest.dir
3819 # We will build objects and dependencies in a subdirectory because
3820 # it helps to detect inapplicable dependency modes. For instance
3821 # both Tru64's cc and ICC support -MD to output dependencies as a
3822 # side effect of compilation, but ICC will put the dependencies in
3823 # the current directory while Tru64 will put them in the object
3824 # directory.
3825 mkdir sub
3826
3827 am_cv_CC_dependencies_compiler_type=none
3828 if test "$am_compiler_list" = ""; then
3829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3830 fi
3831 am__universal=false
3832 case " $depcc " in #(
3833 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3834 esac
3835
3836 for depmode in $am_compiler_list; do
3837 # Setup a source with many dependencies, because some compilers
3838 # like to wrap large dependency lists on column 80 (with \), and
3839 # we should not choose a depcomp mode which is confused by this.
3840 #
3841 # We need to recreate these files for each test, as the compiler may
3842 # overwrite some of them when testing with obscure command lines.
3843 # This happens at least with the AIX C compiler.
3844 : > sub/conftest.c
3845 for i in 1 2 3 4 5 6; do
3846 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3847 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3848 # Solaris 8's {/usr,}/bin/sh.
3849 touch sub/conftst$i.h
3850 done
3851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3852
3853 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3854 # mode. It turns out that the SunPro C++ compiler does not properly
3855 # handle `-M -o', and we need to detect this. Also, some Intel
3856 # versions had trouble with output in subdirs
3857 am__obj=sub/conftest.${OBJEXT-o}
3858 am__minus_obj="-o $am__obj"
3859 case $depmode in
3860 gcc)
3861 # This depmode causes a compiler race in universal mode.
3862 test "$am__universal" = false || continue
3863 ;;
3864 nosideeffect)
3865 # after this tag, mechanisms are not by side-effect, so they'll
3866 # only be used when explicitly requested
3867 if test "x$enable_dependency_tracking" = xyes; then
3868 continue
3869 else
3870 break
3871 fi
3872 ;;
3873 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3874 # This compiler won't grok `-c -o', but also, the minuso test has
3875 # not run yet. These depmodes are late enough in the game, and
3876 # so weak that their functioning should not be impacted.
3877 am__obj=conftest.${OBJEXT-o}
3878 am__minus_obj=
3879 ;;
3880 none) break ;;
3881 esac
3882 if depmode=$depmode \
3883 source=sub/conftest.c object=$am__obj \
3884 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3885 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3886 >/dev/null 2>conftest.err &&
3887 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3888 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3889 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3890 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3891 # icc doesn't choke on unknown options, it will just issue warnings
3892 # or remarks (even with -Werror). So we grep stderr for any message
3893 # that says an option was ignored or not supported.
3894 # When given -MP, icc 7.0 and 7.1 complain thusly:
3895 # icc: Command line warning: ignoring option '-M'; no argument required
3896 # The diagnosis changed in icc 8.0:
3897 # icc: Command line remark: option '-MP' not supported
3898 if (grep 'ignoring option' conftest.err ||
3899 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3900 am_cv_CC_dependencies_compiler_type=$depmode
3901 break
3902 fi
3903 fi
3904 done
3905
3906 cd ..
3907 rm -rf conftest.dir
3908 else
3909 am_cv_CC_dependencies_compiler_type=none
3910 fi
3911
3912 fi
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3914 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3915 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3916
3917 if
3918 test "x$enable_dependency_tracking" != xno \
3919 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3920 am__fastdepCC_TRUE=
3921 am__fastdepCC_FALSE='#'
3922 else
3923 am__fastdepCC_TRUE='#'
3924 am__fastdepCC_FALSE=
3925 fi
3926
3927
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3929 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3930 if ${ac_cv_prog_cc_c99+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 ac_cv_prog_cc_c99=no
3934 ac_save_CC=$CC
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <stdarg.h>
3938 #include <stdbool.h>
3939 #include <stdlib.h>
3940 #include <wchar.h>
3941 #include <stdio.h>
3942
3943 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3944 #define debug(...) fprintf (stderr, __VA_ARGS__)
3945 #define showlist(...) puts (#__VA_ARGS__)
3946 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3947 static void
3948 test_varargs_macros (void)
3949 {
3950 int x = 1234;
3951 int y = 5678;
3952 debug ("Flag");
3953 debug ("X = %d\n", x);
3954 showlist (The first, second, and third items.);
3955 report (x>y, "x is %d but y is %d", x, y);
3956 }
3957
3958 // Check long long types.
3959 #define BIG64 18446744073709551615ull
3960 #define BIG32 4294967295ul
3961 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3962 #if !BIG_OK
3963 your preprocessor is broken;
3964 #endif
3965 #if BIG_OK
3966 #else
3967 your preprocessor is broken;
3968 #endif
3969 static long long int bignum = -9223372036854775807LL;
3970 static unsigned long long int ubignum = BIG64;
3971
3972 struct incomplete_array
3973 {
3974 int datasize;
3975 double data[];
3976 };
3977
3978 struct named_init {
3979 int number;
3980 const wchar_t *name;
3981 double average;
3982 };
3983
3984 typedef const char *ccp;
3985
3986 static inline int
3987 test_restrict (ccp restrict text)
3988 {
3989 // See if C++-style comments work.
3990 // Iterate through items via the restricted pointer.
3991 // Also check for declarations in for loops.
3992 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3993 continue;
3994 return 0;
3995 }
3996
3997 // Check varargs and va_copy.
3998 static void
3999 test_varargs (const char *format, ...)
4000 {
4001 va_list args;
4002 va_start (args, format);
4003 va_list args_copy;
4004 va_copy (args_copy, args);
4005
4006 const char *str;
4007 int number;
4008 float fnumber;
4009
4010 while (*format)
4011 {
4012 switch (*format++)
4013 {
4014 case 's': // string
4015 str = va_arg (args_copy, const char *);
4016 break;
4017 case 'd': // int
4018 number = va_arg (args_copy, int);
4019 break;
4020 case 'f': // float
4021 fnumber = va_arg (args_copy, double);
4022 break;
4023 default:
4024 break;
4025 }
4026 }
4027 va_end (args_copy);
4028 va_end (args);
4029 }
4030
4031 int
4032 main ()
4033 {
4034
4035 // Check bool.
4036 _Bool success = false;
4037
4038 // Check restrict.
4039 if (test_restrict ("String literal") == 0)
4040 success = true;
4041 char *restrict newvar = "Another string";
4042
4043 // Check varargs.
4044 test_varargs ("s, d' f .", "string", 65, 34.234);
4045 test_varargs_macros ();
4046
4047 // Check flexible array members.
4048 struct incomplete_array *ia =
4049 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4050 ia->datasize = 10;
4051 for (int i = 0; i < ia->datasize; ++i)
4052 ia->data[i] = i * 1.234;
4053
4054 // Check named initializers.
4055 struct named_init ni = {
4056 .number = 34,
4057 .name = L"Test wide string",
4058 .average = 543.34343,
4059 };
4060
4061 ni.number = 58;
4062
4063 int dynamic_array[ni.number];
4064 dynamic_array[ni.number - 1] = 543;
4065
4066 // work around unused variable warnings
4067 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4068 || dynamic_array[ni.number - 1] != 543);
4069
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4075 do
4076 CC="$ac_save_CC $ac_arg"
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_cv_prog_cc_c99=$ac_arg
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext
4081 test "x$ac_cv_prog_cc_c99" != "xno" && break
4082 done
4083 rm -f conftest.$ac_ext
4084 CC=$ac_save_CC
4085
4086 fi
4087 # AC_CACHE_VAL
4088 case "x$ac_cv_prog_cc_c99" in
4089 x)
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4091 $as_echo "none needed" >&6; } ;;
4092 xno)
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4094 $as_echo "unsupported" >&6; } ;;
4095 *)
4096 CC="$CC $ac_cv_prog_cc_c99"
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4098 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4099 esac
4100 if test "x$ac_cv_prog_cc_c99" != xno; then :
4101
4102 fi
4103
4104
4105 ac_ext=cpp
4106 ac_cpp='$CXXCPP $CPPFLAGS'
4107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4110 if test -z "$CXX"; then
4111 if test -n "$CCC"; then
4112 CXX=$CCC
4113 else
4114 if test -n "$ac_tool_prefix"; then
4115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4116 do
4117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if ${ac_cv_prog_CXX+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 if test -n "$CXX"; then
4125 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138 done
4139 done
4140 IFS=$as_save_IFS
4141
4142 fi
4143 fi
4144 CXX=$ac_cv_prog_CXX
4145 if test -n "$CXX"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4147 $as_echo "$CXX" >&6; }
4148 else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4151 fi
4152
4153
4154 test -n "$CXX" && break
4155 done
4156 fi
4157 if test -z "$CXX"; then
4158 ac_ct_CXX=$CXX
4159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4160 do
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy $ac_prog; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test -n "$ac_ct_CXX"; then
4169 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_ac_ct_CXX="$ac_prog"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182 done
4183 done
4184 IFS=$as_save_IFS
4185
4186 fi
4187 fi
4188 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4189 if test -n "$ac_ct_CXX"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4191 $as_echo "$ac_ct_CXX" >&6; }
4192 else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4195 fi
4196
4197
4198 test -n "$ac_ct_CXX" && break
4199 done
4200
4201 if test "x$ac_ct_CXX" = x; then
4202 CXX="g++"
4203 else
4204 case $cross_compiling:$ac_tool_warned in
4205 yes:)
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4208 ac_tool_warned=yes ;;
4209 esac
4210 CXX=$ac_ct_CXX
4211 fi
4212 fi
4213
4214 fi
4215 fi
4216 # Provide some information about the compiler.
4217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4218 set X $ac_compile
4219 ac_compiler=$2
4220 for ac_option in --version -v -V -qversion; do
4221 { { ac_try="$ac_compiler $ac_option >&5"
4222 case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4229 ac_status=$?
4230 if test -s conftest.err; then
4231 sed '10a\
4232 ... rest of stderr output deleted ...
4233 10q' conftest.err >conftest.er1
4234 cat conftest.er1 >&5
4235 fi
4236 rm -f conftest.er1 conftest.err
4237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238 test $ac_status = 0; }
4239 done
4240
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4242 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4243 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248
4249 int
4250 main ()
4251 {
4252 #ifndef __GNUC__
4253 choke me
4254 #endif
4255
4256 ;
4257 return 0;
4258 }
4259 _ACEOF
4260 if ac_fn_cxx_try_compile "$LINENO"; then :
4261 ac_compiler_gnu=yes
4262 else
4263 ac_compiler_gnu=no
4264 fi
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4267
4268 fi
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4270 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4271 if test $ac_compiler_gnu = yes; then
4272 GXX=yes
4273 else
4274 GXX=
4275 fi
4276 ac_test_CXXFLAGS=${CXXFLAGS+set}
4277 ac_save_CXXFLAGS=$CXXFLAGS
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4279 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4280 if ${ac_cv_prog_cxx_g+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4284 ac_cxx_werror_flag=yes
4285 ac_cv_prog_cxx_g=no
4286 CXXFLAGS="-g"
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289
4290 int
4291 main ()
4292 {
4293
4294 ;
4295 return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_cxx_try_compile "$LINENO"; then :
4299 ac_cv_prog_cxx_g=yes
4300 else
4301 CXXFLAGS=""
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304
4305 int
4306 main ()
4307 {
4308
4309 ;
4310 return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_cxx_try_compile "$LINENO"; then :
4314
4315 else
4316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317 CXXFLAGS="-g"
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320
4321 int
4322 main ()
4323 {
4324
4325 ;
4326 return 0;
4327 }
4328 _ACEOF
4329 if ac_fn_cxx_try_compile "$LINENO"; then :
4330 ac_cv_prog_cxx_g=yes
4331 fi
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 fi
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4340 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4341 if test "$ac_test_CXXFLAGS" = set; then
4342 CXXFLAGS=$ac_save_CXXFLAGS
4343 elif test $ac_cv_prog_cxx_g = yes; then
4344 if test "$GXX" = yes; then
4345 CXXFLAGS="-g -O2"
4346 else
4347 CXXFLAGS="-g"
4348 fi
4349 else
4350 if test "$GXX" = yes; then
4351 CXXFLAGS="-O2"
4352 else
4353 CXXFLAGS=
4354 fi
4355 fi
4356 ac_ext=c
4357 ac_cpp='$CPP $CPPFLAGS'
4358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361
4362 depcc="$CXX" am_compiler_list=
4363
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4365 $as_echo_n "checking dependency style of $depcc... " >&6; }
4366 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4370 # We make a subdir and do the tests there. Otherwise we can end up
4371 # making bogus files that we don't know about and never remove. For
4372 # instance it was reported that on HP-UX the gcc test will end up
4373 # making a dummy file named `D' -- because `-MD' means `put the output
4374 # in D'.
4375 rm -rf conftest.dir
4376 mkdir conftest.dir
4377 # Copy depcomp to subdir because otherwise we won't find it if we're
4378 # using a relative directory.
4379 cp "$am_depcomp" conftest.dir
4380 cd conftest.dir
4381 # We will build objects and dependencies in a subdirectory because
4382 # it helps to detect inapplicable dependency modes. For instance
4383 # both Tru64's cc and ICC support -MD to output dependencies as a
4384 # side effect of compilation, but ICC will put the dependencies in
4385 # the current directory while Tru64 will put them in the object
4386 # directory.
4387 mkdir sub
4388
4389 am_cv_CXX_dependencies_compiler_type=none
4390 if test "$am_compiler_list" = ""; then
4391 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4392 fi
4393 am__universal=false
4394 case " $depcc " in #(
4395 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4396 esac
4397
4398 for depmode in $am_compiler_list; do
4399 # Setup a source with many dependencies, because some compilers
4400 # like to wrap large dependency lists on column 80 (with \), and
4401 # we should not choose a depcomp mode which is confused by this.
4402 #
4403 # We need to recreate these files for each test, as the compiler may
4404 # overwrite some of them when testing with obscure command lines.
4405 # This happens at least with the AIX C compiler.
4406 : > sub/conftest.c
4407 for i in 1 2 3 4 5 6; do
4408 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4409 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4410 # Solaris 8's {/usr,}/bin/sh.
4411 touch sub/conftst$i.h
4412 done
4413 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4414
4415 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4416 # mode. It turns out that the SunPro C++ compiler does not properly
4417 # handle `-M -o', and we need to detect this. Also, some Intel
4418 # versions had trouble with output in subdirs
4419 am__obj=sub/conftest.${OBJEXT-o}
4420 am__minus_obj="-o $am__obj"
4421 case $depmode in
4422 gcc)
4423 # This depmode causes a compiler race in universal mode.
4424 test "$am__universal" = false || continue
4425 ;;
4426 nosideeffect)
4427 # after this tag, mechanisms are not by side-effect, so they'll
4428 # only be used when explicitly requested
4429 if test "x$enable_dependency_tracking" = xyes; then
4430 continue
4431 else
4432 break
4433 fi
4434 ;;
4435 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4436 # This compiler won't grok `-c -o', but also, the minuso test has
4437 # not run yet. These depmodes are late enough in the game, and
4438 # so weak that their functioning should not be impacted.
4439 am__obj=conftest.${OBJEXT-o}
4440 am__minus_obj=
4441 ;;
4442 none) break ;;
4443 esac
4444 if depmode=$depmode \
4445 source=sub/conftest.c object=$am__obj \
4446 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4447 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4448 >/dev/null 2>conftest.err &&
4449 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4450 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4451 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4452 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4453 # icc doesn't choke on unknown options, it will just issue warnings
4454 # or remarks (even with -Werror). So we grep stderr for any message
4455 # that says an option was ignored or not supported.
4456 # When given -MP, icc 7.0 and 7.1 complain thusly:
4457 # icc: Command line warning: ignoring option '-M'; no argument required
4458 # The diagnosis changed in icc 8.0:
4459 # icc: Command line remark: option '-MP' not supported
4460 if (grep 'ignoring option' conftest.err ||
4461 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4462 am_cv_CXX_dependencies_compiler_type=$depmode
4463 break
4464 fi
4465 fi
4466 done
4467
4468 cd ..
4469 rm -rf conftest.dir
4470 else
4471 am_cv_CXX_dependencies_compiler_type=none
4472 fi
4473
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4476 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4477 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4478
4479 if
4480 test "x$enable_dependency_tracking" != xno \
4481 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4482 am__fastdepCXX_TRUE=
4483 am__fastdepCXX_FALSE='#'
4484 else
4485 am__fastdepCXX_TRUE='#'
4486 am__fastdepCXX_FALSE=
4487 fi
4488
4489
4490
4491 case `pwd` in
4492 *\ * | *\ *)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4494 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4495 esac
4496
4497
4498
4499 macro_version='2.4.2'
4500 macro_revision='1.3337'
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514 ltmain="$ac_aux_dir/ltmain.sh"
4515
4516 # Make sure we can run config.sub.
4517 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4518 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4521 $as_echo_n "checking build system type... " >&6; }
4522 if ${ac_cv_build+:} false; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 ac_build_alias=$build_alias
4526 test "x$ac_build_alias" = x &&
4527 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4528 test "x$ac_build_alias" = x &&
4529 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4530 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4532
4533 fi
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4535 $as_echo "$ac_cv_build" >&6; }
4536 case $ac_cv_build in
4537 *-*-*) ;;
4538 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4539 esac
4540 build=$ac_cv_build
4541 ac_save_IFS=$IFS; IFS='-'
4542 set x $ac_cv_build
4543 shift
4544 build_cpu=$1
4545 build_vendor=$2
4546 shift; shift
4547 # Remember, the first character of IFS is used to create $*,
4548 # except with old shells:
4549 build_os=$*
4550 IFS=$ac_save_IFS
4551 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4552
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4555 $as_echo_n "checking host system type... " >&6; }
4556 if ${ac_cv_host+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 if test "x$host_alias" = x; then
4560 ac_cv_host=$ac_cv_build
4561 else
4562 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4564 fi
4565
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4568 $as_echo "$ac_cv_host" >&6; }
4569 case $ac_cv_host in
4570 *-*-*) ;;
4571 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4572 esac
4573 host=$ac_cv_host
4574 ac_save_IFS=$IFS; IFS='-'
4575 set x $ac_cv_host
4576 shift
4577 host_cpu=$1
4578 host_vendor=$2
4579 shift; shift
4580 # Remember, the first character of IFS is used to create $*,
4581 # except with old shells:
4582 host_os=$*
4583 IFS=$ac_save_IFS
4584 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4585
4586
4587 # Backslashify metacharacters that are still active within
4588 # double-quoted strings.
4589 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4590
4591 # Same as above, but do not quote variable references.
4592 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4593
4594 # Sed substitution to delay expansion of an escaped shell variable in a
4595 # double_quote_subst'ed string.
4596 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4597
4598 # Sed substitution to delay expansion of an escaped single quote.
4599 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4600
4601 # Sed substitution to avoid accidental globbing in evaled expressions
4602 no_glob_subst='s/\*/\\\*/g'
4603
4604 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4605 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4606 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4607
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4609 $as_echo_n "checking how to print strings... " >&6; }
4610 # Test print first, because it will be a builtin if present.
4611 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4612 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4613 ECHO='print -r --'
4614 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4615 ECHO='printf %s\n'
4616 else
4617 # Use this function as a fallback that always works.
4618 func_fallback_echo ()
4619 {
4620 eval 'cat <<_LTECHO_EOF
4621 $1
4622 _LTECHO_EOF'
4623 }
4624 ECHO='func_fallback_echo'
4625 fi
4626
4627 # func_echo_all arg...
4628 # Invoke $ECHO with all args, space-separated.
4629 func_echo_all ()
4630 {
4631 $ECHO ""
4632 }
4633
4634 case "$ECHO" in
4635 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4636 $as_echo "printf" >&6; } ;;
4637 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4638 $as_echo "print -r" >&6; } ;;
4639 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4640 $as_echo "cat" >&6; } ;;
4641 esac
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4657 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4658 if ${ac_cv_path_SED+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4662 for ac_i in 1 2 3 4 5 6 7; do
4663 ac_script="$ac_script$as_nl$ac_script"
4664 done
4665 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4666 { ac_script=; unset ac_script;}
4667 if test -z "$SED"; then
4668 ac_path_SED_found=false
4669 # Loop through the user's path and test for each of PROGNAME-LIST
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_prog in sed gsed; do
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4678 as_fn_executable_p "$ac_path_SED" || continue
4679 # Check for GNU ac_path_SED and select it if it is found.
4680 # Check for GNU $ac_path_SED
4681 case `"$ac_path_SED" --version 2>&1` in
4682 *GNU*)
4683 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4684 *)
4685 ac_count=0
4686 $as_echo_n 0123456789 >"conftest.in"
4687 while :
4688 do
4689 cat "conftest.in" "conftest.in" >"conftest.tmp"
4690 mv "conftest.tmp" "conftest.in"
4691 cp "conftest.in" "conftest.nl"
4692 $as_echo '' >> "conftest.nl"
4693 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4695 as_fn_arith $ac_count + 1 && ac_count=$as_val
4696 if test $ac_count -gt ${ac_path_SED_max-0}; then
4697 # Best one so far, save it but keep looking for a better one
4698 ac_cv_path_SED="$ac_path_SED"
4699 ac_path_SED_max=$ac_count
4700 fi
4701 # 10*(2^10) chars as input seems more than enough
4702 test $ac_count -gt 10 && break
4703 done
4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705 esac
4706
4707 $ac_path_SED_found && break 3
4708 done
4709 done
4710 done
4711 IFS=$as_save_IFS
4712 if test -z "$ac_cv_path_SED"; then
4713 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4714 fi
4715 else
4716 ac_cv_path_SED=$SED
4717 fi
4718
4719 fi
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4721 $as_echo "$ac_cv_path_SED" >&6; }
4722 SED="$ac_cv_path_SED"
4723 rm -f conftest.sed
4724
4725 test -z "$SED" && SED=sed
4726 Xsed="$SED -e 1s/^X//"
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4739 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4740 if ${ac_cv_path_GREP+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -z "$GREP"; then
4744 ac_path_GREP_found=false
4745 # Loop through the user's path and test for each of PROGNAME-LIST
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_prog in grep ggrep; do
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4754 as_fn_executable_p "$ac_path_GREP" || continue
4755 # Check for GNU ac_path_GREP and select it if it is found.
4756 # Check for GNU $ac_path_GREP
4757 case `"$ac_path_GREP" --version 2>&1` in
4758 *GNU*)
4759 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4760 *)
4761 ac_count=0
4762 $as_echo_n 0123456789 >"conftest.in"
4763 while :
4764 do
4765 cat "conftest.in" "conftest.in" >"conftest.tmp"
4766 mv "conftest.tmp" "conftest.in"
4767 cp "conftest.in" "conftest.nl"
4768 $as_echo 'GREP' >> "conftest.nl"
4769 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771 as_fn_arith $ac_count + 1 && ac_count=$as_val
4772 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4773 # Best one so far, save it but keep looking for a better one
4774 ac_cv_path_GREP="$ac_path_GREP"
4775 ac_path_GREP_max=$ac_count
4776 fi
4777 # 10*(2^10) chars as input seems more than enough
4778 test $ac_count -gt 10 && break
4779 done
4780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781 esac
4782
4783 $ac_path_GREP_found && break 3
4784 done
4785 done
4786 done
4787 IFS=$as_save_IFS
4788 if test -z "$ac_cv_path_GREP"; then
4789 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4790 fi
4791 else
4792 ac_cv_path_GREP=$GREP
4793 fi
4794
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4797 $as_echo "$ac_cv_path_GREP" >&6; }
4798 GREP="$ac_cv_path_GREP"
4799
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4802 $as_echo_n "checking for egrep... " >&6; }
4803 if ${ac_cv_path_EGREP+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4807 then ac_cv_path_EGREP="$GREP -E"
4808 else
4809 if test -z "$EGREP"; then
4810 ac_path_EGREP_found=false
4811 # Loop through the user's path and test for each of PROGNAME-LIST
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4814 do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_prog in egrep; do
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4820 as_fn_executable_p "$ac_path_EGREP" || continue
4821 # Check for GNU ac_path_EGREP and select it if it is found.
4822 # Check for GNU $ac_path_EGREP
4823 case `"$ac_path_EGREP" --version 2>&1` in
4824 *GNU*)
4825 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4826 *)
4827 ac_count=0
4828 $as_echo_n 0123456789 >"conftest.in"
4829 while :
4830 do
4831 cat "conftest.in" "conftest.in" >"conftest.tmp"
4832 mv "conftest.tmp" "conftest.in"
4833 cp "conftest.in" "conftest.nl"
4834 $as_echo 'EGREP' >> "conftest.nl"
4835 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4837 as_fn_arith $ac_count + 1 && ac_count=$as_val
4838 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4839 # Best one so far, save it but keep looking for a better one
4840 ac_cv_path_EGREP="$ac_path_EGREP"
4841 ac_path_EGREP_max=$ac_count
4842 fi
4843 # 10*(2^10) chars as input seems more than enough
4844 test $ac_count -gt 10 && break
4845 done
4846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4847 esac
4848
4849 $ac_path_EGREP_found && break 3
4850 done
4851 done
4852 done
4853 IFS=$as_save_IFS
4854 if test -z "$ac_cv_path_EGREP"; then
4855 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4856 fi
4857 else
4858 ac_cv_path_EGREP=$EGREP
4859 fi
4860
4861 fi
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4864 $as_echo "$ac_cv_path_EGREP" >&6; }
4865 EGREP="$ac_cv_path_EGREP"
4866
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4869 $as_echo_n "checking for fgrep... " >&6; }
4870 if ${ac_cv_path_FGREP+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4874 then ac_cv_path_FGREP="$GREP -F"
4875 else
4876 if test -z "$FGREP"; then
4877 ac_path_FGREP_found=false
4878 # Loop through the user's path and test for each of PROGNAME-LIST
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4881 do
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_prog in fgrep; do
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4887 as_fn_executable_p "$ac_path_FGREP" || continue
4888 # Check for GNU ac_path_FGREP and select it if it is found.
4889 # Check for GNU $ac_path_FGREP
4890 case `"$ac_path_FGREP" --version 2>&1` in
4891 *GNU*)
4892 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4893 *)
4894 ac_count=0
4895 $as_echo_n 0123456789 >"conftest.in"
4896 while :
4897 do
4898 cat "conftest.in" "conftest.in" >"conftest.tmp"
4899 mv "conftest.tmp" "conftest.in"
4900 cp "conftest.in" "conftest.nl"
4901 $as_echo 'FGREP' >> "conftest.nl"
4902 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4904 as_fn_arith $ac_count + 1 && ac_count=$as_val
4905 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4906 # Best one so far, save it but keep looking for a better one
4907 ac_cv_path_FGREP="$ac_path_FGREP"
4908 ac_path_FGREP_max=$ac_count
4909 fi
4910 # 10*(2^10) chars as input seems more than enough
4911 test $ac_count -gt 10 && break
4912 done
4913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4914 esac
4915
4916 $ac_path_FGREP_found && break 3
4917 done
4918 done
4919 done
4920 IFS=$as_save_IFS
4921 if test -z "$ac_cv_path_FGREP"; then
4922 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4923 fi
4924 else
4925 ac_cv_path_FGREP=$FGREP
4926 fi
4927
4928 fi
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4931 $as_echo "$ac_cv_path_FGREP" >&6; }
4932 FGREP="$ac_cv_path_FGREP"
4933
4934
4935 test -z "$GREP" && GREP=grep
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955 # Check whether --with-gnu-ld was given.
4956 if test "${with_gnu_ld+set}" = set; then :
4957 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4958 else
4959 with_gnu_ld=no
4960 fi
4961
4962 ac_prog=ld
4963 if test "$GCC" = yes; then
4964 # Check if gcc -print-prog-name=ld gives a path.
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4966 $as_echo_n "checking for ld used by $CC... " >&6; }
4967 case $host in
4968 *-*-mingw*)
4969 # gcc leaves a trailing carriage return which upsets mingw
4970 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4971 *)
4972 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4973 esac
4974 case $ac_prog in
4975 # Accept absolute paths.
4976 [\\/]* | ?:[\\/]*)
4977 re_direlt='/[^/][^/]*/\.\./'
4978 # Canonicalize the pathname of ld
4979 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4980 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4981 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4982 done
4983 test -z "$LD" && LD="$ac_prog"
4984 ;;
4985 "")
4986 # If it fails, then pretend we aren't using GCC.
4987 ac_prog=ld
4988 ;;
4989 *)
4990 # If it is relative, then search for the first ld in PATH.
4991 with_gnu_ld=unknown
4992 ;;
4993 esac
4994 elif test "$with_gnu_ld" = yes; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4996 $as_echo_n "checking for GNU ld... " >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4999 $as_echo_n "checking for non-GNU ld... " >&6; }
5000 fi
5001 if ${lt_cv_path_LD+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 if test -z "$LD"; then
5005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5006 for ac_dir in $PATH; do
5007 IFS="$lt_save_ifs"
5008 test -z "$ac_dir" && ac_dir=.
5009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5010 lt_cv_path_LD="$ac_dir/$ac_prog"
5011 # Check to see if the program is GNU ld. I'd rather use --version,
5012 # but apparently some variants of GNU ld only accept -v.
5013 # Break only if it was the GNU/non-GNU ld that we prefer.
5014 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5015 *GNU* | *'with BFD'*)
5016 test "$with_gnu_ld" != no && break
5017 ;;
5018 *)
5019 test "$with_gnu_ld" != yes && break
5020 ;;
5021 esac
5022 fi
5023 done
5024 IFS="$lt_save_ifs"
5025 else
5026 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5027 fi
5028 fi
5029
5030 LD="$lt_cv_path_LD"
5031 if test -n "$LD"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5033 $as_echo "$LD" >&6; }
5034 else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 fi
5038 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5040 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5041 if ${lt_cv_prog_gnu_ld+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5045 case `$LD -v 2>&1 </dev/null` in
5046 *GNU* | *'with BFD'*)
5047 lt_cv_prog_gnu_ld=yes
5048 ;;
5049 *)
5050 lt_cv_prog_gnu_ld=no
5051 ;;
5052 esac
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5055 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5056 with_gnu_ld=$lt_cv_prog_gnu_ld
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5067 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5068 if ${lt_cv_path_NM+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 if test -n "$NM"; then
5072 # Let the user override the test.
5073 lt_cv_path_NM="$NM"
5074 else
5075 lt_nm_to_check="${ac_tool_prefix}nm"
5076 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5077 lt_nm_to_check="$lt_nm_to_check nm"
5078 fi
5079 for lt_tmp_nm in $lt_nm_to_check; do
5080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5081 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5082 IFS="$lt_save_ifs"
5083 test -z "$ac_dir" && ac_dir=.
5084 tmp_nm="$ac_dir/$lt_tmp_nm"
5085 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5086 # Check to see if the nm accepts a BSD-compat flag.
5087 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5088 # nm: unknown option "B" ignored
5089 # Tru64's nm complains that /dev/null is an invalid object file
5090 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5091 */dev/null* | *'Invalid file or object type'*)
5092 lt_cv_path_NM="$tmp_nm -B"
5093 break
5094 ;;
5095 *)
5096 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5097 */dev/null*)
5098 lt_cv_path_NM="$tmp_nm -p"
5099 break
5100 ;;
5101 *)
5102 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5103 continue # so that we can try to find one that supports BSD flags
5104 ;;
5105 esac
5106 ;;
5107 esac
5108 fi
5109 done
5110 IFS="$lt_save_ifs"
5111 done
5112 : ${lt_cv_path_NM=no}
5113 fi
5114 fi
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5116 $as_echo "$lt_cv_path_NM" >&6; }
5117 if test "$lt_cv_path_NM" != "no"; then
5118 NM="$lt_cv_path_NM"
5119 else
5120 # Didn't find any BSD compatible name lister, look for dumpbin.
5121 if test -n "$DUMPBIN"; then :
5122 # Let the user override the test.
5123 else
5124 if test -n "$ac_tool_prefix"; then
5125 for ac_prog in dumpbin "link -dump"
5126 do
5127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_DUMPBIN+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$DUMPBIN"; then
5135 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148 done
5149 done
5150 IFS=$as_save_IFS
5151
5152 fi
5153 fi
5154 DUMPBIN=$ac_cv_prog_DUMPBIN
5155 if test -n "$DUMPBIN"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5157 $as_echo "$DUMPBIN" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162
5163
5164 test -n "$DUMPBIN" && break
5165 done
5166 fi
5167 if test -z "$DUMPBIN"; then
5168 ac_ct_DUMPBIN=$DUMPBIN
5169 for ac_prog in dumpbin "link -dump"
5170 do
5171 # Extract the first word of "$ac_prog", so it can be a program name with args.
5172 set dummy $ac_prog; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$ac_ct_DUMPBIN"; then
5179 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 fi
5197 fi
5198 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5199 if test -n "$ac_ct_DUMPBIN"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5201 $as_echo "$ac_ct_DUMPBIN" >&6; }
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5205 fi
5206
5207
5208 test -n "$ac_ct_DUMPBIN" && break
5209 done
5210
5211 if test "x$ac_ct_DUMPBIN" = x; then
5212 DUMPBIN=":"
5213 else
5214 case $cross_compiling:$ac_tool_warned in
5215 yes:)
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218 ac_tool_warned=yes ;;
5219 esac
5220 DUMPBIN=$ac_ct_DUMPBIN
5221 fi
5222 fi
5223
5224 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5225 *COFF*)
5226 DUMPBIN="$DUMPBIN -symbols"
5227 ;;
5228 *)
5229 DUMPBIN=:
5230 ;;
5231 esac
5232 fi
5233
5234 if test "$DUMPBIN" != ":"; then
5235 NM="$DUMPBIN"
5236 fi
5237 fi
5238 test -z "$NM" && NM=nm
5239
5240
5241
5242
5243
5244
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5246 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5247 if ${lt_cv_nm_interface+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 lt_cv_nm_interface="BSD nm"
5251 echo "int some_variable = 0;" > conftest.$ac_ext
5252 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5253 (eval "$ac_compile" 2>conftest.err)
5254 cat conftest.err >&5
5255 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5256 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5257 cat conftest.err >&5
5258 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5259 cat conftest.out >&5
5260 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5261 lt_cv_nm_interface="MS dumpbin"
5262 fi
5263 rm -f conftest*
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5266 $as_echo "$lt_cv_nm_interface" >&6; }
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5269 $as_echo_n "checking whether ln -s works... " >&6; }
5270 LN_S=$as_ln_s
5271 if test "$LN_S" = "ln -s"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5273 $as_echo "yes" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5276 $as_echo "no, using $LN_S" >&6; }
5277 fi
5278
5279 # find the maximum length of command line arguments
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5281 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5282 if ${lt_cv_sys_max_cmd_len+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 i=0
5286 teststring="ABCD"
5287
5288 case $build_os in
5289 msdosdjgpp*)
5290 # On DJGPP, this test can blow up pretty badly due to problems in libc
5291 # (any single argument exceeding 2000 bytes causes a buffer overrun
5292 # during glob expansion). Even if it were fixed, the result of this
5293 # check would be larger than it should be.
5294 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5295 ;;
5296
5297 gnu*)
5298 # Under GNU Hurd, this test is not required because there is
5299 # no limit to the length of command line arguments.
5300 # Libtool will interpret -1 as no limit whatsoever
5301 lt_cv_sys_max_cmd_len=-1;
5302 ;;
5303
5304 cygwin* | mingw* | cegcc*)
5305 # On Win9x/ME, this test blows up -- it succeeds, but takes
5306 # about 5 minutes as the teststring grows exponentially.
5307 # Worse, since 9x/ME are not pre-emptively multitasking,
5308 # you end up with a "frozen" computer, even though with patience
5309 # the test eventually succeeds (with a max line length of 256k).
5310 # Instead, let's just punt: use the minimum linelength reported by
5311 # all of the supported platforms: 8192 (on NT/2K/XP).
5312 lt_cv_sys_max_cmd_len=8192;
5313 ;;
5314
5315 mint*)
5316 # On MiNT this can take a long time and run out of memory.
5317 lt_cv_sys_max_cmd_len=8192;
5318 ;;
5319
5320 amigaos*)
5321 # On AmigaOS with pdksh, this test takes hours, literally.
5322 # So we just punt and use a minimum line length of 8192.
5323 lt_cv_sys_max_cmd_len=8192;
5324 ;;
5325
5326 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5327 # This has been around since 386BSD, at least. Likely further.
5328 if test -x /sbin/sysctl; then
5329 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5330 elif test -x /usr/sbin/sysctl; then
5331 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5332 else
5333 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5334 fi
5335 # And add a safety zone
5336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5338 ;;
5339
5340 interix*)
5341 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5342 lt_cv_sys_max_cmd_len=196608
5343 ;;
5344
5345 os2*)
5346 # The test takes a long time on OS/2.
5347 lt_cv_sys_max_cmd_len=8192
5348 ;;
5349
5350 osf*)
5351 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5352 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5353 # nice to cause kernel panics so lets avoid the loop below.
5354 # First set a reasonable default.
5355 lt_cv_sys_max_cmd_len=16384
5356 #
5357 if test -x /sbin/sysconfig; then
5358 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5359 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5360 esac
5361 fi
5362 ;;
5363 sco3.2v5*)
5364 lt_cv_sys_max_cmd_len=102400
5365 ;;
5366 sysv5* | sco5v6* | sysv4.2uw2*)
5367 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5368 if test -n "$kargmax"; then
5369 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5370 else
5371 lt_cv_sys_max_cmd_len=32768
5372 fi
5373 ;;
5374 *)
5375 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5376 if test -n "$lt_cv_sys_max_cmd_len"; then
5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5379 else
5380 # Make teststring a little bigger before we do anything with it.
5381 # a 1K string should be a reasonable start.
5382 for i in 1 2 3 4 5 6 7 8 ; do
5383 teststring=$teststring$teststring
5384 done
5385 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5386 # If test is not a shell built-in, we'll probably end up computing a
5387 # maximum length that is only half of the actual maximum length, but
5388 # we can't tell.
5389 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5390 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5391 test $i != 17 # 1/2 MB should be enough
5392 do
5393 i=`expr $i + 1`
5394 teststring=$teststring$teststring
5395 done
5396 # Only check the string length outside the loop.
5397 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5398 teststring=
5399 # Add a significant safety factor because C++ compilers can tack on
5400 # massive amounts of additional arguments before passing them to the
5401 # linker. It appears as though 1/2 is a usable value.
5402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5403 fi
5404 ;;
5405 esac
5406
5407 fi
5408
5409 if test -n $lt_cv_sys_max_cmd_len ; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5411 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5414 $as_echo "none" >&6; }
5415 fi
5416 max_cmd_len=$lt_cv_sys_max_cmd_len
5417
5418
5419
5420
5421
5422
5423 : ${CP="cp -f"}
5424 : ${MV="mv -f"}
5425 : ${RM="rm -f"}
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5428 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5429 # Try some XSI features
5430 xsi_shell=no
5431 ( _lt_dummy="a/b/c"
5432 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5433 = c,a/b,b/c, \
5434 && eval 'test $(( 1 + 1 )) -eq 2 \
5435 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5436 && xsi_shell=yes
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5438 $as_echo "$xsi_shell" >&6; }
5439
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5442 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5443 lt_shell_append=no
5444 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5445 >/dev/null 2>&1 \
5446 && lt_shell_append=yes
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5448 $as_echo "$lt_shell_append" >&6; }
5449
5450
5451 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5452 lt_unset=unset
5453 else
5454 lt_unset=false
5455 fi
5456
5457
5458
5459
5460
5461 # test EBCDIC or ASCII
5462 case `echo X|tr X '\101'` in
5463 A) # ASCII based system
5464 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5465 lt_SP2NL='tr \040 \012'
5466 lt_NL2SP='tr \015\012 \040\040'
5467 ;;
5468 *) # EBCDIC based system
5469 lt_SP2NL='tr \100 \n'
5470 lt_NL2SP='tr \r\n \100\100'
5471 ;;
5472 esac
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5483 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5484 if ${lt_cv_to_host_file_cmd+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 case $host in
5488 *-*-mingw* )
5489 case $build in
5490 *-*-mingw* ) # actually msys
5491 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5492 ;;
5493 *-*-cygwin* )
5494 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5495 ;;
5496 * ) # otherwise, assume *nix
5497 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5498 ;;
5499 esac
5500 ;;
5501 *-*-cygwin* )
5502 case $build in
5503 *-*-mingw* ) # actually msys
5504 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5505 ;;
5506 *-*-cygwin* )
5507 lt_cv_to_host_file_cmd=func_convert_file_noop
5508 ;;
5509 * ) # otherwise, assume *nix
5510 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5511 ;;
5512 esac
5513 ;;
5514 * ) # unhandled hosts (and "normal" native builds)
5515 lt_cv_to_host_file_cmd=func_convert_file_noop
5516 ;;
5517 esac
5518
5519 fi
5520
5521 to_host_file_cmd=$lt_cv_to_host_file_cmd
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5523 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5524
5525
5526
5527
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5530 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5531 if ${lt_cv_to_tool_file_cmd+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 #assume ordinary cross tools, or native build.
5535 lt_cv_to_tool_file_cmd=func_convert_file_noop
5536 case $host in
5537 *-*-mingw* )
5538 case $build in
5539 *-*-mingw* ) # actually msys
5540 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5541 ;;
5542 esac
5543 ;;
5544 esac
5545
5546 fi
5547
5548 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5550 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5551
5552
5553
5554
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5557 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5558 if ${lt_cv_ld_reload_flag+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 lt_cv_ld_reload_flag='-r'
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5564 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5565 reload_flag=$lt_cv_ld_reload_flag
5566 case $reload_flag in
5567 "" | " "*) ;;
5568 *) reload_flag=" $reload_flag" ;;
5569 esac
5570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5571 case $host_os in
5572 cygwin* | mingw* | pw32* | cegcc*)
5573 if test "$GCC" != yes; then
5574 reload_cmds=false
5575 fi
5576 ;;
5577 darwin*)
5578 if test "$GCC" = yes; then
5579 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5580 else
5581 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5582 fi
5583 ;;
5584 esac
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594 if test -n "$ac_tool_prefix"; then
5595 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5596 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if ${ac_cv_prog_OBJDUMP+:} false; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 if test -n "$OBJDUMP"; then
5603 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5604 else
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5607 do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5615 fi
5616 done
5617 done
5618 IFS=$as_save_IFS
5619
5620 fi
5621 fi
5622 OBJDUMP=$ac_cv_prog_OBJDUMP
5623 if test -n "$OBJDUMP"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5625 $as_echo "$OBJDUMP" >&6; }
5626 else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }
5629 fi
5630
5631
5632 fi
5633 if test -z "$ac_cv_prog_OBJDUMP"; then
5634 ac_ct_OBJDUMP=$OBJDUMP
5635 # Extract the first word of "objdump", so it can be a program name with args.
5636 set dummy objdump; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 if test -n "$ac_ct_OBJDUMP"; then
5643 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5655 fi
5656 done
5657 done
5658 IFS=$as_save_IFS
5659
5660 fi
5661 fi
5662 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5663 if test -n "$ac_ct_OBJDUMP"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5665 $as_echo "$ac_ct_OBJDUMP" >&6; }
5666 else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670
5671 if test "x$ac_ct_OBJDUMP" = x; then
5672 OBJDUMP="false"
5673 else
5674 case $cross_compiling:$ac_tool_warned in
5675 yes:)
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5678 ac_tool_warned=yes ;;
5679 esac
5680 OBJDUMP=$ac_ct_OBJDUMP
5681 fi
5682 else
5683 OBJDUMP="$ac_cv_prog_OBJDUMP"
5684 fi
5685
5686 test -z "$OBJDUMP" && OBJDUMP=objdump
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5697 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5698 if ${lt_cv_deplibs_check_method+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 lt_cv_file_magic_cmd='$MAGIC_CMD'
5702 lt_cv_file_magic_test_file=
5703 lt_cv_deplibs_check_method='unknown'
5704 # Need to set the preceding variable on all platforms that support
5705 # interlibrary dependencies.
5706 # 'none' -- dependencies not supported.
5707 # `unknown' -- same as none, but documents that we really don't know.
5708 # 'pass_all' -- all dependencies passed with no checks.
5709 # 'test_compile' -- check by making test program.
5710 # 'file_magic [[regex]]' -- check by looking for files in library path
5711 # which responds to the $file_magic_cmd with a given extended regex.
5712 # If you have `file' or equivalent on your system and you're not sure
5713 # whether `pass_all' will *always* work, you probably want this one.
5714
5715 case $host_os in
5716 aix[4-9]*)
5717 lt_cv_deplibs_check_method=pass_all
5718 ;;
5719
5720 beos*)
5721 lt_cv_deplibs_check_method=pass_all
5722 ;;
5723
5724 bsdi[45]*)
5725 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5726 lt_cv_file_magic_cmd='/usr/bin/file -L'
5727 lt_cv_file_magic_test_file=/shlib/libc.so
5728 ;;
5729
5730 cygwin*)
5731 # func_win32_libid is a shell function defined in ltmain.sh
5732 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5733 lt_cv_file_magic_cmd='func_win32_libid'
5734 ;;
5735
5736 mingw* | pw32*)
5737 # Base MSYS/MinGW do not provide the 'file' command needed by
5738 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5739 # unless we find 'file', for example because we are cross-compiling.
5740 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5741 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5742 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5743 lt_cv_file_magic_cmd='func_win32_libid'
5744 else
5745 # Keep this pattern in sync with the one in func_win32_libid.
5746 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5747 lt_cv_file_magic_cmd='$OBJDUMP -f'
5748 fi
5749 ;;
5750
5751 cegcc*)
5752 # use the weaker test based on 'objdump'. See mingw*.
5753 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5754 lt_cv_file_magic_cmd='$OBJDUMP -f'
5755 ;;
5756
5757 darwin* | rhapsody*)
5758 lt_cv_deplibs_check_method=pass_all
5759 ;;
5760
5761 freebsd* | dragonfly*)
5762 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5763 case $host_cpu in
5764 i*86 )
5765 # Not sure whether the presence of OpenBSD here was a mistake.
5766 # Let's accept both of them until this is cleared up.
5767 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5768 lt_cv_file_magic_cmd=/usr/bin/file
5769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5770 ;;
5771 esac
5772 else
5773 lt_cv_deplibs_check_method=pass_all
5774 fi
5775 ;;
5776
5777 gnu*)
5778 lt_cv_deplibs_check_method=pass_all
5779 ;;
5780
5781 haiku*)
5782 lt_cv_deplibs_check_method=pass_all
5783 ;;
5784
5785 hpux10.20* | hpux11*)
5786 lt_cv_file_magic_cmd=/usr/bin/file
5787 case $host_cpu in
5788 ia64*)
5789 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5790 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5791 ;;
5792 hppa*64*)
5793 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]'
5794 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5795 ;;
5796 *)
5797 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5798 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5799 ;;
5800 esac
5801 ;;
5802
5803 interix[3-9]*)
5804 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5806 ;;
5807
5808 irix5* | irix6* | nonstopux*)
5809 case $LD in
5810 *-32|*"-32 ") libmagic=32-bit;;
5811 *-n32|*"-n32 ") libmagic=N32;;
5812 *-64|*"-64 ") libmagic=64-bit;;
5813 *) libmagic=never-match;;
5814 esac
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817
5818 # This must be glibc/ELF.
5819 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5820 lt_cv_deplibs_check_method=pass_all
5821 ;;
5822
5823 netbsd* | netbsdelf*-gnu)
5824 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5826 else
5827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5828 fi
5829 ;;
5830
5831 newos6*)
5832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5833 lt_cv_file_magic_cmd=/usr/bin/file
5834 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5835 ;;
5836
5837 *nto* | *qnx*)
5838 lt_cv_deplibs_check_method=pass_all
5839 ;;
5840
5841 openbsd*)
5842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5844 else
5845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5846 fi
5847 ;;
5848
5849 osf3* | osf4* | osf5*)
5850 lt_cv_deplibs_check_method=pass_all
5851 ;;
5852
5853 rdos*)
5854 lt_cv_deplibs_check_method=pass_all
5855 ;;
5856
5857 solaris*)
5858 lt_cv_deplibs_check_method=pass_all
5859 ;;
5860
5861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5862 lt_cv_deplibs_check_method=pass_all
5863 ;;
5864
5865 sysv4 | sysv4.3*)
5866 case $host_vendor in
5867 motorola)
5868 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]'
5869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5870 ;;
5871 ncr)
5872 lt_cv_deplibs_check_method=pass_all
5873 ;;
5874 sequent)
5875 lt_cv_file_magic_cmd='/bin/file'
5876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5877 ;;
5878 sni)
5879 lt_cv_file_magic_cmd='/bin/file'
5880 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5881 lt_cv_file_magic_test_file=/lib/libc.so
5882 ;;
5883 siemens)
5884 lt_cv_deplibs_check_method=pass_all
5885 ;;
5886 pc)
5887 lt_cv_deplibs_check_method=pass_all
5888 ;;
5889 esac
5890 ;;
5891
5892 tpf*)
5893 lt_cv_deplibs_check_method=pass_all
5894 ;;
5895 esac
5896
5897 fi
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5899 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5900
5901 file_magic_glob=
5902 want_nocaseglob=no
5903 if test "$build" = "$host"; then
5904 case $host_os in
5905 mingw* | pw32*)
5906 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5907 want_nocaseglob=yes
5908 else
5909 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5910 fi
5911 ;;
5912 esac
5913 fi
5914
5915 file_magic_cmd=$lt_cv_file_magic_cmd
5916 deplibs_check_method=$lt_cv_deplibs_check_method
5917 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940 if test -n "$ac_tool_prefix"; then
5941 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5942 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_prog_DLLTOOL+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if test -n "$DLLTOOL"; then
5949 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5961 fi
5962 done
5963 done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 DLLTOOL=$ac_cv_prog_DLLTOOL
5969 if test -n "$DLLTOOL"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5971 $as_echo "$DLLTOOL" >&6; }
5972 else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5975 fi
5976
5977
5978 fi
5979 if test -z "$ac_cv_prog_DLLTOOL"; then
5980 ac_ct_DLLTOOL=$DLLTOOL
5981 # Extract the first word of "dlltool", so it can be a program name with args.
5982 set dummy dlltool; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 if test -n "$ac_ct_DLLTOOL"; then
5989 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5993 do
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6001 fi
6002 done
6003 done
6004 IFS=$as_save_IFS
6005
6006 fi
6007 fi
6008 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6009 if test -n "$ac_ct_DLLTOOL"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6011 $as_echo "$ac_ct_DLLTOOL" >&6; }
6012 else
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6015 fi
6016
6017 if test "x$ac_ct_DLLTOOL" = x; then
6018 DLLTOOL="false"
6019 else
6020 case $cross_compiling:$ac_tool_warned in
6021 yes:)
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned=yes ;;
6025 esac
6026 DLLTOOL=$ac_ct_DLLTOOL
6027 fi
6028 else
6029 DLLTOOL="$ac_cv_prog_DLLTOOL"
6030 fi
6031
6032 test -z "$DLLTOOL" && DLLTOOL=dlltool
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6044 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6045 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 lt_cv_sharedlib_from_linklib_cmd='unknown'
6049
6050 case $host_os in
6051 cygwin* | mingw* | pw32* | cegcc*)
6052 # two different shell functions defined in ltmain.sh
6053 # decide which to use based on capabilities of $DLLTOOL
6054 case `$DLLTOOL --help 2>&1` in
6055 *--identify-strict*)
6056 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6057 ;;
6058 *)
6059 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6060 ;;
6061 esac
6062 ;;
6063 *)
6064 # fallback: assume linklib IS sharedlib
6065 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6066 ;;
6067 esac
6068
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6071 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6072 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6073 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6074
6075
6076
6077
6078
6079
6080
6081
6082 if test -n "$ac_tool_prefix"; then
6083 for ac_prog in ar
6084 do
6085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_AR+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 if test -n "$AR"; then
6093 ac_cv_prog_AR="$AR" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 AR=$ac_cv_prog_AR
6113 if test -n "$AR"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6115 $as_echo "$AR" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6119 fi
6120
6121
6122 test -n "$AR" && break
6123 done
6124 fi
6125 if test -z "$AR"; then
6126 ac_ct_AR=$AR
6127 for ac_prog in ar
6128 do
6129 # Extract the first word of "$ac_prog", so it can be a program name with args.
6130 set dummy $ac_prog; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 if test -n "$ac_ct_AR"; then
6137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_ac_ct_AR="$ac_prog"
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6157 if test -n "$ac_ct_AR"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6159 $as_echo "$ac_ct_AR" >&6; }
6160 else
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6163 fi
6164
6165
6166 test -n "$ac_ct_AR" && break
6167 done
6168
6169 if test "x$ac_ct_AR" = x; then
6170 AR="false"
6171 else
6172 case $cross_compiling:$ac_tool_warned in
6173 yes:)
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176 ac_tool_warned=yes ;;
6177 esac
6178 AR=$ac_ct_AR
6179 fi
6180 fi
6181
6182 : ${AR=ar}
6183 : ${AR_FLAGS=cru}
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6196 $as_echo_n "checking for archiver @FILE support... " >&6; }
6197 if ${lt_cv_ar_at_file+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 lt_cv_ar_at_file=no
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203
6204 int
6205 main ()
6206 {
6207
6208 ;
6209 return 0;
6210 }
6211 _ACEOF
6212 if ac_fn_c_try_compile "$LINENO"; then :
6213 echo conftest.$ac_objext > conftest.lst
6214 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6216 (eval $lt_ar_try) 2>&5
6217 ac_status=$?
6218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219 test $ac_status = 0; }
6220 if test "$ac_status" -eq 0; then
6221 # Ensure the archiver fails upon bogus file names.
6222 rm -f conftest.$ac_objext libconftest.a
6223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6224 (eval $lt_ar_try) 2>&5
6225 ac_status=$?
6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6227 test $ac_status = 0; }
6228 if test "$ac_status" -ne 0; then
6229 lt_cv_ar_at_file=@
6230 fi
6231 fi
6232 rm -f conftest.* libconftest.a
6233
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236
6237 fi
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6239 $as_echo "$lt_cv_ar_at_file" >&6; }
6240
6241 if test "x$lt_cv_ar_at_file" = xno; then
6242 archiver_list_spec=
6243 else
6244 archiver_list_spec=$lt_cv_ar_at_file
6245 fi
6246
6247
6248
6249
6250
6251
6252
6253 if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}strip; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if ${ac_cv_prog_STRIP+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if test -n "$STRIP"; then
6262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275 done
6276 done
6277 IFS=$as_save_IFS
6278
6279 fi
6280 fi
6281 STRIP=$ac_cv_prog_STRIP
6282 if test -n "$STRIP"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6284 $as_echo "$STRIP" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6288 fi
6289
6290
6291 fi
6292 if test -z "$ac_cv_prog_STRIP"; then
6293 ac_ct_STRIP=$STRIP
6294 # Extract the first word of "strip", so it can be a program name with args.
6295 set dummy strip; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if test -n "$ac_ct_STRIP"; then
6302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_ac_ct_STRIP="strip"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315 done
6316 done
6317 IFS=$as_save_IFS
6318
6319 fi
6320 fi
6321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6322 if test -n "$ac_ct_STRIP"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6324 $as_echo "$ac_ct_STRIP" >&6; }
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6328 fi
6329
6330 if test "x$ac_ct_STRIP" = x; then
6331 STRIP=":"
6332 else
6333 case $cross_compiling:$ac_tool_warned in
6334 yes:)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337 ac_tool_warned=yes ;;
6338 esac
6339 STRIP=$ac_ct_STRIP
6340 fi
6341 else
6342 STRIP="$ac_cv_prog_STRIP"
6343 fi
6344
6345 test -z "$STRIP" && STRIP=:
6346
6347
6348
6349
6350
6351
6352 if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_RANLIB+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 if test -n "$RANLIB"; then
6361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 RANLIB=$ac_cv_prog_RANLIB
6381 if test -n "$RANLIB"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6383 $as_echo "$RANLIB" >&6; }
6384 else
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389
6390 fi
6391 if test -z "$ac_cv_prog_RANLIB"; then
6392 ac_ct_RANLIB=$RANLIB
6393 # Extract the first word of "ranlib", so it can be a program name with args.
6394 set dummy ranlib; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 if test -n "$ac_ct_RANLIB"; then
6401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_ac_ct_RANLIB="ranlib"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414 done
6415 done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6421 if test -n "$ac_ct_RANLIB"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6423 $as_echo "$ac_ct_RANLIB" >&6; }
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429 if test "x$ac_ct_RANLIB" = x; then
6430 RANLIB=":"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433 yes:)
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436 ac_tool_warned=yes ;;
6437 esac
6438 RANLIB=$ac_ct_RANLIB
6439 fi
6440 else
6441 RANLIB="$ac_cv_prog_RANLIB"
6442 fi
6443
6444 test -z "$RANLIB" && RANLIB=:
6445
6446
6447
6448
6449
6450
6451 # Determine commands to create old-style static archives.
6452 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6453 old_postinstall_cmds='chmod 644 $oldlib'
6454 old_postuninstall_cmds=
6455
6456 if test -n "$RANLIB"; then
6457 case $host_os in
6458 openbsd*)
6459 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6460 ;;
6461 *)
6462 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6463 ;;
6464 esac
6465 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6466 fi
6467
6468 case $host_os in
6469 darwin*)
6470 lock_old_archive_extraction=yes ;;
6471 *)
6472 lock_old_archive_extraction=no ;;
6473 esac
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513 # If no C compiler was specified, use CC.
6514 LTCC=${LTCC-"$CC"}
6515
6516 # If no C compiler flags were specified, use CFLAGS.
6517 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6518
6519 # Allow CC to be a program name with arguments.
6520 compiler=$CC
6521
6522
6523 # Check for command to grab the raw symbol name followed by C symbol from nm.
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6525 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6526 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529
6530 # These are sane defaults that work on at least a few old systems.
6531 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6532
6533 # Character class describing NM global symbol codes.
6534 symcode='[BCDEGRST]'
6535
6536 # Regexp to match symbols that can be accessed directly from C.
6537 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6538
6539 # Define system-specific variables.
6540 case $host_os in
6541 aix*)
6542 symcode='[BCDT]'
6543 ;;
6544 cygwin* | mingw* | pw32* | cegcc*)
6545 symcode='[ABCDGISTW]'
6546 ;;
6547 hpux*)
6548 if test "$host_cpu" = ia64; then
6549 symcode='[ABCDEGRST]'
6550 fi
6551 ;;
6552 irix* | nonstopux*)
6553 symcode='[BCDEGRST]'
6554 ;;
6555 osf*)
6556 symcode='[BCDEGQRST]'
6557 ;;
6558 solaris*)
6559 symcode='[BDRT]'
6560 ;;
6561 sco3.2v5*)
6562 symcode='[DT]'
6563 ;;
6564 sysv4.2uw2*)
6565 symcode='[DT]'
6566 ;;
6567 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6568 symcode='[ABDT]'
6569 ;;
6570 sysv4)
6571 symcode='[DFNSTU]'
6572 ;;
6573 esac
6574
6575 # If we're using GNU nm, then use its standard symbol codes.
6576 case `$NM -V 2>&1` in
6577 *GNU* | *'with BFD'*)
6578 symcode='[ABCDGIRSTW]' ;;
6579 esac
6580
6581 # Transform an extracted symbol line into a proper C declaration.
6582 # Some systems (esp. on ia64) link data and code symbols differently,
6583 # so use this general approach.
6584 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6585
6586 # Transform an extracted symbol line into symbol name and symbol address
6587 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6588 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6589
6590 # Handle CRLF in mingw tool chain
6591 opt_cr=
6592 case $build_os in
6593 mingw*)
6594 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6595 ;;
6596 esac
6597
6598 # Try without a prefix underscore, then with it.
6599 for ac_symprfx in "" "_"; do
6600
6601 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6602 symxfrm="\\1 $ac_symprfx\\2 \\2"
6603
6604 # Write the raw and C identifiers.
6605 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6606 # Fake it for dumpbin and say T for any non-static function
6607 # and D for any global variable.
6608 # Also find C++ and __fastcall symbols from MSVC++,
6609 # which start with @ or ?.
6610 lt_cv_sys_global_symbol_pipe="$AWK '"\
6611 " {last_section=section; section=\$ 3};"\
6612 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6613 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6614 " \$ 0!~/External *\|/{next};"\
6615 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6616 " {if(hide[section]) next};"\
6617 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6618 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6619 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6620 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6621 " ' prfx=^$ac_symprfx"
6622 else
6623 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6624 fi
6625 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6626
6627 # Check to see that the pipe works correctly.
6628 pipe_works=no
6629
6630 rm -f conftest*
6631 cat > conftest.$ac_ext <<_LT_EOF
6632 #ifdef __cplusplus
6633 extern "C" {
6634 #endif
6635 char nm_test_var;
6636 void nm_test_func(void);
6637 void nm_test_func(void){}
6638 #ifdef __cplusplus
6639 }
6640 #endif
6641 int main(){nm_test_var='a';nm_test_func();return(0);}
6642 _LT_EOF
6643
6644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6645 (eval $ac_compile) 2>&5
6646 ac_status=$?
6647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6648 test $ac_status = 0; }; then
6649 # Now try to grab the symbols.
6650 nlist=conftest.nm
6651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6652 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6653 ac_status=$?
6654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6655 test $ac_status = 0; } && test -s "$nlist"; then
6656 # Try sorting and uniquifying the output.
6657 if sort "$nlist" | uniq > "$nlist"T; then
6658 mv -f "$nlist"T "$nlist"
6659 else
6660 rm -f "$nlist"T
6661 fi
6662
6663 # Make sure that we snagged all the symbols we need.
6664 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6665 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6666 cat <<_LT_EOF > conftest.$ac_ext
6667 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6668 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6669 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6670 relocations are performed -- see ld's documentation on pseudo-relocs. */
6671 # define LT_DLSYM_CONST
6672 #elif defined(__osf__)
6673 /* This system does not cope well with relocations in const data. */
6674 # define LT_DLSYM_CONST
6675 #else
6676 # define LT_DLSYM_CONST const
6677 #endif
6678
6679 #ifdef __cplusplus
6680 extern "C" {
6681 #endif
6682
6683 _LT_EOF
6684 # Now generate the symbol file.
6685 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6686
6687 cat <<_LT_EOF >> conftest.$ac_ext
6688
6689 /* The mapping between symbol names and symbols. */
6690 LT_DLSYM_CONST struct {
6691 const char *name;
6692 void *address;
6693 }
6694 lt__PROGRAM__LTX_preloaded_symbols[] =
6695 {
6696 { "@PROGRAM@", (void *) 0 },
6697 _LT_EOF
6698 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6699 cat <<\_LT_EOF >> conftest.$ac_ext
6700 {0, (void *) 0}
6701 };
6702
6703 /* This works around a problem in FreeBSD linker */
6704 #ifdef FREEBSD_WORKAROUND
6705 static const void *lt_preloaded_setup() {
6706 return lt__PROGRAM__LTX_preloaded_symbols;
6707 }
6708 #endif
6709
6710 #ifdef __cplusplus
6711 }
6712 #endif
6713 _LT_EOF
6714 # Now try linking the two files.
6715 mv conftest.$ac_objext conftstm.$ac_objext
6716 lt_globsym_save_LIBS=$LIBS
6717 lt_globsym_save_CFLAGS=$CFLAGS
6718 LIBS="conftstm.$ac_objext"
6719 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6721 (eval $ac_link) 2>&5
6722 ac_status=$?
6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6725 pipe_works=yes
6726 fi
6727 LIBS=$lt_globsym_save_LIBS
6728 CFLAGS=$lt_globsym_save_CFLAGS
6729 else
6730 echo "cannot find nm_test_func in $nlist" >&5
6731 fi
6732 else
6733 echo "cannot find nm_test_var in $nlist" >&5
6734 fi
6735 else
6736 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6737 fi
6738 else
6739 echo "$progname: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6741 fi
6742 rm -rf conftest* conftst*
6743
6744 # Do not use the global_symbol_pipe unless it works.
6745 if test "$pipe_works" = yes; then
6746 break
6747 else
6748 lt_cv_sys_global_symbol_pipe=
6749 fi
6750 done
6751
6752 fi
6753
6754 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6755 lt_cv_sys_global_symbol_to_cdecl=
6756 fi
6757 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6759 $as_echo "failed" >&6; }
6760 else
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6762 $as_echo "ok" >&6; }
6763 fi
6764
6765 # Response file support.
6766 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6767 nm_file_list_spec='@'
6768 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6769 nm_file_list_spec='@'
6770 fi
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6799 $as_echo_n "checking for sysroot... " >&6; }
6800
6801 # Check whether --with-sysroot was given.
6802 if test "${with_sysroot+set}" = set; then :
6803 withval=$with_sysroot;
6804 else
6805 with_sysroot=no
6806 fi
6807
6808
6809 lt_sysroot=
6810 case ${with_sysroot} in #(
6811 yes)
6812 if test "$GCC" = yes; then
6813 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6814 fi
6815 ;; #(
6816 /*)
6817 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6818 ;; #(
6819 no|'')
6820 ;; #(
6821 *)
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6823 $as_echo "${with_sysroot}" >&6; }
6824 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6825 ;;
6826 esac
6827
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6829 $as_echo "${lt_sysroot:-no}" >&6; }
6830
6831
6832
6833
6834
6835 # Check whether --enable-libtool-lock was given.
6836 if test "${enable_libtool_lock+set}" = set; then :
6837 enableval=$enable_libtool_lock;
6838 fi
6839
6840 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6841
6842 # Some flags need to be propagated to the compiler or linker for good
6843 # libtool support.
6844 case $host in
6845 ia64-*-hpux*)
6846 # Find out which ABI we are using.
6847 echo 'int i;' > conftest.$ac_ext
6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }; then
6853 case `/usr/bin/file conftest.$ac_objext` in
6854 *ELF-32*)
6855 HPUX_IA64_MODE="32"
6856 ;;
6857 *ELF-64*)
6858 HPUX_IA64_MODE="64"
6859 ;;
6860 esac
6861 fi
6862 rm -rf conftest*
6863 ;;
6864 *-*-irix6*)
6865 # Find out which ABI we are using.
6866 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6868 (eval $ac_compile) 2>&5
6869 ac_status=$?
6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871 test $ac_status = 0; }; then
6872 if test "$lt_cv_prog_gnu_ld" = yes; then
6873 case `/usr/bin/file conftest.$ac_objext` in
6874 *32-bit*)
6875 LD="${LD-ld} -melf32bsmip"
6876 ;;
6877 *N32*)
6878 LD="${LD-ld} -melf32bmipn32"
6879 ;;
6880 *64-bit*)
6881 LD="${LD-ld} -melf64bmip"
6882 ;;
6883 esac
6884 else
6885 case `/usr/bin/file conftest.$ac_objext` in
6886 *32-bit*)
6887 LD="${LD-ld} -32"
6888 ;;
6889 *N32*)
6890 LD="${LD-ld} -n32"
6891 ;;
6892 *64-bit*)
6893 LD="${LD-ld} -64"
6894 ;;
6895 esac
6896 fi
6897 fi
6898 rm -rf conftest*
6899 ;;
6900
6901 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6902 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6903 # Find out which ABI we are using.
6904 echo 'int i;' > conftest.$ac_ext
6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6906 (eval $ac_compile) 2>&5
6907 ac_status=$?
6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; }; then
6910 case `/usr/bin/file conftest.o` in
6911 *32-bit*)
6912 case $host in
6913 x86_64-*kfreebsd*-gnu)
6914 LD="${LD-ld} -m elf_i386_fbsd"
6915 ;;
6916 x86_64-*linux*)
6917 LD="${LD-ld} -m elf_i386"
6918 ;;
6919 ppc64-*linux*|powerpc64-*linux*)
6920 LD="${LD-ld} -m elf32ppclinux"
6921 ;;
6922 s390x-*linux*)
6923 LD="${LD-ld} -m elf_s390"
6924 ;;
6925 sparc64-*linux*)
6926 LD="${LD-ld} -m elf32_sparc"
6927 ;;
6928 esac
6929 ;;
6930 *64-bit*)
6931 case $host in
6932 x86_64-*kfreebsd*-gnu)
6933 LD="${LD-ld} -m elf_x86_64_fbsd"
6934 ;;
6935 x86_64-*linux*)
6936 LD="${LD-ld} -m elf_x86_64"
6937 ;;
6938 ppc*-*linux*|powerpc*-*linux*)
6939 LD="${LD-ld} -m elf64ppc"
6940 ;;
6941 s390*-*linux*|s390*-*tpf*)
6942 LD="${LD-ld} -m elf64_s390"
6943 ;;
6944 sparc*-*linux*)
6945 LD="${LD-ld} -m elf64_sparc"
6946 ;;
6947 esac
6948 ;;
6949 esac
6950 fi
6951 rm -rf conftest*
6952 ;;
6953
6954 *-*-sco3.2v5*)
6955 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6956 SAVE_CFLAGS="$CFLAGS"
6957 CFLAGS="$CFLAGS -belf"
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6959 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6960 if ${lt_cv_cc_needs_belf+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 ac_ext=c
6964 ac_cpp='$CPP $CPPFLAGS'
6965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971
6972 int
6973 main ()
6974 {
6975
6976 ;
6977 return 0;
6978 }
6979 _ACEOF
6980 if ac_fn_c_try_link "$LINENO"; then :
6981 lt_cv_cc_needs_belf=yes
6982 else
6983 lt_cv_cc_needs_belf=no
6984 fi
6985 rm -f core conftest.err conftest.$ac_objext \
6986 conftest$ac_exeext conftest.$ac_ext
6987 ac_ext=c
6988 ac_cpp='$CPP $CPPFLAGS'
6989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6992
6993 fi
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6995 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6996 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6997 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6998 CFLAGS="$SAVE_CFLAGS"
6999 fi
7000 ;;
7001 *-*solaris*)
7002 # Find out which ABI we are using.
7003 echo 'int i;' > conftest.$ac_ext
7004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7005 (eval $ac_compile) 2>&5
7006 ac_status=$?
7007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008 test $ac_status = 0; }; then
7009 case `/usr/bin/file conftest.o` in
7010 *64-bit*)
7011 case $lt_cv_prog_gnu_ld in
7012 yes*)
7013 case $host in
7014 i?86-*-solaris*)
7015 LD="${LD-ld} -m elf_x86_64"
7016 ;;
7017 sparc*-*-solaris*)
7018 LD="${LD-ld} -m elf64_sparc"
7019 ;;
7020 esac
7021 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7022 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7023 LD="${LD-ld}_sol2"
7024 fi
7025 ;;
7026 *)
7027 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7028 LD="${LD-ld} -64"
7029 fi
7030 ;;
7031 esac
7032 ;;
7033 esac
7034 fi
7035 rm -rf conftest*
7036 ;;
7037 esac
7038
7039 need_locks="$enable_libtool_lock"
7040
7041 if test -n "$ac_tool_prefix"; then
7042 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7043 set dummy ${ac_tool_prefix}mt; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 if test -n "$MANIFEST_TOOL"; then
7050 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063 done
7064 done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7070 if test -n "$MANIFEST_TOOL"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7072 $as_echo "$MANIFEST_TOOL" >&6; }
7073 else
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078
7079 fi
7080 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7081 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7082 # Extract the first word of "mt", so it can be a program name with args.
7083 set dummy mt; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 if test -n "$ac_ct_MANIFEST_TOOL"; then
7090 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7102 fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107 fi
7108 fi
7109 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7110 if test -n "$ac_ct_MANIFEST_TOOL"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7112 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7113 else
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7116 fi
7117
7118 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7119 MANIFEST_TOOL=":"
7120 else
7121 case $cross_compiling:$ac_tool_warned in
7122 yes:)
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7125 ac_tool_warned=yes ;;
7126 esac
7127 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7128 fi
7129 else
7130 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7131 fi
7132
7133 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7135 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7136 if ${lt_cv_path_mainfest_tool+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 lt_cv_path_mainfest_tool=no
7140 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7141 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7142 cat conftest.err >&5
7143 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7144 lt_cv_path_mainfest_tool=yes
7145 fi
7146 rm -f conftest*
7147 fi
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7149 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7150 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7151 MANIFEST_TOOL=:
7152 fi
7153
7154
7155
7156
7157
7158
7159 case $host_os in
7160 rhapsody* | darwin*)
7161 if test -n "$ac_tool_prefix"; then
7162 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 if test -n "$DSYMUTIL"; then
7170 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7190 if test -n "$DSYMUTIL"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7192 $as_echo "$DSYMUTIL" >&6; }
7193 else
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198
7199 fi
7200 if test -z "$ac_cv_prog_DSYMUTIL"; then
7201 ac_ct_DSYMUTIL=$DSYMUTIL
7202 # Extract the first word of "dsymutil", so it can be a program name with args.
7203 set dummy dsymutil; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 if test -n "$ac_ct_DSYMUTIL"; then
7210 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7230 if test -n "$ac_ct_DSYMUTIL"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7232 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7233 else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238 if test "x$ac_ct_DSYMUTIL" = x; then
7239 DSYMUTIL=":"
7240 else
7241 case $cross_compiling:$ac_tool_warned in
7242 yes:)
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245 ac_tool_warned=yes ;;
7246 esac
7247 DSYMUTIL=$ac_ct_DSYMUTIL
7248 fi
7249 else
7250 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7251 fi
7252
7253 if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7255 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if ${ac_cv_prog_NMEDIT+:} false; then :
7259 $as_echo_n "(cached) " >&6
7260 else
7261 if test -n "$NMEDIT"; then
7262 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7263 else
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7266 do
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7274 fi
7275 done
7276 done
7277 IFS=$as_save_IFS
7278
7279 fi
7280 fi
7281 NMEDIT=$ac_cv_prog_NMEDIT
7282 if test -n "$NMEDIT"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7284 $as_echo "$NMEDIT" >&6; }
7285 else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7288 fi
7289
7290
7291 fi
7292 if test -z "$ac_cv_prog_NMEDIT"; then
7293 ac_ct_NMEDIT=$NMEDIT
7294 # Extract the first word of "nmedit", so it can be a program name with args.
7295 set dummy nmedit; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 if test -n "$ac_ct_NMEDIT"; then
7302 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315 done
7316 done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7322 if test -n "$ac_ct_NMEDIT"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7324 $as_echo "$ac_ct_NMEDIT" >&6; }
7325 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330 if test "x$ac_ct_NMEDIT" = x; then
7331 NMEDIT=":"
7332 else
7333 case $cross_compiling:$ac_tool_warned in
7334 yes:)
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339 NMEDIT=$ac_ct_NMEDIT
7340 fi
7341 else
7342 NMEDIT="$ac_cv_prog_NMEDIT"
7343 fi
7344
7345 if test -n "$ac_tool_prefix"; then
7346 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if ${ac_cv_prog_LIPO+:} false; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 if test -n "$LIPO"; then
7354 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367 done
7368 done
7369 IFS=$as_save_IFS
7370
7371 fi
7372 fi
7373 LIPO=$ac_cv_prog_LIPO
7374 if test -n "$LIPO"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7376 $as_echo "$LIPO" >&6; }
7377 else
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380 fi
7381
7382
7383 fi
7384 if test -z "$ac_cv_prog_LIPO"; then
7385 ac_ct_LIPO=$LIPO
7386 # Extract the first word of "lipo", so it can be a program name with args.
7387 set dummy lipo; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 if test -n "$ac_ct_LIPO"; then
7394 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_ac_ct_LIPO="lipo"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7414 if test -n "$ac_ct_LIPO"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7416 $as_echo "$ac_ct_LIPO" >&6; }
7417 else
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422 if test "x$ac_ct_LIPO" = x; then
7423 LIPO=":"
7424 else
7425 case $cross_compiling:$ac_tool_warned in
7426 yes:)
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429 ac_tool_warned=yes ;;
7430 esac
7431 LIPO=$ac_ct_LIPO
7432 fi
7433 else
7434 LIPO="$ac_cv_prog_LIPO"
7435 fi
7436
7437 if test -n "$ac_tool_prefix"; then
7438 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7439 set dummy ${ac_tool_prefix}otool; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if ${ac_cv_prog_OTOOL+:} false; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 if test -n "$OTOOL"; then
7446 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459 done
7460 done
7461 IFS=$as_save_IFS
7462
7463 fi
7464 fi
7465 OTOOL=$ac_cv_prog_OTOOL
7466 if test -n "$OTOOL"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7468 $as_echo "$OTOOL" >&6; }
7469 else
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7472 fi
7473
7474
7475 fi
7476 if test -z "$ac_cv_prog_OTOOL"; then
7477 ac_ct_OTOOL=$OTOOL
7478 # Extract the first word of "otool", so it can be a program name with args.
7479 set dummy otool; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 if test -n "$ac_ct_OTOOL"; then
7486 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_prog_ac_ct_OTOOL="otool"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7498 fi
7499 done
7500 done
7501 IFS=$as_save_IFS
7502
7503 fi
7504 fi
7505 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7506 if test -n "$ac_ct_OTOOL"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7508 $as_echo "$ac_ct_OTOOL" >&6; }
7509 else
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7512 fi
7513
7514 if test "x$ac_ct_OTOOL" = x; then
7515 OTOOL=":"
7516 else
7517 case $cross_compiling:$ac_tool_warned in
7518 yes:)
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7521 ac_tool_warned=yes ;;
7522 esac
7523 OTOOL=$ac_ct_OTOOL
7524 fi
7525 else
7526 OTOOL="$ac_cv_prog_OTOOL"
7527 fi
7528
7529 if test -n "$ac_tool_prefix"; then
7530 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7531 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if ${ac_cv_prog_OTOOL64+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 if test -n "$OTOOL64"; then
7538 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7550 fi
7551 done
7552 done
7553 IFS=$as_save_IFS
7554
7555 fi
7556 fi
7557 OTOOL64=$ac_cv_prog_OTOOL64
7558 if test -n "$OTOOL64"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7560 $as_echo "$OTOOL64" >&6; }
7561 else
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7564 fi
7565
7566
7567 fi
7568 if test -z "$ac_cv_prog_OTOOL64"; then
7569 ac_ct_OTOOL64=$OTOOL64
7570 # Extract the first word of "otool64", so it can be a program name with args.
7571 set dummy otool64; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 if test -n "$ac_ct_OTOOL64"; then
7578 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_prog_ac_ct_OTOOL64="otool64"
7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591 done
7592 done
7593 IFS=$as_save_IFS
7594
7595 fi
7596 fi
7597 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7598 if test -n "$ac_ct_OTOOL64"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7600 $as_echo "$ac_ct_OTOOL64" >&6; }
7601 else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606 if test "x$ac_ct_OTOOL64" = x; then
7607 OTOOL64=":"
7608 else
7609 case $cross_compiling:$ac_tool_warned in
7610 yes:)
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7613 ac_tool_warned=yes ;;
7614 esac
7615 OTOOL64=$ac_ct_OTOOL64
7616 fi
7617 else
7618 OTOOL64="$ac_cv_prog_OTOOL64"
7619 fi
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7648 $as_echo_n "checking for -single_module linker flag... " >&6; }
7649 if ${lt_cv_apple_cc_single_mod+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 lt_cv_apple_cc_single_mod=no
7653 if test -z "${LT_MULTI_MODULE}"; then
7654 # By default we will add the -single_module flag. You can override
7655 # by either setting the environment variable LT_MULTI_MODULE
7656 # non-empty at configure time, or by adding -multi_module to the
7657 # link flags.
7658 rm -rf libconftest.dylib*
7659 echo "int foo(void){return 1;}" > conftest.c
7660 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7661 -dynamiclib -Wl,-single_module conftest.c" >&5
7662 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7663 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7664 _lt_result=$?
7665 # If there is a non-empty error log, and "single_module"
7666 # appears in it, assume the flag caused a linker warning
7667 if test -s conftest.err && $GREP single_module conftest.err; then
7668 cat conftest.err >&5
7669 # Otherwise, if the output was created with a 0 exit code from
7670 # the compiler, it worked.
7671 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7672 lt_cv_apple_cc_single_mod=yes
7673 else
7674 cat conftest.err >&5
7675 fi
7676 rm -rf libconftest.dylib*
7677 rm -f conftest.*
7678 fi
7679 fi
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7681 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7684 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7685 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 lt_cv_ld_exported_symbols_list=no
7689 save_LDFLAGS=$LDFLAGS
7690 echo "_main" > conftest.sym
7691 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694
7695 int
7696 main ()
7697 {
7698
7699 ;
7700 return 0;
7701 }
7702 _ACEOF
7703 if ac_fn_c_try_link "$LINENO"; then :
7704 lt_cv_ld_exported_symbols_list=yes
7705 else
7706 lt_cv_ld_exported_symbols_list=no
7707 fi
7708 rm -f core conftest.err conftest.$ac_objext \
7709 conftest$ac_exeext conftest.$ac_ext
7710 LDFLAGS="$save_LDFLAGS"
7711
7712 fi
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7714 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7717 $as_echo_n "checking for -force_load linker flag... " >&6; }
7718 if ${lt_cv_ld_force_load+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 lt_cv_ld_force_load=no
7722 cat > conftest.c << _LT_EOF
7723 int forced_loaded() { return 2;}
7724 _LT_EOF
7725 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7726 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7727 echo "$AR cru libconftest.a conftest.o" >&5
7728 $AR cru libconftest.a conftest.o 2>&5
7729 echo "$RANLIB libconftest.a" >&5
7730 $RANLIB libconftest.a 2>&5
7731 cat > conftest.c << _LT_EOF
7732 int main() { return 0;}
7733 _LT_EOF
7734 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7735 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7736 _lt_result=$?
7737 if test -s conftest.err && $GREP force_load conftest.err; then
7738 cat conftest.err >&5
7739 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7740 lt_cv_ld_force_load=yes
7741 else
7742 cat conftest.err >&5
7743 fi
7744 rm -f conftest.err libconftest.a conftest conftest.c
7745 rm -rf conftest.dSYM
7746
7747 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7749 $as_echo "$lt_cv_ld_force_load" >&6; }
7750 case $host_os in
7751 rhapsody* | darwin1.[012])
7752 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7753 darwin1.*)
7754 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7755 darwin*) # darwin 5.x on
7756 # if running on 10.5 or later, the deployment target defaults
7757 # to the OS version, if on x86, and 10.4, the deployment
7758 # target defaults to 10.4. Don't you love it?
7759 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7760 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7761 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7762 10.[012]*)
7763 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7764 10.*)
7765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7766 esac
7767 ;;
7768 esac
7769 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7770 _lt_dar_single_mod='$single_module'
7771 fi
7772 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7773 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7774 else
7775 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7776 fi
7777 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7778 _lt_dsymutil='~$DSYMUTIL $lib || :'
7779 else
7780 _lt_dsymutil=
7781 fi
7782 ;;
7783 esac
7784
7785 ac_ext=c
7786 ac_cpp='$CPP $CPPFLAGS'
7787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7791 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7792 # On Suns, sometimes $CPP names a directory.
7793 if test -n "$CPP" && test -d "$CPP"; then
7794 CPP=
7795 fi
7796 if test -z "$CPP"; then
7797 if ${ac_cv_prog_CPP+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 # Double quotes because CPP needs to be expanded
7801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7802 do
7803 ac_preproc_ok=false
7804 for ac_c_preproc_warn_flag in '' yes
7805 do
7806 # Use a header file that comes with gcc, so configuring glibc
7807 # with a fresh cross-compiler works.
7808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7809 # <limits.h> exists even on freestanding compilers.
7810 # On the NeXT, cc -E runs the code through the compiler's parser,
7811 # not just through cpp. "Syntax error" is here to catch this case.
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 #ifdef __STDC__
7815 # include <limits.h>
7816 #else
7817 # include <assert.h>
7818 #endif
7819 Syntax error
7820 _ACEOF
7821 if ac_fn_c_try_cpp "$LINENO"; then :
7822
7823 else
7824 # Broken: fails on valid input.
7825 continue
7826 fi
7827 rm -f conftest.err conftest.i conftest.$ac_ext
7828
7829 # OK, works on sane cases. Now check whether nonexistent headers
7830 # can be detected and how.
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #include <ac_nonexistent.h>
7834 _ACEOF
7835 if ac_fn_c_try_cpp "$LINENO"; then :
7836 # Broken: success on invalid input.
7837 continue
7838 else
7839 # Passes both tests.
7840 ac_preproc_ok=:
7841 break
7842 fi
7843 rm -f conftest.err conftest.i conftest.$ac_ext
7844
7845 done
7846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7847 rm -f conftest.i conftest.err conftest.$ac_ext
7848 if $ac_preproc_ok; then :
7849 break
7850 fi
7851
7852 done
7853 ac_cv_prog_CPP=$CPP
7854
7855 fi
7856 CPP=$ac_cv_prog_CPP
7857 else
7858 ac_cv_prog_CPP=$CPP
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7861 $as_echo "$CPP" >&6; }
7862 ac_preproc_ok=false
7863 for ac_c_preproc_warn_flag in '' yes
7864 do
7865 # Use a header file that comes with gcc, so configuring glibc
7866 # with a fresh cross-compiler works.
7867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7868 # <limits.h> exists even on freestanding compilers.
7869 # On the NeXT, cc -E runs the code through the compiler's parser,
7870 # not just through cpp. "Syntax error" is here to catch this case.
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 #ifdef __STDC__
7874 # include <limits.h>
7875 #else
7876 # include <assert.h>
7877 #endif
7878 Syntax error
7879 _ACEOF
7880 if ac_fn_c_try_cpp "$LINENO"; then :
7881
7882 else
7883 # Broken: fails on valid input.
7884 continue
7885 fi
7886 rm -f conftest.err conftest.i conftest.$ac_ext
7887
7888 # OK, works on sane cases. Now check whether nonexistent headers
7889 # can be detected and how.
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7892 #include <ac_nonexistent.h>
7893 _ACEOF
7894 if ac_fn_c_try_cpp "$LINENO"; then :
7895 # Broken: success on invalid input.
7896 continue
7897 else
7898 # Passes both tests.
7899 ac_preproc_ok=:
7900 break
7901 fi
7902 rm -f conftest.err conftest.i conftest.$ac_ext
7903
7904 done
7905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7906 rm -f conftest.i conftest.err conftest.$ac_ext
7907 if $ac_preproc_ok; then :
7908
7909 else
7910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7912 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7913 See \`config.log' for more details" "$LINENO" 5; }
7914 fi
7915
7916 ac_ext=c
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921
7922
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7924 $as_echo_n "checking for ANSI C header files... " >&6; }
7925 if ${ac_cv_header_stdc+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7930 #include <stdlib.h>
7931 #include <stdarg.h>
7932 #include <string.h>
7933 #include <float.h>
7934
7935 int
7936 main ()
7937 {
7938
7939 ;
7940 return 0;
7941 }
7942 _ACEOF
7943 if ac_fn_c_try_compile "$LINENO"; then :
7944 ac_cv_header_stdc=yes
7945 else
7946 ac_cv_header_stdc=no
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949
7950 if test $ac_cv_header_stdc = yes; then
7951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 #include <string.h>
7955
7956 _ACEOF
7957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7958 $EGREP "memchr" >/dev/null 2>&1; then :
7959
7960 else
7961 ac_cv_header_stdc=no
7962 fi
7963 rm -f conftest*
7964
7965 fi
7966
7967 if test $ac_cv_header_stdc = yes; then
7968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 #include <stdlib.h>
7972
7973 _ACEOF
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975 $EGREP "free" >/dev/null 2>&1; then :
7976
7977 else
7978 ac_cv_header_stdc=no
7979 fi
7980 rm -f conftest*
7981
7982 fi
7983
7984 if test $ac_cv_header_stdc = yes; then
7985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7986 if test "$cross_compiling" = yes; then :
7987 :
7988 else
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 #include <ctype.h>
7992 #include <stdlib.h>
7993 #if ((' ' & 0x0FF) == 0x020)
7994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7996 #else
7997 # define ISLOWER(c) \
7998 (('a' <= (c) && (c) <= 'i') \
7999 || ('j' <= (c) && (c) <= 'r') \
8000 || ('s' <= (c) && (c) <= 'z'))
8001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8002 #endif
8003
8004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8005 int
8006 main ()
8007 {
8008 int i;
8009 for (i = 0; i < 256; i++)
8010 if (XOR (islower (i), ISLOWER (i))
8011 || toupper (i) != TOUPPER (i))
8012 return 2;
8013 return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_run "$LINENO"; then :
8017
8018 else
8019 ac_cv_header_stdc=no
8020 fi
8021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8022 conftest.$ac_objext conftest.beam conftest.$ac_ext
8023 fi
8024
8025 fi
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8028 $as_echo "$ac_cv_header_stdc" >&6; }
8029 if test $ac_cv_header_stdc = yes; then
8030
8031 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8032
8033 fi
8034
8035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8037 inttypes.h stdint.h unistd.h
8038 do :
8039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8040 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8041 "
8042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8043 cat >>confdefs.h <<_ACEOF
8044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8045 _ACEOF
8046
8047 fi
8048
8049 done
8050
8051
8052 for ac_header in dlfcn.h
8053 do :
8054 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8055 "
8056 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8057 cat >>confdefs.h <<_ACEOF
8058 #define HAVE_DLFCN_H 1
8059 _ACEOF
8060
8061 fi
8062
8063 done
8064
8065
8066
8067
8068 func_stripname_cnf ()
8069 {
8070 case ${2} in
8071 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8072 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8073 esac
8074 } # func_stripname_cnf
8075
8076
8077
8078
8079
8080 # Set options
8081
8082
8083
8084 enable_dlopen=no
8085
8086
8087 enable_win32_dll=no
8088
8089
8090 # Check whether --enable-shared was given.
8091 if test "${enable_shared+set}" = set; then :
8092 enableval=$enable_shared; p=${PACKAGE-default}
8093 case $enableval in
8094 yes) enable_shared=yes ;;
8095 no) enable_shared=no ;;
8096 *)
8097 enable_shared=no
8098 # Look at the argument we got. We use all the common list separators.
8099 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8100 for pkg in $enableval; do
8101 IFS="$lt_save_ifs"
8102 if test "X$pkg" = "X$p"; then
8103 enable_shared=yes
8104 fi
8105 done
8106 IFS="$lt_save_ifs"
8107 ;;
8108 esac
8109 else
8110 enable_shared=yes
8111 fi
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121 # Check whether --enable-static was given.
8122 if test "${enable_static+set}" = set; then :
8123 enableval=$enable_static; p=${PACKAGE-default}
8124 case $enableval in
8125 yes) enable_static=yes ;;
8126 no) enable_static=no ;;
8127 *)
8128 enable_static=no
8129 # Look at the argument we got. We use all the common list separators.
8130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8131 for pkg in $enableval; do
8132 IFS="$lt_save_ifs"
8133 if test "X$pkg" = "X$p"; then
8134 enable_static=yes
8135 fi
8136 done
8137 IFS="$lt_save_ifs"
8138 ;;
8139 esac
8140 else
8141 enable_static=yes
8142 fi
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153 # Check whether --with-pic was given.
8154 if test "${with_pic+set}" = set; then :
8155 withval=$with_pic; lt_p=${PACKAGE-default}
8156 case $withval in
8157 yes|no) pic_mode=$withval ;;
8158 *)
8159 pic_mode=default
8160 # Look at the argument we got. We use all the common list separators.
8161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8162 for lt_pkg in $withval; do
8163 IFS="$lt_save_ifs"
8164 if test "X$lt_pkg" = "X$lt_p"; then
8165 pic_mode=yes
8166 fi
8167 done
8168 IFS="$lt_save_ifs"
8169 ;;
8170 esac
8171 else
8172 pic_mode=default
8173 fi
8174
8175
8176 test -z "$pic_mode" && pic_mode=default
8177
8178
8179
8180
8181
8182
8183
8184 # Check whether --enable-fast-install was given.
8185 if test "${enable_fast_install+set}" = set; then :
8186 enableval=$enable_fast_install; p=${PACKAGE-default}
8187 case $enableval in
8188 yes) enable_fast_install=yes ;;
8189 no) enable_fast_install=no ;;
8190 *)
8191 enable_fast_install=no
8192 # Look at the argument we got. We use all the common list separators.
8193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8194 for pkg in $enableval; do
8195 IFS="$lt_save_ifs"
8196 if test "X$pkg" = "X$p"; then
8197 enable_fast_install=yes
8198 fi
8199 done
8200 IFS="$lt_save_ifs"
8201 ;;
8202 esac
8203 else
8204 enable_fast_install=yes
8205 fi
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217 # This can be used to rebuild libtool when needed
8218 LIBTOOL_DEPS="$ltmain"
8219
8220 # Always use our own libtool.
8221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252 test -z "$LN_S" && LN_S="ln -s"
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267 if test -n "${ZSH_VERSION+set}" ; then
8268 setopt NO_GLOB_SUBST
8269 fi
8270
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8272 $as_echo_n "checking for objdir... " >&6; }
8273 if ${lt_cv_objdir+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 rm -f .libs 2>/dev/null
8277 mkdir .libs 2>/dev/null
8278 if test -d .libs; then
8279 lt_cv_objdir=.libs
8280 else
8281 # MS-DOS does not allow filenames that begin with a dot.
8282 lt_cv_objdir=_libs
8283 fi
8284 rmdir .libs 2>/dev/null
8285 fi
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8287 $as_echo "$lt_cv_objdir" >&6; }
8288 objdir=$lt_cv_objdir
8289
8290
8291
8292
8293
8294 cat >>confdefs.h <<_ACEOF
8295 #define LT_OBJDIR "$lt_cv_objdir/"
8296 _ACEOF
8297
8298
8299
8300
8301 case $host_os in
8302 aix3*)
8303 # AIX sometimes has problems with the GCC collect2 program. For some
8304 # reason, if we set the COLLECT_NAMES environment variable, the problems
8305 # vanish in a puff of smoke.
8306 if test "X${COLLECT_NAMES+set}" != Xset; then
8307 COLLECT_NAMES=
8308 export COLLECT_NAMES
8309 fi
8310 ;;
8311 esac
8312
8313 # Global variables:
8314 ofile=libtool
8315 can_build_shared=yes
8316
8317 # All known linkers require a `.a' archive for static linking (except MSVC,
8318 # which needs '.lib').
8319 libext=a
8320
8321 with_gnu_ld="$lt_cv_prog_gnu_ld"
8322
8323 old_CC="$CC"
8324 old_CFLAGS="$CFLAGS"
8325
8326 # Set sane defaults for various variables
8327 test -z "$CC" && CC=cc
8328 test -z "$LTCC" && LTCC=$CC
8329 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8330 test -z "$LD" && LD=ld
8331 test -z "$ac_objext" && ac_objext=o
8332
8333 for cc_temp in $compiler""; do
8334 case $cc_temp in
8335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8337 \-*) ;;
8338 *) break;;
8339 esac
8340 done
8341 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8342
8343
8344 # Only perform the check for file, if the check method requires it
8345 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8346 case $deplibs_check_method in
8347 file_magic*)
8348 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8350 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8351 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 case $MAGIC_CMD in
8355 [\\/*] | ?:[\\/]*)
8356 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8357 ;;
8358 *)
8359 lt_save_MAGIC_CMD="$MAGIC_CMD"
8360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8361 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8362 for ac_dir in $ac_dummy; do
8363 IFS="$lt_save_ifs"
8364 test -z "$ac_dir" && ac_dir=.
8365 if test -f $ac_dir/${ac_tool_prefix}file; then
8366 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8367 if test -n "$file_magic_test_file"; then
8368 case $deplibs_check_method in
8369 "file_magic "*)
8370 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8372 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8373 $EGREP "$file_magic_regex" > /dev/null; then
8374 :
8375 else
8376 cat <<_LT_EOF 1>&2
8377
8378 *** Warning: the command libtool uses to detect shared libraries,
8379 *** $file_magic_cmd, produces output that libtool cannot recognize.
8380 *** The result is that libtool may fail to recognize shared libraries
8381 *** as such. This will affect the creation of libtool libraries that
8382 *** depend on shared libraries, but programs linked with such libtool
8383 *** libraries will work regardless of this problem. Nevertheless, you
8384 *** may want to report the problem to your system manager and/or to
8385 *** [email protected]
8386
8387 _LT_EOF
8388 fi ;;
8389 esac
8390 fi
8391 break
8392 fi
8393 done
8394 IFS="$lt_save_ifs"
8395 MAGIC_CMD="$lt_save_MAGIC_CMD"
8396 ;;
8397 esac
8398 fi
8399
8400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8401 if test -n "$MAGIC_CMD"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8403 $as_echo "$MAGIC_CMD" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8407 fi
8408
8409
8410
8411
8412
8413 if test -z "$lt_cv_path_MAGIC_CMD"; then
8414 if test -n "$ac_tool_prefix"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8416 $as_echo_n "checking for file... " >&6; }
8417 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 case $MAGIC_CMD in
8421 [\\/*] | ?:[\\/]*)
8422 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8423 ;;
8424 *)
8425 lt_save_MAGIC_CMD="$MAGIC_CMD"
8426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8427 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8428 for ac_dir in $ac_dummy; do
8429 IFS="$lt_save_ifs"
8430 test -z "$ac_dir" && ac_dir=.
8431 if test -f $ac_dir/file; then
8432 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8433 if test -n "$file_magic_test_file"; then
8434 case $deplibs_check_method in
8435 "file_magic "*)
8436 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8438 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8439 $EGREP "$file_magic_regex" > /dev/null; then
8440 :
8441 else
8442 cat <<_LT_EOF 1>&2
8443
8444 *** Warning: the command libtool uses to detect shared libraries,
8445 *** $file_magic_cmd, produces output that libtool cannot recognize.
8446 *** The result is that libtool may fail to recognize shared libraries
8447 *** as such. This will affect the creation of libtool libraries that
8448 *** depend on shared libraries, but programs linked with such libtool
8449 *** libraries will work regardless of this problem. Nevertheless, you
8450 *** may want to report the problem to your system manager and/or to
8451 *** [email protected]
8452
8453 _LT_EOF
8454 fi ;;
8455 esac
8456 fi
8457 break
8458 fi
8459 done
8460 IFS="$lt_save_ifs"
8461 MAGIC_CMD="$lt_save_MAGIC_CMD"
8462 ;;
8463 esac
8464 fi
8465
8466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8467 if test -n "$MAGIC_CMD"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8469 $as_echo "$MAGIC_CMD" >&6; }
8470 else
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8473 fi
8474
8475
8476 else
8477 MAGIC_CMD=:
8478 fi
8479 fi
8480
8481 fi
8482 ;;
8483 esac
8484
8485 # Use C for the default configuration in the libtool script
8486
8487 lt_save_CC="$CC"
8488 ac_ext=c
8489 ac_cpp='$CPP $CPPFLAGS'
8490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8493
8494
8495 # Source file extension for C test sources.
8496 ac_ext=c
8497
8498 # Object file extension for compiled C test sources.
8499 objext=o
8500 objext=$objext
8501
8502 # Code to be used in simple compile tests
8503 lt_simple_compile_test_code="int some_variable = 0;"
8504
8505 # Code to be used in simple link tests
8506 lt_simple_link_test_code='int main(){return(0);}'
8507
8508
8509
8510
8511
8512
8513
8514 # If no C compiler was specified, use CC.
8515 LTCC=${LTCC-"$CC"}
8516
8517 # If no C compiler flags were specified, use CFLAGS.
8518 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8519
8520 # Allow CC to be a program name with arguments.
8521 compiler=$CC
8522
8523 # Save the default compiler, since it gets overwritten when the other
8524 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8525 compiler_DEFAULT=$CC
8526
8527 # save warnings/boilerplate of simple test code
8528 ac_outfile=conftest.$ac_objext
8529 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8530 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8531 _lt_compiler_boilerplate=`cat conftest.err`
8532 $RM conftest*
8533
8534 ac_outfile=conftest.$ac_objext
8535 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8536 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8537 _lt_linker_boilerplate=`cat conftest.err`
8538 $RM -r conftest*
8539
8540
8541 if test -n "$compiler"; then
8542
8543 lt_prog_compiler_no_builtin_flag=
8544
8545 if test "$GCC" = yes; then
8546 case $cc_basename in
8547 nvcc*)
8548 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8549 *)
8550 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8551 esac
8552
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8554 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8555 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 lt_cv_prog_compiler_rtti_exceptions=no
8559 ac_outfile=conftest.$ac_objext
8560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8561 lt_compiler_flag="-fno-rtti -fno-exceptions"
8562 # Insert the option either (1) after the last *FLAGS variable, or
8563 # (2) before a word containing "conftest.", or (3) at the end.
8564 # Note that $ac_compile itself does not contain backslashes and begins
8565 # with a dollar sign (not a hyphen), so the echo should work correctly.
8566 # The option is referenced via a variable to avoid confusing sed.
8567 lt_compile=`echo "$ac_compile" | $SED \
8568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8570 -e 's:$: $lt_compiler_flag:'`
8571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8572 (eval "$lt_compile" 2>conftest.err)
8573 ac_status=$?
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 if (exit $ac_status) && test -s "$ac_outfile"; then
8577 # The compiler can only warn and ignore the option if not recognized
8578 # So say no if there are warnings other than the usual output.
8579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8582 lt_cv_prog_compiler_rtti_exceptions=yes
8583 fi
8584 fi
8585 $RM conftest*
8586
8587 fi
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8589 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8590
8591 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8592 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8593 else
8594 :
8595 fi
8596
8597 fi
8598
8599
8600
8601
8602
8603
8604 lt_prog_compiler_wl=
8605 lt_prog_compiler_pic=
8606 lt_prog_compiler_static=
8607
8608
8609 if test "$GCC" = yes; then
8610 lt_prog_compiler_wl='-Wl,'
8611 lt_prog_compiler_static='-static'
8612
8613 case $host_os in
8614 aix*)
8615 # All AIX code is PIC.
8616 if test "$host_cpu" = ia64; then
8617 # AIX 5 now supports IA64 processor
8618 lt_prog_compiler_static='-Bstatic'
8619 fi
8620 ;;
8621
8622 amigaos*)
8623 case $host_cpu in
8624 powerpc)
8625 # see comment about AmigaOS4 .so support
8626 lt_prog_compiler_pic='-fPIC'
8627 ;;
8628 m68k)
8629 # FIXME: we need at least 68020 code to build shared libraries, but
8630 # adding the `-m68020' flag to GCC prevents building anything better,
8631 # like `-m68040'.
8632 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8633 ;;
8634 esac
8635 ;;
8636
8637 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8638 # PIC is the default for these OSes.
8639 ;;
8640
8641 mingw* | cygwin* | pw32* | os2* | cegcc*)
8642 # This hack is so that the source file can tell whether it is being
8643 # built for inclusion in a dll (and should export symbols for example).
8644 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8645 # (--disable-auto-import) libraries
8646 lt_prog_compiler_pic='-DDLL_EXPORT'
8647 ;;
8648
8649 darwin* | rhapsody*)
8650 # PIC is the default on this platform
8651 # Common symbols not allowed in MH_DYLIB files
8652 lt_prog_compiler_pic='-fno-common'
8653 ;;
8654
8655 haiku*)
8656 # PIC is the default for Haiku.
8657 # The "-static" flag exists, but is broken.
8658 lt_prog_compiler_static=
8659 ;;
8660
8661 hpux*)
8662 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8663 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8664 # sets the default TLS model and affects inlining.
8665 case $host_cpu in
8666 hppa*64*)
8667 # +Z the default
8668 ;;
8669 *)
8670 lt_prog_compiler_pic='-fPIC'
8671 ;;
8672 esac
8673 ;;
8674
8675 interix[3-9]*)
8676 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8677 # Instead, we relocate shared libraries at runtime.
8678 ;;
8679
8680 msdosdjgpp*)
8681 # Just because we use GCC doesn't mean we suddenly get shared libraries
8682 # on systems that don't support them.
8683 lt_prog_compiler_can_build_shared=no
8684 enable_shared=no
8685 ;;
8686
8687 *nto* | *qnx*)
8688 # QNX uses GNU C++, but need to define -shared option too, otherwise
8689 # it will coredump.
8690 lt_prog_compiler_pic='-fPIC -shared'
8691 ;;
8692
8693 sysv4*MP*)
8694 if test -d /usr/nec; then
8695 lt_prog_compiler_pic=-Kconform_pic
8696 fi
8697 ;;
8698
8699 *)
8700 lt_prog_compiler_pic='-fPIC'
8701 ;;
8702 esac
8703
8704 case $cc_basename in
8705 nvcc*) # Cuda Compiler Driver 2.2
8706 lt_prog_compiler_wl='-Xlinker '
8707 if test -n "$lt_prog_compiler_pic"; then
8708 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8709 fi
8710 ;;
8711 esac
8712 else
8713 # PORTME Check for flag to pass linker flags through the system compiler.
8714 case $host_os in
8715 aix*)
8716 lt_prog_compiler_wl='-Wl,'
8717 if test "$host_cpu" = ia64; then
8718 # AIX 5 now supports IA64 processor
8719 lt_prog_compiler_static='-Bstatic'
8720 else
8721 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8722 fi
8723 ;;
8724
8725 mingw* | cygwin* | pw32* | os2* | cegcc*)
8726 # This hack is so that the source file can tell whether it is being
8727 # built for inclusion in a dll (and should export symbols for example).
8728 lt_prog_compiler_pic='-DDLL_EXPORT'
8729 ;;
8730
8731 hpux9* | hpux10* | hpux11*)
8732 lt_prog_compiler_wl='-Wl,'
8733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8734 # not for PA HP-UX.
8735 case $host_cpu in
8736 hppa*64*|ia64*)
8737 # +Z the default
8738 ;;
8739 *)
8740 lt_prog_compiler_pic='+Z'
8741 ;;
8742 esac
8743 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8744 lt_prog_compiler_static='${wl}-a ${wl}archive'
8745 ;;
8746
8747 irix5* | irix6* | nonstopux*)
8748 lt_prog_compiler_wl='-Wl,'
8749 # PIC (with -KPIC) is the default.
8750 lt_prog_compiler_static='-non_shared'
8751 ;;
8752
8753 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8754 case $cc_basename in
8755 # old Intel for x86_64 which still supported -KPIC.
8756 ecc*)
8757 lt_prog_compiler_wl='-Wl,'
8758 lt_prog_compiler_pic='-KPIC'
8759 lt_prog_compiler_static='-static'
8760 ;;
8761 # icc used to be incompatible with GCC.
8762 # ICC 10 doesn't accept -KPIC any more.
8763 icc* | ifort*)
8764 lt_prog_compiler_wl='-Wl,'
8765 lt_prog_compiler_pic='-fPIC'
8766 lt_prog_compiler_static='-static'
8767 ;;
8768 # Lahey Fortran 8.1.
8769 lf95*)
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='--shared'
8772 lt_prog_compiler_static='--static'
8773 ;;
8774 nagfor*)
8775 # NAG Fortran compiler
8776 lt_prog_compiler_wl='-Wl,-Wl,,'
8777 lt_prog_compiler_pic='-PIC'
8778 lt_prog_compiler_static='-Bstatic'
8779 ;;
8780 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8781 # Portland Group compilers (*not* the Pentium gcc compiler,
8782 # which looks to be a dead project)
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='-fpic'
8785 lt_prog_compiler_static='-Bstatic'
8786 ;;
8787 ccc*)
8788 lt_prog_compiler_wl='-Wl,'
8789 # All Alpha code is PIC.
8790 lt_prog_compiler_static='-non_shared'
8791 ;;
8792 xl* | bgxl* | bgf* | mpixl*)
8793 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8794 lt_prog_compiler_wl='-Wl,'
8795 lt_prog_compiler_pic='-qpic'
8796 lt_prog_compiler_static='-qstaticlink'
8797 ;;
8798 *)
8799 case `$CC -V 2>&1 | sed 5q` in
8800 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8801 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8802 lt_prog_compiler_pic='-KPIC'
8803 lt_prog_compiler_static='-Bstatic'
8804 lt_prog_compiler_wl=''
8805 ;;
8806 *Sun\ F* | *Sun*Fortran*)
8807 lt_prog_compiler_pic='-KPIC'
8808 lt_prog_compiler_static='-Bstatic'
8809 lt_prog_compiler_wl='-Qoption ld '
8810 ;;
8811 *Sun\ C*)
8812 # Sun C 5.9
8813 lt_prog_compiler_pic='-KPIC'
8814 lt_prog_compiler_static='-Bstatic'
8815 lt_prog_compiler_wl='-Wl,'
8816 ;;
8817 *Intel*\ [CF]*Compiler*)
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-fPIC'
8820 lt_prog_compiler_static='-static'
8821 ;;
8822 *Portland\ Group*)
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_pic='-fpic'
8825 lt_prog_compiler_static='-Bstatic'
8826 ;;
8827 esac
8828 ;;
8829 esac
8830 ;;
8831
8832 newsos6)
8833 lt_prog_compiler_pic='-KPIC'
8834 lt_prog_compiler_static='-Bstatic'
8835 ;;
8836
8837 *nto* | *qnx*)
8838 # QNX uses GNU C++, but need to define -shared option too, otherwise
8839 # it will coredump.
8840 lt_prog_compiler_pic='-fPIC -shared'
8841 ;;
8842
8843 osf3* | osf4* | osf5*)
8844 lt_prog_compiler_wl='-Wl,'
8845 # All OSF/1 code is PIC.
8846 lt_prog_compiler_static='-non_shared'
8847 ;;
8848
8849 rdos*)
8850 lt_prog_compiler_static='-non_shared'
8851 ;;
8852
8853 solaris*)
8854 lt_prog_compiler_pic='-KPIC'
8855 lt_prog_compiler_static='-Bstatic'
8856 case $cc_basename in
8857 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8858 lt_prog_compiler_wl='-Qoption ld ';;
8859 *)
8860 lt_prog_compiler_wl='-Wl,';;
8861 esac
8862 ;;
8863
8864 sunos4*)
8865 lt_prog_compiler_wl='-Qoption ld '
8866 lt_prog_compiler_pic='-PIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 ;;
8869
8870 sysv4 | sysv4.2uw2* | sysv4.3*)
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-Bstatic'
8874 ;;
8875
8876 sysv4*MP*)
8877 if test -d /usr/nec ;then
8878 lt_prog_compiler_pic='-Kconform_pic'
8879 lt_prog_compiler_static='-Bstatic'
8880 fi
8881 ;;
8882
8883 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8884 lt_prog_compiler_wl='-Wl,'
8885 lt_prog_compiler_pic='-KPIC'
8886 lt_prog_compiler_static='-Bstatic'
8887 ;;
8888
8889 unicos*)
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_can_build_shared=no
8892 ;;
8893
8894 uts4*)
8895 lt_prog_compiler_pic='-pic'
8896 lt_prog_compiler_static='-Bstatic'
8897 ;;
8898
8899 *)
8900 lt_prog_compiler_can_build_shared=no
8901 ;;
8902 esac
8903 fi
8904
8905 case $host_os in
8906 # For platforms which do not support PIC, -DPIC is meaningless:
8907 *djgpp*)
8908 lt_prog_compiler_pic=
8909 ;;
8910 *)
8911 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8912 ;;
8913 esac
8914
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8916 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8917 if ${lt_cv_prog_compiler_pic+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8921 fi
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8923 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8924 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8925
8926 #
8927 # Check to make sure the PIC flag actually works.
8928 #
8929 if test -n "$lt_prog_compiler_pic"; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8931 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8932 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 lt_cv_prog_compiler_pic_works=no
8936 ac_outfile=conftest.$ac_objext
8937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8938 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8939 # Insert the option either (1) after the last *FLAGS variable, or
8940 # (2) before a word containing "conftest.", or (3) at the end.
8941 # Note that $ac_compile itself does not contain backslashes and begins
8942 # with a dollar sign (not a hyphen), so the echo should work correctly.
8943 # The option is referenced via a variable to avoid confusing sed.
8944 lt_compile=`echo "$ac_compile" | $SED \
8945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947 -e 's:$: $lt_compiler_flag:'`
8948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8949 (eval "$lt_compile" 2>conftest.err)
8950 ac_status=$?
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 if (exit $ac_status) && test -s "$ac_outfile"; then
8954 # The compiler can only warn and ignore the option if not recognized
8955 # So say no if there are warnings other than the usual output.
8956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8959 lt_cv_prog_compiler_pic_works=yes
8960 fi
8961 fi
8962 $RM conftest*
8963
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8966 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8967
8968 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8969 case $lt_prog_compiler_pic in
8970 "" | " "*) ;;
8971 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8972 esac
8973 else
8974 lt_prog_compiler_pic=
8975 lt_prog_compiler_can_build_shared=no
8976 fi
8977
8978 fi
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990 #
8991 # Check to make sure the static flag actually works.
8992 #
8993 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8995 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8996 if ${lt_cv_prog_compiler_static_works+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 lt_cv_prog_compiler_static_works=no
9000 save_LDFLAGS="$LDFLAGS"
9001 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9002 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9003 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9004 # The linker can only warn and ignore the option if not recognized
9005 # So say no if there are warnings
9006 if test -s conftest.err; then
9007 # Append any errors to the config.log.
9008 cat conftest.err 1>&5
9009 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9011 if diff conftest.exp conftest.er2 >/dev/null; then
9012 lt_cv_prog_compiler_static_works=yes
9013 fi
9014 else
9015 lt_cv_prog_compiler_static_works=yes
9016 fi
9017 fi
9018 $RM -r conftest*
9019 LDFLAGS="$save_LDFLAGS"
9020
9021 fi
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9023 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9024
9025 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9026 :
9027 else
9028 lt_prog_compiler_static=
9029 fi
9030
9031
9032
9033
9034
9035
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9038 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9039 if ${lt_cv_prog_compiler_c_o+:} false; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 lt_cv_prog_compiler_c_o=no
9043 $RM -r conftest 2>/dev/null
9044 mkdir conftest
9045 cd conftest
9046 mkdir out
9047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9048
9049 lt_compiler_flag="-o out/conftest2.$ac_objext"
9050 # Insert the option either (1) after the last *FLAGS variable, or
9051 # (2) before a word containing "conftest.", or (3) at the end.
9052 # Note that $ac_compile itself does not contain backslashes and begins
9053 # with a dollar sign (not a hyphen), so the echo should work correctly.
9054 lt_compile=`echo "$ac_compile" | $SED \
9055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9057 -e 's:$: $lt_compiler_flag:'`
9058 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9059 (eval "$lt_compile" 2>out/conftest.err)
9060 ac_status=$?
9061 cat out/conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9064 then
9065 # The compiler can only warn and ignore the option if not recognized
9066 # So say no if there are warnings
9067 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9070 lt_cv_prog_compiler_c_o=yes
9071 fi
9072 fi
9073 chmod u+w . 2>&5
9074 $RM conftest*
9075 # SGI C++ compiler will create directory out/ii_files/ for
9076 # template instantiation
9077 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9078 $RM out/* && rmdir out
9079 cd ..
9080 $RM -r conftest
9081 $RM conftest*
9082
9083 fi
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9085 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9086
9087
9088
9089
9090
9091
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9093 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9094 if ${lt_cv_prog_compiler_c_o+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 lt_cv_prog_compiler_c_o=no
9098 $RM -r conftest 2>/dev/null
9099 mkdir conftest
9100 cd conftest
9101 mkdir out
9102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9103
9104 lt_compiler_flag="-o out/conftest2.$ac_objext"
9105 # Insert the option either (1) after the last *FLAGS variable, or
9106 # (2) before a word containing "conftest.", or (3) at the end.
9107 # Note that $ac_compile itself does not contain backslashes and begins
9108 # with a dollar sign (not a hyphen), so the echo should work correctly.
9109 lt_compile=`echo "$ac_compile" | $SED \
9110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9112 -e 's:$: $lt_compiler_flag:'`
9113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9114 (eval "$lt_compile" 2>out/conftest.err)
9115 ac_status=$?
9116 cat out/conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9119 then
9120 # The compiler can only warn and ignore the option if not recognized
9121 # So say no if there are warnings
9122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9125 lt_cv_prog_compiler_c_o=yes
9126 fi
9127 fi
9128 chmod u+w . 2>&5
9129 $RM conftest*
9130 # SGI C++ compiler will create directory out/ii_files/ for
9131 # template instantiation
9132 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9133 $RM out/* && rmdir out
9134 cd ..
9135 $RM -r conftest
9136 $RM conftest*
9137
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9140 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9141
9142
9143
9144
9145 hard_links="nottested"
9146 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9147 # do not overwrite the value of need_locks provided by the user
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9149 $as_echo_n "checking if we can lock with hard links... " >&6; }
9150 hard_links=yes
9151 $RM conftest*
9152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9153 touch conftest.a
9154 ln conftest.a conftest.b 2>&5 || hard_links=no
9155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9157 $as_echo "$hard_links" >&6; }
9158 if test "$hard_links" = no; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9160 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9161 need_locks=warn
9162 fi
9163 else
9164 need_locks=no
9165 fi
9166
9167
9168
9169
9170
9171
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9173 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9174
9175 runpath_var=
9176 allow_undefined_flag=
9177 always_export_symbols=no
9178 archive_cmds=
9179 archive_expsym_cmds=
9180 compiler_needs_object=no
9181 enable_shared_with_static_runtimes=no
9182 export_dynamic_flag_spec=
9183 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9184 hardcode_automatic=no
9185 hardcode_direct=no
9186 hardcode_direct_absolute=no
9187 hardcode_libdir_flag_spec=
9188 hardcode_libdir_separator=
9189 hardcode_minus_L=no
9190 hardcode_shlibpath_var=unsupported
9191 inherit_rpath=no
9192 link_all_deplibs=unknown
9193 module_cmds=
9194 module_expsym_cmds=
9195 old_archive_from_new_cmds=
9196 old_archive_from_expsyms_cmds=
9197 thread_safe_flag_spec=
9198 whole_archive_flag_spec=
9199 # include_expsyms should be a list of space-separated symbols to be *always*
9200 # included in the symbol list
9201 include_expsyms=
9202 # exclude_expsyms can be an extended regexp of symbols to exclude
9203 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9204 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9205 # as well as any symbol that contains `d'.
9206 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9207 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9208 # platforms (ab)use it in PIC code, but their linkers get confused if
9209 # the symbol is explicitly referenced. Since portable code cannot
9210 # rely on this symbol name, it's probably fine to never include it in
9211 # preloaded symbol tables.
9212 # Exclude shared library initialization/finalization symbols.
9213 extract_expsyms_cmds=
9214
9215 case $host_os in
9216 cygwin* | mingw* | pw32* | cegcc*)
9217 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9218 # When not using gcc, we currently assume that we are using
9219 # Microsoft Visual C++.
9220 if test "$GCC" != yes; then
9221 with_gnu_ld=no
9222 fi
9223 ;;
9224 interix*)
9225 # we just hope/assume this is gcc and not c89 (= MSVC++)
9226 with_gnu_ld=yes
9227 ;;
9228 openbsd*)
9229 with_gnu_ld=no
9230 ;;
9231 linux* | k*bsd*-gnu | gnu*)
9232 link_all_deplibs=no
9233 ;;
9234 esac
9235
9236 ld_shlibs=yes
9237
9238 # On some targets, GNU ld is compatible enough with the native linker
9239 # that we're better off using the native interface for both.
9240 lt_use_gnu_ld_interface=no
9241 if test "$with_gnu_ld" = yes; then
9242 case $host_os in
9243 aix*)
9244 # The AIX port of GNU ld has always aspired to compatibility
9245 # with the native linker. However, as the warning in the GNU ld
9246 # block says, versions before 2.19.5* couldn't really create working
9247 # shared libraries, regardless of the interface used.
9248 case `$LD -v 2>&1` in
9249 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9250 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9251 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9252 *)
9253 lt_use_gnu_ld_interface=yes
9254 ;;
9255 esac
9256 ;;
9257 *)
9258 lt_use_gnu_ld_interface=yes
9259 ;;
9260 esac
9261 fi
9262
9263 if test "$lt_use_gnu_ld_interface" = yes; then
9264 # If archive_cmds runs LD, not CC, wlarc should be empty
9265 wlarc='${wl}'
9266
9267 # Set some defaults for GNU ld with shared library support. These
9268 # are reset later if shared libraries are not supported. Putting them
9269 # here allows them to be overridden if necessary.
9270 runpath_var=LD_RUN_PATH
9271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9272 export_dynamic_flag_spec='${wl}--export-dynamic'
9273 # ancient GNU ld didn't support --whole-archive et. al.
9274 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9275 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9276 else
9277 whole_archive_flag_spec=
9278 fi
9279 supports_anon_versioning=no
9280 case `$LD -v 2>&1` in
9281 *GNU\ gold*) supports_anon_versioning=yes ;;
9282 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9283 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9284 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9285 *\ 2.11.*) ;; # other 2.11 versions
9286 *) supports_anon_versioning=yes ;;
9287 esac
9288
9289 # See if GNU ld supports shared libraries.
9290 case $host_os in
9291 aix[3-9]*)
9292 # On AIX/PPC, the GNU linker is very broken
9293 if test "$host_cpu" != ia64; then
9294 ld_shlibs=no
9295 cat <<_LT_EOF 1>&2
9296
9297 *** Warning: the GNU linker, at least up to release 2.19, is reported
9298 *** to be unable to reliably create shared libraries on AIX.
9299 *** Therefore, libtool is disabling shared libraries support. If you
9300 *** really care for shared libraries, you may want to install binutils
9301 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9302 *** You will then need to restart the configuration process.
9303
9304 _LT_EOF
9305 fi
9306 ;;
9307
9308 amigaos*)
9309 case $host_cpu in
9310 powerpc)
9311 # see comment about AmigaOS4 .so support
9312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313 archive_expsym_cmds=''
9314 ;;
9315 m68k)
9316 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)'
9317 hardcode_libdir_flag_spec='-L$libdir'
9318 hardcode_minus_L=yes
9319 ;;
9320 esac
9321 ;;
9322
9323 beos*)
9324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9325 allow_undefined_flag=unsupported
9326 # Joseph Beckenbach <[email protected]> says some releases of gcc
9327 # support --undefined. This deserves some investigation. FIXME
9328 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329 else
9330 ld_shlibs=no
9331 fi
9332 ;;
9333
9334 cygwin* | mingw* | pw32* | cegcc*)
9335 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9336 # as there is no search path for DLLs.
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 export_dynamic_flag_spec='${wl}--export-all-symbols'
9339 allow_undefined_flag=unsupported
9340 always_export_symbols=no
9341 enable_shared_with_static_runtimes=yes
9342 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'
9343 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9344
9345 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9347 # If the export-symbols file already is a .def file (1st line
9348 # is EXPORTS), use it as is; otherwise, prepend...
9349 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9350 cp $export_symbols $output_objdir/$soname.def;
9351 else
9352 echo EXPORTS > $output_objdir/$soname.def;
9353 cat $export_symbols >> $output_objdir/$soname.def;
9354 fi~
9355 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9356 else
9357 ld_shlibs=no
9358 fi
9359 ;;
9360
9361 haiku*)
9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9363 link_all_deplibs=yes
9364 ;;
9365
9366 interix[3-9]*)
9367 hardcode_direct=no
9368 hardcode_shlibpath_var=no
9369 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9370 export_dynamic_flag_spec='${wl}-E'
9371 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9372 # Instead, shared libraries are loaded at an image base (0x10000000 by
9373 # default) and relocated if they conflict, which is a slow very memory
9374 # consuming and fragmenting process. To avoid this, we pick a random,
9375 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9376 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9377 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9378 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'
9379 ;;
9380
9381 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9382 tmp_diet=no
9383 if test "$host_os" = linux-dietlibc; then
9384 case $cc_basename in
9385 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9386 esac
9387 fi
9388 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9389 && test "$tmp_diet" = no
9390 then
9391 tmp_addflag=' $pic_flag'
9392 tmp_sharedflag='-shared'
9393 case $cc_basename,$host_cpu in
9394 pgcc*) # Portland Group C compiler
9395 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'
9396 tmp_addflag=' $pic_flag'
9397 ;;
9398 pgf77* | pgf90* | pgf95* | pgfortran*)
9399 # Portland Group f77 and f90 compilers
9400 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'
9401 tmp_addflag=' $pic_flag -Mnomain' ;;
9402 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9403 tmp_addflag=' -i_dynamic' ;;
9404 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9405 tmp_addflag=' -i_dynamic -nofor_main' ;;
9406 ifc* | ifort*) # Intel Fortran compiler
9407 tmp_addflag=' -nofor_main' ;;
9408 lf95*) # Lahey Fortran 8.1
9409 whole_archive_flag_spec=
9410 tmp_sharedflag='--shared' ;;
9411 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9412 tmp_sharedflag='-qmkshrobj'
9413 tmp_addflag= ;;
9414 nvcc*) # Cuda Compiler Driver 2.2
9415 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'
9416 compiler_needs_object=yes
9417 ;;
9418 esac
9419 case `$CC -V 2>&1 | sed 5q` in
9420 *Sun\ C*) # Sun C 5.9
9421 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'
9422 compiler_needs_object=yes
9423 tmp_sharedflag='-G' ;;
9424 *Sun\ F*) # Sun Fortran 8.3
9425 tmp_sharedflag='-G' ;;
9426 esac
9427 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428
9429 if test "x$supports_anon_versioning" = xyes; then
9430 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9432 echo "local: *; };" >> $output_objdir/$libname.ver~
9433 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9434 fi
9435
9436 case $cc_basename in
9437 xlf* | bgf* | bgxlf* | mpixlf*)
9438 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9439 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9441 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9442 if test "x$supports_anon_versioning" = xyes; then
9443 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9445 echo "local: *; };" >> $output_objdir/$libname.ver~
9446 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9447 fi
9448 ;;
9449 esac
9450 else
9451 ld_shlibs=no
9452 fi
9453 ;;
9454
9455 netbsd* | netbsdelf*-gnu)
9456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9457 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9458 wlarc=
9459 else
9460 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9461 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9462 fi
9463 ;;
9464
9465 solaris*)
9466 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9467 ld_shlibs=no
9468 cat <<_LT_EOF 1>&2
9469
9470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9471 *** create shared libraries on Solaris systems. Therefore, libtool
9472 *** is disabling shared libraries support. We urge you to upgrade GNU
9473 *** binutils to release 2.9.1 or newer. Another option is to modify
9474 *** your PATH or compiler configuration so that the native linker is
9475 *** used, and then restart.
9476
9477 _LT_EOF
9478 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9481 else
9482 ld_shlibs=no
9483 fi
9484 ;;
9485
9486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9487 case `$LD -v 2>&1` in
9488 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9489 ld_shlibs=no
9490 cat <<_LT_EOF 1>&2
9491
9492 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9493 *** reliably create shared libraries on SCO systems. Therefore, libtool
9494 *** is disabling shared libraries support. We urge you to upgrade GNU
9495 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9496 *** your PATH or compiler configuration so that the native linker is
9497 *** used, and then restart.
9498
9499 _LT_EOF
9500 ;;
9501 *)
9502 # For security reasons, it is highly recommended that you always
9503 # use absolute paths for naming shared libraries, and exclude the
9504 # DT_RUNPATH tag from executables and libraries. But doing so
9505 # requires that you compile everything twice, which is a pain.
9506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9510 else
9511 ld_shlibs=no
9512 fi
9513 ;;
9514 esac
9515 ;;
9516
9517 sunos4*)
9518 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519 wlarc=
9520 hardcode_direct=yes
9521 hardcode_shlibpath_var=no
9522 ;;
9523
9524 *)
9525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9526 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528 else
9529 ld_shlibs=no
9530 fi
9531 ;;
9532 esac
9533
9534 if test "$ld_shlibs" = no; then
9535 runpath_var=
9536 hardcode_libdir_flag_spec=
9537 export_dynamic_flag_spec=
9538 whole_archive_flag_spec=
9539 fi
9540 else
9541 # PORTME fill in a description of your system's linker (not GNU ld)
9542 case $host_os in
9543 aix3*)
9544 allow_undefined_flag=unsupported
9545 always_export_symbols=yes
9546 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'
9547 # Note: this linker hardcodes the directories in LIBPATH if there
9548 # are no directories specified by -L.
9549 hardcode_minus_L=yes
9550 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9551 # Neither direct hardcoding nor static linking is supported with a
9552 # broken collect2.
9553 hardcode_direct=unsupported
9554 fi
9555 ;;
9556
9557 aix[4-9]*)
9558 if test "$host_cpu" = ia64; then
9559 # On IA64, the linker does run time linking by default, so we don't
9560 # have to do anything special.
9561 aix_use_runtimelinking=no
9562 exp_sym_flag='-Bexport'
9563 no_entry_flag=""
9564 else
9565 # If we're using GNU nm, then we don't want the "-C" option.
9566 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9567 # Also, AIX nm treats weak defined symbols like other global
9568 # defined symbols, whereas GNU nm marks them as "W".
9569 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9570 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9571 else
9572 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9573 fi
9574 aix_use_runtimelinking=no
9575
9576 # Test if we are trying to use run time linking or normal
9577 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9578 # need to do runtime linking.
9579 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9580 for ld_flag in $LDFLAGS; do
9581 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9582 aix_use_runtimelinking=yes
9583 break
9584 fi
9585 done
9586 ;;
9587 esac
9588
9589 exp_sym_flag='-bexport'
9590 no_entry_flag='-bnoentry'
9591 fi
9592
9593 # When large executables or shared objects are built, AIX ld can
9594 # have problems creating the table of contents. If linking a library
9595 # or program results in "error TOC overflow" add -mminimal-toc to
9596 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9597 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9598
9599 archive_cmds=''
9600 hardcode_direct=yes
9601 hardcode_direct_absolute=yes
9602 hardcode_libdir_separator=':'
9603 link_all_deplibs=yes
9604 file_list_spec='${wl}-f,'
9605
9606 if test "$GCC" = yes; then
9607 case $host_os in aix4.[012]|aix4.[012].*)
9608 # We only want to do this on AIX 4.2 and lower, the check
9609 # below for broken collect2 doesn't work under 4.3+
9610 collect2name=`${CC} -print-prog-name=collect2`
9611 if test -f "$collect2name" &&
9612 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9613 then
9614 # We have reworked collect2
9615 :
9616 else
9617 # We have old collect2
9618 hardcode_direct=unsupported
9619 # It fails to find uninstalled libraries when the uninstalled
9620 # path is not listed in the libpath. Setting hardcode_minus_L
9621 # to unsupported forces relinking
9622 hardcode_minus_L=yes
9623 hardcode_libdir_flag_spec='-L$libdir'
9624 hardcode_libdir_separator=
9625 fi
9626 ;;
9627 esac
9628 shared_flag='-shared'
9629 if test "$aix_use_runtimelinking" = yes; then
9630 shared_flag="$shared_flag "'${wl}-G'
9631 fi
9632 link_all_deplibs=no
9633 else
9634 # not using gcc
9635 if test "$host_cpu" = ia64; then
9636 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9637 # chokes on -Wl,-G. The following line is correct:
9638 shared_flag='-G'
9639 else
9640 if test "$aix_use_runtimelinking" = yes; then
9641 shared_flag='${wl}-G'
9642 else
9643 shared_flag='${wl}-bM:SRE'
9644 fi
9645 fi
9646 fi
9647
9648 export_dynamic_flag_spec='${wl}-bexpall'
9649 # It seems that -bexpall does not export symbols beginning with
9650 # underscore (_), so it is better to generate a list of symbols to export.
9651 always_export_symbols=yes
9652 if test "$aix_use_runtimelinking" = yes; then
9653 # Warning - without using the other runtime loading flags (-brtl),
9654 # -berok will link without error, but may produce a broken library.
9655 allow_undefined_flag='-berok'
9656 # Determine the default libpath from the value encoded in an
9657 # empty executable.
9658 if test "${lt_cv_aix_libpath+set}" = set; then
9659 aix_libpath=$lt_cv_aix_libpath
9660 else
9661 if ${lt_cv_aix_libpath_+:} false; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666
9667 int
9668 main ()
9669 {
9670
9671 ;
9672 return 0;
9673 }
9674 _ACEOF
9675 if ac_fn_c_try_link "$LINENO"; then :
9676
9677 lt_aix_libpath_sed='
9678 /Import File Strings/,/^$/ {
9679 /^0/ {
9680 s/^0 *\([^ ]*\) *$/\1/
9681 p
9682 }
9683 }'
9684 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9685 # Check for a 64-bit object if we didn't find anything.
9686 if test -z "$lt_cv_aix_libpath_"; then
9687 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9688 fi
9689 fi
9690 rm -f core conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692 if test -z "$lt_cv_aix_libpath_"; then
9693 lt_cv_aix_libpath_="/usr/lib:/lib"
9694 fi
9695
9696 fi
9697
9698 aix_libpath=$lt_cv_aix_libpath_
9699 fi
9700
9701 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9702 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9703 else
9704 if test "$host_cpu" = ia64; then
9705 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9706 allow_undefined_flag="-z nodefs"
9707 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"
9708 else
9709 # Determine the default libpath from the value encoded in an
9710 # empty executable.
9711 if test "${lt_cv_aix_libpath+set}" = set; then
9712 aix_libpath=$lt_cv_aix_libpath
9713 else
9714 if ${lt_cv_aix_libpath_+:} false; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9719
9720 int
9721 main ()
9722 {
9723
9724 ;
9725 return 0;
9726 }
9727 _ACEOF
9728 if ac_fn_c_try_link "$LINENO"; then :
9729
9730 lt_aix_libpath_sed='
9731 /Import File Strings/,/^$/ {
9732 /^0/ {
9733 s/^0 *\([^ ]*\) *$/\1/
9734 p
9735 }
9736 }'
9737 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9738 # Check for a 64-bit object if we didn't find anything.
9739 if test -z "$lt_cv_aix_libpath_"; then
9740 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9741 fi
9742 fi
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 if test -z "$lt_cv_aix_libpath_"; then
9746 lt_cv_aix_libpath_="/usr/lib:/lib"
9747 fi
9748
9749 fi
9750
9751 aix_libpath=$lt_cv_aix_libpath_
9752 fi
9753
9754 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9755 # Warning - without using the other run time loading flags,
9756 # -berok will link without error, but may produce a broken library.
9757 no_undefined_flag=' ${wl}-bernotok'
9758 allow_undefined_flag=' ${wl}-berok'
9759 if test "$with_gnu_ld" = yes; then
9760 # We only use this code for GNU lds that support --whole-archive.
9761 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9762 else
9763 # Exported symbols can be pulled into shared objects from archives
9764 whole_archive_flag_spec='$convenience'
9765 fi
9766 archive_cmds_need_lc=yes
9767 # This is similar to how AIX traditionally builds its shared libraries.
9768 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9769 fi
9770 fi
9771 ;;
9772
9773 amigaos*)
9774 case $host_cpu in
9775 powerpc)
9776 # see comment about AmigaOS4 .so support
9777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778 archive_expsym_cmds=''
9779 ;;
9780 m68k)
9781 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)'
9782 hardcode_libdir_flag_spec='-L$libdir'
9783 hardcode_minus_L=yes
9784 ;;
9785 esac
9786 ;;
9787
9788 bsdi[45]*)
9789 export_dynamic_flag_spec=-rdynamic
9790 ;;
9791
9792 cygwin* | mingw* | pw32* | cegcc*)
9793 # When not using gcc, we currently assume that we are using
9794 # Microsoft Visual C++.
9795 # hardcode_libdir_flag_spec is actually meaningless, as there is
9796 # no search path for DLLs.
9797 case $cc_basename in
9798 cl*)
9799 # Native MSVC
9800 hardcode_libdir_flag_spec=' '
9801 allow_undefined_flag=unsupported
9802 always_export_symbols=yes
9803 file_list_spec='@'
9804 # Tell ltmain to make .lib files, not .a files.
9805 libext=lib
9806 # Tell ltmain to make .dll files, not .so files.
9807 shrext_cmds=".dll"
9808 # FIXME: Setting linknames here is a bad hack.
9809 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9810 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9811 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9812 else
9813 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9814 fi~
9815 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9816 linknames='
9817 # The linker will not automatically build a static lib if we build a DLL.
9818 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9819 enable_shared_with_static_runtimes=yes
9820 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9821 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9822 # Don't use ranlib
9823 old_postinstall_cmds='chmod 644 $oldlib'
9824 postlink_cmds='lt_outputfile="@OUTPUT@"~
9825 lt_tool_outputfile="@TOOL_OUTPUT@"~
9826 case $lt_outputfile in
9827 *.exe|*.EXE) ;;
9828 *)
9829 lt_outputfile="$lt_outputfile.exe"
9830 lt_tool_outputfile="$lt_tool_outputfile.exe"
9831 ;;
9832 esac~
9833 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9834 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9835 $RM "$lt_outputfile.manifest";
9836 fi'
9837 ;;
9838 *)
9839 # Assume MSVC wrapper
9840 hardcode_libdir_flag_spec=' '
9841 allow_undefined_flag=unsupported
9842 # Tell ltmain to make .lib files, not .a files.
9843 libext=lib
9844 # Tell ltmain to make .dll files, not .so files.
9845 shrext_cmds=".dll"
9846 # FIXME: Setting linknames here is a bad hack.
9847 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9848 # The linker will automatically build a .lib file if we build a DLL.
9849 old_archive_from_new_cmds='true'
9850 # FIXME: Should let the user specify the lib program.
9851 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9852 enable_shared_with_static_runtimes=yes
9853 ;;
9854 esac
9855 ;;
9856
9857 darwin* | rhapsody*)
9858
9859
9860 archive_cmds_need_lc=no
9861 hardcode_direct=no
9862 hardcode_automatic=yes
9863 hardcode_shlibpath_var=unsupported
9864 if test "$lt_cv_ld_force_load" = "yes"; then
9865 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\"`'
9866
9867 else
9868 whole_archive_flag_spec=''
9869 fi
9870 link_all_deplibs=yes
9871 allow_undefined_flag="$_lt_dar_allow_undefined"
9872 case $cc_basename in
9873 ifort*) _lt_dar_can_shared=yes ;;
9874 *) _lt_dar_can_shared=$GCC ;;
9875 esac
9876 if test "$_lt_dar_can_shared" = "yes"; then
9877 output_verbose_link_cmd=func_echo_all
9878 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9879 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9880 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}"
9881 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}"
9882
9883 else
9884 ld_shlibs=no
9885 fi
9886
9887 ;;
9888
9889 dgux*)
9890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891 hardcode_libdir_flag_spec='-L$libdir'
9892 hardcode_shlibpath_var=no
9893 ;;
9894
9895 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9896 # support. Future versions do this automatically, but an explicit c++rt0.o
9897 # does not break anything, and helps significantly (at the cost of a little
9898 # extra space).
9899 freebsd2.2*)
9900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9901 hardcode_libdir_flag_spec='-R$libdir'
9902 hardcode_direct=yes
9903 hardcode_shlibpath_var=no
9904 ;;
9905
9906 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9907 freebsd2.*)
9908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9909 hardcode_direct=yes
9910 hardcode_minus_L=yes
9911 hardcode_shlibpath_var=no
9912 ;;
9913
9914 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9915 freebsd* | dragonfly*)
9916 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9917 hardcode_libdir_flag_spec='-R$libdir'
9918 hardcode_direct=yes
9919 hardcode_shlibpath_var=no
9920 ;;
9921
9922 hpux9*)
9923 if test "$GCC" = yes; then
9924 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9925 else
9926 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9927 fi
9928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9929 hardcode_libdir_separator=:
9930 hardcode_direct=yes
9931
9932 # hardcode_minus_L: Not really in the search PATH,
9933 # but as the default location of the library.
9934 hardcode_minus_L=yes
9935 export_dynamic_flag_spec='${wl}-E'
9936 ;;
9937
9938 hpux10*)
9939 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9940 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9941 else
9942 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9943 fi
9944 if test "$with_gnu_ld" = no; then
9945 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9946 hardcode_libdir_separator=:
9947 hardcode_direct=yes
9948 hardcode_direct_absolute=yes
9949 export_dynamic_flag_spec='${wl}-E'
9950 # hardcode_minus_L: Not really in the search PATH,
9951 # but as the default location of the library.
9952 hardcode_minus_L=yes
9953 fi
9954 ;;
9955
9956 hpux11*)
9957 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9958 case $host_cpu in
9959 hppa*64*)
9960 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9961 ;;
9962 ia64*)
9963 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9964 ;;
9965 *)
9966 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9967 ;;
9968 esac
9969 else
9970 case $host_cpu in
9971 hppa*64*)
9972 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9973 ;;
9974 ia64*)
9975 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9976 ;;
9977 *)
9978
9979 # Older versions of the 11.00 compiler do not understand -b yet
9980 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9982 $as_echo_n "checking if $CC understands -b... " >&6; }
9983 if ${lt_cv_prog_compiler__b+:} false; then :
9984 $as_echo_n "(cached) " >&6
9985 else
9986 lt_cv_prog_compiler__b=no
9987 save_LDFLAGS="$LDFLAGS"
9988 LDFLAGS="$LDFLAGS -b"
9989 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9990 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9991 # The linker can only warn and ignore the option if not recognized
9992 # So say no if there are warnings
9993 if test -s conftest.err; then
9994 # Append any errors to the config.log.
9995 cat conftest.err 1>&5
9996 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9998 if diff conftest.exp conftest.er2 >/dev/null; then
9999 lt_cv_prog_compiler__b=yes
10000 fi
10001 else
10002 lt_cv_prog_compiler__b=yes
10003 fi
10004 fi
10005 $RM -r conftest*
10006 LDFLAGS="$save_LDFLAGS"
10007
10008 fi
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10010 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10011
10012 if test x"$lt_cv_prog_compiler__b" = xyes; then
10013 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10014 else
10015 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10016 fi
10017
10018 ;;
10019 esac
10020 fi
10021 if test "$with_gnu_ld" = no; then
10022 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10023 hardcode_libdir_separator=:
10024
10025 case $host_cpu in
10026 hppa*64*|ia64*)
10027 hardcode_direct=no
10028 hardcode_shlibpath_var=no
10029 ;;
10030 *)
10031 hardcode_direct=yes
10032 hardcode_direct_absolute=yes
10033 export_dynamic_flag_spec='${wl}-E'
10034
10035 # hardcode_minus_L: Not really in the search PATH,
10036 # but as the default location of the library.
10037 hardcode_minus_L=yes
10038 ;;
10039 esac
10040 fi
10041 ;;
10042
10043 irix5* | irix6* | nonstopux*)
10044 if test "$GCC" = yes; then
10045 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'
10046 # Try to use the -exported_symbol ld option, if it does not
10047 # work, assume that -exports_file does not work either and
10048 # implicitly export all symbols.
10049 # This should be the same for all languages, so no per-tag cache variable.
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10051 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10052 if ${lt_cv_irix_exported_symbol+:} false; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 save_LDFLAGS="$LDFLAGS"
10056 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10059 int foo (void) { return 0; }
10060 _ACEOF
10061 if ac_fn_c_try_link "$LINENO"; then :
10062 lt_cv_irix_exported_symbol=yes
10063 else
10064 lt_cv_irix_exported_symbol=no
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 LDFLAGS="$save_LDFLAGS"
10069 fi
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10071 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10072 if test "$lt_cv_irix_exported_symbol" = yes; then
10073 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'
10074 fi
10075 else
10076 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'
10077 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'
10078 fi
10079 archive_cmds_need_lc='no'
10080 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10081 hardcode_libdir_separator=:
10082 inherit_rpath=yes
10083 link_all_deplibs=yes
10084 ;;
10085
10086 netbsd* | netbsdelf*-gnu)
10087 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10089 else
10090 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10091 fi
10092 hardcode_libdir_flag_spec='-R$libdir'
10093 hardcode_direct=yes
10094 hardcode_shlibpath_var=no
10095 ;;
10096
10097 newsos6)
10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_direct=yes
10100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10101 hardcode_libdir_separator=:
10102 hardcode_shlibpath_var=no
10103 ;;
10104
10105 *nto* | *qnx*)
10106 ;;
10107
10108 openbsd*)
10109 if test -f /usr/libexec/ld.so; then
10110 hardcode_direct=yes
10111 hardcode_shlibpath_var=no
10112 hardcode_direct_absolute=yes
10113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10114 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10117 export_dynamic_flag_spec='${wl}-E'
10118 else
10119 case $host_os in
10120 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10121 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_libdir_flag_spec='-R$libdir'
10123 ;;
10124 *)
10125 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10126 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10127 ;;
10128 esac
10129 fi
10130 else
10131 ld_shlibs=no
10132 fi
10133 ;;
10134
10135 os2*)
10136 hardcode_libdir_flag_spec='-L$libdir'
10137 hardcode_minus_L=yes
10138 allow_undefined_flag=unsupported
10139 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10140 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10141 ;;
10142
10143 osf3*)
10144 if test "$GCC" = yes; then
10145 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10146 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'
10147 else
10148 allow_undefined_flag=' -expect_unresolved \*'
10149 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'
10150 fi
10151 archive_cmds_need_lc='no'
10152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10153 hardcode_libdir_separator=:
10154 ;;
10155
10156 osf4* | osf5*) # as osf3* with the addition of -msym flag
10157 if test "$GCC" = yes; then
10158 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10159 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'
10160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10161 else
10162 allow_undefined_flag=' -expect_unresolved \*'
10163 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'
10164 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~
10165 $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'
10166
10167 # Both c and cxx compiler support -rpath directly
10168 hardcode_libdir_flag_spec='-rpath $libdir'
10169 fi
10170 archive_cmds_need_lc='no'
10171 hardcode_libdir_separator=:
10172 ;;
10173
10174 solaris*)
10175 no_undefined_flag=' -z defs'
10176 if test "$GCC" = yes; then
10177 wlarc='${wl}'
10178 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10180 $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'
10181 else
10182 case `$CC -V 2>&1` in
10183 *"Compilers 5.0"*)
10184 wlarc=''
10185 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10187 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10188 ;;
10189 *)
10190 wlarc='${wl}'
10191 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10193 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10194 ;;
10195 esac
10196 fi
10197 hardcode_libdir_flag_spec='-R$libdir'
10198 hardcode_shlibpath_var=no
10199 case $host_os in
10200 solaris2.[0-5] | solaris2.[0-5].*) ;;
10201 *)
10202 # The compiler driver will combine and reorder linker options,
10203 # but understands `-z linker_flag'. GCC discards it without `$wl',
10204 # but is careful enough not to reorder.
10205 # Supported since Solaris 2.6 (maybe 2.5.1?)
10206 if test "$GCC" = yes; then
10207 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10208 else
10209 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10210 fi
10211 ;;
10212 esac
10213 link_all_deplibs=yes
10214 ;;
10215
10216 sunos4*)
10217 if test "x$host_vendor" = xsequent; then
10218 # Use $CC to link under sequent, because it throws in some extra .o
10219 # files that make .init and .fini sections work.
10220 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10221 else
10222 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10223 fi
10224 hardcode_libdir_flag_spec='-L$libdir'
10225 hardcode_direct=yes
10226 hardcode_minus_L=yes
10227 hardcode_shlibpath_var=no
10228 ;;
10229
10230 sysv4)
10231 case $host_vendor in
10232 sni)
10233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10234 hardcode_direct=yes # is this really true???
10235 ;;
10236 siemens)
10237 ## LD is ld it makes a PLAMLIB
10238 ## CC just makes a GrossModule.
10239 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10240 reload_cmds='$CC -r -o $output$reload_objs'
10241 hardcode_direct=no
10242 ;;
10243 motorola)
10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10246 ;;
10247 esac
10248 runpath_var='LD_RUN_PATH'
10249 hardcode_shlibpath_var=no
10250 ;;
10251
10252 sysv4.3*)
10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_shlibpath_var=no
10255 export_dynamic_flag_spec='-Bexport'
10256 ;;
10257
10258 sysv4*MP*)
10259 if test -d /usr/nec; then
10260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10261 hardcode_shlibpath_var=no
10262 runpath_var=LD_RUN_PATH
10263 hardcode_runpath_var=yes
10264 ld_shlibs=yes
10265 fi
10266 ;;
10267
10268 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10269 no_undefined_flag='${wl}-z,text'
10270 archive_cmds_need_lc=no
10271 hardcode_shlibpath_var=no
10272 runpath_var='LD_RUN_PATH'
10273
10274 if test "$GCC" = yes; then
10275 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 else
10278 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10279 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280 fi
10281 ;;
10282
10283 sysv5* | sco3.2v5* | sco5v6*)
10284 # Note: We can NOT use -z defs as we might desire, because we do not
10285 # link with -lc, and that would cause any symbols used from libc to
10286 # always be unresolved, which means just about no library would
10287 # ever link correctly. If we're not using GNU ld we use -z text
10288 # though, which does catch some bad symbols but isn't as heavy-handed
10289 # as -z defs.
10290 no_undefined_flag='${wl}-z,text'
10291 allow_undefined_flag='${wl}-z,nodefs'
10292 archive_cmds_need_lc=no
10293 hardcode_shlibpath_var=no
10294 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10295 hardcode_libdir_separator=':'
10296 link_all_deplibs=yes
10297 export_dynamic_flag_spec='${wl}-Bexport'
10298 runpath_var='LD_RUN_PATH'
10299
10300 if test "$GCC" = yes; then
10301 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10302 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10303 else
10304 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10305 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10306 fi
10307 ;;
10308
10309 uts4*)
10310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10311 hardcode_libdir_flag_spec='-L$libdir'
10312 hardcode_shlibpath_var=no
10313 ;;
10314
10315 *)
10316 ld_shlibs=no
10317 ;;
10318 esac
10319
10320 if test x$host_vendor = xsni; then
10321 case $host in
10322 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10323 export_dynamic_flag_spec='${wl}-Blargedynsym'
10324 ;;
10325 esac
10326 fi
10327 fi
10328
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10330 $as_echo "$ld_shlibs" >&6; }
10331 test "$ld_shlibs" = no && can_build_shared=no
10332
10333 with_gnu_ld=$with_gnu_ld
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349 #
10350 # Do we need to explicitly link libc?
10351 #
10352 case "x$archive_cmds_need_lc" in
10353 x|xyes)
10354 # Assume -lc should be added
10355 archive_cmds_need_lc=yes
10356
10357 if test "$enable_shared" = yes && test "$GCC" = yes; then
10358 case $archive_cmds in
10359 *'~'*)
10360 # FIXME: we may have to deal with multi-command sequences.
10361 ;;
10362 '$CC '*)
10363 # Test whether the compiler implicitly links with -lc since on some
10364 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10365 # to ld, don't add -lc before -lgcc.
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10367 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10368 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 $RM conftest*
10372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10373
10374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10375 (eval $ac_compile) 2>&5
10376 ac_status=$?
10377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10378 test $ac_status = 0; } 2>conftest.err; then
10379 soname=conftest
10380 lib=conftest
10381 libobjs=conftest.$ac_objext
10382 deplibs=
10383 wl=$lt_prog_compiler_wl
10384 pic_flag=$lt_prog_compiler_pic
10385 compiler_flags=-v
10386 linker_flags=-v
10387 verstring=
10388 output_objdir=.
10389 libname=conftest
10390 lt_save_allow_undefined_flag=$allow_undefined_flag
10391 allow_undefined_flag=
10392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10393 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10394 ac_status=$?
10395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10396 test $ac_status = 0; }
10397 then
10398 lt_cv_archive_cmds_need_lc=no
10399 else
10400 lt_cv_archive_cmds_need_lc=yes
10401 fi
10402 allow_undefined_flag=$lt_save_allow_undefined_flag
10403 else
10404 cat conftest.err 1>&5
10405 fi
10406 $RM conftest*
10407
10408 fi
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10410 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10411 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10412 ;;
10413 esac
10414 fi
10415 ;;
10416 esac
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10570 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10571
10572 if test "$GCC" = yes; then
10573 case $host_os in
10574 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10575 *) lt_awk_arg="/^libraries:/" ;;
10576 esac
10577 case $host_os in
10578 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10579 *) lt_sed_strip_eq="s,=/,/,g" ;;
10580 esac
10581 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10582 case $lt_search_path_spec in
10583 *\;*)
10584 # if the path contains ";" then we assume it to be the separator
10585 # otherwise default to the standard path separator (i.e. ":") - it is
10586 # assumed that no part of a normal pathname contains ";" but that should
10587 # okay in the real world where ";" in dirpaths is itself problematic.
10588 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10589 ;;
10590 *)
10591 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10592 ;;
10593 esac
10594 # Ok, now we have the path, separated by spaces, we can step through it
10595 # and add multilib dir if necessary.
10596 lt_tmp_lt_search_path_spec=
10597 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10598 for lt_sys_path in $lt_search_path_spec; do
10599 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10601 else
10602 test -d "$lt_sys_path" && \
10603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10604 fi
10605 done
10606 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10607 BEGIN {RS=" "; FS="/|\n";} {
10608 lt_foo="";
10609 lt_count=0;
10610 for (lt_i = NF; lt_i > 0; lt_i--) {
10611 if ($lt_i != "" && $lt_i != ".") {
10612 if ($lt_i == "..") {
10613 lt_count++;
10614 } else {
10615 if (lt_count == 0) {
10616 lt_foo="/" $lt_i lt_foo;
10617 } else {
10618 lt_count--;
10619 }
10620 }
10621 }
10622 }
10623 if (lt_foo != "") { lt_freq[lt_foo]++; }
10624 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10625 }'`
10626 # AWK program above erroneously prepends '/' to C:/dos/paths
10627 # for these hosts.
10628 case $host_os in
10629 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10630 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10631 esac
10632 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10633 else
10634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10635 fi
10636 library_names_spec=
10637 libname_spec='lib$name'
10638 soname_spec=
10639 shrext_cmds=".so"
10640 postinstall_cmds=
10641 postuninstall_cmds=
10642 finish_cmds=
10643 finish_eval=
10644 shlibpath_var=
10645 shlibpath_overrides_runpath=unknown
10646 version_type=none
10647 dynamic_linker="$host_os ld.so"
10648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10649 need_lib_prefix=unknown
10650 hardcode_into_libs=no
10651
10652 # when you set need_version to no, make sure it does not cause -set_version
10653 # flags to be left without arguments
10654 need_version=unknown
10655
10656 case $host_os in
10657 aix3*)
10658 version_type=linux # correct to gnu/linux during the next big refactor
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10660 shlibpath_var=LIBPATH
10661
10662 # AIX 3 has no versioning support, so we append a major version to the name.
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 ;;
10665
10666 aix[4-9]*)
10667 version_type=linux # correct to gnu/linux during the next big refactor
10668 need_lib_prefix=no
10669 need_version=no
10670 hardcode_into_libs=yes
10671 if test "$host_cpu" = ia64; then
10672 # AIX 5 supports IA64
10673 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10674 shlibpath_var=LD_LIBRARY_PATH
10675 else
10676 # With GCC up to 2.95.x, collect2 would create an import file
10677 # for dependence libraries. The import file would start with
10678 # the line `#! .'. This would cause the generated library to
10679 # depend on `.', always an invalid library. This was fixed in
10680 # development snapshots of GCC prior to 3.0.
10681 case $host_os in
10682 aix4 | aix4.[01] | aix4.[01].*)
10683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10684 echo ' yes '
10685 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10686 :
10687 else
10688 can_build_shared=no
10689 fi
10690 ;;
10691 esac
10692 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10693 # soname into executable. Probably we can add versioning support to
10694 # collect2, so additional links can be useful in future.
10695 if test "$aix_use_runtimelinking" = yes; then
10696 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10697 # instead of lib<name>.a to let people know that these are not
10698 # typical AIX shared libraries.
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 else
10701 # We preserve .a as extension for shared libraries through AIX4.2
10702 # and later when we are not doing run time linking.
10703 library_names_spec='${libname}${release}.a $libname.a'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 fi
10706 shlibpath_var=LIBPATH
10707 fi
10708 ;;
10709
10710 amigaos*)
10711 case $host_cpu in
10712 powerpc)
10713 # Since July 2007 AmigaOS4 officially supports .so libraries.
10714 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 ;;
10717 m68k)
10718 library_names_spec='$libname.ixlibrary $libname.a'
10719 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10720 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10721 ;;
10722 esac
10723 ;;
10724
10725 beos*)
10726 library_names_spec='${libname}${shared_ext}'
10727 dynamic_linker="$host_os ld.so"
10728 shlibpath_var=LIBRARY_PATH
10729 ;;
10730
10731 bsdi[45]*)
10732 version_type=linux # correct to gnu/linux during the next big refactor
10733 need_version=no
10734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735 soname_spec='${libname}${release}${shared_ext}$major'
10736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10740 # the default ld.so.conf also contains /usr/contrib/lib and
10741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10742 # libtool to hard-code these into programs
10743 ;;
10744
10745 cygwin* | mingw* | pw32* | cegcc*)
10746 version_type=windows
10747 shrext_cmds=".dll"
10748 need_version=no
10749 need_lib_prefix=no
10750
10751 case $GCC,$cc_basename in
10752 yes,*)
10753 # gcc
10754 library_names_spec='$libname.dll.a'
10755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10756 postinstall_cmds='base_file=`basename \${file}`~
10757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10758 dldir=$destdir/`dirname \$dlpath`~
10759 test -d \$dldir || mkdir -p \$dldir~
10760 $install_prog $dir/$dlname \$dldir/$dlname~
10761 chmod a+x \$dldir/$dlname~
10762 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10763 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10764 fi'
10765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10766 dlpath=$dir/\$dldll~
10767 $RM \$dlpath'
10768 shlibpath_overrides_runpath=yes
10769
10770 case $host_os in
10771 cygwin*)
10772 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10773 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10774
10775 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10776 ;;
10777 mingw* | cegcc*)
10778 # MinGW DLLs use traditional 'lib' prefix
10779 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10780 ;;
10781 pw32*)
10782 # pw32 DLLs use 'pw' prefix rather than 'lib'
10783 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10784 ;;
10785 esac
10786 dynamic_linker='Win32 ld.exe'
10787 ;;
10788
10789 *,cl*)
10790 # Native MSVC
10791 libname_spec='$name'
10792 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10793 library_names_spec='${libname}.dll.lib'
10794
10795 case $build_os in
10796 mingw*)
10797 sys_lib_search_path_spec=
10798 lt_save_ifs=$IFS
10799 IFS=';'
10800 for lt_path in $LIB
10801 do
10802 IFS=$lt_save_ifs
10803 # Let DOS variable expansion print the short 8.3 style file name.
10804 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10805 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10806 done
10807 IFS=$lt_save_ifs
10808 # Convert to MSYS style.
10809 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10810 ;;
10811 cygwin*)
10812 # Convert to unix form, then to dos form, then back to unix form
10813 # but this time dos style (no spaces!) so that the unix form looks
10814 # like /cygdrive/c/PROGRA~1:/cygdr...
10815 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10816 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10817 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10818 ;;
10819 *)
10820 sys_lib_search_path_spec="$LIB"
10821 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10822 # It is most probably a Windows format PATH.
10823 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10824 else
10825 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10826 fi
10827 # FIXME: find the short name or the path components, as spaces are
10828 # common. (e.g. "Program Files" -> "PROGRA~1")
10829 ;;
10830 esac
10831
10832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10833 postinstall_cmds='base_file=`basename \${file}`~
10834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10835 dldir=$destdir/`dirname \$dlpath`~
10836 test -d \$dldir || mkdir -p \$dldir~
10837 $install_prog $dir/$dlname \$dldir/$dlname'
10838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10839 dlpath=$dir/\$dldll~
10840 $RM \$dlpath'
10841 shlibpath_overrides_runpath=yes
10842 dynamic_linker='Win32 link.exe'
10843 ;;
10844
10845 *)
10846 # Assume MSVC wrapper
10847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10848 dynamic_linker='Win32 ld.exe'
10849 ;;
10850 esac
10851 # FIXME: first we should search . and the directory the executable is in
10852 shlibpath_var=PATH
10853 ;;
10854
10855 darwin* | rhapsody*)
10856 dynamic_linker="$host_os dyld"
10857 version_type=darwin
10858 need_lib_prefix=no
10859 need_version=no
10860 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10861 soname_spec='${libname}${release}${major}$shared_ext'
10862 shlibpath_overrides_runpath=yes
10863 shlibpath_var=DYLD_LIBRARY_PATH
10864 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10865
10866 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10868 ;;
10869
10870 dgux*)
10871 version_type=linux # correct to gnu/linux during the next big refactor
10872 need_lib_prefix=no
10873 need_version=no
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 ;;
10878
10879 freebsd* | dragonfly*)
10880 # DragonFly does not have aout. When/if they implement a new
10881 # versioning mechanism, adjust this.
10882 if test -x /usr/bin/objformat; then
10883 objformat=`/usr/bin/objformat`
10884 else
10885 case $host_os in
10886 freebsd[23].*) objformat=aout ;;
10887 *) objformat=elf ;;
10888 esac
10889 fi
10890 version_type=freebsd-$objformat
10891 case $version_type in
10892 freebsd-elf*)
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10894 need_version=no
10895 need_lib_prefix=no
10896 ;;
10897 freebsd-*)
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10899 need_version=yes
10900 ;;
10901 esac
10902 shlibpath_var=LD_LIBRARY_PATH
10903 case $host_os in
10904 freebsd2.*)
10905 shlibpath_overrides_runpath=yes
10906 ;;
10907 freebsd3.[01]* | freebsdelf3.[01]*)
10908 shlibpath_overrides_runpath=yes
10909 hardcode_into_libs=yes
10910 ;;
10911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10913 shlibpath_overrides_runpath=no
10914 hardcode_into_libs=yes
10915 ;;
10916 *) # from 4.6 on, and DragonFly
10917 shlibpath_overrides_runpath=yes
10918 hardcode_into_libs=yes
10919 ;;
10920 esac
10921 ;;
10922
10923 gnu*)
10924 version_type=linux # correct to gnu/linux during the next big refactor
10925 need_lib_prefix=no
10926 need_version=no
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=no
10931 hardcode_into_libs=yes
10932 ;;
10933
10934 haiku*)
10935 version_type=linux # correct to gnu/linux during the next big refactor
10936 need_lib_prefix=no
10937 need_version=no
10938 dynamic_linker="$host_os runtime_loader"
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 shlibpath_var=LIBRARY_PATH
10942 shlibpath_overrides_runpath=yes
10943 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10944 hardcode_into_libs=yes
10945 ;;
10946
10947 hpux9* | hpux10* | hpux11*)
10948 # Give a soname corresponding to the major version so that dld.sl refuses to
10949 # link against other versions.
10950 version_type=sunos
10951 need_lib_prefix=no
10952 need_version=no
10953 case $host_cpu in
10954 ia64*)
10955 shrext_cmds='.so'
10956 hardcode_into_libs=yes
10957 dynamic_linker="$host_os dld.so"
10958 shlibpath_var=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 if test "X$HPUX_IA64_MODE" = X32; then
10963 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10964 else
10965 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10966 fi
10967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10968 ;;
10969 hppa*64*)
10970 shrext_cmds='.sl'
10971 hardcode_into_libs=yes
10972 dynamic_linker="$host_os dld.sl"
10973 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10979 ;;
10980 *)
10981 shrext_cmds='.sl'
10982 dynamic_linker="$host_os dld.sl"
10983 shlibpath_var=SHLIB_PATH
10984 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 ;;
10988 esac
10989 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10990 postinstall_cmds='chmod 555 $lib'
10991 # or fails outright, so override atomically:
10992 install_override_mode=555
10993 ;;
10994
10995 interix[3-9]*)
10996 version_type=linux # correct to gnu/linux during the next big refactor
10997 need_lib_prefix=no
10998 need_version=no
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 shlibpath_overrides_runpath=no
11004 hardcode_into_libs=yes
11005 ;;
11006
11007 irix5* | irix6* | nonstopux*)
11008 case $host_os in
11009 nonstopux*) version_type=nonstopux ;;
11010 *)
11011 if test "$lt_cv_prog_gnu_ld" = yes; then
11012 version_type=linux # correct to gnu/linux during the next big refactor
11013 else
11014 version_type=irix
11015 fi ;;
11016 esac
11017 need_lib_prefix=no
11018 need_version=no
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11021 case $host_os in
11022 irix5* | nonstopux*)
11023 libsuff= shlibsuff=
11024 ;;
11025 *)
11026 case $LD in # libtool.m4 will add one of these switches to LD
11027 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11028 libsuff= shlibsuff= libmagic=32-bit;;
11029 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11030 libsuff=32 shlibsuff=N32 libmagic=N32;;
11031 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11032 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11033 *) libsuff= shlibsuff= libmagic=never-match;;
11034 esac
11035 ;;
11036 esac
11037 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11038 shlibpath_overrides_runpath=no
11039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11041 hardcode_into_libs=yes
11042 ;;
11043
11044 # No shared lib support for Linux oldld, aout, or coff.
11045 linux*oldld* | linux*aout* | linux*coff*)
11046 dynamic_linker=no
11047 ;;
11048
11049 # This must be glibc/ELF.
11050 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11051 version_type=linux # correct to gnu/linux during the next big refactor
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=no
11059
11060 # Some binutils ld are patched to set DT_RUNPATH
11061 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 lt_cv_shlibpath_overrides_runpath=no
11065 save_LDFLAGS=$LDFLAGS
11066 save_libdir=$libdir
11067 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11068 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11071
11072 int
11073 main ()
11074 {
11075
11076 ;
11077 return 0;
11078 }
11079 _ACEOF
11080 if ac_fn_c_try_link "$LINENO"; then :
11081 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11082 lt_cv_shlibpath_overrides_runpath=yes
11083 fi
11084 fi
11085 rm -f core conftest.err conftest.$ac_objext \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LDFLAGS=$save_LDFLAGS
11088 libdir=$save_libdir
11089
11090 fi
11091
11092 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11093
11094 # This implies no fast_install, which is unacceptable.
11095 # Some rework will be needed to allow for fast_install
11096 # before this can be enabled.
11097 hardcode_into_libs=yes
11098
11099 # Append ld.so.conf contents to the search path
11100 if test -f /etc/ld.so.conf; then
11101 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' ' '`
11102 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11103 fi
11104
11105 # We used to test for /lib/ld.so.1 and disable shared libraries on
11106 # powerpc, because MkLinux only supported shared libraries with the
11107 # GNU dynamic linker. Since this was broken with cross compilers,
11108 # most powerpc-linux boxes support dynamic linking these days and
11109 # people can always --disable-shared, the test was removed, and we
11110 # assume the GNU/Linux dynamic linker is in use.
11111 dynamic_linker='GNU/Linux ld.so'
11112 ;;
11113
11114 netbsdelf*-gnu)
11115 version_type=linux
11116 need_lib_prefix=no
11117 need_version=no
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=no
11122 hardcode_into_libs=yes
11123 dynamic_linker='NetBSD ld.elf_so'
11124 ;;
11125
11126 netbsd*)
11127 version_type=sunos
11128 need_lib_prefix=no
11129 need_version=no
11130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11133 dynamic_linker='NetBSD (a.out) ld.so'
11134 else
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 dynamic_linker='NetBSD ld.elf_so'
11138 fi
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=yes
11141 hardcode_into_libs=yes
11142 ;;
11143
11144 newsos6)
11145 version_type=linux # correct to gnu/linux during the next big refactor
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath=yes
11149 ;;
11150
11151 *nto* | *qnx*)
11152 version_type=qnx
11153 need_lib_prefix=no
11154 need_version=no
11155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11156 soname_spec='${libname}${release}${shared_ext}$major'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 shlibpath_overrides_runpath=no
11159 hardcode_into_libs=yes
11160 dynamic_linker='ldqnx.so'
11161 ;;
11162
11163 openbsd*)
11164 version_type=sunos
11165 sys_lib_dlsearch_path_spec="/usr/lib"
11166 need_lib_prefix=no
11167 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11168 case $host_os in
11169 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11170 *) need_version=no ;;
11171 esac
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11176 case $host_os in
11177 openbsd2.[89] | openbsd2.[89].*)
11178 shlibpath_overrides_runpath=no
11179 ;;
11180 *)
11181 shlibpath_overrides_runpath=yes
11182 ;;
11183 esac
11184 else
11185 shlibpath_overrides_runpath=yes
11186 fi
11187 ;;
11188
11189 os2*)
11190 libname_spec='$name'
11191 shrext_cmds=".dll"
11192 need_lib_prefix=no
11193 library_names_spec='$libname${shared_ext} $libname.a'
11194 dynamic_linker='OS/2 ld.exe'
11195 shlibpath_var=LIBPATH
11196 ;;
11197
11198 osf3* | osf4* | osf5*)
11199 version_type=osf
11200 need_lib_prefix=no
11201 need_version=no
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11206 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11207 ;;
11208
11209 rdos*)
11210 dynamic_linker=no
11211 ;;
11212
11213 solaris*)
11214 version_type=linux # correct to gnu/linux during the next big refactor
11215 need_lib_prefix=no
11216 need_version=no
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=yes
11221 hardcode_into_libs=yes
11222 # ldd complains unless libraries are executable
11223 postinstall_cmds='chmod +x $lib'
11224 ;;
11225
11226 sunos4*)
11227 version_type=sunos
11228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11229 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11230 shlibpath_var=LD_LIBRARY_PATH
11231 shlibpath_overrides_runpath=yes
11232 if test "$with_gnu_ld" = yes; then
11233 need_lib_prefix=no
11234 fi
11235 need_version=yes
11236 ;;
11237
11238 sysv4 | sysv4.3*)
11239 version_type=linux # correct to gnu/linux during the next big refactor
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 case $host_vendor in
11244 sni)
11245 shlibpath_overrides_runpath=no
11246 need_lib_prefix=no
11247 runpath_var=LD_RUN_PATH
11248 ;;
11249 siemens)
11250 need_lib_prefix=no
11251 ;;
11252 motorola)
11253 need_lib_prefix=no
11254 need_version=no
11255 shlibpath_overrides_runpath=no
11256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11257 ;;
11258 esac
11259 ;;
11260
11261 sysv4*MP*)
11262 if test -d /usr/nec ;then
11263 version_type=linux # correct to gnu/linux during the next big refactor
11264 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11265 soname_spec='$libname${shared_ext}.$major'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 fi
11268 ;;
11269
11270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11271 version_type=freebsd-elf
11272 need_lib_prefix=no
11273 need_version=no
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes
11278 hardcode_into_libs=yes
11279 if test "$with_gnu_ld" = yes; then
11280 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11281 else
11282 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11283 case $host_os in
11284 sco3.2v5*)
11285 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11286 ;;
11287 esac
11288 fi
11289 sys_lib_dlsearch_path_spec='/usr/lib'
11290 ;;
11291
11292 tpf*)
11293 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11294 version_type=linux # correct to gnu/linux during the next big refactor
11295 need_lib_prefix=no
11296 need_version=no
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 shlibpath_overrides_runpath=no
11300 hardcode_into_libs=yes
11301 ;;
11302
11303 uts4*)
11304 version_type=linux # correct to gnu/linux during the next big refactor
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 ;;
11309
11310 *)
11311 dynamic_linker=no
11312 ;;
11313 esac
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11315 $as_echo "$dynamic_linker" >&6; }
11316 test "$dynamic_linker" = no && can_build_shared=no
11317
11318 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11319 if test "$GCC" = yes; then
11320 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11321 fi
11322
11323 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11324 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11325 fi
11326 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11327 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11328 fi
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11422 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11423 hardcode_action=
11424 if test -n "$hardcode_libdir_flag_spec" ||
11425 test -n "$runpath_var" ||
11426 test "X$hardcode_automatic" = "Xyes" ; then
11427
11428 # We can hardcode non-existent directories.
11429 if test "$hardcode_direct" != no &&
11430 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11431 # have to relink, otherwise we might link with an installed library
11432 # when we should be linking with a yet-to-be-installed one
11433 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11434 test "$hardcode_minus_L" != no; then
11435 # Linking always hardcodes the temporary library directory.
11436 hardcode_action=relink
11437 else
11438 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11439 hardcode_action=immediate
11440 fi
11441 else
11442 # We cannot hardcode anything, or else we can only hardcode existing
11443 # directories.
11444 hardcode_action=unsupported
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11447 $as_echo "$hardcode_action" >&6; }
11448
11449 if test "$hardcode_action" = relink ||
11450 test "$inherit_rpath" = yes; then
11451 # Fast installation is not supported
11452 enable_fast_install=no
11453 elif test "$shlibpath_overrides_runpath" = yes ||
11454 test "$enable_shared" = no; then
11455 # Fast installation is not necessary
11456 enable_fast_install=needless
11457 fi
11458
11459
11460
11461
11462
11463
11464 if test "x$enable_dlopen" != xyes; then
11465 enable_dlopen=unknown
11466 enable_dlopen_self=unknown
11467 enable_dlopen_self_static=unknown
11468 else
11469 lt_cv_dlopen=no
11470 lt_cv_dlopen_libs=
11471
11472 case $host_os in
11473 beos*)
11474 lt_cv_dlopen="load_add_on"
11475 lt_cv_dlopen_libs=
11476 lt_cv_dlopen_self=yes
11477 ;;
11478
11479 mingw* | pw32* | cegcc*)
11480 lt_cv_dlopen="LoadLibrary"
11481 lt_cv_dlopen_libs=
11482 ;;
11483
11484 cygwin*)
11485 lt_cv_dlopen="dlopen"
11486 lt_cv_dlopen_libs=
11487 ;;
11488
11489 darwin*)
11490 # if libdl is installed we need to link against it
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11492 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11493 if ${ac_cv_lib_dl_dlopen+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 ac_check_lib_save_LIBS=$LIBS
11497 LIBS="-ldl $LIBS"
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500
11501 /* Override any GCC internal prototype to avoid an error.
11502 Use char because int might match the return type of a GCC
11503 builtin and then its argument prototype would still apply. */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 char dlopen ();
11508 int
11509 main ()
11510 {
11511 return dlopen ();
11512 ;
11513 return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_link "$LINENO"; then :
11517 ac_cv_lib_dl_dlopen=yes
11518 else
11519 ac_cv_lib_dl_dlopen=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11527 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11529 else
11530
11531 lt_cv_dlopen="dyld"
11532 lt_cv_dlopen_libs=
11533 lt_cv_dlopen_self=yes
11534
11535 fi
11536
11537 ;;
11538
11539 *)
11540 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11541 if test "x$ac_cv_func_shl_load" = xyes; then :
11542 lt_cv_dlopen="shl_load"
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11545 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11546 if ${ac_cv_lib_dld_shl_load+:} false; then :
11547 $as_echo_n "(cached) " >&6
11548 else
11549 ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-ldld $LIBS"
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11553
11554 /* Override any GCC internal prototype to avoid an error.
11555 Use char because int might match the return type of a GCC
11556 builtin and then its argument prototype would still apply. */
11557 #ifdef __cplusplus
11558 extern "C"
11559 #endif
11560 char shl_load ();
11561 int
11562 main ()
11563 {
11564 return shl_load ();
11565 ;
11566 return 0;
11567 }
11568 _ACEOF
11569 if ac_fn_c_try_link "$LINENO"; then :
11570 ac_cv_lib_dld_shl_load=yes
11571 else
11572 ac_cv_lib_dld_shl_load=no
11573 fi
11574 rm -f core conftest.err conftest.$ac_objext \
11575 conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11577 fi
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11579 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11580 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11581 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11582 else
11583 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11584 if test "x$ac_cv_func_dlopen" = xyes; then :
11585 lt_cv_dlopen="dlopen"
11586 else
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11589 if ${ac_cv_lib_dl_dlopen+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 ac_check_lib_save_LIBS=$LIBS
11593 LIBS="-ldl $LIBS"
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11596
11597 /* Override any GCC internal prototype to avoid an error.
11598 Use char because int might match the return type of a GCC
11599 builtin and then its argument prototype would still apply. */
11600 #ifdef __cplusplus
11601 extern "C"
11602 #endif
11603 char dlopen ();
11604 int
11605 main ()
11606 {
11607 return dlopen ();
11608 ;
11609 return 0;
11610 }
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11613 ac_cv_lib_dl_dlopen=yes
11614 else
11615 ac_cv_lib_dl_dlopen=no
11616 fi
11617 rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_lib_save_LIBS
11620 fi
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11623 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11625 else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11627 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11628 if ${ac_cv_lib_svld_dlopen+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-lsvld $LIBS"
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11635
11636 /* Override any GCC internal prototype to avoid an error.
11637 Use char because int might match the return type of a GCC
11638 builtin and then its argument prototype would still apply. */
11639 #ifdef __cplusplus
11640 extern "C"
11641 #endif
11642 char dlopen ();
11643 int
11644 main ()
11645 {
11646 return dlopen ();
11647 ;
11648 return 0;
11649 }
11650 _ACEOF
11651 if ac_fn_c_try_link "$LINENO"; then :
11652 ac_cv_lib_svld_dlopen=yes
11653 else
11654 ac_cv_lib_svld_dlopen=no
11655 fi
11656 rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11658 LIBS=$ac_check_lib_save_LIBS
11659 fi
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11661 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11662 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11666 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11667 if ${ac_cv_lib_dld_dld_link+:} false; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 ac_check_lib_save_LIBS=$LIBS
11671 LIBS="-ldld $LIBS"
11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11674
11675 /* Override any GCC internal prototype to avoid an error.
11676 Use char because int might match the return type of a GCC
11677 builtin and then its argument prototype would still apply. */
11678 #ifdef __cplusplus
11679 extern "C"
11680 #endif
11681 char dld_link ();
11682 int
11683 main ()
11684 {
11685 return dld_link ();
11686 ;
11687 return 0;
11688 }
11689 _ACEOF
11690 if ac_fn_c_try_link "$LINENO"; then :
11691 ac_cv_lib_dld_dld_link=yes
11692 else
11693 ac_cv_lib_dld_dld_link=no
11694 fi
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697 LIBS=$ac_check_lib_save_LIBS
11698 fi
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11700 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11701 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11702 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11703 fi
11704
11705
11706 fi
11707
11708
11709 fi
11710
11711
11712 fi
11713
11714
11715 fi
11716
11717
11718 fi
11719
11720 ;;
11721 esac
11722
11723 if test "x$lt_cv_dlopen" != xno; then
11724 enable_dlopen=yes
11725 else
11726 enable_dlopen=no
11727 fi
11728
11729 case $lt_cv_dlopen in
11730 dlopen)
11731 save_CPPFLAGS="$CPPFLAGS"
11732 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11733
11734 save_LDFLAGS="$LDFLAGS"
11735 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11736
11737 save_LIBS="$LIBS"
11738 LIBS="$lt_cv_dlopen_libs $LIBS"
11739
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11741 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11742 if ${lt_cv_dlopen_self+:} false; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 if test "$cross_compiling" = yes; then :
11746 lt_cv_dlopen_self=cross
11747 else
11748 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11749 lt_status=$lt_dlunknown
11750 cat > conftest.$ac_ext <<_LT_EOF
11751 #line $LINENO "configure"
11752 #include "confdefs.h"
11753
11754 #if HAVE_DLFCN_H
11755 #include <dlfcn.h>
11756 #endif
11757
11758 #include <stdio.h>
11759
11760 #ifdef RTLD_GLOBAL
11761 # define LT_DLGLOBAL RTLD_GLOBAL
11762 #else
11763 # ifdef DL_GLOBAL
11764 # define LT_DLGLOBAL DL_GLOBAL
11765 # else
11766 # define LT_DLGLOBAL 0
11767 # endif
11768 #endif
11769
11770 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11771 find out it does not work in some platform. */
11772 #ifndef LT_DLLAZY_OR_NOW
11773 # ifdef RTLD_LAZY
11774 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11775 # else
11776 # ifdef DL_LAZY
11777 # define LT_DLLAZY_OR_NOW DL_LAZY
11778 # else
11779 # ifdef RTLD_NOW
11780 # define LT_DLLAZY_OR_NOW RTLD_NOW
11781 # else
11782 # ifdef DL_NOW
11783 # define LT_DLLAZY_OR_NOW DL_NOW
11784 # else
11785 # define LT_DLLAZY_OR_NOW 0
11786 # endif
11787 # endif
11788 # endif
11789 # endif
11790 #endif
11791
11792 /* When -fvisbility=hidden is used, assume the code has been annotated
11793 correspondingly for the symbols needed. */
11794 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11795 int fnord () __attribute__((visibility("default")));
11796 #endif
11797
11798 int fnord () { return 42; }
11799 int main ()
11800 {
11801 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11802 int status = $lt_dlunknown;
11803
11804 if (self)
11805 {
11806 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11807 else
11808 {
11809 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11810 else puts (dlerror ());
11811 }
11812 /* dlclose (self); */
11813 }
11814 else
11815 puts (dlerror ());
11816
11817 return status;
11818 }
11819 _LT_EOF
11820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11821 (eval $ac_link) 2>&5
11822 ac_status=$?
11823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11824 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11825 (./conftest; exit; ) >&5 2>/dev/null
11826 lt_status=$?
11827 case x$lt_status in
11828 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11829 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11830 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11831 esac
11832 else :
11833 # compilation failed
11834 lt_cv_dlopen_self=no
11835 fi
11836 fi
11837 rm -fr conftest*
11838
11839
11840 fi
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11842 $as_echo "$lt_cv_dlopen_self" >&6; }
11843
11844 if test "x$lt_cv_dlopen_self" = xyes; then
11845 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11847 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11848 if ${lt_cv_dlopen_self_static+:} false; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851 if test "$cross_compiling" = yes; then :
11852 lt_cv_dlopen_self_static=cross
11853 else
11854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11855 lt_status=$lt_dlunknown
11856 cat > conftest.$ac_ext <<_LT_EOF
11857 #line $LINENO "configure"
11858 #include "confdefs.h"
11859
11860 #if HAVE_DLFCN_H
11861 #include <dlfcn.h>
11862 #endif
11863
11864 #include <stdio.h>
11865
11866 #ifdef RTLD_GLOBAL
11867 # define LT_DLGLOBAL RTLD_GLOBAL
11868 #else
11869 # ifdef DL_GLOBAL
11870 # define LT_DLGLOBAL DL_GLOBAL
11871 # else
11872 # define LT_DLGLOBAL 0
11873 # endif
11874 #endif
11875
11876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11877 find out it does not work in some platform. */
11878 #ifndef LT_DLLAZY_OR_NOW
11879 # ifdef RTLD_LAZY
11880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11881 # else
11882 # ifdef DL_LAZY
11883 # define LT_DLLAZY_OR_NOW DL_LAZY
11884 # else
11885 # ifdef RTLD_NOW
11886 # define LT_DLLAZY_OR_NOW RTLD_NOW
11887 # else
11888 # ifdef DL_NOW
11889 # define LT_DLLAZY_OR_NOW DL_NOW
11890 # else
11891 # define LT_DLLAZY_OR_NOW 0
11892 # endif
11893 # endif
11894 # endif
11895 # endif
11896 #endif
11897
11898 /* When -fvisbility=hidden is used, assume the code has been annotated
11899 correspondingly for the symbols needed. */
11900 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11901 int fnord () __attribute__((visibility("default")));
11902 #endif
11903
11904 int fnord () { return 42; }
11905 int main ()
11906 {
11907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11908 int status = $lt_dlunknown;
11909
11910 if (self)
11911 {
11912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11913 else
11914 {
11915 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11916 else puts (dlerror ());
11917 }
11918 /* dlclose (self); */
11919 }
11920 else
11921 puts (dlerror ());
11922
11923 return status;
11924 }
11925 _LT_EOF
11926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11927 (eval $ac_link) 2>&5
11928 ac_status=$?
11929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11930 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11931 (./conftest; exit; ) >&5 2>/dev/null
11932 lt_status=$?
11933 case x$lt_status in
11934 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11935 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11936 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11937 esac
11938 else :
11939 # compilation failed
11940 lt_cv_dlopen_self_static=no
11941 fi
11942 fi
11943 rm -fr conftest*
11944
11945
11946 fi
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11948 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11949 fi
11950
11951 CPPFLAGS="$save_CPPFLAGS"
11952 LDFLAGS="$save_LDFLAGS"
11953 LIBS="$save_LIBS"
11954 ;;
11955 esac
11956
11957 case $lt_cv_dlopen_self in
11958 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11959 *) enable_dlopen_self=unknown ;;
11960 esac
11961
11962 case $lt_cv_dlopen_self_static in
11963 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11964 *) enable_dlopen_self_static=unknown ;;
11965 esac
11966 fi
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984 striplib=
11985 old_striplib=
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11987 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11988 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11989 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11990 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992 $as_echo "yes" >&6; }
11993 else
11994 # FIXME - insert some real tests, host_os isn't really good enough
11995 case $host_os in
11996 darwin*)
11997 if test -n "$STRIP" ; then
11998 striplib="$STRIP -x"
11999 old_striplib="$STRIP -S"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12001 $as_echo "yes" >&6; }
12002 else
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12005 fi
12006 ;;
12007 *)
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12010 ;;
12011 esac
12012 fi
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025 # Report which library types will actually be built
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12027 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12029 $as_echo "$can_build_shared" >&6; }
12030
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12032 $as_echo_n "checking whether to build shared libraries... " >&6; }
12033 test "$can_build_shared" = "no" && enable_shared=no
12034
12035 # On AIX, shared libraries and static libraries use the same namespace, and
12036 # are all built from PIC.
12037 case $host_os in
12038 aix3*)
12039 test "$enable_shared" = yes && enable_static=no
12040 if test -n "$RANLIB"; then
12041 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12042 postinstall_cmds='$RANLIB $lib'
12043 fi
12044 ;;
12045
12046 aix[4-9]*)
12047 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12048 test "$enable_shared" = yes && enable_static=no
12049 fi
12050 ;;
12051 esac
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12053 $as_echo "$enable_shared" >&6; }
12054
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12056 $as_echo_n "checking whether to build static libraries... " >&6; }
12057 # Make sure either enable_shared or enable_static is yes.
12058 test "$enable_shared" = yes || enable_static=yes
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12060 $as_echo "$enable_static" >&6; }
12061
12062
12063
12064
12065 fi
12066 ac_ext=c
12067 ac_cpp='$CPP $CPPFLAGS'
12068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12071
12072 CC="$lt_save_CC"
12073
12074 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12075 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12076 (test "X$CXX" != "Xg++"))) ; then
12077 ac_ext=cpp
12078 ac_cpp='$CXXCPP $CPPFLAGS'
12079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12083 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12084 if test -z "$CXXCPP"; then
12085 if ${ac_cv_prog_CXXCPP+:} false; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 # Double quotes because CXXCPP needs to be expanded
12089 for CXXCPP in "$CXX -E" "/lib/cpp"
12090 do
12091 ac_preproc_ok=false
12092 for ac_cxx_preproc_warn_flag in '' yes
12093 do
12094 # Use a header file that comes with gcc, so configuring glibc
12095 # with a fresh cross-compiler works.
12096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097 # <limits.h> exists even on freestanding compilers.
12098 # On the NeXT, cc -E runs the code through the compiler's parser,
12099 # not just through cpp. "Syntax error" is here to catch this case.
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 #ifdef __STDC__
12103 # include <limits.h>
12104 #else
12105 # include <assert.h>
12106 #endif
12107 Syntax error
12108 _ACEOF
12109 if ac_fn_cxx_try_cpp "$LINENO"; then :
12110
12111 else
12112 # Broken: fails on valid input.
12113 continue
12114 fi
12115 rm -f conftest.err conftest.i conftest.$ac_ext
12116
12117 # OK, works on sane cases. Now check whether nonexistent headers
12118 # can be detected and how.
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121 #include <ac_nonexistent.h>
12122 _ACEOF
12123 if ac_fn_cxx_try_cpp "$LINENO"; then :
12124 # Broken: success on invalid input.
12125 continue
12126 else
12127 # Passes both tests.
12128 ac_preproc_ok=:
12129 break
12130 fi
12131 rm -f conftest.err conftest.i conftest.$ac_ext
12132
12133 done
12134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12135 rm -f conftest.i conftest.err conftest.$ac_ext
12136 if $ac_preproc_ok; then :
12137 break
12138 fi
12139
12140 done
12141 ac_cv_prog_CXXCPP=$CXXCPP
12142
12143 fi
12144 CXXCPP=$ac_cv_prog_CXXCPP
12145 else
12146 ac_cv_prog_CXXCPP=$CXXCPP
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12149 $as_echo "$CXXCPP" >&6; }
12150 ac_preproc_ok=false
12151 for ac_cxx_preproc_warn_flag in '' yes
12152 do
12153 # Use a header file that comes with gcc, so configuring glibc
12154 # with a fresh cross-compiler works.
12155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12156 # <limits.h> exists even on freestanding compilers.
12157 # On the NeXT, cc -E runs the code through the compiler's parser,
12158 # not just through cpp. "Syntax error" is here to catch this case.
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12161 #ifdef __STDC__
12162 # include <limits.h>
12163 #else
12164 # include <assert.h>
12165 #endif
12166 Syntax error
12167 _ACEOF
12168 if ac_fn_cxx_try_cpp "$LINENO"; then :
12169
12170 else
12171 # Broken: fails on valid input.
12172 continue
12173 fi
12174 rm -f conftest.err conftest.i conftest.$ac_ext
12175
12176 # OK, works on sane cases. Now check whether nonexistent headers
12177 # can be detected and how.
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12180 #include <ac_nonexistent.h>
12181 _ACEOF
12182 if ac_fn_cxx_try_cpp "$LINENO"; then :
12183 # Broken: success on invalid input.
12184 continue
12185 else
12186 # Passes both tests.
12187 ac_preproc_ok=:
12188 break
12189 fi
12190 rm -f conftest.err conftest.i conftest.$ac_ext
12191
12192 done
12193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12194 rm -f conftest.i conftest.err conftest.$ac_ext
12195 if $ac_preproc_ok; then :
12196
12197 else
12198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12200 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12201 See \`config.log' for more details" "$LINENO" 5; }
12202 fi
12203
12204 ac_ext=c
12205 ac_cpp='$CPP $CPPFLAGS'
12206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12209
12210 else
12211 _lt_caught_CXX_error=yes
12212 fi
12213
12214 ac_ext=cpp
12215 ac_cpp='$CXXCPP $CPPFLAGS'
12216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12219
12220 archive_cmds_need_lc_CXX=no
12221 allow_undefined_flag_CXX=
12222 always_export_symbols_CXX=no
12223 archive_expsym_cmds_CXX=
12224 compiler_needs_object_CXX=no
12225 export_dynamic_flag_spec_CXX=
12226 hardcode_direct_CXX=no
12227 hardcode_direct_absolute_CXX=no
12228 hardcode_libdir_flag_spec_CXX=
12229 hardcode_libdir_separator_CXX=
12230 hardcode_minus_L_CXX=no
12231 hardcode_shlibpath_var_CXX=unsupported
12232 hardcode_automatic_CXX=no
12233 inherit_rpath_CXX=no
12234 module_cmds_CXX=
12235 module_expsym_cmds_CXX=
12236 link_all_deplibs_CXX=unknown
12237 old_archive_cmds_CXX=$old_archive_cmds
12238 reload_flag_CXX=$reload_flag
12239 reload_cmds_CXX=$reload_cmds
12240 no_undefined_flag_CXX=
12241 whole_archive_flag_spec_CXX=
12242 enable_shared_with_static_runtimes_CXX=no
12243
12244 # Source file extension for C++ test sources.
12245 ac_ext=cpp
12246
12247 # Object file extension for compiled C++ test sources.
12248 objext=o
12249 objext_CXX=$objext
12250
12251 # No sense in running all these tests if we already determined that
12252 # the CXX compiler isn't working. Some variables (like enable_shared)
12253 # are currently assumed to apply to all compilers on this platform,
12254 # and will be corrupted by setting them based on a non-working compiler.
12255 if test "$_lt_caught_CXX_error" != yes; then
12256 # Code to be used in simple compile tests
12257 lt_simple_compile_test_code="int some_variable = 0;"
12258
12259 # Code to be used in simple link tests
12260 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12261
12262 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12263
12264
12265
12266
12267
12268
12269 # If no C compiler was specified, use CC.
12270 LTCC=${LTCC-"$CC"}
12271
12272 # If no C compiler flags were specified, use CFLAGS.
12273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12274
12275 # Allow CC to be a program name with arguments.
12276 compiler=$CC
12277
12278
12279 # save warnings/boilerplate of simple test code
12280 ac_outfile=conftest.$ac_objext
12281 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12282 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12283 _lt_compiler_boilerplate=`cat conftest.err`
12284 $RM conftest*
12285
12286 ac_outfile=conftest.$ac_objext
12287 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12288 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12289 _lt_linker_boilerplate=`cat conftest.err`
12290 $RM -r conftest*
12291
12292
12293 # Allow CC to be a program name with arguments.
12294 lt_save_CC=$CC
12295 lt_save_CFLAGS=$CFLAGS
12296 lt_save_LD=$LD
12297 lt_save_GCC=$GCC
12298 GCC=$GXX
12299 lt_save_with_gnu_ld=$with_gnu_ld
12300 lt_save_path_LD=$lt_cv_path_LD
12301 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12302 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12303 else
12304 $as_unset lt_cv_prog_gnu_ld
12305 fi
12306 if test -n "${lt_cv_path_LDCXX+set}"; then
12307 lt_cv_path_LD=$lt_cv_path_LDCXX
12308 else
12309 $as_unset lt_cv_path_LD
12310 fi
12311 test -z "${LDCXX+set}" || LD=$LDCXX
12312 CC=${CXX-"c++"}
12313 CFLAGS=$CXXFLAGS
12314 compiler=$CC
12315 compiler_CXX=$CC
12316 for cc_temp in $compiler""; do
12317 case $cc_temp in
12318 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12319 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12320 \-*) ;;
12321 *) break;;
12322 esac
12323 done
12324 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12325
12326
12327 if test -n "$compiler"; then
12328 # We don't want -fno-exception when compiling C++ code, so set the
12329 # no_builtin_flag separately
12330 if test "$GXX" = yes; then
12331 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12332 else
12333 lt_prog_compiler_no_builtin_flag_CXX=
12334 fi
12335
12336 if test "$GXX" = yes; then
12337 # Set up default GNU C++ configuration
12338
12339
12340
12341 # Check whether --with-gnu-ld was given.
12342 if test "${with_gnu_ld+set}" = set; then :
12343 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12344 else
12345 with_gnu_ld=no
12346 fi
12347
12348 ac_prog=ld
12349 if test "$GCC" = yes; then
12350 # Check if gcc -print-prog-name=ld gives a path.
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12352 $as_echo_n "checking for ld used by $CC... " >&6; }
12353 case $host in
12354 *-*-mingw*)
12355 # gcc leaves a trailing carriage return which upsets mingw
12356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12357 *)
12358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12359 esac
12360 case $ac_prog in
12361 # Accept absolute paths.
12362 [\\/]* | ?:[\\/]*)
12363 re_direlt='/[^/][^/]*/\.\./'
12364 # Canonicalize the pathname of ld
12365 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12366 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12367 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12368 done
12369 test -z "$LD" && LD="$ac_prog"
12370 ;;
12371 "")
12372 # If it fails, then pretend we aren't using GCC.
12373 ac_prog=ld
12374 ;;
12375 *)
12376 # If it is relative, then search for the first ld in PATH.
12377 with_gnu_ld=unknown
12378 ;;
12379 esac
12380 elif test "$with_gnu_ld" = yes; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12382 $as_echo_n "checking for GNU ld... " >&6; }
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12385 $as_echo_n "checking for non-GNU ld... " >&6; }
12386 fi
12387 if ${lt_cv_path_LD+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 if test -z "$LD"; then
12391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12392 for ac_dir in $PATH; do
12393 IFS="$lt_save_ifs"
12394 test -z "$ac_dir" && ac_dir=.
12395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12396 lt_cv_path_LD="$ac_dir/$ac_prog"
12397 # Check to see if the program is GNU ld. I'd rather use --version,
12398 # but apparently some variants of GNU ld only accept -v.
12399 # Break only if it was the GNU/non-GNU ld that we prefer.
12400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12401 *GNU* | *'with BFD'*)
12402 test "$with_gnu_ld" != no && break
12403 ;;
12404 *)
12405 test "$with_gnu_ld" != yes && break
12406 ;;
12407 esac
12408 fi
12409 done
12410 IFS="$lt_save_ifs"
12411 else
12412 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12413 fi
12414 fi
12415
12416 LD="$lt_cv_path_LD"
12417 if test -n "$LD"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12419 $as_echo "$LD" >&6; }
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12423 fi
12424 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12426 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12427 if ${lt_cv_prog_gnu_ld+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12431 case `$LD -v 2>&1 </dev/null` in
12432 *GNU* | *'with BFD'*)
12433 lt_cv_prog_gnu_ld=yes
12434 ;;
12435 *)
12436 lt_cv_prog_gnu_ld=no
12437 ;;
12438 esac
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12441 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12442 with_gnu_ld=$lt_cv_prog_gnu_ld
12443
12444
12445
12446
12447
12448
12449
12450 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12451 # archiving commands below assume that GNU ld is being used.
12452 if test "$with_gnu_ld" = yes; then
12453 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12454 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'
12455
12456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12458
12459 # If archive_cmds runs LD, not CC, wlarc should be empty
12460 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12461 # investigate it a little bit more. (MM)
12462 wlarc='${wl}'
12463
12464 # ancient GNU ld didn't support --whole-archive et. al.
12465 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12466 $GREP 'no-whole-archive' > /dev/null; then
12467 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12468 else
12469 whole_archive_flag_spec_CXX=
12470 fi
12471 else
12472 with_gnu_ld=no
12473 wlarc=
12474
12475 # A generic and very simple default shared library creation
12476 # command for GNU C++ for the case where it uses the native
12477 # linker, instead of GNU ld. If possible, this setting should
12478 # overridden to take advantage of the native linker features on
12479 # the platform it is being used on.
12480 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12481 fi
12482
12483 # Commands to make compiler produce verbose output that lists
12484 # what "hidden" libraries, object files and flags are used when
12485 # linking a shared library.
12486 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12487
12488 else
12489 GXX=no
12490 with_gnu_ld=no
12491 wlarc=
12492 fi
12493
12494 # PORTME: fill in a description of your system's C++ link characteristics
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12496 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12497 ld_shlibs_CXX=yes
12498 case $host_os in
12499 aix3*)
12500 # FIXME: insert proper C++ library support
12501 ld_shlibs_CXX=no
12502 ;;
12503 aix[4-9]*)
12504 if test "$host_cpu" = ia64; then
12505 # On IA64, the linker does run time linking by default, so we don't
12506 # have to do anything special.
12507 aix_use_runtimelinking=no
12508 exp_sym_flag='-Bexport'
12509 no_entry_flag=""
12510 else
12511 aix_use_runtimelinking=no
12512
12513 # Test if we are trying to use run time linking or normal
12514 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12515 # need to do runtime linking.
12516 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12517 for ld_flag in $LDFLAGS; do
12518 case $ld_flag in
12519 *-brtl*)
12520 aix_use_runtimelinking=yes
12521 break
12522 ;;
12523 esac
12524 done
12525 ;;
12526 esac
12527
12528 exp_sym_flag='-bexport'
12529 no_entry_flag='-bnoentry'
12530 fi
12531
12532 # When large executables or shared objects are built, AIX ld can
12533 # have problems creating the table of contents. If linking a library
12534 # or program results in "error TOC overflow" add -mminimal-toc to
12535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12537
12538 archive_cmds_CXX=''
12539 hardcode_direct_CXX=yes
12540 hardcode_direct_absolute_CXX=yes
12541 hardcode_libdir_separator_CXX=':'
12542 link_all_deplibs_CXX=yes
12543 file_list_spec_CXX='${wl}-f,'
12544
12545 if test "$GXX" = yes; then
12546 case $host_os in aix4.[012]|aix4.[012].*)
12547 # We only want to do this on AIX 4.2 and lower, the check
12548 # below for broken collect2 doesn't work under 4.3+
12549 collect2name=`${CC} -print-prog-name=collect2`
12550 if test -f "$collect2name" &&
12551 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12552 then
12553 # We have reworked collect2
12554 :
12555 else
12556 # We have old collect2
12557 hardcode_direct_CXX=unsupported
12558 # It fails to find uninstalled libraries when the uninstalled
12559 # path is not listed in the libpath. Setting hardcode_minus_L
12560 # to unsupported forces relinking
12561 hardcode_minus_L_CXX=yes
12562 hardcode_libdir_flag_spec_CXX='-L$libdir'
12563 hardcode_libdir_separator_CXX=
12564 fi
12565 esac
12566 shared_flag='-shared'
12567 if test "$aix_use_runtimelinking" = yes; then
12568 shared_flag="$shared_flag "'${wl}-G'
12569 fi
12570 else
12571 # not using gcc
12572 if test "$host_cpu" = ia64; then
12573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12574 # chokes on -Wl,-G. The following line is correct:
12575 shared_flag='-G'
12576 else
12577 if test "$aix_use_runtimelinking" = yes; then
12578 shared_flag='${wl}-G'
12579 else
12580 shared_flag='${wl}-bM:SRE'
12581 fi
12582 fi
12583 fi
12584
12585 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12586 # It seems that -bexpall does not export symbols beginning with
12587 # underscore (_), so it is better to generate a list of symbols to
12588 # export.
12589 always_export_symbols_CXX=yes
12590 if test "$aix_use_runtimelinking" = yes; then
12591 # Warning - without using the other runtime loading flags (-brtl),
12592 # -berok will link without error, but may produce a broken library.
12593 allow_undefined_flag_CXX='-berok'
12594 # Determine the default libpath from the value encoded in an empty
12595 # executable.
12596 if test "${lt_cv_aix_libpath+set}" = set; then
12597 aix_libpath=$lt_cv_aix_libpath
12598 else
12599 if ${lt_cv_aix_libpath__CXX+:} false; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12604
12605 int
12606 main ()
12607 {
12608
12609 ;
12610 return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_cxx_try_link "$LINENO"; then :
12614
12615 lt_aix_libpath_sed='
12616 /Import File Strings/,/^$/ {
12617 /^0/ {
12618 s/^0 *\([^ ]*\) *$/\1/
12619 p
12620 }
12621 }'
12622 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12623 # Check for a 64-bit object if we didn't find anything.
12624 if test -z "$lt_cv_aix_libpath__CXX"; then
12625 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12626 fi
12627 fi
12628 rm -f core conftest.err conftest.$ac_objext \
12629 conftest$ac_exeext conftest.$ac_ext
12630 if test -z "$lt_cv_aix_libpath__CXX"; then
12631 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12632 fi
12633
12634 fi
12635
12636 aix_libpath=$lt_cv_aix_libpath__CXX
12637 fi
12638
12639 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12640
12641 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12642 else
12643 if test "$host_cpu" = ia64; then
12644 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12645 allow_undefined_flag_CXX="-z nodefs"
12646 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"
12647 else
12648 # Determine the default libpath from the value encoded in an
12649 # empty executable.
12650 if test "${lt_cv_aix_libpath+set}" = set; then
12651 aix_libpath=$lt_cv_aix_libpath
12652 else
12653 if ${lt_cv_aix_libpath__CXX+:} false; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658
12659 int
12660 main ()
12661 {
12662
12663 ;
12664 return 0;
12665 }
12666 _ACEOF
12667 if ac_fn_cxx_try_link "$LINENO"; then :
12668
12669 lt_aix_libpath_sed='
12670 /Import File Strings/,/^$/ {
12671 /^0/ {
12672 s/^0 *\([^ ]*\) *$/\1/
12673 p
12674 }
12675 }'
12676 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12677 # Check for a 64-bit object if we didn't find anything.
12678 if test -z "$lt_cv_aix_libpath__CXX"; then
12679 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12680 fi
12681 fi
12682 rm -f core conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext conftest.$ac_ext
12684 if test -z "$lt_cv_aix_libpath__CXX"; then
12685 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12686 fi
12687
12688 fi
12689
12690 aix_libpath=$lt_cv_aix_libpath__CXX
12691 fi
12692
12693 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12694 # Warning - without using the other run time loading flags,
12695 # -berok will link without error, but may produce a broken library.
12696 no_undefined_flag_CXX=' ${wl}-bernotok'
12697 allow_undefined_flag_CXX=' ${wl}-berok'
12698 if test "$with_gnu_ld" = yes; then
12699 # We only use this code for GNU lds that support --whole-archive.
12700 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12701 else
12702 # Exported symbols can be pulled into shared objects from archives
12703 whole_archive_flag_spec_CXX='$convenience'
12704 fi
12705 archive_cmds_need_lc_CXX=yes
12706 # This is similar to how AIX traditionally builds its shared
12707 # libraries.
12708 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12709 fi
12710 fi
12711 ;;
12712
12713 beos*)
12714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12715 allow_undefined_flag_CXX=unsupported
12716 # Joseph Beckenbach <[email protected]> says some releases of gcc
12717 # support --undefined. This deserves some investigation. FIXME
12718 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12719 else
12720 ld_shlibs_CXX=no
12721 fi
12722 ;;
12723
12724 chorus*)
12725 case $cc_basename in
12726 *)
12727 # FIXME: insert proper C++ library support
12728 ld_shlibs_CXX=no
12729 ;;
12730 esac
12731 ;;
12732
12733 cygwin* | mingw* | pw32* | cegcc*)
12734 case $GXX,$cc_basename in
12735 ,cl* | no,cl*)
12736 # Native MSVC
12737 # hardcode_libdir_flag_spec is actually meaningless, as there is
12738 # no search path for DLLs.
12739 hardcode_libdir_flag_spec_CXX=' '
12740 allow_undefined_flag_CXX=unsupported
12741 always_export_symbols_CXX=yes
12742 file_list_spec_CXX='@'
12743 # Tell ltmain to make .lib files, not .a files.
12744 libext=lib
12745 # Tell ltmain to make .dll files, not .so files.
12746 shrext_cmds=".dll"
12747 # FIXME: Setting linknames here is a bad hack.
12748 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12749 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12750 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12751 else
12752 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12753 fi~
12754 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12755 linknames='
12756 # The linker will not automatically build a static lib if we build a DLL.
12757 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12758 enable_shared_with_static_runtimes_CXX=yes
12759 # Don't use ranlib
12760 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12761 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12762 lt_tool_outputfile="@TOOL_OUTPUT@"~
12763 case $lt_outputfile in
12764 *.exe|*.EXE) ;;
12765 *)
12766 lt_outputfile="$lt_outputfile.exe"
12767 lt_tool_outputfile="$lt_tool_outputfile.exe"
12768 ;;
12769 esac~
12770 func_to_tool_file "$lt_outputfile"~
12771 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12772 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12773 $RM "$lt_outputfile.manifest";
12774 fi'
12775 ;;
12776 *)
12777 # g++
12778 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12779 # as there is no search path for DLLs.
12780 hardcode_libdir_flag_spec_CXX='-L$libdir'
12781 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12782 allow_undefined_flag_CXX=unsupported
12783 always_export_symbols_CXX=no
12784 enable_shared_with_static_runtimes_CXX=yes
12785
12786 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12787 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'
12788 # If the export-symbols file already is a .def file (1st line
12789 # is EXPORTS), use it as is; otherwise, prepend...
12790 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12791 cp $export_symbols $output_objdir/$soname.def;
12792 else
12793 echo EXPORTS > $output_objdir/$soname.def;
12794 cat $export_symbols >> $output_objdir/$soname.def;
12795 fi~
12796 $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'
12797 else
12798 ld_shlibs_CXX=no
12799 fi
12800 ;;
12801 esac
12802 ;;
12803 darwin* | rhapsody*)
12804
12805
12806 archive_cmds_need_lc_CXX=no
12807 hardcode_direct_CXX=no
12808 hardcode_automatic_CXX=yes
12809 hardcode_shlibpath_var_CXX=unsupported
12810 if test "$lt_cv_ld_force_load" = "yes"; then
12811 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\"`'
12812
12813 else
12814 whole_archive_flag_spec_CXX=''
12815 fi
12816 link_all_deplibs_CXX=yes
12817 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12818 case $cc_basename in
12819 ifort*) _lt_dar_can_shared=yes ;;
12820 *) _lt_dar_can_shared=$GCC ;;
12821 esac
12822 if test "$_lt_dar_can_shared" = "yes"; then
12823 output_verbose_link_cmd=func_echo_all
12824 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}"
12825 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12826 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}"
12827 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}"
12828 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12829 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}"
12830 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}"
12831 fi
12832
12833 else
12834 ld_shlibs_CXX=no
12835 fi
12836
12837 ;;
12838
12839 dgux*)
12840 case $cc_basename in
12841 ec++*)
12842 # FIXME: insert proper C++ library support
12843 ld_shlibs_CXX=no
12844 ;;
12845 ghcx*)
12846 # Green Hills C++ Compiler
12847 # FIXME: insert proper C++ library support
12848 ld_shlibs_CXX=no
12849 ;;
12850 *)
12851 # FIXME: insert proper C++ library support
12852 ld_shlibs_CXX=no
12853 ;;
12854 esac
12855 ;;
12856
12857 freebsd2.*)
12858 # C++ shared libraries reported to be fairly broken before
12859 # switch to ELF
12860 ld_shlibs_CXX=no
12861 ;;
12862
12863 freebsd-elf*)
12864 archive_cmds_need_lc_CXX=no
12865 ;;
12866
12867 freebsd* | dragonfly*)
12868 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12869 # conventions
12870 ld_shlibs_CXX=yes
12871 ;;
12872
12873 gnu*)
12874 ;;
12875
12876 haiku*)
12877 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12878 link_all_deplibs_CXX=yes
12879 ;;
12880
12881 hpux9*)
12882 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12883 hardcode_libdir_separator_CXX=:
12884 export_dynamic_flag_spec_CXX='${wl}-E'
12885 hardcode_direct_CXX=yes
12886 hardcode_minus_L_CXX=yes # Not in the search PATH,
12887 # but as the default
12888 # location of the library.
12889
12890 case $cc_basename in
12891 CC*)
12892 # FIXME: insert proper C++ library support
12893 ld_shlibs_CXX=no
12894 ;;
12895 aCC*)
12896 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12897 # Commands to make compiler produce verbose output that lists
12898 # what "hidden" libraries, object files and flags are used when
12899 # linking a shared library.
12900 #
12901 # There doesn't appear to be a way to prevent this compiler from
12902 # explicitly linking system object files so we need to strip them
12903 # from the output so that they don't get included in the library
12904 # dependencies.
12905 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"'
12906 ;;
12907 *)
12908 if test "$GXX" = yes; then
12909 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12910 else
12911 # FIXME: insert proper C++ library support
12912 ld_shlibs_CXX=no
12913 fi
12914 ;;
12915 esac
12916 ;;
12917
12918 hpux10*|hpux11*)
12919 if test $with_gnu_ld = no; then
12920 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12921 hardcode_libdir_separator_CXX=:
12922
12923 case $host_cpu in
12924 hppa*64*|ia64*)
12925 ;;
12926 *)
12927 export_dynamic_flag_spec_CXX='${wl}-E'
12928 ;;
12929 esac
12930 fi
12931 case $host_cpu in
12932 hppa*64*|ia64*)
12933 hardcode_direct_CXX=no
12934 hardcode_shlibpath_var_CXX=no
12935 ;;
12936 *)
12937 hardcode_direct_CXX=yes
12938 hardcode_direct_absolute_CXX=yes
12939 hardcode_minus_L_CXX=yes # Not in the search PATH,
12940 # but as the default
12941 # location of the library.
12942 ;;
12943 esac
12944
12945 case $cc_basename in
12946 CC*)
12947 # FIXME: insert proper C++ library support
12948 ld_shlibs_CXX=no
12949 ;;
12950 aCC*)
12951 case $host_cpu in
12952 hppa*64*)
12953 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12954 ;;
12955 ia64*)
12956 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12957 ;;
12958 *)
12959 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12960 ;;
12961 esac
12962 # Commands to make compiler produce verbose output that lists
12963 # what "hidden" libraries, object files and flags are used when
12964 # linking a shared library.
12965 #
12966 # There doesn't appear to be a way to prevent this compiler from
12967 # explicitly linking system object files so we need to strip them
12968 # from the output so that they don't get included in the library
12969 # dependencies.
12970 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"'
12971 ;;
12972 *)
12973 if test "$GXX" = yes; then
12974 if test $with_gnu_ld = no; then
12975 case $host_cpu in
12976 hppa*64*)
12977 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12978 ;;
12979 ia64*)
12980 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12981 ;;
12982 *)
12983 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'
12984 ;;
12985 esac
12986 fi
12987 else
12988 # FIXME: insert proper C++ library support
12989 ld_shlibs_CXX=no
12990 fi
12991 ;;
12992 esac
12993 ;;
12994
12995 interix[3-9]*)
12996 hardcode_direct_CXX=no
12997 hardcode_shlibpath_var_CXX=no
12998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12999 export_dynamic_flag_spec_CXX='${wl}-E'
13000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13001 # Instead, shared libraries are loaded at an image base (0x10000000 by
13002 # default) and relocated if they conflict, which is a slow very memory
13003 # consuming and fragmenting process. To avoid this, we pick a random,
13004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13006 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'
13007 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'
13008 ;;
13009 irix5* | irix6*)
13010 case $cc_basename in
13011 CC*)
13012 # SGI C++
13013 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'
13014
13015 # Archives containing C++ object files must be created using
13016 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13017 # necessary to make sure instantiated templates are included
13018 # in the archive.
13019 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13020 ;;
13021 *)
13022 if test "$GXX" = yes; then
13023 if test "$with_gnu_ld" = no; then
13024 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'
13025 else
13026 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'
13027 fi
13028 fi
13029 link_all_deplibs_CXX=yes
13030 ;;
13031 esac
13032 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13033 hardcode_libdir_separator_CXX=:
13034 inherit_rpath_CXX=yes
13035 ;;
13036
13037 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13038 case $cc_basename in
13039 KCC*)
13040 # Kuck and Associates, Inc. (KAI) C++ Compiler
13041
13042 # KCC will only create a shared library if the output file
13043 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13044 # to its proper name (with version) after linking.
13045 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'
13046 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'
13047 # Commands to make compiler produce verbose output that lists
13048 # what "hidden" libraries, object files and flags are used when
13049 # linking a shared library.
13050 #
13051 # There doesn't appear to be a way to prevent this compiler from
13052 # explicitly linking system object files so we need to strip them
13053 # from the output so that they don't get included in the library
13054 # dependencies.
13055 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"'
13056
13057 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13058 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13059
13060 # Archives containing C++ object files must be created using
13061 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13062 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13063 ;;
13064 icpc* | ecpc* )
13065 # Intel C++
13066 with_gnu_ld=yes
13067 # version 8.0 and above of icpc choke on multiply defined symbols
13068 # if we add $predep_objects and $postdep_objects, however 7.1 and
13069 # earlier do not add the objects themselves.
13070 case `$CC -V 2>&1` in
13071 *"Version 7."*)
13072 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13073 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'
13074 ;;
13075 *) # Version 8.0 or newer
13076 tmp_idyn=
13077 case $host_cpu in
13078 ia64*) tmp_idyn=' -i_dynamic';;
13079 esac
13080 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13081 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'
13082 ;;
13083 esac
13084 archive_cmds_need_lc_CXX=no
13085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13087 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13088 ;;
13089 pgCC* | pgcpp*)
13090 # Portland Group C++ compiler
13091 case `$CC -V` in
13092 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13093 prelink_cmds_CXX='tpldir=Template.dir~
13094 rm -rf $tpldir~
13095 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13096 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13097 old_archive_cmds_CXX='tpldir=Template.dir~
13098 rm -rf $tpldir~
13099 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13100 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13101 $RANLIB $oldlib'
13102 archive_cmds_CXX='tpldir=Template.dir~
13103 rm -rf $tpldir~
13104 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13105 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13106 archive_expsym_cmds_CXX='tpldir=Template.dir~
13107 rm -rf $tpldir~
13108 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13109 $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'
13110 ;;
13111 *) # Version 6 and above use weak symbols
13112 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13113 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'
13114 ;;
13115 esac
13116
13117 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13119 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'
13120 ;;
13121 cxx*)
13122 # Compaq C++
13123 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13124 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'
13125
13126 runpath_var=LD_RUN_PATH
13127 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13128 hardcode_libdir_separator_CXX=:
13129
13130 # Commands to make compiler produce verbose output that lists
13131 # what "hidden" libraries, object files and flags are used when
13132 # linking a shared library.
13133 #
13134 # There doesn't appear to be a way to prevent this compiler from
13135 # explicitly linking system object files so we need to strip them
13136 # from the output so that they don't get included in the library
13137 # dependencies.
13138 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'
13139 ;;
13140 xl* | mpixl* | bgxl*)
13141 # IBM XL 8.0 on PPC, with GNU ld
13142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13143 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13144 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13145 if test "x$supports_anon_versioning" = xyes; then
13146 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13148 echo "local: *; };" >> $output_objdir/$libname.ver~
13149 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13150 fi
13151 ;;
13152 *)
13153 case `$CC -V 2>&1 | sed 5q` in
13154 *Sun\ C*)
13155 # Sun C++ 5.9
13156 no_undefined_flag_CXX=' -zdefs'
13157 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13158 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'
13159 hardcode_libdir_flag_spec_CXX='-R$libdir'
13160 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'
13161 compiler_needs_object_CXX=yes
13162
13163 # Not sure whether something based on
13164 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13165 # would be better.
13166 output_verbose_link_cmd='func_echo_all'
13167
13168 # Archives containing C++ object files must be created using
13169 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13170 # necessary to make sure instantiated templates are included
13171 # in the archive.
13172 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13173 ;;
13174 esac
13175 ;;
13176 esac
13177 ;;
13178
13179 lynxos*)
13180 # FIXME: insert proper C++ library support
13181 ld_shlibs_CXX=no
13182 ;;
13183
13184 m88k*)
13185 # FIXME: insert proper C++ library support
13186 ld_shlibs_CXX=no
13187 ;;
13188
13189 mvs*)
13190 case $cc_basename in
13191 cxx*)
13192 # FIXME: insert proper C++ library support
13193 ld_shlibs_CXX=no
13194 ;;
13195 *)
13196 # FIXME: insert proper C++ library support
13197 ld_shlibs_CXX=no
13198 ;;
13199 esac
13200 ;;
13201
13202 netbsd*)
13203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13204 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13205 wlarc=
13206 hardcode_libdir_flag_spec_CXX='-R$libdir'
13207 hardcode_direct_CXX=yes
13208 hardcode_shlibpath_var_CXX=no
13209 fi
13210 # Workaround some broken pre-1.5 toolchains
13211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13212 ;;
13213
13214 *nto* | *qnx*)
13215 ld_shlibs_CXX=yes
13216 ;;
13217
13218 openbsd2*)
13219 # C++ shared libraries are fairly broken
13220 ld_shlibs_CXX=no
13221 ;;
13222
13223 openbsd*)
13224 if test -f /usr/libexec/ld.so; then
13225 hardcode_direct_CXX=yes
13226 hardcode_shlibpath_var_CXX=no
13227 hardcode_direct_absolute_CXX=yes
13228 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13231 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13232 export_dynamic_flag_spec_CXX='${wl}-E'
13233 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13234 fi
13235 output_verbose_link_cmd=func_echo_all
13236 else
13237 ld_shlibs_CXX=no
13238 fi
13239 ;;
13240
13241 osf3* | osf4* | osf5*)
13242 case $cc_basename in
13243 KCC*)
13244 # Kuck and Associates, Inc. (KAI) C++ Compiler
13245
13246 # KCC will only create a shared library if the output file
13247 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13248 # to its proper name (with version) after linking.
13249 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'
13250
13251 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13252 hardcode_libdir_separator_CXX=:
13253
13254 # Archives containing C++ object files must be created using
13255 # the KAI C++ compiler.
13256 case $host in
13257 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13258 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13259 esac
13260 ;;
13261 RCC*)
13262 # Rational C++ 2.4.1
13263 # FIXME: insert proper C++ library support
13264 ld_shlibs_CXX=no
13265 ;;
13266 cxx*)
13267 case $host in
13268 osf3*)
13269 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13270 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'
13271 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13272 ;;
13273 *)
13274 allow_undefined_flag_CXX=' -expect_unresolved \*'
13275 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'
13276 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13277 echo "-hidden">> $lib.exp~
13278 $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~
13279 $RM $lib.exp'
13280 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13281 ;;
13282 esac
13283
13284 hardcode_libdir_separator_CXX=:
13285
13286 # Commands to make compiler produce verbose output that lists
13287 # what "hidden" libraries, object files and flags are used when
13288 # linking a shared library.
13289 #
13290 # There doesn't appear to be a way to prevent this compiler from
13291 # explicitly linking system object files so we need to strip them
13292 # from the output so that they don't get included in the library
13293 # dependencies.
13294 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"'
13295 ;;
13296 *)
13297 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13298 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13299 case $host in
13300 osf3*)
13301 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'
13302 ;;
13303 *)
13304 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'
13305 ;;
13306 esac
13307
13308 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13309 hardcode_libdir_separator_CXX=:
13310
13311 # Commands to make compiler produce verbose output that lists
13312 # what "hidden" libraries, object files and flags are used when
13313 # linking a shared library.
13314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13315
13316 else
13317 # FIXME: insert proper C++ library support
13318 ld_shlibs_CXX=no
13319 fi
13320 ;;
13321 esac
13322 ;;
13323
13324 psos*)
13325 # FIXME: insert proper C++ library support
13326 ld_shlibs_CXX=no
13327 ;;
13328
13329 sunos4*)
13330 case $cc_basename in
13331 CC*)
13332 # Sun C++ 4.x
13333 # FIXME: insert proper C++ library support
13334 ld_shlibs_CXX=no
13335 ;;
13336 lcc*)
13337 # Lucid
13338 # FIXME: insert proper C++ library support
13339 ld_shlibs_CXX=no
13340 ;;
13341 *)
13342 # FIXME: insert proper C++ library support
13343 ld_shlibs_CXX=no
13344 ;;
13345 esac
13346 ;;
13347
13348 solaris*)
13349 case $cc_basename in
13350 CC* | sunCC*)
13351 # Sun C++ 4.2, 5.x and Centerline C++
13352 archive_cmds_need_lc_CXX=yes
13353 no_undefined_flag_CXX=' -zdefs'
13354 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13355 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13356 $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'
13357
13358 hardcode_libdir_flag_spec_CXX='-R$libdir'
13359 hardcode_shlibpath_var_CXX=no
13360 case $host_os in
13361 solaris2.[0-5] | solaris2.[0-5].*) ;;
13362 *)
13363 # The compiler driver will combine and reorder linker options,
13364 # but understands `-z linker_flag'.
13365 # Supported since Solaris 2.6 (maybe 2.5.1?)
13366 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13367 ;;
13368 esac
13369 link_all_deplibs_CXX=yes
13370
13371 output_verbose_link_cmd='func_echo_all'
13372
13373 # Archives containing C++ object files must be created using
13374 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13375 # necessary to make sure instantiated templates are included
13376 # in the archive.
13377 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13378 ;;
13379 gcx*)
13380 # Green Hills C++ Compiler
13381 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13382
13383 # The C++ compiler must be used to create the archive.
13384 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13385 ;;
13386 *)
13387 # GNU C++ compiler with Solaris linker
13388 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13389 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13390 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13391 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13392 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13393 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13394
13395 # Commands to make compiler produce verbose output that lists
13396 # what "hidden" libraries, object files and flags are used when
13397 # linking a shared library.
13398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13399 else
13400 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13401 # platform.
13402 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13403 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13404 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13405
13406 # Commands to make compiler produce verbose output that lists
13407 # what "hidden" libraries, object files and flags are used when
13408 # linking a shared library.
13409 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13410 fi
13411
13412 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13413 case $host_os in
13414 solaris2.[0-5] | solaris2.[0-5].*) ;;
13415 *)
13416 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13417 ;;
13418 esac
13419 fi
13420 ;;
13421 esac
13422 ;;
13423
13424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13425 no_undefined_flag_CXX='${wl}-z,text'
13426 archive_cmds_need_lc_CXX=no
13427 hardcode_shlibpath_var_CXX=no
13428 runpath_var='LD_RUN_PATH'
13429
13430 case $cc_basename in
13431 CC*)
13432 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13433 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13434 ;;
13435 *)
13436 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13437 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13438 ;;
13439 esac
13440 ;;
13441
13442 sysv5* | sco3.2v5* | sco5v6*)
13443 # Note: We can NOT use -z defs as we might desire, because we do not
13444 # link with -lc, and that would cause any symbols used from libc to
13445 # always be unresolved, which means just about no library would
13446 # ever link correctly. If we're not using GNU ld we use -z text
13447 # though, which does catch some bad symbols but isn't as heavy-handed
13448 # as -z defs.
13449 no_undefined_flag_CXX='${wl}-z,text'
13450 allow_undefined_flag_CXX='${wl}-z,nodefs'
13451 archive_cmds_need_lc_CXX=no
13452 hardcode_shlibpath_var_CXX=no
13453 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13454 hardcode_libdir_separator_CXX=':'
13455 link_all_deplibs_CXX=yes
13456 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13457 runpath_var='LD_RUN_PATH'
13458
13459 case $cc_basename in
13460 CC*)
13461 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13462 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13464 '"$old_archive_cmds_CXX"
13465 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13466 '"$reload_cmds_CXX"
13467 ;;
13468 *)
13469 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13470 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13471 ;;
13472 esac
13473 ;;
13474
13475 tandem*)
13476 case $cc_basename in
13477 NCC*)
13478 # NonStop-UX NCC 3.20
13479 # FIXME: insert proper C++ library support
13480 ld_shlibs_CXX=no
13481 ;;
13482 *)
13483 # FIXME: insert proper C++ library support
13484 ld_shlibs_CXX=no
13485 ;;
13486 esac
13487 ;;
13488
13489 vxworks*)
13490 # FIXME: insert proper C++ library support
13491 ld_shlibs_CXX=no
13492 ;;
13493
13494 *)
13495 # FIXME: insert proper C++ library support
13496 ld_shlibs_CXX=no
13497 ;;
13498 esac
13499
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13501 $as_echo "$ld_shlibs_CXX" >&6; }
13502 test "$ld_shlibs_CXX" = no && can_build_shared=no
13503
13504 GCC_CXX="$GXX"
13505 LD_CXX="$LD"
13506
13507 ## CAVEAT EMPTOR:
13508 ## There is no encapsulation within the following macros, do not change
13509 ## the running order or otherwise move them around unless you know exactly
13510 ## what you are doing...
13511 # Dependencies to place before and after the object being linked:
13512 predep_objects_CXX=
13513 postdep_objects_CXX=
13514 predeps_CXX=
13515 postdeps_CXX=
13516 compiler_lib_search_path_CXX=
13517
13518 cat > conftest.$ac_ext <<_LT_EOF
13519 class Foo
13520 {
13521 public:
13522 Foo (void) { a = 0; }
13523 private:
13524 int a;
13525 };
13526 _LT_EOF
13527
13528
13529 _lt_libdeps_save_CFLAGS=$CFLAGS
13530 case "$CC $CFLAGS " in #(
13531 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13532 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13533 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13534 esac
13535
13536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13537 (eval $ac_compile) 2>&5
13538 ac_status=$?
13539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13540 test $ac_status = 0; }; then
13541 # Parse the compiler output and extract the necessary
13542 # objects, libraries and library flags.
13543
13544 # Sentinel used to keep track of whether or not we are before
13545 # the conftest object file.
13546 pre_test_object_deps_done=no
13547
13548 for p in `eval "$output_verbose_link_cmd"`; do
13549 case ${prev}${p} in
13550
13551 -L* | -R* | -l*)
13552 # Some compilers place space between "-{L,R}" and the path.
13553 # Remove the space.
13554 if test $p = "-L" ||
13555 test $p = "-R"; then
13556 prev=$p
13557 continue
13558 fi
13559
13560 # Expand the sysroot to ease extracting the directories later.
13561 if test -z "$prev"; then
13562 case $p in
13563 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13564 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13565 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13566 esac
13567 fi
13568 case $p in
13569 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13570 esac
13571 if test "$pre_test_object_deps_done" = no; then
13572 case ${prev} in
13573 -L | -R)
13574 # Internal compiler library paths should come after those
13575 # provided the user. The postdeps already come after the
13576 # user supplied libs so there is no need to process them.
13577 if test -z "$compiler_lib_search_path_CXX"; then
13578 compiler_lib_search_path_CXX="${prev}${p}"
13579 else
13580 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13581 fi
13582 ;;
13583 # The "-l" case would never come before the object being
13584 # linked, so don't bother handling this case.
13585 esac
13586 else
13587 if test -z "$postdeps_CXX"; then
13588 postdeps_CXX="${prev}${p}"
13589 else
13590 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13591 fi
13592 fi
13593 prev=
13594 ;;
13595
13596 *.lto.$objext) ;; # Ignore GCC LTO objects
13597 *.$objext)
13598 # This assumes that the test object file only shows up
13599 # once in the compiler output.
13600 if test "$p" = "conftest.$objext"; then
13601 pre_test_object_deps_done=yes
13602 continue
13603 fi
13604
13605 if test "$pre_test_object_deps_done" = no; then
13606 if test -z "$predep_objects_CXX"; then
13607 predep_objects_CXX="$p"
13608 else
13609 predep_objects_CXX="$predep_objects_CXX $p"
13610 fi
13611 else
13612 if test -z "$postdep_objects_CXX"; then
13613 postdep_objects_CXX="$p"
13614 else
13615 postdep_objects_CXX="$postdep_objects_CXX $p"
13616 fi
13617 fi
13618 ;;
13619
13620 *) ;; # Ignore the rest.
13621
13622 esac
13623 done
13624
13625 # Clean up.
13626 rm -f a.out a.exe
13627 else
13628 echo "libtool.m4: error: problem compiling CXX test program"
13629 fi
13630
13631 $RM -f confest.$objext
13632 CFLAGS=$_lt_libdeps_save_CFLAGS
13633
13634 # PORTME: override above test on systems where it is broken
13635 case $host_os in
13636 interix[3-9]*)
13637 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13638 # hack all around it, let's just trust "g++" to DTRT.
13639 predep_objects_CXX=
13640 postdep_objects_CXX=
13641 postdeps_CXX=
13642 ;;
13643
13644 linux*)
13645 case `$CC -V 2>&1 | sed 5q` in
13646 *Sun\ C*)
13647 # Sun C++ 5.9
13648
13649 # The more standards-conforming stlport4 library is
13650 # incompatible with the Cstd library. Avoid specifying
13651 # it if it's in CXXFLAGS. Ignore libCrun as
13652 # -library=stlport4 depends on it.
13653 case " $CXX $CXXFLAGS " in
13654 *" -library=stlport4 "*)
13655 solaris_use_stlport4=yes
13656 ;;
13657 esac
13658
13659 if test "$solaris_use_stlport4" != yes; then
13660 postdeps_CXX='-library=Cstd -library=Crun'
13661 fi
13662 ;;
13663 esac
13664 ;;
13665
13666 solaris*)
13667 case $cc_basename in
13668 CC* | sunCC*)
13669 # The more standards-conforming stlport4 library is
13670 # incompatible with the Cstd library. Avoid specifying
13671 # it if it's in CXXFLAGS. Ignore libCrun as
13672 # -library=stlport4 depends on it.
13673 case " $CXX $CXXFLAGS " in
13674 *" -library=stlport4 "*)
13675 solaris_use_stlport4=yes
13676 ;;
13677 esac
13678
13679 # Adding this requires a known-good setup of shared libraries for
13680 # Sun compiler versions before 5.6, else PIC objects from an old
13681 # archive will be linked into the output, leading to subtle bugs.
13682 if test "$solaris_use_stlport4" != yes; then
13683 postdeps_CXX='-library=Cstd -library=Crun'
13684 fi
13685 ;;
13686 esac
13687 ;;
13688 esac
13689
13690
13691 case " $postdeps_CXX " in
13692 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13693 esac
13694 compiler_lib_search_dirs_CXX=
13695 if test -n "${compiler_lib_search_path_CXX}"; then
13696 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13697 fi
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729 lt_prog_compiler_wl_CXX=
13730 lt_prog_compiler_pic_CXX=
13731 lt_prog_compiler_static_CXX=
13732
13733
13734 # C++ specific cases for pic, static, wl, etc.
13735 if test "$GXX" = yes; then
13736 lt_prog_compiler_wl_CXX='-Wl,'
13737 lt_prog_compiler_static_CXX='-static'
13738
13739 case $host_os in
13740 aix*)
13741 # All AIX code is PIC.
13742 if test "$host_cpu" = ia64; then
13743 # AIX 5 now supports IA64 processor
13744 lt_prog_compiler_static_CXX='-Bstatic'
13745 fi
13746 ;;
13747
13748 amigaos*)
13749 case $host_cpu in
13750 powerpc)
13751 # see comment about AmigaOS4 .so support
13752 lt_prog_compiler_pic_CXX='-fPIC'
13753 ;;
13754 m68k)
13755 # FIXME: we need at least 68020 code to build shared libraries, but
13756 # adding the `-m68020' flag to GCC prevents building anything better,
13757 # like `-m68040'.
13758 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13759 ;;
13760 esac
13761 ;;
13762
13763 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13764 # PIC is the default for these OSes.
13765 ;;
13766 mingw* | cygwin* | os2* | pw32* | cegcc*)
13767 # This hack is so that the source file can tell whether it is being
13768 # built for inclusion in a dll (and should export symbols for example).
13769 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13770 # (--disable-auto-import) libraries
13771 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13772 ;;
13773 darwin* | rhapsody*)
13774 # PIC is the default on this platform
13775 # Common symbols not allowed in MH_DYLIB files
13776 lt_prog_compiler_pic_CXX='-fno-common'
13777 ;;
13778 *djgpp*)
13779 # DJGPP does not support shared libraries at all
13780 lt_prog_compiler_pic_CXX=
13781 ;;
13782 haiku*)
13783 # PIC is the default for Haiku.
13784 # The "-static" flag exists, but is broken.
13785 lt_prog_compiler_static_CXX=
13786 ;;
13787 interix[3-9]*)
13788 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13789 # Instead, we relocate shared libraries at runtime.
13790 ;;
13791 sysv4*MP*)
13792 if test -d /usr/nec; then
13793 lt_prog_compiler_pic_CXX=-Kconform_pic
13794 fi
13795 ;;
13796 hpux*)
13797 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13798 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13799 # sets the default TLS model and affects inlining.
13800 case $host_cpu in
13801 hppa*64*)
13802 ;;
13803 *)
13804 lt_prog_compiler_pic_CXX='-fPIC'
13805 ;;
13806 esac
13807 ;;
13808 *qnx* | *nto*)
13809 # QNX uses GNU C++, but need to define -shared option too, otherwise
13810 # it will coredump.
13811 lt_prog_compiler_pic_CXX='-fPIC -shared'
13812 ;;
13813 *)
13814 lt_prog_compiler_pic_CXX='-fPIC'
13815 ;;
13816 esac
13817 else
13818 case $host_os in
13819 aix[4-9]*)
13820 # All AIX code is PIC.
13821 if test "$host_cpu" = ia64; then
13822 # AIX 5 now supports IA64 processor
13823 lt_prog_compiler_static_CXX='-Bstatic'
13824 else
13825 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13826 fi
13827 ;;
13828 chorus*)
13829 case $cc_basename in
13830 cxch68*)
13831 # Green Hills C++ Compiler
13832 # _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"
13833 ;;
13834 esac
13835 ;;
13836 mingw* | cygwin* | os2* | pw32* | cegcc*)
13837 # This hack is so that the source file can tell whether it is being
13838 # built for inclusion in a dll (and should export symbols for example).
13839 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13840 ;;
13841 dgux*)
13842 case $cc_basename in
13843 ec++*)
13844 lt_prog_compiler_pic_CXX='-KPIC'
13845 ;;
13846 ghcx*)
13847 # Green Hills C++ Compiler
13848 lt_prog_compiler_pic_CXX='-pic'
13849 ;;
13850 *)
13851 ;;
13852 esac
13853 ;;
13854 freebsd* | dragonfly*)
13855 # FreeBSD uses GNU C++
13856 ;;
13857 hpux9* | hpux10* | hpux11*)
13858 case $cc_basename in
13859 CC*)
13860 lt_prog_compiler_wl_CXX='-Wl,'
13861 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13862 if test "$host_cpu" != ia64; then
13863 lt_prog_compiler_pic_CXX='+Z'
13864 fi
13865 ;;
13866 aCC*)
13867 lt_prog_compiler_wl_CXX='-Wl,'
13868 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13869 case $host_cpu in
13870 hppa*64*|ia64*)
13871 # +Z the default
13872 ;;
13873 *)
13874 lt_prog_compiler_pic_CXX='+Z'
13875 ;;
13876 esac
13877 ;;
13878 *)
13879 ;;
13880 esac
13881 ;;
13882 interix*)
13883 # This is c89, which is MS Visual C++ (no shared libs)
13884 # Anyone wants to do a port?
13885 ;;
13886 irix5* | irix6* | nonstopux*)
13887 case $cc_basename in
13888 CC*)
13889 lt_prog_compiler_wl_CXX='-Wl,'
13890 lt_prog_compiler_static_CXX='-non_shared'
13891 # CC pic flag -KPIC is the default.
13892 ;;
13893 *)
13894 ;;
13895 esac
13896 ;;
13897 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13898 case $cc_basename in
13899 KCC*)
13900 # KAI C++ Compiler
13901 lt_prog_compiler_wl_CXX='--backend -Wl,'
13902 lt_prog_compiler_pic_CXX='-fPIC'
13903 ;;
13904 ecpc* )
13905 # old Intel C++ for x86_64 which still supported -KPIC.
13906 lt_prog_compiler_wl_CXX='-Wl,'
13907 lt_prog_compiler_pic_CXX='-KPIC'
13908 lt_prog_compiler_static_CXX='-static'
13909 ;;
13910 icpc* )
13911 # Intel C++, used to be incompatible with GCC.
13912 # ICC 10 doesn't accept -KPIC any more.
13913 lt_prog_compiler_wl_CXX='-Wl,'
13914 lt_prog_compiler_pic_CXX='-fPIC'
13915 lt_prog_compiler_static_CXX='-static'
13916 ;;
13917 pgCC* | pgcpp*)
13918 # Portland Group C++ compiler
13919 lt_prog_compiler_wl_CXX='-Wl,'
13920 lt_prog_compiler_pic_CXX='-fpic'
13921 lt_prog_compiler_static_CXX='-Bstatic'
13922 ;;
13923 cxx*)
13924 # Compaq C++
13925 # Make sure the PIC flag is empty. It appears that all Alpha
13926 # Linux and Compaq Tru64 Unix objects are PIC.
13927 lt_prog_compiler_pic_CXX=
13928 lt_prog_compiler_static_CXX='-non_shared'
13929 ;;
13930 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13931 # IBM XL 8.0, 9.0 on PPC and BlueGene
13932 lt_prog_compiler_wl_CXX='-Wl,'
13933 lt_prog_compiler_pic_CXX='-qpic'
13934 lt_prog_compiler_static_CXX='-qstaticlink'
13935 ;;
13936 *)
13937 case `$CC -V 2>&1 | sed 5q` in
13938 *Sun\ C*)
13939 # Sun C++ 5.9
13940 lt_prog_compiler_pic_CXX='-KPIC'
13941 lt_prog_compiler_static_CXX='-Bstatic'
13942 lt_prog_compiler_wl_CXX='-Qoption ld '
13943 ;;
13944 esac
13945 ;;
13946 esac
13947 ;;
13948 lynxos*)
13949 ;;
13950 m88k*)
13951 ;;
13952 mvs*)
13953 case $cc_basename in
13954 cxx*)
13955 lt_prog_compiler_pic_CXX='-W c,exportall'
13956 ;;
13957 *)
13958 ;;
13959 esac
13960 ;;
13961 netbsd* | netbsdelf*-gnu)
13962 ;;
13963 *qnx* | *nto*)
13964 # QNX uses GNU C++, but need to define -shared option too, otherwise
13965 # it will coredump.
13966 lt_prog_compiler_pic_CXX='-fPIC -shared'
13967 ;;
13968 osf3* | osf4* | osf5*)
13969 case $cc_basename in
13970 KCC*)
13971 lt_prog_compiler_wl_CXX='--backend -Wl,'
13972 ;;
13973 RCC*)
13974 # Rational C++ 2.4.1
13975 lt_prog_compiler_pic_CXX='-pic'
13976 ;;
13977 cxx*)
13978 # Digital/Compaq C++
13979 lt_prog_compiler_wl_CXX='-Wl,'
13980 # Make sure the PIC flag is empty. It appears that all Alpha
13981 # Linux and Compaq Tru64 Unix objects are PIC.
13982 lt_prog_compiler_pic_CXX=
13983 lt_prog_compiler_static_CXX='-non_shared'
13984 ;;
13985 *)
13986 ;;
13987 esac
13988 ;;
13989 psos*)
13990 ;;
13991 solaris*)
13992 case $cc_basename in
13993 CC* | sunCC*)
13994 # Sun C++ 4.2, 5.x and Centerline C++
13995 lt_prog_compiler_pic_CXX='-KPIC'
13996 lt_prog_compiler_static_CXX='-Bstatic'
13997 lt_prog_compiler_wl_CXX='-Qoption ld '
13998 ;;
13999 gcx*)
14000 # Green Hills C++ Compiler
14001 lt_prog_compiler_pic_CXX='-PIC'
14002 ;;
14003 *)
14004 ;;
14005 esac
14006 ;;
14007 sunos4*)
14008 case $cc_basename in
14009 CC*)
14010 # Sun C++ 4.x
14011 lt_prog_compiler_pic_CXX='-pic'
14012 lt_prog_compiler_static_CXX='-Bstatic'
14013 ;;
14014 lcc*)
14015 # Lucid
14016 lt_prog_compiler_pic_CXX='-pic'
14017 ;;
14018 *)
14019 ;;
14020 esac
14021 ;;
14022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14023 case $cc_basename in
14024 CC*)
14025 lt_prog_compiler_wl_CXX='-Wl,'
14026 lt_prog_compiler_pic_CXX='-KPIC'
14027 lt_prog_compiler_static_CXX='-Bstatic'
14028 ;;
14029 esac
14030 ;;
14031 tandem*)
14032 case $cc_basename in
14033 NCC*)
14034 # NonStop-UX NCC 3.20
14035 lt_prog_compiler_pic_CXX='-KPIC'
14036 ;;
14037 *)
14038 ;;
14039 esac
14040 ;;
14041 vxworks*)
14042 ;;
14043 *)
14044 lt_prog_compiler_can_build_shared_CXX=no
14045 ;;
14046 esac
14047 fi
14048
14049 case $host_os in
14050 # For platforms which do not support PIC, -DPIC is meaningless:
14051 *djgpp*)
14052 lt_prog_compiler_pic_CXX=
14053 ;;
14054 *)
14055 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14056 ;;
14057 esac
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14060 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14061 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14065 fi
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14067 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14068 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14069
14070 #
14071 # Check to make sure the PIC flag actually works.
14072 #
14073 if test -n "$lt_prog_compiler_pic_CXX"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14075 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14076 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 lt_cv_prog_compiler_pic_works_CXX=no
14080 ac_outfile=conftest.$ac_objext
14081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14082 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14083 # Insert the option either (1) after the last *FLAGS variable, or
14084 # (2) before a word containing "conftest.", or (3) at the end.
14085 # Note that $ac_compile itself does not contain backslashes and begins
14086 # with a dollar sign (not a hyphen), so the echo should work correctly.
14087 # The option is referenced via a variable to avoid confusing sed.
14088 lt_compile=`echo "$ac_compile" | $SED \
14089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14091 -e 's:$: $lt_compiler_flag:'`
14092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14093 (eval "$lt_compile" 2>conftest.err)
14094 ac_status=$?
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 if (exit $ac_status) && test -s "$ac_outfile"; then
14098 # The compiler can only warn and ignore the option if not recognized
14099 # So say no if there are warnings other than the usual output.
14100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14103 lt_cv_prog_compiler_pic_works_CXX=yes
14104 fi
14105 fi
14106 $RM conftest*
14107
14108 fi
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14110 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14111
14112 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14113 case $lt_prog_compiler_pic_CXX in
14114 "" | " "*) ;;
14115 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14116 esac
14117 else
14118 lt_prog_compiler_pic_CXX=
14119 lt_prog_compiler_can_build_shared_CXX=no
14120 fi
14121
14122 fi
14123
14124
14125
14126
14127
14128 #
14129 # Check to make sure the static flag actually works.
14130 #
14131 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14133 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14134 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14135 $as_echo_n "(cached) " >&6
14136 else
14137 lt_cv_prog_compiler_static_works_CXX=no
14138 save_LDFLAGS="$LDFLAGS"
14139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14142 # The linker can only warn and ignore the option if not recognized
14143 # So say no if there are warnings
14144 if test -s conftest.err; then
14145 # Append any errors to the config.log.
14146 cat conftest.err 1>&5
14147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14149 if diff conftest.exp conftest.er2 >/dev/null; then
14150 lt_cv_prog_compiler_static_works_CXX=yes
14151 fi
14152 else
14153 lt_cv_prog_compiler_static_works_CXX=yes
14154 fi
14155 fi
14156 $RM -r conftest*
14157 LDFLAGS="$save_LDFLAGS"
14158
14159 fi
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14161 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14162
14163 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14164 :
14165 else
14166 lt_prog_compiler_static_CXX=
14167 fi
14168
14169
14170
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14173 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14174 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 lt_cv_prog_compiler_c_o_CXX=no
14178 $RM -r conftest 2>/dev/null
14179 mkdir conftest
14180 cd conftest
14181 mkdir out
14182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14183
14184 lt_compiler_flag="-o out/conftest2.$ac_objext"
14185 # Insert the option either (1) after the last *FLAGS variable, or
14186 # (2) before a word containing "conftest.", or (3) at the end.
14187 # Note that $ac_compile itself does not contain backslashes and begins
14188 # with a dollar sign (not a hyphen), so the echo should work correctly.
14189 lt_compile=`echo "$ac_compile" | $SED \
14190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14192 -e 's:$: $lt_compiler_flag:'`
14193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14194 (eval "$lt_compile" 2>out/conftest.err)
14195 ac_status=$?
14196 cat out/conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14199 then
14200 # The compiler can only warn and ignore the option if not recognized
14201 # So say no if there are warnings
14202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14203 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14204 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14205 lt_cv_prog_compiler_c_o_CXX=yes
14206 fi
14207 fi
14208 chmod u+w . 2>&5
14209 $RM conftest*
14210 # SGI C++ compiler will create directory out/ii_files/ for
14211 # template instantiation
14212 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14213 $RM out/* && rmdir out
14214 cd ..
14215 $RM -r conftest
14216 $RM conftest*
14217
14218 fi
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14220 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14221
14222
14223
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14225 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14226 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14227 $as_echo_n "(cached) " >&6
14228 else
14229 lt_cv_prog_compiler_c_o_CXX=no
14230 $RM -r conftest 2>/dev/null
14231 mkdir conftest
14232 cd conftest
14233 mkdir out
14234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14235
14236 lt_compiler_flag="-o out/conftest2.$ac_objext"
14237 # Insert the option either (1) after the last *FLAGS variable, or
14238 # (2) before a word containing "conftest.", or (3) at the end.
14239 # Note that $ac_compile itself does not contain backslashes and begins
14240 # with a dollar sign (not a hyphen), so the echo should work correctly.
14241 lt_compile=`echo "$ac_compile" | $SED \
14242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14244 -e 's:$: $lt_compiler_flag:'`
14245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14246 (eval "$lt_compile" 2>out/conftest.err)
14247 ac_status=$?
14248 cat out/conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14251 then
14252 # The compiler can only warn and ignore the option if not recognized
14253 # So say no if there are warnings
14254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14257 lt_cv_prog_compiler_c_o_CXX=yes
14258 fi
14259 fi
14260 chmod u+w . 2>&5
14261 $RM conftest*
14262 # SGI C++ compiler will create directory out/ii_files/ for
14263 # template instantiation
14264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14265 $RM out/* && rmdir out
14266 cd ..
14267 $RM -r conftest
14268 $RM conftest*
14269
14270 fi
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14272 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14273
14274
14275
14276
14277 hard_links="nottested"
14278 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14279 # do not overwrite the value of need_locks provided by the user
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14281 $as_echo_n "checking if we can lock with hard links... " >&6; }
14282 hard_links=yes
14283 $RM conftest*
14284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14285 touch conftest.a
14286 ln conftest.a conftest.b 2>&5 || hard_links=no
14287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14289 $as_echo "$hard_links" >&6; }
14290 if test "$hard_links" = no; then
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14292 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14293 need_locks=warn
14294 fi
14295 else
14296 need_locks=no
14297 fi
14298
14299
14300
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14302 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14303
14304 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14305 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14306 case $host_os in
14307 aix[4-9]*)
14308 # If we're using GNU nm, then we don't want the "-C" option.
14309 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14310 # Also, AIX nm treats weak defined symbols like other global defined
14311 # symbols, whereas GNU nm marks them as "W".
14312 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14313 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14314 else
14315 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14316 fi
14317 ;;
14318 pw32*)
14319 export_symbols_cmds_CXX="$ltdll_cmds"
14320 ;;
14321 cygwin* | mingw* | cegcc*)
14322 case $cc_basename in
14323 cl*)
14324 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14325 ;;
14326 *)
14327 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'
14328 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14329 ;;
14330 esac
14331 ;;
14332 linux* | k*bsd*-gnu | gnu*)
14333 link_all_deplibs_CXX=no
14334 ;;
14335 *)
14336 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14337 ;;
14338 esac
14339
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14341 $as_echo "$ld_shlibs_CXX" >&6; }
14342 test "$ld_shlibs_CXX" = no && can_build_shared=no
14343
14344 with_gnu_ld_CXX=$with_gnu_ld
14345
14346
14347
14348
14349
14350
14351 #
14352 # Do we need to explicitly link libc?
14353 #
14354 case "x$archive_cmds_need_lc_CXX" in
14355 x|xyes)
14356 # Assume -lc should be added
14357 archive_cmds_need_lc_CXX=yes
14358
14359 if test "$enable_shared" = yes && test "$GCC" = yes; then
14360 case $archive_cmds_CXX in
14361 *'~'*)
14362 # FIXME: we may have to deal with multi-command sequences.
14363 ;;
14364 '$CC '*)
14365 # Test whether the compiler implicitly links with -lc since on some
14366 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14367 # to ld, don't add -lc before -lgcc.
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14369 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14370 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14371 $as_echo_n "(cached) " >&6
14372 else
14373 $RM conftest*
14374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14375
14376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14377 (eval $ac_compile) 2>&5
14378 ac_status=$?
14379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14380 test $ac_status = 0; } 2>conftest.err; then
14381 soname=conftest
14382 lib=conftest
14383 libobjs=conftest.$ac_objext
14384 deplibs=
14385 wl=$lt_prog_compiler_wl_CXX
14386 pic_flag=$lt_prog_compiler_pic_CXX
14387 compiler_flags=-v
14388 linker_flags=-v
14389 verstring=
14390 output_objdir=.
14391 libname=conftest
14392 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14393 allow_undefined_flag_CXX=
14394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14395 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14396 ac_status=$?
14397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14398 test $ac_status = 0; }
14399 then
14400 lt_cv_archive_cmds_need_lc_CXX=no
14401 else
14402 lt_cv_archive_cmds_need_lc_CXX=yes
14403 fi
14404 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14405 else
14406 cat conftest.err 1>&5
14407 fi
14408 $RM conftest*
14409
14410 fi
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14412 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14413 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14414 ;;
14415 esac
14416 fi
14417 ;;
14418 esac
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14482 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14483
14484 library_names_spec=
14485 libname_spec='lib$name'
14486 soname_spec=
14487 shrext_cmds=".so"
14488 postinstall_cmds=
14489 postuninstall_cmds=
14490 finish_cmds=
14491 finish_eval=
14492 shlibpath_var=
14493 shlibpath_overrides_runpath=unknown
14494 version_type=none
14495 dynamic_linker="$host_os ld.so"
14496 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14497 need_lib_prefix=unknown
14498 hardcode_into_libs=no
14499
14500 # when you set need_version to no, make sure it does not cause -set_version
14501 # flags to be left without arguments
14502 need_version=unknown
14503
14504 case $host_os in
14505 aix3*)
14506 version_type=linux # correct to gnu/linux during the next big refactor
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14508 shlibpath_var=LIBPATH
14509
14510 # AIX 3 has no versioning support, so we append a major version to the name.
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 ;;
14513
14514 aix[4-9]*)
14515 version_type=linux # correct to gnu/linux during the next big refactor
14516 need_lib_prefix=no
14517 need_version=no
14518 hardcode_into_libs=yes
14519 if test "$host_cpu" = ia64; then
14520 # AIX 5 supports IA64
14521 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14522 shlibpath_var=LD_LIBRARY_PATH
14523 else
14524 # With GCC up to 2.95.x, collect2 would create an import file
14525 # for dependence libraries. The import file would start with
14526 # the line `#! .'. This would cause the generated library to
14527 # depend on `.', always an invalid library. This was fixed in
14528 # development snapshots of GCC prior to 3.0.
14529 case $host_os in
14530 aix4 | aix4.[01] | aix4.[01].*)
14531 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14532 echo ' yes '
14533 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14534 :
14535 else
14536 can_build_shared=no
14537 fi
14538 ;;
14539 esac
14540 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14541 # soname into executable. Probably we can add versioning support to
14542 # collect2, so additional links can be useful in future.
14543 if test "$aix_use_runtimelinking" = yes; then
14544 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14545 # instead of lib<name>.a to let people know that these are not
14546 # typical AIX shared libraries.
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548 else
14549 # We preserve .a as extension for shared libraries through AIX4.2
14550 # and later when we are not doing run time linking.
14551 library_names_spec='${libname}${release}.a $libname.a'
14552 soname_spec='${libname}${release}${shared_ext}$major'
14553 fi
14554 shlibpath_var=LIBPATH
14555 fi
14556 ;;
14557
14558 amigaos*)
14559 case $host_cpu in
14560 powerpc)
14561 # Since July 2007 AmigaOS4 officially supports .so libraries.
14562 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564 ;;
14565 m68k)
14566 library_names_spec='$libname.ixlibrary $libname.a'
14567 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14568 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14569 ;;
14570 esac
14571 ;;
14572
14573 beos*)
14574 library_names_spec='${libname}${shared_ext}'
14575 dynamic_linker="$host_os ld.so"
14576 shlibpath_var=LIBRARY_PATH
14577 ;;
14578
14579 bsdi[45]*)
14580 version_type=linux # correct to gnu/linux during the next big refactor
14581 need_version=no
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583 soname_spec='${libname}${release}${shared_ext}$major'
14584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14585 shlibpath_var=LD_LIBRARY_PATH
14586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14588 # the default ld.so.conf also contains /usr/contrib/lib and
14589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14590 # libtool to hard-code these into programs
14591 ;;
14592
14593 cygwin* | mingw* | pw32* | cegcc*)
14594 version_type=windows
14595 shrext_cmds=".dll"
14596 need_version=no
14597 need_lib_prefix=no
14598
14599 case $GCC,$cc_basename in
14600 yes,*)
14601 # gcc
14602 library_names_spec='$libname.dll.a'
14603 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14604 postinstall_cmds='base_file=`basename \${file}`~
14605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14606 dldir=$destdir/`dirname \$dlpath`~
14607 test -d \$dldir || mkdir -p \$dldir~
14608 $install_prog $dir/$dlname \$dldir/$dlname~
14609 chmod a+x \$dldir/$dlname~
14610 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14611 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14612 fi'
14613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14614 dlpath=$dir/\$dldll~
14615 $RM \$dlpath'
14616 shlibpath_overrides_runpath=yes
14617
14618 case $host_os in
14619 cygwin*)
14620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14622
14623 ;;
14624 mingw* | cegcc*)
14625 # MinGW DLLs use traditional 'lib' prefix
14626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14627 ;;
14628 pw32*)
14629 # pw32 DLLs use 'pw' prefix rather than 'lib'
14630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14631 ;;
14632 esac
14633 dynamic_linker='Win32 ld.exe'
14634 ;;
14635
14636 *,cl*)
14637 # Native MSVC
14638 libname_spec='$name'
14639 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14640 library_names_spec='${libname}.dll.lib'
14641
14642 case $build_os in
14643 mingw*)
14644 sys_lib_search_path_spec=
14645 lt_save_ifs=$IFS
14646 IFS=';'
14647 for lt_path in $LIB
14648 do
14649 IFS=$lt_save_ifs
14650 # Let DOS variable expansion print the short 8.3 style file name.
14651 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14652 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14653 done
14654 IFS=$lt_save_ifs
14655 # Convert to MSYS style.
14656 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14657 ;;
14658 cygwin*)
14659 # Convert to unix form, then to dos form, then back to unix form
14660 # but this time dos style (no spaces!) so that the unix form looks
14661 # like /cygdrive/c/PROGRA~1:/cygdr...
14662 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14663 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14664 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14665 ;;
14666 *)
14667 sys_lib_search_path_spec="$LIB"
14668 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14669 # It is most probably a Windows format PATH.
14670 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14671 else
14672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14673 fi
14674 # FIXME: find the short name or the path components, as spaces are
14675 # common. (e.g. "Program Files" -> "PROGRA~1")
14676 ;;
14677 esac
14678
14679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14680 postinstall_cmds='base_file=`basename \${file}`~
14681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14682 dldir=$destdir/`dirname \$dlpath`~
14683 test -d \$dldir || mkdir -p \$dldir~
14684 $install_prog $dir/$dlname \$dldir/$dlname'
14685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14686 dlpath=$dir/\$dldll~
14687 $RM \$dlpath'
14688 shlibpath_overrides_runpath=yes
14689 dynamic_linker='Win32 link.exe'
14690 ;;
14691
14692 *)
14693 # Assume MSVC wrapper
14694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14695 dynamic_linker='Win32 ld.exe'
14696 ;;
14697 esac
14698 # FIXME: first we should search . and the directory the executable is in
14699 shlibpath_var=PATH
14700 ;;
14701
14702 darwin* | rhapsody*)
14703 dynamic_linker="$host_os dyld"
14704 version_type=darwin
14705 need_lib_prefix=no
14706 need_version=no
14707 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14708 soname_spec='${libname}${release}${major}$shared_ext'
14709 shlibpath_overrides_runpath=yes
14710 shlibpath_var=DYLD_LIBRARY_PATH
14711 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14712
14713 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14714 ;;
14715
14716 dgux*)
14717 version_type=linux # correct to gnu/linux during the next big refactor
14718 need_lib_prefix=no
14719 need_version=no
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 ;;
14724
14725 freebsd* | dragonfly*)
14726 # DragonFly does not have aout. When/if they implement a new
14727 # versioning mechanism, adjust this.
14728 if test -x /usr/bin/objformat; then
14729 objformat=`/usr/bin/objformat`
14730 else
14731 case $host_os in
14732 freebsd[23].*) objformat=aout ;;
14733 *) objformat=elf ;;
14734 esac
14735 fi
14736 version_type=freebsd-$objformat
14737 case $version_type in
14738 freebsd-elf*)
14739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14740 need_version=no
14741 need_lib_prefix=no
14742 ;;
14743 freebsd-*)
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14745 need_version=yes
14746 ;;
14747 esac
14748 shlibpath_var=LD_LIBRARY_PATH
14749 case $host_os in
14750 freebsd2.*)
14751 shlibpath_overrides_runpath=yes
14752 ;;
14753 freebsd3.[01]* | freebsdelf3.[01]*)
14754 shlibpath_overrides_runpath=yes
14755 hardcode_into_libs=yes
14756 ;;
14757 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14758 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14759 shlibpath_overrides_runpath=no
14760 hardcode_into_libs=yes
14761 ;;
14762 *) # from 4.6 on, and DragonFly
14763 shlibpath_overrides_runpath=yes
14764 hardcode_into_libs=yes
14765 ;;
14766 esac
14767 ;;
14768
14769 gnu*)
14770 version_type=linux # correct to gnu/linux during the next big refactor
14771 need_lib_prefix=no
14772 need_version=no
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14774 soname_spec='${libname}${release}${shared_ext}$major'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=no
14777 hardcode_into_libs=yes
14778 ;;
14779
14780 haiku*)
14781 version_type=linux # correct to gnu/linux during the next big refactor
14782 need_lib_prefix=no
14783 need_version=no
14784 dynamic_linker="$host_os runtime_loader"
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 shlibpath_var=LIBRARY_PATH
14788 shlibpath_overrides_runpath=yes
14789 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14790 hardcode_into_libs=yes
14791 ;;
14792
14793 hpux9* | hpux10* | hpux11*)
14794 # Give a soname corresponding to the major version so that dld.sl refuses to
14795 # link against other versions.
14796 version_type=sunos
14797 need_lib_prefix=no
14798 need_version=no
14799 case $host_cpu in
14800 ia64*)
14801 shrext_cmds='.so'
14802 hardcode_into_libs=yes
14803 dynamic_linker="$host_os dld.so"
14804 shlibpath_var=LD_LIBRARY_PATH
14805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807 soname_spec='${libname}${release}${shared_ext}$major'
14808 if test "X$HPUX_IA64_MODE" = X32; then
14809 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14810 else
14811 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14812 fi
14813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14814 ;;
14815 hppa*64*)
14816 shrext_cmds='.sl'
14817 hardcode_into_libs=yes
14818 dynamic_linker="$host_os dld.sl"
14819 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14822 soname_spec='${libname}${release}${shared_ext}$major'
14823 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14825 ;;
14826 *)
14827 shrext_cmds='.sl'
14828 dynamic_linker="$host_os dld.sl"
14829 shlibpath_var=SHLIB_PATH
14830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14832 soname_spec='${libname}${release}${shared_ext}$major'
14833 ;;
14834 esac
14835 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14836 postinstall_cmds='chmod 555 $lib'
14837 # or fails outright, so override atomically:
14838 install_override_mode=555
14839 ;;
14840
14841 interix[3-9]*)
14842 version_type=linux # correct to gnu/linux during the next big refactor
14843 need_lib_prefix=no
14844 need_version=no
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14846 soname_spec='${libname}${release}${shared_ext}$major'
14847 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14848 shlibpath_var=LD_LIBRARY_PATH
14849 shlibpath_overrides_runpath=no
14850 hardcode_into_libs=yes
14851 ;;
14852
14853 irix5* | irix6* | nonstopux*)
14854 case $host_os in
14855 nonstopux*) version_type=nonstopux ;;
14856 *)
14857 if test "$lt_cv_prog_gnu_ld" = yes; then
14858 version_type=linux # correct to gnu/linux during the next big refactor
14859 else
14860 version_type=irix
14861 fi ;;
14862 esac
14863 need_lib_prefix=no
14864 need_version=no
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14867 case $host_os in
14868 irix5* | nonstopux*)
14869 libsuff= shlibsuff=
14870 ;;
14871 *)
14872 case $LD in # libtool.m4 will add one of these switches to LD
14873 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14874 libsuff= shlibsuff= libmagic=32-bit;;
14875 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14876 libsuff=32 shlibsuff=N32 libmagic=N32;;
14877 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14878 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14879 *) libsuff= shlibsuff= libmagic=never-match;;
14880 esac
14881 ;;
14882 esac
14883 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14884 shlibpath_overrides_runpath=no
14885 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14886 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14887 hardcode_into_libs=yes
14888 ;;
14889
14890 # No shared lib support for Linux oldld, aout, or coff.
14891 linux*oldld* | linux*aout* | linux*coff*)
14892 dynamic_linker=no
14893 ;;
14894
14895 # This must be glibc/ELF.
14896 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14897 version_type=linux # correct to gnu/linux during the next big refactor
14898 need_lib_prefix=no
14899 need_version=no
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901 soname_spec='${libname}${release}${shared_ext}$major'
14902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14903 shlibpath_var=LD_LIBRARY_PATH
14904 shlibpath_overrides_runpath=no
14905
14906 # Some binutils ld are patched to set DT_RUNPATH
14907 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14908 $as_echo_n "(cached) " >&6
14909 else
14910 lt_cv_shlibpath_overrides_runpath=no
14911 save_LDFLAGS=$LDFLAGS
14912 save_libdir=$libdir
14913 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14914 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h. */
14917
14918 int
14919 main ()
14920 {
14921
14922 ;
14923 return 0;
14924 }
14925 _ACEOF
14926 if ac_fn_cxx_try_link "$LINENO"; then :
14927 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14928 lt_cv_shlibpath_overrides_runpath=yes
14929 fi
14930 fi
14931 rm -f core conftest.err conftest.$ac_objext \
14932 conftest$ac_exeext conftest.$ac_ext
14933 LDFLAGS=$save_LDFLAGS
14934 libdir=$save_libdir
14935
14936 fi
14937
14938 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14939
14940 # This implies no fast_install, which is unacceptable.
14941 # Some rework will be needed to allow for fast_install
14942 # before this can be enabled.
14943 hardcode_into_libs=yes
14944
14945 # Append ld.so.conf contents to the search path
14946 if test -f /etc/ld.so.conf; then
14947 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' ' '`
14948 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14949 fi
14950
14951 # We used to test for /lib/ld.so.1 and disable shared libraries on
14952 # powerpc, because MkLinux only supported shared libraries with the
14953 # GNU dynamic linker. Since this was broken with cross compilers,
14954 # most powerpc-linux boxes support dynamic linking these days and
14955 # people can always --disable-shared, the test was removed, and we
14956 # assume the GNU/Linux dynamic linker is in use.
14957 dynamic_linker='GNU/Linux ld.so'
14958 ;;
14959
14960 netbsdelf*-gnu)
14961 version_type=linux
14962 need_lib_prefix=no
14963 need_version=no
14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14965 soname_spec='${libname}${release}${shared_ext}$major'
14966 shlibpath_var=LD_LIBRARY_PATH
14967 shlibpath_overrides_runpath=no
14968 hardcode_into_libs=yes
14969 dynamic_linker='NetBSD ld.elf_so'
14970 ;;
14971
14972 netbsd*)
14973 version_type=sunos
14974 need_lib_prefix=no
14975 need_version=no
14976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14979 dynamic_linker='NetBSD (a.out) ld.so'
14980 else
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14982 soname_spec='${libname}${release}${shared_ext}$major'
14983 dynamic_linker='NetBSD ld.elf_so'
14984 fi
14985 shlibpath_var=LD_LIBRARY_PATH
14986 shlibpath_overrides_runpath=yes
14987 hardcode_into_libs=yes
14988 ;;
14989
14990 newsos6)
14991 version_type=linux # correct to gnu/linux during the next big refactor
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14993 shlibpath_var=LD_LIBRARY_PATH
14994 shlibpath_overrides_runpath=yes
14995 ;;
14996
14997 *nto* | *qnx*)
14998 version_type=qnx
14999 need_lib_prefix=no
15000 need_version=no
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=no
15005 hardcode_into_libs=yes
15006 dynamic_linker='ldqnx.so'
15007 ;;
15008
15009 openbsd*)
15010 version_type=sunos
15011 sys_lib_dlsearch_path_spec="/usr/lib"
15012 need_lib_prefix=no
15013 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15014 case $host_os in
15015 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15016 *) need_version=no ;;
15017 esac
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15022 case $host_os in
15023 openbsd2.[89] | openbsd2.[89].*)
15024 shlibpath_overrides_runpath=no
15025 ;;
15026 *)
15027 shlibpath_overrides_runpath=yes
15028 ;;
15029 esac
15030 else
15031 shlibpath_overrides_runpath=yes
15032 fi
15033 ;;
15034
15035 os2*)
15036 libname_spec='$name'
15037 shrext_cmds=".dll"
15038 need_lib_prefix=no
15039 library_names_spec='$libname${shared_ext} $libname.a'
15040 dynamic_linker='OS/2 ld.exe'
15041 shlibpath_var=LIBPATH
15042 ;;
15043
15044 osf3* | osf4* | osf5*)
15045 version_type=osf
15046 need_lib_prefix=no
15047 need_version=no
15048 soname_spec='${libname}${release}${shared_ext}$major'
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15050 shlibpath_var=LD_LIBRARY_PATH
15051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15052 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15053 ;;
15054
15055 rdos*)
15056 dynamic_linker=no
15057 ;;
15058
15059 solaris*)
15060 version_type=linux # correct to gnu/linux during the next big refactor
15061 need_lib_prefix=no
15062 need_version=no
15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15064 soname_spec='${libname}${release}${shared_ext}$major'
15065 shlibpath_var=LD_LIBRARY_PATH
15066 shlibpath_overrides_runpath=yes
15067 hardcode_into_libs=yes
15068 # ldd complains unless libraries are executable
15069 postinstall_cmds='chmod +x $lib'
15070 ;;
15071
15072 sunos4*)
15073 version_type=sunos
15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15076 shlibpath_var=LD_LIBRARY_PATH
15077 shlibpath_overrides_runpath=yes
15078 if test "$with_gnu_ld" = yes; then
15079 need_lib_prefix=no
15080 fi
15081 need_version=yes
15082 ;;
15083
15084 sysv4 | sysv4.3*)
15085 version_type=linux # correct to gnu/linux during the next big refactor
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 soname_spec='${libname}${release}${shared_ext}$major'
15088 shlibpath_var=LD_LIBRARY_PATH
15089 case $host_vendor in
15090 sni)
15091 shlibpath_overrides_runpath=no
15092 need_lib_prefix=no
15093 runpath_var=LD_RUN_PATH
15094 ;;
15095 siemens)
15096 need_lib_prefix=no
15097 ;;
15098 motorola)
15099 need_lib_prefix=no
15100 need_version=no
15101 shlibpath_overrides_runpath=no
15102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15103 ;;
15104 esac
15105 ;;
15106
15107 sysv4*MP*)
15108 if test -d /usr/nec ;then
15109 version_type=linux # correct to gnu/linux during the next big refactor
15110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15111 soname_spec='$libname${shared_ext}.$major'
15112 shlibpath_var=LD_LIBRARY_PATH
15113 fi
15114 ;;
15115
15116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15117 version_type=freebsd-elf
15118 need_lib_prefix=no
15119 need_version=no
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15121 soname_spec='${libname}${release}${shared_ext}$major'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 shlibpath_overrides_runpath=yes
15124 hardcode_into_libs=yes
15125 if test "$with_gnu_ld" = yes; then
15126 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15127 else
15128 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15129 case $host_os in
15130 sco3.2v5*)
15131 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15132 ;;
15133 esac
15134 fi
15135 sys_lib_dlsearch_path_spec='/usr/lib'
15136 ;;
15137
15138 tpf*)
15139 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15140 version_type=linux # correct to gnu/linux during the next big refactor
15141 need_lib_prefix=no
15142 need_version=no
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 shlibpath_var=LD_LIBRARY_PATH
15145 shlibpath_overrides_runpath=no
15146 hardcode_into_libs=yes
15147 ;;
15148
15149 uts4*)
15150 version_type=linux # correct to gnu/linux during the next big refactor
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 shlibpath_var=LD_LIBRARY_PATH
15154 ;;
15155
15156 *)
15157 dynamic_linker=no
15158 ;;
15159 esac
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15161 $as_echo "$dynamic_linker" >&6; }
15162 test "$dynamic_linker" = no && can_build_shared=no
15163
15164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15165 if test "$GCC" = yes; then
15166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15167 fi
15168
15169 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15170 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15171 fi
15172 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15173 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15174 fi
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15214 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15215 hardcode_action_CXX=
15216 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15217 test -n "$runpath_var_CXX" ||
15218 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15219
15220 # We can hardcode non-existent directories.
15221 if test "$hardcode_direct_CXX" != no &&
15222 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15223 # have to relink, otherwise we might link with an installed library
15224 # when we should be linking with a yet-to-be-installed one
15225 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15226 test "$hardcode_minus_L_CXX" != no; then
15227 # Linking always hardcodes the temporary library directory.
15228 hardcode_action_CXX=relink
15229 else
15230 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15231 hardcode_action_CXX=immediate
15232 fi
15233 else
15234 # We cannot hardcode anything, or else we can only hardcode existing
15235 # directories.
15236 hardcode_action_CXX=unsupported
15237 fi
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15239 $as_echo "$hardcode_action_CXX" >&6; }
15240
15241 if test "$hardcode_action_CXX" = relink ||
15242 test "$inherit_rpath_CXX" = yes; then
15243 # Fast installation is not supported
15244 enable_fast_install=no
15245 elif test "$shlibpath_overrides_runpath" = yes ||
15246 test "$enable_shared" = no; then
15247 # Fast installation is not necessary
15248 enable_fast_install=needless
15249 fi
15250
15251
15252
15253
15254
15255
15256
15257 fi # test -n "$compiler"
15258
15259 CC=$lt_save_CC
15260 CFLAGS=$lt_save_CFLAGS
15261 LDCXX=$LD
15262 LD=$lt_save_LD
15263 GCC=$lt_save_GCC
15264 with_gnu_ld=$lt_save_with_gnu_ld
15265 lt_cv_path_LDCXX=$lt_cv_path_LD
15266 lt_cv_path_LD=$lt_save_path_LD
15267 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15268 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15269 fi # test "$_lt_caught_CXX_error" != yes
15270
15271 ac_ext=c
15272 ac_cpp='$CPP $CPPFLAGS'
15273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291 ac_config_commands="$ac_config_commands libtool"
15292
15293
15294
15295
15296 # Only expand once:
15297
15298
15299
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15301 $as_echo_n "checking for ANSI C header files... " >&6; }
15302 if ${ac_cv_header_stdc+:} false; then :
15303 $as_echo_n "(cached) " >&6
15304 else
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307 #include <stdlib.h>
15308 #include <stdarg.h>
15309 #include <string.h>
15310 #include <float.h>
15311
15312 int
15313 main ()
15314 {
15315
15316 ;
15317 return 0;
15318 }
15319 _ACEOF
15320 if ac_fn_c_try_compile "$LINENO"; then :
15321 ac_cv_header_stdc=yes
15322 else
15323 ac_cv_header_stdc=no
15324 fi
15325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15326
15327 if test $ac_cv_header_stdc = yes; then
15328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15330 /* end confdefs.h. */
15331 #include <string.h>
15332
15333 _ACEOF
15334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15335 $EGREP "memchr" >/dev/null 2>&1; then :
15336
15337 else
15338 ac_cv_header_stdc=no
15339 fi
15340 rm -f conftest*
15341
15342 fi
15343
15344 if test $ac_cv_header_stdc = yes; then
15345 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15348 #include <stdlib.h>
15349
15350 _ACEOF
15351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15352 $EGREP "free" >/dev/null 2>&1; then :
15353
15354 else
15355 ac_cv_header_stdc=no
15356 fi
15357 rm -f conftest*
15358
15359 fi
15360
15361 if test $ac_cv_header_stdc = yes; then
15362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15363 if test "$cross_compiling" = yes; then :
15364 :
15365 else
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368 #include <ctype.h>
15369 #include <stdlib.h>
15370 #if ((' ' & 0x0FF) == 0x020)
15371 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15372 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15373 #else
15374 # define ISLOWER(c) \
15375 (('a' <= (c) && (c) <= 'i') \
15376 || ('j' <= (c) && (c) <= 'r') \
15377 || ('s' <= (c) && (c) <= 'z'))
15378 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15379 #endif
15380
15381 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15382 int
15383 main ()
15384 {
15385 int i;
15386 for (i = 0; i < 256; i++)
15387 if (XOR (islower (i), ISLOWER (i))
15388 || toupper (i) != TOUPPER (i))
15389 return 2;
15390 return 0;
15391 }
15392 _ACEOF
15393 if ac_fn_c_try_run "$LINENO"; then :
15394
15395 else
15396 ac_cv_header_stdc=no
15397 fi
15398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15399 conftest.$ac_objext conftest.beam conftest.$ac_ext
15400 fi
15401
15402 fi
15403 fi
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15405 $as_echo "$ac_cv_header_stdc" >&6; }
15406 if test $ac_cv_header_stdc = yes; then
15407
15408 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15409
15410 fi
15411
15412 for ac_header in fcntl.h unistd.h
15413 do :
15414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15415 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15417 cat >>confdefs.h <<_ACEOF
15418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15419 _ACEOF
15420
15421 fi
15422
15423 done
15424
15425
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15427 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15428 if ${ac_cv_c_const+:} false; then :
15429 $as_echo_n "(cached) " >&6
15430 else
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15433
15434 int
15435 main ()
15436 {
15437
15438 #ifndef __cplusplus
15439 /* Ultrix mips cc rejects this sort of thing. */
15440 typedef int charset[2];
15441 const charset cs = { 0, 0 };
15442 /* SunOS 4.1.1 cc rejects this. */
15443 char const *const *pcpcc;
15444 char **ppc;
15445 /* NEC SVR4.0.2 mips cc rejects this. */
15446 struct point {int x, y;};
15447 static struct point const zero = {0,0};
15448 /* AIX XL C 1.02.0.0 rejects this.
15449 It does not let you subtract one const X* pointer from another in
15450 an arm of an if-expression whose if-part is not a constant
15451 expression */
15452 const char *g = "string";
15453 pcpcc = &g + (g ? g-g : 0);
15454 /* HPUX 7.0 cc rejects these. */
15455 ++pcpcc;
15456 ppc = (char**) pcpcc;
15457 pcpcc = (char const *const *) ppc;
15458 { /* SCO 3.2v4 cc rejects this sort of thing. */
15459 char tx;
15460 char *t = &tx;
15461 char const *s = 0 ? (char *) 0 : (char const *) 0;
15462
15463 *t++ = 0;
15464 if (s) return 0;
15465 }
15466 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15467 int x[] = {25, 17};
15468 const int *foo = &x[0];
15469 ++foo;
15470 }
15471 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15472 typedef const int *iptr;
15473 iptr p = 0;
15474 ++p;
15475 }
15476 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15477 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15478 struct s { int j; const int *ap[3]; } bx;
15479 struct s *b = &bx; b->j = 5;
15480 }
15481 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15482 const int foo = 10;
15483 if (!foo) return 0;
15484 }
15485 return !cs[0] && !zero.x;
15486 #endif
15487
15488 ;
15489 return 0;
15490 }
15491 _ACEOF
15492 if ac_fn_c_try_compile "$LINENO"; then :
15493 ac_cv_c_const=yes
15494 else
15495 ac_cv_c_const=no
15496 fi
15497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498 fi
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15500 $as_echo "$ac_cv_c_const" >&6; }
15501 if test $ac_cv_c_const = no; then
15502
15503 $as_echo "#define const /**/" >>confdefs.h
15504
15505 fi
15506
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15508 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15509 if ${ac_cv_c_bigendian+:} false; then :
15510 $as_echo_n "(cached) " >&6
15511 else
15512 ac_cv_c_bigendian=unknown
15513 # See if we're dealing with a universal compiler.
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15516 #ifndef __APPLE_CC__
15517 not a universal capable compiler
15518 #endif
15519 typedef int dummy;
15520
15521 _ACEOF
15522 if ac_fn_c_try_compile "$LINENO"; then :
15523
15524 # Check for potential -arch flags. It is not universal unless
15525 # there are at least two -arch flags with different values.
15526 ac_arch=
15527 ac_prev=
15528 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15529 if test -n "$ac_prev"; then
15530 case $ac_word in
15531 i?86 | x86_64 | ppc | ppc64)
15532 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15533 ac_arch=$ac_word
15534 else
15535 ac_cv_c_bigendian=universal
15536 break
15537 fi
15538 ;;
15539 esac
15540 ac_prev=
15541 elif test "x$ac_word" = "x-arch"; then
15542 ac_prev=arch
15543 fi
15544 done
15545 fi
15546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 if test $ac_cv_c_bigendian = unknown; then
15548 # See if sys/param.h defines the BYTE_ORDER macro.
15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h. */
15551 #include <sys/types.h>
15552 #include <sys/param.h>
15553
15554 int
15555 main ()
15556 {
15557 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15558 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15559 && LITTLE_ENDIAN)
15560 bogus endian macros
15561 #endif
15562
15563 ;
15564 return 0;
15565 }
15566 _ACEOF
15567 if ac_fn_c_try_compile "$LINENO"; then :
15568 # It does; now see whether it defined to BIG_ENDIAN or not.
15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h. */
15571 #include <sys/types.h>
15572 #include <sys/param.h>
15573
15574 int
15575 main ()
15576 {
15577 #if BYTE_ORDER != BIG_ENDIAN
15578 not big endian
15579 #endif
15580
15581 ;
15582 return 0;
15583 }
15584 _ACEOF
15585 if ac_fn_c_try_compile "$LINENO"; then :
15586 ac_cv_c_bigendian=yes
15587 else
15588 ac_cv_c_bigendian=no
15589 fi
15590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 fi
15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593 fi
15594 if test $ac_cv_c_bigendian = unknown; then
15595 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h. */
15598 #include <limits.h>
15599
15600 int
15601 main ()
15602 {
15603 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15604 bogus endian macros
15605 #endif
15606
15607 ;
15608 return 0;
15609 }
15610 _ACEOF
15611 if ac_fn_c_try_compile "$LINENO"; then :
15612 # It does; now see whether it defined to _BIG_ENDIAN or not.
15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614 /* end confdefs.h. */
15615 #include <limits.h>
15616
15617 int
15618 main ()
15619 {
15620 #ifndef _BIG_ENDIAN
15621 not big endian
15622 #endif
15623
15624 ;
15625 return 0;
15626 }
15627 _ACEOF
15628 if ac_fn_c_try_compile "$LINENO"; then :
15629 ac_cv_c_bigendian=yes
15630 else
15631 ac_cv_c_bigendian=no
15632 fi
15633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 fi
15635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15636 fi
15637 if test $ac_cv_c_bigendian = unknown; then
15638 # Compile a test program.
15639 if test "$cross_compiling" = yes; then :
15640 # Try to guess by grepping values from an object file.
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 short int ascii_mm[] =
15644 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15645 short int ascii_ii[] =
15646 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15647 int use_ascii (int i) {
15648 return ascii_mm[i] + ascii_ii[i];
15649 }
15650 short int ebcdic_ii[] =
15651 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15652 short int ebcdic_mm[] =
15653 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15654 int use_ebcdic (int i) {
15655 return ebcdic_mm[i] + ebcdic_ii[i];
15656 }
15657 extern int foo;
15658
15659 int
15660 main ()
15661 {
15662 return use_ascii (foo) == use_ebcdic (foo);
15663 ;
15664 return 0;
15665 }
15666 _ACEOF
15667 if ac_fn_c_try_compile "$LINENO"; then :
15668 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15669 ac_cv_c_bigendian=yes
15670 fi
15671 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15672 if test "$ac_cv_c_bigendian" = unknown; then
15673 ac_cv_c_bigendian=no
15674 else
15675 # finding both strings is unlikely to happen, but who knows?
15676 ac_cv_c_bigendian=unknown
15677 fi
15678 fi
15679 fi
15680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681 else
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15684 $ac_includes_default
15685 int
15686 main ()
15687 {
15688
15689 /* Are we little or big endian? From Harbison&Steele. */
15690 union
15691 {
15692 long int l;
15693 char c[sizeof (long int)];
15694 } u;
15695 u.l = 1;
15696 return u.c[sizeof (long int) - 1] == 1;
15697
15698 ;
15699 return 0;
15700 }
15701 _ACEOF
15702 if ac_fn_c_try_run "$LINENO"; then :
15703 ac_cv_c_bigendian=no
15704 else
15705 ac_cv_c_bigendian=yes
15706 fi
15707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15708 conftest.$ac_objext conftest.beam conftest.$ac_ext
15709 fi
15710
15711 fi
15712 fi
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15714 $as_echo "$ac_cv_c_bigendian" >&6; }
15715 case $ac_cv_c_bigendian in #(
15716 yes)
15717 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15718 ;; #(
15719 no)
15720 ;; #(
15721 universal)
15722
15723 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15724
15725 ;; #(
15726 *)
15727 as_fn_error $? "unknown endianness
15728 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15729 esac
15730
15731
15732 # Check whether --enable-largefile was given.
15733 if test "${enable_largefile+set}" = set; then :
15734 enableval=$enable_largefile;
15735 fi
15736
15737 if test "$enable_largefile" != no; then
15738
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15740 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15741 if ${ac_cv_sys_largefile_CC+:} false; then :
15742 $as_echo_n "(cached) " >&6
15743 else
15744 ac_cv_sys_largefile_CC=no
15745 if test "$GCC" != yes; then
15746 ac_save_CC=$CC
15747 while :; do
15748 # IRIX 6.2 and later do not support large files by default,
15749 # so use the C compiler's -n32 option if that helps.
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752 #include <sys/types.h>
15753 /* Check that off_t can represent 2**63 - 1 correctly.
15754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15755 since some C++ compilers masquerading as C compilers
15756 incorrectly reject 9223372036854775807. */
15757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15759 && LARGE_OFF_T % 2147483647 == 1)
15760 ? 1 : -1];
15761 int
15762 main ()
15763 {
15764
15765 ;
15766 return 0;
15767 }
15768 _ACEOF
15769 if ac_fn_c_try_compile "$LINENO"; then :
15770 break
15771 fi
15772 rm -f core conftest.err conftest.$ac_objext
15773 CC="$CC -n32"
15774 if ac_fn_c_try_compile "$LINENO"; then :
15775 ac_cv_sys_largefile_CC=' -n32'; break
15776 fi
15777 rm -f core conftest.err conftest.$ac_objext
15778 break
15779 done
15780 CC=$ac_save_CC
15781 rm -f conftest.$ac_ext
15782 fi
15783 fi
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15785 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15786 if test "$ac_cv_sys_largefile_CC" != no; then
15787 CC=$CC$ac_cv_sys_largefile_CC
15788 fi
15789
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15791 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15792 if ${ac_cv_sys_file_offset_bits+:} false; then :
15793 $as_echo_n "(cached) " >&6
15794 else
15795 while :; do
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 #include <sys/types.h>
15799 /* Check that off_t can represent 2**63 - 1 correctly.
15800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15801 since some C++ compilers masquerading as C compilers
15802 incorrectly reject 9223372036854775807. */
15803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15805 && LARGE_OFF_T % 2147483647 == 1)
15806 ? 1 : -1];
15807 int
15808 main ()
15809 {
15810
15811 ;
15812 return 0;
15813 }
15814 _ACEOF
15815 if ac_fn_c_try_compile "$LINENO"; then :
15816 ac_cv_sys_file_offset_bits=no; break
15817 fi
15818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 #define _FILE_OFFSET_BITS 64
15822 #include <sys/types.h>
15823 /* Check that off_t can represent 2**63 - 1 correctly.
15824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15825 since some C++ compilers masquerading as C compilers
15826 incorrectly reject 9223372036854775807. */
15827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15829 && LARGE_OFF_T % 2147483647 == 1)
15830 ? 1 : -1];
15831 int
15832 main ()
15833 {
15834
15835 ;
15836 return 0;
15837 }
15838 _ACEOF
15839 if ac_fn_c_try_compile "$LINENO"; then :
15840 ac_cv_sys_file_offset_bits=64; break
15841 fi
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843 ac_cv_sys_file_offset_bits=unknown
15844 break
15845 done
15846 fi
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15848 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15849 case $ac_cv_sys_file_offset_bits in #(
15850 no | unknown) ;;
15851 *)
15852 cat >>confdefs.h <<_ACEOF
15853 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15854 _ACEOF
15855 ;;
15856 esac
15857 rm -rf conftest*
15858 if test $ac_cv_sys_file_offset_bits = unknown; then
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15860 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15861 if ${ac_cv_sys_large_files+:} false; then :
15862 $as_echo_n "(cached) " >&6
15863 else
15864 while :; do
15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h. */
15867 #include <sys/types.h>
15868 /* Check that off_t can represent 2**63 - 1 correctly.
15869 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15870 since some C++ compilers masquerading as C compilers
15871 incorrectly reject 9223372036854775807. */
15872 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15874 && LARGE_OFF_T % 2147483647 == 1)
15875 ? 1 : -1];
15876 int
15877 main ()
15878 {
15879
15880 ;
15881 return 0;
15882 }
15883 _ACEOF
15884 if ac_fn_c_try_compile "$LINENO"; then :
15885 ac_cv_sys_large_files=no; break
15886 fi
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15890 #define _LARGE_FILES 1
15891 #include <sys/types.h>
15892 /* Check that off_t can represent 2**63 - 1 correctly.
15893 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15894 since some C++ compilers masquerading as C compilers
15895 incorrectly reject 9223372036854775807. */
15896 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15897 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15898 && LARGE_OFF_T % 2147483647 == 1)
15899 ? 1 : -1];
15900 int
15901 main ()
15902 {
15903
15904 ;
15905 return 0;
15906 }
15907 _ACEOF
15908 if ac_fn_c_try_compile "$LINENO"; then :
15909 ac_cv_sys_large_files=1; break
15910 fi
15911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15912 ac_cv_sys_large_files=unknown
15913 break
15914 done
15915 fi
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15917 $as_echo "$ac_cv_sys_large_files" >&6; }
15918 case $ac_cv_sys_large_files in #(
15919 no | unknown) ;;
15920 *)
15921 cat >>confdefs.h <<_ACEOF
15922 #define _LARGE_FILES $ac_cv_sys_large_files
15923 _ACEOF
15924 ;;
15925 esac
15926 rm -rf conftest*
15927 fi
15928
15929
15930 fi
15931
15932 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15933 if test "x$ac_cv_type_off_t" = xyes; then :
15934
15935 else
15936
15937 cat >>confdefs.h <<_ACEOF
15938 #define off_t long int
15939 _ACEOF
15940
15941 fi
15942
15943 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15944 if test "x$ac_cv_type_size_t" = xyes; then :
15945
15946 else
15947
15948 cat >>confdefs.h <<_ACEOF
15949 #define size_t unsigned int
15950 _ACEOF
15951
15952 fi
15953
15954
15955 platform=none
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform specific tests to compile" >&5
15957 $as_echo_n "checking for platform specific tests to compile... " >&6; }
15958 case "$host_os" in
15959 linux*)
15960 TEST_BIN="linuxtest alsaplay"
15961 platform=linux
15962 ;;
15963 irix5* | irix6*)
15964 TEST_BIN="irixread irixtestloop"
15965 platform=irix
15966 ;;
15967 darwin*)
15968 if test -e /System/Library/Frameworks/CoreAudio.framework; then
15969 TEST_BIN="osxplay"
15970 platform="Mac OS X"
15971 fi
15972 ;;
15973 esac
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform" >&5
15975 $as_echo "$platform" >&6; }
15976
15977
15978 # Check whether --enable-werror was given.
15979 if test "${enable_werror+set}" = set; then :
15980 enableval=$enable_werror; enable_werror=$enableval
15981 else
15982 enable_werror=no
15983 fi
15984
15985 if test "$enable_werror" = "yes"; then
15986 ENABLE_WERROR_TRUE=
15987 ENABLE_WERROR_FALSE='#'
15988 else
15989 ENABLE_WERROR_TRUE='#'
15990 ENABLE_WERROR_FALSE=
15991 fi
15992
15993
15994 if test "$enable_werror" = "yes"; then :
15995 WERROR_CFLAGS="-Werror"
15996
15997 fi
15998
15999 # Check whether --enable-coverage was given.
16000 if test "${enable_coverage+set}" = set; then :
16001 enableval=$enable_coverage; enable_coverage=$enableval
16002 else
16003 enable_coverage=no
16004 fi
16005
16006 if test "$enable_coverage" = "yes"; then
16007 ENABLE_COVERAGE_TRUE=
16008 ENABLE_COVERAGE_FALSE='#'
16009 else
16010 ENABLE_COVERAGE_TRUE='#'
16011 ENABLE_COVERAGE_FALSE=
16012 fi
16013
16014
16015 if test "$enable_coverage" = "yes"; then :
16016 COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage"
16017 COVERAGE_LIBS="-lgcov"
16018
16019
16020
16021 # Extract the first word of "lcov", so it can be a program name with args.
16022 set dummy lcov; ac_word=$2
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16024 $as_echo_n "checking for $ac_word... " >&6; }
16025 if ${ac_cv_path_LCOV+:} false; then :
16026 $as_echo_n "(cached) " >&6
16027 else
16028 case $LCOV in
16029 [\\/]* | ?:[\\/]*)
16030 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
16031 ;;
16032 *)
16033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16034 for as_dir in $PATH
16035 do
16036 IFS=$as_save_IFS
16037 test -z "$as_dir" && as_dir=.
16038 for ac_exec_ext in '' $ac_executable_extensions; do
16039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16040 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
16041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16042 break 2
16043 fi
16044 done
16045 done
16046 IFS=$as_save_IFS
16047
16048 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV=":"
16049 ;;
16050 esac
16051 fi
16052 LCOV=$ac_cv_path_LCOV
16053 if test -n "$LCOV"; then
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
16055 $as_echo "$LCOV" >&6; }
16056 else
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16058 $as_echo "no" >&6; }
16059 fi
16060
16061
16062 # Extract the first word of "genhtml", so it can be a program name with args.
16063 set dummy genhtml; ac_word=$2
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16065 $as_echo_n "checking for $ac_word... " >&6; }
16066 if ${ac_cv_path_GENHTML+:} false; then :
16067 $as_echo_n "(cached) " >&6
16068 else
16069 case $GENHTML in
16070 [\\/]* | ?:[\\/]*)
16071 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
16072 ;;
16073 *)
16074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16075 for as_dir in $PATH
16076 do
16077 IFS=$as_save_IFS
16078 test -z "$as_dir" && as_dir=.
16079 for ac_exec_ext in '' $ac_executable_extensions; do
16080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16081 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
16082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16083 break 2
16084 fi
16085 done
16086 done
16087 IFS=$as_save_IFS
16088
16089 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML=":"
16090 ;;
16091 esac
16092 fi
16093 GENHTML=$ac_cv_path_GENHTML
16094 if test -n "$GENHTML"; then
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
16096 $as_echo "$GENHTML" >&6; }
16097 else
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16099 $as_echo "no" >&6; }
16100 fi
16101
16102
16103
16104
16105 if test "$LCOV" = :; then :
16106 as_fn_error $? "lcov must be installed for code coverage: http://ltp.sourceforge.net/coverage/lcov.php" "$LINENO" 5
16107
16108 fi
16109
16110 fi
16111
16112 # Check whether --enable-valgrind was given.
16113 if test "${enable_valgrind+set}" = set; then :
16114 enableval=$enable_valgrind; enable_valgrind=$enableval
16115 else
16116 enable_valgrind=no
16117 fi
16118
16119 if test "$enable_valgrind" = "yes"; then
16120 ENABLE_VALGRIND_TRUE=
16121 ENABLE_VALGRIND_FALSE='#'
16122 else
16123 ENABLE_VALGRIND_TRUE='#'
16124 ENABLE_VALGRIND_FALSE=
16125 fi
16126
16127
16128 if test "$enable_valgrind" = "yes"; then :
16129 # Extract the first word of "valgrind", so it can be a program name with args.
16130 set dummy valgrind; ac_word=$2
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16132 $as_echo_n "checking for $ac_word... " >&6; }
16133 if ${ac_cv_path_VALGRIND+:} false; then :
16134 $as_echo_n "(cached) " >&6
16135 else
16136 case $VALGRIND in
16137 [\\/]* | ?:[\\/]*)
16138 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
16139 ;;
16140 *)
16141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16142 for as_dir in $PATH
16143 do
16144 IFS=$as_save_IFS
16145 test -z "$as_dir" && as_dir=.
16146 for ac_exec_ext in '' $ac_executable_extensions; do
16147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16148 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
16149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16150 break 2
16151 fi
16152 done
16153 done
16154 IFS=$as_save_IFS
16155
16156 test -z "$ac_cv_path_VALGRIND" && ac_cv_path_VALGRIND=":"
16157 ;;
16158 esac
16159 fi
16160 VALGRIND=$ac_cv_path_VALGRIND
16161 if test -n "$VALGRIND"; then
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
16163 $as_echo "$VALGRIND" >&6; }
16164 else
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16166 $as_echo "no" >&6; }
16167 fi
16168
16169
16170
16171 if test "$VALGRIND" = :; then :
16172 as_fn_error $? "Could not find Valgrind." "$LINENO" 5
16173
16174 fi
16175
16176 fi
16177
16178 # Check whether --enable-docs was given.
16179 if test "${enable_docs+set}" = set; then :
16180 enableval=$enable_docs; enable_documentation=$enableval
16181 else
16182 enable_documentation=yes
16183 fi
16184
16185
16186 if test "$enable_documentation" = "yes"; then
16187 ENABLE_DOCUMENTATION_TRUE=
16188 ENABLE_DOCUMENTATION_FALSE='#'
16189 else
16190 ENABLE_DOCUMENTATION_TRUE='#'
16191 ENABLE_DOCUMENTATION_FALSE=
16192 fi
16193
16194
16195 if test "$enable_documentation" = "yes"; then :
16196 # Extract the first word of "a2x", so it can be a program name with args.
16197 set dummy a2x; ac_word=$2
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16199 $as_echo_n "checking for $ac_word... " >&6; }
16200 if ${ac_cv_path_A2X+:} false; then :
16201 $as_echo_n "(cached) " >&6
16202 else
16203 case $A2X in
16204 [\\/]* | ?:[\\/]*)
16205 ac_cv_path_A2X="$A2X" # Let the user override the test with a path.
16206 ;;
16207 *)
16208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16209 for as_dir in $PATH
16210 do
16211 IFS=$as_save_IFS
16212 test -z "$as_dir" && as_dir=.
16213 for ac_exec_ext in '' $ac_executable_extensions; do
16214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16215 ac_cv_path_A2X="$as_dir/$ac_word$ac_exec_ext"
16216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16217 break 2
16218 fi
16219 done
16220 done
16221 IFS=$as_save_IFS
16222
16223 test -z "$ac_cv_path_A2X" && ac_cv_path_A2X=":"
16224 ;;
16225 esac
16226 fi
16227 A2X=$ac_cv_path_A2X
16228 if test -n "$A2X"; then
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5
16230 $as_echo "$A2X" >&6; }
16231 else
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16233 $as_echo "no" >&6; }
16234 fi
16235
16236
16237 # Extract the first word of "asciidoc", so it can be a program name with args.
16238 set dummy asciidoc; ac_word=$2
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16240 $as_echo_n "checking for $ac_word... " >&6; }
16241 if ${ac_cv_path_ASCIIDOC+:} false; then :
16242 $as_echo_n "(cached) " >&6
16243 else
16244 case $ASCIIDOC in
16245 [\\/]* | ?:[\\/]*)
16246 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
16247 ;;
16248 *)
16249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16250 for as_dir in $PATH
16251 do
16252 IFS=$as_save_IFS
16253 test -z "$as_dir" && as_dir=.
16254 for ac_exec_ext in '' $ac_executable_extensions; do
16255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16256 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
16257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16258 break 2
16259 fi
16260 done
16261 done
16262 IFS=$as_save_IFS
16263
16264 test -z "$ac_cv_path_ASCIIDOC" && ac_cv_path_ASCIIDOC=":"
16265 ;;
16266 esac
16267 fi
16268 ASCIIDOC=$ac_cv_path_ASCIIDOC
16269 if test -n "$ASCIIDOC"; then
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
16271 $as_echo "$ASCIIDOC" >&6; }
16272 else
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16274 $as_echo "no" >&6; }
16275 fi
16276
16277
16278 if test "$A2X" = :; then :
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a2x." >&5
16280 $as_echo "$as_me: WARNING: Could not find a2x." >&2;}
16281
16282 fi
16283 if test "$ASCIIDOC" = :; then :
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find asciidoc." >&5
16285 $as_echo "$as_me: WARNING: Could not find asciidoc." >&2;}
16286
16287 fi
16288
16289 fi
16290
16291 # Check whether --enable-examples was given.
16292 if test "${enable_examples+set}" = set; then :
16293 enableval=$enable_examples; enable_examples=$enableval
16294 else
16295 enable_examples=yes
16296 fi
16297
16298 if test "$enable_examples" != "yes"; then :
16299 TEST_BIN=""
16300 fi
16301
16302 # Check whether --enable-flac was given.
16303 if test "${enable_flac+set}" = set; then :
16304 enableval=$enable_flac; enable_flac=$enableval
16305 else
16306 enable_flac=yes
16307 fi
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16318 if test -n "$ac_tool_prefix"; then
16319 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16320 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16322 $as_echo_n "checking for $ac_word... " >&6; }
16323 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16324 $as_echo_n "(cached) " >&6
16325 else
16326 case $PKG_CONFIG in
16327 [\\/]* | ?:[\\/]*)
16328 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16329 ;;
16330 *)
16331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16332 for as_dir in $PATH
16333 do
16334 IFS=$as_save_IFS
16335 test -z "$as_dir" && as_dir=.
16336 for ac_exec_ext in '' $ac_executable_extensions; do
16337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16338 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16340 break 2
16341 fi
16342 done
16343 done
16344 IFS=$as_save_IFS
16345
16346 ;;
16347 esac
16348 fi
16349 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16350 if test -n "$PKG_CONFIG"; then
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16352 $as_echo "$PKG_CONFIG" >&6; }
16353 else
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16355 $as_echo "no" >&6; }
16356 fi
16357
16358
16359 fi
16360 if test -z "$ac_cv_path_PKG_CONFIG"; then
16361 ac_pt_PKG_CONFIG=$PKG_CONFIG
16362 # Extract the first word of "pkg-config", so it can be a program name with args.
16363 set dummy pkg-config; ac_word=$2
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16365 $as_echo_n "checking for $ac_word... " >&6; }
16366 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16367 $as_echo_n "(cached) " >&6
16368 else
16369 case $ac_pt_PKG_CONFIG in
16370 [\\/]* | ?:[\\/]*)
16371 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16372 ;;
16373 *)
16374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16375 for as_dir in $PATH
16376 do
16377 IFS=$as_save_IFS
16378 test -z "$as_dir" && as_dir=.
16379 for ac_exec_ext in '' $ac_executable_extensions; do
16380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16381 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16383 break 2
16384 fi
16385 done
16386 done
16387 IFS=$as_save_IFS
16388
16389 ;;
16390 esac
16391 fi
16392 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16393 if test -n "$ac_pt_PKG_CONFIG"; then
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16395 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16396 else
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398 $as_echo "no" >&6; }
16399 fi
16400
16401 if test "x$ac_pt_PKG_CONFIG" = x; then
16402 PKG_CONFIG=""
16403 else
16404 case $cross_compiling:$ac_tool_warned in
16405 yes:)
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16408 ac_tool_warned=yes ;;
16409 esac
16410 PKG_CONFIG=$ac_pt_PKG_CONFIG
16411 fi
16412 else
16413 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16414 fi
16415
16416 fi
16417 if test -n "$PKG_CONFIG"; then
16418 _pkg_min_version=0.9.0
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16420 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16421 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16423 $as_echo "yes" >&6; }
16424 else
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16427 PKG_CONFIG=""
16428 fi
16429 fi
16430
16431 FLAC_CFLAGS=""
16432 FLAC_LIBS=""
16433
16434 if test -n "$PKG_CONFIG" ; then
16435 if test "$enable_flac" = "yes" ; then
16436
16437 pkg_failed=no
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC" >&5
16439 $as_echo_n "checking for FLAC... " >&6; }
16440
16441 if test -n "$FLAC_CFLAGS"; then
16442 pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS"
16443 elif test -n "$PKG_CONFIG"; then
16444 if test -n "$PKG_CONFIG" && \
16445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5
16446 ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5
16447 ac_status=$?
16448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16449 test $ac_status = 0; }; then
16450 pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "flac >= 1.2.1" 2>/dev/null`
16451 test "x$?" != "x0" && pkg_failed=yes
16452 else
16453 pkg_failed=yes
16454 fi
16455 else
16456 pkg_failed=untried
16457 fi
16458 if test -n "$FLAC_LIBS"; then
16459 pkg_cv_FLAC_LIBS="$FLAC_LIBS"
16460 elif test -n "$PKG_CONFIG"; then
16461 if test -n "$PKG_CONFIG" && \
16462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5
16463 ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5
16464 ac_status=$?
16465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16466 test $ac_status = 0; }; then
16467 pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "flac >= 1.2.1" 2>/dev/null`
16468 test "x$?" != "x0" && pkg_failed=yes
16469 else
16470 pkg_failed=yes
16471 fi
16472 else
16473 pkg_failed=untried
16474 fi
16475
16476
16477
16478 if test $pkg_failed = yes; then
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16480 $as_echo "no" >&6; }
16481
16482 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16483 _pkg_short_errors_supported=yes
16484 else
16485 _pkg_short_errors_supported=no
16486 fi
16487 if test $_pkg_short_errors_supported = yes; then
16488 FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "flac >= 1.2.1" 2>&1`
16489 else
16490 FLAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "flac >= 1.2.1" 2>&1`
16491 fi
16492 # Put the nasty error message in config.log where it belongs
16493 echo "$FLAC_PKG_ERRORS" >&5
16494
16495 ac_cv_flac=no
16496 elif test $pkg_failed = untried; then
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16498 $as_echo "no" >&6; }
16499 ac_cv_flac=no
16500 else
16501 FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS
16502 FLAC_LIBS=$pkg_cv_FLAC_LIBS
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16504 $as_echo "yes" >&6; }
16505 ac_cv_flac=yes
16506 fi
16507 FLAC_CFLAGS=`echo $FLAC_CFLAGS | $SED "s/FLAC$//"`
16508 if test "$ac_cv_flac" = "no" ; then
16509 enable_flac=no
16510 fi
16511 fi
16512 else
16513 enable_flac=no
16514 fi
16515
16516
16517
16518
16519 if test "$enable_flac" = "yes"; then
16520 ENABLE_FLAC_TRUE=
16521 ENABLE_FLAC_FALSE='#'
16522 else
16523 ENABLE_FLAC_TRUE='#'
16524 ENABLE_FLAC_FALSE=
16525 fi
16526
16527 if test "$enable_flac" = "yes" ; then
16528
16529 cat >>confdefs.h <<_ACEOF
16530 #define ENABLE_FLAC 1
16531 _ACEOF
16532
16533 else
16534
16535 cat >>confdefs.h <<_ACEOF
16536 #define ENABLE_FLAC 0
16537 _ACEOF
16538
16539 fi
16540
16541 ac_config_files="$ac_config_files audiofile.spec audiofile.pc audiofile-uninstalled.pc sfcommands/Makefile test/Makefile gtest/Makefile examples/Makefile libaudiofile/Makefile libaudiofile/alac/Makefile libaudiofile/modules/Makefile docs/Makefile Makefile"
16542
16543 cat >confcache <<\_ACEOF
16544 # This file is a shell script that caches the results of configure
16545 # tests run on this system so they can be shared between configure
16546 # scripts and configure runs, see configure's option --config-cache.
16547 # It is not useful on other systems. If it contains results you don't
16548 # want to keep, you may remove or edit it.
16549 #
16550 # config.status only pays attention to the cache file if you give it
16551 # the --recheck option to rerun configure.
16552 #
16553 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16554 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16555 # following values.
16556
16557 _ACEOF
16558
16559 # The following way of writing the cache mishandles newlines in values,
16560 # but we know of no workaround that is simple, portable, and efficient.
16561 # So, we kill variables containing newlines.
16562 # Ultrix sh set writes to stderr and can't be redirected directly,
16563 # and sets the high bit in the cache file unless we assign to the vars.
16564 (
16565 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16566 eval ac_val=\$$ac_var
16567 case $ac_val in #(
16568 *${as_nl}*)
16569 case $ac_var in #(
16570 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16571 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16572 esac
16573 case $ac_var in #(
16574 _ | IFS | as_nl) ;; #(
16575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16576 *) { eval $ac_var=; unset $ac_var;} ;;
16577 esac ;;
16578 esac
16579 done
16580
16581 (set) 2>&1 |
16582 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16583 *${as_nl}ac_space=\ *)
16584 # `set' does not quote correctly, so add quotes: double-quote
16585 # substitution turns \\\\ into \\, and sed turns \\ into \.
16586 sed -n \
16587 "s/'/'\\\\''/g;
16588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16589 ;; #(
16590 *)
16591 # `set' quotes correctly as required by POSIX, so do not add quotes.
16592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16593 ;;
16594 esac |
16595 sort
16596 ) |
16597 sed '
16598 /^ac_cv_env_/b end
16599 t clear
16600 :clear
16601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16602 t end
16603 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16604 :end' >>confcache
16605 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16606 if test -w "$cache_file"; then
16607 if test "x$cache_file" != "x/dev/null"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16609 $as_echo "$as_me: updating cache $cache_file" >&6;}
16610 if test ! -f "$cache_file" || test -h "$cache_file"; then
16611 cat confcache >"$cache_file"
16612 else
16613 case $cache_file in #(
16614 */* | ?:*)
16615 mv -f confcache "$cache_file"$$ &&
16616 mv -f "$cache_file"$$ "$cache_file" ;; #(
16617 *)
16618 mv -f confcache "$cache_file" ;;
16619 esac
16620 fi
16621 fi
16622 else
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16624 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16625 fi
16626 fi
16627 rm -f confcache
16628
16629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16630 # Let make expand exec_prefix.
16631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16632
16633 DEFS=-DHAVE_CONFIG_H
16634
16635 ac_libobjs=
16636 ac_ltlibobjs=
16637 U=
16638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16639 # 1. Remove the extension, and $U if already installed.
16640 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16641 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16642 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16643 # will be set to the directory where LIBOBJS objects are built.
16644 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16645 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16646 done
16647 LIBOBJS=$ac_libobjs
16648
16649 LTLIBOBJS=$ac_ltlibobjs
16650
16651
16652 if test -n "$EXEEXT"; then
16653 am__EXEEXT_TRUE=
16654 am__EXEEXT_FALSE='#'
16655 else
16656 am__EXEEXT_TRUE='#'
16657 am__EXEEXT_FALSE=
16658 fi
16659
16660 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16661 as_fn_error $? "conditional \"AMDEP\" was never defined.
16662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16663 fi
16664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16665 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16667 fi
16668 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16669 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16671 fi
16672
16673 if test -z "${ENABLE_WERROR_TRUE}" && test -z "${ENABLE_WERROR_FALSE}"; then
16674 as_fn_error $? "conditional \"ENABLE_WERROR\" was never defined.
16675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16676 fi
16677 if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
16678 as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
16679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16680 fi
16681 if test -z "${ENABLE_VALGRIND_TRUE}" && test -z "${ENABLE_VALGRIND_FALSE}"; then
16682 as_fn_error $? "conditional \"ENABLE_VALGRIND\" was never defined.
16683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16684 fi
16685 if test -z "${ENABLE_DOCUMENTATION_TRUE}" && test -z "${ENABLE_DOCUMENTATION_FALSE}"; then
16686 as_fn_error $? "conditional \"ENABLE_DOCUMENTATION\" was never defined.
16687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16688 fi
16689 if test -z "${ENABLE_FLAC_TRUE}" && test -z "${ENABLE_FLAC_FALSE}"; then
16690 as_fn_error $? "conditional \"ENABLE_FLAC\" was never defined.
16691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16692 fi
16693
16694 : "${CONFIG_STATUS=./config.status}"
16695 ac_write_fail=0
16696 ac_clean_files_save=$ac_clean_files
16697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16699 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16700 as_write_fail=0
16701 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16702 #! $SHELL
16703 # Generated by $as_me.
16704 # Run this file to recreate the current configuration.
16705 # Compiler output produced by configure, useful for debugging
16706 # configure, is in config.log if it exists.
16707
16708 debug=false
16709 ac_cs_recheck=false
16710 ac_cs_silent=false
16711
16712 SHELL=\${CONFIG_SHELL-$SHELL}
16713 export SHELL
16714 _ASEOF
16715 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16716 ## -------------------- ##
16717 ## M4sh Initialization. ##
16718 ## -------------------- ##
16719
16720 # Be more Bourne compatible
16721 DUALCASE=1; export DUALCASE # for MKS sh
16722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16723 emulate sh
16724 NULLCMD=:
16725 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16726 # is contrary to our usage. Disable this feature.
16727 alias -g '${1+"$@"}'='"$@"'
16728 setopt NO_GLOB_SUBST
16729 else
16730 case `(set -o) 2>/dev/null` in #(
16731 *posix*) :
16732 set -o posix ;; #(
16733 *) :
16734 ;;
16735 esac
16736 fi
16737
16738
16739 as_nl='
16740 '
16741 export as_nl
16742 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16743 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16744 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16746 # Prefer a ksh shell builtin over an external printf program on Solaris,
16747 # but without wasting forks for bash or zsh.
16748 if test -z "$BASH_VERSION$ZSH_VERSION" \
16749 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16750 as_echo='print -r --'
16751 as_echo_n='print -rn --'
16752 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16753 as_echo='printf %s\n'
16754 as_echo_n='printf %s'
16755 else
16756 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16757 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16758 as_echo_n='/usr/ucb/echo -n'
16759 else
16760 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16761 as_echo_n_body='eval
16762 arg=$1;
16763 case $arg in #(
16764 *"$as_nl"*)
16765 expr "X$arg" : "X\\(.*\\)$as_nl";
16766 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16767 esac;
16768 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16769 '
16770 export as_echo_n_body
16771 as_echo_n='sh -c $as_echo_n_body as_echo'
16772 fi
16773 export as_echo_body
16774 as_echo='sh -c $as_echo_body as_echo'
16775 fi
16776
16777 # The user is always right.
16778 if test "${PATH_SEPARATOR+set}" != set; then
16779 PATH_SEPARATOR=:
16780 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16781 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16782 PATH_SEPARATOR=';'
16783 }
16784 fi
16785
16786
16787 # IFS
16788 # We need space, tab and new line, in precisely that order. Quoting is
16789 # there to prevent editors from complaining about space-tab.
16790 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16791 # splitting by setting IFS to empty value.)
16792 IFS=" "" $as_nl"
16793
16794 # Find who we are. Look in the path if we contain no directory separator.
16795 as_myself=
16796 case $0 in #((
16797 *[\\/]* ) as_myself=$0 ;;
16798 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16799 for as_dir in $PATH
16800 do
16801 IFS=$as_save_IFS
16802 test -z "$as_dir" && as_dir=.
16803 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16804 done
16805 IFS=$as_save_IFS
16806
16807 ;;
16808 esac
16809 # We did not find ourselves, most probably we were run as `sh COMMAND'
16810 # in which case we are not to be found in the path.
16811 if test "x$as_myself" = x; then
16812 as_myself=$0
16813 fi
16814 if test ! -f "$as_myself"; then
16815 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16816 exit 1
16817 fi
16818
16819 # Unset variables that we do not need and which cause bugs (e.g. in
16820 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16821 # suppresses any "Segmentation fault" message there. '((' could
16822 # trigger a bug in pdksh 5.2.14.
16823 for as_var in BASH_ENV ENV MAIL MAILPATH
16824 do eval test x\${$as_var+set} = xset \
16825 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16826 done
16827 PS1='$ '
16828 PS2='> '
16829 PS4='+ '
16830
16831 # NLS nuisances.
16832 LC_ALL=C
16833 export LC_ALL
16834 LANGUAGE=C
16835 export LANGUAGE
16836
16837 # CDPATH.
16838 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16839
16840
16841 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16842 # ----------------------------------------
16843 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16844 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16845 # script with STATUS, using 1 if that was 0.
16846 as_fn_error ()
16847 {
16848 as_status=$1; test $as_status -eq 0 && as_status=1
16849 if test "$4"; then
16850 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16851 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16852 fi
16853 $as_echo "$as_me: error: $2" >&2
16854 as_fn_exit $as_status
16855 } # as_fn_error
16856
16857
16858 # as_fn_set_status STATUS
16859 # -----------------------
16860 # Set $? to STATUS, without forking.
16861 as_fn_set_status ()
16862 {
16863 return $1
16864 } # as_fn_set_status
16865
16866 # as_fn_exit STATUS
16867 # -----------------
16868 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16869 as_fn_exit ()
16870 {
16871 set +e
16872 as_fn_set_status $1
16873 exit $1
16874 } # as_fn_exit
16875
16876 # as_fn_unset VAR
16877 # ---------------
16878 # Portably unset VAR.
16879 as_fn_unset ()
16880 {
16881 { eval $1=; unset $1;}
16882 }
16883 as_unset=as_fn_unset
16884 # as_fn_append VAR VALUE
16885 # ----------------------
16886 # Append the text in VALUE to the end of the definition contained in VAR. Take
16887 # advantage of any shell optimizations that allow amortized linear growth over
16888 # repeated appends, instead of the typical quadratic growth present in naive
16889 # implementations.
16890 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16891 eval 'as_fn_append ()
16892 {
16893 eval $1+=\$2
16894 }'
16895 else
16896 as_fn_append ()
16897 {
16898 eval $1=\$$1\$2
16899 }
16900 fi # as_fn_append
16901
16902 # as_fn_arith ARG...
16903 # ------------------
16904 # Perform arithmetic evaluation on the ARGs, and store the result in the
16905 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16906 # must be portable across $(()) and expr.
16907 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16908 eval 'as_fn_arith ()
16909 {
16910 as_val=$(( $* ))
16911 }'
16912 else
16913 as_fn_arith ()
16914 {
16915 as_val=`expr "$@" || test $? -eq 1`
16916 }
16917 fi # as_fn_arith
16918
16919
16920 if expr a : '\(a\)' >/dev/null 2>&1 &&
16921 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16922 as_expr=expr
16923 else
16924 as_expr=false
16925 fi
16926
16927 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16928 as_basename=basename
16929 else
16930 as_basename=false
16931 fi
16932
16933 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16934 as_dirname=dirname
16935 else
16936 as_dirname=false
16937 fi
16938
16939 as_me=`$as_basename -- "$0" ||
16940 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16941 X"$0" : 'X\(//\)$' \| \
16942 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16943 $as_echo X/"$0" |
16944 sed '/^.*\/\([^/][^/]*\)\/*$/{
16945 s//\1/
16946 q
16947 }
16948 /^X\/\(\/\/\)$/{
16949 s//\1/
16950 q
16951 }
16952 /^X\/\(\/\).*/{
16953 s//\1/
16954 q
16955 }
16956 s/.*/./; q'`
16957
16958 # Avoid depending upon Character Ranges.
16959 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16960 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16961 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16962 as_cr_digits='0123456789'
16963 as_cr_alnum=$as_cr_Letters$as_cr_digits
16964
16965 ECHO_C= ECHO_N= ECHO_T=
16966 case `echo -n x` in #(((((
16967 -n*)
16968 case `echo 'xy\c'` in
16969 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16970 xy) ECHO_C='\c';;
16971 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16972 ECHO_T=' ';;
16973 esac;;
16974 *)
16975 ECHO_N='-n';;
16976 esac
16977
16978 rm -f conf$$ conf$$.exe conf$$.file
16979 if test -d conf$$.dir; then
16980 rm -f conf$$.dir/conf$$.file
16981 else
16982 rm -f conf$$.dir
16983 mkdir conf$$.dir 2>/dev/null
16984 fi
16985 if (echo >conf$$.file) 2>/dev/null; then
16986 if ln -s conf$$.file conf$$ 2>/dev/null; then
16987 as_ln_s='ln -s'
16988 # ... but there are two gotchas:
16989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16991 # In both cases, we have to default to `cp -pR'.
16992 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16993 as_ln_s='cp -pR'
16994 elif ln conf$$.file conf$$ 2>/dev/null; then
16995 as_ln_s=ln
16996 else
16997 as_ln_s='cp -pR'
16998 fi
16999 else
17000 as_ln_s='cp -pR'
17001 fi
17002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17003 rmdir conf$$.dir 2>/dev/null
17004
17005
17006 # as_fn_mkdir_p
17007 # -------------
17008 # Create "$as_dir" as a directory, including parents if necessary.
17009 as_fn_mkdir_p ()
17010 {
17011
17012 case $as_dir in #(
17013 -*) as_dir=./$as_dir;;
17014 esac
17015 test -d "$as_dir" || eval $as_mkdir_p || {
17016 as_dirs=
17017 while :; do
17018 case $as_dir in #(
17019 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17020 *) as_qdir=$as_dir;;
17021 esac
17022 as_dirs="'$as_qdir' $as_dirs"
17023 as_dir=`$as_dirname -- "$as_dir" ||
17024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17025 X"$as_dir" : 'X\(//\)[^/]' \| \
17026 X"$as_dir" : 'X\(//\)$' \| \
17027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17028 $as_echo X"$as_dir" |
17029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17030 s//\1/
17031 q
17032 }
17033 /^X\(\/\/\)[^/].*/{
17034 s//\1/
17035 q
17036 }
17037 /^X\(\/\/\)$/{
17038 s//\1/
17039 q
17040 }
17041 /^X\(\/\).*/{
17042 s//\1/
17043 q
17044 }
17045 s/.*/./; q'`
17046 test -d "$as_dir" && break
17047 done
17048 test -z "$as_dirs" || eval "mkdir $as_dirs"
17049 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17050
17051
17052 } # as_fn_mkdir_p
17053 if mkdir -p . 2>/dev/null; then
17054 as_mkdir_p='mkdir -p "$as_dir"'
17055 else
17056 test -d ./-p && rmdir ./-p
17057 as_mkdir_p=false
17058 fi
17059
17060
17061 # as_fn_executable_p FILE
17062 # -----------------------
17063 # Test if FILE is an executable regular file.
17064 as_fn_executable_p ()
17065 {
17066 test -f "$1" && test -x "$1"
17067 } # as_fn_executable_p
17068 as_test_x='test -x'
17069 as_executable_p=as_fn_executable_p
17070
17071 # Sed expression to map a string onto a valid CPP name.
17072 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17073
17074 # Sed expression to map a string onto a valid variable name.
17075 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17076
17077
17078 exec 6>&1
17079 ## ----------------------------------- ##
17080 ## Main body of $CONFIG_STATUS script. ##
17081 ## ----------------------------------- ##
17082 _ASEOF
17083 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17084
17085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17086 # Save the log message, to keep $0 and so on meaningful, and to
17087 # report actual input values of CONFIG_FILES etc. instead of their
17088 # values after options handling.
17089 ac_log="
17090 This file was extended by audiofile $as_me 0.3.6, which was
17091 generated by GNU Autoconf 2.69. Invocation command line was
17092
17093 CONFIG_FILES = $CONFIG_FILES
17094 CONFIG_HEADERS = $CONFIG_HEADERS
17095 CONFIG_LINKS = $CONFIG_LINKS
17096 CONFIG_COMMANDS = $CONFIG_COMMANDS
17097 $ $0 $@
17098
17099 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17100 "
17101
17102 _ACEOF
17103
17104 case $ac_config_files in *"
17105 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17106 esac
17107
17108 case $ac_config_headers in *"
17109 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17110 esac
17111
17112
17113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17114 # Files that config.status was made for.
17115 config_files="$ac_config_files"
17116 config_headers="$ac_config_headers"
17117 config_commands="$ac_config_commands"
17118
17119 _ACEOF
17120
17121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17122 ac_cs_usage="\
17123 \`$as_me' instantiates files and other configuration actions
17124 from templates according to the current configuration. Unless the files
17125 and actions are specified as TAGs, all are instantiated by default.
17126
17127 Usage: $0 [OPTION]... [TAG]...
17128
17129 -h, --help print this help, then exit
17130 -V, --version print version number and configuration settings, then exit
17131 --config print configuration, then exit
17132 -q, --quiet, --silent
17133 do not print progress messages
17134 -d, --debug don't remove temporary files
17135 --recheck update $as_me by reconfiguring in the same conditions
17136 --file=FILE[:TEMPLATE]
17137 instantiate the configuration file FILE
17138 --header=FILE[:TEMPLATE]
17139 instantiate the configuration header FILE
17140
17141 Configuration files:
17142 $config_files
17143
17144 Configuration headers:
17145 $config_headers
17146
17147 Configuration commands:
17148 $config_commands
17149
17150 Report bugs to the package provider."
17151
17152 _ACEOF
17153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17154 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17155 ac_cs_version="\\
17156 audiofile config.status 0.3.6
17157 configured by $0, generated by GNU Autoconf 2.69,
17158 with options \\"\$ac_cs_config\\"
17159
17160 Copyright (C) 2012 Free Software Foundation, Inc.
17161 This config.status script is free software; the Free Software Foundation
17162 gives unlimited permission to copy, distribute and modify it."
17163
17164 ac_pwd='$ac_pwd'
17165 srcdir='$srcdir'
17166 INSTALL='$INSTALL'
17167 MKDIR_P='$MKDIR_P'
17168 AWK='$AWK'
17169 test -n "\$AWK" || AWK=awk
17170 _ACEOF
17171
17172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17173 # The default lists apply if the user does not specify any file.
17174 ac_need_defaults=:
17175 while test $# != 0
17176 do
17177 case $1 in
17178 --*=?*)
17179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17180 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17181 ac_shift=:
17182 ;;
17183 --*=)
17184 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17185 ac_optarg=
17186 ac_shift=:
17187 ;;
17188 *)
17189 ac_option=$1
17190 ac_optarg=$2
17191 ac_shift=shift
17192 ;;
17193 esac
17194
17195 case $ac_option in
17196 # Handling of the options.
17197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17198 ac_cs_recheck=: ;;
17199 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17200 $as_echo "$ac_cs_version"; exit ;;
17201 --config | --confi | --conf | --con | --co | --c )
17202 $as_echo "$ac_cs_config"; exit ;;
17203 --debug | --debu | --deb | --de | --d | -d )
17204 debug=: ;;
17205 --file | --fil | --fi | --f )
17206 $ac_shift
17207 case $ac_optarg in
17208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17209 '') as_fn_error $? "missing file argument" ;;
17210 esac
17211 as_fn_append CONFIG_FILES " '$ac_optarg'"
17212 ac_need_defaults=false;;
17213 --header | --heade | --head | --hea )
17214 $ac_shift
17215 case $ac_optarg in
17216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17217 esac
17218 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17219 ac_need_defaults=false;;
17220 --he | --h)
17221 # Conflict between --help and --header
17222 as_fn_error $? "ambiguous option: \`$1'
17223 Try \`$0 --help' for more information.";;
17224 --help | --hel | -h )
17225 $as_echo "$ac_cs_usage"; exit ;;
17226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17227 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17228 ac_cs_silent=: ;;
17229
17230 # This is an error.
17231 -*) as_fn_error $? "unrecognized option: \`$1'
17232 Try \`$0 --help' for more information." ;;
17233
17234 *) as_fn_append ac_config_targets " $1"
17235 ac_need_defaults=false ;;
17236
17237 esac
17238 shift
17239 done
17240
17241 ac_configure_extra_args=
17242
17243 if $ac_cs_silent; then
17244 exec 6>/dev/null
17245 ac_configure_extra_args="$ac_configure_extra_args --silent"
17246 fi
17247
17248 _ACEOF
17249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17250 if \$ac_cs_recheck; then
17251 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17252 shift
17253 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17254 CONFIG_SHELL='$SHELL'
17255 export CONFIG_SHELL
17256 exec "\$@"
17257 fi
17258
17259 _ACEOF
17260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17261 exec 5>>config.log
17262 {
17263 echo
17264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17265 ## Running $as_me. ##
17266 _ASBOX
17267 $as_echo "$ac_log"
17268 } >&5
17269
17270 _ACEOF
17271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17272 #
17273 # INIT-COMMANDS
17274 #
17275 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17276
17277
17278 # The HP-UX ksh and POSIX shell print the target directory to stdout
17279 # if CDPATH is set.
17280 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17281
17282 sed_quote_subst='$sed_quote_subst'
17283 double_quote_subst='$double_quote_subst'
17284 delay_variable_subst='$delay_variable_subst'
17285 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17286 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17287 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17288 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17289 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17290 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17291 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17292 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17293 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17294 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17295 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17296 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17297 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17298 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17299 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17300 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17301 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17302 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17303 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17304 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17305 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17306 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17307 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17308 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17309 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17310 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17311 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17312 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17313 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17314 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17315 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17316 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17317 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17318 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17319 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17320 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17321 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17322 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17323 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17324 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17325 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17326 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17327 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17328 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17329 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17330 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17331 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17332 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17333 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17334 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17335 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17336 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17337 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17338 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17339 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17340 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17341 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"`'
17342 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17343 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17344 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17345 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17346 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17347 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17348 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17349 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17350 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17351 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17352 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17353 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17354 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17355 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17356 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17357 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17358 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17359 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17360 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17361 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17362 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17363 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17364 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17365 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17366 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17367 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17368 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17369 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17370 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17371 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17372 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17373 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17374 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17375 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17376 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17377 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17378 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17379 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17380 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17381 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17382 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17383 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17384 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17385 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17386 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17387 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17388 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17389 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17390 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17391 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17392 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17393 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17394 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17395 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17396 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17397 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17398 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17399 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17400 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17401 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17402 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17403 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17404 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17405 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17406 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17407 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17408 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17409 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17410 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17411 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17412 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17413 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17414 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17415 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17416 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17417 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17418 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17419 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17420 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17421 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17422 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17423 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17424 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17425 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17426 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17427 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17428 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17429 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17430 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17431 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17432 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17433 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17434 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17435 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17436 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17437 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17438 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17439 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17440 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17441 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17442 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17443 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17444 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17445 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17446 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17447 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17448 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17449 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17450 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17451 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17452 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17453 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17454 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17455 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17456 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17457 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17458 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17459 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17460 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17461 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17462 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17463 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17464 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17465 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17466 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17467 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17468 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17469
17470 LTCC='$LTCC'
17471 LTCFLAGS='$LTCFLAGS'
17472 compiler='$compiler_DEFAULT'
17473
17474 # A function that is used when there is no print builtin or printf.
17475 func_fallback_echo ()
17476 {
17477 eval 'cat <<_LTECHO_EOF
17478 \$1
17479 _LTECHO_EOF'
17480 }
17481
17482 # Quote evaled strings.
17483 for var in SHELL \
17484 ECHO \
17485 PATH_SEPARATOR \
17486 SED \
17487 GREP \
17488 EGREP \
17489 FGREP \
17490 LD \
17491 NM \
17492 LN_S \
17493 lt_SP2NL \
17494 lt_NL2SP \
17495 reload_flag \
17496 OBJDUMP \
17497 deplibs_check_method \
17498 file_magic_cmd \
17499 file_magic_glob \
17500 want_nocaseglob \
17501 DLLTOOL \
17502 sharedlib_from_linklib_cmd \
17503 AR \
17504 AR_FLAGS \
17505 archiver_list_spec \
17506 STRIP \
17507 RANLIB \
17508 CC \
17509 CFLAGS \
17510 compiler \
17511 lt_cv_sys_global_symbol_pipe \
17512 lt_cv_sys_global_symbol_to_cdecl \
17513 lt_cv_sys_global_symbol_to_c_name_address \
17514 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17515 nm_file_list_spec \
17516 lt_prog_compiler_no_builtin_flag \
17517 lt_prog_compiler_pic \
17518 lt_prog_compiler_wl \
17519 lt_prog_compiler_static \
17520 lt_cv_prog_compiler_c_o \
17521 need_locks \
17522 MANIFEST_TOOL \
17523 DSYMUTIL \
17524 NMEDIT \
17525 LIPO \
17526 OTOOL \
17527 OTOOL64 \
17528 shrext_cmds \
17529 export_dynamic_flag_spec \
17530 whole_archive_flag_spec \
17531 compiler_needs_object \
17532 with_gnu_ld \
17533 allow_undefined_flag \
17534 no_undefined_flag \
17535 hardcode_libdir_flag_spec \
17536 hardcode_libdir_separator \
17537 exclude_expsyms \
17538 include_expsyms \
17539 file_list_spec \
17540 variables_saved_for_relink \
17541 libname_spec \
17542 library_names_spec \
17543 soname_spec \
17544 install_override_mode \
17545 finish_eval \
17546 old_striplib \
17547 striplib \
17548 compiler_lib_search_dirs \
17549 predep_objects \
17550 postdep_objects \
17551 predeps \
17552 postdeps \
17553 compiler_lib_search_path \
17554 LD_CXX \
17555 reload_flag_CXX \
17556 compiler_CXX \
17557 lt_prog_compiler_no_builtin_flag_CXX \
17558 lt_prog_compiler_pic_CXX \
17559 lt_prog_compiler_wl_CXX \
17560 lt_prog_compiler_static_CXX \
17561 lt_cv_prog_compiler_c_o_CXX \
17562 export_dynamic_flag_spec_CXX \
17563 whole_archive_flag_spec_CXX \
17564 compiler_needs_object_CXX \
17565 with_gnu_ld_CXX \
17566 allow_undefined_flag_CXX \
17567 no_undefined_flag_CXX \
17568 hardcode_libdir_flag_spec_CXX \
17569 hardcode_libdir_separator_CXX \
17570 exclude_expsyms_CXX \
17571 include_expsyms_CXX \
17572 file_list_spec_CXX \
17573 compiler_lib_search_dirs_CXX \
17574 predep_objects_CXX \
17575 postdep_objects_CXX \
17576 predeps_CXX \
17577 postdeps_CXX \
17578 compiler_lib_search_path_CXX; do
17579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17580 *[\\\\\\\`\\"\\\$]*)
17581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17582 ;;
17583 *)
17584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17585 ;;
17586 esac
17587 done
17588
17589 # Double-quote double-evaled strings.
17590 for var in reload_cmds \
17591 old_postinstall_cmds \
17592 old_postuninstall_cmds \
17593 old_archive_cmds \
17594 extract_expsyms_cmds \
17595 old_archive_from_new_cmds \
17596 old_archive_from_expsyms_cmds \
17597 archive_cmds \
17598 archive_expsym_cmds \
17599 module_cmds \
17600 module_expsym_cmds \
17601 export_symbols_cmds \
17602 prelink_cmds \
17603 postlink_cmds \
17604 postinstall_cmds \
17605 postuninstall_cmds \
17606 finish_cmds \
17607 sys_lib_search_path_spec \
17608 sys_lib_dlsearch_path_spec \
17609 reload_cmds_CXX \
17610 old_archive_cmds_CXX \
17611 old_archive_from_new_cmds_CXX \
17612 old_archive_from_expsyms_cmds_CXX \
17613 archive_cmds_CXX \
17614 archive_expsym_cmds_CXX \
17615 module_cmds_CXX \
17616 module_expsym_cmds_CXX \
17617 export_symbols_cmds_CXX \
17618 prelink_cmds_CXX \
17619 postlink_cmds_CXX; do
17620 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17621 *[\\\\\\\`\\"\\\$]*)
17622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17623 ;;
17624 *)
17625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17626 ;;
17627 esac
17628 done
17629
17630 ac_aux_dir='$ac_aux_dir'
17631 xsi_shell='$xsi_shell'
17632 lt_shell_append='$lt_shell_append'
17633
17634 # See if we are running on zsh, and set the options which allow our
17635 # commands through without removal of \ escapes INIT.
17636 if test -n "\${ZSH_VERSION+set}" ; then
17637 setopt NO_GLOB_SUBST
17638 fi
17639
17640
17641 PACKAGE='$PACKAGE'
17642 VERSION='$VERSION'
17643 TIMESTAMP='$TIMESTAMP'
17644 RM='$RM'
17645 ofile='$ofile'
17646
17647
17648
17649
17650
17651
17652 _ACEOF
17653
17654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17655
17656 # Handling of arguments.
17657 for ac_config_target in $ac_config_targets
17658 do
17659 case $ac_config_target in
17660 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17661 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17662 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17663 "audiofile.spec") CONFIG_FILES="$CONFIG_FILES audiofile.spec" ;;
17664 "audiofile.pc") CONFIG_FILES="$CONFIG_FILES audiofile.pc" ;;
17665 "audiofile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES audiofile-uninstalled.pc" ;;
17666 "sfcommands/Makefile") CONFIG_FILES="$CONFIG_FILES sfcommands/Makefile" ;;
17667 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17668 "gtest/Makefile") CONFIG_FILES="$CONFIG_FILES gtest/Makefile" ;;
17669 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17670 "libaudiofile/Makefile") CONFIG_FILES="$CONFIG_FILES libaudiofile/Makefile" ;;
17671 "libaudiofile/alac/Makefile") CONFIG_FILES="$CONFIG_FILES libaudiofile/alac/Makefile" ;;
17672 "libaudiofile/modules/Makefile") CONFIG_FILES="$CONFIG_FILES libaudiofile/modules/Makefile" ;;
17673 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17674 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17675
17676 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17677 esac
17678 done
17679
17680
17681 # If the user did not use the arguments to specify the items to instantiate,
17682 # then the envvar interface is used. Set only those that are not.
17683 # We use the long form for the default assignment because of an extremely
17684 # bizarre bug on SunOS 4.1.3.
17685 if $ac_need_defaults; then
17686 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17687 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17688 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17689 fi
17690
17691 # Have a temporary directory for convenience. Make it in the build tree
17692 # simply because there is no reason against having it here, and in addition,
17693 # creating and moving files from /tmp can sometimes cause problems.
17694 # Hook for its removal unless debugging.
17695 # Note that there is a small window in which the directory will not be cleaned:
17696 # after its creation but before its name has been assigned to `$tmp'.
17697 $debug ||
17698 {
17699 tmp= ac_tmp=
17700 trap 'exit_status=$?
17701 : "${ac_tmp:=$tmp}"
17702 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17703 ' 0
17704 trap 'as_fn_exit 1' 1 2 13 15
17705 }
17706 # Create a (secure) tmp directory for tmp files.
17707
17708 {
17709 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17710 test -d "$tmp"
17711 } ||
17712 {
17713 tmp=./conf$$-$RANDOM
17714 (umask 077 && mkdir "$tmp")
17715 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17716 ac_tmp=$tmp
17717
17718 # Set up the scripts for CONFIG_FILES section.
17719 # No need to generate them if there are no CONFIG_FILES.
17720 # This happens for instance with `./config.status config.h'.
17721 if test -n "$CONFIG_FILES"; then
17722
17723
17724 ac_cr=`echo X | tr X '\015'`
17725 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17726 # But we know of no other shell where ac_cr would be empty at this
17727 # point, so we can use a bashism as a fallback.
17728 if test "x$ac_cr" = x; then
17729 eval ac_cr=\$\'\\r\'
17730 fi
17731 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17732 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17733 ac_cs_awk_cr='\\r'
17734 else
17735 ac_cs_awk_cr=$ac_cr
17736 fi
17737
17738 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17739 _ACEOF
17740
17741
17742 {
17743 echo "cat >conf$$subs.awk <<_ACEOF" &&
17744 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17745 echo "_ACEOF"
17746 } >conf$$subs.sh ||
17747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17748 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17749 ac_delim='%!_!# '
17750 for ac_last_try in false false false false false :; do
17751 . ./conf$$subs.sh ||
17752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17753
17754 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17755 if test $ac_delim_n = $ac_delim_num; then
17756 break
17757 elif $ac_last_try; then
17758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17759 else
17760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17761 fi
17762 done
17763 rm -f conf$$subs.sh
17764
17765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17766 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17767 _ACEOF
17768 sed -n '
17769 h
17770 s/^/S["/; s/!.*/"]=/
17771 p
17772 g
17773 s/^[^!]*!//
17774 :repl
17775 t repl
17776 s/'"$ac_delim"'$//
17777 t delim
17778 :nl
17779 h
17780 s/\(.\{148\}\)..*/\1/
17781 t more1
17782 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17783 p
17784 n
17785 b repl
17786 :more1
17787 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17788 p
17789 g
17790 s/.\{148\}//
17791 t nl
17792 :delim
17793 h
17794 s/\(.\{148\}\)..*/\1/
17795 t more2
17796 s/["\\]/\\&/g; s/^/"/; s/$/"/
17797 p
17798 b
17799 :more2
17800 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17801 p
17802 g
17803 s/.\{148\}//
17804 t delim
17805 ' <conf$$subs.awk | sed '
17806 /^[^""]/{
17807 N
17808 s/\n//
17809 }
17810 ' >>$CONFIG_STATUS || ac_write_fail=1
17811 rm -f conf$$subs.awk
17812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17813 _ACAWK
17814 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17815 for (key in S) S_is_set[key] = 1
17816 FS = ""
17817
17818 }
17819 {
17820 line = $ 0
17821 nfields = split(line, field, "@")
17822 substed = 0
17823 len = length(field[1])
17824 for (i = 2; i < nfields; i++) {
17825 key = field[i]
17826 keylen = length(key)
17827 if (S_is_set[key]) {
17828 value = S[key]
17829 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17830 len += length(value) + length(field[++i])
17831 substed = 1
17832 } else
17833 len += 1 + keylen
17834 }
17835
17836 print line
17837 }
17838
17839 _ACAWK
17840 _ACEOF
17841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17842 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17843 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17844 else
17845 cat
17846 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17847 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17848 _ACEOF
17849
17850 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17851 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17852 # trailing colons and then remove the whole line if VPATH becomes empty
17853 # (actually we leave an empty line to preserve line numbers).
17854 if test "x$srcdir" = x.; then
17855 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17856 h
17857 s///
17858 s/^/:/
17859 s/[ ]*$/:/
17860 s/:\$(srcdir):/:/g
17861 s/:\${srcdir}:/:/g
17862 s/:@srcdir@:/:/g
17863 s/^:*//
17864 s/:*$//
17865 x
17866 s/\(=[ ]*\).*/\1/
17867 G
17868 s/\n//
17869 s/^[^=]*=[ ]*$//
17870 }'
17871 fi
17872
17873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17874 fi # test -n "$CONFIG_FILES"
17875
17876 # Set up the scripts for CONFIG_HEADERS section.
17877 # No need to generate them if there are no CONFIG_HEADERS.
17878 # This happens for instance with `./config.status Makefile'.
17879 if test -n "$CONFIG_HEADERS"; then
17880 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17881 BEGIN {
17882 _ACEOF
17883
17884 # Transform confdefs.h into an awk script `defines.awk', embedded as
17885 # here-document in config.status, that substitutes the proper values into
17886 # config.h.in to produce config.h.
17887
17888 # Create a delimiter string that does not exist in confdefs.h, to ease
17889 # handling of long lines.
17890 ac_delim='%!_!# '
17891 for ac_last_try in false false :; do
17892 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17893 if test -z "$ac_tt"; then
17894 break
17895 elif $ac_last_try; then
17896 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17897 else
17898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17899 fi
17900 done
17901
17902 # For the awk script, D is an array of macro values keyed by name,
17903 # likewise P contains macro parameters if any. Preserve backslash
17904 # newline sequences.
17905
17906 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17907 sed -n '
17908 s/.\{148\}/&'"$ac_delim"'/g
17909 t rset
17910 :rset
17911 s/^[ ]*#[ ]*define[ ][ ]*/ /
17912 t def
17913 d
17914 :def
17915 s/\\$//
17916 t bsnl
17917 s/["\\]/\\&/g
17918 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17919 D["\1"]=" \3"/p
17920 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17921 d
17922 :bsnl
17923 s/["\\]/\\&/g
17924 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17925 D["\1"]=" \3\\\\\\n"\\/p
17926 t cont
17927 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17928 t cont
17929 d
17930 :cont
17931 n
17932 s/.\{148\}/&'"$ac_delim"'/g
17933 t clear
17934 :clear
17935 s/\\$//
17936 t bsnlc
17937 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17938 d
17939 :bsnlc
17940 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17941 b cont
17942 ' <confdefs.h | sed '
17943 s/'"$ac_delim"'/"\\\
17944 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17945
17946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17947 for (key in D) D_is_set[key] = 1
17948 FS = ""
17949 }
17950 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17951 line = \$ 0
17952 split(line, arg, " ")
17953 if (arg[1] == "#") {
17954 defundef = arg[2]
17955 mac1 = arg[3]
17956 } else {
17957 defundef = substr(arg[1], 2)
17958 mac1 = arg[2]
17959 }
17960 split(mac1, mac2, "(") #)
17961 macro = mac2[1]
17962 prefix = substr(line, 1, index(line, defundef) - 1)
17963 if (D_is_set[macro]) {
17964 # Preserve the white space surrounding the "#".
17965 print prefix "define", macro P[macro] D[macro]
17966 next
17967 } else {
17968 # Replace #undef with comments. This is necessary, for example,
17969 # in the case of _POSIX_SOURCE, which is predefined and required
17970 # on some systems where configure will not decide to define it.
17971 if (defundef == "undef") {
17972 print "/*", prefix defundef, macro, "*/"
17973 next
17974 }
17975 }
17976 }
17977 { print }
17978 _ACAWK
17979 _ACEOF
17980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17981 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17982 fi # test -n "$CONFIG_HEADERS"
17983
17984
17985 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17986 shift
17987 for ac_tag
17988 do
17989 case $ac_tag in
17990 :[FHLC]) ac_mode=$ac_tag; continue;;
17991 esac
17992 case $ac_mode$ac_tag in
17993 :[FHL]*:*);;
17994 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17995 :[FH]-) ac_tag=-:-;;
17996 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17997 esac
17998 ac_save_IFS=$IFS
17999 IFS=:
18000 set x $ac_tag
18001 IFS=$ac_save_IFS
18002 shift
18003 ac_file=$1
18004 shift
18005
18006 case $ac_mode in
18007 :L) ac_source=$1;;
18008 :[FH])
18009 ac_file_inputs=
18010 for ac_f
18011 do
18012 case $ac_f in
18013 -) ac_f="$ac_tmp/stdin";;
18014 *) # Look for the file first in the build tree, then in the source tree
18015 # (if the path is not absolute). The absolute path cannot be DOS-style,
18016 # because $ac_f cannot contain `:'.
18017 test -f "$ac_f" ||
18018 case $ac_f in
18019 [\\/$]*) false;;
18020 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18021 esac ||
18022 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18023 esac
18024 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18025 as_fn_append ac_file_inputs " '$ac_f'"
18026 done
18027
18028 # Let's still pretend it is `configure' which instantiates (i.e., don't
18029 # use $as_me), people would be surprised to read:
18030 # /* config.h. Generated by config.status. */
18031 configure_input='Generated from '`
18032 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18033 `' by configure.'
18034 if test x"$ac_file" != x-; then
18035 configure_input="$ac_file. $configure_input"
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18037 $as_echo "$as_me: creating $ac_file" >&6;}
18038 fi
18039 # Neutralize special characters interpreted by sed in replacement strings.
18040 case $configure_input in #(
18041 *\&* | *\|* | *\\* )
18042 ac_sed_conf_input=`$as_echo "$configure_input" |
18043 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18044 *) ac_sed_conf_input=$configure_input;;
18045 esac
18046
18047 case $ac_tag in
18048 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18050 esac
18051 ;;
18052 esac
18053
18054 ac_dir=`$as_dirname -- "$ac_file" ||
18055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18056 X"$ac_file" : 'X\(//\)[^/]' \| \
18057 X"$ac_file" : 'X\(//\)$' \| \
18058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18059 $as_echo X"$ac_file" |
18060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18061 s//\1/
18062 q
18063 }
18064 /^X\(\/\/\)[^/].*/{
18065 s//\1/
18066 q
18067 }
18068 /^X\(\/\/\)$/{
18069 s//\1/
18070 q
18071 }
18072 /^X\(\/\).*/{
18073 s//\1/
18074 q
18075 }
18076 s/.*/./; q'`
18077 as_dir="$ac_dir"; as_fn_mkdir_p
18078 ac_builddir=.
18079
18080 case "$ac_dir" in
18081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18082 *)
18083 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18084 # A ".." for each directory in $ac_dir_suffix.
18085 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18086 case $ac_top_builddir_sub in
18087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18089 esac ;;
18090 esac
18091 ac_abs_top_builddir=$ac_pwd
18092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18093 # for backward compatibility:
18094 ac_top_builddir=$ac_top_build_prefix
18095
18096 case $srcdir in
18097 .) # We are building in place.
18098 ac_srcdir=.
18099 ac_top_srcdir=$ac_top_builddir_sub
18100 ac_abs_top_srcdir=$ac_pwd ;;
18101 [\\/]* | ?:[\\/]* ) # Absolute name.
18102 ac_srcdir=$srcdir$ac_dir_suffix;
18103 ac_top_srcdir=$srcdir
18104 ac_abs_top_srcdir=$srcdir ;;
18105 *) # Relative name.
18106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18107 ac_top_srcdir=$ac_top_build_prefix$srcdir
18108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18109 esac
18110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18111
18112
18113 case $ac_mode in
18114 :F)
18115 #
18116 # CONFIG_FILE
18117 #
18118
18119 case $INSTALL in
18120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18121 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18122 esac
18123 ac_MKDIR_P=$MKDIR_P
18124 case $MKDIR_P in
18125 [\\/$]* | ?:[\\/]* ) ;;
18126 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18127 esac
18128 _ACEOF
18129
18130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18131 # If the template does not know about datarootdir, expand it.
18132 # FIXME: This hack should be removed a few years after 2.60.
18133 ac_datarootdir_hack=; ac_datarootdir_seen=
18134 ac_sed_dataroot='
18135 /datarootdir/ {
18136 p
18137 q
18138 }
18139 /@datadir@/p
18140 /@docdir@/p
18141 /@infodir@/p
18142 /@localedir@/p
18143 /@mandir@/p'
18144 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18145 *datarootdir*) ac_datarootdir_seen=yes;;
18146 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18148 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18149 _ACEOF
18150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18151 ac_datarootdir_hack='
18152 s&@datadir@&$datadir&g
18153 s&@docdir@&$docdir&g
18154 s&@infodir@&$infodir&g
18155 s&@localedir@&$localedir&g
18156 s&@mandir@&$mandir&g
18157 s&\\\${datarootdir}&$datarootdir&g' ;;
18158 esac
18159 _ACEOF
18160
18161 # Neutralize VPATH when `$srcdir' = `.'.
18162 # Shell code in configure.ac might set extrasub.
18163 # FIXME: do we really want to maintain this feature?
18164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18165 ac_sed_extra="$ac_vpsub
18166 $extrasub
18167 _ACEOF
18168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18169 :t
18170 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18171 s|@configure_input@|$ac_sed_conf_input|;t t
18172 s&@top_builddir@&$ac_top_builddir_sub&;t t
18173 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18174 s&@srcdir@&$ac_srcdir&;t t
18175 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18176 s&@top_srcdir@&$ac_top_srcdir&;t t
18177 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18178 s&@builddir@&$ac_builddir&;t t
18179 s&@abs_builddir@&$ac_abs_builddir&;t t
18180 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18181 s&@INSTALL@&$ac_INSTALL&;t t
18182 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18183 $ac_datarootdir_hack
18184 "
18185 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18186 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18187
18188 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18189 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18190 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18191 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18193 which seems to be undefined. Please make sure it is defined" >&5
18194 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18195 which seems to be undefined. Please make sure it is defined" >&2;}
18196
18197 rm -f "$ac_tmp/stdin"
18198 case $ac_file in
18199 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18200 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18201 esac \
18202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18203 ;;
18204 :H)
18205 #
18206 # CONFIG_HEADER
18207 #
18208 if test x"$ac_file" != x-; then
18209 {
18210 $as_echo "/* $configure_input */" \
18211 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18212 } >"$ac_tmp/config.h" \
18213 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18214 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18216 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18217 else
18218 rm -f "$ac_file"
18219 mv "$ac_tmp/config.h" "$ac_file" \
18220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18221 fi
18222 else
18223 $as_echo "/* $configure_input */" \
18224 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18225 || as_fn_error $? "could not create -" "$LINENO" 5
18226 fi
18227 # Compute "$ac_file"'s index in $config_headers.
18228 _am_arg="$ac_file"
18229 _am_stamp_count=1
18230 for _am_header in $config_headers :; do
18231 case $_am_header in
18232 $_am_arg | $_am_arg:* )
18233 break ;;
18234 * )
18235 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18236 esac
18237 done
18238 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18239 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18240 X"$_am_arg" : 'X\(//\)[^/]' \| \
18241 X"$_am_arg" : 'X\(//\)$' \| \
18242 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18243 $as_echo X"$_am_arg" |
18244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18245 s//\1/
18246 q
18247 }
18248 /^X\(\/\/\)[^/].*/{
18249 s//\1/
18250 q
18251 }
18252 /^X\(\/\/\)$/{
18253 s//\1/
18254 q
18255 }
18256 /^X\(\/\).*/{
18257 s//\1/
18258 q
18259 }
18260 s/.*/./; q'`/stamp-h$_am_stamp_count
18261 ;;
18262
18263 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18264 $as_echo "$as_me: executing $ac_file commands" >&6;}
18265 ;;
18266 esac
18267
18268
18269 case $ac_file$ac_mode in
18270 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18271 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18272 # are listed without --file. Let's play safe and only enable the eval
18273 # if we detect the quoting.
18274 case $CONFIG_FILES in
18275 *\'*) eval set x "$CONFIG_FILES" ;;
18276 *) set x $CONFIG_FILES ;;
18277 esac
18278 shift
18279 for mf
18280 do
18281 # Strip MF so we end up with the name of the file.
18282 mf=`echo "$mf" | sed -e 's/:.*$//'`
18283 # Check whether this is an Automake generated Makefile or not.
18284 # We used to match only the files named `Makefile.in', but
18285 # some people rename them; so instead we look at the file content.
18286 # Grep'ing the first line is not enough: some people post-process
18287 # each Makefile.in and add a new line on top of each file to say so.
18288 # Grep'ing the whole file is not good either: AIX grep has a line
18289 # limit of 2048, but all sed's we know have understand at least 4000.
18290 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18291 dirpart=`$as_dirname -- "$mf" ||
18292 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18293 X"$mf" : 'X\(//\)[^/]' \| \
18294 X"$mf" : 'X\(//\)$' \| \
18295 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18296 $as_echo X"$mf" |
18297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18298 s//\1/
18299 q
18300 }
18301 /^X\(\/\/\)[^/].*/{
18302 s//\1/
18303 q
18304 }
18305 /^X\(\/\/\)$/{
18306 s//\1/
18307 q
18308 }
18309 /^X\(\/\).*/{
18310 s//\1/
18311 q
18312 }
18313 s/.*/./; q'`
18314 else
18315 continue
18316 fi
18317 # Extract the definition of DEPDIR, am__include, and am__quote
18318 # from the Makefile without running `make'.
18319 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18320 test -z "$DEPDIR" && continue
18321 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18322 test -z "am__include" && continue
18323 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18324 # When using ansi2knr, U may be empty or an underscore; expand it
18325 U=`sed -n 's/^U = //p' < "$mf"`
18326 # Find all dependency output files, they are included files with
18327 # $(DEPDIR) in their names. We invoke sed twice because it is the
18328 # simplest approach to changing $(DEPDIR) to its actual value in the
18329 # expansion.
18330 for file in `sed -n "
18331 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18332 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18333 # Make sure the directory exists.
18334 test -f "$dirpart/$file" && continue
18335 fdir=`$as_dirname -- "$file" ||
18336 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18337 X"$file" : 'X\(//\)[^/]' \| \
18338 X"$file" : 'X\(//\)$' \| \
18339 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18340 $as_echo X"$file" |
18341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18342 s//\1/
18343 q
18344 }
18345 /^X\(\/\/\)[^/].*/{
18346 s//\1/
18347 q
18348 }
18349 /^X\(\/\/\)$/{
18350 s//\1/
18351 q
18352 }
18353 /^X\(\/\).*/{
18354 s//\1/
18355 q
18356 }
18357 s/.*/./; q'`
18358 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18359 # echo "creating $dirpart/$file"
18360 echo '# dummy' > "$dirpart/$file"
18361 done
18362 done
18363 }
18364 ;;
18365 "libtool":C)
18366
18367 # See if we are running on zsh, and set the options which allow our
18368 # commands through without removal of \ escapes.
18369 if test -n "${ZSH_VERSION+set}" ; then
18370 setopt NO_GLOB_SUBST
18371 fi
18372
18373 cfgfile="${ofile}T"
18374 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18375 $RM "$cfgfile"
18376
18377 cat <<_LT_EOF >> "$cfgfile"
18378 #! $SHELL
18379
18380 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18381 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18382 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18383 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18384 #
18385 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18386 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18387 # Foundation, Inc.
18388 # Written by Gordon Matzigkeit, 1996
18389 #
18390 # This file is part of GNU Libtool.
18391 #
18392 # GNU Libtool is free software; you can redistribute it and/or
18393 # modify it under the terms of the GNU General Public License as
18394 # published by the Free Software Foundation; either version 2 of
18395 # the License, or (at your option) any later version.
18396 #
18397 # As a special exception to the GNU General Public License,
18398 # if you distribute this file as part of a program or library that
18399 # is built using GNU Libtool, you may include this file under the
18400 # same distribution terms that you use for the rest of that program.
18401 #
18402 # GNU Libtool is distributed in the hope that it will be useful,
18403 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18404 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18405 # GNU General Public License for more details.
18406 #
18407 # You should have received a copy of the GNU General Public License
18408 # along with GNU Libtool; see the file COPYING. If not, a copy
18409 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18410 # obtained by writing to the Free Software Foundation, Inc.,
18411 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18412
18413
18414 # The names of the tagged configurations supported by this script.
18415 available_tags="CXX "
18416
18417 # ### BEGIN LIBTOOL CONFIG
18418
18419 # Which release of libtool.m4 was used?
18420 macro_version=$macro_version
18421 macro_revision=$macro_revision
18422
18423 # Whether or not to build shared libraries.
18424 build_libtool_libs=$enable_shared
18425
18426 # Whether or not to build static libraries.
18427 build_old_libs=$enable_static
18428
18429 # What type of objects to build.
18430 pic_mode=$pic_mode
18431
18432 # Whether or not to optimize for fast installation.
18433 fast_install=$enable_fast_install
18434
18435 # Shell to use when invoking shell scripts.
18436 SHELL=$lt_SHELL
18437
18438 # An echo program that protects backslashes.
18439 ECHO=$lt_ECHO
18440
18441 # The PATH separator for the build system.
18442 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18443
18444 # The host system.
18445 host_alias=$host_alias
18446 host=$host
18447 host_os=$host_os
18448
18449 # The build system.
18450 build_alias=$build_alias
18451 build=$build
18452 build_os=$build_os
18453
18454 # A sed program that does not truncate output.
18455 SED=$lt_SED
18456
18457 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18458 Xsed="\$SED -e 1s/^X//"
18459
18460 # A grep program that handles long lines.
18461 GREP=$lt_GREP
18462
18463 # An ERE matcher.
18464 EGREP=$lt_EGREP
18465
18466 # A literal string matcher.
18467 FGREP=$lt_FGREP
18468
18469 # A BSD- or MS-compatible name lister.
18470 NM=$lt_NM
18471
18472 # Whether we need soft or hard links.
18473 LN_S=$lt_LN_S
18474
18475 # What is the maximum length of a command?
18476 max_cmd_len=$max_cmd_len
18477
18478 # Object file suffix (normally "o").
18479 objext=$ac_objext
18480
18481 # Executable file suffix (normally "").
18482 exeext=$exeext
18483
18484 # whether the shell understands "unset".
18485 lt_unset=$lt_unset
18486
18487 # turn spaces into newlines.
18488 SP2NL=$lt_lt_SP2NL
18489
18490 # turn newlines into spaces.
18491 NL2SP=$lt_lt_NL2SP
18492
18493 # convert \$build file names to \$host format.
18494 to_host_file_cmd=$lt_cv_to_host_file_cmd
18495
18496 # convert \$build files to toolchain format.
18497 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18498
18499 # An object symbol dumper.
18500 OBJDUMP=$lt_OBJDUMP
18501
18502 # Method to check whether dependent libraries are shared objects.
18503 deplibs_check_method=$lt_deplibs_check_method
18504
18505 # Command to use when deplibs_check_method = "file_magic".
18506 file_magic_cmd=$lt_file_magic_cmd
18507
18508 # How to find potential files when deplibs_check_method = "file_magic".
18509 file_magic_glob=$lt_file_magic_glob
18510
18511 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18512 want_nocaseglob=$lt_want_nocaseglob
18513
18514 # DLL creation program.
18515 DLLTOOL=$lt_DLLTOOL
18516
18517 # Command to associate shared and link libraries.
18518 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18519
18520 # The archiver.
18521 AR=$lt_AR
18522
18523 # Flags to create an archive.
18524 AR_FLAGS=$lt_AR_FLAGS
18525
18526 # How to feed a file listing to the archiver.
18527 archiver_list_spec=$lt_archiver_list_spec
18528
18529 # A symbol stripping program.
18530 STRIP=$lt_STRIP
18531
18532 # Commands used to install an old-style archive.
18533 RANLIB=$lt_RANLIB
18534 old_postinstall_cmds=$lt_old_postinstall_cmds
18535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18536
18537 # Whether to use a lock for old archive extraction.
18538 lock_old_archive_extraction=$lock_old_archive_extraction
18539
18540 # A C compiler.
18541 LTCC=$lt_CC
18542
18543 # LTCC compiler flags.
18544 LTCFLAGS=$lt_CFLAGS
18545
18546 # Take the output of nm and produce a listing of raw symbols and C names.
18547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18548
18549 # Transform the output of nm in a proper C declaration.
18550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18551
18552 # Transform the output of nm in a C name address pair.
18553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18554
18555 # Transform the output of nm in a C name address pair when lib prefix is needed.
18556 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18557
18558 # Specify filename containing input files for \$NM.
18559 nm_file_list_spec=$lt_nm_file_list_spec
18560
18561 # The root where to search for dependent libraries,and in which our libraries should be installed.
18562 lt_sysroot=$lt_sysroot
18563
18564 # The name of the directory that contains temporary libtool files.
18565 objdir=$objdir
18566
18567 # Used to examine libraries when file_magic_cmd begins with "file".
18568 MAGIC_CMD=$MAGIC_CMD
18569
18570 # Must we lock files when doing compilation?
18571 need_locks=$lt_need_locks
18572
18573 # Manifest tool.
18574 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18575
18576 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18577 DSYMUTIL=$lt_DSYMUTIL
18578
18579 # Tool to change global to local symbols on Mac OS X.
18580 NMEDIT=$lt_NMEDIT
18581
18582 # Tool to manipulate fat objects and archives on Mac OS X.
18583 LIPO=$lt_LIPO
18584
18585 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18586 OTOOL=$lt_OTOOL
18587
18588 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18589 OTOOL64=$lt_OTOOL64
18590
18591 # Old archive suffix (normally "a").
18592 libext=$libext
18593
18594 # Shared library suffix (normally ".so").
18595 shrext_cmds=$lt_shrext_cmds
18596
18597 # The commands to extract the exported symbol list from a shared archive.
18598 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18599
18600 # Variables whose values should be saved in libtool wrapper scripts and
18601 # restored at link time.
18602 variables_saved_for_relink=$lt_variables_saved_for_relink
18603
18604 # Do we need the "lib" prefix for modules?
18605 need_lib_prefix=$need_lib_prefix
18606
18607 # Do we need a version for libraries?
18608 need_version=$need_version
18609
18610 # Library versioning type.
18611 version_type=$version_type
18612
18613 # Shared library runtime path variable.
18614 runpath_var=$runpath_var
18615
18616 # Shared library path variable.
18617 shlibpath_var=$shlibpath_var
18618
18619 # Is shlibpath searched before the hard-coded library search path?
18620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18621
18622 # Format of library name prefix.
18623 libname_spec=$lt_libname_spec
18624
18625 # List of archive names. First name is the real one, the rest are links.
18626 # The last name is the one that the linker finds with -lNAME
18627 library_names_spec=$lt_library_names_spec
18628
18629 # The coded name of the library, if different from the real name.
18630 soname_spec=$lt_soname_spec
18631
18632 # Permission mode override for installation of shared libraries.
18633 install_override_mode=$lt_install_override_mode
18634
18635 # Command to use after installation of a shared archive.
18636 postinstall_cmds=$lt_postinstall_cmds
18637
18638 # Command to use after uninstallation of a shared archive.
18639 postuninstall_cmds=$lt_postuninstall_cmds
18640
18641 # Commands used to finish a libtool library installation in a directory.
18642 finish_cmds=$lt_finish_cmds
18643
18644 # As "finish_cmds", except a single script fragment to be evaled but
18645 # not shown.
18646 finish_eval=$lt_finish_eval
18647
18648 # Whether we should hardcode library paths into libraries.
18649 hardcode_into_libs=$hardcode_into_libs
18650
18651 # Compile-time system search path for libraries.
18652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18653
18654 # Run-time system search path for libraries.
18655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18656
18657 # Whether dlopen is supported.
18658 dlopen_support=$enable_dlopen
18659
18660 # Whether dlopen of programs is supported.
18661 dlopen_self=$enable_dlopen_self
18662
18663 # Whether dlopen of statically linked programs is supported.
18664 dlopen_self_static=$enable_dlopen_self_static
18665
18666 # Commands to strip libraries.
18667 old_striplib=$lt_old_striplib
18668 striplib=$lt_striplib
18669
18670
18671 # The linker used to build libraries.
18672 LD=$lt_LD
18673
18674 # How to create reloadable object files.
18675 reload_flag=$lt_reload_flag
18676 reload_cmds=$lt_reload_cmds
18677
18678 # Commands used to build an old-style archive.
18679 old_archive_cmds=$lt_old_archive_cmds
18680
18681 # A language specific compiler.
18682 CC=$lt_compiler
18683
18684 # Is the compiler the GNU compiler?
18685 with_gcc=$GCC
18686
18687 # Compiler flag to turn off builtin functions.
18688 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18689
18690 # Additional compiler flags for building library objects.
18691 pic_flag=$lt_lt_prog_compiler_pic
18692
18693 # How to pass a linker flag through the compiler.
18694 wl=$lt_lt_prog_compiler_wl
18695
18696 # Compiler flag to prevent dynamic linking.
18697 link_static_flag=$lt_lt_prog_compiler_static
18698
18699 # Does compiler simultaneously support -c and -o options?
18700 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18701
18702 # Whether or not to add -lc for building shared libraries.
18703 build_libtool_need_lc=$archive_cmds_need_lc
18704
18705 # Whether or not to disallow shared libs when runtime libs are static.
18706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18707
18708 # Compiler flag to allow reflexive dlopens.
18709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18710
18711 # Compiler flag to generate shared objects directly from archives.
18712 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18713
18714 # Whether the compiler copes with passing no objects directly.
18715 compiler_needs_object=$lt_compiler_needs_object
18716
18717 # Create an old-style archive from a shared archive.
18718 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18719
18720 # Create a temporary old-style archive to link instead of a shared archive.
18721 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18722
18723 # Commands used to build a shared archive.
18724 archive_cmds=$lt_archive_cmds
18725 archive_expsym_cmds=$lt_archive_expsym_cmds
18726
18727 # Commands used to build a loadable module if different from building
18728 # a shared archive.
18729 module_cmds=$lt_module_cmds
18730 module_expsym_cmds=$lt_module_expsym_cmds
18731
18732 # Whether we are building with GNU ld or not.
18733 with_gnu_ld=$lt_with_gnu_ld
18734
18735 # Flag that allows shared libraries with undefined symbols to be built.
18736 allow_undefined_flag=$lt_allow_undefined_flag
18737
18738 # Flag that enforces no undefined symbols.
18739 no_undefined_flag=$lt_no_undefined_flag
18740
18741 # Flag to hardcode \$libdir into a binary during linking.
18742 # This must work even if \$libdir does not exist
18743 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18744
18745 # Whether we need a single "-rpath" flag with a separated argument.
18746 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18747
18748 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18749 # DIR into the resulting binary.
18750 hardcode_direct=$hardcode_direct
18751
18752 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18753 # DIR into the resulting binary and the resulting library dependency is
18754 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18755 # library is relocated.
18756 hardcode_direct_absolute=$hardcode_direct_absolute
18757
18758 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18759 # into the resulting binary.
18760 hardcode_minus_L=$hardcode_minus_L
18761
18762 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18763 # into the resulting binary.
18764 hardcode_shlibpath_var=$hardcode_shlibpath_var
18765
18766 # Set to "yes" if building a shared library automatically hardcodes DIR
18767 # into the library and all subsequent libraries and executables linked
18768 # against it.
18769 hardcode_automatic=$hardcode_automatic
18770
18771 # Set to yes if linker adds runtime paths of dependent libraries
18772 # to runtime path list.
18773 inherit_rpath=$inherit_rpath
18774
18775 # Whether libtool must link a program against all its dependency libraries.
18776 link_all_deplibs=$link_all_deplibs
18777
18778 # Set to "yes" if exported symbols are required.
18779 always_export_symbols=$always_export_symbols
18780
18781 # The commands to list exported symbols.
18782 export_symbols_cmds=$lt_export_symbols_cmds
18783
18784 # Symbols that should not be listed in the preloaded symbols.
18785 exclude_expsyms=$lt_exclude_expsyms
18786
18787 # Symbols that must always be exported.
18788 include_expsyms=$lt_include_expsyms
18789
18790 # Commands necessary for linking programs (against libraries) with templates.
18791 prelink_cmds=$lt_prelink_cmds
18792
18793 # Commands necessary for finishing linking programs.
18794 postlink_cmds=$lt_postlink_cmds
18795
18796 # Specify filename containing input files.
18797 file_list_spec=$lt_file_list_spec
18798
18799 # How to hardcode a shared library path into an executable.
18800 hardcode_action=$hardcode_action
18801
18802 # The directories searched by this compiler when creating a shared library.
18803 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18804
18805 # Dependencies to place before and after the objects being linked to
18806 # create a shared library.
18807 predep_objects=$lt_predep_objects
18808 postdep_objects=$lt_postdep_objects
18809 predeps=$lt_predeps
18810 postdeps=$lt_postdeps
18811
18812 # The library search path used internally by the compiler when linking
18813 # a shared library.
18814 compiler_lib_search_path=$lt_compiler_lib_search_path
18815
18816 # ### END LIBTOOL CONFIG
18817
18818 _LT_EOF
18819
18820 case $host_os in
18821 aix3*)
18822 cat <<\_LT_EOF >> "$cfgfile"
18823 # AIX sometimes has problems with the GCC collect2 program. For some
18824 # reason, if we set the COLLECT_NAMES environment variable, the problems
18825 # vanish in a puff of smoke.
18826 if test "X${COLLECT_NAMES+set}" != Xset; then
18827 COLLECT_NAMES=
18828 export COLLECT_NAMES
18829 fi
18830 _LT_EOF
18831 ;;
18832 esac
18833
18834
18835 ltmain="$ac_aux_dir/ltmain.sh"
18836
18837
18838 # We use sed instead of cat because bash on DJGPP gets confused if
18839 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18840 # text mode, it properly converts lines to CR/LF. This bash problem
18841 # is reportedly fixed, but why not run on old versions too?
18842 sed '$q' "$ltmain" >> "$cfgfile" \
18843 || (rm -f "$cfgfile"; exit 1)
18844
18845 if test x"$xsi_shell" = xyes; then
18846 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18847 func_dirname ()\
18848 {\
18849 \ case ${1} in\
18850 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18851 \ * ) func_dirname_result="${3}" ;;\
18852 \ esac\
18853 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18854 && mv -f "$cfgfile.tmp" "$cfgfile" \
18855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18856 test 0 -eq $? || _lt_function_replace_fail=:
18857
18858
18859 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18860 func_basename ()\
18861 {\
18862 \ func_basename_result="${1##*/}"\
18863 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18864 && mv -f "$cfgfile.tmp" "$cfgfile" \
18865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18866 test 0 -eq $? || _lt_function_replace_fail=:
18867
18868
18869 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18870 func_dirname_and_basename ()\
18871 {\
18872 \ case ${1} in\
18873 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18874 \ * ) func_dirname_result="${3}" ;;\
18875 \ esac\
18876 \ func_basename_result="${1##*/}"\
18877 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18878 && mv -f "$cfgfile.tmp" "$cfgfile" \
18879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18880 test 0 -eq $? || _lt_function_replace_fail=:
18881
18882
18883 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18884 func_stripname ()\
18885 {\
18886 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18887 \ # positional parameters, so assign one to ordinary parameter first.\
18888 \ func_stripname_result=${3}\
18889 \ func_stripname_result=${func_stripname_result#"${1}"}\
18890 \ func_stripname_result=${func_stripname_result%"${2}"}\
18891 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18892 && mv -f "$cfgfile.tmp" "$cfgfile" \
18893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18894 test 0 -eq $? || _lt_function_replace_fail=:
18895
18896
18897 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18898 func_split_long_opt ()\
18899 {\
18900 \ func_split_long_opt_name=${1%%=*}\
18901 \ func_split_long_opt_arg=${1#*=}\
18902 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18903 && mv -f "$cfgfile.tmp" "$cfgfile" \
18904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18905 test 0 -eq $? || _lt_function_replace_fail=:
18906
18907
18908 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18909 func_split_short_opt ()\
18910 {\
18911 \ func_split_short_opt_arg=${1#??}\
18912 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18913 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18914 && mv -f "$cfgfile.tmp" "$cfgfile" \
18915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18916 test 0 -eq $? || _lt_function_replace_fail=:
18917
18918
18919 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18920 func_lo2o ()\
18921 {\
18922 \ case ${1} in\
18923 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18924 \ *) func_lo2o_result=${1} ;;\
18925 \ esac\
18926 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18927 && mv -f "$cfgfile.tmp" "$cfgfile" \
18928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18929 test 0 -eq $? || _lt_function_replace_fail=:
18930
18931
18932 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18933 func_xform ()\
18934 {\
18935 func_xform_result=${1%.*}.lo\
18936 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18937 && mv -f "$cfgfile.tmp" "$cfgfile" \
18938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18939 test 0 -eq $? || _lt_function_replace_fail=:
18940
18941
18942 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18943 func_arith ()\
18944 {\
18945 func_arith_result=$(( $* ))\
18946 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18947 && mv -f "$cfgfile.tmp" "$cfgfile" \
18948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18949 test 0 -eq $? || _lt_function_replace_fail=:
18950
18951
18952 sed -e '/^func_len ()$/,/^} # func_len /c\
18953 func_len ()\
18954 {\
18955 func_len_result=${#1}\
18956 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18957 && mv -f "$cfgfile.tmp" "$cfgfile" \
18958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18959 test 0 -eq $? || _lt_function_replace_fail=:
18960
18961 fi
18962
18963 if test x"$lt_shell_append" = xyes; then
18964 sed -e '/^func_append ()$/,/^} # func_append /c\
18965 func_append ()\
18966 {\
18967 eval "${1}+=\\${2}"\
18968 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18969 && mv -f "$cfgfile.tmp" "$cfgfile" \
18970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18971 test 0 -eq $? || _lt_function_replace_fail=:
18972
18973
18974 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18975 func_append_quoted ()\
18976 {\
18977 \ func_quote_for_eval "${2}"\
18978 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18979 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18980 && mv -f "$cfgfile.tmp" "$cfgfile" \
18981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18982 test 0 -eq $? || _lt_function_replace_fail=:
18983
18984
18985 # Save a `func_append' function call where possible by direct use of '+='
18986 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18987 && mv -f "$cfgfile.tmp" "$cfgfile" \
18988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18989 test 0 -eq $? || _lt_function_replace_fail=:
18990 else
18991 # Save a `func_append' function call even when '+=' is not available
18992 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18993 && mv -f "$cfgfile.tmp" "$cfgfile" \
18994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18995 test 0 -eq $? || _lt_function_replace_fail=:
18996 fi
18997
18998 if test x"$_lt_function_replace_fail" = x":"; then
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19000 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19001 fi
19002
19003
19004 mv -f "$cfgfile" "$ofile" ||
19005 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19006 chmod +x "$ofile"
19007
19008
19009 cat <<_LT_EOF >> "$ofile"
19010
19011 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19012
19013 # The linker used to build libraries.
19014 LD=$lt_LD_CXX
19015
19016 # How to create reloadable object files.
19017 reload_flag=$lt_reload_flag_CXX
19018 reload_cmds=$lt_reload_cmds_CXX
19019
19020 # Commands used to build an old-style archive.
19021 old_archive_cmds=$lt_old_archive_cmds_CXX
19022
19023 # A language specific compiler.
19024 CC=$lt_compiler_CXX
19025
19026 # Is the compiler the GNU compiler?
19027 with_gcc=$GCC_CXX
19028
19029 # Compiler flag to turn off builtin functions.
19030 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19031
19032 # Additional compiler flags for building library objects.
19033 pic_flag=$lt_lt_prog_compiler_pic_CXX
19034
19035 # How to pass a linker flag through the compiler.
19036 wl=$lt_lt_prog_compiler_wl_CXX
19037
19038 # Compiler flag to prevent dynamic linking.
19039 link_static_flag=$lt_lt_prog_compiler_static_CXX
19040
19041 # Does compiler simultaneously support -c and -o options?
19042 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19043
19044 # Whether or not to add -lc for building shared libraries.
19045 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19046
19047 # Whether or not to disallow shared libs when runtime libs are static.
19048 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19049
19050 # Compiler flag to allow reflexive dlopens.
19051 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19052
19053 # Compiler flag to generate shared objects directly from archives.
19054 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19055
19056 # Whether the compiler copes with passing no objects directly.
19057 compiler_needs_object=$lt_compiler_needs_object_CXX
19058
19059 # Create an old-style archive from a shared archive.
19060 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19061
19062 # Create a temporary old-style archive to link instead of a shared archive.
19063 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19064
19065 # Commands used to build a shared archive.
19066 archive_cmds=$lt_archive_cmds_CXX
19067 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19068
19069 # Commands used to build a loadable module if different from building
19070 # a shared archive.
19071 module_cmds=$lt_module_cmds_CXX
19072 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19073
19074 # Whether we are building with GNU ld or not.
19075 with_gnu_ld=$lt_with_gnu_ld_CXX
19076
19077 # Flag that allows shared libraries with undefined symbols to be built.
19078 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19079
19080 # Flag that enforces no undefined symbols.
19081 no_undefined_flag=$lt_no_undefined_flag_CXX
19082
19083 # Flag to hardcode \$libdir into a binary during linking.
19084 # This must work even if \$libdir does not exist
19085 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19086
19087 # Whether we need a single "-rpath" flag with a separated argument.
19088 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19089
19090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19091 # DIR into the resulting binary.
19092 hardcode_direct=$hardcode_direct_CXX
19093
19094 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19095 # DIR into the resulting binary and the resulting library dependency is
19096 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19097 # library is relocated.
19098 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19099
19100 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19101 # into the resulting binary.
19102 hardcode_minus_L=$hardcode_minus_L_CXX
19103
19104 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19105 # into the resulting binary.
19106 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19107
19108 # Set to "yes" if building a shared library automatically hardcodes DIR
19109 # into the library and all subsequent libraries and executables linked
19110 # against it.
19111 hardcode_automatic=$hardcode_automatic_CXX
19112
19113 # Set to yes if linker adds runtime paths of dependent libraries
19114 # to runtime path list.
19115 inherit_rpath=$inherit_rpath_CXX
19116
19117 # Whether libtool must link a program against all its dependency libraries.
19118 link_all_deplibs=$link_all_deplibs_CXX
19119
19120 # Set to "yes" if exported symbols are required.
19121 always_export_symbols=$always_export_symbols_CXX
19122
19123 # The commands to list exported symbols.
19124 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19125
19126 # Symbols that should not be listed in the preloaded symbols.
19127 exclude_expsyms=$lt_exclude_expsyms_CXX
19128
19129 # Symbols that must always be exported.
19130 include_expsyms=$lt_include_expsyms_CXX
19131
19132 # Commands necessary for linking programs (against libraries) with templates.
19133 prelink_cmds=$lt_prelink_cmds_CXX
19134
19135 # Commands necessary for finishing linking programs.
19136 postlink_cmds=$lt_postlink_cmds_CXX
19137
19138 # Specify filename containing input files.
19139 file_list_spec=$lt_file_list_spec_CXX
19140
19141 # How to hardcode a shared library path into an executable.
19142 hardcode_action=$hardcode_action_CXX
19143
19144 # The directories searched by this compiler when creating a shared library.
19145 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19146
19147 # Dependencies to place before and after the objects being linked to
19148 # create a shared library.
19149 predep_objects=$lt_predep_objects_CXX
19150 postdep_objects=$lt_postdep_objects_CXX
19151 predeps=$lt_predeps_CXX
19152 postdeps=$lt_postdeps_CXX
19153
19154 # The library search path used internally by the compiler when linking
19155 # a shared library.
19156 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19157
19158 # ### END LIBTOOL TAG CONFIG: CXX
19159 _LT_EOF
19160
19161 ;;
19162
19163 esac
19164 done # for ac_tag
19165
19166
19167 as_fn_exit 0
19168 _ACEOF
19169 ac_clean_files=$ac_clean_files_save
19170
19171 test $ac_write_fail = 0 ||
19172 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19173
19174
19175 # configure is writing to config.log, and then calls config.status.
19176 # config.status does its own redirection, appending to config.log.
19177 # Unfortunately, on DOS this fails, as config.log is still kept open
19178 # by configure, so config.status won't be able to write to it; its
19179 # output is simply discarded. So we exec the FD to /dev/null,
19180 # effectively closing config.log, so it can be properly (re)opened and
19181 # appended to by config.status. When coming back to configure, we
19182 # need to make the FD available again.
19183 if test "$no_create" != yes; then
19184 ac_cs_success=:
19185 ac_config_status_args=
19186 test "$silent" = yes &&
19187 ac_config_status_args="$ac_config_status_args --quiet"
19188 exec 5>/dev/null
19189 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19190 exec 5>>config.log
19191 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19192 # would make configure fail if this is the last instruction.
19193 $ac_cs_success || as_fn_exit 1
19194 fi
19195 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19197 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19198 fi
19199