Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for speech-dispatcher 0.12.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: [email protected] about your system, including
283 $0: any error possibly output before this message. Then
284 $0: install a modern shell, or manually run the script
285 $0: under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='speech-dispatcher'
616 PACKAGE_TARNAME='speech-dispatcher'
617 PACKAGE_VERSION='0.12.1'
618 PACKAGE_STRING='speech-dispatcher 0.12.1'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stddef.h>
625 #ifdef HAVE_STDIO_H
626 # include <stdio.h>
627 #endif
628 #ifdef HAVE_STDLIB_H
629 # include <stdlib.h>
630 #endif
631 #ifdef HAVE_STRING_H
632 # include <string.h>
633 #endif
634 #ifdef HAVE_INTTYPES_H
635 # include <inttypes.h>
636 #endif
637 #ifdef HAVE_STDINT_H
638 # include <stdint.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_header_c_list=
654 ac_unique_file="src/server/speechd.c"
655 gt_needs=
656 ac_func_c_list=
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 BUILD_HTML_DOC_FALSE
661 BUILD_HTML_DOC_TRUE
662 USE_LIBSYSTEMD_FALSE
663 USE_LIBSYSTEMD_TRUE
664 systemduserunitdir
665 HAVE_SYSTEMD_FALSE
666 HAVE_SYSTEMD_TRUE
667 systemdsystemunitdir
668 spdincludedir
669 audiodir
670 spdlibdir
671 oldmodulebindir
672 modulebindir
673 localedatadir
674 snddatadir
675 moduleconforigdir
676 spddesktopconforigdir
677 clientconforigdir
678 spdconforigdir
679 moduleconfdir
680 clientconfdir
681 spdconfdir
682 GETTEXT_PACKAGE
683 LIB_SPD_AGE
684 LIB_SPD_REVISION
685 LIB_SPD_CURRENT
686 audio_dlopen_modules
687 audio_dlopen
688 default_audio_method
689 NAS_LIBS
690 nas_support_FALSE
691 nas_support_TRUE
692 oss_support_FALSE
693 oss_support_TRUE
694 alsa_support_FALSE
695 alsa_support_TRUE
696 ALSA_LIBS
697 ALSA_CFLAGS
698 pipewire_support_FALSE
699 pipewire_support_TRUE
700 pipewire_LIBS
701 pipewire_CFLAGS
702 libao_support_FALSE
703 libao_support_TRUE
704 LIBAO_LIBS
705 LIBAO_CFLAGS
706 pulse_support_FALSE
707 pulse_support_TRUE
708 PULSE_LIBS
709 PULSE_CFLAGS
710 kali_shim_FALSE
711 kali_shim_TRUE
712 kali_support_FALSE
713 kali_support_TRUE
714 baratinoo_shim_FALSE
715 baratinoo_shim_TRUE
716 baratinoo_support_FALSE
717 baratinoo_support_TRUE
718 pico_support_FALSE
719 pico_support_TRUE
720 ivona_support_FALSE
721 ivona_support_TRUE
722 voxin_shim_FALSE
723 voxin_shim_TRUE
724 voxin_support_FALSE
725 voxin_support_TRUE
726 ibmtts_include
727 ibmtts_shim_FALSE
728 ibmtts_shim_TRUE
729 ibmtts_support_FALSE
730 ibmtts_support_TRUE
731 flite_dummy_message_FALSE
732 flite_dummy_message_TRUE
733 FLITE
734 flite_kal
735 flite_basic
736 flite_support_FALSE
737 flite_support_TRUE
738 espeak_dummy_message_FALSE
739 espeak_dummy_message_TRUE
740 ESPEAK
741 espeak_ng_support_FALSE
742 espeak_ng_support_TRUE
743 ESPEAK_NG_LIBS
744 ESPEAK_NG_CFLAGS
745 espeak_support_FALSE
746 espeak_support_TRUE
747 HAVE_PYTHON_FALSE
748 HAVE_PYTHON_TRUE
749 pkgpyexecdir
750 pyexecdir
751 pkgpythondir
752 pythondir
753 PYTHON_EXEC_PREFIX
754 PYTHON_PREFIX
755 PYTHON_PLATFORM
756 PYTHON_VERSION
757 PYTHON
758 ENABLE_DOC_FALSE
759 ENABLE_DOC_TRUE
760 RDYNAMIC
761 ERROR_CFLAGS
762 EXTRA_SOCKET_LIBS
763 EXTRA_ESPEAK_LIBS
764 LIBOBJS
765 LIBSYSTEMD_LIBS
766 LIBSYSTEMD_CFLAGS
767 SNDFILE_LIBS
768 SNDFILE_CFLAGS
769 DOTCONF_LIBS
770 DOTCONF_CFLAGS
771 GMODULE_LIBS
772 GMODULE_CFLAGS
773 GTHREAD_LIBS
774 GTHREAD_CFLAGS
775 GLIB_LIBS
776 GLIB_CFLAGS
777 PKG_CONFIG_LIBDIR
778 PKG_CONFIG_PATH
779 PKG_CONFIG
780 DARWIN_HOST_FALSE
781 DARWIN_HOST_TRUE
782 HAVE_HELP2MAN_FALSE
783 HAVE_HELP2MAN_TRUE
784 HELP2MAN
785 CXXCPP
786 am__fastdepCXX_FALSE
787 am__fastdepCXX_TRUE
788 CXXDEPMODE
789 ac_ct_CXX
790 CXXFLAGS
791 CXX
792 MICRO_VERSION
793 MINOR_VERSION
794 MAJOR_VERSION
795 POSUB
796 LTLIBINTL
797 LIBINTL
798 INTLLIBS
799 LTLIBICONV
800 LIBICONV
801 INTL_MACOSX_LIBS
802 CPP
803 XGETTEXT_EXTRA_OPTIONS
804 MSGMERGE
805 XGETTEXT_015
806 XGETTEXT
807 GMSGFMT_015
808 MSGFMT_015
809 GMSGFMT
810 MSGFMT
811 GETTEXT_MACRO_VERSION
812 USE_NLS
813 LT_SYS_LIBRARY_PATH
814 OTOOL64
815 OTOOL
816 LIPO
817 NMEDIT
818 DSYMUTIL
819 MANIFEST_TOOL
820 RANLIB
821 ac_ct_AR
822 AR
823 DLLTOOL
824 OBJDUMP
825 FILECMD
826 LN_S
827 NM
828 ac_ct_DUMPBIN
829 DUMPBIN
830 LD
831 FGREP
832 EGREP
833 GREP
834 SED
835 host_os
836 host_vendor
837 host_cpu
838 host
839 build_os
840 build_vendor
841 build_cpu
842 build
843 LIBTOOL
844 am__xargs_n
845 am__rm_f_notfound
846 AM_BACKSLASH
847 AM_DEFAULT_VERBOSITY
848 AM_DEFAULT_V
849 AM_V
850 CSCOPE
851 ETAGS
852 CTAGS
853 am__fastdepCC_FALSE
854 am__fastdepCC_TRUE
855 CCDEPMODE
856 am__nodep
857 AMDEPBACKSLASH
858 AMDEP_FALSE
859 AMDEP_TRUE
860 am__include
861 DEPDIR
862 am__untar
863 am__tar
864 AMTAR
865 am__leading_dot
866 SET_MAKE
867 AWK
868 mkdir_p
869 MKDIR_P
870 INSTALL_STRIP_PROGRAM
871 STRIP
872 install_sh
873 MAKEINFO
874 AUTOHEADER
875 AUTOMAKE
876 AUTOCONF
877 ACLOCAL
878 VERSION
879 PACKAGE
880 CYGPATH_W
881 am__isrc
882 INSTALL_DATA
883 INSTALL_SCRIPT
884 INSTALL_PROGRAM
885 OBJEXT
886 EXEEXT
887 ac_ct_CC
888 CPPFLAGS
889 LDFLAGS
890 CFLAGS
891 CC
892 target_alias
893 host_alias
894 build_alias
895 LIBS
896 ECHO_T
897 ECHO_N
898 ECHO_C
899 DEFS
900 mandir
901 localedir
902 libdir
903 psdir
904 pdfdir
905 dvidir
906 htmldir
907 infodir
908 docdir
909 oldincludedir
910 includedir
911 runstatedir
912 localstatedir
913 sharedstatedir
914 sysconfdir
915 datadir
916 datarootdir
917 libexecdir
918 sbindir
919 bindir
920 program_transform_name
921 prefix
922 exec_prefix
923 PACKAGE_URL
924 PACKAGE_BUGREPORT
925 PACKAGE_STRING
926 PACKAGE_VERSION
927 PACKAGE_TARNAME
928 PACKAGE_NAME
929 PATH_SEPARATOR
930 SHELL
931 am__quote'
932 ac_subst_files=''
933 ac_user_opts='
934 enable_option_checking
935 enable_dependency_tracking
936 enable_silent_rules
937 enable_shared
938 enable_static
939 enable_pic
940 with_pic
941 enable_fast_install
942 enable_aix_soname
943 with_aix_soname
944 with_gnu_ld
945 with_sysroot
946 enable_libtool_lock
947 enable_nls
948 enable_rpath
949 with_libiconv_prefix
950 with_libintl_prefix
951 enable_ltdl
952 enable_doc
953 enable_python
954 with_python_sys_prefix
955 with_python_prefix
956 with_python_exec_prefix
957 with_espeak
958 with_espeak_ng
959 with_flite
960 with_ibmtts
961 with_voxin
962 with_ivona
963 with_pico
964 with_baratinoo
965 with_kali
966 with_pulse
967 with_libao
968 with_pipewire
969 with_alsa
970 with_oss
971 with_nas
972 with_default_audio_method
973 with_module_bindir
974 with_systemdsystemunitdir
975 with_systemduserunitdir
976 '
977 ac_precious_vars='build_alias
978 host_alias
979 target_alias
980 CC
981 CFLAGS
982 LDFLAGS
983 LIBS
984 CPPFLAGS
985 LT_SYS_LIBRARY_PATH
986 CPP
987 CXX
988 CXXFLAGS
989 CCC
990 CXXCPP
991 PKG_CONFIG
992 PKG_CONFIG_PATH
993 PKG_CONFIG_LIBDIR
994 GLIB_CFLAGS
995 GLIB_LIBS
996 GTHREAD_CFLAGS
997 GTHREAD_LIBS
998 GMODULE_CFLAGS
999 GMODULE_LIBS
1000 DOTCONF_CFLAGS
1001 DOTCONF_LIBS
1002 SNDFILE_CFLAGS
1003 SNDFILE_LIBS
1004 LIBSYSTEMD_CFLAGS
1005 LIBSYSTEMD_LIBS
1006 PYTHON
1007 ESPEAK_NG_CFLAGS
1008 ESPEAK_NG_LIBS
1009 PULSE_CFLAGS
1010 PULSE_LIBS
1011 LIBAO_CFLAGS
1012 LIBAO_LIBS
1013 pipewire_CFLAGS
1014 pipewire_LIBS
1015 ALSA_CFLAGS
1016 ALSA_LIBS'
1017
1018
1019 # Initialize some variables set by options.
1020 ac_init_help=
1021 ac_init_version=false
1022 ac_unrecognized_opts=
1023 ac_unrecognized_sep=
1024 # The variables have the same names as the options, with
1025 # dashes changed to underlines.
1026 cache_file=/dev/null
1027 exec_prefix=NONE
1028 no_create=
1029 no_recursion=
1030 prefix=NONE
1031 program_prefix=NONE
1032 program_suffix=NONE
1033 program_transform_name=s,x,x,
1034 silent=
1035 site=
1036 srcdir=
1037 verbose=
1038 x_includes=NONE
1039 x_libraries=NONE
1040
1041 # Installation directory options.
1042 # These are left unexpanded so users can "make install exec_prefix=/foo"
1043 # and all the variables that are supposed to be based on exec_prefix
1044 # by default will actually change.
1045 # Use braces instead of parens because sh, perl, etc. also accept them.
1046 # (The list follows the same order as the GNU Coding Standards.)
1047 bindir='${exec_prefix}/bin'
1048 sbindir='${exec_prefix}/sbin'
1049 libexecdir='${exec_prefix}/libexec'
1050 datarootdir='${prefix}/share'
1051 datadir='${datarootdir}'
1052 sysconfdir='${prefix}/etc'
1053 sharedstatedir='${prefix}/com'
1054 localstatedir='${prefix}/var'
1055 runstatedir='${localstatedir}/run'
1056 includedir='${prefix}/include'
1057 oldincludedir='/usr/include'
1058 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1059 infodir='${datarootdir}/info'
1060 htmldir='${docdir}'
1061 dvidir='${docdir}'
1062 pdfdir='${docdir}'
1063 psdir='${docdir}'
1064 libdir='${exec_prefix}/lib'
1065 localedir='${datarootdir}/locale'
1066 mandir='${datarootdir}/man'
1067
1068 ac_prev=
1069 ac_dashdash=
1070 for ac_option
1071 do
1072 # If the previous option needs an argument, assign it.
1073 if test -n "$ac_prev"; then
1074 eval $ac_prev=\$ac_option
1075 ac_prev=
1076 continue
1077 fi
1078
1079 case $ac_option in
1080 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1081 *=) ac_optarg= ;;
1082 *) ac_optarg=yes ;;
1083 esac
1084
1085 case $ac_dashdash$ac_option in
1086 --)
1087 ac_dashdash=yes ;;
1088
1089 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1090 ac_prev=bindir ;;
1091 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1092 bindir=$ac_optarg ;;
1093
1094 -build | --build | --buil | --bui | --bu)
1095 ac_prev=build_alias ;;
1096 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1097 build_alias=$ac_optarg ;;
1098
1099 -cache-file | --cache-file | --cache-fil | --cache-fi \
1100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1101 ac_prev=cache_file ;;
1102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1104 cache_file=$ac_optarg ;;
1105
1106 --config-cache | -C)
1107 cache_file=config.cache ;;
1108
1109 -datadir | --datadir | --datadi | --datad)
1110 ac_prev=datadir ;;
1111 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1112 datadir=$ac_optarg ;;
1113
1114 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1115 | --dataroo | --dataro | --datar)
1116 ac_prev=datarootdir ;;
1117 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1118 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1119 datarootdir=$ac_optarg ;;
1120
1121 -disable-* | --disable-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid feature name: '$ac_useropt'"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "enable_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval enable_$ac_useropt=no ;;
1136
1137 -docdir | --docdir | --docdi | --doc | --do)
1138 ac_prev=docdir ;;
1139 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1140 docdir=$ac_optarg ;;
1141
1142 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1143 ac_prev=dvidir ;;
1144 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1145 dvidir=$ac_optarg ;;
1146
1147 -enable-* | --enable-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid feature name: '$ac_useropt'"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "enable_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval enable_$ac_useropt=\$ac_optarg ;;
1162
1163 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1164 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1165 | --exec | --exe | --ex)
1166 ac_prev=exec_prefix ;;
1167 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1168 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1169 | --exec=* | --exe=* | --ex=*)
1170 exec_prefix=$ac_optarg ;;
1171
1172 -gas | --gas | --ga | --g)
1173 # Obsolete; use --with-gas.
1174 with_gas=yes ;;
1175
1176 -help | --help | --hel | --he | -h)
1177 ac_init_help=long ;;
1178 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1179 ac_init_help=recursive ;;
1180 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1181 ac_init_help=short ;;
1182
1183 -host | --host | --hos | --ho)
1184 ac_prev=host_alias ;;
1185 -host=* | --host=* | --hos=* | --ho=*)
1186 host_alias=$ac_optarg ;;
1187
1188 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1189 ac_prev=htmldir ;;
1190 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1191 | --ht=*)
1192 htmldir=$ac_optarg ;;
1193
1194 -includedir | --includedir | --includedi | --included | --include \
1195 | --includ | --inclu | --incl | --inc)
1196 ac_prev=includedir ;;
1197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1198 | --includ=* | --inclu=* | --incl=* | --inc=*)
1199 includedir=$ac_optarg ;;
1200
1201 -infodir | --infodir | --infodi | --infod | --info | --inf)
1202 ac_prev=infodir ;;
1203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1204 infodir=$ac_optarg ;;
1205
1206 -libdir | --libdir | --libdi | --libd)
1207 ac_prev=libdir ;;
1208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1209 libdir=$ac_optarg ;;
1210
1211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1212 | --libexe | --libex | --libe)
1213 ac_prev=libexecdir ;;
1214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1215 | --libexe=* | --libex=* | --libe=*)
1216 libexecdir=$ac_optarg ;;
1217
1218 -localedir | --localedir | --localedi | --localed | --locale)
1219 ac_prev=localedir ;;
1220 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1221 localedir=$ac_optarg ;;
1222
1223 -localstatedir | --localstatedir | --localstatedi | --localstated \
1224 | --localstate | --localstat | --localsta | --localst | --locals)
1225 ac_prev=localstatedir ;;
1226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1227 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1228 localstatedir=$ac_optarg ;;
1229
1230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1231 ac_prev=mandir ;;
1232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1233 mandir=$ac_optarg ;;
1234
1235 -nfp | --nfp | --nf)
1236 # Obsolete; use --without-fp.
1237 with_fp=no ;;
1238
1239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1240 | --no-cr | --no-c | -n)
1241 no_create=yes ;;
1242
1243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1245 no_recursion=yes ;;
1246
1247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1249 | --oldin | --oldi | --old | --ol | --o)
1250 ac_prev=oldincludedir ;;
1251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1254 oldincludedir=$ac_optarg ;;
1255
1256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1257 ac_prev=prefix ;;
1258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1259 prefix=$ac_optarg ;;
1260
1261 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1262 | --program-pre | --program-pr | --program-p)
1263 ac_prev=program_prefix ;;
1264 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1266 program_prefix=$ac_optarg ;;
1267
1268 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1269 | --program-suf | --program-su | --program-s)
1270 ac_prev=program_suffix ;;
1271 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1273 program_suffix=$ac_optarg ;;
1274
1275 -program-transform-name | --program-transform-name \
1276 | --program-transform-nam | --program-transform-na \
1277 | --program-transform-n | --program-transform- \
1278 | --program-transform | --program-transfor \
1279 | --program-transfo | --program-transf \
1280 | --program-trans | --program-tran \
1281 | --progr-tra | --program-tr | --program-t)
1282 ac_prev=program_transform_name ;;
1283 -program-transform-name=* | --program-transform-name=* \
1284 | --program-transform-nam=* | --program-transform-na=* \
1285 | --program-transform-n=* | --program-transform-=* \
1286 | --program-transform=* | --program-transfor=* \
1287 | --program-transfo=* | --program-transf=* \
1288 | --program-trans=* | --program-tran=* \
1289 | --progr-tra=* | --program-tr=* | --program-t=*)
1290 program_transform_name=$ac_optarg ;;
1291
1292 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1293 ac_prev=pdfdir ;;
1294 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1295 pdfdir=$ac_optarg ;;
1296
1297 -psdir | --psdir | --psdi | --psd | --ps)
1298 ac_prev=psdir ;;
1299 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1300 psdir=$ac_optarg ;;
1301
1302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1303 | -silent | --silent | --silen | --sile | --sil)
1304 silent=yes ;;
1305
1306 -runstatedir | --runstatedir | --runstatedi | --runstated \
1307 | --runstate | --runstat | --runsta | --runst | --runs \
1308 | --run | --ru | --r)
1309 ac_prev=runstatedir ;;
1310 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1311 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1312 | --run=* | --ru=* | --r=*)
1313 runstatedir=$ac_optarg ;;
1314
1315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1316 ac_prev=sbindir ;;
1317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1318 | --sbi=* | --sb=*)
1319 sbindir=$ac_optarg ;;
1320
1321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1323 | --sharedst | --shareds | --shared | --share | --shar \
1324 | --sha | --sh)
1325 ac_prev=sharedstatedir ;;
1326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1329 | --sha=* | --sh=*)
1330 sharedstatedir=$ac_optarg ;;
1331
1332 -site | --site | --sit)
1333 ac_prev=site ;;
1334 -site=* | --site=* | --sit=*)
1335 site=$ac_optarg ;;
1336
1337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1338 ac_prev=srcdir ;;
1339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1340 srcdir=$ac_optarg ;;
1341
1342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1343 | --syscon | --sysco | --sysc | --sys | --sy)
1344 ac_prev=sysconfdir ;;
1345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1347 sysconfdir=$ac_optarg ;;
1348
1349 -target | --target | --targe | --targ | --tar | --ta | --t)
1350 ac_prev=target_alias ;;
1351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1352 target_alias=$ac_optarg ;;
1353
1354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1355 verbose=yes ;;
1356
1357 -version | --version | --versio | --versi | --vers | -V)
1358 ac_init_version=: ;;
1359
1360 -with-* | --with-*)
1361 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364 as_fn_error $? "invalid package name: '$ac_useropt'"
1365 ac_useropt_orig=$ac_useropt
1366 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1368 *"
1369 "with_$ac_useropt"
1370 "*) ;;
1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1372 ac_unrecognized_sep=', ';;
1373 esac
1374 eval with_$ac_useropt=\$ac_optarg ;;
1375
1376 -without-* | --without-*)
1377 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1378 # Reject names that are not valid shell variable names.
1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1380 as_fn_error $? "invalid package name: '$ac_useropt'"
1381 ac_useropt_orig=$ac_useropt
1382 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1383 case $ac_user_opts in
1384 *"
1385 "with_$ac_useropt"
1386 "*) ;;
1387 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1388 ac_unrecognized_sep=', ';;
1389 esac
1390 eval with_$ac_useropt=no ;;
1391
1392 --x)
1393 # Obsolete; use --with-x.
1394 with_x=yes ;;
1395
1396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1397 | --x-incl | --x-inc | --x-in | --x-i)
1398 ac_prev=x_includes ;;
1399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1401 x_includes=$ac_optarg ;;
1402
1403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1405 ac_prev=x_libraries ;;
1406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1408 x_libraries=$ac_optarg ;;
1409
1410 -*) as_fn_error $? "unrecognized option: '$ac_option'
1411 Try '$0 --help' for more information"
1412 ;;
1413
1414 *=*)
1415 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1416 # Reject names that are not valid shell variable names.
1417 case $ac_envvar in #(
1418 '' | [0-9]* | *[!_$as_cr_alnum]* )
1419 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1420 esac
1421 eval $ac_envvar=\$ac_optarg
1422 export $ac_envvar ;;
1423
1424 *)
1425 # FIXME: should be removed in autoconf 3.0.
1426 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1427 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1428 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1429 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1430 ;;
1431
1432 esac
1433 done
1434
1435 if test -n "$ac_prev"; then
1436 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1437 as_fn_error $? "missing argument to $ac_option"
1438 fi
1439
1440 if test -n "$ac_unrecognized_opts"; then
1441 case $enable_option_checking in
1442 no) ;;
1443 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1444 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1445 esac
1446 fi
1447
1448 # Check all directory arguments for consistency.
1449 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1450 datadir sysconfdir sharedstatedir localstatedir includedir \
1451 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1452 libdir localedir mandir runstatedir
1453 do
1454 eval ac_val=\$$ac_var
1455 # Remove trailing slashes.
1456 case $ac_val in
1457 */ )
1458 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1459 eval $ac_var=\$ac_val;;
1460 esac
1461 # Be sure to have absolute directory names.
1462 case $ac_val in
1463 [\\/$]* | ?:[\\/]* ) continue;;
1464 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1465 esac
1466 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1467 done
1468
1469 # There might be people who depend on the old broken behavior: '$host'
1470 # used to hold the argument of --host etc.
1471 # FIXME: To remove some day.
1472 build=$build_alias
1473 host=$host_alias
1474 target=$target_alias
1475
1476 # FIXME: To remove some day.
1477 if test "x$host_alias" != x; then
1478 if test "x$build_alias" = x; then
1479 cross_compiling=maybe
1480 elif test "x$build_alias" != "x$host_alias"; then
1481 cross_compiling=yes
1482 fi
1483 fi
1484
1485 ac_tool_prefix=
1486 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1487
1488 test "$silent" = yes && exec 6>/dev/null
1489
1490
1491 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1492 ac_ls_di=`ls -di .` &&
1493 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1494 as_fn_error $? "working directory cannot be determined"
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496 as_fn_error $? "pwd does not report name of working directory"
1497
1498
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501 ac_srcdir_defaulted=yes
1502 # Try the directory containing this script, then the parent directory.
1503 ac_confdir=`$as_dirname -- "$as_myself" ||
1504 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505 X"$as_myself" : 'X\(//\)[^/]' \| \
1506 X"$as_myself" : 'X\(//\)$' \| \
1507 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1508 printf "%s\n" X"$as_myself" |
1509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510 s//\1/
1511 q
1512 }
1513 /^X\(\/\/\)[^/].*/{
1514 s//\1/
1515 q
1516 }
1517 /^X\(\/\/\)$/{
1518 s//\1/
1519 q
1520 }
1521 /^X\(\/\).*/{
1522 s//\1/
1523 q
1524 }
1525 s/.*/./; q'`
1526 srcdir=$ac_confdir
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1528 srcdir=..
1529 fi
1530 else
1531 ac_srcdir_defaulted=no
1532 fi
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1536 fi
1537 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1538 ac_abs_confdir=`(
1539 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1540 pwd)`
1541 # When building in place, set srcdir=.
1542 if test "$ac_abs_confdir" = "$ac_pwd"; then
1543 srcdir=.
1544 fi
1545 # Remove unnecessary trailing slashes from srcdir.
1546 # Double slashes in file names in object file debugging info
1547 # mess up M-x gdb in Emacs.
1548 case $srcdir in
1549 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1550 esac
1551 for ac_var in $ac_precious_vars; do
1552 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1553 eval ac_env_${ac_var}_value=\$${ac_var}
1554 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1556 done
1557
1558 #
1559 # Report the --help message.
1560 #
1561 if test "$ac_init_help" = "long"; then
1562 # Omit some internal or obsolete options to make the list less imposing.
1563 # This message is too long to be a string in the A/UX 3.1 sh.
1564 cat <<_ACEOF
1565 'configure' configures speech-dispatcher 0.12.1 to adapt to many kinds of systems.
1566
1567 Usage: $0 [OPTION]... [VAR=VALUE]...
1568
1569 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1570 VAR=VALUE. See below for descriptions of some of the useful variables.
1571
1572 Defaults for the options are specified in brackets.
1573
1574 Configuration:
1575 -h, --help display this help and exit
1576 --help=short display options specific to this package
1577 --help=recursive display the short help of all the included packages
1578 -V, --version display version information and exit
1579 -q, --quiet, --silent do not print 'checking ...' messages
1580 --cache-file=FILE cache test results in FILE [disabled]
1581 -C, --config-cache alias for '--cache-file=config.cache'
1582 -n, --no-create do not create output files
1583 --srcdir=DIR find the sources in DIR [configure dir or '..']
1584
1585 Installation directories:
1586 --prefix=PREFIX install architecture-independent files in PREFIX
1587 [$ac_default_prefix]
1588 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1589 [PREFIX]
1590
1591 By default, 'make install' will install all the files in
1592 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1593 an installation prefix other than '$ac_default_prefix' using '--prefix',
1594 for instance '--prefix=\$HOME'.
1595
1596 For better control, use the options below.
1597
1598 Fine tuning of the installation directories:
1599 --bindir=DIR user executables [EPREFIX/bin]
1600 --sbindir=DIR system admin executables [EPREFIX/sbin]
1601 --libexecdir=DIR program executables [EPREFIX/libexec]
1602 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1603 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1604 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1605 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1606 --libdir=DIR object code libraries [EPREFIX/lib]
1607 --includedir=DIR C header files [PREFIX/include]
1608 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1609 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1610 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1611 --infodir=DIR info documentation [DATAROOTDIR/info]
1612 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1613 --mandir=DIR man documentation [DATAROOTDIR/man]
1614 --docdir=DIR documentation root
1615 [DATAROOTDIR/doc/speech-dispatcher]
1616 --htmldir=DIR html documentation [DOCDIR]
1617 --dvidir=DIR dvi documentation [DOCDIR]
1618 --pdfdir=DIR pdf documentation [DOCDIR]
1619 --psdir=DIR ps documentation [DOCDIR]
1620 _ACEOF
1621
1622 cat <<\_ACEOF
1623
1624 Program names:
1625 --program-prefix=PREFIX prepend PREFIX to installed program names
1626 --program-suffix=SUFFIX append SUFFIX to installed program names
1627 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1628
1629 System types:
1630 --build=BUILD configure for building on BUILD [guessed]
1631 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1632 _ACEOF
1633 fi
1634
1635 if test -n "$ac_init_help"; then
1636 case $ac_init_help in
1637 short | recursive ) echo "Configuration of speech-dispatcher 0.12.1:";;
1638 esac
1639 cat <<\_ACEOF
1640
1641 Optional Features:
1642 --disable-option-checking ignore unrecognized --enable/--with options
1643 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1644 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1645 --enable-dependency-tracking
1646 do not reject slow dependency extractors
1647 --disable-dependency-tracking
1648 speeds up one-time build
1649 --enable-silent-rules less verbose build output (undo: "make V=1")
1650 --disable-silent-rules verbose build output (undo: "make V=0")
1651 --enable-shared[=PKGS] build shared libraries [default=yes]
1652 --enable-static[=PKGS] build static libraries [default=yes]
1653 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1654 both]
1655 --enable-fast-install[=PKGS]
1656 optimize for fast installation [default=yes]
1657 --enable-aix-soname=aix|svr4|both
1658 shared library versioning (aka "SONAME") variant to
1659 provide on AIX, [default=aix].
1660 --disable-libtool-lock avoid locking (might break parallel builds)
1661 --disable-nls do not use Native Language Support
1662 --disable-rpath do not hardcode runtime library paths
1663 --disable-ltdl do not use ltdl for modules
1664 --disable-doc turn off documentation
1665 --disable-python do not install python bindings
1666
1667 Optional Packages:
1668 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1669 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1670 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1671 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1672 compiler's sysroot if not specified).
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1675 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1676 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1677 --without-libintl-prefix don't search for libintl in includedir and libdir
1678 --with-python-sys-prefix
1679 use Python's sys.prefix and sys.exec_prefix values
1680 --with-python_prefix override the default PYTHON_PREFIX
1681 --with-python_exec_prefix
1682 override the default PYTHON_EXEC_PREFIX
1683 --with-espeak Compile with espeak support
1684 --with-espeak-ng Compile with espeak-ng support
1685 --with-flite include Festival Lite (Flite) support
1686 --with-ibmtts[=yes|no|shim]
1687 include IBM TTS support
1688 --with-voxin[=yes|no|shim]
1689 include Voxin support
1690 --with-ivona include ivona support
1691 --with-pico include SVOX pico support
1692 --with-baratinoo[=yes|no|shim]
1693 include Voxygen Baratinoo support
1694 --with-kali[=yes|no|shim]
1695 include Kali support
1696 --with-pulse include pulseaudio support
1697 --with-libao include libao support
1698 --with-pipewire include pipewire support
1699 --with-alsa include ALSA support
1700 --with-oss include oss support
1701 --with-nas include network audio system (nas) support
1702 --with-default-audio-method=<name>
1703 defines default audio method (default - first
1704 discovered)
1705 --with-module-bindir Directory where to install speech-dispatcher modules
1706 (defaults to
1707 ${libexecdir}/speech-dispatcher-modules)
1708 --with-systemdsystemunitdir=DIR
1709 Directory for systemd service files
1710 --with-systemduserunitdir=DIR
1711 Directory for systemd user service files
1712
1713 Some influential environment variables:
1714 CC C compiler command
1715 CFLAGS C compiler flags
1716 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1717 nonstandard directory <lib dir>
1718 LIBS libraries to pass to the linker, e.g. -l<library>
1719 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1720 you have headers in a nonstandard directory <include dir>
1721 LT_SYS_LIBRARY_PATH
1722 User-defined run-time library search path.
1723 CPP C preprocessor
1724 CXX C++ compiler command
1725 CXXFLAGS C++ compiler flags
1726 CXXCPP C++ preprocessor
1727 PKG_CONFIG path to pkg-config utility
1728 PKG_CONFIG_PATH
1729 directories to add to pkg-config's search path
1730 PKG_CONFIG_LIBDIR
1731 path overriding pkg-config's built-in search path
1732 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1733 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1734 GTHREAD_CFLAGS
1735 C compiler flags for GTHREAD, overriding pkg-config
1736 GTHREAD_LIBS
1737 linker flags for GTHREAD, overriding pkg-config
1738 GMODULE_CFLAGS
1739 C compiler flags for GMODULE, overriding pkg-config
1740 GMODULE_LIBS
1741 linker flags for GMODULE, overriding pkg-config
1742 DOTCONF_CFLAGS
1743 C compiler flags for DOTCONF, overriding pkg-config
1744 DOTCONF_LIBS
1745 linker flags for DOTCONF, overriding pkg-config
1746 SNDFILE_CFLAGS
1747 C compiler flags for SNDFILE, overriding pkg-config
1748 SNDFILE_LIBS
1749 linker flags for SNDFILE, overriding pkg-config
1750 LIBSYSTEMD_CFLAGS
1751 C compiler flags for LIBSYSTEMD, overriding pkg-config
1752 LIBSYSTEMD_LIBS
1753 linker flags for LIBSYSTEMD, overriding pkg-config
1754 PYTHON the Python interpreter
1755 ESPEAK_NG_CFLAGS
1756 C compiler flags for ESPEAK_NG, overriding pkg-config
1757 ESPEAK_NG_LIBS
1758 linker flags for ESPEAK_NG, overriding pkg-config
1759 PULSE_CFLAGS
1760 C compiler flags for PULSE, overriding pkg-config
1761 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1762 LIBAO_CFLAGS
1763 C compiler flags for LIBAO, overriding pkg-config
1764 LIBAO_LIBS linker flags for LIBAO, overriding pkg-config
1765 pipewire_CFLAGS
1766 C compiler flags for pipewire, overriding pkg-config
1767 pipewire_LIBS
1768 linker flags for pipewire, overriding pkg-config
1769 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1770 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1771
1772 Use these variables to override the choices made by 'configure' or to help
1773 it to find libraries and programs with nonstandard names/locations.
1774
1775 Report bugs to <[email protected]>.
1776 _ACEOF
1777 ac_status=$?
1778 fi
1779
1780 if test "$ac_init_help" = "recursive"; then
1781 # If there are subdirs, report their specific --help.
1782 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1783 test -d "$ac_dir" ||
1784 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1785 continue
1786 ac_builddir=.
1787
1788 case "$ac_dir" in
1789 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1790 *)
1791 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1792 # A ".." for each directory in $ac_dir_suffix.
1793 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1794 case $ac_top_builddir_sub in
1795 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1796 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1797 esac ;;
1798 esac
1799 ac_abs_top_builddir=$ac_pwd
1800 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1801 # for backward compatibility:
1802 ac_top_builddir=$ac_top_build_prefix
1803
1804 case $srcdir in
1805 .) # We are building in place.
1806 ac_srcdir=.
1807 ac_top_srcdir=$ac_top_builddir_sub
1808 ac_abs_top_srcdir=$ac_pwd ;;
1809 [\\/]* | ?:[\\/]* ) # Absolute name.
1810 ac_srcdir=$srcdir$ac_dir_suffix;
1811 ac_top_srcdir=$srcdir
1812 ac_abs_top_srcdir=$srcdir ;;
1813 *) # Relative name.
1814 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1815 ac_top_srcdir=$ac_top_build_prefix$srcdir
1816 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1817 esac
1818 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1819
1820 cd "$ac_dir" || { ac_status=$?; continue; }
1821 # Check for configure.gnu first; this name is used for a wrapper for
1822 # Metaconfig's "Configure" on case-insensitive file systems.
1823 if test -f "$ac_srcdir/configure.gnu"; then
1824 echo &&
1825 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1826 elif test -f "$ac_srcdir/configure"; then
1827 echo &&
1828 $SHELL "$ac_srcdir/configure" --help=recursive
1829 else
1830 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1831 fi || ac_status=$?
1832 cd "$ac_pwd" || { ac_status=$?; break; }
1833 done
1834 fi
1835
1836 test -n "$ac_init_help" && exit $ac_status
1837 if $ac_init_version; then
1838 cat <<\_ACEOF
1839 speech-dispatcher configure 0.12.1
1840 generated by GNU Autoconf 2.72
1841
1842 Copyright (C) 2023 Free Software Foundation, Inc.
1843 This configure script is free software; the Free Software Foundation
1844 gives unlimited permission to copy, distribute and modify it.
1845 _ACEOF
1846 exit
1847 fi
1848
1849 ## ------------------------ ##
1850 ## Autoconf initialization. ##
1851 ## ------------------------ ##
1852
1853 # ac_fn_c_try_compile LINENO
1854 # --------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_compile ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext conftest.beam
1860 if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 printf "%s\n" "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1873 fi
1874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext
1879 then :
1880 ac_retval=0
1881 else case e in #(
1882 e) printf "%s\n" "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885 ac_retval=1 ;;
1886 esac
1887 fi
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1890
1891 } # ac_fn_c_try_compile
1892
1893 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists and can be compiled using the include files in
1896 # INCLUDES, setting the cache variable VAR accordingly.
1897 ac_fn_c_check_header_compile ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 printf %s "checking for $2... " >&6; }
1902 if eval test \${$3+y}
1903 then :
1904 printf %s "(cached) " >&6
1905 else case e in #(
1906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 $4
1909 #include <$2>
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"
1912 then :
1913 eval "$3=yes"
1914 else case e in #(
1915 e) eval "$3=no" ;;
1916 esac
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1919 esac
1920 fi
1921 eval ac_res=\$$3
1922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 printf "%s\n" "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_header_compile
1927
1928 # ac_fn_c_try_link LINENO
1929 # -----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_c_try_link ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 printf "%s\n" "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1948 fi
1949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 test -x conftest$ac_exeext
1956 }
1957 then :
1958 ac_retval=0
1959 else case e in #(
1960 e) printf "%s\n" "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1962
1963 ac_retval=1 ;;
1964 esac
1965 fi
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1973
1974 } # ac_fn_c_try_link
1975
1976 # ac_fn_c_check_func LINENO FUNC VAR
1977 # ----------------------------------
1978 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1979 ac_fn_c_check_func ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 printf %s "checking for $2... " >&6; }
1984 if eval test \${$3+y}
1985 then :
1986 printf %s "(cached) " >&6
1987 else case e in #(
1988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1992 #define $2 innocuous_$2
1993
1994 /* System header to define __stub macros and hopefully few prototypes,
1995 which can conflict with char $2 (void); below. */
1996
1997 #include <limits.h>
1998 #undef $2
1999
2000 /* Override any GCC internal prototype to avoid an error.
2001 Use char because int might match the return type of a GCC
2002 builtin and then its argument prototype would still apply. */
2003 #ifdef __cplusplus
2004 extern "C"
2005 #endif
2006 char $2 (void);
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined __stub_$2 || defined __stub___$2
2011 choke me
2012 #endif
2013
2014 int
2015 main (void)
2016 {
2017 return $2 ();
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_link "$LINENO"
2023 then :
2024 eval "$3=yes"
2025 else case e in #(
2026 e) eval "$3=no" ;;
2027 esac
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2030 conftest$ac_exeext conftest.$ac_ext ;;
2031 esac
2032 fi
2033 eval ac_res=\$$3
2034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 printf "%s\n" "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038 } # ac_fn_c_check_func
2039
2040 # ac_fn_c_try_cpp LINENO
2041 # ----------------------
2042 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2043 ac_fn_c_try_cpp ()
2044 {
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 if { { ac_try="$ac_cpp conftest.$ac_ext"
2047 case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 printf "%s\n" "$ac_try_echo"; } >&5
2053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2054 ac_status=$?
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2059 fi
2060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } > conftest.i && {
2062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2063 test ! -s conftest.err
2064 }
2065 then :
2066 ac_retval=0
2067 else case e in #(
2068 e) printf "%s\n" "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071 ac_retval=1 ;;
2072 esac
2073 fi
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 as_fn_set_status $ac_retval
2076
2077 } # ac_fn_c_try_cpp
2078
2079 # ac_fn_c_try_run LINENO
2080 # ----------------------
2081 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2082 # executables *can* be run.
2083 ac_fn_c_try_run ()
2084 {
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 if { { ac_try="$ac_link"
2087 case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090 esac
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 printf "%s\n" "$ac_try_echo"; } >&5
2093 (eval "$ac_link") 2>&5
2094 ac_status=$?
2095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2097 { { case "(($ac_try" in
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2100 esac
2101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102 printf "%s\n" "$ac_try_echo"; } >&5
2103 (eval "$ac_try") 2>&5
2104 ac_status=$?
2105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; }; }
2107 then :
2108 ac_retval=0
2109 else case e in #(
2110 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2111 printf "%s\n" "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2113
2114 ac_retval=$ac_status ;;
2115 esac
2116 fi
2117 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 as_fn_set_status $ac_retval
2120
2121 } # ac_fn_c_try_run
2122
2123 # ac_fn_cxx_try_compile LINENO
2124 # ----------------------------
2125 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2126 ac_fn_cxx_try_compile ()
2127 {
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 rm -f conftest.$ac_objext conftest.beam
2130 if { { ac_try="$ac_compile"
2131 case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134 esac
2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136 printf "%s\n" "$ac_try_echo"; } >&5
2137 (eval "$ac_compile") 2>conftest.err
2138 ac_status=$?
2139 if test -s conftest.err; then
2140 grep -v '^ *+' conftest.err >conftest.er1
2141 cat conftest.er1 >&5
2142 mv -f conftest.er1 conftest.err
2143 fi
2144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } && {
2146 test -z "$ac_cxx_werror_flag" ||
2147 test ! -s conftest.err
2148 } && test -s conftest.$ac_objext
2149 then :
2150 ac_retval=0
2151 else case e in #(
2152 e) printf "%s\n" "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 ac_retval=1 ;;
2156 esac
2157 fi
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 as_fn_set_status $ac_retval
2160
2161 } # ac_fn_cxx_try_compile
2162
2163 # ac_fn_cxx_try_cpp LINENO
2164 # ------------------------
2165 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2166 ac_fn_cxx_try_cpp ()
2167 {
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 if { { ac_try="$ac_cpp conftest.$ac_ext"
2170 case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 printf "%s\n" "$ac_try_echo"; } >&5
2176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2182 fi
2183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } > conftest.i && {
2185 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2186 test ! -s conftest.err
2187 }
2188 then :
2189 ac_retval=0
2190 else case e in #(
2191 e) printf "%s\n" "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 ac_retval=1 ;;
2195 esac
2196 fi
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 as_fn_set_status $ac_retval
2199
2200 } # ac_fn_cxx_try_cpp
2201
2202 # ac_fn_cxx_try_link LINENO
2203 # -------------------------
2204 # Try to link conftest.$ac_ext, and return whether this succeeded.
2205 ac_fn_cxx_try_link ()
2206 {
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2209 if { { ac_try="$ac_link"
2210 case "(($ac_try" in
2211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2212 *) ac_try_echo=$ac_try;;
2213 esac
2214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2215 printf "%s\n" "$ac_try_echo"; } >&5
2216 (eval "$ac_link") 2>conftest.err
2217 ac_status=$?
2218 if test -s conftest.err; then
2219 grep -v '^ *+' conftest.err >conftest.er1
2220 cat conftest.er1 >&5
2221 mv -f conftest.er1 conftest.err
2222 fi
2223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; } && {
2225 test -z "$ac_cxx_werror_flag" ||
2226 test ! -s conftest.err
2227 } && test -s conftest$ac_exeext && {
2228 test "$cross_compiling" = yes ||
2229 test -x conftest$ac_exeext
2230 }
2231 then :
2232 ac_retval=0
2233 else case e in #(
2234 e) printf "%s\n" "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2236
2237 ac_retval=1 ;;
2238 esac
2239 fi
2240 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2241 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2242 # interfere with the next link command; also delete a directory that is
2243 # left behind by Apple's compiler. We do this before executing the actions.
2244 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2246 as_fn_set_status $ac_retval
2247
2248 } # ac_fn_cxx_try_link
2249
2250 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2251 # -------------------------------------------
2252 # Tests whether TYPE exists after having included INCLUDES, setting cache
2253 # variable VAR accordingly.
2254 ac_fn_c_check_type ()
2255 {
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 printf %s "checking for $2... " >&6; }
2259 if eval test \${$3+y}
2260 then :
2261 printf %s "(cached) " >&6
2262 else case e in #(
2263 e) eval "$3=no"
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2266 $4
2267 int
2268 main (void)
2269 {
2270 if (sizeof ($2))
2271 return 0;
2272 ;
2273 return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"
2277 then :
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2280 $4
2281 int
2282 main (void)
2283 {
2284 if (sizeof (($2)))
2285 return 0;
2286 ;
2287 return 0;
2288 }
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"
2291 then :
2292
2293 else case e in #(
2294 e) eval "$3=yes" ;;
2295 esac
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2298 fi
2299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2300 esac
2301 fi
2302 eval ac_res=\$$3
2303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 printf "%s\n" "$ac_res" >&6; }
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306
2307 } # ac_fn_c_check_type
2308
2309 # ac_fn_c_find_uintX_t LINENO BITS VAR
2310 # ------------------------------------
2311 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2312 # accordingly.
2313 ac_fn_c_find_uintX_t ()
2314 {
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2317 printf %s "checking for uint$2_t... " >&6; }
2318 if eval test \${$3+y}
2319 then :
2320 printf %s "(cached) " >&6
2321 else case e in #(
2322 e) eval "$3=no"
2323 # Order is important - never check a type that is potentially smaller
2324 # than half of the expected target width.
2325 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2326 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2329 $ac_includes_default
2330 int
2331 main (void)
2332 {
2333 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2334 test_array [0] = 0;
2335 return test_array [0];
2336
2337 ;
2338 return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"
2342 then :
2343 case $ac_type in #(
2344 uint$2_t) :
2345 eval "$3=yes" ;; #(
2346 *) :
2347 eval "$3=\$ac_type" ;;
2348 esac
2349 fi
2350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2351 if eval test \"x\$"$3"\" = x"no"
2352 then :
2353
2354 else case e in #(
2355 e) break ;;
2356 esac
2357 fi
2358 done ;;
2359 esac
2360 fi
2361 eval ac_res=\$$3
2362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 printf "%s\n" "$ac_res" >&6; }
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365
2366 } # ac_fn_c_find_uintX_t
2367 ac_configure_args_raw=
2368 for ac_arg
2369 do
2370 case $ac_arg in
2371 *\'*)
2372 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2373 esac
2374 as_fn_append ac_configure_args_raw " '$ac_arg'"
2375 done
2376
2377 case $ac_configure_args_raw in
2378 *$as_nl*)
2379 ac_safe_unquote= ;;
2380 *)
2381 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2382 ac_unsafe_a="$ac_unsafe_z#~"
2383 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2384 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2385 esac
2386
2387 cat >config.log <<_ACEOF
2388 This file contains any messages produced by compilers while
2389 running configure, to aid debugging if configure makes a mistake.
2390
2391 It was created by speech-dispatcher $as_me 0.12.1, which was
2392 generated by GNU Autoconf 2.72. Invocation command line was
2393
2394 $ $0$ac_configure_args_raw
2395
2396 _ACEOF
2397 exec 5>>config.log
2398 {
2399 cat <<_ASUNAME
2400 ## --------- ##
2401 ## Platform. ##
2402 ## --------- ##
2403
2404 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2405 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2406 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2407 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2408 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2409
2410 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2411 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2412
2413 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2414 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2415 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2416 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2417 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2418 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2419 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2420
2421 _ASUNAME
2422
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426 IFS=$as_save_IFS
2427 case $as_dir in #(((
2428 '') as_dir=./ ;;
2429 */) ;;
2430 *) as_dir=$as_dir/ ;;
2431 esac
2432 printf "%s\n" "PATH: $as_dir"
2433 done
2434 IFS=$as_save_IFS
2435
2436 } >&5
2437
2438 cat >&5 <<_ACEOF
2439
2440
2441 ## ----------- ##
2442 ## Core tests. ##
2443 ## ----------- ##
2444
2445 _ACEOF
2446
2447
2448 # Keep a trace of the command line.
2449 # Strip out --no-create and --no-recursion so they do not pile up.
2450 # Strip out --silent because we don't want to record it for future runs.
2451 # Also quote any args containing shell meta-characters.
2452 # Make two passes to allow for proper duplicate-argument suppression.
2453 ac_configure_args=
2454 ac_configure_args0=
2455 ac_configure_args1=
2456 ac_must_keep_next=false
2457 for ac_pass in 1 2
2458 do
2459 for ac_arg
2460 do
2461 case $ac_arg in
2462 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2464 | -silent | --silent | --silen | --sile | --sil)
2465 continue ;;
2466 *\'*)
2467 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2468 esac
2469 case $ac_pass in
2470 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2471 2)
2472 as_fn_append ac_configure_args1 " '$ac_arg'"
2473 if test $ac_must_keep_next = true; then
2474 ac_must_keep_next=false # Got value, back to normal.
2475 else
2476 case $ac_arg in
2477 *=* | --config-cache | -C | -disable-* | --disable-* \
2478 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2479 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2480 | -with-* | --with-* | -without-* | --without-* | --x)
2481 case "$ac_configure_args0 " in
2482 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2483 esac
2484 ;;
2485 -* ) ac_must_keep_next=true ;;
2486 esac
2487 fi
2488 as_fn_append ac_configure_args " '$ac_arg'"
2489 ;;
2490 esac
2491 done
2492 done
2493 { ac_configure_args0=; unset ac_configure_args0;}
2494 { ac_configure_args1=; unset ac_configure_args1;}
2495
2496 # When interrupted or exit'd, cleanup temporary files, and complete
2497 # config.log. We remove comments because anyway the quotes in there
2498 # would cause problems or look ugly.
2499 # WARNING: Use '\'' to represent an apostrophe within the trap.
2500 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2501 trap 'exit_status=$?
2502 # Sanitize IFS.
2503 IFS=" "" $as_nl"
2504 # Save into config.log some information that might help in debugging.
2505 {
2506 echo
2507
2508 printf "%s\n" "## ---------------- ##
2509 ## Cache variables. ##
2510 ## ---------------- ##"
2511 echo
2512 # The following way of writing the cache mishandles newlines in values,
2513 (
2514 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2515 eval ac_val=\$$ac_var
2516 case $ac_val in #(
2517 *${as_nl}*)
2518 case $ac_var in #(
2519 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2520 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2521 esac
2522 case $ac_var in #(
2523 _ | IFS | as_nl) ;; #(
2524 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2525 *) { eval $ac_var=; unset $ac_var;} ;;
2526 esac ;;
2527 esac
2528 done
2529 (set) 2>&1 |
2530 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2531 *${as_nl}ac_space=\ *)
2532 sed -n \
2533 "s/'\''/'\''\\\\'\'''\''/g;
2534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2535 ;; #(
2536 *)
2537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2538 ;;
2539 esac |
2540 sort
2541 )
2542 echo
2543
2544 printf "%s\n" "## ----------------- ##
2545 ## Output variables. ##
2546 ## ----------------- ##"
2547 echo
2548 for ac_var in $ac_subst_vars
2549 do
2550 eval ac_val=\$$ac_var
2551 case $ac_val in
2552 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2553 esac
2554 printf "%s\n" "$ac_var='\''$ac_val'\''"
2555 done | sort
2556 echo
2557
2558 if test -n "$ac_subst_files"; then
2559 printf "%s\n" "## ------------------- ##
2560 ## File substitutions. ##
2561 ## ------------------- ##"
2562 echo
2563 for ac_var in $ac_subst_files
2564 do
2565 eval ac_val=\$$ac_var
2566 case $ac_val in
2567 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2568 esac
2569 printf "%s\n" "$ac_var='\''$ac_val'\''"
2570 done | sort
2571 echo
2572 fi
2573
2574 if test -s confdefs.h; then
2575 printf "%s\n" "## ----------- ##
2576 ## confdefs.h. ##
2577 ## ----------- ##"
2578 echo
2579 cat confdefs.h
2580 echo
2581 fi
2582 test "$ac_signal" != 0 &&
2583 printf "%s\n" "$as_me: caught signal $ac_signal"
2584 printf "%s\n" "$as_me: exit $exit_status"
2585 } >&5
2586 rm -f core *.core core.conftest.* &&
2587 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2588 exit $exit_status
2589 ' 0
2590 for ac_signal in 1 2 13 15; do
2591 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2592 done
2593 ac_signal=0
2594
2595 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2596 rm -f -r conftest* confdefs.h
2597
2598 printf "%s\n" "/* confdefs.h */" > confdefs.h
2599
2600 # Predefined preprocessor variables.
2601
2602 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2603
2604 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2605
2606 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2607
2608 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2609
2610 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2611
2612 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2613
2614
2615 # Let the site file select an alternate cache file if it wants to.
2616 # Prefer an explicitly selected file to automatically selected ones.
2617 if test -n "$CONFIG_SITE"; then
2618 ac_site_files="$CONFIG_SITE"
2619 elif test "x$prefix" != xNONE; then
2620 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2621 else
2622 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2623 fi
2624
2625 for ac_site_file in $ac_site_files
2626 do
2627 case $ac_site_file in #(
2628 */*) :
2629 ;; #(
2630 *) :
2631 ac_site_file=./$ac_site_file ;;
2632 esac
2633 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2635 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2636 sed 's/^/| /' "$ac_site_file" >&5
2637 . "$ac_site_file" \
2638 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2639 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2640 as_fn_error $? "failed to load site script $ac_site_file
2641 See 'config.log' for more details" "$LINENO" 5; }
2642 fi
2643 done
2644
2645 if test -r "$cache_file"; then
2646 # Some versions of bash will fail to source /dev/null (special files
2647 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2648 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2650 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2651 case $cache_file in
2652 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2653 *) . "./$cache_file";;
2654 esac
2655 fi
2656 else
2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2658 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2659 >$cache_file
2660 fi
2661
2662 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2663 # Test code for whether the C compiler supports C89 (global declarations)
2664 ac_c_conftest_c89_globals='
2665 /* Does the compiler advertise C89 conformance?
2666 Do not test the value of __STDC__, because some compilers set it to 0
2667 while being otherwise adequately conformant. */
2668 #if !defined __STDC__
2669 # error "Compiler does not advertise C89 conformance"
2670 #endif
2671
2672 #include <stddef.h>
2673 #include <stdarg.h>
2674 struct stat;
2675 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2676 struct buf { int x; };
2677 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2678 static char *e (char **p, int i)
2679 {
2680 return p[i];
2681 }
2682 static char *f (char * (*g) (char **, int), char **p, ...)
2683 {
2684 char *s;
2685 va_list v;
2686 va_start (v,p);
2687 s = g (p, va_arg (v,int));
2688 va_end (v);
2689 return s;
2690 }
2691
2692 /* C89 style stringification. */
2693 #define noexpand_stringify(a) #a
2694 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2695
2696 /* C89 style token pasting. Exercises some of the corner cases that
2697 e.g. old MSVC gets wrong, but not very hard. */
2698 #define noexpand_concat(a,b) a##b
2699 #define expand_concat(a,b) noexpand_concat(a,b)
2700 extern int vA;
2701 extern int vbee;
2702 #define aye A
2703 #define bee B
2704 int *pvA = &expand_concat(v,aye);
2705 int *pvbee = &noexpand_concat(v,bee);
2706
2707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2708 function prototypes and stuff, but not \xHH hex character constants.
2709 These do not provoke an error unfortunately, instead are silently treated
2710 as an "x". The following induces an error, until -std is added to get
2711 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2712 array size at least. It is necessary to write \x00 == 0 to get something
2713 that is true only with -std. */
2714 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2715
2716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2717 inside strings and character constants. */
2718 #define FOO(x) '\''x'\''
2719 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2720
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2725 int, int);'
2726
2727 # Test code for whether the C compiler supports C89 (body of main).
2728 ac_c_conftest_c89_main='
2729 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2730 '
2731
2732 # Test code for whether the C compiler supports C99 (global declarations)
2733 ac_c_conftest_c99_globals='
2734 /* Does the compiler advertise C99 conformance? */
2735 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2736 # error "Compiler does not advertise C99 conformance"
2737 #endif
2738
2739 // See if C++-style comments work.
2740
2741 #include <stdbool.h>
2742 extern int puts (const char *);
2743 extern int printf (const char *, ...);
2744 extern int dprintf (int, const char *, ...);
2745 extern void *malloc (size_t);
2746 extern void free (void *);
2747
2748 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2749 // dprintf is used instead of fprintf to avoid needing to declare
2750 // FILE and stderr.
2751 #define debug(...) dprintf (2, __VA_ARGS__)
2752 #define showlist(...) puts (#__VA_ARGS__)
2753 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2754 static void
2755 test_varargs_macros (void)
2756 {
2757 int x = 1234;
2758 int y = 5678;
2759 debug ("Flag");
2760 debug ("X = %d\n", x);
2761 showlist (The first, second, and third items.);
2762 report (x>y, "x is %d but y is %d", x, y);
2763 }
2764
2765 // Check long long types.
2766 #define BIG64 18446744073709551615ull
2767 #define BIG32 4294967295ul
2768 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2769 #if !BIG_OK
2770 #error "your preprocessor is broken"
2771 #endif
2772 #if BIG_OK
2773 #else
2774 #error "your preprocessor is broken"
2775 #endif
2776 static long long int bignum = -9223372036854775807LL;
2777 static unsigned long long int ubignum = BIG64;
2778
2779 struct incomplete_array
2780 {
2781 int datasize;
2782 double data[];
2783 };
2784
2785 struct named_init {
2786 int number;
2787 const wchar_t *name;
2788 double average;
2789 };
2790
2791 typedef const char *ccp;
2792
2793 static inline int
2794 test_restrict (ccp restrict text)
2795 {
2796 // Iterate through items via the restricted pointer.
2797 // Also check for declarations in for loops.
2798 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2799 continue;
2800 return 0;
2801 }
2802
2803 // Check varargs and va_copy.
2804 static bool
2805 test_varargs (const char *format, ...)
2806 {
2807 va_list args;
2808 va_start (args, format);
2809 va_list args_copy;
2810 va_copy (args_copy, args);
2811
2812 const char *str = "";
2813 int number = 0;
2814 float fnumber = 0;
2815
2816 while (*format)
2817 {
2818 switch (*format++)
2819 {
2820 case '\''s'\'': // string
2821 str = va_arg (args_copy, const char *);
2822 break;
2823 case '\''d'\'': // int
2824 number = va_arg (args_copy, int);
2825 break;
2826 case '\''f'\'': // float
2827 fnumber = va_arg (args_copy, double);
2828 break;
2829 default:
2830 break;
2831 }
2832 }
2833 va_end (args_copy);
2834 va_end (args);
2835
2836 return *str && number && fnumber;
2837 }
2838 '
2839
2840 # Test code for whether the C compiler supports C99 (body of main).
2841 ac_c_conftest_c99_main='
2842 // Check bool.
2843 _Bool success = false;
2844 success |= (argc != 0);
2845
2846 // Check restrict.
2847 if (test_restrict ("String literal") == 0)
2848 success = true;
2849 char *restrict newvar = "Another string";
2850
2851 // Check varargs.
2852 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2853 test_varargs_macros ();
2854
2855 // Check flexible array members.
2856 struct incomplete_array *ia =
2857 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2858 ia->datasize = 10;
2859 for (int i = 0; i < ia->datasize; ++i)
2860 ia->data[i] = i * 1.234;
2861 // Work around memory leak warnings.
2862 free (ia);
2863
2864 // Check named initializers.
2865 struct named_init ni = {
2866 .number = 34,
2867 .name = L"Test wide string",
2868 .average = 543.34343,
2869 };
2870
2871 ni.number = 58;
2872
2873 int dynamic_array[ni.number];
2874 dynamic_array[0] = argv[0][0];
2875 dynamic_array[ni.number - 1] = 543;
2876
2877 // work around unused variable warnings
2878 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2879 || dynamic_array[ni.number - 1] != 543);
2880 '
2881
2882 # Test code for whether the C compiler supports C11 (global declarations)
2883 ac_c_conftest_c11_globals='
2884 /* Does the compiler advertise C11 conformance? */
2885 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2886 # error "Compiler does not advertise C11 conformance"
2887 #endif
2888
2889 // Check _Alignas.
2890 char _Alignas (double) aligned_as_double;
2891 char _Alignas (0) no_special_alignment;
2892 extern char aligned_as_int;
2893 char _Alignas (0) _Alignas (int) aligned_as_int;
2894
2895 // Check _Alignof.
2896 enum
2897 {
2898 int_alignment = _Alignof (int),
2899 int_array_alignment = _Alignof (int[100]),
2900 char_alignment = _Alignof (char)
2901 };
2902 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2903
2904 // Check _Noreturn.
2905 int _Noreturn does_not_return (void) { for (;;) continue; }
2906
2907 // Check _Static_assert.
2908 struct test_static_assert
2909 {
2910 int x;
2911 _Static_assert (sizeof (int) <= sizeof (long int),
2912 "_Static_assert does not work in struct");
2913 long int y;
2914 };
2915
2916 // Check UTF-8 literals.
2917 #define u8 syntax error!
2918 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2919
2920 // Check duplicate typedefs.
2921 typedef long *long_ptr;
2922 typedef long int *long_ptr;
2923 typedef long_ptr long_ptr;
2924
2925 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2926 struct anonymous
2927 {
2928 union {
2929 struct { int i; int j; };
2930 struct { int k; long int l; } w;
2931 };
2932 int m;
2933 } v1;
2934 '
2935
2936 # Test code for whether the C compiler supports C11 (body of main).
2937 ac_c_conftest_c11_main='
2938 _Static_assert ((offsetof (struct anonymous, i)
2939 == offsetof (struct anonymous, w.k)),
2940 "Anonymous union alignment botch");
2941 v1.i = 2;
2942 v1.w.k = 5;
2943 ok |= v1.i != 5;
2944 '
2945
2946 # Test code for whether the C compiler supports C11 (complete).
2947 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2948 ${ac_c_conftest_c99_globals}
2949 ${ac_c_conftest_c11_globals}
2950
2951 int
2952 main (int argc, char **argv)
2953 {
2954 int ok = 0;
2955 ${ac_c_conftest_c89_main}
2956 ${ac_c_conftest_c99_main}
2957 ${ac_c_conftest_c11_main}
2958 return ok;
2959 }
2960 "
2961
2962 # Test code for whether the C compiler supports C99 (complete).
2963 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2964 ${ac_c_conftest_c99_globals}
2965
2966 int
2967 main (int argc, char **argv)
2968 {
2969 int ok = 0;
2970 ${ac_c_conftest_c89_main}
2971 ${ac_c_conftest_c99_main}
2972 return ok;
2973 }
2974 "
2975
2976 # Test code for whether the C compiler supports C89 (complete).
2977 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2978
2979 int
2980 main (int argc, char **argv)
2981 {
2982 int ok = 0;
2983 ${ac_c_conftest_c89_main}
2984 return ok;
2985 }
2986 "
2987
2988 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2989 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2990 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2991 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2992 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2993 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2994 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2995 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2996 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2997 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2998 gt_needs="$gt_needs "
2999 # Test code for whether the C++ compiler supports C++98 (global declarations)
3000 ac_cxx_conftest_cxx98_globals='
3001 // Does the compiler advertise C++98 conformance?
3002 #if !defined __cplusplus || __cplusplus < 199711L
3003 # error "Compiler does not advertise C++98 conformance"
3004 #endif
3005
3006 // These inclusions are to reject old compilers that
3007 // lack the unsuffixed header files.
3008 #include <cstdlib>
3009 #include <exception>
3010
3011 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3012 extern void assert (int);
3013 namespace std {
3014 extern int strcmp (const char *, const char *);
3015 }
3016
3017 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3018 using std::exception;
3019 using std::strcmp;
3020
3021 namespace {
3022
3023 void test_exception_syntax()
3024 {
3025 try {
3026 throw "test";
3027 } catch (const char *s) {
3028 // Extra parentheses suppress a warning when building autoconf itself,
3029 // due to lint rules shared with more typical C programs.
3030 assert (!(strcmp) (s, "test"));
3031 }
3032 }
3033
3034 template <typename T> struct test_template
3035 {
3036 T const val;
3037 explicit test_template(T t) : val(t) {}
3038 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3039 };
3040
3041 } // anonymous namespace
3042 '
3043
3044 # Test code for whether the C++ compiler supports C++98 (body of main)
3045 ac_cxx_conftest_cxx98_main='
3046 assert (argc);
3047 assert (! argv[0]);
3048 {
3049 test_exception_syntax ();
3050 test_template<double> tt (2.0);
3051 assert (tt.add (4) == 6.0);
3052 assert (true && !false);
3053 }
3054 '
3055
3056 # Test code for whether the C++ compiler supports C++11 (global declarations)
3057 ac_cxx_conftest_cxx11_globals='
3058 // Does the compiler advertise C++ 2011 conformance?
3059 #if !defined __cplusplus || __cplusplus < 201103L
3060 # error "Compiler does not advertise C++11 conformance"
3061 #endif
3062
3063 namespace cxx11test
3064 {
3065 constexpr int get_val() { return 20; }
3066
3067 struct testinit
3068 {
3069 int i;
3070 double d;
3071 };
3072
3073 class delegate
3074 {
3075 public:
3076 delegate(int n) : n(n) {}
3077 delegate(): delegate(2354) {}
3078
3079 virtual int getval() { return this->n; };
3080 protected:
3081 int n;
3082 };
3083
3084 class overridden : public delegate
3085 {
3086 public:
3087 overridden(int n): delegate(n) {}
3088 virtual int getval() override final { return this->n * 2; }
3089 };
3090
3091 class nocopy
3092 {
3093 public:
3094 nocopy(int i): i(i) {}
3095 nocopy() = default;
3096 nocopy(const nocopy&) = delete;
3097 nocopy & operator=(const nocopy&) = delete;
3098 private:
3099 int i;
3100 };
3101
3102 // for testing lambda expressions
3103 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3104 {
3105 return f(v);
3106 }
3107
3108 // for testing variadic templates and trailing return types
3109 template <typename V> auto sum(V first) -> V
3110 {
3111 return first;
3112 }
3113 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3114 {
3115 return first + sum(rest...);
3116 }
3117 }
3118 '
3119
3120 # Test code for whether the C++ compiler supports C++11 (body of main)
3121 ac_cxx_conftest_cxx11_main='
3122 {
3123 // Test auto and decltype
3124 auto a1 = 6538;
3125 auto a2 = 48573953.4;
3126 auto a3 = "String literal";
3127
3128 int total = 0;
3129 for (auto i = a3; *i; ++i) { total += *i; }
3130
3131 decltype(a2) a4 = 34895.034;
3132 }
3133 {
3134 // Test constexpr
3135 short sa[cxx11test::get_val()] = { 0 };
3136 }
3137 {
3138 // Test initializer lists
3139 cxx11test::testinit il = { 4323, 435234.23544 };
3140 }
3141 {
3142 // Test range-based for
3143 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3144 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3145 for (auto &x : array) { x += 23; }
3146 }
3147 {
3148 // Test lambda expressions
3149 using cxx11test::eval;
3150 assert (eval ([](int x) { return x*2; }, 21) == 42);
3151 double d = 2.0;
3152 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3153 assert (d == 5.0);
3154 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3155 assert (d == 5.0);
3156 }
3157 {
3158 // Test use of variadic templates
3159 using cxx11test::sum;
3160 auto a = sum(1);
3161 auto b = sum(1, 2);
3162 auto c = sum(1.0, 2.0, 3.0);
3163 }
3164 {
3165 // Test constructor delegation
3166 cxx11test::delegate d1;
3167 cxx11test::delegate d2();
3168 cxx11test::delegate d3(45);
3169 }
3170 {
3171 // Test override and final
3172 cxx11test::overridden o1(55464);
3173 }
3174 {
3175 // Test nullptr
3176 char *c = nullptr;
3177 }
3178 {
3179 // Test template brackets
3180 test_template<::test_template<int>> v(test_template<int>(12));
3181 }
3182 {
3183 // Unicode literals
3184 char const *utf8 = u8"UTF-8 string \u2500";
3185 char16_t const *utf16 = u"UTF-8 string \u2500";
3186 char32_t const *utf32 = U"UTF-32 string \u2500";
3187 }
3188 '
3189
3190 # Test code for whether the C compiler supports C++11 (complete).
3191 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3192 ${ac_cxx_conftest_cxx11_globals}
3193
3194 int
3195 main (int argc, char **argv)
3196 {
3197 int ok = 0;
3198 ${ac_cxx_conftest_cxx98_main}
3199 ${ac_cxx_conftest_cxx11_main}
3200 return ok;
3201 }
3202 "
3203
3204 # Test code for whether the C compiler supports C++98 (complete).
3205 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3206 int
3207 main (int argc, char **argv)
3208 {
3209 int ok = 0;
3210 ${ac_cxx_conftest_cxx98_main}
3211 return ok;
3212 }
3213 "
3214
3215 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3216 as_fn_append ac_func_c_list " fork HAVE_FORK"
3217 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3218
3219 # Auxiliary files required by this configure script.
3220 ac_aux_files="config.rpath config.guess config.sub ltmain.sh missing install-sh compile"
3221
3222 # Locations in which to look for auxiliary files.
3223 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3224
3225 # Search for a directory containing all of the required auxiliary files,
3226 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3227 # If we don't find one directory that contains all the files we need,
3228 # we report the set of missing files from the *first* directory in
3229 # $ac_aux_dir_candidates and give up.
3230 ac_missing_aux_files=""
3231 ac_first_candidate=:
3232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 as_found=false
3235 for as_dir in $ac_aux_dir_candidates
3236 do
3237 IFS=$as_save_IFS
3238 case $as_dir in #(((
3239 '') as_dir=./ ;;
3240 */) ;;
3241 *) as_dir=$as_dir/ ;;
3242 esac
3243 as_found=:
3244
3245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3246 ac_aux_dir_found=yes
3247 ac_install_sh=
3248 for ac_aux in $ac_aux_files
3249 do
3250 # As a special case, if "install-sh" is required, that requirement
3251 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3252 # and $ac_install_sh is set appropriately for whichever one is found.
3253 if test x"$ac_aux" = x"install-sh"
3254 then
3255 if test -f "${as_dir}install-sh"; then
3256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3257 ac_install_sh="${as_dir}install-sh -c"
3258 elif test -f "${as_dir}install.sh"; then
3259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3260 ac_install_sh="${as_dir}install.sh -c"
3261 elif test -f "${as_dir}shtool"; then
3262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3263 ac_install_sh="${as_dir}shtool install -c"
3264 else
3265 ac_aux_dir_found=no
3266 if $ac_first_candidate; then
3267 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3268 else
3269 break
3270 fi
3271 fi
3272 else
3273 if test -f "${as_dir}${ac_aux}"; then
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3275 else
3276 ac_aux_dir_found=no
3277 if $ac_first_candidate; then
3278 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3279 else
3280 break
3281 fi
3282 fi
3283 fi
3284 done
3285 if test "$ac_aux_dir_found" = yes; then
3286 ac_aux_dir="$as_dir"
3287 break
3288 fi
3289 ac_first_candidate=false
3290
3291 as_found=false
3292 done
3293 IFS=$as_save_IFS
3294 if $as_found
3295 then :
3296
3297 else case e in #(
3298 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3299 esac
3300 fi
3301
3302
3303 # These three variables are undocumented and unsupported,
3304 # and are intended to be withdrawn in a future Autoconf release.
3305 # They can cause serious problems if a builder's source tree is in a directory
3306 # whose full name contains unusual characters.
3307 if test -f "${ac_aux_dir}config.guess"; then
3308 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3309 fi
3310 if test -f "${ac_aux_dir}config.sub"; then
3311 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3312 fi
3313 if test -f "$ac_aux_dir/configure"; then
3314 ac_configure="$SHELL ${ac_aux_dir}configure"
3315 fi
3316
3317 # Check that the precious variables saved in the cache have kept the same
3318 # value.
3319 ac_cache_corrupted=false
3320 for ac_var in $ac_precious_vars; do
3321 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3322 eval ac_new_set=\$ac_env_${ac_var}_set
3323 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3324 eval ac_new_val=\$ac_env_${ac_var}_value
3325 case $ac_old_set,$ac_new_set in
3326 set,)
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3328 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3329 ac_cache_corrupted=: ;;
3330 ,set)
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3332 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3333 ac_cache_corrupted=: ;;
3334 ,);;
3335 *)
3336 if test "x$ac_old_val" != "x$ac_new_val"; then
3337 # differences in whitespace do not lead to failure.
3338 ac_old_val_w=`echo x $ac_old_val`
3339 ac_new_val_w=`echo x $ac_new_val`
3340 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3342 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3343 ac_cache_corrupted=:
3344 else
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3346 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3347 eval $ac_var=\$ac_old_val
3348 fi
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3350 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3352 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3353 fi;;
3354 esac
3355 # Pass precious variables to config.status.
3356 if test "$ac_new_set" = set; then
3357 case $ac_new_val in
3358 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3359 *) ac_arg=$ac_var=$ac_new_val ;;
3360 esac
3361 case " $ac_configure_args " in
3362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3363 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3364 esac
3365 fi
3366 done
3367 if $ac_cache_corrupted; then
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3369 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3371 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3372 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3373 and start over" "$LINENO" 5
3374 fi
3375 ## -------------------- ##
3376 ## Main body of script. ##
3377 ## -------------------- ##
3378
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397 # Expand $ac_aux_dir to an absolute path.
3398 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3399
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 if test -n "$ac_tool_prefix"; then
3406 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 printf %s "checking for $ac_word... " >&6; }
3410 if test ${ac_cv_prog_CC+y}
3411 then :
3412 printf %s "(cached) " >&6
3413 else case e in #(
3414 e) if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420 IFS=$as_save_IFS
3421 case $as_dir in #(((
3422 '') as_dir=./ ;;
3423 */) ;;
3424 *) as_dir=$as_dir/ ;;
3425 esac
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432 done
3433 done
3434 IFS=$as_save_IFS
3435
3436 fi ;;
3437 esac
3438 fi
3439 CC=$ac_cv_prog_CC
3440 if test -n "$CC"; then
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442 printf "%s\n" "$CC" >&6; }
3443 else
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 printf "%s\n" "no" >&6; }
3446 fi
3447
3448
3449 fi
3450 if test -z "$ac_cv_prog_CC"; then
3451 ac_ct_CC=$CC
3452 # Extract the first word of "gcc", so it can be a program name with args.
3453 set dummy gcc; ac_word=$2
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 printf %s "checking for $ac_word... " >&6; }
3456 if test ${ac_cv_prog_ac_ct_CC+y}
3457 then :
3458 printf %s "(cached) " >&6
3459 else case e in #(
3460 e) if test -n "$ac_ct_CC"; then
3461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466 IFS=$as_save_IFS
3467 case $as_dir in #(((
3468 '') as_dir=./ ;;
3469 */) ;;
3470 *) as_dir=$as_dir/ ;;
3471 esac
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_ac_ct_CC="gcc"
3475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3476 break 2
3477 fi
3478 done
3479 done
3480 IFS=$as_save_IFS
3481
3482 fi ;;
3483 esac
3484 fi
3485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3486 if test -n "$ac_ct_CC"; then
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3488 printf "%s\n" "$ac_ct_CC" >&6; }
3489 else
3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 printf "%s\n" "no" >&6; }
3492 fi
3493
3494 if test "x$ac_ct_CC" = x; then
3495 CC=""
3496 else
3497 case $cross_compiling:$ac_tool_warned in
3498 yes:)
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3500 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3501 ac_tool_warned=yes ;;
3502 esac
3503 CC=$ac_ct_CC
3504 fi
3505 else
3506 CC="$ac_cv_prog_CC"
3507 fi
3508
3509 if test -z "$CC"; then
3510 if test -n "$ac_tool_prefix"; then
3511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3512 set dummy ${ac_tool_prefix}cc; ac_word=$2
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 printf %s "checking for $ac_word... " >&6; }
3515 if test ${ac_cv_prog_CC+y}
3516 then :
3517 printf %s "(cached) " >&6
3518 else case e in #(
3519 e) if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525 IFS=$as_save_IFS
3526 case $as_dir in #(((
3527 '') as_dir=./ ;;
3528 */) ;;
3529 *) as_dir=$as_dir/ ;;
3530 esac
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3533 ac_cv_prog_CC="${ac_tool_prefix}cc"
3534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3535 break 2
3536 fi
3537 done
3538 done
3539 IFS=$as_save_IFS
3540
3541 fi ;;
3542 esac
3543 fi
3544 CC=$ac_cv_prog_CC
3545 if test -n "$CC"; then
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3547 printf "%s\n" "$CC" >&6; }
3548 else
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 printf "%s\n" "no" >&6; }
3551 fi
3552
3553
3554 fi
3555 fi
3556 if test -z "$CC"; then
3557 # Extract the first word of "cc", so it can be a program name with args.
3558 set dummy cc; ac_word=$2
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560 printf %s "checking for $ac_word... " >&6; }
3561 if test ${ac_cv_prog_CC+y}
3562 then :
3563 printf %s "(cached) " >&6
3564 else case e in #(
3565 e) if test -n "$CC"; then
3566 ac_cv_prog_CC="$CC" # Let the user override the test.
3567 else
3568 ac_prog_rejected=no
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572 IFS=$as_save_IFS
3573 case $as_dir in #(((
3574 '') as_dir=./ ;;
3575 */) ;;
3576 *) as_dir=$as_dir/ ;;
3577 esac
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3580 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3581 ac_prog_rejected=yes
3582 continue
3583 fi
3584 ac_cv_prog_CC="cc"
3585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588 done
3589 done
3590 IFS=$as_save_IFS
3591
3592 if test $ac_prog_rejected = yes; then
3593 # We found a bogon in the path, so make sure we never use it.
3594 set dummy $ac_cv_prog_CC
3595 shift
3596 if test $# != 0; then
3597 # We chose a different compiler from the bogus one.
3598 # However, it has the same basename, so the bogon will be chosen
3599 # first if we set CC to just the basename; use the full file name.
3600 shift
3601 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3602 fi
3603 fi
3604 fi ;;
3605 esac
3606 fi
3607 CC=$ac_cv_prog_CC
3608 if test -n "$CC"; then
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610 printf "%s\n" "$CC" >&6; }
3611 else
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 printf "%s\n" "no" >&6; }
3614 fi
3615
3616
3617 fi
3618 if test -z "$CC"; then
3619 if test -n "$ac_tool_prefix"; then
3620 for ac_prog in cl.exe
3621 do
3622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 printf %s "checking for $ac_word... " >&6; }
3626 if test ${ac_cv_prog_CC+y}
3627 then :
3628 printf %s "(cached) " >&6
3629 else case e in #(
3630 e) if test -n "$CC"; then
3631 ac_cv_prog_CC="$CC" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636 IFS=$as_save_IFS
3637 case $as_dir in #(((
3638 '') as_dir=./ ;;
3639 */) ;;
3640 *) as_dir=$as_dir/ ;;
3641 esac
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648 done
3649 done
3650 IFS=$as_save_IFS
3651
3652 fi ;;
3653 esac
3654 fi
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 printf "%s\n" "$CC" >&6; }
3659 else
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 printf "%s\n" "no" >&6; }
3662 fi
3663
3664
3665 test -n "$CC" && break
3666 done
3667 fi
3668 if test -z "$CC"; then
3669 ac_ct_CC=$CC
3670 for ac_prog in cl.exe
3671 do
3672 # Extract the first word of "$ac_prog", so it can be a program name with args.
3673 set dummy $ac_prog; ac_word=$2
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 printf %s "checking for $ac_word... " >&6; }
3676 if test ${ac_cv_prog_ac_ct_CC+y}
3677 then :
3678 printf %s "(cached) " >&6
3679 else case e in #(
3680 e) if test -n "$ac_ct_CC"; then
3681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3682 else
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH
3685 do
3686 IFS=$as_save_IFS
3687 case $as_dir in #(((
3688 '') as_dir=./ ;;
3689 */) ;;
3690 *) as_dir=$as_dir/ ;;
3691 esac
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_ac_ct_CC="$ac_prog"
3695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3696 break 2
3697 fi
3698 done
3699 done
3700 IFS=$as_save_IFS
3701
3702 fi ;;
3703 esac
3704 fi
3705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3706 if test -n "$ac_ct_CC"; then
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3708 printf "%s\n" "$ac_ct_CC" >&6; }
3709 else
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 printf "%s\n" "no" >&6; }
3712 fi
3713
3714
3715 test -n "$ac_ct_CC" && break
3716 done
3717
3718 if test "x$ac_ct_CC" = x; then
3719 CC=""
3720 else
3721 case $cross_compiling:$ac_tool_warned in
3722 yes:)
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3724 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3725 ac_tool_warned=yes ;;
3726 esac
3727 CC=$ac_ct_CC
3728 fi
3729 fi
3730
3731 fi
3732 if test -z "$CC"; then
3733 if test -n "$ac_tool_prefix"; then
3734 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3735 set dummy ${ac_tool_prefix}clang; ac_word=$2
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 printf %s "checking for $ac_word... " >&6; }
3738 if test ${ac_cv_prog_CC+y}
3739 then :
3740 printf %s "(cached) " >&6
3741 else case e in #(
3742 e) if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 case $as_dir in #(((
3750 '') as_dir=./ ;;
3751 */) ;;
3752 *) as_dir=$as_dir/ ;;
3753 esac
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_CC="${ac_tool_prefix}clang"
3757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 fi ;;
3765 esac
3766 fi
3767 CC=$ac_cv_prog_CC
3768 if test -n "$CC"; then
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 printf "%s\n" "$CC" >&6; }
3771 else
3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 printf "%s\n" "no" >&6; }
3774 fi
3775
3776
3777 fi
3778 if test -z "$ac_cv_prog_CC"; then
3779 ac_ct_CC=$CC
3780 # Extract the first word of "clang", so it can be a program name with args.
3781 set dummy clang; ac_word=$2
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 printf %s "checking for $ac_word... " >&6; }
3784 if test ${ac_cv_prog_ac_ct_CC+y}
3785 then :
3786 printf %s "(cached) " >&6
3787 else case e in #(
3788 e) if test -n "$ac_ct_CC"; then
3789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3790 else
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794 IFS=$as_save_IFS
3795 case $as_dir in #(((
3796 '') as_dir=./ ;;
3797 */) ;;
3798 *) as_dir=$as_dir/ ;;
3799 esac
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_ac_ct_CC="clang"
3803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806 done
3807 done
3808 IFS=$as_save_IFS
3809
3810 fi ;;
3811 esac
3812 fi
3813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3814 if test -n "$ac_ct_CC"; then
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3816 printf "%s\n" "$ac_ct_CC" >&6; }
3817 else
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 printf "%s\n" "no" >&6; }
3820 fi
3821
3822 if test "x$ac_ct_CC" = x; then
3823 CC=""
3824 else
3825 case $cross_compiling:$ac_tool_warned in
3826 yes:)
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3828 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3829 ac_tool_warned=yes ;;
3830 esac
3831 CC=$ac_ct_CC
3832 fi
3833 else
3834 CC="$ac_cv_prog_CC"
3835 fi
3836
3837 fi
3838
3839
3840 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3841 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3842 as_fn_error $? "no acceptable C compiler found in \$PATH
3843 See 'config.log' for more details" "$LINENO" 5; }
3844
3845 # Provide some information about the compiler.
3846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3847 set X $ac_compile
3848 ac_compiler=$2
3849 for ac_option in --version -v -V -qversion -version; do
3850 { { ac_try="$ac_compiler $ac_option >&5"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 printf "%s\n" "$ac_try_echo"; } >&5
3857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3858 ac_status=$?
3859 if test -s conftest.err; then
3860 sed '10a\
3861 ... rest of stderr output deleted ...
3862 10q' conftest.err >conftest.er1
3863 cat conftest.er1 >&5
3864 fi
3865 rm -f conftest.er1 conftest.err
3866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }
3868 done
3869
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872
3873 int
3874 main (void)
3875 {
3876
3877 ;
3878 return 0;
3879 }
3880 _ACEOF
3881 ac_clean_files_save=$ac_clean_files
3882 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3883 # Try to create an executable without -o first, disregard a.out.
3884 # It will help us diagnose broken compilers, and finding out an intuition
3885 # of exeext.
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3887 printf %s "checking whether the C compiler works... " >&6; }
3888 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3889
3890 # The possible output files:
3891 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3892
3893 ac_rmfiles=
3894 for ac_file in $ac_files
3895 do
3896 case $ac_file in
3897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3898 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3899 esac
3900 done
3901 rm -f $ac_rmfiles
3902
3903 if { { ac_try="$ac_link_default"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 printf "%s\n" "$ac_try_echo"; } >&5
3910 (eval "$ac_link_default") 2>&5
3911 ac_status=$?
3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }
3914 then :
3915 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3916 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3917 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3918 # so that the user can short-circuit this test for compilers unknown to
3919 # Autoconf.
3920 for ac_file in $ac_files ''
3921 do
3922 test -f "$ac_file" || continue
3923 case $ac_file in
3924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3925 ;;
3926 [ab].out )
3927 # We found the default executable, but exeext='' is most
3928 # certainly right.
3929 break;;
3930 *.* )
3931 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3932 then :; else
3933 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3934 fi
3935 # We set ac_cv_exeext here because the later test for it is not
3936 # safe: cross compilers may not add the suffix if given an '-o'
3937 # argument, so we may need to know it at that point already.
3938 # Even if this section looks crufty: it has the advantage of
3939 # actually working.
3940 break;;
3941 * )
3942 break;;
3943 esac
3944 done
3945 test "$ac_cv_exeext" = no && ac_cv_exeext=
3946
3947 else case e in #(
3948 e) ac_file='' ;;
3949 esac
3950 fi
3951 if test -z "$ac_file"
3952 then :
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 printf "%s\n" "no" >&6; }
3955 printf "%s\n" "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3957
3958 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3959 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3960 as_fn_error 77 "C compiler cannot create executables
3961 See 'config.log' for more details" "$LINENO" 5; }
3962 else case e in #(
3963 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 printf "%s\n" "yes" >&6; } ;;
3965 esac
3966 fi
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3968 printf %s "checking for C compiler default output file name... " >&6; }
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3970 printf "%s\n" "$ac_file" >&6; }
3971 ac_exeext=$ac_cv_exeext
3972
3973 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3974 ac_clean_files=$ac_clean_files_save
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3976 printf %s "checking for suffix of executables... " >&6; }
3977 if { { ac_try="$ac_link"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 printf "%s\n" "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3985 ac_status=$?
3986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }
3988 then :
3989 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3990 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3991 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3992 # 'rm'.
3993 for ac_file in conftest.exe conftest conftest.*; do
3994 test -f "$ac_file" || continue
3995 case $ac_file in
3996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3998 break;;
3999 * ) break;;
4000 esac
4001 done
4002 else case e in #(
4003 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4004 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4005 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4006 See 'config.log' for more details" "$LINENO" 5; } ;;
4007 esac
4008 fi
4009 rm -f conftest conftest$ac_cv_exeext
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4011 printf "%s\n" "$ac_cv_exeext" >&6; }
4012
4013 rm -f conftest.$ac_ext
4014 EXEEXT=$ac_cv_exeext
4015 ac_exeext=$EXEEXT
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018 #include <stdio.h>
4019 int
4020 main (void)
4021 {
4022 FILE *f = fopen ("conftest.out", "w");
4023 if (!f)
4024 return 1;
4025 return ferror (f) || fclose (f) != 0;
4026
4027 ;
4028 return 0;
4029 }
4030 _ACEOF
4031 ac_clean_files="$ac_clean_files conftest.out"
4032 # Check that the compiler produces executables we can run. If not, either
4033 # the compiler is broken, or we cross compile.
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4035 printf %s "checking whether we are cross compiling... " >&6; }
4036 if test "$cross_compiling" != yes; then
4037 { { ac_try="$ac_link"
4038 case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 printf "%s\n" "$ac_try_echo"; } >&5
4044 (eval "$ac_link") 2>&5
4045 ac_status=$?
4046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }
4048 if { ac_try='./conftest$ac_cv_exeext'
4049 { { case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 printf "%s\n" "$ac_try_echo"; } >&5
4055 (eval "$ac_try") 2>&5
4056 ac_status=$?
4057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; }; then
4059 cross_compiling=no
4060 else
4061 if test "$cross_compiling" = maybe; then
4062 cross_compiling=yes
4063 else
4064 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4065 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4066 as_fn_error 77 "cannot run C compiled programs.
4067 If you meant to cross compile, use '--host'.
4068 See 'config.log' for more details" "$LINENO" 5; }
4069 fi
4070 fi
4071 fi
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4073 printf "%s\n" "$cross_compiling" >&6; }
4074
4075 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4076 conftest.o conftest.obj conftest.out
4077 ac_clean_files=$ac_clean_files_save
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4079 printf %s "checking for suffix of object files... " >&6; }
4080 if test ${ac_cv_objext+y}
4081 then :
4082 printf %s "(cached) " >&6
4083 else case e in #(
4084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086
4087 int
4088 main (void)
4089 {
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.o conftest.obj
4096 if { { ac_try="$ac_compile"
4097 case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100 esac
4101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4102 printf "%s\n" "$ac_try_echo"; } >&5
4103 (eval "$ac_compile") 2>&5
4104 ac_status=$?
4105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4106 test $ac_status = 0; }
4107 then :
4108 for ac_file in conftest.o conftest.obj conftest.*; do
4109 test -f "$ac_file" || continue;
4110 case $ac_file in
4111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4113 break;;
4114 esac
4115 done
4116 else case e in #(
4117 e) printf "%s\n" "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4121 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4122 as_fn_error $? "cannot compute suffix of object files: cannot compile
4123 See 'config.log' for more details" "$LINENO" 5; } ;;
4124 esac
4125 fi
4126 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4127 esac
4128 fi
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4130 printf "%s\n" "$ac_cv_objext" >&6; }
4131 OBJEXT=$ac_cv_objext
4132 ac_objext=$OBJEXT
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4134 printf %s "checking whether the compiler supports GNU C... " >&6; }
4135 if test ${ac_cv_c_compiler_gnu+y}
4136 then :
4137 printf %s "(cached) " >&6
4138 else case e in #(
4139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141
4142 int
4143 main (void)
4144 {
4145 #ifndef __GNUC__
4146 choke me
4147 #endif
4148
4149 ;
4150 return 0;
4151 }
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"
4154 then :
4155 ac_compiler_gnu=yes
4156 else case e in #(
4157 e) ac_compiler_gnu=no ;;
4158 esac
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4161 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4162 ;;
4163 esac
4164 fi
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4166 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168
4169 if test $ac_compiler_gnu = yes; then
4170 GCC=yes
4171 else
4172 GCC=
4173 fi
4174 ac_test_CFLAGS=${CFLAGS+y}
4175 ac_save_CFLAGS=$CFLAGS
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4177 printf %s "checking whether $CC accepts -g... " >&6; }
4178 if test ${ac_cv_prog_cc_g+y}
4179 then :
4180 printf %s "(cached) " >&6
4181 else case e in #(
4182 e) ac_save_c_werror_flag=$ac_c_werror_flag
4183 ac_c_werror_flag=yes
4184 ac_cv_prog_cc_g=no
4185 CFLAGS="-g"
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188
4189 int
4190 main (void)
4191 {
4192
4193 ;
4194 return 0;
4195 }
4196 _ACEOF
4197 if ac_fn_c_try_compile "$LINENO"
4198 then :
4199 ac_cv_prog_cc_g=yes
4200 else case e in #(
4201 e) CFLAGS=""
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204
4205 int
4206 main (void)
4207 {
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"
4214 then :
4215
4216 else case e in #(
4217 e) ac_c_werror_flag=$ac_save_c_werror_flag
4218 CFLAGS="-g"
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221
4222 int
4223 main (void)
4224 {
4225
4226 ;
4227 return 0;
4228 }
4229 _ACEOF
4230 if ac_fn_c_try_compile "$LINENO"
4231 then :
4232 ac_cv_prog_cc_g=yes
4233 fi
4234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4235 esac
4236 fi
4237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4238 esac
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4241 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4242 esac
4243 fi
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4245 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4246 if test $ac_test_CFLAGS; then
4247 CFLAGS=$ac_save_CFLAGS
4248 elif test $ac_cv_prog_cc_g = yes; then
4249 if test "$GCC" = yes; then
4250 CFLAGS="-g -O2"
4251 else
4252 CFLAGS="-g"
4253 fi
4254 else
4255 if test "$GCC" = yes; then
4256 CFLAGS="-O2"
4257 else
4258 CFLAGS=
4259 fi
4260 fi
4261 ac_prog_cc_stdc=no
4262 if test x$ac_prog_cc_stdc = xno
4263 then :
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4265 printf %s "checking for $CC option to enable C11 features... " >&6; }
4266 if test ${ac_cv_prog_cc_c11+y}
4267 then :
4268 printf %s "(cached) " >&6
4269 else case e in #(
4270 e) ac_cv_prog_cc_c11=no
4271 ac_save_CC=$CC
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 $ac_c_conftest_c11_program
4275 _ACEOF
4276 for ac_arg in '' -std=gnu11
4277 do
4278 CC="$ac_save_CC $ac_arg"
4279 if ac_fn_c_try_compile "$LINENO"
4280 then :
4281 ac_cv_prog_cc_c11=$ac_arg
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.beam
4284 test "x$ac_cv_prog_cc_c11" != "xno" && break
4285 done
4286 rm -f conftest.$ac_ext
4287 CC=$ac_save_CC ;;
4288 esac
4289 fi
4290
4291 if test "x$ac_cv_prog_cc_c11" = xno
4292 then :
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4294 printf "%s\n" "unsupported" >&6; }
4295 else case e in #(
4296 e) if test "x$ac_cv_prog_cc_c11" = x
4297 then :
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4299 printf "%s\n" "none needed" >&6; }
4300 else case e in #(
4301 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4302 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4303 CC="$CC $ac_cv_prog_cc_c11" ;;
4304 esac
4305 fi
4306 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4307 ac_prog_cc_stdc=c11 ;;
4308 esac
4309 fi
4310 fi
4311 if test x$ac_prog_cc_stdc = xno
4312 then :
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4314 printf %s "checking for $CC option to enable C99 features... " >&6; }
4315 if test ${ac_cv_prog_cc_c99+y}
4316 then :
4317 printf %s "(cached) " >&6
4318 else case e in #(
4319 e) ac_cv_prog_cc_c99=no
4320 ac_save_CC=$CC
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323 $ac_c_conftest_c99_program
4324 _ACEOF
4325 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4326 do
4327 CC="$ac_save_CC $ac_arg"
4328 if ac_fn_c_try_compile "$LINENO"
4329 then :
4330 ac_cv_prog_cc_c99=$ac_arg
4331 fi
4332 rm -f core conftest.err conftest.$ac_objext conftest.beam
4333 test "x$ac_cv_prog_cc_c99" != "xno" && break
4334 done
4335 rm -f conftest.$ac_ext
4336 CC=$ac_save_CC ;;
4337 esac
4338 fi
4339
4340 if test "x$ac_cv_prog_cc_c99" = xno
4341 then :
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4343 printf "%s\n" "unsupported" >&6; }
4344 else case e in #(
4345 e) if test "x$ac_cv_prog_cc_c99" = x
4346 then :
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4348 printf "%s\n" "none needed" >&6; }
4349 else case e in #(
4350 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4351 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4352 CC="$CC $ac_cv_prog_cc_c99" ;;
4353 esac
4354 fi
4355 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4356 ac_prog_cc_stdc=c99 ;;
4357 esac
4358 fi
4359 fi
4360 if test x$ac_prog_cc_stdc = xno
4361 then :
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4363 printf %s "checking for $CC option to enable C89 features... " >&6; }
4364 if test ${ac_cv_prog_cc_c89+y}
4365 then :
4366 printf %s "(cached) " >&6
4367 else case e in #(
4368 e) ac_cv_prog_cc_c89=no
4369 ac_save_CC=$CC
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 $ac_c_conftest_c89_program
4373 _ACEOF
4374 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4375 do
4376 CC="$ac_save_CC $ac_arg"
4377 if ac_fn_c_try_compile "$LINENO"
4378 then :
4379 ac_cv_prog_cc_c89=$ac_arg
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.beam
4382 test "x$ac_cv_prog_cc_c89" != "xno" && break
4383 done
4384 rm -f conftest.$ac_ext
4385 CC=$ac_save_CC ;;
4386 esac
4387 fi
4388
4389 if test "x$ac_cv_prog_cc_c89" = xno
4390 then :
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4392 printf "%s\n" "unsupported" >&6; }
4393 else case e in #(
4394 e) if test "x$ac_cv_prog_cc_c89" = x
4395 then :
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4397 printf "%s\n" "none needed" >&6; }
4398 else case e in #(
4399 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4400 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4401 CC="$CC $ac_cv_prog_cc_c89" ;;
4402 esac
4403 fi
4404 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4405 ac_prog_cc_stdc=c89 ;;
4406 esac
4407 fi
4408 fi
4409
4410 ac_ext=c
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415
4416
4417 ac_ext=c
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4423 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4424 if test ${am_cv_prog_cc_c_o+y}
4425 then :
4426 printf %s "(cached) " >&6
4427 else case e in #(
4428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430
4431 int
4432 main (void)
4433 {
4434
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 # Make sure it works both with $CC and with simple cc.
4440 # Following AC_PROG_CC_C_O, we do the test twice because some
4441 # compilers refuse to overwrite an existing .o file with -o,
4442 # though they will create one.
4443 am_cv_prog_cc_c_o=yes
4444 for am_i in 1 2; do
4445 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4446 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } \
4450 && test -f conftest2.$ac_objext; then
4451 : OK
4452 else
4453 am_cv_prog_cc_c_o=no
4454 break
4455 fi
4456 done
4457 rm -f core conftest*
4458 unset am_i ;;
4459 esac
4460 fi
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4462 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4463 if test "$am_cv_prog_cc_c_o" != yes; then
4464 # Losing compiler, so override with the script.
4465 # FIXME: It is wrong to rewrite CC.
4466 # But if we don't then we get into trouble of one sort or another.
4467 # A longer-term fix would be to have automake use am__CC in this case,
4468 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4469 CC="$am_aux_dir/compile $CC"
4470 fi
4471 ac_ext=c
4472 ac_cpp='$CPP $CPPFLAGS'
4473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4476
4477
4478
4479 ac_header= ac_cache=
4480 for ac_item in $ac_header_c_list
4481 do
4482 if test $ac_cache; then
4483 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4484 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4485 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4486 fi
4487 ac_header= ac_cache=
4488 elif test $ac_header; then
4489 ac_cache=$ac_item
4490 else
4491 ac_header=$ac_item
4492 fi
4493 done
4494
4495
4496
4497
4498
4499
4500
4501
4502 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4503 then :
4504
4505 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4506
4507 fi
4508
4509
4510
4511
4512
4513
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4515 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4516 if test ${ac_cv_safe_to_define___extensions__+y}
4517 then :
4518 printf %s "(cached) " >&6
4519 else case e in #(
4520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522
4523 # define __EXTENSIONS__ 1
4524 $ac_includes_default
4525 int
4526 main (void)
4527 {
4528
4529 ;
4530 return 0;
4531 }
4532 _ACEOF
4533 if ac_fn_c_try_compile "$LINENO"
4534 then :
4535 ac_cv_safe_to_define___extensions__=yes
4536 else case e in #(
4537 e) ac_cv_safe_to_define___extensions__=no ;;
4538 esac
4539 fi
4540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4541 esac
4542 fi
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4544 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4545
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4547 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4548 if test ${ac_cv_should_define__xopen_source+y}
4549 then :
4550 printf %s "(cached) " >&6
4551 else case e in #(
4552 e) ac_cv_should_define__xopen_source=no
4553 if test $ac_cv_header_wchar_h = yes
4554 then :
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557
4558 #include <wchar.h>
4559 mbstate_t x;
4560 int
4561 main (void)
4562 {
4563
4564 ;
4565 return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"
4569 then :
4570
4571 else case e in #(
4572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574
4575 #define _XOPEN_SOURCE 500
4576 #include <wchar.h>
4577 mbstate_t x;
4578 int
4579 main (void)
4580 {
4581
4582 ;
4583 return 0;
4584 }
4585 _ACEOF
4586 if ac_fn_c_try_compile "$LINENO"
4587 then :
4588 ac_cv_should_define__xopen_source=yes
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4591 esac
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4594 fi ;;
4595 esac
4596 fi
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4598 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4599
4600 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4601
4602 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4603
4604 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4605
4606 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4607
4608 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4609
4610 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4611
4612 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4613
4614 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4615
4616 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4617
4618 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4619
4620 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4621
4622 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4623
4624 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4625
4626 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4627
4628 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4629
4630 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4631
4632 if test $ac_cv_header_minix_config_h = yes
4633 then :
4634 MINIX=yes
4635 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4636
4637 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4638
4639 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4640
4641 else case e in #(
4642 e) MINIX= ;;
4643 esac
4644 fi
4645 if test $ac_cv_safe_to_define___extensions__ = yes
4646 then :
4647 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4648
4649 fi
4650 if test $ac_cv_should_define__xopen_source = yes
4651 then :
4652 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4653
4654 fi
4655
4656
4657 am__api_version='1.17'
4658
4659
4660 # Find a good install program. We prefer a C program (faster),
4661 # so one script is as good as another. But avoid the broken or
4662 # incompatible versions:
4663 # SysV /etc/install, /usr/sbin/install
4664 # SunOS /usr/etc/install
4665 # IRIX /sbin/install
4666 # AIX /bin/install
4667 # AmigaOS /C/install, which installs bootblocks on floppy discs
4668 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4669 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4670 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4671 # OS/2's system install, which has a completely different semantic
4672 # ./install, which can be erroneously created by make from ./install.sh.
4673 # Reject install programs that cannot install multiple files.
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4675 printf %s "checking for a BSD-compatible install... " >&6; }
4676 if test -z "$INSTALL"; then
4677 if test ${ac_cv_path_install+y}
4678 then :
4679 printf %s "(cached) " >&6
4680 else case e in #(
4681 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684 IFS=$as_save_IFS
4685 case $as_dir in #(((
4686 '') as_dir=./ ;;
4687 */) ;;
4688 *) as_dir=$as_dir/ ;;
4689 esac
4690 # Account for fact that we put trailing slashes in our PATH walk.
4691 case $as_dir in #((
4692 ./ | /[cC]/* | \
4693 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4694 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4695 /usr/ucb/* ) ;;
4696 *)
4697 # OSF1 and SCO ODT 3.0 have their own names for install.
4698 # Don't use installbsd from OSF since it installs stuff as root
4699 # by default.
4700 for ac_prog in ginstall scoinst install; do
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4703 if test $ac_prog = install &&
4704 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4705 # AIX install. It has an incompatible calling convention.
4706 :
4707 elif test $ac_prog = install &&
4708 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4709 # program-specific install script used by HP pwplus--don't use.
4710 :
4711 else
4712 rm -rf conftest.one conftest.two conftest.dir
4713 echo one > conftest.one
4714 echo two > conftest.two
4715 mkdir conftest.dir
4716 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4717 test -s conftest.one && test -s conftest.two &&
4718 test -s conftest.dir/conftest.one &&
4719 test -s conftest.dir/conftest.two
4720 then
4721 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4722 break 3
4723 fi
4724 fi
4725 fi
4726 done
4727 done
4728 ;;
4729 esac
4730
4731 done
4732 IFS=$as_save_IFS
4733
4734 rm -rf conftest.one conftest.two conftest.dir
4735 ;;
4736 esac
4737 fi
4738 if test ${ac_cv_path_install+y}; then
4739 INSTALL=$ac_cv_path_install
4740 else
4741 # As a last resort, use the slow shell script. Don't cache a
4742 # value for INSTALL within a source directory, because that will
4743 # break other packages using the cache if that directory is
4744 # removed, or if the value is a relative name.
4745 INSTALL=$ac_install_sh
4746 fi
4747 fi
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4749 printf "%s\n" "$INSTALL" >&6; }
4750
4751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4752 # It thinks the first close brace ends the variable substitution.
4753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4754
4755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4756
4757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4758
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4760 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4761 if test ${am_cv_sleep_fractional_seconds+y}
4762 then :
4763 printf %s "(cached) " >&6
4764 else case e in #(
4765 e) if sleep 0.001 2>/dev/null
4766 then :
4767 am_cv_sleep_fractional_seconds=yes
4768 else case e in #(
4769 e) am_cv_sleep_fractional_seconds=no ;;
4770 esac
4771 fi
4772 ;;
4773 esac
4774 fi
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4776 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4777
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4779 printf %s "checking filesystem timestamp resolution... " >&6; }
4780 if test ${am_cv_filesystem_timestamp_resolution+y}
4781 then :
4782 printf %s "(cached) " >&6
4783 else case e in #(
4784 e) # Default to the worst case.
4785 am_cv_filesystem_timestamp_resolution=2
4786
4787 # Only try to go finer than 1 sec if sleep can do it.
4788 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4789 # - 1 sec is not much of a win compared to 2 sec, and
4790 # - it takes 2 seconds to perform the test whether 1 sec works.
4791 #
4792 # Instead, just use the default 2s on platforms that have 1s resolution,
4793 # accept the extra 1s delay when using $sleep in the Automake tests, in
4794 # exchange for not incurring the 2s delay for running the test for all
4795 # packages.
4796 #
4797 am_try_resolutions=
4798 if test "$am_cv_sleep_fractional_seconds" = yes; then
4799 # Even a millisecond often causes a bunch of false positives,
4800 # so just try a hundredth of a second. The time saved between .001 and
4801 # .01 is not terribly consequential.
4802 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4803 fi
4804
4805 # In order to catch current-generation FAT out, we must *modify* files
4806 # that already exist; the *creation* timestamp is finer. Use names
4807 # that make ls -t sort them differently when they have equal
4808 # timestamps than when they have distinct timestamps, keeping
4809 # in mind that ls -t prints the *newest* file first.
4810 rm -f conftest.ts?
4811 : > conftest.ts1
4812 : > conftest.ts2
4813 : > conftest.ts3
4814
4815 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4816 # clobber the current shell's arguments. (Outer-level square brackets
4817 # are removed by m4; they're present so that m4 does not expand
4818 # <dollar><star>; be careful, easy to get confused.)
4819 if (
4820 set X `ls -t conftest.ts[12]` &&
4821 {
4822 test "$*" != "X conftest.ts1 conftest.ts2" ||
4823 test "$*" != "X conftest.ts2 conftest.ts1";
4824 }
4825 ); then :; else
4826 # If neither matched, then we have a broken ls. This can happen
4827 # if, for instance, CONFIG_SHELL is bash and it inherits a
4828 # broken ls alias from the environment. This has actually
4829 # happened. Such a system could not be considered "sane".
4830 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4831 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4832 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4833 as_fn_error $? "ls -t produces unexpected output.
4834 Make sure there is not a broken ls alias in your environment.
4835 See 'config.log' for more details" "$LINENO" 5; }
4836 fi
4837
4838 for am_try_res in $am_try_resolutions; do
4839 # Any one fine-grained sleep might happen to cross the boundary
4840 # between two values of a coarser actual resolution, but if we do
4841 # two fine-grained sleeps in a row, at least one of them will fall
4842 # entirely within a coarse interval.
4843 echo alpha > conftest.ts1
4844 sleep $am_try_res
4845 echo beta > conftest.ts2
4846 sleep $am_try_res
4847 echo gamma > conftest.ts3
4848
4849 # We assume that 'ls -t' will make use of high-resolution
4850 # timestamps if the operating system supports them at all.
4851 if (set X `ls -t conftest.ts?` &&
4852 test "$2" = conftest.ts3 &&
4853 test "$3" = conftest.ts2 &&
4854 test "$4" = conftest.ts1); then
4855 #
4856 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4857 # because we don't need to test make.
4858 make_ok=true
4859 if test $am_try_res != 1; then
4860 # But if we've succeeded so far with a subsecond resolution, we
4861 # have one more thing to check: make. It can happen that
4862 # everything else supports the subsecond mtimes, but make doesn't;
4863 # notably on macOS, which ships make 3.81 from 2006 (the last one
4864 # released under GPLv2). https://bugs.gnu.org/68808
4865 #
4866 # We test $MAKE if it is defined in the environment, else "make".
4867 # It might get overridden later, but our hope is that in practice
4868 # it does not matter: it is the system "make" which is (by far)
4869 # the most likely to be broken, whereas if the user overrides it,
4870 # probably they did so with a better, or at least not worse, make.
4871 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4872 #
4873 # Create a Makefile (real tab character here):
4874 rm -f conftest.mk
4875 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4876 echo ' touch conftest.ts2' >>conftest.mk
4877 #
4878 # Now, running
4879 # touch conftest.ts1; touch conftest.ts2; make
4880 # should touch ts1 because ts2 is newer. This could happen by luck,
4881 # but most often, it will fail if make's support is insufficient. So
4882 # test for several consecutive successes.
4883 #
4884 # (We reuse conftest.ts[12] because we still want to modify existing
4885 # files, not create new ones, per above.)
4886 n=0
4887 make=${MAKE-make}
4888 until test $n -eq 3; do
4889 echo one > conftest.ts1
4890 sleep $am_try_res
4891 echo two > conftest.ts2 # ts2 should now be newer than ts1
4892 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4893 make_ok=false
4894 break # out of $n loop
4895 fi
4896 n=`expr $n + 1`
4897 done
4898 fi
4899 #
4900 if $make_ok; then
4901 # Everything we know to check worked out, so call this resolution good.
4902 am_cv_filesystem_timestamp_resolution=$am_try_res
4903 break # out of $am_try_res loop
4904 fi
4905 # Otherwise, we'll go on to check the next resolution.
4906 fi
4907 done
4908 rm -f conftest.ts?
4909 # (end _am_filesystem_timestamp_resolution)
4910 ;;
4911 esac
4912 fi
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4914 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4915
4916 # This check should not be cached, as it may vary across builds of
4917 # different projects.
4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4919 printf %s "checking whether build environment is sane... " >&6; }
4920 # Reject unsafe characters in $srcdir or the absolute working directory
4921 # name. Accept space and tab only in the latter.
4922 am_lf='
4923 '
4924 case `pwd` in
4925 *[\\\"\#\$\&\'\`$am_lf]*)
4926 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4927 esac
4928 case $srcdir in
4929 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4930 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4931 esac
4932
4933 # Do 'set' in a subshell so we don't clobber the current shell's
4934 # arguments. Must try -L first in case configure is actually a
4935 # symlink; some systems play weird games with the mod time of symlinks
4936 # (eg FreeBSD returns the mod time of the symlink's containing
4937 # directory).
4938 am_build_env_is_sane=no
4939 am_has_slept=no
4940 rm -f conftest.file
4941 for am_try in 1 2; do
4942 echo "timestamp, slept: $am_has_slept" > conftest.file
4943 if (
4944 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4945 if test "$*" = "X"; then
4946 # -L didn't work.
4947 set X `ls -t "$srcdir/configure" conftest.file`
4948 fi
4949 test "$2" = conftest.file
4950 ); then
4951 am_build_env_is_sane=yes
4952 break
4953 fi
4954 # Just in case.
4955 sleep "$am_cv_filesystem_timestamp_resolution"
4956 am_has_slept=yes
4957 done
4958
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4960 printf "%s\n" "$am_build_env_is_sane" >&6; }
4961 if test "$am_build_env_is_sane" = no; then
4962 as_fn_error $? "newly created file is older than distributed files!
4963 Check your system clock" "$LINENO" 5
4964 fi
4965
4966 # If we didn't sleep, we still need to ensure time stamps of config.status and
4967 # generated files are strictly newer.
4968 am_sleep_pid=
4969 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4970 then :
4971
4972 else case e in #(
4973 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4974 am_sleep_pid=$!
4975 ;;
4976 esac
4977 fi
4978
4979 rm -f conftest.file
4980
4981 test "$program_prefix" != NONE &&
4982 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4983 # Use a double $ so make ignores it.
4984 test "$program_suffix" != NONE &&
4985 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4986 # Double any \ or $.
4987 # By default was 's,x,x', remove it if useless.
4988 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4989 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4990
4991
4992 if test x"${MISSING+set}" != xset; then
4993 MISSING="\${SHELL} '$am_aux_dir/missing'"
4994 fi
4995 # Use eval to expand $SHELL
4996 if eval "$MISSING --is-lightweight"; then
4997 am_missing_run="$MISSING "
4998 else
4999 am_missing_run=
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5001 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5002 fi
5003
5004 if test x"${install_sh+set}" != xset; then
5005 case $am_aux_dir in
5006 *\ * | *\ *)
5007 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5008 *)
5009 install_sh="\${SHELL} $am_aux_dir/install-sh"
5010 esac
5011 fi
5012
5013 # Installed binaries are usually stripped using 'strip' when the user
5014 # run "make install-strip". However 'strip' might not be the right
5015 # tool to use in cross-compilation environments, therefore Automake
5016 # will honor the 'STRIP' environment variable to overrule this program.
5017 if test "$cross_compiling" != no; then
5018 if test -n "$ac_tool_prefix"; then
5019 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5020 set dummy ${ac_tool_prefix}strip; ac_word=$2
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 printf %s "checking for $ac_word... " >&6; }
5023 if test ${ac_cv_prog_STRIP+y}
5024 then :
5025 printf %s "(cached) " >&6
5026 else case e in #(
5027 e) if test -n "$STRIP"; then
5028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033 IFS=$as_save_IFS
5034 case $as_dir in #(((
5035 '') as_dir=./ ;;
5036 */) ;;
5037 *) as_dir=$as_dir/ ;;
5038 esac
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5041 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5043 break 2
5044 fi
5045 done
5046 done
5047 IFS=$as_save_IFS
5048
5049 fi ;;
5050 esac
5051 fi
5052 STRIP=$ac_cv_prog_STRIP
5053 if test -n "$STRIP"; then
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5055 printf "%s\n" "$STRIP" >&6; }
5056 else
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 printf "%s\n" "no" >&6; }
5059 fi
5060
5061
5062 fi
5063 if test -z "$ac_cv_prog_STRIP"; then
5064 ac_ct_STRIP=$STRIP
5065 # Extract the first word of "strip", so it can be a program name with args.
5066 set dummy strip; ac_word=$2
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 printf %s "checking for $ac_word... " >&6; }
5069 if test ${ac_cv_prog_ac_ct_STRIP+y}
5070 then :
5071 printf %s "(cached) " >&6
5072 else case e in #(
5073 e) if test -n "$ac_ct_STRIP"; then
5074 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079 IFS=$as_save_IFS
5080 case $as_dir in #(((
5081 '') as_dir=./ ;;
5082 */) ;;
5083 *) as_dir=$as_dir/ ;;
5084 esac
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5087 ac_cv_prog_ac_ct_STRIP="strip"
5088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091 done
5092 done
5093 IFS=$as_save_IFS
5094
5095 fi ;;
5096 esac
5097 fi
5098 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5099 if test -n "$ac_ct_STRIP"; then
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5101 printf "%s\n" "$ac_ct_STRIP" >&6; }
5102 else
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 printf "%s\n" "no" >&6; }
5105 fi
5106
5107 if test "x$ac_ct_STRIP" = x; then
5108 STRIP=":"
5109 else
5110 case $cross_compiling:$ac_tool_warned in
5111 yes:)
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5114 ac_tool_warned=yes ;;
5115 esac
5116 STRIP=$ac_ct_STRIP
5117 fi
5118 else
5119 STRIP="$ac_cv_prog_STRIP"
5120 fi
5121
5122 fi
5123 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5124
5125
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
5127 printf %s "checking for a race-free mkdir -p... " >&6; }
5128 if test -z "$MKDIR_P"; then
5129 if test ${ac_cv_path_mkdir+y}
5130 then :
5131 printf %s "(cached) " >&6
5132 else case e in #(
5133 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5135 do
5136 IFS=$as_save_IFS
5137 case $as_dir in #(((
5138 '') as_dir=./ ;;
5139 */) ;;
5140 *) as_dir=$as_dir/ ;;
5141 esac
5142 for ac_prog in mkdir gmkdir; do
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
5145 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
5146 'mkdir ('*'coreutils) '* | \
5147 *'BusyBox '* | \
5148 'mkdir (fileutils) '4.1*)
5149 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
5150 break 3;;
5151 esac
5152 done
5153 done
5154 done
5155 IFS=$as_save_IFS
5156 ;;
5157 esac
5158 fi
5159
5160 test -d ./--version && rmdir ./--version
5161 if test ${ac_cv_path_mkdir+y}; then
5162 MKDIR_P="$ac_cv_path_mkdir -p"
5163 else
5164 # As a last resort, use plain mkdir -p,
5165 # in the hope it doesn't have the bugs of ancient mkdir.
5166 MKDIR_P='mkdir -p'
5167 fi
5168 fi
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5170 printf "%s\n" "$MKDIR_P" >&6; }
5171
5172 for ac_prog in gawk mawk nawk awk
5173 do
5174 # Extract the first word of "$ac_prog", so it can be a program name with args.
5175 set dummy $ac_prog; ac_word=$2
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 printf %s "checking for $ac_word... " >&6; }
5178 if test ${ac_cv_prog_AWK+y}
5179 then :
5180 printf %s "(cached) " >&6
5181 else case e in #(
5182 e) if test -n "$AWK"; then
5183 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188 IFS=$as_save_IFS
5189 case $as_dir in #(((
5190 '') as_dir=./ ;;
5191 */) ;;
5192 *) as_dir=$as_dir/ ;;
5193 esac
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_AWK="$ac_prog"
5197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 fi ;;
5205 esac
5206 fi
5207 AWK=$ac_cv_prog_AWK
5208 if test -n "$AWK"; then
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5210 printf "%s\n" "$AWK" >&6; }
5211 else
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 printf "%s\n" "no" >&6; }
5214 fi
5215
5216
5217 test -n "$AWK" && break
5218 done
5219
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5221 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5222 set x ${MAKE-make}
5223 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5224 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5225 then :
5226 printf %s "(cached) " >&6
5227 else case e in #(
5228 e) cat >conftest.make <<\_ACEOF
5229 SHELL = /bin/sh
5230 all:
5231 @echo '@@@%%%=$(MAKE)=@@@%%%'
5232 _ACEOF
5233 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5234 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5235 *@@@%%%=?*=@@@%%%*)
5236 eval ac_cv_prog_make_${ac_make}_set=yes;;
5237 *)
5238 eval ac_cv_prog_make_${ac_make}_set=no;;
5239 esac
5240 rm -f conftest.make ;;
5241 esac
5242 fi
5243 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5245 printf "%s\n" "yes" >&6; }
5246 SET_MAKE=
5247 else
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 printf "%s\n" "no" >&6; }
5250 SET_MAKE="MAKE=${MAKE-make}"
5251 fi
5252
5253 rm -rf .tst 2>/dev/null
5254 mkdir .tst 2>/dev/null
5255 if test -d .tst; then
5256 am__leading_dot=.
5257 else
5258 am__leading_dot=_
5259 fi
5260 rmdir .tst 2>/dev/null
5261
5262 DEPDIR="${am__leading_dot}deps"
5263
5264 ac_config_commands="$ac_config_commands depfiles"
5265
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5267 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5268 cat > confinc.mk << 'END'
5269 am__doit:
5270 @echo this is the am__doit target >confinc.out
5271 .PHONY: am__doit
5272 END
5273 am__include="#"
5274 am__quote=
5275 # BSD make does it like this.
5276 echo '.include "confinc.mk" # ignored' > confmf.BSD
5277 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5278 echo 'include confinc.mk # ignored' > confmf.GNU
5279 _am_result=no
5280 for s in GNU BSD; do
5281 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5282 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }
5286 case $?:`cat confinc.out 2>/dev/null` in #(
5287 '0:this is the am__doit target') :
5288 case $s in #(
5289 BSD) :
5290 am__include='.include' am__quote='"' ;; #(
5291 *) :
5292 am__include='include' am__quote='' ;;
5293 esac ;; #(
5294 *) :
5295 ;;
5296 esac
5297 if test "$am__include" != "#"; then
5298 _am_result="yes ($s style)"
5299 break
5300 fi
5301 done
5302 rm -f confinc.* confmf.*
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5304 printf "%s\n" "${_am_result}" >&6; }
5305
5306 # Check whether --enable-dependency-tracking was given.
5307 if test ${enable_dependency_tracking+y}
5308 then :
5309 enableval=$enable_dependency_tracking;
5310 fi
5311
5312 if test "x$enable_dependency_tracking" != xno; then
5313 am_depcomp="$ac_aux_dir/depcomp"
5314 AMDEPBACKSLASH='\'
5315 am__nodep='_no'
5316 fi
5317 if test "x$enable_dependency_tracking" != xno; then
5318 AMDEP_TRUE=
5319 AMDEP_FALSE='#'
5320 else
5321 AMDEP_TRUE='#'
5322 AMDEP_FALSE=
5323 fi
5324
5325
5326 AM_DEFAULT_VERBOSITY=1
5327 # Check whether --enable-silent-rules was given.
5328 if test ${enable_silent_rules+y}
5329 then :
5330 enableval=$enable_silent_rules;
5331 fi
5332
5333 am_make=${MAKE-make}
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5335 printf %s "checking whether $am_make supports nested variables... " >&6; }
5336 if test ${am_cv_make_support_nested_variables+y}
5337 then :
5338 printf %s "(cached) " >&6
5339 else case e in #(
5340 e) if printf "%s\n" 'TRUE=$(BAR$(V))
5341 BAR0=false
5342 BAR1=true
5343 V=1
5344 am__doit:
5345 @$(TRUE)
5346 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5347 am_cv_make_support_nested_variables=yes
5348 else
5349 am_cv_make_support_nested_variables=no
5350 fi ;;
5351 esac
5352 fi
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5354 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
5355 AM_BACKSLASH='\'
5356
5357 am__rm_f_notfound=
5358 if (rm -f && rm -fr && rm -rf) 2>/dev/null
5359 then :
5360
5361 else case e in #(
5362 e) am__rm_f_notfound='""' ;;
5363 esac
5364 fi
5365
5366
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
5368 printf %s "checking xargs -n works... " >&6; }
5369 if test ${am_cv_xargs_n_works+y}
5370 then :
5371 printf %s "(cached) " >&6
5372 else case e in #(
5373 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
5374 3"
5375 then :
5376 am_cv_xargs_n_works=yes
5377 else case e in #(
5378 e) am_cv_xargs_n_works=no ;;
5379 esac
5380 fi ;;
5381 esac
5382 fi
5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
5384 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
5385 if test "$am_cv_xargs_n_works" = yes
5386 then :
5387 am__xargs_n='xargs -n'
5388 else case e in #(
5389 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
5390 ;;
5391 esac
5392 fi
5393
5394 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5395 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5396 # is not polluted with repeated "-I."
5397 am__isrc=' -I$(srcdir)'
5398 # test to see if srcdir already configured
5399 if test -f $srcdir/config.status; then
5400 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5401 fi
5402 fi
5403
5404 # test whether we have cygpath
5405 if test -z "$CYGPATH_W"; then
5406 if (cygpath --version) >/dev/null 2>/dev/null; then
5407 CYGPATH_W='cygpath -w'
5408 else
5409 CYGPATH_W=echo
5410 fi
5411 fi
5412
5413
5414 # Define the identity of the package.
5415 PACKAGE='speech-dispatcher'
5416 VERSION='0.12.1'
5417
5418
5419 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5420
5421
5422 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
5423
5424 # Some tools Automake needs.
5425
5426 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5427
5428
5429 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5430
5431
5432 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5433
5434
5435 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5436
5437
5438 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5439
5440 # For better backward compatibility. To be removed once Automake 1.9.x
5441 # dies out for good. For more background, see:
5442 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5443 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5444 mkdir_p='$(MKDIR_P)'
5445
5446 # We need awk for the "check" target (and possibly the TAP driver). The
5447 # system "awk" is bad on some platforms.
5448 # Always define AMTAR for backward compatibility. Yes, it's still used
5449 # in the wild :-( We should find a proper way to deprecate it ...
5450 AMTAR='$${TAR-tar}'
5451
5452
5453 # We'll loop over all known methods to create a tar archive until one works.
5454 _am_tools='gnutar pax cpio none'
5455
5456 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5457
5458
5459
5460
5461
5462 depcc="$CC" am_compiler_list=
5463
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5465 printf %s "checking dependency style of $depcc... " >&6; }
5466 if test ${am_cv_CC_dependencies_compiler_type+y}
5467 then :
5468 printf %s "(cached) " >&6
5469 else case e in #(
5470 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5471 # We make a subdir and do the tests there. Otherwise we can end up
5472 # making bogus files that we don't know about and never remove. For
5473 # instance it was reported that on HP-UX the gcc test will end up
5474 # making a dummy file named 'D' -- because '-MD' means "put the output
5475 # in D".
5476 rm -rf conftest.dir
5477 mkdir conftest.dir
5478 # Copy depcomp to subdir because otherwise we won't find it if we're
5479 # using a relative directory.
5480 cp "$am_depcomp" conftest.dir
5481 cd conftest.dir
5482 # We will build objects and dependencies in a subdirectory because
5483 # it helps to detect inapplicable dependency modes. For instance
5484 # both Tru64's cc and ICC support -MD to output dependencies as a
5485 # side effect of compilation, but ICC will put the dependencies in
5486 # the current directory while Tru64 will put them in the object
5487 # directory.
5488 mkdir sub
5489
5490 am_cv_CC_dependencies_compiler_type=none
5491 if test "$am_compiler_list" = ""; then
5492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5493 fi
5494 am__universal=false
5495 case " $depcc " in #(
5496 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5497 esac
5498
5499 for depmode in $am_compiler_list; do
5500 # Setup a source with many dependencies, because some compilers
5501 # like to wrap large dependency lists on column 80 (with \), and
5502 # we should not choose a depcomp mode which is confused by this.
5503 #
5504 # We need to recreate these files for each test, as the compiler may
5505 # overwrite some of them when testing with obscure command lines.
5506 # This happens at least with the AIX C compiler.
5507 : > sub/conftest.c
5508 for i in 1 2 3 4 5 6; do
5509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5510 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5511 # Solaris 10 /bin/sh.
5512 echo '/* dummy */' > sub/conftst$i.h
5513 done
5514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5515
5516 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5517 # mode. It turns out that the SunPro C++ compiler does not properly
5518 # handle '-M -o', and we need to detect this. Also, some Intel
5519 # versions had trouble with output in subdirs.
5520 am__obj=sub/conftest.${OBJEXT-o}
5521 am__minus_obj="-o $am__obj"
5522 case $depmode in
5523 gcc)
5524 # This depmode causes a compiler race in universal mode.
5525 test "$am__universal" = false || continue
5526 ;;
5527 nosideeffect)
5528 # After this tag, mechanisms are not by side-effect, so they'll
5529 # only be used when explicitly requested.
5530 if test "x$enable_dependency_tracking" = xyes; then
5531 continue
5532 else
5533 break
5534 fi
5535 ;;
5536 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5537 # This compiler won't grok '-c -o', but also, the minuso test has
5538 # not run yet. These depmodes are late enough in the game, and
5539 # so weak that their functioning should not be impacted.
5540 am__obj=conftest.${OBJEXT-o}
5541 am__minus_obj=
5542 ;;
5543 none) break ;;
5544 esac
5545 if depmode=$depmode \
5546 source=sub/conftest.c object=$am__obj \
5547 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5548 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5549 >/dev/null 2>conftest.err &&
5550 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5551 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5552 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5553 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5554 # icc doesn't choke on unknown options, it will just issue warnings
5555 # or remarks (even with -Werror). So we grep stderr for any message
5556 # that says an option was ignored or not supported.
5557 # When given -MP, icc 7.0 and 7.1 complain thus:
5558 # icc: Command line warning: ignoring option '-M'; no argument required
5559 # The diagnosis changed in icc 8.0:
5560 # icc: Command line remark: option '-MP' not supported
5561 if (grep 'ignoring option' conftest.err ||
5562 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5563 am_cv_CC_dependencies_compiler_type=$depmode
5564 break
5565 fi
5566 fi
5567 done
5568
5569 cd ..
5570 rm -rf conftest.dir
5571 else
5572 am_cv_CC_dependencies_compiler_type=none
5573 fi
5574 ;;
5575 esac
5576 fi
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5578 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5580
5581 if
5582 test "x$enable_dependency_tracking" != xno \
5583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5584 am__fastdepCC_TRUE=
5585 am__fastdepCC_FALSE='#'
5586 else
5587 am__fastdepCC_TRUE='#'
5588 am__fastdepCC_FALSE=
5589 fi
5590
5591
5592 # Variables for tags utilities; see am/tags.am
5593 if test -z "$CTAGS"; then
5594 CTAGS=ctags
5595 fi
5596
5597 if test -z "$ETAGS"; then
5598 ETAGS=etags
5599 fi
5600
5601 if test -z "$CSCOPE"; then
5602 CSCOPE=cscope
5603 fi
5604
5605
5606
5607
5608
5609
5610
5611
5612 AM_DEFAULT_VERBOSITY=0
5613
5614 case `pwd` in
5615 *\ * | *\ *)
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5617 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5618 esac
5619
5620
5621
5622 macro_version='2.5.4'
5623 macro_revision='2.5.4'
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638 ltmain=$ac_aux_dir/ltmain.sh
5639
5640
5641
5642 # Make sure we can run config.sub.
5643 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5644 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5645
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5647 printf %s "checking build system type... " >&6; }
5648 if test ${ac_cv_build+y}
5649 then :
5650 printf %s "(cached) " >&6
5651 else case e in #(
5652 e) ac_build_alias=$build_alias
5653 test "x$ac_build_alias" = x &&
5654 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5655 test "x$ac_build_alias" = x &&
5656 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5657 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5658 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5659 ;;
5660 esac
5661 fi
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5663 printf "%s\n" "$ac_cv_build" >&6; }
5664 case $ac_cv_build in
5665 *-*-*) ;;
5666 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5667 esac
5668 build=$ac_cv_build
5669 ac_save_IFS=$IFS; IFS='-'
5670 set x $ac_cv_build
5671 shift
5672 build_cpu=$1
5673 build_vendor=$2
5674 shift; shift
5675 # Remember, the first character of IFS is used to create $*,
5676 # except with old shells:
5677 build_os=$*
5678 IFS=$ac_save_IFS
5679 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5680
5681
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5683 printf %s "checking host system type... " >&6; }
5684 if test ${ac_cv_host+y}
5685 then :
5686 printf %s "(cached) " >&6
5687 else case e in #(
5688 e) if test "x$host_alias" = x; then
5689 ac_cv_host=$ac_cv_build
5690 else
5691 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5692 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5693 fi
5694 ;;
5695 esac
5696 fi
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5698 printf "%s\n" "$ac_cv_host" >&6; }
5699 case $ac_cv_host in
5700 *-*-*) ;;
5701 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5702 esac
5703 host=$ac_cv_host
5704 ac_save_IFS=$IFS; IFS='-'
5705 set x $ac_cv_host
5706 shift
5707 host_cpu=$1
5708 host_vendor=$2
5709 shift; shift
5710 # Remember, the first character of IFS is used to create $*,
5711 # except with old shells:
5712 host_os=$*
5713 IFS=$ac_save_IFS
5714 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5715
5716
5717 # Backslashify metacharacters that are still active within
5718 # double-quoted strings.
5719 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5720
5721 # Same as above, but do not quote variable references.
5722 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5723
5724 # Sed substitution to delay expansion of an escaped shell variable in a
5725 # double_quote_subst'ed string.
5726 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5727
5728 # Sed substitution to delay expansion of an escaped single quote.
5729 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5730
5731 # Sed substitution to avoid accidental globbing in evaled expressions
5732 no_glob_subst='s/\*/\\\*/g'
5733
5734 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5735 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5736 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5737
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5739 printf %s "checking how to print strings... " >&6; }
5740 # Test print first, because it will be a builtin if present.
5741 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5742 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5743 ECHO='print -r --'
5744 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5745 ECHO='printf %s\n'
5746 else
5747 # Use this function as a fallback that always works.
5748 func_fallback_echo ()
5749 {
5750 eval 'cat <<_LTECHO_EOF
5751 $1
5752 _LTECHO_EOF'
5753 }
5754 ECHO='func_fallback_echo'
5755 fi
5756
5757 # func_echo_all arg...
5758 # Invoke $ECHO with all args, space-separated.
5759 func_echo_all ()
5760 {
5761 $ECHO ""
5762 }
5763
5764 case $ECHO in
5765 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5766 printf "%s\n" "printf" >&6; } ;;
5767 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5768 printf "%s\n" "print -r" >&6; } ;;
5769 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5770 printf "%s\n" "cat" >&6; } ;;
5771 esac
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5787 printf %s "checking for a sed that does not truncate output... " >&6; }
5788 if test ${ac_cv_path_SED+y}
5789 then :
5790 printf %s "(cached) " >&6
5791 else case e in #(
5792 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5793 for ac_i in 1 2 3 4 5 6 7; do
5794 ac_script="$ac_script$as_nl$ac_script"
5795 done
5796 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5797 { ac_script=; unset ac_script;}
5798 if test -z "$SED"; then
5799 ac_path_SED_found=false
5800 # Loop through the user's path and test for each of PROGNAME-LIST
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804 IFS=$as_save_IFS
5805 case $as_dir in #(((
5806 '') as_dir=./ ;;
5807 */) ;;
5808 *) as_dir=$as_dir/ ;;
5809 esac
5810 for ac_prog in sed gsed
5811 do
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5814 as_fn_executable_p "$ac_path_SED" || continue
5815 # Check for GNU ac_path_SED and select it if it is found.
5816 # Check for GNU $ac_path_SED
5817 case `"$ac_path_SED" --version 2>&1` in #(
5818 *GNU*)
5819 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5820 #(
5821 *)
5822 ac_count=0
5823 printf %s 0123456789 >"conftest.in"
5824 while :
5825 do
5826 cat "conftest.in" "conftest.in" >"conftest.tmp"
5827 mv "conftest.tmp" "conftest.in"
5828 cp "conftest.in" "conftest.nl"
5829 printf "%s\n" '' >> "conftest.nl"
5830 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5832 as_fn_arith $ac_count + 1 && ac_count=$as_val
5833 if test $ac_count -gt ${ac_path_SED_max-0}; then
5834 # Best one so far, save it but keep looking for a better one
5835 ac_cv_path_SED="$ac_path_SED"
5836 ac_path_SED_max=$ac_count
5837 fi
5838 # 10*(2^10) chars as input seems more than enough
5839 test $ac_count -gt 10 && break
5840 done
5841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5842 esac
5843
5844 $ac_path_SED_found && break 3
5845 done
5846 done
5847 done
5848 IFS=$as_save_IFS
5849 if test -z "$ac_cv_path_SED"; then
5850 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5851 fi
5852 else
5853 ac_cv_path_SED=$SED
5854 fi
5855 ;;
5856 esac
5857 fi
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5859 printf "%s\n" "$ac_cv_path_SED" >&6; }
5860 SED="$ac_cv_path_SED"
5861 rm -f conftest.sed
5862
5863 test -z "$SED" && SED=sed
5864 Xsed="$SED -e 1s/^X//"
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5877 printf %s "checking for grep that handles long lines and -e... " >&6; }
5878 if test ${ac_cv_path_GREP+y}
5879 then :
5880 printf %s "(cached) " >&6
5881 else case e in #(
5882 e) if test -z "$GREP"; then
5883 ac_path_GREP_found=false
5884 # Loop through the user's path and test for each of PROGNAME-LIST
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5887 do
5888 IFS=$as_save_IFS
5889 case $as_dir in #(((
5890 '') as_dir=./ ;;
5891 */) ;;
5892 *) as_dir=$as_dir/ ;;
5893 esac
5894 for ac_prog in grep ggrep
5895 do
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5898 as_fn_executable_p "$ac_path_GREP" || continue
5899 # Check for GNU ac_path_GREP and select it if it is found.
5900 # Check for GNU $ac_path_GREP
5901 case `"$ac_path_GREP" --version 2>&1` in #(
5902 *GNU*)
5903 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5904 #(
5905 *)
5906 ac_count=0
5907 printf %s 0123456789 >"conftest.in"
5908 while :
5909 do
5910 cat "conftest.in" "conftest.in" >"conftest.tmp"
5911 mv "conftest.tmp" "conftest.in"
5912 cp "conftest.in" "conftest.nl"
5913 printf "%s\n" 'GREP' >> "conftest.nl"
5914 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5916 as_fn_arith $ac_count + 1 && ac_count=$as_val
5917 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5918 # Best one so far, save it but keep looking for a better one
5919 ac_cv_path_GREP="$ac_path_GREP"
5920 ac_path_GREP_max=$ac_count
5921 fi
5922 # 10*(2^10) chars as input seems more than enough
5923 test $ac_count -gt 10 && break
5924 done
5925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5926 esac
5927
5928 $ac_path_GREP_found && break 3
5929 done
5930 done
5931 done
5932 IFS=$as_save_IFS
5933 if test -z "$ac_cv_path_GREP"; then
5934 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5935 fi
5936 else
5937 ac_cv_path_GREP=$GREP
5938 fi
5939 ;;
5940 esac
5941 fi
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5943 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5944 GREP="$ac_cv_path_GREP"
5945
5946
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5948 printf %s "checking for egrep... " >&6; }
5949 if test ${ac_cv_path_EGREP+y}
5950 then :
5951 printf %s "(cached) " >&6
5952 else case e in #(
5953 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5954 then ac_cv_path_EGREP="$GREP -E"
5955 else
5956 if test -z "$EGREP"; then
5957 ac_path_EGREP_found=false
5958 # Loop through the user's path and test for each of PROGNAME-LIST
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5961 do
5962 IFS=$as_save_IFS
5963 case $as_dir in #(((
5964 '') as_dir=./ ;;
5965 */) ;;
5966 *) as_dir=$as_dir/ ;;
5967 esac
5968 for ac_prog in egrep
5969 do
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5972 as_fn_executable_p "$ac_path_EGREP" || continue
5973 # Check for GNU ac_path_EGREP and select it if it is found.
5974 # Check for GNU $ac_path_EGREP
5975 case `"$ac_path_EGREP" --version 2>&1` in #(
5976 *GNU*)
5977 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5978 #(
5979 *)
5980 ac_count=0
5981 printf %s 0123456789 >"conftest.in"
5982 while :
5983 do
5984 cat "conftest.in" "conftest.in" >"conftest.tmp"
5985 mv "conftest.tmp" "conftest.in"
5986 cp "conftest.in" "conftest.nl"
5987 printf "%s\n" 'EGREP' >> "conftest.nl"
5988 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5990 as_fn_arith $ac_count + 1 && ac_count=$as_val
5991 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5992 # Best one so far, save it but keep looking for a better one
5993 ac_cv_path_EGREP="$ac_path_EGREP"
5994 ac_path_EGREP_max=$ac_count
5995 fi
5996 # 10*(2^10) chars as input seems more than enough
5997 test $ac_count -gt 10 && break
5998 done
5999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6000 esac
6001
6002 $ac_path_EGREP_found && break 3
6003 done
6004 done
6005 done
6006 IFS=$as_save_IFS
6007 if test -z "$ac_cv_path_EGREP"; then
6008 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6009 fi
6010 else
6011 ac_cv_path_EGREP=$EGREP
6012 fi
6013
6014 fi ;;
6015 esac
6016 fi
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6018 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6019 EGREP="$ac_cv_path_EGREP"
6020
6021 EGREP_TRADITIONAL=$EGREP
6022 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6023
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6025 printf %s "checking for fgrep... " >&6; }
6026 if test ${ac_cv_path_FGREP+y}
6027 then :
6028 printf %s "(cached) " >&6
6029 else case e in #(
6030 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6031 then ac_cv_path_FGREP="$GREP -F"
6032 else
6033 if test -z "$FGREP"; then
6034 ac_path_FGREP_found=false
6035 # Loop through the user's path and test for each of PROGNAME-LIST
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6038 do
6039 IFS=$as_save_IFS
6040 case $as_dir in #(((
6041 '') as_dir=./ ;;
6042 */) ;;
6043 *) as_dir=$as_dir/ ;;
6044 esac
6045 for ac_prog in fgrep
6046 do
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6049 as_fn_executable_p "$ac_path_FGREP" || continue
6050 # Check for GNU ac_path_FGREP and select it if it is found.
6051 # Check for GNU $ac_path_FGREP
6052 case `"$ac_path_FGREP" --version 2>&1` in #(
6053 *GNU*)
6054 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6055 #(
6056 *)
6057 ac_count=0
6058 printf %s 0123456789 >"conftest.in"
6059 while :
6060 do
6061 cat "conftest.in" "conftest.in" >"conftest.tmp"
6062 mv "conftest.tmp" "conftest.in"
6063 cp "conftest.in" "conftest.nl"
6064 printf "%s\n" 'FGREP' >> "conftest.nl"
6065 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6067 as_fn_arith $ac_count + 1 && ac_count=$as_val
6068 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6069 # Best one so far, save it but keep looking for a better one
6070 ac_cv_path_FGREP="$ac_path_FGREP"
6071 ac_path_FGREP_max=$ac_count
6072 fi
6073 # 10*(2^10) chars as input seems more than enough
6074 test $ac_count -gt 10 && break
6075 done
6076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6077 esac
6078
6079 $ac_path_FGREP_found && break 3
6080 done
6081 done
6082 done
6083 IFS=$as_save_IFS
6084 if test -z "$ac_cv_path_FGREP"; then
6085 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6086 fi
6087 else
6088 ac_cv_path_FGREP=$FGREP
6089 fi
6090
6091 fi ;;
6092 esac
6093 fi
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6095 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6096 FGREP="$ac_cv_path_FGREP"
6097
6098
6099 test -z "$GREP" && GREP=grep
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119 # Check whether --with-gnu-ld was given.
6120 if test ${with_gnu_ld+y}
6121 then :
6122 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6123 else case e in #(
6124 e) with_gnu_ld=no ;;
6125 esac
6126 fi
6127
6128 ac_prog=ld
6129 if test yes = "$GCC"; then
6130 # Check if gcc -print-prog-name=ld gives a path.
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6132 printf %s "checking for ld used by $CC... " >&6; }
6133 case $host in
6134 *-*-mingw* | *-*-windows*)
6135 # gcc leaves a trailing carriage return, which upsets mingw
6136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6137 *)
6138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6139 esac
6140 case $ac_prog in
6141 # Accept absolute paths.
6142 [\\/]* | ?:[\\/]*)
6143 re_direlt='/[^/][^/]*/\.\./'
6144 # Canonicalize the pathname of ld
6145 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6146 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6147 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6148 done
6149 test -z "$LD" && LD=$ac_prog
6150 ;;
6151 "")
6152 # If it fails, then pretend we aren't using GCC.
6153 ac_prog=ld
6154 ;;
6155 *)
6156 # If it is relative, then search for the first ld in PATH.
6157 with_gnu_ld=unknown
6158 ;;
6159 esac
6160 elif test yes = "$with_gnu_ld"; then
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6162 printf %s "checking for GNU ld... " >&6; }
6163 else
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6165 printf %s "checking for non-GNU ld... " >&6; }
6166 fi
6167 if test ${lt_cv_path_LD+y}
6168 then :
6169 printf %s "(cached) " >&6
6170 else case e in #(
6171 e) if test -z "$LD"; then
6172 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6173 for ac_dir in $PATH; do
6174 IFS=$lt_save_ifs
6175 test -z "$ac_dir" && ac_dir=.
6176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6177 lt_cv_path_LD=$ac_dir/$ac_prog
6178 # Check to see if the program is GNU ld. I'd rather use --version,
6179 # but apparently some variants of GNU ld only accept -v.
6180 # Break only if it was the GNU/non-GNU ld that we prefer.
6181 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6182 *GNU* | *'with BFD'*)
6183 test no != "$with_gnu_ld" && break
6184 ;;
6185 *)
6186 test yes != "$with_gnu_ld" && break
6187 ;;
6188 esac
6189 fi
6190 done
6191 IFS=$lt_save_ifs
6192 else
6193 lt_cv_path_LD=$LD # Let the user override the test with a path.
6194 fi ;;
6195 esac
6196 fi
6197
6198 LD=$lt_cv_path_LD
6199 if test -n "$LD"; then
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6201 printf "%s\n" "$LD" >&6; }
6202 else
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 printf "%s\n" "no" >&6; }
6205 fi
6206 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6208 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6209 if test ${lt_cv_prog_gnu_ld+y}
6210 then :
6211 printf %s "(cached) " >&6
6212 else case e in #(
6213 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6214 case `$LD -v 2>&1 </dev/null` in
6215 *GNU* | *'with BFD'*)
6216 lt_cv_prog_gnu_ld=yes
6217 ;;
6218 *)
6219 lt_cv_prog_gnu_ld=no
6220 ;;
6221 esac ;;
6222 esac
6223 fi
6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6225 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6226 with_gnu_ld=$lt_cv_prog_gnu_ld
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6237 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6238 if test ${lt_cv_path_NM+y}
6239 then :
6240 printf %s "(cached) " >&6
6241 else case e in #(
6242 e) if test -n "$NM"; then
6243 # Let the user override the test.
6244 lt_cv_path_NM=$NM
6245 else
6246 lt_nm_to_check=${ac_tool_prefix}nm
6247 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6248 lt_nm_to_check="$lt_nm_to_check nm"
6249 fi
6250 for lt_tmp_nm in $lt_nm_to_check; do
6251 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6252 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6253 IFS=$lt_save_ifs
6254 test -z "$ac_dir" && ac_dir=.
6255 tmp_nm=$ac_dir/$lt_tmp_nm
6256 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6257 # Check to see if the nm accepts a BSD-compat flag.
6258 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6259 # nm: unknown option "B" ignored
6260 # Tru64's nm complains that /dev/null is an invalid object file
6261 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6262 case $build_os in
6263 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6264 *) lt_bad_file=/dev/null ;;
6265 esac
6266 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6267 *$lt_bad_file* | *'Invalid file or object type'*)
6268 lt_cv_path_NM="$tmp_nm -B"
6269 break 2
6270 ;;
6271 *)
6272 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6273 */dev/null*)
6274 lt_cv_path_NM="$tmp_nm -p"
6275 break 2
6276 ;;
6277 *)
6278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6279 continue # so that we can try to find one that supports BSD flags
6280 ;;
6281 esac
6282 ;;
6283 esac
6284 fi
6285 done
6286 IFS=$lt_save_ifs
6287 done
6288 : ${lt_cv_path_NM=no}
6289 fi ;;
6290 esac
6291 fi
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6293 printf "%s\n" "$lt_cv_path_NM" >&6; }
6294 if test no != "$lt_cv_path_NM"; then
6295 NM=$lt_cv_path_NM
6296 else
6297 # Didn't find any BSD compatible name lister, look for dumpbin.
6298 if test -n "$DUMPBIN"; then :
6299 # Let the user override the test.
6300 else
6301 if test -n "$ac_tool_prefix"; then
6302 for ac_prog in dumpbin "link -dump"
6303 do
6304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 printf %s "checking for $ac_word... " >&6; }
6308 if test ${ac_cv_prog_DUMPBIN+y}
6309 then :
6310 printf %s "(cached) " >&6
6311 else case e in #(
6312 e) if test -n "$DUMPBIN"; then
6313 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 case $as_dir in #(((
6320 '') as_dir=./ ;;
6321 */) ;;
6322 *) as_dir=$as_dir/ ;;
6323 esac
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334 fi ;;
6335 esac
6336 fi
6337 DUMPBIN=$ac_cv_prog_DUMPBIN
6338 if test -n "$DUMPBIN"; then
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6340 printf "%s\n" "$DUMPBIN" >&6; }
6341 else
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 printf "%s\n" "no" >&6; }
6344 fi
6345
6346
6347 test -n "$DUMPBIN" && break
6348 done
6349 fi
6350 if test -z "$DUMPBIN"; then
6351 ac_ct_DUMPBIN=$DUMPBIN
6352 for ac_prog in dumpbin "link -dump"
6353 do
6354 # Extract the first word of "$ac_prog", so it can be a program name with args.
6355 set dummy $ac_prog; ac_word=$2
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 printf %s "checking for $ac_word... " >&6; }
6358 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6359 then :
6360 printf %s "(cached) " >&6
6361 else case e in #(
6362 e) if test -n "$ac_ct_DUMPBIN"; then
6363 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368 IFS=$as_save_IFS
6369 case $as_dir in #(((
6370 '') as_dir=./ ;;
6371 */) ;;
6372 *) as_dir=$as_dir/ ;;
6373 esac
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6376 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380 done
6381 done
6382 IFS=$as_save_IFS
6383
6384 fi ;;
6385 esac
6386 fi
6387 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6388 if test -n "$ac_ct_DUMPBIN"; then
6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6390 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6391 else
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 printf "%s\n" "no" >&6; }
6394 fi
6395
6396
6397 test -n "$ac_ct_DUMPBIN" && break
6398 done
6399
6400 if test "x$ac_ct_DUMPBIN" = x; then
6401 DUMPBIN=":"
6402 else
6403 case $cross_compiling:$ac_tool_warned in
6404 yes:)
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407 ac_tool_warned=yes ;;
6408 esac
6409 DUMPBIN=$ac_ct_DUMPBIN
6410 fi
6411 fi
6412
6413 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6414 *COFF*)
6415 DUMPBIN="$DUMPBIN -symbols -headers"
6416 ;;
6417 *)
6418 DUMPBIN=:
6419 ;;
6420 esac
6421 fi
6422
6423 if test : != "$DUMPBIN"; then
6424 NM=$DUMPBIN
6425 fi
6426 fi
6427 test -z "$NM" && NM=nm
6428
6429
6430
6431
6432
6433
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6435 printf %s "checking the name lister ($NM) interface... " >&6; }
6436 if test ${lt_cv_nm_interface+y}
6437 then :
6438 printf %s "(cached) " >&6
6439 else case e in #(
6440 e) lt_cv_nm_interface="BSD nm"
6441 echo "int some_variable = 0;" > conftest.$ac_ext
6442 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6443 (eval "$ac_compile" 2>conftest.err)
6444 cat conftest.err >&5
6445 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6446 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6447 cat conftest.err >&5
6448 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6449 cat conftest.out >&5
6450 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6451 lt_cv_nm_interface="MS dumpbin"
6452 fi
6453 rm -f conftest* ;;
6454 esac
6455 fi
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6457 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6458
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6460 printf %s "checking whether ln -s works... " >&6; }
6461 LN_S=$as_ln_s
6462 if test "$LN_S" = "ln -s"; then
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6464 printf "%s\n" "yes" >&6; }
6465 else
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6467 printf "%s\n" "no, using $LN_S" >&6; }
6468 fi
6469
6470 # find the maximum length of command line arguments
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6472 printf %s "checking the maximum length of command line arguments... " >&6; }
6473 if test ${lt_cv_sys_max_cmd_len+y}
6474 then :
6475 printf %s "(cached) " >&6
6476 else case e in #(
6477 e) i=0
6478 teststring=ABCD
6479
6480 case $build_os in
6481 msdosdjgpp*)
6482 # On DJGPP, this test can blow up pretty badly due to problems in libc
6483 # (any single argument exceeding 2000 bytes causes a buffer overrun
6484 # during glob expansion). Even if it were fixed, the result of this
6485 # check would be larger than it should be.
6486 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6487 ;;
6488
6489 gnu* | ironclad*)
6490 # Under GNU Hurd and Ironclad, this test is not required because there
6491 # is no limit to the length of command line arguments.
6492 # Libtool will interpret -1 as no limit whatsoever
6493 lt_cv_sys_max_cmd_len=-1;
6494 ;;
6495
6496 cygwin* | mingw* | windows* | cegcc*)
6497 # On Win9x/ME, this test blows up -- it succeeds, but takes
6498 # about 5 minutes as the teststring grows exponentially.
6499 # Worse, since 9x/ME are not pre-emptively multitasking,
6500 # you end up with a "frozen" computer, even though with patience
6501 # the test eventually succeeds (with a max line length of 256k).
6502 # Instead, let's just punt: use the minimum linelength reported by
6503 # all of the supported platforms: 8192 (on NT/2K/XP).
6504 lt_cv_sys_max_cmd_len=8192;
6505 ;;
6506
6507 mint*)
6508 # On MiNT this can take a long time and run out of memory.
6509 lt_cv_sys_max_cmd_len=8192;
6510 ;;
6511
6512 amigaos*)
6513 # On AmigaOS with pdksh, this test takes hours, literally.
6514 # So we just punt and use a minimum line length of 8192.
6515 lt_cv_sys_max_cmd_len=8192;
6516 ;;
6517
6518 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6519 # This has been around since 386BSD, at least. Likely further.
6520 if test -x /sbin/sysctl; then
6521 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6522 elif test -x /usr/sbin/sysctl; then
6523 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6524 else
6525 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6526 fi
6527 # And add a safety zone
6528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6530 ;;
6531
6532 interix*)
6533 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6534 lt_cv_sys_max_cmd_len=196608
6535 ;;
6536
6537 os2*)
6538 # The test takes a long time on OS/2.
6539 lt_cv_sys_max_cmd_len=8192
6540 ;;
6541
6542 osf*)
6543 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6544 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6545 # nice to cause kernel panics so lets avoid the loop below.
6546 # First set a reasonable default.
6547 lt_cv_sys_max_cmd_len=16384
6548 #
6549 if test -x /sbin/sysconfig; then
6550 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6551 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6552 esac
6553 fi
6554 ;;
6555 sco3.2v5*)
6556 lt_cv_sys_max_cmd_len=102400
6557 ;;
6558 sysv5* | sco5v6* | sysv4.2uw2*)
6559 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6560 if test -n "$kargmax"; then
6561 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6562 else
6563 lt_cv_sys_max_cmd_len=32768
6564 fi
6565 ;;
6566 *)
6567 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6568 if test -n "$lt_cv_sys_max_cmd_len" && \
6569 test undefined != "$lt_cv_sys_max_cmd_len"; then
6570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6572 else
6573 # Make teststring a little bigger before we do anything with it.
6574 # a 1K string should be a reasonable start.
6575 for i in 1 2 3 4 5 6 7 8; do
6576 teststring=$teststring$teststring
6577 done
6578 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6579 # If test is not a shell built-in, we'll probably end up computing a
6580 # maximum length that is only half of the actual maximum length, but
6581 # we can't tell.
6582 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6583 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6584 test 17 != "$i" # 1/2 MB should be enough
6585 do
6586 i=`expr $i + 1`
6587 teststring=$teststring$teststring
6588 done
6589 # Only check the string length outside the loop.
6590 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6591 teststring=
6592 # Add a significant safety factor because C++ compilers can tack on
6593 # massive amounts of additional arguments before passing them to the
6594 # linker. It appears as though 1/2 is a usable value.
6595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6596 fi
6597 ;;
6598 esac
6599 ;;
6600 esac
6601 fi
6602
6603 if test -n "$lt_cv_sys_max_cmd_len"; then
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6605 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6606 else
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6608 printf "%s\n" "none" >&6; }
6609 fi
6610 max_cmd_len=$lt_cv_sys_max_cmd_len
6611
6612
6613
6614
6615
6616
6617 : ${CP="cp -f"}
6618 : ${MV="mv -f"}
6619 : ${RM="rm -f"}
6620
6621 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6622 lt_unset=unset
6623 else
6624 lt_unset=false
6625 fi
6626
6627
6628
6629
6630
6631 # test EBCDIC or ASCII
6632 case `echo X|tr X '\101'` in
6633 A) # ASCII based system
6634 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6635 lt_SP2NL='tr \040 \012'
6636 lt_NL2SP='tr \015\012 \040\040'
6637 ;;
6638 *) # EBCDIC based system
6639 lt_SP2NL='tr \100 \n'
6640 lt_NL2SP='tr \r\n \100\100'
6641 ;;
6642 esac
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6653 printf %s "checking how to convert $build file names to $host format... " >&6; }
6654 if test ${lt_cv_to_host_file_cmd+y}
6655 then :
6656 printf %s "(cached) " >&6
6657 else case e in #(
6658 e) case $host in
6659 *-*-mingw* )
6660 case $build in
6661 *-*-mingw* | *-*-windows* ) # actually msys
6662 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6663 ;;
6664 *-*-cygwin* )
6665 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6666 ;;
6667 * ) # otherwise, assume *nix
6668 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6669 ;;
6670 esac
6671 ;;
6672 *-*-cygwin* )
6673 case $build in
6674 *-*-mingw* | *-*-windows* ) # actually msys
6675 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6676 ;;
6677 *-*-cygwin* )
6678 lt_cv_to_host_file_cmd=func_convert_file_noop
6679 ;;
6680 * ) # otherwise, assume *nix
6681 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6682 ;;
6683 esac
6684 ;;
6685 * ) # unhandled hosts (and "normal" native builds)
6686 lt_cv_to_host_file_cmd=func_convert_file_noop
6687 ;;
6688 esac
6689 ;;
6690 esac
6691 fi
6692
6693 to_host_file_cmd=$lt_cv_to_host_file_cmd
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6695 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6696
6697
6698
6699
6700
6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6702 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6703 if test ${lt_cv_to_tool_file_cmd+y}
6704 then :
6705 printf %s "(cached) " >&6
6706 else case e in #(
6707 e) #assume ordinary cross tools, or native build.
6708 lt_cv_to_tool_file_cmd=func_convert_file_noop
6709 case $host in
6710 *-*-mingw* | *-*-windows* )
6711 case $build in
6712 *-*-mingw* | *-*-windows* ) # actually msys
6713 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6714 ;;
6715 esac
6716 ;;
6717 esac
6718 ;;
6719 esac
6720 fi
6721
6722 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6724 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6725
6726
6727
6728
6729
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6731 printf %s "checking for $LD option to reload object files... " >&6; }
6732 if test ${lt_cv_ld_reload_flag+y}
6733 then :
6734 printf %s "(cached) " >&6
6735 else case e in #(
6736 e) lt_cv_ld_reload_flag='-r' ;;
6737 esac
6738 fi
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6740 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6741 reload_flag=$lt_cv_ld_reload_flag
6742 case $reload_flag in
6743 "" | " "*) ;;
6744 *) reload_flag=" $reload_flag" ;;
6745 esac
6746 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6747 case $host_os in
6748 cygwin* | mingw* | windows* | pw32* | cegcc*)
6749 if test yes != "$GCC"; then
6750 reload_cmds=false
6751 fi
6752 ;;
6753 darwin*)
6754 if test yes = "$GCC"; then
6755 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6756 else
6757 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6758 fi
6759 ;;
6760 esac
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770 # Extract the first word of "file", so it can be a program name with args.
6771 set dummy file; ac_word=$2
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 printf %s "checking for $ac_word... " >&6; }
6774 if test ${ac_cv_prog_FILECMD+y}
6775 then :
6776 printf %s "(cached) " >&6
6777 else case e in #(
6778 e) if test -n "$FILECMD"; then
6779 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784 IFS=$as_save_IFS
6785 case $as_dir in #(((
6786 '') as_dir=./ ;;
6787 */) ;;
6788 *) as_dir=$as_dir/ ;;
6789 esac
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6792 ac_cv_prog_FILECMD="file"
6793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796 done
6797 done
6798 IFS=$as_save_IFS
6799
6800 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6801 fi ;;
6802 esac
6803 fi
6804 FILECMD=$ac_cv_prog_FILECMD
6805 if test -n "$FILECMD"; then
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6807 printf "%s\n" "$FILECMD" >&6; }
6808 else
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 printf "%s\n" "no" >&6; }
6811 fi
6812
6813
6814
6815
6816
6817
6818
6819
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 printf %s "checking for $ac_word... " >&6; }
6825 if test ${ac_cv_prog_OBJDUMP+y}
6826 then :
6827 printf %s "(cached) " >&6
6828 else case e in #(
6829 e) if test -n "$OBJDUMP"; then
6830 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 case $as_dir in #(((
6837 '') as_dir=./ ;;
6838 */) ;;
6839 *) as_dir=$as_dir/ ;;
6840 esac
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6843 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6845 break 2
6846 fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851 fi ;;
6852 esac
6853 fi
6854 OBJDUMP=$ac_cv_prog_OBJDUMP
6855 if test -n "$OBJDUMP"; then
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6857 printf "%s\n" "$OBJDUMP" >&6; }
6858 else
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 printf "%s\n" "no" >&6; }
6861 fi
6862
6863
6864 fi
6865 if test -z "$ac_cv_prog_OBJDUMP"; then
6866 ac_ct_OBJDUMP=$OBJDUMP
6867 # Extract the first word of "objdump", so it can be a program name with args.
6868 set dummy objdump; ac_word=$2
6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 printf %s "checking for $ac_word... " >&6; }
6871 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6872 then :
6873 printf %s "(cached) " >&6
6874 else case e in #(
6875 e) if test -n "$ac_ct_OBJDUMP"; then
6876 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881 IFS=$as_save_IFS
6882 case $as_dir in #(((
6883 '') as_dir=./ ;;
6884 */) ;;
6885 *) as_dir=$as_dir/ ;;
6886 esac
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897 fi ;;
6898 esac
6899 fi
6900 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6901 if test -n "$ac_ct_OBJDUMP"; then
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6903 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6904 else
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 printf "%s\n" "no" >&6; }
6907 fi
6908
6909 if test "x$ac_ct_OBJDUMP" = x; then
6910 OBJDUMP="false"
6911 else
6912 case $cross_compiling:$ac_tool_warned in
6913 yes:)
6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6915 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916 ac_tool_warned=yes ;;
6917 esac
6918 OBJDUMP=$ac_ct_OBJDUMP
6919 fi
6920 else
6921 OBJDUMP="$ac_cv_prog_OBJDUMP"
6922 fi
6923
6924 test -z "$OBJDUMP" && OBJDUMP=objdump
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6935 printf %s "checking how to recognize dependent libraries... " >&6; }
6936 if test ${lt_cv_deplibs_check_method+y}
6937 then :
6938 printf %s "(cached) " >&6
6939 else case e in #(
6940 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6941 lt_cv_file_magic_test_file=
6942 lt_cv_deplibs_check_method='unknown'
6943 # Need to set the preceding variable on all platforms that support
6944 # interlibrary dependencies.
6945 # 'none' -- dependencies not supported.
6946 # 'unknown' -- same as none, but documents that we really don't know.
6947 # 'pass_all' -- all dependencies passed with no checks.
6948 # 'file_magic [[regex]]' -- check by looking for files in library path
6949 # that responds to the $file_magic_cmd with a given extended regex.
6950 # If you have 'file' or equivalent on your system and you're not sure
6951 # whether 'pass_all' will *always* work, you probably want this one.
6952
6953 case $host_os in
6954 aix[4-9]*)
6955 lt_cv_deplibs_check_method=pass_all
6956 ;;
6957
6958 beos*)
6959 lt_cv_deplibs_check_method=pass_all
6960 ;;
6961
6962 bsdi[45]*)
6963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6964 lt_cv_file_magic_cmd='$FILECMD -L'
6965 lt_cv_file_magic_test_file=/shlib/libc.so
6966 ;;
6967
6968 cygwin*)
6969 # func_win32_libid is a shell function defined in ltmain.sh
6970 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6971 lt_cv_file_magic_cmd='func_win32_libid'
6972 ;;
6973
6974 mingw* | windows* | pw32*)
6975 # Base MSYS/MinGW do not provide the 'file' command needed by
6976 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6977 # unless we find 'file', for example because we are cross-compiling.
6978 if ( file / ) >/dev/null 2>&1; then
6979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6980 lt_cv_file_magic_cmd='func_win32_libid'
6981 else
6982 # Keep this pattern in sync with the one in func_win32_libid.
6983 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6984 lt_cv_file_magic_cmd='$OBJDUMP -f'
6985 fi
6986 ;;
6987
6988 cegcc*)
6989 # use the weaker test based on 'objdump'. See mingw*.
6990 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6991 lt_cv_file_magic_cmd='$OBJDUMP -f'
6992 ;;
6993
6994 darwin* | rhapsody*)
6995 lt_cv_deplibs_check_method=pass_all
6996 ;;
6997
6998 freebsd* | dragonfly* | midnightbsd*)
6999 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7000 case $host_cpu in
7001 i*86 )
7002 # Not sure whether the presence of OpenBSD here was a mistake.
7003 # Let's accept both of them until this is cleared up.
7004 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7005 lt_cv_file_magic_cmd=$FILECMD
7006 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7007 ;;
7008 esac
7009 else
7010 lt_cv_deplibs_check_method=pass_all
7011 fi
7012 ;;
7013
7014 haiku*)
7015 lt_cv_deplibs_check_method=pass_all
7016 ;;
7017
7018 hpux10.20* | hpux11*)
7019 lt_cv_file_magic_cmd=$FILECMD
7020 case $host_cpu in
7021 ia64*)
7022 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7023 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7024 ;;
7025 hppa*64*)
7026 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]'
7027 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7028 ;;
7029 *)
7030 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7031 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7032 ;;
7033 esac
7034 ;;
7035
7036 interix[3-9]*)
7037 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7039 ;;
7040
7041 irix5* | irix6* | nonstopux*)
7042 case $LD in
7043 *-32|*"-32 ") libmagic=32-bit;;
7044 *-n32|*"-n32 ") libmagic=N32;;
7045 *-64|*"-64 ") libmagic=64-bit;;
7046 *) libmagic=never-match;;
7047 esac
7048 lt_cv_deplibs_check_method=pass_all
7049 ;;
7050
7051 # This must be glibc/ELF.
7052 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7053 lt_cv_deplibs_check_method=pass_all
7054 ;;
7055
7056 *-mlibc)
7057 lt_cv_deplibs_check_method=pass_all
7058 ;;
7059
7060 netbsd* | netbsdelf*-gnu)
7061 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7063 else
7064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7065 fi
7066 ;;
7067
7068 newos6*)
7069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7070 lt_cv_file_magic_cmd=$FILECMD
7071 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7072 ;;
7073
7074 *nto* | *qnx*)
7075 lt_cv_deplibs_check_method=pass_all
7076 ;;
7077
7078 openbsd*)
7079 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7081 else
7082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7083 fi
7084 ;;
7085
7086 osf3* | osf4* | osf5*)
7087 lt_cv_deplibs_check_method=pass_all
7088 ;;
7089
7090 rdos*)
7091 lt_cv_deplibs_check_method=pass_all
7092 ;;
7093
7094 serenity*)
7095 lt_cv_deplibs_check_method=pass_all
7096 ;;
7097
7098 solaris*)
7099 lt_cv_deplibs_check_method=pass_all
7100 ;;
7101
7102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7103 lt_cv_deplibs_check_method=pass_all
7104 ;;
7105
7106 sysv4 | sysv4.3*)
7107 case $host_vendor in
7108 motorola)
7109 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]'
7110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7111 ;;
7112 ncr)
7113 lt_cv_deplibs_check_method=pass_all
7114 ;;
7115 sequent)
7116 lt_cv_file_magic_cmd='/bin/file'
7117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7118 ;;
7119 sni)
7120 lt_cv_file_magic_cmd='/bin/file'
7121 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7122 lt_cv_file_magic_test_file=/lib/libc.so
7123 ;;
7124 siemens)
7125 lt_cv_deplibs_check_method=pass_all
7126 ;;
7127 pc)
7128 lt_cv_deplibs_check_method=pass_all
7129 ;;
7130 esac
7131 ;;
7132
7133 tpf*)
7134 lt_cv_deplibs_check_method=pass_all
7135 ;;
7136 os2*)
7137 lt_cv_deplibs_check_method=pass_all
7138 ;;
7139 esac
7140 ;;
7141 esac
7142 fi
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7144 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7145
7146 file_magic_glob=
7147 want_nocaseglob=no
7148 if test "$build" = "$host"; then
7149 case $host_os in
7150 mingw* | windows* | pw32*)
7151 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7152 want_nocaseglob=yes
7153 else
7154 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7155 fi
7156 ;;
7157 esac
7158 fi
7159
7160 file_magic_cmd=$lt_cv_file_magic_cmd
7161 deplibs_check_method=$lt_cv_deplibs_check_method
7162 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 printf %s "checking for $ac_word... " >&6; }
7190 if test ${ac_cv_prog_DLLTOOL+y}
7191 then :
7192 printf %s "(cached) " >&6
7193 else case e in #(
7194 e) if test -n "$DLLTOOL"; then
7195 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200 IFS=$as_save_IFS
7201 case $as_dir in #(((
7202 '') as_dir=./ ;;
7203 */) ;;
7204 *) as_dir=$as_dir/ ;;
7205 esac
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216 fi ;;
7217 esac
7218 fi
7219 DLLTOOL=$ac_cv_prog_DLLTOOL
7220 if test -n "$DLLTOOL"; then
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7222 printf "%s\n" "$DLLTOOL" >&6; }
7223 else
7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 printf "%s\n" "no" >&6; }
7226 fi
7227
7228
7229 fi
7230 if test -z "$ac_cv_prog_DLLTOOL"; then
7231 ac_ct_DLLTOOL=$DLLTOOL
7232 # Extract the first word of "dlltool", so it can be a program name with args.
7233 set dummy dlltool; ac_word=$2
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 printf %s "checking for $ac_word... " >&6; }
7236 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7237 then :
7238 printf %s "(cached) " >&6
7239 else case e in #(
7240 e) if test -n "$ac_ct_DLLTOOL"; then
7241 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246 IFS=$as_save_IFS
7247 case $as_dir in #(((
7248 '') as_dir=./ ;;
7249 */) ;;
7250 *) as_dir=$as_dir/ ;;
7251 esac
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258 done
7259 done
7260 IFS=$as_save_IFS
7261
7262 fi ;;
7263 esac
7264 fi
7265 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7266 if test -n "$ac_ct_DLLTOOL"; then
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7268 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7269 else
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 printf "%s\n" "no" >&6; }
7272 fi
7273
7274 if test "x$ac_ct_DLLTOOL" = x; then
7275 DLLTOOL="false"
7276 else
7277 case $cross_compiling:$ac_tool_warned in
7278 yes:)
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7280 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7281 ac_tool_warned=yes ;;
7282 esac
7283 DLLTOOL=$ac_ct_DLLTOOL
7284 fi
7285 else
7286 DLLTOOL="$ac_cv_prog_DLLTOOL"
7287 fi
7288
7289 test -z "$DLLTOOL" && DLLTOOL=dlltool
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7301 printf %s "checking how to associate runtime and link libraries... " >&6; }
7302 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7303 then :
7304 printf %s "(cached) " >&6
7305 else case e in #(
7306 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7307
7308 case $host_os in
7309 cygwin* | mingw* | windows* | pw32* | cegcc*)
7310 # two different shell functions defined in ltmain.sh;
7311 # decide which one to use based on capabilities of $DLLTOOL
7312 case `$DLLTOOL --help 2>&1` in
7313 *--identify-strict*)
7314 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7315 ;;
7316 *)
7317 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7318 ;;
7319 esac
7320 ;;
7321 *)
7322 # fallback: assume linklib IS sharedlib
7323 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7324 ;;
7325 esac
7326 ;;
7327 esac
7328 fi
7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7330 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7331 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7332 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7333
7334
7335
7336
7337
7338
7339
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 printf %s "checking for $ac_word... " >&6; }
7345 if test ${ac_cv_prog_RANLIB+y}
7346 then :
7347 printf %s "(cached) " >&6
7348 else case e in #(
7349 e) if test -n "$RANLIB"; then
7350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355 IFS=$as_save_IFS
7356 case $as_dir in #(((
7357 '') as_dir=./ ;;
7358 */) ;;
7359 *) as_dir=$as_dir/ ;;
7360 esac
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_RANLIB="${ac_tool_prefix}ranlib"
7364 printf "%s\n" "$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 esac
7373 fi
7374 RANLIB=$ac_cv_prog_RANLIB
7375 if test -n "$RANLIB"; then
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7377 printf "%s\n" "$RANLIB" >&6; }
7378 else
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 printf "%s\n" "no" >&6; }
7381 fi
7382
7383
7384 fi
7385 if test -z "$ac_cv_prog_RANLIB"; then
7386 ac_ct_RANLIB=$RANLIB
7387 # Extract the first word of "ranlib", so it can be a program name with args.
7388 set dummy ranlib; ac_word=$2
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 printf %s "checking for $ac_word... " >&6; }
7391 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7392 then :
7393 printf %s "(cached) " >&6
7394 else case e in #(
7395 e) if test -n "$ac_ct_RANLIB"; then
7396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401 IFS=$as_save_IFS
7402 case $as_dir in #(((
7403 '') as_dir=./ ;;
7404 */) ;;
7405 *) as_dir=$as_dir/ ;;
7406 esac
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_ac_ct_RANLIB="ranlib"
7410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7411 break 2
7412 fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417 fi ;;
7418 esac
7419 fi
7420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7421 if test -n "$ac_ct_RANLIB"; then
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7423 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7424 else
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 printf "%s\n" "no" >&6; }
7427 fi
7428
7429 if test "x$ac_ct_RANLIB" = x; then
7430 RANLIB=":"
7431 else
7432 case $cross_compiling:$ac_tool_warned in
7433 yes:)
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned=yes ;;
7437 esac
7438 RANLIB=$ac_ct_RANLIB
7439 fi
7440 else
7441 RANLIB="$ac_cv_prog_RANLIB"
7442 fi
7443
7444 if test -n "$ac_tool_prefix"; then
7445 for ac_prog in ar
7446 do
7447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 printf %s "checking for $ac_word... " >&6; }
7451 if test ${ac_cv_prog_AR+y}
7452 then :
7453 printf %s "(cached) " >&6
7454 else case e in #(
7455 e) if test -n "$AR"; then
7456 ac_cv_prog_AR="$AR" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461 IFS=$as_save_IFS
7462 case $as_dir in #(((
7463 '') as_dir=./ ;;
7464 */) ;;
7465 *) as_dir=$as_dir/ ;;
7466 esac
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7469 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi ;;
7478 esac
7479 fi
7480 AR=$ac_cv_prog_AR
7481 if test -n "$AR"; then
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7483 printf "%s\n" "$AR" >&6; }
7484 else
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 printf "%s\n" "no" >&6; }
7487 fi
7488
7489
7490 test -n "$AR" && break
7491 done
7492 fi
7493 if test -z "$AR"; then
7494 ac_ct_AR=$AR
7495 for ac_prog in ar
7496 do
7497 # Extract the first word of "$ac_prog", so it can be a program name with args.
7498 set dummy $ac_prog; ac_word=$2
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 printf %s "checking for $ac_word... " >&6; }
7501 if test ${ac_cv_prog_ac_ct_AR+y}
7502 then :
7503 printf %s "(cached) " >&6
7504 else case e in #(
7505 e) if test -n "$ac_ct_AR"; then
7506 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511 IFS=$as_save_IFS
7512 case $as_dir in #(((
7513 '') as_dir=./ ;;
7514 */) ;;
7515 *) as_dir=$as_dir/ ;;
7516 esac
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7519 ac_cv_prog_ac_ct_AR="$ac_prog"
7520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7521 break 2
7522 fi
7523 done
7524 done
7525 IFS=$as_save_IFS
7526
7527 fi ;;
7528 esac
7529 fi
7530 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7531 if test -n "$ac_ct_AR"; then
7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7533 printf "%s\n" "$ac_ct_AR" >&6; }
7534 else
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 printf "%s\n" "no" >&6; }
7537 fi
7538
7539
7540 test -n "$ac_ct_AR" && break
7541 done
7542
7543 if test "x$ac_ct_AR" = x; then
7544 AR="false"
7545 else
7546 case $cross_compiling:$ac_tool_warned in
7547 yes:)
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7549 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7550 ac_tool_warned=yes ;;
7551 esac
7552 AR=$ac_ct_AR
7553 fi
7554 fi
7555
7556 : ${AR=ar}
7557
7558
7559
7560
7561
7562
7563 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7564 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7565 # higher priority because that's what people were doing historically (setting
7566 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7567 # variable obsoleted/removed.
7568
7569 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7570 lt_ar_flags=$AR_FLAGS
7571
7572
7573
7574
7575
7576
7577 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7578 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7579
7580
7581
7582
7583
7584
7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7586 printf %s "checking for archiver @FILE support... " >&6; }
7587 if test ${lt_cv_ar_at_file+y}
7588 then :
7589 printf %s "(cached) " >&6
7590 else case e in #(
7591 e) lt_cv_ar_at_file=no
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594
7595 int
7596 main (void)
7597 {
7598
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 if ac_fn_c_try_compile "$LINENO"
7604 then :
7605 echo conftest.$ac_objext > conftest.lst
7606 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7608 (eval $lt_ar_try) 2>&5
7609 ac_status=$?
7610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7611 test $ac_status = 0; }
7612 if test 0 -eq "$ac_status"; then
7613 # Ensure the archiver fails upon bogus file names.
7614 rm -f conftest.$ac_objext libconftest.a
7615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7616 (eval $lt_ar_try) 2>&5
7617 ac_status=$?
7618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7619 test $ac_status = 0; }
7620 if test 0 -ne "$ac_status"; then
7621 lt_cv_ar_at_file=@
7622 fi
7623 fi
7624 rm -f conftest.* libconftest.a
7625
7626 fi
7627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7628 ;;
7629 esac
7630 fi
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7632 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7633
7634 if test no = "$lt_cv_ar_at_file"; then
7635 archiver_list_spec=
7636 else
7637 archiver_list_spec=$lt_cv_ar_at_file
7638 fi
7639
7640
7641
7642
7643
7644
7645
7646 if test -n "$ac_tool_prefix"; then
7647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7648 set dummy ${ac_tool_prefix}strip; ac_word=$2
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650 printf %s "checking for $ac_word... " >&6; }
7651 if test ${ac_cv_prog_STRIP+y}
7652 then :
7653 printf %s "(cached) " >&6
7654 else case e in #(
7655 e) if test -n "$STRIP"; then
7656 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661 IFS=$as_save_IFS
7662 case $as_dir in #(((
7663 '') as_dir=./ ;;
7664 */) ;;
7665 *) as_dir=$as_dir/ ;;
7666 esac
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7669 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673 done
7674 done
7675 IFS=$as_save_IFS
7676
7677 fi ;;
7678 esac
7679 fi
7680 STRIP=$ac_cv_prog_STRIP
7681 if test -n "$STRIP"; then
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7683 printf "%s\n" "$STRIP" >&6; }
7684 else
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 printf "%s\n" "no" >&6; }
7687 fi
7688
7689
7690 fi
7691 if test -z "$ac_cv_prog_STRIP"; then
7692 ac_ct_STRIP=$STRIP
7693 # Extract the first word of "strip", so it can be a program name with args.
7694 set dummy strip; ac_word=$2
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 printf %s "checking for $ac_word... " >&6; }
7697 if test ${ac_cv_prog_ac_ct_STRIP+y}
7698 then :
7699 printf %s "(cached) " >&6
7700 else case e in #(
7701 e) if test -n "$ac_ct_STRIP"; then
7702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707 IFS=$as_save_IFS
7708 case $as_dir in #(((
7709 '') as_dir=./ ;;
7710 */) ;;
7711 *) as_dir=$as_dir/ ;;
7712 esac
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7715 ac_cv_prog_ac_ct_STRIP="strip"
7716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719 done
7720 done
7721 IFS=$as_save_IFS
7722
7723 fi ;;
7724 esac
7725 fi
7726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7727 if test -n "$ac_ct_STRIP"; then
7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7729 printf "%s\n" "$ac_ct_STRIP" >&6; }
7730 else
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 printf "%s\n" "no" >&6; }
7733 fi
7734
7735 if test "x$ac_ct_STRIP" = x; then
7736 STRIP=":"
7737 else
7738 case $cross_compiling:$ac_tool_warned in
7739 yes:)
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7741 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7742 ac_tool_warned=yes ;;
7743 esac
7744 STRIP=$ac_ct_STRIP
7745 fi
7746 else
7747 STRIP="$ac_cv_prog_STRIP"
7748 fi
7749
7750 test -z "$STRIP" && STRIP=:
7751
7752
7753
7754
7755
7756
7757
7758 test -z "$RANLIB" && RANLIB=:
7759
7760
7761
7762
7763
7764
7765 # Determine commands to create old-style static archives.
7766 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7767 old_postinstall_cmds='chmod 644 $oldlib'
7768 old_postuninstall_cmds=
7769
7770 if test -n "$RANLIB"; then
7771 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7772 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7773 fi
7774
7775 case $host_os in
7776 darwin*)
7777 lock_old_archive_extraction=yes ;;
7778 *)
7779 lock_old_archive_extraction=no ;;
7780 esac
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820 # If no C compiler was specified, use CC.
7821 LTCC=${LTCC-"$CC"}
7822
7823 # If no C compiler flags were specified, use CFLAGS.
7824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7825
7826 # Allow CC to be a program name with arguments.
7827 compiler=$CC
7828
7829
7830 # Check for command to grab the raw symbol name followed by C symbol from nm.
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7832 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7833 if test ${lt_cv_sys_global_symbol_pipe+y}
7834 then :
7835 printf %s "(cached) " >&6
7836 else case e in #(
7837 e)
7838 # These are sane defaults that work on at least a few old systems.
7839 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7840
7841 # Character class describing NM global symbol codes.
7842 symcode='[BCDEGRST]'
7843
7844 # Regexp to match symbols that can be accessed directly from C.
7845 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7846
7847 # Define system-specific variables.
7848 case $host_os in
7849 aix*)
7850 symcode='[BCDT]'
7851 ;;
7852 cygwin* | mingw* | windows* | pw32* | cegcc*)
7853 symcode='[ABCDGISTW]'
7854 ;;
7855 hpux*)
7856 if test ia64 = "$host_cpu"; then
7857 symcode='[ABCDEGRST]'
7858 fi
7859 ;;
7860 irix* | nonstopux*)
7861 symcode='[BCDEGRST]'
7862 ;;
7863 osf*)
7864 symcode='[BCDEGQRST]'
7865 ;;
7866 solaris*)
7867 symcode='[BCDRT]'
7868 ;;
7869 sco3.2v5*)
7870 symcode='[DT]'
7871 ;;
7872 sysv4.2uw2*)
7873 symcode='[DT]'
7874 ;;
7875 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7876 symcode='[ABDT]'
7877 ;;
7878 sysv4)
7879 symcode='[DFNSTU]'
7880 ;;
7881 esac
7882
7883 # If we're using GNU nm, then use its standard symbol codes.
7884 case `$NM -V 2>&1` in
7885 *GNU* | *'with BFD'*)
7886 symcode='[ABCDGIRSTW]' ;;
7887 esac
7888
7889 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7890 # Gets list of data symbols to import.
7891 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7892 # Adjust the below global symbol transforms to fixup imported variables.
7893 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7894 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7895 lt_c_name_lib_hook="\
7896 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7897 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7898 else
7899 # Disable hooks by default.
7900 lt_cv_sys_global_symbol_to_import=
7901 lt_cdecl_hook=
7902 lt_c_name_hook=
7903 lt_c_name_lib_hook=
7904 fi
7905
7906 # Transform an extracted symbol line into a proper C declaration.
7907 # Some systems (esp. on ia64) link data and code symbols differently,
7908 # so use this general approach.
7909 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7910 $lt_cdecl_hook\
7911 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7912 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7913
7914 # Transform an extracted symbol line into symbol name and symbol address
7915 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7916 $lt_c_name_hook\
7917 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7918 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7919
7920 # Transform an extracted symbol line into symbol name with lib prefix and
7921 # symbol address.
7922 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7923 $lt_c_name_lib_hook\
7924 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7925 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7926 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7927
7928 # Handle CRLF in mingw tool chain
7929 opt_cr=
7930 case $build_os in
7931 mingw* | windows*)
7932 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7933 ;;
7934 esac
7935
7936 # Try without a prefix underscore, then with it.
7937 for ac_symprfx in "" "_"; do
7938
7939 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7940 symxfrm="\\1 $ac_symprfx\\2 \\2"
7941
7942 # Write the raw and C identifiers.
7943 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7944 # Fake it for dumpbin and say T for any non-static function,
7945 # D for any global variable and I for any imported variable.
7946 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7947 # which start with @ or ?.
7948 lt_cv_sys_global_symbol_pipe="$AWK '"\
7949 " {last_section=section; section=\$ 3};"\
7950 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7951 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7952 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7953 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7954 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7955 " \$ 0!~/External *\|/{next};"\
7956 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7957 " {if(hide[section]) next};"\
7958 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7959 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7960 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7961 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7962 " ' prfx=^$ac_symprfx"
7963 else
7964 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7965 fi
7966 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7967
7968 # Check to see that the pipe works correctly.
7969 pipe_works=no
7970
7971 rm -f conftest*
7972 cat > conftest.$ac_ext <<_LT_EOF
7973 #ifdef __cplusplus
7974 extern "C" {
7975 #endif
7976 char nm_test_var;
7977 void nm_test_func(void);
7978 void nm_test_func(void){}
7979 #ifdef __cplusplus
7980 }
7981 #endif
7982 int main(void){nm_test_var='a';nm_test_func();return(0);}
7983 _LT_EOF
7984
7985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7986 (eval $ac_compile) 2>&5
7987 ac_status=$?
7988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7989 test $ac_status = 0; }; then
7990 # Now try to grab the symbols.
7991 nlist=conftest.nm
7992 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7993 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7994 # Try sorting and uniquifying the output.
7995 if sort "$nlist" | uniq > "$nlist"T; then
7996 mv -f "$nlist"T "$nlist"
7997 else
7998 rm -f "$nlist"T
7999 fi
8000
8001 # Make sure that we snagged all the symbols we need.
8002 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8003 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8004 cat <<_LT_EOF > conftest.$ac_ext
8005 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8006 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8007 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8008 relocations are performed -- see ld's documentation on pseudo-relocs. */
8009 # define LT_DLSYM_CONST
8010 #elif defined __osf__
8011 /* This system does not cope well with relocations in const data. */
8012 # define LT_DLSYM_CONST
8013 #else
8014 # define LT_DLSYM_CONST const
8015 #endif
8016
8017 #ifdef __cplusplus
8018 extern "C" {
8019 #endif
8020
8021 _LT_EOF
8022 # Now generate the symbol file.
8023 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8024
8025 cat <<_LT_EOF >> conftest.$ac_ext
8026
8027 /* The mapping between symbol names and symbols. */
8028 LT_DLSYM_CONST struct {
8029 const char *name;
8030 void *address;
8031 }
8032 lt__PROGRAM__LTX_preloaded_symbols[] =
8033 {
8034 { "@PROGRAM@", (void *) 0 },
8035 _LT_EOF
8036 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8037 cat <<\_LT_EOF >> conftest.$ac_ext
8038 {0, (void *) 0}
8039 };
8040
8041 /* This works around a problem in FreeBSD linker */
8042 #ifdef FREEBSD_WORKAROUND
8043 static const void *lt_preloaded_setup() {
8044 return lt__PROGRAM__LTX_preloaded_symbols;
8045 }
8046 #endif
8047
8048 #ifdef __cplusplus
8049 }
8050 #endif
8051 _LT_EOF
8052 # Now try linking the two files.
8053 mv conftest.$ac_objext conftstm.$ac_objext
8054 lt_globsym_save_LIBS=$LIBS
8055 lt_globsym_save_CFLAGS=$CFLAGS
8056 LIBS=conftstm.$ac_objext
8057 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8059 (eval $ac_link) 2>&5
8060 ac_status=$?
8061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8062 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8063 pipe_works=yes
8064 fi
8065 LIBS=$lt_globsym_save_LIBS
8066 CFLAGS=$lt_globsym_save_CFLAGS
8067 else
8068 echo "cannot find nm_test_func in $nlist" >&5
8069 fi
8070 else
8071 echo "cannot find nm_test_var in $nlist" >&5
8072 fi
8073 else
8074 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8075 fi
8076 else
8077 echo "$progname: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8079 fi
8080 rm -rf conftest* conftst*
8081
8082 # Do not use the global_symbol_pipe unless it works.
8083 if test yes = "$pipe_works"; then
8084 break
8085 else
8086 lt_cv_sys_global_symbol_pipe=
8087 fi
8088 done
8089 ;;
8090 esac
8091 fi
8092
8093 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8094 lt_cv_sys_global_symbol_to_cdecl=
8095 fi
8096 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8098 printf "%s\n" "failed" >&6; }
8099 else
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8101 printf "%s\n" "ok" >&6; }
8102 fi
8103
8104 # Response file support.
8105 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8106 nm_file_list_spec='@'
8107 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8108 nm_file_list_spec='@'
8109 fi
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8148 printf %s "checking for sysroot... " >&6; }
8149
8150 # Check whether --with-sysroot was given.
8151 if test ${with_sysroot+y}
8152 then :
8153 withval=$with_sysroot;
8154 else case e in #(
8155 e) with_sysroot=no ;;
8156 esac
8157 fi
8158
8159
8160 lt_sysroot=
8161 case $with_sysroot in #(
8162 yes)
8163 if test yes = "$GCC"; then
8164 # Trim trailing / since we'll always append absolute paths and we want
8165 # to avoid //, if only for less confusing output for the user.
8166 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8167 fi
8168 ;; #(
8169 /*)
8170 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8171 ;; #(
8172 no|'')
8173 ;; #(
8174 *)
8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8176 printf "%s\n" "$with_sysroot" >&6; }
8177 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8178 ;;
8179 esac
8180
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8182 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8183
8184
8185
8186
8187
8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8189 printf %s "checking for a working dd... " >&6; }
8190 if test ${ac_cv_path_lt_DD+y}
8191 then :
8192 printf %s "(cached) " >&6
8193 else case e in #(
8194 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8195 cat conftest.i conftest.i >conftest2.i
8196 : ${lt_DD:=$DD}
8197 if test -z "$lt_DD"; then
8198 ac_path_lt_DD_found=false
8199 # Loop through the user's path and test for each of PROGNAME-LIST
8200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 for as_dir in $PATH
8202 do
8203 IFS=$as_save_IFS
8204 case $as_dir in #(((
8205 '') as_dir=./ ;;
8206 */) ;;
8207 *) as_dir=$as_dir/ ;;
8208 esac
8209 for ac_prog in dd
8210 do
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8213 as_fn_executable_p "$ac_path_lt_DD" || continue
8214 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8215 cmp -s conftest.i conftest.out \
8216 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8217 fi
8218 $ac_path_lt_DD_found && break 3
8219 done
8220 done
8221 done
8222 IFS=$as_save_IFS
8223 if test -z "$ac_cv_path_lt_DD"; then
8224 :
8225 fi
8226 else
8227 ac_cv_path_lt_DD=$lt_DD
8228 fi
8229
8230 rm -f conftest.i conftest2.i conftest.out ;;
8231 esac
8232 fi
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8234 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8235
8236
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8238 printf %s "checking how to truncate binary pipes... " >&6; }
8239 if test ${lt_cv_truncate_bin+y}
8240 then :
8241 printf %s "(cached) " >&6
8242 else case e in #(
8243 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8244 cat conftest.i conftest.i >conftest2.i
8245 lt_cv_truncate_bin=
8246 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8247 cmp -s conftest.i conftest.out \
8248 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8249 fi
8250 rm -f conftest.i conftest2.i conftest.out
8251 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8252 esac
8253 fi
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8255 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8256
8257
8258
8259
8260
8261
8262
8263 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8264 func_cc_basename ()
8265 {
8266 for cc_temp in $*""; do
8267 case $cc_temp in
8268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8270 \-*) ;;
8271 *) break;;
8272 esac
8273 done
8274 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8275 }
8276
8277 # Check whether --enable-libtool-lock was given.
8278 if test ${enable_libtool_lock+y}
8279 then :
8280 enableval=$enable_libtool_lock;
8281 fi
8282
8283 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8284
8285 # Some flags need to be propagated to the compiler or linker for good
8286 # libtool support.
8287 case $host in
8288 ia64-*-hpux*)
8289 # Find out what ABI is being produced by ac_compile, and set mode
8290 # options accordingly.
8291 echo 'int i;' > conftest.$ac_ext
8292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8293 (eval $ac_compile) 2>&5
8294 ac_status=$?
8295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8296 test $ac_status = 0; }; then
8297 case `$FILECMD conftest.$ac_objext` in
8298 *ELF-32*)
8299 HPUX_IA64_MODE=32
8300 ;;
8301 *ELF-64*)
8302 HPUX_IA64_MODE=64
8303 ;;
8304 esac
8305 fi
8306 rm -rf conftest*
8307 ;;
8308 *-*-irix6*)
8309 # Find out what ABI is being produced by ac_compile, and set linker
8310 # options accordingly.
8311 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8313 (eval $ac_compile) 2>&5
8314 ac_status=$?
8315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8316 test $ac_status = 0; }; then
8317 if test yes = "$lt_cv_prog_gnu_ld"; then
8318 case `$FILECMD conftest.$ac_objext` in
8319 *32-bit*)
8320 LD="${LD-ld} -melf32bsmip"
8321 ;;
8322 *N32*)
8323 LD="${LD-ld} -melf32bmipn32"
8324 ;;
8325 *64-bit*)
8326 LD="${LD-ld} -melf64bmip"
8327 ;;
8328 esac
8329 else
8330 case `$FILECMD conftest.$ac_objext` in
8331 *32-bit*)
8332 LD="${LD-ld} -32"
8333 ;;
8334 *N32*)
8335 LD="${LD-ld} -n32"
8336 ;;
8337 *64-bit*)
8338 LD="${LD-ld} -64"
8339 ;;
8340 esac
8341 fi
8342 fi
8343 rm -rf conftest*
8344 ;;
8345
8346 mips64*-*linux*)
8347 # Find out what ABI is being produced by ac_compile, and set linker
8348 # options accordingly.
8349 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8351 (eval $ac_compile) 2>&5
8352 ac_status=$?
8353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8354 test $ac_status = 0; }; then
8355 emul=elf
8356 case `$FILECMD conftest.$ac_objext` in
8357 *32-bit*)
8358 emul="${emul}32"
8359 ;;
8360 *64-bit*)
8361 emul="${emul}64"
8362 ;;
8363 esac
8364 case `$FILECMD conftest.$ac_objext` in
8365 *MSB*)
8366 emul="${emul}btsmip"
8367 ;;
8368 *LSB*)
8369 emul="${emul}ltsmip"
8370 ;;
8371 esac
8372 case `$FILECMD conftest.$ac_objext` in
8373 *N32*)
8374 emul="${emul}n32"
8375 ;;
8376 esac
8377 LD="${LD-ld} -m $emul"
8378 fi
8379 rm -rf conftest*
8380 ;;
8381
8382 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8383 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8384 # Find out what ABI is being produced by ac_compile, and set linker
8385 # options accordingly. Note that the listed cases only cover the
8386 # situations where additional linker options are needed (such as when
8387 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8388 # vice versa); the common cases where no linker options are needed do
8389 # not appear in the list.
8390 echo 'int i;' > conftest.$ac_ext
8391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8392 (eval $ac_compile) 2>&5
8393 ac_status=$?
8394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8395 test $ac_status = 0; }; then
8396 case `$FILECMD conftest.o` in
8397 *32-bit*)
8398 case $host in
8399 x86_64-*kfreebsd*-gnu)
8400 LD="${LD-ld} -m elf_i386_fbsd"
8401 ;;
8402 x86_64-*linux*|x86_64-gnu*)
8403 case `$FILECMD conftest.o` in
8404 *x86-64*)
8405 LD="${LD-ld} -m elf32_x86_64"
8406 ;;
8407 *)
8408 LD="${LD-ld} -m elf_i386"
8409 ;;
8410 esac
8411 ;;
8412 powerpc64le-*linux*)
8413 LD="${LD-ld} -m elf32lppclinux"
8414 ;;
8415 powerpc64-*linux*)
8416 LD="${LD-ld} -m elf32ppclinux"
8417 ;;
8418 s390x-*linux*)
8419 LD="${LD-ld} -m elf_s390"
8420 ;;
8421 sparc64-*linux*)
8422 LD="${LD-ld} -m elf32_sparc"
8423 ;;
8424 esac
8425 ;;
8426 *64-bit*)
8427 case $host in
8428 x86_64-*kfreebsd*-gnu)
8429 LD="${LD-ld} -m elf_x86_64_fbsd"
8430 ;;
8431 x86_64-*linux*|x86_64-gnu*)
8432 LD="${LD-ld} -m elf_x86_64"
8433 ;;
8434 powerpcle-*linux*)
8435 LD="${LD-ld} -m elf64lppc"
8436 ;;
8437 powerpc-*linux*)
8438 LD="${LD-ld} -m elf64ppc"
8439 ;;
8440 s390*-*linux*|s390*-*tpf*)
8441 LD="${LD-ld} -m elf64_s390"
8442 ;;
8443 sparc*-*linux*)
8444 LD="${LD-ld} -m elf64_sparc"
8445 ;;
8446 esac
8447 ;;
8448 esac
8449 fi
8450 rm -rf conftest*
8451 ;;
8452
8453 *-*-sco3.2v5*)
8454 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8455 SAVE_CFLAGS=$CFLAGS
8456 CFLAGS="$CFLAGS -belf"
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8458 printf %s "checking whether the C compiler needs -belf... " >&6; }
8459 if test ${lt_cv_cc_needs_belf+y}
8460 then :
8461 printf %s "(cached) " >&6
8462 else case e in #(
8463 e) ac_ext=c
8464 ac_cpp='$CPP $CPPFLAGS'
8465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8468
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h. */
8471
8472 int
8473 main (void)
8474 {
8475
8476 ;
8477 return 0;
8478 }
8479 _ACEOF
8480 if ac_fn_c_try_link "$LINENO"
8481 then :
8482 lt_cv_cc_needs_belf=yes
8483 else case e in #(
8484 e) lt_cv_cc_needs_belf=no ;;
8485 esac
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8488 conftest$ac_exeext conftest.$ac_ext
8489 ac_ext=c
8490 ac_cpp='$CPP $CPPFLAGS'
8491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8494 ;;
8495 esac
8496 fi
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8498 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8499 if test yes != "$lt_cv_cc_needs_belf"; then
8500 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8501 CFLAGS=$SAVE_CFLAGS
8502 fi
8503 ;;
8504 *-*solaris*)
8505 # Find out what ABI is being produced by ac_compile, and set linker
8506 # options accordingly.
8507 echo 'int i;' > conftest.$ac_ext
8508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8509 (eval $ac_compile) 2>&5
8510 ac_status=$?
8511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8512 test $ac_status = 0; }; then
8513 case `$FILECMD conftest.o` in
8514 *64-bit*)
8515 case $lt_cv_prog_gnu_ld in
8516 yes*)
8517 case $host in
8518 i?86-*-solaris*|x86_64-*-solaris*)
8519 LD="${LD-ld} -m elf_x86_64"
8520 ;;
8521 sparc*-*-solaris*)
8522 LD="${LD-ld} -m elf64_sparc"
8523 ;;
8524 esac
8525 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8526 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8527 LD=${LD-ld}_sol2
8528 fi
8529 ;;
8530 *)
8531 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8532 LD="${LD-ld} -64"
8533 fi
8534 ;;
8535 esac
8536 ;;
8537 esac
8538 fi
8539 rm -rf conftest*
8540 ;;
8541 esac
8542
8543 need_locks=$enable_libtool_lock
8544
8545 if test -n "$ac_tool_prefix"; then
8546 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8547 set dummy ${ac_tool_prefix}mt; ac_word=$2
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 printf %s "checking for $ac_word... " >&6; }
8550 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8551 then :
8552 printf %s "(cached) " >&6
8553 else case e in #(
8554 e) if test -n "$MANIFEST_TOOL"; then
8555 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8556 else
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8559 do
8560 IFS=$as_save_IFS
8561 case $as_dir in #(((
8562 '') as_dir=./ ;;
8563 */) ;;
8564 *) as_dir=$as_dir/ ;;
8565 esac
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8568 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8570 break 2
8571 fi
8572 done
8573 done
8574 IFS=$as_save_IFS
8575
8576 fi ;;
8577 esac
8578 fi
8579 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8580 if test -n "$MANIFEST_TOOL"; then
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8582 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8583 else
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 printf "%s\n" "no" >&6; }
8586 fi
8587
8588
8589 fi
8590 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8591 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8592 # Extract the first word of "mt", so it can be a program name with args.
8593 set dummy mt; ac_word=$2
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 printf %s "checking for $ac_word... " >&6; }
8596 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8597 then :
8598 printf %s "(cached) " >&6
8599 else case e in #(
8600 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8601 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8602 else
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8605 do
8606 IFS=$as_save_IFS
8607 case $as_dir in #(((
8608 '') as_dir=./ ;;
8609 */) ;;
8610 *) as_dir=$as_dir/ ;;
8611 esac
8612 for ac_exec_ext in '' $ac_executable_extensions; do
8613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8614 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8616 break 2
8617 fi
8618 done
8619 done
8620 IFS=$as_save_IFS
8621
8622 fi ;;
8623 esac
8624 fi
8625 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8626 if test -n "$ac_ct_MANIFEST_TOOL"; then
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8628 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8629 else
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 printf "%s\n" "no" >&6; }
8632 fi
8633
8634 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8635 MANIFEST_TOOL=":"
8636 else
8637 case $cross_compiling:$ac_tool_warned in
8638 yes:)
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8640 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8641 ac_tool_warned=yes ;;
8642 esac
8643 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8644 fi
8645 else
8646 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8647 fi
8648
8649 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8651 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8652 if test ${lt_cv_path_manifest_tool+y}
8653 then :
8654 printf %s "(cached) " >&6
8655 else case e in #(
8656 e) lt_cv_path_manifest_tool=no
8657 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8658 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8659 cat conftest.err >&5
8660 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8661 lt_cv_path_manifest_tool=yes
8662 fi
8663 rm -f conftest* ;;
8664 esac
8665 fi
8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8667 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8668 if test yes != "$lt_cv_path_manifest_tool"; then
8669 MANIFEST_TOOL=:
8670 fi
8671
8672
8673
8674
8675
8676
8677 case $host_os in
8678 rhapsody* | darwin*)
8679 if test -n "$ac_tool_prefix"; then
8680 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8681 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 printf %s "checking for $ac_word... " >&6; }
8684 if test ${ac_cv_prog_DSYMUTIL+y}
8685 then :
8686 printf %s "(cached) " >&6
8687 else case e in #(
8688 e) if test -n "$DSYMUTIL"; then
8689 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8693 do
8694 IFS=$as_save_IFS
8695 case $as_dir in #(((
8696 '') as_dir=./ ;;
8697 */) ;;
8698 *) as_dir=$as_dir/ ;;
8699 esac
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8702 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8704 break 2
8705 fi
8706 done
8707 done
8708 IFS=$as_save_IFS
8709
8710 fi ;;
8711 esac
8712 fi
8713 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8714 if test -n "$DSYMUTIL"; then
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8716 printf "%s\n" "$DSYMUTIL" >&6; }
8717 else
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 printf "%s\n" "no" >&6; }
8720 fi
8721
8722
8723 fi
8724 if test -z "$ac_cv_prog_DSYMUTIL"; then
8725 ac_ct_DSYMUTIL=$DSYMUTIL
8726 # Extract the first word of "dsymutil", so it can be a program name with args.
8727 set dummy dsymutil; ac_word=$2
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 printf %s "checking for $ac_word... " >&6; }
8730 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8731 then :
8732 printf %s "(cached) " >&6
8733 else case e in #(
8734 e) if test -n "$ac_ct_DSYMUTIL"; then
8735 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8736 else
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8739 do
8740 IFS=$as_save_IFS
8741 case $as_dir in #(((
8742 '') as_dir=./ ;;
8743 */) ;;
8744 *) as_dir=$as_dir/ ;;
8745 esac
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8748 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8750 break 2
8751 fi
8752 done
8753 done
8754 IFS=$as_save_IFS
8755
8756 fi ;;
8757 esac
8758 fi
8759 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8760 if test -n "$ac_ct_DSYMUTIL"; then
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8762 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8763 else
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 printf "%s\n" "no" >&6; }
8766 fi
8767
8768 if test "x$ac_ct_DSYMUTIL" = x; then
8769 DSYMUTIL=":"
8770 else
8771 case $cross_compiling:$ac_tool_warned in
8772 yes:)
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8775 ac_tool_warned=yes ;;
8776 esac
8777 DSYMUTIL=$ac_ct_DSYMUTIL
8778 fi
8779 else
8780 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8781 fi
8782
8783 if test -n "$ac_tool_prefix"; then
8784 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8785 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 printf %s "checking for $ac_word... " >&6; }
8788 if test ${ac_cv_prog_NMEDIT+y}
8789 then :
8790 printf %s "(cached) " >&6
8791 else case e in #(
8792 e) if test -n "$NMEDIT"; then
8793 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8794 else
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 for as_dir in $PATH
8797 do
8798 IFS=$as_save_IFS
8799 case $as_dir in #(((
8800 '') as_dir=./ ;;
8801 */) ;;
8802 *) as_dir=$as_dir/ ;;
8803 esac
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8806 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8808 break 2
8809 fi
8810 done
8811 done
8812 IFS=$as_save_IFS
8813
8814 fi ;;
8815 esac
8816 fi
8817 NMEDIT=$ac_cv_prog_NMEDIT
8818 if test -n "$NMEDIT"; then
8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8820 printf "%s\n" "$NMEDIT" >&6; }
8821 else
8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 printf "%s\n" "no" >&6; }
8824 fi
8825
8826
8827 fi
8828 if test -z "$ac_cv_prog_NMEDIT"; then
8829 ac_ct_NMEDIT=$NMEDIT
8830 # Extract the first word of "nmedit", so it can be a program name with args.
8831 set dummy nmedit; ac_word=$2
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833 printf %s "checking for $ac_word... " >&6; }
8834 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8835 then :
8836 printf %s "(cached) " >&6
8837 else case e in #(
8838 e) if test -n "$ac_ct_NMEDIT"; then
8839 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8840 else
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8843 do
8844 IFS=$as_save_IFS
8845 case $as_dir in #(((
8846 '') as_dir=./ ;;
8847 */) ;;
8848 *) as_dir=$as_dir/ ;;
8849 esac
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8852 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8854 break 2
8855 fi
8856 done
8857 done
8858 IFS=$as_save_IFS
8859
8860 fi ;;
8861 esac
8862 fi
8863 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8864 if test -n "$ac_ct_NMEDIT"; then
8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8866 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8867 else
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 printf "%s\n" "no" >&6; }
8870 fi
8871
8872 if test "x$ac_ct_NMEDIT" = x; then
8873 NMEDIT=":"
8874 else
8875 case $cross_compiling:$ac_tool_warned in
8876 yes:)
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8878 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8879 ac_tool_warned=yes ;;
8880 esac
8881 NMEDIT=$ac_ct_NMEDIT
8882 fi
8883 else
8884 NMEDIT="$ac_cv_prog_NMEDIT"
8885 fi
8886
8887 if test -n "$ac_tool_prefix"; then
8888 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8889 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891 printf %s "checking for $ac_word... " >&6; }
8892 if test ${ac_cv_prog_LIPO+y}
8893 then :
8894 printf %s "(cached) " >&6
8895 else case e in #(
8896 e) if test -n "$LIPO"; then
8897 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8898 else
8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 for as_dir in $PATH
8901 do
8902 IFS=$as_save_IFS
8903 case $as_dir in #(((
8904 '') as_dir=./ ;;
8905 */) ;;
8906 *) as_dir=$as_dir/ ;;
8907 esac
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914 done
8915 done
8916 IFS=$as_save_IFS
8917
8918 fi ;;
8919 esac
8920 fi
8921 LIPO=$ac_cv_prog_LIPO
8922 if test -n "$LIPO"; then
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8924 printf "%s\n" "$LIPO" >&6; }
8925 else
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 printf "%s\n" "no" >&6; }
8928 fi
8929
8930
8931 fi
8932 if test -z "$ac_cv_prog_LIPO"; then
8933 ac_ct_LIPO=$LIPO
8934 # Extract the first word of "lipo", so it can be a program name with args.
8935 set dummy lipo; ac_word=$2
8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 printf %s "checking for $ac_word... " >&6; }
8938 if test ${ac_cv_prog_ac_ct_LIPO+y}
8939 then :
8940 printf %s "(cached) " >&6
8941 else case e in #(
8942 e) if test -n "$ac_ct_LIPO"; then
8943 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8944 else
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8947 do
8948 IFS=$as_save_IFS
8949 case $as_dir in #(((
8950 '') as_dir=./ ;;
8951 */) ;;
8952 *) as_dir=$as_dir/ ;;
8953 esac
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8956 ac_cv_prog_ac_ct_LIPO="lipo"
8957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8958 break 2
8959 fi
8960 done
8961 done
8962 IFS=$as_save_IFS
8963
8964 fi ;;
8965 esac
8966 fi
8967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8968 if test -n "$ac_ct_LIPO"; then
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8970 printf "%s\n" "$ac_ct_LIPO" >&6; }
8971 else
8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 printf "%s\n" "no" >&6; }
8974 fi
8975
8976 if test "x$ac_ct_LIPO" = x; then
8977 LIPO=":"
8978 else
8979 case $cross_compiling:$ac_tool_warned in
8980 yes:)
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8982 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8983 ac_tool_warned=yes ;;
8984 esac
8985 LIPO=$ac_ct_LIPO
8986 fi
8987 else
8988 LIPO="$ac_cv_prog_LIPO"
8989 fi
8990
8991 if test -n "$ac_tool_prefix"; then
8992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8993 set dummy ${ac_tool_prefix}otool; ac_word=$2
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 printf %s "checking for $ac_word... " >&6; }
8996 if test ${ac_cv_prog_OTOOL+y}
8997 then :
8998 printf %s "(cached) " >&6
8999 else case e in #(
9000 e) if test -n "$OTOOL"; then
9001 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9002 else
9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 for as_dir in $PATH
9005 do
9006 IFS=$as_save_IFS
9007 case $as_dir in #(((
9008 '') as_dir=./ ;;
9009 */) ;;
9010 *) as_dir=$as_dir/ ;;
9011 esac
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018 done
9019 done
9020 IFS=$as_save_IFS
9021
9022 fi ;;
9023 esac
9024 fi
9025 OTOOL=$ac_cv_prog_OTOOL
9026 if test -n "$OTOOL"; then
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9028 printf "%s\n" "$OTOOL" >&6; }
9029 else
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 printf "%s\n" "no" >&6; }
9032 fi
9033
9034
9035 fi
9036 if test -z "$ac_cv_prog_OTOOL"; then
9037 ac_ct_OTOOL=$OTOOL
9038 # Extract the first word of "otool", so it can be a program name with args.
9039 set dummy otool; ac_word=$2
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 printf %s "checking for $ac_word... " >&6; }
9042 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9043 then :
9044 printf %s "(cached) " >&6
9045 else case e in #(
9046 e) if test -n "$ac_ct_OTOOL"; then
9047 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9048 else
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9051 do
9052 IFS=$as_save_IFS
9053 case $as_dir in #(((
9054 '') as_dir=./ ;;
9055 */) ;;
9056 *) as_dir=$as_dir/ ;;
9057 esac
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9060 ac_cv_prog_ac_ct_OTOOL="otool"
9061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9062 break 2
9063 fi
9064 done
9065 done
9066 IFS=$as_save_IFS
9067
9068 fi ;;
9069 esac
9070 fi
9071 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9072 if test -n "$ac_ct_OTOOL"; then
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9074 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9075 else
9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 printf "%s\n" "no" >&6; }
9078 fi
9079
9080 if test "x$ac_ct_OTOOL" = x; then
9081 OTOOL=":"
9082 else
9083 case $cross_compiling:$ac_tool_warned in
9084 yes:)
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9086 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9087 ac_tool_warned=yes ;;
9088 esac
9089 OTOOL=$ac_ct_OTOOL
9090 fi
9091 else
9092 OTOOL="$ac_cv_prog_OTOOL"
9093 fi
9094
9095 if test -n "$ac_tool_prefix"; then
9096 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9097 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 printf %s "checking for $ac_word... " >&6; }
9100 if test ${ac_cv_prog_OTOOL64+y}
9101 then :
9102 printf %s "(cached) " >&6
9103 else case e in #(
9104 e) if test -n "$OTOOL64"; then
9105 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9106 else
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9109 do
9110 IFS=$as_save_IFS
9111 case $as_dir in #(((
9112 '') as_dir=./ ;;
9113 */) ;;
9114 *) as_dir=$as_dir/ ;;
9115 esac
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9118 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9120 break 2
9121 fi
9122 done
9123 done
9124 IFS=$as_save_IFS
9125
9126 fi ;;
9127 esac
9128 fi
9129 OTOOL64=$ac_cv_prog_OTOOL64
9130 if test -n "$OTOOL64"; then
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9132 printf "%s\n" "$OTOOL64" >&6; }
9133 else
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135 printf "%s\n" "no" >&6; }
9136 fi
9137
9138
9139 fi
9140 if test -z "$ac_cv_prog_OTOOL64"; then
9141 ac_ct_OTOOL64=$OTOOL64
9142 # Extract the first word of "otool64", so it can be a program name with args.
9143 set dummy otool64; ac_word=$2
9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9145 printf %s "checking for $ac_word... " >&6; }
9146 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9147 then :
9148 printf %s "(cached) " >&6
9149 else case e in #(
9150 e) if test -n "$ac_ct_OTOOL64"; then
9151 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9152 else
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9155 do
9156 IFS=$as_save_IFS
9157 case $as_dir in #(((
9158 '') as_dir=./ ;;
9159 */) ;;
9160 *) as_dir=$as_dir/ ;;
9161 esac
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9164 ac_cv_prog_ac_ct_OTOOL64="otool64"
9165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9166 break 2
9167 fi
9168 done
9169 done
9170 IFS=$as_save_IFS
9171
9172 fi ;;
9173 esac
9174 fi
9175 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9176 if test -n "$ac_ct_OTOOL64"; then
9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9178 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9179 else
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 printf "%s\n" "no" >&6; }
9182 fi
9183
9184 if test "x$ac_ct_OTOOL64" = x; then
9185 OTOOL64=":"
9186 else
9187 case $cross_compiling:$ac_tool_warned in
9188 yes:)
9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9190 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9191 ac_tool_warned=yes ;;
9192 esac
9193 OTOOL64=$ac_ct_OTOOL64
9194 fi
9195 else
9196 OTOOL64="$ac_cv_prog_OTOOL64"
9197 fi
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9226 printf %s "checking for -single_module linker flag... " >&6; }
9227 if test ${lt_cv_apple_cc_single_mod+y}
9228 then :
9229 printf %s "(cached) " >&6
9230 else case e in #(
9231 e) lt_cv_apple_cc_single_mod=no
9232 if test -z "$LT_MULTI_MODULE"; then
9233 # By default we will add the -single_module flag. You can override
9234 # by either setting the environment variable LT_MULTI_MODULE
9235 # non-empty at configure time, or by adding -multi_module to the
9236 # link flags.
9237 rm -rf libconftest.dylib*
9238 echo "int foo(void){return 1;}" > conftest.c
9239 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9240 -dynamiclib -Wl,-single_module conftest.c" >&5
9241 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9242 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9243 _lt_result=$?
9244 # If there is a non-empty error log, and "single_module"
9245 # appears in it, assume the flag caused a linker warning
9246 if test -s conftest.err && $GREP single_module conftest.err; then
9247 cat conftest.err >&5
9248 # Otherwise, if the output was created with a 0 exit code from
9249 # the compiler, it worked.
9250 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9251 lt_cv_apple_cc_single_mod=yes
9252 else
9253 cat conftest.err >&5
9254 fi
9255 rm -rf libconftest.dylib*
9256 rm -f conftest.*
9257 fi ;;
9258 esac
9259 fi
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9261 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9262
9263 # Feature test to disable chained fixups since it is not
9264 # compatible with '-undefined dynamic_lookup'
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9266 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9267 if test ${lt_cv_support_no_fixup_chains+y}
9268 then :
9269 printf %s "(cached) " >&6
9270 else case e in #(
9271 e) save_LDFLAGS=$LDFLAGS
9272 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275
9276 int
9277 main (void)
9278 {
9279
9280 ;
9281 return 0;
9282 }
9283 _ACEOF
9284 if ac_fn_c_try_link "$LINENO"
9285 then :
9286 lt_cv_support_no_fixup_chains=yes
9287 else case e in #(
9288 e) lt_cv_support_no_fixup_chains=no
9289 ;;
9290 esac
9291 fi
9292 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9293 conftest$ac_exeext conftest.$ac_ext
9294 LDFLAGS=$save_LDFLAGS
9295
9296 ;;
9297 esac
9298 fi
9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9300 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9301
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9303 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9304 if test ${lt_cv_ld_exported_symbols_list+y}
9305 then :
9306 printf %s "(cached) " >&6
9307 else case e in #(
9308 e) lt_cv_ld_exported_symbols_list=no
9309 save_LDFLAGS=$LDFLAGS
9310 echo "_main" > conftest.sym
9311 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314
9315 int
9316 main (void)
9317 {
9318
9319 ;
9320 return 0;
9321 }
9322 _ACEOF
9323 if ac_fn_c_try_link "$LINENO"
9324 then :
9325 lt_cv_ld_exported_symbols_list=yes
9326 else case e in #(
9327 e) lt_cv_ld_exported_symbols_list=no ;;
9328 esac
9329 fi
9330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9331 conftest$ac_exeext conftest.$ac_ext
9332 LDFLAGS=$save_LDFLAGS
9333 ;;
9334 esac
9335 fi
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9337 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9338
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9340 printf %s "checking for -force_load linker flag... " >&6; }
9341 if test ${lt_cv_ld_force_load+y}
9342 then :
9343 printf %s "(cached) " >&6
9344 else case e in #(
9345 e) lt_cv_ld_force_load=no
9346 cat > conftest.c << _LT_EOF
9347 int forced_loaded() { return 2;}
9348 _LT_EOF
9349 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9350 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9351 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9352 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9353 echo "$RANLIB libconftest.a" >&5
9354 $RANLIB libconftest.a 2>&5
9355 cat > conftest.c << _LT_EOF
9356 int main(void) { return 0;}
9357 _LT_EOF
9358 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9359 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9360 _lt_result=$?
9361 if test -s conftest.err && $GREP force_load conftest.err; then
9362 cat conftest.err >&5
9363 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9364 lt_cv_ld_force_load=yes
9365 else
9366 cat conftest.err >&5
9367 fi
9368 rm -f conftest.err libconftest.a conftest conftest.c
9369 rm -rf conftest.dSYM
9370 ;;
9371 esac
9372 fi
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9374 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9375 case $host_os in
9376 rhapsody* | darwin1.[012])
9377 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9378 darwin1.*)
9379 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9380 darwin*)
9381 case $MACOSX_DEPLOYMENT_TARGET,$host in
9382 10.[012],*|,*powerpc*-darwin[5-8]*)
9383 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9384 *)
9385 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9386 if test yes = "$lt_cv_support_no_fixup_chains"; then
9387 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9388 fi
9389 ;;
9390 esac
9391 ;;
9392 esac
9393 if test yes = "$lt_cv_apple_cc_single_mod"; then
9394 _lt_dar_single_mod='$single_module'
9395 fi
9396 _lt_dar_needs_single_mod=no
9397 case $host_os in
9398 rhapsody* | darwin1.*)
9399 _lt_dar_needs_single_mod=yes ;;
9400 darwin*)
9401 # When targeting Mac OS X 10.4 (darwin 8) or later,
9402 # -single_module is the default and -multi_module is unsupported.
9403 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9404 # target any OS version that needs -single_module.
9405 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9406 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9407 _lt_dar_needs_single_mod=yes ;;
9408 esac
9409 ;;
9410 esac
9411 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9412 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9413 else
9414 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9415 fi
9416 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9417 _lt_dsymutil='~$DSYMUTIL $lib || :'
9418 else
9419 _lt_dsymutil=
9420 fi
9421 ;;
9422 esac
9423
9424 # func_munge_path_list VARIABLE PATH
9425 # -----------------------------------
9426 # VARIABLE is name of variable containing _space_ separated list of
9427 # directories to be munged by the contents of PATH, which is string
9428 # having a format:
9429 # "DIR[:DIR]:"
9430 # string "DIR[ DIR]" will be prepended to VARIABLE
9431 # ":DIR[:DIR]"
9432 # string "DIR[ DIR]" will be appended to VARIABLE
9433 # "DIRP[:DIRP]::[DIRA:]DIRA"
9434 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9435 # "DIRA[ DIRA]" will be appended to VARIABLE
9436 # "DIR[:DIR]"
9437 # VARIABLE will be replaced by "DIR[ DIR]"
9438 func_munge_path_list ()
9439 {
9440 case x$2 in
9441 x)
9442 ;;
9443 *:)
9444 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9445 ;;
9446 x:*)
9447 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9448 ;;
9449 *::*)
9450 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9451 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9452 ;;
9453 *)
9454 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9455 ;;
9456 esac
9457 }
9458
9459 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9460 "
9461 if test "x$ac_cv_header_dlfcn_h" = xyes
9462 then :
9463 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9464
9465 fi
9466
9467
9468
9469
9470
9471 # Set options
9472 enable_dlopen=yes
9473
9474
9475
9476
9477 enable_win32_dll=no
9478
9479
9480 # Check whether --enable-shared was given.
9481 if test ${enable_shared+y}
9482 then :
9483 enableval=$enable_shared; p=${PACKAGE-default}
9484 case $enableval in
9485 yes) enable_shared=yes ;;
9486 no) enable_shared=no ;;
9487 *)
9488 enable_shared=no
9489 # Look at the argument we got. We use all the common list separators.
9490 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9491 for pkg in $enableval; do
9492 IFS=$lt_save_ifs
9493 if test "X$pkg" = "X$p"; then
9494 enable_shared=yes
9495 fi
9496 done
9497 IFS=$lt_save_ifs
9498 ;;
9499 esac
9500 else case e in #(
9501 e) enable_shared=yes ;;
9502 esac
9503 fi
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513 # Check whether --enable-static was given.
9514 if test ${enable_static+y}
9515 then :
9516 enableval=$enable_static; p=${PACKAGE-default}
9517 case $enableval in
9518 yes) enable_static=yes ;;
9519 no) enable_static=no ;;
9520 *)
9521 enable_static=no
9522 # Look at the argument we got. We use all the common list separators.
9523 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9524 for pkg in $enableval; do
9525 IFS=$lt_save_ifs
9526 if test "X$pkg" = "X$p"; then
9527 enable_static=yes
9528 fi
9529 done
9530 IFS=$lt_save_ifs
9531 ;;
9532 esac
9533 else case e in #(
9534 e) enable_static=yes ;;
9535 esac
9536 fi
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546 # Check whether --enable-pic was given.
9547 if test ${enable_pic+y}
9548 then :
9549 enableval=$enable_pic; lt_p=${PACKAGE-default}
9550 case $enableval in
9551 yes|no) pic_mode=$enableval ;;
9552 *)
9553 pic_mode=default
9554 # Look at the argument we got. We use all the common list separators.
9555 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9556 for lt_pkg in $enableval; do
9557 IFS=$lt_save_ifs
9558 if test "X$lt_pkg" = "X$lt_p"; then
9559 pic_mode=yes
9560 fi
9561 done
9562 IFS=$lt_save_ifs
9563 ;;
9564 esac
9565 else case e in #(
9566 e) # Check whether --with-pic was given.
9567 if test ${with_pic+y}
9568 then :
9569 withval=$with_pic; lt_p=${PACKAGE-default}
9570 case $withval in
9571 yes|no) pic_mode=$withval ;;
9572 *)
9573 pic_mode=default
9574 # Look at the argument we got. We use all the common list separators.
9575 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9576 for lt_pkg in $withval; do
9577 IFS=$lt_save_ifs
9578 if test "X$lt_pkg" = "X$lt_p"; then
9579 pic_mode=yes
9580 fi
9581 done
9582 IFS=$lt_save_ifs
9583 ;;
9584 esac
9585 else case e in #(
9586 e) pic_mode=default ;;
9587 esac
9588 fi
9589
9590 ;;
9591 esac
9592 fi
9593
9594
9595
9596
9597
9598
9599
9600
9601 # Check whether --enable-fast-install was given.
9602 if test ${enable_fast_install+y}
9603 then :
9604 enableval=$enable_fast_install; p=${PACKAGE-default}
9605 case $enableval in
9606 yes) enable_fast_install=yes ;;
9607 no) enable_fast_install=no ;;
9608 *)
9609 enable_fast_install=no
9610 # Look at the argument we got. We use all the common list separators.
9611 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9612 for pkg in $enableval; do
9613 IFS=$lt_save_ifs
9614 if test "X$pkg" = "X$p"; then
9615 enable_fast_install=yes
9616 fi
9617 done
9618 IFS=$lt_save_ifs
9619 ;;
9620 esac
9621 else case e in #(
9622 e) enable_fast_install=yes ;;
9623 esac
9624 fi
9625
9626
9627
9628
9629
9630
9631
9632
9633 shared_archive_member_spec=
9634 case $host,$enable_shared in
9635 power*-*-aix[5-9]*,yes)
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9637 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9638 # Check whether --enable-aix-soname was given.
9639 if test ${enable_aix_soname+y}
9640 then :
9641 enableval=$enable_aix_soname; case $enableval in
9642 aix|svr4|both)
9643 ;;
9644 *)
9645 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9646 ;;
9647 esac
9648 lt_cv_with_aix_soname=$enable_aix_soname
9649 else case e in #(
9650 e) # Check whether --with-aix-soname was given.
9651 if test ${with_aix_soname+y}
9652 then :
9653 withval=$with_aix_soname; case $withval in
9654 aix|svr4|both)
9655 ;;
9656 *)
9657 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9658 ;;
9659 esac
9660 lt_cv_with_aix_soname=$with_aix_soname
9661 else case e in #(
9662 e) if test ${lt_cv_with_aix_soname+y}
9663 then :
9664 printf %s "(cached) " >&6
9665 else case e in #(
9666 e) lt_cv_with_aix_soname=aix ;;
9667 esac
9668 fi
9669 ;;
9670 esac
9671 fi
9672
9673 enable_aix_soname=$lt_cv_with_aix_soname ;;
9674 esac
9675 fi
9676
9677 with_aix_soname=$enable_aix_soname
9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9679 printf "%s\n" "$with_aix_soname" >&6; }
9680 if test aix != "$with_aix_soname"; then
9681 # For the AIX way of multilib, we name the shared archive member
9682 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9683 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9684 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9685 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9686 if test 64 = "${OBJECT_MODE-32}"; then
9687 shared_archive_member_spec=shr_64
9688 else
9689 shared_archive_member_spec=shr
9690 fi
9691 fi
9692 ;;
9693 *)
9694 with_aix_soname=aix
9695 ;;
9696 esac
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707 # This can be used to rebuild libtool when needed
9708 LIBTOOL_DEPS=$ltmain
9709
9710 # Always use our own libtool.
9711 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742 test -z "$LN_S" && LN_S="ln -s"
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757 if test -n "${ZSH_VERSION+set}"; then
9758 setopt NO_GLOB_SUBST
9759 fi
9760
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9762 printf %s "checking for objdir... " >&6; }
9763 if test ${lt_cv_objdir+y}
9764 then :
9765 printf %s "(cached) " >&6
9766 else case e in #(
9767 e) rm -f .libs 2>/dev/null
9768 mkdir .libs 2>/dev/null
9769 if test -d .libs; then
9770 lt_cv_objdir=.libs
9771 else
9772 # MS-DOS does not allow filenames that begin with a dot.
9773 lt_cv_objdir=_libs
9774 fi
9775 rmdir .libs 2>/dev/null ;;
9776 esac
9777 fi
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9779 printf "%s\n" "$lt_cv_objdir" >&6; }
9780 objdir=$lt_cv_objdir
9781
9782
9783
9784
9785
9786 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9787
9788
9789
9790
9791 case $host_os in
9792 aix3*)
9793 # AIX sometimes has problems with the GCC collect2 program. For some
9794 # reason, if we set the COLLECT_NAMES environment variable, the problems
9795 # vanish in a puff of smoke.
9796 if test set != "${COLLECT_NAMES+set}"; then
9797 COLLECT_NAMES=
9798 export COLLECT_NAMES
9799 fi
9800 ;;
9801 esac
9802
9803 # Global variables:
9804 ofile=libtool
9805 can_build_shared=yes
9806
9807 # All known linkers require a '.a' archive for static linking (except MSVC and
9808 # ICC, which need '.lib').
9809 libext=a
9810
9811 with_gnu_ld=$lt_cv_prog_gnu_ld
9812
9813 old_CC=$CC
9814 old_CFLAGS=$CFLAGS
9815
9816 # Set sane defaults for various variables
9817 test -z "$CC" && CC=cc
9818 test -z "$LTCC" && LTCC=$CC
9819 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9820 test -z "$LD" && LD=ld
9821 test -z "$ac_objext" && ac_objext=o
9822
9823 func_cc_basename $compiler
9824 cc_basename=$func_cc_basename_result
9825
9826
9827 # Only perform the check for file, if the check method requires it
9828 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9829 case $deplibs_check_method in
9830 file_magic*)
9831 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9833 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9834 if test ${lt_cv_path_MAGIC_CMD+y}
9835 then :
9836 printf %s "(cached) " >&6
9837 else case e in #(
9838 e) case $MAGIC_CMD in
9839 [\\/*] | ?:[\\/]*)
9840 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9841 ;;
9842 *)
9843 lt_save_MAGIC_CMD=$MAGIC_CMD
9844 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9845 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9846 for ac_dir in $ac_dummy; do
9847 IFS=$lt_save_ifs
9848 test -z "$ac_dir" && ac_dir=.
9849 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9850 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9851 if test -n "$file_magic_test_file"; then
9852 case $deplibs_check_method in
9853 "file_magic "*)
9854 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9855 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9856 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9857 $EGREP "$file_magic_regex" > /dev/null; then
9858 :
9859 else
9860 cat <<_LT_EOF 1>&2
9861
9862 *** Warning: the command libtool uses to detect shared libraries,
9863 *** $file_magic_cmd, produces output that libtool cannot recognize.
9864 *** The result is that libtool may fail to recognize shared libraries
9865 *** as such. This will affect the creation of libtool libraries that
9866 *** depend on shared libraries, but programs linked with such libtool
9867 *** libraries will work regardless of this problem. Nevertheless, you
9868 *** may want to report the problem to your system manager and/or to
9869 *** [email protected]
9870
9871 _LT_EOF
9872 fi ;;
9873 esac
9874 fi
9875 break
9876 fi
9877 done
9878 IFS=$lt_save_ifs
9879 MAGIC_CMD=$lt_save_MAGIC_CMD
9880 ;;
9881 esac ;;
9882 esac
9883 fi
9884
9885 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9886 if test -n "$MAGIC_CMD"; then
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9888 printf "%s\n" "$MAGIC_CMD" >&6; }
9889 else
9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 printf "%s\n" "no" >&6; }
9892 fi
9893
9894
9895
9896
9897
9898 if test -z "$lt_cv_path_MAGIC_CMD"; then
9899 if test -n "$ac_tool_prefix"; then
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9901 printf %s "checking for file... " >&6; }
9902 if test ${lt_cv_path_MAGIC_CMD+y}
9903 then :
9904 printf %s "(cached) " >&6
9905 else case e in #(
9906 e) case $MAGIC_CMD in
9907 [\\/*] | ?:[\\/]*)
9908 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9909 ;;
9910 *)
9911 lt_save_MAGIC_CMD=$MAGIC_CMD
9912 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9913 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9914 for ac_dir in $ac_dummy; do
9915 IFS=$lt_save_ifs
9916 test -z "$ac_dir" && ac_dir=.
9917 if test -f "$ac_dir/file"; then
9918 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9919 if test -n "$file_magic_test_file"; then
9920 case $deplibs_check_method in
9921 "file_magic "*)
9922 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9923 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9924 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9925 $EGREP "$file_magic_regex" > /dev/null; then
9926 :
9927 else
9928 cat <<_LT_EOF 1>&2
9929
9930 *** Warning: the command libtool uses to detect shared libraries,
9931 *** $file_magic_cmd, produces output that libtool cannot recognize.
9932 *** The result is that libtool may fail to recognize shared libraries
9933 *** as such. This will affect the creation of libtool libraries that
9934 *** depend on shared libraries, but programs linked with such libtool
9935 *** libraries will work regardless of this problem. Nevertheless, you
9936 *** may want to report the problem to your system manager and/or to
9937 *** [email protected]
9938
9939 _LT_EOF
9940 fi ;;
9941 esac
9942 fi
9943 break
9944 fi
9945 done
9946 IFS=$lt_save_ifs
9947 MAGIC_CMD=$lt_save_MAGIC_CMD
9948 ;;
9949 esac ;;
9950 esac
9951 fi
9952
9953 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9954 if test -n "$MAGIC_CMD"; then
9955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9956 printf "%s\n" "$MAGIC_CMD" >&6; }
9957 else
9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 printf "%s\n" "no" >&6; }
9960 fi
9961
9962
9963 else
9964 MAGIC_CMD=:
9965 fi
9966 fi
9967
9968 fi
9969 ;;
9970 esac
9971
9972 # Use C for the default configuration in the libtool script
9973
9974 lt_save_CC=$CC
9975 ac_ext=c
9976 ac_cpp='$CPP $CPPFLAGS'
9977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9980
9981
9982 # Source file extension for C test sources.
9983 ac_ext=c
9984
9985 # Object file extension for compiled C test sources.
9986 objext=o
9987 objext=$objext
9988
9989 # Code to be used in simple compile tests
9990 lt_simple_compile_test_code="int some_variable = 0;"
9991
9992 # Code to be used in simple link tests
9993 lt_simple_link_test_code='int main(void){return(0);}'
9994
9995
9996
9997
9998
9999
10000
10001 # If no C compiler was specified, use CC.
10002 LTCC=${LTCC-"$CC"}
10003
10004 # If no C compiler flags were specified, use CFLAGS.
10005 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10006
10007 # Allow CC to be a program name with arguments.
10008 compiler=$CC
10009
10010 # Save the default compiler, since it gets overwritten when the other
10011 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10012 compiler_DEFAULT=$CC
10013
10014 # save warnings/boilerplate of simple test code
10015 ac_outfile=conftest.$ac_objext
10016 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10017 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10018 _lt_compiler_boilerplate=`cat conftest.err`
10019 $RM conftest*
10020
10021 ac_outfile=conftest.$ac_objext
10022 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10023 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10024 _lt_linker_boilerplate=`cat conftest.err`
10025 $RM -r conftest*
10026
10027
10028 ## CAVEAT EMPTOR:
10029 ## There is no encapsulation within the following macros, do not change
10030 ## the running order or otherwise move them around unless you know exactly
10031 ## what you are doing...
10032 if test -n "$compiler"; then
10033
10034 lt_prog_compiler_no_builtin_flag=
10035
10036 if test yes = "$GCC"; then
10037 case $cc_basename in
10038 nvcc*)
10039 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10040 *)
10041 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10042 esac
10043
10044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10045 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10046 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10047 then :
10048 printf %s "(cached) " >&6
10049 else case e in #(
10050 e) lt_cv_prog_compiler_rtti_exceptions=no
10051 ac_outfile=conftest.$ac_objext
10052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10053 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10054 # Insert the option either (1) after the last *FLAGS variable, or
10055 # (2) before a word containing "conftest.", or (3) at the end.
10056 # Note that $ac_compile itself does not contain backslashes and begins
10057 # with a dollar sign (not a hyphen), so the echo should work correctly.
10058 # The option is referenced via a variable to avoid confusing sed.
10059 lt_compile=`echo "$ac_compile" | $SED \
10060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10062 -e 's:$: $lt_compiler_flag:'`
10063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10064 (eval "$lt_compile" 2>conftest.err)
10065 ac_status=$?
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 if (exit $ac_status) && test -s "$ac_outfile"; then
10069 # The compiler can only warn and ignore the option if not recognized
10070 # So say no if there are warnings other than the usual output.
10071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10074 lt_cv_prog_compiler_rtti_exceptions=yes
10075 fi
10076 fi
10077 $RM conftest*
10078 ;;
10079 esac
10080 fi
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10082 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10083
10084 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10085 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10086 else
10087 :
10088 fi
10089
10090 fi
10091
10092
10093
10094
10095
10096
10097 lt_prog_compiler_wl=
10098 lt_prog_compiler_pic=
10099 lt_prog_compiler_static=
10100
10101
10102 if test yes = "$GCC"; then
10103 lt_prog_compiler_wl='-Wl,'
10104 lt_prog_compiler_static='-static'
10105
10106 case $host_os in
10107 aix*)
10108 # All AIX code is PIC.
10109 if test ia64 = "$host_cpu"; then
10110 # AIX 5 now supports IA64 processor
10111 lt_prog_compiler_static='-Bstatic'
10112 fi
10113 lt_prog_compiler_pic='-fPIC'
10114 ;;
10115
10116 amigaos*)
10117 case $host_cpu in
10118 powerpc)
10119 # see comment about AmigaOS4 .so support
10120 lt_prog_compiler_pic='-fPIC'
10121 ;;
10122 m68k)
10123 # FIXME: we need at least 68020 code to build shared libraries, but
10124 # adding the '-m68020' flag to GCC prevents building anything better,
10125 # like '-m68040'.
10126 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10127 ;;
10128 esac
10129 ;;
10130
10131 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10132 # PIC is the default for these OSes.
10133 ;;
10134
10135 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10136 # This hack is so that the source file can tell whether it is being
10137 # built for inclusion in a dll (and should export symbols for example).
10138 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10139 # (--disable-auto-import) libraries
10140 lt_prog_compiler_pic='-DDLL_EXPORT'
10141 case $host_os in
10142 os2*)
10143 lt_prog_compiler_static='$wl-static'
10144 ;;
10145 esac
10146 ;;
10147
10148 darwin* | rhapsody*)
10149 # PIC is the default on this platform
10150 # Common symbols not allowed in MH_DYLIB files
10151 lt_prog_compiler_pic='-fno-common'
10152 ;;
10153
10154 haiku*)
10155 # PIC is the default for Haiku.
10156 # The "-static" flag exists, but is broken.
10157 lt_prog_compiler_static=
10158 ;;
10159
10160 hpux*)
10161 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10162 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10163 # sets the default TLS model and affects inlining.
10164 case $host_cpu in
10165 hppa*64*)
10166 # +Z the default
10167 ;;
10168 *)
10169 lt_prog_compiler_pic='-fPIC'
10170 ;;
10171 esac
10172 ;;
10173
10174 interix[3-9]*)
10175 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10176 # Instead, we relocate shared libraries at runtime.
10177 ;;
10178
10179 msdosdjgpp*)
10180 # Just because we use GCC doesn't mean we suddenly get shared libraries
10181 # on systems that don't support them.
10182 lt_prog_compiler_can_build_shared=no
10183 enable_shared=no
10184 ;;
10185
10186 *nto* | *qnx*)
10187 # QNX uses GNU C++, but need to define -shared option too, otherwise
10188 # it will coredump.
10189 lt_prog_compiler_pic='-fPIC -shared'
10190 ;;
10191
10192 sysv4*MP*)
10193 if test -d /usr/nec; then
10194 lt_prog_compiler_pic=-Kconform_pic
10195 fi
10196 ;;
10197
10198 *)
10199 lt_prog_compiler_pic='-fPIC'
10200 ;;
10201 esac
10202
10203 case $cc_basename in
10204 nvcc*) # Cuda Compiler Driver 2.2
10205 lt_prog_compiler_wl='-Xlinker '
10206 if test -n "$lt_prog_compiler_pic"; then
10207 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10208 fi
10209 ;;
10210 esac
10211 else
10212 # PORTME Check for flag to pass linker flags through the system compiler.
10213 case $host_os in
10214 aix*)
10215 lt_prog_compiler_wl='-Wl,'
10216 if test ia64 = "$host_cpu"; then
10217 # AIX 5 now supports IA64 processor
10218 lt_prog_compiler_static='-Bstatic'
10219 else
10220 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10221 fi
10222 ;;
10223
10224 darwin* | rhapsody*)
10225 # PIC is the default on this platform
10226 # Common symbols not allowed in MH_DYLIB files
10227 lt_prog_compiler_pic='-fno-common'
10228 case $cc_basename in
10229 nagfor*)
10230 # NAG Fortran compiler
10231 lt_prog_compiler_wl='-Wl,-Wl,,'
10232 lt_prog_compiler_pic='-PIC'
10233 lt_prog_compiler_static='-Bstatic'
10234 ;;
10235 esac
10236 ;;
10237
10238 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10239 # This hack is so that the source file can tell whether it is being
10240 # built for inclusion in a dll (and should export symbols for example).
10241 lt_prog_compiler_pic='-DDLL_EXPORT'
10242 case $host_os in
10243 os2*)
10244 lt_prog_compiler_static='$wl-static'
10245 ;;
10246 esac
10247 ;;
10248
10249 hpux9* | hpux10* | hpux11*)
10250 lt_prog_compiler_wl='-Wl,'
10251 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10252 # not for PA HP-UX.
10253 case $host_cpu in
10254 hppa*64*|ia64*)
10255 # +Z the default
10256 ;;
10257 *)
10258 lt_prog_compiler_pic='+Z'
10259 ;;
10260 esac
10261 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10262 lt_prog_compiler_static='$wl-a ${wl}archive'
10263 ;;
10264
10265 irix5* | irix6* | nonstopux*)
10266 lt_prog_compiler_wl='-Wl,'
10267 # PIC (with -KPIC) is the default.
10268 lt_prog_compiler_static='-non_shared'
10269 ;;
10270
10271 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10272 case $cc_basename in
10273 # old Intel for x86_64, which still supported -KPIC.
10274 ecc*)
10275 lt_prog_compiler_wl='-Wl,'
10276 lt_prog_compiler_pic='-KPIC'
10277 lt_prog_compiler_static='-static'
10278 ;;
10279 *flang* | ftn | f18* | f95*)
10280 # Flang compiler.
10281 lt_prog_compiler_wl='-Wl,'
10282 lt_prog_compiler_pic='-fPIC'
10283 lt_prog_compiler_static='-static'
10284 ;;
10285 # flang / f18. f95 an alias for gfortran or flang on Debian
10286 flang* | f18* | f95*)
10287 lt_prog_compiler_wl='-Wl,'
10288 lt_prog_compiler_pic='-fPIC'
10289 lt_prog_compiler_static='-static'
10290 ;;
10291 # icc used to be incompatible with GCC.
10292 # ICC 10 doesn't accept -KPIC any more.
10293 icc* | ifort*)
10294 lt_prog_compiler_wl='-Wl,'
10295 lt_prog_compiler_pic='-fPIC'
10296 lt_prog_compiler_static='-static'
10297 ;;
10298 # Lahey Fortran 8.1.
10299 lf95*)
10300 lt_prog_compiler_wl='-Wl,'
10301 lt_prog_compiler_pic='--shared'
10302 lt_prog_compiler_static='--static'
10303 ;;
10304 nagfor*)
10305 # NAG Fortran compiler
10306 lt_prog_compiler_wl='-Wl,-Wl,,'
10307 lt_prog_compiler_pic='-PIC'
10308 lt_prog_compiler_static='-Bstatic'
10309 ;;
10310 tcc*)
10311 # Fabrice Bellard et al's Tiny C Compiler
10312 lt_prog_compiler_wl='-Wl,'
10313 lt_prog_compiler_pic='-fPIC'
10314 lt_prog_compiler_static='-static'
10315 ;;
10316 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10317 # Portland Group compilers (*not* the Pentium gcc compiler,
10318 # which looks to be a dead project)
10319 lt_prog_compiler_wl='-Wl,'
10320 lt_prog_compiler_pic='-fpic'
10321 lt_prog_compiler_static='-Bstatic'
10322 ;;
10323 ccc*)
10324 lt_prog_compiler_wl='-Wl,'
10325 # All Alpha code is PIC.
10326 lt_prog_compiler_static='-non_shared'
10327 ;;
10328 xl* | bgxl* | bgf* | mpixl*)
10329 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10330 lt_prog_compiler_wl='-Wl,'
10331 lt_prog_compiler_pic='-qpic'
10332 lt_prog_compiler_static='-qstaticlink'
10333 ;;
10334 *)
10335 case `$CC -V 2>&1 | $SED 5q` in
10336 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10337 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10338 lt_prog_compiler_pic='-KPIC'
10339 lt_prog_compiler_static='-Bstatic'
10340 lt_prog_compiler_wl=''
10341 ;;
10342 *Sun\ F* | *Sun*Fortran*)
10343 lt_prog_compiler_pic='-KPIC'
10344 lt_prog_compiler_static='-Bstatic'
10345 lt_prog_compiler_wl='-Qoption ld '
10346 ;;
10347 *Sun\ C*)
10348 # Sun C 5.9
10349 lt_prog_compiler_pic='-KPIC'
10350 lt_prog_compiler_static='-Bstatic'
10351 lt_prog_compiler_wl='-Wl,'
10352 ;;
10353 *Intel*\ [CF]*Compiler*)
10354 lt_prog_compiler_wl='-Wl,'
10355 lt_prog_compiler_pic='-fPIC'
10356 lt_prog_compiler_static='-static'
10357 ;;
10358 *Portland\ Group*)
10359 lt_prog_compiler_wl='-Wl,'
10360 lt_prog_compiler_pic='-fpic'
10361 lt_prog_compiler_static='-Bstatic'
10362 ;;
10363 esac
10364 ;;
10365 esac
10366 ;;
10367
10368 newsos6)
10369 lt_prog_compiler_pic='-KPIC'
10370 lt_prog_compiler_static='-Bstatic'
10371 ;;
10372
10373 *-mlibc)
10374 lt_prog_compiler_wl='-Wl,'
10375 lt_prog_compiler_pic='-fPIC'
10376 lt_prog_compiler_static='-static'
10377 ;;
10378
10379 *nto* | *qnx*)
10380 # QNX uses GNU C++, but need to define -shared option too, otherwise
10381 # it will coredump.
10382 lt_prog_compiler_pic='-fPIC -shared'
10383 ;;
10384
10385 osf3* | osf4* | osf5*)
10386 lt_prog_compiler_wl='-Wl,'
10387 # All OSF/1 code is PIC.
10388 lt_prog_compiler_static='-non_shared'
10389 ;;
10390
10391 rdos*)
10392 lt_prog_compiler_static='-non_shared'
10393 ;;
10394
10395 serenity*)
10396 ;;
10397
10398 solaris*)
10399 lt_prog_compiler_pic='-KPIC'
10400 lt_prog_compiler_static='-Bstatic'
10401 case $cc_basename in
10402 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10403 lt_prog_compiler_wl='-Qoption ld ';;
10404 *)
10405 lt_prog_compiler_wl='-Wl,';;
10406 esac
10407 ;;
10408
10409 sunos4*)
10410 lt_prog_compiler_wl='-Qoption ld '
10411 lt_prog_compiler_pic='-PIC'
10412 lt_prog_compiler_static='-Bstatic'
10413 ;;
10414
10415 sysv4 | sysv4.2uw2* | sysv4.3*)
10416 lt_prog_compiler_wl='-Wl,'
10417 lt_prog_compiler_pic='-KPIC'
10418 lt_prog_compiler_static='-Bstatic'
10419 ;;
10420
10421 sysv4*MP*)
10422 if test -d /usr/nec; then
10423 lt_prog_compiler_pic='-Kconform_pic'
10424 lt_prog_compiler_static='-Bstatic'
10425 fi
10426 ;;
10427
10428 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10429 lt_prog_compiler_wl='-Wl,'
10430 lt_prog_compiler_pic='-KPIC'
10431 lt_prog_compiler_static='-Bstatic'
10432 ;;
10433
10434 unicos*)
10435 lt_prog_compiler_wl='-Wl,'
10436 lt_prog_compiler_can_build_shared=no
10437 ;;
10438
10439 uts4*)
10440 lt_prog_compiler_pic='-pic'
10441 lt_prog_compiler_static='-Bstatic'
10442 ;;
10443
10444 *)
10445 lt_prog_compiler_can_build_shared=no
10446 ;;
10447 esac
10448 fi
10449
10450 case $host_os in
10451 # For platforms that do not support PIC, -DPIC is meaningless:
10452 *djgpp*)
10453 lt_prog_compiler_pic=
10454 ;;
10455 *)
10456 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10457 ;;
10458 esac
10459
10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10461 printf %s "checking for $compiler option to produce PIC... " >&6; }
10462 if test ${lt_cv_prog_compiler_pic+y}
10463 then :
10464 printf %s "(cached) " >&6
10465 else case e in #(
10466 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10467 esac
10468 fi
10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10470 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10471 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10472
10473 #
10474 # Check to make sure the PIC flag actually works.
10475 #
10476 if test -n "$lt_prog_compiler_pic"; then
10477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10478 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10479 if test ${lt_cv_prog_compiler_pic_works+y}
10480 then :
10481 printf %s "(cached) " >&6
10482 else case e in #(
10483 e) lt_cv_prog_compiler_pic_works=no
10484 ac_outfile=conftest.$ac_objext
10485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10486 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10487 # Insert the option either (1) after the last *FLAGS variable, or
10488 # (2) before a word containing "conftest.", or (3) at the end.
10489 # Note that $ac_compile itself does not contain backslashes and begins
10490 # with a dollar sign (not a hyphen), so the echo should work correctly.
10491 # The option is referenced via a variable to avoid confusing sed.
10492 lt_compile=`echo "$ac_compile" | $SED \
10493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10495 -e 's:$: $lt_compiler_flag:'`
10496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10497 (eval "$lt_compile" 2>conftest.err)
10498 ac_status=$?
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 if (exit $ac_status) && test -s "$ac_outfile"; then
10502 # The compiler can only warn and ignore the option if not recognized
10503 # So say no if there are warnings other than the usual output.
10504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10507 lt_cv_prog_compiler_pic_works=yes
10508 fi
10509 fi
10510 $RM conftest*
10511 ;;
10512 esac
10513 fi
10514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10515 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10516
10517 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10518 case $lt_prog_compiler_pic in
10519 "" | " "*) ;;
10520 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10521 esac
10522 else
10523 lt_prog_compiler_pic=
10524 lt_prog_compiler_can_build_shared=no
10525 fi
10526
10527 fi
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539 #
10540 # Check to make sure the static flag actually works.
10541 #
10542 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10544 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10545 if test ${lt_cv_prog_compiler_static_works+y}
10546 then :
10547 printf %s "(cached) " >&6
10548 else case e in #(
10549 e) lt_cv_prog_compiler_static_works=no
10550 save_LDFLAGS=$LDFLAGS
10551 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10552 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10554 # The linker can only warn and ignore the option if not recognized
10555 # So say no if there are warnings
10556 if test -s conftest.err; then
10557 # Append any errors to the config.log.
10558 cat conftest.err 1>&5
10559 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10561 if diff conftest.exp conftest.er2 >/dev/null; then
10562 lt_cv_prog_compiler_static_works=yes
10563 fi
10564 else
10565 lt_cv_prog_compiler_static_works=yes
10566 fi
10567 fi
10568 $RM -r conftest*
10569 LDFLAGS=$save_LDFLAGS
10570 ;;
10571 esac
10572 fi
10573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10574 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10575
10576 if test yes = "$lt_cv_prog_compiler_static_works"; then
10577 :
10578 else
10579 lt_prog_compiler_static=
10580 fi
10581
10582
10583
10584
10585
10586
10587
10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10589 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10590 if test ${lt_cv_prog_compiler_c_o+y}
10591 then :
10592 printf %s "(cached) " >&6
10593 else case e in #(
10594 e) lt_cv_prog_compiler_c_o=no
10595 $RM -r conftest 2>/dev/null
10596 mkdir conftest
10597 cd conftest
10598 mkdir out
10599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10600
10601 lt_compiler_flag="-o out/conftest2.$ac_objext"
10602 # Insert the option either (1) after the last *FLAGS variable, or
10603 # (2) before a word containing "conftest.", or (3) at the end.
10604 # Note that $ac_compile itself does not contain backslashes and begins
10605 # with a dollar sign (not a hyphen), so the echo should work correctly.
10606 lt_compile=`echo "$ac_compile" | $SED \
10607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10609 -e 's:$: $lt_compiler_flag:'`
10610 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10611 (eval "$lt_compile" 2>out/conftest.err)
10612 ac_status=$?
10613 cat out/conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10616 then
10617 # The compiler can only warn and ignore the option if not recognized
10618 # So say no if there are warnings
10619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10622 lt_cv_prog_compiler_c_o=yes
10623 fi
10624 fi
10625 chmod u+w . 2>&5
10626 $RM conftest*
10627 # SGI C++ compiler will create directory out/ii_files/ for
10628 # template instantiation
10629 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10630 $RM out/* && rmdir out
10631 cd ..
10632 $RM -r conftest
10633 $RM conftest*
10634 ;;
10635 esac
10636 fi
10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10638 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10639
10640
10641
10642
10643
10644
10645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10646 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10647 if test ${lt_cv_prog_compiler_c_o+y}
10648 then :
10649 printf %s "(cached) " >&6
10650 else case e in #(
10651 e) lt_cv_prog_compiler_c_o=no
10652 $RM -r conftest 2>/dev/null
10653 mkdir conftest
10654 cd conftest
10655 mkdir out
10656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10657
10658 lt_compiler_flag="-o out/conftest2.$ac_objext"
10659 # Insert the option either (1) after the last *FLAGS variable, or
10660 # (2) before a word containing "conftest.", or (3) at the end.
10661 # Note that $ac_compile itself does not contain backslashes and begins
10662 # with a dollar sign (not a hyphen), so the echo should work correctly.
10663 lt_compile=`echo "$ac_compile" | $SED \
10664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10666 -e 's:$: $lt_compiler_flag:'`
10667 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10668 (eval "$lt_compile" 2>out/conftest.err)
10669 ac_status=$?
10670 cat out/conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10673 then
10674 # The compiler can only warn and ignore the option if not recognized
10675 # So say no if there are warnings
10676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10677 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10678 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10679 lt_cv_prog_compiler_c_o=yes
10680 fi
10681 fi
10682 chmod u+w . 2>&5
10683 $RM conftest*
10684 # SGI C++ compiler will create directory out/ii_files/ for
10685 # template instantiation
10686 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10687 $RM out/* && rmdir out
10688 cd ..
10689 $RM -r conftest
10690 $RM conftest*
10691 ;;
10692 esac
10693 fi
10694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10695 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10696
10697
10698
10699
10700 hard_links=nottested
10701 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10702 # do not overwrite the value of need_locks provided by the user
10703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10704 printf %s "checking if we can lock with hard links... " >&6; }
10705 hard_links=yes
10706 $RM conftest*
10707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10708 touch conftest.a
10709 ln conftest.a conftest.b 2>&5 || hard_links=no
10710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10712 printf "%s\n" "$hard_links" >&6; }
10713 if test no = "$hard_links"; then
10714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10715 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10716 need_locks=warn
10717 fi
10718 else
10719 need_locks=no
10720 fi
10721
10722
10723
10724
10725
10726
10727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10728 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10729
10730 runpath_var=
10731 allow_undefined_flag=
10732 always_export_symbols=no
10733 archive_cmds=
10734 archive_expsym_cmds=
10735 compiler_needs_object=no
10736 enable_shared_with_static_runtimes=no
10737 export_dynamic_flag_spec=
10738 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10739 hardcode_automatic=no
10740 hardcode_direct=no
10741 hardcode_direct_absolute=no
10742 hardcode_libdir_flag_spec=
10743 hardcode_libdir_separator=
10744 hardcode_minus_L=no
10745 hardcode_shlibpath_var=unsupported
10746 inherit_rpath=no
10747 link_all_deplibs=unknown
10748 module_cmds=
10749 module_expsym_cmds=
10750 old_archive_from_new_cmds=
10751 old_archive_from_expsyms_cmds=
10752 thread_safe_flag_spec=
10753 whole_archive_flag_spec=
10754 # include_expsyms should be a list of space-separated symbols to be *always*
10755 # included in the symbol list
10756 include_expsyms=
10757 # exclude_expsyms can be an extended regexp of symbols to exclude
10758 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10759 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10760 # as well as any symbol that contains 'd'.
10761 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10762 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10763 # platforms (ab)use it in PIC code, but their linkers get confused if
10764 # the symbol is explicitly referenced. Since portable code cannot
10765 # rely on this symbol name, it's probably fine to never include it in
10766 # preloaded symbol tables.
10767 # Exclude shared library initialization/finalization symbols.
10768 extract_expsyms_cmds=
10769
10770 case $host_os in
10771 cygwin* | mingw* | windows* | pw32* | cegcc*)
10772 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10773 # When not using gcc, we currently assume that we are using
10774 # Microsoft Visual C++ or Intel C++ Compiler.
10775 if test yes != "$GCC"; then
10776 with_gnu_ld=no
10777 fi
10778 ;;
10779 interix*)
10780 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10781 with_gnu_ld=yes
10782 ;;
10783 linux* | k*bsd*-gnu | gnu*)
10784 link_all_deplibs=no
10785 ;;
10786 esac
10787
10788 ld_shlibs=yes
10789
10790 # On some targets, GNU ld is compatible enough with the native linker
10791 # that we're better off using the native interface for both.
10792 lt_use_gnu_ld_interface=no
10793 if test yes = "$with_gnu_ld"; then
10794 case $host_os in
10795 aix*)
10796 # The AIX port of GNU ld has always aspired to compatibility
10797 # with the native linker. However, as the warning in the GNU ld
10798 # block says, versions before 2.19.5* couldn't really create working
10799 # shared libraries, regardless of the interface used.
10800 case `$LD -v 2>&1` in
10801 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10802 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10803 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10804 *)
10805 lt_use_gnu_ld_interface=yes
10806 ;;
10807 esac
10808 ;;
10809 *)
10810 lt_use_gnu_ld_interface=yes
10811 ;;
10812 esac
10813 fi
10814
10815 if test yes = "$lt_use_gnu_ld_interface"; then
10816 # If archive_cmds runs LD, not CC, wlarc should be empty
10817 wlarc='$wl'
10818
10819 # Set some defaults for GNU ld with shared library support. These
10820 # are reset later if shared libraries are not supported. Putting them
10821 # here allows them to be overridden if necessary.
10822 runpath_var=LD_RUN_PATH
10823 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10824 export_dynamic_flag_spec='$wl--export-dynamic'
10825 # ancient GNU ld didn't support --whole-archive et. al.
10826 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10827 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10828 else
10829 whole_archive_flag_spec=
10830 fi
10831 supports_anon_versioning=no
10832 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10833 *GNU\ gold*) supports_anon_versioning=yes ;;
10834 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10835 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10836 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10837 *\ 2.11.*) ;; # other 2.11 versions
10838 *) supports_anon_versioning=yes ;;
10839 esac
10840
10841 # See if GNU ld supports shared libraries.
10842 case $host_os in
10843 aix[3-9]*)
10844 # On AIX/PPC, the GNU linker is very broken
10845 if test ia64 != "$host_cpu"; then
10846 ld_shlibs=no
10847 cat <<_LT_EOF 1>&2
10848
10849 *** Warning: the GNU linker, at least up to release 2.19, is reported
10850 *** to be unable to reliably create shared libraries on AIX.
10851 *** Therefore, libtool is disabling shared libraries support. If you
10852 *** really care for shared libraries, you may want to install binutils
10853 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10854 *** You will then need to restart the configuration process.
10855
10856 _LT_EOF
10857 fi
10858 ;;
10859
10860 amigaos*)
10861 case $host_cpu in
10862 powerpc)
10863 # see comment about AmigaOS4 .so support
10864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10865 archive_expsym_cmds=''
10866 ;;
10867 m68k)
10868 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)'
10869 hardcode_libdir_flag_spec='-L$libdir'
10870 hardcode_minus_L=yes
10871 ;;
10872 esac
10873 ;;
10874
10875 beos*)
10876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10877 allow_undefined_flag=unsupported
10878 # Joseph Beckenbach <[email protected]> says some releases of gcc
10879 # support --undefined. This deserves some investigation. FIXME
10880 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10881 else
10882 ld_shlibs=no
10883 fi
10884 ;;
10885
10886 cygwin* | mingw* | windows* | pw32* | cegcc*)
10887 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10888 # as there is no search path for DLLs.
10889 hardcode_libdir_flag_spec='-L$libdir'
10890 export_dynamic_flag_spec='$wl--export-all-symbols'
10891 allow_undefined_flag=unsupported
10892 always_export_symbols=no
10893 enable_shared_with_static_runtimes=yes
10894 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'
10895 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10896 file_list_spec='@'
10897
10898 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10900 # If the export-symbols file already is a .def file, use it as
10901 # is; otherwise, prepend EXPORTS...
10902 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10903 cp $export_symbols $output_objdir/$soname.def;
10904 else
10905 echo EXPORTS > $output_objdir/$soname.def;
10906 cat $export_symbols >> $output_objdir/$soname.def;
10907 fi~
10908 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10909 else
10910 ld_shlibs=no
10911 fi
10912 ;;
10913
10914 haiku*)
10915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10916 link_all_deplibs=no
10917 ;;
10918
10919 os2*)
10920 hardcode_libdir_flag_spec='-L$libdir'
10921 hardcode_minus_L=yes
10922 allow_undefined_flag=unsupported
10923 shrext_cmds=.dll
10924 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10925 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10926 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10927 $ECHO EXPORTS >> $output_objdir/$libname.def~
10928 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10929 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10930 emximp -o $lib $output_objdir/$libname.def'
10931 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10932 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10933 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10934 $ECHO EXPORTS >> $output_objdir/$libname.def~
10935 prefix_cmds="$SED"~
10936 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10937 prefix_cmds="$prefix_cmds -e 1d";
10938 fi~
10939 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10940 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10941 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10942 emximp -o $lib $output_objdir/$libname.def'
10943 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10944 enable_shared_with_static_runtimes=yes
10945 file_list_spec='@'
10946 ;;
10947
10948 interix[3-9]*)
10949 hardcode_direct=no
10950 hardcode_shlibpath_var=no
10951 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10952 export_dynamic_flag_spec='$wl-E'
10953 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10954 # Instead, shared libraries are loaded at an image base (0x10000000 by
10955 # default) and relocated if they conflict, which is a slow very memory
10956 # consuming and fragmenting process. To avoid this, we pick a random,
10957 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10958 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10960 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'
10961 ;;
10962
10963 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10964 tmp_diet=no
10965 if test linux-dietlibc = "$host_os"; then
10966 case $cc_basename in
10967 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10968 esac
10969 fi
10970 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10971 && test no = "$tmp_diet"
10972 then
10973 tmp_addflag=' $pic_flag'
10974 tmp_sharedflag='-shared'
10975 case $cc_basename,$host_cpu in
10976 pgcc*) # Portland Group C compiler
10977 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'
10978 tmp_addflag=' $pic_flag'
10979 ;;
10980 pgf77* | pgf90* | pgf95* | pgfortran*)
10981 # Portland Group f77 and f90 compilers
10982 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'
10983 tmp_addflag=' $pic_flag -Mnomain' ;;
10984 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10985 tmp_addflag=' -i_dynamic' ;;
10986 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10987 tmp_addflag=' -i_dynamic -nofor_main' ;;
10988 ifc* | ifort*) # Intel Fortran compiler
10989 tmp_addflag=' -nofor_main' ;;
10990 lf95*) # Lahey Fortran 8.1
10991 whole_archive_flag_spec=
10992 tmp_sharedflag='--shared' ;;
10993 nagfor*) # NAGFOR 5.3
10994 tmp_sharedflag='-Wl,-shared' ;;
10995 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10996 tmp_sharedflag='-qmkshrobj'
10997 tmp_addflag= ;;
10998 nvcc*) # Cuda Compiler Driver 2.2
10999 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'
11000 compiler_needs_object=yes
11001 ;;
11002 esac
11003 case `$CC -V 2>&1 | $SED 5q` in
11004 *Sun\ C*) # Sun C 5.9
11005 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'
11006 compiler_needs_object=yes
11007 tmp_sharedflag='-G' ;;
11008 *Sun\ F*) # Sun Fortran 8.3
11009 tmp_sharedflag='-G' ;;
11010 esac
11011 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11012
11013 if test yes = "$supports_anon_versioning"; then
11014 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11015 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11016 echo "local: *; };" >> $output_objdir/$libname.ver~
11017 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11018 fi
11019
11020 case $cc_basename in
11021 tcc*)
11022 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11023 export_dynamic_flag_spec='-rdynamic'
11024 ;;
11025 xlf* | bgf* | bgxlf* | mpixlf*)
11026 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11027 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11028 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11029 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11030 if test yes = "$supports_anon_versioning"; then
11031 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11032 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11033 echo "local: *; };" >> $output_objdir/$libname.ver~
11034 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11035 fi
11036 ;;
11037 esac
11038 else
11039 ld_shlibs=no
11040 fi
11041 ;;
11042
11043 *-mlibc)
11044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11045 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11046 ;;
11047
11048 netbsd* | netbsdelf*-gnu)
11049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11050 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11051 wlarc=
11052 else
11053 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11054 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11055 fi
11056 ;;
11057
11058 solaris*)
11059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11060 ld_shlibs=no
11061 cat <<_LT_EOF 1>&2
11062
11063 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11064 *** create shared libraries on Solaris systems. Therefore, libtool
11065 *** is disabling shared libraries support. We urge you to upgrade GNU
11066 *** binutils to release 2.9.1 or newer. Another option is to modify
11067 *** your PATH or compiler configuration so that the native linker is
11068 *** used, and then restart.
11069
11070 _LT_EOF
11071 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11072 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11073 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11074 else
11075 ld_shlibs=no
11076 fi
11077 ;;
11078
11079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11080 case `$LD -v 2>&1` in
11081 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11082 ld_shlibs=no
11083 cat <<_LT_EOF 1>&2
11084
11085 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11086 *** reliably create shared libraries on SCO systems. Therefore, libtool
11087 *** is disabling shared libraries support. We urge you to upgrade GNU
11088 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11089 *** your PATH or compiler configuration so that the native linker is
11090 *** used, and then restart.
11091
11092 _LT_EOF
11093 ;;
11094 *)
11095 # For security reasons, it is highly recommended that you always
11096 # use absolute paths for naming shared libraries, and exclude the
11097 # DT_RUNPATH tag from executables and libraries. But doing so
11098 # requires that you compile everything twice, which is a pain.
11099 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11100 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11103 else
11104 ld_shlibs=no
11105 fi
11106 ;;
11107 esac
11108 ;;
11109
11110 sunos4*)
11111 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11112 wlarc=
11113 hardcode_direct=yes
11114 hardcode_shlibpath_var=no
11115 ;;
11116
11117 *)
11118 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11119 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11120 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11121 else
11122 ld_shlibs=no
11123 fi
11124 ;;
11125 esac
11126
11127 if test no = "$ld_shlibs"; then
11128 runpath_var=
11129 hardcode_libdir_flag_spec=
11130 export_dynamic_flag_spec=
11131 whole_archive_flag_spec=
11132 fi
11133 else
11134 # PORTME fill in a description of your system's linker (not GNU ld)
11135 case $host_os in
11136 aix3*)
11137 allow_undefined_flag=unsupported
11138 always_export_symbols=yes
11139 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'
11140 # Note: this linker hardcodes the directories in LIBPATH if there
11141 # are no directories specified by -L.
11142 hardcode_minus_L=yes
11143 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11144 # Neither direct hardcoding nor static linking is supported with a
11145 # broken collect2.
11146 hardcode_direct=unsupported
11147 fi
11148 ;;
11149
11150 aix[4-9]*)
11151 if test ia64 = "$host_cpu"; then
11152 # On IA64, the linker does run time linking by default, so we don't
11153 # have to do anything special.
11154 aix_use_runtimelinking=no
11155 exp_sym_flag='-Bexport'
11156 no_entry_flag=
11157 else
11158 # If we're using GNU nm, then we don't want the "-C" option.
11159 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11160 # Without the "-l" option, or with the "-B" option, AIX nm treats
11161 # weak defined symbols like other global defined symbols, whereas
11162 # GNU nm marks them as "W".
11163 # While the 'weak' keyword is ignored in the Export File, we need
11164 # it in the Import File for the 'aix-soname' feature, so we have
11165 # to replace the "-B" option with "-P" for AIX nm.
11166 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11167 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11168 else
11169 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11170 fi
11171 aix_use_runtimelinking=no
11172
11173 # Test if we are trying to use run time linking or normal
11174 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11175 # have runtime linking enabled, and use it for executables.
11176 # For shared libraries, we enable/disable runtime linking
11177 # depending on the kind of the shared library created -
11178 # when "with_aix_soname,aix_use_runtimelinking" is:
11179 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11180 # "aix,yes" lib.so shared, rtl:yes, for executables
11181 # lib.a static archive
11182 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11183 # lib.a(lib.so.V) shared, rtl:no, for executables
11184 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11185 # lib.a(lib.so.V) shared, rtl:no
11186 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11187 # lib.a static archive
11188 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11189 for ld_flag in $LDFLAGS; do
11190 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11191 aix_use_runtimelinking=yes
11192 break
11193 fi
11194 done
11195 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11196 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11197 # so we don't have lib.a shared libs to link our executables.
11198 # We have to force runtime linking in this case.
11199 aix_use_runtimelinking=yes
11200 LDFLAGS="$LDFLAGS -Wl,-brtl"
11201 fi
11202 ;;
11203 esac
11204
11205 exp_sym_flag='-bexport'
11206 no_entry_flag='-bnoentry'
11207 fi
11208
11209 # When large executables or shared objects are built, AIX ld can
11210 # have problems creating the table of contents. If linking a library
11211 # or program results in "error TOC overflow" add -mminimal-toc to
11212 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11213 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11214
11215 archive_cmds=''
11216 hardcode_direct=yes
11217 hardcode_direct_absolute=yes
11218 hardcode_libdir_separator=':'
11219 link_all_deplibs=yes
11220 file_list_spec='$wl-f,'
11221 case $with_aix_soname,$aix_use_runtimelinking in
11222 aix,*) ;; # traditional, no import file
11223 svr4,* | *,yes) # use import file
11224 # The Import File defines what to hardcode.
11225 hardcode_direct=no
11226 hardcode_direct_absolute=no
11227 ;;
11228 esac
11229
11230 if test yes = "$GCC"; then
11231 case $host_os in aix4.[012]|aix4.[012].*)
11232 # We only want to do this on AIX 4.2 and lower, the check
11233 # below for broken collect2 doesn't work under 4.3+
11234 collect2name=`$CC -print-prog-name=collect2`
11235 if test -f "$collect2name" &&
11236 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11237 then
11238 # We have reworked collect2
11239 :
11240 else
11241 # We have old collect2
11242 hardcode_direct=unsupported
11243 # It fails to find uninstalled libraries when the uninstalled
11244 # path is not listed in the libpath. Setting hardcode_minus_L
11245 # to unsupported forces relinking
11246 hardcode_minus_L=yes
11247 hardcode_libdir_flag_spec='-L$libdir'
11248 hardcode_libdir_separator=
11249 fi
11250 ;;
11251 esac
11252 shared_flag='-shared'
11253 if test yes = "$aix_use_runtimelinking"; then
11254 shared_flag="$shared_flag "'$wl-G'
11255 fi
11256 # Need to ensure runtime linking is disabled for the traditional
11257 # shared library, or the linker may eventually find shared libraries
11258 # /with/ Import File - we do not want to mix them.
11259 shared_flag_aix='-shared'
11260 shared_flag_svr4='-shared $wl-G'
11261 else
11262 # not using gcc
11263 if test ia64 = "$host_cpu"; then
11264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11265 # chokes on -Wl,-G. The following line is correct:
11266 shared_flag='-G'
11267 else
11268 if test yes = "$aix_use_runtimelinking"; then
11269 shared_flag='$wl-G'
11270 else
11271 shared_flag='$wl-bM:SRE'
11272 fi
11273 shared_flag_aix='$wl-bM:SRE'
11274 shared_flag_svr4='$wl-G'
11275 fi
11276 fi
11277
11278 export_dynamic_flag_spec='$wl-bexpall'
11279 # It seems that -bexpall does not export symbols beginning with
11280 # underscore (_), so it is better to generate a list of symbols to export.
11281 always_export_symbols=yes
11282 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11283 # Warning - without using the other runtime loading flags (-brtl),
11284 # -berok will link without error, but may produce a broken library.
11285 allow_undefined_flag='-berok'
11286 # Determine the default libpath from the value encoded in an
11287 # empty executable.
11288 if test set = "${lt_cv_aix_libpath+set}"; then
11289 aix_libpath=$lt_cv_aix_libpath
11290 else
11291 if test ${lt_cv_aix_libpath_+y}
11292 then :
11293 printf %s "(cached) " >&6
11294 else case e in #(
11295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11297
11298 int
11299 main (void)
11300 {
11301
11302 ;
11303 return 0;
11304 }
11305 _ACEOF
11306 if ac_fn_c_try_link "$LINENO"
11307 then :
11308
11309 lt_aix_libpath_sed='
11310 /Import File Strings/,/^$/ {
11311 /^0/ {
11312 s/^0 *\([^ ]*\) *$/\1/
11313 p
11314 }
11315 }'
11316 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11317 # Check for a 64-bit object if we didn't find anything.
11318 if test -z "$lt_cv_aix_libpath_"; then
11319 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11320 fi
11321 fi
11322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11323 conftest$ac_exeext conftest.$ac_ext
11324 if test -z "$lt_cv_aix_libpath_"; then
11325 lt_cv_aix_libpath_=/usr/lib:/lib
11326 fi
11327 ;;
11328 esac
11329 fi
11330
11331 aix_libpath=$lt_cv_aix_libpath_
11332 fi
11333
11334 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11335 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11336 else
11337 if test ia64 = "$host_cpu"; then
11338 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11339 allow_undefined_flag="-z nodefs"
11340 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"
11341 else
11342 # Determine the default libpath from the value encoded in an
11343 # empty executable.
11344 if test set = "${lt_cv_aix_libpath+set}"; then
11345 aix_libpath=$lt_cv_aix_libpath
11346 else
11347 if test ${lt_cv_aix_libpath_+y}
11348 then :
11349 printf %s "(cached) " >&6
11350 else case e in #(
11351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11353
11354 int
11355 main (void)
11356 {
11357
11358 ;
11359 return 0;
11360 }
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"
11363 then :
11364
11365 lt_aix_libpath_sed='
11366 /Import File Strings/,/^$/ {
11367 /^0/ {
11368 s/^0 *\([^ ]*\) *$/\1/
11369 p
11370 }
11371 }'
11372 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11373 # Check for a 64-bit object if we didn't find anything.
11374 if test -z "$lt_cv_aix_libpath_"; then
11375 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11376 fi
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11379 conftest$ac_exeext conftest.$ac_ext
11380 if test -z "$lt_cv_aix_libpath_"; then
11381 lt_cv_aix_libpath_=/usr/lib:/lib
11382 fi
11383 ;;
11384 esac
11385 fi
11386
11387 aix_libpath=$lt_cv_aix_libpath_
11388 fi
11389
11390 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11391 # Warning - without using the other run time loading flags,
11392 # -berok will link without error, but may produce a broken library.
11393 no_undefined_flag=' $wl-bernotok'
11394 allow_undefined_flag=' $wl-berok'
11395 if test yes = "$with_gnu_ld"; then
11396 # We only use this code for GNU lds that support --whole-archive.
11397 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11398 else
11399 # Exported symbols can be pulled into shared objects from archives
11400 whole_archive_flag_spec='$convenience'
11401 fi
11402 archive_cmds_need_lc=yes
11403 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11404 # -brtl affects multiple linker settings, -berok does not and is overridden later
11405 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11406 if test svr4 != "$with_aix_soname"; then
11407 # This is similar to how AIX traditionally builds its shared libraries.
11408 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11409 fi
11410 if test aix != "$with_aix_soname"; then
11411 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11412 else
11413 # used by -dlpreopen to get the symbols
11414 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11415 fi
11416 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11417 fi
11418 fi
11419 ;;
11420
11421 amigaos*)
11422 case $host_cpu in
11423 powerpc)
11424 # see comment about AmigaOS4 .so support
11425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11426 archive_expsym_cmds=''
11427 ;;
11428 m68k)
11429 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)'
11430 hardcode_libdir_flag_spec='-L$libdir'
11431 hardcode_minus_L=yes
11432 ;;
11433 esac
11434 ;;
11435
11436 bsdi[45]*)
11437 export_dynamic_flag_spec=-rdynamic
11438 ;;
11439
11440 cygwin* | mingw* | windows* | pw32* | cegcc*)
11441 # When not using gcc, we currently assume that we are using
11442 # Microsoft Visual C++ or Intel C++ Compiler.
11443 # hardcode_libdir_flag_spec is actually meaningless, as there is
11444 # no search path for DLLs.
11445 case $cc_basename in
11446 cl* | icl*)
11447 # Native MSVC or ICC
11448 hardcode_libdir_flag_spec=' '
11449 allow_undefined_flag=unsupported
11450 always_export_symbols=yes
11451 file_list_spec='@'
11452 # Tell ltmain to make .lib files, not .a files.
11453 libext=lib
11454 # Tell ltmain to make .dll files, not .so files.
11455 shrext_cmds=.dll
11456 # FIXME: Setting linknames here is a bad hack.
11457 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11458 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11459 cp "$export_symbols" "$output_objdir/$soname.def";
11460 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11461 else
11462 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11463 fi~
11464 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11465 linknames='
11466 # The linker will not automatically build a static lib if we build a DLL.
11467 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11468 enable_shared_with_static_runtimes=yes
11469 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11471 # Don't use ranlib
11472 old_postinstall_cmds='chmod 644 $oldlib'
11473 postlink_cmds='lt_outputfile="@OUTPUT@"~
11474 lt_tool_outputfile="@TOOL_OUTPUT@"~
11475 case $lt_outputfile in
11476 *.exe|*.EXE) ;;
11477 *)
11478 lt_outputfile=$lt_outputfile.exe
11479 lt_tool_outputfile=$lt_tool_outputfile.exe
11480 ;;
11481 esac~
11482 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11483 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11484 $RM "$lt_outputfile.manifest";
11485 fi'
11486 ;;
11487 *)
11488 # Assume MSVC and ICC wrapper
11489 hardcode_libdir_flag_spec=' '
11490 allow_undefined_flag=unsupported
11491 # Tell ltmain to make .lib files, not .a files.
11492 libext=lib
11493 # Tell ltmain to make .dll files, not .so files.
11494 shrext_cmds=.dll
11495 # FIXME: Setting linknames here is a bad hack.
11496 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11497 # The linker will automatically build a .lib file if we build a DLL.
11498 old_archive_from_new_cmds='true'
11499 # FIXME: Should let the user specify the lib program.
11500 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11501 enable_shared_with_static_runtimes=yes
11502 ;;
11503 esac
11504 ;;
11505
11506 darwin* | rhapsody*)
11507
11508
11509 archive_cmds_need_lc=no
11510 hardcode_direct=no
11511 hardcode_automatic=yes
11512 hardcode_shlibpath_var=unsupported
11513 if test yes = "$lt_cv_ld_force_load"; then
11514 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\"`'
11515
11516 else
11517 whole_archive_flag_spec=''
11518 fi
11519 link_all_deplibs=yes
11520 allow_undefined_flag=$_lt_dar_allow_undefined
11521 case $cc_basename in
11522 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11523 *) _lt_dar_can_shared=$GCC ;;
11524 esac
11525 if test yes = "$_lt_dar_can_shared"; then
11526 output_verbose_link_cmd=func_echo_all
11527 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11528 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11529 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"
11530 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"
11531
11532 else
11533 ld_shlibs=no
11534 fi
11535
11536 ;;
11537
11538 dgux*)
11539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11540 hardcode_libdir_flag_spec='-L$libdir'
11541 hardcode_shlibpath_var=no
11542 ;;
11543
11544 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11545 # support. Future versions do this automatically, but an explicit c++rt0.o
11546 # does not break anything, and helps significantly (at the cost of a little
11547 # extra space).
11548 freebsd2.2*)
11549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11550 hardcode_libdir_flag_spec='-R$libdir'
11551 hardcode_direct=yes
11552 hardcode_shlibpath_var=no
11553 ;;
11554
11555 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11556 freebsd2.*)
11557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11558 hardcode_direct=yes
11559 hardcode_minus_L=yes
11560 hardcode_shlibpath_var=no
11561 ;;
11562
11563 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11564 freebsd* | dragonfly* | midnightbsd*)
11565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11566 hardcode_libdir_flag_spec='-R$libdir'
11567 hardcode_direct=yes
11568 hardcode_shlibpath_var=no
11569 ;;
11570
11571 hpux9*)
11572 if test yes = "$GCC"; then
11573 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11574 else
11575 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11576 fi
11577 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11578 hardcode_libdir_separator=:
11579 hardcode_direct=yes
11580
11581 # hardcode_minus_L: Not really in the search PATH,
11582 # but as the default location of the library.
11583 hardcode_minus_L=yes
11584 export_dynamic_flag_spec='$wl-E'
11585 ;;
11586
11587 hpux10*)
11588 if test yes,no = "$GCC,$with_gnu_ld"; then
11589 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11590 else
11591 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11592 fi
11593 if test no = "$with_gnu_ld"; then
11594 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11595 hardcode_libdir_separator=:
11596 hardcode_direct=yes
11597 hardcode_direct_absolute=yes
11598 export_dynamic_flag_spec='$wl-E'
11599 # hardcode_minus_L: Not really in the search PATH,
11600 # but as the default location of the library.
11601 hardcode_minus_L=yes
11602 fi
11603 ;;
11604
11605 hpux11*)
11606 if test yes,no = "$GCC,$with_gnu_ld"; then
11607 case $host_cpu in
11608 hppa*64*)
11609 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11610 ;;
11611 ia64*)
11612 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11613 ;;
11614 *)
11615 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11616 ;;
11617 esac
11618 else
11619 case $host_cpu in
11620 hppa*64*)
11621 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11622 ;;
11623 ia64*)
11624 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11625 ;;
11626 *)
11627
11628 # Older versions of the 11.00 compiler do not understand -b yet
11629 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11631 printf %s "checking if $CC understands -b... " >&6; }
11632 if test ${lt_cv_prog_compiler__b+y}
11633 then :
11634 printf %s "(cached) " >&6
11635 else case e in #(
11636 e) lt_cv_prog_compiler__b=no
11637 save_LDFLAGS=$LDFLAGS
11638 LDFLAGS="$LDFLAGS -b"
11639 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11640 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11641 # The linker can only warn and ignore the option if not recognized
11642 # So say no if there are warnings
11643 if test -s conftest.err; then
11644 # Append any errors to the config.log.
11645 cat conftest.err 1>&5
11646 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11648 if diff conftest.exp conftest.er2 >/dev/null; then
11649 lt_cv_prog_compiler__b=yes
11650 fi
11651 else
11652 lt_cv_prog_compiler__b=yes
11653 fi
11654 fi
11655 $RM -r conftest*
11656 LDFLAGS=$save_LDFLAGS
11657 ;;
11658 esac
11659 fi
11660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11661 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11662
11663 if test yes = "$lt_cv_prog_compiler__b"; then
11664 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11665 else
11666 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11667 fi
11668
11669 ;;
11670 esac
11671 fi
11672 if test no = "$with_gnu_ld"; then
11673 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11674 hardcode_libdir_separator=:
11675
11676 case $host_cpu in
11677 hppa*64*|ia64*)
11678 hardcode_direct=no
11679 hardcode_shlibpath_var=no
11680 ;;
11681 *)
11682 hardcode_direct=yes
11683 hardcode_direct_absolute=yes
11684 export_dynamic_flag_spec='$wl-E'
11685
11686 # hardcode_minus_L: Not really in the search PATH,
11687 # but as the default location of the library.
11688 hardcode_minus_L=yes
11689 ;;
11690 esac
11691 fi
11692 ;;
11693
11694 irix5* | irix6* | nonstopux*)
11695 if test yes = "$GCC"; then
11696 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'
11697 # Try to use the -exported_symbol ld option, if it does not
11698 # work, assume that -exports_file does not work either and
11699 # implicitly export all symbols.
11700 # This should be the same for all languages, so no per-tag cache variable.
11701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11702 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11703 if test ${lt_cv_irix_exported_symbol+y}
11704 then :
11705 printf %s "(cached) " >&6
11706 else case e in #(
11707 e) save_LDFLAGS=$LDFLAGS
11708 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 int foo (void) { return 0; }
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"
11714 then :
11715 lt_cv_irix_exported_symbol=yes
11716 else case e in #(
11717 e) lt_cv_irix_exported_symbol=no ;;
11718 esac
11719 fi
11720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11721 conftest$ac_exeext conftest.$ac_ext
11722 LDFLAGS=$save_LDFLAGS ;;
11723 esac
11724 fi
11725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11726 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11727 if test yes = "$lt_cv_irix_exported_symbol"; then
11728 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'
11729 fi
11730 link_all_deplibs=no
11731 else
11732 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'
11733 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'
11734 fi
11735 archive_cmds_need_lc='no'
11736 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11737 hardcode_libdir_separator=:
11738 inherit_rpath=yes
11739 link_all_deplibs=yes
11740 ;;
11741
11742 linux*)
11743 case $cc_basename in
11744 tcc*)
11745 # Fabrice Bellard et al's Tiny C Compiler
11746 ld_shlibs=yes
11747 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11748 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11749 ;;
11750 esac
11751 ;;
11752
11753 *-mlibc)
11754 ;;
11755
11756 netbsd* | netbsdelf*-gnu)
11757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11759 else
11760 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11761 fi
11762 hardcode_libdir_flag_spec='-R$libdir'
11763 hardcode_direct=yes
11764 hardcode_shlibpath_var=no
11765 ;;
11766
11767 newsos6)
11768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11769 hardcode_direct=yes
11770 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11771 hardcode_libdir_separator=:
11772 hardcode_shlibpath_var=no
11773 ;;
11774
11775 *nto* | *qnx*)
11776 ;;
11777
11778 openbsd*)
11779 if test -f /usr/libexec/ld.so; then
11780 hardcode_direct=yes
11781 hardcode_shlibpath_var=no
11782 hardcode_direct_absolute=yes
11783 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11785 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11786 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11787 export_dynamic_flag_spec='$wl-E'
11788 else
11789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11790 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11791 fi
11792 else
11793 ld_shlibs=no
11794 fi
11795 ;;
11796
11797 os2*)
11798 hardcode_libdir_flag_spec='-L$libdir'
11799 hardcode_minus_L=yes
11800 allow_undefined_flag=unsupported
11801 shrext_cmds=.dll
11802 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11803 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11804 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11805 $ECHO EXPORTS >> $output_objdir/$libname.def~
11806 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11807 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11808 emximp -o $lib $output_objdir/$libname.def'
11809 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11810 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11811 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11812 $ECHO EXPORTS >> $output_objdir/$libname.def~
11813 prefix_cmds="$SED"~
11814 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11815 prefix_cmds="$prefix_cmds -e 1d";
11816 fi~
11817 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11818 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11819 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11820 emximp -o $lib $output_objdir/$libname.def'
11821 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11822 enable_shared_with_static_runtimes=yes
11823 file_list_spec='@'
11824 ;;
11825
11826 osf3*)
11827 if test yes = "$GCC"; then
11828 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11829 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'
11830 else
11831 allow_undefined_flag=' -expect_unresolved \*'
11832 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'
11833 fi
11834 archive_cmds_need_lc='no'
11835 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11836 hardcode_libdir_separator=:
11837 ;;
11838
11839 osf4* | osf5*) # as osf3* with the addition of -msym flag
11840 if test yes = "$GCC"; then
11841 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11842 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'
11843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11844 else
11845 allow_undefined_flag=' -expect_unresolved \*'
11846 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'
11847 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~
11848 $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'
11849
11850 # Both c and cxx compiler support -rpath directly
11851 hardcode_libdir_flag_spec='-rpath $libdir'
11852 fi
11853 archive_cmds_need_lc='no'
11854 hardcode_libdir_separator=:
11855 ;;
11856
11857 serenity*)
11858 ;;
11859
11860 solaris*)
11861 no_undefined_flag=' -z defs'
11862 if test yes = "$GCC"; then
11863 wlarc='$wl'
11864 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11865 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11866 $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'
11867 else
11868 case `$CC -V 2>&1` in
11869 *"Compilers 5.0"*)
11870 wlarc=''
11871 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11873 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11874 ;;
11875 *)
11876 wlarc='$wl'
11877 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11878 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11879 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11880 ;;
11881 esac
11882 fi
11883 hardcode_libdir_flag_spec='-R$libdir'
11884 hardcode_shlibpath_var=no
11885 case $host_os in
11886 solaris2.[0-5] | solaris2.[0-5].*) ;;
11887 *)
11888 # The compiler driver will combine and reorder linker options,
11889 # but understands '-z linker_flag'. GCC discards it without '$wl',
11890 # but is careful enough not to reorder.
11891 # Supported since Solaris 2.6 (maybe 2.5.1?)
11892 if test yes = "$GCC"; then
11893 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11894 else
11895 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11896 fi
11897 ;;
11898 esac
11899 link_all_deplibs=yes
11900 ;;
11901
11902 sunos4*)
11903 if test sequent = "$host_vendor"; then
11904 # Use $CC to link under sequent, because it throws in some extra .o
11905 # files that make .init and .fini sections work.
11906 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11907 else
11908 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11909 fi
11910 hardcode_libdir_flag_spec='-L$libdir'
11911 hardcode_direct=yes
11912 hardcode_minus_L=yes
11913 hardcode_shlibpath_var=no
11914 ;;
11915
11916 sysv4)
11917 case $host_vendor in
11918 sni)
11919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11920 hardcode_direct=yes # is this really true???
11921 ;;
11922 siemens)
11923 ## LD is ld it makes a PLAMLIB
11924 ## CC just makes a GrossModule.
11925 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11926 reload_cmds='$CC -r -o $output$reload_objs'
11927 hardcode_direct=no
11928 ;;
11929 motorola)
11930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11931 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11932 ;;
11933 esac
11934 runpath_var='LD_RUN_PATH'
11935 hardcode_shlibpath_var=no
11936 ;;
11937
11938 sysv4.3*)
11939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11940 hardcode_shlibpath_var=no
11941 export_dynamic_flag_spec='-Bexport'
11942 ;;
11943
11944 sysv4*MP*)
11945 if test -d /usr/nec; then
11946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11947 hardcode_shlibpath_var=no
11948 runpath_var=LD_RUN_PATH
11949 hardcode_runpath_var=yes
11950 ld_shlibs=yes
11951 fi
11952 ;;
11953
11954 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11955 no_undefined_flag='$wl-z,text'
11956 archive_cmds_need_lc=no
11957 hardcode_shlibpath_var=no
11958 runpath_var='LD_RUN_PATH'
11959
11960 if test yes = "$GCC"; then
11961 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11962 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11963 else
11964 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11965 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11966 fi
11967 ;;
11968
11969 sysv5* | sco3.2v5* | sco5v6*)
11970 # Note: We CANNOT use -z defs as we might desire, because we do not
11971 # link with -lc, and that would cause any symbols used from libc to
11972 # always be unresolved, which means just about no library would
11973 # ever link correctly. If we're not using GNU ld we use -z text
11974 # though, which does catch some bad symbols but isn't as heavy-handed
11975 # as -z defs.
11976 no_undefined_flag='$wl-z,text'
11977 allow_undefined_flag='$wl-z,nodefs'
11978 archive_cmds_need_lc=no
11979 hardcode_shlibpath_var=no
11980 hardcode_libdir_flag_spec='$wl-R,$libdir'
11981 hardcode_libdir_separator=':'
11982 link_all_deplibs=yes
11983 export_dynamic_flag_spec='$wl-Bexport'
11984 runpath_var='LD_RUN_PATH'
11985
11986 if test yes = "$GCC"; then
11987 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11988 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11989 else
11990 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11991 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11992 fi
11993 ;;
11994
11995 uts4*)
11996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11997 hardcode_libdir_flag_spec='-L$libdir'
11998 hardcode_shlibpath_var=no
11999 ;;
12000
12001 *)
12002 ld_shlibs=no
12003 ;;
12004 esac
12005
12006 if test sni = "$host_vendor"; then
12007 case $host in
12008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12009 export_dynamic_flag_spec='$wl-Blargedynsym'
12010 ;;
12011 esac
12012 fi
12013 fi
12014
12015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12016 printf "%s\n" "$ld_shlibs" >&6; }
12017 test no = "$ld_shlibs" && can_build_shared=no
12018
12019 with_gnu_ld=$with_gnu_ld
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035 #
12036 # Do we need to explicitly link libc?
12037 #
12038 case "x$archive_cmds_need_lc" in
12039 x|xyes)
12040 # Assume -lc should be added
12041 archive_cmds_need_lc=yes
12042
12043 if test yes,yes = "$GCC,$enable_shared"; then
12044 case $archive_cmds in
12045 *'~'*)
12046 # FIXME: we may have to deal with multi-command sequences.
12047 ;;
12048 '$CC '*)
12049 # Test whether the compiler implicitly links with -lc since on some
12050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12051 # to ld, don't add -lc before -lgcc.
12052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12053 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12054 if test ${lt_cv_archive_cmds_need_lc+y}
12055 then :
12056 printf %s "(cached) " >&6
12057 else case e in #(
12058 e) $RM conftest*
12059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12060
12061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12062 (eval $ac_compile) 2>&5
12063 ac_status=$?
12064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12065 test $ac_status = 0; } 2>conftest.err; then
12066 soname=conftest
12067 lib=conftest
12068 libobjs=conftest.$ac_objext
12069 deplibs=
12070 wl=$lt_prog_compiler_wl
12071 pic_flag=$lt_prog_compiler_pic
12072 compiler_flags=-v
12073 linker_flags=-v
12074 verstring=
12075 output_objdir=.
12076 libname=conftest
12077 lt_save_allow_undefined_flag=$allow_undefined_flag
12078 allow_undefined_flag=
12079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12080 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12081 ac_status=$?
12082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12083 test $ac_status = 0; }
12084 then
12085 lt_cv_archive_cmds_need_lc=no
12086 else
12087 lt_cv_archive_cmds_need_lc=yes
12088 fi
12089 allow_undefined_flag=$lt_save_allow_undefined_flag
12090 else
12091 cat conftest.err 1>&5
12092 fi
12093 $RM conftest*
12094 ;;
12095 esac
12096 fi
12097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12098 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12099 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12100 ;;
12101 esac
12102 fi
12103 ;;
12104 esac
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12258 printf %s "checking dynamic linker characteristics... " >&6; }
12259
12260 if test yes = "$GCC"; then
12261 case $host_os in
12262 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12263 *) lt_awk_arg='/^libraries:/' ;;
12264 esac
12265 case $host_os in
12266 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12267 *) lt_sed_strip_eq='s|=/|/|g' ;;
12268 esac
12269 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12270 case $lt_search_path_spec in
12271 *\;*)
12272 # if the path contains ";" then we assume it to be the separator
12273 # otherwise default to the standard path separator (i.e. ":") - it is
12274 # assumed that no part of a normal pathname contains ";" but that should
12275 # okay in the real world where ";" in dirpaths is itself problematic.
12276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12277 ;;
12278 *)
12279 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12280 ;;
12281 esac
12282 # Ok, now we have the path, separated by spaces, we can step through it
12283 # and add multilib dir if necessary...
12284 lt_tmp_lt_search_path_spec=
12285 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12286 # ...but if some path component already ends with the multilib dir we assume
12287 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12288 case "$lt_multi_os_dir; $lt_search_path_spec " in
12289 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12290 lt_multi_os_dir=
12291 ;;
12292 esac
12293 for lt_sys_path in $lt_search_path_spec; do
12294 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12296 elif test -n "$lt_multi_os_dir"; then
12297 test -d "$lt_sys_path" && \
12298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12299 fi
12300 done
12301 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12302 BEGIN {RS = " "; FS = "/|\n";} {
12303 lt_foo = "";
12304 lt_count = 0;
12305 for (lt_i = NF; lt_i > 0; lt_i--) {
12306 if ($lt_i != "" && $lt_i != ".") {
12307 if ($lt_i == "..") {
12308 lt_count++;
12309 } else {
12310 if (lt_count == 0) {
12311 lt_foo = "/" $lt_i lt_foo;
12312 } else {
12313 lt_count--;
12314 }
12315 }
12316 }
12317 }
12318 if (lt_foo != "") { lt_freq[lt_foo]++; }
12319 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12320 }'`
12321 # AWK program above erroneously prepends '/' to C:/dos/paths
12322 # for these hosts.
12323 case $host_os in
12324 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12325 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12326 esac
12327 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12328 else
12329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12330 fi
12331 library_names_spec=
12332 libname_spec='lib$name'
12333 soname_spec=
12334 shrext_cmds=.so
12335 postinstall_cmds=
12336 postuninstall_cmds=
12337 finish_cmds=
12338 finish_eval=
12339 shlibpath_var=
12340 shlibpath_overrides_runpath=unknown
12341 version_type=none
12342 dynamic_linker="$host_os ld.so"
12343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12344 need_lib_prefix=unknown
12345 hardcode_into_libs=no
12346
12347 # when you set need_version to no, make sure it does not cause -set_version
12348 # flags to be left without arguments
12349 need_version=unknown
12350
12351
12352
12353 case $host_os in
12354 aix3*)
12355 version_type=linux # correct to gnu/linux during the next big refactor
12356 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12357 shlibpath_var=LIBPATH
12358
12359 # AIX 3 has no versioning support, so we append a major version to the name.
12360 soname_spec='$libname$release$shared_ext$major'
12361 ;;
12362
12363 aix[4-9]*)
12364 version_type=linux # correct to gnu/linux during the next big refactor
12365 need_lib_prefix=no
12366 need_version=no
12367 hardcode_into_libs=yes
12368 if test ia64 = "$host_cpu"; then
12369 # AIX 5 supports IA64
12370 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12371 shlibpath_var=LD_LIBRARY_PATH
12372 else
12373 # With GCC up to 2.95.x, collect2 would create an import file
12374 # for dependence libraries. The import file would start with
12375 # the line '#! .'. This would cause the generated library to
12376 # depend on '.', always an invalid library. This was fixed in
12377 # development snapshots of GCC prior to 3.0.
12378 case $host_os in
12379 aix4 | aix4.[01] | aix4.[01].*)
12380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12381 echo ' yes '
12382 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12383 :
12384 else
12385 can_build_shared=no
12386 fi
12387 ;;
12388 esac
12389 # Using Import Files as archive members, it is possible to support
12390 # filename-based versioning of shared library archives on AIX. While
12391 # this would work for both with and without runtime linking, it will
12392 # prevent static linking of such archives. So we do filename-based
12393 # shared library versioning with .so extension only, which is used
12394 # when both runtime linking and shared linking is enabled.
12395 # Unfortunately, runtime linking may impact performance, so we do
12396 # not want this to be the default eventually. Also, we use the
12397 # versioned .so libs for executables only if there is the -brtl
12398 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12399 # To allow for filename-based versioning support, we need to create
12400 # libNAME.so.V as an archive file, containing:
12401 # *) an Import File, referring to the versioned filename of the
12402 # archive as well as the shared archive member, telling the
12403 # bitwidth (32 or 64) of that shared object, and providing the
12404 # list of exported symbols of that shared object, eventually
12405 # decorated with the 'weak' keyword
12406 # *) the shared object with the F_LOADONLY flag set, to really avoid
12407 # it being seen by the linker.
12408 # At run time we better use the real file rather than another symlink,
12409 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12410
12411 case $with_aix_soname,$aix_use_runtimelinking in
12412 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12413 # soname into executable. Probably we can add versioning support to
12414 # collect2, so additional links can be useful in future.
12415 aix,yes) # traditional libtool
12416 dynamic_linker='AIX unversionable lib.so'
12417 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12418 # instead of lib<name>.a to let people know that these are not
12419 # typical AIX shared libraries.
12420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12421 ;;
12422 aix,no) # traditional AIX only
12423 dynamic_linker='AIX lib.a(lib.so.V)'
12424 # We preserve .a as extension for shared libraries through AIX4.2
12425 # and later when we are not doing run time linking.
12426 library_names_spec='$libname$release.a $libname.a'
12427 soname_spec='$libname$release$shared_ext$major'
12428 ;;
12429 svr4,*) # full svr4 only
12430 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12431 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12432 # We do not specify a path in Import Files, so LIBPATH fires.
12433 shlibpath_overrides_runpath=yes
12434 ;;
12435 *,yes) # both, prefer svr4
12436 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12437 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12438 # unpreferred sharedlib libNAME.a needs extra handling
12439 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12440 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12441 # We do not specify a path in Import Files, so LIBPATH fires.
12442 shlibpath_overrides_runpath=yes
12443 ;;
12444 *,no) # both, prefer aix
12445 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12446 library_names_spec='$libname$release.a $libname.a'
12447 soname_spec='$libname$release$shared_ext$major'
12448 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12449 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12450 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12451 ;;
12452 esac
12453 shlibpath_var=LIBPATH
12454 fi
12455 ;;
12456
12457 amigaos*)
12458 case $host_cpu in
12459 powerpc)
12460 # Since July 2007 AmigaOS4 officially supports .so libraries.
12461 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12463 ;;
12464 m68k)
12465 library_names_spec='$libname.ixlibrary $libname.a'
12466 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12467 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12468 ;;
12469 esac
12470 ;;
12471
12472 beos*)
12473 library_names_spec='$libname$shared_ext'
12474 dynamic_linker="$host_os ld.so"
12475 shlibpath_var=LIBRARY_PATH
12476 ;;
12477
12478 bsdi[45]*)
12479 version_type=linux # correct to gnu/linux during the next big refactor
12480 need_version=no
12481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12482 soname_spec='$libname$release$shared_ext$major'
12483 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12486 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12487 # the default ld.so.conf also contains /usr/contrib/lib and
12488 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12489 # libtool to hard-code these into programs
12490 ;;
12491
12492 cygwin* | mingw* | windows* | pw32* | cegcc*)
12493 version_type=windows
12494 shrext_cmds=.dll
12495 need_version=no
12496 need_lib_prefix=no
12497
12498 case $GCC,$cc_basename in
12499 yes,*)
12500 # gcc
12501 library_names_spec='$libname.dll.a'
12502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12503 # If user builds GCC with multilib enabled,
12504 # it should just install on $(libdir)
12505 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12506 if test xyes = x"$multilib"; then
12507 postinstall_cmds='base_file=`basename \$file`~
12508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12509 dldir=$destdir/`dirname \$dlpath`~
12510 $install_prog $dir/$dlname $destdir/$dlname~
12511 chmod a+x $destdir/$dlname~
12512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12513 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12514 fi'
12515 else
12516 postinstall_cmds='base_file=`basename \$file`~
12517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12518 dldir=$destdir/`dirname \$dlpath`~
12519 test -d \$dldir || mkdir -p \$dldir~
12520 $install_prog $dir/$dlname \$dldir/$dlname~
12521 chmod a+x \$dldir/$dlname~
12522 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12523 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12524 fi'
12525 fi
12526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12527 dlpath=$dir/\$dldll~
12528 $RM \$dlpath'
12529 shlibpath_overrides_runpath=yes
12530
12531 case $host_os in
12532 cygwin*)
12533 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12534 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12535
12536 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12537 ;;
12538 mingw* | windows* | cegcc*)
12539 # MinGW DLLs use traditional 'lib' prefix
12540 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12541 ;;
12542 pw32*)
12543 # pw32 DLLs use 'pw' prefix rather than 'lib'
12544 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12545 ;;
12546 esac
12547 dynamic_linker='Win32 ld.exe'
12548 ;;
12549
12550 *,cl* | *,icl*)
12551 # Native MSVC or ICC
12552 libname_spec='$name'
12553 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12554 library_names_spec='$libname.dll.lib'
12555
12556 case $build_os in
12557 mingw* | windows*)
12558 sys_lib_search_path_spec=
12559 lt_save_ifs=$IFS
12560 IFS=';'
12561 for lt_path in $LIB
12562 do
12563 IFS=$lt_save_ifs
12564 # Let DOS variable expansion print the short 8.3 style file name.
12565 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12566 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12567 done
12568 IFS=$lt_save_ifs
12569 # Convert to MSYS style.
12570 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12571 ;;
12572 cygwin*)
12573 # Convert to unix form, then to dos form, then back to unix form
12574 # but this time dos style (no spaces!) so that the unix form looks
12575 # like /cygdrive/c/PROGRA~1:/cygdr...
12576 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12577 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12578 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12579 ;;
12580 *)
12581 sys_lib_search_path_spec=$LIB
12582 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12583 # It is most probably a Windows format PATH.
12584 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12585 else
12586 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12587 fi
12588 # FIXME: find the short name or the path components, as spaces are
12589 # common. (e.g. "Program Files" -> "PROGRA~1")
12590 ;;
12591 esac
12592
12593 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12594 postinstall_cmds='base_file=`basename \$file`~
12595 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12596 dldir=$destdir/`dirname \$dlpath`~
12597 test -d \$dldir || mkdir -p \$dldir~
12598 $install_prog $dir/$dlname \$dldir/$dlname'
12599 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12600 dlpath=$dir/\$dldll~
12601 $RM \$dlpath'
12602 shlibpath_overrides_runpath=yes
12603 dynamic_linker='Win32 link.exe'
12604 ;;
12605
12606 *)
12607 # Assume MSVC and ICC wrapper
12608 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12609 dynamic_linker='Win32 ld.exe'
12610 ;;
12611 esac
12612 # FIXME: first we should search . and the directory the executable is in
12613 shlibpath_var=PATH
12614 ;;
12615
12616 darwin* | rhapsody*)
12617 dynamic_linker="$host_os dyld"
12618 version_type=darwin
12619 need_lib_prefix=no
12620 need_version=no
12621 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12622 soname_spec='$libname$release$major$shared_ext'
12623 shlibpath_overrides_runpath=yes
12624 shlibpath_var=DYLD_LIBRARY_PATH
12625 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12626
12627 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12629 ;;
12630
12631 dgux*)
12632 version_type=linux # correct to gnu/linux during the next big refactor
12633 need_lib_prefix=no
12634 need_version=no
12635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12636 soname_spec='$libname$release$shared_ext$major'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 ;;
12639
12640 freebsd* | dragonfly* | midnightbsd*)
12641 # DragonFly does not have aout. When/if they implement a new
12642 # versioning mechanism, adjust this.
12643 if test -x /usr/bin/objformat; then
12644 objformat=`/usr/bin/objformat`
12645 else
12646 case $host_os in
12647 freebsd[23].*) objformat=aout ;;
12648 *) objformat=elf ;;
12649 esac
12650 fi
12651 version_type=freebsd-$objformat
12652 case $version_type in
12653 freebsd-elf*)
12654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12655 soname_spec='$libname$release$shared_ext$major'
12656 need_version=no
12657 need_lib_prefix=no
12658 ;;
12659 freebsd-*)
12660 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12661 need_version=yes
12662 ;;
12663 esac
12664 case $host_cpu in
12665 powerpc64)
12666 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12667 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12670 int test_pointer_size[sizeof (void *) - 5];
12671
12672 _ACEOF
12673 if ac_fn_c_try_compile "$LINENO"
12674 then :
12675 shlibpath_var=LD_LIBRARY_PATH
12676 else case e in #(
12677 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12678 esac
12679 fi
12680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12681 ;;
12682 *)
12683 shlibpath_var=LD_LIBRARY_PATH
12684 ;;
12685 esac
12686 case $host_os in
12687 freebsd2.*)
12688 shlibpath_overrides_runpath=yes
12689 ;;
12690 freebsd3.[01]* | freebsdelf3.[01]*)
12691 shlibpath_overrides_runpath=yes
12692 hardcode_into_libs=yes
12693 ;;
12694 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12695 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12696 shlibpath_overrides_runpath=no
12697 hardcode_into_libs=yes
12698 ;;
12699 *) # from 4.6 on, and DragonFly
12700 shlibpath_overrides_runpath=yes
12701 hardcode_into_libs=yes
12702 ;;
12703 esac
12704 ;;
12705
12706 haiku*)
12707 version_type=linux # correct to gnu/linux during the next big refactor
12708 need_lib_prefix=no
12709 need_version=no
12710 dynamic_linker="$host_os runtime_loader"
12711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12712 soname_spec='$libname$release$shared_ext$major'
12713 shlibpath_var=LIBRARY_PATH
12714 shlibpath_overrides_runpath=no
12715 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12716 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12717 hardcode_into_libs=no
12718 ;;
12719
12720 hpux9* | hpux10* | hpux11*)
12721 # Give a soname corresponding to the major version so that dld.sl refuses to
12722 # link against other versions.
12723 version_type=sunos
12724 need_lib_prefix=no
12725 need_version=no
12726 case $host_cpu in
12727 ia64*)
12728 shrext_cmds='.so'
12729 hardcode_into_libs=yes
12730 dynamic_linker="$host_os dld.so"
12731 shlibpath_var=LD_LIBRARY_PATH
12732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12734 soname_spec='$libname$release$shared_ext$major'
12735 if test 32 = "$HPUX_IA64_MODE"; then
12736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12737 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12738 else
12739 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12740 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12741 fi
12742 ;;
12743 hppa*64*)
12744 shrext_cmds='.sl'
12745 hardcode_into_libs=yes
12746 dynamic_linker="$host_os dld.sl"
12747 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12750 soname_spec='$libname$release$shared_ext$major'
12751 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12753 ;;
12754 *)
12755 shrext_cmds='.sl'
12756 dynamic_linker="$host_os dld.sl"
12757 shlibpath_var=SHLIB_PATH
12758 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12760 soname_spec='$libname$release$shared_ext$major'
12761 ;;
12762 esac
12763 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12764 postinstall_cmds='chmod 555 $lib'
12765 # or fails outright, so override atomically:
12766 install_override_mode=555
12767 ;;
12768
12769 interix[3-9]*)
12770 version_type=linux # correct to gnu/linux during the next big refactor
12771 need_lib_prefix=no
12772 need_version=no
12773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12774 soname_spec='$libname$release$shared_ext$major'
12775 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12776 shlibpath_var=LD_LIBRARY_PATH
12777 shlibpath_overrides_runpath=no
12778 hardcode_into_libs=yes
12779 ;;
12780
12781 irix5* | irix6* | nonstopux*)
12782 case $host_os in
12783 nonstopux*) version_type=nonstopux ;;
12784 *)
12785 if test yes = "$lt_cv_prog_gnu_ld"; then
12786 version_type=linux # correct to gnu/linux during the next big refactor
12787 else
12788 version_type=irix
12789 fi ;;
12790 esac
12791 need_lib_prefix=no
12792 need_version=no
12793 soname_spec='$libname$release$shared_ext$major'
12794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12795 case $host_os in
12796 irix5* | nonstopux*)
12797 libsuff= shlibsuff=
12798 ;;
12799 *)
12800 case $LD in # libtool.m4 will add one of these switches to LD
12801 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12802 libsuff= shlibsuff= libmagic=32-bit;;
12803 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12804 libsuff=32 shlibsuff=N32 libmagic=N32;;
12805 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12806 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12807 *) libsuff= shlibsuff= libmagic=never-match;;
12808 esac
12809 ;;
12810 esac
12811 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12812 shlibpath_overrides_runpath=no
12813 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12814 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12815 hardcode_into_libs=yes
12816 ;;
12817
12818 # No shared lib support for Linux oldld, aout, or coff.
12819 linux*oldld* | linux*aout* | linux*coff*)
12820 dynamic_linker=no
12821 ;;
12822
12823 linux*android*)
12824 version_type=none # Android doesn't support versioned libraries.
12825 need_lib_prefix=no
12826 need_version=no
12827 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12828 soname_spec='$libname$release$shared_ext'
12829 finish_cmds=
12830 shlibpath_var=LD_LIBRARY_PATH
12831 shlibpath_overrides_runpath=yes
12832
12833 # This implies no fast_install, which is unacceptable.
12834 # Some rework will be needed to allow for fast_install
12835 # before this can be enabled.
12836 hardcode_into_libs=yes
12837
12838 dynamic_linker='Android linker'
12839 # -rpath works at least for libraries that are not overridden by
12840 # libraries installed in system locations.
12841 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12842 ;;
12843
12844 # This must be glibc/ELF.
12845 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12846 version_type=linux # correct to gnu/linux during the next big refactor
12847 need_lib_prefix=no
12848 need_version=no
12849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12850 soname_spec='$libname$release$shared_ext$major'
12851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12852 shlibpath_var=LD_LIBRARY_PATH
12853 shlibpath_overrides_runpath=no
12854
12855 # Some binutils ld are patched to set DT_RUNPATH
12856 if test ${lt_cv_shlibpath_overrides_runpath+y}
12857 then :
12858 printf %s "(cached) " >&6
12859 else case e in #(
12860 e) lt_cv_shlibpath_overrides_runpath=no
12861 save_LDFLAGS=$LDFLAGS
12862 save_libdir=$libdir
12863 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12864 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867
12868 int
12869 main (void)
12870 {
12871
12872 ;
12873 return 0;
12874 }
12875 _ACEOF
12876 if ac_fn_c_try_link "$LINENO"
12877 then :
12878 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12879 then :
12880 lt_cv_shlibpath_overrides_runpath=yes
12881 fi
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LDFLAGS=$save_LDFLAGS
12886 libdir=$save_libdir
12887 ;;
12888 esac
12889 fi
12890
12891 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12892
12893 # This implies no fast_install, which is unacceptable.
12894 # Some rework will be needed to allow for fast_install
12895 # before this can be enabled.
12896 hardcode_into_libs=yes
12897
12898 # Ideally, we could use ldconfig to report *all* directories which are
12899 # searched for libraries, however this is still not possible. Aside from not
12900 # being certain /sbin/ldconfig is available, command
12901 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12902 # even though it is searched at run-time. Try to do the best guess by
12903 # appending ld.so.conf contents (and includes) to the search path.
12904 if test -f /etc/ld.so.conf; then
12905 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' ' '`
12906 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12907 fi
12908
12909 # We used to test for /lib/ld.so.1 and disable shared libraries on
12910 # powerpc, because MkLinux only supported shared libraries with the
12911 # GNU dynamic linker. Since this was broken with cross compilers,
12912 # most powerpc-linux boxes support dynamic linking these days and
12913 # people can always --disable-shared, the test was removed, and we
12914 # assume the GNU/Linux dynamic linker is in use.
12915 dynamic_linker='GNU/Linux ld.so'
12916 ;;
12917
12918 netbsdelf*-gnu)
12919 version_type=linux
12920 need_lib_prefix=no
12921 need_version=no
12922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12923 soname_spec='$libname$release$shared_ext$major'
12924 shlibpath_var=LD_LIBRARY_PATH
12925 shlibpath_overrides_runpath=no
12926 hardcode_into_libs=yes
12927 dynamic_linker='NetBSD ld.elf_so'
12928 ;;
12929
12930 netbsdelf*-gnu)
12931 version_type=linux
12932 need_lib_prefix=no
12933 need_version=no
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12935 soname_spec='${libname}${release}${shared_ext}$major'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=no
12938 hardcode_into_libs=yes
12939 dynamic_linker='NetBSD ld.elf_so'
12940 ;;
12941
12942 netbsd*)
12943 version_type=sunos
12944 need_lib_prefix=no
12945 need_version=no
12946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12947 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12949 dynamic_linker='NetBSD (a.out) ld.so'
12950 else
12951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12952 soname_spec='$libname$release$shared_ext$major'
12953 dynamic_linker='NetBSD ld.elf_so'
12954 fi
12955 shlibpath_var=LD_LIBRARY_PATH
12956 shlibpath_overrides_runpath=yes
12957 hardcode_into_libs=yes
12958 ;;
12959
12960 *-mlibc)
12961 version_type=linux # correct to gnu/linux during the next big refactor
12962 need_lib_prefix=no
12963 need_version=no
12964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12965 soname_spec='$libname$release$shared_ext$major'
12966 dynamic_linker='mlibc ld.so'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 shlibpath_overrides_runpath=no
12969 hardcode_into_libs=yes
12970 ;;
12971
12972 newsos6)
12973 version_type=linux # correct to gnu/linux during the next big refactor
12974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12975 shlibpath_var=LD_LIBRARY_PATH
12976 shlibpath_overrides_runpath=yes
12977 ;;
12978
12979 *nto* | *qnx*)
12980 version_type=qnx
12981 need_lib_prefix=no
12982 need_version=no
12983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12984 soname_spec='$libname$release$shared_ext$major'
12985 shlibpath_var=LD_LIBRARY_PATH
12986 shlibpath_overrides_runpath=no
12987 hardcode_into_libs=yes
12988 dynamic_linker='ldqnx.so'
12989 ;;
12990
12991 openbsd*)
12992 version_type=sunos
12993 sys_lib_dlsearch_path_spec=/usr/lib
12994 need_lib_prefix=no
12995 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12996 need_version=no
12997 else
12998 need_version=yes
12999 fi
13000 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13002 shlibpath_var=LD_LIBRARY_PATH
13003 shlibpath_overrides_runpath=yes
13004 ;;
13005
13006 os2*)
13007 libname_spec='$name'
13008 version_type=windows
13009 shrext_cmds=.dll
13010 need_version=no
13011 need_lib_prefix=no
13012 # OS/2 can only load a DLL with a base name of 8 characters or less.
13013 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13014 v=$($ECHO $release$versuffix | tr -d .-);
13015 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13016 $ECHO $n$v`$shared_ext'
13017 library_names_spec='${libname}_dll.$libext'
13018 dynamic_linker='OS/2 ld.exe'
13019 shlibpath_var=BEGINLIBPATH
13020 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13022 postinstall_cmds='base_file=`basename \$file`~
13023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13024 dldir=$destdir/`dirname \$dlpath`~
13025 test -d \$dldir || mkdir -p \$dldir~
13026 $install_prog $dir/$dlname \$dldir/$dlname~
13027 chmod a+x \$dldir/$dlname~
13028 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13029 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13030 fi'
13031 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13032 dlpath=$dir/\$dldll~
13033 $RM \$dlpath'
13034 ;;
13035
13036 osf3* | osf4* | osf5*)
13037 version_type=osf
13038 need_lib_prefix=no
13039 need_version=no
13040 soname_spec='$libname$release$shared_ext$major'
13041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13042 shlibpath_var=LD_LIBRARY_PATH
13043 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13045 ;;
13046
13047 rdos*)
13048 dynamic_linker=no
13049 ;;
13050
13051 serenity*)
13052 version_type=linux # correct to gnu/linux during the next big refactor
13053 need_lib_prefix=no
13054 need_version=no
13055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13056 soname_spec='$libname$release$shared_ext$major'
13057 shlibpath_var=LD_LIBRARY_PATH
13058 shlibpath_overrides_runpath=no
13059 dynamic_linker='SerenityOS LibELF'
13060 ;;
13061
13062 solaris*)
13063 version_type=linux # correct to gnu/linux during the next big refactor
13064 need_lib_prefix=no
13065 need_version=no
13066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13067 soname_spec='$libname$release$shared_ext$major'
13068 shlibpath_var=LD_LIBRARY_PATH
13069 shlibpath_overrides_runpath=yes
13070 hardcode_into_libs=yes
13071 # ldd complains unless libraries are executable
13072 postinstall_cmds='chmod +x $lib'
13073 ;;
13074
13075 sunos4*)
13076 version_type=sunos
13077 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13078 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13079 shlibpath_var=LD_LIBRARY_PATH
13080 shlibpath_overrides_runpath=yes
13081 if test yes = "$with_gnu_ld"; then
13082 need_lib_prefix=no
13083 fi
13084 need_version=yes
13085 ;;
13086
13087 sysv4 | sysv4.3*)
13088 version_type=linux # correct to gnu/linux during the next big refactor
13089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13090 soname_spec='$libname$release$shared_ext$major'
13091 shlibpath_var=LD_LIBRARY_PATH
13092 case $host_vendor in
13093 sni)
13094 shlibpath_overrides_runpath=no
13095 need_lib_prefix=no
13096 runpath_var=LD_RUN_PATH
13097 ;;
13098 siemens)
13099 need_lib_prefix=no
13100 ;;
13101 motorola)
13102 need_lib_prefix=no
13103 need_version=no
13104 shlibpath_overrides_runpath=no
13105 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13106 ;;
13107 esac
13108 ;;
13109
13110 sysv4*MP*)
13111 if test -d /usr/nec; then
13112 version_type=linux # correct to gnu/linux during the next big refactor
13113 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13114 soname_spec='$libname$shared_ext.$major'
13115 shlibpath_var=LD_LIBRARY_PATH
13116 fi
13117 ;;
13118
13119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13120 version_type=sco
13121 need_lib_prefix=no
13122 need_version=no
13123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13124 soname_spec='$libname$release$shared_ext$major'
13125 shlibpath_var=LD_LIBRARY_PATH
13126 shlibpath_overrides_runpath=yes
13127 hardcode_into_libs=yes
13128 if test yes = "$with_gnu_ld"; then
13129 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13130 else
13131 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13132 case $host_os in
13133 sco3.2v5*)
13134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13135 ;;
13136 esac
13137 fi
13138 sys_lib_dlsearch_path_spec='/usr/lib'
13139 ;;
13140
13141 tpf*)
13142 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13143 version_type=linux # correct to gnu/linux during the next big refactor
13144 need_lib_prefix=no
13145 need_version=no
13146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13147 shlibpath_var=LD_LIBRARY_PATH
13148 shlibpath_overrides_runpath=no
13149 hardcode_into_libs=yes
13150 ;;
13151
13152 uts4*)
13153 version_type=linux # correct to gnu/linux during the next big refactor
13154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13155 soname_spec='$libname$release$shared_ext$major'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 ;;
13158
13159 emscripten*)
13160 version_type=none
13161 need_lib_prefix=no
13162 need_version=no
13163 library_names_spec='$libname$release$shared_ext'
13164 soname_spec='$libname$release$shared_ext'
13165 finish_cmds=
13166 dynamic_linker="Emscripten linker"
13167 lt_prog_compiler_wl=
13168 lt_prog_compiler_pic=
13169 lt_prog_compiler_static=
13170
13171
13172 if test yes = "$GCC"; then
13173 lt_prog_compiler_wl='-Wl,'
13174 lt_prog_compiler_static='-static'
13175
13176 case $host_os in
13177 aix*)
13178 # All AIX code is PIC.
13179 if test ia64 = "$host_cpu"; then
13180 # AIX 5 now supports IA64 processor
13181 lt_prog_compiler_static='-Bstatic'
13182 fi
13183 lt_prog_compiler_pic='-fPIC'
13184 ;;
13185
13186 amigaos*)
13187 case $host_cpu in
13188 powerpc)
13189 # see comment about AmigaOS4 .so support
13190 lt_prog_compiler_pic='-fPIC'
13191 ;;
13192 m68k)
13193 # FIXME: we need at least 68020 code to build shared libraries, but
13194 # adding the '-m68020' flag to GCC prevents building anything better,
13195 # like '-m68040'.
13196 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13197 ;;
13198 esac
13199 ;;
13200
13201 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13202 # PIC is the default for these OSes.
13203 ;;
13204
13205 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13206 # This hack is so that the source file can tell whether it is being
13207 # built for inclusion in a dll (and should export symbols for example).
13208 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13209 # (--disable-auto-import) libraries
13210 lt_prog_compiler_pic='-DDLL_EXPORT'
13211 case $host_os in
13212 os2*)
13213 lt_prog_compiler_static='$wl-static'
13214 ;;
13215 esac
13216 ;;
13217
13218 darwin* | rhapsody*)
13219 # PIC is the default on this platform
13220 # Common symbols not allowed in MH_DYLIB files
13221 lt_prog_compiler_pic='-fno-common'
13222 ;;
13223
13224 haiku*)
13225 # PIC is the default for Haiku.
13226 # The "-static" flag exists, but is broken.
13227 lt_prog_compiler_static=
13228 ;;
13229
13230 hpux*)
13231 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13232 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13233 # sets the default TLS model and affects inlining.
13234 case $host_cpu in
13235 hppa*64*)
13236 # +Z the default
13237 ;;
13238 *)
13239 lt_prog_compiler_pic='-fPIC'
13240 ;;
13241 esac
13242 ;;
13243
13244 interix[3-9]*)
13245 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13246 # Instead, we relocate shared libraries at runtime.
13247 ;;
13248
13249 msdosdjgpp*)
13250 # Just because we use GCC doesn't mean we suddenly get shared libraries
13251 # on systems that don't support them.
13252 lt_prog_compiler_can_build_shared=no
13253 enable_shared=no
13254 ;;
13255
13256 *nto* | *qnx*)
13257 # QNX uses GNU C++, but need to define -shared option too, otherwise
13258 # it will coredump.
13259 lt_prog_compiler_pic='-fPIC -shared'
13260 ;;
13261
13262 sysv4*MP*)
13263 if test -d /usr/nec; then
13264 lt_prog_compiler_pic=-Kconform_pic
13265 fi
13266 ;;
13267
13268 *)
13269 lt_prog_compiler_pic='-fPIC'
13270 ;;
13271 esac
13272
13273 case $cc_basename in
13274 nvcc*) # Cuda Compiler Driver 2.2
13275 lt_prog_compiler_wl='-Xlinker '
13276 if test -n "$lt_prog_compiler_pic"; then
13277 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13278 fi
13279 ;;
13280 esac
13281 else
13282 # PORTME Check for flag to pass linker flags through the system compiler.
13283 case $host_os in
13284 aix*)
13285 lt_prog_compiler_wl='-Wl,'
13286 if test ia64 = "$host_cpu"; then
13287 # AIX 5 now supports IA64 processor
13288 lt_prog_compiler_static='-Bstatic'
13289 else
13290 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13291 fi
13292 ;;
13293
13294 darwin* | rhapsody*)
13295 # PIC is the default on this platform
13296 # Common symbols not allowed in MH_DYLIB files
13297 lt_prog_compiler_pic='-fno-common'
13298 case $cc_basename in
13299 nagfor*)
13300 # NAG Fortran compiler
13301 lt_prog_compiler_wl='-Wl,-Wl,,'
13302 lt_prog_compiler_pic='-PIC'
13303 lt_prog_compiler_static='-Bstatic'
13304 ;;
13305 esac
13306 ;;
13307
13308 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13309 # This hack is so that the source file can tell whether it is being
13310 # built for inclusion in a dll (and should export symbols for example).
13311 lt_prog_compiler_pic='-DDLL_EXPORT'
13312 case $host_os in
13313 os2*)
13314 lt_prog_compiler_static='$wl-static'
13315 ;;
13316 esac
13317 ;;
13318
13319 hpux9* | hpux10* | hpux11*)
13320 lt_prog_compiler_wl='-Wl,'
13321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13322 # not for PA HP-UX.
13323 case $host_cpu in
13324 hppa*64*|ia64*)
13325 # +Z the default
13326 ;;
13327 *)
13328 lt_prog_compiler_pic='+Z'
13329 ;;
13330 esac
13331 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13332 lt_prog_compiler_static='$wl-a ${wl}archive'
13333 ;;
13334
13335 irix5* | irix6* | nonstopux*)
13336 lt_prog_compiler_wl='-Wl,'
13337 # PIC (with -KPIC) is the default.
13338 lt_prog_compiler_static='-non_shared'
13339 ;;
13340
13341 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13342 case $cc_basename in
13343 # old Intel for x86_64, which still supported -KPIC.
13344 ecc*)
13345 lt_prog_compiler_wl='-Wl,'
13346 lt_prog_compiler_pic='-KPIC'
13347 lt_prog_compiler_static='-static'
13348 ;;
13349 *flang* | ftn | f18* | f95*)
13350 # Flang compiler.
13351 lt_prog_compiler_wl='-Wl,'
13352 lt_prog_compiler_pic='-fPIC'
13353 lt_prog_compiler_static='-static'
13354 ;;
13355 # flang / f18. f95 an alias for gfortran or flang on Debian
13356 flang* | f18* | f95*)
13357 lt_prog_compiler_wl='-Wl,'
13358 lt_prog_compiler_pic='-fPIC'
13359 lt_prog_compiler_static='-static'
13360 ;;
13361 # icc used to be incompatible with GCC.
13362 # ICC 10 doesn't accept -KPIC any more.
13363 icc* | ifort*)
13364 lt_prog_compiler_wl='-Wl,'
13365 lt_prog_compiler_pic='-fPIC'
13366 lt_prog_compiler_static='-static'
13367 ;;
13368 # Lahey Fortran 8.1.
13369 lf95*)
13370 lt_prog_compiler_wl='-Wl,'
13371 lt_prog_compiler_pic='--shared'
13372 lt_prog_compiler_static='--static'
13373 ;;
13374 nagfor*)
13375 # NAG Fortran compiler
13376 lt_prog_compiler_wl='-Wl,-Wl,,'
13377 lt_prog_compiler_pic='-PIC'
13378 lt_prog_compiler_static='-Bstatic'
13379 ;;
13380 tcc*)
13381 # Fabrice Bellard et al's Tiny C Compiler
13382 lt_prog_compiler_wl='-Wl,'
13383 lt_prog_compiler_pic='-fPIC'
13384 lt_prog_compiler_static='-static'
13385 ;;
13386 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13387 # Portland Group compilers (*not* the Pentium gcc compiler,
13388 # which looks to be a dead project)
13389 lt_prog_compiler_wl='-Wl,'
13390 lt_prog_compiler_pic='-fpic'
13391 lt_prog_compiler_static='-Bstatic'
13392 ;;
13393 ccc*)
13394 lt_prog_compiler_wl='-Wl,'
13395 # All Alpha code is PIC.
13396 lt_prog_compiler_static='-non_shared'
13397 ;;
13398 xl* | bgxl* | bgf* | mpixl*)
13399 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13400 lt_prog_compiler_wl='-Wl,'
13401 lt_prog_compiler_pic='-qpic'
13402 lt_prog_compiler_static='-qstaticlink'
13403 ;;
13404 *)
13405 case `$CC -V 2>&1 | $SED 5q` in
13406 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13407 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13408 lt_prog_compiler_pic='-KPIC'
13409 lt_prog_compiler_static='-Bstatic'
13410 lt_prog_compiler_wl=''
13411 ;;
13412 *Sun\ F* | *Sun*Fortran*)
13413 lt_prog_compiler_pic='-KPIC'
13414 lt_prog_compiler_static='-Bstatic'
13415 lt_prog_compiler_wl='-Qoption ld '
13416 ;;
13417 *Sun\ C*)
13418 # Sun C 5.9
13419 lt_prog_compiler_pic='-KPIC'
13420 lt_prog_compiler_static='-Bstatic'
13421 lt_prog_compiler_wl='-Wl,'
13422 ;;
13423 *Intel*\ [CF]*Compiler*)
13424 lt_prog_compiler_wl='-Wl,'
13425 lt_prog_compiler_pic='-fPIC'
13426 lt_prog_compiler_static='-static'
13427 ;;
13428 *Portland\ Group*)
13429 lt_prog_compiler_wl='-Wl,'
13430 lt_prog_compiler_pic='-fpic'
13431 lt_prog_compiler_static='-Bstatic'
13432 ;;
13433 esac
13434 ;;
13435 esac
13436 ;;
13437
13438 newsos6)
13439 lt_prog_compiler_pic='-KPIC'
13440 lt_prog_compiler_static='-Bstatic'
13441 ;;
13442
13443 *-mlibc)
13444 lt_prog_compiler_wl='-Wl,'
13445 lt_prog_compiler_pic='-fPIC'
13446 lt_prog_compiler_static='-static'
13447 ;;
13448
13449 *nto* | *qnx*)
13450 # QNX uses GNU C++, but need to define -shared option too, otherwise
13451 # it will coredump.
13452 lt_prog_compiler_pic='-fPIC -shared'
13453 ;;
13454
13455 osf3* | osf4* | osf5*)
13456 lt_prog_compiler_wl='-Wl,'
13457 # All OSF/1 code is PIC.
13458 lt_prog_compiler_static='-non_shared'
13459 ;;
13460
13461 rdos*)
13462 lt_prog_compiler_static='-non_shared'
13463 ;;
13464
13465 serenity*)
13466 ;;
13467
13468 solaris*)
13469 lt_prog_compiler_pic='-KPIC'
13470 lt_prog_compiler_static='-Bstatic'
13471 case $cc_basename in
13472 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13473 lt_prog_compiler_wl='-Qoption ld ';;
13474 *)
13475 lt_prog_compiler_wl='-Wl,';;
13476 esac
13477 ;;
13478
13479 sunos4*)
13480 lt_prog_compiler_wl='-Qoption ld '
13481 lt_prog_compiler_pic='-PIC'
13482 lt_prog_compiler_static='-Bstatic'
13483 ;;
13484
13485 sysv4 | sysv4.2uw2* | sysv4.3*)
13486 lt_prog_compiler_wl='-Wl,'
13487 lt_prog_compiler_pic='-KPIC'
13488 lt_prog_compiler_static='-Bstatic'
13489 ;;
13490
13491 sysv4*MP*)
13492 if test -d /usr/nec; then
13493 lt_prog_compiler_pic='-Kconform_pic'
13494 lt_prog_compiler_static='-Bstatic'
13495 fi
13496 ;;
13497
13498 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13499 lt_prog_compiler_wl='-Wl,'
13500 lt_prog_compiler_pic='-KPIC'
13501 lt_prog_compiler_static='-Bstatic'
13502 ;;
13503
13504 unicos*)
13505 lt_prog_compiler_wl='-Wl,'
13506 lt_prog_compiler_can_build_shared=no
13507 ;;
13508
13509 uts4*)
13510 lt_prog_compiler_pic='-pic'
13511 lt_prog_compiler_static='-Bstatic'
13512 ;;
13513
13514 *)
13515 lt_prog_compiler_can_build_shared=no
13516 ;;
13517 esac
13518 fi
13519
13520 case $host_os in
13521 # For platforms that do not support PIC, -DPIC is meaningless:
13522 *djgpp*)
13523 lt_prog_compiler_pic=
13524 ;;
13525 *)
13526 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13527 ;;
13528 esac
13529
13530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13531 printf %s "checking for $compiler option to produce PIC... " >&6; }
13532 if test ${lt_cv_prog_compiler_pic+y}
13533 then :
13534 printf %s "(cached) " >&6
13535 else case e in #(
13536 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13537 esac
13538 fi
13539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13540 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13541 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13542
13543 #
13544 # Check to make sure the PIC flag actually works.
13545 #
13546 if test -n "$lt_prog_compiler_pic"; then
13547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13548 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13549 if test ${lt_cv_prog_compiler_pic_works+y}
13550 then :
13551 printf %s "(cached) " >&6
13552 else case e in #(
13553 e) lt_cv_prog_compiler_pic_works=no
13554 ac_outfile=conftest.$ac_objext
13555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13556 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13557 # Insert the option either (1) after the last *FLAGS variable, or
13558 # (2) before a word containing "conftest.", or (3) at the end.
13559 # Note that $ac_compile itself does not contain backslashes and begins
13560 # with a dollar sign (not a hyphen), so the echo should work correctly.
13561 # The option is referenced via a variable to avoid confusing sed.
13562 lt_compile=`echo "$ac_compile" | $SED \
13563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13565 -e 's:$: $lt_compiler_flag:'`
13566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13567 (eval "$lt_compile" 2>conftest.err)
13568 ac_status=$?
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 if (exit $ac_status) && test -s "$ac_outfile"; then
13572 # The compiler can only warn and ignore the option if not recognized
13573 # So say no if there are warnings other than the usual output.
13574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13576 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13577 lt_cv_prog_compiler_pic_works=yes
13578 fi
13579 fi
13580 $RM conftest*
13581 ;;
13582 esac
13583 fi
13584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13585 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13586
13587 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13588 case $lt_prog_compiler_pic in
13589 "" | " "*) ;;
13590 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13591 esac
13592 else
13593 lt_prog_compiler_pic=
13594 lt_prog_compiler_can_build_shared=no
13595 fi
13596
13597 fi
13598
13599
13600
13601
13602
13603 #
13604 # Check to make sure the static flag actually works.
13605 #
13606 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13608 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13609 if test ${lt_cv_prog_compiler_static_works+y}
13610 then :
13611 printf %s "(cached) " >&6
13612 else case e in #(
13613 e) lt_cv_prog_compiler_static_works=no
13614 save_LDFLAGS=$LDFLAGS
13615 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13616 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13617 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13618 # The linker can only warn and ignore the option if not recognized
13619 # So say no if there are warnings
13620 if test -s conftest.err; then
13621 # Append any errors to the config.log.
13622 cat conftest.err 1>&5
13623 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13625 if diff conftest.exp conftest.er2 >/dev/null; then
13626 lt_cv_prog_compiler_static_works=yes
13627 fi
13628 else
13629 lt_cv_prog_compiler_static_works=yes
13630 fi
13631 fi
13632 $RM -r conftest*
13633 LDFLAGS=$save_LDFLAGS
13634 ;;
13635 esac
13636 fi
13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13638 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13639
13640 if test yes = "$lt_cv_prog_compiler_static_works"; then
13641 :
13642 else
13643 lt_prog_compiler_static=
13644 fi
13645
13646
13647
13648 ='-fPIC'
13649 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13650 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13651 archive_cmds_need_lc=no
13652 no_undefined_flag=
13653 ;;
13654
13655 *)
13656 dynamic_linker=no
13657 ;;
13658 esac
13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13660 printf "%s\n" "$dynamic_linker" >&6; }
13661 test no = "$dynamic_linker" && can_build_shared=no
13662
13663 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13664 if test yes = "$GCC"; then
13665 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13666 fi
13667
13668 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13669 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13670 fi
13671
13672 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13673 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13674 fi
13675
13676 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13677 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13678
13679 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13680 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13681
13682 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13683 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
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
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13782 printf %s "checking how to hardcode library paths into programs... " >&6; }
13783 hardcode_action=
13784 if test -n "$hardcode_libdir_flag_spec" ||
13785 test -n "$runpath_var" ||
13786 test yes = "$hardcode_automatic"; then
13787
13788 # We can hardcode non-existent directories.
13789 if test no != "$hardcode_direct" &&
13790 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13791 # have to relink, otherwise we might link with an installed library
13792 # when we should be linking with a yet-to-be-installed one
13793 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13794 test no != "$hardcode_minus_L"; then
13795 # Linking always hardcodes the temporary library directory.
13796 hardcode_action=relink
13797 else
13798 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13799 hardcode_action=immediate
13800 fi
13801 else
13802 # We cannot hardcode anything, or else we can only hardcode existing
13803 # directories.
13804 hardcode_action=unsupported
13805 fi
13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13807 printf "%s\n" "$hardcode_action" >&6; }
13808
13809 if test relink = "$hardcode_action" ||
13810 test yes = "$inherit_rpath"; then
13811 # Fast installation is not supported
13812 enable_fast_install=no
13813 elif test yes = "$shlibpath_overrides_runpath" ||
13814 test no = "$enable_shared"; then
13815 # Fast installation is not necessary
13816 enable_fast_install=needless
13817 fi
13818
13819
13820
13821
13822
13823
13824 if test yes != "$enable_dlopen"; then
13825 enable_dlopen=unknown
13826 enable_dlopen_self=unknown
13827 enable_dlopen_self_static=unknown
13828 else
13829 lt_cv_dlopen=no
13830 lt_cv_dlopen_libs=
13831
13832 case $host_os in
13833 beos*)
13834 lt_cv_dlopen=load_add_on
13835 lt_cv_dlopen_libs=
13836 lt_cv_dlopen_self=yes
13837 ;;
13838
13839 mingw* | windows* | pw32* | cegcc*)
13840 lt_cv_dlopen=LoadLibrary
13841 lt_cv_dlopen_libs=
13842 ;;
13843
13844 cygwin*)
13845 lt_cv_dlopen=dlopen
13846 lt_cv_dlopen_libs=
13847 ;;
13848
13849 darwin*)
13850 # if libdl is installed we need to link against it
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13852 printf %s "checking for dlopen in -ldl... " >&6; }
13853 if test ${ac_cv_lib_dl_dlopen+y}
13854 then :
13855 printf %s "(cached) " >&6
13856 else case e in #(
13857 e) ac_check_lib_save_LIBS=$LIBS
13858 LIBS="-ldl $LIBS"
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13861
13862 /* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply.
13865 The 'extern "C"' is for builds by C++ compilers;
13866 although this is not generally supported in C code supporting it here
13867 has little cost and some practical benefit (sr 110532). */
13868 #ifdef __cplusplus
13869 extern "C"
13870 #endif
13871 char dlopen (void);
13872 int
13873 main (void)
13874 {
13875 return dlopen ();
13876 ;
13877 return 0;
13878 }
13879 _ACEOF
13880 if ac_fn_c_try_link "$LINENO"
13881 then :
13882 ac_cv_lib_dl_dlopen=yes
13883 else case e in #(
13884 e) ac_cv_lib_dl_dlopen=no ;;
13885 esac
13886 fi
13887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13888 conftest$ac_exeext conftest.$ac_ext
13889 LIBS=$ac_check_lib_save_LIBS ;;
13890 esac
13891 fi
13892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13893 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13894 if test "x$ac_cv_lib_dl_dlopen" = xyes
13895 then :
13896 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13897 else case e in #(
13898 e)
13899 lt_cv_dlopen=dyld
13900 lt_cv_dlopen_libs=
13901 lt_cv_dlopen_self=yes
13902 ;;
13903 esac
13904 fi
13905
13906 ;;
13907
13908 tpf*)
13909 # Don't try to run any link tests for TPF. We know it's impossible
13910 # because TPF is a cross-compiler, and we know how we open DSOs.
13911 lt_cv_dlopen=dlopen
13912 lt_cv_dlopen_libs=
13913 lt_cv_dlopen_self=no
13914 ;;
13915
13916 *)
13917 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13918 if test "x$ac_cv_func_shl_load" = xyes
13919 then :
13920 lt_cv_dlopen=shl_load
13921 else case e in #(
13922 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13923 printf %s "checking for shl_load in -ldld... " >&6; }
13924 if test ${ac_cv_lib_dld_shl_load+y}
13925 then :
13926 printf %s "(cached) " >&6
13927 else case e in #(
13928 e) ac_check_lib_save_LIBS=$LIBS
13929 LIBS="-ldld $LIBS"
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13932
13933 /* Override any GCC internal prototype to avoid an error.
13934 Use char because int might match the return type of a GCC
13935 builtin and then its argument prototype would still apply.
13936 The 'extern "C"' is for builds by C++ compilers;
13937 although this is not generally supported in C code supporting it here
13938 has little cost and some practical benefit (sr 110532). */
13939 #ifdef __cplusplus
13940 extern "C"
13941 #endif
13942 char shl_load (void);
13943 int
13944 main (void)
13945 {
13946 return shl_load ();
13947 ;
13948 return 0;
13949 }
13950 _ACEOF
13951 if ac_fn_c_try_link "$LINENO"
13952 then :
13953 ac_cv_lib_dld_shl_load=yes
13954 else case e in #(
13955 e) ac_cv_lib_dld_shl_load=no ;;
13956 esac
13957 fi
13958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13959 conftest$ac_exeext conftest.$ac_ext
13960 LIBS=$ac_check_lib_save_LIBS ;;
13961 esac
13962 fi
13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13964 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13965 if test "x$ac_cv_lib_dld_shl_load" = xyes
13966 then :
13967 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13968 else case e in #(
13969 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13970 if test "x$ac_cv_func_dlopen" = xyes
13971 then :
13972 lt_cv_dlopen=dlopen
13973 else case e in #(
13974 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13975 printf %s "checking for dlopen in -ldl... " >&6; }
13976 if test ${ac_cv_lib_dl_dlopen+y}
13977 then :
13978 printf %s "(cached) " >&6
13979 else case e in #(
13980 e) ac_check_lib_save_LIBS=$LIBS
13981 LIBS="-ldl $LIBS"
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13984
13985 /* Override any GCC internal prototype to avoid an error.
13986 Use char because int might match the return type of a GCC
13987 builtin and then its argument prototype would still apply.
13988 The 'extern "C"' is for builds by C++ compilers;
13989 although this is not generally supported in C code supporting it here
13990 has little cost and some practical benefit (sr 110532). */
13991 #ifdef __cplusplus
13992 extern "C"
13993 #endif
13994 char dlopen (void);
13995 int
13996 main (void)
13997 {
13998 return dlopen ();
13999 ;
14000 return 0;
14001 }
14002 _ACEOF
14003 if ac_fn_c_try_link "$LINENO"
14004 then :
14005 ac_cv_lib_dl_dlopen=yes
14006 else case e in #(
14007 e) ac_cv_lib_dl_dlopen=no ;;
14008 esac
14009 fi
14010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14011 conftest$ac_exeext conftest.$ac_ext
14012 LIBS=$ac_check_lib_save_LIBS ;;
14013 esac
14014 fi
14015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14016 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14017 if test "x$ac_cv_lib_dl_dlopen" = xyes
14018 then :
14019 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14020 else case e in #(
14021 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14022 printf %s "checking for dlopen in -lsvld... " >&6; }
14023 if test ${ac_cv_lib_svld_dlopen+y}
14024 then :
14025 printf %s "(cached) " >&6
14026 else case e in #(
14027 e) ac_check_lib_save_LIBS=$LIBS
14028 LIBS="-lsvld $LIBS"
14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14031
14032 /* Override any GCC internal prototype to avoid an error.
14033 Use char because int might match the return type of a GCC
14034 builtin and then its argument prototype would still apply.
14035 The 'extern "C"' is for builds by C++ compilers;
14036 although this is not generally supported in C code supporting it here
14037 has little cost and some practical benefit (sr 110532). */
14038 #ifdef __cplusplus
14039 extern "C"
14040 #endif
14041 char dlopen (void);
14042 int
14043 main (void)
14044 {
14045 return dlopen ();
14046 ;
14047 return 0;
14048 }
14049 _ACEOF
14050 if ac_fn_c_try_link "$LINENO"
14051 then :
14052 ac_cv_lib_svld_dlopen=yes
14053 else case e in #(
14054 e) ac_cv_lib_svld_dlopen=no ;;
14055 esac
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14058 conftest$ac_exeext conftest.$ac_ext
14059 LIBS=$ac_check_lib_save_LIBS ;;
14060 esac
14061 fi
14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14063 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14064 if test "x$ac_cv_lib_svld_dlopen" = xyes
14065 then :
14066 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14067 else case e in #(
14068 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14069 printf %s "checking for dld_link in -ldld... " >&6; }
14070 if test ${ac_cv_lib_dld_dld_link+y}
14071 then :
14072 printf %s "(cached) " >&6
14073 else case e in #(
14074 e) ac_check_lib_save_LIBS=$LIBS
14075 LIBS="-ldld $LIBS"
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14078
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply.
14082 The 'extern "C"' is for builds by C++ compilers;
14083 although this is not generally supported in C code supporting it here
14084 has little cost and some practical benefit (sr 110532). */
14085 #ifdef __cplusplus
14086 extern "C"
14087 #endif
14088 char dld_link (void);
14089 int
14090 main (void)
14091 {
14092 return dld_link ();
14093 ;
14094 return 0;
14095 }
14096 _ACEOF
14097 if ac_fn_c_try_link "$LINENO"
14098 then :
14099 ac_cv_lib_dld_dld_link=yes
14100 else case e in #(
14101 e) ac_cv_lib_dld_dld_link=no ;;
14102 esac
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14105 conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS ;;
14107 esac
14108 fi
14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14110 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14111 if test "x$ac_cv_lib_dld_dld_link" = xyes
14112 then :
14113 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14114 fi
14115
14116 ;;
14117 esac
14118 fi
14119
14120 ;;
14121 esac
14122 fi
14123
14124 ;;
14125 esac
14126 fi
14127
14128 ;;
14129 esac
14130 fi
14131
14132 ;;
14133 esac
14134 fi
14135
14136 ;;
14137 esac
14138
14139 if test no = "$lt_cv_dlopen"; then
14140 enable_dlopen=no
14141 else
14142 enable_dlopen=yes
14143 fi
14144
14145 case $lt_cv_dlopen in
14146 dlopen)
14147 save_CPPFLAGS=$CPPFLAGS
14148 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14149
14150 save_LDFLAGS=$LDFLAGS
14151 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14152
14153 save_LIBS=$LIBS
14154 LIBS="$lt_cv_dlopen_libs $LIBS"
14155
14156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14157 printf %s "checking whether a program can dlopen itself... " >&6; }
14158 if test ${lt_cv_dlopen_self+y}
14159 then :
14160 printf %s "(cached) " >&6
14161 else case e in #(
14162 e) if test yes = "$cross_compiling"; then :
14163 lt_cv_dlopen_self=cross
14164 else
14165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14166 lt_status=$lt_dlunknown
14167 cat > conftest.$ac_ext <<_LT_EOF
14168 #line $LINENO "configure"
14169 #include "confdefs.h"
14170
14171 #if HAVE_DLFCN_H
14172 #include <dlfcn.h>
14173 #endif
14174
14175 #include <stdio.h>
14176
14177 #ifdef RTLD_GLOBAL
14178 # define LT_DLGLOBAL RTLD_GLOBAL
14179 #else
14180 # ifdef DL_GLOBAL
14181 # define LT_DLGLOBAL DL_GLOBAL
14182 # else
14183 # define LT_DLGLOBAL 0
14184 # endif
14185 #endif
14186
14187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14188 find out it does not work in some platform. */
14189 #ifndef LT_DLLAZY_OR_NOW
14190 # ifdef RTLD_LAZY
14191 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14192 # else
14193 # ifdef DL_LAZY
14194 # define LT_DLLAZY_OR_NOW DL_LAZY
14195 # else
14196 # ifdef RTLD_NOW
14197 # define LT_DLLAZY_OR_NOW RTLD_NOW
14198 # else
14199 # ifdef DL_NOW
14200 # define LT_DLLAZY_OR_NOW DL_NOW
14201 # else
14202 # define LT_DLLAZY_OR_NOW 0
14203 # endif
14204 # endif
14205 # endif
14206 # endif
14207 #endif
14208
14209 /* When -fvisibility=hidden is used, assume the code has been annotated
14210 correspondingly for the symbols needed. */
14211 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14212 int fnord (void) __attribute__((visibility("default")));
14213 #endif
14214
14215 int fnord (void) { return 42; }
14216 int main (void)
14217 {
14218 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14219 int status = $lt_dlunknown;
14220
14221 if (self)
14222 {
14223 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14224 else
14225 {
14226 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14227 else puts (dlerror ());
14228 }
14229 /* dlclose (self); */
14230 }
14231 else
14232 puts (dlerror ());
14233
14234 return status;
14235 }
14236 _LT_EOF
14237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14238 (eval $ac_link) 2>&5
14239 ac_status=$?
14240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14242 (./conftest; exit; ) >&5 2>/dev/null
14243 lt_status=$?
14244 case x$lt_status in
14245 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14246 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14247 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14248 esac
14249 else :
14250 # compilation failed
14251 lt_cv_dlopen_self=no
14252 fi
14253 fi
14254 rm -fr conftest*
14255
14256 ;;
14257 esac
14258 fi
14259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14260 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14261
14262 if test yes = "$lt_cv_dlopen_self"; then
14263 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14265 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14266 if test ${lt_cv_dlopen_self_static+y}
14267 then :
14268 printf %s "(cached) " >&6
14269 else case e in #(
14270 e) if test yes = "$cross_compiling"; then :
14271 lt_cv_dlopen_self_static=cross
14272 else
14273 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14274 lt_status=$lt_dlunknown
14275 cat > conftest.$ac_ext <<_LT_EOF
14276 #line $LINENO "configure"
14277 #include "confdefs.h"
14278
14279 #if HAVE_DLFCN_H
14280 #include <dlfcn.h>
14281 #endif
14282
14283 #include <stdio.h>
14284
14285 #ifdef RTLD_GLOBAL
14286 # define LT_DLGLOBAL RTLD_GLOBAL
14287 #else
14288 # ifdef DL_GLOBAL
14289 # define LT_DLGLOBAL DL_GLOBAL
14290 # else
14291 # define LT_DLGLOBAL 0
14292 # endif
14293 #endif
14294
14295 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14296 find out it does not work in some platform. */
14297 #ifndef LT_DLLAZY_OR_NOW
14298 # ifdef RTLD_LAZY
14299 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14300 # else
14301 # ifdef DL_LAZY
14302 # define LT_DLLAZY_OR_NOW DL_LAZY
14303 # else
14304 # ifdef RTLD_NOW
14305 # define LT_DLLAZY_OR_NOW RTLD_NOW
14306 # else
14307 # ifdef DL_NOW
14308 # define LT_DLLAZY_OR_NOW DL_NOW
14309 # else
14310 # define LT_DLLAZY_OR_NOW 0
14311 # endif
14312 # endif
14313 # endif
14314 # endif
14315 #endif
14316
14317 /* When -fvisibility=hidden is used, assume the code has been annotated
14318 correspondingly for the symbols needed. */
14319 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14320 int fnord (void) __attribute__((visibility("default")));
14321 #endif
14322
14323 int fnord (void) { return 42; }
14324 int main (void)
14325 {
14326 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14327 int status = $lt_dlunknown;
14328
14329 if (self)
14330 {
14331 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14332 else
14333 {
14334 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14335 else puts (dlerror ());
14336 }
14337 /* dlclose (self); */
14338 }
14339 else
14340 puts (dlerror ());
14341
14342 return status;
14343 }
14344 _LT_EOF
14345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14346 (eval $ac_link) 2>&5
14347 ac_status=$?
14348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14349 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14350 (./conftest; exit; ) >&5 2>/dev/null
14351 lt_status=$?
14352 case x$lt_status in
14353 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14354 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14355 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14356 esac
14357 else :
14358 # compilation failed
14359 lt_cv_dlopen_self_static=no
14360 fi
14361 fi
14362 rm -fr conftest*
14363
14364 ;;
14365 esac
14366 fi
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14368 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14369 fi
14370
14371 CPPFLAGS=$save_CPPFLAGS
14372 LDFLAGS=$save_LDFLAGS
14373 LIBS=$save_LIBS
14374 ;;
14375 esac
14376
14377 case $lt_cv_dlopen_self in
14378 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14379 *) enable_dlopen_self=unknown ;;
14380 esac
14381
14382 case $lt_cv_dlopen_self_static in
14383 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14384 *) enable_dlopen_self_static=unknown ;;
14385 esac
14386 fi
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404 striplib=
14405 old_striplib=
14406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14407 printf %s "checking whether stripping libraries is possible... " >&6; }
14408 if test -z "$STRIP"; then
14409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14410 printf "%s\n" "no" >&6; }
14411 else
14412 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14413 old_striplib="$STRIP --strip-debug"
14414 striplib="$STRIP --strip-unneeded"
14415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14416 printf "%s\n" "yes" >&6; }
14417 else
14418 case $host_os in
14419 darwin*)
14420 # FIXME - insert some real tests, host_os isn't really good enough
14421 striplib="$STRIP -x"
14422 old_striplib="$STRIP -S"
14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14424 printf "%s\n" "yes" >&6; }
14425 ;;
14426 freebsd*)
14427 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14428 old_striplib="$STRIP --strip-debug"
14429 striplib="$STRIP --strip-unneeded"
14430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14431 printf "%s\n" "yes" >&6; }
14432 else
14433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 printf "%s\n" "no" >&6; }
14435 fi
14436 ;;
14437 *)
14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439 printf "%s\n" "no" >&6; }
14440 ;;
14441 esac
14442 fi
14443 fi
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456 # Report what library types will actually be built
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14458 printf %s "checking if libtool supports shared libraries... " >&6; }
14459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14460 printf "%s\n" "$can_build_shared" >&6; }
14461
14462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14463 printf %s "checking whether to build shared libraries... " >&6; }
14464 test no = "$can_build_shared" && enable_shared=no
14465
14466 # On AIX, shared libraries and static libraries use the same namespace, and
14467 # are all built from PIC.
14468 case $host_os in
14469 aix3*)
14470 test yes = "$enable_shared" && enable_static=no
14471 if test -n "$RANLIB"; then
14472 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14473 postinstall_cmds='$RANLIB $lib'
14474 fi
14475 ;;
14476
14477 aix[4-9]*)
14478 if test ia64 != "$host_cpu"; then
14479 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14480 yes,aix,yes) ;; # shared object as lib.so file only
14481 yes,svr4,*) ;; # shared object as lib.so archive member only
14482 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14483 esac
14484 fi
14485 ;;
14486 esac
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14488 printf "%s\n" "$enable_shared" >&6; }
14489
14490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14491 printf %s "checking whether to build static libraries... " >&6; }
14492 # Make sure either enable_shared or enable_static is yes.
14493 test yes = "$enable_shared" || enable_static=yes
14494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14495 printf "%s\n" "$enable_static" >&6; }
14496
14497
14498
14499
14500 fi
14501 ac_ext=c
14502 ac_cpp='$CPP $CPPFLAGS'
14503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14506
14507 CC=$lt_save_CC
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523 ac_config_commands="$ac_config_commands libtool"
14524
14525
14526
14527
14528 # Only expand once:
14529
14530
14531
14532 ac_config_headers="$ac_config_headers config.h"
14533
14534
14535
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14537 printf %s "checking whether NLS is requested... " >&6; }
14538 # Check whether --enable-nls was given.
14539 if test ${enable_nls+y}
14540 then :
14541 enableval=$enable_nls; USE_NLS=$enableval
14542 else case e in #(
14543 e) USE_NLS=yes ;;
14544 esac
14545 fi
14546
14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14548 printf "%s\n" "$USE_NLS" >&6; }
14549
14550
14551
14552
14553 GETTEXT_MACRO_VERSION=0.19
14554
14555
14556
14557
14558 # Prepare PATH_SEPARATOR.
14559 # The user is always right.
14560 if test "${PATH_SEPARATOR+set}" != set; then
14561 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14562 # contains only /bin. Note that ksh looks also at the FPATH variable,
14563 # so we have to set that as well for the test.
14564 PATH_SEPARATOR=:
14565 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14566 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14567 || PATH_SEPARATOR=';'
14568 }
14569 fi
14570
14571 # Find out how to test for executable files. Don't use a zero-byte file,
14572 # as systems may use methods other than mode bits to determine executability.
14573 cat >conf$$.file <<_ASEOF
14574 #! /bin/sh
14575 exit 0
14576 _ASEOF
14577 chmod +x conf$$.file
14578 if test -x conf$$.file >/dev/null 2>&1; then
14579 ac_executable_p="test -x"
14580 else
14581 ac_executable_p="test -f"
14582 fi
14583 rm -f conf$$.file
14584
14585 # Extract the first word of "msgfmt", so it can be a program name with args.
14586 set dummy msgfmt; ac_word=$2
14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14588 printf %s "checking for $ac_word... " >&6; }
14589 if test ${ac_cv_path_MSGFMT+y}
14590 then :
14591 printf %s "(cached) " >&6
14592 else case e in #(
14593 e) case "$MSGFMT" in
14594 [\\/]* | ?:[\\/]*)
14595 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14596 ;;
14597 *)
14598 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14599 for ac_dir in $PATH; do
14600 IFS="$ac_save_IFS"
14601 test -z "$ac_dir" && ac_dir=.
14602 for ac_exec_ext in '' $ac_executable_extensions; do
14603 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14604 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14605 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14606 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14607 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14608 break 2
14609 fi
14610 fi
14611 done
14612 done
14613 IFS="$ac_save_IFS"
14614 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14615 ;;
14616 esac ;;
14617 esac
14618 fi
14619 MSGFMT="$ac_cv_path_MSGFMT"
14620 if test "$MSGFMT" != ":"; then
14621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14622 printf "%s\n" "$MSGFMT" >&6; }
14623 else
14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14625 printf "%s\n" "no" >&6; }
14626 fi
14627
14628 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14629 set dummy gmsgfmt; ac_word=$2
14630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14631 printf %s "checking for $ac_word... " >&6; }
14632 if test ${ac_cv_path_GMSGFMT+y}
14633 then :
14634 printf %s "(cached) " >&6
14635 else case e in #(
14636 e) case $GMSGFMT in
14637 [\\/]* | ?:[\\/]*)
14638 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14639 ;;
14640 *)
14641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14642 for as_dir in $PATH
14643 do
14644 IFS=$as_save_IFS
14645 case $as_dir in #(((
14646 '') as_dir=./ ;;
14647 */) ;;
14648 *) as_dir=$as_dir/ ;;
14649 esac
14650 for ac_exec_ext in '' $ac_executable_extensions; do
14651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14652 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
14653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14654 break 2
14655 fi
14656 done
14657 done
14658 IFS=$as_save_IFS
14659
14660 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14661 ;;
14662 esac ;;
14663 esac
14664 fi
14665 GMSGFMT=$ac_cv_path_GMSGFMT
14666 if test -n "$GMSGFMT"; then
14667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14668 printf "%s\n" "$GMSGFMT" >&6; }
14669 else
14670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14671 printf "%s\n" "no" >&6; }
14672 fi
14673
14674
14675
14676 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14677 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14678 *) MSGFMT_015=$MSGFMT ;;
14679 esac
14680
14681 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14682 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14683 *) GMSGFMT_015=$GMSGFMT ;;
14684 esac
14685
14686
14687
14688 # Prepare PATH_SEPARATOR.
14689 # The user is always right.
14690 if test "${PATH_SEPARATOR+set}" != set; then
14691 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14692 # contains only /bin. Note that ksh looks also at the FPATH variable,
14693 # so we have to set that as well for the test.
14694 PATH_SEPARATOR=:
14695 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14696 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14697 || PATH_SEPARATOR=';'
14698 }
14699 fi
14700
14701 # Find out how to test for executable files. Don't use a zero-byte file,
14702 # as systems may use methods other than mode bits to determine executability.
14703 cat >conf$$.file <<_ASEOF
14704 #! /bin/sh
14705 exit 0
14706 _ASEOF
14707 chmod +x conf$$.file
14708 if test -x conf$$.file >/dev/null 2>&1; then
14709 ac_executable_p="test -x"
14710 else
14711 ac_executable_p="test -f"
14712 fi
14713 rm -f conf$$.file
14714
14715 # Extract the first word of "xgettext", so it can be a program name with args.
14716 set dummy xgettext; ac_word=$2
14717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14718 printf %s "checking for $ac_word... " >&6; }
14719 if test ${ac_cv_path_XGETTEXT+y}
14720 then :
14721 printf %s "(cached) " >&6
14722 else case e in #(
14723 e) case "$XGETTEXT" in
14724 [\\/]* | ?:[\\/]*)
14725 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14726 ;;
14727 *)
14728 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14729 for ac_dir in $PATH; do
14730 IFS="$ac_save_IFS"
14731 test -z "$ac_dir" && ac_dir=.
14732 for ac_exec_ext in '' $ac_executable_extensions; do
14733 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14734 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14735 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14736 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14737 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14738 break 2
14739 fi
14740 fi
14741 done
14742 done
14743 IFS="$ac_save_IFS"
14744 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14745 ;;
14746 esac ;;
14747 esac
14748 fi
14749 XGETTEXT="$ac_cv_path_XGETTEXT"
14750 if test "$XGETTEXT" != ":"; then
14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14752 printf "%s\n" "$XGETTEXT" >&6; }
14753 else
14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14755 printf "%s\n" "no" >&6; }
14756 fi
14757
14758 rm -f messages.po
14759
14760 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14761 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14762 *) XGETTEXT_015=$XGETTEXT ;;
14763 esac
14764
14765
14766
14767 # Prepare PATH_SEPARATOR.
14768 # The user is always right.
14769 if test "${PATH_SEPARATOR+set}" != set; then
14770 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14771 # contains only /bin. Note that ksh looks also at the FPATH variable,
14772 # so we have to set that as well for the test.
14773 PATH_SEPARATOR=:
14774 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14775 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14776 || PATH_SEPARATOR=';'
14777 }
14778 fi
14779
14780 # Find out how to test for executable files. Don't use a zero-byte file,
14781 # as systems may use methods other than mode bits to determine executability.
14782 cat >conf$$.file <<_ASEOF
14783 #! /bin/sh
14784 exit 0
14785 _ASEOF
14786 chmod +x conf$$.file
14787 if test -x conf$$.file >/dev/null 2>&1; then
14788 ac_executable_p="test -x"
14789 else
14790 ac_executable_p="test -f"
14791 fi
14792 rm -f conf$$.file
14793
14794 # Extract the first word of "msgmerge", so it can be a program name with args.
14795 set dummy msgmerge; ac_word=$2
14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14797 printf %s "checking for $ac_word... " >&6; }
14798 if test ${ac_cv_path_MSGMERGE+y}
14799 then :
14800 printf %s "(cached) " >&6
14801 else case e in #(
14802 e) case "$MSGMERGE" in
14803 [\\/]* | ?:[\\/]*)
14804 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14805 ;;
14806 *)
14807 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14808 for ac_dir in $PATH; do
14809 IFS="$ac_save_IFS"
14810 test -z "$ac_dir" && ac_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14813 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14814 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14815 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14816 break 2
14817 fi
14818 fi
14819 done
14820 done
14821 IFS="$ac_save_IFS"
14822 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14823 ;;
14824 esac ;;
14825 esac
14826 fi
14827 MSGMERGE="$ac_cv_path_MSGMERGE"
14828 if test "$MSGMERGE" != ":"; then
14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14830 printf "%s\n" "$MSGMERGE" >&6; }
14831 else
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14833 printf "%s\n" "no" >&6; }
14834 fi
14835
14836
14837 test -n "$localedir" || localedir='${datadir}/locale'
14838
14839
14840 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14841
14842
14843 ac_config_commands="$ac_config_commands po-directories"
14844
14845
14846
14847 if test "X$prefix" = "XNONE"; then
14848 acl_final_prefix="$ac_default_prefix"
14849 else
14850 acl_final_prefix="$prefix"
14851 fi
14852 if test "X$exec_prefix" = "XNONE"; then
14853 acl_final_exec_prefix='${prefix}'
14854 else
14855 acl_final_exec_prefix="$exec_prefix"
14856 fi
14857 acl_save_prefix="$prefix"
14858 prefix="$acl_final_prefix"
14859 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14860 prefix="$acl_save_prefix"
14861
14862
14863
14864 # Check whether --with-gnu-ld was given.
14865 if test ${with_gnu_ld+y}
14866 then :
14867 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14868 else case e in #(
14869 e) with_gnu_ld=no ;;
14870 esac
14871 fi
14872
14873 # Prepare PATH_SEPARATOR.
14874 # The user is always right.
14875 if test "${PATH_SEPARATOR+set}" != set; then
14876 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14877 # contains only /bin. Note that ksh looks also at the FPATH variable,
14878 # so we have to set that as well for the test.
14879 PATH_SEPARATOR=:
14880 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14881 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14882 || PATH_SEPARATOR=';'
14883 }
14884 fi
14885
14886 ac_prog=ld
14887 if test "$GCC" = yes; then
14888 # Check if gcc -print-prog-name=ld gives a path.
14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14890 printf %s "checking for ld used by $CC... " >&6; }
14891 case $host in
14892 *-*-mingw*)
14893 # gcc leaves a trailing carriage return which upsets mingw
14894 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14895 *)
14896 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14897 esac
14898 case $ac_prog in
14899 # Accept absolute paths.
14900 [\\/]* | ?:[\\/]*)
14901 re_direlt='/[^/][^/]*/\.\./'
14902 # Canonicalize the pathname of ld
14903 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
14904 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
14905 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14906 done
14907 test -z "$LD" && LD="$ac_prog"
14908 ;;
14909 "")
14910 # If it fails, then pretend we aren't using GCC.
14911 ac_prog=ld
14912 ;;
14913 *)
14914 # If it is relative, then search for the first ld in PATH.
14915 with_gnu_ld=unknown
14916 ;;
14917 esac
14918 elif test "$with_gnu_ld" = yes; then
14919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14920 printf %s "checking for GNU ld... " >&6; }
14921 else
14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14923 printf %s "checking for non-GNU ld... " >&6; }
14924 fi
14925 if test ${acl_cv_path_LD+y}
14926 then :
14927 printf %s "(cached) " >&6
14928 else case e in #(
14929 e) if test -z "$LD"; then
14930 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14931 for ac_dir in $PATH; do
14932 IFS="$acl_save_ifs"
14933 test -z "$ac_dir" && ac_dir=.
14934 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14935 acl_cv_path_LD="$ac_dir/$ac_prog"
14936 # Check to see if the program is GNU ld. I'd rather use --version,
14937 # but apparently some variants of GNU ld only accept -v.
14938 # Break only if it was the GNU/non-GNU ld that we prefer.
14939 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
14940 *GNU* | *'with BFD'*)
14941 test "$with_gnu_ld" != no && break
14942 ;;
14943 *)
14944 test "$with_gnu_ld" != yes && break
14945 ;;
14946 esac
14947 fi
14948 done
14949 IFS="$acl_save_ifs"
14950 else
14951 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14952 fi ;;
14953 esac
14954 fi
14955
14956 LD="$acl_cv_path_LD"
14957 if test -n "$LD"; then
14958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14959 printf "%s\n" "$LD" >&6; }
14960 else
14961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14962 printf "%s\n" "no" >&6; }
14963 fi
14964 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14966 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14967 if test ${acl_cv_prog_gnu_ld+y}
14968 then :
14969 printf %s "(cached) " >&6
14970 else case e in #(
14971 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
14972 case `$LD -v 2>&1 </dev/null` in
14973 *GNU* | *'with BFD'*)
14974 acl_cv_prog_gnu_ld=yes
14975 ;;
14976 *)
14977 acl_cv_prog_gnu_ld=no
14978 ;;
14979 esac ;;
14980 esac
14981 fi
14982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14983 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
14984 with_gnu_ld=$acl_cv_prog_gnu_ld
14985
14986
14987
14988
14989
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14991 printf %s "checking for shared library run path origin... " >&6; }
14992 if test ${acl_cv_rpath+y}
14993 then :
14994 printf %s "(cached) " >&6
14995 else case e in #(
14996 e)
14997 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14998 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14999 . ./conftest.sh
15000 rm -f ./conftest.sh
15001 acl_cv_rpath=done
15002 ;;
15003 esac
15004 fi
15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15006 printf "%s\n" "$acl_cv_rpath" >&6; }
15007 wl="$acl_cv_wl"
15008 acl_libext="$acl_cv_libext"
15009 acl_shlibext="$acl_cv_shlibext"
15010 acl_libname_spec="$acl_cv_libname_spec"
15011 acl_library_names_spec="$acl_cv_library_names_spec"
15012 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15013 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15014 acl_hardcode_direct="$acl_cv_hardcode_direct"
15015 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15016 # Check whether --enable-rpath was given.
15017 if test ${enable_rpath+y}
15018 then :
15019 enableval=$enable_rpath; :
15020 else case e in #(
15021 e) enable_rpath=yes ;;
15022 esac
15023 fi
15024
15025
15026 ac_ext=c
15027 ac_cpp='$CPP $CPPFLAGS'
15028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15032 printf %s "checking how to run the C preprocessor... " >&6; }
15033 # On Suns, sometimes $CPP names a directory.
15034 if test -n "$CPP" && test -d "$CPP"; then
15035 CPP=
15036 fi
15037 if test -z "$CPP"; then
15038 if test ${ac_cv_prog_CPP+y}
15039 then :
15040 printf %s "(cached) " >&6
15041 else case e in #(
15042 e) # Double quotes because $CC needs to be expanded
15043 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
15044 do
15045 ac_preproc_ok=false
15046 for ac_c_preproc_warn_flag in '' yes
15047 do
15048 # Use a header file that comes with gcc, so configuring glibc
15049 # with a fresh cross-compiler works.
15050 # On the NeXT, cc -E runs the code through the compiler's parser,
15051 # not just through cpp. "Syntax error" is here to catch this case.
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15054 #include <limits.h>
15055 Syntax error
15056 _ACEOF
15057 if ac_fn_c_try_cpp "$LINENO"
15058 then :
15059
15060 else case e in #(
15061 e) # Broken: fails on valid input.
15062 continue ;;
15063 esac
15064 fi
15065 rm -f conftest.err conftest.i conftest.$ac_ext
15066
15067 # OK, works on sane cases. Now check whether nonexistent headers
15068 # can be detected and how.
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15071 #include <ac_nonexistent.h>
15072 _ACEOF
15073 if ac_fn_c_try_cpp "$LINENO"
15074 then :
15075 # Broken: success on invalid input.
15076 continue
15077 else case e in #(
15078 e) # Passes both tests.
15079 ac_preproc_ok=:
15080 break ;;
15081 esac
15082 fi
15083 rm -f conftest.err conftest.i conftest.$ac_ext
15084
15085 done
15086 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15087 rm -f conftest.i conftest.err conftest.$ac_ext
15088 if $ac_preproc_ok
15089 then :
15090 break
15091 fi
15092
15093 done
15094 ac_cv_prog_CPP=$CPP
15095 ;;
15096 esac
15097 fi
15098 CPP=$ac_cv_prog_CPP
15099 else
15100 ac_cv_prog_CPP=$CPP
15101 fi
15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15103 printf "%s\n" "$CPP" >&6; }
15104 ac_preproc_ok=false
15105 for ac_c_preproc_warn_flag in '' yes
15106 do
15107 # Use a header file that comes with gcc, so configuring glibc
15108 # with a fresh cross-compiler works.
15109 # On the NeXT, cc -E runs the code through the compiler's parser,
15110 # not just through cpp. "Syntax error" is here to catch this case.
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15113 #include <limits.h>
15114 Syntax error
15115 _ACEOF
15116 if ac_fn_c_try_cpp "$LINENO"
15117 then :
15118
15119 else case e in #(
15120 e) # Broken: fails on valid input.
15121 continue ;;
15122 esac
15123 fi
15124 rm -f conftest.err conftest.i conftest.$ac_ext
15125
15126 # OK, works on sane cases. Now check whether nonexistent headers
15127 # can be detected and how.
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130 #include <ac_nonexistent.h>
15131 _ACEOF
15132 if ac_fn_c_try_cpp "$LINENO"
15133 then :
15134 # Broken: success on invalid input.
15135 continue
15136 else case e in #(
15137 e) # Passes both tests.
15138 ac_preproc_ok=:
15139 break ;;
15140 esac
15141 fi
15142 rm -f conftest.err conftest.i conftest.$ac_ext
15143
15144 done
15145 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15146 rm -f conftest.i conftest.err conftest.$ac_ext
15147 if $ac_preproc_ok
15148 then :
15149
15150 else case e in #(
15151 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15152 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15153 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
15154 See 'config.log' for more details" "$LINENO" 5; } ;;
15155 esac
15156 fi
15157
15158 ac_ext=c
15159 ac_cpp='$CPP $CPPFLAGS'
15160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15163
15164
15165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
15166 printf %s "checking for egrep -e... " >&6; }
15167 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
15168 then :
15169 printf %s "(cached) " >&6
15170 else case e in #(
15171 e) if test -z "$EGREP_TRADITIONAL"; then
15172 ac_path_EGREP_TRADITIONAL_found=false
15173 # Loop through the user's path and test for each of PROGNAME-LIST
15174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15176 do
15177 IFS=$as_save_IFS
15178 case $as_dir in #(((
15179 '') as_dir=./ ;;
15180 */) ;;
15181 *) as_dir=$as_dir/ ;;
15182 esac
15183 for ac_prog in grep ggrep
15184 do
15185 for ac_exec_ext in '' $ac_executable_extensions; do
15186 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
15187 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
15188 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
15189 # Check for GNU $ac_path_EGREP_TRADITIONAL
15190 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
15191 *GNU*)
15192 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
15193 #(
15194 *)
15195 ac_count=0
15196 printf %s 0123456789 >"conftest.in"
15197 while :
15198 do
15199 cat "conftest.in" "conftest.in" >"conftest.tmp"
15200 mv "conftest.tmp" "conftest.in"
15201 cp "conftest.in" "conftest.nl"
15202 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
15203 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15205 as_fn_arith $ac_count + 1 && ac_count=$as_val
15206 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
15207 # Best one so far, save it but keep looking for a better one
15208 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
15209 ac_path_EGREP_TRADITIONAL_max=$ac_count
15210 fi
15211 # 10*(2^10) chars as input seems more than enough
15212 test $ac_count -gt 10 && break
15213 done
15214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15215 esac
15216
15217 $ac_path_EGREP_TRADITIONAL_found && break 3
15218 done
15219 done
15220 done
15221 IFS=$as_save_IFS
15222 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
15223 :
15224 fi
15225 else
15226 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
15227 fi
15228
15229 if test "$ac_cv_path_EGREP_TRADITIONAL"
15230 then :
15231 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
15232 else case e in #(
15233 e) if test -z "$EGREP_TRADITIONAL"; then
15234 ac_path_EGREP_TRADITIONAL_found=false
15235 # Loop through the user's path and test for each of PROGNAME-LIST
15236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15238 do
15239 IFS=$as_save_IFS
15240 case $as_dir in #(((
15241 '') as_dir=./ ;;
15242 */) ;;
15243 *) as_dir=$as_dir/ ;;
15244 esac
15245 for ac_prog in egrep
15246 do
15247 for ac_exec_ext in '' $ac_executable_extensions; do
15248 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
15249 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
15250 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
15251 # Check for GNU $ac_path_EGREP_TRADITIONAL
15252 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
15253 *GNU*)
15254 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
15255 #(
15256 *)
15257 ac_count=0
15258 printf %s 0123456789 >"conftest.in"
15259 while :
15260 do
15261 cat "conftest.in" "conftest.in" >"conftest.tmp"
15262 mv "conftest.tmp" "conftest.in"
15263 cp "conftest.in" "conftest.nl"
15264 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
15265 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15267 as_fn_arith $ac_count + 1 && ac_count=$as_val
15268 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
15269 # Best one so far, save it but keep looking for a better one
15270 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
15271 ac_path_EGREP_TRADITIONAL_max=$ac_count
15272 fi
15273 # 10*(2^10) chars as input seems more than enough
15274 test $ac_count -gt 10 && break
15275 done
15276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15277 esac
15278
15279 $ac_path_EGREP_TRADITIONAL_found && break 3
15280 done
15281 done
15282 done
15283 IFS=$as_save_IFS
15284 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
15285 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15286 fi
15287 else
15288 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
15289 fi
15290 ;;
15291 esac
15292 fi ;;
15293 esac
15294 fi
15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
15296 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
15297 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
15298
15299
15300
15301 acl_libdirstem=lib
15302 acl_libdirstem2=
15303 case "$host_os" in
15304 solaris*)
15305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15306 printf %s "checking for 64-bit host... " >&6; }
15307 if test ${gl_cv_solaris_64bit+y}
15308 then :
15309 printf %s "(cached) " >&6
15310 else case e in #(
15311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313
15314 #ifdef _LP64
15315 sixtyfour bits
15316 #endif
15317
15318 _ACEOF
15319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15320 $EGREP_TRADITIONAL "sixtyfour bits" >/dev/null 2>&1
15321 then :
15322 gl_cv_solaris_64bit=yes
15323 else case e in #(
15324 e) gl_cv_solaris_64bit=no ;;
15325 esac
15326 fi
15327 rm -rf conftest*
15328
15329 ;;
15330 esac
15331 fi
15332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15333 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
15334 if test $gl_cv_solaris_64bit = yes; then
15335 acl_libdirstem=lib/64
15336 case "$host_cpu" in
15337 sparc*) acl_libdirstem2=lib/sparcv9 ;;
15338 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15339 esac
15340 fi
15341 ;;
15342 *)
15343 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15344 if test -n "$searchpath"; then
15345 acl_save_IFS="${IFS= }"; IFS=":"
15346 for searchdir in $searchpath; do
15347 if test -d "$searchdir"; then
15348 case "$searchdir" in
15349 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15350 */../ | */.. )
15351 # Better ignore directories of this form. They are misleading.
15352 ;;
15353 *) searchdir=`cd "$searchdir" && pwd`
15354 case "$searchdir" in
15355 */lib64 ) acl_libdirstem=lib64 ;;
15356 esac ;;
15357 esac
15358 fi
15359 done
15360 IFS="$acl_save_IFS"
15361 fi
15362 ;;
15363 esac
15364 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377 use_additional=yes
15378
15379 acl_save_prefix="$prefix"
15380 prefix="$acl_final_prefix"
15381 acl_save_exec_prefix="$exec_prefix"
15382 exec_prefix="$acl_final_exec_prefix"
15383
15384 eval additional_includedir=\"$includedir\"
15385 eval additional_libdir=\"$libdir\"
15386
15387 exec_prefix="$acl_save_exec_prefix"
15388 prefix="$acl_save_prefix"
15389
15390
15391 # Check whether --with-libiconv-prefix was given.
15392 if test ${with_libiconv_prefix+y}
15393 then :
15394 withval=$with_libiconv_prefix;
15395 if test "X$withval" = "Xno"; then
15396 use_additional=no
15397 else
15398 if test "X$withval" = "X"; then
15399
15400 acl_save_prefix="$prefix"
15401 prefix="$acl_final_prefix"
15402 acl_save_exec_prefix="$exec_prefix"
15403 exec_prefix="$acl_final_exec_prefix"
15404
15405 eval additional_includedir=\"$includedir\"
15406 eval additional_libdir=\"$libdir\"
15407
15408 exec_prefix="$acl_save_exec_prefix"
15409 prefix="$acl_save_prefix"
15410
15411 else
15412 additional_includedir="$withval/include"
15413 additional_libdir="$withval/$acl_libdirstem"
15414 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15415 && ! test -d "$withval/$acl_libdirstem"; then
15416 additional_libdir="$withval/$acl_libdirstem2"
15417 fi
15418 fi
15419 fi
15420
15421 fi
15422
15423 LIBICONV=
15424 LTLIBICONV=
15425 INCICONV=
15426 LIBICONV_PREFIX=
15427 HAVE_LIBICONV=
15428 rpathdirs=
15429 ltrpathdirs=
15430 names_already_handled=
15431 names_next_round='iconv '
15432 while test -n "$names_next_round"; do
15433 names_this_round="$names_next_round"
15434 names_next_round=
15435 for name in $names_this_round; do
15436 already_handled=
15437 for n in $names_already_handled; do
15438 if test "$n" = "$name"; then
15439 already_handled=yes
15440 break
15441 fi
15442 done
15443 if test -z "$already_handled"; then
15444 names_already_handled="$names_already_handled $name"
15445 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15446 eval value=\"\$HAVE_LIB$uppername\"
15447 if test -n "$value"; then
15448 if test "$value" = yes; then
15449 eval value=\"\$LIB$uppername\"
15450 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15451 eval value=\"\$LTLIB$uppername\"
15452 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15453 else
15454 :
15455 fi
15456 else
15457 found_dir=
15458 found_la=
15459 found_so=
15460 found_a=
15461 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15462 if test -n "$acl_shlibext"; then
15463 shrext=".$acl_shlibext" # typically: shrext=.so
15464 else
15465 shrext=
15466 fi
15467 if test $use_additional = yes; then
15468 dir="$additional_libdir"
15469 if test -n "$acl_shlibext"; then
15470 if test -f "$dir/$libname$shrext"; then
15471 found_dir="$dir"
15472 found_so="$dir/$libname$shrext"
15473 else
15474 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15475 ver=`(cd "$dir" && \
15476 for f in "$libname$shrext".*; do echo "$f"; done \
15477 | sed -e "s,^$libname$shrext\\\\.,," \
15478 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15479 | sed 1q ) 2>/dev/null`
15480 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15481 found_dir="$dir"
15482 found_so="$dir/$libname$shrext.$ver"
15483 fi
15484 else
15485 eval library_names=\"$acl_library_names_spec\"
15486 for f in $library_names; do
15487 if test -f "$dir/$f"; then
15488 found_dir="$dir"
15489 found_so="$dir/$f"
15490 break
15491 fi
15492 done
15493 fi
15494 fi
15495 fi
15496 if test "X$found_dir" = "X"; then
15497 if test -f "$dir/$libname.$acl_libext"; then
15498 found_dir="$dir"
15499 found_a="$dir/$libname.$acl_libext"
15500 fi
15501 fi
15502 if test "X$found_dir" != "X"; then
15503 if test -f "$dir/$libname.la"; then
15504 found_la="$dir/$libname.la"
15505 fi
15506 fi
15507 fi
15508 if test "X$found_dir" = "X"; then
15509 for x in $LDFLAGS $LTLIBICONV; do
15510
15511 acl_save_prefix="$prefix"
15512 prefix="$acl_final_prefix"
15513 acl_save_exec_prefix="$exec_prefix"
15514 exec_prefix="$acl_final_exec_prefix"
15515 eval x=\"$x\"
15516 exec_prefix="$acl_save_exec_prefix"
15517 prefix="$acl_save_prefix"
15518
15519 case "$x" in
15520 -L*)
15521 dir=`echo "X$x" | sed -e 's/^X-L//'`
15522 if test -n "$acl_shlibext"; then
15523 if test -f "$dir/$libname$shrext"; then
15524 found_dir="$dir"
15525 found_so="$dir/$libname$shrext"
15526 else
15527 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15528 ver=`(cd "$dir" && \
15529 for f in "$libname$shrext".*; do echo "$f"; done \
15530 | sed -e "s,^$libname$shrext\\\\.,," \
15531 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15532 | sed 1q ) 2>/dev/null`
15533 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15534 found_dir="$dir"
15535 found_so="$dir/$libname$shrext.$ver"
15536 fi
15537 else
15538 eval library_names=\"$acl_library_names_spec\"
15539 for f in $library_names; do
15540 if test -f "$dir/$f"; then
15541 found_dir="$dir"
15542 found_so="$dir/$f"
15543 break
15544 fi
15545 done
15546 fi
15547 fi
15548 fi
15549 if test "X$found_dir" = "X"; then
15550 if test -f "$dir/$libname.$acl_libext"; then
15551 found_dir="$dir"
15552 found_a="$dir/$libname.$acl_libext"
15553 fi
15554 fi
15555 if test "X$found_dir" != "X"; then
15556 if test -f "$dir/$libname.la"; then
15557 found_la="$dir/$libname.la"
15558 fi
15559 fi
15560 ;;
15561 esac
15562 if test "X$found_dir" != "X"; then
15563 break
15564 fi
15565 done
15566 fi
15567 if test "X$found_dir" != "X"; then
15568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15569 if test "X$found_so" != "X"; then
15570 if test "$enable_rpath" = no \
15571 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15572 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15573 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15574 else
15575 haveit=
15576 for x in $ltrpathdirs; do
15577 if test "X$x" = "X$found_dir"; then
15578 haveit=yes
15579 break
15580 fi
15581 done
15582 if test -z "$haveit"; then
15583 ltrpathdirs="$ltrpathdirs $found_dir"
15584 fi
15585 if test "$acl_hardcode_direct" = yes; then
15586 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15587 else
15588 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15589 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15590 haveit=
15591 for x in $rpathdirs; do
15592 if test "X$x" = "X$found_dir"; then
15593 haveit=yes
15594 break
15595 fi
15596 done
15597 if test -z "$haveit"; then
15598 rpathdirs="$rpathdirs $found_dir"
15599 fi
15600 else
15601 haveit=
15602 for x in $LDFLAGS $LIBICONV; do
15603
15604 acl_save_prefix="$prefix"
15605 prefix="$acl_final_prefix"
15606 acl_save_exec_prefix="$exec_prefix"
15607 exec_prefix="$acl_final_exec_prefix"
15608 eval x=\"$x\"
15609 exec_prefix="$acl_save_exec_prefix"
15610 prefix="$acl_save_prefix"
15611
15612 if test "X$x" = "X-L$found_dir"; then
15613 haveit=yes
15614 break
15615 fi
15616 done
15617 if test -z "$haveit"; then
15618 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15619 fi
15620 if test "$acl_hardcode_minus_L" != no; then
15621 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15622 else
15623 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15624 fi
15625 fi
15626 fi
15627 fi
15628 else
15629 if test "X$found_a" != "X"; then
15630 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15631 else
15632 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15633 fi
15634 fi
15635 additional_includedir=
15636 case "$found_dir" in
15637 */$acl_libdirstem | */$acl_libdirstem/)
15638 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15639 if test "$name" = 'iconv'; then
15640 LIBICONV_PREFIX="$basedir"
15641 fi
15642 additional_includedir="$basedir/include"
15643 ;;
15644 */$acl_libdirstem2 | */$acl_libdirstem2/)
15645 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15646 if test "$name" = 'iconv'; then
15647 LIBICONV_PREFIX="$basedir"
15648 fi
15649 additional_includedir="$basedir/include"
15650 ;;
15651 esac
15652 if test "X$additional_includedir" != "X"; then
15653 if test "X$additional_includedir" != "X/usr/include"; then
15654 haveit=
15655 if test "X$additional_includedir" = "X/usr/local/include"; then
15656 if test -n "$GCC"; then
15657 case $host_os in
15658 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15659 esac
15660 fi
15661 fi
15662 if test -z "$haveit"; then
15663 for x in $CPPFLAGS $INCICONV; do
15664
15665 acl_save_prefix="$prefix"
15666 prefix="$acl_final_prefix"
15667 acl_save_exec_prefix="$exec_prefix"
15668 exec_prefix="$acl_final_exec_prefix"
15669 eval x=\"$x\"
15670 exec_prefix="$acl_save_exec_prefix"
15671 prefix="$acl_save_prefix"
15672
15673 if test "X$x" = "X-I$additional_includedir"; then
15674 haveit=yes
15675 break
15676 fi
15677 done
15678 if test -z "$haveit"; then
15679 if test -d "$additional_includedir"; then
15680 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15681 fi
15682 fi
15683 fi
15684 fi
15685 fi
15686 if test -n "$found_la"; then
15687 save_libdir="$libdir"
15688 case "$found_la" in
15689 */* | *\\*) . "$found_la" ;;
15690 *) . "./$found_la" ;;
15691 esac
15692 libdir="$save_libdir"
15693 for dep in $dependency_libs; do
15694 case "$dep" in
15695 -L*)
15696 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15697 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15698 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15699 haveit=
15700 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15701 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15702 if test -n "$GCC"; then
15703 case $host_os in
15704 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15705 esac
15706 fi
15707 fi
15708 if test -z "$haveit"; then
15709 haveit=
15710 for x in $LDFLAGS $LIBICONV; do
15711
15712 acl_save_prefix="$prefix"
15713 prefix="$acl_final_prefix"
15714 acl_save_exec_prefix="$exec_prefix"
15715 exec_prefix="$acl_final_exec_prefix"
15716 eval x=\"$x\"
15717 exec_prefix="$acl_save_exec_prefix"
15718 prefix="$acl_save_prefix"
15719
15720 if test "X$x" = "X-L$additional_libdir"; then
15721 haveit=yes
15722 break
15723 fi
15724 done
15725 if test -z "$haveit"; then
15726 if test -d "$additional_libdir"; then
15727 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15728 fi
15729 fi
15730 haveit=
15731 for x in $LDFLAGS $LTLIBICONV; do
15732
15733 acl_save_prefix="$prefix"
15734 prefix="$acl_final_prefix"
15735 acl_save_exec_prefix="$exec_prefix"
15736 exec_prefix="$acl_final_exec_prefix"
15737 eval x=\"$x\"
15738 exec_prefix="$acl_save_exec_prefix"
15739 prefix="$acl_save_prefix"
15740
15741 if test "X$x" = "X-L$additional_libdir"; then
15742 haveit=yes
15743 break
15744 fi
15745 done
15746 if test -z "$haveit"; then
15747 if test -d "$additional_libdir"; then
15748 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15749 fi
15750 fi
15751 fi
15752 fi
15753 ;;
15754 -R*)
15755 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15756 if test "$enable_rpath" != no; then
15757 haveit=
15758 for x in $rpathdirs; do
15759 if test "X$x" = "X$dir"; then
15760 haveit=yes
15761 break
15762 fi
15763 done
15764 if test -z "$haveit"; then
15765 rpathdirs="$rpathdirs $dir"
15766 fi
15767 haveit=
15768 for x in $ltrpathdirs; do
15769 if test "X$x" = "X$dir"; then
15770 haveit=yes
15771 break
15772 fi
15773 done
15774 if test -z "$haveit"; then
15775 ltrpathdirs="$ltrpathdirs $dir"
15776 fi
15777 fi
15778 ;;
15779 -l*)
15780 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15781 ;;
15782 *.la)
15783 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15784 ;;
15785 *)
15786 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15787 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15788 ;;
15789 esac
15790 done
15791 fi
15792 else
15793 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15794 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15795 fi
15796 fi
15797 fi
15798 done
15799 done
15800 if test "X$rpathdirs" != "X"; then
15801 if test -n "$acl_hardcode_libdir_separator"; then
15802 alldirs=
15803 for found_dir in $rpathdirs; do
15804 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15805 done
15806 acl_save_libdir="$libdir"
15807 libdir="$alldirs"
15808 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15809 libdir="$acl_save_libdir"
15810 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15811 else
15812 for found_dir in $rpathdirs; do
15813 acl_save_libdir="$libdir"
15814 libdir="$found_dir"
15815 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15816 libdir="$acl_save_libdir"
15817 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15818 done
15819 fi
15820 fi
15821 if test "X$ltrpathdirs" != "X"; then
15822 for found_dir in $ltrpathdirs; do
15823 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15824 done
15825 fi
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15858 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
15859 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
15860 then :
15861 printf %s "(cached) " >&6
15862 else case e in #(
15863 e) gt_save_LIBS="$LIBS"
15864 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h. */
15867 #include <CoreFoundation/CFPreferences.h>
15868 int
15869 main (void)
15870 {
15871 CFPreferencesCopyAppValue(NULL, NULL)
15872 ;
15873 return 0;
15874 }
15875 _ACEOF
15876 if ac_fn_c_try_link "$LINENO"
15877 then :
15878 gt_cv_func_CFPreferencesCopyAppValue=yes
15879 else case e in #(
15880 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
15881 esac
15882 fi
15883 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15884 conftest$ac_exeext conftest.$ac_ext
15885 LIBS="$gt_save_LIBS" ;;
15886 esac
15887 fi
15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15889 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15890 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15891
15892 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15893
15894 fi
15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15896 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
15897 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
15898 then :
15899 printf %s "(cached) " >&6
15900 else case e in #(
15901 e) gt_save_LIBS="$LIBS"
15902 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905 #include <CoreFoundation/CFLocale.h>
15906 int
15907 main (void)
15908 {
15909 CFLocaleCopyCurrent();
15910 ;
15911 return 0;
15912 }
15913 _ACEOF
15914 if ac_fn_c_try_link "$LINENO"
15915 then :
15916 gt_cv_func_CFLocaleCopyCurrent=yes
15917 else case e in #(
15918 e) gt_cv_func_CFLocaleCopyCurrent=no ;;
15919 esac
15920 fi
15921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15922 conftest$ac_exeext conftest.$ac_ext
15923 LIBS="$gt_save_LIBS" ;;
15924 esac
15925 fi
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15927 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15928 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15929
15930 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15931
15932 fi
15933 INTL_MACOSX_LIBS=
15934 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15935 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15936 fi
15937
15938
15939
15940
15941
15942
15943 LIBINTL=
15944 LTLIBINTL=
15945 POSUB=
15946
15947 case " $gt_needs " in
15948 *" need-formatstring-macros "*) gt_api_version=3 ;;
15949 *" need-ngettext "*) gt_api_version=2 ;;
15950 *) gt_api_version=1 ;;
15951 esac
15952 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15953 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15954
15955 if test "$USE_NLS" = "yes"; then
15956 gt_use_preinstalled_gnugettext=no
15957
15958
15959 if test $gt_api_version -ge 3; then
15960 gt_revision_test_code='
15961 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15962 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15963 #endif
15964 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15965 '
15966 else
15967 gt_revision_test_code=
15968 fi
15969 if test $gt_api_version -ge 2; then
15970 gt_expression_test_code=' + * ngettext ("", "", 0)'
15971 else
15972 gt_expression_test_code=
15973 fi
15974
15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15976 printf %s "checking for GNU gettext in libc... " >&6; }
15977 if eval test \${$gt_func_gnugettext_libc+y}
15978 then :
15979 printf %s "(cached) " >&6
15980 else case e in #(
15981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15983
15984 #include <libintl.h>
15985 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15986 extern int _nl_msg_cat_cntr;
15987 extern int *_nl_domain_bindings;
15988 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
15989 #else
15990 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15991 #endif
15992 $gt_revision_test_code
15993
15994 int
15995 main (void)
15996 {
15997
15998 bindtextdomain ("", "");
15999 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16000
16001 ;
16002 return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_c_try_link "$LINENO"
16006 then :
16007 eval "$gt_func_gnugettext_libc=yes"
16008 else case e in #(
16009 e) eval "$gt_func_gnugettext_libc=no" ;;
16010 esac
16011 fi
16012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16013 conftest$ac_exeext conftest.$ac_ext ;;
16014 esac
16015 fi
16016 eval ac_res=\$$gt_func_gnugettext_libc
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16018 printf "%s\n" "$ac_res" >&6; }
16019
16020 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
16021
16022
16023
16024
16025
16026 am_save_CPPFLAGS="$CPPFLAGS"
16027
16028 for element in $INCICONV; do
16029 haveit=
16030 for x in $CPPFLAGS; do
16031
16032 acl_save_prefix="$prefix"
16033 prefix="$acl_final_prefix"
16034 acl_save_exec_prefix="$exec_prefix"
16035 exec_prefix="$acl_final_exec_prefix"
16036 eval x=\"$x\"
16037 exec_prefix="$acl_save_exec_prefix"
16038 prefix="$acl_save_prefix"
16039
16040 if test "X$x" = "X$element"; then
16041 haveit=yes
16042 break
16043 fi
16044 done
16045 if test -z "$haveit"; then
16046 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16047 fi
16048 done
16049
16050
16051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16052 printf %s "checking for iconv... " >&6; }
16053 if test ${am_cv_func_iconv+y}
16054 then :
16055 printf %s "(cached) " >&6
16056 else case e in #(
16057 e)
16058 am_cv_func_iconv="no, consider installing GNU libiconv"
16059 am_cv_lib_iconv=no
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062
16063 #include <stdlib.h>
16064 #include <iconv.h>
16065
16066 int
16067 main (void)
16068 {
16069 iconv_t cd = iconv_open("","");
16070 iconv(cd,NULL,NULL,NULL,NULL);
16071 iconv_close(cd);
16072 ;
16073 return 0;
16074 }
16075 _ACEOF
16076 if ac_fn_c_try_link "$LINENO"
16077 then :
16078 am_cv_func_iconv=yes
16079 fi
16080 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16081 conftest$ac_exeext conftest.$ac_ext
16082 if test "$am_cv_func_iconv" != yes; then
16083 am_save_LIBS="$LIBS"
16084 LIBS="$LIBS $LIBICONV"
16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086 /* end confdefs.h. */
16087
16088 #include <stdlib.h>
16089 #include <iconv.h>
16090
16091 int
16092 main (void)
16093 {
16094 iconv_t cd = iconv_open("","");
16095 iconv(cd,NULL,NULL,NULL,NULL);
16096 iconv_close(cd);
16097 ;
16098 return 0;
16099 }
16100 _ACEOF
16101 if ac_fn_c_try_link "$LINENO"
16102 then :
16103 am_cv_lib_iconv=yes
16104 am_cv_func_iconv=yes
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16107 conftest$ac_exeext conftest.$ac_ext
16108 LIBS="$am_save_LIBS"
16109 fi
16110 ;;
16111 esac
16112 fi
16113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16114 printf "%s\n" "$am_cv_func_iconv" >&6; }
16115 if test "$am_cv_func_iconv" = yes; then
16116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16117 printf %s "checking for working iconv... " >&6; }
16118 if test ${am_cv_func_iconv_works+y}
16119 then :
16120 printf %s "(cached) " >&6
16121 else case e in #(
16122 e)
16123 am_save_LIBS="$LIBS"
16124 if test $am_cv_lib_iconv = yes; then
16125 LIBS="$LIBS $LIBICONV"
16126 fi
16127 am_cv_func_iconv_works=no
16128 for ac_iconv_const in '' 'const'; do
16129 if test "$cross_compiling" = yes
16130 then :
16131 case "$host_os" in
16132 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16133 *) am_cv_func_iconv_works="guessing yes" ;;
16134 esac
16135 else case e in #(
16136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16138
16139 #include <iconv.h>
16140 #include <string.h>
16141
16142 #ifndef ICONV_CONST
16143 # define ICONV_CONST $ac_iconv_const
16144 #endif
16145
16146 int
16147 main (void)
16148 {
16149 int result = 0;
16150 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16151 returns. */
16152 {
16153 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16154 if (cd_utf8_to_88591 != (iconv_t)(-1))
16155 {
16156 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
16157 char buf[10];
16158 ICONV_CONST char *inptr = input;
16159 size_t inbytesleft = strlen (input);
16160 char *outptr = buf;
16161 size_t outbytesleft = sizeof (buf);
16162 size_t res = iconv (cd_utf8_to_88591,
16163 &inptr, &inbytesleft,
16164 &outptr, &outbytesleft);
16165 if (res == 0)
16166 result |= 1;
16167 iconv_close (cd_utf8_to_88591);
16168 }
16169 }
16170 /* Test against Solaris 10 bug: Failures are not distinguishable from
16171 successful returns. */
16172 {
16173 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16174 if (cd_ascii_to_88591 != (iconv_t)(-1))
16175 {
16176 static ICONV_CONST char input[] = "\263";
16177 char buf[10];
16178 ICONV_CONST char *inptr = input;
16179 size_t inbytesleft = strlen (input);
16180 char *outptr = buf;
16181 size_t outbytesleft = sizeof (buf);
16182 size_t res = iconv (cd_ascii_to_88591,
16183 &inptr, &inbytesleft,
16184 &outptr, &outbytesleft);
16185 if (res == 0)
16186 result |= 2;
16187 iconv_close (cd_ascii_to_88591);
16188 }
16189 }
16190 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
16191 {
16192 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16193 if (cd_88591_to_utf8 != (iconv_t)(-1))
16194 {
16195 static ICONV_CONST char input[] = "\304";
16196 static char buf[2] = { (char)0xDE, (char)0xAD };
16197 ICONV_CONST char *inptr = input;
16198 size_t inbytesleft = 1;
16199 char *outptr = buf;
16200 size_t outbytesleft = 1;
16201 size_t res = iconv (cd_88591_to_utf8,
16202 &inptr, &inbytesleft,
16203 &outptr, &outbytesleft);
16204 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16205 result |= 4;
16206 iconv_close (cd_88591_to_utf8);
16207 }
16208 }
16209 #if 0 /* This bug could be worked around by the caller. */
16210 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16211 {
16212 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16213 if (cd_88591_to_utf8 != (iconv_t)(-1))
16214 {
16215 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16216 char buf[50];
16217 ICONV_CONST char *inptr = input;
16218 size_t inbytesleft = strlen (input);
16219 char *outptr = buf;
16220 size_t outbytesleft = sizeof (buf);
16221 size_t res = iconv (cd_88591_to_utf8,
16222 &inptr, &inbytesleft,
16223 &outptr, &outbytesleft);
16224 if ((int)res > 0)
16225 result |= 8;
16226 iconv_close (cd_88591_to_utf8);
16227 }
16228 }
16229 #endif
16230 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16231 provided. */
16232 if (/* Try standardized names. */
16233 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16234 /* Try IRIX, OSF/1 names. */
16235 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16236 /* Try AIX names. */
16237 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16238 /* Try HP-UX names. */
16239 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16240 result |= 16;
16241 return result;
16242
16243 ;
16244 return 0;
16245 }
16246 _ACEOF
16247 if ac_fn_c_try_run "$LINENO"
16248 then :
16249 am_cv_func_iconv_works=yes
16250 fi
16251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16252 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16253 esac
16254 fi
16255
16256 test "$am_cv_func_iconv_works" = no || break
16257 done
16258 LIBS="$am_save_LIBS"
16259 ;;
16260 esac
16261 fi
16262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16263 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
16264 case "$am_cv_func_iconv_works" in
16265 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16266 *) am_func_iconv=yes ;;
16267 esac
16268 else
16269 am_func_iconv=no am_cv_lib_iconv=no
16270 fi
16271 if test "$am_func_iconv" = yes; then
16272
16273 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
16274
16275 fi
16276 if test "$am_cv_lib_iconv" = yes; then
16277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16278 printf %s "checking how to link with libiconv... " >&6; }
16279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16280 printf "%s\n" "$LIBICONV" >&6; }
16281 else
16282 CPPFLAGS="$am_save_CPPFLAGS"
16283 LIBICONV=
16284 LTLIBICONV=
16285 fi
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297 use_additional=yes
16298
16299 acl_save_prefix="$prefix"
16300 prefix="$acl_final_prefix"
16301 acl_save_exec_prefix="$exec_prefix"
16302 exec_prefix="$acl_final_exec_prefix"
16303
16304 eval additional_includedir=\"$includedir\"
16305 eval additional_libdir=\"$libdir\"
16306
16307 exec_prefix="$acl_save_exec_prefix"
16308 prefix="$acl_save_prefix"
16309
16310
16311 # Check whether --with-libintl-prefix was given.
16312 if test ${with_libintl_prefix+y}
16313 then :
16314 withval=$with_libintl_prefix;
16315 if test "X$withval" = "Xno"; then
16316 use_additional=no
16317 else
16318 if test "X$withval" = "X"; then
16319
16320 acl_save_prefix="$prefix"
16321 prefix="$acl_final_prefix"
16322 acl_save_exec_prefix="$exec_prefix"
16323 exec_prefix="$acl_final_exec_prefix"
16324
16325 eval additional_includedir=\"$includedir\"
16326 eval additional_libdir=\"$libdir\"
16327
16328 exec_prefix="$acl_save_exec_prefix"
16329 prefix="$acl_save_prefix"
16330
16331 else
16332 additional_includedir="$withval/include"
16333 additional_libdir="$withval/$acl_libdirstem"
16334 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16335 && ! test -d "$withval/$acl_libdirstem"; then
16336 additional_libdir="$withval/$acl_libdirstem2"
16337 fi
16338 fi
16339 fi
16340
16341 fi
16342
16343 LIBINTL=
16344 LTLIBINTL=
16345 INCINTL=
16346 LIBINTL_PREFIX=
16347 HAVE_LIBINTL=
16348 rpathdirs=
16349 ltrpathdirs=
16350 names_already_handled=
16351 names_next_round='intl '
16352 while test -n "$names_next_round"; do
16353 names_this_round="$names_next_round"
16354 names_next_round=
16355 for name in $names_this_round; do
16356 already_handled=
16357 for n in $names_already_handled; do
16358 if test "$n" = "$name"; then
16359 already_handled=yes
16360 break
16361 fi
16362 done
16363 if test -z "$already_handled"; then
16364 names_already_handled="$names_already_handled $name"
16365 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16366 eval value=\"\$HAVE_LIB$uppername\"
16367 if test -n "$value"; then
16368 if test "$value" = yes; then
16369 eval value=\"\$LIB$uppername\"
16370 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16371 eval value=\"\$LTLIB$uppername\"
16372 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16373 else
16374 :
16375 fi
16376 else
16377 found_dir=
16378 found_la=
16379 found_so=
16380 found_a=
16381 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16382 if test -n "$acl_shlibext"; then
16383 shrext=".$acl_shlibext" # typically: shrext=.so
16384 else
16385 shrext=
16386 fi
16387 if test $use_additional = yes; then
16388 dir="$additional_libdir"
16389 if test -n "$acl_shlibext"; then
16390 if test -f "$dir/$libname$shrext"; then
16391 found_dir="$dir"
16392 found_so="$dir/$libname$shrext"
16393 else
16394 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16395 ver=`(cd "$dir" && \
16396 for f in "$libname$shrext".*; do echo "$f"; done \
16397 | sed -e "s,^$libname$shrext\\\\.,," \
16398 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16399 | sed 1q ) 2>/dev/null`
16400 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16401 found_dir="$dir"
16402 found_so="$dir/$libname$shrext.$ver"
16403 fi
16404 else
16405 eval library_names=\"$acl_library_names_spec\"
16406 for f in $library_names; do
16407 if test -f "$dir/$f"; then
16408 found_dir="$dir"
16409 found_so="$dir/$f"
16410 break
16411 fi
16412 done
16413 fi
16414 fi
16415 fi
16416 if test "X$found_dir" = "X"; then
16417 if test -f "$dir/$libname.$acl_libext"; then
16418 found_dir="$dir"
16419 found_a="$dir/$libname.$acl_libext"
16420 fi
16421 fi
16422 if test "X$found_dir" != "X"; then
16423 if test -f "$dir/$libname.la"; then
16424 found_la="$dir/$libname.la"
16425 fi
16426 fi
16427 fi
16428 if test "X$found_dir" = "X"; then
16429 for x in $LDFLAGS $LTLIBINTL; do
16430
16431 acl_save_prefix="$prefix"
16432 prefix="$acl_final_prefix"
16433 acl_save_exec_prefix="$exec_prefix"
16434 exec_prefix="$acl_final_exec_prefix"
16435 eval x=\"$x\"
16436 exec_prefix="$acl_save_exec_prefix"
16437 prefix="$acl_save_prefix"
16438
16439 case "$x" in
16440 -L*)
16441 dir=`echo "X$x" | sed -e 's/^X-L//'`
16442 if test -n "$acl_shlibext"; then
16443 if test -f "$dir/$libname$shrext"; then
16444 found_dir="$dir"
16445 found_so="$dir/$libname$shrext"
16446 else
16447 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16448 ver=`(cd "$dir" && \
16449 for f in "$libname$shrext".*; do echo "$f"; done \
16450 | sed -e "s,^$libname$shrext\\\\.,," \
16451 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16452 | sed 1q ) 2>/dev/null`
16453 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16454 found_dir="$dir"
16455 found_so="$dir/$libname$shrext.$ver"
16456 fi
16457 else
16458 eval library_names=\"$acl_library_names_spec\"
16459 for f in $library_names; do
16460 if test -f "$dir/$f"; then
16461 found_dir="$dir"
16462 found_so="$dir/$f"
16463 break
16464 fi
16465 done
16466 fi
16467 fi
16468 fi
16469 if test "X$found_dir" = "X"; then
16470 if test -f "$dir/$libname.$acl_libext"; then
16471 found_dir="$dir"
16472 found_a="$dir/$libname.$acl_libext"
16473 fi
16474 fi
16475 if test "X$found_dir" != "X"; then
16476 if test -f "$dir/$libname.la"; then
16477 found_la="$dir/$libname.la"
16478 fi
16479 fi
16480 ;;
16481 esac
16482 if test "X$found_dir" != "X"; then
16483 break
16484 fi
16485 done
16486 fi
16487 if test "X$found_dir" != "X"; then
16488 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16489 if test "X$found_so" != "X"; then
16490 if test "$enable_rpath" = no \
16491 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16492 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16493 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16494 else
16495 haveit=
16496 for x in $ltrpathdirs; do
16497 if test "X$x" = "X$found_dir"; then
16498 haveit=yes
16499 break
16500 fi
16501 done
16502 if test -z "$haveit"; then
16503 ltrpathdirs="$ltrpathdirs $found_dir"
16504 fi
16505 if test "$acl_hardcode_direct" = yes; then
16506 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16507 else
16508 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16509 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16510 haveit=
16511 for x in $rpathdirs; do
16512 if test "X$x" = "X$found_dir"; then
16513 haveit=yes
16514 break
16515 fi
16516 done
16517 if test -z "$haveit"; then
16518 rpathdirs="$rpathdirs $found_dir"
16519 fi
16520 else
16521 haveit=
16522 for x in $LDFLAGS $LIBINTL; do
16523
16524 acl_save_prefix="$prefix"
16525 prefix="$acl_final_prefix"
16526 acl_save_exec_prefix="$exec_prefix"
16527 exec_prefix="$acl_final_exec_prefix"
16528 eval x=\"$x\"
16529 exec_prefix="$acl_save_exec_prefix"
16530 prefix="$acl_save_prefix"
16531
16532 if test "X$x" = "X-L$found_dir"; then
16533 haveit=yes
16534 break
16535 fi
16536 done
16537 if test -z "$haveit"; then
16538 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16539 fi
16540 if test "$acl_hardcode_minus_L" != no; then
16541 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16542 else
16543 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16544 fi
16545 fi
16546 fi
16547 fi
16548 else
16549 if test "X$found_a" != "X"; then
16550 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16551 else
16552 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16553 fi
16554 fi
16555 additional_includedir=
16556 case "$found_dir" in
16557 */$acl_libdirstem | */$acl_libdirstem/)
16558 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16559 if test "$name" = 'intl'; then
16560 LIBINTL_PREFIX="$basedir"
16561 fi
16562 additional_includedir="$basedir/include"
16563 ;;
16564 */$acl_libdirstem2 | */$acl_libdirstem2/)
16565 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16566 if test "$name" = 'intl'; then
16567 LIBINTL_PREFIX="$basedir"
16568 fi
16569 additional_includedir="$basedir/include"
16570 ;;
16571 esac
16572 if test "X$additional_includedir" != "X"; then
16573 if test "X$additional_includedir" != "X/usr/include"; then
16574 haveit=
16575 if test "X$additional_includedir" = "X/usr/local/include"; then
16576 if test -n "$GCC"; then
16577 case $host_os in
16578 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16579 esac
16580 fi
16581 fi
16582 if test -z "$haveit"; then
16583 for x in $CPPFLAGS $INCINTL; do
16584
16585 acl_save_prefix="$prefix"
16586 prefix="$acl_final_prefix"
16587 acl_save_exec_prefix="$exec_prefix"
16588 exec_prefix="$acl_final_exec_prefix"
16589 eval x=\"$x\"
16590 exec_prefix="$acl_save_exec_prefix"
16591 prefix="$acl_save_prefix"
16592
16593 if test "X$x" = "X-I$additional_includedir"; then
16594 haveit=yes
16595 break
16596 fi
16597 done
16598 if test -z "$haveit"; then
16599 if test -d "$additional_includedir"; then
16600 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16601 fi
16602 fi
16603 fi
16604 fi
16605 fi
16606 if test -n "$found_la"; then
16607 save_libdir="$libdir"
16608 case "$found_la" in
16609 */* | *\\*) . "$found_la" ;;
16610 *) . "./$found_la" ;;
16611 esac
16612 libdir="$save_libdir"
16613 for dep in $dependency_libs; do
16614 case "$dep" in
16615 -L*)
16616 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16617 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16618 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16619 haveit=
16620 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16621 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16622 if test -n "$GCC"; then
16623 case $host_os in
16624 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16625 esac
16626 fi
16627 fi
16628 if test -z "$haveit"; then
16629 haveit=
16630 for x in $LDFLAGS $LIBINTL; do
16631
16632 acl_save_prefix="$prefix"
16633 prefix="$acl_final_prefix"
16634 acl_save_exec_prefix="$exec_prefix"
16635 exec_prefix="$acl_final_exec_prefix"
16636 eval x=\"$x\"
16637 exec_prefix="$acl_save_exec_prefix"
16638 prefix="$acl_save_prefix"
16639
16640 if test "X$x" = "X-L$additional_libdir"; then
16641 haveit=yes
16642 break
16643 fi
16644 done
16645 if test -z "$haveit"; then
16646 if test -d "$additional_libdir"; then
16647 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16648 fi
16649 fi
16650 haveit=
16651 for x in $LDFLAGS $LTLIBINTL; do
16652
16653 acl_save_prefix="$prefix"
16654 prefix="$acl_final_prefix"
16655 acl_save_exec_prefix="$exec_prefix"
16656 exec_prefix="$acl_final_exec_prefix"
16657 eval x=\"$x\"
16658 exec_prefix="$acl_save_exec_prefix"
16659 prefix="$acl_save_prefix"
16660
16661 if test "X$x" = "X-L$additional_libdir"; then
16662 haveit=yes
16663 break
16664 fi
16665 done
16666 if test -z "$haveit"; then
16667 if test -d "$additional_libdir"; then
16668 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16669 fi
16670 fi
16671 fi
16672 fi
16673 ;;
16674 -R*)
16675 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16676 if test "$enable_rpath" != no; then
16677 haveit=
16678 for x in $rpathdirs; do
16679 if test "X$x" = "X$dir"; then
16680 haveit=yes
16681 break
16682 fi
16683 done
16684 if test -z "$haveit"; then
16685 rpathdirs="$rpathdirs $dir"
16686 fi
16687 haveit=
16688 for x in $ltrpathdirs; do
16689 if test "X$x" = "X$dir"; then
16690 haveit=yes
16691 break
16692 fi
16693 done
16694 if test -z "$haveit"; then
16695 ltrpathdirs="$ltrpathdirs $dir"
16696 fi
16697 fi
16698 ;;
16699 -l*)
16700 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16701 ;;
16702 *.la)
16703 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16704 ;;
16705 *)
16706 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16707 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16708 ;;
16709 esac
16710 done
16711 fi
16712 else
16713 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16714 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16715 fi
16716 fi
16717 fi
16718 done
16719 done
16720 if test "X$rpathdirs" != "X"; then
16721 if test -n "$acl_hardcode_libdir_separator"; then
16722 alldirs=
16723 for found_dir in $rpathdirs; do
16724 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16725 done
16726 acl_save_libdir="$libdir"
16727 libdir="$alldirs"
16728 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16729 libdir="$acl_save_libdir"
16730 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16731 else
16732 for found_dir in $rpathdirs; do
16733 acl_save_libdir="$libdir"
16734 libdir="$found_dir"
16735 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16736 libdir="$acl_save_libdir"
16737 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16738 done
16739 fi
16740 fi
16741 if test "X$ltrpathdirs" != "X"; then
16742 for found_dir in $ltrpathdirs; do
16743 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16744 done
16745 fi
16746
16747
16748
16749
16750
16751
16752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16753 printf %s "checking for GNU gettext in libintl... " >&6; }
16754 if eval test \${$gt_func_gnugettext_libintl+y}
16755 then :
16756 printf %s "(cached) " >&6
16757 else case e in #(
16758 e) gt_save_CPPFLAGS="$CPPFLAGS"
16759 CPPFLAGS="$CPPFLAGS $INCINTL"
16760 gt_save_LIBS="$LIBS"
16761 LIBS="$LIBS $LIBINTL"
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764
16765 #include <libintl.h>
16766 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16767 extern int _nl_msg_cat_cntr;
16768 extern
16769 #ifdef __cplusplus
16770 "C"
16771 #endif
16772 const char *_nl_expand_alias (const char *);
16773 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16774 #else
16775 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16776 #endif
16777 $gt_revision_test_code
16778
16779 int
16780 main (void)
16781 {
16782
16783 bindtextdomain ("", "");
16784 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16785
16786 ;
16787 return 0;
16788 }
16789 _ACEOF
16790 if ac_fn_c_try_link "$LINENO"
16791 then :
16792 eval "$gt_func_gnugettext_libintl=yes"
16793 else case e in #(
16794 e) eval "$gt_func_gnugettext_libintl=no" ;;
16795 esac
16796 fi
16797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16798 conftest$ac_exeext conftest.$ac_ext
16799 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16800 LIBS="$LIBS $LIBICONV"
16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h. */
16803
16804 #include <libintl.h>
16805 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16806 extern int _nl_msg_cat_cntr;
16807 extern
16808 #ifdef __cplusplus
16809 "C"
16810 #endif
16811 const char *_nl_expand_alias (const char *);
16812 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16813 #else
16814 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16815 #endif
16816 $gt_revision_test_code
16817
16818 int
16819 main (void)
16820 {
16821
16822 bindtextdomain ("", "");
16823 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16824
16825 ;
16826 return 0;
16827 }
16828 _ACEOF
16829 if ac_fn_c_try_link "$LINENO"
16830 then :
16831 LIBINTL="$LIBINTL $LIBICONV"
16832 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16833 eval "$gt_func_gnugettext_libintl=yes"
16834
16835 fi
16836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16837 conftest$ac_exeext conftest.$ac_ext
16838 fi
16839 CPPFLAGS="$gt_save_CPPFLAGS"
16840 LIBS="$gt_save_LIBS" ;;
16841 esac
16842 fi
16843 eval ac_res=\$$gt_func_gnugettext_libintl
16844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16845 printf "%s\n" "$ac_res" >&6; }
16846 fi
16847
16848 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16849 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16850 && test "$PACKAGE" != gettext-runtime \
16851 && test "$PACKAGE" != gettext-tools; }; then
16852 gt_use_preinstalled_gnugettext=yes
16853 else
16854 LIBINTL=
16855 LTLIBINTL=
16856 INCINTL=
16857 fi
16858
16859
16860
16861 if test -n "$INTL_MACOSX_LIBS"; then
16862 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16863 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16864 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16865 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16866 fi
16867 fi
16868
16869 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16870 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16871
16872 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
16873
16874 else
16875 USE_NLS=no
16876 fi
16877 fi
16878
16879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16880 printf %s "checking whether to use NLS... " >&6; }
16881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16882 printf "%s\n" "$USE_NLS" >&6; }
16883 if test "$USE_NLS" = "yes"; then
16884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16885 printf %s "checking where the gettext function comes from... " >&6; }
16886 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16887 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16888 gt_source="external libintl"
16889 else
16890 gt_source="libc"
16891 fi
16892 else
16893 gt_source="included intl directory"
16894 fi
16895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16896 printf "%s\n" "$gt_source" >&6; }
16897 fi
16898
16899 if test "$USE_NLS" = "yes"; then
16900
16901 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16902 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16904 printf %s "checking how to link with libintl... " >&6; }
16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16906 printf "%s\n" "$LIBINTL" >&6; }
16907
16908 for element in $INCINTL; do
16909 haveit=
16910 for x in $CPPFLAGS; do
16911
16912 acl_save_prefix="$prefix"
16913 prefix="$acl_final_prefix"
16914 acl_save_exec_prefix="$exec_prefix"
16915 exec_prefix="$acl_final_exec_prefix"
16916 eval x=\"$x\"
16917 exec_prefix="$acl_save_exec_prefix"
16918 prefix="$acl_save_prefix"
16919
16920 if test "X$x" = "X$element"; then
16921 haveit=yes
16922 break
16923 fi
16924 done
16925 if test -z "$haveit"; then
16926 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16927 fi
16928 done
16929
16930 fi
16931
16932
16933 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
16934
16935
16936 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16937
16938 fi
16939
16940 POSUB=po
16941 fi
16942
16943
16944
16945 INTLLIBS="$LIBINTL"
16946
16947
16948
16949
16950
16951
16952 if test "$ac_cv_path_MSGFMT" = ":"
16953 then
16954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16955 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16956 as_fn_error $? "msgfmt missing from the gettext package
16957 See 'config.log' for more details" "$LINENO" 5; }
16958 fi
16959
16960 # Split version number
16961 MAJOR_VERSION=0
16962 MINOR_VERSION=12
16963 MICRO_VERSION=1
16964
16965
16966
16967
16968 # Config test suite
16969 ac_config_commands="$ac_config_commands src/tests/atconfig"
16970
16971
16972 # Checks for programs.
16973 ac_ext=c
16974 ac_cpp='$CPP $CPPFLAGS'
16975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16978 if test -n "$ac_tool_prefix"; then
16979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16982 printf %s "checking for $ac_word... " >&6; }
16983 if test ${ac_cv_prog_CC+y}
16984 then :
16985 printf %s "(cached) " >&6
16986 else case e in #(
16987 e) if test -n "$CC"; then
16988 ac_cv_prog_CC="$CC" # Let the user override the test.
16989 else
16990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16991 for as_dir in $PATH
16992 do
16993 IFS=$as_save_IFS
16994 case $as_dir in #(((
16995 '') as_dir=./ ;;
16996 */) ;;
16997 *) as_dir=$as_dir/ ;;
16998 esac
16999 for ac_exec_ext in '' $ac_executable_extensions; do
17000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17001 ac_cv_prog_CC="${ac_tool_prefix}gcc"
17002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17003 break 2
17004 fi
17005 done
17006 done
17007 IFS=$as_save_IFS
17008
17009 fi ;;
17010 esac
17011 fi
17012 CC=$ac_cv_prog_CC
17013 if test -n "$CC"; then
17014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17015 printf "%s\n" "$CC" >&6; }
17016 else
17017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17018 printf "%s\n" "no" >&6; }
17019 fi
17020
17021
17022 fi
17023 if test -z "$ac_cv_prog_CC"; then
17024 ac_ct_CC=$CC
17025 # Extract the first word of "gcc", so it can be a program name with args.
17026 set dummy gcc; ac_word=$2
17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17028 printf %s "checking for $ac_word... " >&6; }
17029 if test ${ac_cv_prog_ac_ct_CC+y}
17030 then :
17031 printf %s "(cached) " >&6
17032 else case e in #(
17033 e) if test -n "$ac_ct_CC"; then
17034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17035 else
17036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17037 for as_dir in $PATH
17038 do
17039 IFS=$as_save_IFS
17040 case $as_dir in #(((
17041 '') as_dir=./ ;;
17042 */) ;;
17043 *) as_dir=$as_dir/ ;;
17044 esac
17045 for ac_exec_ext in '' $ac_executable_extensions; do
17046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17047 ac_cv_prog_ac_ct_CC="gcc"
17048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17049 break 2
17050 fi
17051 done
17052 done
17053 IFS=$as_save_IFS
17054
17055 fi ;;
17056 esac
17057 fi
17058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17059 if test -n "$ac_ct_CC"; then
17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17061 printf "%s\n" "$ac_ct_CC" >&6; }
17062 else
17063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17064 printf "%s\n" "no" >&6; }
17065 fi
17066
17067 if test "x$ac_ct_CC" = x; then
17068 CC=""
17069 else
17070 case $cross_compiling:$ac_tool_warned in
17071 yes:)
17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17073 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17074 ac_tool_warned=yes ;;
17075 esac
17076 CC=$ac_ct_CC
17077 fi
17078 else
17079 CC="$ac_cv_prog_CC"
17080 fi
17081
17082 if test -z "$CC"; then
17083 if test -n "$ac_tool_prefix"; then
17084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
17085 set dummy ${ac_tool_prefix}cc; ac_word=$2
17086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17087 printf %s "checking for $ac_word... " >&6; }
17088 if test ${ac_cv_prog_CC+y}
17089 then :
17090 printf %s "(cached) " >&6
17091 else case e in #(
17092 e) if test -n "$CC"; then
17093 ac_cv_prog_CC="$CC" # Let the user override the test.
17094 else
17095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17096 for as_dir in $PATH
17097 do
17098 IFS=$as_save_IFS
17099 case $as_dir in #(((
17100 '') as_dir=./ ;;
17101 */) ;;
17102 *) as_dir=$as_dir/ ;;
17103 esac
17104 for ac_exec_ext in '' $ac_executable_extensions; do
17105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17106 ac_cv_prog_CC="${ac_tool_prefix}cc"
17107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17108 break 2
17109 fi
17110 done
17111 done
17112 IFS=$as_save_IFS
17113
17114 fi ;;
17115 esac
17116 fi
17117 CC=$ac_cv_prog_CC
17118 if test -n "$CC"; then
17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17120 printf "%s\n" "$CC" >&6; }
17121 else
17122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17123 printf "%s\n" "no" >&6; }
17124 fi
17125
17126
17127 fi
17128 fi
17129 if test -z "$CC"; then
17130 # Extract the first word of "cc", so it can be a program name with args.
17131 set dummy cc; ac_word=$2
17132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17133 printf %s "checking for $ac_word... " >&6; }
17134 if test ${ac_cv_prog_CC+y}
17135 then :
17136 printf %s "(cached) " >&6
17137 else case e in #(
17138 e) if test -n "$CC"; then
17139 ac_cv_prog_CC="$CC" # Let the user override the test.
17140 else
17141 ac_prog_rejected=no
17142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17143 for as_dir in $PATH
17144 do
17145 IFS=$as_save_IFS
17146 case $as_dir in #(((
17147 '') as_dir=./ ;;
17148 */) ;;
17149 *) as_dir=$as_dir/ ;;
17150 esac
17151 for ac_exec_ext in '' $ac_executable_extensions; do
17152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17153 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
17154 ac_prog_rejected=yes
17155 continue
17156 fi
17157 ac_cv_prog_CC="cc"
17158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17159 break 2
17160 fi
17161 done
17162 done
17163 IFS=$as_save_IFS
17164
17165 if test $ac_prog_rejected = yes; then
17166 # We found a bogon in the path, so make sure we never use it.
17167 set dummy $ac_cv_prog_CC
17168 shift
17169 if test $# != 0; then
17170 # We chose a different compiler from the bogus one.
17171 # However, it has the same basename, so the bogon will be chosen
17172 # first if we set CC to just the basename; use the full file name.
17173 shift
17174 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
17175 fi
17176 fi
17177 fi ;;
17178 esac
17179 fi
17180 CC=$ac_cv_prog_CC
17181 if test -n "$CC"; then
17182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17183 printf "%s\n" "$CC" >&6; }
17184 else
17185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186 printf "%s\n" "no" >&6; }
17187 fi
17188
17189
17190 fi
17191 if test -z "$CC"; then
17192 if test -n "$ac_tool_prefix"; then
17193 for ac_prog in cl.exe
17194 do
17195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17198 printf %s "checking for $ac_word... " >&6; }
17199 if test ${ac_cv_prog_CC+y}
17200 then :
17201 printf %s "(cached) " >&6
17202 else case e in #(
17203 e) if test -n "$CC"; then
17204 ac_cv_prog_CC="$CC" # Let the user override the test.
17205 else
17206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17207 for as_dir in $PATH
17208 do
17209 IFS=$as_save_IFS
17210 case $as_dir in #(((
17211 '') as_dir=./ ;;
17212 */) ;;
17213 *) as_dir=$as_dir/ ;;
17214 esac
17215 for ac_exec_ext in '' $ac_executable_extensions; do
17216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
17218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17219 break 2
17220 fi
17221 done
17222 done
17223 IFS=$as_save_IFS
17224
17225 fi ;;
17226 esac
17227 fi
17228 CC=$ac_cv_prog_CC
17229 if test -n "$CC"; then
17230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17231 printf "%s\n" "$CC" >&6; }
17232 else
17233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17234 printf "%s\n" "no" >&6; }
17235 fi
17236
17237
17238 test -n "$CC" && break
17239 done
17240 fi
17241 if test -z "$CC"; then
17242 ac_ct_CC=$CC
17243 for ac_prog in cl.exe
17244 do
17245 # Extract the first word of "$ac_prog", so it can be a program name with args.
17246 set dummy $ac_prog; ac_word=$2
17247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17248 printf %s "checking for $ac_word... " >&6; }
17249 if test ${ac_cv_prog_ac_ct_CC+y}
17250 then :
17251 printf %s "(cached) " >&6
17252 else case e in #(
17253 e) if test -n "$ac_ct_CC"; then
17254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17255 else
17256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17257 for as_dir in $PATH
17258 do
17259 IFS=$as_save_IFS
17260 case $as_dir in #(((
17261 '') as_dir=./ ;;
17262 */) ;;
17263 *) as_dir=$as_dir/ ;;
17264 esac
17265 for ac_exec_ext in '' $ac_executable_extensions; do
17266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17267 ac_cv_prog_ac_ct_CC="$ac_prog"
17268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17269 break 2
17270 fi
17271 done
17272 done
17273 IFS=$as_save_IFS
17274
17275 fi ;;
17276 esac
17277 fi
17278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17279 if test -n "$ac_ct_CC"; then
17280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17281 printf "%s\n" "$ac_ct_CC" >&6; }
17282 else
17283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284 printf "%s\n" "no" >&6; }
17285 fi
17286
17287
17288 test -n "$ac_ct_CC" && break
17289 done
17290
17291 if test "x$ac_ct_CC" = x; then
17292 CC=""
17293 else
17294 case $cross_compiling:$ac_tool_warned in
17295 yes:)
17296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17297 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17298 ac_tool_warned=yes ;;
17299 esac
17300 CC=$ac_ct_CC
17301 fi
17302 fi
17303
17304 fi
17305 if test -z "$CC"; then
17306 if test -n "$ac_tool_prefix"; then
17307 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
17308 set dummy ${ac_tool_prefix}clang; ac_word=$2
17309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17310 printf %s "checking for $ac_word... " >&6; }
17311 if test ${ac_cv_prog_CC+y}
17312 then :
17313 printf %s "(cached) " >&6
17314 else case e in #(
17315 e) if test -n "$CC"; then
17316 ac_cv_prog_CC="$CC" # Let the user override the test.
17317 else
17318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17319 for as_dir in $PATH
17320 do
17321 IFS=$as_save_IFS
17322 case $as_dir in #(((
17323 '') as_dir=./ ;;
17324 */) ;;
17325 *) as_dir=$as_dir/ ;;
17326 esac
17327 for ac_exec_ext in '' $ac_executable_extensions; do
17328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17329 ac_cv_prog_CC="${ac_tool_prefix}clang"
17330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17331 break 2
17332 fi
17333 done
17334 done
17335 IFS=$as_save_IFS
17336
17337 fi ;;
17338 esac
17339 fi
17340 CC=$ac_cv_prog_CC
17341 if test -n "$CC"; then
17342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17343 printf "%s\n" "$CC" >&6; }
17344 else
17345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17346 printf "%s\n" "no" >&6; }
17347 fi
17348
17349
17350 fi
17351 if test -z "$ac_cv_prog_CC"; then
17352 ac_ct_CC=$CC
17353 # Extract the first word of "clang", so it can be a program name with args.
17354 set dummy clang; ac_word=$2
17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17356 printf %s "checking for $ac_word... " >&6; }
17357 if test ${ac_cv_prog_ac_ct_CC+y}
17358 then :
17359 printf %s "(cached) " >&6
17360 else case e in #(
17361 e) if test -n "$ac_ct_CC"; then
17362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17363 else
17364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17365 for as_dir in $PATH
17366 do
17367 IFS=$as_save_IFS
17368 case $as_dir in #(((
17369 '') as_dir=./ ;;
17370 */) ;;
17371 *) as_dir=$as_dir/ ;;
17372 esac
17373 for ac_exec_ext in '' $ac_executable_extensions; do
17374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17375 ac_cv_prog_ac_ct_CC="clang"
17376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17377 break 2
17378 fi
17379 done
17380 done
17381 IFS=$as_save_IFS
17382
17383 fi ;;
17384 esac
17385 fi
17386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17387 if test -n "$ac_ct_CC"; then
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17389 printf "%s\n" "$ac_ct_CC" >&6; }
17390 else
17391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17392 printf "%s\n" "no" >&6; }
17393 fi
17394
17395 if test "x$ac_ct_CC" = x; then
17396 CC=""
17397 else
17398 case $cross_compiling:$ac_tool_warned in
17399 yes:)
17400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17401 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17402 ac_tool_warned=yes ;;
17403 esac
17404 CC=$ac_ct_CC
17405 fi
17406 else
17407 CC="$ac_cv_prog_CC"
17408 fi
17409
17410 fi
17411
17412
17413 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17414 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17415 as_fn_error $? "no acceptable C compiler found in \$PATH
17416 See 'config.log' for more details" "$LINENO" 5; }
17417
17418 # Provide some information about the compiler.
17419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
17420 set X $ac_compile
17421 ac_compiler=$2
17422 for ac_option in --version -v -V -qversion -version; do
17423 { { ac_try="$ac_compiler $ac_option >&5"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17427 esac
17428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17429 printf "%s\n" "$ac_try_echo"; } >&5
17430 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17431 ac_status=$?
17432 if test -s conftest.err; then
17433 sed '10a\
17434 ... rest of stderr output deleted ...
17435 10q' conftest.err >conftest.er1
17436 cat conftest.er1 >&5
17437 fi
17438 rm -f conftest.er1 conftest.err
17439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17440 test $ac_status = 0; }
17441 done
17442
17443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
17444 printf %s "checking whether the compiler supports GNU C... " >&6; }
17445 if test ${ac_cv_c_compiler_gnu+y}
17446 then :
17447 printf %s "(cached) " >&6
17448 else case e in #(
17449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450 /* end confdefs.h. */
17451
17452 int
17453 main (void)
17454 {
17455 #ifndef __GNUC__
17456 choke me
17457 #endif
17458
17459 ;
17460 return 0;
17461 }
17462 _ACEOF
17463 if ac_fn_c_try_compile "$LINENO"
17464 then :
17465 ac_compiler_gnu=yes
17466 else case e in #(
17467 e) ac_compiler_gnu=no ;;
17468 esac
17469 fi
17470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17471 ac_cv_c_compiler_gnu=$ac_compiler_gnu
17472 ;;
17473 esac
17474 fi
17475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
17476 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
17477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17478
17479 if test $ac_compiler_gnu = yes; then
17480 GCC=yes
17481 else
17482 GCC=
17483 fi
17484 ac_test_CFLAGS=${CFLAGS+y}
17485 ac_save_CFLAGS=$CFLAGS
17486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
17487 printf %s "checking whether $CC accepts -g... " >&6; }
17488 if test ${ac_cv_prog_cc_g+y}
17489 then :
17490 printf %s "(cached) " >&6
17491 else case e in #(
17492 e) ac_save_c_werror_flag=$ac_c_werror_flag
17493 ac_c_werror_flag=yes
17494 ac_cv_prog_cc_g=no
17495 CFLAGS="-g"
17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h. */
17498
17499 int
17500 main (void)
17501 {
17502
17503 ;
17504 return 0;
17505 }
17506 _ACEOF
17507 if ac_fn_c_try_compile "$LINENO"
17508 then :
17509 ac_cv_prog_cc_g=yes
17510 else case e in #(
17511 e) CFLAGS=""
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h. */
17514
17515 int
17516 main (void)
17517 {
17518
17519 ;
17520 return 0;
17521 }
17522 _ACEOF
17523 if ac_fn_c_try_compile "$LINENO"
17524 then :
17525
17526 else case e in #(
17527 e) ac_c_werror_flag=$ac_save_c_werror_flag
17528 CFLAGS="-g"
17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530 /* end confdefs.h. */
17531
17532 int
17533 main (void)
17534 {
17535
17536 ;
17537 return 0;
17538 }
17539 _ACEOF
17540 if ac_fn_c_try_compile "$LINENO"
17541 then :
17542 ac_cv_prog_cc_g=yes
17543 fi
17544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17545 esac
17546 fi
17547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17548 esac
17549 fi
17550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17551 ac_c_werror_flag=$ac_save_c_werror_flag ;;
17552 esac
17553 fi
17554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
17555 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
17556 if test $ac_test_CFLAGS; then
17557 CFLAGS=$ac_save_CFLAGS
17558 elif test $ac_cv_prog_cc_g = yes; then
17559 if test "$GCC" = yes; then
17560 CFLAGS="-g -O2"
17561 else
17562 CFLAGS="-g"
17563 fi
17564 else
17565 if test "$GCC" = yes; then
17566 CFLAGS="-O2"
17567 else
17568 CFLAGS=
17569 fi
17570 fi
17571 ac_prog_cc_stdc=no
17572 if test x$ac_prog_cc_stdc = xno
17573 then :
17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
17575 printf %s "checking for $CC option to enable C11 features... " >&6; }
17576 if test ${ac_cv_prog_cc_c11+y}
17577 then :
17578 printf %s "(cached) " >&6
17579 else case e in #(
17580 e) ac_cv_prog_cc_c11=no
17581 ac_save_CC=$CC
17582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583 /* end confdefs.h. */
17584 $ac_c_conftest_c11_program
17585 _ACEOF
17586 for ac_arg in '' -std=gnu11
17587 do
17588 CC="$ac_save_CC $ac_arg"
17589 if ac_fn_c_try_compile "$LINENO"
17590 then :
17591 ac_cv_prog_cc_c11=$ac_arg
17592 fi
17593 rm -f core conftest.err conftest.$ac_objext conftest.beam
17594 test "x$ac_cv_prog_cc_c11" != "xno" && break
17595 done
17596 rm -f conftest.$ac_ext
17597 CC=$ac_save_CC ;;
17598 esac
17599 fi
17600
17601 if test "x$ac_cv_prog_cc_c11" = xno
17602 then :
17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17604 printf "%s\n" "unsupported" >&6; }
17605 else case e in #(
17606 e) if test "x$ac_cv_prog_cc_c11" = x
17607 then :
17608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17609 printf "%s\n" "none needed" >&6; }
17610 else case e in #(
17611 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
17612 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
17613 CC="$CC $ac_cv_prog_cc_c11" ;;
17614 esac
17615 fi
17616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
17617 ac_prog_cc_stdc=c11 ;;
17618 esac
17619 fi
17620 fi
17621 if test x$ac_prog_cc_stdc = xno
17622 then :
17623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
17624 printf %s "checking for $CC option to enable C99 features... " >&6; }
17625 if test ${ac_cv_prog_cc_c99+y}
17626 then :
17627 printf %s "(cached) " >&6
17628 else case e in #(
17629 e) ac_cv_prog_cc_c99=no
17630 ac_save_CC=$CC
17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17633 $ac_c_conftest_c99_program
17634 _ACEOF
17635 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
17636 do
17637 CC="$ac_save_CC $ac_arg"
17638 if ac_fn_c_try_compile "$LINENO"
17639 then :
17640 ac_cv_prog_cc_c99=$ac_arg
17641 fi
17642 rm -f core conftest.err conftest.$ac_objext conftest.beam
17643 test "x$ac_cv_prog_cc_c99" != "xno" && break
17644 done
17645 rm -f conftest.$ac_ext
17646 CC=$ac_save_CC ;;
17647 esac
17648 fi
17649
17650 if test "x$ac_cv_prog_cc_c99" = xno
17651 then :
17652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17653 printf "%s\n" "unsupported" >&6; }
17654 else case e in #(
17655 e) if test "x$ac_cv_prog_cc_c99" = x
17656 then :
17657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17658 printf "%s\n" "none needed" >&6; }
17659 else case e in #(
17660 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
17661 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
17662 CC="$CC $ac_cv_prog_cc_c99" ;;
17663 esac
17664 fi
17665 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
17666 ac_prog_cc_stdc=c99 ;;
17667 esac
17668 fi
17669 fi
17670 if test x$ac_prog_cc_stdc = xno
17671 then :
17672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
17673 printf %s "checking for $CC option to enable C89 features... " >&6; }
17674 if test ${ac_cv_prog_cc_c89+y}
17675 then :
17676 printf %s "(cached) " >&6
17677 else case e in #(
17678 e) ac_cv_prog_cc_c89=no
17679 ac_save_CC=$CC
17680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681 /* end confdefs.h. */
17682 $ac_c_conftest_c89_program
17683 _ACEOF
17684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17685 do
17686 CC="$ac_save_CC $ac_arg"
17687 if ac_fn_c_try_compile "$LINENO"
17688 then :
17689 ac_cv_prog_cc_c89=$ac_arg
17690 fi
17691 rm -f core conftest.err conftest.$ac_objext conftest.beam
17692 test "x$ac_cv_prog_cc_c89" != "xno" && break
17693 done
17694 rm -f conftest.$ac_ext
17695 CC=$ac_save_CC ;;
17696 esac
17697 fi
17698
17699 if test "x$ac_cv_prog_cc_c89" = xno
17700 then :
17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17702 printf "%s\n" "unsupported" >&6; }
17703 else case e in #(
17704 e) if test "x$ac_cv_prog_cc_c89" = x
17705 then :
17706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17707 printf "%s\n" "none needed" >&6; }
17708 else case e in #(
17709 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
17710 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
17711 CC="$CC $ac_cv_prog_cc_c89" ;;
17712 esac
17713 fi
17714 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
17715 ac_prog_cc_stdc=c89 ;;
17716 esac
17717 fi
17718 fi
17719
17720 ac_ext=c
17721 ac_cpp='$CPP $CPPFLAGS'
17722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17725
17726
17727 ac_ext=c
17728 ac_cpp='$CPP $CPPFLAGS'
17729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
17733 printf %s "checking whether $CC understands -c and -o together... " >&6; }
17734 if test ${am_cv_prog_cc_c_o+y}
17735 then :
17736 printf %s "(cached) " >&6
17737 else case e in #(
17738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17740
17741 int
17742 main (void)
17743 {
17744
17745 ;
17746 return 0;
17747 }
17748 _ACEOF
17749 # Make sure it works both with $CC and with simple cc.
17750 # Following AC_PROG_CC_C_O, we do the test twice because some
17751 # compilers refuse to overwrite an existing .o file with -o,
17752 # though they will create one.
17753 am_cv_prog_cc_c_o=yes
17754 for am_i in 1 2; do
17755 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
17756 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } \
17760 && test -f conftest2.$ac_objext; then
17761 : OK
17762 else
17763 am_cv_prog_cc_c_o=no
17764 break
17765 fi
17766 done
17767 rm -f core conftest*
17768 unset am_i ;;
17769 esac
17770 fi
17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
17772 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
17773 if test "$am_cv_prog_cc_c_o" != yes; then
17774 # Losing compiler, so override with the script.
17775 # FIXME: It is wrong to rewrite CC.
17776 # But if we don't then we get into trouble of one sort or another.
17777 # A longer-term fix would be to have automake use am__CC in this case,
17778 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17779 CC="$am_aux_dir/compile $CC"
17780 fi
17781 ac_ext=c
17782 ac_cpp='$CPP $CPPFLAGS'
17783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17786
17787
17788
17789
17790
17791
17792
17793
17794 ac_ext=cpp
17795 ac_cpp='$CXXCPP $CPPFLAGS'
17796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17799 if test -z "$CXX"; then
17800 if test -n "$CCC"; then
17801 CXX=$CCC
17802 else
17803 if test -n "$ac_tool_prefix"; then
17804 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
17805 do
17806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17809 printf %s "checking for $ac_word... " >&6; }
17810 if test ${ac_cv_prog_CXX+y}
17811 then :
17812 printf %s "(cached) " >&6
17813 else case e in #(
17814 e) if test -n "$CXX"; then
17815 ac_cv_prog_CXX="$CXX" # Let the user override the test.
17816 else
17817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17818 for as_dir in $PATH
17819 do
17820 IFS=$as_save_IFS
17821 case $as_dir in #(((
17822 '') as_dir=./ ;;
17823 */) ;;
17824 *) as_dir=$as_dir/ ;;
17825 esac
17826 for ac_exec_ext in '' $ac_executable_extensions; do
17827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17828 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17830 break 2
17831 fi
17832 done
17833 done
17834 IFS=$as_save_IFS
17835
17836 fi ;;
17837 esac
17838 fi
17839 CXX=$ac_cv_prog_CXX
17840 if test -n "$CXX"; then
17841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
17842 printf "%s\n" "$CXX" >&6; }
17843 else
17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17845 printf "%s\n" "no" >&6; }
17846 fi
17847
17848
17849 test -n "$CXX" && break
17850 done
17851 fi
17852 if test -z "$CXX"; then
17853 ac_ct_CXX=$CXX
17854 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
17855 do
17856 # Extract the first word of "$ac_prog", so it can be a program name with args.
17857 set dummy $ac_prog; ac_word=$2
17858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17859 printf %s "checking for $ac_word... " >&6; }
17860 if test ${ac_cv_prog_ac_ct_CXX+y}
17861 then :
17862 printf %s "(cached) " >&6
17863 else case e in #(
17864 e) if test -n "$ac_ct_CXX"; then
17865 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17866 else
17867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17868 for as_dir in $PATH
17869 do
17870 IFS=$as_save_IFS
17871 case $as_dir in #(((
17872 '') as_dir=./ ;;
17873 */) ;;
17874 *) as_dir=$as_dir/ ;;
17875 esac
17876 for ac_exec_ext in '' $ac_executable_extensions; do
17877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17878 ac_cv_prog_ac_ct_CXX="$ac_prog"
17879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17880 break 2
17881 fi
17882 done
17883 done
17884 IFS=$as_save_IFS
17885
17886 fi ;;
17887 esac
17888 fi
17889 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17890 if test -n "$ac_ct_CXX"; then
17891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
17892 printf "%s\n" "$ac_ct_CXX" >&6; }
17893 else
17894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17895 printf "%s\n" "no" >&6; }
17896 fi
17897
17898
17899 test -n "$ac_ct_CXX" && break
17900 done
17901
17902 if test "x$ac_ct_CXX" = x; then
17903 CXX="g++"
17904 else
17905 case $cross_compiling:$ac_tool_warned in
17906 yes:)
17907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17909 ac_tool_warned=yes ;;
17910 esac
17911 CXX=$ac_ct_CXX
17912 fi
17913 fi
17914
17915 fi
17916 fi
17917 # Provide some information about the compiler.
17918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
17919 set X $ac_compile
17920 ac_compiler=$2
17921 for ac_option in --version -v -V -qversion; do
17922 { { ac_try="$ac_compiler $ac_option >&5"
17923 case "(($ac_try" in
17924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925 *) ac_try_echo=$ac_try;;
17926 esac
17927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17928 printf "%s\n" "$ac_try_echo"; } >&5
17929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17930 ac_status=$?
17931 if test -s conftest.err; then
17932 sed '10a\
17933 ... rest of stderr output deleted ...
17934 10q' conftest.err >conftest.er1
17935 cat conftest.er1 >&5
17936 fi
17937 rm -f conftest.er1 conftest.err
17938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17939 test $ac_status = 0; }
17940 done
17941
17942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
17943 printf %s "checking whether the compiler supports GNU C++... " >&6; }
17944 if test ${ac_cv_cxx_compiler_gnu+y}
17945 then :
17946 printf %s "(cached) " >&6
17947 else case e in #(
17948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17950
17951 int
17952 main (void)
17953 {
17954 #ifndef __GNUC__
17955 choke me
17956 #endif
17957
17958 ;
17959 return 0;
17960 }
17961 _ACEOF
17962 if ac_fn_cxx_try_compile "$LINENO"
17963 then :
17964 ac_compiler_gnu=yes
17965 else case e in #(
17966 e) ac_compiler_gnu=no ;;
17967 esac
17968 fi
17969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17971 ;;
17972 esac
17973 fi
17974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
17975 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
17976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17977
17978 if test $ac_compiler_gnu = yes; then
17979 GXX=yes
17980 else
17981 GXX=
17982 fi
17983 ac_test_CXXFLAGS=${CXXFLAGS+y}
17984 ac_save_CXXFLAGS=$CXXFLAGS
17985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
17986 printf %s "checking whether $CXX accepts -g... " >&6; }
17987 if test ${ac_cv_prog_cxx_g+y}
17988 then :
17989 printf %s "(cached) " >&6
17990 else case e in #(
17991 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17992 ac_cxx_werror_flag=yes
17993 ac_cv_prog_cxx_g=no
17994 CXXFLAGS="-g"
17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
17997
17998 int
17999 main (void)
18000 {
18001
18002 ;
18003 return 0;
18004 }
18005 _ACEOF
18006 if ac_fn_cxx_try_compile "$LINENO"
18007 then :
18008 ac_cv_prog_cxx_g=yes
18009 else case e in #(
18010 e) CXXFLAGS=""
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18013
18014 int
18015 main (void)
18016 {
18017
18018 ;
18019 return 0;
18020 }
18021 _ACEOF
18022 if ac_fn_cxx_try_compile "$LINENO"
18023 then :
18024
18025 else case e in #(
18026 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18027 CXXFLAGS="-g"
18028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h. */
18030
18031 int
18032 main (void)
18033 {
18034
18035 ;
18036 return 0;
18037 }
18038 _ACEOF
18039 if ac_fn_cxx_try_compile "$LINENO"
18040 then :
18041 ac_cv_prog_cxx_g=yes
18042 fi
18043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18044 esac
18045 fi
18046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18047 esac
18048 fi
18049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18050 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
18051 esac
18052 fi
18053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
18054 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
18055 if test $ac_test_CXXFLAGS; then
18056 CXXFLAGS=$ac_save_CXXFLAGS
18057 elif test $ac_cv_prog_cxx_g = yes; then
18058 if test "$GXX" = yes; then
18059 CXXFLAGS="-g -O2"
18060 else
18061 CXXFLAGS="-g"
18062 fi
18063 else
18064 if test "$GXX" = yes; then
18065 CXXFLAGS="-O2"
18066 else
18067 CXXFLAGS=
18068 fi
18069 fi
18070 ac_prog_cxx_stdcxx=no
18071 if test x$ac_prog_cxx_stdcxx = xno
18072 then :
18073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
18074 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
18075 if test ${ac_cv_prog_cxx_cxx11+y}
18076 then :
18077 printf %s "(cached) " >&6
18078 else case e in #(
18079 e) ac_cv_prog_cxx_cxx11=no
18080 ac_save_CXX=$CXX
18081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h. */
18083 $ac_cxx_conftest_cxx11_program
18084 _ACEOF
18085 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
18086 do
18087 CXX="$ac_save_CXX $ac_arg"
18088 if ac_fn_cxx_try_compile "$LINENO"
18089 then :
18090 ac_cv_prog_cxx_cxx11=$ac_arg
18091 fi
18092 rm -f core conftest.err conftest.$ac_objext conftest.beam
18093 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
18094 done
18095 rm -f conftest.$ac_ext
18096 CXX=$ac_save_CXX ;;
18097 esac
18098 fi
18099
18100 if test "x$ac_cv_prog_cxx_cxx11" = xno
18101 then :
18102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18103 printf "%s\n" "unsupported" >&6; }
18104 else case e in #(
18105 e) if test "x$ac_cv_prog_cxx_cxx11" = x
18106 then :
18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18108 printf "%s\n" "none needed" >&6; }
18109 else case e in #(
18110 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
18111 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
18112 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
18113 esac
18114 fi
18115 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
18116 ac_prog_cxx_stdcxx=cxx11 ;;
18117 esac
18118 fi
18119 fi
18120 if test x$ac_prog_cxx_stdcxx = xno
18121 then :
18122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
18123 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
18124 if test ${ac_cv_prog_cxx_cxx98+y}
18125 then :
18126 printf %s "(cached) " >&6
18127 else case e in #(
18128 e) ac_cv_prog_cxx_cxx98=no
18129 ac_save_CXX=$CXX
18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h. */
18132 $ac_cxx_conftest_cxx98_program
18133 _ACEOF
18134 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
18135 do
18136 CXX="$ac_save_CXX $ac_arg"
18137 if ac_fn_cxx_try_compile "$LINENO"
18138 then :
18139 ac_cv_prog_cxx_cxx98=$ac_arg
18140 fi
18141 rm -f core conftest.err conftest.$ac_objext conftest.beam
18142 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
18143 done
18144 rm -f conftest.$ac_ext
18145 CXX=$ac_save_CXX ;;
18146 esac
18147 fi
18148
18149 if test "x$ac_cv_prog_cxx_cxx98" = xno
18150 then :
18151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18152 printf "%s\n" "unsupported" >&6; }
18153 else case e in #(
18154 e) if test "x$ac_cv_prog_cxx_cxx98" = x
18155 then :
18156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18157 printf "%s\n" "none needed" >&6; }
18158 else case e in #(
18159 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
18160 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
18161 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
18162 esac
18163 fi
18164 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
18165 ac_prog_cxx_stdcxx=cxx98 ;;
18166 esac
18167 fi
18168 fi
18169
18170 ac_ext=c
18171 ac_cpp='$CPP $CPPFLAGS'
18172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18175
18176 depcc="$CXX" am_compiler_list=
18177
18178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18179 printf %s "checking dependency style of $depcc... " >&6; }
18180 if test ${am_cv_CXX_dependencies_compiler_type+y}
18181 then :
18182 printf %s "(cached) " >&6
18183 else case e in #(
18184 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18185 # We make a subdir and do the tests there. Otherwise we can end up
18186 # making bogus files that we don't know about and never remove. For
18187 # instance it was reported that on HP-UX the gcc test will end up
18188 # making a dummy file named 'D' -- because '-MD' means "put the output
18189 # in D".
18190 rm -rf conftest.dir
18191 mkdir conftest.dir
18192 # Copy depcomp to subdir because otherwise we won't find it if we're
18193 # using a relative directory.
18194 cp "$am_depcomp" conftest.dir
18195 cd conftest.dir
18196 # We will build objects and dependencies in a subdirectory because
18197 # it helps to detect inapplicable dependency modes. For instance
18198 # both Tru64's cc and ICC support -MD to output dependencies as a
18199 # side effect of compilation, but ICC will put the dependencies in
18200 # the current directory while Tru64 will put them in the object
18201 # directory.
18202 mkdir sub
18203
18204 am_cv_CXX_dependencies_compiler_type=none
18205 if test "$am_compiler_list" = ""; then
18206 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18207 fi
18208 am__universal=false
18209 case " $depcc " in #(
18210 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18211 esac
18212
18213 for depmode in $am_compiler_list; do
18214 # Setup a source with many dependencies, because some compilers
18215 # like to wrap large dependency lists on column 80 (with \), and
18216 # we should not choose a depcomp mode which is confused by this.
18217 #
18218 # We need to recreate these files for each test, as the compiler may
18219 # overwrite some of them when testing with obscure command lines.
18220 # This happens at least with the AIX C compiler.
18221 : > sub/conftest.c
18222 for i in 1 2 3 4 5 6; do
18223 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18224 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18225 # Solaris 10 /bin/sh.
18226 echo '/* dummy */' > sub/conftst$i.h
18227 done
18228 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18229
18230 # We check with '-c' and '-o' for the sake of the "dashmstdout"
18231 # mode. It turns out that the SunPro C++ compiler does not properly
18232 # handle '-M -o', and we need to detect this. Also, some Intel
18233 # versions had trouble with output in subdirs.
18234 am__obj=sub/conftest.${OBJEXT-o}
18235 am__minus_obj="-o $am__obj"
18236 case $depmode in
18237 gcc)
18238 # This depmode causes a compiler race in universal mode.
18239 test "$am__universal" = false || continue
18240 ;;
18241 nosideeffect)
18242 # After this tag, mechanisms are not by side-effect, so they'll
18243 # only be used when explicitly requested.
18244 if test "x$enable_dependency_tracking" = xyes; then
18245 continue
18246 else
18247 break
18248 fi
18249 ;;
18250 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18251 # This compiler won't grok '-c -o', but also, the minuso test has
18252 # not run yet. These depmodes are late enough in the game, and
18253 # so weak that their functioning should not be impacted.
18254 am__obj=conftest.${OBJEXT-o}
18255 am__minus_obj=
18256 ;;
18257 none) break ;;
18258 esac
18259 if depmode=$depmode \
18260 source=sub/conftest.c object=$am__obj \
18261 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18262 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18263 >/dev/null 2>conftest.err &&
18264 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18265 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18266 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18267 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18268 # icc doesn't choke on unknown options, it will just issue warnings
18269 # or remarks (even with -Werror). So we grep stderr for any message
18270 # that says an option was ignored or not supported.
18271 # When given -MP, icc 7.0 and 7.1 complain thus:
18272 # icc: Command line warning: ignoring option '-M'; no argument required
18273 # The diagnosis changed in icc 8.0:
18274 # icc: Command line remark: option '-MP' not supported
18275 if (grep 'ignoring option' conftest.err ||
18276 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18277 am_cv_CXX_dependencies_compiler_type=$depmode
18278 break
18279 fi
18280 fi
18281 done
18282
18283 cd ..
18284 rm -rf conftest.dir
18285 else
18286 am_cv_CXX_dependencies_compiler_type=none
18287 fi
18288 ;;
18289 esac
18290 fi
18291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
18292 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
18293 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
18294
18295 if
18296 test "x$enable_dependency_tracking" != xno \
18297 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
18298 am__fastdepCXX_TRUE=
18299 am__fastdepCXX_FALSE='#'
18300 else
18301 am__fastdepCXX_TRUE='#'
18302 am__fastdepCXX_FALSE=
18303 fi
18304
18305
18306
18307
18308 func_stripname_cnf ()
18309 {
18310 case $2 in
18311 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
18312 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
18313 esac
18314 } # func_stripname_cnf
18315
18316 if test -n "$CXX" && ( test no != "$CXX" &&
18317 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
18318 (test g++ != "$CXX"))); then
18319 ac_ext=cpp
18320 ac_cpp='$CXXCPP $CPPFLAGS'
18321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18325 printf %s "checking how to run the C++ preprocessor... " >&6; }
18326 if test -z "$CXXCPP"; then
18327 if test ${ac_cv_prog_CXXCPP+y}
18328 then :
18329 printf %s "(cached) " >&6
18330 else case e in #(
18331 e) # Double quotes because $CXX needs to be expanded
18332 for CXXCPP in "$CXX -E" cpp /lib/cpp
18333 do
18334 ac_preproc_ok=false
18335 for ac_cxx_preproc_warn_flag in '' yes
18336 do
18337 # Use a header file that comes with gcc, so configuring glibc
18338 # with a fresh cross-compiler works.
18339 # On the NeXT, cc -E runs the code through the compiler's parser,
18340 # not just through cpp. "Syntax error" is here to catch this case.
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18343 #include <limits.h>
18344 Syntax error
18345 _ACEOF
18346 if ac_fn_cxx_try_cpp "$LINENO"
18347 then :
18348
18349 else case e in #(
18350 e) # Broken: fails on valid input.
18351 continue ;;
18352 esac
18353 fi
18354 rm -f conftest.err conftest.i conftest.$ac_ext
18355
18356 # OK, works on sane cases. Now check whether nonexistent headers
18357 # can be detected and how.
18358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18359 /* end confdefs.h. */
18360 #include <ac_nonexistent.h>
18361 _ACEOF
18362 if ac_fn_cxx_try_cpp "$LINENO"
18363 then :
18364 # Broken: success on invalid input.
18365 continue
18366 else case e in #(
18367 e) # Passes both tests.
18368 ac_preproc_ok=:
18369 break ;;
18370 esac
18371 fi
18372 rm -f conftest.err conftest.i conftest.$ac_ext
18373
18374 done
18375 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18376 rm -f conftest.i conftest.err conftest.$ac_ext
18377 if $ac_preproc_ok
18378 then :
18379 break
18380 fi
18381
18382 done
18383 ac_cv_prog_CXXCPP=$CXXCPP
18384 ;;
18385 esac
18386 fi
18387 CXXCPP=$ac_cv_prog_CXXCPP
18388 else
18389 ac_cv_prog_CXXCPP=$CXXCPP
18390 fi
18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18392 printf "%s\n" "$CXXCPP" >&6; }
18393 ac_preproc_ok=false
18394 for ac_cxx_preproc_warn_flag in '' yes
18395 do
18396 # Use a header file that comes with gcc, so configuring glibc
18397 # with a fresh cross-compiler works.
18398 # On the NeXT, cc -E runs the code through the compiler's parser,
18399 # not just through cpp. "Syntax error" is here to catch this case.
18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18402 #include <limits.h>
18403 Syntax error
18404 _ACEOF
18405 if ac_fn_cxx_try_cpp "$LINENO"
18406 then :
18407
18408 else case e in #(
18409 e) # Broken: fails on valid input.
18410 continue ;;
18411 esac
18412 fi
18413 rm -f conftest.err conftest.i conftest.$ac_ext
18414
18415 # OK, works on sane cases. Now check whether nonexistent headers
18416 # can be detected and how.
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h. */
18419 #include <ac_nonexistent.h>
18420 _ACEOF
18421 if ac_fn_cxx_try_cpp "$LINENO"
18422 then :
18423 # Broken: success on invalid input.
18424 continue
18425 else case e in #(
18426 e) # Passes both tests.
18427 ac_preproc_ok=:
18428 break ;;
18429 esac
18430 fi
18431 rm -f conftest.err conftest.i conftest.$ac_ext
18432
18433 done
18434 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18435 rm -f conftest.i conftest.err conftest.$ac_ext
18436 if $ac_preproc_ok
18437 then :
18438
18439 else case e in #(
18440 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18441 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18442 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18443 See 'config.log' for more details" "$LINENO" 5; } ;;
18444 esac
18445 fi
18446
18447 ac_ext=c
18448 ac_cpp='$CPP $CPPFLAGS'
18449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18452
18453 else
18454 _lt_caught_CXX_error=yes
18455 fi
18456
18457 ac_ext=cpp
18458 ac_cpp='$CXXCPP $CPPFLAGS'
18459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18462
18463 archive_cmds_need_lc_CXX=no
18464 allow_undefined_flag_CXX=
18465 always_export_symbols_CXX=no
18466 archive_expsym_cmds_CXX=
18467 compiler_needs_object_CXX=no
18468 export_dynamic_flag_spec_CXX=
18469 hardcode_direct_CXX=no
18470 hardcode_direct_absolute_CXX=no
18471 hardcode_libdir_flag_spec_CXX=
18472 hardcode_libdir_separator_CXX=
18473 hardcode_minus_L_CXX=no
18474 hardcode_shlibpath_var_CXX=unsupported
18475 hardcode_automatic_CXX=no
18476 inherit_rpath_CXX=no
18477 module_cmds_CXX=
18478 module_expsym_cmds_CXX=
18479 link_all_deplibs_CXX=unknown
18480 old_archive_cmds_CXX=$old_archive_cmds
18481 reload_flag_CXX=$reload_flag
18482 reload_cmds_CXX=$reload_cmds
18483 no_undefined_flag_CXX=
18484 whole_archive_flag_spec_CXX=
18485 enable_shared_with_static_runtimes_CXX=no
18486
18487 # Source file extension for C++ test sources.
18488 ac_ext=cpp
18489
18490 # Object file extension for compiled C++ test sources.
18491 objext=o
18492 objext_CXX=$objext
18493
18494 # No sense in running all these tests if we already determined that
18495 # the CXX compiler isn't working. Some variables (like enable_shared)
18496 # are currently assumed to apply to all compilers on this platform,
18497 # and will be corrupted by setting them based on a non-working compiler.
18498 if test yes != "$_lt_caught_CXX_error"; then
18499 # Code to be used in simple compile tests
18500 lt_simple_compile_test_code="int some_variable = 0;"
18501
18502 # Code to be used in simple link tests
18503 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18504
18505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18506
18507
18508
18509
18510
18511
18512 # If no C compiler was specified, use CC.
18513 LTCC=${LTCC-"$CC"}
18514
18515 # If no C compiler flags were specified, use CFLAGS.
18516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18517
18518 # Allow CC to be a program name with arguments.
18519 compiler=$CC
18520
18521
18522 # save warnings/boilerplate of simple test code
18523 ac_outfile=conftest.$ac_objext
18524 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18525 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18526 _lt_compiler_boilerplate=`cat conftest.err`
18527 $RM conftest*
18528
18529 ac_outfile=conftest.$ac_objext
18530 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18531 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18532 _lt_linker_boilerplate=`cat conftest.err`
18533 $RM -r conftest*
18534
18535
18536 # Allow CC to be a program name with arguments.
18537 lt_save_CC=$CC
18538 lt_save_CFLAGS=$CFLAGS
18539 lt_save_LD=$LD
18540 lt_save_GCC=$GCC
18541 GCC=$GXX
18542 lt_save_with_gnu_ld=$with_gnu_ld
18543 lt_save_path_LD=$lt_cv_path_LD
18544 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18545 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18546 else
18547 $as_unset lt_cv_prog_gnu_ld
18548 fi
18549 if test -n "${lt_cv_path_LDCXX+set}"; then
18550 lt_cv_path_LD=$lt_cv_path_LDCXX
18551 else
18552 $as_unset lt_cv_path_LD
18553 fi
18554 test -z "${LDCXX+set}" || LD=$LDCXX
18555 CC=${CXX-"c++"}
18556 CFLAGS=$CXXFLAGS
18557 compiler=$CC
18558 compiler_CXX=$CC
18559 func_cc_basename $compiler
18560 cc_basename=$func_cc_basename_result
18561
18562
18563 if test -n "$compiler"; then
18564 # We don't want -fno-exception when compiling C++ code, so set the
18565 # no_builtin_flag separately
18566 if test yes = "$GXX"; then
18567 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18568 else
18569 lt_prog_compiler_no_builtin_flag_CXX=
18570 fi
18571
18572 if test yes = "$GXX"; then
18573 # Set up default GNU C++ configuration
18574
18575
18576
18577 # Check whether --with-gnu-ld was given.
18578 if test ${with_gnu_ld+y}
18579 then :
18580 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
18581 else case e in #(
18582 e) with_gnu_ld=no ;;
18583 esac
18584 fi
18585
18586 ac_prog=ld
18587 if test yes = "$GCC"; then
18588 # Check if gcc -print-prog-name=ld gives a path.
18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18590 printf %s "checking for ld used by $CC... " >&6; }
18591 case $host in
18592 *-*-mingw* | *-*-windows*)
18593 # gcc leaves a trailing carriage return, which upsets mingw
18594 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18595 *)
18596 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18597 esac
18598 case $ac_prog in
18599 # Accept absolute paths.
18600 [\\/]* | ?:[\\/]*)
18601 re_direlt='/[^/][^/]*/\.\./'
18602 # Canonicalize the pathname of ld
18603 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18604 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18605 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18606 done
18607 test -z "$LD" && LD=$ac_prog
18608 ;;
18609 "")
18610 # If it fails, then pretend we aren't using GCC.
18611 ac_prog=ld
18612 ;;
18613 *)
18614 # If it is relative, then search for the first ld in PATH.
18615 with_gnu_ld=unknown
18616 ;;
18617 esac
18618 elif test yes = "$with_gnu_ld"; then
18619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18620 printf %s "checking for GNU ld... " >&6; }
18621 else
18622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18623 printf %s "checking for non-GNU ld... " >&6; }
18624 fi
18625 if test ${lt_cv_path_LD+y}
18626 then :
18627 printf %s "(cached) " >&6
18628 else case e in #(
18629 e) if test -z "$LD"; then
18630 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18631 for ac_dir in $PATH; do
18632 IFS=$lt_save_ifs
18633 test -z "$ac_dir" && ac_dir=.
18634 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18635 lt_cv_path_LD=$ac_dir/$ac_prog
18636 # Check to see if the program is GNU ld. I'd rather use --version,
18637 # but apparently some variants of GNU ld only accept -v.
18638 # Break only if it was the GNU/non-GNU ld that we prefer.
18639 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18640 *GNU* | *'with BFD'*)
18641 test no != "$with_gnu_ld" && break
18642 ;;
18643 *)
18644 test yes != "$with_gnu_ld" && break
18645 ;;
18646 esac
18647 fi
18648 done
18649 IFS=$lt_save_ifs
18650 else
18651 lt_cv_path_LD=$LD # Let the user override the test with a path.
18652 fi ;;
18653 esac
18654 fi
18655
18656 LD=$lt_cv_path_LD
18657 if test -n "$LD"; then
18658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18659 printf "%s\n" "$LD" >&6; }
18660 else
18661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18662 printf "%s\n" "no" >&6; }
18663 fi
18664 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18666 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
18667 if test ${lt_cv_prog_gnu_ld+y}
18668 then :
18669 printf %s "(cached) " >&6
18670 else case e in #(
18671 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
18672 case `$LD -v 2>&1 </dev/null` in
18673 *GNU* | *'with BFD'*)
18674 lt_cv_prog_gnu_ld=yes
18675 ;;
18676 *)
18677 lt_cv_prog_gnu_ld=no
18678 ;;
18679 esac ;;
18680 esac
18681 fi
18682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18683 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
18684 with_gnu_ld=$lt_cv_prog_gnu_ld
18685
18686
18687
18688
18689
18690
18691
18692 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18693 # archiving commands below assume that GNU ld is being used.
18694 if test yes = "$with_gnu_ld"; then
18695 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18696 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'
18697
18698 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18699 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18700
18701 # If archive_cmds runs LD, not CC, wlarc should be empty
18702 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18703 # investigate it a little bit more. (MM)
18704 wlarc='$wl'
18705
18706 # ancient GNU ld didn't support --whole-archive et. al.
18707 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18708 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18709 else
18710 whole_archive_flag_spec_CXX=
18711 fi
18712 else
18713 with_gnu_ld=no
18714 wlarc=
18715
18716 # A generic and very simple default shared library creation
18717 # command for GNU C++ for the case where it uses the native
18718 # linker, instead of GNU ld. If possible, this setting should
18719 # overridden to take advantage of the native linker features on
18720 # the platform it is being used on.
18721 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18722 fi
18723
18724 # Commands to make compiler produce verbose output that lists
18725 # what "hidden" libraries, object files and flags are used when
18726 # linking a shared library.
18727 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
18728
18729 else
18730 GXX=no
18731 with_gnu_ld=no
18732 wlarc=
18733 fi
18734
18735 # PORTME: fill in a description of your system's C++ link characteristics
18736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18737 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18738 ld_shlibs_CXX=yes
18739 case $host_os in
18740 aix3*)
18741 # FIXME: insert proper C++ library support
18742 ld_shlibs_CXX=no
18743 ;;
18744 aix[4-9]*)
18745 if test ia64 = "$host_cpu"; then
18746 # On IA64, the linker does run time linking by default, so we don't
18747 # have to do anything special.
18748 aix_use_runtimelinking=no
18749 exp_sym_flag='-Bexport'
18750 no_entry_flag=
18751 else
18752 aix_use_runtimelinking=no
18753
18754 # Test if we are trying to use run time linking or normal
18755 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18756 # have runtime linking enabled, and use it for executables.
18757 # For shared libraries, we enable/disable runtime linking
18758 # depending on the kind of the shared library created -
18759 # when "with_aix_soname,aix_use_runtimelinking" is:
18760 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
18761 # "aix,yes" lib.so shared, rtl:yes, for executables
18762 # lib.a static archive
18763 # "both,no" lib.so.V(shr.o) shared, rtl:yes
18764 # lib.a(lib.so.V) shared, rtl:no, for executables
18765 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
18766 # lib.a(lib.so.V) shared, rtl:no
18767 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
18768 # lib.a static archive
18769 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18770 for ld_flag in $LDFLAGS; do
18771 case $ld_flag in
18772 *-brtl*)
18773 aix_use_runtimelinking=yes
18774 break
18775 ;;
18776 esac
18777 done
18778 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
18779 # With aix-soname=svr4, we create the lib.so.V shared archives only,
18780 # so we don't have lib.a shared libs to link our executables.
18781 # We have to force runtime linking in this case.
18782 aix_use_runtimelinking=yes
18783 LDFLAGS="$LDFLAGS -Wl,-brtl"
18784 fi
18785 ;;
18786 esac
18787
18788 exp_sym_flag='-bexport'
18789 no_entry_flag='-bnoentry'
18790 fi
18791
18792 # When large executables or shared objects are built, AIX ld can
18793 # have problems creating the table of contents. If linking a library
18794 # or program results in "error TOC overflow" add -mminimal-toc to
18795 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18796 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18797
18798 archive_cmds_CXX=''
18799 hardcode_direct_CXX=yes
18800 hardcode_direct_absolute_CXX=yes
18801 hardcode_libdir_separator_CXX=':'
18802 link_all_deplibs_CXX=yes
18803 file_list_spec_CXX='$wl-f,'
18804 case $with_aix_soname,$aix_use_runtimelinking in
18805 aix,*) ;; # no import file
18806 svr4,* | *,yes) # use import file
18807 # The Import File defines what to hardcode.
18808 hardcode_direct_CXX=no
18809 hardcode_direct_absolute_CXX=no
18810 ;;
18811 esac
18812
18813 if test yes = "$GXX"; then
18814 case $host_os in aix4.[012]|aix4.[012].*)
18815 # We only want to do this on AIX 4.2 and lower, the check
18816 # below for broken collect2 doesn't work under 4.3+
18817 collect2name=`$CC -print-prog-name=collect2`
18818 if test -f "$collect2name" &&
18819 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18820 then
18821 # We have reworked collect2
18822 :
18823 else
18824 # We have old collect2
18825 hardcode_direct_CXX=unsupported
18826 # It fails to find uninstalled libraries when the uninstalled
18827 # path is not listed in the libpath. Setting hardcode_minus_L
18828 # to unsupported forces relinking
18829 hardcode_minus_L_CXX=yes
18830 hardcode_libdir_flag_spec_CXX='-L$libdir'
18831 hardcode_libdir_separator_CXX=
18832 fi
18833 esac
18834 shared_flag='-shared'
18835 if test yes = "$aix_use_runtimelinking"; then
18836 shared_flag=$shared_flag' $wl-G'
18837 fi
18838 # Need to ensure runtime linking is disabled for the traditional
18839 # shared library, or the linker may eventually find shared libraries
18840 # /with/ Import File - we do not want to mix them.
18841 shared_flag_aix='-shared'
18842 shared_flag_svr4='-shared $wl-G'
18843 else
18844 # not using gcc
18845 if test ia64 = "$host_cpu"; then
18846 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18847 # chokes on -Wl,-G. The following line is correct:
18848 shared_flag='-G'
18849 else
18850 if test yes = "$aix_use_runtimelinking"; then
18851 shared_flag='$wl-G'
18852 else
18853 shared_flag='$wl-bM:SRE'
18854 fi
18855 shared_flag_aix='$wl-bM:SRE'
18856 shared_flag_svr4='$wl-G'
18857 fi
18858 fi
18859
18860 export_dynamic_flag_spec_CXX='$wl-bexpall'
18861 # It seems that -bexpall does not export symbols beginning with
18862 # underscore (_), so it is better to generate a list of symbols to
18863 # export.
18864 always_export_symbols_CXX=yes
18865 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
18866 # Warning - without using the other runtime loading flags (-brtl),
18867 # -berok will link without error, but may produce a broken library.
18868 # The "-G" linker flag allows undefined symbols.
18869 no_undefined_flag_CXX='-bernotok'
18870 # Determine the default libpath from the value encoded in an empty
18871 # executable.
18872 if test set = "${lt_cv_aix_libpath+set}"; then
18873 aix_libpath=$lt_cv_aix_libpath
18874 else
18875 if test ${lt_cv_aix_libpath__CXX+y}
18876 then :
18877 printf %s "(cached) " >&6
18878 else case e in #(
18879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18880 /* end confdefs.h. */
18881
18882 int
18883 main (void)
18884 {
18885
18886 ;
18887 return 0;
18888 }
18889 _ACEOF
18890 if ac_fn_cxx_try_link "$LINENO"
18891 then :
18892
18893 lt_aix_libpath_sed='
18894 /Import File Strings/,/^$/ {
18895 /^0/ {
18896 s/^0 *\([^ ]*\) *$/\1/
18897 p
18898 }
18899 }'
18900 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18901 # Check for a 64-bit object if we didn't find anything.
18902 if test -z "$lt_cv_aix_libpath__CXX"; then
18903 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18904 fi
18905 fi
18906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18907 conftest$ac_exeext conftest.$ac_ext
18908 if test -z "$lt_cv_aix_libpath__CXX"; then
18909 lt_cv_aix_libpath__CXX=/usr/lib:/lib
18910 fi
18911 ;;
18912 esac
18913 fi
18914
18915 aix_libpath=$lt_cv_aix_libpath__CXX
18916 fi
18917
18918 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
18919
18920 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
18921 else
18922 if test ia64 = "$host_cpu"; then
18923 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
18924 allow_undefined_flag_CXX="-z nodefs"
18925 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"
18926 else
18927 # Determine the default libpath from the value encoded in an
18928 # empty executable.
18929 if test set = "${lt_cv_aix_libpath+set}"; then
18930 aix_libpath=$lt_cv_aix_libpath
18931 else
18932 if test ${lt_cv_aix_libpath__CXX+y}
18933 then :
18934 printf %s "(cached) " >&6
18935 else case e in #(
18936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h. */
18938
18939 int
18940 main (void)
18941 {
18942
18943 ;
18944 return 0;
18945 }
18946 _ACEOF
18947 if ac_fn_cxx_try_link "$LINENO"
18948 then :
18949
18950 lt_aix_libpath_sed='
18951 /Import File Strings/,/^$/ {
18952 /^0/ {
18953 s/^0 *\([^ ]*\) *$/\1/
18954 p
18955 }
18956 }'
18957 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18958 # Check for a 64-bit object if we didn't find anything.
18959 if test -z "$lt_cv_aix_libpath__CXX"; then
18960 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18961 fi
18962 fi
18963 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18964 conftest$ac_exeext conftest.$ac_ext
18965 if test -z "$lt_cv_aix_libpath__CXX"; then
18966 lt_cv_aix_libpath__CXX=/usr/lib:/lib
18967 fi
18968 ;;
18969 esac
18970 fi
18971
18972 aix_libpath=$lt_cv_aix_libpath__CXX
18973 fi
18974
18975 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
18976 # Warning - without using the other run time loading flags,
18977 # -berok will link without error, but may produce a broken library.
18978 no_undefined_flag_CXX=' $wl-bernotok'
18979 allow_undefined_flag_CXX=' $wl-berok'
18980 if test yes = "$with_gnu_ld"; then
18981 # We only use this code for GNU lds that support --whole-archive.
18982 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
18983 else
18984 # Exported symbols can be pulled into shared objects from archives
18985 whole_archive_flag_spec_CXX='$convenience'
18986 fi
18987 archive_cmds_need_lc_CXX=yes
18988 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
18989 # -brtl affects multiple linker settings, -berok does not and is overridden later
18990 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
18991 if test svr4 != "$with_aix_soname"; then
18992 # This is similar to how AIX traditionally builds its shared
18993 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
18994 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
18995 fi
18996 if test aix != "$with_aix_soname"; then
18997 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
18998 else
18999 # used by -dlpreopen to get the symbols
19000 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
19001 fi
19002 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
19003 fi
19004 fi
19005 ;;
19006
19007 beos*)
19008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19009 allow_undefined_flag_CXX=unsupported
19010 # Joseph Beckenbach <[email protected]> says some releases of gcc
19011 # support --undefined. This deserves some investigation. FIXME
19012 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19013 else
19014 ld_shlibs_CXX=no
19015 fi
19016 ;;
19017
19018 chorus*)
19019 case $cc_basename in
19020 *)
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 ;;
19024 esac
19025 ;;
19026
19027 cygwin* | mingw* | windows* | pw32* | cegcc*)
19028 case $GXX,$cc_basename in
19029 ,cl* | no,cl* | ,icl* | no,icl*)
19030 # Native MSVC or ICC
19031 # hardcode_libdir_flag_spec is actually meaningless, as there is
19032 # no search path for DLLs.
19033 hardcode_libdir_flag_spec_CXX=' '
19034 allow_undefined_flag_CXX=unsupported
19035 always_export_symbols_CXX=yes
19036 file_list_spec_CXX='@'
19037 # Tell ltmain to make .lib files, not .a files.
19038 libext=lib
19039 # Tell ltmain to make .dll files, not .so files.
19040 shrext_cmds=.dll
19041 # FIXME: Setting linknames here is a bad hack.
19042 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19043 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19044 cp "$export_symbols" "$output_objdir/$soname.def";
19045 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19046 else
19047 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19048 fi~
19049 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19050 linknames='
19051 # The linker will not automatically build a static lib if we build a DLL.
19052 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19053 enable_shared_with_static_runtimes_CXX=yes
19054 # Don't use ranlib
19055 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19056 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19057 lt_tool_outputfile="@TOOL_OUTPUT@"~
19058 case $lt_outputfile in
19059 *.exe|*.EXE) ;;
19060 *)
19061 lt_outputfile=$lt_outputfile.exe
19062 lt_tool_outputfile=$lt_tool_outputfile.exe
19063 ;;
19064 esac~
19065 func_to_tool_file "$lt_outputfile"~
19066 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19067 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19068 $RM "$lt_outputfile.manifest";
19069 fi'
19070 ;;
19071 *)
19072 # g++
19073 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19074 # as there is no search path for DLLs.
19075 hardcode_libdir_flag_spec_CXX='-L$libdir'
19076 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
19077 allow_undefined_flag_CXX=unsupported
19078 always_export_symbols_CXX=no
19079 enable_shared_with_static_runtimes_CXX=yes
19080 file_list_spec_CXX='@'
19081
19082 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19083 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'
19084 # If the export-symbols file already is a .def file, use it as
19085 # is; otherwise, prepend EXPORTS...
19086 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19087 cp $export_symbols $output_objdir/$soname.def;
19088 else
19089 echo EXPORTS > $output_objdir/$soname.def;
19090 cat $export_symbols >> $output_objdir/$soname.def;
19091 fi~
19092 $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'
19093 else
19094 ld_shlibs_CXX=no
19095 fi
19096 ;;
19097 esac
19098 ;;
19099 darwin* | rhapsody*)
19100
19101
19102 archive_cmds_need_lc_CXX=no
19103 hardcode_direct_CXX=no
19104 hardcode_automatic_CXX=yes
19105 hardcode_shlibpath_var_CXX=unsupported
19106 if test yes = "$lt_cv_ld_force_load"; then
19107 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\"`'
19108
19109 else
19110 whole_archive_flag_spec_CXX=''
19111 fi
19112 link_all_deplibs_CXX=yes
19113 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
19114 case $cc_basename in
19115 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
19116 *) _lt_dar_can_shared=$GCC ;;
19117 esac
19118 if test yes = "$_lt_dar_can_shared"; then
19119 output_verbose_link_cmd=func_echo_all
19120 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"
19121 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19122 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"
19123 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"
19124 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
19125 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"
19126 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"
19127 fi
19128
19129 else
19130 ld_shlibs_CXX=no
19131 fi
19132
19133 ;;
19134
19135 os2*)
19136 hardcode_libdir_flag_spec_CXX='-L$libdir'
19137 hardcode_minus_L_CXX=yes
19138 allow_undefined_flag_CXX=unsupported
19139 shrext_cmds=.dll
19140 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19141 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19142 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19143 $ECHO EXPORTS >> $output_objdir/$libname.def~
19144 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19145 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19146 emximp -o $lib $output_objdir/$libname.def'
19147 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19148 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19149 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19150 $ECHO EXPORTS >> $output_objdir/$libname.def~
19151 prefix_cmds="$SED"~
19152 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19153 prefix_cmds="$prefix_cmds -e 1d";
19154 fi~
19155 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19156 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19157 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19158 emximp -o $lib $output_objdir/$libname.def'
19159 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19160 enable_shared_with_static_runtimes_CXX=yes
19161 file_list_spec_CXX='@'
19162 ;;
19163
19164 dgux*)
19165 case $cc_basename in
19166 ec++*)
19167 # FIXME: insert proper C++ library support
19168 ld_shlibs_CXX=no
19169 ;;
19170 ghcx*)
19171 # Green Hills C++ Compiler
19172 # FIXME: insert proper C++ library support
19173 ld_shlibs_CXX=no
19174 ;;
19175 *)
19176 # FIXME: insert proper C++ library support
19177 ld_shlibs_CXX=no
19178 ;;
19179 esac
19180 ;;
19181
19182 freebsd2.*)
19183 # C++ shared libraries reported to be fairly broken before
19184 # switch to ELF
19185 ld_shlibs_CXX=no
19186 ;;
19187
19188 freebsd-elf*)
19189 archive_cmds_need_lc_CXX=no
19190 ;;
19191
19192 freebsd* | dragonfly* | midnightbsd*)
19193 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19194 # conventions
19195 ld_shlibs_CXX=yes
19196 ;;
19197
19198 haiku*)
19199 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19200 link_all_deplibs_CXX=no
19201 ;;
19202
19203 hpux9*)
19204 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
19205 hardcode_libdir_separator_CXX=:
19206 export_dynamic_flag_spec_CXX='$wl-E'
19207 hardcode_direct_CXX=yes
19208 hardcode_minus_L_CXX=yes # Not in the search PATH,
19209 # but as the default
19210 # location of the library.
19211
19212 case $cc_basename in
19213 CC*)
19214 # FIXME: insert proper C++ library support
19215 ld_shlibs_CXX=no
19216 ;;
19217 aCC*)
19218 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
19219 # Commands to make compiler produce verbose output that lists
19220 # what "hidden" libraries, object files and flags are used when
19221 # linking a shared library.
19222 #
19223 # There doesn't appear to be a way to prevent this compiler from
19224 # explicitly linking system object files so we need to strip them
19225 # from the output so that they don't get included in the library
19226 # dependencies.
19227 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"'
19228 ;;
19229 *)
19230 if test yes = "$GXX"; then
19231 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
19232 else
19233 # FIXME: insert proper C++ library support
19234 ld_shlibs_CXX=no
19235 fi
19236 ;;
19237 esac
19238 ;;
19239
19240 hpux10*|hpux11*)
19241 if test no = "$with_gnu_ld"; then
19242 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
19243 hardcode_libdir_separator_CXX=:
19244
19245 case $host_cpu in
19246 hppa*64*|ia64*)
19247 ;;
19248 *)
19249 export_dynamic_flag_spec_CXX='$wl-E'
19250 ;;
19251 esac
19252 fi
19253 case $host_cpu in
19254 hppa*64*|ia64*)
19255 hardcode_direct_CXX=no
19256 hardcode_shlibpath_var_CXX=no
19257 ;;
19258 *)
19259 hardcode_direct_CXX=yes
19260 hardcode_direct_absolute_CXX=yes
19261 hardcode_minus_L_CXX=yes # Not in the search PATH,
19262 # but as the default
19263 # location of the library.
19264 ;;
19265 esac
19266
19267 case $cc_basename in
19268 CC*)
19269 # FIXME: insert proper C++ library support
19270 ld_shlibs_CXX=no
19271 ;;
19272 aCC*)
19273 case $host_cpu in
19274 hppa*64*)
19275 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19276 ;;
19277 ia64*)
19278 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19279 ;;
19280 *)
19281 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19282 ;;
19283 esac
19284 # Commands to make compiler produce verbose output that lists
19285 # what "hidden" libraries, object files and flags are used when
19286 # linking a shared library.
19287 #
19288 # There doesn't appear to be a way to prevent this compiler from
19289 # explicitly linking system object files so we need to strip them
19290 # from the output so that they don't get included in the library
19291 # dependencies.
19292 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"'
19293 ;;
19294 *)
19295 if test yes = "$GXX"; then
19296 if test no = "$with_gnu_ld"; then
19297 case $host_cpu in
19298 hppa*64*)
19299 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19300 ;;
19301 ia64*)
19302 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19303 ;;
19304 *)
19305 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'
19306 ;;
19307 esac
19308 fi
19309 else
19310 # FIXME: insert proper C++ library support
19311 ld_shlibs_CXX=no
19312 fi
19313 ;;
19314 esac
19315 ;;
19316
19317 interix[3-9]*)
19318 hardcode_direct_CXX=no
19319 hardcode_shlibpath_var_CXX=no
19320 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19321 export_dynamic_flag_spec_CXX='$wl-E'
19322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19323 # Instead, shared libraries are loaded at an image base (0x10000000 by
19324 # default) and relocated if they conflict, which is a slow very memory
19325 # consuming and fragmenting process. To avoid this, we pick a random,
19326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19328 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'
19329 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'
19330 ;;
19331 irix5* | irix6*)
19332 case $cc_basename in
19333 CC*)
19334 # SGI C++
19335 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'
19336
19337 # Archives containing C++ object files must be created using
19338 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19339 # necessary to make sure instantiated templates are included
19340 # in the archive.
19341 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19342 ;;
19343 *)
19344 if test yes = "$GXX"; then
19345 if test no = "$with_gnu_ld"; then
19346 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'
19347 else
19348 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'
19349 fi
19350 fi
19351 link_all_deplibs_CXX=yes
19352 ;;
19353 esac
19354 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19355 hardcode_libdir_separator_CXX=:
19356 inherit_rpath_CXX=yes
19357 ;;
19358
19359 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19360 case $cc_basename in
19361 KCC*)
19362 # Kuck and Associates, Inc. (KAI) C++ Compiler
19363
19364 # KCC will only create a shared library if the output file
19365 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19366 # to its proper name (with version) after linking.
19367 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'
19368 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'
19369 # Commands to make compiler produce verbose output that lists
19370 # what "hidden" libraries, object files and flags are used when
19371 # linking a shared library.
19372 #
19373 # There doesn't appear to be a way to prevent this compiler from
19374 # explicitly linking system object files so we need to strip them
19375 # from the output so that they don't get included in the library
19376 # dependencies.
19377 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"'
19378
19379 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19380 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19381
19382 # Archives containing C++ object files must be created using
19383 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19384 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19385 ;;
19386 icpc* | ecpc* )
19387 # Intel C++
19388 with_gnu_ld=yes
19389 # version 8.0 and above of icpc choke on multiply defined symbols
19390 # if we add $predep_objects and $postdep_objects, however 7.1 and
19391 # earlier do not add the objects themselves.
19392 case `$CC -V 2>&1` in
19393 *"Version 7."*)
19394 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19395 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'
19396 ;;
19397 *) # Version 8.0 or newer
19398 tmp_idyn=
19399 case $host_cpu in
19400 ia64*) tmp_idyn=' -i_dynamic';;
19401 esac
19402 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19403 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'
19404 ;;
19405 esac
19406 archive_cmds_need_lc_CXX=no
19407 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19408 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19409 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
19410 ;;
19411 pgCC* | pgcpp*)
19412 # Portland Group C++ compiler
19413 case `$CC -V` in
19414 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19415 prelink_cmds_CXX='tpldir=Template.dir~
19416 rm -rf $tpldir~
19417 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19418 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19419 old_archive_cmds_CXX='tpldir=Template.dir~
19420 rm -rf $tpldir~
19421 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19422 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19423 $RANLIB $oldlib'
19424 archive_cmds_CXX='tpldir=Template.dir~
19425 rm -rf $tpldir~
19426 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19427 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19428 archive_expsym_cmds_CXX='tpldir=Template.dir~
19429 rm -rf $tpldir~
19430 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19431 $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'
19432 ;;
19433 *) # Version 6 and above use weak symbols
19434 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19435 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'
19436 ;;
19437 esac
19438
19439 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
19440 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19441 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'
19442 ;;
19443 cxx*)
19444 # Compaq C++
19445 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19446 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'
19447
19448 runpath_var=LD_RUN_PATH
19449 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19450 hardcode_libdir_separator_CXX=:
19451
19452 # Commands to make compiler produce verbose output that lists
19453 # what "hidden" libraries, object files and flags are used when
19454 # linking a shared library.
19455 #
19456 # There doesn't appear to be a way to prevent this compiler from
19457 # explicitly linking system object files so we need to strip them
19458 # from the output so that they don't get included in the library
19459 # dependencies.
19460 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'
19461 ;;
19462 xl* | mpixl* | bgxl*)
19463 # IBM XL 8.0 on PPC, with GNU ld
19464 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19465 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19466 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19467 if test yes = "$supports_anon_versioning"; then
19468 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19469 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19470 echo "local: *; };" >> $output_objdir/$libname.ver~
19471 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
19472 fi
19473 ;;
19474 *)
19475 case `$CC -V 2>&1 | $SED 5q` in
19476 *Sun\ C*)
19477 # Sun C++ 5.9
19478 no_undefined_flag_CXX=' -zdefs'
19479 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19480 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'
19481 hardcode_libdir_flag_spec_CXX='-R$libdir'
19482 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'
19483 compiler_needs_object_CXX=yes
19484
19485 # Not sure whether something based on
19486 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19487 # would be better.
19488 output_verbose_link_cmd='func_echo_all'
19489
19490 # Archives containing C++ object files must be created using
19491 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19492 # necessary to make sure instantiated templates are included
19493 # in the archive.
19494 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19495 ;;
19496 esac
19497 ;;
19498 esac
19499 ;;
19500
19501 lynxos*)
19502 # FIXME: insert proper C++ library support
19503 ld_shlibs_CXX=no
19504 ;;
19505
19506 m88k*)
19507 # FIXME: insert proper C++ library support
19508 ld_shlibs_CXX=no
19509 ;;
19510
19511 mvs*)
19512 case $cc_basename in
19513 cxx*)
19514 # FIXME: insert proper C++ library support
19515 ld_shlibs_CXX=no
19516 ;;
19517 *)
19518 # FIXME: insert proper C++ library support
19519 ld_shlibs_CXX=no
19520 ;;
19521 esac
19522 ;;
19523
19524 *-mlibc)
19525 ld_shlibs_CXX=yes
19526 ;;
19527
19528 netbsd*)
19529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19530 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19531 wlarc=
19532 hardcode_libdir_flag_spec_CXX='-R$libdir'
19533 hardcode_direct_CXX=yes
19534 hardcode_shlibpath_var_CXX=no
19535 fi
19536 # Workaround some broken pre-1.5 toolchains
19537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19538 ;;
19539
19540 *nto* | *qnx*)
19541 ld_shlibs_CXX=yes
19542 ;;
19543
19544 openbsd*)
19545 if test -f /usr/libexec/ld.so; then
19546 hardcode_direct_CXX=yes
19547 hardcode_shlibpath_var_CXX=no
19548 hardcode_direct_absolute_CXX=yes
19549 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19550 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19551 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
19552 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
19553 export_dynamic_flag_spec_CXX='$wl-E'
19554 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19555 fi
19556 output_verbose_link_cmd=func_echo_all
19557 else
19558 ld_shlibs_CXX=no
19559 fi
19560 ;;
19561
19562 osf3* | osf4* | osf5*)
19563 case $cc_basename in
19564 KCC*)
19565 # Kuck and Associates, Inc. (KAI) C++ Compiler
19566
19567 # KCC will only create a shared library if the output file
19568 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19569 # to its proper name (with version) after linking.
19570 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'
19571
19572 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19573 hardcode_libdir_separator_CXX=:
19574
19575 # Archives containing C++ object files must be created using
19576 # the KAI C++ compiler.
19577 case $host in
19578 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19579 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19580 esac
19581 ;;
19582 RCC*)
19583 # Rational C++ 2.4.1
19584 # FIXME: insert proper C++ library support
19585 ld_shlibs_CXX=no
19586 ;;
19587 cxx*)
19588 case $host in
19589 osf3*)
19590 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
19591 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'
19592 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19593 ;;
19594 *)
19595 allow_undefined_flag_CXX=' -expect_unresolved \*'
19596 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'
19597 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19598 echo "-hidden">> $lib.exp~
19599 $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~
19600 $RM $lib.exp'
19601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19602 ;;
19603 esac
19604
19605 hardcode_libdir_separator_CXX=:
19606
19607 # Commands to make compiler produce verbose output that lists
19608 # what "hidden" libraries, object files and flags are used when
19609 # linking a shared library.
19610 #
19611 # There doesn't appear to be a way to prevent this compiler from
19612 # explicitly linking system object files so we need to strip them
19613 # from the output so that they don't get included in the library
19614 # dependencies.
19615 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"'
19616 ;;
19617 *)
19618 if test yes,no = "$GXX,$with_gnu_ld"; then
19619 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
19620 case $host in
19621 osf3*)
19622 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'
19623 ;;
19624 *)
19625 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'
19626 ;;
19627 esac
19628
19629 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19630 hardcode_libdir_separator_CXX=:
19631
19632 # Commands to make compiler produce verbose output that lists
19633 # what "hidden" libraries, object files and flags are used when
19634 # linking a shared library.
19635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
19636
19637 else
19638 # FIXME: insert proper C++ library support
19639 ld_shlibs_CXX=no
19640 fi
19641 ;;
19642 esac
19643 ;;
19644
19645 psos*)
19646 # FIXME: insert proper C++ library support
19647 ld_shlibs_CXX=no
19648 ;;
19649
19650 serenity*)
19651 ;;
19652
19653 sunos4*)
19654 case $cc_basename in
19655 CC*)
19656 # Sun C++ 4.x
19657 # FIXME: insert proper C++ library support
19658 ld_shlibs_CXX=no
19659 ;;
19660 lcc*)
19661 # Lucid
19662 # FIXME: insert proper C++ library support
19663 ld_shlibs_CXX=no
19664 ;;
19665 *)
19666 # FIXME: insert proper C++ library support
19667 ld_shlibs_CXX=no
19668 ;;
19669 esac
19670 ;;
19671
19672 solaris*)
19673 case $cc_basename in
19674 CC* | sunCC*)
19675 # Sun C++ 4.2, 5.x and Centerline C++
19676 archive_cmds_need_lc_CXX=yes
19677 no_undefined_flag_CXX=' -zdefs'
19678 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19679 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19680 $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'
19681
19682 hardcode_libdir_flag_spec_CXX='-R$libdir'
19683 hardcode_shlibpath_var_CXX=no
19684 case $host_os in
19685 solaris2.[0-5] | solaris2.[0-5].*) ;;
19686 *)
19687 # The compiler driver will combine and reorder linker options,
19688 # but understands '-z linker_flag'.
19689 # Supported since Solaris 2.6 (maybe 2.5.1?)
19690 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19691 ;;
19692 esac
19693 link_all_deplibs_CXX=yes
19694
19695 output_verbose_link_cmd='func_echo_all'
19696
19697 # Archives containing C++ object files must be created using
19698 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19699 # necessary to make sure instantiated templates are included
19700 # in the archive.
19701 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19702 ;;
19703 gcx*)
19704 # Green Hills C++ Compiler
19705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
19706
19707 # The C++ compiler must be used to create the archive.
19708 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19709 ;;
19710 *)
19711 # GNU C++ compiler with Solaris linker
19712 if test yes,no = "$GXX,$with_gnu_ld"; then
19713 no_undefined_flag_CXX=' $wl-z ${wl}defs'
19714 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19715 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
19716 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19717 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19718
19719 # Commands to make compiler produce verbose output that lists
19720 # what "hidden" libraries, object files and flags are used when
19721 # linking a shared library.
19722 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
19723 else
19724 # g++ 2.7 appears to require '-G' NOT '-shared' on this
19725 # platform.
19726 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
19727 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19728 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19729
19730 # Commands to make compiler produce verbose output that lists
19731 # what "hidden" libraries, object files and flags are used when
19732 # linking a shared library.
19733 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
19734 fi
19735
19736 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
19737 case $host_os in
19738 solaris2.[0-5] | solaris2.[0-5].*) ;;
19739 *)
19740 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
19741 ;;
19742 esac
19743 fi
19744 ;;
19745 esac
19746 ;;
19747
19748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19749 no_undefined_flag_CXX='$wl-z,text'
19750 archive_cmds_need_lc_CXX=no
19751 hardcode_shlibpath_var_CXX=no
19752 runpath_var='LD_RUN_PATH'
19753
19754 case $cc_basename in
19755 CC*)
19756 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19757 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19758 ;;
19759 *)
19760 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19761 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19762 ;;
19763 esac
19764 ;;
19765
19766 sysv5* | sco3.2v5* | sco5v6*)
19767 # Note: We CANNOT use -z defs as we might desire, because we do not
19768 # link with -lc, and that would cause any symbols used from libc to
19769 # always be unresolved, which means just about no library would
19770 # ever link correctly. If we're not using GNU ld we use -z text
19771 # though, which does catch some bad symbols but isn't as heavy-handed
19772 # as -z defs.
19773 no_undefined_flag_CXX='$wl-z,text'
19774 allow_undefined_flag_CXX='$wl-z,nodefs'
19775 archive_cmds_need_lc_CXX=no
19776 hardcode_shlibpath_var_CXX=no
19777 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
19778 hardcode_libdir_separator_CXX=':'
19779 link_all_deplibs_CXX=yes
19780 export_dynamic_flag_spec_CXX='$wl-Bexport'
19781 runpath_var='LD_RUN_PATH'
19782
19783 case $cc_basename in
19784 CC*)
19785 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19786 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19787 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19788 '"$old_archive_cmds_CXX"
19789 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19790 '"$reload_cmds_CXX"
19791 ;;
19792 *)
19793 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19794 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19795 ;;
19796 esac
19797 ;;
19798
19799 tandem*)
19800 case $cc_basename in
19801 NCC*)
19802 # NonStop-UX NCC 3.20
19803 # FIXME: insert proper C++ library support
19804 ld_shlibs_CXX=no
19805 ;;
19806 *)
19807 # FIXME: insert proper C++ library support
19808 ld_shlibs_CXX=no
19809 ;;
19810 esac
19811 ;;
19812
19813 vxworks*)
19814 # FIXME: insert proper C++ library support
19815 ld_shlibs_CXX=no
19816 ;;
19817
19818 *)
19819 # FIXME: insert proper C++ library support
19820 ld_shlibs_CXX=no
19821 ;;
19822 esac
19823
19824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19825 printf "%s\n" "$ld_shlibs_CXX" >&6; }
19826 test no = "$ld_shlibs_CXX" && can_build_shared=no
19827
19828 GCC_CXX=$GXX
19829 LD_CXX=$LD
19830
19831 ## CAVEAT EMPTOR:
19832 ## There is no encapsulation within the following macros, do not change
19833 ## the running order or otherwise move them around unless you know exactly
19834 ## what you are doing...
19835 # Dependencies to place before and after the object being linked:
19836 predep_objects_CXX=
19837 postdep_objects_CXX=
19838 predeps_CXX=
19839 postdeps_CXX=
19840 compiler_lib_search_path_CXX=
19841
19842 cat > conftest.$ac_ext <<_LT_EOF
19843 class Foo
19844 {
19845 public:
19846 Foo (void) { a = 0; }
19847 private:
19848 int a;
19849 };
19850 _LT_EOF
19851
19852
19853 _lt_libdeps_save_CFLAGS=$CFLAGS
19854 case "$CC $CFLAGS " in #(
19855 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19856 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
19857 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
19858 esac
19859
19860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19861 (eval $ac_compile) 2>&5
19862 ac_status=$?
19863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19864 test $ac_status = 0; }; then
19865 # Parse the compiler output and extract the necessary
19866 # objects, libraries and library flags.
19867
19868 # Sentinel used to keep track of whether or not we are before
19869 # the conftest object file.
19870 pre_test_object_deps_done=no
19871
19872 for p in `eval "$output_verbose_link_cmd"`; do
19873 case $prev$p in
19874
19875 -L* | -R* | -l*)
19876 # Some compilers place space between "-{L,R,l}" and the path.
19877 # Remove the space.
19878 if test x-L = x"$p" ||
19879 test x-R = x"$p" ||
19880 test x-l = x"$p"; then
19881 prev=$p
19882 continue
19883 fi
19884
19885 # Expand the sysroot to ease extracting the directories later.
19886 if test -z "$prev"; then
19887 case $p in
19888 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19889 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19890 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19891 esac
19892 fi
19893 case $p in
19894 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19895 esac
19896 if test no = "$pre_test_object_deps_done"; then
19897 case $prev in
19898 -L | -R)
19899 # Internal compiler library paths should come after those
19900 # provided the user. The postdeps already come after the
19901 # user supplied libs so there is no need to process them.
19902 if test -z "$compiler_lib_search_path_CXX"; then
19903 compiler_lib_search_path_CXX=$prev$p
19904 else
19905 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
19906 fi
19907 ;;
19908 # The "-l" case would never come before the object being
19909 # linked, so don't bother handling this case.
19910 esac
19911 else
19912 if test -z "$postdeps_CXX"; then
19913 postdeps_CXX=$prev$p
19914 else
19915 postdeps_CXX="${postdeps_CXX} $prev$p"
19916 fi
19917 fi
19918 prev=
19919 ;;
19920
19921 *.lto.$objext) ;; # Ignore GCC LTO objects
19922 *.$objext)
19923 # This assumes that the test object file only shows up
19924 # once in the compiler output.
19925 if test "$p" = "conftest.$objext"; then
19926 pre_test_object_deps_done=yes
19927 continue
19928 fi
19929
19930 if test no = "$pre_test_object_deps_done"; then
19931 if test -z "$predep_objects_CXX"; then
19932 predep_objects_CXX=$p
19933 else
19934 predep_objects_CXX="$predep_objects_CXX $p"
19935 fi
19936 else
19937 if test -z "$postdep_objects_CXX"; then
19938 postdep_objects_CXX=$p
19939 else
19940 postdep_objects_CXX="$postdep_objects_CXX $p"
19941 fi
19942 fi
19943 ;;
19944
19945 *) ;; # Ignore the rest.
19946
19947 esac
19948 done
19949
19950 # Clean up.
19951 rm -f a.out a.exe
19952 else
19953 echo "libtool.m4: error: problem compiling CXX test program"
19954 fi
19955
19956 $RM -f confest.$objext
19957 CFLAGS=$_lt_libdeps_save_CFLAGS
19958
19959 # PORTME: override above test on systems where it is broken
19960 case $host_os in
19961 interix[3-9]*)
19962 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19963 # hack all around it, let's just trust "g++" to DTRT.
19964 predep_objects_CXX=
19965 postdep_objects_CXX=
19966 postdeps_CXX=
19967 ;;
19968 esac
19969
19970
19971 case " $postdeps_CXX " in
19972 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19973 esac
19974 compiler_lib_search_dirs_CXX=
19975 if test -n "${compiler_lib_search_path_CXX}"; then
19976 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
19977 fi
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009 lt_prog_compiler_wl_CXX=
20010 lt_prog_compiler_pic_CXX=
20011 lt_prog_compiler_static_CXX=
20012
20013
20014 # C++ specific cases for pic, static, wl, etc.
20015 if test yes = "$GXX"; then
20016 lt_prog_compiler_wl_CXX='-Wl,'
20017 lt_prog_compiler_static_CXX='-static'
20018
20019 case $host_os in
20020 aix*)
20021 # All AIX code is PIC.
20022 if test ia64 = "$host_cpu"; then
20023 # AIX 5 now supports IA64 processor
20024 lt_prog_compiler_static_CXX='-Bstatic'
20025 fi
20026 lt_prog_compiler_pic_CXX='-fPIC'
20027 ;;
20028
20029 amigaos*)
20030 case $host_cpu in
20031 powerpc)
20032 # see comment about AmigaOS4 .so support
20033 lt_prog_compiler_pic_CXX='-fPIC'
20034 ;;
20035 m68k)
20036 # FIXME: we need at least 68020 code to build shared libraries, but
20037 # adding the '-m68020' flag to GCC prevents building anything better,
20038 # like '-m68040'.
20039 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20040 ;;
20041 esac
20042 ;;
20043
20044 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20045 # PIC is the default for these OSes.
20046 ;;
20047 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
20048 # This hack is so that the source file can tell whether it is being
20049 # built for inclusion in a dll (and should export symbols for example).
20050 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20051 # (--disable-auto-import) libraries
20052 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20053 case $host_os in
20054 os2*)
20055 lt_prog_compiler_static_CXX='$wl-static'
20056 ;;
20057 esac
20058 ;;
20059 darwin* | rhapsody*)
20060 # PIC is the default on this platform
20061 # Common symbols not allowed in MH_DYLIB files
20062 lt_prog_compiler_pic_CXX='-fno-common'
20063 ;;
20064 *djgpp*)
20065 # DJGPP does not support shared libraries at all
20066 lt_prog_compiler_pic_CXX=
20067 ;;
20068 haiku*)
20069 # PIC is the default for Haiku.
20070 # The "-static" flag exists, but is broken.
20071 lt_prog_compiler_static_CXX=
20072 ;;
20073 interix[3-9]*)
20074 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20075 # Instead, we relocate shared libraries at runtime.
20076 ;;
20077 sysv4*MP*)
20078 if test -d /usr/nec; then
20079 lt_prog_compiler_pic_CXX=-Kconform_pic
20080 fi
20081 ;;
20082 hpux*)
20083 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20084 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20085 # sets the default TLS model and affects inlining.
20086 case $host_cpu in
20087 hppa*64*)
20088 ;;
20089 *)
20090 lt_prog_compiler_pic_CXX='-fPIC'
20091 ;;
20092 esac
20093 ;;
20094 *qnx* | *nto*)
20095 # QNX uses GNU C++, but need to define -shared option too, otherwise
20096 # it will coredump.
20097 lt_prog_compiler_pic_CXX='-fPIC -shared'
20098 ;;
20099 *)
20100 lt_prog_compiler_pic_CXX='-fPIC'
20101 ;;
20102 esac
20103 else
20104 case $host_os in
20105 aix[4-9]*)
20106 # All AIX code is PIC.
20107 if test ia64 = "$host_cpu"; then
20108 # AIX 5 now supports IA64 processor
20109 lt_prog_compiler_static_CXX='-Bstatic'
20110 else
20111 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20112 fi
20113 ;;
20114 chorus*)
20115 case $cc_basename in
20116 cxch68*)
20117 # Green Hills C++ Compiler
20118 # _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"
20119 ;;
20120 esac
20121 ;;
20122 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
20123 # This hack is so that the source file can tell whether it is being
20124 # built for inclusion in a dll (and should export symbols for example).
20125 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20126 ;;
20127 dgux*)
20128 case $cc_basename in
20129 ec++*)
20130 lt_prog_compiler_pic_CXX='-KPIC'
20131 ;;
20132 ghcx*)
20133 # Green Hills C++ Compiler
20134 lt_prog_compiler_pic_CXX='-pic'
20135 ;;
20136 *)
20137 ;;
20138 esac
20139 ;;
20140 freebsd* | dragonfly* | midnightbsd*)
20141 # FreeBSD uses GNU C++
20142 ;;
20143 hpux9* | hpux10* | hpux11*)
20144 case $cc_basename in
20145 CC*)
20146 lt_prog_compiler_wl_CXX='-Wl,'
20147 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20148 if test ia64 != "$host_cpu"; then
20149 lt_prog_compiler_pic_CXX='+Z'
20150 fi
20151 ;;
20152 aCC*)
20153 lt_prog_compiler_wl_CXX='-Wl,'
20154 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20155 case $host_cpu in
20156 hppa*64*|ia64*)
20157 # +Z the default
20158 ;;
20159 *)
20160 lt_prog_compiler_pic_CXX='+Z'
20161 ;;
20162 esac
20163 ;;
20164 *)
20165 ;;
20166 esac
20167 ;;
20168 interix*)
20169 # This is c89, which is MS Visual C++ (no shared libs)
20170 # Anyone wants to do a port?
20171 ;;
20172 irix5* | irix6* | nonstopux*)
20173 case $cc_basename in
20174 CC*)
20175 lt_prog_compiler_wl_CXX='-Wl,'
20176 lt_prog_compiler_static_CXX='-non_shared'
20177 # CC pic flag -KPIC is the default.
20178 ;;
20179 *)
20180 ;;
20181 esac
20182 ;;
20183 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20184 case $cc_basename in
20185 KCC*)
20186 # KAI C++ Compiler
20187 lt_prog_compiler_wl_CXX='--backend -Wl,'
20188 lt_prog_compiler_pic_CXX='-fPIC'
20189 ;;
20190 ecpc* )
20191 # old Intel C++ for x86_64, which still supported -KPIC.
20192 lt_prog_compiler_wl_CXX='-Wl,'
20193 lt_prog_compiler_pic_CXX='-KPIC'
20194 lt_prog_compiler_static_CXX='-static'
20195 ;;
20196 icpc* )
20197 # Intel C++, used to be incompatible with GCC.
20198 # ICC 10 doesn't accept -KPIC any more.
20199 lt_prog_compiler_wl_CXX='-Wl,'
20200 lt_prog_compiler_pic_CXX='-fPIC'
20201 lt_prog_compiler_static_CXX='-static'
20202 ;;
20203 pgCC* | pgcpp*)
20204 # Portland Group C++ compiler
20205 lt_prog_compiler_wl_CXX='-Wl,'
20206 lt_prog_compiler_pic_CXX='-fpic'
20207 lt_prog_compiler_static_CXX='-Bstatic'
20208 ;;
20209 cxx*)
20210 # Compaq C++
20211 # Make sure the PIC flag is empty. It appears that all Alpha
20212 # Linux and Compaq Tru64 Unix objects are PIC.
20213 lt_prog_compiler_pic_CXX=
20214 lt_prog_compiler_static_CXX='-non_shared'
20215 ;;
20216 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20217 # IBM XL 8.0, 9.0 on PPC and BlueGene
20218 lt_prog_compiler_wl_CXX='-Wl,'
20219 lt_prog_compiler_pic_CXX='-qpic'
20220 lt_prog_compiler_static_CXX='-qstaticlink'
20221 ;;
20222 *)
20223 case `$CC -V 2>&1 | $SED 5q` in
20224 *Sun\ C*)
20225 # Sun C++ 5.9
20226 lt_prog_compiler_pic_CXX='-KPIC'
20227 lt_prog_compiler_static_CXX='-Bstatic'
20228 lt_prog_compiler_wl_CXX='-Qoption ld '
20229 ;;
20230 esac
20231 ;;
20232 esac
20233 ;;
20234 lynxos*)
20235 ;;
20236 m88k*)
20237 ;;
20238 mvs*)
20239 case $cc_basename in
20240 cxx*)
20241 lt_prog_compiler_pic_CXX='-W c,exportall'
20242 ;;
20243 *)
20244 ;;
20245 esac
20246 ;;
20247 netbsd* | netbsdelf*-gnu)
20248 ;;
20249 *-mlibc)
20250 ;;
20251 *qnx* | *nto*)
20252 # QNX uses GNU C++, but need to define -shared option too, otherwise
20253 # it will coredump.
20254 lt_prog_compiler_pic_CXX='-fPIC -shared'
20255 ;;
20256 osf3* | osf4* | osf5*)
20257 case $cc_basename in
20258 KCC*)
20259 lt_prog_compiler_wl_CXX='--backend -Wl,'
20260 ;;
20261 RCC*)
20262 # Rational C++ 2.4.1
20263 lt_prog_compiler_pic_CXX='-pic'
20264 ;;
20265 cxx*)
20266 # Digital/Compaq C++
20267 lt_prog_compiler_wl_CXX='-Wl,'
20268 # Make sure the PIC flag is empty. It appears that all Alpha
20269 # Linux and Compaq Tru64 Unix objects are PIC.
20270 lt_prog_compiler_pic_CXX=
20271 lt_prog_compiler_static_CXX='-non_shared'
20272 ;;
20273 *)
20274 ;;
20275 esac
20276 ;;
20277 psos*)
20278 ;;
20279 serenity*)
20280 ;;
20281 solaris*)
20282 case $cc_basename in
20283 CC* | sunCC*)
20284 # Sun C++ 4.2, 5.x and Centerline C++
20285 lt_prog_compiler_pic_CXX='-KPIC'
20286 lt_prog_compiler_static_CXX='-Bstatic'
20287 lt_prog_compiler_wl_CXX='-Qoption ld '
20288 ;;
20289 gcx*)
20290 # Green Hills C++ Compiler
20291 lt_prog_compiler_pic_CXX='-PIC'
20292 ;;
20293 *)
20294 ;;
20295 esac
20296 ;;
20297 sunos4*)
20298 case $cc_basename in
20299 CC*)
20300 # Sun C++ 4.x
20301 lt_prog_compiler_pic_CXX='-pic'
20302 lt_prog_compiler_static_CXX='-Bstatic'
20303 ;;
20304 lcc*)
20305 # Lucid
20306 lt_prog_compiler_pic_CXX='-pic'
20307 ;;
20308 *)
20309 ;;
20310 esac
20311 ;;
20312 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20313 case $cc_basename in
20314 CC*)
20315 lt_prog_compiler_wl_CXX='-Wl,'
20316 lt_prog_compiler_pic_CXX='-KPIC'
20317 lt_prog_compiler_static_CXX='-Bstatic'
20318 ;;
20319 esac
20320 ;;
20321 tandem*)
20322 case $cc_basename in
20323 NCC*)
20324 # NonStop-UX NCC 3.20
20325 lt_prog_compiler_pic_CXX='-KPIC'
20326 ;;
20327 *)
20328 ;;
20329 esac
20330 ;;
20331 vxworks*)
20332 ;;
20333 *)
20334 lt_prog_compiler_can_build_shared_CXX=no
20335 ;;
20336 esac
20337 fi
20338
20339 case $host_os in
20340 # For platforms that do not support PIC, -DPIC is meaningless:
20341 *djgpp*)
20342 lt_prog_compiler_pic_CXX=
20343 ;;
20344 *)
20345 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20346 ;;
20347 esac
20348
20349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20350 printf %s "checking for $compiler option to produce PIC... " >&6; }
20351 if test ${lt_cv_prog_compiler_pic_CXX+y}
20352 then :
20353 printf %s "(cached) " >&6
20354 else case e in #(
20355 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
20356 esac
20357 fi
20358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20359 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
20360 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20361
20362 #
20363 # Check to make sure the PIC flag actually works.
20364 #
20365 if test -n "$lt_prog_compiler_pic_CXX"; then
20366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20367 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20368 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
20369 then :
20370 printf %s "(cached) " >&6
20371 else case e in #(
20372 e) lt_cv_prog_compiler_pic_works_CXX=no
20373 ac_outfile=conftest.$ac_objext
20374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20375 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
20376 # Insert the option either (1) after the last *FLAGS variable, or
20377 # (2) before a word containing "conftest.", or (3) at the end.
20378 # Note that $ac_compile itself does not contain backslashes and begins
20379 # with a dollar sign (not a hyphen), so the echo should work correctly.
20380 # The option is referenced via a variable to avoid confusing sed.
20381 lt_compile=`echo "$ac_compile" | $SED \
20382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20384 -e 's:$: $lt_compiler_flag:'`
20385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20386 (eval "$lt_compile" 2>conftest.err)
20387 ac_status=$?
20388 cat conftest.err >&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 if (exit $ac_status) && test -s "$ac_outfile"; then
20391 # The compiler can only warn and ignore the option if not recognized
20392 # So say no if there are warnings other than the usual output.
20393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20395 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20396 lt_cv_prog_compiler_pic_works_CXX=yes
20397 fi
20398 fi
20399 $RM conftest*
20400 ;;
20401 esac
20402 fi
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20404 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20405
20406 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
20407 case $lt_prog_compiler_pic_CXX in
20408 "" | " "*) ;;
20409 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20410 esac
20411 else
20412 lt_prog_compiler_pic_CXX=
20413 lt_prog_compiler_can_build_shared_CXX=no
20414 fi
20415
20416 fi
20417
20418
20419
20420
20421
20422 #
20423 # Check to make sure the static flag actually works.
20424 #
20425 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20427 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20428 if test ${lt_cv_prog_compiler_static_works_CXX+y}
20429 then :
20430 printf %s "(cached) " >&6
20431 else case e in #(
20432 e) lt_cv_prog_compiler_static_works_CXX=no
20433 save_LDFLAGS=$LDFLAGS
20434 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20437 # The linker can only warn and ignore the option if not recognized
20438 # So say no if there are warnings
20439 if test -s conftest.err; then
20440 # Append any errors to the config.log.
20441 cat conftest.err 1>&5
20442 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20444 if diff conftest.exp conftest.er2 >/dev/null; then
20445 lt_cv_prog_compiler_static_works_CXX=yes
20446 fi
20447 else
20448 lt_cv_prog_compiler_static_works_CXX=yes
20449 fi
20450 fi
20451 $RM -r conftest*
20452 LDFLAGS=$save_LDFLAGS
20453 ;;
20454 esac
20455 fi
20456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20457 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20458
20459 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
20460 :
20461 else
20462 lt_prog_compiler_static_CXX=
20463 fi
20464
20465
20466
20467
20468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20469 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20470 if test ${lt_cv_prog_compiler_c_o_CXX+y}
20471 then :
20472 printf %s "(cached) " >&6
20473 else case e in #(
20474 e) lt_cv_prog_compiler_c_o_CXX=no
20475 $RM -r conftest 2>/dev/null
20476 mkdir conftest
20477 cd conftest
20478 mkdir out
20479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20480
20481 lt_compiler_flag="-o out/conftest2.$ac_objext"
20482 # Insert the option either (1) after the last *FLAGS variable, or
20483 # (2) before a word containing "conftest.", or (3) at the end.
20484 # Note that $ac_compile itself does not contain backslashes and begins
20485 # with a dollar sign (not a hyphen), so the echo should work correctly.
20486 lt_compile=`echo "$ac_compile" | $SED \
20487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20489 -e 's:$: $lt_compiler_flag:'`
20490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20491 (eval "$lt_compile" 2>out/conftest.err)
20492 ac_status=$?
20493 cat out/conftest.err >&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20496 then
20497 # The compiler can only warn and ignore the option if not recognized
20498 # So say no if there are warnings
20499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20500 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20501 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20502 lt_cv_prog_compiler_c_o_CXX=yes
20503 fi
20504 fi
20505 chmod u+w . 2>&5
20506 $RM conftest*
20507 # SGI C++ compiler will create directory out/ii_files/ for
20508 # template instantiation
20509 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20510 $RM out/* && rmdir out
20511 cd ..
20512 $RM -r conftest
20513 $RM conftest*
20514 ;;
20515 esac
20516 fi
20517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20518 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20519
20520
20521
20522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20523 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20524 if test ${lt_cv_prog_compiler_c_o_CXX+y}
20525 then :
20526 printf %s "(cached) " >&6
20527 else case e in #(
20528 e) lt_cv_prog_compiler_c_o_CXX=no
20529 $RM -r conftest 2>/dev/null
20530 mkdir conftest
20531 cd conftest
20532 mkdir out
20533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20534
20535 lt_compiler_flag="-o out/conftest2.$ac_objext"
20536 # Insert the option either (1) after the last *FLAGS variable, or
20537 # (2) before a word containing "conftest.", or (3) at the end.
20538 # Note that $ac_compile itself does not contain backslashes and begins
20539 # with a dollar sign (not a hyphen), so the echo should work correctly.
20540 lt_compile=`echo "$ac_compile" | $SED \
20541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20543 -e 's:$: $lt_compiler_flag:'`
20544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20545 (eval "$lt_compile" 2>out/conftest.err)
20546 ac_status=$?
20547 cat out/conftest.err >&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20550 then
20551 # The compiler can only warn and ignore the option if not recognized
20552 # So say no if there are warnings
20553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20556 lt_cv_prog_compiler_c_o_CXX=yes
20557 fi
20558 fi
20559 chmod u+w . 2>&5
20560 $RM conftest*
20561 # SGI C++ compiler will create directory out/ii_files/ for
20562 # template instantiation
20563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20564 $RM out/* && rmdir out
20565 cd ..
20566 $RM -r conftest
20567 $RM conftest*
20568 ;;
20569 esac
20570 fi
20571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20572 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20573
20574
20575
20576
20577 hard_links=nottested
20578 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
20579 # do not overwrite the value of need_locks provided by the user
20580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20581 printf %s "checking if we can lock with hard links... " >&6; }
20582 hard_links=yes
20583 $RM conftest*
20584 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20585 touch conftest.a
20586 ln conftest.a conftest.b 2>&5 || hard_links=no
20587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20589 printf "%s\n" "$hard_links" >&6; }
20590 if test no = "$hard_links"; then
20591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
20592 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
20593 need_locks=warn
20594 fi
20595 else
20596 need_locks=no
20597 fi
20598
20599
20600
20601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20602 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20603
20604 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20605 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20606 case $host_os in
20607 aix[4-9]*)
20608 # If we're using GNU nm, then we don't want the "-C" option.
20609 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
20610 # Without the "-l" option, or with the "-B" option, AIX nm treats
20611 # weak defined symbols like other global defined symbols, whereas
20612 # GNU nm marks them as "W".
20613 # While the 'weak' keyword is ignored in the Export File, we need
20614 # it in the Import File for the 'aix-soname' feature, so we have
20615 # to replace the "-B" option with "-P" for AIX nm.
20616 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20617 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
20618 else
20619 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
20620 fi
20621 ;;
20622 pw32*)
20623 export_symbols_cmds_CXX=$ltdll_cmds
20624 ;;
20625 cygwin* | mingw* | windows* | cegcc*)
20626 case $cc_basename in
20627 cl* | icl*)
20628 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20629 ;;
20630 *)
20631 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'
20632 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20633 ;;
20634 esac
20635 ;;
20636 linux* | k*bsd*-gnu | gnu*)
20637 link_all_deplibs_CXX=no
20638 ;;
20639 *)
20640 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20641 ;;
20642 esac
20643
20644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20645 printf "%s\n" "$ld_shlibs_CXX" >&6; }
20646 test no = "$ld_shlibs_CXX" && can_build_shared=no
20647
20648 with_gnu_ld_CXX=$with_gnu_ld
20649
20650
20651
20652
20653
20654
20655 #
20656 # Do we need to explicitly link libc?
20657 #
20658 case "x$archive_cmds_need_lc_CXX" in
20659 x|xyes)
20660 # Assume -lc should be added
20661 archive_cmds_need_lc_CXX=yes
20662
20663 if test yes,yes = "$GCC,$enable_shared"; then
20664 case $archive_cmds_CXX in
20665 *'~'*)
20666 # FIXME: we may have to deal with multi-command sequences.
20667 ;;
20668 '$CC '*)
20669 # Test whether the compiler implicitly links with -lc since on some
20670 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20671 # to ld, don't add -lc before -lgcc.
20672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20673 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
20674 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
20675 then :
20676 printf %s "(cached) " >&6
20677 else case e in #(
20678 e) $RM conftest*
20679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20680
20681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20682 (eval $ac_compile) 2>&5
20683 ac_status=$?
20684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20685 test $ac_status = 0; } 2>conftest.err; then
20686 soname=conftest
20687 lib=conftest
20688 libobjs=conftest.$ac_objext
20689 deplibs=
20690 wl=$lt_prog_compiler_wl_CXX
20691 pic_flag=$lt_prog_compiler_pic_CXX
20692 compiler_flags=-v
20693 linker_flags=-v
20694 verstring=
20695 output_objdir=.
20696 libname=conftest
20697 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20698 allow_undefined_flag_CXX=
20699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20700 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20701 ac_status=$?
20702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20703 test $ac_status = 0; }
20704 then
20705 lt_cv_archive_cmds_need_lc_CXX=no
20706 else
20707 lt_cv_archive_cmds_need_lc_CXX=yes
20708 fi
20709 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20710 else
20711 cat conftest.err 1>&5
20712 fi
20713 $RM conftest*
20714 ;;
20715 esac
20716 fi
20717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20718 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20719 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20720 ;;
20721 esac
20722 fi
20723 ;;
20724 esac
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20788 printf %s "checking dynamic linker characteristics... " >&6; }
20789
20790 library_names_spec=
20791 libname_spec='lib$name'
20792 soname_spec=
20793 shrext_cmds=.so
20794 postinstall_cmds=
20795 postuninstall_cmds=
20796 finish_cmds=
20797 finish_eval=
20798 shlibpath_var=
20799 shlibpath_overrides_runpath=unknown
20800 version_type=none
20801 dynamic_linker="$host_os ld.so"
20802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20803 need_lib_prefix=unknown
20804 hardcode_into_libs=no
20805
20806 # when you set need_version to no, make sure it does not cause -set_version
20807 # flags to be left without arguments
20808 need_version=unknown
20809
20810
20811
20812 case $host_os in
20813 aix3*)
20814 version_type=linux # correct to gnu/linux during the next big refactor
20815 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
20816 shlibpath_var=LIBPATH
20817
20818 # AIX 3 has no versioning support, so we append a major version to the name.
20819 soname_spec='$libname$release$shared_ext$major'
20820 ;;
20821
20822 aix[4-9]*)
20823 version_type=linux # correct to gnu/linux during the next big refactor
20824 need_lib_prefix=no
20825 need_version=no
20826 hardcode_into_libs=yes
20827 if test ia64 = "$host_cpu"; then
20828 # AIX 5 supports IA64
20829 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
20830 shlibpath_var=LD_LIBRARY_PATH
20831 else
20832 # With GCC up to 2.95.x, collect2 would create an import file
20833 # for dependence libraries. The import file would start with
20834 # the line '#! .'. This would cause the generated library to
20835 # depend on '.', always an invalid library. This was fixed in
20836 # development snapshots of GCC prior to 3.0.
20837 case $host_os in
20838 aix4 | aix4.[01] | aix4.[01].*)
20839 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20840 echo ' yes '
20841 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
20842 :
20843 else
20844 can_build_shared=no
20845 fi
20846 ;;
20847 esac
20848 # Using Import Files as archive members, it is possible to support
20849 # filename-based versioning of shared library archives on AIX. While
20850 # this would work for both with and without runtime linking, it will
20851 # prevent static linking of such archives. So we do filename-based
20852 # shared library versioning with .so extension only, which is used
20853 # when both runtime linking and shared linking is enabled.
20854 # Unfortunately, runtime linking may impact performance, so we do
20855 # not want this to be the default eventually. Also, we use the
20856 # versioned .so libs for executables only if there is the -brtl
20857 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
20858 # To allow for filename-based versioning support, we need to create
20859 # libNAME.so.V as an archive file, containing:
20860 # *) an Import File, referring to the versioned filename of the
20861 # archive as well as the shared archive member, telling the
20862 # bitwidth (32 or 64) of that shared object, and providing the
20863 # list of exported symbols of that shared object, eventually
20864 # decorated with the 'weak' keyword
20865 # *) the shared object with the F_LOADONLY flag set, to really avoid
20866 # it being seen by the linker.
20867 # At run time we better use the real file rather than another symlink,
20868 # but for link time we create the symlink libNAME.so -> libNAME.so.V
20869
20870 case $with_aix_soname,$aix_use_runtimelinking in
20871 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
20872 # soname into executable. Probably we can add versioning support to
20873 # collect2, so additional links can be useful in future.
20874 aix,yes) # traditional libtool
20875 dynamic_linker='AIX unversionable lib.so'
20876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20877 # instead of lib<name>.a to let people know that these are not
20878 # typical AIX shared libraries.
20879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20880 ;;
20881 aix,no) # traditional AIX only
20882 dynamic_linker='AIX lib.a(lib.so.V)'
20883 # We preserve .a as extension for shared libraries through AIX4.2
20884 # and later when we are not doing run time linking.
20885 library_names_spec='$libname$release.a $libname.a'
20886 soname_spec='$libname$release$shared_ext$major'
20887 ;;
20888 svr4,*) # full svr4 only
20889 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
20890 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20891 # We do not specify a path in Import Files, so LIBPATH fires.
20892 shlibpath_overrides_runpath=yes
20893 ;;
20894 *,yes) # both, prefer svr4
20895 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
20896 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20897 # unpreferred sharedlib libNAME.a needs extra handling
20898 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
20899 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
20900 # We do not specify a path in Import Files, so LIBPATH fires.
20901 shlibpath_overrides_runpath=yes
20902 ;;
20903 *,no) # both, prefer aix
20904 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
20905 library_names_spec='$libname$release.a $libname.a'
20906 soname_spec='$libname$release$shared_ext$major'
20907 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
20908 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
20909 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
20910 ;;
20911 esac
20912 shlibpath_var=LIBPATH
20913 fi
20914 ;;
20915
20916 amigaos*)
20917 case $host_cpu in
20918 powerpc)
20919 # Since July 2007 AmigaOS4 officially supports .so libraries.
20920 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20922 ;;
20923 m68k)
20924 library_names_spec='$libname.ixlibrary $libname.a'
20925 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20926 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20927 ;;
20928 esac
20929 ;;
20930
20931 beos*)
20932 library_names_spec='$libname$shared_ext'
20933 dynamic_linker="$host_os ld.so"
20934 shlibpath_var=LIBRARY_PATH
20935 ;;
20936
20937 bsdi[45]*)
20938 version_type=linux # correct to gnu/linux during the next big refactor
20939 need_version=no
20940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20941 soname_spec='$libname$release$shared_ext$major'
20942 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20943 shlibpath_var=LD_LIBRARY_PATH
20944 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20945 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20946 # the default ld.so.conf also contains /usr/contrib/lib and
20947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20948 # libtool to hard-code these into programs
20949 ;;
20950
20951 cygwin* | mingw* | windows* | pw32* | cegcc*)
20952 version_type=windows
20953 shrext_cmds=.dll
20954 need_version=no
20955 need_lib_prefix=no
20956
20957 case $GCC,$cc_basename in
20958 yes,*)
20959 # gcc
20960 library_names_spec='$libname.dll.a'
20961 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20962 # If user builds GCC with multilib enabled,
20963 # it should just install on $(libdir)
20964 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
20965 if test xyes = x"$multilib"; then
20966 postinstall_cmds='base_file=`basename \$file`~
20967 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20968 dldir=$destdir/`dirname \$dlpath`~
20969 $install_prog $dir/$dlname $destdir/$dlname~
20970 chmod a+x $destdir/$dlname~
20971 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20972 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
20973 fi'
20974 else
20975 postinstall_cmds='base_file=`basename \$file`~
20976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20977 dldir=$destdir/`dirname \$dlpath`~
20978 test -d \$dldir || mkdir -p \$dldir~
20979 $install_prog $dir/$dlname \$dldir/$dlname~
20980 chmod a+x \$dldir/$dlname~
20981 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20982 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20983 fi'
20984 fi
20985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20986 dlpath=$dir/\$dldll~
20987 $RM \$dlpath'
20988 shlibpath_overrides_runpath=yes
20989
20990 case $host_os in
20991 cygwin*)
20992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20993 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20994
20995 ;;
20996 mingw* | windows* | cegcc*)
20997 # MinGW DLLs use traditional 'lib' prefix
20998 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20999 ;;
21000 pw32*)
21001 # pw32 DLLs use 'pw' prefix rather than 'lib'
21002 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21003 ;;
21004 esac
21005 dynamic_linker='Win32 ld.exe'
21006 ;;
21007
21008 *,cl* | *,icl*)
21009 # Native MSVC or ICC
21010 libname_spec='$name'
21011 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21012 library_names_spec='$libname.dll.lib'
21013
21014 case $build_os in
21015 mingw* | windows*)
21016 sys_lib_search_path_spec=
21017 lt_save_ifs=$IFS
21018 IFS=';'
21019 for lt_path in $LIB
21020 do
21021 IFS=$lt_save_ifs
21022 # Let DOS variable expansion print the short 8.3 style file name.
21023 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21024 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21025 done
21026 IFS=$lt_save_ifs
21027 # Convert to MSYS style.
21028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21029 ;;
21030 cygwin*)
21031 # Convert to unix form, then to dos form, then back to unix form
21032 # but this time dos style (no spaces!) so that the unix form looks
21033 # like /cygdrive/c/PROGRA~1:/cygdr...
21034 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21035 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21036 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21037 ;;
21038 *)
21039 sys_lib_search_path_spec=$LIB
21040 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21041 # It is most probably a Windows format PATH.
21042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21043 else
21044 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21045 fi
21046 # FIXME: find the short name or the path components, as spaces are
21047 # common. (e.g. "Program Files" -> "PROGRA~1")
21048 ;;
21049 esac
21050
21051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21052 postinstall_cmds='base_file=`basename \$file`~
21053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21054 dldir=$destdir/`dirname \$dlpath`~
21055 test -d \$dldir || mkdir -p \$dldir~
21056 $install_prog $dir/$dlname \$dldir/$dlname'
21057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21058 dlpath=$dir/\$dldll~
21059 $RM \$dlpath'
21060 shlibpath_overrides_runpath=yes
21061 dynamic_linker='Win32 link.exe'
21062 ;;
21063
21064 *)
21065 # Assume MSVC and ICC wrapper
21066 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21067 dynamic_linker='Win32 ld.exe'
21068 ;;
21069 esac
21070 # FIXME: first we should search . and the directory the executable is in
21071 shlibpath_var=PATH
21072 ;;
21073
21074 darwin* | rhapsody*)
21075 dynamic_linker="$host_os dyld"
21076 version_type=darwin
21077 need_lib_prefix=no
21078 need_version=no
21079 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21080 soname_spec='$libname$release$major$shared_ext'
21081 shlibpath_overrides_runpath=yes
21082 shlibpath_var=DYLD_LIBRARY_PATH
21083 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21084
21085 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21086 ;;
21087
21088 dgux*)
21089 version_type=linux # correct to gnu/linux during the next big refactor
21090 need_lib_prefix=no
21091 need_version=no
21092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21093 soname_spec='$libname$release$shared_ext$major'
21094 shlibpath_var=LD_LIBRARY_PATH
21095 ;;
21096
21097 freebsd* | dragonfly* | midnightbsd*)
21098 # DragonFly does not have aout. When/if they implement a new
21099 # versioning mechanism, adjust this.
21100 if test -x /usr/bin/objformat; then
21101 objformat=`/usr/bin/objformat`
21102 else
21103 case $host_os in
21104 freebsd[23].*) objformat=aout ;;
21105 *) objformat=elf ;;
21106 esac
21107 fi
21108 version_type=freebsd-$objformat
21109 case $version_type in
21110 freebsd-elf*)
21111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21112 soname_spec='$libname$release$shared_ext$major'
21113 need_version=no
21114 need_lib_prefix=no
21115 ;;
21116 freebsd-*)
21117 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21118 need_version=yes
21119 ;;
21120 esac
21121 case $host_cpu in
21122 powerpc64)
21123 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
21124 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
21125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21126 /* end confdefs.h. */
21127 int test_pointer_size[sizeof (void *) - 5];
21128
21129 _ACEOF
21130 if ac_fn_cxx_try_compile "$LINENO"
21131 then :
21132 shlibpath_var=LD_LIBRARY_PATH
21133 else case e in #(
21134 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
21135 esac
21136 fi
21137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21138 ;;
21139 *)
21140 shlibpath_var=LD_LIBRARY_PATH
21141 ;;
21142 esac
21143 case $host_os in
21144 freebsd2.*)
21145 shlibpath_overrides_runpath=yes
21146 ;;
21147 freebsd3.[01]* | freebsdelf3.[01]*)
21148 shlibpath_overrides_runpath=yes
21149 hardcode_into_libs=yes
21150 ;;
21151 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21152 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21153 shlibpath_overrides_runpath=no
21154 hardcode_into_libs=yes
21155 ;;
21156 *) # from 4.6 on, and DragonFly
21157 shlibpath_overrides_runpath=yes
21158 hardcode_into_libs=yes
21159 ;;
21160 esac
21161 ;;
21162
21163 haiku*)
21164 version_type=linux # correct to gnu/linux during the next big refactor
21165 need_lib_prefix=no
21166 need_version=no
21167 dynamic_linker="$host_os runtime_loader"
21168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21169 soname_spec='$libname$release$shared_ext$major'
21170 shlibpath_var=LIBRARY_PATH
21171 shlibpath_overrides_runpath=no
21172 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
21173 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
21174 hardcode_into_libs=no
21175 ;;
21176
21177 hpux9* | hpux10* | hpux11*)
21178 # Give a soname corresponding to the major version so that dld.sl refuses to
21179 # link against other versions.
21180 version_type=sunos
21181 need_lib_prefix=no
21182 need_version=no
21183 case $host_cpu in
21184 ia64*)
21185 shrext_cmds='.so'
21186 hardcode_into_libs=yes
21187 dynamic_linker="$host_os dld.so"
21188 shlibpath_var=LD_LIBRARY_PATH
21189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21191 soname_spec='$libname$release$shared_ext$major'
21192 if test 32 = "$HPUX_IA64_MODE"; then
21193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21194 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21195 else
21196 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21197 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21198 fi
21199 ;;
21200 hppa*64*)
21201 shrext_cmds='.sl'
21202 hardcode_into_libs=yes
21203 dynamic_linker="$host_os dld.sl"
21204 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21207 soname_spec='$libname$release$shared_ext$major'
21208 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21210 ;;
21211 *)
21212 shrext_cmds='.sl'
21213 dynamic_linker="$host_os dld.sl"
21214 shlibpath_var=SHLIB_PATH
21215 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21217 soname_spec='$libname$release$shared_ext$major'
21218 ;;
21219 esac
21220 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21221 postinstall_cmds='chmod 555 $lib'
21222 # or fails outright, so override atomically:
21223 install_override_mode=555
21224 ;;
21225
21226 interix[3-9]*)
21227 version_type=linux # correct to gnu/linux during the next big refactor
21228 need_lib_prefix=no
21229 need_version=no
21230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21231 soname_spec='$libname$release$shared_ext$major'
21232 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21233 shlibpath_var=LD_LIBRARY_PATH
21234 shlibpath_overrides_runpath=no
21235 hardcode_into_libs=yes
21236 ;;
21237
21238 irix5* | irix6* | nonstopux*)
21239 case $host_os in
21240 nonstopux*) version_type=nonstopux ;;
21241 *)
21242 if test yes = "$lt_cv_prog_gnu_ld"; then
21243 version_type=linux # correct to gnu/linux during the next big refactor
21244 else
21245 version_type=irix
21246 fi ;;
21247 esac
21248 need_lib_prefix=no
21249 need_version=no
21250 soname_spec='$libname$release$shared_ext$major'
21251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21252 case $host_os in
21253 irix5* | nonstopux*)
21254 libsuff= shlibsuff=
21255 ;;
21256 *)
21257 case $LD in # libtool.m4 will add one of these switches to LD
21258 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21259 libsuff= shlibsuff= libmagic=32-bit;;
21260 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21261 libsuff=32 shlibsuff=N32 libmagic=N32;;
21262 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21263 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21264 *) libsuff= shlibsuff= libmagic=never-match;;
21265 esac
21266 ;;
21267 esac
21268 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21269 shlibpath_overrides_runpath=no
21270 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21271 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21272 hardcode_into_libs=yes
21273 ;;
21274
21275 # No shared lib support for Linux oldld, aout, or coff.
21276 linux*oldld* | linux*aout* | linux*coff*)
21277 dynamic_linker=no
21278 ;;
21279
21280 linux*android*)
21281 version_type=none # Android doesn't support versioned libraries.
21282 need_lib_prefix=no
21283 need_version=no
21284 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
21285 soname_spec='$libname$release$shared_ext'
21286 finish_cmds=
21287 shlibpath_var=LD_LIBRARY_PATH
21288 shlibpath_overrides_runpath=yes
21289
21290 # This implies no fast_install, which is unacceptable.
21291 # Some rework will be needed to allow for fast_install
21292 # before this can be enabled.
21293 hardcode_into_libs=yes
21294
21295 dynamic_linker='Android linker'
21296 # -rpath works at least for libraries that are not overridden by
21297 # libraries installed in system locations.
21298 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21299 ;;
21300
21301 # This must be glibc/ELF.
21302 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21303 version_type=linux # correct to gnu/linux during the next big refactor
21304 need_lib_prefix=no
21305 need_version=no
21306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21307 soname_spec='$libname$release$shared_ext$major'
21308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21309 shlibpath_var=LD_LIBRARY_PATH
21310 shlibpath_overrides_runpath=no
21311
21312 # Some binutils ld are patched to set DT_RUNPATH
21313 if test ${lt_cv_shlibpath_overrides_runpath+y}
21314 then :
21315 printf %s "(cached) " >&6
21316 else case e in #(
21317 e) lt_cv_shlibpath_overrides_runpath=no
21318 save_LDFLAGS=$LDFLAGS
21319 save_libdir=$libdir
21320 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21321 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h. */
21324
21325 int
21326 main (void)
21327 {
21328
21329 ;
21330 return 0;
21331 }
21332 _ACEOF
21333 if ac_fn_cxx_try_link "$LINENO"
21334 then :
21335 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
21336 then :
21337 lt_cv_shlibpath_overrides_runpath=yes
21338 fi
21339 fi
21340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21341 conftest$ac_exeext conftest.$ac_ext
21342 LDFLAGS=$save_LDFLAGS
21343 libdir=$save_libdir
21344 ;;
21345 esac
21346 fi
21347
21348 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21349
21350 # This implies no fast_install, which is unacceptable.
21351 # Some rework will be needed to allow for fast_install
21352 # before this can be enabled.
21353 hardcode_into_libs=yes
21354
21355 # Ideally, we could use ldconfig to report *all* directories which are
21356 # searched for libraries, however this is still not possible. Aside from not
21357 # being certain /sbin/ldconfig is available, command
21358 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21359 # even though it is searched at run-time. Try to do the best guess by
21360 # appending ld.so.conf contents (and includes) to the search path.
21361 if test -f /etc/ld.so.conf; then
21362 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' ' '`
21363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21364 fi
21365
21366 # We used to test for /lib/ld.so.1 and disable shared libraries on
21367 # powerpc, because MkLinux only supported shared libraries with the
21368 # GNU dynamic linker. Since this was broken with cross compilers,
21369 # most powerpc-linux boxes support dynamic linking these days and
21370 # people can always --disable-shared, the test was removed, and we
21371 # assume the GNU/Linux dynamic linker is in use.
21372 dynamic_linker='GNU/Linux ld.so'
21373 ;;
21374
21375 netbsdelf*-gnu)
21376 version_type=linux
21377 need_lib_prefix=no
21378 need_version=no
21379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21380 soname_spec='$libname$release$shared_ext$major'
21381 shlibpath_var=LD_LIBRARY_PATH
21382 shlibpath_overrides_runpath=no
21383 hardcode_into_libs=yes
21384 dynamic_linker='NetBSD ld.elf_so'
21385 ;;
21386
21387 netbsdelf*-gnu)
21388 version_type=linux
21389 need_lib_prefix=no
21390 need_version=no
21391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21392 soname_spec='${libname}${release}${shared_ext}$major'
21393 shlibpath_var=LD_LIBRARY_PATH
21394 shlibpath_overrides_runpath=no
21395 hardcode_into_libs=yes
21396 dynamic_linker='NetBSD ld.elf_so'
21397 ;;
21398
21399 netbsd*)
21400 version_type=sunos
21401 need_lib_prefix=no
21402 need_version=no
21403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21404 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21406 dynamic_linker='NetBSD (a.out) ld.so'
21407 else
21408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21409 soname_spec='$libname$release$shared_ext$major'
21410 dynamic_linker='NetBSD ld.elf_so'
21411 fi
21412 shlibpath_var=LD_LIBRARY_PATH
21413 shlibpath_overrides_runpath=yes
21414 hardcode_into_libs=yes
21415 ;;
21416
21417 *-mlibc)
21418 version_type=linux # correct to gnu/linux during the next big refactor
21419 need_lib_prefix=no
21420 need_version=no
21421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21422 soname_spec='$libname$release$shared_ext$major'
21423 dynamic_linker='mlibc ld.so'
21424 shlibpath_var=LD_LIBRARY_PATH
21425 shlibpath_overrides_runpath=no
21426 hardcode_into_libs=yes
21427 ;;
21428
21429 newsos6)
21430 version_type=linux # correct to gnu/linux during the next big refactor
21431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21432 shlibpath_var=LD_LIBRARY_PATH
21433 shlibpath_overrides_runpath=yes
21434 ;;
21435
21436 *nto* | *qnx*)
21437 version_type=qnx
21438 need_lib_prefix=no
21439 need_version=no
21440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21441 soname_spec='$libname$release$shared_ext$major'
21442 shlibpath_var=LD_LIBRARY_PATH
21443 shlibpath_overrides_runpath=no
21444 hardcode_into_libs=yes
21445 dynamic_linker='ldqnx.so'
21446 ;;
21447
21448 openbsd*)
21449 version_type=sunos
21450 sys_lib_dlsearch_path_spec=/usr/lib
21451 need_lib_prefix=no
21452 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21453 need_version=no
21454 else
21455 need_version=yes
21456 fi
21457 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21459 shlibpath_var=LD_LIBRARY_PATH
21460 shlibpath_overrides_runpath=yes
21461 ;;
21462
21463 os2*)
21464 libname_spec='$name'
21465 version_type=windows
21466 shrext_cmds=.dll
21467 need_version=no
21468 need_lib_prefix=no
21469 # OS/2 can only load a DLL with a base name of 8 characters or less.
21470 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21471 v=$($ECHO $release$versuffix | tr -d .-);
21472 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21473 $ECHO $n$v`$shared_ext'
21474 library_names_spec='${libname}_dll.$libext'
21475 dynamic_linker='OS/2 ld.exe'
21476 shlibpath_var=BEGINLIBPATH
21477 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21479 postinstall_cmds='base_file=`basename \$file`~
21480 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21481 dldir=$destdir/`dirname \$dlpath`~
21482 test -d \$dldir || mkdir -p \$dldir~
21483 $install_prog $dir/$dlname \$dldir/$dlname~
21484 chmod a+x \$dldir/$dlname~
21485 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21486 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21487 fi'
21488 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21489 dlpath=$dir/\$dldll~
21490 $RM \$dlpath'
21491 ;;
21492
21493 osf3* | osf4* | osf5*)
21494 version_type=osf
21495 need_lib_prefix=no
21496 need_version=no
21497 soname_spec='$libname$release$shared_ext$major'
21498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21499 shlibpath_var=LD_LIBRARY_PATH
21500 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21502 ;;
21503
21504 rdos*)
21505 dynamic_linker=no
21506 ;;
21507
21508 serenity*)
21509 version_type=linux # correct to gnu/linux during the next big refactor
21510 need_lib_prefix=no
21511 need_version=no
21512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21513 soname_spec='$libname$release$shared_ext$major'
21514 shlibpath_var=LD_LIBRARY_PATH
21515 shlibpath_overrides_runpath=no
21516 dynamic_linker='SerenityOS LibELF'
21517 ;;
21518
21519 solaris*)
21520 version_type=linux # correct to gnu/linux during the next big refactor
21521 need_lib_prefix=no
21522 need_version=no
21523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21524 soname_spec='$libname$release$shared_ext$major'
21525 shlibpath_var=LD_LIBRARY_PATH
21526 shlibpath_overrides_runpath=yes
21527 hardcode_into_libs=yes
21528 # ldd complains unless libraries are executable
21529 postinstall_cmds='chmod +x $lib'
21530 ;;
21531
21532 sunos4*)
21533 version_type=sunos
21534 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21536 shlibpath_var=LD_LIBRARY_PATH
21537 shlibpath_overrides_runpath=yes
21538 if test yes = "$with_gnu_ld"; then
21539 need_lib_prefix=no
21540 fi
21541 need_version=yes
21542 ;;
21543
21544 sysv4 | sysv4.3*)
21545 version_type=linux # correct to gnu/linux during the next big refactor
21546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21547 soname_spec='$libname$release$shared_ext$major'
21548 shlibpath_var=LD_LIBRARY_PATH
21549 case $host_vendor in
21550 sni)
21551 shlibpath_overrides_runpath=no
21552 need_lib_prefix=no
21553 runpath_var=LD_RUN_PATH
21554 ;;
21555 siemens)
21556 need_lib_prefix=no
21557 ;;
21558 motorola)
21559 need_lib_prefix=no
21560 need_version=no
21561 shlibpath_overrides_runpath=no
21562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21563 ;;
21564 esac
21565 ;;
21566
21567 sysv4*MP*)
21568 if test -d /usr/nec; then
21569 version_type=linux # correct to gnu/linux during the next big refactor
21570 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
21571 soname_spec='$libname$shared_ext.$major'
21572 shlibpath_var=LD_LIBRARY_PATH
21573 fi
21574 ;;
21575
21576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21577 version_type=sco
21578 need_lib_prefix=no
21579 need_version=no
21580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
21581 soname_spec='$libname$release$shared_ext$major'
21582 shlibpath_var=LD_LIBRARY_PATH
21583 shlibpath_overrides_runpath=yes
21584 hardcode_into_libs=yes
21585 if test yes = "$with_gnu_ld"; then
21586 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21587 else
21588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21589 case $host_os in
21590 sco3.2v5*)
21591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21592 ;;
21593 esac
21594 fi
21595 sys_lib_dlsearch_path_spec='/usr/lib'
21596 ;;
21597
21598 tpf*)
21599 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21600 version_type=linux # correct to gnu/linux during the next big refactor
21601 need_lib_prefix=no
21602 need_version=no
21603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21604 shlibpath_var=LD_LIBRARY_PATH
21605 shlibpath_overrides_runpath=no
21606 hardcode_into_libs=yes
21607 ;;
21608
21609 uts4*)
21610 version_type=linux # correct to gnu/linux during the next big refactor
21611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21612 soname_spec='$libname$release$shared_ext$major'
21613 shlibpath_var=LD_LIBRARY_PATH
21614 ;;
21615
21616 emscripten*)
21617 version_type=none
21618 need_lib_prefix=no
21619 need_version=no
21620 library_names_spec='$libname$release$shared_ext'
21621 soname_spec='$libname$release$shared_ext'
21622 finish_cmds=
21623 dynamic_linker="Emscripten linker"
21624 lt_prog_compiler_wl_CXX=
21625 lt_prog_compiler_pic_CXX=
21626 lt_prog_compiler_static_CXX=
21627
21628
21629 # C++ specific cases for pic, static, wl, etc.
21630 if test yes = "$GXX"; then
21631 lt_prog_compiler_wl_CXX='-Wl,'
21632 lt_prog_compiler_static_CXX='-static'
21633
21634 case $host_os in
21635 aix*)
21636 # All AIX code is PIC.
21637 if test ia64 = "$host_cpu"; then
21638 # AIX 5 now supports IA64 processor
21639 lt_prog_compiler_static_CXX='-Bstatic'
21640 fi
21641 lt_prog_compiler_pic_CXX='-fPIC'
21642 ;;
21643
21644 amigaos*)
21645 case $host_cpu in
21646 powerpc)
21647 # see comment about AmigaOS4 .so support
21648 lt_prog_compiler_pic_CXX='-fPIC'
21649 ;;
21650 m68k)
21651 # FIXME: we need at least 68020 code to build shared libraries, but
21652 # adding the '-m68020' flag to GCC prevents building anything better,
21653 # like '-m68040'.
21654 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21655 ;;
21656 esac
21657 ;;
21658
21659 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21660 # PIC is the default for these OSes.
21661 ;;
21662 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
21663 # This hack is so that the source file can tell whether it is being
21664 # built for inclusion in a dll (and should export symbols for example).
21665 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21666 # (--disable-auto-import) libraries
21667 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21668 case $host_os in
21669 os2*)
21670 lt_prog_compiler_static_CXX='$wl-static'
21671 ;;
21672 esac
21673 ;;
21674 darwin* | rhapsody*)
21675 # PIC is the default on this platform
21676 # Common symbols not allowed in MH_DYLIB files
21677 lt_prog_compiler_pic_CXX='-fno-common'
21678 ;;
21679 *djgpp*)
21680 # DJGPP does not support shared libraries at all
21681 lt_prog_compiler_pic_CXX=
21682 ;;
21683 haiku*)
21684 # PIC is the default for Haiku.
21685 # The "-static" flag exists, but is broken.
21686 lt_prog_compiler_static_CXX=
21687 ;;
21688 interix[3-9]*)
21689 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21690 # Instead, we relocate shared libraries at runtime.
21691 ;;
21692 sysv4*MP*)
21693 if test -d /usr/nec; then
21694 lt_prog_compiler_pic_CXX=-Kconform_pic
21695 fi
21696 ;;
21697 hpux*)
21698 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21699 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21700 # sets the default TLS model and affects inlining.
21701 case $host_cpu in
21702 hppa*64*)
21703 ;;
21704 *)
21705 lt_prog_compiler_pic_CXX='-fPIC'
21706 ;;
21707 esac
21708 ;;
21709 *qnx* | *nto*)
21710 # QNX uses GNU C++, but need to define -shared option too, otherwise
21711 # it will coredump.
21712 lt_prog_compiler_pic_CXX='-fPIC -shared'
21713 ;;
21714 *)
21715 lt_prog_compiler_pic_CXX='-fPIC'
21716 ;;
21717 esac
21718 else
21719 case $host_os in
21720 aix[4-9]*)
21721 # All AIX code is PIC.
21722 if test ia64 = "$host_cpu"; then
21723 # AIX 5 now supports IA64 processor
21724 lt_prog_compiler_static_CXX='-Bstatic'
21725 else
21726 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21727 fi
21728 ;;
21729 chorus*)
21730 case $cc_basename in
21731 cxch68*)
21732 # Green Hills C++ Compiler
21733 # _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"
21734 ;;
21735 esac
21736 ;;
21737 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
21738 # This hack is so that the source file can tell whether it is being
21739 # built for inclusion in a dll (and should export symbols for example).
21740 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21741 ;;
21742 dgux*)
21743 case $cc_basename in
21744 ec++*)
21745 lt_prog_compiler_pic_CXX='-KPIC'
21746 ;;
21747 ghcx*)
21748 # Green Hills C++ Compiler
21749 lt_prog_compiler_pic_CXX='-pic'
21750 ;;
21751 *)
21752 ;;
21753 esac
21754 ;;
21755 freebsd* | dragonfly* | midnightbsd*)
21756 # FreeBSD uses GNU C++
21757 ;;
21758 hpux9* | hpux10* | hpux11*)
21759 case $cc_basename in
21760 CC*)
21761 lt_prog_compiler_wl_CXX='-Wl,'
21762 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21763 if test ia64 != "$host_cpu"; then
21764 lt_prog_compiler_pic_CXX='+Z'
21765 fi
21766 ;;
21767 aCC*)
21768 lt_prog_compiler_wl_CXX='-Wl,'
21769 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21770 case $host_cpu in
21771 hppa*64*|ia64*)
21772 # +Z the default
21773 ;;
21774 *)
21775 lt_prog_compiler_pic_CXX='+Z'
21776 ;;
21777 esac
21778 ;;
21779 *)
21780 ;;
21781 esac
21782 ;;
21783 interix*)
21784 # This is c89, which is MS Visual C++ (no shared libs)
21785 # Anyone wants to do a port?
21786 ;;
21787 irix5* | irix6* | nonstopux*)
21788 case $cc_basename in
21789 CC*)
21790 lt_prog_compiler_wl_CXX='-Wl,'
21791 lt_prog_compiler_static_CXX='-non_shared'
21792 # CC pic flag -KPIC is the default.
21793 ;;
21794 *)
21795 ;;
21796 esac
21797 ;;
21798 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21799 case $cc_basename in
21800 KCC*)
21801 # KAI C++ Compiler
21802 lt_prog_compiler_wl_CXX='--backend -Wl,'
21803 lt_prog_compiler_pic_CXX='-fPIC'
21804 ;;
21805 ecpc* )
21806 # old Intel C++ for x86_64, which still supported -KPIC.
21807 lt_prog_compiler_wl_CXX='-Wl,'
21808 lt_prog_compiler_pic_CXX='-KPIC'
21809 lt_prog_compiler_static_CXX='-static'
21810 ;;
21811 icpc* )
21812 # Intel C++, used to be incompatible with GCC.
21813 # ICC 10 doesn't accept -KPIC any more.
21814 lt_prog_compiler_wl_CXX='-Wl,'
21815 lt_prog_compiler_pic_CXX='-fPIC'
21816 lt_prog_compiler_static_CXX='-static'
21817 ;;
21818 pgCC* | pgcpp*)
21819 # Portland Group C++ compiler
21820 lt_prog_compiler_wl_CXX='-Wl,'
21821 lt_prog_compiler_pic_CXX='-fpic'
21822 lt_prog_compiler_static_CXX='-Bstatic'
21823 ;;
21824 cxx*)
21825 # Compaq C++
21826 # Make sure the PIC flag is empty. It appears that all Alpha
21827 # Linux and Compaq Tru64 Unix objects are PIC.
21828 lt_prog_compiler_pic_CXX=
21829 lt_prog_compiler_static_CXX='-non_shared'
21830 ;;
21831 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21832 # IBM XL 8.0, 9.0 on PPC and BlueGene
21833 lt_prog_compiler_wl_CXX='-Wl,'
21834 lt_prog_compiler_pic_CXX='-qpic'
21835 lt_prog_compiler_static_CXX='-qstaticlink'
21836 ;;
21837 *)
21838 case `$CC -V 2>&1 | $SED 5q` in
21839 *Sun\ C*)
21840 # Sun C++ 5.9
21841 lt_prog_compiler_pic_CXX='-KPIC'
21842 lt_prog_compiler_static_CXX='-Bstatic'
21843 lt_prog_compiler_wl_CXX='-Qoption ld '
21844 ;;
21845 esac
21846 ;;
21847 esac
21848 ;;
21849 lynxos*)
21850 ;;
21851 m88k*)
21852 ;;
21853 mvs*)
21854 case $cc_basename in
21855 cxx*)
21856 lt_prog_compiler_pic_CXX='-W c,exportall'
21857 ;;
21858 *)
21859 ;;
21860 esac
21861 ;;
21862 netbsd* | netbsdelf*-gnu)
21863 ;;
21864 *-mlibc)
21865 ;;
21866 *qnx* | *nto*)
21867 # QNX uses GNU C++, but need to define -shared option too, otherwise
21868 # it will coredump.
21869 lt_prog_compiler_pic_CXX='-fPIC -shared'
21870 ;;
21871 osf3* | osf4* | osf5*)
21872 case $cc_basename in
21873 KCC*)
21874 lt_prog_compiler_wl_CXX='--backend -Wl,'
21875 ;;
21876 RCC*)
21877 # Rational C++ 2.4.1
21878 lt_prog_compiler_pic_CXX='-pic'
21879 ;;
21880 cxx*)
21881 # Digital/Compaq C++
21882 lt_prog_compiler_wl_CXX='-Wl,'
21883 # Make sure the PIC flag is empty. It appears that all Alpha
21884 # Linux and Compaq Tru64 Unix objects are PIC.
21885 lt_prog_compiler_pic_CXX=
21886 lt_prog_compiler_static_CXX='-non_shared'
21887 ;;
21888 *)
21889 ;;
21890 esac
21891 ;;
21892 psos*)
21893 ;;
21894 serenity*)
21895 ;;
21896 solaris*)
21897 case $cc_basename in
21898 CC* | sunCC*)
21899 # Sun C++ 4.2, 5.x and Centerline C++
21900 lt_prog_compiler_pic_CXX='-KPIC'
21901 lt_prog_compiler_static_CXX='-Bstatic'
21902 lt_prog_compiler_wl_CXX='-Qoption ld '
21903 ;;
21904 gcx*)
21905 # Green Hills C++ Compiler
21906 lt_prog_compiler_pic_CXX='-PIC'
21907 ;;
21908 *)
21909 ;;
21910 esac
21911 ;;
21912 sunos4*)
21913 case $cc_basename in
21914 CC*)
21915 # Sun C++ 4.x
21916 lt_prog_compiler_pic_CXX='-pic'
21917 lt_prog_compiler_static_CXX='-Bstatic'
21918 ;;
21919 lcc*)
21920 # Lucid
21921 lt_prog_compiler_pic_CXX='-pic'
21922 ;;
21923 *)
21924 ;;
21925 esac
21926 ;;
21927 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21928 case $cc_basename in
21929 CC*)
21930 lt_prog_compiler_wl_CXX='-Wl,'
21931 lt_prog_compiler_pic_CXX='-KPIC'
21932 lt_prog_compiler_static_CXX='-Bstatic'
21933 ;;
21934 esac
21935 ;;
21936 tandem*)
21937 case $cc_basename in
21938 NCC*)
21939 # NonStop-UX NCC 3.20
21940 lt_prog_compiler_pic_CXX='-KPIC'
21941 ;;
21942 *)
21943 ;;
21944 esac
21945 ;;
21946 vxworks*)
21947 ;;
21948 *)
21949 lt_prog_compiler_can_build_shared_CXX=no
21950 ;;
21951 esac
21952 fi
21953
21954 case $host_os in
21955 # For platforms that do not support PIC, -DPIC is meaningless:
21956 *djgpp*)
21957 lt_prog_compiler_pic_CXX=
21958 ;;
21959 *)
21960 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21961 ;;
21962 esac
21963
21964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21965 printf %s "checking for $compiler option to produce PIC... " >&6; }
21966 if test ${lt_cv_prog_compiler_pic_CXX+y}
21967 then :
21968 printf %s "(cached) " >&6
21969 else case e in #(
21970 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
21971 esac
21972 fi
21973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
21974 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
21975 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
21976
21977 #
21978 # Check to make sure the PIC flag actually works.
21979 #
21980 if test -n "$lt_prog_compiler_pic_CXX"; then
21981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21982 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21983 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
21984 then :
21985 printf %s "(cached) " >&6
21986 else case e in #(
21987 e) lt_cv_prog_compiler_pic_works_CXX=no
21988 ac_outfile=conftest.$ac_objext
21989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21990 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
21991 # Insert the option either (1) after the last *FLAGS variable, or
21992 # (2) before a word containing "conftest.", or (3) at the end.
21993 # Note that $ac_compile itself does not contain backslashes and begins
21994 # with a dollar sign (not a hyphen), so the echo should work correctly.
21995 # The option is referenced via a variable to avoid confusing sed.
21996 lt_compile=`echo "$ac_compile" | $SED \
21997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21999 -e 's:$: $lt_compiler_flag:'`
22000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22001 (eval "$lt_compile" 2>conftest.err)
22002 ac_status=$?
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 if (exit $ac_status) && test -s "$ac_outfile"; then
22006 # The compiler can only warn and ignore the option if not recognized
22007 # So say no if there are warnings other than the usual output.
22008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22011 lt_cv_prog_compiler_pic_works_CXX=yes
22012 fi
22013 fi
22014 $RM conftest*
22015 ;;
22016 esac
22017 fi
22018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22019 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22020
22021 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
22022 case $lt_prog_compiler_pic_CXX in
22023 "" | " "*) ;;
22024 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22025 esac
22026 else
22027 lt_prog_compiler_pic_CXX=
22028 lt_prog_compiler_can_build_shared_CXX=no
22029 fi
22030
22031 fi
22032
22033
22034
22035
22036
22037 #
22038 # Check to make sure the static flag actually works.
22039 #
22040 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22042 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22043 if test ${lt_cv_prog_compiler_static_works_CXX+y}
22044 then :
22045 printf %s "(cached) " >&6
22046 else case e in #(
22047 e) lt_cv_prog_compiler_static_works_CXX=no
22048 save_LDFLAGS=$LDFLAGS
22049 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22050 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22051 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22052 # The linker can only warn and ignore the option if not recognized
22053 # So say no if there are warnings
22054 if test -s conftest.err; then
22055 # Append any errors to the config.log.
22056 cat conftest.err 1>&5
22057 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22059 if diff conftest.exp conftest.er2 >/dev/null; then
22060 lt_cv_prog_compiler_static_works_CXX=yes
22061 fi
22062 else
22063 lt_cv_prog_compiler_static_works_CXX=yes
22064 fi
22065 fi
22066 $RM -r conftest*
22067 LDFLAGS=$save_LDFLAGS
22068 ;;
22069 esac
22070 fi
22071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22072 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22073
22074 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
22075 :
22076 else
22077 lt_prog_compiler_static_CXX=
22078 fi
22079
22080
22081
22082 ='-fPIC'
22083 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
22084 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
22085 archive_cmds_need_lc_CXX=no
22086 no_undefined_flag_CXX=
22087 ;;
22088
22089 *)
22090 dynamic_linker=no
22091 ;;
22092 esac
22093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22094 printf "%s\n" "$dynamic_linker" >&6; }
22095 test no = "$dynamic_linker" && can_build_shared=no
22096
22097 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22098 if test yes = "$GCC"; then
22099 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22100 fi
22101
22102 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22103 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22104 fi
22105
22106 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22107 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22108 fi
22109
22110 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22111 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22112
22113 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22114 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22115
22116 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22117 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22159 printf %s "checking how to hardcode library paths into programs... " >&6; }
22160 hardcode_action_CXX=
22161 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22162 test -n "$runpath_var_CXX" ||
22163 test yes = "$hardcode_automatic_CXX"; then
22164
22165 # We can hardcode non-existent directories.
22166 if test no != "$hardcode_direct_CXX" &&
22167 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22168 # have to relink, otherwise we might link with an installed library
22169 # when we should be linking with a yet-to-be-installed one
22170 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
22171 test no != "$hardcode_minus_L_CXX"; then
22172 # Linking always hardcodes the temporary library directory.
22173 hardcode_action_CXX=relink
22174 else
22175 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22176 hardcode_action_CXX=immediate
22177 fi
22178 else
22179 # We cannot hardcode anything, or else we can only hardcode existing
22180 # directories.
22181 hardcode_action_CXX=unsupported
22182 fi
22183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22184 printf "%s\n" "$hardcode_action_CXX" >&6; }
22185
22186 if test relink = "$hardcode_action_CXX" ||
22187 test yes = "$inherit_rpath_CXX"; then
22188 # Fast installation is not supported
22189 enable_fast_install=no
22190 elif test yes = "$shlibpath_overrides_runpath" ||
22191 test no = "$enable_shared"; then
22192 # Fast installation is not necessary
22193 enable_fast_install=needless
22194 fi
22195
22196
22197
22198
22199
22200
22201
22202 fi # test -n "$compiler"
22203
22204 CC=$lt_save_CC
22205 CFLAGS=$lt_save_CFLAGS
22206 LDCXX=$LD
22207 LD=$lt_save_LD
22208 GCC=$lt_save_GCC
22209 with_gnu_ld=$lt_save_with_gnu_ld
22210 lt_cv_path_LDCXX=$lt_cv_path_LD
22211 lt_cv_path_LD=$lt_save_path_LD
22212 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22213 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22214 fi # test yes != "$_lt_caught_CXX_error"
22215
22216 ac_ext=c
22217 ac_cpp='$CPP $CPPFLAGS'
22218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22221
22222
22223
22224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
22225 printf %s "checking whether ln -s works... " >&6; }
22226 LN_S=$as_ln_s
22227 if test "$LN_S" = "ln -s"; then
22228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22229 printf "%s\n" "yes" >&6; }
22230 else
22231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
22232 printf "%s\n" "no, using $LN_S" >&6; }
22233 fi
22234
22235 for ac_prog in help2man
22236 do
22237 # Extract the first word of "$ac_prog", so it can be a program name with args.
22238 set dummy $ac_prog; ac_word=$2
22239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22240 printf %s "checking for $ac_word... " >&6; }
22241 if test ${ac_cv_prog_HELP2MAN+y}
22242 then :
22243 printf %s "(cached) " >&6
22244 else case e in #(
22245 e) if test -n "$HELP2MAN"; then
22246 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
22247 else
22248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22249 for as_dir in $PATH
22250 do
22251 IFS=$as_save_IFS
22252 case $as_dir in #(((
22253 '') as_dir=./ ;;
22254 */) ;;
22255 *) as_dir=$as_dir/ ;;
22256 esac
22257 for ac_exec_ext in '' $ac_executable_extensions; do
22258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22259 ac_cv_prog_HELP2MAN="$ac_prog"
22260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22261 break 2
22262 fi
22263 done
22264 done
22265 IFS=$as_save_IFS
22266
22267 fi ;;
22268 esac
22269 fi
22270 HELP2MAN=$ac_cv_prog_HELP2MAN
22271 if test -n "$HELP2MAN"; then
22272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
22273 printf "%s\n" "$HELP2MAN" >&6; }
22274 else
22275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22276 printf "%s\n" "no" >&6; }
22277 fi
22278
22279
22280 test -n "$HELP2MAN" && break
22281 done
22282
22283 if test "x$HELP2MAN" != "x"; then
22284 HAVE_HELP2MAN_TRUE=
22285 HAVE_HELP2MAN_FALSE='#'
22286 else
22287 HAVE_HELP2MAN_TRUE='#'
22288 HAVE_HELP2MAN_FALSE=
22289 fi
22290
22291
22292
22293 # Checks for libraries.
22294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
22295 printf %s "checking for library containing sqrt... " >&6; }
22296 if test ${ac_cv_search_sqrt+y}
22297 then :
22298 printf %s "(cached) " >&6
22299 else case e in #(
22300 e) ac_func_search_save_LIBS=$LIBS
22301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h. */
22303
22304 /* Override any GCC internal prototype to avoid an error.
22305 Use char because int might match the return type of a GCC
22306 builtin and then its argument prototype would still apply.
22307 The 'extern "C"' is for builds by C++ compilers;
22308 although this is not generally supported in C code supporting it here
22309 has little cost and some practical benefit (sr 110532). */
22310 #ifdef __cplusplus
22311 extern "C"
22312 #endif
22313 char sqrt (void);
22314 int
22315 main (void)
22316 {
22317 return sqrt ();
22318 ;
22319 return 0;
22320 }
22321 _ACEOF
22322 for ac_lib in '' m
22323 do
22324 if test -z "$ac_lib"; then
22325 ac_res="none required"
22326 else
22327 ac_res=-l$ac_lib
22328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22329 fi
22330 if ac_fn_c_try_link "$LINENO"
22331 then :
22332 ac_cv_search_sqrt=$ac_res
22333 fi
22334 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22335 conftest$ac_exeext
22336 if test ${ac_cv_search_sqrt+y}
22337 then :
22338 break
22339 fi
22340 done
22341 if test ${ac_cv_search_sqrt+y}
22342 then :
22343
22344 else case e in #(
22345 e) ac_cv_search_sqrt=no ;;
22346 esac
22347 fi
22348 rm conftest.$ac_ext
22349 LIBS=$ac_func_search_save_LIBS ;;
22350 esac
22351 fi
22352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
22353 printf "%s\n" "$ac_cv_search_sqrt" >&6; }
22354 ac_res=$ac_cv_search_sqrt
22355 if test "$ac_res" != no
22356 then :
22357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22358
22359 else case e in #(
22360 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22361 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22362 as_fn_error $? "Math library missing
22363 See 'config.log' for more details" "$LINENO" 5; } ;;
22364 esac
22365 fi
22366
22367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
22368 printf %s "checking for library containing pthread_create... " >&6; }
22369 if test ${ac_cv_search_pthread_create+y}
22370 then :
22371 printf %s "(cached) " >&6
22372 else case e in #(
22373 e) ac_func_search_save_LIBS=$LIBS
22374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22375 /* end confdefs.h. */
22376
22377 /* Override any GCC internal prototype to avoid an error.
22378 Use char because int might match the return type of a GCC
22379 builtin and then its argument prototype would still apply.
22380 The 'extern "C"' is for builds by C++ compilers;
22381 although this is not generally supported in C code supporting it here
22382 has little cost and some practical benefit (sr 110532). */
22383 #ifdef __cplusplus
22384 extern "C"
22385 #endif
22386 char pthread_create (void);
22387 int
22388 main (void)
22389 {
22390 return pthread_create ();
22391 ;
22392 return 0;
22393 }
22394 _ACEOF
22395 for ac_lib in '' pthread
22396 do
22397 if test -z "$ac_lib"; then
22398 ac_res="none required"
22399 else
22400 ac_res=-l$ac_lib
22401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22402 fi
22403 if ac_fn_c_try_link "$LINENO"
22404 then :
22405 ac_cv_search_pthread_create=$ac_res
22406 fi
22407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22408 conftest$ac_exeext
22409 if test ${ac_cv_search_pthread_create+y}
22410 then :
22411 break
22412 fi
22413 done
22414 if test ${ac_cv_search_pthread_create+y}
22415 then :
22416
22417 else case e in #(
22418 e) ac_cv_search_pthread_create=no ;;
22419 esac
22420 fi
22421 rm conftest.$ac_ext
22422 LIBS=$ac_func_search_save_LIBS ;;
22423 esac
22424 fi
22425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
22426 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
22427 ac_res=$ac_cv_search_pthread_create
22428 if test "$ac_res" != no
22429 then :
22430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22431
22432 else case e in #(
22433 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22434 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22435 as_fn_error $? "Threads library missing
22436 See 'config.log' for more details" "$LINENO" 5; } ;;
22437 esac
22438 fi
22439
22440 # Check whether --enable-ltdl was given.
22441 if test ${enable_ltdl+y}
22442 then :
22443 enableval=$enable_ltdl;
22444 else case e in #(
22445 e) enable_ltdl=check ;;
22446 esac
22447 fi
22448
22449
22450 if test x$enable_ltdl != xno;
22451 then
22452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlopen" >&5
22453 printf %s "checking for library containing lt_dlopen... " >&6; }
22454 if test ${ac_cv_search_lt_dlopen+y}
22455 then :
22456 printf %s "(cached) " >&6
22457 else case e in #(
22458 e) ac_func_search_save_LIBS=$LIBS
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461
22462 /* Override any GCC internal prototype to avoid an error.
22463 Use char because int might match the return type of a GCC
22464 builtin and then its argument prototype would still apply.
22465 The 'extern "C"' is for builds by C++ compilers;
22466 although this is not generally supported in C code supporting it here
22467 has little cost and some practical benefit (sr 110532). */
22468 #ifdef __cplusplus
22469 extern "C"
22470 #endif
22471 char lt_dlopen (void);
22472 int
22473 main (void)
22474 {
22475 return lt_dlopen ();
22476 ;
22477 return 0;
22478 }
22479 _ACEOF
22480 for ac_lib in '' ltdl
22481 do
22482 if test -z "$ac_lib"; then
22483 ac_res="none required"
22484 else
22485 ac_res=-l$ac_lib
22486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22487 fi
22488 if ac_fn_c_try_link "$LINENO"
22489 then :
22490 ac_cv_search_lt_dlopen=$ac_res
22491 fi
22492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22493 conftest$ac_exeext
22494 if test ${ac_cv_search_lt_dlopen+y}
22495 then :
22496 break
22497 fi
22498 done
22499 if test ${ac_cv_search_lt_dlopen+y}
22500 then :
22501
22502 else case e in #(
22503 e) ac_cv_search_lt_dlopen=no ;;
22504 esac
22505 fi
22506 rm conftest.$ac_ext
22507 LIBS=$ac_func_search_save_LIBS ;;
22508 esac
22509 fi
22510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5
22511 printf "%s\n" "$ac_cv_search_lt_dlopen" >&6; }
22512 ac_res=$ac_cv_search_lt_dlopen
22513 if test "$ac_res" != no
22514 then :
22515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22516 use_ltdl=yes
22517 else case e in #(
22518 e) use_ltdl=no ;;
22519 esac
22520 fi
22521
22522 if test x$use_ltdl = xno ;
22523 then
22524 if test x$enable_ltdl = xyes ;
22525 then
22526 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22527 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22528 as_fn_error $? "ltdl requested but missing
22529 See 'config.log' for more details" "$LINENO" 5; }
22530 fi
22531 enable_ltdl=no
22532 fi
22533 fi
22534
22535 if test x$enable_ltdl = xno;
22536 then
22537
22538 printf "%s\n" "#define USE_DLOPEN 1" >>confdefs.h
22539
22540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22541 printf %s "checking for library containing dlopen... " >&6; }
22542 if test ${ac_cv_search_dlopen+y}
22543 then :
22544 printf %s "(cached) " >&6
22545 else case e in #(
22546 e) ac_func_search_save_LIBS=$LIBS
22547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22548 /* end confdefs.h. */
22549
22550 /* Override any GCC internal prototype to avoid an error.
22551 Use char because int might match the return type of a GCC
22552 builtin and then its argument prototype would still apply.
22553 The 'extern "C"' is for builds by C++ compilers;
22554 although this is not generally supported in C code supporting it here
22555 has little cost and some practical benefit (sr 110532). */
22556 #ifdef __cplusplus
22557 extern "C"
22558 #endif
22559 char dlopen (void);
22560 int
22561 main (void)
22562 {
22563 return dlopen ();
22564 ;
22565 return 0;
22566 }
22567 _ACEOF
22568 for ac_lib in '' dl
22569 do
22570 if test -z "$ac_lib"; then
22571 ac_res="none required"
22572 else
22573 ac_res=-l$ac_lib
22574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22575 fi
22576 if ac_fn_c_try_link "$LINENO"
22577 then :
22578 ac_cv_search_dlopen=$ac_res
22579 fi
22580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22581 conftest$ac_exeext
22582 if test ${ac_cv_search_dlopen+y}
22583 then :
22584 break
22585 fi
22586 done
22587 if test ${ac_cv_search_dlopen+y}
22588 then :
22589
22590 else case e in #(
22591 e) ac_cv_search_dlopen=no ;;
22592 esac
22593 fi
22594 rm conftest.$ac_ext
22595 LIBS=$ac_func_search_save_LIBS ;;
22596 esac
22597 fi
22598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22599 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
22600 ac_res=$ac_cv_search_dlopen
22601 if test "$ac_res" != no
22602 then :
22603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22604
22605 else case e in #(
22606 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22607 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22608 as_fn_error $? "dlopen missing
22609 See 'config.log' for more details" "$LINENO" 5; } ;;
22610 esac
22611 fi
22612
22613 fi
22614
22615 if test x$enable_shared = xyes;
22616 then
22617 default_shim=shim
22618 else
22619 default_shim=no
22620 fi
22621
22622 case "$host" in
22623 *-*darwin*)
22624 darwin_host=yes
22625 default_shim=no
22626
22627 printf "%s\n" "#define DARWIN_HOST 1" >>confdefs.h
22628
22629 ;;
22630 esac
22631 if test "$darwin_host" = yes; then
22632 DARWIN_HOST_TRUE=
22633 DARWIN_HOST_FALSE='#'
22634 else
22635 DARWIN_HOST_TRUE='#'
22636 DARWIN_HOST_FALSE=
22637 fi
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22648 if test -n "$ac_tool_prefix"; then
22649 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22650 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22652 printf %s "checking for $ac_word... " >&6; }
22653 if test ${ac_cv_path_PKG_CONFIG+y}
22654 then :
22655 printf %s "(cached) " >&6
22656 else case e in #(
22657 e) case $PKG_CONFIG in
22658 [\\/]* | ?:[\\/]*)
22659 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22660 ;;
22661 *)
22662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22663 for as_dir in $PATH
22664 do
22665 IFS=$as_save_IFS
22666 case $as_dir in #(((
22667 '') as_dir=./ ;;
22668 */) ;;
22669 *) as_dir=$as_dir/ ;;
22670 esac
22671 for ac_exec_ext in '' $ac_executable_extensions; do
22672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22673 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22675 break 2
22676 fi
22677 done
22678 done
22679 IFS=$as_save_IFS
22680
22681 ;;
22682 esac ;;
22683 esac
22684 fi
22685 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22686 if test -n "$PKG_CONFIG"; then
22687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22688 printf "%s\n" "$PKG_CONFIG" >&6; }
22689 else
22690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22691 printf "%s\n" "no" >&6; }
22692 fi
22693
22694
22695 fi
22696 if test -z "$ac_cv_path_PKG_CONFIG"; then
22697 ac_pt_PKG_CONFIG=$PKG_CONFIG
22698 # Extract the first word of "pkg-config", so it can be a program name with args.
22699 set dummy pkg-config; ac_word=$2
22700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22701 printf %s "checking for $ac_word... " >&6; }
22702 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
22703 then :
22704 printf %s "(cached) " >&6
22705 else case e in #(
22706 e) case $ac_pt_PKG_CONFIG in
22707 [\\/]* | ?:[\\/]*)
22708 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22709 ;;
22710 *)
22711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22712 for as_dir in $PATH
22713 do
22714 IFS=$as_save_IFS
22715 case $as_dir in #(((
22716 '') as_dir=./ ;;
22717 */) ;;
22718 *) as_dir=$as_dir/ ;;
22719 esac
22720 for ac_exec_ext in '' $ac_executable_extensions; do
22721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22722 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22724 break 2
22725 fi
22726 done
22727 done
22728 IFS=$as_save_IFS
22729
22730 ;;
22731 esac ;;
22732 esac
22733 fi
22734 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22735 if test -n "$ac_pt_PKG_CONFIG"; then
22736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22737 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
22738 else
22739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22740 printf "%s\n" "no" >&6; }
22741 fi
22742
22743 if test "x$ac_pt_PKG_CONFIG" = x; then
22744 PKG_CONFIG=""
22745 else
22746 case $cross_compiling:$ac_tool_warned in
22747 yes:)
22748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22749 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22750 ac_tool_warned=yes ;;
22751 esac
22752 PKG_CONFIG=$ac_pt_PKG_CONFIG
22753 fi
22754 else
22755 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22756 fi
22757
22758 fi
22759 if test -n "$PKG_CONFIG"; then
22760 _pkg_min_version=0.9.0
22761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22762 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22763 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22765 printf "%s\n" "yes" >&6; }
22766 else
22767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22768 printf "%s\n" "no" >&6; }
22769 PKG_CONFIG=""
22770 fi
22771 fi
22772
22773 pkg_failed=no
22774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.36" >&5
22775 printf %s "checking for glib-2.0 >= 2.36... " >&6; }
22776
22777 if test -n "$GLIB_CFLAGS"; then
22778 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
22779 elif test -n "$PKG_CONFIG"; then
22780 if test -n "$PKG_CONFIG" && \
22781 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.36\""; } >&5
22782 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.36") 2>&5
22783 ac_status=$?
22784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22785 test $ac_status = 0; }; then
22786 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.36" 2>/dev/null`
22787 test "x$?" != "x0" && pkg_failed=yes
22788 else
22789 pkg_failed=yes
22790 fi
22791 else
22792 pkg_failed=untried
22793 fi
22794 if test -n "$GLIB_LIBS"; then
22795 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
22796 elif test -n "$PKG_CONFIG"; then
22797 if test -n "$PKG_CONFIG" && \
22798 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.36\""; } >&5
22799 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.36") 2>&5
22800 ac_status=$?
22801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22802 test $ac_status = 0; }; then
22803 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.36" 2>/dev/null`
22804 test "x$?" != "x0" && pkg_failed=yes
22805 else
22806 pkg_failed=yes
22807 fi
22808 else
22809 pkg_failed=untried
22810 fi
22811
22812
22813
22814 if test $pkg_failed = yes; then
22815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22816 printf "%s\n" "no" >&6; }
22817
22818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22819 _pkg_short_errors_supported=yes
22820 else
22821 _pkg_short_errors_supported=no
22822 fi
22823 if test $_pkg_short_errors_supported = yes; then
22824 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.36" 2>&1`
22825 else
22826 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.36" 2>&1`
22827 fi
22828 # Put the nasty error message in config.log where it belongs
22829 echo "$GLIB_PKG_ERRORS" >&5
22830
22831 as_fn_error $? "Package requirements (glib-2.0 >= 2.36) were not met:
22832
22833 $GLIB_PKG_ERRORS
22834
22835 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22836 installed software in a non-standard prefix.
22837
22838 Alternatively, you may set the environment variables GLIB_CFLAGS
22839 and GLIB_LIBS to avoid the need to call pkg-config.
22840 See the pkg-config man page for more details." "$LINENO" 5
22841 elif test $pkg_failed = untried; then
22842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22843 printf "%s\n" "no" >&6; }
22844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22845 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22846 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22847 is in your PATH or set the PKG_CONFIG environment variable to the full
22848 path to pkg-config.
22849
22850 Alternatively, you may set the environment variables GLIB_CFLAGS
22851 and GLIB_LIBS to avoid the need to call pkg-config.
22852 See the pkg-config man page for more details.
22853
22854 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22855 See 'config.log' for more details" "$LINENO" 5; }
22856 else
22857 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
22858 GLIB_LIBS=$pkg_cv_GLIB_LIBS
22859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22860 printf "%s\n" "yes" >&6; }
22861
22862 fi
22863
22864
22865
22866
22867 pkg_failed=no
22868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0" >&5
22869 printf %s "checking for gthread-2.0... " >&6; }
22870
22871 if test -n "$GTHREAD_CFLAGS"; then
22872 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
22873 elif test -n "$PKG_CONFIG"; then
22874 if test -n "$PKG_CONFIG" && \
22875 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
22876 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
22877 ac_status=$?
22878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22879 test $ac_status = 0; }; then
22880 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
22881 test "x$?" != "x0" && pkg_failed=yes
22882 else
22883 pkg_failed=yes
22884 fi
22885 else
22886 pkg_failed=untried
22887 fi
22888 if test -n "$GTHREAD_LIBS"; then
22889 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
22890 elif test -n "$PKG_CONFIG"; then
22891 if test -n "$PKG_CONFIG" && \
22892 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
22893 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
22894 ac_status=$?
22895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22896 test $ac_status = 0; }; then
22897 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
22898 test "x$?" != "x0" && pkg_failed=yes
22899 else
22900 pkg_failed=yes
22901 fi
22902 else
22903 pkg_failed=untried
22904 fi
22905
22906
22907
22908 if test $pkg_failed = yes; then
22909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22910 printf "%s\n" "no" >&6; }
22911
22912 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22913 _pkg_short_errors_supported=yes
22914 else
22915 _pkg_short_errors_supported=no
22916 fi
22917 if test $_pkg_short_errors_supported = yes; then
22918 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
22919 else
22920 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
22921 fi
22922 # Put the nasty error message in config.log where it belongs
22923 echo "$GTHREAD_PKG_ERRORS" >&5
22924
22925 as_fn_error $? "Package requirements (gthread-2.0) were not met:
22926
22927 $GTHREAD_PKG_ERRORS
22928
22929 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22930 installed software in a non-standard prefix.
22931
22932 Alternatively, you may set the environment variables GTHREAD_CFLAGS
22933 and GTHREAD_LIBS to avoid the need to call pkg-config.
22934 See the pkg-config man page for more details." "$LINENO" 5
22935 elif test $pkg_failed = untried; then
22936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22937 printf "%s\n" "no" >&6; }
22938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22939 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22940 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22941 is in your PATH or set the PKG_CONFIG environment variable to the full
22942 path to pkg-config.
22943
22944 Alternatively, you may set the environment variables GTHREAD_CFLAGS
22945 and GTHREAD_LIBS to avoid the need to call pkg-config.
22946 See the pkg-config man page for more details.
22947
22948 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22949 See 'config.log' for more details" "$LINENO" 5; }
22950 else
22951 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
22952 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
22953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22954 printf "%s\n" "yes" >&6; }
22955
22956 fi
22957
22958
22959
22960
22961 pkg_failed=no
22962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmodule-2.0" >&5
22963 printf %s "checking for gmodule-2.0... " >&6; }
22964
22965 if test -n "$GMODULE_CFLAGS"; then
22966 pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
22967 elif test -n "$PKG_CONFIG"; then
22968 if test -n "$PKG_CONFIG" && \
22969 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
22970 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
22971 ac_status=$?
22972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22973 test $ac_status = 0; }; then
22974 pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
22975 test "x$?" != "x0" && pkg_failed=yes
22976 else
22977 pkg_failed=yes
22978 fi
22979 else
22980 pkg_failed=untried
22981 fi
22982 if test -n "$GMODULE_LIBS"; then
22983 pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
22984 elif test -n "$PKG_CONFIG"; then
22985 if test -n "$PKG_CONFIG" && \
22986 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
22987 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
22988 ac_status=$?
22989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22990 test $ac_status = 0; }; then
22991 pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
22992 test "x$?" != "x0" && pkg_failed=yes
22993 else
22994 pkg_failed=yes
22995 fi
22996 else
22997 pkg_failed=untried
22998 fi
22999
23000
23001
23002 if test $pkg_failed = yes; then
23003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23004 printf "%s\n" "no" >&6; }
23005
23006 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23007 _pkg_short_errors_supported=yes
23008 else
23009 _pkg_short_errors_supported=no
23010 fi
23011 if test $_pkg_short_errors_supported = yes; then
23012 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
23013 else
23014 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
23015 fi
23016 # Put the nasty error message in config.log where it belongs
23017 echo "$GMODULE_PKG_ERRORS" >&5
23018
23019 as_fn_error $? "Package requirements (gmodule-2.0) were not met:
23020
23021 $GMODULE_PKG_ERRORS
23022
23023 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23024 installed software in a non-standard prefix.
23025
23026 Alternatively, you may set the environment variables GMODULE_CFLAGS
23027 and GMODULE_LIBS to avoid the need to call pkg-config.
23028 See the pkg-config man page for more details." "$LINENO" 5
23029 elif test $pkg_failed = untried; then
23030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23031 printf "%s\n" "no" >&6; }
23032 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23033 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23034 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
23035 is in your PATH or set the PKG_CONFIG environment variable to the full
23036 path to pkg-config.
23037
23038 Alternatively, you may set the environment variables GMODULE_CFLAGS
23039 and GMODULE_LIBS to avoid the need to call pkg-config.
23040 See the pkg-config man page for more details.
23041
23042 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23043 See 'config.log' for more details" "$LINENO" 5; }
23044 else
23045 GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
23046 GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
23047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23048 printf "%s\n" "yes" >&6; }
23049
23050 fi
23051
23052
23053
23054
23055 pkg_failed=no
23056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dotconf >= 1.3" >&5
23057 printf %s "checking for dotconf >= 1.3... " >&6; }
23058
23059 if test -n "$DOTCONF_CFLAGS"; then
23060 pkg_cv_DOTCONF_CFLAGS="$DOTCONF_CFLAGS"
23061 elif test -n "$PKG_CONFIG"; then
23062 if test -n "$PKG_CONFIG" && \
23063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dotconf >= 1.3\""; } >&5
23064 ($PKG_CONFIG --exists --print-errors "dotconf >= 1.3") 2>&5
23065 ac_status=$?
23066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23067 test $ac_status = 0; }; then
23068 pkg_cv_DOTCONF_CFLAGS=`$PKG_CONFIG --cflags "dotconf >= 1.3" 2>/dev/null`
23069 test "x$?" != "x0" && pkg_failed=yes
23070 else
23071 pkg_failed=yes
23072 fi
23073 else
23074 pkg_failed=untried
23075 fi
23076 if test -n "$DOTCONF_LIBS"; then
23077 pkg_cv_DOTCONF_LIBS="$DOTCONF_LIBS"
23078 elif test -n "$PKG_CONFIG"; then
23079 if test -n "$PKG_CONFIG" && \
23080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dotconf >= 1.3\""; } >&5
23081 ($PKG_CONFIG --exists --print-errors "dotconf >= 1.3") 2>&5
23082 ac_status=$?
23083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23084 test $ac_status = 0; }; then
23085 pkg_cv_DOTCONF_LIBS=`$PKG_CONFIG --libs "dotconf >= 1.3" 2>/dev/null`
23086 test "x$?" != "x0" && pkg_failed=yes
23087 else
23088 pkg_failed=yes
23089 fi
23090 else
23091 pkg_failed=untried
23092 fi
23093
23094
23095
23096 if test $pkg_failed = yes; then
23097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23098 printf "%s\n" "no" >&6; }
23099
23100 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23101 _pkg_short_errors_supported=yes
23102 else
23103 _pkg_short_errors_supported=no
23104 fi
23105 if test $_pkg_short_errors_supported = yes; then
23106 DOTCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dotconf >= 1.3" 2>&1`
23107 else
23108 DOTCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dotconf >= 1.3" 2>&1`
23109 fi
23110 # Put the nasty error message in config.log where it belongs
23111 echo "$DOTCONF_PKG_ERRORS" >&5
23112
23113 as_fn_error $? "Package requirements (dotconf >= 1.3) were not met:
23114
23115 $DOTCONF_PKG_ERRORS
23116
23117 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23118 installed software in a non-standard prefix.
23119
23120 Alternatively, you may set the environment variables DOTCONF_CFLAGS
23121 and DOTCONF_LIBS to avoid the need to call pkg-config.
23122 See the pkg-config man page for more details." "$LINENO" 5
23123 elif test $pkg_failed = untried; then
23124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23125 printf "%s\n" "no" >&6; }
23126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23127 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23128 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
23129 is in your PATH or set the PKG_CONFIG environment variable to the full
23130 path to pkg-config.
23131
23132 Alternatively, you may set the environment variables DOTCONF_CFLAGS
23133 and DOTCONF_LIBS to avoid the need to call pkg-config.
23134 See the pkg-config man page for more details.
23135
23136 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23137 See 'config.log' for more details" "$LINENO" 5; }
23138 else
23139 DOTCONF_CFLAGS=$pkg_cv_DOTCONF_CFLAGS
23140 DOTCONF_LIBS=$pkg_cv_DOTCONF_LIBS
23141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23142 printf "%s\n" "yes" >&6; }
23143
23144 fi
23145
23146
23147
23148
23149 pkg_failed=no
23150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndfile >= 1.0.2" >&5
23151 printf %s "checking for sndfile >= 1.0.2... " >&6; }
23152
23153 if test -n "$SNDFILE_CFLAGS"; then
23154 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
23155 elif test -n "$PKG_CONFIG"; then
23156 if test -n "$PKG_CONFIG" && \
23157 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5
23158 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5
23159 ac_status=$?
23160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23161 test $ac_status = 0; }; then
23162 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.2" 2>/dev/null`
23163 test "x$?" != "x0" && pkg_failed=yes
23164 else
23165 pkg_failed=yes
23166 fi
23167 else
23168 pkg_failed=untried
23169 fi
23170 if test -n "$SNDFILE_LIBS"; then
23171 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
23172 elif test -n "$PKG_CONFIG"; then
23173 if test -n "$PKG_CONFIG" && \
23174 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5
23175 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5
23176 ac_status=$?
23177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23178 test $ac_status = 0; }; then
23179 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.2" 2>/dev/null`
23180 test "x$?" != "x0" && pkg_failed=yes
23181 else
23182 pkg_failed=yes
23183 fi
23184 else
23185 pkg_failed=untried
23186 fi
23187
23188
23189
23190 if test $pkg_failed = yes; then
23191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23192 printf "%s\n" "no" >&6; }
23193
23194 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23195 _pkg_short_errors_supported=yes
23196 else
23197 _pkg_short_errors_supported=no
23198 fi
23199 if test $_pkg_short_errors_supported = yes; then
23200 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.2" 2>&1`
23201 else
23202 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.2" 2>&1`
23203 fi
23204 # Put the nasty error message in config.log where it belongs
23205 echo "$SNDFILE_PKG_ERRORS" >&5
23206
23207 as_fn_error $? "Package requirements (sndfile >= 1.0.2) were not met:
23208
23209 $SNDFILE_PKG_ERRORS
23210
23211 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23212 installed software in a non-standard prefix.
23213
23214 Alternatively, you may set the environment variables SNDFILE_CFLAGS
23215 and SNDFILE_LIBS to avoid the need to call pkg-config.
23216 See the pkg-config man page for more details." "$LINENO" 5
23217 elif test $pkg_failed = untried; then
23218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23219 printf "%s\n" "no" >&6; }
23220 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23221 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23222 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
23223 is in your PATH or set the PKG_CONFIG environment variable to the full
23224 path to pkg-config.
23225
23226 Alternatively, you may set the environment variables SNDFILE_CFLAGS
23227 and SNDFILE_LIBS to avoid the need to call pkg-config.
23228 See the pkg-config man page for more details.
23229
23230 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23231 See 'config.log' for more details" "$LINENO" 5; }
23232 else
23233 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
23234 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
23235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23236 printf "%s\n" "yes" >&6; }
23237
23238 fi
23239
23240
23241
23242
23243 pkg_failed=no
23244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
23245 printf %s "checking for libsystemd... " >&6; }
23246
23247 if test -n "$LIBSYSTEMD_CFLAGS"; then
23248 pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS"
23249 elif test -n "$PKG_CONFIG"; then
23250 if test -n "$PKG_CONFIG" && \
23251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
23252 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
23253 ac_status=$?
23254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23255 test $ac_status = 0; }; then
23256 pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
23257 test "x$?" != "x0" && pkg_failed=yes
23258 else
23259 pkg_failed=yes
23260 fi
23261 else
23262 pkg_failed=untried
23263 fi
23264 if test -n "$LIBSYSTEMD_LIBS"; then
23265 pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS"
23266 elif test -n "$PKG_CONFIG"; then
23267 if test -n "$PKG_CONFIG" && \
23268 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
23269 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
23270 ac_status=$?
23271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; then
23273 pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
23274 test "x$?" != "x0" && pkg_failed=yes
23275 else
23276 pkg_failed=yes
23277 fi
23278 else
23279 pkg_failed=untried
23280 fi
23281
23282
23283
23284 if test $pkg_failed = yes; then
23285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23286 printf "%s\n" "no" >&6; }
23287
23288 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23289 _pkg_short_errors_supported=yes
23290 else
23291 _pkg_short_errors_supported=no
23292 fi
23293 if test $_pkg_short_errors_supported = yes; then
23294 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
23295 else
23296 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
23297 fi
23298 # Put the nasty error message in config.log where it belongs
23299 echo "$LIBSYSTEMD_PKG_ERRORS" >&5
23300
23301 :
23302 elif test $pkg_failed = untried; then
23303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23304 printf "%s\n" "no" >&6; }
23305 :
23306 else
23307 LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS
23308 LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS
23309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23310 printf "%s\n" "yes" >&6; }
23311 have_libsystemd=yes
23312 fi
23313
23314 # Checks for header files.
23315 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
23316 if test "x$ac_cv_header_arpa_inet_h" = xyes
23317 then :
23318 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
23319
23320 fi
23321 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
23322 if test "x$ac_cv_header_fcntl_h" = xyes
23323 then :
23324 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
23325
23326 fi
23327 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
23328 if test "x$ac_cv_header_langinfo_h" = xyes
23329 then :
23330 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
23331
23332 fi
23333 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
23334 if test "x$ac_cv_header_limits_h" = xyes
23335 then :
23336 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
23337
23338 fi
23339 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
23340 if test "x$ac_cv_header_netdb_h" = xyes
23341 then :
23342 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
23343
23344 fi
23345
23346 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23347 if test "x$ac_cv_header_netinet_in_h" = xyes
23348 then :
23349 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
23350
23351 fi
23352 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
23353 if test "x$ac_cv_header_stddef_h" = xyes
23354 then :
23355 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
23356
23357 fi
23358 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23359 if test "x$ac_cv_header_stdlib_h" = xyes
23360 then :
23361 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
23362
23363 fi
23364 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
23365 if test "x$ac_cv_header_string_h" = xyes
23366 then :
23367 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
23368
23369 fi
23370 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
23371 if test "x$ac_cv_header_sys_filio_h" = xyes
23372 then :
23373 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
23374
23375 fi
23376
23377 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
23378 if test "x$ac_cv_header_sys_ioctl_h" = xyes
23379 then :
23380 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
23381
23382 fi
23383 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
23384 if test "x$ac_cv_header_sys_socket_h" = xyes
23385 then :
23386 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
23387
23388 fi
23389 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23390 if test "x$ac_cv_header_sys_time_h" = xyes
23391 then :
23392 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23393
23394 fi
23395 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
23396 if test "x$ac_cv_header_unistd_h" = xyes
23397 then :
23398 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
23399
23400 fi
23401 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
23402 if test "x$ac_cv_header_wchar_h" = xyes
23403 then :
23404 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
23405
23406 fi
23407 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
23408 if test "x$ac_cv_header_wctype_h" = xyes
23409 then :
23410 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
23411
23412 fi
23413
23414
23415 # Checks for typedefs, structures, and compiler characteristics.
23416 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
23417 if test "x$ac_cv_type__Bool" = xyes
23418 then :
23419
23420 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
23421
23422
23423 fi
23424
23425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
23426 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
23427 if test ${ac_cv_header_stdbool_h+y}
23428 then :
23429 printf %s "(cached) " >&6
23430 else case e in #(
23431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23432 /* end confdefs.h. */
23433 #include <stdbool.h>
23434
23435 /* "true" and "false" should be usable in #if expressions and
23436 integer constant expressions, and "bool" should be a valid
23437 type name.
23438
23439 Although C99 requires bool, true, and false to be macros,
23440 C23 and C++11 overrule that, so do not test for that.
23441 Although C99 requires __bool_true_false_are_defined and
23442 _Bool, C23 says they are obsolescent, so do not require
23443 them. */
23444
23445 #if !true
23446 #error "'true' is not true"
23447 #endif
23448 #if true != 1
23449 #error "'true' is not equal to 1"
23450 #endif
23451 char b[true == 1 ? 1 : -1];
23452 char c[true];
23453
23454 #if false
23455 #error "'false' is not false"
23456 #endif
23457 #if false != 0
23458 #error "'false' is not equal to 0"
23459 #endif
23460 char d[false == 0 ? 1 : -1];
23461
23462 enum { e = false, f = true, g = false * true, h = true * 256 };
23463
23464 char i[(bool) 0.5 == true ? 1 : -1];
23465 char j[(bool) 0.0 == false ? 1 : -1];
23466 char k[sizeof (bool) > 0 ? 1 : -1];
23467
23468 struct sb { bool s: 1; bool t; } s;
23469 char l[sizeof s.t > 0 ? 1 : -1];
23470
23471 /* The following fails for
23472 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
23473 bool m[h];
23474 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
23475 char o[-1 - (bool) 0 < 0 ? 1 : -1];
23476 /* Catch a bug in an HP-UX C compiler. See
23477 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
23478 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
23479 */
23480 bool p = true;
23481 bool *pp = &p;
23482
23483 int
23484 main (void)
23485 {
23486
23487 bool ps = &s;
23488 *pp |= p;
23489 *pp |= ! p;
23490
23491 /* Refer to every declared value, so they cannot be
23492 discarded as unused. */
23493 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
23494 + !l + !m + !n + !o + !p + !pp + !ps);
23495
23496 ;
23497 return 0;
23498 }
23499 _ACEOF
23500 if ac_fn_c_try_compile "$LINENO"
23501 then :
23502 ac_cv_header_stdbool_h=yes
23503 else case e in #(
23504 e) ac_cv_header_stdbool_h=no ;;
23505 esac
23506 fi
23507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23508 esac
23509 fi
23510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
23511 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
23512
23513 if test $ac_cv_header_stdbool_h = yes; then
23514
23515 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
23516
23517 fi
23518
23519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23520 printf %s "checking for inline... " >&6; }
23521 if test ${ac_cv_c_inline+y}
23522 then :
23523 printf %s "(cached) " >&6
23524 else case e in #(
23525 e) ac_cv_c_inline=no
23526 for ac_kw in inline __inline__ __inline; do
23527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23528 /* end confdefs.h. */
23529 #ifndef __cplusplus
23530 typedef int foo_t;
23531 static $ac_kw foo_t static_foo (void) {return 0; }
23532 $ac_kw foo_t foo (void) {return 0; }
23533 #endif
23534
23535 _ACEOF
23536 if ac_fn_c_try_compile "$LINENO"
23537 then :
23538 ac_cv_c_inline=$ac_kw
23539 fi
23540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23541 test "$ac_cv_c_inline" != no && break
23542 done
23543 ;;
23544 esac
23545 fi
23546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23547 printf "%s\n" "$ac_cv_c_inline" >&6; }
23548
23549 case $ac_cv_c_inline in
23550 inline | yes) ;;
23551 *)
23552 case $ac_cv_c_inline in
23553 no) ac_val=;;
23554 *) ac_val=$ac_cv_c_inline;;
23555 esac
23556 cat >>confdefs.h <<_ACEOF
23557 #ifndef __cplusplus
23558 #define inline $ac_val
23559 #endif
23560 _ACEOF
23561 ;;
23562 esac
23563
23564
23565 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
23566 "
23567 if test "x$ac_cv_type_pid_t" = xyes
23568 then :
23569
23570 else case e in #(
23571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23572 /* end confdefs.h. */
23573
23574 #if defined _WIN64 && !defined __CYGWIN__
23575 LLP64
23576 #endif
23577
23578 int
23579 main (void)
23580 {
23581
23582 ;
23583 return 0;
23584 }
23585
23586 _ACEOF
23587 if ac_fn_c_try_compile "$LINENO"
23588 then :
23589 ac_pid_type='int'
23590 else case e in #(
23591 e) ac_pid_type='__int64' ;;
23592 esac
23593 fi
23594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23595
23596 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
23597
23598 ;;
23599 esac
23600 fi
23601
23602
23603 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23604 if test "x$ac_cv_type_size_t" = xyes
23605 then :
23606
23607 else case e in #(
23608 e)
23609 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
23610 ;;
23611 esac
23612 fi
23613
23614 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23615 if test "x$ac_cv_type_ssize_t" = xyes
23616 then :
23617
23618 else case e in #(
23619 e)
23620 printf "%s\n" "#define ssize_t int" >>confdefs.h
23621 ;;
23622 esac
23623 fi
23624
23625 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23626 case $ac_cv_c_uint32_t in #(
23627 no|yes) ;; #(
23628 *)
23629
23630 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
23631
23632
23633 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
23634 ;;
23635 esac
23636
23637
23638 # Checks for library functions.
23639
23640 ac_func=
23641 for ac_item in $ac_func_c_list
23642 do
23643 if test $ac_func; then
23644 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
23645 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
23646 echo "#define $ac_item 1" >> confdefs.h
23647 fi
23648 ac_func=
23649 else
23650 ac_func=$ac_item
23651 fi
23652 done
23653
23654
23655
23656 if test "x$ac_cv_func_fork" = xyes; then
23657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23658 printf %s "checking for working fork... " >&6; }
23659 if test ${ac_cv_func_fork_works+y}
23660 then :
23661 printf %s "(cached) " >&6
23662 else case e in #(
23663 e) if test "$cross_compiling" = yes
23664 then :
23665 ac_cv_func_fork_works=cross
23666 else case e in #(
23667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668 /* end confdefs.h. */
23669 $ac_includes_default
23670 int
23671 main (void)
23672 {
23673
23674 /* By R. Kuhlmann. */
23675 return fork () < 0;
23676
23677 ;
23678 return 0;
23679 }
23680 _ACEOF
23681 if ac_fn_c_try_run "$LINENO"
23682 then :
23683 ac_cv_func_fork_works=yes
23684 else case e in #(
23685 e) ac_cv_func_fork_works=no ;;
23686 esac
23687 fi
23688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23689 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23690 esac
23691 fi
23692 ;;
23693 esac
23694 fi
23695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23696 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
23697
23698 else
23699 ac_cv_func_fork_works=$ac_cv_func_fork
23700 fi
23701 if test "x$ac_cv_func_fork_works" = xcross; then
23702 case $host in
23703 *-*-amigaos* | *-*-msdosdjgpp*)
23704 # Override, as these systems have only a dummy fork() stub
23705 ac_cv_func_fork_works=no
23706 ;;
23707 *)
23708 ac_cv_func_fork_works=yes
23709 ;;
23710 esac
23711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23712 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23713 fi
23714 ac_cv_func_vfork_works=$ac_cv_func_vfork
23715 if test "x$ac_cv_func_vfork" = xyes; then
23716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23717 printf %s "checking for working vfork... " >&6; }
23718 if test ${ac_cv_func_vfork_works+y}
23719 then :
23720 printf %s "(cached) " >&6
23721 else case e in #(
23722 e) if test "$cross_compiling" = yes
23723 then :
23724 ac_cv_func_vfork_works=cross
23725 else case e in #(
23726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23727 /* end confdefs.h. */
23728 /* Thanks to Paul Eggert for this test. */
23729 $ac_includes_default
23730 #include <signal.h>
23731 #include <sys/wait.h>
23732 #ifdef HAVE_VFORK_H
23733 # include <vfork.h>
23734 #endif
23735
23736 static void
23737 do_nothing (int sig)
23738 {
23739 (void) sig;
23740 }
23741
23742 /* On some sparc systems, changes by the child to local and incoming
23743 argument registers are propagated back to the parent. The compiler
23744 is told about this with #include <vfork.h>, but some compilers
23745 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23746 static variable whose address is put into a register that is
23747 clobbered by the vfork. */
23748 static void
23749 sparc_address_test (int arg)
23750 {
23751 static pid_t child;
23752 if (!child) {
23753 child = vfork ();
23754 if (child < 0) {
23755 perror ("vfork");
23756 _exit(2);
23757 }
23758 if (!child) {
23759 arg = getpid();
23760 write(-1, "", 0);
23761 _exit (arg);
23762 }
23763 }
23764 }
23765
23766 int
23767 main (void)
23768 {
23769 pid_t parent = getpid ();
23770 pid_t child;
23771
23772 sparc_address_test (0);
23773
23774 /* On Solaris 2.4, changes by the child to the signal handler
23775 also munge signal handlers in the parent. To detect this,
23776 start by putting the parent's handler in a known state. */
23777 signal (SIGTERM, SIG_DFL);
23778
23779 child = vfork ();
23780
23781 if (child == 0) {
23782 /* Here is another test for sparc vfork register problems. This
23783 test uses lots of local variables, at least as many local
23784 variables as main has allocated so far including compiler
23785 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23786 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23787 reuse the register of parent for one of the local variables,
23788 since it will think that parent can't possibly be used any more
23789 in this routine. Assigning to the local variable will thus
23790 munge parent in the parent process. */
23791 pid_t
23792 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23793 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23794 /* Convince the compiler that p..p7 are live; otherwise, it might
23795 use the same hardware register for all 8 local variables. */
23796 if (p != p1 || p != p2 || p != p3 || p != p4
23797 || p != p5 || p != p6 || p != p7)
23798 _exit(1);
23799
23800 /* Alter the child's signal handler. */
23801 if (signal (SIGTERM, do_nothing) != SIG_DFL)
23802 _exit(1);
23803
23804 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23805 from child file descriptors. If the child closes a descriptor
23806 before it execs or exits, this munges the parent's descriptor
23807 as well. Test for this by closing stdout in the child. */
23808 _exit(close(fileno(stdout)) != 0);
23809 } else {
23810 int status;
23811 struct stat st;
23812
23813 while (wait(&status) != child)
23814 ;
23815 return (
23816 /* Was there some problem with vforking? */
23817 child < 0
23818
23819 /* Did the child munge the parent's signal handler? */
23820 || signal (SIGTERM, SIG_DFL) != SIG_DFL
23821
23822 /* Did the child fail? (This shouldn't happen.) */
23823 || status
23824
23825 /* Did the vfork/compiler bug occur? */
23826 || parent != getpid()
23827
23828 /* Did the file descriptor bug occur? */
23829 || fstat(fileno(stdout), &st) != 0
23830 );
23831 }
23832 }
23833 _ACEOF
23834 if ac_fn_c_try_run "$LINENO"
23835 then :
23836 ac_cv_func_vfork_works=yes
23837 else case e in #(
23838 e) ac_cv_func_vfork_works=no ;;
23839 esac
23840 fi
23841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23842 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23843 esac
23844 fi
23845 ;;
23846 esac
23847 fi
23848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23849 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
23850
23851 fi;
23852 if test "x$ac_cv_func_fork_works" = xcross; then
23853 ac_cv_func_vfork_works=$ac_cv_func_vfork
23854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23855 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23856 fi
23857
23858 if test "x$ac_cv_func_vfork_works" = xyes; then
23859
23860 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23861
23862 else
23863
23864 printf "%s\n" "#define vfork fork" >>confdefs.h
23865
23866 fi
23867 if test "x$ac_cv_func_fork_works" = xyes; then
23868
23869 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
23870
23871 fi
23872
23873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
23874 printf %s "checking for GNU libc compatible malloc... " >&6; }
23875 if test ${ac_cv_func_malloc_0_nonnull+y}
23876 then :
23877 printf %s "(cached) " >&6
23878 else case e in #(
23879 e) if test "$cross_compiling" = yes
23880 then :
23881 case "$host_os" in # ((
23882 # Guess yes on platforms where we know the result.
23883 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
23884 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
23885 ac_cv_func_malloc_0_nonnull=yes ;;
23886 # If we don't know, assume the worst.
23887 *) ac_cv_func_malloc_0_nonnull=no ;;
23888 esac
23889 else case e in #(
23890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23891 /* end confdefs.h. */
23892 #include <stdlib.h>
23893
23894 int
23895 main (void)
23896 {
23897 void *p = malloc (0);
23898 int result = !p;
23899 free (p);
23900 return result;
23901 ;
23902 return 0;
23903 }
23904 _ACEOF
23905 if ac_fn_c_try_run "$LINENO"
23906 then :
23907 ac_cv_func_malloc_0_nonnull=yes
23908 else case e in #(
23909 e) ac_cv_func_malloc_0_nonnull=no ;;
23910 esac
23911 fi
23912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23913 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23914 esac
23915 fi
23916 ;;
23917 esac
23918 fi
23919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
23920 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
23921 if test $ac_cv_func_malloc_0_nonnull = yes
23922 then :
23923
23924 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
23925
23926 else case e in #(
23927 e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
23928
23929 case " $LIBOBJS " in
23930 *" malloc.$ac_objext "* ) ;;
23931 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
23932 ;;
23933 esac
23934
23935
23936 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
23937 ;;
23938 esac
23939 fi
23940
23941
23942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
23943 printf %s "checking for GNU libc compatible realloc... " >&6; }
23944 if test ${ac_cv_func_realloc_0_nonnull+y}
23945 then :
23946 printf %s "(cached) " >&6
23947 else case e in #(
23948 e) if test "$cross_compiling" = yes
23949 then :
23950 case "$host_os" in # ((
23951 # Guess yes on platforms where we know the result.
23952 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
23953 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
23954 ac_cv_func_realloc_0_nonnull=yes ;;
23955 # If we don't know, assume the worst.
23956 *) ac_cv_func_realloc_0_nonnull=no ;;
23957 esac
23958 else case e in #(
23959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h. */
23961 #include <stdlib.h>
23962
23963 int
23964 main (void)
23965 {
23966 void *p = realloc (0, 0);
23967 int result = !p;
23968 free (p);
23969 return result;
23970 ;
23971 return 0;
23972 }
23973 _ACEOF
23974 if ac_fn_c_try_run "$LINENO"
23975 then :
23976 ac_cv_func_realloc_0_nonnull=yes
23977 else case e in #(
23978 e) ac_cv_func_realloc_0_nonnull=no ;;
23979 esac
23980 fi
23981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23982 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23983 esac
23984 fi
23985 ;;
23986 esac
23987 fi
23988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
23989 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
23990 if test $ac_cv_func_realloc_0_nonnull = yes
23991 then :
23992
23993 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
23994
23995 else case e in #(
23996 e) printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
23997
23998 case " $LIBOBJS " in
23999 *" realloc.$ac_objext "* ) ;;
24000 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
24001 ;;
24002 esac
24003
24004
24005 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
24006 ;;
24007 esac
24008 fi
24009
24010
24011 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
24012 if test "x$ac_cv_func_daemon" = xyes
24013 then :
24014 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
24015
24016 fi
24017 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
24018 if test "x$ac_cv_func_dup2" = xyes
24019 then :
24020 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
24021
24022 fi
24023 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24024 if test "x$ac_cv_func_gethostbyname" = xyes
24025 then :
24026 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
24027
24028 fi
24029 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
24030 if test "x$ac_cv_func_getline" = xyes
24031 then :
24032 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
24033
24034 fi
24035 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
24036 if test "x$ac_cv_func_gettimeofday" = xyes
24037 then :
24038 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
24039
24040 fi
24041 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
24042 if test "x$ac_cv_func_memmove" = xyes
24043 then :
24044 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
24045
24046 fi
24047 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
24048 if test "x$ac_cv_func_memset" = xyes
24049 then :
24050 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
24051
24052 fi
24053
24054 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
24055 if test "x$ac_cv_func_mkdir" = xyes
24056 then :
24057 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
24058
24059 fi
24060 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
24061 if test "x$ac_cv_func_select" = xyes
24062 then :
24063 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
24064
24065 fi
24066 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
24067 if test "x$ac_cv_func_socket" = xyes
24068 then :
24069 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
24070
24071 fi
24072 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24073 if test "x$ac_cv_func_strcasecmp" = xyes
24074 then :
24075 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
24076
24077 fi
24078 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
24079 if test "x$ac_cv_func_strcasestr" = xyes
24080 then :
24081 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
24082
24083 fi
24084 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
24085 if test "x$ac_cv_func_strchr" = xyes
24086 then :
24087 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
24088
24089 fi
24090 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
24091 if test "x$ac_cv_func_strcspn" = xyes
24092 then :
24093 printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
24094
24095 fi
24096 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
24097 if test "x$ac_cv_func_strdup" = xyes
24098 then :
24099 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
24100
24101 fi
24102
24103 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
24104 if test "x$ac_cv_func_strerror" = xyes
24105 then :
24106 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
24107
24108 fi
24109 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24110 if test "x$ac_cv_func_strncasecmp" = xyes
24111 then :
24112 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
24113
24114 fi
24115 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
24116 if test "x$ac_cv_func_strndup" = xyes
24117 then :
24118 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
24119
24120 fi
24121 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
24122 if test "x$ac_cv_func_strstr" = xyes
24123 then :
24124 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
24125
24126 fi
24127 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
24128 if test "x$ac_cv_func_strtol" = xyes
24129 then :
24130 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
24131
24132 fi
24133
24134
24135 # Extra libraries for sockets and espeak added by Willie Walker
24136 # based upon how SunStudio compilers and Solaris libraries work.
24137 # Also conditionally set other compiler/linker flags.
24138 #
24139
24140 # SVR4, including Solaris before 11.4, hides these in libraries other than libc
24141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lc" >&5
24142 printf %s "checking for socket in -lc... " >&6; }
24143 if test ${ac_cv_lib_c_socket+y}
24144 then :
24145 printf %s "(cached) " >&6
24146 else case e in #(
24147 e) ac_check_lib_save_LIBS=$LIBS
24148 LIBS="-lc $LIBS"
24149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24150 /* end confdefs.h. */
24151
24152 /* Override any GCC internal prototype to avoid an error.
24153 Use char because int might match the return type of a GCC
24154 builtin and then its argument prototype would still apply.
24155 The 'extern "C"' is for builds by C++ compilers;
24156 although this is not generally supported in C code supporting it here
24157 has little cost and some practical benefit (sr 110532). */
24158 #ifdef __cplusplus
24159 extern "C"
24160 #endif
24161 char socket (void);
24162 int
24163 main (void)
24164 {
24165 return socket ();
24166 ;
24167 return 0;
24168 }
24169 _ACEOF
24170 if ac_fn_c_try_link "$LINENO"
24171 then :
24172 ac_cv_lib_c_socket=yes
24173 else case e in #(
24174 e) ac_cv_lib_c_socket=no ;;
24175 esac
24176 fi
24177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24178 conftest$ac_exeext conftest.$ac_ext
24179 LIBS=$ac_check_lib_save_LIBS ;;
24180 esac
24181 fi
24182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_socket" >&5
24183 printf "%s\n" "$ac_cv_lib_c_socket" >&6; }
24184 if test "x$ac_cv_lib_c_socket" = xyes
24185 then :
24186 printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
24187
24188 LIBS="-lc $LIBS"
24189
24190 else case e in #(
24191 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
24192 printf %s "checking for socket in -lsocket... " >&6; }
24193 if test ${ac_cv_lib_socket_socket+y}
24194 then :
24195 printf %s "(cached) " >&6
24196 else case e in #(
24197 e) ac_check_lib_save_LIBS=$LIBS
24198 LIBS="-lsocket $LIBS"
24199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24200 /* end confdefs.h. */
24201
24202 /* Override any GCC internal prototype to avoid an error.
24203 Use char because int might match the return type of a GCC
24204 builtin and then its argument prototype would still apply.
24205 The 'extern "C"' is for builds by C++ compilers;
24206 although this is not generally supported in C code supporting it here
24207 has little cost and some practical benefit (sr 110532). */
24208 #ifdef __cplusplus
24209 extern "C"
24210 #endif
24211 char socket (void);
24212 int
24213 main (void)
24214 {
24215 return socket ();
24216 ;
24217 return 0;
24218 }
24219 _ACEOF
24220 if ac_fn_c_try_link "$LINENO"
24221 then :
24222 ac_cv_lib_socket_socket=yes
24223 else case e in #(
24224 e) ac_cv_lib_socket_socket=no ;;
24225 esac
24226 fi
24227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24228 conftest$ac_exeext conftest.$ac_ext
24229 LIBS=$ac_check_lib_save_LIBS ;;
24230 esac
24231 fi
24232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
24233 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
24234 if test "x$ac_cv_lib_socket_socket" = xyes
24235 then :
24236 EXTRA_SOCKET_LIBS="-lsocket"
24237 fi
24238 ;;
24239 esac
24240 fi
24241
24242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc" >&5
24243 printf %s "checking for gethostbyname in -lc... " >&6; }
24244 if test ${ac_cv_lib_c_gethostbyname+y}
24245 then :
24246 printf %s "(cached) " >&6
24247 else case e in #(
24248 e) ac_check_lib_save_LIBS=$LIBS
24249 LIBS="-lc $LIBS"
24250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24251 /* end confdefs.h. */
24252
24253 /* Override any GCC internal prototype to avoid an error.
24254 Use char because int might match the return type of a GCC
24255 builtin and then its argument prototype would still apply.
24256 The 'extern "C"' is for builds by C++ compilers;
24257 although this is not generally supported in C code supporting it here
24258 has little cost and some practical benefit (sr 110532). */
24259 #ifdef __cplusplus
24260 extern "C"
24261 #endif
24262 char gethostbyname (void);
24263 int
24264 main (void)
24265 {
24266 return gethostbyname ();
24267 ;
24268 return 0;
24269 }
24270 _ACEOF
24271 if ac_fn_c_try_link "$LINENO"
24272 then :
24273 ac_cv_lib_c_gethostbyname=yes
24274 else case e in #(
24275 e) ac_cv_lib_c_gethostbyname=no ;;
24276 esac
24277 fi
24278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24279 conftest$ac_exeext conftest.$ac_ext
24280 LIBS=$ac_check_lib_save_LIBS ;;
24281 esac
24282 fi
24283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gethostbyname" >&5
24284 printf "%s\n" "$ac_cv_lib_c_gethostbyname" >&6; }
24285 if test "x$ac_cv_lib_c_gethostbyname" = xyes
24286 then :
24287 printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
24288
24289 LIBS="-lc $LIBS"
24290
24291 else case e in #(
24292 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24293 printf %s "checking for gethostbyname in -lnsl... " >&6; }
24294 if test ${ac_cv_lib_nsl_gethostbyname+y}
24295 then :
24296 printf %s "(cached) " >&6
24297 else case e in #(
24298 e) ac_check_lib_save_LIBS=$LIBS
24299 LIBS="-lnsl $LIBS"
24300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24301 /* end confdefs.h. */
24302
24303 /* Override any GCC internal prototype to avoid an error.
24304 Use char because int might match the return type of a GCC
24305 builtin and then its argument prototype would still apply.
24306 The 'extern "C"' is for builds by C++ compilers;
24307 although this is not generally supported in C code supporting it here
24308 has little cost and some practical benefit (sr 110532). */
24309 #ifdef __cplusplus
24310 extern "C"
24311 #endif
24312 char gethostbyname (void);
24313 int
24314 main (void)
24315 {
24316 return gethostbyname ();
24317 ;
24318 return 0;
24319 }
24320 _ACEOF
24321 if ac_fn_c_try_link "$LINENO"
24322 then :
24323 ac_cv_lib_nsl_gethostbyname=yes
24324 else case e in #(
24325 e) ac_cv_lib_nsl_gethostbyname=no ;;
24326 esac
24327 fi
24328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24329 conftest$ac_exeext conftest.$ac_ext
24330 LIBS=$ac_check_lib_save_LIBS ;;
24331 esac
24332 fi
24333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24334 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
24335 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
24336 then :
24337 EXTRA_SOCKET_LIBS="${EXTRA_SOCKET_LIBS} -lnsl"
24338 fi
24339 ;;
24340 esac
24341 fi
24342
24343
24344 if test "$GCC" = yes; then
24345 ERROR_CFLAGS="-Wall"
24346 RDYNAMIC="-rdynamic"
24347 else
24348 EXTRA_ESPEAK_LIBS="-lCstd -lCrun"
24349 ERROR_CFLAGS="-errwarn=%all -errtags=yes -erroff=E_STATEMENT_NOT_REACHED"
24350 RDYNAMIC=""
24351 fi
24352
24353
24354
24355
24356
24357 # Check whether --enable-doc was given.
24358 if test ${enable_doc+y}
24359 then :
24360 enableval=$enable_doc;
24361 fi
24362
24363 if test "$enable_doc" != "no"; then
24364 ENABLE_DOC_TRUE=
24365 ENABLE_DOC_FALSE='#'
24366 else
24367 ENABLE_DOC_TRUE='#'
24368 ENABLE_DOC_FALSE=
24369 fi
24370
24371
24372 # Check for python support.
24373 # Python 3 or greater required
24374 # Check whether --enable-python was given.
24375 if test ${enable_python+y}
24376 then :
24377 enableval=$enable_python;
24378 else case e in #(
24379 e) enable_python=check ;;
24380 esac
24381 fi
24382
24383 if test $enable_python != "no"
24384 then :
24385
24386
24387
24388
24389
24390
24391 if test -n "$PYTHON"; then
24392 # If the user set $PYTHON, use it and don't search something else.
24393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.0" >&5
24394 printf %s "checking whether $PYTHON version is >= 3.0... " >&6; }
24395 prog="import sys
24396 # split strings by '.' and convert to numeric. Append some zeros
24397 # because we need at least 4 digits for the hex conversion.
24398 # map returns an iterator in Python 3.0 and a list in 2.x
24399 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
24400 minverhex = 0
24401 # xrange is not present in Python 3.0 and range returns an iterator
24402 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
24403 sys.exit(sys.hexversion < minverhex)"
24404 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
24405 ($PYTHON -c "$prog") >&5 2>&5
24406 ac_status=$?
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); }
24409 then :
24410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24411 printf "%s\n" "yes" >&6; }
24412 else case e in #(
24413 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24414 printf "%s\n" "no" >&6; }
24415 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
24416 esac
24417 fi
24418 am_display_PYTHON=$PYTHON
24419 else
24420 # Otherwise, try each interpreter until we find one that satisfies
24421 # VERSION.
24422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.0" >&5
24423 printf %s "checking for a Python interpreter with version >= 3.0... " >&6; }
24424 if test ${am_cv_pathless_PYTHON+y}
24425 then :
24426 printf %s "(cached) " >&6
24427 else case e in #(
24428 e)
24429 for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
24430 test "$am_cv_pathless_PYTHON" = none && break
24431 prog="import sys
24432 # split strings by '.' and convert to numeric. Append some zeros
24433 # because we need at least 4 digits for the hex conversion.
24434 # map returns an iterator in Python 3.0 and a list in 2.x
24435 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
24436 minverhex = 0
24437 # xrange is not present in Python 3.0 and range returns an iterator
24438 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
24439 sys.exit(sys.hexversion < minverhex)"
24440 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
24441 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
24442 ac_status=$?
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); }
24445 then :
24446 break
24447 fi
24448 done ;;
24449 esac
24450 fi
24451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
24452 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
24453 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
24454 if test "$am_cv_pathless_PYTHON" = none; then
24455 PYTHON=:
24456 else
24457 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
24458 set dummy $am_cv_pathless_PYTHON; ac_word=$2
24459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24460 printf %s "checking for $ac_word... " >&6; }
24461 if test ${ac_cv_path_PYTHON+y}
24462 then :
24463 printf %s "(cached) " >&6
24464 else case e in #(
24465 e) case $PYTHON in
24466 [\\/]* | ?:[\\/]*)
24467 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24468 ;;
24469 *)
24470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24471 for as_dir in $PATH
24472 do
24473 IFS=$as_save_IFS
24474 case $as_dir in #(((
24475 '') as_dir=./ ;;
24476 */) ;;
24477 *) as_dir=$as_dir/ ;;
24478 esac
24479 for ac_exec_ext in '' $ac_executable_extensions; do
24480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24481 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
24482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24483 break 2
24484 fi
24485 done
24486 done
24487 IFS=$as_save_IFS
24488
24489 ;;
24490 esac ;;
24491 esac
24492 fi
24493 PYTHON=$ac_cv_path_PYTHON
24494 if test -n "$PYTHON"; then
24495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24496 printf "%s\n" "$PYTHON" >&6; }
24497 else
24498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24499 printf "%s\n" "no" >&6; }
24500 fi
24501
24502
24503 fi
24504 am_display_PYTHON=$am_cv_pathless_PYTHON
24505 fi
24506
24507
24508 if test "$PYTHON" = :; then
24509 if test $enable_python = "yes"
24510 then :
24511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24512 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24513 as_fn_error $? "python 3 or greater is not available
24514 See 'config.log' for more details" "$LINENO" 5; }
24515 fi
24516 else
24517
24518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
24519 printf %s "checking for $am_display_PYTHON version... " >&6; }
24520 if test ${am_cv_python_version+y}
24521 then :
24522 printf %s "(cached) " >&6
24523 else case e in #(
24524 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
24525 esac
24526 fi
24527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
24528 printf "%s\n" "$am_cv_python_version" >&6; }
24529 PYTHON_VERSION=$am_cv_python_version
24530
24531
24532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
24533 printf %s "checking for $am_display_PYTHON platform... " >&6; }
24534 if test ${am_cv_python_platform+y}
24535 then :
24536 printf %s "(cached) " >&6
24537 else case e in #(
24538 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
24539 esac
24540 fi
24541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
24542 printf "%s\n" "$am_cv_python_platform" >&6; }
24543 PYTHON_PLATFORM=$am_cv_python_platform
24544
24545
24546 if test "x$prefix" = xNONE; then
24547 am__usable_prefix=$ac_default_prefix
24548 else
24549 am__usable_prefix=$prefix
24550 fi
24551
24552 # Allow user to request using sys.* values from Python,
24553 # instead of the GNU $prefix values.
24554
24555 # Check whether --with-python-sys-prefix was given.
24556 if test ${with_python_sys_prefix+y}
24557 then :
24558 withval=$with_python_sys_prefix; am_use_python_sys=:
24559 else case e in #(
24560 e) am_use_python_sys=false ;;
24561 esac
24562 fi
24563
24564
24565 # Allow user to override whatever the default Python prefix is.
24566
24567 # Check whether --with-python_prefix was given.
24568 if test ${with_python_prefix+y}
24569 then :
24570 withval=$with_python_prefix; am_python_prefix_subst=$withval
24571 am_cv_python_prefix=$withval
24572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
24573 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
24574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
24575 printf "%s\n" "$am_cv_python_prefix" >&6; }
24576 else case e in #(
24577 e)
24578 if $am_use_python_sys; then
24579 # using python sys.prefix value, not GNU
24580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
24581 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
24582 if test ${am_cv_python_prefix+y}
24583 then :
24584 printf %s "(cached) " >&6
24585 else case e in #(
24586 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
24587 esac
24588 fi
24589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
24590 printf "%s\n" "$am_cv_python_prefix" >&6; }
24591
24592 case $am_cv_python_prefix in
24593 $am__usable_prefix*)
24594 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
24595 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
24596 ;;
24597 *)
24598 am_python_prefix_subst=$am_cv_python_prefix
24599 ;;
24600 esac
24601 else # using GNU prefix value, not python sys.prefix
24602 am_python_prefix_subst='${prefix}'
24603 am_python_prefix=$am_python_prefix_subst
24604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
24605 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
24606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
24607 printf "%s\n" "$am_python_prefix" >&6; }
24608 fi ;;
24609 esac
24610 fi
24611
24612 # Substituting python_prefix_subst value.
24613 PYTHON_PREFIX=$am_python_prefix_subst
24614
24615
24616 # emacs-page Now do it all over again for Python exec_prefix, but with yet
24617 # another conditional: fall back to regular prefix if that was specified.
24618
24619 # Check whether --with-python_exec_prefix was given.
24620 if test ${with_python_exec_prefix+y}
24621 then :
24622 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
24623 am_cv_python_exec_prefix=$withval
24624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
24625 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
24626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
24627 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
24628 else case e in #(
24629 e)
24630 # no explicit --with-python_exec_prefix, but if
24631 # --with-python_prefix was given, use its value for python_exec_prefix too.
24632 if test -n "$with_python_prefix"
24633 then :
24634 am_python_exec_prefix_subst=$with_python_prefix
24635 am_cv_python_exec_prefix=$with_python_prefix
24636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
24637 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
24638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
24639 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
24640 else case e in #(
24641 e)
24642 # Set am__usable_exec_prefix whether using GNU or Python values,
24643 # since we use that variable for pyexecdir.
24644 if test "x$exec_prefix" = xNONE; then
24645 am__usable_exec_prefix=$am__usable_prefix
24646 else
24647 am__usable_exec_prefix=$exec_prefix
24648 fi
24649 #
24650 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
24651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
24652 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
24653 if test ${am_cv_python_exec_prefix+y}
24654 then :
24655 printf %s "(cached) " >&6
24656 else case e in #(
24657 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
24658 esac
24659 fi
24660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
24661 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
24662 case $am_cv_python_exec_prefix in
24663 $am__usable_exec_prefix*)
24664 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
24665 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
24666 ;;
24667 *)
24668 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
24669 ;;
24670 esac
24671 else # using GNU $exec_prefix, not python sys.exec_prefix
24672 am_python_exec_prefix_subst='${exec_prefix}'
24673 am_python_exec_prefix=$am_python_exec_prefix_subst
24674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
24675 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
24676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
24677 printf "%s\n" "$am_python_exec_prefix" >&6; }
24678 fi ;;
24679 esac
24680 fi ;;
24681 esac
24682 fi
24683
24684 # Substituting python_exec_prefix_subst.
24685 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
24686
24687
24688 # Factor out some code duplication into this shell variable.
24689 am_python_setup_sysconfig="\
24690 import sys
24691 # Prefer sysconfig over distutils.sysconfig, for better compatibility
24692 # with python 3.x. See automake bug#10227.
24693 try:
24694 import sysconfig
24695 except ImportError:
24696 can_use_sysconfig = 0
24697 else:
24698 can_use_sysconfig = 1
24699 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
24700 # <https://github.com/pypa/virtualenv/issues/118>
24701 try:
24702 from platform import python_implementation
24703 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
24704 can_use_sysconfig = 0
24705 except ImportError:
24706 pass" # end of am_python_setup_sysconfig
24707
24708 # More repeated code, for figuring out the installation scheme to use.
24709 am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'):
24710 scheme = sysconfig.get_default_scheme()
24711 else:
24712 scheme = sysconfig._get_default_scheme()
24713 if scheme == 'posix_local':
24714 if '$am_py_prefix' == '/usr':
24715 scheme = 'deb_system' # should only happen during Debian package builds
24716 else:
24717 # Debian's default scheme installs to /usr/local/ but we want to
24718 # follow the prefix, as we always have.
24719 # See bugs#54412, #64837, et al.
24720 scheme = 'posix_prefix'" # end of am_python_setup_scheme
24721
24722
24723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
24724 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
24725 if test ${am_cv_python_pythondir+y}
24726 then :
24727 printf %s "(cached) " >&6
24728 else case e in #(
24729 e) if test "x$am_cv_python_prefix" = x; then
24730 am_py_prefix=$am__usable_prefix
24731 else
24732 am_py_prefix=$am_cv_python_prefix
24733 fi
24734 am_cv_python_pythondir=`$PYTHON -c "
24735 $am_python_setup_sysconfig
24736 if can_use_sysconfig:
24737 try:
24738 $am_python_setup_scheme
24739 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
24740 except:
24741 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
24742 else:
24743 from distutils import sysconfig
24744 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
24745 sys.stdout.write(sitedir)"`
24746 #
24747 case $am_cv_python_pythondir in
24748 $am_py_prefix*)
24749 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24750 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
24751 ;;
24752 *)
24753 case $am_py_prefix in
24754 /usr|/System*) ;;
24755 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
24756 ;;
24757 esac
24758 ;;
24759 esac
24760 ;;
24761 esac
24762 fi
24763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
24764 printf "%s\n" "$am_cv_python_pythondir" >&6; }
24765 pythondir=$am_cv_python_pythondir
24766
24767
24768 pkgpythondir=\${pythondir}/$PACKAGE
24769
24770
24771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
24772 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
24773 if test ${am_cv_python_pyexecdir+y}
24774 then :
24775 printf %s "(cached) " >&6
24776 else case e in #(
24777 e) if test "x$am_cv_python_exec_prefix" = x; then
24778 am_py_exec_prefix=$am__usable_exec_prefix
24779 else
24780 am_py_exec_prefix=$am_cv_python_exec_prefix
24781 fi
24782 am_cv_python_pyexecdir=`$PYTHON -c "
24783 $am_python_setup_sysconfig
24784 if can_use_sysconfig:
24785 try:
24786 $am_python_setup_scheme
24787 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
24788 except:
24789 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
24790 else:
24791 from distutils import sysconfig
24792 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
24793 sys.stdout.write(sitedir)"`
24794 #
24795 case $am_cv_python_pyexecdir in
24796 $am_py_exec_prefix*)
24797 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24798 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
24799 ;;
24800 *)
24801 case $am_py_exec_prefix in
24802 /usr|/System*) ;;
24803 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
24804 ;;
24805 esac
24806 ;;
24807 esac
24808 ;;
24809 esac
24810 fi
24811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
24812 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
24813 pyexecdir=$am_cv_python_pyexecdir
24814
24815
24816 pkgpyexecdir=\${pyexecdir}/$PACKAGE
24817
24818
24819 enable_python=yes
24820 fi
24821
24822 fi
24823 if test $enable_python = "yes"; then
24824 HAVE_PYTHON_TRUE=
24825 HAVE_PYTHON_FALSE='#'
24826 else
24827 HAVE_PYTHON_TRUE='#'
24828 HAVE_PYTHON_FALSE=
24829 fi
24830
24831
24832 output_modules="cicero dummy festival openjtalk generic"
24833 # checks for output modules
24834 # check for espeak support
24835
24836 # Check whether --with-espeak was given.
24837 if test ${with_espeak+y}
24838 then :
24839 withval=$with_espeak;
24840 else case e in #(
24841 e) with_espeak=check ;;
24842 esac
24843 fi
24844
24845 if test $with_espeak != "no"
24846 then :
24847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for espeak_Synth in -lespeak" >&5
24848 printf %s "checking for espeak_Synth in -lespeak... " >&6; }
24849 if test ${ac_cv_lib_espeak_espeak_Synth+y}
24850 then :
24851 printf %s "(cached) " >&6
24852 else case e in #(
24853 e) ac_check_lib_save_LIBS=$LIBS
24854 LIBS="-lespeak $EXTRA_ESPEAK_LIBS $LIBS"
24855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24856 /* end confdefs.h. */
24857
24858 /* Override any GCC internal prototype to avoid an error.
24859 Use char because int might match the return type of a GCC
24860 builtin and then its argument prototype would still apply.
24861 The 'extern "C"' is for builds by C++ compilers;
24862 although this is not generally supported in C code supporting it here
24863 has little cost and some practical benefit (sr 110532). */
24864 #ifdef __cplusplus
24865 extern "C"
24866 #endif
24867 char espeak_Synth (void);
24868 int
24869 main (void)
24870 {
24871 return espeak_Synth ();
24872 ;
24873 return 0;
24874 }
24875 _ACEOF
24876 if ac_fn_c_try_link "$LINENO"
24877 then :
24878 ac_cv_lib_espeak_espeak_Synth=yes
24879 else case e in #(
24880 e) ac_cv_lib_espeak_espeak_Synth=no ;;
24881 esac
24882 fi
24883 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24884 conftest$ac_exeext conftest.$ac_ext
24885 LIBS=$ac_check_lib_save_LIBS ;;
24886 esac
24887 fi
24888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_espeak_espeak_Synth" >&5
24889 printf "%s\n" "$ac_cv_lib_espeak_espeak_Synth" >&6; }
24890 if test "x$ac_cv_lib_espeak_espeak_Synth" = xyes
24891 then :
24892 with_espeak="yes"
24893 else case e in #(
24894 e) if test $with_espeak = "yes"
24895 then :
24896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24897 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24898 as_fn_error $? "espeak is not available
24899 See 'config.log' for more details" "$LINENO" 5; }
24900 fi ;;
24901 esac
24902 fi
24903
24904 fi
24905 if test $with_espeak = "yes"; then
24906 espeak_support_TRUE=
24907 espeak_support_FALSE='#'
24908 else
24909 espeak_support_TRUE='#'
24910 espeak_support_FALSE=
24911 fi
24912
24913 if test $with_espeak = "yes"
24914 then :
24915 output_modules="${output_modules} espeak"
24916 fi
24917
24918 # check for espeak-ng support
24919
24920 # Check whether --with-espeak_ng was given.
24921 if test ${with_espeak_ng+y}
24922 then :
24923 withval=$with_espeak_ng;
24924 else case e in #(
24925 e) with_espeak_ng=check ;;
24926 esac
24927 fi
24928
24929 if test $with_espeak_ng != "no"
24930 then :
24931
24932 pkg_failed=no
24933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for espeak-ng" >&5
24934 printf %s "checking for espeak-ng... " >&6; }
24935
24936 if test -n "$ESPEAK_NG_CFLAGS"; then
24937 pkg_cv_ESPEAK_NG_CFLAGS="$ESPEAK_NG_CFLAGS"
24938 elif test -n "$PKG_CONFIG"; then
24939 if test -n "$PKG_CONFIG" && \
24940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"espeak-ng\""; } >&5
24941 ($PKG_CONFIG --exists --print-errors "espeak-ng") 2>&5
24942 ac_status=$?
24943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24944 test $ac_status = 0; }; then
24945 pkg_cv_ESPEAK_NG_CFLAGS=`$PKG_CONFIG --cflags "espeak-ng" 2>/dev/null`
24946 test "x$?" != "x0" && pkg_failed=yes
24947 else
24948 pkg_failed=yes
24949 fi
24950 else
24951 pkg_failed=untried
24952 fi
24953 if test -n "$ESPEAK_NG_LIBS"; then
24954 pkg_cv_ESPEAK_NG_LIBS="$ESPEAK_NG_LIBS"
24955 elif test -n "$PKG_CONFIG"; then
24956 if test -n "$PKG_CONFIG" && \
24957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"espeak-ng\""; } >&5
24958 ($PKG_CONFIG --exists --print-errors "espeak-ng") 2>&5
24959 ac_status=$?
24960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24961 test $ac_status = 0; }; then
24962 pkg_cv_ESPEAK_NG_LIBS=`$PKG_CONFIG --libs "espeak-ng" 2>/dev/null`
24963 test "x$?" != "x0" && pkg_failed=yes
24964 else
24965 pkg_failed=yes
24966 fi
24967 else
24968 pkg_failed=untried
24969 fi
24970
24971
24972
24973 if test $pkg_failed = yes; then
24974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24975 printf "%s\n" "no" >&6; }
24976
24977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24978 _pkg_short_errors_supported=yes
24979 else
24980 _pkg_short_errors_supported=no
24981 fi
24982 if test $_pkg_short_errors_supported = yes; then
24983 ESPEAK_NG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "espeak-ng" 2>&1`
24984 else
24985 ESPEAK_NG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "espeak-ng" 2>&1`
24986 fi
24987 # Put the nasty error message in config.log where it belongs
24988 echo "$ESPEAK_NG_PKG_ERRORS" >&5
24989
24990 if test $with_espeak_ng = "yes"
24991 then :
24992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24993 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24994 as_fn_error $? "espeak-ng is not available
24995 See 'config.log' for more details" "$LINENO" 5; }
24996 fi
24997 elif test $pkg_failed = untried; then
24998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24999 printf "%s\n" "no" >&6; }
25000 if test $with_espeak_ng = "yes"
25001 then :
25002 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25003 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25004 as_fn_error $? "espeak-ng is not available
25005 See 'config.log' for more details" "$LINENO" 5; }
25006 fi
25007 else
25008 ESPEAK_NG_CFLAGS=$pkg_cv_ESPEAK_NG_CFLAGS
25009 ESPEAK_NG_LIBS=$pkg_cv_ESPEAK_NG_LIBS
25010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25011 printf "%s\n" "yes" >&6; }
25012 with_espeak_ng="yes"
25013 fi
25014 fi
25015 if test $with_espeak_ng = "yes"; then
25016 espeak_ng_support_TRUE=
25017 espeak_ng_support_FALSE='#'
25018 else
25019 espeak_ng_support_TRUE='#'
25020 espeak_ng_support_FALSE=
25021 fi
25022
25023
25024
25025 if test $with_espeak_ng = "yes"
25026 then :
25027 output_modules="${output_modules} espeak-ng"
25028 fi
25029
25030 for ac_prog in espeak-ng espeak
25031 do
25032 # Extract the first word of "$ac_prog", so it can be a program name with args.
25033 set dummy $ac_prog; ac_word=$2
25034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25035 printf %s "checking for $ac_word... " >&6; }
25036 if test ${ac_cv_prog_ESPEAK+y}
25037 then :
25038 printf %s "(cached) " >&6
25039 else case e in #(
25040 e) if test -n "$ESPEAK"; then
25041 ac_cv_prog_ESPEAK="$ESPEAK" # Let the user override the test.
25042 else
25043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25044 for as_dir in $PATH
25045 do
25046 IFS=$as_save_IFS
25047 case $as_dir in #(((
25048 '') as_dir=./ ;;
25049 */) ;;
25050 *) as_dir=$as_dir/ ;;
25051 esac
25052 for ac_exec_ext in '' $ac_executable_extensions; do
25053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25054 ac_cv_prog_ESPEAK="$ac_prog"
25055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25056 break 2
25057 fi
25058 done
25059 done
25060 IFS=$as_save_IFS
25061
25062 fi ;;
25063 esac
25064 fi
25065 ESPEAK=$ac_cv_prog_ESPEAK
25066 if test -n "$ESPEAK"; then
25067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESPEAK" >&5
25068 printf "%s\n" "$ESPEAK" >&6; }
25069 else
25070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25071 printf "%s\n" "no" >&6; }
25072 fi
25073
25074
25075 test -n "$ESPEAK" && break
25076 done
25077
25078 if test x$ESPEAK != x; then
25079 espeak_dummy_message_TRUE=
25080 espeak_dummy_message_FALSE='#'
25081 else
25082 espeak_dummy_message_TRUE='#'
25083 espeak_dummy_message_FALSE=
25084 fi
25085
25086
25087 # check for flite support
25088
25089 # Check whether --with-flite was given.
25090 if test ${with_flite+y}
25091 then :
25092 withval=$with_flite;
25093 else case e in #(
25094 e) with_flite=check ;;
25095 esac
25096 fi
25097
25098 if test $with_flite != "no"
25099 then :
25100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flite_init in -lflite" >&5
25101 printf %s "checking for flite_init in -lflite... " >&6; }
25102 if test ${ac_cv_lib_flite_flite_init+y}
25103 then :
25104 printf %s "(cached) " >&6
25105 else case e in #(
25106 e) ac_check_lib_save_LIBS=$LIBS
25107 LIBS="-lflite -lm $LIBS"
25108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25109 /* end confdefs.h. */
25110
25111 /* Override any GCC internal prototype to avoid an error.
25112 Use char because int might match the return type of a GCC
25113 builtin and then its argument prototype would still apply.
25114 The 'extern "C"' is for builds by C++ compilers;
25115 although this is not generally supported in C code supporting it here
25116 has little cost and some practical benefit (sr 110532). */
25117 #ifdef __cplusplus
25118 extern "C"
25119 #endif
25120 char flite_init (void);
25121 int
25122 main (void)
25123 {
25124 return flite_init ();
25125 ;
25126 return 0;
25127 }
25128 _ACEOF
25129 if ac_fn_c_try_link "$LINENO"
25130 then :
25131 ac_cv_lib_flite_flite_init=yes
25132 else case e in #(
25133 e) ac_cv_lib_flite_flite_init=no ;;
25134 esac
25135 fi
25136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25137 conftest$ac_exeext conftest.$ac_ext
25138 LIBS=$ac_check_lib_save_LIBS ;;
25139 esac
25140 fi
25141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flite_flite_init" >&5
25142 printf "%s\n" "$ac_cv_lib_flite_flite_init" >&6; }
25143 if test "x$ac_cv_lib_flite_flite_init" = xyes
25144 then :
25145 flite_basic="-lflite"
25146 else case e in #(
25147 e) if test $with_flite = "yes"
25148 then :
25149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25150 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25151 as_fn_error $? "libflite is not available
25152 See 'config.log' for more details" "$LINENO" 5; }
25153 fi ;;
25154 esac
25155 fi
25156
25157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usenglish_init in -lflite_usenglish" >&5
25158 printf %s "checking for usenglish_init in -lflite_usenglish... " >&6; }
25159 if test ${ac_cv_lib_flite_usenglish_usenglish_init+y}
25160 then :
25161 printf %s "(cached) " >&6
25162 else case e in #(
25163 e) ac_check_lib_save_LIBS=$LIBS
25164 LIBS="-lflite_usenglish -lflite -lm $LIBS"
25165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25166 /* end confdefs.h. */
25167
25168 /* Override any GCC internal prototype to avoid an error.
25169 Use char because int might match the return type of a GCC
25170 builtin and then its argument prototype would still apply.
25171 The 'extern "C"' is for builds by C++ compilers;
25172 although this is not generally supported in C code supporting it here
25173 has little cost and some practical benefit (sr 110532). */
25174 #ifdef __cplusplus
25175 extern "C"
25176 #endif
25177 char usenglish_init (void);
25178 int
25179 main (void)
25180 {
25181 return usenglish_init ();
25182 ;
25183 return 0;
25184 }
25185 _ACEOF
25186 if ac_fn_c_try_link "$LINENO"
25187 then :
25188 ac_cv_lib_flite_usenglish_usenglish_init=yes
25189 else case e in #(
25190 e) ac_cv_lib_flite_usenglish_usenglish_init=no ;;
25191 esac
25192 fi
25193 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25194 conftest$ac_exeext conftest.$ac_ext
25195 LIBS=$ac_check_lib_save_LIBS ;;
25196 esac
25197 fi
25198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flite_usenglish_usenglish_init" >&5
25199 printf "%s\n" "$ac_cv_lib_flite_usenglish_usenglish_init" >&6; }
25200 if test "x$ac_cv_lib_flite_usenglish_usenglish_init" = xyes
25201 then :
25202 flite_basic="-lflite_usenglish ${flite_basic}"
25203 else case e in #(
25204 e) if test $with_flite = "yes"
25205 then :
25206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25207 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25208 as_fn_error $? "libflite_usenglish is not available
25209 See 'config.log' for more details" "$LINENO" 5; }
25210 fi ;;
25211 esac
25212 fi
25213
25214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cmu_lex_init in -lflite_cmulex" >&5
25215 printf %s "checking for cmu_lex_init in -lflite_cmulex... " >&6; }
25216 if test ${ac_cv_lib_flite_cmulex_cmu_lex_init+y}
25217 then :
25218 printf %s "(cached) " >&6
25219 else case e in #(
25220 e) ac_check_lib_save_LIBS=$LIBS
25221 LIBS="-lflite_cmulex -lflite -lm $LIBS"
25222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25223 /* end confdefs.h. */
25224
25225 /* Override any GCC internal prototype to avoid an error.
25226 Use char because int might match the return type of a GCC
25227 builtin and then its argument prototype would still apply.
25228 The 'extern "C"' is for builds by C++ compilers;
25229 although this is not generally supported in C code supporting it here
25230 has little cost and some practical benefit (sr 110532). */
25231 #ifdef __cplusplus
25232 extern "C"
25233 #endif
25234 char cmu_lex_init (void);
25235 int
25236 main (void)
25237 {
25238 return cmu_lex_init ();
25239 ;
25240 return 0;
25241 }
25242 _ACEOF
25243 if ac_fn_c_try_link "$LINENO"
25244 then :
25245 ac_cv_lib_flite_cmulex_cmu_lex_init=yes
25246 else case e in #(
25247 e) ac_cv_lib_flite_cmulex_cmu_lex_init=no ;;
25248 esac
25249 fi
25250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25251 conftest$ac_exeext conftest.$ac_ext
25252 LIBS=$ac_check_lib_save_LIBS ;;
25253 esac
25254 fi
25255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flite_cmulex_cmu_lex_init" >&5
25256 printf "%s\n" "$ac_cv_lib_flite_cmulex_cmu_lex_init" >&6; }
25257 if test "x$ac_cv_lib_flite_cmulex_cmu_lex_init" = xyes
25258 then :
25259 flite_basic="-lflite_cmulex ${flite_basic}"
25260 else case e in #(
25261 e) if test $with_flite = "yes"
25262 then :
25263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25264 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25265 as_fn_error $? "libflite_cmulex is not available
25266 See 'config.log' for more details" "$LINENO" 5; }
25267 fi ;;
25268 esac
25269 fi
25270
25271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for register_cmu_us_kal16 in -lflite_cmu_us_kal16" >&5
25272 printf %s "checking for register_cmu_us_kal16 in -lflite_cmu_us_kal16... " >&6; }
25273 if test ${ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16+y}
25274 then :
25275 printf %s "(cached) " >&6
25276 else case e in #(
25277 e) ac_check_lib_save_LIBS=$LIBS
25278 LIBS="-lflite_cmu_us_kal16 $flite_basic -lm $LIBS"
25279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25280 /* end confdefs.h. */
25281
25282 /* Override any GCC internal prototype to avoid an error.
25283 Use char because int might match the return type of a GCC
25284 builtin and then its argument prototype would still apply.
25285 The 'extern "C"' is for builds by C++ compilers;
25286 although this is not generally supported in C code supporting it here
25287 has little cost and some practical benefit (sr 110532). */
25288 #ifdef __cplusplus
25289 extern "C"
25290 #endif
25291 char register_cmu_us_kal16 (void);
25292 int
25293 main (void)
25294 {
25295 return register_cmu_us_kal16 ();
25296 ;
25297 return 0;
25298 }
25299 _ACEOF
25300 if ac_fn_c_try_link "$LINENO"
25301 then :
25302 ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16=yes
25303 else case e in #(
25304 e) ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16=no ;;
25305 esac
25306 fi
25307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25308 conftest$ac_exeext conftest.$ac_ext
25309 LIBS=$ac_check_lib_save_LIBS ;;
25310 esac
25311 fi
25312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16" >&5
25313 printf "%s\n" "$ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16" >&6; }
25314 if test "x$ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16" = xyes
25315 then :
25316 with_flite=yes;
25317 flite_kal="-lflite_cmu_us_kal16";
25318
25319 printf "%s\n" "#define HAVE_REGISTER_CMU_US_KAL16 1" >>confdefs.h
25320
25321 else case e in #(
25322 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for register_cmu_us_kal in -lflite_cmu_us_kal16" >&5
25323 printf %s "checking for register_cmu_us_kal in -lflite_cmu_us_kal16... " >&6; }
25324 if test ${ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal+y}
25325 then :
25326 printf %s "(cached) " >&6
25327 else case e in #(
25328 e) ac_check_lib_save_LIBS=$LIBS
25329 LIBS="-lflite_cmu_us_kal16 $flite_basic -lm $LIBS"
25330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25331 /* end confdefs.h. */
25332
25333 /* Override any GCC internal prototype to avoid an error.
25334 Use char because int might match the return type of a GCC
25335 builtin and then its argument prototype would still apply.
25336 The 'extern "C"' is for builds by C++ compilers;
25337 although this is not generally supported in C code supporting it here
25338 has little cost and some practical benefit (sr 110532). */
25339 #ifdef __cplusplus
25340 extern "C"
25341 #endif
25342 char register_cmu_us_kal (void);
25343 int
25344 main (void)
25345 {
25346 return register_cmu_us_kal ();
25347 ;
25348 return 0;
25349 }
25350 _ACEOF
25351 if ac_fn_c_try_link "$LINENO"
25352 then :
25353 ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal=yes
25354 else case e in #(
25355 e) ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal=no ;;
25356 esac
25357 fi
25358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25359 conftest$ac_exeext conftest.$ac_ext
25360 LIBS=$ac_check_lib_save_LIBS ;;
25361 esac
25362 fi
25363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal" >&5
25364 printf "%s\n" "$ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal" >&6; }
25365 if test "x$ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal" = xyes
25366 then :
25367 with_flite=yes;
25368 flite_kal="-lflite_cmu_us_kal16"
25369 else case e in #(
25370 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for register_cmu_us_kal in -lflite_cmu_us_kal" >&5
25371 printf %s "checking for register_cmu_us_kal in -lflite_cmu_us_kal... " >&6; }
25372 if test ${ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal+y}
25373 then :
25374 printf %s "(cached) " >&6
25375 else case e in #(
25376 e) ac_check_lib_save_LIBS=$LIBS
25377 LIBS="-lflite_cmu_us_kal $flite_basic -lm $LIBS"
25378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25379 /* end confdefs.h. */
25380
25381 /* Override any GCC internal prototype to avoid an error.
25382 Use char because int might match the return type of a GCC
25383 builtin and then its argument prototype would still apply.
25384 The 'extern "C"' is for builds by C++ compilers;
25385 although this is not generally supported in C code supporting it here
25386 has little cost and some practical benefit (sr 110532). */
25387 #ifdef __cplusplus
25388 extern "C"
25389 #endif
25390 char register_cmu_us_kal (void);
25391 int
25392 main (void)
25393 {
25394 return register_cmu_us_kal ();
25395 ;
25396 return 0;
25397 }
25398 _ACEOF
25399 if ac_fn_c_try_link "$LINENO"
25400 then :
25401 ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal=yes
25402 else case e in #(
25403 e) ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal=no ;;
25404 esac
25405 fi
25406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25407 conftest$ac_exeext conftest.$ac_ext
25408 LIBS=$ac_check_lib_save_LIBS ;;
25409 esac
25410 fi
25411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal" >&5
25412 printf "%s\n" "$ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal" >&6; }
25413 if test "x$ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal" = xyes
25414 then :
25415 with_flite=yes;
25416 flite_kal="-lflite_cmu_us_kal"
25417 else case e in #(
25418 e) if test $with_flite = "yes"
25419 then :
25420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25421 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25422 as_fn_error $? "no flite voices found
25423 See 'config.log' for more details" "$LINENO" 5; }
25424 fi ;;
25425 esac
25426 fi
25427 ;;
25428 esac
25429 fi
25430 ;;
25431 esac
25432 fi
25433
25434 fi
25435 if test $with_flite = "yes"; then
25436 flite_support_TRUE=
25437 flite_support_FALSE='#'
25438 else
25439 flite_support_TRUE='#'
25440 flite_support_FALSE=
25441 fi
25442
25443
25444
25445 if test $with_flite = "yes"
25446 then :
25447 output_modules="${output_modules} flite"
25448 fi
25449
25450 for ac_prog in flite
25451 do
25452 # Extract the first word of "$ac_prog", so it can be a program name with args.
25453 set dummy $ac_prog; ac_word=$2
25454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25455 printf %s "checking for $ac_word... " >&6; }
25456 if test ${ac_cv_prog_FLITE+y}
25457 then :
25458 printf %s "(cached) " >&6
25459 else case e in #(
25460 e) if test -n "$FLITE"; then
25461 ac_cv_prog_FLITE="$FLITE" # Let the user override the test.
25462 else
25463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25464 for as_dir in $PATH
25465 do
25466 IFS=$as_save_IFS
25467 case $as_dir in #(((
25468 '') as_dir=./ ;;
25469 */) ;;
25470 *) as_dir=$as_dir/ ;;
25471 esac
25472 for ac_exec_ext in '' $ac_executable_extensions; do
25473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25474 ac_cv_prog_FLITE="$ac_prog"
25475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25476 break 2
25477 fi
25478 done
25479 done
25480 IFS=$as_save_IFS
25481
25482 fi ;;
25483 esac
25484 fi
25485 FLITE=$ac_cv_prog_FLITE
25486 if test -n "$FLITE"; then
25487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FLITE" >&5
25488 printf "%s\n" "$FLITE" >&6; }
25489 else
25490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25491 printf "%s\n" "no" >&6; }
25492 fi
25493
25494
25495 test -n "$FLITE" && break
25496 done
25497
25498 if test x$FLITE != x; then
25499 flite_dummy_message_TRUE=
25500 flite_dummy_message_FALSE='#'
25501 else
25502 flite_dummy_message_TRUE='#'
25503 flite_dummy_message_FALSE=
25504 fi
25505
25506
25507 # check for IBMTTS support
25508 case "$host" in
25509 i[3-6]86-*-linux*)
25510 default_ibmtts=check
25511 ;;
25512 *)
25513 default_ibmtts=no
25514 ;;
25515 esac
25516
25517 # Check whether --with-ibmtts was given.
25518 if test ${with_ibmtts+y}
25519 then :
25520 withval=$with_ibmtts;
25521 else case e in #(
25522 e) with_ibmtts=$default_ibmtts ;;
25523 esac
25524 fi
25525
25526 if test $with_ibmtts = yes -o $with_ibmtts = check
25527 then :
25528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eciStop in -libmeci" >&5
25529 printf %s "checking for eciStop in -libmeci... " >&6; }
25530 if test ${ac_cv_lib_ibmeci_eciStop+y}
25531 then :
25532 printf %s "(cached) " >&6
25533 else case e in #(
25534 e) ac_check_lib_save_LIBS=$LIBS
25535 LIBS="-libmeci $LIBS"
25536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25537 /* end confdefs.h. */
25538
25539 /* Override any GCC internal prototype to avoid an error.
25540 Use char because int might match the return type of a GCC
25541 builtin and then its argument prototype would still apply.
25542 The 'extern "C"' is for builds by C++ compilers;
25543 although this is not generally supported in C code supporting it here
25544 has little cost and some practical benefit (sr 110532). */
25545 #ifdef __cplusplus
25546 extern "C"
25547 #endif
25548 char eciStop (void);
25549 int
25550 main (void)
25551 {
25552 return eciStop ();
25553 ;
25554 return 0;
25555 }
25556 _ACEOF
25557 if ac_fn_c_try_link "$LINENO"
25558 then :
25559 ac_cv_lib_ibmeci_eciStop=yes
25560 else case e in #(
25561 e) ac_cv_lib_ibmeci_eciStop=no ;;
25562 esac
25563 fi
25564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25565 conftest$ac_exeext conftest.$ac_ext
25566 LIBS=$ac_check_lib_save_LIBS ;;
25567 esac
25568 fi
25569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmeci_eciStop" >&5
25570 printf "%s\n" "$ac_cv_lib_ibmeci_eciStop" >&6; }
25571 if test "x$ac_cv_lib_ibmeci_eciStop" = xyes
25572 then :
25573 with_ibmtts=yes;
25574 ibmtts_include="-I/opt/IBM/ibmtts/inc/"
25575 else case e in #(
25576 e) if test $with_ibmtts = "yes"
25577 then :
25578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25579 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25580 as_fn_error $? "IBMTTS is not available
25581 See 'config.log' for more details" "$LINENO" 5; }
25582 fi
25583 with_ibmtts=$default_shim ;;
25584 esac
25585 fi
25586
25587 fi
25588 if test $with_ibmtts != no; then
25589 ibmtts_support_TRUE=
25590 ibmtts_support_FALSE='#'
25591 else
25592 ibmtts_support_TRUE='#'
25593 ibmtts_support_FALSE=
25594 fi
25595
25596 if test $with_ibmtts = shim; then
25597 ibmtts_shim_TRUE=
25598 ibmtts_shim_FALSE='#'
25599 else
25600 ibmtts_shim_TRUE='#'
25601 ibmtts_shim_FALSE=
25602 fi
25603
25604
25605 if test $with_ibmtts != no
25606 then :
25607 output_modules="${output_modules} ibmtts"
25608 fi
25609
25610 # check for Voxin support
25611
25612 # Check whether --with-voxin was given.
25613 if test ${with_voxin+y}
25614 then :
25615 withval=$with_voxin;
25616 else case e in #(
25617 e) with_voxin=check ;;
25618 esac
25619 fi
25620
25621 if test $with_voxin = yes -o $with_voxin = check
25622 then :
25623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for voxToString in -lvoxin" >&5
25624 printf %s "checking for voxToString in -lvoxin... " >&6; }
25625 if test ${ac_cv_lib_voxin_voxToString+y}
25626 then :
25627 printf %s "(cached) " >&6
25628 else case e in #(
25629 e) ac_check_lib_save_LIBS=$LIBS
25630 LIBS="-lvoxin $LIBS"
25631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25632 /* end confdefs.h. */
25633
25634 /* Override any GCC internal prototype to avoid an error.
25635 Use char because int might match the return type of a GCC
25636 builtin and then its argument prototype would still apply.
25637 The 'extern "C"' is for builds by C++ compilers;
25638 although this is not generally supported in C code supporting it here
25639 has little cost and some practical benefit (sr 110532). */
25640 #ifdef __cplusplus
25641 extern "C"
25642 #endif
25643 char voxToString (void);
25644 int
25645 main (void)
25646 {
25647 return voxToString ();
25648 ;
25649 return 0;
25650 }
25651 _ACEOF
25652 if ac_fn_c_try_link "$LINENO"
25653 then :
25654 ac_cv_lib_voxin_voxToString=yes
25655 else case e in #(
25656 e) ac_cv_lib_voxin_voxToString=no ;;
25657 esac
25658 fi
25659 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25660 conftest$ac_exeext conftest.$ac_ext
25661 LIBS=$ac_check_lib_save_LIBS ;;
25662 esac
25663 fi
25664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_voxin_voxToString" >&5
25665 printf "%s\n" "$ac_cv_lib_voxin_voxToString" >&6; }
25666 if test "x$ac_cv_lib_voxin_voxToString" = xyes
25667 then :
25668 with_voxin=yes
25669 else case e in #(
25670 e) if test "$with_voxin" = yes
25671 then :
25672 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25673 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25674 as_fn_error $? "Voxin is not available
25675 See 'config.log' for more details" "$LINENO" 5; }
25676 fi
25677 with_voxin=$default_shim ;;
25678 esac
25679 fi
25680
25681 fi
25682 if test "$with_voxin" != no; then
25683 voxin_support_TRUE=
25684 voxin_support_FALSE='#'
25685 else
25686 voxin_support_TRUE='#'
25687 voxin_support_FALSE=
25688 fi
25689
25690 if test "$with_voxin" = shim; then
25691 voxin_shim_TRUE=
25692 voxin_shim_FALSE='#'
25693 else
25694 voxin_shim_TRUE='#'
25695 voxin_shim_FALSE=
25696 fi
25697
25698 if test "$with_voxin" != no
25699 then :
25700 output_modules="${output_modules} voxin"
25701 fi
25702
25703 # check for ivona support
25704
25705 # Check whether --with-ivona was given.
25706 if test ${with_ivona+y}
25707 then :
25708 withval=$with_ivona;
25709 else case e in #(
25710 e) with_ivona=check ;;
25711 esac
25712 fi
25713
25714 if test $with_ivona != "no"
25715 then :
25716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dumbtts_TTSInit in -ldumbtts" >&5
25717 printf %s "checking for dumbtts_TTSInit in -ldumbtts... " >&6; }
25718 if test ${ac_cv_lib_dumbtts_dumbtts_TTSInit+y}
25719 then :
25720 printf %s "(cached) " >&6
25721 else case e in #(
25722 e) ac_check_lib_save_LIBS=$LIBS
25723 LIBS="-ldumbtts $LIBS"
25724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25725 /* end confdefs.h. */
25726
25727 /* Override any GCC internal prototype to avoid an error.
25728 Use char because int might match the return type of a GCC
25729 builtin and then its argument prototype would still apply.
25730 The 'extern "C"' is for builds by C++ compilers;
25731 although this is not generally supported in C code supporting it here
25732 has little cost and some practical benefit (sr 110532). */
25733 #ifdef __cplusplus
25734 extern "C"
25735 #endif
25736 char dumbtts_TTSInit (void);
25737 int
25738 main (void)
25739 {
25740 return dumbtts_TTSInit ();
25741 ;
25742 return 0;
25743 }
25744 _ACEOF
25745 if ac_fn_c_try_link "$LINENO"
25746 then :
25747 ac_cv_lib_dumbtts_dumbtts_TTSInit=yes
25748 else case e in #(
25749 e) ac_cv_lib_dumbtts_dumbtts_TTSInit=no ;;
25750 esac
25751 fi
25752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25753 conftest$ac_exeext conftest.$ac_ext
25754 LIBS=$ac_check_lib_save_LIBS ;;
25755 esac
25756 fi
25757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dumbtts_dumbtts_TTSInit" >&5
25758 printf "%s\n" "$ac_cv_lib_dumbtts_dumbtts_TTSInit" >&6; }
25759 if test "x$ac_cv_lib_dumbtts_dumbtts_TTSInit" = xyes
25760 then :
25761 with_ivona=yes
25762 else case e in #(
25763 e) if test $with_ivona = "yes"
25764 then :
25765 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25766 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25767 as_fn_error $? "ivona is not available
25768 See 'config.log' for more details" "$LINENO" 5; }
25769 fi ;;
25770 esac
25771 fi
25772
25773 fi
25774 if test $with_ivona = "yes"; then
25775 ivona_support_TRUE=
25776 ivona_support_FALSE='#'
25777 else
25778 ivona_support_TRUE='#'
25779 ivona_support_FALSE=
25780 fi
25781
25782 if test $with_ivona = "yes"
25783 then :
25784 output_modules="${output_modules} ivona"
25785 fi
25786
25787 # check for svox pico support
25788
25789 # Check whether --with-pico was given.
25790 if test ${with_pico+y}
25791 then :
25792 withval=$with_pico;
25793 else case e in #(
25794 e) with_pico=check ;;
25795 esac
25796 fi
25797
25798 if test $with_pico != "no"
25799 then :
25800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pico_initialize in -lttspico" >&5
25801 printf %s "checking for pico_initialize in -lttspico... " >&6; }
25802 if test ${ac_cv_lib_ttspico_pico_initialize+y}
25803 then :
25804 printf %s "(cached) " >&6
25805 else case e in #(
25806 e) ac_check_lib_save_LIBS=$LIBS
25807 LIBS="-lttspico $LIBS"
25808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25809 /* end confdefs.h. */
25810
25811 /* Override any GCC internal prototype to avoid an error.
25812 Use char because int might match the return type of a GCC
25813 builtin and then its argument prototype would still apply.
25814 The 'extern "C"' is for builds by C++ compilers;
25815 although this is not generally supported in C code supporting it here
25816 has little cost and some practical benefit (sr 110532). */
25817 #ifdef __cplusplus
25818 extern "C"
25819 #endif
25820 char pico_initialize (void);
25821 int
25822 main (void)
25823 {
25824 return pico_initialize ();
25825 ;
25826 return 0;
25827 }
25828 _ACEOF
25829 if ac_fn_c_try_link "$LINENO"
25830 then :
25831 ac_cv_lib_ttspico_pico_initialize=yes
25832 else case e in #(
25833 e) ac_cv_lib_ttspico_pico_initialize=no ;;
25834 esac
25835 fi
25836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25837 conftest$ac_exeext conftest.$ac_ext
25838 LIBS=$ac_check_lib_save_LIBS ;;
25839 esac
25840 fi
25841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ttspico_pico_initialize" >&5
25842 printf "%s\n" "$ac_cv_lib_ttspico_pico_initialize" >&6; }
25843 if test "x$ac_cv_lib_ttspico_pico_initialize" = xyes
25844 then :
25845 with_pico=yes
25846 else case e in #(
25847 e) if test $with_pico = "yes"
25848 then :
25849 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25850 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25851 as_fn_error $? "SVOX pico is not available
25852 See 'config.log' for more details" "$LINENO" 5; }
25853 fi ;;
25854 esac
25855 fi
25856
25857 fi
25858 if test $with_pico = "yes"; then
25859 pico_support_TRUE=
25860 pico_support_FALSE='#'
25861 else
25862 pico_support_TRUE='#'
25863 pico_support_FALSE=
25864 fi
25865
25866 if test $with_pico = "yes"
25867 then :
25868 output_modules="${output_modules} pico"
25869 fi
25870
25871 # check for Voxygen Baratinoo support
25872
25873 # Check whether --with-baratinoo was given.
25874 if test ${with_baratinoo+y}
25875 then :
25876 withval=$with_baratinoo;
25877 else case e in #(
25878 e) with_baratinoo=check ;;
25879 esac
25880 fi
25881
25882 if test "$with_baratinoo" = yes -o "$with_baratinoo" = check
25883 then :
25884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BCinitlib in -lbaratinoo" >&5
25885 printf %s "checking for BCinitlib in -lbaratinoo... " >&6; }
25886 if test ${ac_cv_lib_baratinoo_BCinitlib+y}
25887 then :
25888 printf %s "(cached) " >&6
25889 else case e in #(
25890 e) ac_check_lib_save_LIBS=$LIBS
25891 LIBS="-lbaratinoo $LIBS"
25892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25893 /* end confdefs.h. */
25894
25895 /* Override any GCC internal prototype to avoid an error.
25896 Use char because int might match the return type of a GCC
25897 builtin and then its argument prototype would still apply.
25898 The 'extern "C"' is for builds by C++ compilers;
25899 although this is not generally supported in C code supporting it here
25900 has little cost and some practical benefit (sr 110532). */
25901 #ifdef __cplusplus
25902 extern "C"
25903 #endif
25904 char BCinitlib (void);
25905 int
25906 main (void)
25907 {
25908 return BCinitlib ();
25909 ;
25910 return 0;
25911 }
25912 _ACEOF
25913 if ac_fn_c_try_link "$LINENO"
25914 then :
25915 ac_cv_lib_baratinoo_BCinitlib=yes
25916 else case e in #(
25917 e) ac_cv_lib_baratinoo_BCinitlib=no ;;
25918 esac
25919 fi
25920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25921 conftest$ac_exeext conftest.$ac_ext
25922 LIBS=$ac_check_lib_save_LIBS ;;
25923 esac
25924 fi
25925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_baratinoo_BCinitlib" >&5
25926 printf "%s\n" "$ac_cv_lib_baratinoo_BCinitlib" >&6; }
25927 if test "x$ac_cv_lib_baratinoo_BCinitlib" = xyes
25928 then :
25929 with_baratinoo=yes
25930 else case e in #(
25931 e) if test "$with_baratinoo" = yes
25932 then :
25933 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25934 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25935 as_fn_error $? "Voxygen Baratinoo is not available
25936 See 'config.log' for more details" "$LINENO" 5; }
25937 fi
25938 with_baratinoo=$default_shim ;;
25939 esac
25940 fi
25941
25942 fi
25943 if test "$with_baratinoo" != no; then
25944 baratinoo_support_TRUE=
25945 baratinoo_support_FALSE='#'
25946 else
25947 baratinoo_support_TRUE='#'
25948 baratinoo_support_FALSE=
25949 fi
25950
25951 if test "$with_baratinoo" = shim; then
25952 baratinoo_shim_TRUE=
25953 baratinoo_shim_FALSE='#'
25954 else
25955 baratinoo_shim_TRUE='#'
25956 baratinoo_shim_FALSE=
25957 fi
25958
25959 if test "$with_baratinoo" != no
25960 then :
25961 output_modules="${output_modules} baratinoo"
25962 fi
25963
25964 # check for kali support
25965
25966 # Check whether --with-kali was given.
25967 if test ${with_kali+y}
25968 then :
25969 withval=$with_kali;
25970 else case e in #(
25971 e) with_kali=check ;;
25972 esac
25973 fi
25974
25975 if test $with_kali = yes -o $with_kali = check
25976 then :
25977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initKali in -lKali" >&5
25978 printf %s "checking for initKali in -lKali... " >&6; }
25979 if test ${ac_cv_lib_Kali_initKali+y}
25980 then :
25981 printf %s "(cached) " >&6
25982 else case e in #(
25983 e) ac_check_lib_save_LIBS=$LIBS
25984 LIBS="-lKali -lKGlobal -lKTrans -lKParle -lKAnalyse $LIBS"
25985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986 /* end confdefs.h. */
25987
25988 /* Override any GCC internal prototype to avoid an error.
25989 Use char because int might match the return type of a GCC
25990 builtin and then its argument prototype would still apply.
25991 The 'extern "C"' is for builds by C++ compilers;
25992 although this is not generally supported in C code supporting it here
25993 has little cost and some practical benefit (sr 110532). */
25994 #ifdef __cplusplus
25995 extern "C"
25996 #endif
25997 char initKali (void);
25998 int
25999 main (void)
26000 {
26001 return initKali ();
26002 ;
26003 return 0;
26004 }
26005 _ACEOF
26006 if ac_fn_c_try_link "$LINENO"
26007 then :
26008 ac_cv_lib_Kali_initKali=yes
26009 else case e in #(
26010 e) ac_cv_lib_Kali_initKali=no ;;
26011 esac
26012 fi
26013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26014 conftest$ac_exeext conftest.$ac_ext
26015 LIBS=$ac_check_lib_save_LIBS ;;
26016 esac
26017 fi
26018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Kali_initKali" >&5
26019 printf "%s\n" "$ac_cv_lib_Kali_initKali" >&6; }
26020 if test "x$ac_cv_lib_Kali_initKali" = xyes
26021 then :
26022 with_kali=yes
26023 else case e in #(
26024 e) if test $with_kali = "yes"
26025 then :
26026 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26027 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26028 as_fn_error $? "Kali is not available
26029 See 'config.log' for more details" "$LINENO" 5; }
26030 fi
26031 with_kali=$default_shim ;;
26032 esac
26033 fi
26034
26035 fi
26036 if test $with_kali != no; then
26037 kali_support_TRUE=
26038 kali_support_FALSE='#'
26039 else
26040 kali_support_TRUE='#'
26041 kali_support_FALSE=
26042 fi
26043
26044 if test $with_kali = shim; then
26045 kali_shim_TRUE=
26046 kali_shim_FALSE='#'
26047 else
26048 kali_shim_TRUE='#'
26049 kali_shim_FALSE=
26050 fi
26051
26052 if test $with_kali != no
26053 then :
26054 output_modules="${output_modules} kali"
26055 fi
26056
26057 audio_dlopen='-dlopen force'
26058 audio_dlopen_modules=
26059
26060 # clear default audio method
26061 default_audio_method=""
26062 audio_methods=""
26063
26064 # checks for audio subsystems
26065 # check for pulseaudio support
26066
26067 # Check whether --with-pulse was given.
26068 if test ${with_pulse+y}
26069 then :
26070 withval=$with_pulse;
26071 else case e in #(
26072 e) with_pulse=check ;;
26073 esac
26074 fi
26075
26076 if test $with_pulse != "no"
26077 then :
26078
26079 pkg_failed=no
26080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse" >&5
26081 printf %s "checking for libpulse... " >&6; }
26082
26083 if test -n "$PULSE_CFLAGS"; then
26084 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
26085 elif test -n "$PKG_CONFIG"; then
26086 if test -n "$PKG_CONFIG" && \
26087 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse\""; } >&5
26088 ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5
26089 ac_status=$?
26090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26091 test $ac_status = 0; }; then
26092 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse" 2>/dev/null`
26093 test "x$?" != "x0" && pkg_failed=yes
26094 else
26095 pkg_failed=yes
26096 fi
26097 else
26098 pkg_failed=untried
26099 fi
26100 if test -n "$PULSE_LIBS"; then
26101 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
26102 elif test -n "$PKG_CONFIG"; then
26103 if test -n "$PKG_CONFIG" && \
26104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse\""; } >&5
26105 ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5
26106 ac_status=$?
26107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108 test $ac_status = 0; }; then
26109 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse" 2>/dev/null`
26110 test "x$?" != "x0" && pkg_failed=yes
26111 else
26112 pkg_failed=yes
26113 fi
26114 else
26115 pkg_failed=untried
26116 fi
26117
26118
26119
26120 if test $pkg_failed = yes; then
26121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26122 printf "%s\n" "no" >&6; }
26123
26124 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26125 _pkg_short_errors_supported=yes
26126 else
26127 _pkg_short_errors_supported=no
26128 fi
26129 if test $_pkg_short_errors_supported = yes; then
26130 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse" 2>&1`
26131 else
26132 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse" 2>&1`
26133 fi
26134 # Put the nasty error message in config.log where it belongs
26135 echo "$PULSE_PKG_ERRORS" >&5
26136
26137 if test $with_pulse = "yes"
26138 then :
26139 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26140 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26141 as_fn_error $? "pulseaudio is not available
26142 See 'config.log' for more details" "$LINENO" 5; }
26143 fi
26144 elif test $pkg_failed = untried; then
26145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26146 printf "%s\n" "no" >&6; }
26147 if test $with_pulse = "yes"
26148 then :
26149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26150 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26151 as_fn_error $? "pulseaudio is not available
26152 See 'config.log' for more details" "$LINENO" 5; }
26153 fi
26154 else
26155 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
26156 PULSE_LIBS=$pkg_cv_PULSE_LIBS
26157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26158 printf "%s\n" "yes" >&6; }
26159 with_pulse=yes
26160 if test -z "$default_audio_method"
26161 then :
26162 default_audio_method=pulse
26163 fi
26164 audio_dlopen_modules="$audio_dlopen_modules -dlopen ../audio/spd_pulse.la"
26165 fi
26166 fi
26167 if test $with_pulse = "yes"; then
26168 pulse_support_TRUE=
26169 pulse_support_FALSE='#'
26170 else
26171 pulse_support_TRUE='#'
26172 pulse_support_FALSE=
26173 fi
26174
26175
26176
26177 if test $with_pulse = "yes"
26178 then :
26179 audio_methods="${audio_methods} pulse"
26180 fi
26181
26182 # check for libao support
26183
26184 # Check whether --with-libao was given.
26185 if test ${with_libao+y}
26186 then :
26187 withval=$with_libao;
26188 else case e in #(
26189 e) with_libao=check ;;
26190 esac
26191 fi
26192
26193 if test $with_libao != "no"
26194 then :
26195
26196 pkg_failed=no
26197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ao" >&5
26198 printf %s "checking for ao... " >&6; }
26199
26200 if test -n "$LIBAO_CFLAGS"; then
26201 pkg_cv_LIBAO_CFLAGS="$LIBAO_CFLAGS"
26202 elif test -n "$PKG_CONFIG"; then
26203 if test -n "$PKG_CONFIG" && \
26204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao\""; } >&5
26205 ($PKG_CONFIG --exists --print-errors "ao") 2>&5
26206 ac_status=$?
26207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26208 test $ac_status = 0; }; then
26209 pkg_cv_LIBAO_CFLAGS=`$PKG_CONFIG --cflags "ao" 2>/dev/null`
26210 test "x$?" != "x0" && pkg_failed=yes
26211 else
26212 pkg_failed=yes
26213 fi
26214 else
26215 pkg_failed=untried
26216 fi
26217 if test -n "$LIBAO_LIBS"; then
26218 pkg_cv_LIBAO_LIBS="$LIBAO_LIBS"
26219 elif test -n "$PKG_CONFIG"; then
26220 if test -n "$PKG_CONFIG" && \
26221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao\""; } >&5
26222 ($PKG_CONFIG --exists --print-errors "ao") 2>&5
26223 ac_status=$?
26224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26225 test $ac_status = 0; }; then
26226 pkg_cv_LIBAO_LIBS=`$PKG_CONFIG --libs "ao" 2>/dev/null`
26227 test "x$?" != "x0" && pkg_failed=yes
26228 else
26229 pkg_failed=yes
26230 fi
26231 else
26232 pkg_failed=untried
26233 fi
26234
26235
26236
26237 if test $pkg_failed = yes; then
26238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26239 printf "%s\n" "no" >&6; }
26240
26241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26242 _pkg_short_errors_supported=yes
26243 else
26244 _pkg_short_errors_supported=no
26245 fi
26246 if test $_pkg_short_errors_supported = yes; then
26247 LIBAO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ao" 2>&1`
26248 else
26249 LIBAO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ao" 2>&1`
26250 fi
26251 # Put the nasty error message in config.log where it belongs
26252 echo "$LIBAO_PKG_ERRORS" >&5
26253
26254 if test $with_libao = yes
26255 then :
26256 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26257 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26258 as_fn_error $? "libao is not available
26259 See 'config.log' for more details" "$LINENO" 5; }
26260 fi
26261 elif test $pkg_failed = untried; then
26262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26263 printf "%s\n" "no" >&6; }
26264 if test $with_libao = yes
26265 then :
26266 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26267 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26268 as_fn_error $? "libao is not available
26269 See 'config.log' for more details" "$LINENO" 5; }
26270 fi
26271 else
26272 LIBAO_CFLAGS=$pkg_cv_LIBAO_CFLAGS
26273 LIBAO_LIBS=$pkg_cv_LIBAO_LIBS
26274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26275 printf "%s\n" "yes" >&6; }
26276 with_libao=yes
26277 if test -z "$default_audio_method"
26278 then :
26279 default_audio_method=libao
26280 fi
26281 audio_dlopen_modules="$audio_dlopen_modules -dlopen ../audio/spd_libao.la"
26282 fi
26283 fi
26284 if test $with_libao = "yes"; then
26285 libao_support_TRUE=
26286 libao_support_FALSE='#'
26287 else
26288 libao_support_TRUE='#'
26289 libao_support_FALSE=
26290 fi
26291
26292
26293
26294 if test $with_libao = "yes"
26295 then :
26296 audio_methods="${audio_methods} libao"
26297 fi
26298
26299 # check for pipewire support
26300
26301 # Check whether --with-pipewire was given.
26302 if test ${with_pipewire+y}
26303 then :
26304 withval=$with_pipewire;
26305 else case e in #(
26306 e) with_pipewire=check ;;
26307 esac
26308 fi
26309
26310 if test $with_pipewire != "no"
26311 then :
26312
26313 pkg_failed=no
26314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3" >&5
26315 printf %s "checking for libpipewire-0.3... " >&6; }
26316
26317 if test -n "$pipewire_CFLAGS"; then
26318 pkg_cv_pipewire_CFLAGS="$pipewire_CFLAGS"
26319 elif test -n "$PKG_CONFIG"; then
26320 if test -n "$PKG_CONFIG" && \
26321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3\""; } >&5
26322 ($PKG_CONFIG --exists --print-errors "libpipewire-0.3") 2>&5
26323 ac_status=$?
26324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26325 test $ac_status = 0; }; then
26326 pkg_cv_pipewire_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3" 2>/dev/null`
26327 test "x$?" != "x0" && pkg_failed=yes
26328 else
26329 pkg_failed=yes
26330 fi
26331 else
26332 pkg_failed=untried
26333 fi
26334 if test -n "$pipewire_LIBS"; then
26335 pkg_cv_pipewire_LIBS="$pipewire_LIBS"
26336 elif test -n "$PKG_CONFIG"; then
26337 if test -n "$PKG_CONFIG" && \
26338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3\""; } >&5
26339 ($PKG_CONFIG --exists --print-errors "libpipewire-0.3") 2>&5
26340 ac_status=$?
26341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26342 test $ac_status = 0; }; then
26343 pkg_cv_pipewire_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3" 2>/dev/null`
26344 test "x$?" != "x0" && pkg_failed=yes
26345 else
26346 pkg_failed=yes
26347 fi
26348 else
26349 pkg_failed=untried
26350 fi
26351
26352
26353
26354 if test $pkg_failed = yes; then
26355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26356 printf "%s\n" "no" >&6; }
26357
26358 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26359 _pkg_short_errors_supported=yes
26360 else
26361 _pkg_short_errors_supported=no
26362 fi
26363 if test $_pkg_short_errors_supported = yes; then
26364 pipewire_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3" 2>&1`
26365 else
26366 pipewire_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3" 2>&1`
26367 fi
26368 # Put the nasty error message in config.log where it belongs
26369 echo "$pipewire_PKG_ERRORS" >&5
26370
26371 if test $with_pipewire = yes
26372 then :
26373 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26374 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26375 as_fn_error $? "pipewire is not available
26376 See 'config.log' for more details" "$LINENO" 5; }
26377 fi
26378 elif test $pkg_failed = untried; then
26379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26380 printf "%s\n" "no" >&6; }
26381 if test $with_pipewire = yes
26382 then :
26383 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26384 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26385 as_fn_error $? "pipewire is not available
26386 See 'config.log' for more details" "$LINENO" 5; }
26387 fi
26388 else
26389 pipewire_CFLAGS=$pkg_cv_pipewire_CFLAGS
26390 pipewire_LIBS=$pkg_cv_pipewire_LIBS
26391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26392 printf "%s\n" "yes" >&6; }
26393 with_pipewire=yes
26394 audio_dlopen_modules="$audio_dlopen_modules -dlopen ../audio/spd_pipewire.la"
26395 fi
26396 fi
26397 if test $with_pipewire = "yes"; then
26398 pipewire_support_TRUE=
26399 pipewire_support_FALSE='#'
26400 else
26401 pipewire_support_TRUE='#'
26402 pipewire_support_FALSE=
26403 fi
26404
26405
26406
26407 if test $with_pipewire = "yes"
26408 then :
26409 audio_methods="${audio_methods} pipewire"
26410 fi
26411
26412 # check for alsa support
26413
26414 # Check whether --with-alsa was given.
26415 if test ${with_alsa+y}
26416 then :
26417 withval=$with_alsa;
26418 else case e in #(
26419 e) with_alsa=check ;;
26420 esac
26421 fi
26422
26423 if test $with_alsa != "no"
26424 then :
26425
26426 pkg_failed=no
26427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alsa" >&5
26428 printf %s "checking for alsa... " >&6; }
26429
26430 if test -n "$ALSA_CFLAGS"; then
26431 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
26432 elif test -n "$PKG_CONFIG"; then
26433 if test -n "$PKG_CONFIG" && \
26434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
26435 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
26436 ac_status=$?
26437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26438 test $ac_status = 0; }; then
26439 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
26440 test "x$?" != "x0" && pkg_failed=yes
26441 else
26442 pkg_failed=yes
26443 fi
26444 else
26445 pkg_failed=untried
26446 fi
26447 if test -n "$ALSA_LIBS"; then
26448 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
26449 elif test -n "$PKG_CONFIG"; then
26450 if test -n "$PKG_CONFIG" && \
26451 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
26452 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
26453 ac_status=$?
26454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; then
26456 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
26457 test "x$?" != "x0" && pkg_failed=yes
26458 else
26459 pkg_failed=yes
26460 fi
26461 else
26462 pkg_failed=untried
26463 fi
26464
26465
26466
26467 if test $pkg_failed = yes; then
26468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26469 printf "%s\n" "no" >&6; }
26470
26471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26472 _pkg_short_errors_supported=yes
26473 else
26474 _pkg_short_errors_supported=no
26475 fi
26476 if test $_pkg_short_errors_supported = yes; then
26477 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa" 2>&1`
26478 else
26479 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa" 2>&1`
26480 fi
26481 # Put the nasty error message in config.log where it belongs
26482 echo "$ALSA_PKG_ERRORS" >&5
26483
26484 if test $with_alsa = "yes"
26485 then :
26486 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26487 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26488 as_fn_error $? "ALSA is not available
26489 See 'config.log' for more details" "$LINENO" 5; }
26490 fi
26491 elif test $pkg_failed = untried; then
26492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26493 printf "%s\n" "no" >&6; }
26494 if test $with_alsa = "yes"
26495 then :
26496 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26497 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26498 as_fn_error $? "ALSA is not available
26499 See 'config.log' for more details" "$LINENO" 5; }
26500 fi
26501 else
26502 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
26503 ALSA_LIBS=$pkg_cv_ALSA_LIBS
26504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26505 printf "%s\n" "yes" >&6; }
26506 with_alsa=yes
26507 if test -z "$default_audio_method"
26508 then :
26509 default_audio_method=alsa
26510 fi
26511 audio_dlopen_modules="$audio_dlopen_modules -dlopen ../audio/spd_alsa.la"
26512 fi
26513 fi
26514 if test $with_alsa = "yes"; then
26515 alsa_support_TRUE=
26516 alsa_support_FALSE='#'
26517 else
26518 alsa_support_TRUE='#'
26519 alsa_support_FALSE=
26520 fi
26521
26522
26523
26524 if test $with_alsa = "yes"
26525 then :
26526 audio_methods="${audio_methods} alsa"
26527 fi
26528
26529 #check for OSS support
26530
26531 # Check whether --with-oss was given.
26532 if test ${with_oss+y}
26533 then :
26534 withval=$with_oss;
26535 else case e in #(
26536 e) with_oss=check ;;
26537 esac
26538 fi
26539
26540 if test $with_oss != "no"
26541 then :
26542 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
26543 if test "x$ac_cv_header_sys_soundcard_h" = xyes
26544 then :
26545 with_oss=yes
26546 if test -z "$default_audio_method"
26547 then :
26548 default_audio_method=oss
26549 fi
26550 audio_dlopen_modules="$audio_dlopen_modules -dlopen ../audio/spd_oss.la"
26551 else case e in #(
26552 e) if test $with_oss = "yes"
26553 then :
26554 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26555 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26556 as_fn_error $? "oss is not available
26557 See 'config.log' for more details" "$LINENO" 5; }
26558 fi ;;
26559 esac
26560 fi
26561
26562 fi
26563 if test $with_oss = "yes"; then
26564 oss_support_TRUE=
26565 oss_support_FALSE='#'
26566 else
26567 oss_support_TRUE='#'
26568 oss_support_FALSE=
26569 fi
26570
26571 if test $with_oss = "yes"
26572 then :
26573 audio_methods="${audio_methods} oss"
26574 fi
26575
26576 # check for NAS support
26577
26578 # Check whether --with-nas was given.
26579 if test ${with_nas+y}
26580 then :
26581 withval=$with_nas;
26582 else case e in #(
26583 e) with_nas=check ;;
26584 esac
26585 fi
26586
26587 if test $with_nas != "no"
26588 then :
26589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
26590 printf %s "checking for AuOpenServer in -laudio... " >&6; }
26591 if test ${ac_cv_lib_audio_AuOpenServer+y}
26592 then :
26593 printf %s "(cached) " >&6
26594 else case e in #(
26595 e) ac_check_lib_save_LIBS=$LIBS
26596 LIBS="-laudio -L/usr/X11R6/lib -lXau $LIBS"
26597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26598 /* end confdefs.h. */
26599
26600 /* Override any GCC internal prototype to avoid an error.
26601 Use char because int might match the return type of a GCC
26602 builtin and then its argument prototype would still apply.
26603 The 'extern "C"' is for builds by C++ compilers;
26604 although this is not generally supported in C code supporting it here
26605 has little cost and some practical benefit (sr 110532). */
26606 #ifdef __cplusplus
26607 extern "C"
26608 #endif
26609 char AuOpenServer (void);
26610 int
26611 main (void)
26612 {
26613 return AuOpenServer ();
26614 ;
26615 return 0;
26616 }
26617 _ACEOF
26618 if ac_fn_c_try_link "$LINENO"
26619 then :
26620 ac_cv_lib_audio_AuOpenServer=yes
26621 else case e in #(
26622 e) ac_cv_lib_audio_AuOpenServer=no ;;
26623 esac
26624 fi
26625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26626 conftest$ac_exeext conftest.$ac_ext
26627 LIBS=$ac_check_lib_save_LIBS ;;
26628 esac
26629 fi
26630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
26631 printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
26632 if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
26633 then :
26634 with_nas=yes
26635 if test -z "$default_audio_method"
26636 then :
26637 default_audio_method=nas
26638 fi
26639 audio_dlopen_modules="$audio_dlopen_modules -dlopen ../audio/spd_nas.la";
26640 NAS_LIBS="-L/usr/X11R6/lib -lXau -laudio"
26641 else case e in #(
26642 e) if test $with_nas = "yes"
26643 then :
26644 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26645 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26646 as_fn_error $? "nas is not available
26647 See 'config.log' for more details" "$LINENO" 5; }
26648 fi ;;
26649 esac
26650 fi
26651
26652 fi
26653 if test $with_nas = "yes"; then
26654 nas_support_TRUE=
26655 nas_support_FALSE='#'
26656 else
26657 nas_support_TRUE='#'
26658 nas_support_FALSE=
26659 fi
26660
26661
26662 if test $with_nas = "yes"
26663 then :
26664 audio_methods="${audio_methods} nas"
26665 fi
26666
26667
26668 # Check whether --with-default-audio-method was given.
26669 if test ${with_default_audio_method+y}
26670 then :
26671 withval=$with_default_audio_method; default_audio_method="$withval"
26672 fi
26673
26674
26675
26676 # We'll build these modules:
26677
26678
26679
26680 # current, age and revision values for libspeechd.
26681 LIB_SPD_CURRENT=8 # Current main version (increment on every API change -- incompatible AND extensions)
26682 LIB_SPD_REVISION=0 # Current minor version (increment on every implementation change)
26683 LIB_SPD_AGE=6 # Number of backward compatible main versions (LIB_SPD_CURRENT incrementations since last incompatible)
26684
26685
26686
26687
26688 # Setup GETTEXT
26689 GETTEXT_PACKAGE=speech-dispatcher
26690
26691
26692 # Paths for configuration files:
26693 spdconfdir='${sysconfdir}/speech-dispatcher'
26694
26695 clientconfdir='${spdconfdir}/clients'
26696
26697 moduleconfdir='${spdconfdir}/modules'
26698
26699
26700 # Paths for read-only copy of configuration files:
26701 spdconforigdir='${datadir}/speech-dispatcher/conf'
26702
26703 clientconforigdir='${spdconforigdir}/clients'
26704
26705 spddesktopconforigdir='${spdconforigdir}/desktop'
26706
26707 moduleconforigdir='${spdconforigdir}/modules'
26708
26709
26710 # Path for sound files:
26711 snddatadir='${datadir}/sounds/speech-dispatcher'
26712
26713
26714 # Path for locale files:
26715 localedatadir='${datadir}/speech-dispatcher/locale'
26716
26717
26718 # Path for module binaries:
26719
26720 # Check whether --with-module-bindir was given.
26721 if test ${with_module_bindir+y}
26722 then :
26723 withval=$with_module_bindir; modulebindir=$withval
26724 else case e in #(
26725 e) modulebindir='${libexecdir}/speech-dispatcher-modules' ;;
26726 esac
26727 fi
26728
26729
26730
26731 oldmodulebindir='${libdir}/speech-dispatcher-modules'
26732
26733
26734 # Path for speech-dispatcher libraries:
26735 spdlibdir='${libdir}/speech-dispatcher'
26736
26737
26738 # Path for audio libraries and plugins:
26739 audiodir="$spdlibdir"
26740
26741
26742 # Path for speech-dispatcher include files:
26743 spdincludedir=${includedir}/speech-dispatcher
26744
26745 includedir=${spdincludedir}
26746
26747
26748 # support for systemd unit files
26749
26750 # Check whether --with-systemdsystemunitdir was given.
26751 if test ${with_systemdsystemunitdir+y}
26752 then :
26753 withval=$with_systemdsystemunitdir;
26754 else case e in #(
26755 e) with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) ;;
26756 esac
26757 fi
26758
26759 if test "x$with_systemdsystemunitdir" != xno; then
26760 systemdsystemunitdir=$with_systemdsystemunitdir
26761
26762 fi
26763 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
26764 HAVE_SYSTEMD_TRUE=
26765 HAVE_SYSTEMD_FALSE='#'
26766 else
26767 HAVE_SYSTEMD_TRUE='#'
26768 HAVE_SYSTEMD_FALSE=
26769 fi
26770
26771
26772 # Check whether --with-systemduserunitdir was given.
26773 if test ${with_systemduserunitdir+y}
26774 then :
26775 withval=$with_systemduserunitdir;
26776 else case e in #(
26777 e) with_systemduserunitdir=$($PKG_CONFIG --variable=systemduserunitdir systemd) ;;
26778 esac
26779 fi
26780
26781 if test -n "$have_libsystemd" -a -n "$with_systemduserunitdir" -a "x$with_systemduserunitdir" != xno ; then
26782 use_libsystemd=yes
26783 systemduserunitdir=$with_systemduserunitdir
26784
26785
26786 printf "%s\n" "#define USE_LIBSYSTEMD 1" >>confdefs.h
26787
26788 fi
26789 if test "x$use_libsystemd" = "xyes"; then
26790 USE_LIBSYSTEMD_TRUE=
26791 USE_LIBSYSTEMD_FALSE='#'
26792 else
26793 USE_LIBSYSTEMD_TRUE='#'
26794 USE_LIBSYSTEMD_FALSE=
26795 fi
26796
26797
26798 if test "$EMAIL" = [email protected]; then
26799 BUILD_HTML_DOC_TRUE=
26800 BUILD_HTML_DOC_FALSE='#'
26801 else
26802 BUILD_HTML_DOC_TRUE='#'
26803 BUILD_HTML_DOC_FALSE=
26804 fi
26805
26806
26807 ac_config_files="$ac_config_files Makefile run-speechd run-spd-say speech-dispatcher.pc config/Makefile config/clients/Makefile config/modules/Makefile doc/Makefile include/Makefile locale/Makefile po/Makevars po/Makefile.in src/Makefile src/api/Makefile src/api/c/Makefile src/api/python/Makefile src/api/python/speechd/Makefile src/api/python/speechd_config/Makefile src/audio/Makefile src/clients/Makefile src/clients/say/Makefile src/clients/spdsend/Makefile src/common/Makefile src/modules/Makefile src/server/Makefile src/tests/Makefile"
26808
26809 cat >confcache <<\_ACEOF
26810 # This file is a shell script that caches the results of configure
26811 # tests run on this system so they can be shared between configure
26812 # scripts and configure runs, see configure's option --config-cache.
26813 # It is not useful on other systems. If it contains results you don't
26814 # want to keep, you may remove or edit it.
26815 #
26816 # config.status only pays attention to the cache file if you give it
26817 # the --recheck option to rerun configure.
26818 #
26819 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
26820 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
26821 # following values.
26822
26823 _ACEOF
26824
26825 # The following way of writing the cache mishandles newlines in values,
26826 # but we know of no workaround that is simple, portable, and efficient.
26827 # So, we kill variables containing newlines.
26828 # Ultrix sh set writes to stderr and can't be redirected directly,
26829 # and sets the high bit in the cache file unless we assign to the vars.
26830 (
26831 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26832 eval ac_val=\$$ac_var
26833 case $ac_val in #(
26834 *${as_nl}*)
26835 case $ac_var in #(
26836 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26837 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26838 esac
26839 case $ac_var in #(
26840 _ | IFS | as_nl) ;; #(
26841 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26842 *) { eval $ac_var=; unset $ac_var;} ;;
26843 esac ;;
26844 esac
26845 done
26846
26847 (set) 2>&1 |
26848 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26849 *${as_nl}ac_space=\ *)
26850 # 'set' does not quote correctly, so add quotes: double-quote
26851 # substitution turns \\\\ into \\, and sed turns \\ into \.
26852 sed -n \
26853 "s/'/'\\\\''/g;
26854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26855 ;; #(
26856 *)
26857 # 'set' quotes correctly as required by POSIX, so do not add quotes.
26858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26859 ;;
26860 esac |
26861 sort
26862 ) |
26863 sed '
26864 /^ac_cv_env_/b end
26865 t clear
26866 :clear
26867 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
26868 t end
26869 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26870 :end' >>confcache
26871 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26872 if test -w "$cache_file"; then
26873 if test "x$cache_file" != "x/dev/null"; then
26874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26875 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
26876 if test ! -f "$cache_file" || test -h "$cache_file"; then
26877 cat confcache >"$cache_file"
26878 else
26879 case $cache_file in #(
26880 */* | ?:*)
26881 mv -f confcache "$cache_file"$$ &&
26882 mv -f "$cache_file"$$ "$cache_file" ;; #(
26883 *)
26884 mv -f confcache "$cache_file" ;;
26885 esac
26886 fi
26887 fi
26888 else
26889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26890 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
26891 fi
26892 fi
26893 rm -f confcache
26894
26895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26896 # Let make expand exec_prefix.
26897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26898
26899 DEFS=-DHAVE_CONFIG_H
26900
26901 ac_libobjs=
26902 ac_ltlibobjs=
26903 U=
26904 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26905 # 1. Remove the extension, and $U if already installed.
26906 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26907 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
26908 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26909 # will be set to the directory where LIBOBJS objects are built.
26910 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26911 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26912 done
26913 LIBOBJS=$ac_libobjs
26914
26915 LTLIBOBJS=$ac_ltlibobjs
26916
26917
26918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26919 printf %s "checking that generated files are newer than configure... " >&6; }
26920 if test -n "$am_sleep_pid"; then
26921 # Hide warnings about reused PIDs.
26922 wait $am_sleep_pid 2>/dev/null
26923 fi
26924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
26925 printf "%s\n" "done" >&6; }
26926 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26927 as_fn_error $? "conditional \"AMDEP\" was never defined.
26928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26929 fi
26930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26931 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26933 fi
26934 case $enable_silent_rules in # (((
26935 yes) AM_DEFAULT_VERBOSITY=0;;
26936 no) AM_DEFAULT_VERBOSITY=1;;
26937 esac
26938 if test $am_cv_make_support_nested_variables = yes; then
26939 AM_V='$(V)'
26940 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
26941 else
26942 AM_V=$AM_DEFAULT_VERBOSITY
26943 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
26944 fi
26945
26946 if test -n "$EXEEXT"; then
26947 am__EXEEXT_TRUE=
26948 am__EXEEXT_FALSE='#'
26949 else
26950 am__EXEEXT_TRUE='#'
26951 am__EXEEXT_FALSE=
26952 fi
26953
26954 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26955 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26957 fi
26958 if test -z "${HAVE_HELP2MAN_TRUE}" && test -z "${HAVE_HELP2MAN_FALSE}"; then
26959 as_fn_error $? "conditional \"HAVE_HELP2MAN\" was never defined.
26960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26961 fi
26962 if test -z "${DARWIN_HOST_TRUE}" && test -z "${DARWIN_HOST_FALSE}"; then
26963 as_fn_error $? "conditional \"DARWIN_HOST\" was never defined.
26964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26965 fi
26966 if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
26967 as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
26968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26969 fi
26970 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
26971 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
26972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26973 fi
26974 if test -z "${espeak_support_TRUE}" && test -z "${espeak_support_FALSE}"; then
26975 as_fn_error $? "conditional \"espeak_support\" was never defined.
26976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26977 fi
26978 if test -z "${espeak_ng_support_TRUE}" && test -z "${espeak_ng_support_FALSE}"; then
26979 as_fn_error $? "conditional \"espeak_ng_support\" was never defined.
26980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26981 fi
26982 if test -z "${espeak_dummy_message_TRUE}" && test -z "${espeak_dummy_message_FALSE}"; then
26983 as_fn_error $? "conditional \"espeak_dummy_message\" was never defined.
26984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26985 fi
26986 if test -z "${flite_support_TRUE}" && test -z "${flite_support_FALSE}"; then
26987 as_fn_error $? "conditional \"flite_support\" was never defined.
26988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26989 fi
26990 if test -z "${flite_dummy_message_TRUE}" && test -z "${flite_dummy_message_FALSE}"; then
26991 as_fn_error $? "conditional \"flite_dummy_message\" was never defined.
26992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26993 fi
26994 if test -z "${ibmtts_support_TRUE}" && test -z "${ibmtts_support_FALSE}"; then
26995 as_fn_error $? "conditional \"ibmtts_support\" was never defined.
26996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26997 fi
26998 if test -z "${ibmtts_shim_TRUE}" && test -z "${ibmtts_shim_FALSE}"; then
26999 as_fn_error $? "conditional \"ibmtts_shim\" was never defined.
27000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27001 fi
27002 if test -z "${voxin_support_TRUE}" && test -z "${voxin_support_FALSE}"; then
27003 as_fn_error $? "conditional \"voxin_support\" was never defined.
27004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27005 fi
27006 if test -z "${voxin_shim_TRUE}" && test -z "${voxin_shim_FALSE}"; then
27007 as_fn_error $? "conditional \"voxin_shim\" was never defined.
27008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27009 fi
27010 if test -z "${ivona_support_TRUE}" && test -z "${ivona_support_FALSE}"; then
27011 as_fn_error $? "conditional \"ivona_support\" was never defined.
27012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27013 fi
27014 if test -z "${pico_support_TRUE}" && test -z "${pico_support_FALSE}"; then
27015 as_fn_error $? "conditional \"pico_support\" was never defined.
27016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27017 fi
27018 if test -z "${baratinoo_support_TRUE}" && test -z "${baratinoo_support_FALSE}"; then
27019 as_fn_error $? "conditional \"baratinoo_support\" was never defined.
27020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27021 fi
27022 if test -z "${baratinoo_shim_TRUE}" && test -z "${baratinoo_shim_FALSE}"; then
27023 as_fn_error $? "conditional \"baratinoo_shim\" was never defined.
27024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27025 fi
27026 if test -z "${kali_support_TRUE}" && test -z "${kali_support_FALSE}"; then
27027 as_fn_error $? "conditional \"kali_support\" was never defined.
27028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27029 fi
27030 if test -z "${kali_shim_TRUE}" && test -z "${kali_shim_FALSE}"; then
27031 as_fn_error $? "conditional \"kali_shim\" was never defined.
27032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27033 fi
27034 if test -z "${pulse_support_TRUE}" && test -z "${pulse_support_FALSE}"; then
27035 as_fn_error $? "conditional \"pulse_support\" was never defined.
27036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27037 fi
27038 if test -z "${libao_support_TRUE}" && test -z "${libao_support_FALSE}"; then
27039 as_fn_error $? "conditional \"libao_support\" was never defined.
27040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27041 fi
27042 if test -z "${pipewire_support_TRUE}" && test -z "${pipewire_support_FALSE}"; then
27043 as_fn_error $? "conditional \"pipewire_support\" was never defined.
27044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27045 fi
27046 if test -z "${alsa_support_TRUE}" && test -z "${alsa_support_FALSE}"; then
27047 as_fn_error $? "conditional \"alsa_support\" was never defined.
27048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27049 fi
27050 if test -z "${oss_support_TRUE}" && test -z "${oss_support_FALSE}"; then
27051 as_fn_error $? "conditional \"oss_support\" was never defined.
27052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27053 fi
27054 if test -z "${nas_support_TRUE}" && test -z "${nas_support_FALSE}"; then
27055 as_fn_error $? "conditional \"nas_support\" was never defined.
27056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27057 fi
27058 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
27059 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
27060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27061 fi
27062 if test -z "${USE_LIBSYSTEMD_TRUE}" && test -z "${USE_LIBSYSTEMD_FALSE}"; then
27063 as_fn_error $? "conditional \"USE_LIBSYSTEMD\" was never defined.
27064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27065 fi
27066 if test -z "${BUILD_HTML_DOC_TRUE}" && test -z "${BUILD_HTML_DOC_FALSE}"; then
27067 as_fn_error $? "conditional \"BUILD_HTML_DOC\" was never defined.
27068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27069 fi
27070
27071 : "${CONFIG_STATUS=./config.status}"
27072 ac_write_fail=0
27073 ac_clean_files_save=$ac_clean_files
27074 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27076 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
27077 as_write_fail=0
27078 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27079 #! $SHELL
27080 # Generated by $as_me.
27081 # Run this file to recreate the current configuration.
27082 # Compiler output produced by configure, useful for debugging
27083 # configure, is in config.log if it exists.
27084
27085 debug=false
27086 ac_cs_recheck=false
27087 ac_cs_silent=false
27088
27089 SHELL=\${CONFIG_SHELL-$SHELL}
27090 export SHELL
27091 _ASEOF
27092 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27093 ## -------------------- ##
27094 ## M4sh Initialization. ##
27095 ## -------------------- ##
27096
27097 # Be more Bourne compatible
27098 DUALCASE=1; export DUALCASE # for MKS sh
27099 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
27100 then :
27101 emulate sh
27102 NULLCMD=:
27103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27104 # is contrary to our usage. Disable this feature.
27105 alias -g '${1+"$@"}'='"$@"'
27106 setopt NO_GLOB_SUBST
27107 else case e in #(
27108 e) case `(set -o) 2>/dev/null` in #(
27109 *posix*) :
27110 set -o posix ;; #(
27111 *) :
27112 ;;
27113 esac ;;
27114 esac
27115 fi
27116
27117
27118
27119 # Reset variables that may have inherited troublesome values from
27120 # the environment.
27121
27122 # IFS needs to be set, to space, tab, and newline, in precisely that order.
27123 # (If _AS_PATH_WALK were called with IFS unset, it would have the
27124 # side effect of setting IFS to empty, thus disabling word splitting.)
27125 # Quoting is to prevent editors from complaining about space-tab.
27126 as_nl='
27127 '
27128 export as_nl
27129 IFS=" "" $as_nl"
27130
27131 PS1='$ '
27132 PS2='> '
27133 PS4='+ '
27134
27135 # Ensure predictable behavior from utilities with locale-dependent output.
27136 LC_ALL=C
27137 export LC_ALL
27138 LANGUAGE=C
27139 export LANGUAGE
27140
27141 # We cannot yet rely on "unset" to work, but we need these variables
27142 # to be unset--not just set to an empty or harmless value--now, to
27143 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
27144 # also avoids known problems related to "unset" and subshell syntax
27145 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
27146 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
27147 do eval test \${$as_var+y} \
27148 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27149 done
27150
27151 # Ensure that fds 0, 1, and 2 are open.
27152 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
27153 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
27154 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
27155
27156 # The user is always right.
27157 if ${PATH_SEPARATOR+false} :; then
27158 PATH_SEPARATOR=:
27159 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27160 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27161 PATH_SEPARATOR=';'
27162 }
27163 fi
27164
27165
27166 # Find who we are. Look in the path if we contain no directory separator.
27167 as_myself=
27168 case $0 in #((
27169 *[\\/]* ) as_myself=$0 ;;
27170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27171 for as_dir in $PATH
27172 do
27173 IFS=$as_save_IFS
27174 case $as_dir in #(((
27175 '') as_dir=./ ;;
27176 */) ;;
27177 *) as_dir=$as_dir/ ;;
27178 esac
27179 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
27180 done
27181 IFS=$as_save_IFS
27182
27183 ;;
27184 esac
27185 # We did not find ourselves, most probably we were run as 'sh COMMAND'
27186 # in which case we are not to be found in the path.
27187 if test "x$as_myself" = x; then
27188 as_myself=$0
27189 fi
27190 if test ! -f "$as_myself"; then
27191 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27192 exit 1
27193 fi
27194
27195
27196
27197 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27198 # ----------------------------------------
27199 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27200 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27201 # script with STATUS, using 1 if that was 0.
27202 as_fn_error ()
27203 {
27204 as_status=$1; test $as_status -eq 0 && as_status=1
27205 if test "$4"; then
27206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27208 fi
27209 printf "%s\n" "$as_me: error: $2" >&2
27210 as_fn_exit $as_status
27211 } # as_fn_error
27212
27213
27214 # as_fn_set_status STATUS
27215 # -----------------------
27216 # Set $? to STATUS, without forking.
27217 as_fn_set_status ()
27218 {
27219 return $1
27220 } # as_fn_set_status
27221
27222 # as_fn_exit STATUS
27223 # -----------------
27224 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27225 as_fn_exit ()
27226 {
27227 set +e
27228 as_fn_set_status $1
27229 exit $1
27230 } # as_fn_exit
27231
27232 # as_fn_unset VAR
27233 # ---------------
27234 # Portably unset VAR.
27235 as_fn_unset ()
27236 {
27237 { eval $1=; unset $1;}
27238 }
27239 as_unset=as_fn_unset
27240
27241 # as_fn_append VAR VALUE
27242 # ----------------------
27243 # Append the text in VALUE to the end of the definition contained in VAR. Take
27244 # advantage of any shell optimizations that allow amortized linear growth over
27245 # repeated appends, instead of the typical quadratic growth present in naive
27246 # implementations.
27247 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
27248 then :
27249 eval 'as_fn_append ()
27250 {
27251 eval $1+=\$2
27252 }'
27253 else case e in #(
27254 e) as_fn_append ()
27255 {
27256 eval $1=\$$1\$2
27257 } ;;
27258 esac
27259 fi # as_fn_append
27260
27261 # as_fn_arith ARG...
27262 # ------------------
27263 # Perform arithmetic evaluation on the ARGs, and store the result in the
27264 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27265 # must be portable across $(()) and expr.
27266 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
27267 then :
27268 eval 'as_fn_arith ()
27269 {
27270 as_val=$(( $* ))
27271 }'
27272 else case e in #(
27273 e) as_fn_arith ()
27274 {
27275 as_val=`expr "$@" || test $? -eq 1`
27276 } ;;
27277 esac
27278 fi # as_fn_arith
27279
27280
27281 if expr a : '\(a\)' >/dev/null 2>&1 &&
27282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27283 as_expr=expr
27284 else
27285 as_expr=false
27286 fi
27287
27288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27289 as_basename=basename
27290 else
27291 as_basename=false
27292 fi
27293
27294 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27295 as_dirname=dirname
27296 else
27297 as_dirname=false
27298 fi
27299
27300 as_me=`$as_basename -- "$0" ||
27301 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27302 X"$0" : 'X\(//\)$' \| \
27303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27304 printf "%s\n" X/"$0" |
27305 sed '/^.*\/\([^/][^/]*\)\/*$/{
27306 s//\1/
27307 q
27308 }
27309 /^X\/\(\/\/\)$/{
27310 s//\1/
27311 q
27312 }
27313 /^X\/\(\/\).*/{
27314 s//\1/
27315 q
27316 }
27317 s/.*/./; q'`
27318
27319 # Avoid depending upon Character Ranges.
27320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27323 as_cr_digits='0123456789'
27324 as_cr_alnum=$as_cr_Letters$as_cr_digits
27325
27326
27327 # Determine whether it's possible to make 'echo' print without a newline.
27328 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
27329 # for compatibility with existing Makefiles.
27330 ECHO_C= ECHO_N= ECHO_T=
27331 case `echo -n x` in #(((((
27332 -n*)
27333 case `echo 'xy\c'` in
27334 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27335 xy) ECHO_C='\c';;
27336 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27337 ECHO_T=' ';;
27338 esac;;
27339 *)
27340 ECHO_N='-n';;
27341 esac
27342
27343 # For backward compatibility with old third-party macros, we provide
27344 # the shell variables $as_echo and $as_echo_n. New code should use
27345 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
27346 as_echo='printf %s\n'
27347 as_echo_n='printf %s'
27348
27349 rm -f conf$$ conf$$.exe conf$$.file
27350 if test -d conf$$.dir; then
27351 rm -f conf$$.dir/conf$$.file
27352 else
27353 rm -f conf$$.dir
27354 mkdir conf$$.dir 2>/dev/null
27355 fi
27356 if (echo >conf$$.file) 2>/dev/null; then
27357 if ln -s conf$$.file conf$$ 2>/dev/null; then
27358 as_ln_s='ln -s'
27359 # ... but there are two gotchas:
27360 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
27361 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
27362 # In both cases, we have to default to 'cp -pR'.
27363 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27364 as_ln_s='cp -pR'
27365 elif ln conf$$.file conf$$ 2>/dev/null; then
27366 as_ln_s=ln
27367 else
27368 as_ln_s='cp -pR'
27369 fi
27370 else
27371 as_ln_s='cp -pR'
27372 fi
27373 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27374 rmdir conf$$.dir 2>/dev/null
27375
27376
27377 # as_fn_mkdir_p
27378 # -------------
27379 # Create "$as_dir" as a directory, including parents if necessary.
27380 as_fn_mkdir_p ()
27381 {
27382
27383 case $as_dir in #(
27384 -*) as_dir=./$as_dir;;
27385 esac
27386 test -d "$as_dir" || eval $as_mkdir_p || {
27387 as_dirs=
27388 while :; do
27389 case $as_dir in #(
27390 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27391 *) as_qdir=$as_dir;;
27392 esac
27393 as_dirs="'$as_qdir' $as_dirs"
27394 as_dir=`$as_dirname -- "$as_dir" ||
27395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27396 X"$as_dir" : 'X\(//\)[^/]' \| \
27397 X"$as_dir" : 'X\(//\)$' \| \
27398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27399 printf "%s\n" X"$as_dir" |
27400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27401 s//\1/
27402 q
27403 }
27404 /^X\(\/\/\)[^/].*/{
27405 s//\1/
27406 q
27407 }
27408 /^X\(\/\/\)$/{
27409 s//\1/
27410 q
27411 }
27412 /^X\(\/\).*/{
27413 s//\1/
27414 q
27415 }
27416 s/.*/./; q'`
27417 test -d "$as_dir" && break
27418 done
27419 test -z "$as_dirs" || eval "mkdir $as_dirs"
27420 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27421
27422
27423 } # as_fn_mkdir_p
27424 if mkdir -p . 2>/dev/null; then
27425 as_mkdir_p='mkdir -p "$as_dir"'
27426 else
27427 test -d ./-p && rmdir ./-p
27428 as_mkdir_p=false
27429 fi
27430
27431
27432 # as_fn_executable_p FILE
27433 # -----------------------
27434 # Test if FILE is an executable regular file.
27435 as_fn_executable_p ()
27436 {
27437 test -f "$1" && test -x "$1"
27438 } # as_fn_executable_p
27439 as_test_x='test -x'
27440 as_executable_p=as_fn_executable_p
27441
27442 # Sed expression to map a string onto a valid CPP name.
27443 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
27444 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
27445
27446 # Sed expression to map a string onto a valid variable name.
27447 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
27448 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
27449
27450
27451 exec 6>&1
27452 ## ----------------------------------- ##
27453 ## Main body of $CONFIG_STATUS script. ##
27454 ## ----------------------------------- ##
27455 _ASEOF
27456 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27457
27458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27459 # Save the log message, to keep $0 and so on meaningful, and to
27460 # report actual input values of CONFIG_FILES etc. instead of their
27461 # values after options handling.
27462 ac_log="
27463 This file was extended by speech-dispatcher $as_me 0.12.1, which was
27464 generated by GNU Autoconf 2.72. Invocation command line was
27465
27466 CONFIG_FILES = $CONFIG_FILES
27467 CONFIG_HEADERS = $CONFIG_HEADERS
27468 CONFIG_LINKS = $CONFIG_LINKS
27469 CONFIG_COMMANDS = $CONFIG_COMMANDS
27470 $ $0 $@
27471
27472 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27473 "
27474
27475 _ACEOF
27476
27477 case $ac_config_files in *"
27478 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27479 esac
27480
27481 case $ac_config_headers in *"
27482 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27483 esac
27484
27485
27486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27487 # Files that config.status was made for.
27488 config_files="$ac_config_files"
27489 config_headers="$ac_config_headers"
27490 config_commands="$ac_config_commands"
27491
27492 _ACEOF
27493
27494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27495 ac_cs_usage="\
27496 '$as_me' instantiates files and other configuration actions
27497 from templates according to the current configuration. Unless the files
27498 and actions are specified as TAGs, all are instantiated by default.
27499
27500 Usage: $0 [OPTION]... [TAG]...
27501
27502 -h, --help print this help, then exit
27503 -V, --version print version number and configuration settings, then exit
27504 --config print configuration, then exit
27505 -q, --quiet, --silent
27506 do not print progress messages
27507 -d, --debug don't remove temporary files
27508 --recheck update $as_me by reconfiguring in the same conditions
27509 --file=FILE[:TEMPLATE]
27510 instantiate the configuration file FILE
27511 --header=FILE[:TEMPLATE]
27512 instantiate the configuration header FILE
27513
27514 Configuration files:
27515 $config_files
27516
27517 Configuration headers:
27518 $config_headers
27519
27520 Configuration commands:
27521 $config_commands
27522
27523 Report bugs to <[email protected]>."
27524
27525 _ACEOF
27526 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
27527 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
27528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27529 ac_cs_config='$ac_cs_config_escaped'
27530 ac_cs_version="\\
27531 speech-dispatcher config.status 0.12.1
27532 configured by $0, generated by GNU Autoconf 2.72,
27533 with options \\"\$ac_cs_config\\"
27534
27535 Copyright (C) 2023 Free Software Foundation, Inc.
27536 This config.status script is free software; the Free Software Foundation
27537 gives unlimited permission to copy, distribute and modify it."
27538
27539 ac_pwd='$ac_pwd'
27540 srcdir='$srcdir'
27541 INSTALL='$INSTALL'
27542 MKDIR_P='$MKDIR_P'
27543 AWK='$AWK'
27544 test -n "\$AWK" || AWK=awk
27545 _ACEOF
27546
27547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27548 # The default lists apply if the user does not specify any file.
27549 ac_need_defaults=:
27550 while test $# != 0
27551 do
27552 case $1 in
27553 --*=?*)
27554 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27555 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27556 ac_shift=:
27557 ;;
27558 --*=)
27559 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27560 ac_optarg=
27561 ac_shift=:
27562 ;;
27563 *)
27564 ac_option=$1
27565 ac_optarg=$2
27566 ac_shift=shift
27567 ;;
27568 esac
27569
27570 case $ac_option in
27571 # Handling of the options.
27572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27573 ac_cs_recheck=: ;;
27574 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27575 printf "%s\n" "$ac_cs_version"; exit ;;
27576 --config | --confi | --conf | --con | --co | --c )
27577 printf "%s\n" "$ac_cs_config"; exit ;;
27578 --debug | --debu | --deb | --de | --d | -d )
27579 debug=: ;;
27580 --file | --fil | --fi | --f )
27581 $ac_shift
27582 case $ac_optarg in
27583 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27584 '') as_fn_error $? "missing file argument" ;;
27585 esac
27586 as_fn_append CONFIG_FILES " '$ac_optarg'"
27587 ac_need_defaults=false;;
27588 --header | --heade | --head | --hea )
27589 $ac_shift
27590 case $ac_optarg in
27591 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27592 esac
27593 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27594 ac_need_defaults=false;;
27595 --he | --h)
27596 # Conflict between --help and --header
27597 as_fn_error $? "ambiguous option: '$1'
27598 Try '$0 --help' for more information.";;
27599 --help | --hel | -h )
27600 printf "%s\n" "$ac_cs_usage"; exit ;;
27601 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27602 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27603 ac_cs_silent=: ;;
27604
27605 # This is an error.
27606 -*) as_fn_error $? "unrecognized option: '$1'
27607 Try '$0 --help' for more information." ;;
27608
27609 *) as_fn_append ac_config_targets " $1"
27610 ac_need_defaults=false ;;
27611
27612 esac
27613 shift
27614 done
27615
27616 ac_configure_extra_args=
27617
27618 if $ac_cs_silent; then
27619 exec 6>/dev/null
27620 ac_configure_extra_args="$ac_configure_extra_args --silent"
27621 fi
27622
27623 _ACEOF
27624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27625 if \$ac_cs_recheck; then
27626 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27627 shift
27628 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
27629 CONFIG_SHELL='$SHELL'
27630 export CONFIG_SHELL
27631 exec "\$@"
27632 fi
27633
27634 _ACEOF
27635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27636 exec 5>>config.log
27637 {
27638 echo
27639 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27640 ## Running $as_me. ##
27641 _ASBOX
27642 printf "%s\n" "$ac_log"
27643 } >&5
27644
27645 _ACEOF
27646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27647 #
27648 # INIT-COMMANDS
27649 #
27650 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27651
27652
27653 # The HP-UX ksh and POSIX shell print the target directory to stdout
27654 # if CDPATH is set.
27655 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27656
27657 sed_quote_subst='$sed_quote_subst'
27658 double_quote_subst='$double_quote_subst'
27659 delay_variable_subst='$delay_variable_subst'
27660 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27661 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27662 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27663 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27664 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27665 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27666 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27667 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27668 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27669 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27670 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27671 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27672 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27673 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27674 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27675 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27676 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27677 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27678 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27679 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27680 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27681 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27682 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27683 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27684 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27685 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27686 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27687 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27688 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27689 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27690 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27691 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27692 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27693 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27694 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
27695 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27696 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27697 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27698 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27699 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27700 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27701 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27702 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27703 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
27704 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27705 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27706 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27707 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27708 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27709 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27710 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27711 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27712 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27713 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27714 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27715 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27716 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27717 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27718 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27719 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27720 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"`'
27721 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27722 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27723 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27724 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27725 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27726 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27727 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27728 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27729 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27730 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27731 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27732 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27733 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27734 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27735 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27736 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27737 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27738 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27739 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27740 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27741 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27742 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27743 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27744 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27745 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27746 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27747 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27748 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27749 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27750 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27751 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27752 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27753 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27754 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27755 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27756 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27757 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27758 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27759 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27760 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27761 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27762 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27763 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27764 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27765 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27766 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27767 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27768 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27769 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27770 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27771 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27772 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27773 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27774 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27775 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27776 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27777 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27778 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27779 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27780 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27781 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27782 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27783 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27784 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27785 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27786 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27787 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27788 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27789 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27790 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27791 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27792 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27793 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27794 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27795 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27796 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27797 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27798 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27799 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27800 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27801 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27802 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27803 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27804 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27805 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27806 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27807 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27808 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27809 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27810 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27811 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27812 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27813 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27814 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27815 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27816 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27817 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27818 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27819 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27820 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27821 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27822 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27823 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27824 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27825 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27826 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27827 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27828 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27829 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27830 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27831 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27832 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27833 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27834 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27835 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27836 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27837 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27838 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27839 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27840 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27841 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27842 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27843 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27844 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27845 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27846 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27847 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27848 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27849 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27850 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27851
27852 LTCC='$LTCC'
27853 LTCFLAGS='$LTCFLAGS'
27854 compiler='$compiler_DEFAULT'
27855
27856 # A function that is used when there is no print builtin or printf.
27857 func_fallback_echo ()
27858 {
27859 eval 'cat <<_LTECHO_EOF
27860 \$1
27861 _LTECHO_EOF'
27862 }
27863
27864 # Quote evaled strings.
27865 for var in SHELL \
27866 ECHO \
27867 PATH_SEPARATOR \
27868 SED \
27869 GREP \
27870 EGREP \
27871 FGREP \
27872 LD \
27873 NM \
27874 LN_S \
27875 lt_SP2NL \
27876 lt_NL2SP \
27877 reload_flag \
27878 FILECMD \
27879 OBJDUMP \
27880 deplibs_check_method \
27881 file_magic_cmd \
27882 file_magic_glob \
27883 want_nocaseglob \
27884 DLLTOOL \
27885 sharedlib_from_linklib_cmd \
27886 AR \
27887 archiver_list_spec \
27888 STRIP \
27889 RANLIB \
27890 CC \
27891 CFLAGS \
27892 compiler \
27893 lt_cv_sys_global_symbol_pipe \
27894 lt_cv_sys_global_symbol_to_cdecl \
27895 lt_cv_sys_global_symbol_to_import \
27896 lt_cv_sys_global_symbol_to_c_name_address \
27897 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27898 lt_cv_nm_interface \
27899 nm_file_list_spec \
27900 lt_cv_truncate_bin \
27901 lt_prog_compiler_no_builtin_flag \
27902 lt_prog_compiler_pic \
27903 lt_prog_compiler_wl \
27904 lt_prog_compiler_static \
27905 lt_cv_prog_compiler_c_o \
27906 need_locks \
27907 MANIFEST_TOOL \
27908 DSYMUTIL \
27909 NMEDIT \
27910 LIPO \
27911 OTOOL \
27912 OTOOL64 \
27913 shrext_cmds \
27914 export_dynamic_flag_spec \
27915 whole_archive_flag_spec \
27916 compiler_needs_object \
27917 with_gnu_ld \
27918 allow_undefined_flag \
27919 no_undefined_flag \
27920 hardcode_libdir_flag_spec \
27921 hardcode_libdir_separator \
27922 exclude_expsyms \
27923 include_expsyms \
27924 file_list_spec \
27925 variables_saved_for_relink \
27926 libname_spec \
27927 library_names_spec \
27928 soname_spec \
27929 install_override_mode \
27930 finish_eval \
27931 old_striplib \
27932 striplib \
27933 compiler_lib_search_dirs \
27934 predep_objects \
27935 postdep_objects \
27936 predeps \
27937 postdeps \
27938 compiler_lib_search_path \
27939 LD_CXX \
27940 reload_flag_CXX \
27941 compiler_CXX \
27942 lt_prog_compiler_no_builtin_flag_CXX \
27943 lt_prog_compiler_pic_CXX \
27944 lt_prog_compiler_wl_CXX \
27945 lt_prog_compiler_static_CXX \
27946 lt_cv_prog_compiler_c_o_CXX \
27947 export_dynamic_flag_spec_CXX \
27948 whole_archive_flag_spec_CXX \
27949 compiler_needs_object_CXX \
27950 with_gnu_ld_CXX \
27951 allow_undefined_flag_CXX \
27952 no_undefined_flag_CXX \
27953 hardcode_libdir_flag_spec_CXX \
27954 hardcode_libdir_separator_CXX \
27955 exclude_expsyms_CXX \
27956 include_expsyms_CXX \
27957 file_list_spec_CXX \
27958 compiler_lib_search_dirs_CXX \
27959 predep_objects_CXX \
27960 postdep_objects_CXX \
27961 predeps_CXX \
27962 postdeps_CXX \
27963 compiler_lib_search_path_CXX; do
27964 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27965 *[\\\\\\\`\\"\\\$]*)
27966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27967 ;;
27968 *)
27969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27970 ;;
27971 esac
27972 done
27973
27974 # Double-quote double-evaled strings.
27975 for var in reload_cmds \
27976 old_postinstall_cmds \
27977 old_postuninstall_cmds \
27978 old_archive_cmds \
27979 extract_expsyms_cmds \
27980 old_archive_from_new_cmds \
27981 old_archive_from_expsyms_cmds \
27982 archive_cmds \
27983 archive_expsym_cmds \
27984 module_cmds \
27985 module_expsym_cmds \
27986 export_symbols_cmds \
27987 prelink_cmds \
27988 postlink_cmds \
27989 postinstall_cmds \
27990 postuninstall_cmds \
27991 finish_cmds \
27992 sys_lib_search_path_spec \
27993 configure_time_dlsearch_path \
27994 configure_time_lt_sys_library_path \
27995 reload_cmds_CXX \
27996 old_archive_cmds_CXX \
27997 old_archive_from_new_cmds_CXX \
27998 old_archive_from_expsyms_cmds_CXX \
27999 archive_cmds_CXX \
28000 archive_expsym_cmds_CXX \
28001 module_cmds_CXX \
28002 module_expsym_cmds_CXX \
28003 export_symbols_cmds_CXX \
28004 prelink_cmds_CXX \
28005 postlink_cmds_CXX; do
28006 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28007 *[\\\\\\\`\\"\\\$]*)
28008 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28009 ;;
28010 *)
28011 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28012 ;;
28013 esac
28014 done
28015
28016 ac_aux_dir='$ac_aux_dir'
28017
28018 # See if we are running on zsh, and set the options that allow our
28019 # commands through without removal of \ escapes INIT.
28020 if test -n "\${ZSH_VERSION+set}"; then
28021 setopt NO_GLOB_SUBST
28022 fi
28023
28024
28025 PACKAGE='$PACKAGE'
28026 VERSION='$VERSION'
28027 RM='$RM'
28028 ofile='$ofile'
28029
28030
28031
28032
28033
28034 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
28035 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
28036 # from automake < 1.5.
28037 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
28038 # Capture the value of LINGUAS because we need it to compute CATALOGS.
28039 LINGUAS="${LINGUAS-%UNSET%}"
28040
28041 ac_cv_exeext="$ac_cv_exeext"
28042
28043
28044 _ACEOF
28045
28046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28047
28048 # Handling of arguments.
28049 for ac_config_target in $ac_config_targets
28050 do
28051 case $ac_config_target in
28052 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28053 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28054 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28055 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
28056 "src/tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS src/tests/atconfig" ;;
28057 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28058 "run-speechd") CONFIG_FILES="$CONFIG_FILES run-speechd" ;;
28059 "run-spd-say") CONFIG_FILES="$CONFIG_FILES run-spd-say" ;;
28060 "speech-dispatcher.pc") CONFIG_FILES="$CONFIG_FILES speech-dispatcher.pc" ;;
28061 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
28062 "config/clients/Makefile") CONFIG_FILES="$CONFIG_FILES config/clients/Makefile" ;;
28063 "config/modules/Makefile") CONFIG_FILES="$CONFIG_FILES config/modules/Makefile" ;;
28064 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28065 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28066 "locale/Makefile") CONFIG_FILES="$CONFIG_FILES locale/Makefile" ;;
28067 "po/Makevars") CONFIG_FILES="$CONFIG_FILES po/Makevars" ;;
28068 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
28069 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28070 "src/api/Makefile") CONFIG_FILES="$CONFIG_FILES src/api/Makefile" ;;
28071 "src/api/c/Makefile") CONFIG_FILES="$CONFIG_FILES src/api/c/Makefile" ;;
28072 "src/api/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/api/python/Makefile" ;;
28073 "src/api/python/speechd/Makefile") CONFIG_FILES="$CONFIG_FILES src/api/python/speechd/Makefile" ;;
28074 "src/api/python/speechd_config/Makefile") CONFIG_FILES="$CONFIG_FILES src/api/python/speechd_config/Makefile" ;;
28075 "src/audio/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/Makefile" ;;
28076 "src/clients/Makefile") CONFIG_FILES="$CONFIG_FILES src/clients/Makefile" ;;
28077 "src/clients/say/Makefile") CONFIG_FILES="$CONFIG_FILES src/clients/say/Makefile" ;;
28078 "src/clients/spdsend/Makefile") CONFIG_FILES="$CONFIG_FILES src/clients/spdsend/Makefile" ;;
28079 "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
28080 "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
28081 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
28082 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
28083
28084 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
28085 esac
28086 done
28087
28088
28089 # If the user did not use the arguments to specify the items to instantiate,
28090 # then the envvar interface is used. Set only those that are not.
28091 # We use the long form for the default assignment because of an extremely
28092 # bizarre bug on SunOS 4.1.3.
28093 if $ac_need_defaults; then
28094 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
28095 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
28096 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
28097 fi
28098
28099 # Have a temporary directory for convenience. Make it in the build tree
28100 # simply because there is no reason against having it here, and in addition,
28101 # creating and moving files from /tmp can sometimes cause problems.
28102 # Hook for its removal unless debugging.
28103 # Note that there is a small window in which the directory will not be cleaned:
28104 # after its creation but before its name has been assigned to '$tmp'.
28105 $debug ||
28106 {
28107 tmp= ac_tmp=
28108 trap 'exit_status=$?
28109 : "${ac_tmp:=$tmp}"
28110 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28111 ' 0
28112 trap 'as_fn_exit 1' 1 2 13 15
28113 }
28114 # Create a (secure) tmp directory for tmp files.
28115
28116 {
28117 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28118 test -d "$tmp"
28119 } ||
28120 {
28121 tmp=./conf$$-$RANDOM
28122 (umask 077 && mkdir "$tmp")
28123 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28124 ac_tmp=$tmp
28125
28126 # Set up the scripts for CONFIG_FILES section.
28127 # No need to generate them if there are no CONFIG_FILES.
28128 # This happens for instance with './config.status config.h'.
28129 if test -n "$CONFIG_FILES"; then
28130
28131
28132 ac_cr=`echo X | tr X '\015'`
28133 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28134 # But we know of no other shell where ac_cr would be empty at this
28135 # point, so we can use a bashism as a fallback.
28136 if test "x$ac_cr" = x; then
28137 eval ac_cr=\$\'\\r\'
28138 fi
28139 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28140 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28141 ac_cs_awk_cr='\\r'
28142 else
28143 ac_cs_awk_cr=$ac_cr
28144 fi
28145
28146 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28147 _ACEOF
28148
28149
28150 {
28151 echo "cat >conf$$subs.awk <<_ACEOF" &&
28152 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28153 echo "_ACEOF"
28154 } >conf$$subs.sh ||
28155 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28156 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28157 ac_delim='%!_!# '
28158 for ac_last_try in false false false false false :; do
28159 . ./conf$$subs.sh ||
28160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28161
28162 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28163 if test $ac_delim_n = $ac_delim_num; then
28164 break
28165 elif $ac_last_try; then
28166 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28167 else
28168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28169 fi
28170 done
28171 rm -f conf$$subs.sh
28172
28173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28174 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28175 _ACEOF
28176 sed -n '
28177 h
28178 s/^/S["/; s/!.*/"]=/
28179 p
28180 g
28181 s/^[^!]*!//
28182 :repl
28183 t repl
28184 s/'"$ac_delim"'$//
28185 t delim
28186 :nl
28187 h
28188 s/\(.\{148\}\)..*/\1/
28189 t more1
28190 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28191 p
28192 n
28193 b repl
28194 :more1
28195 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28196 p
28197 g
28198 s/.\{148\}//
28199 t nl
28200 :delim
28201 h
28202 s/\(.\{148\}\)..*/\1/
28203 t more2
28204 s/["\\]/\\&/g; s/^/"/; s/$/"/
28205 p
28206 b
28207 :more2
28208 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28209 p
28210 g
28211 s/.\{148\}//
28212 t delim
28213 ' <conf$$subs.awk | sed '
28214 /^[^""]/{
28215 N
28216 s/\n//
28217 }
28218 ' >>$CONFIG_STATUS || ac_write_fail=1
28219 rm -f conf$$subs.awk
28220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28221 _ACAWK
28222 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28223 for (key in S) S_is_set[key] = 1
28224 FS = ""
28225
28226 }
28227 {
28228 line = $ 0
28229 nfields = split(line, field, "@")
28230 substed = 0
28231 len = length(field[1])
28232 for (i = 2; i < nfields; i++) {
28233 key = field[i]
28234 keylen = length(key)
28235 if (S_is_set[key]) {
28236 value = S[key]
28237 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28238 len += length(value) + length(field[++i])
28239 substed = 1
28240 } else
28241 len += 1 + keylen
28242 }
28243
28244 print line
28245 }
28246
28247 _ACAWK
28248 _ACEOF
28249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28250 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28251 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28252 else
28253 cat
28254 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28255 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28256 _ACEOF
28257
28258 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28259 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28260 # trailing colons and then remove the whole line if VPATH becomes empty
28261 # (actually we leave an empty line to preserve line numbers).
28262 if test "x$srcdir" = x.; then
28263 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28264 h
28265 s///
28266 s/^/:/
28267 s/[ ]*$/:/
28268 s/:\$(srcdir):/:/g
28269 s/:\${srcdir}:/:/g
28270 s/:@srcdir@:/:/g
28271 s/^:*//
28272 s/:*$//
28273 x
28274 s/\(=[ ]*\).*/\1/
28275 G
28276 s/\n//
28277 s/^[^=]*=[ ]*$//
28278 }'
28279 fi
28280
28281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28282 fi # test -n "$CONFIG_FILES"
28283
28284 # Set up the scripts for CONFIG_HEADERS section.
28285 # No need to generate them if there are no CONFIG_HEADERS.
28286 # This happens for instance with './config.status Makefile'.
28287 if test -n "$CONFIG_HEADERS"; then
28288 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28289 BEGIN {
28290 _ACEOF
28291
28292 # Transform confdefs.h into an awk script 'defines.awk', embedded as
28293 # here-document in config.status, that substitutes the proper values into
28294 # config.h.in to produce config.h.
28295
28296 # Create a delimiter string that does not exist in confdefs.h, to ease
28297 # handling of long lines.
28298 ac_delim='%!_!# '
28299 for ac_last_try in false false :; do
28300 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28301 if test -z "$ac_tt"; then
28302 break
28303 elif $ac_last_try; then
28304 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28305 else
28306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28307 fi
28308 done
28309
28310 # For the awk script, D is an array of macro values keyed by name,
28311 # likewise P contains macro parameters if any. Preserve backslash
28312 # newline sequences.
28313
28314 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28315 sed -n '
28316 s/.\{148\}/&'"$ac_delim"'/g
28317 t rset
28318 :rset
28319 s/^[ ]*#[ ]*define[ ][ ]*/ /
28320 t def
28321 d
28322 :def
28323 s/\\$//
28324 t bsnl
28325 s/["\\]/\\&/g
28326 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28327 D["\1"]=" \3"/p
28328 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28329 d
28330 :bsnl
28331 s/["\\]/\\&/g
28332 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28333 D["\1"]=" \3\\\\\\n"\\/p
28334 t cont
28335 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28336 t cont
28337 d
28338 :cont
28339 n
28340 s/.\{148\}/&'"$ac_delim"'/g
28341 t clear
28342 :clear
28343 s/\\$//
28344 t bsnlc
28345 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28346 d
28347 :bsnlc
28348 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28349 b cont
28350 ' <confdefs.h | sed '
28351 s/'"$ac_delim"'/"\\\
28352 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28353
28354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28355 for (key in D) D_is_set[key] = 1
28356 FS = ""
28357 }
28358 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28359 line = \$ 0
28360 split(line, arg, " ")
28361 if (arg[1] == "#") {
28362 defundef = arg[2]
28363 mac1 = arg[3]
28364 } else {
28365 defundef = substr(arg[1], 2)
28366 mac1 = arg[2]
28367 }
28368 split(mac1, mac2, "(") #)
28369 macro = mac2[1]
28370 prefix = substr(line, 1, index(line, defundef) - 1)
28371 if (D_is_set[macro]) {
28372 # Preserve the white space surrounding the "#".
28373 print prefix "define", macro P[macro] D[macro]
28374 next
28375 } else {
28376 # Replace #undef with comments. This is necessary, for example,
28377 # in the case of _POSIX_SOURCE, which is predefined and required
28378 # on some systems where configure will not decide to define it.
28379 if (defundef == "undef") {
28380 print "/*", prefix defundef, macro, "*/"
28381 next
28382 }
28383 }
28384 }
28385 { print }
28386 _ACAWK
28387 _ACEOF
28388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28389 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28390 fi # test -n "$CONFIG_HEADERS"
28391
28392
28393 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28394 shift
28395 for ac_tag
28396 do
28397 case $ac_tag in
28398 :[FHLC]) ac_mode=$ac_tag; continue;;
28399 esac
28400 case $ac_mode$ac_tag in
28401 :[FHL]*:*);;
28402 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
28403 :[FH]-) ac_tag=-:-;;
28404 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28405 esac
28406 ac_save_IFS=$IFS
28407 IFS=:
28408 set x $ac_tag
28409 IFS=$ac_save_IFS
28410 shift
28411 ac_file=$1
28412 shift
28413
28414 case $ac_mode in
28415 :L) ac_source=$1;;
28416 :[FH])
28417 ac_file_inputs=
28418 for ac_f
28419 do
28420 case $ac_f in
28421 -) ac_f="$ac_tmp/stdin";;
28422 *) # Look for the file first in the build tree, then in the source tree
28423 # (if the path is not absolute). The absolute path cannot be DOS-style,
28424 # because $ac_f cannot contain ':'.
28425 test -f "$ac_f" ||
28426 case $ac_f in
28427 [\\/$]*) false;;
28428 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28429 esac ||
28430 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
28431 esac
28432 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28433 as_fn_append ac_file_inputs " '$ac_f'"
28434 done
28435
28436 # Let's still pretend it is 'configure' which instantiates (i.e., don't
28437 # use $as_me), people would be surprised to read:
28438 # /* config.h. Generated by config.status. */
28439 configure_input='Generated from '`
28440 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28441 `' by configure.'
28442 if test x"$ac_file" != x-; then
28443 configure_input="$ac_file. $configure_input"
28444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28445 printf "%s\n" "$as_me: creating $ac_file" >&6;}
28446 fi
28447 # Neutralize special characters interpreted by sed in replacement strings.
28448 case $configure_input in #(
28449 *\&* | *\|* | *\\* )
28450 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
28451 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28452 *) ac_sed_conf_input=$configure_input;;
28453 esac
28454
28455 case $ac_tag in
28456 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28458 esac
28459 ;;
28460 esac
28461
28462 ac_dir=`$as_dirname -- "$ac_file" ||
28463 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28464 X"$ac_file" : 'X\(//\)[^/]' \| \
28465 X"$ac_file" : 'X\(//\)$' \| \
28466 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28467 printf "%s\n" X"$ac_file" |
28468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28469 s//\1/
28470 q
28471 }
28472 /^X\(\/\/\)[^/].*/{
28473 s//\1/
28474 q
28475 }
28476 /^X\(\/\/\)$/{
28477 s//\1/
28478 q
28479 }
28480 /^X\(\/\).*/{
28481 s//\1/
28482 q
28483 }
28484 s/.*/./; q'`
28485 as_dir="$ac_dir"; as_fn_mkdir_p
28486 ac_builddir=.
28487
28488 case "$ac_dir" in
28489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28490 *)
28491 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
28492 # A ".." for each directory in $ac_dir_suffix.
28493 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28494 case $ac_top_builddir_sub in
28495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28497 esac ;;
28498 esac
28499 ac_abs_top_builddir=$ac_pwd
28500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28501 # for backward compatibility:
28502 ac_top_builddir=$ac_top_build_prefix
28503
28504 case $srcdir in
28505 .) # We are building in place.
28506 ac_srcdir=.
28507 ac_top_srcdir=$ac_top_builddir_sub
28508 ac_abs_top_srcdir=$ac_pwd ;;
28509 [\\/]* | ?:[\\/]* ) # Absolute name.
28510 ac_srcdir=$srcdir$ac_dir_suffix;
28511 ac_top_srcdir=$srcdir
28512 ac_abs_top_srcdir=$srcdir ;;
28513 *) # Relative name.
28514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28515 ac_top_srcdir=$ac_top_build_prefix$srcdir
28516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28517 esac
28518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28519
28520
28521 case $ac_mode in
28522 :F)
28523 #
28524 # CONFIG_FILE
28525 #
28526
28527 case $INSTALL in
28528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28530 esac
28531 ac_MKDIR_P=$MKDIR_P
28532 case $MKDIR_P in
28533 [\\/$]* | ?:[\\/]* ) ;;
28534 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28535 esac
28536 _ACEOF
28537
28538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28539 # If the template does not know about datarootdir, expand it.
28540 # FIXME: This hack should be removed a few years after 2.60.
28541 ac_datarootdir_hack=; ac_datarootdir_seen=
28542 ac_sed_dataroot='
28543 /datarootdir/ {
28544 p
28545 q
28546 }
28547 /@datadir@/p
28548 /@docdir@/p
28549 /@infodir@/p
28550 /@localedir@/p
28551 /@mandir@/p'
28552 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28553 *datarootdir*) ac_datarootdir_seen=yes;;
28554 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28556 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28557 _ACEOF
28558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28559 ac_datarootdir_hack='
28560 s&@datadir@&$datadir&g
28561 s&@docdir@&$docdir&g
28562 s&@infodir@&$infodir&g
28563 s&@localedir@&$localedir&g
28564 s&@mandir@&$mandir&g
28565 s&\\\${datarootdir}&$datarootdir&g' ;;
28566 esac
28567 _ACEOF
28568
28569 # Neutralize VPATH when '$srcdir' = '.'.
28570 # Shell code in configure.ac might set extrasub.
28571 # FIXME: do we really want to maintain this feature?
28572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28573 ac_sed_extra="$ac_vpsub
28574 $extrasub
28575 _ACEOF
28576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28577 :t
28578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28579 s|@configure_input@|$ac_sed_conf_input|;t t
28580 s&@top_builddir@&$ac_top_builddir_sub&;t t
28581 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28582 s&@srcdir@&$ac_srcdir&;t t
28583 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28584 s&@top_srcdir@&$ac_top_srcdir&;t t
28585 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28586 s&@builddir@&$ac_builddir&;t t
28587 s&@abs_builddir@&$ac_abs_builddir&;t t
28588 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28589 s&@INSTALL@&$ac_INSTALL&;t t
28590 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28591 $ac_datarootdir_hack
28592 "
28593 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28594 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28595
28596 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28597 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28598 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28599 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
28601 which seems to be undefined. Please make sure it is defined" >&5
28602 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
28603 which seems to be undefined. Please make sure it is defined" >&2;}
28604
28605 rm -f "$ac_tmp/stdin"
28606 case $ac_file in
28607 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28608 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28609 esac \
28610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28611 ;;
28612 :H)
28613 #
28614 # CONFIG_HEADER
28615 #
28616 if test x"$ac_file" != x-; then
28617 {
28618 printf "%s\n" "/* $configure_input */" >&1 \
28619 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28620 } >"$ac_tmp/config.h" \
28621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28622 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28624 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
28625 else
28626 rm -f "$ac_file"
28627 mv "$ac_tmp/config.h" "$ac_file" \
28628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28629 fi
28630 else
28631 printf "%s\n" "/* $configure_input */" >&1 \
28632 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28633 || as_fn_error $? "could not create -" "$LINENO" 5
28634 fi
28635 # Compute "$ac_file"'s index in $config_headers.
28636 _am_arg="$ac_file"
28637 _am_stamp_count=1
28638 for _am_header in $config_headers :; do
28639 case $_am_header in
28640 $_am_arg | $_am_arg:* )
28641 break ;;
28642 * )
28643 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28644 esac
28645 done
28646 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28647 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28648 X"$_am_arg" : 'X\(//\)[^/]' \| \
28649 X"$_am_arg" : 'X\(//\)$' \| \
28650 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28651 printf "%s\n" X"$_am_arg" |
28652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28653 s//\1/
28654 q
28655 }
28656 /^X\(\/\/\)[^/].*/{
28657 s//\1/
28658 q
28659 }
28660 /^X\(\/\/\)$/{
28661 s//\1/
28662 q
28663 }
28664 /^X\(\/\).*/{
28665 s//\1/
28666 q
28667 }
28668 s/.*/./; q'`/stamp-h$_am_stamp_count
28669 ;;
28670
28671 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28672 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
28673 ;;
28674 esac
28675
28676
28677 case $ac_file$ac_mode in
28678 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28679 # Older Autoconf quotes --file arguments for eval, but not when files
28680 # are listed without --file. Let's play safe and only enable the eval
28681 # if we detect the quoting.
28682 # TODO: see whether this extra hack can be removed once we start
28683 # requiring Autoconf 2.70 or later.
28684 case $CONFIG_FILES in #(
28685 *\'*) :
28686 eval set x "$CONFIG_FILES" ;; #(
28687 *) :
28688 set x $CONFIG_FILES ;; #(
28689 *) :
28690 ;;
28691 esac
28692 shift
28693 # Used to flag and report bootstrapping failures.
28694 am_rc=0
28695 for am_mf
28696 do
28697 # Strip MF so we end up with the name of the file.
28698 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
28699 # Check whether this is an Automake generated Makefile which includes
28700 # dependency-tracking related rules and includes.
28701 # Grep'ing the whole file directly is not great: AIX grep has a line
28702 # limit of 2048, but all sed's we know have understand at least 4000.
28703 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28704 || continue
28705 am_dirpart=`$as_dirname -- "$am_mf" ||
28706 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28707 X"$am_mf" : 'X\(//\)[^/]' \| \
28708 X"$am_mf" : 'X\(//\)$' \| \
28709 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28710 printf "%s\n" X"$am_mf" |
28711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28712 s//\1/
28713 q
28714 }
28715 /^X\(\/\/\)[^/].*/{
28716 s//\1/
28717 q
28718 }
28719 /^X\(\/\/\)$/{
28720 s//\1/
28721 q
28722 }
28723 /^X\(\/\).*/{
28724 s//\1/
28725 q
28726 }
28727 s/.*/./; q'`
28728 am_filepart=`$as_basename -- "$am_mf" ||
28729 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28730 X"$am_mf" : 'X\(//\)$' \| \
28731 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28732 printf "%s\n" X/"$am_mf" |
28733 sed '/^.*\/\([^/][^/]*\)\/*$/{
28734 s//\1/
28735 q
28736 }
28737 /^X\/\(\/\/\)$/{
28738 s//\1/
28739 q
28740 }
28741 /^X\/\(\/\).*/{
28742 s//\1/
28743 q
28744 }
28745 s/.*/./; q'`
28746 { echo "$as_me:$LINENO: cd "$am_dirpart" \
28747 && sed -e '/# am--include-marker/d' "$am_filepart" \
28748 | $MAKE -f - am--depfiles" >&5
28749 (cd "$am_dirpart" \
28750 && sed -e '/# am--include-marker/d' "$am_filepart" \
28751 | $MAKE -f - am--depfiles) >&5 2>&5
28752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); } || am_rc=$?
28755 done
28756 if test $am_rc -ne 0; then
28757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
28758 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
28759 as_fn_error $? "Something went wrong bootstrapping makefile fragments
28760 for automatic dependency tracking. If GNU make was not used, consider
28761 re-running the configure script with MAKE=\"gmake\" (or whatever is
28762 necessary). You can also try re-running configure with the
28763 '--disable-dependency-tracking' option to at least be able to build
28764 the package (albeit without support for automatic dependency tracking).
28765 See 'config.log' for more details" "$LINENO" 5; }
28766 fi
28767 { am_dirpart=; unset am_dirpart;}
28768 { am_filepart=; unset am_filepart;}
28769 { am_mf=; unset am_mf;}
28770 { am_rc=; unset am_rc;}
28771 rm -f conftest-deps.mk
28772 }
28773 ;;
28774 "libtool":C)
28775
28776 # See if we are running on zsh, and set the options that allow our
28777 # commands through without removal of \ escapes.
28778 if test -n "${ZSH_VERSION+set}"; then
28779 setopt NO_GLOB_SUBST
28780 fi
28781
28782 cfgfile=${ofile}T
28783 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28784 $RM "$cfgfile"
28785
28786 cat <<_LT_EOF >> "$cfgfile"
28787 #! $SHELL
28788 # Generated automatically by $as_me ($PACKAGE) $VERSION
28789 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28790
28791 # Provide generalized library-building support services.
28792 # Written by Gordon Matzigkeit, 1996
28793
28794 # Copyright (C) 2024 Free Software Foundation, Inc.
28795 # This is free software; see the source for copying conditions. There is NO
28796 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28797
28798 # GNU Libtool is free software; you can redistribute it and/or modify
28799 # it under the terms of the GNU General Public License as published by
28800 # the Free Software Foundation; either version 2 of the License, or
28801 # (at your option) any later version.
28802 #
28803 # As a special exception to the GNU General Public License, if you
28804 # distribute this file as part of a program or library that is built
28805 # using GNU Libtool, you may include this file under the same
28806 # distribution terms that you use for the rest of that program.
28807 #
28808 # GNU Libtool is distributed in the hope that it will be useful, but
28809 # WITHOUT ANY WARRANTY; without even the implied warranty of
28810 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28811 # GNU General Public License for more details.
28812 #
28813 # You should have received a copy of the GNU General Public License
28814 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28815
28816
28817 # The names of the tagged configurations supported by this script.
28818 available_tags='CXX '
28819
28820 # Configured defaults for sys_lib_dlsearch_path munging.
28821 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28822
28823 # ### BEGIN LIBTOOL CONFIG
28824
28825 # Which release of libtool.m4 was used?
28826 macro_version=$macro_version
28827 macro_revision=$macro_revision
28828
28829 # Whether or not to build shared libraries.
28830 build_libtool_libs=$enable_shared
28831
28832 # Whether or not to build static libraries.
28833 build_old_libs=$enable_static
28834
28835 # What type of objects to build.
28836 pic_mode=$pic_mode
28837
28838 # Whether or not to optimize for fast installation.
28839 fast_install=$enable_fast_install
28840
28841 # Shared archive member basename,for filename based shared library versioning on AIX.
28842 shared_archive_member_spec=$shared_archive_member_spec
28843
28844 # Shell to use when invoking shell scripts.
28845 SHELL=$lt_SHELL
28846
28847 # An echo program that protects backslashes.
28848 ECHO=$lt_ECHO
28849
28850 # The PATH separator for the build system.
28851 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28852
28853 # The host system.
28854 host_alias=$host_alias
28855 host=$host
28856 host_os=$host_os
28857
28858 # The build system.
28859 build_alias=$build_alias
28860 build=$build
28861 build_os=$build_os
28862
28863 # A sed program that does not truncate output.
28864 SED=$lt_SED
28865
28866 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28867 Xsed="\$SED -e 1s/^X//"
28868
28869 # A grep program that handles long lines.
28870 GREP=$lt_GREP
28871
28872 # An ERE matcher.
28873 EGREP=$lt_EGREP
28874
28875 # A literal string matcher.
28876 FGREP=$lt_FGREP
28877
28878 # A BSD- or MS-compatible name lister.
28879 NM=$lt_NM
28880
28881 # Whether we need soft or hard links.
28882 LN_S=$lt_LN_S
28883
28884 # What is the maximum length of a command?
28885 max_cmd_len=$max_cmd_len
28886
28887 # Object file suffix (normally "o").
28888 objext=$ac_objext
28889
28890 # Executable file suffix (normally "").
28891 exeext=$exeext
28892
28893 # whether the shell understands "unset".
28894 lt_unset=$lt_unset
28895
28896 # turn spaces into newlines.
28897 SP2NL=$lt_lt_SP2NL
28898
28899 # turn newlines into spaces.
28900 NL2SP=$lt_lt_NL2SP
28901
28902 # convert \$build file names to \$host format.
28903 to_host_file_cmd=$lt_cv_to_host_file_cmd
28904
28905 # convert \$build files to toolchain format.
28906 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28907
28908 # A file(cmd) program that detects file types.
28909 FILECMD=$lt_FILECMD
28910
28911 # An object symbol dumper.
28912 OBJDUMP=$lt_OBJDUMP
28913
28914 # Method to check whether dependent libraries are shared objects.
28915 deplibs_check_method=$lt_deplibs_check_method
28916
28917 # Command to use when deplibs_check_method = "file_magic".
28918 file_magic_cmd=$lt_file_magic_cmd
28919
28920 # How to find potential files when deplibs_check_method = "file_magic".
28921 file_magic_glob=$lt_file_magic_glob
28922
28923 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28924 want_nocaseglob=$lt_want_nocaseglob
28925
28926 # DLL creation program.
28927 DLLTOOL=$lt_DLLTOOL
28928
28929 # Command to associate shared and link libraries.
28930 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28931
28932 # The archiver.
28933 AR=$lt_AR
28934
28935 # Flags to create an archive (by configure).
28936 lt_ar_flags=$lt_ar_flags
28937
28938 # Flags to create an archive.
28939 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
28940
28941 # How to feed a file listing to the archiver.
28942 archiver_list_spec=$lt_archiver_list_spec
28943
28944 # A symbol stripping program.
28945 STRIP=$lt_STRIP
28946
28947 # Commands used to install an old-style archive.
28948 RANLIB=$lt_RANLIB
28949 old_postinstall_cmds=$lt_old_postinstall_cmds
28950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28951
28952 # Whether to use a lock for old archive extraction.
28953 lock_old_archive_extraction=$lock_old_archive_extraction
28954
28955 # A C compiler.
28956 LTCC=$lt_CC
28957
28958 # LTCC compiler flags.
28959 LTCFLAGS=$lt_CFLAGS
28960
28961 # Take the output of nm and produce a listing of raw symbols and C names.
28962 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28963
28964 # Transform the output of nm in a proper C declaration.
28965 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28966
28967 # Transform the output of nm into a list of symbols to manually relocate.
28968 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28969
28970 # Transform the output of nm in a C name address pair.
28971 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28972
28973 # Transform the output of nm in a C name address pair when lib prefix is needed.
28974 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28975
28976 # The name lister interface.
28977 nm_interface=$lt_lt_cv_nm_interface
28978
28979 # Specify filename containing input files for \$NM.
28980 nm_file_list_spec=$lt_nm_file_list_spec
28981
28982 # The root where to search for dependent libraries,and where our libraries should be installed.
28983 lt_sysroot=$lt_sysroot
28984
28985 # Command to truncate a binary pipe.
28986 lt_truncate_bin=$lt_lt_cv_truncate_bin
28987
28988 # The name of the directory that contains temporary libtool files.
28989 objdir=$objdir
28990
28991 # Used to examine libraries when file_magic_cmd begins with "file".
28992 MAGIC_CMD=$MAGIC_CMD
28993
28994 # Must we lock files when doing compilation?
28995 need_locks=$lt_need_locks
28996
28997 # Manifest tool.
28998 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28999
29000 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29001 DSYMUTIL=$lt_DSYMUTIL
29002
29003 # Tool to change global to local symbols on Mac OS X.
29004 NMEDIT=$lt_NMEDIT
29005
29006 # Tool to manipulate fat objects and archives on Mac OS X.
29007 LIPO=$lt_LIPO
29008
29009 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29010 OTOOL=$lt_OTOOL
29011
29012 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29013 OTOOL64=$lt_OTOOL64
29014
29015 # Old archive suffix (normally "a").
29016 libext=$libext
29017
29018 # Shared library suffix (normally ".so").
29019 shrext_cmds=$lt_shrext_cmds
29020
29021 # The commands to extract the exported symbol list from a shared archive.
29022 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29023
29024 # Variables whose values should be saved in libtool wrapper scripts and
29025 # restored at link time.
29026 variables_saved_for_relink=$lt_variables_saved_for_relink
29027
29028 # Do we need the "lib" prefix for modules?
29029 need_lib_prefix=$need_lib_prefix
29030
29031 # Do we need a version for libraries?
29032 need_version=$need_version
29033
29034 # Library versioning type.
29035 version_type=$version_type
29036
29037 # Shared library runtime path variable.
29038 runpath_var=$runpath_var
29039
29040 # Shared library path variable.
29041 shlibpath_var=$shlibpath_var
29042
29043 # Is shlibpath searched before the hard-coded library search path?
29044 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29045
29046 # Format of library name prefix.
29047 libname_spec=$lt_libname_spec
29048
29049 # List of archive names. First name is the real one, the rest are links.
29050 # The last name is the one that the linker finds with -lNAME
29051 library_names_spec=$lt_library_names_spec
29052
29053 # The coded name of the library, if different from the real name.
29054 soname_spec=$lt_soname_spec
29055
29056 # Permission mode override for installation of shared libraries.
29057 install_override_mode=$lt_install_override_mode
29058
29059 # Command to use after installation of a shared archive.
29060 postinstall_cmds=$lt_postinstall_cmds
29061
29062 # Command to use after uninstallation of a shared archive.
29063 postuninstall_cmds=$lt_postuninstall_cmds
29064
29065 # Commands used to finish a libtool library installation in a directory.
29066 finish_cmds=$lt_finish_cmds
29067
29068 # As "finish_cmds", except a single script fragment to be evaled but
29069 # not shown.
29070 finish_eval=$lt_finish_eval
29071
29072 # Whether we should hardcode library paths into libraries.
29073 hardcode_into_libs=$hardcode_into_libs
29074
29075 # Compile-time system search path for libraries.
29076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29077
29078 # Detected run-time system search path for libraries.
29079 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
29080
29081 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
29082 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
29083
29084 # Whether dlopen is supported.
29085 dlopen_support=$enable_dlopen
29086
29087 # Whether dlopen of programs is supported.
29088 dlopen_self=$enable_dlopen_self
29089
29090 # Whether dlopen of statically linked programs is supported.
29091 dlopen_self_static=$enable_dlopen_self_static
29092
29093 # Commands to strip libraries.
29094 old_striplib=$lt_old_striplib
29095 striplib=$lt_striplib
29096
29097
29098 # The linker used to build libraries.
29099 LD=$lt_LD
29100
29101 # How to create reloadable object files.
29102 reload_flag=$lt_reload_flag
29103 reload_cmds=$lt_reload_cmds
29104
29105 # Commands used to build an old-style archive.
29106 old_archive_cmds=$lt_old_archive_cmds
29107
29108 # A language specific compiler.
29109 CC=$lt_compiler
29110
29111 # Is the compiler the GNU compiler?
29112 with_gcc=$GCC
29113
29114 # Compiler flag to turn off builtin functions.
29115 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29116
29117 # Additional compiler flags for building library objects.
29118 pic_flag=$lt_lt_prog_compiler_pic
29119
29120 # How to pass a linker flag through the compiler.
29121 wl=$lt_lt_prog_compiler_wl
29122
29123 # Compiler flag to prevent dynamic linking.
29124 link_static_flag=$lt_lt_prog_compiler_static
29125
29126 # Does compiler simultaneously support -c and -o options?
29127 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29128
29129 # Whether or not to add -lc for building shared libraries.
29130 build_libtool_need_lc=$archive_cmds_need_lc
29131
29132 # Whether or not to disallow shared libs when runtime libs are static.
29133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29134
29135 # Compiler flag to allow reflexive dlopens.
29136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29137
29138 # Compiler flag to generate shared objects directly from archives.
29139 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29140
29141 # Whether the compiler copes with passing no objects directly.
29142 compiler_needs_object=$lt_compiler_needs_object
29143
29144 # Create an old-style archive from a shared archive.
29145 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29146
29147 # Create a temporary old-style archive to link instead of a shared archive.
29148 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29149
29150 # Commands used to build a shared archive.
29151 archive_cmds=$lt_archive_cmds
29152 archive_expsym_cmds=$lt_archive_expsym_cmds
29153
29154 # Commands used to build a loadable module if different from building
29155 # a shared archive.
29156 module_cmds=$lt_module_cmds
29157 module_expsym_cmds=$lt_module_expsym_cmds
29158
29159 # Whether we are building with GNU ld or not.
29160 with_gnu_ld=$lt_with_gnu_ld
29161
29162 # Flag that allows shared libraries with undefined symbols to be built.
29163 allow_undefined_flag=$lt_allow_undefined_flag
29164
29165 # Flag that enforces no undefined symbols.
29166 no_undefined_flag=$lt_no_undefined_flag
29167
29168 # Flag to hardcode \$libdir into a binary during linking.
29169 # This must work even if \$libdir does not exist
29170 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29171
29172 # Whether we need a single "-rpath" flag with a separated argument.
29173 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29174
29175 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29176 # DIR into the resulting binary.
29177 hardcode_direct=$hardcode_direct
29178
29179 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29180 # DIR into the resulting binary and the resulting library dependency is
29181 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
29182 # library is relocated.
29183 hardcode_direct_absolute=$hardcode_direct_absolute
29184
29185 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29186 # into the resulting binary.
29187 hardcode_minus_L=$hardcode_minus_L
29188
29189 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29190 # into the resulting binary.
29191 hardcode_shlibpath_var=$hardcode_shlibpath_var
29192
29193 # Set to "yes" if building a shared library automatically hardcodes DIR
29194 # into the library and all subsequent libraries and executables linked
29195 # against it.
29196 hardcode_automatic=$hardcode_automatic
29197
29198 # Set to yes if linker adds runtime paths of dependent libraries
29199 # to runtime path list.
29200 inherit_rpath=$inherit_rpath
29201
29202 # Whether libtool must link a program against all its dependency libraries.
29203 link_all_deplibs=$link_all_deplibs
29204
29205 # Set to "yes" if exported symbols are required.
29206 always_export_symbols=$always_export_symbols
29207
29208 # The commands to list exported symbols.
29209 export_symbols_cmds=$lt_export_symbols_cmds
29210
29211 # Symbols that should not be listed in the preloaded symbols.
29212 exclude_expsyms=$lt_exclude_expsyms
29213
29214 # Symbols that must always be exported.
29215 include_expsyms=$lt_include_expsyms
29216
29217 # Commands necessary for linking programs (against libraries) with templates.
29218 prelink_cmds=$lt_prelink_cmds
29219
29220 # Commands necessary for finishing linking programs.
29221 postlink_cmds=$lt_postlink_cmds
29222
29223 # Specify filename containing input files.
29224 file_list_spec=$lt_file_list_spec
29225
29226 # How to hardcode a shared library path into an executable.
29227 hardcode_action=$hardcode_action
29228
29229 # The directories searched by this compiler when creating a shared library.
29230 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29231
29232 # Dependencies to place before and after the objects being linked to
29233 # create a shared library.
29234 predep_objects=$lt_predep_objects
29235 postdep_objects=$lt_postdep_objects
29236 predeps=$lt_predeps
29237 postdeps=$lt_postdeps
29238
29239 # The library search path used internally by the compiler when linking
29240 # a shared library.
29241 compiler_lib_search_path=$lt_compiler_lib_search_path
29242
29243 # ### END LIBTOOL CONFIG
29244
29245 _LT_EOF
29246
29247 cat <<'_LT_EOF' >> "$cfgfile"
29248
29249 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29250
29251 # func_munge_path_list VARIABLE PATH
29252 # -----------------------------------
29253 # VARIABLE is name of variable containing _space_ separated list of
29254 # directories to be munged by the contents of PATH, which is string
29255 # having a format:
29256 # "DIR[:DIR]:"
29257 # string "DIR[ DIR]" will be prepended to VARIABLE
29258 # ":DIR[:DIR]"
29259 # string "DIR[ DIR]" will be appended to VARIABLE
29260 # "DIRP[:DIRP]::[DIRA:]DIRA"
29261 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29262 # "DIRA[ DIRA]" will be appended to VARIABLE
29263 # "DIR[:DIR]"
29264 # VARIABLE will be replaced by "DIR[ DIR]"
29265 func_munge_path_list ()
29266 {
29267 case x$2 in
29268 x)
29269 ;;
29270 *:)
29271 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29272 ;;
29273 x:*)
29274 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29275 ;;
29276 *::*)
29277 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29278 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29279 ;;
29280 *)
29281 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29282 ;;
29283 esac
29284 }
29285
29286
29287 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
29288 func_cc_basename ()
29289 {
29290 for cc_temp in $*""; do
29291 case $cc_temp in
29292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29294 \-*) ;;
29295 *) break;;
29296 esac
29297 done
29298 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29299 }
29300
29301
29302 # ### END FUNCTIONS SHARED WITH CONFIGURE
29303
29304 _LT_EOF
29305
29306 case $host_os in
29307 aix3*)
29308 cat <<\_LT_EOF >> "$cfgfile"
29309 # AIX sometimes has problems with the GCC collect2 program. For some
29310 # reason, if we set the COLLECT_NAMES environment variable, the problems
29311 # vanish in a puff of smoke.
29312 if test set != "${COLLECT_NAMES+set}"; then
29313 COLLECT_NAMES=
29314 export COLLECT_NAMES
29315 fi
29316 _LT_EOF
29317 ;;
29318 esac
29319
29320
29321
29322 ltmain=$ac_aux_dir/ltmain.sh
29323
29324
29325 # We use sed instead of cat because bash on DJGPP gets confused if
29326 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29327 # text mode, it properly converts lines to CR/LF. This bash problem
29328 # is reportedly fixed, but why not run on old versions too?
29329 $SED '$q' "$ltmain" >> "$cfgfile" \
29330 || (rm -f "$cfgfile"; exit 1)
29331
29332 mv -f "$cfgfile" "$ofile" ||
29333 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29334 chmod +x "$ofile"
29335
29336
29337 cat <<_LT_EOF >> "$ofile"
29338
29339 # ### BEGIN LIBTOOL TAG CONFIG: CXX
29340
29341 # The linker used to build libraries.
29342 LD=$lt_LD_CXX
29343
29344 # How to create reloadable object files.
29345 reload_flag=$lt_reload_flag_CXX
29346 reload_cmds=$lt_reload_cmds_CXX
29347
29348 # Commands used to build an old-style archive.
29349 old_archive_cmds=$lt_old_archive_cmds_CXX
29350
29351 # A language specific compiler.
29352 CC=$lt_compiler_CXX
29353
29354 # Is the compiler the GNU compiler?
29355 with_gcc=$GCC_CXX
29356
29357 # Compiler flag to turn off builtin functions.
29358 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29359
29360 # Additional compiler flags for building library objects.
29361 pic_flag=$lt_lt_prog_compiler_pic_CXX
29362
29363 # How to pass a linker flag through the compiler.
29364 wl=$lt_lt_prog_compiler_wl_CXX
29365
29366 # Compiler flag to prevent dynamic linking.
29367 link_static_flag=$lt_lt_prog_compiler_static_CXX
29368
29369 # Does compiler simultaneously support -c and -o options?
29370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29371
29372 # Whether or not to add -lc for building shared libraries.
29373 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29374
29375 # Whether or not to disallow shared libs when runtime libs are static.
29376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29377
29378 # Compiler flag to allow reflexive dlopens.
29379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29380
29381 # Compiler flag to generate shared objects directly from archives.
29382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29383
29384 # Whether the compiler copes with passing no objects directly.
29385 compiler_needs_object=$lt_compiler_needs_object_CXX
29386
29387 # Create an old-style archive from a shared archive.
29388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29389
29390 # Create a temporary old-style archive to link instead of a shared archive.
29391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29392
29393 # Commands used to build a shared archive.
29394 archive_cmds=$lt_archive_cmds_CXX
29395 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29396
29397 # Commands used to build a loadable module if different from building
29398 # a shared archive.
29399 module_cmds=$lt_module_cmds_CXX
29400 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29401
29402 # Whether we are building with GNU ld or not.
29403 with_gnu_ld=$lt_with_gnu_ld_CXX
29404
29405 # Flag that allows shared libraries with undefined symbols to be built.
29406 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29407
29408 # Flag that enforces no undefined symbols.
29409 no_undefined_flag=$lt_no_undefined_flag_CXX
29410
29411 # Flag to hardcode \$libdir into a binary during linking.
29412 # This must work even if \$libdir does not exist
29413 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29414
29415 # Whether we need a single "-rpath" flag with a separated argument.
29416 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29417
29418 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29419 # DIR into the resulting binary.
29420 hardcode_direct=$hardcode_direct_CXX
29421
29422 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29423 # DIR into the resulting binary and the resulting library dependency is
29424 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
29425 # library is relocated.
29426 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29427
29428 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29429 # into the resulting binary.
29430 hardcode_minus_L=$hardcode_minus_L_CXX
29431
29432 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29433 # into the resulting binary.
29434 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29435
29436 # Set to "yes" if building a shared library automatically hardcodes DIR
29437 # into the library and all subsequent libraries and executables linked
29438 # against it.
29439 hardcode_automatic=$hardcode_automatic_CXX
29440
29441 # Set to yes if linker adds runtime paths of dependent libraries
29442 # to runtime path list.
29443 inherit_rpath=$inherit_rpath_CXX
29444
29445 # Whether libtool must link a program against all its dependency libraries.
29446 link_all_deplibs=$link_all_deplibs_CXX
29447
29448 # Set to "yes" if exported symbols are required.
29449 always_export_symbols=$always_export_symbols_CXX
29450
29451 # The commands to list exported symbols.
29452 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29453
29454 # Symbols that should not be listed in the preloaded symbols.
29455 exclude_expsyms=$lt_exclude_expsyms_CXX
29456
29457 # Symbols that must always be exported.
29458 include_expsyms=$lt_include_expsyms_CXX
29459
29460 # Commands necessary for linking programs (against libraries) with templates.
29461 prelink_cmds=$lt_prelink_cmds_CXX
29462
29463 # Commands necessary for finishing linking programs.
29464 postlink_cmds=$lt_postlink_cmds_CXX
29465
29466 # Specify filename containing input files.
29467 file_list_spec=$lt_file_list_spec_CXX
29468
29469 # How to hardcode a shared library path into an executable.
29470 hardcode_action=$hardcode_action_CXX
29471
29472 # The directories searched by this compiler when creating a shared library.
29473 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29474
29475 # Dependencies to place before and after the objects being linked to
29476 # create a shared library.
29477 predep_objects=$lt_predep_objects_CXX
29478 postdep_objects=$lt_postdep_objects_CXX
29479 predeps=$lt_predeps_CXX
29480 postdeps=$lt_postdeps_CXX
29481
29482 # The library search path used internally by the compiler when linking
29483 # a shared library.
29484 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29485
29486 # ### END LIBTOOL TAG CONFIG: CXX
29487 _LT_EOF
29488
29489 ;;
29490 "po-directories":C)
29491 for ac_file in $CONFIG_FILES; do
29492 # Support "outfile[:infile[:infile...]]"
29493 case "$ac_file" in
29494 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
29495 esac
29496 # PO directories have a Makefile.in generated from Makefile.in.in.
29497 case "$ac_file" in */Makefile.in)
29498 # Adjust a relative srcdir.
29499 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
29500 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
29501 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
29502 # In autoconf-2.13 it is called $ac_given_srcdir.
29503 # In autoconf-2.50 it is called $srcdir.
29504 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
29505 case "$ac_given_srcdir" in
29506 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
29507 /*) top_srcdir="$ac_given_srcdir" ;;
29508 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
29509 esac
29510 # Treat a directory as a PO directory if and only if it has a
29511 # POTFILES.in file. This allows packages to have multiple PO
29512 # directories under different names or in different locations.
29513 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
29514 rm -f "$ac_dir/POTFILES"
29515 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
29516 gt_tab=`printf '\t'`
29517 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
29518 POMAKEFILEDEPS="POTFILES.in"
29519 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
29520 # on $ac_dir but don't depend on user-specified configuration
29521 # parameters.
29522 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
29523 # The LINGUAS file contains the set of available languages.
29524 if test -n "$OBSOLETE_ALL_LINGUAS"; then
29525 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
29526 fi
29527 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
29528 # Hide the ALL_LINGUAS assignment from automake < 1.5.
29529 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
29530 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
29531 else
29532 # The set of available languages was given in configure.in.
29533 # Hide the ALL_LINGUAS assignment from automake < 1.5.
29534 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
29535 fi
29536 # Compute POFILES
29537 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
29538 # Compute UPDATEPOFILES
29539 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
29540 # Compute DUMMYPOFILES
29541 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
29542 # Compute GMOFILES
29543 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
29544 case "$ac_given_srcdir" in
29545 .) srcdirpre= ;;
29546 *) srcdirpre='$(srcdir)/' ;;
29547 esac
29548 POFILES=
29549 UPDATEPOFILES=
29550 DUMMYPOFILES=
29551 GMOFILES=
29552 for lang in $ALL_LINGUAS; do
29553 POFILES="$POFILES $srcdirpre$lang.po"
29554 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
29555 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
29556 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
29557 done
29558 # CATALOGS depends on both $ac_dir and the user's LINGUAS
29559 # environment variable.
29560 INST_LINGUAS=
29561 if test -n "$ALL_LINGUAS"; then
29562 for presentlang in $ALL_LINGUAS; do
29563 useit=no
29564 if test "%UNSET%" != "$LINGUAS"; then
29565 desiredlanguages="$LINGUAS"
29566 else
29567 desiredlanguages="$ALL_LINGUAS"
29568 fi
29569 for desiredlang in $desiredlanguages; do
29570 # Use the presentlang catalog if desiredlang is
29571 # a. equal to presentlang, or
29572 # b. a variant of presentlang (because in this case,
29573 # presentlang can be used as a fallback for messages
29574 # which are not translated in the desiredlang catalog).
29575 case "$desiredlang" in
29576 "$presentlang"*) useit=yes;;
29577 esac
29578 done
29579 if test $useit = yes; then
29580 INST_LINGUAS="$INST_LINGUAS $presentlang"
29581 fi
29582 done
29583 fi
29584 CATALOGS=
29585 if test -n "$INST_LINGUAS"; then
29586 for lang in $INST_LINGUAS; do
29587 CATALOGS="$CATALOGS $lang.gmo"
29588 done
29589 fi
29590 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
29591 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
29592 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
29593 if test -f "$f"; then
29594 case "$f" in
29595 *.orig | *.bak | *~) ;;
29596 *) cat "$f" >> "$ac_dir/Makefile" ;;
29597 esac
29598 fi
29599 done
29600 fi
29601 ;;
29602 esac
29603 done ;;
29604 "src/tests/atconfig":C) cat >src/tests/atconfig <<ATEOF
29605 # Configurable variable values for building test suites.
29606 # Generated by $0.
29607 # Copyright (C) 2023 Free Software Foundation, Inc.
29608
29609 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
29610 at_testdir='src/tests'
29611 abs_builddir='$ac_abs_builddir'
29612 at_srcdir='$ac_srcdir'
29613 abs_srcdir='$ac_abs_srcdir'
29614 at_top_srcdir='$ac_top_srcdir'
29615 abs_top_srcdir='$ac_abs_top_srcdir'
29616 at_top_build_prefix='$ac_top_build_prefix'
29617 abs_top_builddir='$ac_abs_top_builddir'
29618
29619 # Backward compatibility with Autotest <= 2.59b:
29620 at_top_builddir=\$at_top_build_prefix
29621
29622
29623 EXEEXT='$ac_cv_exeext'
29624 AUTOTEST_PATH='src/tests'
29625
29626 SHELL=\${CONFIG_SHELL-'$SHELL'}
29627 ATEOF
29628 ;;
29629 "Makefile":F) chmod +x run-speechd run-spd-say ;;
29630 "run-speechd":F) chmod +x run-speechd run-spd-say ;;
29631 "run-spd-say":F) chmod +x run-speechd run-spd-say ;;
29632 "speech-dispatcher.pc":F) chmod +x run-speechd run-spd-say ;;
29633 "config/Makefile":F) chmod +x run-speechd run-spd-say ;;
29634 "config/clients/Makefile":F) chmod +x run-speechd run-spd-say ;;
29635 "config/modules/Makefile":F) chmod +x run-speechd run-spd-say ;;
29636 "doc/Makefile":F) chmod +x run-speechd run-spd-say ;;
29637 "include/Makefile":F) chmod +x run-speechd run-spd-say ;;
29638 "locale/Makefile":F) chmod +x run-speechd run-spd-say ;;
29639 "po/Makevars":F) chmod +x run-speechd run-spd-say ;;
29640 "po/Makefile.in":F) chmod +x run-speechd run-spd-say ;;
29641 "src/Makefile":F) chmod +x run-speechd run-spd-say ;;
29642 "src/api/Makefile":F) chmod +x run-speechd run-spd-say ;;
29643 "src/api/c/Makefile":F) chmod +x run-speechd run-spd-say ;;
29644 "src/api/python/Makefile":F) chmod +x run-speechd run-spd-say ;;
29645 "src/api/python/speechd/Makefile":F) chmod +x run-speechd run-spd-say ;;
29646 "src/api/python/speechd_config/Makefile":F) chmod +x run-speechd run-spd-say ;;
29647 "src/audio/Makefile":F) chmod +x run-speechd run-spd-say ;;
29648 "src/clients/Makefile":F) chmod +x run-speechd run-spd-say ;;
29649 "src/clients/say/Makefile":F) chmod +x run-speechd run-spd-say ;;
29650 "src/clients/spdsend/Makefile":F) chmod +x run-speechd run-spd-say ;;
29651 "src/common/Makefile":F) chmod +x run-speechd run-spd-say ;;
29652 "src/modules/Makefile":F) chmod +x run-speechd run-spd-say ;;
29653 "src/server/Makefile":F) chmod +x run-speechd run-spd-say ;;
29654 "src/tests/Makefile":F) chmod +x run-speechd run-spd-say ;;
29655
29656 esac
29657 done # for ac_tag
29658
29659
29660 as_fn_exit 0
29661 _ACEOF
29662 ac_clean_files=$ac_clean_files_save
29663
29664 test $ac_write_fail = 0 ||
29665 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29666
29667
29668 # configure is writing to config.log, and then calls config.status.
29669 # config.status does its own redirection, appending to config.log.
29670 # Unfortunately, on DOS this fails, as config.log is still kept open
29671 # by configure, so config.status won't be able to write to it; its
29672 # output is simply discarded. So we exec the FD to /dev/null,
29673 # effectively closing config.log, so it can be properly (re)opened and
29674 # appended to by config.status. When coming back to configure, we
29675 # need to make the FD available again.
29676 if test "$no_create" != yes; then
29677 ac_cs_success=:
29678 ac_config_status_args=
29679 test "$silent" = yes &&
29680 ac_config_status_args="$ac_config_status_args --quiet"
29681 exec 5>/dev/null
29682 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29683 exec 5>>config.log
29684 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29685 # would make configure fail if this is the last instruction.
29686 $ac_cs_success || as_fn_exit 1
29687 fi
29688 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29690 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29691 fi
29692
29693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: output modules to be built are $output_modules" >&5
29694 printf "%s\n" "$as_me: output modules to be built are $output_modules" >&6;}
29695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: audio methods to be built are $audio_methods" >&5
29696 printf "%s\n" "$as_me: audio methods to be built are $audio_methods" >&6;}
29697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default audio method is $default_audio_method" >&5
29698 printf "%s\n" "$as_me: Default audio method is $default_audio_method" >&6;}
29699